diff --git a/alpha/admin/.hbuilderx/launch.json b/alpha/admin/.hbuilderx/launch.json index 07c1d5fa5938886973a36843e7dc050b0aa8b4ce..a9ec4a7afccfbb07cfa3cb67b4066ccc018b77f1 100644 --- a/alpha/admin/.hbuilderx/launch.json +++ b/alpha/admin/.hbuilderx/launch.json @@ -8,7 +8,7 @@ }, "h5" : { - "launchtype" : "local" + "launchtype" : "remote" }, "type" : "uniCloud" } diff --git a/alpha/admin/pages/content/mustgo-activity/school/add.vue b/alpha/admin/pages/content/mustgo-activity/school/add.vue index d0e5eb5e56594032222be7f3577648195ca1a242..bafbe2fe133d931b4ef2702fbab0cc1d6d7f3eaa 100644 --- a/alpha/admin/pages/content/mustgo-activity/school/add.vue +++ b/alpha/admin/pages/content/mustgo-activity/school/add.vue @@ -96,7 +96,7 @@ uniCloud.chooseAndUploadFile({ type: 'image', success(res) { - that.formData.icon = res["tempFiles"][0]["url"] + that.formData.background_picture = res["tempFiles"][0]["url"] console.log(res) }, fail() { diff --git a/alpha/admin/pages/content/mustgo-activity/school/edit.vue b/alpha/admin/pages/content/mustgo-activity/school/edit.vue index 451c524c530b3c292153cd230a7e18f3ebffe775..0c4c1aa8e9663003c1ea13404502f7edad78e66e 100644 --- a/alpha/admin/pages/content/mustgo-activity/school/edit.vue +++ b/alpha/admin/pages/content/mustgo-activity/school/edit.vue @@ -23,9 +23,9 @@ - + @@ -100,7 +100,7 @@ uniCloud.chooseAndUploadFile({ type: 'image', success(res) { - that.formData.icon = res["tempFiles"][0]["url"] + that.formData.background_picture = res["tempFiles"][0]["url"] console.log(res) }, fail() { diff --git a/alpha/admin/pages/content/mustgo-activity/school/list.vue b/alpha/admin/pages/content/mustgo-activity/school/list.vue index 18442cfb5cdb26d4bafcb4e4648c29aeebb33f40..fd3f9f63e578f0ff5343d4c5825147b08b5636ad 100644 --- a/alpha/admin/pages/content/mustgo-activity/school/list.vue +++ b/alpha/admin/pages/content/mustgo-activity/school/list.vue @@ -10,9 +10,9 @@ - + @@ -25,10 +25,10 @@ 内容 开始时间 结束时间 - 发布者id + 发布者 背景图片 地点 - 活动状态 + 联系方式 面向对象 操作 @@ -38,12 +38,12 @@ {{item.content}} {{item.start_date}} {{item.end_date}} - {{item.owner_id}} + {{item.owner_id[0].name}} {{item.place}} - {{item.status}} + {{item.contact}} {{item.invitee}} @@ -68,7 +68,7 @@ const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = [] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['title', 'place'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -81,7 +81,7 @@ export default { data() { return { - collectionList: "mustgo-school-activity", + collectionList: "mustgo-school-activity,mustgo-user", query: '', where: '', orderby: dbOrderBy, diff --git a/alpha/admin/pages/content/mustgo-activity/team/add.vue b/alpha/admin/pages/content/mustgo-activity/team/add.vue index cebcaea4919160f062266a215412257bba2521f2..35b046ab2d23d7a8df798e3330aaca5525ff0ff5 100644 --- a/alpha/admin/pages/content/mustgo-activity/team/add.vue +++ b/alpha/admin/pages/content/mustgo-activity/team/add.vue @@ -19,9 +19,9 @@ - + diff --git a/alpha/admin/pages/content/mustgo-activity/team/edit.vue b/alpha/admin/pages/content/mustgo-activity/team/edit.vue index 52d77e9dd8ee0712c685d6ad7bafb00e100db642..f59ef53ce299cf55c3986971b21778624ca9f472 100644 --- a/alpha/admin/pages/content/mustgo-activity/team/edit.vue +++ b/alpha/admin/pages/content/mustgo-activity/team/edit.vue @@ -19,9 +19,9 @@ - + diff --git a/alpha/admin/pages/content/mustgo-activity/team/list.vue b/alpha/admin/pages/content/mustgo-activity/team/list.vue index 8b92033d13cb24e3f87ff524f9f84428e32321c7..31572edb7107876ae7993b4af8ea6bfb5fedfd83 100644 --- a/alpha/admin/pages/content/mustgo-activity/team/list.vue +++ b/alpha/admin/pages/content/mustgo-activity/team/list.vue @@ -10,9 +10,9 @@ - + @@ -25,12 +25,12 @@ 内容 开始时间 结束时间 - 发布者id + 发布者 地点 - 活动状态 + 参与人数 联系方式 - 小队id + 小队 操作 @@ -38,12 +38,12 @@ {{item.content}} {{item.start_date}} {{item.end_date}} - {{item.owner_id}} + {{item.owner_id[0].name}} {{item.place}} - {{item.status}} + {{item.participants}} {{item.contact}} - {{item.team_id}} + {{item.team_id[0].name}} @@ -66,7 +66,7 @@ const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = [] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['owner_id.name', 'title', 'place'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -79,7 +79,7 @@ export default { data() { return { - collectionList: "mustgo-team-activity", + collectionList: "mustgo-team-activity,mustgo-user,mustgo-team", query: '', where: '', orderby: dbOrderBy, diff --git a/alpha/admin/pages/content/mustgo-comment/edit.vue b/alpha/admin/pages/content/mustgo-comment/edit.vue index 0612c327b321403049a4d9eee5898832dce9bd8d..8d9ab6e53f500e7e3efc557d99e8be794001faba 100644 --- a/alpha/admin/pages/content/mustgo-comment/edit.vue +++ b/alpha/admin/pages/content/mustgo-comment/edit.vue @@ -13,9 +13,9 @@ - + diff --git a/alpha/admin/pages/content/mustgo-comment/list.vue b/alpha/admin/pages/content/mustgo-comment/list.vue index 818f58655e522035774d75bbf1d4bd43fd2d8249..a1e707055edeeb55f92f4dd2d99071f42b83b218 100644 --- a/alpha/admin/pages/content/mustgo-comment/list.vue +++ b/alpha/admin/pages/content/mustgo-comment/list.vue @@ -8,11 +8,11 @@ - + - + @@ -21,20 +21,20 @@ v-slot:default="{data,pagination,loading,error,options}" :options="options" loadtime="manual" @load="onqueryload"> - 评论人id + 评论人 发布时间 点赞数 - 帖子id - 状态 + 帖子标题 + 评论内容 操作 - {{item.owner_id}} + {{item.owner_id[0].name}} {{item.date}} {{item.likes}} - {{item.post_id}} - {{item.check_status == true ? '✅' : '❌'}} + {{item.post_id[0].content}} + {{item.content}} @@ -58,7 +58,7 @@ const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = [] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['owner_id.name'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -71,7 +71,7 @@ export default { data() { return { - collectionList: "mustgo-post-comment", + collectionList: "mustgo-post-comment,mustgo-user,mustgo-post", query: '', where: '', orderby: dbOrderBy, diff --git a/alpha/admin/pages/content/mustgo-post/edit.vue b/alpha/admin/pages/content/mustgo-post/edit.vue index 92f3a5fb58da35df903fc360c25e9e2405be1ce3..2831e35665bd2168381497f885bda54b6dbdf4de 100644 --- a/alpha/admin/pages/content/mustgo-post/edit.vue +++ b/alpha/admin/pages/content/mustgo-post/edit.vue @@ -13,15 +13,15 @@ - + - + diff --git a/alpha/admin/pages/content/mustgo-post/list.vue b/alpha/admin/pages/content/mustgo-post/list.vue index 189e7d6b6aefda15f50bf98be1169f12db25966d..348b2d79077407b2ae95edc78a248734f5946baa 100644 --- a/alpha/admin/pages/content/mustgo-post/list.vue +++ b/alpha/admin/pages/content/mustgo-post/list.vue @@ -8,11 +8,11 @@ - + - + @@ -24,8 +24,8 @@ 内容 发布时间 点赞数 - 发帖人id - 审核状态 + 发帖人 + 评论数 图片url 操作 @@ -34,8 +34,8 @@ {{item.content}} {{item.date}} {{item.likes}} - {{item.owner_id}} - {{item.check_status == true ? '✅' : '❌'}} + {{item.owner_id[0].name}} + {{item.comment_num}} {{item.url}} @@ -60,7 +60,7 @@ const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = [] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['owner_id.name'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -73,7 +73,7 @@ export default { data() { return { - collectionList: "mustgo-post", + collectionList: "mustgo-post,mustgo-user", query: '', where: '', orderby: dbOrderBy, diff --git a/alpha/admin/pages/content/mustgo-record/running/edit.vue b/alpha/admin/pages/content/mustgo-record/running/edit.vue index 961b1571cf22576f37846273f52c353731ad133c..4776a3d7e2af64b90f1ed9a81c69f7c668e176e5 100644 --- a/alpha/admin/pages/content/mustgo-record/running/edit.vue +++ b/alpha/admin/pages/content/mustgo-record/running/edit.vue @@ -8,7 +8,7 @@ - + @@ -73,6 +73,11 @@ return { formData, formOptions: {}, + feelings: [ + "good", + "normal", + "bad" + ], rules: { ...getValidator(Object.keys(formData)) } diff --git a/alpha/admin/pages/content/mustgo-record/running/list.vue b/alpha/admin/pages/content/mustgo-record/running/list.vue index 007b4e02f2efa9e0c5f059fa28e3a7a7ef333adc..da57f91dd5815dd9536a1e45b34eee0e06eaa3c4 100644 --- a/alpha/admin/pages/content/mustgo-record/running/list.vue +++ b/alpha/admin/pages/content/mustgo-record/running/list.vue @@ -1,218 +1,246 @@ + \ No newline at end of file diff --git a/alpha/admin/pages/content/mustgo-record/walking/edit.vue b/alpha/admin/pages/content/mustgo-record/walking/edit.vue index bcd2ac4d8451af898bd72ff20ad07fbf62bdd4e8..5a547022fbf066f90988fac622efcc5d146691c9 100644 --- a/alpha/admin/pages/content/mustgo-record/walking/edit.vue +++ b/alpha/admin/pages/content/mustgo-record/walking/edit.vue @@ -8,7 +8,7 @@ - + diff --git a/alpha/admin/pages/content/mustgo-record/walking/list.vue b/alpha/admin/pages/content/mustgo-record/walking/list.vue index 07a6f3ee9ca75137e499e4da64788a7a52971093..223383741734506da589fdfe2f92b54974f8e25b 100644 --- a/alpha/admin/pages/content/mustgo-record/walking/list.vue +++ b/alpha/admin/pages/content/mustgo-record/walking/list.vue @@ -10,9 +10,9 @@ - + @@ -24,11 +24,11 @@ 开始时间 持续时间 感受 - 用户id + 用户 距离 配速 - 起始地点 - 结束地点 + + 操作 @@ -36,11 +36,11 @@ {{item.start_date}} {{item.duration}} {{item.feelings}} - {{item.owner_id}} + {{item.owner_id[0].name}} {{item.distance}} {{item.pace}} - {{item.start_point}} - {{item.end_point}} + + @@ -64,7 +64,7 @@ const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = [] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['owner_id.name'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -77,7 +77,7 @@ export default { data() { return { - collectionList: "mustgo-walking-record", + collectionList: "mustgo-walking-record,mustgo-user", query: '', where: '', orderby: dbOrderBy, diff --git a/alpha/admin/pages/content/mustgo-team/list.vue b/alpha/admin/pages/content/mustgo-team/list.vue index 916b49e79fcee947368d5c5ca57bf7b018509345..fcf4eacc090be666e6b6eaab87905280d929c5c6 100644 --- a/alpha/admin/pages/content/mustgo-team/list.vue +++ b/alpha/admin/pages/content/mustgo-team/list.vue @@ -8,11 +8,11 @@ - + - + @@ -23,14 +23,14 @@ 队标 队名 - 发起人id + 发起人 描述 操作 {{item.name}} - {{item.owner_id}} + {{item.owner_id[0].name}} {{item.description}} @@ -54,7 +54,7 @@ const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = [] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['name', 'owner_id.name'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -67,7 +67,7 @@ export default { data() { return { - collectionList: "mustgo-team", + collectionList: "mustgo-team,mustgo-user", query: '', where: '', orderby: dbOrderBy, diff --git a/alpha/admin/pages/content/mustgo-user/edit.vue b/alpha/admin/pages/content/mustgo-user/edit.vue index b742ffd80c8768105690da0ea160e5aba9fc880b..24064e86347904f8c99bd4c6e81bc039c19ce77b 100644 --- a/alpha/admin/pages/content/mustgo-user/edit.vue +++ b/alpha/admin/pages/content/mustgo-user/edit.vue @@ -8,7 +8,8 @@ - + + @@ -23,7 +24,8 @@ - + + @@ -64,7 +66,7 @@ data() { let formData = { "name": "", - "icon": "https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/0510a534-dd8d-41f0-8341-601aa677e243.jpg", + "icon": "", "gender": "", "password": "", "phone_num": "", @@ -78,6 +80,14 @@ // icon: [ // ], + genders: [ + {text: '男', value: '男'}, + {text: '女', value: '女'} + ], + types: [ + {text: '学生', value: '644a64c228064a7587cd79bf'}, + {text: '老师', value: '644a64d2e766bb0085e6048e'} + ], formData, formOptions: {}, rules: { @@ -95,11 +105,6 @@ onReady() { this.$refs.form.setRules(this.rules) }, - // watch: { - // icon(newIcon, oldIcon) { - // this.formData.icon = newIcon[0].url - // } - // }, methods: { /** * 验证表单并提交 diff --git a/alpha/admin/pages/content/mustgo-user/list.vue b/alpha/admin/pages/content/mustgo-user/list.vue index a06f82edeb20dd8ae9b0372c2ab880f2932adf70..8823f19db8573fdd993d95d43e2b48c3833ae18e 100644 --- a/alpha/admin/pages/content/mustgo-user/list.vue +++ b/alpha/admin/pages/content/mustgo-user/list.vue @@ -37,6 +37,9 @@ sortable @sort-change="sortChange($event, 'phone_num')">手机号 学校 + 小队 身份 @@ -58,6 +61,7 @@ {{item.password}} {{item.phone_num}} {{item.school}} + {{item.team_id[0].name}} {{item.type[0].identity}} {{item.total_running_distance}} km {{item.total_walking_distance}} km @@ -88,22 +92,10 @@ filterToWhere } from '../../../js_sdk/validator/mustgo-user.js'; - // uniCloud.callFunction({ - // name: 'fe-sport-feelings', - // data: { - // type: '跑步', - // id: '6453ab9e28064a7587271ea6', - // feeling: 'gggggooooooddddd' - // } - // }) - // .then(res => { - // console.log(res) - // }) - const db = uniCloud.database() // 表查询配置 const dbOrderBy = '' // 排序字段 - const dbSearchFields = ['name', '_id', 'phone_num'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name + const dbSearchFields = ['name', '_id', 'phone_num', 'team_id.name'] // 模糊搜索字段,支持模糊搜索的字段列表。联表查询格式: 主表字段名.副表字段名,例如用户表关联角色表 role.role_name // 分页配置 const pageSize = 20 const pageCurrent = 1 @@ -116,7 +108,7 @@ export default { data() { return { - collectionList: "mustgo-user,mustgo-role", + collectionList: "mustgo-user,mustgo-role,mustgo-team", query: '', where: '', orderby: dbOrderBy, @@ -135,7 +127,16 @@ exportExcel: { "filename": "mustgo-user.xls", "type": "xls", - "fields": {} + "fields": { + "用户名": "name", + "头像": "icon", + "性别": "gender", + "手机号": "phone_num", + "学校": "school", + "人员": "type", + "跑步总距离": "total_running_distance", + "健走总距离": "total_walking_distance" + } }, exportExcelData: [] } diff --git a/alpha/admin/pages/index/fieldsMap.js b/alpha/admin/pages/index/fieldsMap.js index e1d1bbbbdd7cff62c97928b0fef84c6e0939f193..8281d98bd9e51bd7894483cf75df8cb5198ecacd 100644 --- a/alpha/admin/pages/index/fieldsMap.js +++ b/alpha/admin/pages/index/fieldsMap.js @@ -37,7 +37,8 @@ const deviceFeildsMap = [{ // } ] -const userFeildsMap = [{ +const userFeildsMap = [ +{ value: '今天', contrast: '昨天' }, { diff --git a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-clear/index.js b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-clear/index.js new file mode 100644 index 0000000000000000000000000000000000000000..aa055420bf7189ea19659e55833b596a950646e2 --- /dev/null +++ b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-clear/index.js @@ -0,0 +1,7 @@ +'use strict'; +exports.main = async (event, context) => { + const db = uniCloud.database() + const collection = db.collection('mustgo-verify-code') + const res = await collection.remove() + console.log('remove all') +}; diff --git a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-clear/package.json b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-clear/package.json new file mode 100644 index 0000000000000000000000000000000000000000..0a5e4e340d68f50ceac7e99493bd8279b06f37e7 --- /dev/null +++ b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-clear/package.json @@ -0,0 +1,7 @@ +{ + "name": "fe-clear", + "dependencies": {}, + "extensions": { + "uni-cloud-jql": {} + } +} \ No newline at end of file diff --git a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-register/index.js b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-register/index.js index 444ef4ecbb4151d4a7169bf3354740c04b8d8c2a..81d955047b4c14648b6dba3cbd52beeef0418095 100644 --- a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-register/index.js +++ b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-register/index.js @@ -26,7 +26,7 @@ exports.main = async (event, context) => { password: event.password, phone_num: event.phone, team_id: "", - icon: "https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/0510a534-dd8d-41f0-8341-601aa677e243.jpg", + icon: "https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/433d3cc6-4b8f-475c-83e1-35acc747cab2.jpg", school: event.school, type: "644a64c228064a7587cd79bf", total_running_distance: 0, diff --git a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-sport-feelings/fe-sport-feelings.param.json b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-sport-feelings/fe-sport-feelings.param.json index 5de7cd7da7ddb841137c0f7733e7bebb640a09f9..f038991e945576b812ffc5437dff4a2110378f94 100644 --- a/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-sport-feelings/fe-sport-feelings.param.json +++ b/alpha/admin/uniCloud-aliyun/cloudfunctions/fe-sport-feelings/fe-sport-feelings.param.json @@ -2,6 +2,6 @@ // 配置教程参考:https://uniapp.dcloud.net.cn/uniCloud/rundebug.html#runparam { "type": "跑步", - "id": "6453ab9e28064a7587271ea6", - "feeling": "demodemodemdoe" + "id": "645b8a67e1a35c371b015038", + "feeling": "good" } \ No newline at end of file diff --git a/alpha/admin/uniCloud-aliyun/cloudfunctions/uni-stat-receiver/index.obj.js b/alpha/admin/uniCloud-aliyun/cloudfunctions/uni-stat-receiver/index.obj.js index dac8354dfd9963330c7878f913ff0e01d8199af4..d0b832dd9f98ef9136ed405554d149618bb49056 100644 --- a/alpha/admin/uniCloud-aliyun/cloudfunctions/uni-stat-receiver/index.obj.js +++ b/alpha/admin/uniCloud-aliyun/cloudfunctions/uni-stat-receiver/index.obj.js @@ -2,7 +2,7 @@ const uniStat = require('uni-stat') const uniID = require('uni-id-common') module.exports = { report: async function (params = {}) { - //客户端信息 + //客户端信息 const clientInfo = this.getClientInfo() //云服务信息 const cloudInfo = this.getCloudInfo() diff --git a/alpha/admin/uni_modules/uni-id-pages/pages/login/login-withpwd.vue b/alpha/admin/uni_modules/uni-id-pages/pages/login/login-withpwd.vue index e7a83b7fa9301e47a1c6c8e1bddf87e08847997f..38c0a4f37eb7811103dea4e7c468b0652a27a950 100644 --- a/alpha/admin/uni_modules/uni-id-pages/pages/login/login-withpwd.vue +++ b/alpha/admin/uni_modules/uni-id-pages/pages/login/login-withpwd.vue @@ -9,7 +9,7 @@ + :inputBorder="false" v-model="username" placeholder="请输入帐号" /> - 创建超级管理员 + 创建超级管理员(只能创建一个) diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-2309fabd.css b/alpha/admin/unpackage/dist/build/h5/assets/add-2309fabd.css new file mode 100644 index 0000000000000000000000000000000000000000..855f7d70bfa00db852770a4758fa5cb333f1be14 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-2309fabd.css @@ -0,0 +1 @@ +.icon-modal-box[data-v-0479b821]{padding-top:var(--top-window-height)}.icon-modal[data-v-0479b821]{width:350px;background-color:#fff;height:500px;overflow-y:scroll}@media screen and (min-width: 768px){.icon-modal-pc[data-v-0479b821]{width:600px}}[data-v-0479b821] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-280582c8.css b/alpha/admin/unpackage/dist/build/h5/assets/add-280582c8.css new file mode 100644 index 0000000000000000000000000000000000000000..8e58ce6758da1108bc36399928191847f0b0faf8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-280582c8.css @@ -0,0 +1 @@ +.title_padding[data-v-adb2730c]{padding-bottom:15px;display:block}.font_bold[data-v-adb2730c]{font-weight:700}.uni-button-group uni-button[data-v-adb2730c]{margin-left:15px}.uni-button-group uni-button[data-v-adb2730c]:first-child{margin-left:0}[data-v-adb2730c] .forn-item__flex .uni-forms-item__content{display:flex;align-items:center}[data-v-adb2730c] .forn-item__flex .uni-forms-item__content .custom-button{height:100%;margin-left:.3125rem;line-height:36px}[data-v-adb2730c] .uni-card{padding:0!important;cursor:auto}[data-v-adb2730c] .uni-card__header{background-color:#eee}[data-v-adb2730c] .uni-card__header-title-text{font-weight:700}.extra-button[data-v-adb2730c]{display:flex;align-items:center;margin-bottom:15px}.extra-button uni-button[data-v-adb2730c]{margin:0}.flex-center-r[data-v-adb2730c]{display:flex;align-items:center;justify-content:center}.tip[data-v-adb2730c]{display:flex;flex-direction:column;align-items:flex-start;background-color:#f3f5f7;color:#2c3e50;padding:10px;font-size:1rem;border-color:#e96900;border-left-width:8px;border-left-style:solid}.tip uni-text[data-v-adb2730c]{margin-right:15px}.tip .custom-button[data-v-adb2730c]{margin-left:0}.popup-content[data-v-adb2730c]{padding:.9375rem}[data-v-adb2730c] .uni-file-picker__files{max-width:100%} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-461c6796.css b/alpha/admin/unpackage/dist/build/h5/assets/add-461c6796.css new file mode 100644 index 0000000000000000000000000000000000000000..72fc85adc28306bf64fa6f3c57cb71a003488227 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-461c6796.css @@ -0,0 +1 @@ +[data-v-0c01ac2c] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-74c817c0.css b/alpha/admin/unpackage/dist/build/h5/assets/add-74c817c0.css new file mode 100644 index 0000000000000000000000000000000000000000..c23b915ea332e78d4e6bacf8e784ac95bd30c294 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-74c817c0.css @@ -0,0 +1 @@ +.uni-numbox[data-v-0f576b9a]{display:flex;flex-direction:row}.uni-numbox-btns[data-v-0f576b9a]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:0 8px;background-color:#f5f5f5;cursor:pointer}.uni-numbox__value[data-v-0f576b9a]{margin:0 2px;background-color:#f5f5f5;width:40px;height:26px;text-align:center;font-size:14px;border-left-width:0;border-right-width:0;color:#333}.uni-numbox__minus[data-v-0f576b9a]{border-top-left-radius:2px;border-bottom-left-radius:2px}.uni-numbox__plus[data-v-0f576b9a]{border-top-right-radius:2px;border-bottom-right-radius:2px}.uni-numbox--text[data-v-0f576b9a]{line-height:20px;font-size:20px;font-weight:300;color:#333}.uni-numbox .uni-numbox--disabled[data-v-0f576b9a]{color:silver!important;cursor:not-allowed} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-af8d271c.css b/alpha/admin/unpackage/dist/build/h5/assets/add-af8d271c.css new file mode 100644 index 0000000000000000000000000000000000000000..3bdd767a71704c0a1293179f23ecb76f9859f87f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-af8d271c.css @@ -0,0 +1 @@ +[data-v-f03a568c] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-c0d0d784.css b/alpha/admin/unpackage/dist/build/h5/assets/add-c0d0d784.css new file mode 100644 index 0000000000000000000000000000000000000000..763c2dfb91677086ffdeaf0fe97908536f1d95d6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-c0d0d784.css @@ -0,0 +1 @@ +[data-v-b471f01c] .uni-forms-item__content{display:flex;align-items:center}.uni-button-group uni-button[data-v-b471f01c]{margin-left:15px}.uni-button-group uni-button[data-v-b471f01c]:first-child{margin-left:0}.title_padding[data-v-b471f01c]{padding-bottom:15px;display:block}[data-v-b471f01c] .uni-file-picker__files{max-width:100%} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/add-cc1a1a4e.css b/alpha/admin/unpackage/dist/build/h5/assets/add-cc1a1a4e.css new file mode 100644 index 0000000000000000000000000000000000000000..9d75974f9f799ca4b08e0a2bdf5759cbba0d2d08 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/add-cc1a1a4e.css @@ -0,0 +1 @@ +[data-v-7d77b006] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/admin-icons-dec9f887.ttf b/alpha/admin/unpackage/dist/build/h5/assets/admin-icons-dec9f887.ttf new file mode 100644 index 0000000000000000000000000000000000000000..8b74e537286cc1f3fce505e09322454a79ef9731 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/assets/admin-icons-dec9f887.ttf differ diff --git a/alpha/admin/unpackage/dist/build/h5/assets/app-495643fe.css b/alpha/admin/unpackage/dist/build/h5/assets/app-495643fe.css new file mode 100644 index 0000000000000000000000000000000000000000..8439f33999d2cc427e38e3b97f530f4f39991a56 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/app-495643fe.css @@ -0,0 +1 @@ +.flex-between[data-v-5e849582]{margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.uni-stat-panel[data-v-5e849582]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px}.uni-stat-tooltip-s[data-v-5e849582]{width:160px;white-space:normal} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/bind-mobile-b269d0bb.css b/alpha/admin/unpackage/dist/build/h5/assets/bind-mobile-b269d0bb.css new file mode 100644 index 0000000000000000000000000000000000000000..64874a781b0451b93e0fb817a97f89bf3a1ec9a7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/bind-mobile-b269d0bb.css @@ -0,0 +1 @@ +.input-box[data-v-8ad2d767] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-8ad2d767]{padding:0 1.875rem}.login-logo[data-v-8ad2d767]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-8ad2d767]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-8ad2d767]{display:flex;justify-content:center}.login-logo uni-image[data-v-8ad2d767]{width:60px;height:60px}.register-back[data-v-8ad2d767]{display:none}uni-button[data-v-8ad2d767]{padding-bottom:1px}}.uni-content uni-view[data-v-8ad2d767]{box-sizing:border-box}.title[data-v-8ad2d767]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-8ad2d767]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-8ad2d767] .uni-easyinput__content,.input-box[data-v-8ad2d767]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-8ad2d767]{color:#04498c;cursor:pointer}.uni-content[data-v-8ad2d767] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-8ad2d767]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-8ad2d767]{height:auto!important}.uni-content[data-v-8ad2d767]{padding:0;align-items:center;justify-content:center;padding:1.5625rem;padding-top:10px}@media screen and (min-width: 690px){.uni-content[data-v-8ad2d767]{padding:30px 40px 40px}}.input-box[data-v-8ad2d767]{width:100%;margin-top:16px;background-color:#f9f9f9;border-radius:.1875rem;flex-direction:row;flex-wrap:nowrap;margin-bottom:10px}.send-btn-box[data-v-8ad2d767]{margin-top:15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/change_pwd-7af11db1.css b/alpha/admin/unpackage/dist/build/h5/assets/change_pwd-7af11db1.css new file mode 100644 index 0000000000000000000000000000000000000000..b9b2cf6701ea80b463ae552a88aaf8cdd8ddb9fd --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/change_pwd-7af11db1.css @@ -0,0 +1 @@ +.input-box[data-v-310f3ac4] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-310f3ac4]{padding:0 1.875rem}.login-logo[data-v-310f3ac4]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-310f3ac4]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-310f3ac4]{display:flex;justify-content:center}.login-logo uni-image[data-v-310f3ac4]{width:60px;height:60px}.register-back[data-v-310f3ac4]{display:none}uni-button[data-v-310f3ac4]{padding-bottom:1px}}.uni-content uni-view[data-v-310f3ac4]{box-sizing:border-box}.title[data-v-310f3ac4]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-310f3ac4]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-310f3ac4] .uni-easyinput__content,.input-box[data-v-310f3ac4]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-310f3ac4]{color:#04498c;cursor:pointer}.uni-content[data-v-310f3ac4] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-310f3ac4]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-310f3ac4]{height:auto!important}@media screen and (max-width: 690px){.uni-content[data-v-310f3ac4]{margin-top:15px}}@media screen and (min-width: 690px){.uni-content[data-v-310f3ac4]{padding:30px 40px 40px}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/channel-662deb2b.css b/alpha/admin/unpackage/dist/build/h5/assets/channel-662deb2b.css new file mode 100644 index 0000000000000000000000000000000000000000..bec6e8242950dd5f32f965c0f0e460c694e881c7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/channel-662deb2b.css @@ -0,0 +1 @@ +.uni-stat-panel[data-v-186a4fb4]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px}.uni-stat-edit--x[data-v-186a4fb4]{display:flex;justify-content:space-between}.uni-stat-edit--btn[data-v-186a4fb4]{cursor:pointer} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/comparison-6ed214d4.css b/alpha/admin/unpackage/dist/build/h5/assets/comparison-6ed214d4.css new file mode 100644 index 0000000000000000000000000000000000000000..709bcfa28dc572a9c1ef77cce6cb2525d3764dfb --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/comparison-6ed214d4.css @@ -0,0 +1 @@ +.uni-charts-box1[data-v-edc2efa9]{padding:10px;height:420px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/comparison-9f6dcc46.css b/alpha/admin/unpackage/dist/build/h5/assets/comparison-9f6dcc46.css new file mode 100644 index 0000000000000000000000000000000000000000..db6c03564d51f4f166e108a5ec3ddab56ee2ba9d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/comparison-9f6dcc46.css @@ -0,0 +1 @@ +.uni-charts-box1[data-v-8bf93566]{padding:10px;height:420px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/cropImage-ef9b552e.css b/alpha/admin/unpackage/dist/build/h5/assets/cropImage-ef9b552e.css new file mode 100644 index 0000000000000000000000000000000000000000..70e6733c1254491a71dad460060d768fc3b478fb --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/cropImage-ef9b552e.css @@ -0,0 +1 @@ +.flex-auto[data-v-592a86cd]{flex:auto}.bg-transparent[data-v-592a86cd]{background-color:rgba(0,0,0,.9);transition-duration:.35s}.l-clipper[data-v-592a86cd]{width:100vw;height:calc(100vh - var(--window-top));background-color:rgba(0,0,0,.9);position:fixed;top:var(--window-top);left:0;z-index:1}.l-clipper-mask[data-v-592a86cd]{position:relative;z-index:2;pointer-events:none}.l-clipper__content[data-v-592a86cd]{pointer-events:none;position:absolute;border:.03125rem solid rgba(255,255,255,.3);box-sizing:border-box;box-shadow:rgba(0,0,0,.5) 0 0 0 80vh;background:transparent}.l-clipper__content[data-v-592a86cd]:before,.l-clipper__content[data-v-592a86cd]:after{content:"";position:absolute;border:.03125rem dashed rgba(255,255,255,.3)}.l-clipper__content[data-v-592a86cd]:before{width:100%;top:33.33%;height:33.33%;border-left:none;border-right:none}.l-clipper__content[data-v-592a86cd]:after{width:33.33%;left:33.33%;height:100%;border-top:none;border-bottom:none}.l-clipper__edge[data-v-592a86cd]{position:absolute;width:1.0625rem;height:1.0625rem;border:.1875rem solid #fff;pointer-events:auto}.l-clipper__edge[data-v-592a86cd]:before{content:"";position:absolute;width:1.25rem;height:1.25rem;background-color:transparent}.l-clipper__edge[data-v-592a86cd]:nth-child(1){left:-.1875rem;top:-.1875rem;border-bottom-width:0!important;border-right-width:0!important}.l-clipper__edge[data-v-592a86cd]:nth-child(1):before{top:-50%;left:-50%}.l-clipper__edge[data-v-592a86cd]:nth-child(2){right:-.1875rem;top:-.1875rem;border-bottom-width:0!important;border-left-width:0!important}.l-clipper__edge[data-v-592a86cd]:nth-child(2):before{top:-50%;left:50%}.l-clipper__edge[data-v-592a86cd]:nth-child(3){left:-.1875rem;bottom:-.1875rem;border-top-width:0!important;border-right-width:0!important}.l-clipper__edge[data-v-592a86cd]:nth-child(3):before{bottom:-50%;left:-50%}.l-clipper__edge[data-v-592a86cd]:nth-child(4){right:-.1875rem;bottom:-.1875rem;border-top-width:0!important;border-left-width:0!important}.l-clipper__edge[data-v-592a86cd]:nth-child(4):before{bottom:-50%;left:50%}.l-clipper-image[data-v-592a86cd]{width:100%;border-style:none;position:absolute;top:0;left:0;z-index:1;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-origin:center}.l-clipper-canvas[data-v-592a86cd]{position:fixed;z-index:10;left:-200vw;top:-200vw;pointer-events:none}.l-clipper-tools[data-v-592a86cd]{position:fixed;left:0;bottom:10px;width:100%;z-index:99;color:#fff}.l-clipper-tools__btns[data-v-592a86cd]{font-weight:700;display:flex;align-items:center;justify-content:space-between;width:100%;padding:.625rem 1.25rem;box-sizing:border-box}.l-clipper-tools__btns .cancel[data-v-592a86cd]{width:3.5rem;height:1.875rem;text-align:center;line-height:1.875rem}.l-clipper-tools__btns .confirm[data-v-592a86cd]{width:3.5rem;height:1.875rem;line-height:1.875rem;background-color:#07c160;border-radius:.1875rem;text-align:center}.l-clipper-tools__btns uni-image[data-v-592a86cd]{display:block;width:1.875rem;height:1.875rem}.l-clipper-tools__btns[data-v-592a86cd]{flex-direction:row}.box[data-v-c2c356f4]{width:12.5rem}.mt[data-v-c2c356f4]{margin-top:-10px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/deactivate-36b6f5c0.css b/alpha/admin/unpackage/dist/build/h5/assets/deactivate-36b6f5c0.css new file mode 100644 index 0000000000000000000000000000000000000000..96631773bd45e8a254ae8ba09b4585db4b312bd7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/deactivate-36b6f5c0.css @@ -0,0 +1 @@ +.uni-content[data-v-3b80a2de]{display:flex;flex-direction:column;font-size:.875rem}.words[data-v-3b80a2de]{padding:0 .8125rem;line-height:1.4375rem;margin-top:.625rem;margin-bottom:80px}.button-group uni-button[data-v-3b80a2de]{border-radius:100px;border:none;width:9.375rem;height:42px;line-height:42px;font-size:1rem}.button-group uni-button[data-v-3b80a2de]:after{border:none}.button-group uni-button.next[data-v-3b80a2de]{color:#e64340;border:solid 1px #e64340}.button-group[data-v-3b80a2de]{display:flex;flex-direction:row;position:fixed;height:50px;bottom:10px;width:23.4375rem;justify-content:center;align-items:center;border-top:solid 1px #e4e6ec;padding-top:10px;background-color:#fff;max-width:690px}@media screen and (min-width: 690px){.uni-content[data-v-3b80a2de]{max-width:690px;margin-left:calc(50% - 345px)}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/detail-791a1977.css b/alpha/admin/unpackage/dist/build/h5/assets/detail-791a1977.css new file mode 100644 index 0000000000000000000000000000000000000000..2537f5c09dd00a7e8659cea0baafd13971af5bfd --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/detail-791a1977.css @@ -0,0 +1 @@ +.show-stable-info[data-v-f2716d1e]{position:absolute;left:165px;padding:5px 10px;background-color:#f4f4f5;color:#909399;border-radius:4px;border:1px solid #e9e9eb}[data-v-f2716d1e] .uni-forms-item__content{display:flex;align-items:center}.uni-button-group uni-button[data-v-f2716d1e]{margin-left:15px}.uni-button-group uni-button[data-v-f2716d1e]:first-child{margin-left:0} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/detail-ec4ffb87.css b/alpha/admin/unpackage/dist/build/h5/assets/detail-ec4ffb87.css new file mode 100644 index 0000000000000000000000000000000000000000..6dcb5ad22a15ba10cb20a303317f423a3d215ea4 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/detail-ec4ffb87.css @@ -0,0 +1 @@ +.uni-stat-panel[data-v-d581af0c]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/download-excel.9236b5ca.js b/alpha/admin/unpackage/dist/build/h5/assets/download-excel.9236b5ca.js new file mode 100644 index 0000000000000000000000000000000000000000..71532d6f50472f9f1c6ea72bf64d33c73d8c4a00 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/download-excel.9236b5ca.js @@ -0,0 +1 @@ +import{_ as e,o as t,e as o,C as a,d as n,t as r}from"./index-389238f5.js";function s(e,t,o){var a,n,r=window,i="application/octet-stream",l=o||i,d=e,c=!t&&!o&&d,h=document.createElement("a"),u=function(e){return String(e)},p=r.Blob||r.MozBlob||r.WebKitBlob||u,f=t||"download";if(p=p.call?p.bind(r):Blob,"true"===String(this)&&(l=(d=[d,l])[0],d=d[1]),c&&c.length<2048&&(f=c.split("/").pop().split("?")[0],h.href=c,-1!==h.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(e){s(e.target.response,f,i)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(d)){if(!(d.length>2096103.424&&p!==u))return navigator.msSaveBlob?navigator.msSaveBlob(x(d),f):w(d);l=(d=x(d)).type||i}else if(/([\x80-\xff])/.test(d)){for(var y=0,b=new Uint8Array(d.length),g=b.length;ynull},exportFields:{type:Object,default:()=>null},defaultValue:{type:String,required:!1,default:""},header:{default:null},footer:{default:null},name:{type:String,default:"data.xls"},fetch:{type:Function},meta:{type:Array,default:()=>[]},worksheet:{type:String,default:"Sheet1"},beforeGenerate:{type:Function},beforeFinish:{type:Function},escapeCsv:{type:Boolean,default:!0},stringifyLongNum:{type:Boolean,default:!1}},computed:{idName:()=>"export_"+(new Date).getTime(),downloadFields(){return this.fields?this.fields:this.exportFields?this.exportFields:void 0}},methods:{async generate(){"function"==typeof this.beforeGenerate&&await this.beforeGenerate();let e=this.data;if("function"!=typeof this.fetch&&e||(e=await this.fetch()),!e||!e.length)return;let t=this.getProcessedJson(e,this.downloadFields);return"html"===this.type?this.export(this.jsonToXLS(t),this.name.replace(".xls",".html"),"text/html"):"csv"===this.type?this.export(this.jsonToCSV(t),this.name.replace(".xls",".csv"),"application/csv"):this.export(this.jsonToXLS(t),this.name,"application/vnd.ms-excel")},export:async function(e,t,o){let a=this.base64ToBlob(e,o);"function"==typeof this.beforeFinish&&await this.beforeFinish(),s(a,t,o)},jsonToXLS(e){let t="";const o=Object.keys(e[0]).length;let a=this;const n=this.header||this.$attrs.title;n&&(t+=this.parseExtraData(n,'${data}')),t+="";for(let r in e[0])t+=""+r+"";return t+="",t+="",t+="",e.map((function(e,o){t+="";for(let n in e)t+=""+a.preprocessLongNum(a.valueReformattedForMultilines(e[n]))+"";t+=""})),t+="",null!=this.footer&&(t+="",t+=this.parseExtraData(this.footer,'${data}'),t+=""),' \x3c!--[if gte mso 9]>${worksheet}br {mso-data-placement: same-cell;}${table}
'.replace("${table}",t).replace("${worksheet}",this.worksheet)},jsonToCSV(e){let t=this;var o=[];const a=this.header||this.$attrs.title;a&&o.push(this.parseExtraData(a,"${data}\r\n"));for(let n in e[0])o.push(n),o.push(",");return o.pop(),o.push("\r\n"),e.map((function(e){for(let a in e){let n=e[a]+"";t.escapeCsv&&(n='="'+n+'"',n.match(/[,"\n]/)&&(n='"'+n.replace(/\"/g,'""')+'"')),o.push(n),o.push(",")}o.pop(),o.push("\r\n")})),null!=this.footer&&o.push(this.parseExtraData(this.footer,"${data}\r\n")),o.join("")},getProcessedJson(e,t){let o=this.getKeys(e,t),a=[],n=this;return e.map((function(e,t){let r={};for(let a in o){let t=o[a];r[a]=n.getValue(t,e)}a.push(r)})),a},getKeys(e,t){if(t)return t;let o={};for(let a in e[0])o[a]=a;return o},parseExtraData(e,t){let o="";if(Array.isArray(e))for(var a=0;a1?this.getValueFromNestedItem(t,a):this.parseValue(t[o]):t,e.hasOwnProperty("callback")&&(n=this.getValueFromCallback(n,e.callback)),n},valueReformattedForMultilines:e=>"string"==typeof e?e.replace(/\n/gi,"
"):e,preprocessLongNum(e){if(this.stringifyLongNum){if(String(e).startsWith("0x"))return e;if(!isNaN(e)&&""!=e&&(e>99999999999||e<1e-13))return'="'+e+'"'}return e},getValueFromNestedItem(e,t){let o=e;for(let a of t)o&&(o=o[a]);return this.parseValue(o)},getValueFromCallback(e,t){if("function"!=typeof t)return this.defaultValue;const o=t(e);return this.parseValue(o)},parseValue(e){return e||0===e||"boolean"==typeof e?e:this.defaultValue},base64ToBlob(e,t){let o=window.btoa(window.unescape(encodeURIComponent(e))),a=atob(o),n=a.length,r=new Uint8ClampedArray(n);for(;n--;)r[n]=a.charCodeAt(n);return new Blob([r],{type:t})}}},[["render",function(e,s,i,l,d,c){return t(),o("div",{id:c.idName,onClick:s[0]||(s[0]=(...e)=>c.generate&&c.generate(...e))},[a(e.$slots,"default",{},(()=>[n(" Download "+r(i.name),1)]))],8,["id"])}]]);export{i as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/edit-0fb72f18.css b/alpha/admin/unpackage/dist/build/h5/assets/edit-0fb72f18.css new file mode 100644 index 0000000000000000000000000000000000000000..2304207c77a007124d752e74afc2a6c55f4b4ab4 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/edit-0fb72f18.css @@ -0,0 +1 @@ +.icon-modal-box[data-v-8bf98a02]{padding-top:var(--top-window-height)}.icon-modal[data-v-8bf98a02]{width:350px;background-color:#fff;height:500px;overflow-y:scroll}@media screen and (min-width: 768px){.icon-modal-pc[data-v-8bf98a02]{width:600px}}[data-v-8bf98a02] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/edit-1e145b8a.css b/alpha/admin/unpackage/dist/build/h5/assets/edit-1e145b8a.css new file mode 100644 index 0000000000000000000000000000000000000000..72a523929567fd57c3095e2c55f6b56661f5ca90 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/edit-1e145b8a.css @@ -0,0 +1 @@ +.reset-password-btn[data-v-63afe8a5]{line-height:36px;color:#007aff;text-decoration:underline;cursor:pointer}.cancel-reset-password-btn[data-v-63afe8a5]{color:#007aff;padding-right:10px;cursor:pointer}[data-v-63afe8a5] .uni-forms-item__label{width:90px!important}.uni-forms-item-flex-center-x[data-v-63afe8a5]{display:flex;align-items:center;flex-wrap:wrap} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/edit-394f802a.css b/alpha/admin/unpackage/dist/build/h5/assets/edit-394f802a.css new file mode 100644 index 0000000000000000000000000000000000000000..eb288494e792ba714cadd4f263603f19da42f86f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/edit-394f802a.css @@ -0,0 +1 @@ +[data-v-1c97c706] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/edit-72ff78e2.css b/alpha/admin/unpackage/dist/build/h5/assets/edit-72ff78e2.css new file mode 100644 index 0000000000000000000000000000000000000000..f39f66d4936528e780a09a61b93d3286baffed7d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/edit-72ff78e2.css @@ -0,0 +1 @@ +[data-v-6f1dcef2] .uni-forms-item__label{width:90px!important} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/event-451a0e68.css b/alpha/admin/unpackage/dist/build/h5/assets/event-451a0e68.css new file mode 100644 index 0000000000000000000000000000000000000000..4c1454fd0124859fa2c1fdc930c2bb4fab514fad --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/event-451a0e68.css @@ -0,0 +1 @@ +.uni-stat-edit--x[data-v-c61d4bff]{display:flex;justify-content:space-between}.uni-stat-edit--btn[data-v-c61d4bff]{cursor:pointer} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/fieldsMap.565b6b26.js b/alpha/admin/unpackage/dist/build/h5/assets/fieldsMap.565b6b26.js new file mode 100644 index 0000000000000000000000000000000000000000..e8e17aa6eb7a1f683855bee02b963cc2c745c6b7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/fieldsMap.565b6b26.js @@ -0,0 +1 @@ +const t=[{title:"最近发生时间",field:"last_time",tooltip:"",formatter:""},{title:"错误次数",field:"count",tooltip:"相同错误在某时间段内发生的次数"},{title:"错误占比",computed:"count/total_count",field:"count/total_count",formatter:"%",tooltip:"某个错误发生的次数/总错误数"},{title:"平台",field:"platform",formatter:""},{title:"平台版本号",field:"version",tooltip:"原生平台为客户端 SDK 版本号;小程序平台为微信、支付宝、百度等应用的版本号",formatter:""},{title:"错误信息",field:"msg",formatter:""}],e=[{title:"创建时间",field:"create_time",formatter:""},{title:"客户端操作系统",field:"os",formatter:""},{title:"客户端 user-agent 信息",field:"ua",formatter:""}];export{t as f,e as p}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/funnel-98383919.css b/alpha/admin/unpackage/dist/build/h5/assets/funnel-98383919.css new file mode 100644 index 0000000000000000000000000000000000000000..e9fde5435e307056fe056676eafc9659aadd10f1 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/funnel-98383919.css @@ -0,0 +1 @@ +.flex.center[data-v-77807d93]{justify-content:center;align-items:center;color:#666} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/icons-70c51fc1.css b/alpha/admin/unpackage/dist/build/h5/assets/icons-70c51fc1.css new file mode 100644 index 0000000000000000000000000000000000000000..0e1d5b32b48b9d6712b2a8ba1bb9de9ded0acb01 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/icons-70c51fc1.css @@ -0,0 +1 @@ +.icons[data-v-a417ef42]{display:flex;flex-direction:row;flex-wrap:wrap}.icon-item[data-v-a417ef42]{display:flex;width:16.6%;height:120px;font-size:30px;text-align:center;justify-content:center;align-items:center;flex-direction:column}.icon-item[data-v-a417ef42]:hover,.icon-item:hover .icon-text[data-v-a417ef42]{color:#2979ff}.icon-text[data-v-a417ef42]{color:#99a9bf;font-size:12px;text-align:center;height:1em;line-height:1em;margin-top:15px}@media only screen and (max-width: 500px){.icon-item[data-v-a417ef42]{width:33.3%}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/icons.ee1da151.js b/alpha/admin/unpackage/dist/build/h5/assets/icons.ee1da151.js new file mode 100644 index 0000000000000000000000000000000000000000..bdc12ff22d29bb5696578243327f4b2a90eb9979 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/icons.ee1da151.js @@ -0,0 +1 @@ +import{_ as l,aj as e,s as a,y as i,o,c as s,w as d,a as n,d as t,t as r,e as c,r as f,F as u,i as p,z as m,p as h}from"./index-389238f5.js";const g={menu_id:{rules:[{required:!0},{format:"string"}]},name:{rules:[{required:!0},{format:"string"}]},icon:{rules:[{format:"string"}]},url:{rules:[{format:"string"},{validateFunction:function(l,e,a,i){return""!==e&&-1===e.indexOf("http")&&0!==e.indexOf("/")&&i("URL必须以/开头,如/pages/index/index"),!0}}]},sort:{rules:[{format:"int"}]},parent_id:{rules:[{format:"string"}]},permission:{rules:[{format:"array"}]},enable:{rules:[{format:"bool"}]}},w=["pulldown","refreshempty","back","forward","more","more-filled","scan","qq","weibo","weixin","pengyouquan","loop","refresh","refresh-filled","arrowthindown","arrowthinleft","arrowthinright","arrowthinup","undo-filled","undo","redo","redo-filled","bars","chatboxes","camera","chatboxes-filled","camera-filled","cart-filled","cart","checkbox-filled","checkbox","arrowleft","arrowdown","arrowright","smallcircle-filled","arrowup","circle","eye-filled","eye-slash-filled","eye-slash","eye","flag-filled","flag","gear-filled","reload","gear","hand-thumbsdown-filled","hand-thumbsdown","hand-thumbsup-filled","heart-filled","hand-thumbsup","heart","home","info","home-filled","info-filled","circle-filled","chat-filled","chat","mail-open-filled","email-filled","mail-open","email","checkmarkempty","list","locked-filled","locked","map-filled","map-pin","map-pin-ellipse","map","minus-filled","mic-filled","minus","micoff","mic","clear","smallcircle","close","closeempty","paperclip","paperplane","paperplane-filled","person-filled","contact-filled","person","contact","images-filled","phone","images","image","image-filled","location-filled","location","plus-filled","plus","plusempty","help-filled","help","navigate-filled","navigate","mic-slash-filled","search","settings","sound","sound-filled","spinner-cycle","download-filled","personadd-filled","videocam-filled","personadd","upload","upload-filled","starhalf","star-filled","star","trash","phone-filled","compose","videocam","trash-filled","download","chatbubble-filled","chatbubble","cloud-download","cloud-upload-filled","cloud-upload","cloud-download-filled","headphones","shop"];const b=l({data:()=>({icons:w}),props:{tag:{type:Boolean,default:!0},fixWindow:{type:Boolean,default:!0}},methods:{setClipboardData(l,o){let s="uni-icons-"+o;this.tag&&"tag"===l&&(s=''),e({data:s,success(l){a({icon:"none",title:"复制 "+s+" 成功!"})},fail(l){i({content:"复制 "+s+" 失败!",showCancel:!1})}})}}},[["render",function(l,e,a,i,g,w){const b=p,y=h;return o(),s(b,null,{default:d((()=>[n(b,{class:"uni-header"},{default:d((()=>[n(b,{class:"uni-group"},{default:d((()=>[n(b,{class:"uni-title"},{default:d((()=>[t(r(l.$t("demo.icons.title"))+"(uni-icons)",1)])),_:1}),n(b,{class:"uni-sub-title"},{default:d((()=>[t(r(l.$t("demo.icons.describle")),1)])),_:1})])),_:1})])),_:1}),n(b,{class:"uni-container"},{default:d((()=>[n(b,{class:"icons"},{default:d((()=>[(o(!0),c(u,null,f(g.icons,((l,e)=>(o(),s(b,{key:e,class:"icon-item pointer"},{default:d((()=>[n(b,{onClick:e=>w.setClipboardData("tag",l),class:m("uni-icons-"+l)},null,8,["onClick","class"]),n(y,{onClick:e=>w.setClipboardData("class",l),class:"icon-text"},{default:d((()=>[t("uni-icons-"+r(l),1)])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-a417ef42"]]);export{b as I,g as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/index-389238f5.js b/alpha/admin/unpackage/dist/build/h5/assets/index-389238f5.js new file mode 100644 index 0000000000000000000000000000000000000000..41396c231901d489c5238b2a4f20a835c4e340e9 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/index-389238f5.js @@ -0,0 +1,31 @@ +function e(e,t){const n=Object.create(null),i=e.split(",");for(let a=0;a!!n[e.toLowerCase()]:e=>!!n[e]}function t(e){if(k(e)){const n={};for(let i=0;i{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const n=/;(?![^(]*\))/g,i=/:([^]+)/,a=/\/\*.*?\*\//gs;function o(e){const t={};return e.replace(a,"").split(n).forEach((e=>{if(e){const n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function s(e){let t="";if(C(e))t=e;else if(k(e))for(let n=0;nC(e)?e:null==e?"":k(e)||D(e)&&(e.toString===I||!S(e.toString))?JSON.stringify(e,u,2):String(e),u=(e,t)=>t&&t.__v_isRef?u(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:T(t)?{[`Set(${t.size})`]:[...t.values()]}:!D(t)||k(t)||O(t)?t:String(t),d={},h=[],p=()=>{},f=()=>!1,m=/^on[^a-z]/,g=e=>m.test(e),y=e=>e.startsWith("onUpdate:"),_=Object.assign,v=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},b=Object.prototype.hasOwnProperty,w=(e,t)=>b.call(e,t),k=Array.isArray,x=e=>"[object Map]"===M(e),T=e=>"[object Set]"===M(e),S=e=>"function"==typeof e,C=e=>"string"==typeof e,E=e=>"symbol"==typeof e,D=e=>null!==e&&"object"==typeof e,P=e=>D(e)&&S(e.then)&&S(e.catch),I=Object.prototype.toString,M=e=>I.call(e),O=e=>"[object Object]"===M(e),$=e=>C(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},R=/-(\w)/g,N=L((e=>e.replace(R,((e,t)=>t?t.toUpperCase():"")))),B=/\B([A-Z])/g,F=L((e=>e.replace(B,"-$1").toLowerCase())),j=L((e=>e.charAt(0).toUpperCase()+e.slice(1))),V=L((e=>e?`on${j(e)}`:"")),W=(e,t)=>!Object.is(e,t),q=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},H=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let z;const Y=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view"].map((e=>"uni-"+e));const X="\n",K="UNI_LOCALE",G="#007aff",J="data",Q=/^([a-z-]+:)?\/\//i,Z=/^data:.*,.*/,ee="onShow",te="onHide",ne="onError",ie="onThemeChange",ae="onPageNotFound",oe="onUnhandledRejection",se="onLoad",re="onUnload",le="onInit",ce="onSaveExitState",ue="onResize",de="onBackPress",he="onPageScroll",pe="onTabItemTap",fe="onReachBottom",me="onPullDownRefresh",ge="onShareTimeline",ye="onAddToFavorites",_e="onShareAppMessage",ve="onNavigationBarButtonTap",be="onNavigationBarChange",we="onNavigationBarSearchInputClicked",ke="onNavigationBarSearchInputChanged",xe="onNavigationBarSearchInputConfirmed",Te="onNavigationBarSearchInputFocusChanged",Se="onAppEnterForeground",Ce="onAppEnterBackground",Ee="onWebInvokeAppService";function De(e){return e&&(e.appContext?e.proxy:e)}function Pe(e){if(!e)return;let t=e.type.name;for(;t&&(n=F(t),-1!==Y.indexOf("uni-"+n.replace("v-uni-","")));)t=(e=e.parent).type.name;var n;return e.proxy}function Ie(e){return 1===e.nodeType}function Me(e,t=!1){const{vnode:n}=e;if(Ie(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:i}=e;if(16&i.shapeFlag){const e=i.children.filter((e=>e.el&&Ie(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}function Oe(e){return 0===e.indexOf("/")}function $e(e){return Oe(e)?e:"/"+e}function Ae(e,t){for(const n in t)e.style[n]=t[n]}function Le(e,t=null){let n;return(...i)=>(e&&(n=e.apply(t,i),e=null),n)}const Re=e=>e>9?e:"0"+e;function Ne({date:e=new Date,mode:t="date"}){return"time"===t?Re(e.getHours())+":"+Re(e.getMinutes()):e.getFullYear()+"-"+Re(e.getMonth()+1)+"-"+Re(e.getDate())}function Be(e){return N(e.substring(5))}const Fe=Le((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[Be(e)]=n}t.call(this,e,n)};const n=e.removeAttribute;e.removeAttribute=function(e){this.__uniDataset&&e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[Be(e)],n.call(this,e)}}));function je(e){return _({},e.dataset,e.__uniDataset)}const Ve=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function We(e){return{passive:e}}function qe(e){const{id:t,offsetTop:n,offsetLeft:i}=e;return{id:t,dataset:je(e),offsetTop:n,offsetLeft:i}}function Ue(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function He(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=Ue(e[n])}catch(Kw){t[n]=e[n]}})),t}const ze=/\+/g;function Ye(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;ie.apply(this,arguments);a=i(o,t)};return o.cancel=function(){n(a)},o}class Ke{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach((e=>{this.on(e,t[e])}))}emit(e,...t){const n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach((e=>{e.fn.apply(e.fn,t)})),this.listener[e]=n.filter((e=>"once"!==e.type))}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const n=this.listener[e];if(n)if(t)for(let i=0;i{if(S(e._component.onError))return t(e)})),tt=function(){};tt.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function a(){i.off(e,a),t.apply(n,arguments)}return a._=t,this.on(e,a,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=n.length;i{let s=e[o];a[o]=(()=>{if(O(s))return at(s,t,n);if(k(s))return s.map((e=>O(e)?at(e,t,n):e));if(C(s)&&s.startsWith("@")){const t=s.replace("@","");let n=i[t]||s;switch(o){case"titleColor":n="black"===n?"#000000":"#ffffff";break;case"borderStyle":n=(e=n)&&e in it?it[e]:e}return n}var e;return s})()})),a):e}let ot;class st{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ot,!e&&ot&&(this.index=(ot.scopes||(ot.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ot;try{return ot=this,e()}finally{ot=t}}}on(){ot=this}off(){ot=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ct=e=>(e.w&pt)>0,ut=e=>(e.n&pt)>0,dt=new WeakMap;let ht=0,pt=1;let ft;const mt=Symbol(""),gt=Symbol("");class yt{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ot){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ft,t=vt;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ft,ft=this,vt=!0,pt=1<<++ht,ht<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{("length"===n||n>=e)&&r.push(t)}))}else switch(void 0!==n&&r.push(s.get(n)),t){case"add":k(e)?$(n)&&r.push(s.get("length")):(r.push(s.get(mt)),x(e)&&r.push(s.get(gt)));break;case"delete":k(e)||(r.push(s.get(mt)),x(e)&&r.push(s.get(gt)));break;case"set":x(e)&&r.push(s.get(mt))}if(1===r.length)r[0]&&Ct(r[0]);else{const e=[];for(const t of r)t&&e.push(...t);Ct(lt(e))}}function Ct(e,t){const n=k(e)?e:[...e];for(const i of n)i.computed&&Et(i);for(const i of n)i.computed||Et(i)}function Et(e,t){(e!==ft||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Dt=e("__proto__,__v_isRef,__isVue"),Pt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(E)),It=Rt(),Mt=Rt(!1,!0),Ot=Rt(!0),$t=At();function At(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=wn(this);for(let t=0,a=this.length;t{e[t]=function(...e){wt();const n=wn(this)[t].apply(this,e);return kt(),n}})),e}function Lt(e){const t=wn(this);return xt(t,0,e),t.hasOwnProperty(e)}function Rt(e=!1,t=!1){return function(n,i,a){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_isShallow"===i)return t;if("__v_raw"===i&&a===(e?t?hn:dn:t?un:cn).get(n))return n;const o=k(n);if(!e){if(o&&w($t,i))return Reflect.get($t,i,a);if("hasOwnProperty"===i)return Lt}const s=Reflect.get(n,i,a);return(E(i)?Pt.has(i):Dt(i))?s:(e||xt(n,0,i),t?s:En(s)?o&&$(i)?s:s.value:D(s)?e?mn(s):fn(s):s)}}function Nt(e=!1){return function(t,n,i,a){let o=t[n];if(_n(o)&&En(o)&&!En(i))return!1;if(!e&&(vn(i)||_n(i)||(o=wn(o),i=wn(i)),!k(t)&&En(o)&&!En(i)))return o.value=i,!0;const s=k(t)&&$(n)?Number(n)!0,deleteProperty:(e,t)=>!0},jt=_({},Bt,{get:Mt,set:Nt(!0)}),Vt=e=>e,Wt=e=>Reflect.getPrototypeOf(e);function qt(e,t,n=!1,i=!1){const a=wn(e=e.__v_raw),o=wn(t);n||(t!==o&&xt(a,0,t),xt(a,0,o));const{has:s}=Wt(a),r=i?Vt:n?Tn:xn;return s.call(a,t)?r(e.get(t)):s.call(a,o)?r(e.get(o)):void(e!==a&&e.get(t))}function Ut(e,t=!1){const n=this.__v_raw,i=wn(n),a=wn(e);return t||(e!==a&&xt(i,0,e),xt(i,0,a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ht(e,t=!1){return e=e.__v_raw,!t&&xt(wn(e),0,mt),Reflect.get(e,"size",e)}function zt(e){e=wn(e);const t=wn(this);return Wt(t).has.call(t,e)||(t.add(e),St(t,"add",e,e)),this}function Yt(e,t){t=wn(t);const n=wn(this),{has:i,get:a}=Wt(n);let o=i.call(n,e);o||(e=wn(e),o=i.call(n,e));const s=a.call(n,e);return n.set(e,t),o?W(t,s)&&St(n,"set",e,t):St(n,"add",e,t),this}function Xt(e){const t=wn(this),{has:n,get:i}=Wt(t);let a=n.call(t,e);a||(e=wn(e),a=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return a&&St(t,"delete",e,void 0),o}function Kt(){const e=wn(this),t=0!==e.size,n=e.clear();return t&&St(e,"clear",void 0,void 0),n}function Gt(e,t){return function(n,i){const a=this,o=a.__v_raw,s=wn(o),r=t?Vt:e?Tn:xn;return!e&&xt(s,0,mt),o.forEach(((e,t)=>n.call(i,r(e),r(t),a)))}}function Jt(e,t,n){return function(...i){const a=this.__v_raw,o=wn(a),s=x(o),r="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=a[e](...i),u=n?Vt:t?Tn:xn;return!t&&xt(o,0,l?gt:mt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:r?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Qt(e){return function(...t){return"delete"!==e&&this}}function Zt(){const e={get(e){return qt(this,e)},get size(){return Ht(this)},has:Ut,add:zt,set:Yt,delete:Xt,clear:Kt,forEach:Gt(!1,!1)},t={get(e){return qt(this,e,!1,!0)},get size(){return Ht(this)},has:Ut,add:zt,set:Yt,delete:Xt,clear:Kt,forEach:Gt(!1,!0)},n={get(e){return qt(this,e,!0)},get size(){return Ht(this,!0)},has(e){return Ut.call(this,e,!0)},add:Qt("add"),set:Qt("set"),delete:Qt("delete"),clear:Qt("clear"),forEach:Gt(!0,!1)},i={get(e){return qt(this,e,!0,!0)},get size(){return Ht(this,!0)},has(e){return Ut.call(this,e,!0)},add:Qt("add"),set:Qt("set"),delete:Qt("delete"),clear:Qt("clear"),forEach:Gt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=Jt(a,!1,!1),n[a]=Jt(a,!0,!1),t[a]=Jt(a,!1,!0),i[a]=Jt(a,!0,!0)})),[e,n,t,i]}const[en,tn,nn,an]=Zt();function on(e,t){const n=t?e?an:nn:e?tn:en;return(t,i,a)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(w(n,i)&&i in t?n:t,i,a)}const sn={get:on(!1,!1)},rn={get:on(!1,!0)},ln={get:on(!0,!1)},cn=new WeakMap,un=new WeakMap,dn=new WeakMap,hn=new WeakMap;function pn(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>M(e).slice(8,-1))(e))}function fn(e){return _n(e)?e:gn(e,!1,Bt,sn,cn)}function mn(e){return gn(e,!0,Ft,ln,dn)}function gn(e,t,n,i,a){if(!D(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=a.get(e);if(o)return o;const s=pn(e);if(0===s)return e;const r=new Proxy(e,2===s?i:n);return a.set(e,r),r}function yn(e){return _n(e)?yn(e.__v_raw):!(!e||!e.__v_isReactive)}function _n(e){return!(!e||!e.__v_isReadonly)}function vn(e){return!(!e||!e.__v_isShallow)}function bn(e){return yn(e)||_n(e)}function wn(e){const t=e&&e.__v_raw;return t?wn(t):e}function kn(e){return U(e,"__v_skip",!0),e}const xn=e=>D(e)?fn(e):e,Tn=e=>D(e)?mn(e):e;function Sn(e){vt&&ft&&Tt((e=wn(e)).dep||(e.dep=lt()))}function Cn(e,t){const n=(e=wn(e)).dep;n&&Ct(n)}function En(e){return!(!e||!0!==e.__v_isRef)}function Dn(e){return In(e,!1)}function Pn(e){return In(e,!0)}function In(e,t){return En(e)?e:new Mn(e,t)}class Mn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:wn(e),this._value=t?e:xn(e)}get value(){return Sn(this),this._value}set value(e){const t=this.__v_isShallow||vn(e)||_n(e);e=t?e:wn(e),W(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:xn(e),Cn(this))}}function On(e){return En(e)?e.value:e}const $n={get:(e,t,n)=>On(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const a=e[t];return En(a)&&!En(n)?(a.value=n,!0):Reflect.set(e,t,n,i)}};function An(e){return yn(e)?e:new Proxy(e,$n)}var Ln;class Rn{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[Ln]=!1,this._dirty=!0,this.effect=new yt(e,(()=>{this._dirty||(this._dirty=!0,Cn(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=wn(this);return Sn(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Nn(e,t,n,i){let a;try{a=i?e(...i):e()}catch(o){Fn(o,t,n)}return a}function Bn(e,t,n,i){if(S(e)){const a=Nn(e,t,n,i);return a&&P(a)&&a.catch((e=>{Fn(e,t,n)})),a}const a=[];for(let o=0;o>>1;ei(Wn[i])ei(e)-ei(t))),zn=0;znnull==e.id?1/0:e.id,ti=(e,t)=>{const n=ei(e)-ei(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ni(e){Vn=!1,jn=!0,Wn.sort(ti);try{for(qn=0;qnC(e)?e.trim():e))),t&&(a=n.map(H))}let r,l=i[r=V(t)]||i[r=V(N(t))];!l&&o&&(l=i[r=V(F(t))]),l&&Bn(l,e,6,ai(e,l,a));const c=i[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,Bn(c,e,6,ai(e,c,a))}}function ai(e,t,n){if(1!==n.length)return n;if(S(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const i=n[0];if(i&&w(i,"type")&&w(i,"timeStamp")&&w(i,"target")&&w(i,"currentTarget")&&w(i,"detail")){const t=e.proxy,i=t.$gcd(t,!0);i&&n.push(i)}return n}function oi(e,t,n=!1){const i=t.emitsCache,a=i.get(e);if(void 0!==a)return a;const o=e.emits;let s={},r=!1;if(!S(e)){const i=e=>{const n=oi(e,t,!0);n&&(r=!0,_(s,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return o||r?(k(o)?o.forEach((e=>s[e]=null)):_(s,o),D(e)&&i.set(e,s),s):(D(e)&&i.set(e,null),null)}function si(e,t){return!(!e||!g(t))&&(t=t.slice(2).replace(/Once$/,""),w(e,t[0].toLowerCase()+t.slice(1))||w(e,F(t))||w(e,t))}let ri=null,li=null;function ci(e){const t=ri;return ri=e,li=e&&e.type.__scopeId||null,t}function ui(e,t=ri,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&po(-1);const a=ci(t);let o;try{o=e(...n)}finally{ci(a),i._d&&po(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function di(e){const{type:t,vnode:n,proxy:i,withProxy:a,props:o,propsOptions:[s],slots:r,attrs:l,emit:c,render:u,renderCache:d,data:h,setupState:p,ctx:f,inheritAttrs:m}=e;let g,_;const v=ci(e);try{if(4&n.shapeFlag){const e=a||i;g=Eo(u.call(e,e,d,o,p,h,f)),_=l}else{const e=t;0,g=Eo(e.length>1?e(o,{attrs:l,slots:r,emit:c}):e(o,null)),_=t.props?l:hi(l)}}catch(w){lo.length=0,Fn(w,e,1),g=xo(so)}let b=g;if(_&&!1!==m){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(s&&e.some(y)&&(_=pi(_,s)),b=To(b,_))}return n.dirs&&(b=To(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,ci(v),g}const hi=e=>{let t;for(const n in e)("class"===n||"style"===n||g(n))&&((t||(t={}))[n]=e[n]);return t},pi=(e,t)=>{const n={};for(const i in e)y(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function fi(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let a=0;ae.__isSuspense;function gi(e,t){if(Ao){let n=Ao.provides;const i=Ao.parent&&Ao.parent.provides;i===n&&(n=Ao.provides=Object.create(i)),n[e]=t,"app"===Ao.type.mpType&&Ao.appContext.app.provide(e,t)}else;}function yi(e,t,n=!1){const i=Ao||ri;if(i){const a=null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&S(t)?t.call(i.proxy):t}}function _i(e,t){return wi(e,null,t)}const vi={};function bi(e,t,n){return wi(e,t,n)}function wi(e,t,{immediate:n,deep:i,flush:a,onTrack:o,onTrigger:s}=d){const r=ot===(null==Ao?void 0:Ao.scope)?Ao:null;let l,c,u=!1,h=!1;if(En(e)?(l=()=>e.value,u=vn(e)):yn(e)?(l=()=>e,i=!0):k(e)?(h=!0,u=e.some((e=>yn(e)||vn(e))),l=()=>e.map((e=>En(e)?e.value:yn(e)?Ti(e):S(e)?Nn(e,r,2):void 0))):l=S(e)?t?()=>Nn(e,r,2):()=>{if(!r||!r.isUnmounted)return c&&c(),Bn(e,r,3,[m])}:p,t&&i){const e=l;l=()=>Ti(e())}let f,m=e=>{c=b.onStop=()=>{Nn(e,r,4)}};if(Fo){if(m=p,t?n&&Bn(t,r,3,[l(),h?[]:void 0,m]):l(),"sync"!==a)return p;{const e=Yo();f=e.__watcherHandles||(e.__watcherHandles=[])}}let g=h?new Array(e.length).fill(vi):vi;const y=()=>{if(b.active)if(t){const e=b.run();(i||u||(h?e.some(((e,t)=>W(e,g[t]))):W(e,g)))&&(c&&c(),Bn(t,r,3,[e,g===vi?void 0:h&&g[0]===vi?[]:g,m]),g=e)}else b.run()};let _;y.allowRecurse=!!t,"sync"===a?_=y:"post"===a?_=()=>eo(y,r&&r.suspense):(y.pre=!0,r&&(y.id=r.uid),_=()=>Gn(y));const b=new yt(l,_);t?n?y():g=b.run():"post"===a?eo(b.run.bind(b),r&&r.suspense):b.run();const w=()=>{b.stop(),r&&r.scope&&v(r.scope.effects,b)};return f&&f.push(w),w}function ki(e,t,n){const i=this.proxy,a=C(e)?e.includes(".")?xi(i,e):()=>i[e]:e.bind(i,i);let o;S(t)?o=t:(o=t.handler,n=t);const s=Ao;Ro(this);const r=wi(a,o.bind(i),n);return s?Ro(s):No(),r}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ti(e,t)}));else if(O(e))for(const n in e)Ti(e[n],t);return e}const Si=[Function,Array],Ci={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Si,onEnter:Si,onAfterEnter:Si,onEnterCancelled:Si,onBeforeLeave:Si,onLeave:Si,onAfterLeave:Si,onLeaveCancelled:Si,onBeforeAppear:Si,onAppear:Si,onAfterAppear:Si,onAppearCancelled:Si},Ei={name:"BaseTransition",props:Ci,setup(e,{slots:t}){const n=Lo(),i=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ta((()=>{e.isMounted=!0})),aa((()=>{e.isUnmounting=!0})),e}();let a;return()=>{const o=t.default&&$i(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1)for(const e of o)if(e.type!==so){s=e;break}const r=wn(e),{mode:l}=r;if(i.isLeaving)return Ii(s);const c=Mi(s);if(!c)return Ii(s);const u=Pi(c,r,i,n);Oi(c,u);const d=n.subTree,h=d&&Mi(d);let p=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===a?a=e:e!==a&&(a=e,p=!0)}if(h&&h.type!==so&&(!_o(c,h)||p)){const e=Pi(h,r,i,n);if(Oi(h,e),"out-in"===l)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&n.update()},Ii(s);"in-out"===l&&c.type!==so&&(e.delayLeave=(e,t,n)=>{Di(i,h)[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function Di(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Pi(e,t,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:r,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:y,onAppearCancelled:_}=t,v=String(e.key),b=Di(n,e),w=(e,t)=>{e&&Bn(e,i,9,t)},x=(e,t)=>{const n=t[1];w(e,t),k(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let i=r;if(!n.isMounted){if(!a)return;i=m||r}t._leaveCb&&t._leaveCb(!0);const o=b[v];o&&_o(e,o)&&o.el._leaveCb&&o.el._leaveCb(),w(i,[t])},enter(e){let t=l,i=c,o=u;if(!n.isMounted){if(!a)return;t=g||l,i=y||c,o=_||u}let s=!1;const r=e._enterCb=t=>{s||(s=!0,w(t?o:i,[e]),T.delayedLeave&&T.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,r]):r()},leave(t,i){const a=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();w(d,[t]);let o=!1;const s=t._leaveCb=n=>{o||(o=!0,i(),w(n?f:p,[t]),t._leaveCb=void 0,b[a]===e&&delete b[a])};b[a]=e,h?x(h,[t,s]):s()},clone:e=>Pi(e,t,n,i)};return T}function Ii(e){if(Bi(e))return(e=To(e)).children=null,e}function Mi(e){return Bi(e)?e.children?e.children[0]:void 0:e}function Oi(e,t){6&e.shapeFlag&&e.component?Oi(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $i(e,t=!1,n){let i=[],a=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;function Ri(e){S(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:a=200,timeout:o,suspensible:s=!0,onError:r}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),r)return new Promise(((t,n)=>{r(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return Ai({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=Ao;if(l)return()=>Ni(l,e);const t=t=>{c=null,Fn(t,e,13,!i)};if(s&&e.suspense||Fo)return d().then((t=>()=>Ni(t,e))).catch((e=>(t(e),()=>i?xo(i,{error:e}):null)));const r=Dn(!1),u=Dn(),h=Dn(!!a);return a&&setTimeout((()=>{h.value=!1}),a),null!=o&&setTimeout((()=>{if(!r.value&&!u.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),u.value=e}}),o),d().then((()=>{r.value=!0,e.parent&&Bi(e.parent.vnode)&&Gn(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>r.value&&l?Ni(l,e):u.value&&i?xo(i,{error:u.value}):n&&!h.value?xo(n):void 0}})}function Ni(e,t){const{ref:n,props:i,children:a,ce:o}=t.vnode,s=xo(e,i,a);return s.ref=n,s.ce=o,delete t.vnode.ce,s}const Bi=e=>e.type.__isKeepAlive;class Fi{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:i}=this,a=t.get(e);if(a)n.delete(e),n.add(e);else if(n.add(e),i&&n.size>i){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return a}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const ji={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=Lo(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const a=e.cache||new Fi(e.max);a.pruneCacheEntry=s;let o=null;function s(t){var i;!o||!_o(t,o)||"key"===e.matchBy&&t.key!==o.key?(Yi(i=t),u(i,n,r,!0)):o&&Yi(o)}const r=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=i,h=d("div");function p(t){a.forEach(((n,i)=>{const o=Ki(n,e.matchBy);!o||t&&t(o)||(a.delete(i),s(n))}))}i.activate=(e,t,n,i,a)=>{const o=e.component;if(o.ba){const e=o.isDeactivated;o.isDeactivated=!1,q(o.ba),o.isDeactivated=e}c(e,t,n,0,r),l(o.vnode,e,t,n,o,r,i,e.slotScopeIds,a),eo((()=>{o.isDeactivated=!1,o.a&&q(o.a);const t=e.props&&e.props.onVnodeMounted;t&&Mo(t,o.parent,e)}),r)},i.deactivate=e=>{const t=e.component;t.bda&&Gi(t.bda),c(e,h,null,1,r),eo((()=>{t.bda&&Ji(t.bda),t.da&&q(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Mo(n,t.parent,e),t.isDeactivated=!0}),r)},bi((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>Wi(e,t))),t&&p((e=>!Wi(t,e)))}),{flush:"post",deep:!0});let f=null;const m=()=>{null!=f&&a.set(f,Xi(n.subTree))};return ta(m),ia(m),aa((()=>{a.forEach(((t,i)=>{a.delete(i),s(t);const{subTree:o,suspense:r}=n,l=Xi(o);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&q(l.component.bda),Yi(l);const e=l.component.da;e&&eo(e,r)}}))})),()=>{if(f=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return o=null,n;if(!yo(i)||!(4&i.shapeFlag)&&!mi(i.type))return o=null,i;let s=Xi(i);const r=s.type,l=Ki(s,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!Wi(c,l))||u&&l&&Wi(u,l))return o=s,i;const d=null==s.key?r:s.key,h=a.get(d);return s.el&&(s=To(s),mi(i.type)&&(i.ssContent=s)),f=d,h&&(s.el=h.el,s.component=h.component,s.transition&&Oi(s,s.transition),s.shapeFlag|=512),s.shapeFlag|=256,o=s,mi(i.type)?i:s}}},Vi=ji;function Wi(e,t){return k(e)?e.some((e=>Wi(e,t))):C(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function qi(e,t){Hi(e,"a",t)}function Ui(e,t){Hi(e,"da",t)}function Hi(e,t,n=Ao){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(i.__called=!1,Qi(t,i,n),n){let e=n.parent;for(;e&&e.parent;)Bi(e.parent.vnode)&&zi(i,t,n,e),e=e.parent}}function zi(e,t,n,i){const a=Qi(t,e,i,!0);oa((()=>{v(i[t],a)}),n)}function Yi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Xi(e){return mi(e.type)?e.ssContent:e}function Ki(e,t){if("name"===t){const t=e.type;return qo(Li(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Gi(e){for(let t=0;te.__called=!1))}function Qi(e,t,n=Ao,i=!1){if(n){if(a=e,Ge.indexOf(a)>-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return Je.indexOf(e)>-1}(e))){const i=n.proxy;Bn(t.bind(i),n,e,se===e?[i.$page.options]:[])}}const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;wt(),Ro(n);const a=Bn(t,n,e,i);return No(),kt(),a});return i?o.unshift(s):o.push(s),s}var a}const Zi=e=>(t,n=Ao)=>(!Fo||"sp"===e)&&Qi(e,((...e)=>t(...e)),n),ea=Zi("bm"),ta=Zi("m"),na=Zi("bu"),ia=Zi("u"),aa=Zi("bum"),oa=Zi("um"),sa=Zi("sp"),ra=Zi("rtg"),la=Zi("rtc");function ca(e,t=Ao){Qi("ec",e,t)}function ua(e,t){const n=ri;if(null===n)return e;const i=Wo(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let o=0;ot(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);a=new Array(n.length);for(let i=0,s=n.length;i{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function ba(e,t,n={},i,a){if(ri.isCE||ri.parent&&Li(ri.parent)&&ri.parent.isCE)return"default"!==t&&(n.name=t),xo("slot",n,i&&i());let o=e[t];o&&o._c&&(o._d=!1),uo();const s=o&&wa(o(n)),r=go(ao,{key:n.key||s&&s.key||`_${t}`},s||(i?i():[]),s&&1===e._?64:-2);return!a&&r.scopeId&&(r.slotScopeIds=[r.scopeId+"-s"]),o&&o._c&&(o._d=!0),r}function wa(e){return e.some((e=>!yo(e)||e.type!==so&&!(e.type===ao&&!wa(e.children))))?e:null}const ka=e=>e?Bo(e)?Wo(e)||e.proxy:ka(e.parent):null,xa=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ka(e.parent),$root:e=>ka(e.root),$emit:e=>e.emit,$options:e=>Ia(e),$forceUpdate:e=>e.f||(e.f=()=>Gn(e.update)),$nextTick:e=>e.n||(e.n=Kn.bind(e.proxy)),$watch:e=>ki.bind(e)}),Ta=(e,t)=>e!==d&&!e.__isScriptSetup&&w(e,t),Sa={get({_:e},t){const{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:r,appContext:l}=e;let c;if("$"!==t[0]){const r=s[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(Ta(i,t))return s[t]=1,i[t];if(a!==d&&w(a,t))return s[t]=2,a[t];if((c=e.propsOptions[0])&&w(c,t))return s[t]=3,o[t];if(n!==d&&w(n,t))return s[t]=4,n[t];Ca&&(s[t]=0)}}const u=xa[t];let h,p;return u?("$attrs"===t&&xt(e,0,t),u(e)):(h=r.__cssModules)&&(h=h[t])?h:n!==d&&w(n,t)?(s[t]=4,n[t]):(p=l.config.globalProperties,w(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:i,setupState:a,ctx:o}=e;return Ta(a,t)?(a[t]=n,!0):i!==d&&w(i,t)?(i[t]=n,!0):!w(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,propsOptions:o}},s){let r;return!!n[s]||e!==d&&w(e,s)||Ta(t,s)||(r=o[0])&&w(r,s)||w(i,s)||w(xa,s)||w(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:w(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Ca=!0;function Ea(e){const t=Ia(e),n=e.proxy,i=e.ctx;Ca=!1,t.beforeCreate&&Da(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:s,watch:r,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:f,updated:m,activated:g,deactivated:y,beforeDestroy:_,beforeUnmount:v,destroyed:b,unmounted:w,render:x,renderTracked:T,renderTriggered:C,errorCaptured:E,serverPrefetch:P,expose:I,inheritAttrs:M,components:O,directives:$,filters:A}=t;if(c&&function(e,t,n=p,i=!1){k(e)&&(e=Aa(e));for(const a in e){const n=e[a];let o;o=D(n)?"default"in n?yi(n.from||a,n.default,!0):yi(n.from||a):yi(n),En(o)&&i?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[a]=o}}(c,i,null,e.appContext.config.unwrapInjectedRef),s)for(const p in s){const e=s[p];S(e)&&(i[p]=e.bind(n))}if(a){const t=a.call(n,n);D(t)&&(e.data=fn(t))}if(Ca=!0,o)for(const k in o){const e=o[k],t=S(e)?e.bind(n,n):S(e.get)?e.get.bind(n,n):p,a=!S(e)&&S(e.set)?e.set.bind(n):p,s=Uo({get:t,set:a});Object.defineProperty(i,k,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(r)for(const p in r)Pa(r[p],i,n,p);if(l){const e=S(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{gi(t,e[t])}))}function L(e,t){k(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Da(u,e,"c"),L(ea,d),L(ta,h),L(na,f),L(ia,m),L(qi,g),L(Ui,y),L(ca,E),L(la,T),L(ra,C),L(aa,v),L(oa,w),L(sa,P),k(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===p&&(e.render=x),null!=M&&(e.inheritAttrs=M),O&&(e.components=O),$&&(e.directives=$);const R=e.appContext.config.globalProperties.$applyOptions;R&&R(t,e,n)}function Da(e,t,n){Bn(k(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Pa(e,t,n,i){const a=i.includes(".")?xi(n,i):()=>n[i];if(C(e)){const n=t[e];S(n)&&bi(a,n)}else if(S(e))bi(a,e.bind(n));else if(D(e))if(k(e))e.forEach((e=>Pa(e,t,n,i)));else{const i=S(e.handler)?e.handler.bind(n):t[e.handler];S(i)&&bi(a,i,e)}}function Ia(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,r=o.get(t);let l;return r?l=r:a.length||n||i?(l={},a.length&&a.forEach((e=>Ma(l,e,s,!0))),Ma(l,t,s)):l=t,D(t)&&o.set(t,l),l}function Ma(e,t,n,i=!1){const{mixins:a,extends:o}=t;o&&Ma(e,o,n,!0),a&&a.forEach((t=>Ma(e,t,n,!0)));for(const s in t)if(i&&"expose"===s);else{const i=Oa[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}const Oa={data:$a,props:Ra,emits:Ra,methods:Ra,computed:Ra,beforeCreate:La,created:La,beforeMount:La,mounted:La,beforeUpdate:La,updated:La,beforeDestroy:La,beforeUnmount:La,destroyed:La,unmounted:La,activated:La,deactivated:La,errorCaptured:La,serverPrefetch:La,components:Ra,directives:Ra,watch:function(e,t){if(!e)return t;if(!t)return e;const n=_(Object.create(null),e);for(const i in t)n[i]=La(e[i],t[i]);return n},provide:$a,inject:function(e,t){return Ra(Aa(e),Aa(t))}};function $a(e,t){return t?e?function(){return _(S(e)?e.call(this,this):e,S(t)?t.call(this,this):t)}:t:e}function Aa(e){if(k(e)){const t={};for(let n=0;n{l=!0;const[n,i]=ja(e,t,!0);_(s,n),i&&r.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!l)return D(e)&&i.set(e,h),h;if(k(o))for(let u=0;u-1,n[1]=i<0||t-1||w(n,"default"))&&r.push(e)}}}const c=[s,r];return D(e)&&i.set(e,c),c}function Va(e){return"$"!==e[0]}function Wa(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function qa(e,t){return Wa(e)===Wa(t)}function Ua(e,t){return k(t)?t.findIndex((t=>qa(t,e))):S(t)&&qa(t,e)?0:-1}const Ha=e=>"_"===e[0]||"$stable"===e,za=e=>k(e)?e.map(Eo):[Eo(e)],Ya=(e,t,n)=>{if(t._n)return t;const i=ui(((...e)=>za(t(...e))),n);return i._c=!1,i},Xa=(e,t,n)=>{const i=e._ctx;for(const a in e){if(Ha(a))continue;const n=e[a];if(S(n))t[a]=Ya(0,n,i);else if(null!=n){const e=za(n);t[a]=()=>e}}},Ka=(e,t)=>{const n=za(t);e.slots.default=()=>n};function Ga(){return{app:null,config:{isNativeTag:f,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ja=0;function Qa(e,t){return function(n,i=null){S(n)||(n=Object.assign({},n)),null==i||D(i)||(i=null);const a=Ga(),o=new Set;let s=!1;const r=a.app={_uid:Ja++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:Xo,get config(){return a.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&S(e.install)?(o.add(e),e.install(r,...t)):S(e)&&(o.add(e),e(r,...t))),r),mixin:e=>(a.mixins.includes(e)||a.mixins.push(e),r),component:(e,t)=>t?(a.components[e]=t,r):a.components[e],directive:(e,t)=>t?(a.directives[e]=t,r):a.directives[e],mount(o,l,c){if(!s){const u=xo(n,i);return u.appContext=a,l&&t?t(u,o):e(u,o,c),s=!0,r._container=o,o.__vue_app__=r,r._instance=u.component,Wo(u.component)||u.component.proxy}},unmount(){s&&(e(null,r._container),delete r._container.__vue_app__)},provide:(e,t)=>(a.provides[e]=t,r)};return r}}function Za(e,t,n,i,a=!1){if(k(e))return void e.forEach(((e,o)=>Za(e,t&&(k(t)?t[o]:t),n,i,a)));if(Li(i)&&!a)return;const o=4&i.shapeFlag?Wo(i.component)||i.component.proxy:i.el,s=a?null:o,{i:r,r:l}=e,c=t&&t.r,u=r.refs===d?r.refs={}:r.refs,h=r.setupState;if(null!=c&&c!==l&&(C(c)?(u[c]=null,w(h,c)&&(h[c]=null)):En(c)&&(c.value=null)),S(l))Nn(l,r,12,[s,u]);else{const t=C(l),i=En(l);if(t||i){const r=()=>{if(e.f){const n=t?w(h,l)?h[l]:u[l]:l.value;a?k(n)&&v(n,o):k(n)?n.includes(o)||n.push(o):t?(u[l]=[o],w(h,l)&&(h[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else t?(u[l]=s,w(h,l)&&(h[l]=s)):i&&(l.value=s,e.k&&(u[e.k]=s))};s?(r.id=-1,eo(r,n)):r()}}}const eo=function(e,t){var n;t&&t.pendingBranch?k(e)?t.effects.push(...e):t.effects.push(e):(k(n=e)?Un.push(...n):Hn&&Hn.includes(n,n.allowRecurse?zn+1:zn)||Un.push(n),Jn())};function to(e){return function(e,t){(z||(z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:i,patchProp:a,forcePatchProp:o,createElement:s,createText:r,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:m,setScopeId:g=p,insertStaticContent:y}=e,v=(e,t,n,i=null,a=null,o=null,s=!1,r=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!_o(e,t)&&(i=te(e),G(e,a,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case oo:b(e,t,n,i);break;case so:k(e,t,n,i);break;case ro:null==e&&x(t,n,i,s);break;case ao:L(e,t,n,i,a,o,s,r,l);break;default:1&d?C(e,t,n,i,a,o,s,r,l):6&d?R(e,t,n,i,a,o,s,r,l):(64&d||128&d)&&c.process(e,t,n,i,a,o,s,r,l,ie)}null!=u&&a&&Za(u,e&&e.ref,o,t||e,!t)},b=(e,t,i,a)=>{if(null==e)n(t.el=r(t.children),i,a);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},k=(e,t,i,a)=>{null==e?n(t.el=l(t.children||""),i,a):t.el=e.el},x=(e,t,n,i)=>{[e.el,e.anchor]=y(e.children,t,n,i,e.el,e.anchor)},T=({el:e,anchor:t},i,a)=>{let o;for(;e&&e!==t;)o=m(e),n(e,i,a),e=o;n(t,i,a)},S=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),i(e),e=n;i(t)},C=(e,t,n,i,a,o,s,r,l)=>{s=s||"svg"===t.type,null==e?E(t,n,i,a,o,s,r,l):M(e,t,a,o,s,r,l)},E=(e,t,i,o,r,l,c,d)=>{let h,p;const{type:f,props:m,shapeFlag:g,transition:y,dirs:_}=e;if(h=e.el=s(e.type,l,m&&m.is,m),8&g?u(h,e.children):16&g&&I(e.children,h,null,o,r,l&&"foreignObject"!==f,c,d),_&&da(e,null,o,"created"),D(h,e,e.scopeId,c,o),m){for(const t in m)"value"===t||A(t)||a(h,t,null,m[t],l,e.children,o,r,ee);"value"in m&&a(h,"value",null,m.value),(p=m.onVnodeBeforeMount)&&Mo(p,o,e)}Object.defineProperty(h,"__vueParentComponent",{value:o,enumerable:!1}),_&&da(e,null,o,"beforeMount");const v=(!r||r&&!r.pendingBranch)&&y&&!y.persisted;v&&y.beforeEnter(h),n(h,t,i),((p=m&&m.onVnodeMounted)||v||_)&&eo((()=>{p&&Mo(p,o,e),v&&y.enter(h),_&&da(e,null,o,"mounted")}),r)},D=(e,t,n,i,a)=>{if(n&&g(e,n),i)for(let o=0;o{for(let c=l;c{const c=t.el=e.el;let{patchFlag:h,dynamicChildren:p,dirs:f}=t;h|=16&e.patchFlag;const m=e.props||d,g=t.props||d;let y;n&&no(n,!1),(y=g.onVnodeBeforeUpdate)&&Mo(y,n,t,e),f&&da(t,e,n,"beforeUpdate"),n&&no(n,!0);const _=s&&"foreignObject"!==t.type;if(p?O(e.dynamicChildren,p,c,n,i,_,r):l||H(e,t,c,null,n,i,_,r,!1),h>0){if(16&h)$(c,t,m,g,n,i,s);else if(2&h&&m.class!==g.class&&a(c,"class",null,g.class,s),4&h&&a(c,"style",m.style,g.style,s),8&h){const r=t.dynamicProps;for(let t=0;t{y&&Mo(y,n,t,e),f&&da(t,e,n,"updated")}),i)},O=(e,t,n,i,a,o,s)=>{for(let r=0;r{if(n!==i){if(n!==d)for(const o in n)A(o)||o in i||a(e,o,n[o],null,l,t.children,s,r,ee);for(const c in i){if(A(c))continue;const u=i[c],d=n[c];(u!==d&&"value"!==c||o&&o(e,c))&&a(e,c,d,u,l,t.children,s,r,ee)}"value"in i&&a(e,"value",n.value,i.value)}},L=(e,t,i,a,o,s,l,c,u)=>{const d=t.el=e?e.el:r(""),h=t.anchor=e?e.anchor:r("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,i,a),n(h,i,a),I(t.children,i,h,o,s,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,i,o,s,l,c),(null!=t.key||o&&t===o.subTree)&&io(e,t,!0)):H(e,t,i,h,o,s,l,c,u)},R=(e,t,n,i,a,o,s,r,l)=>{t.slotScopeIds=r,null==e?512&t.shapeFlag?a.ctx.activate(t,n,i,s,l):B(t,n,i,a,o,s,l):j(e,t,l)},B=(e,t,n,i,a,o,s)=>{const r=e.component=function(e,t,n){const i=e.type,a=(t?t.appContext:e.appContext)||Oo,o={uid:$o++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new st(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ja(i,a),emitsOptions:oi(i,a),emit:null,emitted:null,propsDefaults:d,inheritAttrs:i.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};o.ctx={_:o},o.root=t?t.root:o,o.emit=ii.bind(null,o),o.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(o);return o}(e,i,a);if(Bi(e)&&(r.ctx.renderer=ie),function(e,t=!1){Fo=t;const{props:n,children:i}=e.vnode,a=Bo(e);Na(e,n,a,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=wn(t),U(t,"_",n)):Xa(t,e.slots={})}else e.slots={},t&&Ka(e,t);U(e.slots,vo,1)})(e,i);const o=a?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=kn(new Proxy(e.ctx,Sa));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(xt(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Ro(e),wt();const a=Nn(i,e,0,[e.props,n]);if(kt(),No(),P(a)){if(a.then(No,No),t)return a.then((n=>{jo(e,n,t)})).catch((t=>{Fn(t,e,0)}));e.asyncDep=a}else jo(e,a,t)}else Vo(e,t)}(e,t):void 0;Fo=!1}(r),r.asyncDep){if(a&&a.registerDep(r,V),!e.el){const e=r.subTree=xo(so);k(null,e,t,n)}}else V(r,e,t,n,a,o,s)},j=(e,t,n)=>{const i=t.component=e.component;if(function(e,t,n){const{props:i,children:a,component:o}=e,{props:s,children:r,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!a&&!r||r&&r.$stable)||i!==s&&(i?!s||fi(i,s,c):!!s);if(1024&l)return!0;if(16&l)return i?fi(i,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;tqn&&Wn.splice(t,1)}(i.update),i.update()}else t.el=e.el,i.vnode=t},V=(e,t,n,i,a,o,s)=>{const r=()=>{if(e.isMounted){let t,{next:n,bu:i,u:r,parent:l,vnode:c}=e,u=n;no(e,!1),n?(n.el=c.el,W(e,n,s)):n=c,i&&q(i),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Mo(t,l,n,c),no(e,!0);const d=di(e),h=e.subTree;e.subTree=d,v(h,d,f(h.el),te(h),e,a,o),n.el=d.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),r&&eo(r,a),(t=n.props&&n.props.onVnodeUpdated)&&eo((()=>Mo(t,l,n,c)),a)}else{let s;const{el:r,props:l}=t,{bm:c,m:u,parent:d}=e,h=Li(t);if(no(e,!1),c&&q(c),!h&&(s=l&&l.onVnodeBeforeMount)&&Mo(s,d,t),no(e,!0),r&&oe){const n=()=>{e.subTree=di(e),oe(r,e.subTree,e,a,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=di(e);v(null,s,n,i,e,a,o),t.el=s.el}if(u&&eo(u,a),!h&&(s=l&&l.onVnodeMounted)){const e=t;eo((()=>Mo(s,d,e)),a)}const{ba:p,a:f}=e;(256&t.shapeFlag||d&&Li(d.vnode)&&256&d.vnode.shapeFlag)&&(p&&Gi(p),f&&eo(f,a),p&&eo((()=>Ji(p)),a)),e.isMounted=!0,t=n=i=null}},l=e.effect=new yt(r,(()=>Gn(c)),e.scope),c=e.update=()=>l.run();c.id=e.uid,no(e,!0),c()},W=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:a,attrs:o,vnode:{patchFlag:s}}=e,r=wn(a),[l]=e.propsOptions;let c=!1;if(!(i||s>0)||16&s){let i;Ba(e,t,a,o)&&(c=!0);for(const o in r)t&&(w(t,o)||(i=F(o))!==o&&w(t,i))||(l?!n||void 0===n[o]&&void 0===n[i]||(a[o]=Fa(l,r,o,void 0,e,!0)):delete a[o]);if(o!==r)for(const e in o)t&&w(t,e)||(delete o[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let i=0;i{const{vnode:i,slots:a}=e;let o=!0,s=d;if(32&i.shapeFlag){const e=t._;e?n&&1===e?o=!1:(_(a,t),n||1!==e||delete a._):(o=!t.$stable,Xa(t,a)),s=t}else t&&(Ka(e,t),s={default:1});if(o)for(const r in a)Ha(r)||r in s||delete a[r]})(e,t.children,n),wt(),Qn(),kt()},H=(e,t,n,i,a,o,s,r,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void X(c,h,n,i,a,o,s,r,l);if(256&p)return void Y(c,h,n,i,a,o,s,r,l)}8&f?(16&d&&ee(c,a,o),h!==c&&u(n,h)):16&d?16&f?X(c,h,n,i,a,o,s,r,l):ee(c,a,o,!0):(8&d&&u(n,""),16&f&&I(h,n,i,a,o,s,r,l))},Y=(e,t,n,i,a,o,s,r,l)=>{t=t||h;const c=(e=e||h).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?ee(e,a,o,!0,!1,d):I(t,n,i,a,o,s,r,l,d)},X=(e,t,n,i,a,o,s,r,l)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const i=e[c],u=t[c]=l?Do(t[c]):Eo(t[c]);if(!_o(i,u))break;v(i,u,n,null,a,o,s,r,l),c++}for(;c<=d&&c<=p;){const i=e[d],c=t[p]=l?Do(t[p]):Eo(t[p]);if(!_o(i,c))break;v(i,c,n,null,a,o,s,r,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)G(e[c],a,o,!0),c++;else{const f=c,m=c,g=new Map;for(c=m;c<=p;c++){const e=t[c]=l?Do(t[c]):Eo(t[c]);null!=e.key&&g.set(e.key,c)}let y,_=0;const b=p-m+1;let w=!1,k=0;const x=new Array(b);for(c=0;c=b){G(i,a,o,!0);continue}let u;if(null!=i.key)u=g.get(i.key);else for(y=m;y<=p;y++)if(0===x[y-m]&&_o(i,t[y])){u=y;break}void 0===u?G(i,a,o,!0):(x[u-m]=c+1,u>=k?k=u:w=!0,v(i,t[u],n,null,a,o,s,r,l),_++)}const T=w?function(e){const t=e.slice(),n=[0];let i,a,o,s,r;const l=e.length;for(i=0;i>1,e[n[r]]0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,s=n[o-1];for(;o-- >0;)n[o]=s,s=t[s];return n}(x):h;for(y=T.length-1,c=b-1;c>=0;c--){const e=m+c,d=t[e],h=e+1{const{el:s,type:r,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,i,a);if(128&u)return void e.suspense.move(t,i,a);if(64&u)return void r.move(e,t,i,ie);if(r===ao){n(s,t,i);for(let e=0;el.enter(s)),o);else{const{leave:e,delayLeave:a,afterLeave:o}=l,r=()=>n(s,t,i),c=()=>{e(s,(()=>{r(),o&&o()}))};a?a(s,r,c):c()}else n(s,t,i)},G=(e,t,n,i=!1,a=!1)=>{const{type:o,props:s,ref:r,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h}=e;if(null!=r&&Za(r,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&h,f=!Li(e);let m;if(f&&(m=s&&s.onVnodeBeforeUnmount)&&Mo(m,t,e),6&u)Z(e.component,n,i);else{if(128&u)return void e.suspense.unmount(n,i);p&&da(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,a,ie,i):c&&(o!==ao||d>0&&64&d)?ee(c,t,n,!1,!0):(o===ao&&384&d||!a&&16&u)&&ee(l,t,n),i&&J(e)}(f&&(m=s&&s.onVnodeUnmounted)||p)&&eo((()=>{m&&Mo(m,t,e),p&&da(e,null,t,"unmounted")}),n)},J=e=>{const{type:t,el:n,anchor:a,transition:o}=e;if(t===ao)return void Q(n,a);if(t===ro)return void S(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:i}=o,a=()=>t(n,s);i?i(e.el,s,a):a()}else s()},Q=(e,t)=>{let n;for(;e!==t;)n=m(e),i(e),e=n;i(t)},Z=(e,t,n)=>{const{bum:i,scope:a,update:o,subTree:s,um:r}=e;i&&q(i),a.stop(),o&&(o.active=!1,G(s,e,t,n)),r&&eo(r,t),eo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,i=!1,a=!1,o=0)=>{for(let s=o;s6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),Qn(),Zn(),t._vnode=e},ie={p:v,um:G,m:K,r:J,mt:B,mc:I,pc:H,pbc:O,n:te,o:e};let ae,oe;t&&([ae,oe]=t(ie));return{render:ne,hydrate:ae,createApp:Qa(ne,ae)}}(e)}function no({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function io(e,t,n=!1){const i=e.children,a=t.children;if(k(i)&&k(a))for(let o=0;o0?co||h:null,lo.pop(),co=lo[lo.length-1]||null,ho>0&&co&&co.push(e),e}function mo(e,t,n,i,a,o){return fo(ko(e,t,n,i,a,o,!0))}function go(e,t,n,i,a){return fo(xo(e,t,n,i,a,!0))}function yo(e){return!!e&&!0===e.__v_isVNode}function _o(e,t){return e.type===t.type&&e.key===t.key}const vo="__vInternal",bo=({key:e})=>null!=e?e:null,wo=({ref:e,ref_key:t,ref_for:n})=>null!=e?C(e)||En(e)||S(e)?{i:ri,r:e,k:t,f:!!n}:e:null;function ko(e,t=null,n=null,i=0,a=null,o=(e===ao?0:1),s=!1,r=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&wo(t),scopeId:li,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:ri};return r?(Po(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=C(n)?8:16),ho>0&&!s&&co&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&co.push(l),l}const xo=function(e,n=null,i=null,a=0,o=null,r=!1){e&&e!==fa||(e=so);if(yo(e)){const t=To(e,n,!0);return i&&Po(t,i),ho>0&&!r&&co&&(6&t.shapeFlag?co[co.indexOf(e)]=t:co.push(t)),t.patchFlag|=-2,t}l=e,S(l)&&"__vccOpts"in l&&(e=e.__vccOpts);var l;if(n){n=function(e){return e?bn(e)||vo in e?_({},e):e:null}(n);let{class:e,style:i}=n;e&&!C(e)&&(n.class=s(e)),D(i)&&(bn(i)&&!k(i)&&(i=_({},i)),n.style=t(i))}const c=C(e)?1:mi(e)?128:(e=>e.__isTeleport)(e)?64:D(e)?4:S(e)?2:0;return ko(e,n,i,a,o,c,r,!0)};function To(e,t,n=!1){const{props:i,ref:a,patchFlag:o,children:s}=e,r=t?Io(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:r,key:r&&bo(r),ref:t&&t.ref?n&&a?k(a)?a.concat(wo(t)):[a,wo(t)]:wo(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ao?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&To(e.ssContent),ssFallback:e.ssFallback&&To(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function So(e=" ",t=0){return xo(oo,null,e,t)}function Co(e="",t=!1){return t?(uo(),go(so,null,e)):xo(so,null,e)}function Eo(e){return null==e||"boolean"==typeof e?xo(so):k(e)?xo(ao,null,e.slice()):"object"==typeof e?Do(e):xo(oo,null,String(e))}function Do(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:To(e)}function Po(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(k(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),Po(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||vo in t?3===i&&ri&&(1===ri.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=ri}}else S(t)?(t={default:t,_ctx:ri},n=32):(t=String(t),64&i?(n=16,t=[So(t)]):n=8);e.children=t,e.shapeFlag|=n}function Io(...e){const n={};for(let i=0;iAo||ri,Ro=e=>{Ao=e,e.scope.on()},No=()=>{Ao&&Ao.scope.off(),Ao=null};function Bo(e){return 4&e.vnode.shapeFlag}let Fo=!1;function jo(e,t,n){S(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:D(t)&&(e.setupState=An(t)),Vo(e,n)}function Vo(e,t,n){const i=e.type;e.render||(e.render=i.render||p),Ro(e),wt(),Ea(e),kt(),No()}function Wo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(An(kn(e.exposed)),{get:(t,n)=>n in t?t[n]:n in xa?xa[n](e):void 0,has:(e,t)=>t in e||t in xa}))}function qo(e,t=!0){return S(e)?e.displayName||e.name:e.name||t&&e.__name}const Uo=(e,t)=>function(e,t,n=!1){let i,a;const o=S(e);return o?(i=e,a=p):(i=e.get,a=e.set),new Rn(i,a,o||!a,n)}(e,0,Fo);function Ho(e,t,n){const i=arguments.length;return 2===i?D(t)&&!k(t)?yo(t)?xo(e,null,[t]):xo(e,t):xo(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&yo(n)&&(n=[n]),xo(e,t,n))}const zo=Symbol(""),Yo=()=>yi(zo),Xo="3.2.47",Ko="undefined"!=typeof document?document:null,Go=Ko&&Ko.createElement("template"),Jo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const a=t?Ko.createElementNS("http://www.w3.org/2000/svg",e):Ko.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&a.setAttribute("multiple",i.multiple),a},createText:e=>Ko.createTextNode(e),createComment:e=>Ko.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ko.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,a,o){const s=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),a!==o&&(a=a.nextSibling););else{Go.innerHTML=i?`${e}`:e;const a=Go.content;if(i){const e=a.firstChild;for(;e.firstChild;)a.appendChild(e.firstChild);a.removeChild(e)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Qo=/\s*!important$/;function Zo(e,t,n){if(k(n))n.forEach((n=>Zo(e,t,n)));else if(null==n&&(n=""),n=cs(n),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=ts[t];if(n)return n;let i=N(t);if("filter"!==i&&i in e)return ts[t]=i;i=j(i);for(let a=0;ae.replace(Ve,((e,t)=>{if(!t)return e;if(1===rs)return`${t}${ss}`;const n=function(e,t){const n=Math.pow(10,t+1),i=Math.floor(e*n);return 10*Math.round(i/10)/n}(parseFloat(t)*rs,ls);return 0===n?"0":`${n}${ss}`})));var ss,rs,ls;const cs=e=>C(e)?os(e):e,us="http://www.w3.org/1999/xlink";function ds(e,t,n,i,a=null){const o=e._vei||(e._vei={}),s=o[t];if(i&&s)s.value=i;else{const[n,r]=function(e){let t;if(hs.test(e)){let n;for(t={};n=e.match(hs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):F(e.slice(2));return[n,t]}(t);if(i){const s=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const i=t&&t.proxy,a=i&&i.$nne,{value:o}=n;if(a&&k(o)){const n=ms(e,o);for(let i=0;ips||(fs.then((()=>ps=0)),ps=Date.now()))(),n}(i,a);!function(e,t,n,i){e.addEventListener(t,n,i)}(e,n,s,r)}else s&&(!function(e,t,n,i){e.removeEventListener(t,n,i)}(e,n,s,r),o[t]=void 0)}}const hs=/(?:Once|Passive|Capture)$/;let ps=0;const fs=Promise.resolve();function ms(e,t){if(k(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t}))}return t}const gs=/^on[a-z]/;const ys="transition",_s="animation",vs=(e,{slots:t})=>Ho(Ei,function(e){const t={};for(const _ in e)_ in bs||(t[_]=e[_]);if(!1===e.css)return t;const{name:n="v",type:i,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=s,appearToClass:u=r,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(D(e))return[xs(e.enter),xs(e.leave)];{const t=xs(e);return[t,t]}}(a),m=f&&f[0],g=f&&f[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:b,onLeave:w,onLeaveCancelled:k,onBeforeAppear:x=y,onAppear:T=v,onAppearCancelled:S=b}=t,C=(e,t,n)=>{Ss(e,t?u:r),Ss(e,t?c:s),n&&n()},E=(e,t)=>{e._isLeaving=!1,Ss(e,d),Ss(e,p),Ss(e,h),t&&t()},P=e=>(t,n)=>{const a=e?T:v,s=()=>C(t,e,n);ws(a,[t,s]),Cs((()=>{Ss(t,e?l:o),Ts(t,e?u:r),ks(a)||Ds(t,i,m,s)}))};return _(t,{onBeforeEnter(e){ws(y,[e]),Ts(e,o),Ts(e,s)},onBeforeAppear(e){ws(x,[e]),Ts(e,l),Ts(e,c)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Ts(e,d),document.body.offsetHeight,Ts(e,h),Cs((()=>{e._isLeaving&&(Ss(e,d),Ts(e,p),ks(w)||Ds(e,i,g,n))})),ws(w,[e,n])},onEnterCancelled(e){C(e,!1),ws(b,[e])},onAppearCancelled(e){C(e,!0),ws(S,[e])},onLeaveCancelled(e){E(e),ws(k,[e])}})}(e),t);vs.displayName="Transition";const bs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};vs.props=_({},Ci,bs);const ws=(e,t=[])=>{k(e)?e.forEach((e=>e(...t))):e&&e(...t)},ks=e=>!!e&&(k(e)?e.some((e=>e.length>1)):e.length>1);function xs(e){const t=(e=>{const t=C(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Ts(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Ss(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Cs(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Es=0;function Ds(e,t,n,i){const a=e._endId=++Es,o=()=>{a===e._endId&&i()};if(n)return setTimeout(o,n);const{type:s,timeout:r,propCount:l}=function(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),a=i(`${ys}Delay`),o=i(`${ys}Duration`),s=Ps(a,o),r=i(`${_s}Delay`),l=i(`${_s}Duration`),c=Ps(r,l);let u=null,d=0,h=0;t===ys?s>0&&(u=ys,d=s,h=o.length):t===_s?c>0&&(u=_s,d=c,h=l.length):(d=Math.max(s,c),u=d>0?s>c?ys:_s:null,h=u?u===ys?o.length:l.length:0);const p=u===ys&&/\b(transform|all)(,|$)/.test(i(`${ys}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}(e,t);if(!s)return i();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{uIs(t)+Is(e[n]))))}function Is(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const Ms=["ctrl","shift","alt","meta"],Os={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ms.some((n=>e[`${n}Key`]&&!t.includes(n)))},$s=(e,t)=>(n,...i)=>{for(let e=0;e{Ls(e,!1)})):Ls(e,t))},beforeUnmount(e,{value:t}){Ls(e,t)}};function Ls(e,t){e.style.display=t?e._vod:"none"}const Rs=_({patchProp:(e,t,n,i,a=!1,o,s,c,u)=>{if(0===t.indexOf("change:"))return function(e,t,n,i=null){if(!n||!i)return;const a=t.replace("change:",""),{attrs:o}=i,s=o[a],r=(e.__wxsProps||(e.__wxsProps={}))[a];if(r===s)return;e.__wxsProps[a]=s;const l=i.proxy;Kn((()=>{n(s,r,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,i,s);"class"===t?function(e,t,n){const{__wxsAddClass:i,__wxsRemoveClass:a}=e;a&&a.length&&(t=(t||"").split(/\s+/).filter((e=>-1===a.indexOf(e))).join(" "),a.length=0),i&&i.length&&(t=(t||"")+" "+i.join(" "));const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,a):"style"===t?function(e,t,n){const i=e.style,a=C(n);if(n&&!a){if(t&&!C(t))for(const e in t)null==n[e]&&Zo(i,e,"");for(const e in n)Zo(i,e,n[e])}else{const o=i.display;a?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=o)}const{__wxsStyle:o}=e;if(o)for(const s in o)Zo(i,s,o[s])}(e,n,i):g(t)?y(t)||ds(e,t,0,i,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&gs.test(t)&&S(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(gs.test(t)&&C(n))return!1;return t in e}(e,t,i,a))?function(e,t,n,i,a,o,s){if("innerHTML"===t||"textContent"===t)return i&&s(i,a,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const i=null==n?"":n;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==n&&e.removeAttribute(t))}let r=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=l(n):null==n&&"string"===i?(n="",r=!0):"number"===i&&(n=0,r=!0)}try{e[t]=n}catch(Kw){}r&&e.removeAttribute(t)}(e,t,i,o,s,c,u):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,i,a){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const i=r(t);null==n||i&&!l(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}(e,t,i,a))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},Jo);let Ns;const Bs=(...e)=>{const t=(Ns||(Ns=to(Rs))).createApp(...e),{mount:n}=t;return t.mount=e=>{const i=function(e){if(C(e)){return document.querySelector(e)}return e}(e);if(!i)return;const a=t._component;S(a)||a.render||a.template||(a.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};const Fs=["{","}"];const js=/^(?:\d)+/,Vs=/^(?:\w)+/;const Ws="zh-Hans",qs="zh-Hant",Us="en",Hs="fr",zs="es",Ys=Object.prototype.hasOwnProperty,Xs=(e,t)=>Ys.call(e,t),Ks=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Fs){if(!t)return[e];let i=this._caches[e];return i||(i=function(e,[t,n]){const i=[];let a=0,o="";for(;a-1?Ws:e.indexOf("-hant")>-1?qs:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?qs:Ws);var n;const i=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,[Us,Hs,zs]);return i||void 0}class Js{constructor({locale:e,fallbackLocale:t,messages:n,watcher:i,formater:a}){this.locale=Us,this.fallbackLocale=Us,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=a||Ks,this.messages=n||{},this.setLocale(e||Us),i&&this.watchLocale(i)}setLocale(e){const t=this.locale;this.locale=Gs(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((e=>{Xs(i,e)||(i[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let i=this.message;return"string"==typeof t?(t=Gs(t,this.messages))&&(i=this.messages[t]):n=t,Xs(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Qs(e,t={},n,i){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&Bh?Bh():"undefined"!=typeof global&&global.getLocale?global.getLocale():Us),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Us);const a=new Js({locale:e,fallbackLocale:n,messages:t,watcher:i});let o=(e,t)=>{{let e=!1;o=function(t,n){const i=Pg().$vm;return i&&(i.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(i,a))),a.t(t,n)}}return o(e,t)};return{i18n:a,f:(e,t,n)=>a.f(e,t,n),t:(e,t)=>o(e,t),add:(e,t,n=!0)=>a.add(e,t,n),watch:e=>a.watchLocale(e),getLocale:()=>a.getLocale(),setLocale:e=>a.setLocale(e)}} +/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const Zs="undefined"!=typeof window;const er=Object.assign;function tr(e,t){const n={};for(const i in t){const a=t[i];n[i]=ir(a)?a.map(e):e(a)}return n}const nr=()=>{},ir=Array.isArray,ar=/\/$/;function or(e,t,n="/"){let i,a={},o="",s="";const r=t.indexOf("#");let l=t.indexOf("?");return r=0&&(l=-1),l>-1&&(i=t.slice(0,l),o=t.slice(l+1,r>-1?r:t.length),a=e(o)),r>-1&&(i=i||t.slice(0,r),s=t.slice(r,t.length)),i=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let a,o,s=n.length-1;for(a=0;a1&&s--}return n.slice(0,s).join("/")+"/"+i.slice(a-(a===i.length?1:0)).join("/")}(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+s,path:i,query:a,hash:s}}function sr(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function rr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cr(e[n],t[n]))return!1;return!0}function cr(e,t){return ir(e)?ur(e,t):ir(t)?ur(t,e):e===t}function ur(e,t){return ir(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var dr,hr,pr,fr;function mr(e){if(!e)if(Zs){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ar,"")}(hr=dr||(dr={})).pop="pop",hr.push="push",(fr=pr||(pr={})).back="back",fr.forward="forward",fr.unknown="";const gr=/^[^#]+#/;function yr(e,t){return e.replace(gr,"#")+t}const _r=()=>({left:window.pageXOffset,top:window.pageYOffset});function vr(e){let t;if("el"in e){const n=e.el,i="string"==typeof n&&n.startsWith("#"),a="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function br(e,t){return(history.state?history.state.position-t:-1)+e}const wr=new Map;function kr(e,t){const{pathname:n,search:i,hash:a}=t,o=e.indexOf("#");if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return"/"!==n[0]&&(n="/"+n),sr(n,"")}return sr(n,e)+i+a}function xr(e,t,n,i=!1,a=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:a?_r():null}}function Tr(e){const{history:t,location:n}=window,i={value:kr(e,n)},a={value:t.state};function o(i,o,s){const r=e.indexOf("#"),l=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+i:location.protocol+"//"+location.host+e+i;try{t[s?"replaceState":"pushState"](o,"",l),a.value=o}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return a.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:a,push:function(e,n){const s=er({},a.value,t.state,{forward:e,scroll:_r()});o(s.current,s,!0),o(e,er({},xr(i.value,e,null),{position:s.position+1},n),!1),i.value=e},replace:function(e,n){o(e,er({},t.state,xr(a.value.back,e,a.value.forward,!0),n,{position:a.value.position}),!0),i.value=e}}}function Sr(e){const t=Tr(e=mr(e)),n=function(e,t,n,i){let a=[],o=[],s=null;const r=({state:o})=>{const r=kr(e,location),l=n.value,c=t.value;let u=0;if(o){if(n.value=r,t.value=o,s&&s===l)return void(s=null);u=c?o.position-c.position:0}else i(r);a.forEach((e=>{e(n.value,l,{delta:u,type:dr.pop,direction:u?u>0?pr.forward:pr.back:pr.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(er({},e.state,{scroll:_r()}),"")}return window.addEventListener("popstate",r),window.addEventListener("beforeunload",l),{pauseListeners:function(){s=n.value},listen:function(e){a.push(e);const t=()=>{const t=a.indexOf(e);t>-1&&a.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",r),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const i=er({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:yr.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Cr(e){return"string"==typeof e||"symbol"==typeof e}const Er={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Dr=Symbol("");var Pr,Ir;function Mr(e,t){return er(new Error,{type:e,[Dr]:!0},t)}function Or(e,t){return e instanceof Error&&Dr in e&&(null==t||!!(e.type&t))}(Ir=Pr||(Pr={}))[Ir.aborted=4]="aborted",Ir[Ir.cancelled=8]="cancelled",Ir[Ir.duplicated=16]="duplicated";const $r="[^/]+?",Ar={sensitive:!1,strict:!1,start:!0,end:!0},Lr=/[.+*?^${}()[\]/\\]/g;function Rr(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Nr(e,t){let n=0;const i=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const Fr={type:0,value:""},jr=/[a-zA-Z0-9_]/;function Vr(e,t,n){const i=function(e,t){const n=er({},Ar,t),i=[];let a=n.start?"^":"";const o=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(a+="/");for(let t=0;t1&&("*"===r||"+"===r)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:"*"===r||"+"===r,optional:"*"===r||"?"===r})):t("Invalid state to consume buffer"),c="")}function h(){c+=r}for(;l{o(h)}:nr}function o(e){if(Cr(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Xr(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Hr(e)&&i.set(e.record.name,e)}return t=Yr({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>a(e))),{addRoute:a,resolve:function(e,t){let a,o,s,r={};if("name"in e&&e.name){if(a=i.get(e.name),!a)throw Mr(1,{location:e});s=a.record.name,r=er(qr(t.params,a.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&qr(e.params,a.keys.map((e=>e.name)))),o=a.stringify(r)}else if("path"in e)o=e.path,a=n.find((e=>e.re.test(o))),a&&(r=a.parse(o),s=a.record.name);else{if(a=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!a)throw Mr(1,{location:e,currentLocation:t});s=a.record.name,r=er({},t.params,e.params),o=a.stringify(r)}const l=[];let c=a;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:o,params:r,matched:l,meta:zr(l)}},removeRoute:o,getRoutes:function(){return n},getRecordMatcher:function(e){return i.get(e)}}}function qr(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Ur(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"==typeof n?n:n[i];return t}function Hr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zr(e){return e.reduce(((e,t)=>er(e,t.meta)),{})}function Yr(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Xr(e,t){return t.children.some((t=>t===e||Xr(e,t)))}const Kr=/#/g,Gr=/&/g,Jr=/\//g,Qr=/=/g,Zr=/\?/g,el=/\+/g,tl=/%5B/g,nl=/%5D/g,il=/%5E/g,al=/%60/g,ol=/%7B/g,sl=/%7C/g,rl=/%7D/g,ll=/%20/g;function cl(e){return encodeURI(""+e).replace(sl,"|").replace(tl,"[").replace(nl,"]")}function ul(e){return cl(e).replace(el,"%2B").replace(ll,"+").replace(Kr,"%23").replace(Gr,"%26").replace(al,"`").replace(ol,"{").replace(rl,"}").replace(il,"^")}function dl(e){return null==e?"":function(e){return cl(e).replace(Kr,"%23").replace(Zr,"%3F")}(e).replace(Jr,"%2F")}function hl(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function pl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;ie&&ul(e))):[i&&ul(i)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function ml(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=ir(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const gl=Symbol(""),yl=Symbol(""),_l=Symbol(""),vl=Symbol(""),bl=Symbol("");function wl(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function kl(e,t,n,i,a){const o=i&&(i.enterCallbacks[a]=i.enterCallbacks[a]||[]);return()=>new Promise(((s,r)=>{const l=e=>{var l;!1===e?r(Mr(4,{from:n,to:t})):e instanceof Error?r(e):"string"==typeof(l=e)||l&&"object"==typeof l?r(Mr(2,{from:t,to:e})):(o&&i.enterCallbacks[a]===o&&"function"==typeof e&&o.push(e),s())},c=e.call(i&&i.instances[a],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch((e=>r(e)))}))}function xl(e,t,n,i){const a=[];for(const s of e)for(const e in s.components){let r=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(o=r)||"displayName"in o||"props"in o||"__vccOpts"in o){const o=(r.__vccOpts||r)[t];o&&a.push(kl(o,n,i,s,e))}else{let o=r();a.push((()=>o.then((a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const o=(r=a).__esModule||"Module"===r[Symbol.toStringTag]?a.default:a;var r;s.components[e]=o;const l=(o.__vccOpts||o)[t];return l&&kl(l,n,i,s,e)()}))))}}var o;return a}function Tl(e){const t=yi(_l),n=yi(vl),i=Uo((()=>t.resolve(On(e.to)))),a=Uo((()=>{const{matched:e}=i.value,{length:t}=e,a=e[t-1],o=n.matched;if(!a||!o.length)return-1;const s=o.findIndex(rr.bind(null,a));if(s>-1)return s;const r=El(e[t-2]);return t>1&&El(a)===r&&o[o.length-1].path!==r?o.findIndex(rr.bind(null,e[t-2])):s})),o=Uo((()=>a.value>-1&&function(e,t){for(const n in t){const i=t[n],a=e[n];if("string"==typeof i){if(i!==a)return!1}else if(!ir(a)||a.length!==i.length||i.some(((e,t)=>e!==a[t])))return!1}return!0}(n.params,i.value.params))),s=Uo((()=>a.value>-1&&a.value===n.matched.length-1&&lr(n.params,i.value.params)));return{route:i,href:Uo((()=>i.value.href)),isActive:o,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[On(e.replace)?"replace":"push"](On(e.to)).catch(nr):Promise.resolve()}}}const Sl=Ai({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Tl,setup(e,{slots:t}){const n=fn(Tl(e)),{options:i}=yi(_l),a=Uo((()=>({[Dl(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Dl(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ho("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),Cl=Sl;function El(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dl=(e,t,n)=>null!=e?e:null!=t?t:n,Pl=Ai({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=yi(bl),a=Uo((()=>e.route||i.value)),o=yi(yl,0),s=Uo((()=>{let e=On(o);const{matched:t}=a.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),r=Uo((()=>a.value.matched[s.value]));gi(yl,Uo((()=>s.value+1))),gi(gl,r),gi(bl,a);const l=Dn();return bi((()=>[l.value,r.value,e.name]),(([e,t,n],[i,a,o])=>{t&&(t.instances[n]=e,a&&a!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=a.leaveGuards),t.updateGuards.size||(t.updateGuards=a.updateGuards))),!e||!t||a&&rr(t,a)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const i=a.value,o=e.name,s=r.value,c=s&&s.components[o];if(!c)return Il(n.default,{Component:c,route:i});const u=s.props[o],d=u?!0===u?i.params:"function"==typeof u?u(i):u:null,h=Ho(c,er({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[o]=null)},ref:l}));return Il(n.default,{Component:h,route:i})||h}}});function Il(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ml=Pl;function Ol(e){const t=Wr(e.routes,e),n=e.parseQuery||pl,i=e.stringifyQuery||fl,a=e.history,o=wl(),s=wl(),r=wl(),l=Pn(Er);let c=Er;Zs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=tr.bind(null,(e=>""+e)),d=tr.bind(null,dl),h=tr.bind(null,hl);function p(e,o){if(o=er({},o||l.value),"string"==typeof e){const i=or(n,e,o.path),s=t.resolve({path:i.path},o),r=a.createHref(i.fullPath);return er(i,s,{params:h(s.params),hash:hl(i.hash),redirectedFrom:void 0,href:r})}let s;if("path"in e)s=er({},e,{path:or(n,e.path,o.path).path});else{const t=er({},e.params);for(const e in t)null==t[e]&&delete t[e];s=er({},e,{params:d(e.params)}),o.params=d(o.params)}const r=t.resolve(s,o),c=e.hash||"";r.params=u(h(r.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(i,er({},e,{hash:(f=c,cl(f).replace(ol,"{").replace(rl,"}").replace(il,"^")),path:r.path}));var f;const m=a.createHref(p);return er({fullPath:p,hash:c,query:i===fl?ml(e.query):e.query||{}},r,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?or(n,e,l.value.path):er({},e)}function m(e,t){if(c!==e)return Mr(8,{from:t,to:e})}function g(e){return _(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"==typeof n?n(e):n;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=f(i):{path:i},i.params={}),er({query:e.query,hash:e.hash,params:"path"in i?{}:e.params},i)}}function _(e,t){const n=c=p(e),a=l.value,o=e.state,s=e.force,r=!0===e.replace,u=y(n);if(u)return _(er(f(u),{state:"object"==typeof u?er({},o,u.state):o,force:s,replace:r}),t||n);const d=n;let h;return d.redirectedFrom=t,!s&&function(e,t,n){const i=t.matched.length-1,a=n.matched.length-1;return i>-1&&i===a&&rr(t.matched[i],n.matched[a])&&lr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(i,a,n)&&(h=Mr(16,{to:d,from:a}),I(a,a,!0,!1)),(h?Promise.resolve(h):b(d,a)).catch((e=>Or(e)?Or(e,2)?e:P(e):D(e,d,a))).then((e=>{if(e){if(Or(e,2))return _(er({replace:r},f(e.to),{state:"object"==typeof e.to?er({},o,e.to.state):o,force:s}),t||d)}else e=k(d,a,!0,r,o);return w(d,a,e),e}))}function v(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e,t){let n;const[i,a,r]=function(e,t){const n=[],i=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;srr(e,o)))?i.push(o):n.push(o));const r=e.matched[s];r&&(t.matched.find((e=>rr(e,r)))||a.push(r))}return[n,i,a]}(e,t);n=xl(i.reverse(),"beforeRouteLeave",e,t);for(const o of i)o.leaveGuards.forEach((i=>{n.push(kl(i,e,t))}));const l=v.bind(null,e,t);return n.push(l),$l(n).then((()=>{n=[];for(const i of o.list())n.push(kl(i,e,t));return n.push(l),$l(n)})).then((()=>{n=xl(a,"beforeRouteUpdate",e,t);for(const i of a)i.updateGuards.forEach((i=>{n.push(kl(i,e,t))}));return n.push(l),$l(n)})).then((()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(ir(i.beforeEnter))for(const a of i.beforeEnter)n.push(kl(a,e,t));else n.push(kl(i.beforeEnter,e,t));return n.push(l),$l(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=xl(r,"beforeRouteEnter",e,t),n.push(l),$l(n)))).then((()=>{n=[];for(const i of s.list())n.push(kl(i,e,t));return n.push(l),$l(n)})).catch((e=>Or(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const i of r.list())i(e,t,n)}function k(e,t,n,i,o){const s=m(e,t);if(s)return s;const r=t===Er,c=Zs?history.state:{};n&&(i||r?a.replace(e.fullPath,er({scroll:r&&c&&c.scroll},o)):a.push(e.fullPath,o)),l.value=e,I(e,t,n,r),P()}let x;function T(){x||(x=a.listen(((e,t,n)=>{if(!A.listening)return;const i=p(e),o=y(i);if(o)return void _(er(o,{replace:!0}),i).catch(nr);c=i;const s=l.value;var r,u;Zs&&(r=br(s.fullPath,n.delta),u=_r(),wr.set(r,u)),b(i,s).catch((e=>Or(e,12)?e:Or(e,2)?(_(e.to,i).then((e=>{Or(e,20)&&!n.delta&&n.type===dr.pop&&a.go(-1,!1)})).catch(nr),Promise.reject()):(n.delta&&a.go(-n.delta,!1),D(e,i,s)))).then((e=>{(e=e||k(i,s,!1))&&(n.delta&&!Or(e,8)?a.go(-n.delta,!1):n.type===dr.pop&&Or(e,20)&&a.go(-1,!1)),w(i,s,e)})).catch(nr)})))}let S,C=wl(),E=wl();function D(e,t,n){P(e);const i=E.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function P(e){return S||(S=!e,T(),C.list().forEach((([t,n])=>e?n(e):t())),C.reset()),e}function I(t,n,i,a){const{scrollBehavior:o}=e;if(!Zs||!o)return Promise.resolve();const s=!i&&function(e){const t=wr.get(e);return wr.delete(e),t}(br(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return Kn().then((()=>o(t,n,s))).then((e=>e&&vr(e))).catch((e=>D(e,t,n)))}const M=e=>a.go(e);let O;const $=new Set,A={currentRoute:l,listening:!0,addRoute:function(e,n){let i,a;return Cr(e)?(i=t.getRecordMatcher(e),a=n):a=e,t.addRoute(a,i)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(er(f(e),{replace:!0}))},go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:o.add,beforeResolve:s.add,afterEach:r.add,onError:E.add,isReady:function(){return S&&l.value!==Er?Promise.resolve():new Promise(((e,t)=>{C.add([e,t])}))},install(e){e.component("RouterLink",Cl),e.component("RouterView",Ml),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>On(l)}),Zs&&!O&&l.value===Er&&(O=!0,g(a.location).catch((e=>{})));const t={};for(const i in Er)t[i]=Uo((()=>l.value[i]));e.provide(_l,this),e.provide(vl,fn(t)),e.provide(bl,l);const n=e.unmount;$.add(e),e.unmount=function(){$.delete(e),$.size<1&&(c=Er,x&&x(),x=null,l.value=Er,O=!1,S=!1),n()}}};return A}function $l(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function Al(){return yi(vl)}const Ll=Le((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Rl;function Nl(){if(!Rl){let e;if(e=window.localStorage&&localStorage[K]||__uniConfig.locale||navigator.language,Rl=Qs(e),Ll()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Rl.add(e,__uniConfig.locales[e]))),Rl.setLocale(e)}}return Rl}function Bl(e,t,n){return t.reduce(((t,i,a)=>(t[e+i]=n[a],t)),{})}const Fl=Le((()=>{const e="uni.async.",t=["error"];Nl().add(Us,Bl(e,t,["The connection timed out, click the screen to try again."]),!1),Nl().add(zs,Bl(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),Nl().add(Hs,Bl(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),Nl().add(Ws,Bl(e,t,["连接服务器超时,点击屏幕重试"]),!1),Nl().add(qs,Bl(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),jl=Le((()=>{const e="uni.showActionSheet.",t=["cancel"];Nl().add(Us,Bl(e,t,["Cancel"]),!1),Nl().add(zs,Bl(e,t,["Cancelar"]),!1),Nl().add(Hs,Bl(e,t,["Annuler"]),!1),Nl().add(Ws,Bl(e,t,["取消"]),!1),Nl().add(qs,Bl(e,t,["取消"]),!1)})),Vl=Le((()=>{const e="uni.showToast.",t=["unpaired"];Nl().add(Us,Bl(e,t,["Please note showToast must be paired with hideToast"]),!1),Nl().add(zs,Bl(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Nl().add(Hs,Bl(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),Nl().add(Ws,Bl(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),Nl().add(qs,Bl(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),Wl=Le((()=>{const e="uni.showLoading.",t=["unpaired"];Nl().add(Us,Bl(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Nl().add(zs,Bl(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Nl().add(Hs,Bl(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),Nl().add(Ws,Bl(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),Nl().add(qs,Bl(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),ql=Le((()=>{const e="uni.showModal.",t=["cancel","confirm"];Nl().add(Us,Bl(e,t,["Cancel","OK"]),!1),Nl().add(zs,Bl(e,t,["Cancelar","OK"]),!1),Nl().add(Hs,Bl(e,t,["Annuler","OK"]),!1),Nl().add(Ws,Bl(e,t,["取消","确定"]),!1),Nl().add(qs,Bl(e,t,["取消","確定"]),!1)})),Ul=Le((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Nl().add(Us,Bl(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Nl().add(zs,Bl(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),Nl().add(Hs,Bl(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),Nl().add(Ws,Bl(e,t,["文件选择器对话框只能在用户激活时显示"]),!1),Nl().add(qs,Bl(e,t,["文件選擇器對話框只能在用戶激活時顯示"]),!1)})),Hl=Le((()=>{const e="uni.setClipboardData.",t=["success","fail"];Nl().add(Us,Bl(e,t,["Content copied","Copy failed, please copy manually"]),!1),Nl().add(zs,Bl(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),Nl().add(Hs,Bl(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),Nl().add(Ws,Bl(e,t,["内容已复制","复制失败,请手动复制"]),!1),Nl().add(qs,Bl(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),zl=Le((()=>{const e="uni.picker.",t=["done","cancel"];Nl().add(Us,Bl(e,t,["Done","Cancel"]),!1),Nl().add(zs,Bl(e,t,["OK","Cancelar"]),!1),Nl().add(Hs,Bl(e,t,["OK","Annuler"]),!1),Nl().add(Ws,Bl(e,t,["完成","取消"]),!1),Nl().add(qs,Bl(e,t,["完成","取消"]),!1)}));function Yl(e){const t=new nt;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,i,a=!1){t[a?"once":"on"](`${e}.${n}`,i)},unsubscribe(n,i){t.off(`${e}.${n}`,i)},subscribeHandler(n,i,a){t.emit(`${e}.${n}`,i,a)}}}const Xl="invokeViewApi",Kl="invokeServiceApi";let Gl=1;const Jl=Object.create(null);function Ql(e,t){return e+"."+t}function Zl(e,t,n){t=Ql(e,t),Jl[t]||(Jl[t]=n)}function ec({id:e,name:t,args:n},i){t=Ql(i,t);const a=t=>{e&&X_.publishHandler(Xl+"."+e,t)},o=Jl[t];o?o(n,a):a({})}const tc=_(Yl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:i,publishHandler:a}=X_,o=n?Gl++:0;n&&i(Kl+"."+o,n,!0),a(Kl,{id:o,name:e,args:t})}}),nc=We(!0);let ic;function ac(){ic&&(clearTimeout(ic),ic=null)}let oc=0,sc=0;function rc(e){if(ac(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];oc=t,sc=n,ic=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function lc(e){if(!ic)return;if(1!==e.touches.length)return ac();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-oc)>10||Math.abs(n-sc)>10?ac():void 0}function cc(e,t){const n=Number(e);return isNaN(n)?t:n}function uc(){const e=__uniConfig.globalStyle||{},t=cc(e.rpxCalcMaxDeviceWidth,960),n=cc(e.rpxCalcBaseDeviceWidth,375);function i(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}i(),document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),window.addEventListener("resize",i)}function dc(){uc(),Fe(),window.addEventListener("touchstart",rc,nc),window.addEventListener("touchmove",lc,nc),window.addEventListener("touchend",ac,nc),window.addEventListener("touchcancel",ac,nc)}var hc,pc,fc=["top","left","right","bottom"],mc={};function gc(){return pc="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function yc(){if(pc="string"==typeof pc?pc:gc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(Kw){}var i=document.createElement("div");a(i,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),fc.forEach((function(e){s(i,e)})),document.body.appendChild(i),o(),hc=!0}else fc.forEach((function(e){mc[e]=0}));function a(e,t){var n=e.style;Object.keys(t).forEach((function(e){var i=t[e];n[e]=i}))}function o(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var i=document.createElement("div"),s=document.createElement("div"),r=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:pc+"(safe-area-inset-"+n+")"};a(i,c),a(s,c),a(r,{transition:"0s",animation:"none",width:"400px",height:"400px"}),a(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(r),s.appendChild(l),e.appendChild(i),e.appendChild(s),o((function(){i.scrollTop=s.scrollTop=1e4;var e=i.scrollTop,a=s.scrollTop;function o(){this.scrollTop!==(this===i?e:a)&&(i.scrollTop=s.scrollTop=1e4,e=i.scrollTop,a=s.scrollTop,function(e){vc.length||setTimeout((function(){var e={};vc.forEach((function(t){e[t]=mc[t]})),vc.length=0,bc.forEach((function(t){t(e)}))}),0);vc.push(e)}(n))}i.addEventListener("scroll",o,t),s.addEventListener("scroll",o,t)}));var u=getComputedStyle(i);Object.defineProperty(mc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function _c(e){return hc||yc(),mc[e]}var vc=[];var bc=[];var wc={get support(){return 0!=("string"==typeof pc?pc:gc()).length},get top(){return _c("top")},get left(){return _c("left")},get right(){return _c("right")},get bottom(){return _c("bottom")},onChange:function(e){gc()&&(hc||yc(),"function"==typeof e&&bc.push(e))},offChange:function(e){var t=bc.indexOf(e);t>=0&&bc.splice(t,1)}};const kc=$s((()=>{}),["prevent"]),xc=$s((()=>{}),["stop"]);function Tc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Sc(){const e=Tc(document.documentElement.style,"--window-top");return e?e+wc.top:0}function Cc(){const e=document.documentElement.style,t=Sc(),n=Tc(e,"--window-bottom"),i=Tc(e,"--window-left"),a=Tc(e,"--window-right"),o=Tc(e,"--top-window-height");return{top:t,bottom:n?n+wc.bottom:0,left:i?i+wc.left:0,right:a?a+wc.right:0,topWindowHeight:o||0}}function Ec(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function Dc(e){return Symbol(e)}function Pc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Ic(e,t=!1){if(t)return function(e){if(!Pc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>Yd(parseFloat(t))+"px"))}(e);if(C(e)){const t=parseInt(e)||0;return Pc(e)?Yd(t):t}return e}const Mc="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",Oc="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",$c="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function Ac(e,t="#000",n=27){return xo("svg",{width:n,height:n,viewBox:"0 0 32 32"},[xo("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Lc(){{const{$pageInstance:e}=Lo();return e&&e.proxy.$page.id}}function Rc(e){const t=De(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function Nc(){const e=og(),t=e.length;if(t)return e[t-1]}function Bc(){const e=Nc();if(e)return e.$page.meta}function Fc(){const e=Bc();return e?e.id:-1}function jc(){const e=Nc();if(e)return e.$vm}const Vc=["navigationBar","pullToRefresh"];function Wc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),i=_({id:t},n,e);Vc.forEach((t=>{i[t]=_({},n[t],e[t])}));const{navigationBar:a}=i;return a.titleText&&a.titleImage&&(a.titleText=""),i}function qc(e,t,n){if(C(e))n=t,t=e,e=jc();else if("number"==typeof e){const t=og().find((t=>t.$page.id===e));e=t?t.$vm:jc()}if(!e)return;const i=e.$[t];return i&&((e,t)=>{let n;for(let i=0;i{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,i=window.scrollY,o=i>0&&e>t&&i+t+n>=e,s=Math.abs(e-zc)>n;return!o||a&&!s?(!o&&a&&(a=!1),!1):(zc=e,a=!0,!0)})())return t&&t(),o=!1,setTimeout((function(){o=!0}),350),!0}e&&e(window.pageYOffset),t&&o&&(s()||(Hc=setTimeout(s,300))),i=!1};return function(){clearTimeout(Hc),i||requestAnimationFrame(s),i=!0}}function Xc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Xc(e,t.slice(2));const n=t.split("/"),i=n.length;let a=0;for(;a0?e.split("/"):[];return o.splice(o.length-a-1,a+1),$e(o.concat(n).join("/"))}function Kc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class Gc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=Me(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=eu(this.$el.querySelector(e));return t?Jc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let i=0;i-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];S(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&X_.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Jc(e,t=!0){if(t&&e&&(e=Pe(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Gc(e)),e.$el.__wxsComponentDescriptor}function Qc(e,t){return Jc(e,t)}function Zc(e,t,n,i=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Qc(n.proxy,!1)}));const a=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const i=Pe(t);if(!i)return!1;const a=i.$.type;return!(!a.$wxs&&!a.$renderjs)&&i}(t,n,i);if(a)return[e,Qc(a,!1)]}}function eu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function tu(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function nu(e,t=!1){const{type:n,timeStamp:i,target:a,currentTarget:o}=e,s={type:n,timeStamp:i,target:qe(t?a:tu(a)),detail:{},currentTarget:qe(o)};return e._stopped&&(s._stopped=!0),e.type.startsWith("touch")&&(s.touches=e.touches,s.changedTouches=e.changedTouches),function(e,t){_(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(s,e),s}function iu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function au(e,t){const n=[];for(let i=0;i0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Sc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[iu(t,n)]}(o,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch"))(e)){const t=Sc();o.touches=au(e.touches,t),o.changedTouches=au(e.changedTouches,t)}return Zc(o,t,n)||[o]},createNativeEvent:nu},Symbol.toStringTag,{value:"Module"});function su(e){!function(e){const t=e.globalProperties;_(t,ou),t.$gcd=Qc}(e._context.config)}let ru=1;function lu(){return Fc()+"."+Xl}const cu=_(Yl("view"),{invokeOnCallback:(e,t)=>K_.emit("api."+e,t),invokeViewMethod:(e,t,n,i)=>{const{subscribe:a,publishHandler:o}=K_,s=i?ru++:0;i&&a(Xl+"."+s,i,!0),o(lu(),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,i)=>{const{subscribe:a,unsubscribe:o,publishHandler:s}=K_,r=ru++,l=Xl+"."+r;return a(l,n),s(lu(),{id:r,name:e,args:t},i),()=>{o(l)}}});function uu(e){qc(Nc(),ue,e),K_.invokeOnCallback("onWindowResize",e)}function du(e){const t=Nc();qc(Pg(),ee,e),qc(t,ee)}function hu(){qc(Pg(),te),qc(Nc(),te)}const pu=[he,fe];function fu(){pu.forEach((e=>K_.subscribe(e,function(e){return(t,n)=>{qc(parseInt(n),e,t)}}(e))))}function mu(){!function(){const{on:e}=K_;e(ue,uu),e(Se,du),e(Ce,hu)}(),fu()}function gu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Ke(this.$page.id)),e.eventChannel}}function yu(e){e._context.config.globalProperties.getOpenerEventChannel=gu}function _u(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function vu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${Yd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function bu(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const i=t.actions,a=t.actions.length;function o(){const t=i[n],s=t.option.transition,r=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],a=["width","height","left","right","top","bottom"],o=e.animates,s=e.option,r=s.transition,l={},c=[];return o.forEach((e=>{let o=e.type,s=[...e.args];if(t.concat(n).includes(o))o.startsWith("rotate")||o.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):o.startsWith("translate")&&(s=s.map(vu)),n.indexOf(o)>=0&&(s.length=1),c.push(`${o}(${s.join(",")})`);else if(i.concat(a).includes(s[0])){o=s[0];const e=s[1];l[o]=a.includes(o)?vu(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${r.duration}ms ${r.timingFunction} ${r.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(r).forEach((t=>{e.$el.style[t]=r[t]})),n+=1,n{o()}),0)}const wu={props:["animation"],watch:{animation:{deep:!0,handler(){bu(this)}}},mounted(){bu(this)}},ku=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(wu),xu(e)},xu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Ai(e)),Tu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Su(e){const t=Dn(!1);let n,i,a=!1;function o(){requestAnimationFrame((()=>{clearTimeout(i),i=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(i){i._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(i._hoverPropagationStopped=!0),a=!0,n=setTimeout((()=>{t.value=!0,a||o()}),parseInt(e.hoverStartTime)))}function r(){a=!1,t.value&&o()}function l(){r(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:function(e){e.touches.length>1||s(e)},onMousedown:function(e){a||(s(e),window.addEventListener("mouseup",l))},onTouchend:function(){r()},onMouseup:function(){a&&l()},onTouchcancel:function(){a=!1,t.value=!1,clearTimeout(n)}}}}function Cu(e,t){return C(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function Eu(e){return e.__wwe=!0,e}function Du(e,t){return(n,i,a)=>{e.value&&t(n,function(e,t,n,i){const a=qe(n);return{type:i.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:i}}(n,i,e.value,a||{}))}}const Pu=Dc("uf"),Iu=ku({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const i=Dn(null);return function(e){const t=[];gi(Pu,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,i]=t.submit();n&&(e[n]=i)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(Du(i,n)),()=>xo("uni-form",{ref:i},[xo("span",null,[t.default&&t.default()])],512)}});const Mu={for:{type:String,default:""}},Ou=Dc("ul");const $u=ku({name:"Label",props:Mu,setup(e,{slots:t}){const n=Lc(),i=function(){const e=[];return gi(Ou,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),a=Uo((()=>e.for||t.default&&t.default.length)),o=Eu((t=>{const a=t.target;let o=/^uni-(checkbox|radio|switch)-/.test(a.className);o||(o=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(a.tagName)),o||(e.for?X_.emit("uni-label-click-"+n+"-"+e.for,t,!0):i.length&&i[0](t,!0))}));return()=>xo("uni-label",{class:{"uni-label-pointer":a},onClick:o},[t.default&&t.default()],10,["onClick"])}});function Au(e,t){Lu(e.id,t),bi((()=>e.id),((e,n)=>{Ru(n,t,!0),Lu(e,t,!0)})),oa((()=>{Ru(e.id,t)}))}function Lu(e,t,n){const i=Lc();n&&!e||O(t)&&Object.keys(t).forEach((a=>{n?0!==a.indexOf("@")&&0!==a.indexOf("uni-")&&X_.on(`uni-${a}-${i}-${e}`,t[a]):0===a.indexOf("uni-")?X_.on(a,t[a]):e&&X_.on(`uni-${a}-${i}-${e}`,t[a])}))}function Ru(e,t,n){const i=Lc();n&&!e||O(t)&&Object.keys(t).forEach((a=>{n?0!==a.indexOf("@")&&0!==a.indexOf("uni-")&&X_.off(`uni-${a}-${i}-${e}`,t[a]):0===a.indexOf("uni-")?X_.off(a,t[a]):e&&X_.off(`uni-${a}-${i}-${e}`,t[a])}))}const Nu=ku({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=Dn(null),i=yi(Pu,!1),{hovering:a,binding:o}=Su(e);Nl();const s=Eu(((t,a)=>{if(e.disabled)return t.stopImmediatePropagation();a&&n.value.click();const o=e.formType;if(o){if(!i)return;"submit"===o?i.submit(t):"reset"===o&&i.reset(t)}else;})),r=yi(Ou,!1);return r&&(r.addHandler(s),aa((()=>{r.removeHandler(s)}))),Au(e,{"label-click":s}),()=>{const i=e.hoverClass,r=Cu(e,"disabled"),l=Cu(e,"loading"),c=Cu(e,"plain"),u=i&&"none"!==i;return xo("uni-button",Io({ref:n,onClick:s,class:u&&a.value?i:""},u&&o,r,l,c),[t.default&&t.default()],16,["onClick"])}}});function Bu(e){const{base:t}=__uniConfig.router;return 0===$e(e).indexOf(t)?$e(e):t+e}function Fu(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Bu(e.slice(1));e="https:"+e}if(Q.test(e)||Z.test(e)||0===e.indexOf("blob:"))return e;const i=og();return i.length?Bu(Xc(i[i.length-1].$page.route,e).slice(1)):e}const ju=navigator.userAgent,Vu=/android/i.test(ju),Wu=/iphone|ipad|ipod/i.test(ju),qu=ju.match(/Windows NT ([\d|\d.\d]*)/i),Uu=/Macintosh|Mac/i.test(ju),Hu=/Linux|X11/i.test(ju),zu=Uu&&navigator.maxTouchPoints>0;function Yu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Xu(e){return e&&90===Math.abs(window.orientation)}function Ku(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Gu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Ju(e,t,n,i){K_.invokeViewMethod("video."+e,{videoId:e,type:n,data:i},t)}function Qu(e,t){const n={},{top:i,topWindowHeight:a}=Cc();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=je(e)),t.rect||t.size){const o=e.getBoundingClientRect();t.rect&&(n.left=o.left,n.right=o.right,n.top=o.top-i-a,n.bottom=o.bottom-i-a),t.size&&(n.width=o.width,n.height=o.height)}if(k(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(k(t.computedStyle)){const i=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=i[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function Zu(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function ed(e,t,n){const i=[];t.forEach((({component:t,selector:n,single:a,fields:o})=>{null===t?i.push(function(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(o)):i.push(function(e,t,n,i,a){const o=function(e,t){return e?e.$el:t.$el}(t,e),s=o.parentElement;if(!s)return i?null:[];const{nodeType:r}=o,l=3===r||8===r;if(i){const e=l?s.querySelector(n):Zu(o,n)?o:o.querySelector(n);return e?Qu(e,a):null}{let e=[];const t=(l?s:o).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(Qu(t,a))})),!l&&Zu(o,n)&&e.unshift(Qu(o,a)),e}}(e,t,n,a,o))})),n(i)}const td=["original","compressed"],nd=["album","camera"],id=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function ad(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function od(e,t){return!k(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function sd(e){return function(){try{return e.apply(e,arguments)}catch(Kw){console.error(Kw)}}}let rd=1;const ld={};function cd(e,t,n,i=!1){return ld[e]={name:t,keepAlive:i,callback:n},e}function ud(e,t,n){if("number"==typeof e){const i=ld[e];if(i)return i.keepAlive||delete ld[e],i.callback(t,n)}return t}function dd(e){for(const t in ld)if(ld[t].name===e)return!0;return!1}const hd="success",pd="fail",fd="complete";function md(e,t={},{beforeAll:n,beforeSuccess:i}={}){O(t)||(t={});const{success:a,fail:o,complete:s}=function(e){const t={};for(const n in e){const i=e[n];S(i)&&(t[n]=sd(i),delete e[n])}return t}(t),r=S(a),l=S(o),c=S(s),u=rd++;return cd(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),S(n)&&n(u),u.errMsg===e+":ok"?(S(i)&&i(u,t),r&&a(u)):l&&o(u),c&&s(u)})),u}const gd="success",yd="fail",_d="complete",vd={},bd={};function wd(e,t){return function(n){return e(n,t)||n}}function kd(e,t,n){let i=!1;for(let a=0;ae(t),catch(){}}}function xd(e,t={}){return[gd,yd,_d].forEach((n=>{const i=e[n];if(!k(i))return;const a=t[n];t[n]=function(e){kd(i,e,t).then((e=>S(a)&&a(e)||e))}})),t}function Td(e,t){const n=[];k(vd.returnValue)&&n.push(...vd.returnValue);const i=bd[e];return i&&k(i.returnValue)&&n.push(...i.returnValue),n.forEach((e=>{t=e(t)||t})),t}function Sd(e){const t=Object.create(null);Object.keys(vd).forEach((e=>{"returnValue"!==e&&(t[e]=vd[e].slice())}));const n=bd[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Cd(e,t,n,i){const a=Sd(e);if(a&&Object.keys(a).length){if(k(a.invoke)){return kd(a.invoke,n).then((n=>t(xd(Sd(e),n),...i)))}return t(xd(a,n),...i)}return t(n,...i)}function Ed(e,t){return(n={},...i)=>function(e){return!(!O(e)||![hd,pd,fd].find((t=>S(e[t]))))}(n)?Td(e,Cd(e,t,n,i)):Td(e,new Promise(((a,o)=>{Cd(e,t,_(n,{success:a,fail:o}),i)})))}function Dd(e,t,n,i){return ud(e,_({errMsg:t+":fail"+(n?" "+n:"")},i))}function Pd(e,t,n,i){if(i&&i.beforeInvoke){const e=i.beforeInvoke(t);if(C(e))return e}const a=function(e,t){const n=e[0];if(!t||!O(t.formatArgs)&&O(n))return;const i=t.formatArgs,a=Object.keys(i);for(let o=0;o{Id(i);const a=Pd(0,[i],0,n);if(a)throw new Error(a);const o=!dd(e);!function(e,t){cd(rd++,e,t,!0)}(e,i),o&&(!function(e){K_.on("api."+e,(t=>{for(const n in ld){const i=ld[n];i.name===e&&i.callback(t)}}))}(e),t())}}function Od(e,t,n){return i=>{Id(i);const a=Pd(0,[i],0,n);if(a)throw new Error(a);!function(e,t){for(const n in ld){const i=ld[n];i.callback===t&&i.name===e&&delete ld[n]}}(e=e.replace("off","on"),i);dd(e)||(!function(e){K_.off("api."+e)}(e),t())}}function $d(e,t,n,i){return n=>{const a=md(e,n,i),o=Pd(0,[n],0,i);return o?Dd(a,e,o):t(n,{resolve:t=>function(e,t,n){return ud(e,_(n||{},{errMsg:t+":ok"}))}(a,e,t),reject:(t,n)=>Dd(a,e,function(e){return!e||C(e)?e:e.stack?(console.error(e.message+X+e.stack),e.message):e}(t),n)})}}function Ad(e,t,n){return Md(e,t,n)}function Ld(e,t,n){return Od(e,t,n)}function Rd(e,t,n,i){return Ed(e,$d(e,t,0,i))}function Nd(e,t,n,i){return function(e,t,n,i){return(...e)=>{const n=Pd(0,e,0,i);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,i)}function Bd(e,t,n,i){return Ed(e,function(e,t,n,i){return $d(e,t,0,i)}(e,t,0,i))}let Fd=!1,jd=0,Vd=0,Wd=960,qd=375,Ud=750;function Hd(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=Yu(),t=Gu(Ku(e,Xu(e)));return{platform:Wu?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();jd=n,Vd=t,Fd="ios"===e}function zd(e,t){const n=Number(e);return isNaN(n)?t:n}const Yd=Nd(0,((e,t)=>{if(0===jd&&(Hd(),function(){const e=__uniConfig.globalStyle||{};Wd=zd(e.rpxCalcMaxDeviceWidth,960),qd=zd(e.rpxCalcBaseDeviceWidth,375),Ud=zd(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||jd;n=e===Ud||n<=Wd?n:qd;let i=e/750*n;return i<0&&(i=-i),i=Math.floor(i+1e-4),0===i&&(i=1!==Vd&&Fd?.5:1),e<0?-i:i}));function Xd(e,t){Object.keys(t).forEach((n=>{S(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):k(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{C(e)&&O(t)?Xd(bd[e]||(bd[e]={}),t):O(e)&&Xd(vd,e)})),Gd=new nt,Jd=Nd(0,((e,t)=>(Gd.on(e,t),()=>Gd.off(e,t)))),Qd=Nd(0,((e,t)=>{e?(k(e)||(e=[e]),e.forEach((e=>Gd.off(e,t)))):Gd.e={}})),Zd=Nd(0,((e,...t)=>{Gd.emit(e,...t)})),eh=[.5,.8,1,1.25,1.5,2];const th=(e,t,n,i)=>{!function(e,t,n,i,a){K_.invokeViewMethod("map."+e,{type:n,data:i},t,a)}(e,t,n,i,(e=>{i&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(i,e)}))};function nh(e,t){return function(n,i){n?i[e]=Math.round(n):void 0!==t&&(i[e]=t)}}const ih=nh("width"),ah=nh("height"),oh={PNG:"png",JPG:"jpg",JPEG:"jpg"},sh={formatArgs:{x:nh("x",0),y:nh("y",0),width:ih,height:ah,destWidth:nh("destWidth"),destHeight:nh("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=oh[e];n||(n=oh.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function rh(e,t,n,i,a){K_.invokeViewMethod(`canvas.${e}`,{type:n,data:i},t,(e=>{a&&a(e)}))}var lh=["scale","rotate","translate","setTransform","transform"],ch=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],uh=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const dh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function hh(e){var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),i=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),i=parseInt(i+i,16),[e,n,i,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(w(dh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(dh[n]);const e=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),a=parseInt(t[1].slice(4,6),16);let o=parseInt(t[1].slice(6,8),16);return o=o>=0?o:255,[e,i,a,o]}return console.error("unsupported color:"+e),[0,0,0,255]}class ph{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,hh(t)])}}class fh{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class mh{constructor(e){this.width=e}}class gh{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],rh(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,i){return new ph("linear",[e,t,n,i])}createCircularGradient(e,t,n){return new ph("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new fh(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e){let t=0;return t=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new mh(t)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,i){this.path.push({method:"quadraticCurveTo",data:[e,t,n,i]}),this.subpath.push([n,i])}bezierCurveTo(e,t,n,i,a,o){this.path.push({method:"bezierCurveTo",data:[e,t,n,i,a,o]}),this.subpath.push([a,o])}arc(e,t,n,i,a,o=!1){this.path.push({method:"arc",data:[e,t,n,i,a,o]}),this.subpath.push([e,t])}rect(e,t,n,i){this.path.push({method:"rect",data:[e,t,n,i]}),this.subpath=[[e,t]]}arcTo(e,t,n,i,a){this.path.push({method:"arcTo",data:[e,t,n,i,a]}),this.subpath.push([n,i])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var i=n[1].trim().split(/\s/),a=parseFloat(n[3]),o=n[7],s=[];i.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&r()})),1===i.length&&r(),i=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=a,this.state.fontFamily=o,this.actions.push({method:"setFont",data:[`${i} ${a}px ${o}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function r(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const yh=Le((()=>{[...lh,...ch].forEach((function(e){gh.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,i]}]})};case"strokeRect":return function(e,t,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,i]}]})};case"fillText":case"strokeText":return function(t,n,i,a){var o=[t.toString(),n,i];"number"==typeof a&&o.push(a),this.actions.push({method:e,data:o})};case"drawImage":return function(t,n,i,a,o,s,r,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,r=i,l=a,c=o,n=void 0,i=void 0,a=void 0,o=void 0),u=d(n)&&d(i)&&d(a)&&d(o)?[t,s,r,l,c,n,i,a,o]:d(l)&&d(c)?[t,s,r,l,c]:[t,s,r],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),uh.forEach((function(e){gh.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",hh(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,i,a){a=hh(a),this.actions.push({method:e,data:[t,n,i,a]}),this.state.shadowBlur=i,this.state.shadowColor=a,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),_h=Nd(0,((e,t)=>{if(yh(),t)return new gh(e,Rc(t));const n=Rc(jc());if(n)return new gh(e,n);K_.emit(ne,"createCanvasContext:fail")})),vh=Bd("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:i,destWidth:a,destHeight:o,canvasId:s,fileType:r,quality:l},{resolve:c,reject:u})=>{var d=Rc(jc());if(!d)return void u();rh(s,d,"toTempFilePath",{x:e,y:t,width:n,height:i,destWidth:a,destHeight:o,fileType:r,quality:l,dirname:`${Sp}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,sh);let bh=1;class wh{constructor(e){this._pageId=e.$page&&e.$page.id,this._component=e}observe(e,t){S(t)&&(this._reqId=bh++,function({reqId:e,component:t,options:n,callback:i},a){const o=kp[e]=window.matchMedia(function(e){const t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(const i of n)"orientation"!==i&&e[i]&&Number(e[i]>=0)&&t.push(`(${Tp(i)}: ${Number(e[i])}px)`),"orientation"===i&&e[i]&&t.push(`(${Tp(i)}: ${e[i]})`);return t.join(" and ")}(n)),s=xp[e]=e=>i(e.matches);s(o),o.addListener(s)}({reqId:this._reqId,component:this._component,options:e,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t},n){const i=xp[e],a=kp[e];a&&(a.removeListener(i),delete xp[e],delete kp[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const kh=Nd(0,(e=>((e=De(e))&&!Rc(e)&&(e=null),new wh(e||jc()))));let xh=0,Th={};function Sh(e,t,n,i){const a={options:i},o=i&&("success"in i||"fail"in i||"complete"in i);if(o){const e=String(xh++);a.callbackId=e,Th[e]=i}K_.invokeViewMethod(`editor.${e}`,{type:n,data:a},t,(({callbackId:e,data:t})=>{o&&(!function(e,t){e=e||{},C(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?S(e.success)&&e.success(t):S(e.fail)&&e.fail(t),S(e.complete)&&e.complete(t)}(Th[e],t),delete Th[e])}))}const Ch={canvas:gh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){th(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){th(this.id,this.pageId,"moveToLocation",e)}getScale(e){th(this.id,this.pageId,"getScale",e)}getRegion(e){th(this.id,this.pageId,"getRegion",e)}includePoints(e){th(this.id,this.pageId,"includePoints",e)}translateMarker(e){th(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){th(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){th(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){th(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){th(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){th(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){th(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){th(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){th(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){th(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){th(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){th(this.id,this.pageId,"openMapApp",e)}on(e){th(this.id,this.pageId,"on",e)}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){Ju(this.id,this.pageId,"play")}pause(){Ju(this.id,this.pageId,"pause")}stop(){Ju(this.id,this.pageId,"stop")}seek(e){Ju(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Ju(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~eh.indexOf(e)||(e=1),Ju(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Ju(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Ju(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Ju(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Ju(this.id,this.pageId,"hideStatusBar")}},editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){Sh(this.id,this.pageId,e,t)}}};function Eh(e){if(e&&e.contextInfo){const{id:t,type:n,page:i}=e.contextInfo,a=Ch[n];e.context=new a(t,i),delete e.contextInfo}}class Dh{constructor(e,t,n,i){this._selectorQuery=e,this._component=t,this._selector=n,this._single=i}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery}}class Ph{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return ed(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{k(e)?e.forEach(Eh):Eh(e);const i=n[t];S(i)&&i.call(this,e)})),S(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=De(e),this}select(e){return this._nodesRef=new Dh(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new Dh(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new Dh(this,null,"",!0)}_push(e,t,n,i,a){this._queue.push({component:t,selector:e,single:n,fields:i}),this._queueCb.push(a)}}const Ih=Nd(0,(e=>((e=De(e))&&!Rc(e)&&(e=null),new Ph(e||jc())))),Mh={formatArgs:{}},Oh={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};let $h=class{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=_({},Oh,e)}_getOption(e){const t={transition:_({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}};const Ah=Le((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{$h.prototype[n]=function(...i){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(i[0]):i[0]]):this._pushAnimates(n,i),this}}))})),Lh=Nd(0,(e=>(Ah(),new $h(e))),0,Mh),Rh=Ad("onWindowResize",(()=>{})),Nh=Ld("offWindowResize",(()=>{})),Bh=Nd(0,(()=>{const e=Pg();return e&&e.$vm?e.$vm.$locale:Nl().getLocale()})),Fh=Nd(0,(e=>{const t=Pg();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,window.localStorage&&(localStorage[K]=e),K_.invokeOnCallback("onLocaleChange",{locale:e}),!0)})),jh={[oe]:[],[ae]:[],[ne]:[],[ee]:[],[te]:[]};const Vh=Nd(0,(()=>_({},Mp))),Wh={formatArgs:{showToast:!0},beforeInvoke(){Hl()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=Nl(),i=n("uni.setClipboardData.success");i&&f_({title:i,icon:"success",mask:!1})}},qh=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=od(e,td)},sourceType(e,t){t.sourceType=od(e,nd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),Uh={formatArgs:{sourceType(e,t){t.sourceType=od(e,nd)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Hh=(Boolean,["all","image","video"]),zh={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=od(e,nd)},type(e,t){t.type=ad(e,Hh)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},Yh={formatArgs:{src(e,t){t.src=Fu(e)}}},Xh={formatArgs:{urls(e,t){t.urls=e.map((e=>C(e)&&e?Fu(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};o.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const r in t)if(w(t,r)){let e=t[r];null==e?e="":O(e)&&(e=JSON.stringify(e)),s[Jh(r)]=Jh(e)}return a=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(a?"?"+a:"")+(i?"#"+i:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==id[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Kh).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Gh.indexOf(t.responseType)&&(t.responseType="text")}}},Zh={formatArgs:{filePath(e,t){e&&(t.filePath=Fu(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const ep={url:{type:String,required:!0}},tp="navigateTo",np="redirectTo",ip="reLaunch",ap="switchTab",op="preloadPage",sp=(dp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),dp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),fp(tp)),rp=fp(np),lp=fp(ip),cp=fp(ap),up={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(og().length-1,e)}}};function dp(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let hp;function pp(){hp=""}function fp(e){return{formatArgs:{url:mp(e)},beforeAll:pp}}function mp(e){return function(t,n){if(!t)return'Missing required args: "url"';const i=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=og();return n.length&&(t=n[n.length-1].$page.route),Xc(t,e)}(t)).split("?")[0],a=Kc(i,!0);if(!a)return"page `"+t+"` is not found";if(e===tp||e===np){if(a.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===ap&&!a.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==ap&&e!==op||!a.meta.isTabBar||"appLaunch"===n.openType||(t=i),a.meta.isEntry&&(t=t.replace(a.alias,"/")),n.url=function(e){if(!C(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const i=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),a=t.length>0?t.join("="):"";i.push(n+"="+encodeURIComponent(a))})),i.length?e+"?"+i.join("&"):e}(t),"unPreloadPage"!==e)if(e!==op){if(hp===t&&"appLaunch"!==n.openType)return`${hp} locked`;__uniConfig.ready&&(hp=t)}else if(a.meta.isTabBar){const e=og(),t=a.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const gp="setNavigationBarTitle",yp={formatArgs:{itemColor:"#000"}},_p=(Boolean,{formatArgs:{title:"",mask:!1}}),vp=(Boolean,{beforeInvoke(){ql()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!w(t,"cancelText")){const{t:e}=Nl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!w(t,"confirmText")){const{t:e}=Nl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:G}}),bp=["success","loading","none","error"],wp=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=ad(e,bp)},image(e,t){t.image=e?Fu(e):""},duration:1500,mask:!1}});let kp={},xp={};function Tp(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}const Sp="",Cp={};function Ep(e,t){const n=Cp[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),i=n?n[1]:"",a=atob(t[1]);let o=a.length;const s=new Uint8Array(o);for(;o--;)s[o]=a.charCodeAt(o);return Dp(s,i)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){t(this.response)},i.onerror=n,i.send()}))}function Dp(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const a=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],a,{type:t})}catch(i){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||a}}return n}function Pp(e){for(const n in Cp)if(w(Cp,n)){if(Cp[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Cp[t]=e,t}function Ip(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Cp[e]}const Mp=_u(),Op=_u();const $p=ku({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Dn(null),i=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),a=function(e,t,n){const i=fn({width:-1,height:-1});return bi((()=>_({},i)),(e=>t("resize",e))),()=>{const t=e.value;i.width=t.offsetWidth,i.height=t.offsetHeight,n()}}(n,t,i);return function(e,t,n,i){qi(i),ta((()=>{t.initial&&Kn(n);const a=e.value;a.offsetParent!==a.parentElement&&(a.parentElement.style.position="relative"),"AnimationEvent"in window||i()}))}(n,e,a,i),()=>xo("uni-resize-sensor",{ref:n,onAnimationstartOnce:a},[xo("div",{onScroll:a},[xo("div",null,null)],40,["onScroll"]),xo("div",{onScroll:a},[xo("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Ap=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function Lp(e,t=!0){e.width=e.offsetWidth*(t?Ap:1),e.height=e.offsetHeight*(t?Ap:1),e.getContext("2d").__hidpi__=t}let Rp=!1;function Np(){if(Rp)return;Rp=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;var n;t.drawImageByCanvas=(n=t.drawImage,function(e,t,i,a,o,s,r,l,c,u){if(!this.__hidpi__)return n.apply(this,arguments);t*=Ap,i*=Ap,a*=Ap,o*=Ap,s*=Ap,r*=Ap,l=u?l*Ap:l,c=u?c*Ap:c,n.call(this,e,t,i,a,o,s,r,l,c)}),1!==Ap&&(!function(e,t){for(const n in e)w(e,n)&&t(e[n],n)}(e,(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*Ap}));else if(Array.isArray(e))for(let t=0;tNp()));function Fp(e){return e?Fu(e):e}function jp(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Vp(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let Wp;function qp(e=0,t=0){return Wp||(Wp=document.createElement("canvas")),Wp.width=e,Wp.height=t,Wp}const Up=ku({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Bp();const i=Dn(null),a=Dn(null),o=Dn(!1),s=function(e){return(t,n)=>{e(t,nu(n))}}(t),{$attrs:r,$excludeAttrs:l,$listeners:c}=xf({excludeListeners:!0}),{_listeners:u}=function(e,t,n){const i=Uo((()=>{let i=["onTouchstart","onTouchmove","onTouchend"],a=t.value,o=_({},(()=>{let e={};for(const t in a)if(w(a,t)){const n=a[t];e[t]=n}return e})());return i.forEach((t=>{let i=[];o[t]&&i.push(Eu((e=>{const i=e.currentTarget.getBoundingClientRect();Vp(i,e.touches),Vp(i,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&i.push(kc),o[t]=i})),o}));return{_listeners:i}}(e,c,s),{_handleSubscribe:d,_resize:h}=function(e,t,n){let i=[],a={};const o=Uo((()=>e.hidpi?Ap:1));function s(n){let i=t.value;if(!n||i.width!==Math.floor(n.width*o.value)||i.height!==Math.floor(n.height*o.value))if(i.width>0&&i.height>0){let t=i.getContext("2d"),n=t.getImageData(0,0,i.width,i.height);Lp(i,e.hidpi),t.putImageData(n,0,0)}else Lp(i,e.hidpi)}function r({actions:e,reserve:o},s){if(!e)return;if(n.value)return void i.push([e,o]);let r=t.value,u=r.getContext("2d");o||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,r.width,r.height)),l(e);for(let t=0;t{e.src=t})).catch((()=>{e.src=i}))}"drawImage"===t?(i=n[0],i=Fp(i),n[0]=i):"setFillStyle"===t&&"pattern"===n[0]&&(i=n[1],i=Fp(i),n[1]=i),i&&!a[i]&&o()}))}function c(e,t,o,s){let l=a[e];return l.ready?(s(l),!0):(i.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=i.slice(0);i=[];for(let t=e.shift();t;)r({actions:t[0],reserve:t[1]},o),t=e.shift()},!1)}function u({x:e=0,y:n=0,width:i,height:a,destWidth:s,destHeight:r,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;i=i?Math.min(i,m):m;const g=p.offsetHeight-n;a=a?Math.min(a,g):g,l?(s=i,r=a):s||r?s?r||(r=Math.round(a/i*s)):s=Math.round(i/a*r):(s=Math.round(i*o.value),r=Math.round(a*o.value));const y=qp(s,r),_=y.getContext("2d");let v;"jpeg"!==d&&"jpg"!==d||(d="jpeg",_.fillStyle="#fff",_.fillRect(0,0,s,r)),_.__hidpi__=!0,_.drawImageByCanvas(p,e,n,i,a,0,0,s,r,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=_.getImageData(0,0,s,r);f=Array.prototype.slice.call(e.data)}v={data:f,compressed:e,width:s,height:r}}catch(b){v={errMsg:`canvasGetImageData:fail ${b}`}}if(y.height=y.width=0,_.__hidpi__=!1,!h)return v;h(v)}function d({data:e,x:n,y:i,width:a,height:o,compressed:s},r){try{0,o||(o=Math.round(e.length/4/a));const s=qp(a,o);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),a,o),0,0),t.value.getContext("2d").drawImage(s,n,i,a,o),s.height=s.width=0}catch(l){return void r({errMsg:"canvasPutImageData:fail"})}r({errMsg:"canvasPutImageData:ok"})}function h({x:e=0,y:t=0,width:n,height:i,destWidth:a,destHeight:o,fileType:s,quality:r,dirname:l},c){const d=u({x:e,y:t,width:n,height:i,destWidth:a,destHeight:o,hidpi:!1,dataType:"base64",type:s,quality:r});var h;d.data&&d.data.length?(h=d.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h)):c({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")})}const p={actionsChanged:r,getImageData:u,putImageData:d,toTempFilePath:h};function f(e,t,n){let i=p[e];0!==e.indexOf("_")&&S(i)&&i(t,n)}return _(p,{_resize:s,_handleSubscribe:f})}(e,i,o);return function(e,t,n,i){const a=Lo().proxy;ta((()=>{Pm(t||Dm(a),e,i),!n&&t||bi((()=>a.id),((t,n)=>{Pm(Dm(a,t),e,i),Im(n&&Dm(a,n))}))})),aa((()=>{Im(t||Dm(a),i)}))}(d,function(e){const t=Lc(),n=Lo().proxy,i=n.$options.name.toLowerCase(),a=e||n.id||"context"+Om++;return ta((()=>{n.$el.__uniContextInfo={id:a,type:i,page:t}})),`${i}.${a}`}(e.canvasId),!0),ta((()=>{h()})),()=>{const{canvasId:t,disableScroll:o}=e;return xo("uni-canvas",Io({"canvas-id":t,"disable-scroll":o},r.value,l.value,u.value),[xo("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),xo("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),xo($p,{ref:a,onResize:h},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Hp=Dc("ucg"),zp=ku({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const i=Dn(null);return function(e,t){const n=[],i=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);gi(Hp,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:i()})}});const a=yi(Pu,!1);a&&a.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=i()),t}})}(e,Du(i,t)),()=>xo("uni-checkbox-group",{ref:i},[n.default&&n.default()],512)}});const Yp=ku({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,{slots:t}){const n=Dn(e.checked),i=Dn(e.value);bi([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,i.value=t}));const{uniCheckGroup:a,uniLabel:o}=function(e,t,n){const i=Uo((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),a={reset:n},o=yi(Hp,!1);o&&o.addField(i);const s=yi(Pu,!1);s&&s.addField(a);const r=yi(Ou,!1);return aa((()=>{o&&o.removeField(i),s&&s.removeField(a)})),{uniCheckGroup:o,uniForm:s,uniLabel:r}}(n,i,(()=>{n.value=!1})),s=t=>{e.disabled||(n.value=!n.value,a&&a.checkboxChange(t),t.stopPropagation())};return o&&(o.addHandler(s),aa((()=>{o.removeHandler(s)}))),Au(e,{"label-click":s}),()=>{const i=Cu(e,"disabled");return xo("uni-checkbox",Io(i,{onClick:s}),[xo("div",{class:"uni-checkbox-wrapper"},[xo("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}]},[n.value?Ac(Mc,e.color,22):""],2),t.default&&t.default()])],16,["onClick"])}}});function Xp(){}const Kp={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Gp(e,t,n){function i(e){const t=Uo((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Xp,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Xp,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}bi((()=>t.value),(e=>e&&i(e)))}const Jp={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Qp={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Zp={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},ef=ku({name:"Image",props:Jp,setup(e,{emit:t}){const n=Dn(null),i=function(e,t){const n=Dn(""),i=Uo((()=>{let e="auto",i="";const a=Zp[t.mode];return a?(a[0]&&(i=a[0]),a[1]&&(e=a[1])):(i="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${i};background-size:${e};`})),a=fn({rootEl:e,src:Uo((()=>t.src?Fu(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:n});return ta((()=>{const t=e.value.style;a.origWidth=Number(t.width)||0,a.origHeight=Number(t.height)||0})),a}(n,e),a=Du(n,t),{fixSize:o}=function(e,t,n){const i=()=>{const{mode:i}=t,a=Qp[i];if(!a)return;const{origWidth:o,origHeight:s}=n,r=o&&s?o/s:0;if(!r)return;const l=e.value,c=l[a[0]];c&&(l.style[a[1]]=function(e){tf&&e>10&&(e=2*Math.round(e/2));return e}(a[2](c,r))+"px")},a=()=>{const{style:t}=e.value,{origStyle:{width:i,height:a}}=n;t.width=i,t.height=a};return bi((()=>t.mode),((e,t)=>{Qp[t]&&a(),Qp[e]&&i()})),{fixSize:i,resetSize:a}}(n,e,i);return function(e,t,n,i,a){let o,s;const r=(t=0,n=0,i="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=i},l=l=>{if(!l)return c(),void r();o=o||new Image,o.onload=e=>{const{width:u,height:d}=o;r(u,d,l),i(),o.draggable=t.draggable,s&&s.remove(),s=o,n.value.appendChild(o),c(),a("load",e,{width:u,height:d})},o.onerror=t=>{r(),c(),a("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},o.src=l},c=()=>{o&&(o.onload=null,o.onerror=null,o=null)};bi((()=>e.src),(e=>l(e))),bi((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),ta((()=>l(e.src))),aa((()=>c()))}(i,e,n,o,a),()=>xo("uni-image",{ref:n},[xo("div",{style:i.modeStyle},null,4),Qp[e.mode]?xo($p,{onResize:o},null,8,["onResize"]):xo("span",null,null)],512)}});const tf="Google Inc."===navigator.vendor;const nf=We(!0),af=[];let of,sf=0;const rf=e=>af.forEach((t=>t.userAction=e));function lf(e={userAction:!1}){if(!of){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!sf&&rf(!0),sf++,setTimeout((()=>{!--sf&&rf(!1)}),0)}),nf)})),of=!0}af.push(e)}const cf=()=>!!sf;function uf(){const e=fn({userAction:!1});return ta((()=>{lf(e)})),aa((()=>{!function(e){const t=af.indexOf(e);t>=0&&af.splice(t,1)}(e)})),{state:e}}function df(){const e=fn({attrs:{}});return ta((()=>{let t=Lo();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function hf(e,t){const n=document.activeElement;if(!n)return t({});const i={};["input","textarea"].includes(n.tagName.toLowerCase())&&(i.start=n.selectionStart,i.end=n.selectionEnd),t(i)}function pf(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const ff=["none","text","decimal","numeric","tel","search","email","url"],mf=_({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~ff.indexOf(e)}},Kp),gf=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function yf(e,t,n,i){const a=Xe((n=>{t.value=pf(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});bi((()=>e.modelValue),a),bi((()=>e.value),a);const o=function(e,t){let n,i,a=0;const o=function(...o){const s=Date.now();clearTimeout(n),i=()=>{i=null,a=s,e.apply(this,o)},s-a{a.cancel(),n("update:modelValue",t.value),n("update:value",t.value),i("input",e,t)}),100);return ea((()=>{a.cancel(),o.cancel()})),{trigger:i,triggerInput:(e,t,n)=>{a.cancel(),o(e,t),n&&o.flush()}}}function _f(e,t){uf();const n=Uo((()=>e.autoFocus||e.focus));function i(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(i,100)}bi((()=>e.focus),(e=>{e?i():function(){const e=t.value;e&&e.blur()}()})),ta((()=>{n.value&&Kn(i)}))}function vf(e,t,n,i){Zl(Fc(),"getSelectedTextRange",hf);const{fieldRef:a,state:o,trigger:s}=function(e,t,n){const i=Dn(null),a=Du(t,n),o=Uo((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=Uo((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),r=Uo((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Uo((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=pf(e.modelValue,e.type)||pf(e.value,e.type),u=fn({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:o,selectionEnd:s,cursor:r});return bi((()=>u.focus),(e=>n("update:focus",e))),bi((()=>u.maxlength),(e=>u.value=u.value.slice(0,e))),{fieldRef:i,state:u,trigger:a}}(e,t,n),{triggerInput:r}=yf(e,o,n,s);_f(e,a),Gp(0,a);const{state:l}=df();!function(e,t){const n=yi(Pu,!1);if(!n)return;const i=Lo(),a={submit(){const n=i.proxy;return[n[e],C(t)?n[t]:t.value]},reset(){C(t)?i.proxy[t]="":t.value=""}};n.addField(a),aa((()=>{n.removeField(a)}))}("name",o),function(e,t,n,i,a,o){function s(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function r(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}bi([()=>t.selectionStart,()=>t.selectionEnd],s),bi((()=>t.cursor),r),bi((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,i){e.stopPropagation(),S(o)&&!1===o(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||a(e,{value:c.value,cursor:l(c)},i))};function d(e){n.ignoreCompositionEvent||i(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,i("focus",e,{value:t.value}),s(),r()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,i("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(a,o,e,s,r,i);return{fieldRef:a,state:o,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const bf=ku({name:"Input",props:_({},mf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...gf],setup(e,{emit:t}){const n=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],a=Uo((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~n.includes(e.type)?e.type:"text"}return e.password?"password":t})),o=Uo((()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(F(e.textContentType));return i[-1!==t?t:-1!==n?n:0]}));let s,r=Dn("");const l=Dn(null),{fieldRef:c,state:u,scopedAttrsState:d,fixDisabledColor:h,trigger:p}=vf(e,l,t,((e,t)=>{const n=e.target;if("number"===a.value){if(s&&(n.removeEventListener("blur",s),s=null),n.validity&&!n.validity.valid){if((!r.value||!n.value)&&"-"===e.data||"-"===r.value[0]&&"deleteContentBackward"===e.inputType)return r.value="-",t.value="",s=()=>{r.value=n.value=""},n.addEventListener("blur",s),!1;if(r.value)if(-1!==r.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=r.value.indexOf(".");return r.value=n.value=t.value=r.value.slice(0,e),!0}}else if("."===e.data)return r.value+=".",s=()=>{r.value=n.value=r.value.slice(0,-1)},n.addEventListener("blur",s),!1;return r.value=t.value=n.value="-"===r.value?"":r.value,!1}r.value=n.value;const i=t.maxlength;if(i>0&&n.value.length>i)return n.value=n.value.slice(0,i),t.value=n.value,!1}}));bi((()=>u.value),(t=>{"number"!==e.type||"-"===r.value&&""===t||(r.value=t)}));const f=["number","digit"],m=Uo((()=>f.includes(e.type)?e.step:""));function g(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return()=>{let t=e.disabled&&h?xo("input",{key:"disabled-input",ref:c,value:u.value,tabindex:"-1",readonly:!!e.disabled,type:a.value,maxlength:u.maxlength,step:m.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):xo("input",{key:"input",ref:c,value:u.value,disabled:!!e.disabled,type:a.value,maxlength:u.maxlength,step:m.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:o.value,onKeyup:g,inputmode:e.inputmode},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return xo("uni-input",{ref:l},[xo("div",{class:"uni-input-wrapper"},[ua(xo("div",Io(d.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[As,!(u.value.length||"-"===r.value)]]),"search"===e.confirmType?xo("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const wf=["class","style"],kf=/^on[A-Z]+/,xf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,i=Lo(),a=Pn({}),o=Pn({}),s=Pn({}),r=n.concat(wf);return i.attrs=fn(i.attrs),_i((()=>{const e=(n=i.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,i])=>(r.includes(n)?e.exclude[n]=i:kf.test(n)?(t||(e.attrs[n]=i),e.listeners[n]=i):e.attrs[n]=i,e)),{exclude:{},attrs:{},listeners:{}});var n;a.value=e.attrs,o.value=e.listeners,s.value=e.exclude})),{$attrs:a,$listeners:o,$excludeAttrs:s}};function Tf(e){const t=[];return k(e)&&e.forEach((e=>{yo(e)?e.type===ao?t.push(...Tf(e.children)):t.push(e):k(e)&&t.push(...Tf(e))})),t}const Sf=ku({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Dn(null),i=Dn(!1);let{setContexts:a,events:o}=function(e,t){const n=Dn(0),i=Dn(0),a=fn({x:null,y:null}),o=Dn(null);let s=null,r=[];function l(t){t&&1!==t&&(e.scaleArea?r.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=r){let i=t.value;function a(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(o.value=Cf(t),a.x=t.x,a.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=Eu((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==a.x&&o.value&&o.value>0){l(Cf(n)/o.value)}a.x=n.x,a.y=n.y}})),h=Eu((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(a.x=0,a.y=0,o.value=null,e.scaleArea?r.forEach((function(e){e._endScale()})):s&&s._endScale())}));function p(){f(),r.forEach((function(e,t){e.setParent()}))}function f(){let e=window.getComputedStyle(t.value),a=t.value.getBoundingClientRect();n.value=a.width-["Left","Right"].reduce((function(t,n){const i="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[i])}),0),i.value=a.height-["Top","Bottom"].reduce((function(t,n){const i="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[i])}),0)}return gi("movableAreaWidth",n),gi("movableAreaHeight",i),{setContexts(e){r=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:s,$attrs:r,$excludeAttrs:l}=xf(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=o[`_${e}`];c[e]=t?[].concat(t,n):n})),ta((()=>{o._resize(),i.value=!0}));let u=[];const d=[];function h(){const e=[];for(let t=0;tn===e.rootRef.value));i&&e.push(kn(i))}a(e)}return gi("_isMounted",i),gi("movableAreaRootRef",n),gi("addMovableViewContext",(e=>{d.push(e),h()})),gi("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>{const e=t.default&&t.default();return u=Tf(e),xo("uni-movable-area",Io({ref:n},r.value,l.value,c),[xo($p,{onResize:o._resize},null,8,["onResize"]),u],16)}}});function Cf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Ef=function(e,t,n,i){e.addEventListener(t,(e=>{S(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Df,Pf;function If(e,t,n){aa((()=>{document.removeEventListener("mousemove",Df),document.removeEventListener("mouseup",Pf)}));let i=0,a=0,o=0,s=0;const r=function(e,n,r,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:r,y:l,dx:r-i,dy:l-a,ddx:r-o,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Ef(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,i=o=e.touches[0].pageX,a=s=e.touches[0].pageY,r(e,"start",i,a)})),Ef(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,i=o=e.pageX,a=s=e.pageY,r(e,"start",i,a)})),Ef(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=r(e,"move",e.touches[0].pageX,e.touches[0].pageY);return o=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=Df=function(e){if(!l&&c&&u){const t=r(e,"move",e.pageX,e.pageY);return o=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),Ef(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,r(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const h=Pf=function(e){if(c=!1,!l&&u)return u=null,r(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Ef(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,r(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Mf(e,t,n){return e>t-n&&ethis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Af.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Af.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Af.prototype.dt=function(){return-this._x_v/this._x_a},Af.prototype.done=function(){const e=Mf(this.s().x,this._endPositionX)||Mf(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Af.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Af.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Lf.prototype._solve=function(e,t){const n=this._c,i=this._m,a=this._k,o=n*n-4*i*a;if(0===o){const a=-n/(2*i),o=e,s=t/(a*e);return{x:function(e){return(o+s*e)*Math.pow(Math.E,a*e)},dx:function(e){const t=Math.pow(Math.E,a*e);return a*(o+s*e)*t+s*t}}}if(o>0){const a=(-n-Math.sqrt(o))/(2*i),s=(-n+Math.sqrt(o))/(2*i),r=(t-a*e)/(s-a),l=e-r;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,a*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+r*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,a*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*a*t+r*s*n}}}const s=Math.sqrt(4*i*a-n*n)/(2*i),r=-n/2*i,l=e,c=(t-r*e)/s;return{x:function(e){return Math.pow(Math.E,r*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,r*e),n=Math.cos(s*e),i=Math.sin(s*e);return t*(c*s*n-l*s*i)+r*t*(c*i+l*n)}}},Lf.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Lf.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Lf.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Of(t,.1)){t=t||0;let i=this._endPosition;this._solution&&(Of(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),Of(t,.1)&&(t=0),Of(i,.1)&&(i=0),i+=this._endPosition),this._solution&&Of(i-e,.1)&&Of(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},Lf.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Lf.prototype.done=function(e){return e||(e=(new Date).getTime()),Mf(this.x(),this._endPosition,.1)&&Of(this.dx(),.1)},Lf.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Lf.prototype.springConstant=function(){return this._k},Lf.prototype.damping=function(){return this._c},Lf.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Rf.prototype.setEnd=function(e,t,n,i){const a=(new Date).getTime();this._springX.setEnd(e,i,a),this._springY.setEnd(t,i,a),this._springScale.setEnd(n,i,a),this._startTime=a},Rf.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Rf.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Rf.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Nf(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Bf=ku({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const i=Dn(null),a=Du(i,n),{setParent:o}=function(e,t,n){const i=yi("_isMounted",Dn(!1)),a=yi("addMovableViewContext",(()=>{})),o=yi("removeMovableViewContext",(()=>{}));let s,r,l=Dn(1),c=Dn(1),u=Dn(!1),d=Dn(0),h=Dn(0),p=null,f=null,m=!1,g=null,y=null;const _=new $f,v=new $f,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=Uo((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),k=new Af(1,w.value);bi((()=>e.disabled),(()=>{H()}));const{_updateOldScale:x,_endScale:T,_setScale:S,scaleValueSync:C,_updateBoundary:E,_updateOffset:D,_updateWH:P,_scaleOffset:I,minX:M,minY:O,maxX:$,maxY:A,FAandSFACancel:L,_getLimitXY:R,_setTransform:N,_revise:B,dampingNumber:F,xMove:j,yMove:V,xSync:W,ySync:q,_STD:U}=function(e,t,n,i,a,o,s,r,l,c){const u=Uo((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=Uo((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),h=Dn(Number(e.scaleValue)||1);bi(h,(e=>{N(e)})),bi(u,(()=>{R()})),bi(d,(()=>{R()})),bi((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:_,maxX:v,maxY:b}=function(e,t,n){const i=yi("movableAreaWidth",Dn(0)),a=yi("movableAreaHeight",Dn(0)),o=yi("movableAreaRootRef"),s={x:0,y:0},r={x:0,y:0},l=Dn(0),c=Dn(0),u=Dn(0),d=Dn(0),h=Dn(0),p=Dn(0);function f(){let e=0-s.x+r.x,t=i.value-l.value-s.x-r.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-s.y+r.y,o=a.value-c.value-s.y-r.y;d.value=Math.min(n,o),p.value=Math.max(n,o)}function m(){s.x=Vf(e.value,o.value),s.y=Wf(e.value,o.value)}function g(i){i=i||t.value,i=n(i);let a=e.value.getBoundingClientRect();c.value=a.height/t.value,l.value=a.width/t.value;let o=c.value*i,s=l.value*i;r.x=(s-l.value)/2,r.y=(o-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:r,minX:u,minY:d,maxX:h,maxY:p}}(t,i,L),{FAandSFACancel:w,_getLimitXY:k,_animationTo:x,_setTransform:T,_revise:S,dampingNumber:C,xMove:E,yMove:D,xSync:P,ySync:I,_STD:M}=function(e,t,n,i,a,o,s,r,l,c,u,d,h,p){const f=Uo((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=Uo((()=>"all"===t.direction||"horizontal"===t.direction)),g=Uo((()=>"all"===t.direction||"vertical"===t.direction)),y=Dn(Uf(t.x)),_=Dn(Uf(t.y));bi((()=>t.x),(e=>{y.value=Uf(e)})),bi((()=>t.y),(e=>{_.value=Uf(e)})),bi(y,(e=>{S(e)})),bi(_,(e=>{C(e)}));const v=new Rf(1,9*Math.pow(f.value,2)/40,f.value);function b(e,t){let n=!1;return e>a.value?(e=a.value,n=!0):eo.value?(t=o.value,n=!0):t1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+s,b.historyX.shift(),b.historyX.push(n),V.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(i=t.detail.dy+r,b.historyY.shift(),b.historyY.push(i),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let a="touch";n$.value&&(e.outOfBounds?(a="touch-out-of-bounds",n=$.value+_.x(n-$.value)):n=$.value),iA.value&&(e.outOfBounds?(a="touch-out-of-bounds",i=A.value+v.x(i-A.value)):i=A.value),jf((function(){N(n,i,l.value,a)}))}}}function Y(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!B("out-of-bounds")&&e.inertia)){const e=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),t=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),n=d.value,i=h.value;k.setV(e,t),k.setS(n,i);const a=k.delta().x,o=k.delta().y;let s=a+n,r=o+i;s$.value&&(s=$.value,r=i+($.value-n)*o/a),rA.value&&(r=A.value,s=n+(A.value-i)*a/o),k.setEnd(s,r),f=qf(k,(function(){let e=k.s(),t=e.x,n=e.y;N(t,n,l.value,"friction")}),(function(){f.cancel()}))}e.outOfBounds||e.inertia||L()}function X(){if(!i.value)return;L();let t=e.scale?C.value:1;D(),P(t),E();let n=R(W.value+I.x,q.value+I.y),a=n.x,o=n.y;N(a,o,t,"",!0),x(t)}return ta((()=>{If(n.value,(e=>{switch(e.detail.state){case"start":H();break;case"move":z(e);break;case"end":Y()}})),X(),k.reconfigure(1,w.value),U.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:X,_endScale:T,_setScale:S};a(e),oa((()=>{o(e)}))})),oa((()=>{L()})),{setParent:X}}(e,a,i);return()=>xo("uni-movable-view",{ref:i},[xo($p,{onResize:o},null,8,["onResize"]),t.default&&t.default()],512)}});let Ff=!1;function jf(e){Ff||(Ff=!0,requestAnimationFrame((function(){e(),Ff=!1})))}function Vf(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Vf(e.offsetParent,t):0}function Wf(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Wf(e.offsetParent,t):0}function qf(e,t,n){let i={id:0,cancelled:!1};return function e(t,n,i,a){if(!t||!t.cancelled){i(n);let o=n.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,a))),o&&a&&a(n)}}(i,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),model:e}}function Uf(e){return/\d+[ur]px$/i.test(e)?Yd(parseFloat(e)):Number(e)||0}const Hf=["navigate","redirect","switchTab","reLaunch","navigateBack"],zf=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Yf=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],Xf={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Hf.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||zf.concat(Yf).includes(e)},animationDuration:{type:[String,Number],default:300}};const Kf=ku({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:_({},Xf,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=Lo(),i=n&&n.vnode.scopeId||"",{hovering:a,binding:o}=Su(e),s=function(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":qy({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":Uy({url:e.url,exists:e.exists});break;case"switchTab":Yy({url:e.url});break;case"reLaunch":Hy({url:e.url});break;case"navigateBack":Vy({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}(e);return()=>{const{hoverClass:r,url:l}=e,c=e.hoverClass&&"none"!==e.hoverClass,u=xo("uni-navigator",Io({class:c&&a.value?r:""},c&&o,n?n.attrs:{},{[i]:""},{onClick:s}),[t.default&&t.default()],16,["onClick"]);return e.renderLink?xo("a",{class:"navigator-wrap",href:l,onClick:kc,onMousedown:kc},[u],40,["href","onClick","onMousedown"]):u}}});const Gf=ku({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return k(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const i=Dn(null),a=Dn(null),o=Du(i,n),s=function(e){const t=fn([...e.value]),n=fn({value:t,height:34});return bi((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),r=Dn(null);ta((()=>{const e=r.value;s.height=e.$el.offsetHeight}));let l=Dn([]),c=Dn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==so));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return gi("getPickerViewColumn",(function(e){return Uo({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const i=u(e.vnode);if(i<0)return;if(s.value[i]!==t){s.value[i]=t;const e=s.value.map((e=>e));n("update:value",e),o("change",{},{value:e})}}})})),gi("pickerViewProps",e),gi("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Tf(e);l.value=t,Kn((()=>{c.value=t}))}return xo("uni-picker-view",{ref:i},[xo($p,{ref:r,onResize:({height:e})=>s.height=e},null,8,["onResize"]),xo("div",{ref:a,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Jf{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function Qf(e,t,n){return e>t-n&&e0){const a=(-n-Math.sqrt(o))/(2*i),s=(-n+Math.sqrt(o))/(2*i),r=(t-a*e)/(s-a),l=e-r;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,a*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+r*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,a*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*a*t+r*s*n}}}const s=Math.sqrt(4*i*a-n*n)/(2*i),r=-n/2*i,l=e,c=(t-r*e)/s;return{x:function(e){return Math.pow(Math.E,r*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,r*e),n=Math.cos(s*e),i=Math.sin(s*e);return t*(c*s*n-l*s*i)+r*t*(c*i+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Zf(t,.4)){t=t||0;let i=this._endPosition;this._solution&&(Zf(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),Zf(t,.4)&&(t=0),Zf(i,.4)&&(i=0),i+=this._endPosition),this._solution&&Zf(i-e,.4)&&Zf(t,.4)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),Qf(this.x(),this._endPosition,.4)&&Zf(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class tm{constructor(e,t,n){this._extent=e,this._friction=t||new Jf(.01),this._spring=n||new em(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class nm{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new tm(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,i<=0&&i>=-this._extent&&this._scroll.setVelocityByEnd(i)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const i={id:0,cancelled:!1};return function e(t,n,i,a){if(!t||!t.cancelled){i(n);const o=n.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,a))),o&&a&&a(n)}}(i,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const i=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/i),this._lastTime=e)}),(()=>{this._enableSnap&&(i<=0&&i>=-this._extent&&(this._position=i,this.updatePosition()),S(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),S(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(S(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let i=0;const a=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),a!==this._position&&(this.dispatchScroll(),S(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function im(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},i=new nm(e,t);function a(e){const t=e,i=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:i.screenX-n.x,y:i.screenY-n.y}}return{scroller:i,handleTouchStart:function(e){const t=e,a=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=a.screenX,n.y=a.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||a.timeStamp],n.listener=i,i.onTouchStart&&i.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,i=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const o=a(e);if(o){for(n.maxDy=Math.max(n.maxDy,Math.abs(o.y)),n.maxDx=Math.max(n.maxDx,Math.abs(o.x)),n.historyX.push(o.x),n.historyY.push(o.y),n.historyTime.push(t.detail.timeStamp||i.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(o.x,o.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=a(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const i={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,a=n.historyTime[t],o=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=a-n.historyTime[t];if(e>30&&e<50){i.x=(o-n.historyX[t])/(e/1e3),i.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,i)}}}}}let am=0;const om=ku({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const i=Dn(null),a=Dn(null),o=yi("getPickerViewColumn"),s=Lo(),r=o?o(s):Dn(0),l=yi("pickerViewProps"),c=yi("pickerViewState"),u=Dn(34),d=Dn(null);ta((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const h=Uo((()=>(c.height-u.value)/2)),{state:p}=df(),f=function(e){const t="uni-picker-view-content-"+am++;return bi((()=>e.value),(function(){const n=document.createElement("style");n.innerText=`.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`,document.head.appendChild(n)})),t}(u);let m;const g=fn({current:r.value,length:0});let y;function _(){m&&!y&&(y=!0,Kn((()=>{y=!1;let e=Math.min(g.current,g.length-1);e=Math.max(e,0),m.update(e*u.value,void 0,u.value)})))}bi((()=>r.value),(e=>{e!==g.current&&(g.current=e,_())})),bi((()=>g.current),(e=>r.value=e)),bi([()=>u.value,()=>g.length,()=>c.height],_);let v=0;function b(e){const t=v+e.deltaY;if(Math.abs(t)>10){v=0;let e=Math.min(g.current+(t<0?-1:1),g.length-1);g.current=e=Math.max(e,0),m.scrollTo(e*u.value)}else v=t;e.preventDefault()}function w({clientY:e}){const t=i.value;if(!m.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,i=u.value/2;if(!(Math.abs(n)<=i)){const e=Math.ceil((Math.abs(n)-i)/u.value),t=n<0?-e:e;let a=Math.min(g.current+t,g.length-1);g.current=a=Math.max(a,0),m.scrollTo(a*u.value)}}}return ta((()=>{const e=i.value,t=a.value,{scroller:n,handleTouchStart:o,handleTouchMove:s,handleTouchEnd:r}=im(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Jf(1e-4),spring:new em(2,90,20),onSnap:e=>{isNaN(e)||e===g.current||(g.current=e)}});m=n,If(e,(e=>{switch(e.detail.state){case"start":o(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":r(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const i=e.changedTouches[0];t=i.clientX,n=i.clientY})),e.addEventListener("touchend",(e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-t)<20&&Math.abs(i.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=i[e]})),e.target.dispatchEvent(n)}}))}(e),_()})),()=>{const e=t.default&&t.default();g.length=Tf(e).length;const n=`${h.value}px 0`;return xo("uni-picker-view-column",{ref:i},[xo("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[xo("div",Io(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),xo("div",Io(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[xo($p,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),xo("div",{ref:a,class:["uni-picker-view-content",f],style:{padding:n}},[e],6)],40,["onWheel","onClick"])],512)}}}),sm=G,rm="backwards",lm=ku({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:sm},activeColor:{type:String,default:sm},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:rm},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=function(e){const t=Dn(0),n=Uo((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),i=Uo((()=>{const n=e.color!==sm&&e.activeColor===sm?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),a=Uo((()=>{let t=parseFloat(e.percent);return t<0&&(t=0),t>100&&(t=100),t})),o=fn({outerBarStyle:n,innerBarStyle:i,realPercent:a,currentPercent:t,strokeTimer:0,lastPercent:0});return o}(e);return cm(t,e),bi((()=>t.realPercent),((n,i)=>{t.strokeTimer&&clearInterval(t.strokeTimer),t.lastPercent=i||0,cm(t,e)})),()=>{const{showInfo:n}=e,{outerBarStyle:i,innerBarStyle:a,currentPercent:o}=t;return xo("uni-progress",{class:"uni-progress"},[xo("div",{style:i,class:"uni-progress-bar"},[xo("div",{style:a,class:"uni-progress-inner-bar"},null,4)],4),n?xo("p",{class:"uni-progress-info"},[o+"%"]):""])}}});function cm(e,t){t.active?(e.currentPercent=t.activeMode===rm?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}const um=Dc("ucg"),dm=ku({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const i=Dn(null);return function(e,t){const n=[];ta((()=>{r(n.length-1)}));const i=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};gi(um,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,a){r(n.indexOf(a),!0),t("change",e,{value:i()})}});const a=yi(Pu,!1),o={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=i()),t}};a&&(a.addField(o),aa((()=>{a.removeField(o)})));function s(e,t){e.value={radioChecked:t,value:e.value.value}}function r(e,t){n.forEach(((i,a)=>{a!==e&&(t?s(n[a],!1):n.forEach(((e,t)=>{a>=t||n[t].value.radioChecked&&s(n[a],!1)})))}))}}(e,Du(i,t)),()=>xo("uni-radio-group",{ref:i},[n.default&&n.default()],512)}});const hm=ku({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},setup(e,{slots:t}){const n=Dn(e.checked),i=Dn(e.value),a=Uo((()=>e.disabled?"background-color: #E1E1E1;border-color: ##D1D1D1;":`background-color: ${e.color};border-color: ${e.color};`));bi([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,i.value=t}));const{uniCheckGroup:o,uniLabel:s,field:r}=function(e,t,n){const i=Uo({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),a={reset:n},o=yi(um,!1);o&&o.addField(i);const s=yi(Pu,!1);s&&s.addField(a);const r=yi(Ou,!1);return aa((()=>{o&&o.removeField(i),s&&s.removeField(a)})),{uniCheckGroup:o,uniForm:s,uniLabel:r,field:i}}(n,i,(()=>{n.value=!1})),l=t=>{e.disabled||(n.value=!0,o&&o.radioChange(t,r),t.stopPropagation())};return s&&(s.addHandler(l),aa((()=>{s.removeHandler(l)}))),Au(e,{"label-click":l}),()=>{const i=Cu(e,"disabled");return xo("uni-radio",Io(i,{onClick:l}),[xo("div",{class:"uni-radio-wrapper"},[xo("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:n.value?a.value:""},[n.value?Ac(Mc,e.disabled?"#ADADAD":"#fff",18):""],6),t.default&&t.default()])],16,["onClick"])}}});const pm=We(!0),fm=ku({name:"ScrollView",compatConfig:{MODE:3},props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n}){const i=Dn(null),a=Dn(null),o=Dn(null),s=Dn(null),r=Dn(null),l=Du(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=Uo((()=>Number(e.scrollTop)||0)),n=Uo((()=>Number(e.scrollLeft)||0)),i=fn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""});return{state:i,scrollTopNumber:t,scrollLeftNumber:n}}(e);!function(e,t,n,i,a,o,s,r,l){let c=!1,u=0,d=!1,h=()=>{};const p=Uo((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),f=Uo((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function m(e,t){const n=s.value;let i=0,a="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?i=n.scrollLeft-e:"y"===t&&(i=n.scrollTop-e),0===i)return;let o=r.value;o.style.transition="transform .3s ease-out",o.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?a="translateX("+i+"px) translateZ(0)":"y"===t&&(a="translateY("+i+"px) translateZ(0)"),o.removeEventListener("transitionend",h),o.removeEventListener("webkitTransitionEnd",h),h=()=>b(e,t),o.addEventListener("transitionend",h),o.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),o.style.transform=a,o.style.webkitTransform=a}function g(n){const i=n.target;a("scroll",n,{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollHeight:i.scrollHeight,scrollWidth:i.scrollWidth,deltaX:t.lastScrollLeft-i.scrollLeft,deltaY:t.lastScrollTop-i.scrollTop}),e.scrollY&&(i.scrollTop<=p.value&&t.lastScrollTop-i.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),i.scrollTop+i.offsetHeight+f.value>=i.scrollHeight&&t.lastScrollTop-i.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(i.scrollLeft<=p.value&&t.lastScrollLeft-i.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(a("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),i.scrollLeft+i.offsetWidth+f.value>=i.scrollWidth&&t.lastScrollLeft-i.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(a("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=i.scrollTop,t.lastScrollLeft=i.scrollLeft}function y(t){e.scrollY&&(e.scrollWithAnimation?m(t,"y"):s.value.scrollTop=t)}function _(t){e.scrollX&&(e.scrollWithAnimation?m(t,"x"):s.value.scrollLeft=t)}function v(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=o.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),i=n.getBoundingClientRect();if(e.scrollX){let n=i.left-t.left,a=s.value.scrollLeft+n;e.scrollWithAnimation?m(a,"x"):s.value.scrollLeft=a}if(e.scrollY){let n=i.top-t.top,a=s.value.scrollTop+n;e.scrollWithAnimation?m(a,"y"):s.value.scrollTop=a}}}}function b(t,n){r.value.style.transition="",r.value.style.webkitTransition="",r.value.style.transform="",r.value.style.webkitTransform="";let i=s.value;"x"===n?(i.style.overflowX=e.scrollX?"auto":"hidden",i.scrollLeft=t):"y"===n&&(i.style.overflowY=e.scrollY?"auto":"hidden",i.scrollTop=t),r.value.removeEventListener("transitionend",h),r.value.removeEventListener("webkitTransitionEnd",h)}function w(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,a("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,a("refresherrestore",{},{})),"refresherabort"===n&&d&&(d=!1,a("refresherabort",{},{}))}t.refreshState=n}}ta((()=>{Kn((()=>{y(n.value),_(i.value)})),v(e.scrollIntoView);let o=function(e){e.preventDefault(),e.stopPropagation(),g(e)},r={x:0,y:0},l=null,h=function(n){if(null===r)return;let i=n.touches[0].pageX,o=n.touches[0].pageY,h=s.value;if(Math.abs(i-r.x)>Math.abs(o-r.y))if(e.scrollX){if(0===h.scrollLeft&&i>r.x)return void(l=!1);if(h.scrollWidth===h.offsetWidth+h.scrollLeft&&ir.y)l=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(h.scrollHeight===h.offsetHeight+h.scrollTop&&o0&&(d=!0,a("refresherpulling",n,{deltaY:i})));const s=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(s>1?1:s)}},p=function(e){1===e.touches.length&&(r={x:e.touches[0].pageX,y:e.touches[0].pageY})},f=function(n){r=null,t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};s.value.addEventListener("touchstart",p,pm),s.value.addEventListener("touchmove",h,We(!1)),s.value.addEventListener("scroll",o,We(!1)),s.value.addEventListener("touchend",f,pm),aa((()=>{s.value.removeEventListener("touchstart",p),s.value.removeEventListener("touchmove",h),s.value.removeEventListener("scroll",o),s.value.removeEventListener("touchend",f)}))})),qi((()=>{e.scrollY&&(s.value.scrollTop=t.lastScrollTop),e.scrollX&&(s.value.scrollLeft=t.lastScrollLeft)})),bi(n,(e=>{y(e)})),bi(i,(e=>{_(e)})),bi((()=>e.scrollIntoView),(e=>{v(e)})),bi((()=>e.refresherTriggered),(e=>{!0===e?w("refreshing"):!1===e&&w("restore")}))}(e,c,u,d,l,i,a,s,t);const h=Uo((()=>{let t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{const{refresherEnabled:t,refresherBackground:l,refresherDefaultStyle:u}=e,{refresherHeight:d,refreshState:p,refreshRotate:f}=c;return xo("uni-scroll-view",{ref:i},[xo("div",{ref:o,class:"uni-scroll-view"},[xo("div",{ref:a,style:h.value,class:"uni-scroll-view"},[xo("div",{ref:s,class:"uni-scroll-view-content"},[t?xo("div",{ref:r,style:{backgroundColor:l,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==u?xo("div",{class:"uni-scroll-view-refresh"},[xo("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==p?xo("svg",{key:"refresh__icon",style:{transform:"rotate("+f+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[xo("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),xo("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==p?xo("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[xo("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==u?n.refresher&&n.refresher():null],4):null,n.default&&n.default()],512)],4)],512)],512)}}});function mm(e,t,n,i,a,o){function s(){c&&(clearTimeout(c),c=null)}let r,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=Uo((()=>n.value.length>t.displayMultipleItems)),_=Uo((()=>e.circular&&y.value));function v(a){Math.floor(2*d)===Math.floor(2*a)&&Math.ceil(2*d)===Math.ceil(2*a)||_.value&&function(i){if(!u)for(let a=n.value,o=a.length,s=i+t.displayMultipleItems,r=0;r=c.length&&(a-=c.length),a=r%1>.5||r<0?a-1:a,o("transition",{},{dx:e.vertical?0:a*l.offsetWidth,dy:e.vertical?a*l.offsetHeight:0})}function b(e){const i=n.value.length;if(!i)return-1;const a=(Math.round(e)%i+i)%i;if(_.value){if(i<=t.displayMultipleItems)return 0}else if(a>i-t.displayMultipleItems)return i-t.displayMultipleItems;return a}function w(){p=null}function k(){if(!p)return void(f=!1);const e=p,i=e.toPos,a=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){v(i),p=null,f=!1,r=null;const e=n.value[t.current];if(e){const n=e.getItemId();o("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}v(i+a*u*u/2),l=requestAnimationFrame(k)}function x(e,i,a){w();const o=t.duration,s=n.value.length;let r=d;if(_.value)if(a<0){for(;re;)r-=s}else if(a>0){for(;r>e;)r-=s;for(;r+se;)r-=s;r+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let i=-1;if(e.currentItemId)for(let t=0,a=n.value;te.vertical,()=>_.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),p&&(v(p.toPos),p=null);const a=n.value;for(let t=0;t0&&h<1||(h=1)}const r=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(v(r+l-m),m=l):(v(l),e.autoplay&&T())):(u=!0,v(-t.displayMultipleItems-1))})),bi((()=>t.interval),(()=>{c&&(s(),T())})),bi((()=>t.current),((e,i)=>{!function(e,i){const a=g;g="";const s=n.value;if(!a){const t=s.length;x(e,"",_.value&&i+(t-e)%t>t/2?1:0)}const r=s[e];if(r){const e=t.currentItemId=r.getItemId();o("change",{},{current:t.current,currentItemId:e,source:a})}}(e,i),a("update:current",e)})),bi((()=>t.currentItemId),(e=>{a("update:currentItemId",e)})),bi((()=>e.autoplay&&!t.userTracking),S),S(e.autoplay&&!t.userTracking),ta((()=>{let a=!1,o=0,r=0;function l(e){t.userTracking=!1;const n=o/Math.abs(o);let i=0;!e&&Math.abs(o)>.2&&(i=.5*n);const a=b(d+i);e?v(m):(g="touch",t.current=a,x(a,"touch",0!==i?i:0===a&&_.value&&d>=1?1:0))}If(i.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,a=!1,s(),m=d,o=0,r=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!a){a=!0;const n=Math.abs(c.detail.dx),i=Math.abs(c.detail.dy);if((n>=i&&e.vertical||n<=i&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&T())}return function(a){const s=r;r=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;o=.6*o+.4*t,_.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),o=0),v(n)}const d=r-s||1,h=i.value;e.vertical?u(-a.dy/h.offsetHeight,-a.ddy/d):u(-a.dx/h.offsetWidth,-a.ddx/d)}(c.detail),!1}}}))})),oa((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){x(t.current=e,g="click",_.value?1:0)},circularEnabled:_,swiperEnabled:y}}const gm=ku({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const i=Dn(null),a=Du(i,n),o=Dn(null),s=Dn(null),r=function(e){return fn({interval:Uo((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Uo((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Uo((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Uo((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Ic(e.previousMargin,!0),bottom:Ic(e.nextMargin,!0)}:{top:0,bottom:0,left:Ic(e.previousMargin,!0),right:Ic(e.nextMargin,!0)}),t})),c=Uo((()=>{const t=Math.abs(100/r.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],h=Dn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));i&&e.push(kn(i))}h.value=e}gi("addSwiperContext",(function(e){d.push(e),p()}));gi("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=mm(e,r,h,s,n,a);let y=()=>null;return y=ym(i,e,r,f,h,m,g),()=>{const n=t.default&&t.default();return u=Tf(n),xo("uni-swiper",{ref:i},[xo("div",{ref:o,class:"uni-swiper-wrapper"},[xo("div",{class:"uni-swiper-slides",style:l.value},[xo("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&xo("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,i)=>xo("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=r.current||n{let r=!1,l=!1,c=!1,u=Dn(!1);function d(e,n){const i=e.currentTarget;i&&(i.style.backgroundColor="over"===n?t.navigationActiveColor:"")}_i((()=>{r="auto"===t.navigation,u.value=!0!==t.navigation||r,v()})),_i((()=>{const e=a.value.length,t=!o.value;l=0===n.current&&t,c=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,c=!0,r&&(u.value=!0))}));const h={onMouseover:e=>d(e,"over"),onMouseout:e=>d(e,"out")};function p(e,t,s){if(e.stopPropagation(),s)return;const r=a.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&o.value&&(l=r-1);break;case"next":l++,l>=r&&o.value&&(l=0)}i(l)}const f=()=>Ac($c,t.navigationColor,26);let m;const g=n=>{clearTimeout(m);const{clientX:i,clientY:a}=n,{left:o,right:s,top:r,bottom:l,width:c,height:d}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(a-r{u.value=h}),300);u.value=h},y=()=>{u.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",g),e.value.removeEventListener("mouseleave",y),r&&(e.value.addEventListener("mousemove",g),e.value.addEventListener("mouseleave",y)))}return ta(v),function(){const e={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?xo(ao,null,[xo("div",Io({class:["uni-swiper-navigation uni-swiper-navigation-prev",_({"uni-swiper-navigation-disabled":l},e)],onClick:e=>p(e,"prev",l)},h),[f()],16,["onClick"]),xo("div",Io({class:["uni-swiper-navigation uni-swiper-navigation-next",_({"uni-swiper-navigation-disabled":c},e)],onClick:e=>p(e,"next",c)},h),[f()],16,["onClick"])]):null}},_m=ku({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Dn(null),i={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const i=t?"0":100*e+"%",a=t?100*e+"%":"0",o=n.value,s=`translate(${i},${a}) translateZ(0)`;o&&(o.style.webkitTransform=s,o.style.transform=s)}};return ta((()=>{const e=yi("addSwiperContext");e&&e(i)})),oa((()=>{const e=yi("removeSwiperContext");e&&e(i)})),()=>xo("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),vm=ku({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=Dn(null),i=Dn(e.checked),a=function(e,t){const n=yi(Pu,!1),i=yi(Ou,!1),a={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(a),oa((()=>{n.removeField(a)})));return i}(e,i),o=Du(n,t);bi((()=>e.checked),(e=>{i.value=e}));const s=t=>{e.disabled||(i.value=!i.value,o("change",t,{value:i.value}))};return a&&(a.addHandler(s),aa((()=>{a.removeHandler(s)}))),Au(e,{"label-click":s}),()=>{const{color:t,type:a}=e,o=Cu(e,"disabled"),r={};return t&&i.value&&(r.backgroundColor=t,r.borderColor=t),xo("uni-switch",Io({ref:n},o,{onClick:s}),[xo("div",{class:"uni-switch-wrapper"},[ua(xo("div",{class:["uni-switch-input",[i.value?"uni-switch-input-checked":""]],style:r},null,6),[[As,"switch"===a]]),ua(xo("div",{class:"uni-checkbox-input"},[i.value?Ac(Mc,e.color,22):""],512),[[As,"checkbox"===a]])])],16,["onClick"])}}});const bm={ensp:" ",emsp:" ",nbsp:" "};function wm(e,t){return e.replace(/\\n/g,X).split(X).map((e=>function(e,{space:t,decode:n}){if(!e)return e;t&&bm[t]&&(e=e.replace(/ /g,bm[t]));if(!n)return e;return e.replace(/ /g,bm.nbsp).replace(/ /g,bm.ensp).replace(/ /g,bm.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}(e,t)))}const km=ku({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup:(e,{slots:t})=>()=>{const n=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==so){const i=wm(t.children,{space:e.space,decode:e.decode}),a=i.length-1;i.forEach(((e,t)=>{(0!==t||e)&&n.push(So(e)),t!==a&&n.push(xo("br"))}))}else n.push(t)})),xo("uni-text",{selectable:!!e.selectable||null},[xo("span",null,n)],8,["selectable"])}}),xm=_({},mf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Sm.concat("return").includes(e)}});let Tm=!1;const Sm=["done","go","next","search","send"];const Cm=ku({name:"Textarea",props:xm,emits:["confirm","linechange",...gf],setup(e,{emit:t}){const n=Dn(null),i=Dn(null),{fieldRef:a,state:o,scopedAttrsState:s,fixDisabledColor:r,trigger:l}=vf(e,n,t),c=Uo((()=>o.value.split(X))),u=Uo((()=>Sm.includes(e.confirmType))),d=Dn(0),h=Dn(null);function p({height:e}){d.value=e}function f(e){"Enter"===e.key&&u.value&&e.preventDefault()}function m(t){if("Enter"===t.key&&u.value){!function(e){l("confirm",e,{value:o.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return bi((()=>d.value),(t=>{const a=n.value,o=h.value,s=i.value;let r=parseFloat(getComputedStyle(a).lineHeight);isNaN(r)&&(r=o.offsetHeight);var c=Math.round(t/r);l("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:c}),e.autoHeight&&(a.style.height="auto",s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Tm=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),()=>{let t=e.disabled&&r?xo("textarea",{key:"disabled-textarea",ref:a,value:o.value,tabindex:"-1",readonly:!!e.disabled,maxlength:o.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tm},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):xo("textarea",{key:"textarea",ref:a,value:o.value,disabled:!!e.disabled,maxlength:o.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Tm},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:f,onKeyup:m},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return xo("uni-textarea",{ref:n},[xo("div",{ref:i,class:"uni-textarea-wrapper"},[ua(xo("div",Io(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[As,!o.value.length]]),xo("div",{ref:h,class:"uni-textarea-line"},[" "],512),xo("div",{class:"uni-textarea-compute"},[c.value.map((e=>xo("div",null,[e.trim()?e:"."]))),xo($p,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?xo("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),Em=ku({name:"View",props:_({},Tu),setup(e,{slots:t}){const{hovering:n,binding:i}=Su(e);return()=>{const a=e.hoverClass;return a&&"none"!==a?xo("uni-view",Io({class:n.value?a:""},i),[t.default&&t.default()],16):xo("uni-view",null,[t.default&&t.default()])}}});function Dm(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Pm(e,t,n){e&&Zl(n||Fc(),e,(({type:e,data:n},i)=>{t(e,n,i)}))}function Im(e,t){e&&function(e,t){t=Ql(e,t),delete Jl[t]}(t||Fc(),e)}let Mm,Om=0;function $m(e,t,n,i){S(t)&&Qi(e,t.bind(n),i)}function Am(e,t,n){var i;const a=e.mpType||n.$mpType;if(a&&"component"!==a&&(Object.keys(e).forEach((i=>{if(function(e,t,n=!0){return!(n&&!S(t))&&(Qe.indexOf(e)>-1||0===e.indexOf("on"))}(i,e[i],!1)){const a=e[i];k(a)?a.forEach((e=>$m(i,e,n,t))):$m(i,a,n,t)}})),"page"===a)){t.__isVisible=!0;try{qc(n,se,t.attrs.__pageQuery),delete t.attrs.__pageQuery,"preloadPage"!==(null==(i=n.$page)?void 0:i.openType)&&qc(n,ee)}catch(Kw){console.error(Kw.message+X+Kw.stack)}}}function Lm(e,t,n){Am(e,t,n)}function Rm(e,t,n){return e[t]=n}function Nm(e){return function(t,n,i){if(!n)throw t;const a=e._instance;if(!a||!a.proxy)throw t;qc(a.proxy,ne,t)}}function Bm(e,t){return e?[...new Set([].concat(e,t))]:t}const Fm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",jm=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Vm(){const e=sy("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(Mm(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Wm(e){const t=e._context.config;var n;t.errorHandler=et(e,Nm),n=t.optionMergeStrategies,Qe.forEach((e=>{n[e]=Bm}));const i=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Vm();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Vm();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Vm();return e>Date.now()}}(i),i.$set=Rm,i.$applyOptions=Lm,function(e){Ze.forEach((t=>t(e)))}(e)}Mm="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!jm.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",o=0;o>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;const qm=Dc("upm");function Um(){return yi(qm)}function Hm(e){const t=function(e){return fn(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:i,backgroundColor:a}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=i||"#ffffff",t.backgroundColor=a||"#F7F7F7"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==og().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(Wc(Al().meta,e)))))}(e);return gi(qm,t),t}function zm(){return Al()}const Ym=window.screen,Xm=document.documentElement;function Km(){return history.state&&history.state.__id__||1}const Gm=window.CSS&&window.CSS.supports;function Jm(e){return Gm&&(Gm(e)||Gm.apply(window.CSS,e.split(":")))}const Qm=Jm("top:env(a)"),Zm=Jm("top:constant(a)"),eg=(()=>Qm?"env":Zm?"constant":"")();function tg(e){let t=0;var n,i;"custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),Ec({"--window-top":(i=t,eg?`calc(${i}px + ${eg}(safe-area-inset-top))`:`${i}px`),"--window-bottom":(n=0,eg?`calc(${n}px + ${eg}(safe-area-inset-bottom))`:`${n}px`)})}const ng="$$",ig=new Map;function ag(){return ig}function og(){const e=[],t=ig.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function sg(e,t=!0){const n=ig.get(e);n.$.__isUnload=!0,qc(n,re),ig.delete(e),t&&function(e){const t=dg.get(e);t&&(dg.delete(e),hg.pruneCacheEntry(t))}(e)}let rg=Km();function lg(e){const t=Um();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,i,a,o){const{id:s,route:r}=i,l=at(i.navigationBar,__uniConfig.themeConfig,o).titleColor;return{id:s,path:$e(r),route:r,fullPath:t,options:n,meta:i,openType:e,eventChannel:a,statusBarStyle:"#000000"===l?"dark":"light"}}("navigateTo",n,{},t)}function cg(e){const t=lg(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),ig.set(ug(t.path,t.id),e)}function ug(e,t){return e+ng+t}const dg=new Map,hg={get:e=>dg.get(e),set(e,t){!function(e){const t=parseInt(e.split(ng)[1]);if(!t)return;hg.forEach(((e,n)=>{const i=parseInt(n.split(ng)[1]);i&&i>t&&(hg.delete(n),hg.pruneCacheEntry(e),Kn((()=>{ig.forEach(((e,t)=>{e.$.isUnmounted&&ig.delete(t)}))})))}))}(e),dg.set(e,t)},delete(e){dg.get(e)&&dg.delete(e)},forEach(e){dg.forEach(e)}};function pg(e,t){!function(e){const t=mg(e),{body:n}=document;gg&&n.removeAttribute(gg),t&&n.setAttribute(t,""),gg=t}(e),tg(t),function(e){const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}(t),function(e,t){document.removeEventListener("touchmove",Uc),yg&&document.removeEventListener("scroll",yg);if(t.disableScroll)return document.addEventListener("touchmove",Uc);const{onPageScroll:n,onReachBottom:i}=e,a="transparent"===t.navigationBar.type;if(!n&&!i&&!a)return;const o={},s=e.proxy.$page.id;(n||a)&&(o.onPageScroll=function(e,t,n){return i=>{t&&X_.publishHandler(he,{scrollTop:i},e),n&&X_.emit(e+"."+he,{scrollTop:i})}}(s,n,a));i&&(o.onReachBottomDistance=t.onReachBottomDistance||50,o.onReachBottom=()=>X_.publishHandler(fe,{},s));yg=Yc(o),requestAnimationFrame((()=>document.addEventListener("scroll",yg)))}(e,t)}function fg(e){const t=mg(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function mg(e){return e.type.__scopeId}let gg,yg;function _g(e){const t=Ol({history:bg(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:vg});e.router=t,e.use(t)}const vg=(e,t,n)=>{if(n)return n};function bg(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),Sr(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=og(),n=t.length-1,i=n-e;for(let a=n;a>i;a--){const e=t[a].$page;sg(ug(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const wg={install(e){Wm(e),su(e),yu(e),e.config.warnHandler||(e.config.warnHandler=kg),_g(e)}};function kg(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const i=[`[Vue warn]: ${e}`];n.length&&i.push("\n",n),console.warn(...i)}const xg={class:"uni-async-loading"},Tg=xo("i",{class:"uni-loading"},null,-1),Sg=xu({name:"AsyncLoading",render:()=>(uo(),go("div",xg,[Tg]))});function Cg(){window.location.reload()}const Eg=xu({name:"AsyncError",setup(){Fl();const{t:e}=Nl();return()=>xo("div",{class:"uni-async-error",onClick:Cg},[e("uni.async.error")],8,["onClick"])}});let Dg;function Pg(){return Dg}function Ig(e){Dg=e,Object.defineProperty(Dg.$.ctx,"$children",{get:()=>og().map((e=>e.$vm))});const t=Dg.$.appContext.app;t.component(Sg.name)||t.component(Sg.name,Sg),t.component(Eg.name)||t.component(Eg.name,Eg),function(e){e.$vm=e,e.$mpType="app";const t=Dn(Nl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(Dg),function(e,t){const n=e.$options||{};n.globalData=_(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(Dg),mu(),dc()}function Mg(e,{clone:t,init:n,setup:i,before:a}){t&&(e=_({},e)),a&&a(e);const o=e.setup;return e.setup=(e,t)=>{const a=Lo();n(a.proxy);const s=i(a);if(o)return o(s||e,t)},e}function Og(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?Mg(e.default,t):Mg(e,t)}function $g(e,t){return Og(e,{init:e=>{e.$page={id:t}},setup(e){e.$pageInstance=e}})}function Ag(e){return Og(e,{clone:!0,init:cg,setup(e){e.$pageInstance=e;const t=zm(),n=He(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n;const i=Um();var a,o,s;return ea((()=>{pg(e,i)})),ta((()=>{fg(e);const{onReady:n}=e;n&&q(n),Bg(t)})),Hi((()=>{if(!e.__isVisible){pg(e,i),e.__isVisible=!0;const{onShow:n}=e;n&&q(n),Kn((()=>{Bg(t)}))}}),"ba",a),function(e,t){Hi(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&q(t)}})),o=i.id,X_.subscribe(Ql(o,Xl),s?s(ec):ec),aa((()=>{!function(e){X_.unsubscribe(Ql(e,Xl)),Object.keys(Jl).forEach((t=>{0===t.indexOf(e+".")&&delete Jl[t]}))}(i.id)})),n}})}function Lg(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:i}=ty(),a=90===Math.abs(Number(window.orientation))?"landscape":"portrait";K_.emit(ue,{deviceOrientation:a,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:i}})}function Rg(e){O(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&K_.emit(Ee,e.data.data,e.data.pageId)}function Ng(){const{emit:e}=K_;"visible"===document.visibilityState?e(Se,_({},Op)):e(Ce)}function Bg(e){const{tabBarText:t,tabBarIndex:n,route:i}=e.meta;t&&qc("onTabItemTap",{index:n,text:t,pagePath:i})}const Fg=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},jg=Le((()=>K_.on(Ee,Fg))),Vg=ku({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},setup(e){jg();const t=Dn(null),n=Dn(null),{$attrs:i,$excludeAttrs:a,$listeners:o}=xf({excludeListeners:!0});let s;return(()=>{const a=document.createElement("iframe");_i((()=>{for(const e in i.value)if(w(i.value,e)){const t=i.value[e];a[e]=t}})),_i((()=>{a.src=Fu(e.src)})),n.value=a,s=function(e,t,n){const i=()=>{var i,a;if(n){const{top:n,left:i,width:a,height:o}=e.value.getBoundingClientRect();Ae(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:i+"px",width:a+"px",height:o+"px"})}else Ae(t.value,{width:(null==(i=e.value)?void 0:i.style.width)||"300px",height:(null==(a=e.value)?void 0:a.style.height)||"150px"})};return i}(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(a)})(),ta((()=>{var i;s(),!e.fullscreen&&(null==(i=t.value)||i.appendChild(n.value))})),qi((()=>{e.fullscreen&&(n.value.style.display="block")})),Ui((()=>{e.fullscreen&&(n.value.style.display="none")})),aa((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>xo(ao,null,[xo("uni-web-view",Io({class:e.fullscreen?"uni-webview--fullscreen":""},o.value,a.value,{ref:t}),[xo($p,{onResize:s},null,8,["onResize"])],16)])}});const Wg=Bd("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),qg="__DC_STAT_UUID",Ug=window.localStorage||window.sessionStorage||{};let Hg;function zg(){if(Hg=Hg||Ug[qg],!Hg){Hg=Date.now()+""+Math.floor(1e7*Math.random());try{Ug[qg]=Hg}catch(e){}}return Hg}function Yg(){if(!0!==__uniConfig.darkmode)return C(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Xg(){let e,t="0",n="",i="phone";const a=navigator.language;if(Wu){e="iOS";const i=ju.match(/OS\s([\w_]+)\slike/);i&&(t=i[1].replace(/_/g,"."));const a=ju.match(/\(([a-zA-Z]+);/);a&&(n=a[1])}else if(Vu){e="Android";const i=ju.match(/Android[\s/]([\w\.]+)[;\s]/);i&&(t=i[1]);const a=ju.match(/\((.+?)\)/),o=a?a[1].split(";"):ju.split(" "),s=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let i;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:i?11:-1}());if("-1"!==l)r="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=Yu(),n=Xu(t),i=Ku(t,n),a=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),o=Gu(i);let s=window.innerHeight;const r=wc.top,l={left:wc.left,right:o-wc.right,top:wc.top,bottom:s-wc.bottom,width:o-wc.left-wc.right,height:s-wc.top-wc.bottom},{top:c,bottom:u}=Cc();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:o,windowHeight:s,pixelRatio:e,screenWidth:i,screenHeight:a,statusBarHeight:r,safeArea:l,safeAreaInsets:{top:wc.top,right:wc.right,bottom:wc.bottom,left:wc.left},screenTop:a-s}}));let Gg,Jg=!0;function Qg(){Jg&&(Gg=Xg())}const Zg=Nd(0,(()=>{Qg();const{deviceBrand:e,deviceModel:t,brand:n,model:i,platform:a,system:o,deviceOrientation:s,deviceType:r}=Gg;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:zg(),deviceOrientation:s,deviceType:r,model:i,platform:a,system:o}})),ey=Nd(0,(()=>{Qg();const{theme:e,language:t,browserName:n,browserVersion:i}=Gg;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Bh?Bh():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:i,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""}})),ty=Nd(0,(()=>{Jg=!0,Qg(),Jg=!1;const e=Kg(),t=Zg(),n=ey();Jg=!0;const{ua:i,browserName:a,browserVersion:o,osname:s,osversion:r}=Gg,l=_(e,t,n,{ua:i,browserName:a,browserVersion:o,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:s.toLocaleLowerCase(),osVersion:r,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return O(e)&&Object.keys(e).sort().forEach((n=>{const i=n;t[i]=e[i]})),Object.keys(t)?t:e}(l)}));const ny=Bd("setClipboardData",((e,t)=>{return n=void 0,i=[e,t],a=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(i){!function(e,t,n){const i=document.getElementById("#clipboard");i&&i.remove();const a=document.createElement("textarea");a.id="#clipboard",a.style.position="fixed",a.style.top="-9999px",a.style.zIndex="-9999",document.body.appendChild(a),a.value=e,a.select(),a.setSelectionRange(0,a.value.length);const o=document.execCommand("Copy",!1);a.blur(),o?t():n()}(e,t,n)}},new Promise(((e,t)=>{var o=e=>{try{r(a.next(e))}catch(Kw){t(Kw)}},s=e=>{try{r(a.throw(e))}catch(Kw){t(Kw)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,s);r((a=a.apply(n,i)).next())}));var n,i,a}),0,Wh);const iy=Nd(0,((e,t)=>{const n=typeof t,i="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,i)})),ay=Bd("setStorage",(({key:e,data:t},{resolve:n,reject:i})=>{try{iy(e,t),n()}catch(a){i(a.message)}}));function oy(e){const t=localStorage&&localStorage.getItem(e);if(!C(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=C(e)?JSON.parse(e):e,i=n.type;if(t.indexOf(i)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===i)return n.data;if("object"===i&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(i){}return n}const sy=Nd(0,(e=>{try{return oy(e)}catch(t){return""}})),ry=Nd(0,(e=>{localStorage&&localStorage.removeItem(e)})),ly=Nd(0,(()=>{localStorage&&localStorage.clear()})),cy=Nd(0,(()=>{const e=localStorage&&localStorage.length||0,t=[];let n=0;for(let i=0;i{const i=new Image;i.onload=function(){t({width:i.naturalWidth,height:i.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},i.onerror=function(){n()},i.src=e}),0,Yh),dy={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function hy({count:e,sourceType:t,type:n,extension:i}){const a=document.createElement("input");return a.type="file",Ae(a,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),a.accept=i.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${dy[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(a.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&a.setAttribute("capture","camera"),a}lf();let py=null;const fy=Bd("chooseFile",(({count:e,sourceType:t,type:n,extension:i},{resolve:a,reject:o})=>{Ul();const{t:s}=Nl();py&&(document.body.removeChild(py),py=null),py=hy({count:e,sourceType:t,type:n,extension:i}),document.body.appendChild(py),py.addEventListener("change",(function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let a=0;a(o=o||Pp(t),o)}),ae))},tempFiles:i})})),py.click(),cf()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,zh);let my=null;const gy=Bd("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:i,reject:a})=>{Ul();const{t:o}=Nl();my&&(document.body.removeChild(my),my=null),my=hy({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(my),my.addEventListener("change",(function(t){const n=t.target,a=[];if(n&&n.files){const t=n.files.length;for(let i=0;i(o=o||Pp(t),o)}),ie))},tempFiles:a})})),my.click(),cf()||console.warn(o("uni.chooseFile.notUserActivation"))}),0,qh),yy={esc:["Esc","Escape"],enter:["Enter"]},_y=Object.keys(yy);function vy(){const e=Dn(""),t=Dn(!1),n=n=>{if(t.value)return;const i=_y.find((e=>-1!==yy[e].indexOf(n.key)));i&&(e.value=i),Kn((()=>e.value=""))};return ta((()=>{document.addEventListener("keyup",n)})),aa((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const by=xo("div",{class:"uni-mask"},null,-1);function wy(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Bs(Ai({setup:()=>()=>(uo(),go(e,t,null,16))}))}function ky(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function xy(e,{onEsc:t,onEnter:n}){const i=Dn(e.visible),{key:a,disable:o}=vy();return bi((()=>e.visible),(e=>i.value=e)),bi((()=>i.value),(e=>o.value=!e)),_i((()=>{const{value:e}=a;"esc"===e?t&&t():"enter"===e&&n&&n()})),i}let Ty=0,Sy="";function Cy(e){let t=Ty;Ty+=e?1:-1,Ty=Math.max(0,Ty),Ty>0?0===t&&(Sy=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Sy,Sy="")}const Ey=xu({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=fn({direction:"none"});let n=1,i=0,a=0,o=0,s=0;function r({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height}function c(e){const t=e.target.getBoundingClientRect();o=t.width,s=t.height,d(e)}function u(e){const r=n*i>o,l=n*a>s;t.direction=r&&l?"all":r?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return xo(Sf,{style:n,onTouchstart:Eu(c),onTouchmove:Eu(d),onTouchend:Eu(u)},{default:()=>[xo(Bf,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:r},{default:()=>[xo("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function Dy(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const Py=xu({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){ta((()=>Cy(!0))),oa((()=>Cy(!1)));const n=Dn(null),i=Dn(Dy(e));let a;function o(){a||Kn((()=>{t("close")}))}function s(e){i.value=e.detail.current}bi((()=>e.current),(()=>i.value=Dy(e))),ta((()=>{const e=n.value;let t=0,i=0;e.addEventListener("mousedown",(e=>{a=!1,t=e.clientX,i=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-i)>20)&&(a=!0)}))}));const r={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return xo("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:o},[xo(gm,{navigation:"auto",current:i.value,onChange:s,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(a=t=e.urls.map((e=>xo(_m,null,{default:()=>[xo(Ey,{src:e},null,8,["src"])]}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!yo(a)?t:{default:()=>[t],_:1}),8,["current","onChange"]),xo("div",{style:r},[Ac("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var a}}});let Iy,My=null;const Oy=()=>{My=null,Kn((()=>{null==Iy||Iy.unmount(),Iy=null}))},$y=Bd("previewImage",((e,{resolve:t})=>{My?_(My,e):(My=fn(e),Kn((()=>{Iy=wy(Py,My,Oy),Iy.mount(ky("u-a-p"))}))),t()}),0,Xh);let Ay=null;const Ly=Bd("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:i})=>{Ul();const{t:a}=Nl();Ay&&(document.body.removeChild(Ay),Ay=null),Ay=hy({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Ay),Ay.addEventListener("change",(function(e){const t=e.target.files[0];let i="";const a={tempFilePath:i,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(a,"tempFilePath",{get(){return i=i||Pp(this.tempFile),i}});const o=document.createElement("video");if(void 0!==o.onloadedmetadata){const e=Pp(t);o.onloadedmetadata=function(){Ip(e),n(_(a,{duration:o.duration||0,width:o.videoWidth||0,height:o.videoHeight||0}))},setTimeout((()=>{o.onloadedmetadata=null,Ip(e),n(a)}),300),o.src=e}else n(a)})),Ay.click(),cf()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,Uh),Ry=Rd("request",(({url:e,data:t,header:n,method:i,dataType:a,responseType:o,withCredentials:s,timeout:r=__uniConfig.networkTimeout.request},{resolve:l,reject:c})=>{let u=null;const d=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==i)if(C(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(m){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)w(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const h=new XMLHttpRequest,p=new Ny(h);h.open(i,e);for(const g in n)w(n,g)&&h.setRequestHeader(g,n[g]);const f=setTimeout((function(){h.onload=h.onabort=h.onerror=null,p.abort(),c("timeout")}),r);return h.responseType=o,h.onload=function(){clearTimeout(f);const e=h.status;let t="text"===o?h.responseText:h.response;if("text"===o&&"json"===a)try{t=JSON.parse(t)}catch(m){}l({data:t,statusCode:e,header:By(h.getAllResponseHeaders()),cookies:[]})},h.onabort=function(){clearTimeout(f),c("abort")},h.onerror=function(){clearTimeout(f),c()},h.withCredentials=s,h.send(u),p}),0,Qh);class Ny{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function By(e){const t={};return e.split(X).forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class Fy{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){S(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const jy=Rd("uploadFile",(({url:e,file:t,filePath:n,name:i,files:a,header:o,formData:s,timeout:r=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new Fy;return k(a)&&a.length||(a=[{name:i,file:t,uri:n}]),Promise.all(a.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Dp(e)):Ep(t)))).then((function(t){var n,i=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[e])})),Object.values(a).forEach((({name:e},n)=>{const i=t[n];d.append(e||"file",i,i.name||`file-${Date.now()}`)})),i.open("POST",e),Object.keys(o).forEach((e=>{i.setRequestHeader(e,o[e])})),i.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,i=e.total;t({progress:Math.round(n/i*100),totalBytesSent:n,totalBytesExpectedToSend:i})}))},i.onerror=function(){clearTimeout(n),c()},i.onabort=function(){clearTimeout(n),c("abort")},i.onload=function(){clearTimeout(n);const e=i.status;l({statusCode:e,data:i.responseText||i.response})},u._isAbort?c("abort"):(n=setTimeout((function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,u.abort(),c("timeout")}),r),i.send(d),u._xhr=i)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Zh),Vy=Bd("navigateBack",((e,{resolve:t,reject:n})=>{let i=!0;return!0===qc(de,{from:e.from||"navigateBack"})&&(i=!1),i?(Pg().$router.go(-e.delta),t()):n(de)}),0,up);function Wy({type:e,url:t,tabBarText:n,events:i},a){const o=Pg().$router,{path:s,query:r}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Ye(n||"")}}(t);return new Promise(((t,l)=>{const c=function(e,t){return{__id__:t||++rg,__type__:e}}(e,a);o["navigateTo"===e?"push":"replace"]({path:s,query:r,state:c,force:!0}).then((a=>{if(Or(a))return l(a.message);if("switchTab"===e&&(o.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=o.currentRoute.value.meta;return e.eventChannel?i&&(Object.keys(i).forEach((t=>{e.eventChannel._addListener(t,"on",i[t])})),e.eventChannel._clearCache()):e.eventChannel=new Ke(c.__id__,i),t({eventChannel:e.eventChannel})}return t()}))}))}const qy=Bd(tp,(({url:e,events:t},{resolve:n,reject:i})=>Wy({type:tp,url:e,events:t}).then(n).catch(i)),0,sp);const Uy=Bd(np,(({url:e},{resolve:t,reject:n})=>(function(){const e=Nc();if(!e)return;const t=e.$page;sg(ug(t.path,t.id))}(),Wy({type:np,url:e}).then(t).catch(n))),0,rp);const Hy=Bd(ip,(({url:e},{resolve:t,reject:n})=>(function(){const e=ag().keys();for(const t of e)sg(t)}(),Wy({type:ip,url:e}).then(t).catch(n))),0,lp);function zy(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const Yy=Bd(ap,(({url:e,tabBarText:t},{resolve:n,reject:i})=>(function(){const e=jc();if(!e)return;const t=ag(),n=t.keys();for(const i of n){const e=t.get(i);e.$.__isTabBar?e.$.__isActive=!1:sg(i)}e.$.__isTabBar&&(e.$.__isVisible=!1,qc(e,te))}(),Wy({type:ap,url:e,tabBarText:t},function(e){const t=ag().values();for(const n of t){const t=n.$page;if(zy(e,t))return n.$.__isActive=!0,t.id}}(e)).then(n).catch(i))),0,cp);function Xy(e){__uniConfig.darkmode&&K_.on(ie,e)}function Ky(e){K_.off(ie,e)}function Gy(e){let t={};return __uniConfig.darkmode&&(t=at(e,__uniConfig.themeConfig,Yg())),__uniConfig.darkmode?t:e}const Jy={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Qy=Ai({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=Dn(""),i=()=>s.value=!1,a=()=>(i(),t("close","cancel")),o=()=>(i(),t("close","confirm",n.value)),s=xy(e,{onEsc:a,onEnter:()=>{!e.editable&&o()}}),r=function(e){const t=Dn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Jy[e].cancelColor})(e,t)};return _i((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Yg()&&n({theme:"dark"}),Xy(n))):Ky(n)})),t}(e);return()=>{const{title:t,content:i,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=i,xo(vs,{name:"uni-fade"},{default:()=>[ua(xo("uni-modal",{onTouchmove:kc},[by,xo("div",{class:"uni-modal"},[t&&xo("div",{class:"uni-modal__hd"},[xo("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),d?xo("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:i,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):xo("div",{class:"uni-modal__bd",onTouchmovePassive:xc,textContent:i},null,40,["onTouchmovePassive","textContent"]),xo("div",{class:"uni-modal__ft"},[l&&xo("div",{style:{color:r.value},class:"uni-modal__btn uni-modal__btn_default",onClick:a},[e.cancelText],12,["onClick"]),xo("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:o},[c],12,["onClick"])])])],40,["onTouchmove"]),[[As,s.value]])]})}}});let Zy;const e_=Le((()=>{K_.on("onHidePopup",(()=>Zy.visible=!1))}));let t_;function n_(e,t){const n="confirm"===e,i={confirm:n,cancel:"cancel"===e};n&&Zy.editable&&(i.content=t),t_&&t_(i)}const i_=Bd("showModal",((e,{resolve:t})=>{e_(),t_=t,Zy?(_(Zy,e),Zy.visible=!0):(Zy=fn(e),Kn((()=>(wy(Qy,Zy,n_).mount(ky("u-a-m")),Kn((()=>Zy.visible=!0))))))}),0,vp),a_={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==bp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},o_="uni-toast__icon",s_={light:"#fff",dark:"rgba(255,255,255,0.9)"},r_=e=>s_[e],l_=Ai({name:"Toast",props:a_,setup(e){Vl(),Wl();const{Icon:t}=function(e){const t=Dn(r_(Yg())),n=({theme:e})=>t.value=r_(e);_i((()=>{e.visible?Xy(n):Ky(n)}));const i=Uo((()=>{switch(e.icon){case"success":return xo(Ac(Mc,t.value,38),{class:o_});case"error":return xo(Ac(Oc,t.value,38),{class:o_});case"loading":return xo("i",{class:[o_,"uni-loading"]},null,2);default:return null}}));return{Icon:i}}(e),n=xy(e,{});return()=>{const{mask:i,duration:a,title:o,image:s}=e;return xo(vs,{name:"uni-fade"},{default:()=>[ua(xo("uni-toast",{"data-duration":a},[i?xo("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:kc},null,40,["onTouchmove"]):"",s||t.value?xo("div",{class:"uni-toast"},[s?xo("img",{src:s,class:o_},null,10,["src"]):t.value,xo("p",{class:"uni-toast__content"},[o])]):xo("div",{class:"uni-sample-toast"},[xo("p",{class:"uni-simple-toast__text"},[o])])],8,["data-duration"]),[[As,n.value]])]})}}});let c_,u_,d_="";const h_=rt();function p_(e){c_?_(c_,e):(c_=fn(_(e,{visible:!1})),Kn((()=>{h_.run((()=>{bi([()=>c_.visible,()=>c_.duration],(([e,t])=>{if(e){if(u_&&clearTimeout(u_),"onShowLoading"===d_)return;u_=setTimeout((()=>{__("onHideToast")}),t)}else u_&&clearTimeout(u_)}))})),K_.on("onHidePopup",(()=>__("onHidePopup"))),wy(l_,c_,(()=>{})).mount(ky("u-a-t"))}))),setTimeout((()=>{c_.visible=!0}),10)}const f_=Bd("showToast",((e,{resolve:t,reject:n})=>{p_(e),d_="onShowToast",t()}),0,wp),m_={icon:"loading",duration:1e8,image:""},g_=Bd("showLoading",((e,{resolve:t,reject:n})=>{_(e,m_),p_(e),d_="onShowLoading",t()}),0,_p),y_=Bd("hideLoading",((e,{resolve:t,reject:n})=>{__("onHideLoading"),t()}));function __(e){const{t:t}=Nl();if(!d_)return;let n="";if("onHideToast"===e&&"onShowToast"!==d_?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==d_&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);d_="",setTimeout((()=>{c_.visible=!1}),10)}function v_(e){const t=Dn(0),n=Dn(0),i=Uo((()=>t.value>=500&&n.value>=500)),a=Uo((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},a=t.content,o=t.triangle,s=e.popover;function r(e){return Number(e)||0}if(i.value&&s){_(o,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=r(s.left),t=r(s.width),i=r(s.top),l=r(s.height),c=e+t/2;a.transform="none !important";const u=Math.max(0,c-150);a.left=`${u}px`;let d=Math.max(12,c-u);d=Math.min(288,d),o.left=`${d}px`;const h=n.value/2;i+l-h>h-i?(a.top="auto",a.bottom=n.value-i+6+"px",o.bottom="-6px",o["border-width"]="6px 6px 0 6px",o["border-color"]="#fcfcfd transparent transparent transparent"):(a.top=`${i+l+6}px`,o.top="-6px",o["border-width"]="0 6px 6px 6px",o["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return ta((()=>{const e=()=>{const{windowWidth:e,windowHeight:i,windowTop:a}=ty();t.value=e,n.value=i+(a||0)};window.addEventListener("resize",e),e(),oa((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:i,popupStyle:a}}const b_={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const w_=Ai({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){jl();const n=Dn(260),i=Dn(0),a=Dn(0),o=Dn(0),s=Dn(0),r=Dn(null),l=Dn(null),{t:c}=Nl(),{_close:u}=function(e,t){function n(e){t("close",e)}const{key:i,disable:a}=vy();return bi((()=>e.visible),(e=>a.value=!e)),_i((()=>{const{value:e}=i;"esc"===e&&n&&n(-1)})),{_close:n}}(e,t),{popupStyle:d}=v_(e);let h;function p(e){const t=o.value+e.deltaY;Math.abs(t)>10?(s.value+=t/3,s.value=s.value>=i.value?i.value:s.value<=0?0:s.value,h.scrollTo(s.value)):o.value=t,e.preventDefault()}ta((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:i}=im(r.value,{enableY:!0,friction:new Jf(1e-4),spring:new em(2,90,20),onScroll:e=>{s.value=e.target.scrollTop}});h=e,If(r.value,(a=>{if(e)switch(a.detail.state){case"start":t(a);break;case"move":n(a);break;case"end":case"cancel":i(a)}}),!0)})),bi((()=>e.visible),(()=>{Kn((()=>{e.title&&(a.value=document.querySelector(".uni-actionsheet__title").offsetHeight),h.update(),r.value&&(i.value=r.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{!function(e){const t=20;let n=0,i=0;e.addEventListener("touchstart",(e=>{const t=e.changedTouches[0];n=t.clientX,i=t.clientY})),e.addEventListener("touchend",(e=>{const a=e.changedTouches[0];if(Math.abs(a.clientX-n){i[e]=a[e]})),e.target.dispatchEvent(i)}}))}(e)}))}))}));const f=function(e){const t=fn({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=b_[e][n]}))}(e,t)};return _i((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Yg()}),Xy(n))):Ky(n)})),t}(e);return()=>xo("uni-actionsheet",{onTouchmove:kc},[xo(vs,{name:"uni-fade"},{default:()=>[ua(xo("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[As,e.visible]])]}),xo("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[xo("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?xo(ao,null,[xo("div",{class:"uni-actionsheet__cell",style:{height:`${a.value}px`}},null),xo("div",{class:"uni-actionsheet__title"},[e.title])]):"",xo("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[xo("div",{ref:r},[e.itemList.map(((e,t)=>xo("div",{key:t,style:{color:f.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),xo("div",{class:"uni-actionsheet__action"},[xo("div",{style:{color:f.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),xo("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let k_,x_,T_;const S_=Le((()=>{K_.on("onHidePopup",(()=>T_.visible=!1))}));function C_(e){-1===e?x_&&x_("cancel"):k_&&k_({tapIndex:e})}const E_=Bd("showActionSheet",((e,{resolve:t,reject:n})=>{S_(),k_=t,x_=n,T_?(_(T_,e),T_.visible=!0):(T_=fn(e),Kn((()=>(wy(w_,T_,C_).mount(ky("u-s-a-s")),Kn((()=>T_.visible=!0))))))}),0,yp);function D_(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,K_.emit(be,{titleText:t})}_i(t),qi(t)}const P_=Bd(gp,((e,{resolve:t,reject:n})=>{!function(e,t,n,i,a){if(!e)return a("page not found");const{navigationBar:o}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:i}=n,{duration:a,timingFunc:s}=i;e&&(o.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(o.backgroundColor=t),o.duration=a+"ms",o.timingFunc=s;break;case"showNavigationBarLoading":o.loading=!0;break;case"hideNavigationBarLoading":o.loading=!1;break;case gp:const{title:r}=n;o.titleText=r}i()}(Bc(),gp,e,t,n)})),I_="0px";let M_;function O_(){return M_}const $_=xu({name:"Layout",setup(e,{emit:t}){const n=Dn(null);Ec({"--status-bar-height":I_,"--top-window-height":I_,"--window-left":I_,"--window-right":I_,"--window-margin":I_,"--tab-bar-height":I_});const i=function(){const e=Al();return{routeKey:Uo((()=>ug("/"+e.meta.route,Km()))),isTabBar:Uo((()=>e.meta.isTabBar)),routeCache:hg}}(),{layoutState:a,windowState:o}=function(){const e=zm(),t=Dn(!1),n=Dn(!1),i=Dn(!1),a=Uo((()=>!1!==e.meta.topWindow&&t.value)),o=Uo((()=>!1!==e.meta.leftWindow&&n.value)),s=Uo((()=>!1)),r=fn({topWindowMediaQuery:t,showTopWindow:a,apiShowTopWindow:!1,leftWindowMediaQuery:n,showLeftWindow:o,apiShowLeftWindow:!1,rightWindowMediaQuery:i,showRightWindow:s,apiShowRightWindow:!1,topWindowHeight:0,marginWidth:0,leftWindowWidth:0,rightWindowWidth:0,navigationBarTitleText:"",topWindowStyle:{},leftWindowStyle:{},rightWindowStyle:{}});["topWindow","leftWindow","rightWindow"].forEach((e=>{var t;const n=null==(t=__uniConfig[e])?void 0:t.matchMedia;let i=768;if(n&&w(n,"minWidth")){const e=n.minWidth;i=function(e){const t=[window.outerWidth,window.outerHeight,Ym.width,Ym.height,Xm.clientWidth,Xm.clientHeight];return Math.max.apply(null,t)>e}(e)?e:i}const a=function(e,t){const n=window.matchMedia("(min-width: "+e+"px)");n.addEventListener?n.addEventListener("change",t):n.addListener(t);return n.matches}(i,(t=>{r[`${e}MediaQuery`]=t.matches}));r[`${e}MediaQuery`]=a})),bi((()=>r.topWindowHeight),(e=>Ec({"--top-window-height":e+"px"}))),bi((()=>r.marginWidth),(e=>Ec({"--window-margin":e+"px"}))),bi((()=>r.leftWindowWidth+r.marginWidth),(e=>{Ec({"--window-left":e+"px"})})),bi((()=>r.rightWindowWidth+r.marginWidth),(e=>{Ec({"--window-right":e+"px"})})),K_.on(be,(e=>{r.navigationBarTitleText=e.titleText}));const l=Uo((()=>({matchTopWindow:r.topWindowMediaQuery,showTopWindow:r.showTopWindow||r.apiShowTopWindow,matchLeftWindow:r.leftWindowMediaQuery,showLeftWindow:r.showLeftWindow||r.apiShowLeftWindow,matchRightWindow:r.rightWindowMediaQuery,showRightWindow:r.showRightWindow||r.apiShowRightWindow})));return{layoutState:r,windowState:l}}();!function(e,t){const n=zm();function i(){const i=document.body.clientWidth,a=og();let o={};if(a.length>0){o=a[a.length-1].$page.meta}else{const e=Kc(n.path,!0);e&&(o=e.meta)}const s=parseInt(String((w(o,"maxWidth")?o.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let r=!1;r=i>s,r&&s?(e.marginWidth=(i-s)/2,Kn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,Kn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}bi([()=>n.path],i),ta((()=>{i(),window.addEventListener("resize",i)}))}(a,n);const s=function(e){const{component:t,style:n}=__uniConfig.topWindow,i=Dn(null);function a(){const t=Me(i.value.$).getBoundingClientRect().height;e.topWindowHeight=t}return ta(a),bi((()=>e.showTopWindow||e.apiShowTopWindow),(()=>Kn(a))),e.topWindowStyle=n,{component:t,windowRef:i}}(a),r=function(e){const{component:t,style:n}=__uniConfig.leftWindow,i=Dn(null);function a(){const t=Me(i.value.$).getBoundingClientRect().width;e.leftWindowWidth=t}return ta(a),bi((()=>e.showLeftWindow||e.apiShowLeftWindow),(()=>Kn(a))),e.leftWindowStyle=n,{component:t,windowRef:i}}(a),l=function(e){const t=Dn(!1);return Uo((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(!1);return M_=a,()=>{const e=function(e,t,n,i,a,o){const s=function({routeKey:e,isTabBar:t,routeCache:n}){return xo(Ml,null,{default:ui((({Component:i})=>[(uo(),go(Vi,{matchBy:"key",cache:n},[(uo(),go(ma(i),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e),r=function(e,t,n){if(e){const{component:i,windowRef:a}=e;return ua(xo("uni-top-window",null,[xo("div",{class:"uni-top-window",style:t.topWindowStyle},[xo(i,Io({ref:a,"navigation-bar-title-text":t.navigationBarTitleText},n),null,16,["navigation-bar-title-text"])],4),xo("div",{class:"uni-top-window--placeholder",style:{height:t.topWindowHeight+"px"}},null,4)],512),[[As,t.showTopWindow||t.apiShowTopWindow]])}}(i,t,n.value),l=function(e,t,n){if(e){const{component:i,windowRef:a}=e;return ua(xo("uni-left-window",{"data-show":t.apiShowLeftWindow||void 0,style:t.leftWindowStyle},[t.apiShowLeftWindow?xo("div",{class:"uni-mask",onClick:()=>t.apiShowLeftWindow=!1},null,8,["onClick"]):null,xo("div",{class:"uni-left-window"},[xo(i,Io({ref:a},n),null,16)])],12,["data-show"]),[[As,t.showLeftWindow||t.apiShowLeftWindow]])}}(a,t,n.value),c=null;return xo("uni-layout",{class:{"uni-app--showtopwindow":t.showTopWindow,"uni-app--showleftwindow":t.showLeftWindow,"uni-app--showrightwindow":!1}},[r,xo("uni-content",null,[xo("uni-main",null,[s]),l,c])],2)}(i,a,o,s,r);return xo("uni-app",{ref:n,class:l.value},[e,!1],2)}}});const A_=Bd("showLeftWindow",((e,{resolve:t,reject:n})=>{const i=O_();i?(i.apiShowLeftWindow=!0,Kn(t)):n()})),L_=Bd("hideLeftWindow",((e,{resolve:t,reject:n})=>{const i=O_();i?(i.apiShowLeftWindow=!1,Kn(t)):n()})),R_="login",N_=Bd(R_,(B_=R_,(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(B_))));var B_;function F_(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!yo(e)}function j_(e){if(e.mode===q_.TIME)return"00:00";if(e.mode===q_.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case U_.YEAR:return t.toString();case U_.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function V_(e){if(e.mode===q_.TIME)return"23:59";if(e.mode===q_.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case U_.YEAR:return t.toString();case U_.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function W_(e,t,n,i){const a=e.mode===q_.DATE?"-":":",o=e.mode===q_.DATE?t.dateArray:t.timeArray;let s;if(e.mode===q_.TIME)s=2;else switch(e.fields){case U_.YEAR:s=1;break;case U_.MONTH:s=2;break;default:s=3}const r=String(n).split(a);let l=[];for(let c=0;c=0&&(l=i?W_(e,t,i):l.map((()=>0))),l}const q_={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},U_={YEAR:"year",MONTH:"month",DAY:"day"},H_={PICKER:"picker",SELECT:"select"},z_=ku({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:q_.SELECTOR,validator:e=>Object.values(q_).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>j_(e)},end:{type:String,default:e=>V_(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){zl();const{t:i}=Nl(),a=Dn(null),o=Dn(null),s=Dn(null),r=Dn(null),l=Dn(!1),{state:c,rangeArray:u}=function(e){const t=fn({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Uo((()=>{let n=e.range;switch(e.mode){case q_.SELECTOR:return[n];case q_.MULTISELECTOR:return n;case q_.TIME:return t.timeArray;case q_.DATE:{const n=t.dateArray;switch(e.fields){case U_.YEAR:return[n[0]];case U_.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),d=Du(a,t),{system:h,selectorTypeComputed:p,_show:f,_l10nColumn:m,_l10nItem:g,_input:y,_fixInputPosition:_,_pickerViewChange:v,_cancel:b,_change:w,_resetFormData:x,_getFormData:T,_createTime:S,_createDate:C,_setValueSync:E}=function(e,t,n,i,a,o,s){const r=function(){const e=Dn(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=Dn("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),c=Uo((()=>{const t=e.selectorType;return Object.values(H_).includes(t)?t:r.value?H_.PICKER:H_.SELECT})),u=Uo((()=>e.mode===q_.DATE&&!Object.values(U_).includes(e.fields)&&t.isDesktop?l.value:"")),d=Uo((()=>W_(e,t,e.start,j_(e)))),h=Uo((()=>W_(e,t,e.end,V_(e))));function p(n){if(e.disabled)return;t.valueChangeSource="";let i=a.value,o=n.currentTarget;i.remove(),(document.querySelector("uni-app")||document.body).appendChild(i),i.style.display="block";const s=o.getBoundingClientRect();t.popover={top:s.top,left:s.left,width:s.width,height:s.height},setTimeout((()=>{t.visible=!0}),20)}function f(){return{value:t.valueSync,key:e.name}}function m(){switch(e.mode){case q_.SELECTOR:t.valueSync=0;break;case q_.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case q_.DATE:case q_.TIME:t.valueSync=""}}function g(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function y(){let t=(new Date).getFullYear(),n=t-150,i=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&ti&&(i=t)}return{start:n,end:i}}function _(){let e=[];const n=y();for(let t=n.start,o=n.end;t<=o;t++)e.push(String(t));let i=[];for(let t=1;t<=12;t++)i.push((t<10?"0":"")+t);let a=[];for(let t=1;t<=31;t++)a.push((t<10?"0":"")+t);t.dateArray.push(e,i,a)}function v(e){return 60*e[0]+e[1]}function b(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function w(e,t){for(let n=0;nr?0:s)}}break;case q_.TIME:case q_.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function T(){let n,i=t.valueSync;switch(e.mode){case q_.MULTISELECTOR:n=[...i];break;case q_.TIME:n=W_(e,t,i,Ne({mode:q_.TIME}));break;case q_.DATE:n=W_(e,t,i,Ne({mode:q_.DATE}));break;default:n=[i]}t.oldValueArray=[...n],t.valueArray=[...n]}function S(){let n=t.valueArray;switch(e.mode){case q_.SELECTOR:return n[0];case q_.MULTISELECTOR:return n.map((e=>e));case q_.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case q_.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function C(){D(),t.valueChangeSource="click";const e=S();t.valueSync=k(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===u.value&&e){const{top:n,left:i,width:a,height:o}=t.popover,{pageX:s,pageY:r}=e;if(s>i&&sn&&r{let e=a.value;e.remove(),i.value.prepend(e),e.style.display="none"}),260)}function P(){e.mode===q_.SELECTOR&&c.value===H_.SELECT&&(o.value.scrollTop=34*t.valueArray[0])}function I(e){const n=e.target;t.valueSync=n.value,Kn((()=>{C()}))}function M(e){if("chrome"===u.value){const t=i.value.getBoundingClientRect(),n=32;s.value.style.left=e.clientX-t.left-1.5*n+"px",s.value.style.top=e.clientY-t.top-.5*n+"px"}}function O(e){t.valueArray=$(e.detail.value,!0)}function $(t,n){const{getLocale:i}=Nl();if(e.mode===q_.DATE){const a=i();if(!a.startsWith("zh"))switch(e.fields){case U_.YEAR:return t;case U_.MONTH:return[t[1],t[0]];default:switch(a){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function A(t,n){const{getLocale:i}=Nl();if(e.mode===q_.DATE){const a=i();if(a.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==U_.YEAR&&n===(e.fields===U_.MONTH||"es"!==a&&"fr"!==a?0:1)){let e;switch(a){case"es":e=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return bi((()=>t.visible),(e=>{e?(clearTimeout(Y_),t.contentVisible=e,P()):Y_=setTimeout((()=>{t.contentVisible=e}),300)})),bi([()=>e.mode,()=>e.value,()=>e.range],x,{deep:!0}),bi((()=>t.valueSync),T,{deep:!0}),bi((()=>t.valueArray),(i=>{if(e.mode===q_.TIME||e.mode===q_.DATE){const n=e.mode===q_.TIME?v:b,i=t.valueArray,a=d.value,o=h.value;if(e.mode===q_.DATE){const e=t.dateArray,n=e[2].length,a=Number(e[2][i[2]])||1,o=new Date(`${e[0][i[0]]}/${e[1][i[1]]}/${a}`).getDate();on(o)&&w(i,o)}i.forEach(((i,a)=>{i!==t.oldValueArray[a]&&(t.oldValueArray[a]=i,e.mode===q_.MULTISELECTOR&&n("columnchange",{},{column:a,value:i}))}))})),{selectorTypeComputed:c,system:u,_show:p,_cancel:E,_change:C,_l10nColumn:$,_l10nItem:A,_input:I,_resetFormData:m,_getFormData:f,_createTime:g,_createDate:_,_setValueSync:x,_fixInputPosition:M,_pickerViewChange:O}}(e,c,d,a,o,s,r);!function(e,t,n){const{key:i,disable:a}=vy();_i((()=>{a.value=!e.visible})),bi(i,(e=>{"esc"===e?t():"enter"===e&&n()}))}(c,b,w),function(e,t){const n=yi(Pu,!1);if(n){const i={reset:e,submit:()=>{const e=["",null],{key:n,value:i}=t();return""!==n&&(e[0]=n,e[1]=i),e}};n.addField(i),aa((()=>{n.removeField(i)}))}}(x,T),S(),C(),E();const D=v_(c);return _i((()=>{c.isDesktop=D.isDesktop.value,c.popupStyle=D.popupStyle.value})),aa((()=>{o.value&&o.value.remove()})),ta((()=>{l.value=!0})),()=>{let t;const{visible:d,contentVisible:k,valueArray:x,popupStyle:T,valueSync:S}=c,{rangeKey:C,mode:E,start:D,end:P}=e,I=Cu(e,"disabled");return xo("uni-picker",Io({ref:a},I,{onClick:Eu(f)}),[l.value?xo("div",{ref:o,class:["uni-picker-container",`uni-${E}-${p.value}`],onWheel:kc,onTouchmove:kc},[xo(vs,{name:"uni-fade"},{default:()=>[ua(xo("div",{class:"uni-mask uni-picker-mask",onClick:Eu(b),onMousemove:_},null,40,["onClick","onMousemove"]),[[As,d]])]}),h.value?null:xo("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:T.content},[xo("div",{class:"uni-picker-header",onClick:xc},[xo("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:Eu(b)},[i("uni.picker.cancel")],8,["onClick"]),xo("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:w},[i("uni.picker.done")],8,["onClick"])],8,["onClick"]),k?xo(Gf,{value:m(x),class:"uni-picker-content",onChange:v},F_(t=_a(m(u.value),((e,t)=>{let n;return xo(om,{key:t},F_(n=_a(e,((e,n)=>xo("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[C]||"":g(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,xo("div",{ref:s,class:"uni-picker-select",onWheel:xc,onTouchmove:xc},[_a(u.value[0],((e,t)=>xo("div",{key:t,class:["uni-picker-item",{selected:x[0]===t}],onClick:()=>{x[0]=t,w()}},["object"==typeof e?e[C]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),xo("div",{style:T.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,xo("div",null,[n.default&&n.default()]),h.value?xo("div",{class:"uni-picker-system",onMousemove:Eu(_)},[xo("input",{class:["uni-picker-system_input",h.value],ref:r,value:S,type:E,tabindex:"-1",min:D,max:P,onChange:e=>{y(e),xc(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let Y_;const X_=_(tc,{publishHandler(e,t,n){K_.subscribeHandler(e,t,n)}}),K_=_(cu,{publishHandler(e,t,n){X_.subscribeHandler(e,t,n)}}),G_=xu({name:"PageHead",setup(){const e=Dn(null),t=Um(),n=fn(Gy(t.navigationBar)),{clazz:i,style:a}=function(e){const t=Uo((()=>{const{type:t,titlePenetrate:n,shadowColorType:i}=e,a={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!i};return i&&(a[`uni-page-head-shadow-${i}`]=!0),a})),n=Uo((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return Xy((()=>{const e=Gy(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),()=>{const o=function(e,t){if(!t)return xo("div",{class:"uni-page-head-btn",onClick:Q_},[Ac($c,"transparent"===e.type?"#fff":e.titleColor,27)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",r="transparent"!==s&&"float"!==s&&xo("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return xo("uni-page-head",{"uni-page-head-type":s},[xo("div",{ref:e,class:i.value,style:a.value},[xo("div",{class:"uni-page-head-hd"},[o]),J_(n),xo("div",{class:"uni-page-head-ft"},[])],6),r],8,["uni-page-head-type"])}}});function J_(e,t){return function({type:e,loading:t,titleSize:n,titleText:i,titleImage:a}){return xo("div",{class:"uni-page-head-bd"},[xo("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?xo("i",{class:"uni-loading"},null):a?xo("img",{src:a,class:"uni-page-head__title_image"},null,8,["src"]):i],4)])}(e)}function Q_(){1===og().length?Hy({url:"/"}):Vy({from:"backbutton",success(){}})}const Z_=xu({name:"PageBody",setup:(e,t)=>()=>xo(ao,null,[!1,xo("uni-page-wrapper",null,[xo("uni-page-body",null,[ba(t.slots,"default")])],16)])}),ev=xu({name:"Page",setup(e,t){const n=Hm(Km()),i=n.navigationBar;return D_(n),()=>xo("uni-page",{"data-page":n.route},"custom"!==i.style?[xo(G_),tv(t)]:[tv(t)])}});function tv(e){return uo(),go(Z_,{key:0},{default:ui((()=>[ba(e.slots,"page")])),_:3})}const nv={},iv=function(e,t,n){if(!t||0===t.length)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/admin/"+e}(e))in nv)return;nv[e]=!0;const t=e.endsWith(".css"),a=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const a=i[n];if(a.href===e&&(!t||"stylesheet"===a.rel))return}else if(document.querySelector(`link[href="${e}"]${a}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,document.head.appendChild(o),t?new Promise(((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e()))},av={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},ov={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]},sv=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n};const rv=sv({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:ov.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}},[["render",function(e,n,i,a,o,r){const l=km;return uo(),go(l,{style:t({color:i.color,"font-size":r.iconSize}),class:s(["uni-icons",["uniui-"+i.type,i.customPrefix,i.customPrefix?i.type:""]]),onClick:r._onClick},null,8,["style","class","onClick"])}],["__scopeId","data-v-7c2f6cb0"]]);const lv=(e,t,n=!1)=>{const i=n?Pn(e):Dn(e);if("undefined"==typeof window)return i;const a=window.__uniSSR;if(!a)return i;const o=Lo()?J:"globalData";return function(e,t=!1){if(!e)throw new Error((t?"shallowSsrRef":"ssrRef")+": You must provide a key.")}(t,n),w(a[o],t)&&(i.value=a[o][t],o===J&&delete a[o][t]),i},cv=(e,t)=>lv(e,t),uv=(e,t)=>lv(e,t,!0);function dv(e,t){return C(e)?t:e}const hv=sv({name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:e,type:t,size:n,absolute:i}=this;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+n,i?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let e=this.width/2,t=10;this.isDot&&(e=5,t=5);const n=`${-e+this.offset[0]}px`,i=`${-t+this.offset[1]}px`,a={rightTop:{right:n,top:i},rightBottom:{right:n,bottom:i},leftBottom:{left:n,bottom:i},leftTop:{left:n,top:i}},o=a[this.absolute];return o||a.rightTop},dotStyle(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue(){const{isDot:e,text:t,maxNum:n}=this;return e?"":Number(t)>n?`${n}+`:t}},methods:{onClick(){this.$emit("click")}}},[["render",function(e,n,i,a,o,r){const l=km,u=Em;return uo(),go(u,{class:"uni-badge--x"},{default:ui((()=>[ba(e.$slots,"default",{},void 0,!0),i.text?(uo(),go(l,{key:0,class:s([r.classNames,"uni-badge"]),style:t([r.positionStyle,i.customStyle,r.dotStyle]),onClick:n[0]||(n[0]=e=>r.onClick())},{default:ui((()=>[So(c(r.displayValue),1)])),_:1},8,["class","style"])):Co("",!0)])),_:3})}],["__scopeId","data-v-414d462c"]]);class pv{constructor(e,t){this.options=e,this.animation=Lh(e),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],i={};if(i=n||{styles:{},config:{}},fv.includes(e)){i.styles.transform||(i.styles.transform="");let n="";"rotate"===e&&(n="deg"),i.styles.transform+=`${e}(${t+n}) `}else i.styles[e]=`${t}`;this.currentStepAnimates[this.next]=i}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((i,a)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{i()}))}))}_nvueNextAnimate(e,t=0,n){let i=e[t];if(i){let{styles:a,config:o}=i;this._animateRun(a,o).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const fv=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function mv(e,t){if(t)return clearTimeout(t.timer),new pv(e,t)}fv.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{pv.prototype[e]=function(...t){return this.animation[e](...t),this}}));const gv={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=mv(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(Kw){console.error(`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=mv(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}};const yv=sv(gv,[["render",function(e,n,i,a,o,r){const l=Em;return o.isShow?(uo(),go(l,{key:0,ref:"ani",animation:o.animationData,class:s(i.customClass),style:t(r.transformStyles),onClick:r.onClick},{default:ui((()=>[ba(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])):Co("",!0)}]]),_v={name:"uniPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(t=>{if(this.disable)return;const n=Object.keys(e).find((n=>{const i=t.key,a=e[n];return a===i||Array.isArray(a)&&a.includes(i)}));n&&setTimeout((()=>{this.$emit(n,{})}),0)}))},render:()=>{}}},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:i,screenHeight:a,safeAreaInsets:o}=ty();this.popupWidth=e,this.popupHeight=t+(n||0),i&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(){document.getElementsByTagName("body")[0].style.overflow="visible"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){this.showPopup&&(clearTimeout(this.timer),this.showPopup=!1);e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const vv=sv(_v,[["render",function(e,n,i,a,o,r){const l=dv(ma("uni-transition"),yv),c=Em,u=pa("keypress");return o.showPopup?(uo(),go(c,{key:0,class:s(["uni-popup",[o.popupstyle,r.isDesktop?"fixforpc-z-index":""]])},{default:ui((()=>[xo(c,{onTouchstart:r.touchstart},{default:ui((()=>[o.maskShow?(uo(),go(l,{key:"1",name:"mask","mode-class":"fade",styles:o.maskClass,duration:o.duration,show:o.showTrans,onClick:r.onTap},null,8,["styles","duration","show","onClick"])):Co("",!0),xo(l,{key:"2","mode-class":o.ani,name:"content",styles:o.transClass,duration:o.duration,show:o.showTrans,onClick:r.onTap},{default:ui((()=>[xo(c,{class:s(["uni-popup__wrapper",[o.popupstyle]]),style:t({backgroundColor:r.bg}),onClick:r.clear},{default:ui((()=>[ba(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),o.maskShow?(uo(),go(u,{key:0,onEsc:r.onTap},null,8,["onEsc"])):Co("",!0)])),_:3},8,["class"])):Co("",!0)}],["__scopeId","data-v-dd488718"]]);function bv(e,t){return`${wv(e)} ${kv(e,t)}`}function wv(e){e=Dv(e);const t=(e=new Date(e)).getFullYear(),n=e.getMonth()+1,i=e.getDate();return`${t}-${xv(n)}-${xv(i)}`}function kv(e,t){e=Dv(e);const n=(e=new Date(e)).getHours(),i=e.getMinutes(),a=e.getSeconds();return t?`${xv(n)}:${xv(i)}`:`${xv(n)}:${xv(i)}:${xv(a)}`}function xv(e){return e<10&&(e=`0${e}`),e}function Tv(e){return e?"00:00":"00:00:00"}function Sv(e,t){return(e=new Date(Dv(e)))<=(t=new Date(Dv(t)))}function Cv(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const Ev=/^\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 Dv(e){return"string"==typeof e&&Ev.test(e)&&(e=e.replace(/-/g,"/")),e}const Pv=sv({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(e,t,n,i,a,o){const r=km,l=Em;return uo(),go(l,{class:s(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":n.weeks.disable,"uni-calendar-item--before-checked-x":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked-x":n.weeks.afterMultiple}]),onClick:t[0]||(t[0]=e=>o.choiceDate(n.weeks)),onMouseenter:t[1]||(t[1]=e=>o.handleMousemove(n.weeks))},{default:ui((()=>[xo(l,{class:s(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":n.calendar.fullDate===n.weeks.fullDate&&(n.calendar.userChecked||!n.checkHover),"uni-calendar-item--checked-range-text":n.checkHover,"uni-calendar-item--before-checked":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked":n.weeks.afterMultiple,"uni-calendar-item--disable":n.weeks.disable}])},{default:ui((()=>[n.selected&&n.weeks.extraInfo?(uo(),go(r,{key:0,class:"uni-calendar-item__weeks-box-circle"})):Co("",!0),xo(r,{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},{default:ui((()=>[So(c(n.weeks.date),1)])),_:1})])),_:1},8,["class"]),xo(l,{class:s({"uni-calendar-item--today":n.weeks.isToday})},null,8,["class"])])),_:1},8,["class"])}],["__scopeId","data-v-33ef2289"]]),Iv={en:{"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"},"zh-Hans":{"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":"确认"},"zh-Hant":{"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":"確認"}},{t:Mv}=Qs(Iv),Ov={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(Dv(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(Dv(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(Dv(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>Mv("uni-datetime-picker.selectTime"),okText:()=>Mv("uni-datetime-picker.ok"),clearText:()=>Mv("uni-datetime-picker.clear"),cancelText:()=>Mv("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,n){let i=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),i=t&&n?en?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),i},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const n=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||n.test(e)||(e+=" 23:59:59");const i=new Date(e);this[t+"Year"]=i.getFullYear(),this[t+"Month"]=i.getMonth()+1,this[t+"Day"]=i.getDate(),"datetime"===this.type&&(this[t+"Hour"]=i.getHours(),this[t+"Minute"]=i.getMinutes(),this[t+"Second"]=i.getSeconds())}},getCurrentRange(e){const t=[];for(let n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),fixIosDateFormat:e=>("string"==typeof e&&(e=e.replace(/-/g,"/")),e),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=Dv(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const $v=sv(Ov,[["render",function(e,n,i,a,o,r){const l=km,u=Em,d=om,h=Gf;return uo(),go(u,{class:"uni-datetime-picker"},{default:ui((()=>[xo(u,{onClick:r.initTimePicker},{default:ui((()=>[ba(e.$slots,"default",{},(()=>[xo(u,{class:s(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":i.disabled,"uni-datetime-picker-timebox":i.border}])},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-text"},{default:ui((()=>[So(c(o.time),1)])),_:1}),o.time?Co("",!0):(uo(),go(u,{key:0,class:"uni-datetime-picker-time"},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-text"},{default:ui((()=>[So(c(r.selectTimeText),1)])),_:1})])),_:1}))])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),o.visible?(uo(),go(u,{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:r.tiggerTimePicker},null,8,["onClick"])):Co("",!0),o.visible?(uo(),go(u,{key:1,class:s(["uni-datetime-picker-popup",[o.dateShow&&o.timeShow?"":"fix-nvue-height"]]),style:t(o.fixNvueBug)},{default:ui((()=>[xo(u,{class:"uni-title"},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-text"},{default:ui((()=>[So(c(r.selectTimeText),1)])),_:1})])),_:1}),o.dateShow?(uo(),go(u,{key:0,class:"uni-datetime-picker__container-box"},{default:ui((()=>[xo(h,{class:"uni-datetime-picker-view","indicator-style":o.indicatorStyle,value:r.ymd,onChange:r.bindDateChange},{default:ui((()=>[xo(d,null,{default:ui((()=>[(uo(!0),mo(ao,null,_a(r.years,((e,t)=>(uo(),go(u,{class:"uni-datetime-picker-item",key:t},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-item"},{default:ui((()=>[So(c(r.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),xo(d,null,{default:ui((()=>[(uo(!0),mo(ao,null,_a(r.months,((e,t)=>(uo(),go(u,{class:"uni-datetime-picker-item",key:t},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-item"},{default:ui((()=>[So(c(r.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),xo(d,null,{default:ui((()=>[(uo(!0),mo(ao,null,_a(r.days,((e,t)=>(uo(),go(u,{class:"uni-datetime-picker-item",key:t},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-item"},{default:ui((()=>[So(c(r.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["indicator-style","value","onChange"]),xo(l,{class:"uni-datetime-picker-sign sign-left"},{default:ui((()=>[So("-")])),_:1}),xo(l,{class:"uni-datetime-picker-sign sign-right"},{default:ui((()=>[So("-")])),_:1})])),_:1})):Co("",!0),o.timeShow?(uo(),go(u,{key:1,class:"uni-datetime-picker__container-box"},{default:ui((()=>[xo(h,{class:s(["uni-datetime-picker-view",[i.hideSecond?"time-hide-second":""]]),"indicator-style":o.indicatorStyle,value:r.hms,onChange:r.bindTimeChange},{default:ui((()=>[xo(d,null,{default:ui((()=>[(uo(!0),mo(ao,null,_a(r.hours,((e,t)=>(uo(),go(u,{class:"uni-datetime-picker-item",key:t},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-item"},{default:ui((()=>[So(c(r.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),xo(d,null,{default:ui((()=>[(uo(!0),mo(ao,null,_a(r.minutes,((e,t)=>(uo(),go(u,{class:"uni-datetime-picker-item",key:t},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-item"},{default:ui((()=>[So(c(r.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),i.hideSecond?Co("",!0):(uo(),go(d,{key:0},{default:ui((()=>[(uo(!0),mo(ao,null,_a(r.seconds,((e,t)=>(uo(),go(u,{class:"uni-datetime-picker-item",key:t},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-item"},{default:ui((()=>[So(c(r.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}))])),_:1},8,["class","indicator-style","value","onChange"]),xo(l,{class:s(["uni-datetime-picker-sign",[i.hideSecond?"sign-center":"sign-left"]])},{default:ui((()=>[So(":")])),_:1},8,["class"]),i.hideSecond?Co("",!0):(uo(),go(l,{key:0,class:"uni-datetime-picker-sign sign-right"},{default:ui((()=>[So(":")])),_:1}))])),_:1})):Co("",!0),xo(u,{class:"uni-datetime-picker-btn"},{default:ui((()=>[xo(u,{onClick:r.clearTime},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-btn-text"},{default:ui((()=>[So(c(r.clearText),1)])),_:1})])),_:1},8,["onClick"]),xo(u,{class:"uni-datetime-picker-btn-group"},{default:ui((()=>[xo(u,{class:"uni-datetime-picker-cancel",onClick:r.tiggerTimePicker},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-btn-text"},{default:ui((()=>[So(c(r.cancelText),1)])),_:1})])),_:1},8,["onClick"]),xo(u,{onClick:r.setTime},{default:ui((()=>[xo(l,{class:"uni-datetime-picker-btn-text"},{default:ui((()=>[So(c(r.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["class","style"])):Co("",!0)])),_:3})}],["__scopeId","data-v-b41d3aae"]]),{t:Av}=Qs(Iv),Lv={components:{calendarItem:Pv,timePicker:$v},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""},isPhone:!1}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:n,fulldate:i,which:a}=e;this.tempRange.before=t,this.tempRange.after=n,setTimeout((()=>{if(i)if(this.cale.setHoverMultiple(i),t&&n){if(this.cale.lastHover=!0,this.rangeWithinMonth(n,t))return;this.setDate(t)}else this.cale.setMultiple(i),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,n),"left"===a&&t?(this.setDate(t),this.weeks=this.cale.weeks):n&&(this.setDate(n),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>Av("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||Av("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||Av("uni-datetime-picker.endDate")},okText:()=>Av("uni-datetime-picker.ok"),yearText:()=>Av("uni-datetime-picker.year"),monthText:()=>Av("uni-datetime-picker.month"),MONText:()=>Av("uni-calender.MON"),TUEText:()=>Av("uni-calender.TUE"),WEDText:()=>Av("uni-calender.WED"),THUText:()=>Av("uni-calender.THU"),FRIText:()=>Av("uni-calender.FRI"),SATText:()=>Av("uni-calender.SAT"),SUNText:()=>Av("uni-calender.SUN"),confirmText:()=>Av("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:n,range:i}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=n,this.range=i,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=Dv(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const n=e.getMonth();return 0!==t&&n-t==0&&e.setMonth(n-1),this.getDateObj(e)}getNextMonthObj(e){e=Dv(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}getDateObj(e){return e=Dv(e),{fullDate:wv(e=new Date(e)),year:e.getFullYear(),month:xv(e.getMonth()+1),date:xv(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const n=[];for(let i=e-1;i>=0;i--){const e=t.month-1;n.push({date:new Date(t.year,e,-i).getDate(),month:e,disable:!0})}return n}getCurrentMonthDays(e,t){const n=[],i=this.date.fullDate;for(let a=1;a<=e;a++){const e=`${t.year}-${t.month}-${xv(a)}`,o=i===e,s=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&Sv(this.startDate,e),this.endDate&&Sv(e,this.endDate);let r=this.multipleStatus.data,l=-1;this.range&&r&&(l=r.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;n.push({fullDate:e,year:t.year,date:a,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!Sv(this.startDate,e)||this.endDate&&!Sv(e,this.endDate),isToday:o,userChecked:!1,extraInfo:s})}return n}_getNextMonthDays(e,t){const n=[],i=t.month+1;for(let a=1;a<=e;a++)n.push({date:a,month:i,disable:!0});return n}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(Dv(e)),t=new Date(Dv(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,n){let i=t;return t&&n&&(i=Sv(t,n)?t:n),this.dateEqual(i,e)}isLogicAfter(e,t,n){let i=n;return t&&n&&(i=Sv(t,n)?n:t),this.dateEqual(i,e)}geDateAll(e,t){var n=[],i=e.split("-"),a=t.split("-"),o=new Date;o.setFullYear(i[0],i[1]-1,i[2]);var s=new Date;s.setFullYear(a[0],a[1]-1,a[2]);for(var r=o.getTime()-864e5,l=s.getTime()-864e5,c=r;c<=l;)c+=864e5,n.push(this.getDateObj(new Date(parseInt(c))).fullDate);return n}setMultiple(e){if(!this.range)return;let{before:t,after:n}=this.multipleStatus;if(t&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,Sv(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,Sv(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(Sv(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:n}=this.getDateObj(e),i=new Date(t,n-1,1).getDay(),a=this.getPreMonthDays(i,this.getDateObj(e)),o=new Date(t,n,0).getDate(),s=42-i-o,r=[...a,...this.getCurrentMonthDays(o,this.getDateObj(e)),...this._getNextMonthDays(s,this.getDateObj(e))],l=new Array(6);for(let c=0;c{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(){this.insert&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=kv(new Date,this.hideSecond)));let{year:t,month:n,date:i,fullDate:a,extraInfo:o}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:n,date:i,time:this.time,timeRange:this.timeRange,fulldate:a,extraInfo:o||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),n=new Date(this.cale.multipleStatus.after).getTime();t>n&&n&&!this.isPhone?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change()},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const Rv={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:sv(Lv,[["render",function(e,t,n,i,a,o){const r=Em,l=km,u=z_,d=pa("calendar-item"),h=pa("time-picker"),p=dv(ma("uni-icons"),rv);return uo(),go(r,{class:"uni-calendar",onMouseleave:o.leaveCale},{default:ui((()=>[!n.insert&&a.show?(uo(),go(r,{key:0,class:s(["uni-calendar__mask",{"uni-calendar--mask-show":a.aniMaskShow}]),onClick:o.maskClick},null,8,["class","onClick"])):Co("",!0),n.insert||a.show?(uo(),go(r,{key:1,class:s(["uni-calendar__content",{"uni-calendar--fixed":!n.insert,"uni-calendar--ani-show":a.aniMaskShow,"uni-calendar__content-mobile":a.aniMaskShow}])},{default:ui((()=>[xo(r,{class:s(["uni-calendar__header",{"uni-calendar__header-mobile":!n.insert}])},{default:ui((()=>[xo(r,{class:"uni-calendar__header-btn-box",onClick:t[0]||(t[0]=$s((e=>o.changeMonth("pre")),["stop"]))},{default:ui((()=>[xo(r,{class:"uni-calendar__header-btn uni-calendar--left"})])),_:1}),xo(u,{mode:"date",value:n.date,fields:"month",onChange:o.bindDateChange},{default:ui((()=>[xo(l,{class:"uni-calendar__header-text"},{default:ui((()=>[So(c((a.nowDate.year||"")+o.yearText+(a.nowDate.month||"")+o.monthText),1)])),_:1})])),_:1},8,["value","onChange"]),xo(r,{class:"uni-calendar__header-btn-box",onClick:t[1]||(t[1]=$s((e=>o.changeMonth("next")),["stop"]))},{default:ui((()=>[xo(r,{class:"uni-calendar__header-btn uni-calendar--right"})])),_:1}),n.insert?Co("",!0):(uo(),go(r,{key:0,class:"dialog-close",onClick:o.close},{default:ui((()=>[xo(r,{class:"dialog-close-plus","data-id":"close"}),xo(r,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"]))])),_:1},8,["class"]),xo(r,{class:"uni-calendar__box"},{default:ui((()=>[n.showMonth?(uo(),go(r,{key:0,class:"uni-calendar__box-bg"},{default:ui((()=>[xo(l,{class:"uni-calendar__box-bg-text"},{default:ui((()=>[So(c(a.nowDate.month),1)])),_:1})])),_:1})):Co("",!0),xo(r,{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},{default:ui((()=>[xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.SUNText),1)])),_:1})])),_:1}),xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.MONText),1)])),_:1})])),_:1}),xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.TUEText),1)])),_:1})])),_:1}),xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.WEDText),1)])),_:1})])),_:1}),xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.THUText),1)])),_:1})])),_:1}),xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.FRIText),1)])),_:1})])),_:1}),xo(r,{class:"uni-calendar__weeks-day"},{default:ui((()=>[xo(l,{class:"uni-calendar__weeks-day-text"},{default:ui((()=>[So(c(o.SATText),1)])),_:1})])),_:1})])),_:1}),(uo(!0),mo(ao,null,_a(a.weeks,((e,t)=>(uo(),go(r,{class:"uni-calendar__weeks",key:t},{default:ui((()=>[(uo(!0),mo(ao,null,_a(e,((e,t)=>(uo(),go(r,{class:"uni-calendar__weeks-item",key:t},{default:ui((()=>[xo(d,{class:"uni-calendar-item--hook",weeks:e,calendar:a.calendar,selected:n.selected,checkHover:n.range,onChange:o.choiceDate,onHandleMouse:o.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),n.insert||n.range||!n.hasTime?Co("",!0):(uo(),go(r,{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},{default:ui((()=>[xo(r,{class:"uni-date-changed--time-date"},{default:ui((()=>[So(c(a.tempSingleDate?a.tempSingleDate:o.selectDateText),1)])),_:1}),xo(h,{type:"time",start:o.timepickerStartTime,end:o.timepickerEndTime,modelValue:a.time,"onUpdate:modelValue":t[2]||(t[2]=e=>a.time=e),disabled:!a.tempSingleDate,border:!1,"hide-second":n.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),_:1})),!n.insert&&n.range&&n.hasTime?(uo(),go(r,{key:1,class:"uni-date-changed uni-calendar--fixed-top"},{default:ui((()=>[xo(r,{class:"uni-date-changed--time-start"},{default:ui((()=>[xo(r,{class:"uni-date-changed--time-date"},{default:ui((()=>[So(c(a.tempRange.before?a.tempRange.before:o.startDateText),1)])),_:1}),xo(h,{type:"time",start:o.timepickerStartTime,modelValue:a.timeRange.startTime,"onUpdate:modelValue":t[3]||(t[3]=e=>a.timeRange.startTime=e),border:!1,"hide-second":n.hideSecond,disabled:!a.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])])),_:1}),xo(r,{style:{"line-height":"50px"}},{default:ui((()=>[xo(p,{type:"arrowthinright",color:"#999"})])),_:1}),xo(r,{class:"uni-date-changed--time-end"},{default:ui((()=>[xo(r,{class:"uni-date-changed--time-date"},{default:ui((()=>[So(c(a.tempRange.after?a.tempRange.after:o.endDateText),1)])),_:1}),xo(h,{type:"time",end:o.timepickerEndTime,modelValue:a.timeRange.endTime,"onUpdate:modelValue":t[4]||(t[4]=e=>a.timeRange.endTime=e),border:!1,"hide-second":n.hideSecond,disabled:!a.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])),_:1})])),_:1})):Co("",!0),n.insert?Co("",!0):(uo(),go(r,{key:2,class:"uni-date-changed uni-date-btn--ok"},{default:ui((()=>[xo(r,{class:"uni-datetime-picker--btn",onClick:o.confirm},{default:ui((()=>[So(c(o.confirmText),1)])),_:1},8,["onClick"])])),_:1}))])),_:1},8,["class"])):Co("",!0)])),_:1},8,["onMouseleave"])}],["__scopeId","data-v-1a59e302"]]),TimePicker:$v},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=wv(e),this.hasTime&&(this.calendarRange.startTime=kv(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=wv(e),this.hasTime&&(this.calendarRange.endTime=kv(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=Qs(Iv);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,n]=e;if(!t&&!n)return;const i=wv(t),a=kv(t,this.hideSecond),o=wv(n),s=kv(n,this.hideSecond),r=i,l=o;this.displayRangeValue.startDate=this.tempRange.startDate=r,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${i} ${a}`,this.displayRangeValue.endDate=`${o} ${s}`,this.tempRange.startTime=a,this.tempRange.endTime=s);const c={before:i,after:o};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=wv(e),this.hasTime&&(this.pickerTime=kv(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=wv(this.defaultValue),this.hasTime&&(this.pickerTime=kv(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=ty();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};Ih().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):(this.$refs.right.changeMonth("next"),this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=Dv(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!Cv(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=wv(e),this.pickerTime=kv(e,this.hideSecond)}let e,t,n=!1;if(this.start){let i=this.start;"number"==typeof this.start&&(i=bv(this.start,this.hideSecond)),[e,t]=i.split(" "),this.start&&!Sv(e,this.inputDate)&&(n=!0,this.inputDate=e)}let i,a,o=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=bv(this.end,this.hideSecond)),[i,a]=e.split(" "),this.end&&!Sv(this.inputDate,i)&&(o=!0,this.inputDate=i)}this.hasTime?(n&&(this.pickerTime=t||Tv(this.hideSecond)),o&&(this.pickerTime=a||Tv(this.hideSecond)),this.pickerTime||(this.pickerTime=kv(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i)},rightChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i)},mobileChange(e){if(this.isRange){const{before:t,after:n}=e.range;if(!t||!n)return;if(this.handleStartAndEnd(t,n,!0),this.hasTime){const{startTime:t,endTime:n}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=n}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;Cv(this.tempRange.startDate)||(this.tempRange.startDate=wv(Date.now())),Cv(this.tempRange.endDate)||(this.tempRange.endDate=wv(Date.now()));let n,i,a=!1,o=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=bv(this.start,this.hideSecond)),[n,i]=e.split(" "),this.start&&!Sv(this.start,this.tempRange.startDate)&&(a=!0,this.tempRange.startDate=n),this.start&&!Sv(this.start,this.tempRange.endDate)&&(o=!0,this.tempRange.endDate=n)}let s,r,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=bv(this.end,this.hideSecond)),[s,r]=e.split(" "),this.end&&!Sv(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=s),this.end&&!Sv(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=s)}this.hasTime?(a?this.tempRange.startTime=i||Tv(this.hideSecond):l&&(this.tempRange.startTime=r||Tv(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=kv(Date.now(),this.hideSecond)),o?this.tempRange.endTime=i||Tv(this.hideSecond):c&&(this.tempRange.endTime=r||Tv(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=kv(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),Sv(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const u=[e,t];this.setEmit(u),this.pickerVisible=!1},handleStartAndEnd(e,t,n=!1){if(!e||!t)return;const i=n?"tempRange":"range",a=Sv(e,t);this[i].startDate=a?e:t,this[i].endDate=a?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const n=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(n)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))}}};const Nv=sv(Rv,[["render",function(e,n,i,a,o,r){const l=dv(ma("uni-icons"),rv),u=Em,d=bf,h=pa("time-picker"),p=pa("Calendar"),f=km;return uo(),go(u,{class:"uni-date"},{default:ui((()=>[xo(u,{class:"uni-date-editor",onClick:r.show},{default:ui((()=>[ba(e.$slots,"default",{},(()=>[xo(u,{class:s(["uni-date-editor--x",{"uni-date-editor--x__disabled":i.disabled,"uni-date-x--border":i.border}])},{default:ui((()=>[o.isRange?(uo(),go(u,{key:1,class:"uni-date-x uni-date-range"},{default:ui((()=>[xo(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),xo(u,{class:"uni-date__x-input text-center"},{default:ui((()=>[So(c(o.displayRangeValue.startDate||r.startPlaceholderText),1)])),_:1}),xo(u,{class:"range-separator"},{default:ui((()=>[So(c(i.rangeSeparator),1)])),_:1}),xo(u,{class:"uni-date__x-input text-center"},{default:ui((()=>[So(c(o.displayRangeValue.endDate||r.endPlaceholderText),1)])),_:1})])),_:1})):(uo(),go(u,{key:0,class:"uni-date-x uni-date-single"},{default:ui((()=>[xo(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),xo(u,{class:"uni-date__x-input"},{default:ui((()=>[So(c(o.displayValue||r.singlePlaceholderText),1)])),_:1})])),_:1})),r.showClearIcon?(uo(),go(u,{key:2,class:"uni-date__icon-clear",onClick:$s(r.clear,["stop"])},{default:ui((()=>[xo(l,{type:"clear",color:"#c0c4cc",size:"22"})])),_:1},8,["onClick"])):Co("",!0)])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),ua(xo(u,{class:"uni-date-mask--pc",onClick:r.close},null,8,["onClick"]),[[As,o.pickerVisible]]),o.isPhone?Co("",!0):ua((uo(),go(u,{key:0,ref:"datePicker",class:"uni-date-picker__container"},{default:ui((()=>[o.isRange?(uo(),go(u,{key:1,class:"uni-date-range--x",style:t(o.pickerPositionStyle)},{default:ui((()=>[xo(u,{class:"uni-popper__arrow"}),o.hasTime?(uo(),go(u,{key:0,class:"popup-x-header uni-date-changed"},{default:ui((()=>[xo(u,{class:"popup-x-header--datetime"},{default:ui((()=>[xo(d,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.startDate,"onUpdate:modelValue":n[3]||(n[3]=e=>o.tempRange.startDate=e),placeholder:r.startDateText},null,8,["modelValue","placeholder"]),xo(h,{type:"time",modelValue:o.tempRange.startTime,"onUpdate:modelValue":n[5]||(n[5]=e=>o.tempRange.startTime=e),start:r.timepickerStartTime,border:!1,disabled:!o.tempRange.startDate,hideSecond:i.hideSecond},{default:ui((()=>[xo(d,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.startTime,"onUpdate:modelValue":n[4]||(n[4]=e=>o.tempRange.startTime=e),placeholder:r.startTimeText,disabled:!o.tempRange.startDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","start","disabled","hideSecond"])])),_:1}),xo(l,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),xo(u,{class:"popup-x-header--datetime"},{default:ui((()=>[xo(d,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.endDate,"onUpdate:modelValue":n[6]||(n[6]=e=>o.tempRange.endDate=e),placeholder:r.endDateText},null,8,["modelValue","placeholder"]),xo(h,{type:"time",modelValue:o.tempRange.endTime,"onUpdate:modelValue":n[8]||(n[8]=e=>o.tempRange.endTime=e),end:r.timepickerEndTime,border:!1,disabled:!o.tempRange.endDate,hideSecond:i.hideSecond},{default:ui((()=>[xo(d,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.endTime,"onUpdate:modelValue":n[7]||(n[7]=e=>o.tempRange.endTime=e),placeholder:r.endTimeText,disabled:!o.tempRange.endDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","end","disabled","hideSecond"])])),_:1})])),_:1})):Co("",!0),xo(u,{class:"popup-x-body"},{default:ui((()=>[xo(p,{ref:"left",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,pleStatus:o.endMultipleStatus,onChange:r.leftChange,onFirstEnterCale:r.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),xo(p,{ref:"right",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,onChange:r.rightChange,pleStatus:o.startMultipleStatus,onFirstEnterCale:r.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])])),_:1}),o.hasTime?(uo(),go(u,{key:1,class:"popup-x-footer"},{default:ui((()=>[xo(f,{onClick:r.clear},{default:ui((()=>[So(c(r.clearText),1)])),_:1},8,["onClick"]),xo(f,{class:"confirm-text",onClick:r.confirmRangeChange},{default:ui((()=>[So(c(r.okText),1)])),_:1},8,["onClick"])])),_:1})):Co("",!0)])),_:1},8,["style"])):(uo(),go(u,{key:0,class:"uni-date-single--x",style:t(o.pickerPositionStyle)},{default:ui((()=>[xo(u,{class:"uni-popper__arrow"}),o.hasTime?(uo(),go(u,{key:0,class:"uni-date-changed popup-x-header"},{default:ui((()=>[xo(d,{class:"uni-date__input text-center",type:"text",modelValue:o.inputDate,"onUpdate:modelValue":n[0]||(n[0]=e=>o.inputDate=e),placeholder:r.selectDateText},null,8,["modelValue","placeholder"]),xo(h,{type:"time",modelValue:o.pickerTime,"onUpdate:modelValue":n[2]||(n[2]=e=>o.pickerTime=e),border:!1,disabled:!o.inputDate,start:r.timepickerStartTime,end:r.timepickerEndTime,hideSecond:i.hideSecond,style:{width:"100%"}},{default:ui((()=>[xo(d,{class:"uni-date__input text-center",type:"text",modelValue:o.pickerTime,"onUpdate:modelValue":n[1]||(n[1]=e=>o.pickerTime=e),placeholder:r.selectTimeText,disabled:!o.inputDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])),_:1})):Co("",!0),xo(p,{ref:"pcSingle",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,date:o.calendarDate,onChange:r.singleChange,"default-value":i.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),o.hasTime?(uo(),go(u,{key:1,class:"popup-x-footer"},{default:ui((()=>[xo(f,{class:"confirm-text",onClick:r.confirmSingleChange},{default:ui((()=>[So(c(r.okText),1)])),_:1},8,["onClick"])])),_:1})):Co("",!0)])),_:1},8,["style"]))])),_:1},512)),[[As,o.pickerVisible]]),o.isPhone?(uo(),go(p,{key:1,ref:"mobile",clearDate:!1,date:o.calendarDate,defTime:r.mobileCalendarTime,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,selectableTimes:r.mobSelectableTime,startPlaceholder:i.startPlaceholder,endPlaceholder:i.endPlaceholder,"default-value":i.defaultValue,pleStatus:o.endMultipleStatus,showMonth:!1,range:o.isRange,hasTime:o.hasTime,insert:!1,hideSecond:i.hideSecond,onConfirm:r.mobileChange,onMaskClose:r.close},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose"])):Co("",!0)])),_:3})}],["__scopeId","data-v-62c6ca45"]]);function Bv(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const Fv="function"==typeof Proxy;class jv{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const o in e.settings){const t=e.settings[o];n[o]=t.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let a={...n};try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(a,t)}catch(Kw){}this.fallbacks={getSettings:()=>a,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(Kw){}a=e}},t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Vv(e,t){const n=Bv(),i=Bv().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=Fv&&e.enableEarlyProxy;if(!i||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const o=a?new jv(e,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)} +/*! + * vuex v4.1.0 + * (c) 2022 Evan You + * @license MIT + */function Wv(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function qv(e){return null!==e&&"object"==typeof e}function Uv(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Hv(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Yv(e,n,[],e._modules.root,!0),zv(e,n,t)}function zv(e,t,n){var i=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},r={},l=rt(!0);l.run((function(){Wv(o,(function(t,n){s[n]=function(e,t){return function(){return e(t)}}(t,e),r[n]=Uo((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return r[n].value},enumerable:!0})}))})),e._state=fn({data:t}),e._scope=l,e.strict&&function(e){bi((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),i&&n&&e._withCommit((function(){i.data=null})),a&&a.stop()}function Yv(e,t,n,i,a){var o=!n.length,s=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!o&&!a){var r=Kv(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){r[l]=i.state}))}var c=i.context=function(e,t,n){var i=""===t,a={dispatch:i?e.dispatch:function(n,i,a){var o=Gv(n,i,a),s=o.payload,r=o.options,l=o.type;return r&&r.root||(l=t+l),e.dispatch(l,s)},commit:i?e.commit:function(n,i,a){var o=Gv(n,i,a),s=o.payload,r=o.options,l=o.type;r&&r.root||(l=t+l),e.commit(l,s,r)}};return Object.defineProperties(a,{getters:{get:i?function(){return e.getters}:function(){return Xv(e,t)}},state:{get:function(){return Kv(e.state,n)}}}),a}(e,s,n);i.forEachMutation((function(t,n){!function(e,t,n,i){var a=e._mutations[t]||(e._mutations[t]=[]);a.push((function(t){n.call(e,i.state,t)}))}(e,s+n,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:s+n,a=t.handler||t;!function(e,t,n,i){var a=e._actions[t]||(e._actions[t]=[]);a.push((function(t){var a,o=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return(a=o)&&"function"==typeof a.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,i,a,c)})),i.forEachGetter((function(t,n){!function(e,t,n,i){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)}}(e,s+n,t,c)})),i.forEachChild((function(i,o){Yv(e,t,n.concat(o),i,a)}))}function Xv(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,i)===t){var o=a.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Kv(e,t){return t.reduce((function(e,t){return e[t]}),e)}function Gv(e,t,n){return qv(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var Jv="vuex:mutations",Qv="vuex:actions",Zv="vuex",eb=0;function tb(e,t){Vv({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:Jv,label:"Vuex Mutations",color:nb}),n.addTimelineLayer({id:Qv,label:"Vuex Actions",color:nb}),n.addInspector({id:Zv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===Zv)if(n.filter){var i=[];sb(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[ob(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===Zv){var i=n.nodeId;Xv(t,i),n.state=function(e,t,n){t="root"===n?t:t[n];var i=Object.keys(t),a={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(i.length){var o=function(e){var t={};return Object.keys(e).forEach((function(n){var i=n.split("/");if(i.length>1){var a=t,o=i.pop();i.forEach((function(e){a[e]||(a[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),a=a[e]._custom.value})),a[o]=rb((function(){return e[n]}))}else t[n]=rb((function(){return e[n]}))})),t}(t);a.getters=Object.keys(o).map((function(e){return{key:e.endsWith("/")?ab(e):e,editable:!1,value:rb((function(){return o[e]}))}}))}return a}((a=t._modules,(s=(o=i).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var i=e[t];if(!i)throw new Error('Missing module "'+t+'" for path "'+o+'".');return n===s.length-1?i:i._children}),"root"===o?a:a.root._children)),"root"===i?t.getters:t._makeLocalGettersCache,i)}var a,o,s})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===Zv){var i=n.nodeId,a=n.path;"root"!==i&&(a=i.split("/").filter(Boolean).concat(a)),t._withCommit((function(){n.set(t._state.data,a,n.state.value)}))}})),t.subscribe((function(e,t){var i={};e.payload&&(i.payload=e.payload),i.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(Zv),n.sendInspectorState(Zv),n.addTimelineEvent({layerId:Jv,event:{time:Date.now(),title:e.type,data:i}})})),t.subscribeAction({before:function(e,t){var i={};e.payload&&(i.payload=e.payload),e._id=eb++,e._time=Date.now(),i.state=t,n.addTimelineEvent({layerId:Qv,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:i}})},after:function(e,t){var i={},a=Date.now()-e._time;i.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},e.payload&&(i.payload=e.payload),i.state=t,n.addTimelineEvent({layerId:Qv,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:i}})}})}))}var nb=8702998,ib={label:"namespaced",textColor:16777215,backgroundColor:6710886};function ab(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function ob(e,t){return{id:t||"root",label:ab(t),tags:e.namespaced?[ib]:[],children:Object.keys(e._children).map((function(n){return ob(e._children[n],t+n+"/")}))}}function sb(e,t,n,i){i.includes(n)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[ib]:[]}),Object.keys(t._children).forEach((function(a){sb(e,t._children[a],n,i+a+"/")}))}function rb(e){try{return e()}catch(Kw){return Kw}}var lb=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},cb={namespaced:{configurable:!0}};cb.namespaced.get=function(){return!!this._rawModule.namespaced},lb.prototype.addChild=function(e,t){this._children[e]=t},lb.prototype.removeChild=function(e){delete this._children[e]},lb.prototype.getChild=function(e){return this._children[e]},lb.prototype.hasChild=function(e){return e in this._children},lb.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},lb.prototype.forEachChild=function(e){Wv(this._children,e)},lb.prototype.forEachGetter=function(e){this._rawModule.getters&&Wv(this._rawModule.getters,e)},lb.prototype.forEachAction=function(e){this._rawModule.actions&&Wv(this._rawModule.actions,e)},lb.prototype.forEachMutation=function(e){this._rawModule.mutations&&Wv(this._rawModule.mutations,e)},Object.defineProperties(lb.prototype,cb);var ub=function(e){this.register([],e,!1)};function db(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return;db(e.concat(i),t.getChild(i),n.modules[i])}}ub.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},ub.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},ub.prototype.update=function(e){db([],this.root,e)},ub.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var a=new lb(t,n);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&Wv(t.modules,(function(t,a){i.register(e.concat(a),t,n)}))},ub.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},ub.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var hb=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1);var a=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ub(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var o=this,s=this.dispatch,r=this.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return r.call(o,e,t,n)},this.strict=i;var l=this._modules.root.state;Yv(this,l,[],this._modules.root),zv(this,l),n.forEach((function(e){return e(t)}))},pb={state:{configurable:!0}};hb.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&tb(e,this)},pb.state.get=function(){return this._state.data},pb.state.set=function(e){},hb.prototype.commit=function(e,t,n){var i=this,a=Gv(e,t,n),o=a.type,s=a.payload,r={type:o,payload:s},l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(r,i.state)})))},hb.prototype.dispatch=function(e,t){var n=this,i=Gv(e,t),a=i.type,o=i.payload,s={type:a,payload:o},r=this._actions[a];if(r){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(Kw){}var l=r.length>1?Promise.all(r.map((function(e){return e(o)}))):r[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(Kw){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(Kw){}t(e)}))}))}},hb.prototype.subscribe=function(e,t){return Uv(e,this._subscribers,t)},hb.prototype.subscribeAction=function(e,t){return Uv("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},hb.prototype.watch=function(e,t,n){var i=this;return bi((function(){return e(i.state,i.getters)}),t,Object.assign({},n))},hb.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},hb.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),Yv(this,this.state,e,this._modules.get(e),n.preserveState),zv(this,this.state)},hb.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete Kv(t.state,e.slice(0,-1))[e[e.length-1]]})),Hv(this)},hb.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},hb.prototype.hotUpdate=function(e){this._modules.update(e),Hv(this,!0)},hb.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(hb.prototype,pb);var fb=_b((function(e,t){var n={};return yb(t).forEach((function(t){var i=t.key,a=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=vb(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"==typeof a?a.call(this,t,n):t[a]},n[i].vuex=!0})),n})),mb=_b((function(e,t){var n={};return yb(t).forEach((function(t){var i=t.key,a=t.val;n[i]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=vb(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"==typeof a?a.apply(this,[i].concat(t)):i.apply(this.$store,[a].concat(t))}})),n})),gb=_b((function(e,t){var n={};return yb(t).forEach((function(t){var i=t.key,a=t.val;n[i]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=vb(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"==typeof a?a.apply(this,[i].concat(t)):i.apply(this.$store,[a].concat(t))}})),n}));function yb(e){return function(e){return Array.isArray(e)||qv(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function _b(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function vb(e,t,n){return e._modulesNamespaceMap[n]}const bb=sv({name:"TableCheckbox",emits:["checkboxSelected"],props:{indeterminate:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},index:{type:Number,default:-1},cellData:{type:Object,default:()=>({})}},watch:{checked(e){"boolean"==typeof this.checked?this.isChecked=e:this.isChecked=!0},indeterminate(e){this.isIndeterminate=e}},data:()=>({isChecked:!1,isDisabled:!1,isIndeterminate:!1}),created(){"boolean"==typeof this.checked&&(this.isChecked=this.checked),this.isDisabled=this.disabled},methods:{selected(){this.isDisabled||(this.isIndeterminate=!1,this.isChecked=!this.isChecked,this.$emit("checkboxSelected",{checked:this.isChecked,data:this.cellData}))}}},[["render",function(e,t,n,i,a,o){const r=Em;return uo(),go(r,{class:"uni-table-checkbox",onClick:o.selected},{default:ui((()=>[n.indeterminate?(uo(),go(r,{key:1,class:"checkbox__inner checkbox--indeterminate"},{default:ui((()=>[xo(r,{class:"checkbox__inner-icon"})])),_:1})):(uo(),go(r,{key:0,class:s(["checkbox__inner",{"is-checked":a.isChecked,"is-disable":a.isDisabled}])},{default:ui((()=>[xo(r,{class:"checkbox__inner-icon"})])),_:1},8,["class"]))])),_:1},8,["onClick"])}],["__scopeId","data-v-ff0fdce7"]]),wb={reset:"重置",search:"搜索",submit:"确定",filter:"筛选",gt:"大于等于",lt:"小于等于",date:"日期范围"},kb="select",xb="search",Tb="range",Sb="date",Cb="timestamp",Eb={name:"FilterDropdown",emits:["change"],components:{checkBox:bb},options:{virtualHost:!0},props:{filterType:{type:String,default:kb},filterData:{type:Array,default:()=>[]},mode:{type:String,default:"default"},map:{type:Object,default:()=>({text:"text",value:"value"})},filterDefaultValue:{type:[Array,String],default:()=>""}},computed:{canReset(){return this.isSearch?this.filterValue.length>0:this.isSelect?this.checkedValues.length>0:this.isRange?this.gtValue.length>0&&this.ltValue.length>0:!!this.isDate&&this.dateSelect.length>0},isSelect(){return this.filterType===kb},isSearch(){return this.filterType===xb},isRange(){return this.filterType===Tb},isDate(){return this.filterType===Sb||this.filterType===Cb}},watch:{filterData(e){this._copyFilters()},indeterminate(e){this.isIndeterminate=e}},data(){return{resource:wb,enabled:!0,isOpened:!1,dataList:[],filterValue:this.filterDefaultValue,checkedValues:[],gtValue:"",ltValue:"",dateRange:[],dateSelect:[]}},created(){this._copyFilters()},methods:{_copyFilters(){let e=JSON.parse(JSON.stringify(this.filterData));for(let t=0;t{this.dateRange.length||this.resetDate(),this.$refs.datetimepicker.show()}))},closePopup(){this.isOpened=!1},handleClose(e){this.closePopup()},resetDate(){let e=(new Date).toISOString().split("T")[0];this.dateRange=[e+" 0:00:00",e+" 23:59:59"]},onDropdown(e){this.openPopup()},onItemClick(e,t){let n=this.dataList,i=n[t];void 0===i.checked?n[t].checked=!0:n[t].checked=!i.checked;let a=[];for(let o=0;o[xo(l,{class:"dropdown-btn",onClick:r.onDropdown},{default:ui((()=>[r.isSelect||r.isRange?(uo(),go(l,{key:0,class:s(["icon-select",{active:r.canReset}])},null,8,["class"])):Co("",!0),r.isSearch?(uo(),go(l,{key:1,class:s(["icon-search",{active:r.canReset}])},{default:ui((()=>[xo(l,{class:"icon-search-0"}),xo(l,{class:"icon-search-1"})])),_:1},8,["class"])):Co("",!0),r.isDate?(uo(),go(l,{key:2,class:s(["icon-calendar",{active:r.canReset}])},{default:ui((()=>[xo(l,{class:"icon-calendar-0"}),xo(l,{class:"icon-calendar-1"})])),_:1},8,["class"])):Co("",!0)])),_:1},8,["onClick"]),o.isOpened?(uo(),go(l,{key:0,class:"uni-dropdown-cover",onClick:r.handleClose},null,8,["onClick"])):Co("",!0),o.isOpened?(uo(),go(l,{key:1,class:"dropdown-popup dropdown-popup-right",onClick:n[3]||(n[3]=$s((()=>{}),["stop"]))},{default:ui((()=>[r.isSelect?(uo(),go(l,{key:0,class:"list"},{default:ui((()=>[(uo(!0),mo(ao,null,_a(o.dataList,((e,n)=>(uo(),go(h,{class:"flex-r a-i-c list-item",key:n,onClick:e=>r.onItemClick(e,n)},{default:ui((()=>[xo(u,{class:"check",checked:e.checked},null,8,["checked"]),xo(l,{class:"checklist-content"},{default:ui((()=>[xo(d,{class:"checklist-text",style:t(e.styleIconText)},{default:ui((()=>[So(c(e[i.map.text]),1)])),_:2},1032,["style"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):Co("",!0),r.isSelect?(uo(),go(l,{key:1,class:"flex-r opera-area"},{default:ui((()=>[xo(l,{class:s(["flex-f btn btn-default",{disable:!r.canReset}]),onClick:r.handleSelectReset},{default:ui((()=>[So(c(o.resource.reset),1)])),_:1},8,["class","onClick"]),xo(l,{class:"flex-f btn btn-submit",onClick:r.handleSelectSubmit},{default:ui((()=>[So(c(o.resource.submit),1)])),_:1},8,["onClick"])])),_:1})):Co("",!0),r.isSearch?(uo(),go(l,{key:2,class:"search-area"},{default:ui((()=>[xo(p,{class:"search-input",modelValue:o.filterValue,"onUpdate:modelValue":n[0]||(n[0]=e=>o.filterValue=e)},null,8,["modelValue"])])),_:1})):Co("",!0),r.isSearch?(uo(),go(l,{key:3,class:"flex-r opera-area"},{default:ui((()=>[xo(l,{class:"flex-f btn btn-submit",onClick:r.handleSearchSubmit},{default:ui((()=>[So(c(o.resource.search),1)])),_:1},8,["onClick"]),xo(l,{class:s(["flex-f btn btn-default",{disable:!r.canReset}]),onClick:r.handleSearchReset},{default:ui((()=>[So(c(o.resource.reset),1)])),_:1},8,["class","onClick"])])),_:1})):Co("",!0),r.isRange?(uo(),go(l,{key:4},{default:ui((()=>[xo(l,{class:"input-label"},{default:ui((()=>[So(c(o.resource.gt),1)])),_:1}),xo(p,{class:"input",modelValue:o.gtValue,"onUpdate:modelValue":n[1]||(n[1]=e=>o.gtValue=e)},null,8,["modelValue"]),xo(l,{class:"input-label"},{default:ui((()=>[So(c(o.resource.lt),1)])),_:1}),xo(p,{class:"input",modelValue:o.ltValue,"onUpdate:modelValue":n[2]||(n[2]=e=>o.ltValue=e)},null,8,["modelValue"])])),_:1})):Co("",!0),r.isRange?(uo(),go(l,{key:5,class:"flex-r opera-area"},{default:ui((()=>[xo(l,{class:s(["flex-f btn btn-default",{disable:!r.canReset}]),onClick:r.handleRangeReset},{default:ui((()=>[So(c(o.resource.reset),1)])),_:1},8,["class","onClick"]),xo(l,{class:"flex-f btn btn-submit",onClick:r.handleRangeSubmit},{default:ui((()=>[So(c(o.resource.submit),1)])),_:1},8,["onClick"])])),_:1})):Co("",!0),r.isDate?(uo(),go(l,{key:6},{default:ui((()=>[xo(f,{ref:"datetimepicker",value:o.dateRange,type:"datetimerange","return-type":"timestamp",onChange:r.datetimechange,onMaskClick:r.timepickerclose},{default:ui((()=>[xo(l)])),_:1},8,["value","onChange","onMaskClick"])])),_:1})):Co("",!0)])),_:1})):Co("",!0)])),_:1})}],["__scopeId","data-v-eeb1dcc7"]])},emits:["sort-change","filter-change"],props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1},sortable:{type:Boolean,default:!1},filterType:{type:String,default:""},filterData:{type:Array,default:()=>[]},filterDefaultValue:{type:[Array,String],default:()=>""}},data:()=>({border:!1,ascending:!1,descending:!1}),computed:{customWidth(){if("number"==typeof this.width)return this.width;if("string"==typeof this.width){let e=new RegExp(/^[1-9][0-9]*px$/g),t=new RegExp(/^[1-9][0-9]*rpx$/g),n=new RegExp(/^[1-9][0-9]*$/g);if(null!==this.width.match(e))return this.width.replace("px","");if(null!==this.width.match(t)){let e=Number(this.width.replace("rpx","")),t=ty().screenWidth/750;return Math.round(e*t)}return null!==this.width.match(n)?this.width:""}return""},contentAlign(){let e="left";switch(this.align){case"left":e="flex-start";break;case"center":e="center";break;case"right":e="flex-end"}return e}},created(){this.root=this.getTable("uniTable"),this.rootTr=this.getTable("uniTr"),this.rootTr.minWidthUpdate(this.customWidth?this.customWidth:140),this.border=this.root.border,this.root.thChildren.push(this)},methods:{sort(){if(this.sortable)return this.clearOther(),this.ascending||this.descending?this.ascending&&!this.descending?(this.ascending=!1,this.descending=!0,void this.$emit("sort-change",{order:"descending"})):void(!this.ascending&&this.descending&&(this.ascending=!1,this.descending=!1,this.$emit("sort-change",{order:null}))):(this.ascending=!0,void this.$emit("sort-change",{order:"ascending"}))},ascendingFn(){this.clearOther(),this.ascending=!this.ascending,this.descending=!1,this.$emit("sort-change",{order:this.ascending?"ascending":null})},descendingFn(){this.clearOther(),this.descending=!this.descending,this.ascending=!1,this.$emit("sort-change",{order:this.descending?"descending":null})},clearOther(){this.root.thChildren.map((e=>(e!==this&&(e.ascending=!1,e.descending=!1),e)))},ondropdown(e){this.$emit("filter-change",e)},getTable(e){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};const Pb=sv(Db,[["render",function(e,n,i,a,o,r){const l=km,c=Em,u=pa("dropdown");return uo(),mo("th",{rowspan:i.rowspan,colspan:i.colspan,class:s(["uni-table-th",{"table--border":o.border}]),style:t({width:r.customWidth+"px","text-align":i.align})},[xo(c,{class:"uni-table-th-row"},{default:ui((()=>[xo(c,{class:"uni-table-th-content",style:t({"justify-content":r.contentAlign}),onClick:r.sort},{default:ui((()=>[ba(e.$slots,"default",{},void 0,!0),i.sortable?(uo(),go(c,{key:0,class:"arrow-box"},{default:ui((()=>[xo(l,{class:s(["arrow up",{active:o.ascending}]),onClick:$s(r.ascendingFn,["stop"])},null,8,["class","onClick"]),xo(l,{class:s(["arrow down",{active:o.descending}]),onClick:$s(r.descendingFn,["stop"])},null,8,["class","onClick"])])),_:1})):Co("",!0)])),_:3},8,["style","onClick"]),i.filterType||i.filterData.length?(uo(),go(u,{key:0,filterDefaultValue:i.filterDefaultValue,filterData:i.filterData,filterType:i.filterType,onChange:r.ondropdown},null,8,["filterDefaultValue","filterData","filterType","onChange"])):Co("",!0)])),_:3})],14,["rowspan","colspan"])}],["__scopeId","data-v-46096bb8"]]),Ib={name:"uniTr",components:{tableCheckbox:bb},props:{disabled:{type:Boolean,default:!1},keyValue:{type:[String,Number],default:""}},options:{virtualHost:!0},data:()=>({value:!1,border:!1,selection:!1,widthThArr:[],ishead:!0,checked:!1,indeterminate:!1}),created(){this.root=this.getTable(),this.head=this.getTable("uniThead"),this.head&&(this.ishead=!1,this.head.init(this)),this.border=this.root.border,this.selection=this.root.type,this.root.trChildren.push(this);const e=this.root.data.find((e=>e[this.root.rowKey]===this.keyValue));e&&(this.rowData=e),this.root.isNodata()},mounted(){if(this.widthThArr.length>0){const e="selection"===this.selection?50:0;this.root.minWidth=this.widthThArr.reduce(((e,t)=>Number(e)+Number(t)))+e}},unmounted(){const e=this.root.trChildren.findIndex((e=>e===this));this.root.trChildren.splice(e,1),this.root.isNodata()},methods:{minWidthUpdate(e){this.widthThArr.push(e)},checkboxSelected(e){let t=this.root.data.find((e=>e[this.root.rowKey]===this.keyValue));this.checked=e.checked,this.root.check(t||this,e.checked,t?this.keyValue:null)},change(e){this.root.trChildren.forEach((t=>{t===this&&this.root.check(this,e.detail.value.length>0)}))},getTable(e="uniTable"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};const Mb=sv(Ib,[["render",function(e,t,n,i,a,o){const r=pa("table-checkbox");return uo(),mo("tr",{class:"uni-table-tr"},["selection"===a.selection&&a.ishead?(uo(),mo("th",{key:0,class:s(["checkbox",{"tr-table--border":a.border}])},[xo(r,{checked:a.checked,indeterminate:a.indeterminate,disabled:n.disabled,onCheckboxSelected:o.checkboxSelected},null,8,["checked","indeterminate","disabled","onCheckboxSelected"])],2)):Co("",!0),ba(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-81e49fd2"]]);const Ob=sv({name:"uniTd",options:{virtualHost:!0},props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1}},data:()=>({border:!1}),created(){this.root=this.getTable(),this.border=this.root.border},methods:{getTable(){let e=this.$parent,t=e.$options.name;for(;"uniTable"!==t;){if(e=e.$parent,!e)return!1;t=e.$options.name}return e}}},[["render",function(e,n,i,a,o,r){return uo(),mo("td",{class:s(["uni-table-td",{"table--border":o.border}]),rowspan:i.rowspan,colspan:i.colspan,style:t({width:i.width+"px","text-align":i.align})},[ba(e.$slots,"default",{},void 0,!0)],14,["rowspan","colspan"])}],["__scopeId","data-v-aef02679"]]);const $b=sv({name:"uniTable",options:{virtualHost:!0},emits:["selection-change"],props:{data:{type:Array,default:()=>[]},border:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1},type:{type:String,default:""},emptyText:{type:String,default:"没有更多数据"},loading:{type:Boolean,default:!1},rowKey:{type:String,default:""}},data:()=>({noData:!0,minWidth:0,multiTableHeads:[]}),watch:{loading(e){},data(e){this.theadChildren,this.theadChildren&&this.theadChildren.rowspan,this.noData=!1}},created(){this.trChildren=[],this.thChildren=[],this.theadChildren=null,this.backData=[],this.backIndexData=[]},methods:{isNodata(){this.theadChildren;let e=1;this.theadChildren&&(e=this.theadChildren.rowspan),this.noData=this.trChildren.length-e<=0},selectionAll(){let e=1,t=this.theadChildren;this.theadChildren?e=t.rowspan-1:t=this.trChildren[0];let n=this.data&&this.data.length>0;t.checked=!0,t.indeterminate=!1,this.trChildren.forEach(((t,i)=>{if(!t.disabled){if(t.checked=!0,n&&t.keyValue){const e=this.data.find((e=>e[this.rowKey]===t.keyValue));this.backData.find((t=>t[this.rowKey]===e[this.rowKey]))||this.backData.push(e)}i>e-1&&-1===this.backIndexData.indexOf(i-e)&&this.backIndexData.push(i-e)}})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},toggleRowSelection(e,t){e=[].concat(e),this.trChildren.forEach(((n,i)=>{const a=e.findIndex((e=>"number"==typeof e?e===i-1:e[this.rowKey]===n.keyValue));let o=n.checked;-1!==a&&(n.checked="boolean"==typeof t?t:!n.checked,o!==n.checked&&this.check(n.rowData||n,n.checked,n.rowData?n.keyValue:null,!0))})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},clearSelection(){let e=this.theadChildren;this.theadChildren||(e=this.trChildren[0]),e.checked=!1,e.indeterminate=!1,this.trChildren.forEach((e=>{e.checked=!1})),this.backData=[],this.backIndexData=[],this.$emit("selection-change",{detail:{value:[],index:[]}})},toggleAllSelection(){let e=[],t=1,n=this.theadChildren;this.theadChildren?t=n.rowspan-1:n=this.trChildren[0],this.trChildren.forEach(((n,i)=>{n.disabled||i>t-1&&e.push(i-t)})),this.toggleRowSelection(e)},check(e,t,n,i){let a=this.theadChildren;this.theadChildren||(a=this.trChildren[0]);let o=this.trChildren.findIndex(((t,n)=>e===t));if(o<0&&(o=this.data.findIndex((e=>e[this.rowKey]===n))+1),this.trChildren.filter((e=>!e.disabled&&e.keyValue)).length,0===o)return void(t?this.selectionAll():this.clearSelection());if(t)n&&this.backData.push(e),this.backIndexData.push(o-1);else{const e=this.backData.findIndex((e=>e[this.rowKey]===n)),t=this.backIndexData.findIndex((e=>e===o-1));n&&this.backData.splice(e,1),this.backIndexData.splice(t,1)}this.trChildren.find(((e,t)=>t>0&&!e.checked&&!e.disabled))?(a.indeterminate=!0,a.checked=!1):(a.indeterminate=!1,a.checked=!0),0===this.backIndexData.length&&(a.indeterminate=!1),i||this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})}}},[["render",function(e,n,i,a,o,r){const l=Em;return uo(),go(l,{class:s(["uni-table-scroll",{"table--border":i.border,"border-none":!o.noData}])},{default:ui((()=>[ko("table",{class:s(["uni-table",{"table--stripe":i.stripe}]),border:"0",cellpadding:"0",cellspacing:"0",style:t({"min-width":o.minWidth+"px"})},[ba(e.$slots,"default",{},void 0,!0),o.noData?(uo(),mo("tr",{key:0,class:"uni-table-loading"},[ko("td",{class:s(["uni-table-text",{"empty-border":i.border}])},c(i.emptyText),3)])):Co("",!0),i.loading?(uo(),go(l,{key:1,class:s(["uni-table-mask",{"empty-border":i.border}])},{default:ui((()=>[ko("div",{class:"uni-table--loader"})])),_:1},8,["class"])):Co("",!0)],6)])),_:3},8,["class"])}],["__scopeId","data-v-82f3199e"]]),Ab={login:{url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"},index:{url:"/pages/index/index"},error:{url:"/pages/error/404"},navBar:{logo:"/static/logo.png",langs:[{text:"中文简体",lang:"zh-Hans"},{text:"中文繁體",lang:"zh-Hant"},{text:"English",lang:"en"}],themes:[{text:"默认",value:"default"},{text:"绿柔",value:"green"}],debug:{enable:!1,engine:[{name:"百度",url:"https://www.baidu.com/baidu?wd=ERR_MSG"},{name:"谷歌",url:"https://www.google.com/search?q=ERR_MSG"}]}},sideBar:{staticMenu:[{menu_id:"admim-doc-pulgin",text:"文档与插件",icon:"admin-icons-eco",url:"",children:[{menu_id:"admin-doc",icon:"admin-icons-doc",text:"uni-admin 框架文档",value:"https://uniapp.dcloud.net.cn/uniCloud/admin"},{menu_id:"stat-doc",icon:"admin-icons-help",text:"uni 统计教程",value:"https://uniapp.dcloud.net.cn/uni-stat-v2.html"},{menu_id:"admin-pulgin",icon:"admin-icons-pulgin",text:"uni-admin 插件",value:"https://ext.dcloud.net.cn/?cat1=7&cat2=74"}]}]},uniStat:{}},Lb=Ab.navBar.debug||{};const Rb={components:{errorLog:sv({data:()=>({engines:Lb.engine||[]}),computed:{...fb("error",["logs"])},methods:{search(e,t){}}},[["render",function(e,t,n,i,a,o){const s=dv(ma("uni-th"),Pb),r=dv(ma("uni-tr"),Mb),l=km,u=dv(ma("uni-td"),Ob),d=Kf,h=dv(ma("uni-table"),$b),p=Em;return uo(),go(p,{class:"uni-table"},{default:ui((()=>[xo(h,{border:"",stripe:""},{default:ui((()=>[xo(r,null,{default:ui((()=>[xo(s,{align:"center"},{default:ui((()=>[So("错误信息")])),_:1}),xo(s,{width:"100",align:"center"},{default:ui((()=>[So("路由")])),_:1}),xo(s,{width:"100",align:"center"},{default:ui((()=>[So("时间")])),_:1}),xo(s,{width:"100",align:"center"},{default:ui((()=>[So("搜索")])),_:1})])),_:1}),(uo(!0),mo(ao,null,_a(e.logs,((e,t)=>(uo(),go(r,{key:t},{default:ui((()=>[xo(u,null,{default:ui((()=>[xo(l,{class:"err-msg"},{default:ui((()=>[So("Error in "+c(e.info)+": `"+c(e.err)+"`",1)])),_:2},1024)])),_:2},1024),xo(u,null,{default:ui((()=>[xo(d,{class:"err-route",url:e.route},{default:ui((()=>[So(c(e.route),1)])),_:2},1032,["url"])])),_:2},1024),xo(u,null,{default:ui((()=>[xo(l,null,{default:ui((()=>[So(c(e.time),1)])),_:2},1024)])),_:2},1024),xo(u,null,{default:ui((()=>[(uo(!0),mo(ao,null,_a(a.engines,(t=>(uo(),mo("a",{href:t.url.replace("ERR_MSG",encodeURIComponent(e.err)),target:"_blank",class:"err-search"},c(t.name),9,["href"])))),256))])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})}],["__scopeId","data-v-880e209b"]])},props:{navigationBarTitleText:{type:String},matchLeftWindow:{type:Boolean},showLeftWindow:{type:Boolean}},data:()=>({...Ab.navBar,popupMenuOpened:!1,mpCapsule:0,langIndex:0}),computed:{...fb("app",["appName","routes","theme"]),...fb("error",["logs"]),userInfo(){return this.$uniIdPagesStore.store.userInfo},themeIndex(){let e=0;return this.themes.forEach(((t,n)=>{t.value===this.theme&&(e=n)})),e}},mounted(){let e=Bh();this.$nextTick((()=>{let t=this.langs.findIndex((t=>t.lang===e));this.changeLanguage(t)}))},methods:{...mb("app",["SET_THEME"]),showErrorLogs(){this.popupMenuOpened&&(this.popupMenuOpened=!1),this.$refs.errorLogsPopup.open()},showPasswordPopup(){this.popupMenuOpened&&(this.popupMenuOpened=!1),this.$refs.passwordPopup.open()},logout(){this.popupMenuOpened=!1,this.$uniIdPagesStore.mutations.logout()},toggleSidebar(){this.showLeftWindow?L_():A_()},togglePopupMenu(){this.popupMenuOpened=!this.popupMenuOpened},changePassword(){qy({url:"/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",complete:()=>{this.popupMenuOpened=!1}})},changeLanguage(e){let t="object"==typeof e?e.detail.value:e;(!t||t<0)&&(t=0);const n=this.langs[t].lang||"zh-Hans";"android"!==ty().platform?(this.$i18n.locale=n,this.langIndex=t,Fh(n)):f_({icon:"error",title:"暂不支持",duration:2e3})},linkTo(){Hy({url:"/"})},changeTheme(e){const t="object"==typeof e?e.detail.value:e,n=this.themes[t].value||"default";this.theme!==n&&this.SET_THEME(n)}}};const Nb=sv(Rb,[["render",function(e,t,n,i,a,o){const r=ef,l=km,u=Em,d=dv(ma("uni-icons"),rv),h=dv(ma("uni-badge"),hv),p=z_,f=pa("error-log"),m=fm,g=dv(ma("uni-popup"),vv),y=dv(ma("uni-datetime-picker"),Nv);return uo(),go(u,{class:"header"},{default:ui((()=>[(uo(),mo("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{position:"absolute",width:"0",height:"0"}},[ko("symbol",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",id:"icon-bug"},[ko("path",{d:"M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z"})])])),xo(u,{class:s(["navbar",{"navbar-mini":!n.matchLeftWindow,"popup-menu":a.popupMenuOpened}])},{default:ui((()=>[xo(u,{class:"navbar-left"},{default:ui((()=>[xo(u,{class:"logo pointer",onClick:o.linkTo},{default:ui((()=>[xo(r,{class:"logo-image",src:e.logo,mode:"heightFix"},null,8,["src"]),xo(l,{class:"logo-text"},{default:ui((()=>[So(c(e.appName),1)])),_:1})])),_:1},8,["onClick"]),xo(d,{onClick:o.toggleSidebar,type:"bars",class:"menu-icon",size:"30",color:"#999"},null,8,["onClick"])])),_:1}),xo(u,{class:"navbar-middle"},{default:ui((()=>[xo(l,{class:"title-text"},{default:ui((()=>[So(c(n.navigationBarTitleText),1)])),_:1})])),_:1}),xo(u,{class:"navbar-right pointer"},{default:ui((()=>[e.logs.length?(uo(),go(u,{key:0,onClick:o.showErrorLogs,class:"menu-item debug pointer navbar-right-item-gap"},{default:ui((()=>[(uo(),mo("svg",{class:"svg-icon"},[ko("use",{"xlink:href":"#icon-bug"})])),xo(h,{class:"debug-badge",text:e.logs.length,type:"error"},null,8,["text"])])),_:1},8,["onClick"])):Co("",!0),xo(p,{class:"navbar-right-item-gap",mode:"selector",range:e.themes,"range-key":"text",value:o.themeIndex,onChange:o.changeTheme},{default:ui((()=>[xo(d,{type:"color-filled",size:"24",color:"#999"})])),_:1},8,["range","value","onChange"]),xo(p,{class:"navbar-right-item-gap",mode:"selector",range:e.langs,"range-key":"text",onChange:o.changeLanguage,value:a.langIndex},{default:ui((()=>[xo(u,{class:"admin-icons-lang"})])),_:1},8,["range","onChange","value"]),xo(u,{class:"",style:{position:"relative"}},{default:ui((()=>[ua(xo(u,{class:"navbar-user",onClick:o.togglePopupMenu},{default:ui((()=>[xo(u,{class:"admin-icons-user user-icon"}),xo(u,{class:"username ml-s"},{default:ui((()=>[xo(l,null,{default:ui((()=>[So(c(o.userInfo.nickname||o.userInfo.username||o.userInfo.mobile||o.userInfo.email),1)])),_:1})])),_:1}),xo(d,{class:"arrowdown",type:"arrowdown",color:"#666",size:"13"})])),_:1},8,["onClick"]),[[As,o.userInfo.nickname||o.userInfo.username||o.userInfo.mobile||o.userInfo.email]]),xo(u,{class:"uni-mask",onClick:o.togglePopupMenu},null,8,["onClick"]),xo(u,{class:"navbar-menu"},{default:ui((()=>[o.userInfo.nickname||o.userInfo.username||o.userInfo.mobile||o.userInfo.email?(uo(),mo(ao,{key:0},[xo(u,{class:"menu-item hover-highlight",onClick:o.changePassword},{default:ui((()=>[xo(l,null,{default:ui((()=>[So(c(e.$t("topwindow.text.changePwd")),1)])),_:1})])),_:1},8,["onClick"]),xo(u,{class:"menu-item hover-highlight"},{default:ui((()=>[xo(l,{class:"logout pointer",onClick:o.logout},{default:ui((()=>[So(c(e.$t("topwindow.text.signOut")),1)])),_:1},8,["onClick"])])),_:1})],64)):Co("",!0),xo(u,{class:"popup-menu__arrow"})])),_:1})])),_:1})])),_:1})])),_:1},8,["class"]),xo(g,{ref:"errorLogsPopup",type:"center"},{default:ui((()=>[xo(u,{class:"modal"},{default:ui((()=>[xo(m,{class:"modal-content","scroll-y":"true"},{default:ui((()=>[xo(f,{class:"error-table"})])),_:1})])),_:1})])),_:1},512),ua(xo(y,{type:"date"},null,512),[[As,!1]])])),_:1})}],["__scopeId","data-v-c2e6313c"]]),Bb={pages:[{path:"pages/index/index"},{path:"uni_modules/uni-id-pages/pages/login/login-withpwd",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"登录"}},{path:"pages/error/404",style:{navigationBarTitleText:"Not Found"}},{path:"uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",style:{navigationBarTitleText:"修改密码"}},{path:"uni_modules/uni-upgrade-center/pages/version/list",style:{navigationBarTitleText:"版本列表"}},{path:"uni_modules/uni-upgrade-center/pages/version/add",style:{navigationBarTitleText:"新版发布"}},{path:"uni_modules/uni-upgrade-center/pages/version/detail",style:{navigationBarTitleText:"版本信息查看"}},{path:"uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",style:{navigationBarTitleText:"注销账号"}},{path:"uni_modules/uni-id-pages/pages/userinfo/userinfo",style:{navigationBarTitleText:"个人资料"}},{path:"uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",style:{navigationBarTitleText:"绑定手机号码"}},{path:"uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",style:{navigationBarTitleText:""}},{path:"uni_modules/uni-id-pages/pages/login/login-smscode",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"手机验证码登录"}},{path:"uni_modules/uni-id-pages/pages/login/login-withoutpwd",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"免密登录页"}},{path:"uni_modules/uni-id-pages/pages/register/register",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"注册"}},{path:"uni_modules/uni-id-pages/pages/register/register-admin",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"创建超级管理员"}},{path:"uni_modules/uni-id-pages/pages/register/register-by-email",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"邮箱验证码注册"}},{path:"uni_modules/uni-id-pages/pages/retrieve/retrieve",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"重置密码"}},{path:"uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"通过邮箱重置密码"}},{path:"uni_modules/uni-id-pages/pages/common/webview/webview",style:{topWindow:!1,leftWindow:!1,enablePullDownRefresh:!1,navigationBarTitleText:""}},{path:"uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",style:{enablePullDownRefresh:!1,navigationBarTitleText:"设置密码"}}],subPackages:[{root:"pages/system",pages:[{path:"menu/list",style:{navigationBarTitleText:"菜单管理"}},{path:"menu/add",style:{navigationBarTitleText:"新增菜单",navigationStyle:"default"}},{path:"menu/edit",style:{navigationBarTitleText:"修改菜单",navigationStyle:"default"}},{path:"permission/list",style:{navigationBarTitleText:"权限管理"}},{path:"permission/add",style:{navigationBarTitleText:"新增权限",navigationStyle:"default"}},{path:"permission/edit",style:{navigationBarTitleText:"修改权限",navigationStyle:"default"}},{path:"role/add",style:{navigationBarTitleText:"新增角色",navigationStyle:"default"}},{path:"role/edit",style:{navigationBarTitleText:"修改角色",navigationStyle:"default"}},{path:"role/list",style:{navigationBarTitleText:"角色管理"}},{path:"admin-user/add",style:{navigationBarTitleText:"新增用户",navigationStyle:"default"}},{path:"admin-user/edit",style:{navigationBarTitleText:"修改用户",navigationStyle:"default"}},{path:"admin-user/list",style:{navigationBarTitleText:"用户管理"}},{path:"app/add",style:{navigationBarTitleText:"新增应用",navigationStyle:"default"}},{path:"app/list",style:{navigationBarTitleText:"应用管理"}},{path:"app/uni-portal/uni-portal",style:{navigationBarTitleText:"发布页管理",navigationStyle:"default"}},{path:"safety/list",style:{navigationBarTitleText:"用户日志"}}]},{root:"pages/content",pages:[{path:"mustgo-user/add",style:{navigationBarTitleText:"新增",navigationStyle:"default"}},{path:"mustgo-user/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-user/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-team/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-team/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-team/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-record/running/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-record/running/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-record/running/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-record/walking/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-record/walking/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-record/walking/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-post/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-post/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-post/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-comment/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-comment/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-comment/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-activity/school/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-activity/school/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-activity/school/list",style:{navigationBarTitleText:"列表"}},{path:"mustgo-activity/team/add",style:{navigationBarTitleText:"新增"}},{path:"mustgo-activity/team/edit",style:{navigationBarTitleText:"编辑"}},{path:"mustgo-activity/team/list",style:{navigationBarTitleText:"列表"}}]},{root:"pages/uni-stat",pages:[{path:"page-res/page-res",style:{navigationBarTitleText:"受访页",enablePullDownRefresh:!1}},{path:"page-ent/page-ent",style:{navigationBarTitleText:"入口页",enablePullDownRefresh:!1}},{path:"scene/scene",style:{navigationBarTitleText:"场景值(小程序)",enablePullDownRefresh:!1}},{path:"channel/channel",style:{navigationBarTitleText:"渠道(app)",enablePullDownRefresh:!1}},{path:"error/js/js",style:{navigationBarTitleText:"js报错统计",enablePullDownRefresh:!1}},{path:"error/js/detail",style:{navigationBarTitleText:"错误信息",navigationStyle:"default",enablePullDownRefresh:!1}},{path:"error/app/app",style:{navigationBarTitleText:"app原生报错统计",enablePullDownRefresh:!1}},{path:"event/event",style:{navigationBarTitleText:"事件和转化",enablePullDownRefresh:!1}},{path:"device/overview/overview",style:{navigationBarTitleText:"今日概况",enablePullDownRefresh:!1}},{path:"device/activity/activity",style:{navigationBarTitleText:"活跃度",enablePullDownRefresh:!1}},{path:"device/trend/trend",style:{navigationBarTitleText:"趋势分析",enablePullDownRefresh:!1}},{path:"device/retention/retention",style:{navigationBarTitleText:"留存",enablePullDownRefresh:!1}},{path:"device/comparison/comparison",style:{navigationBarTitleText:"平台对比",enablePullDownRefresh:!1}},{path:"device/stickiness/stickiness",style:{navigationBarTitleText:"粘性",enablePullDownRefresh:!1}},{path:"user/overview/overview",style:{navigationBarTitleText:"今日概况",enablePullDownRefresh:!1}},{path:"user/activity/activity",style:{navigationBarTitleText:"活跃度",enablePullDownRefresh:!1}},{path:"user/trend/trend",style:{navigationBarTitleText:"趋势分析",enablePullDownRefresh:!1}},{path:"user/retention/retention",style:{navigationBarTitleText:"留存",enablePullDownRefresh:!1}},{path:"user/comparison/comparison",style:{navigationBarTitleText:"平台对比",enablePullDownRefresh:!1}},{path:"user/stickiness/stickiness",style:{navigationBarTitleText:"粘性",enablePullDownRefresh:!1}},{path:"pay-order/overview/overview",style:{navigationBarTitleText:"订单概况",enablePullDownRefresh:!1}},{path:"pay-order/list/list",style:{navigationBarTitleText:"订单明细",enablePullDownRefresh:!1}},{path:"pay-order/funnel/funnel",style:{navigationBarTitleText:"漏斗分析",enablePullDownRefresh:!1}},{path:"pay-order/ranking/ranking",style:{navigationBarTitleText:"用户价值排行",enablePullDownRefresh:!1}}]}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"管理系统",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",h5:{titleNView:!1}},topWindow:{path:"windows/topWindow",style:{height:"60px"},matchMedia:{minWidth:0}},leftWindow:{path:"windows/leftWindow",style:{width:"240px"}},uniIdRouter:{loginPage:"uni_modules/uni-id-pages/pages/login/login-withpwd",needLogin:["^((?!uni-id-pages/pages/login|register|retrieve).)*$"],resToLogin:!0}};function Fb(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var jb=Fb((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},o=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],a=function(t){var n=987654321,i=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-a%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new s.init(n,t/2)}},c=r.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new s.init(n,t)}},u=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,a=n.sigBytes,o=this.blockSize,r=a/(4*o),l=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*o,c=e.min(4*l,a);if(l){for(var u=0;u>>24)|4278255360&(a<<24|a>>>8)}var o=this._hash.words,s=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],_=e[t+7],v=e[t+8],b=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],T=e[t+13],S=e[t+14],C=e[t+15],E=o[0],D=o[1],P=o[2],I=o[3];E=c(E,D,P,I,s,7,r[0]),I=c(I,E,D,P,l,12,r[1]),P=c(P,I,E,D,p,17,r[2]),D=c(D,P,I,E,f,22,r[3]),E=c(E,D,P,I,m,7,r[4]),I=c(I,E,D,P,g,12,r[5]),P=c(P,I,E,D,y,17,r[6]),D=c(D,P,I,E,_,22,r[7]),E=c(E,D,P,I,v,7,r[8]),I=c(I,E,D,P,b,12,r[9]),P=c(P,I,E,D,w,17,r[10]),D=c(D,P,I,E,k,22,r[11]),E=c(E,D,P,I,x,7,r[12]),I=c(I,E,D,P,T,12,r[13]),P=c(P,I,E,D,S,17,r[14]),E=u(E,D=c(D,P,I,E,C,22,r[15]),P,I,l,5,r[16]),I=u(I,E,D,P,y,9,r[17]),P=u(P,I,E,D,k,14,r[18]),D=u(D,P,I,E,s,20,r[19]),E=u(E,D,P,I,g,5,r[20]),I=u(I,E,D,P,w,9,r[21]),P=u(P,I,E,D,C,14,r[22]),D=u(D,P,I,E,m,20,r[23]),E=u(E,D,P,I,b,5,r[24]),I=u(I,E,D,P,S,9,r[25]),P=u(P,I,E,D,f,14,r[26]),D=u(D,P,I,E,v,20,r[27]),E=u(E,D,P,I,T,5,r[28]),I=u(I,E,D,P,p,9,r[29]),P=u(P,I,E,D,_,14,r[30]),E=d(E,D=u(D,P,I,E,x,20,r[31]),P,I,g,4,r[32]),I=d(I,E,D,P,v,11,r[33]),P=d(P,I,E,D,k,16,r[34]),D=d(D,P,I,E,S,23,r[35]),E=d(E,D,P,I,l,4,r[36]),I=d(I,E,D,P,m,11,r[37]),P=d(P,I,E,D,_,16,r[38]),D=d(D,P,I,E,w,23,r[39]),E=d(E,D,P,I,T,4,r[40]),I=d(I,E,D,P,s,11,r[41]),P=d(P,I,E,D,f,16,r[42]),D=d(D,P,I,E,y,23,r[43]),E=d(E,D,P,I,b,4,r[44]),I=d(I,E,D,P,x,11,r[45]),P=d(P,I,E,D,C,16,r[46]),E=h(E,D=d(D,P,I,E,p,23,r[47]),P,I,s,6,r[48]),I=h(I,E,D,P,_,10,r[49]),P=h(P,I,E,D,S,15,r[50]),D=h(D,P,I,E,g,21,r[51]),E=h(E,D,P,I,x,6,r[52]),I=h(I,E,D,P,f,10,r[53]),P=h(P,I,E,D,w,15,r[54]),D=h(D,P,I,E,l,21,r[55]),E=h(E,D,P,I,v,6,r[56]),I=h(I,E,D,P,C,10,r[57]),P=h(P,I,E,D,y,15,r[58]),D=h(D,P,I,E,T,21,r[59]),E=h(E,D,P,I,m,6,r[60]),I=h(I,E,D,P,k,10,r[61]),P=h(P,I,E,D,p,15,r[62]),D=h(D,P,I,E,b,21,r[63]),o[0]=o[0]+E|0,o[1]=o[1]+D|0,o[2]=o[2]+P|0,o[3]=o[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var o=e.floor(i/4294967296),s=i;n[15+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var r=this._hash,l=r.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return r},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,o,s){var r=e+(t&n|~t&i)+a+s;return(r<>>32-o)+t}function u(e,t,n,i,a,o,s){var r=e+(t&i|n&~i)+a+s;return(r<>>32-o)+t}function d(e,t,n,i,a,o,s){var r=e+(t^n^i)+a+s;return(r<>>32-o)+t}function h(e,t,n,i,a,o,s){var r=e+(n^(t|~i))+a+s;return(r<>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),n.MD5)})),Fb((function(e,t){var n,i,a;e.exports=(i=(n=Vb).lib.Base,a=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),r=o.words,l=s.words,c=0;c>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,r=0;r<4&&o+.75*r>>6*(3-r)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-s%4*2;i[o>>>2]|=(r|l)<<24-o%4*8,o++}return a.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const Hb="FUNCTION",zb="pending",Yb="rejected";function Xb(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Kb(e){return"object"===Xb(e)}function Gb(e){return"function"==typeof e}function Jb(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Qb="REJECTED",Zb="NOT_PENDING";class ew{constructor({createPromise:e,retryRule:t=Qb}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Qb:return this.status===Yb;case Zb:return this.status!==zb}}exec(){return this.needRetry?(this.status=zb,this.promise=this.createPromise().then((e=>(this.status="fullfilled",Promise.resolve(e))),(e=>(this.status=Yb,Promise.reject(e)))),this.promise):this.promise}}function tw(e){return e&&"string"==typeof e?JSON.parse(e):e}const nw=tw([]),iw="web";tw("");const aw=tw('[{"provider":"aliyun","spaceName":"se-must-admin","spaceId":"mp-6f6feaec-a026-4402-8e8d-18f7572890da","clientSecret":"pt6enUNnaSdlygI5yzI9FQ==","endpoint":"https://api.next.bspapp.com"}]')||[];let ow="";try{ow="__UNI__2A45DD3"}catch(Kw){}let sw={};function rw(e,t={}){var n,i;return n=sw,i=e,Object.prototype.hasOwnProperty.call(n,i)||(sw[e]=t),sw[e]}const lw=["invoke","success","fail","complete"],cw=rw("_globalUniCloudInterceptor");function uw(e,t){cw[e]||(cw[e]={}),Kb(t)&&Object.keys(t).forEach((n=>{lw.indexOf(n)>-1&&function(e,t,n){let i=cw[e][t];i||(i=cw[e][t]=[]),-1===i.indexOf(n)&&Gb(n)&&i.push(n)}(e,n,t[n])}))}function dw(e,t){cw[e]||(cw[e]={}),Kb(t)?Object.keys(t).forEach((n=>{lw.indexOf(n)>-1&&function(e,t,n){const i=cw[e][t];if(!i)return;const a=i.indexOf(n);a>-1&&i.splice(a,1)}(e,n,t[n])})):delete cw[e]}function hw(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function pw(e,t){return cw[e]&&cw[e][t]||[]}function fw(e){uw("callObject",e)}const mw=rw("_globalUniCloudListener"),gw="response",yw="needLogin",_w="refreshToken",vw="clientdb",bw="cloudfunction",ww="cloudobject";function kw(e){return mw[e]||(mw[e]=[]),mw[e]}function xw(e,t){const n=kw(e);n.includes(t)||n.push(t)}function Tw(e,t){const n=kw(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function Sw(e,t){const n=kw(e);for(let i=0;i{Ew&&e(),function t(){{const t=og();t&&t[0]&&(Ew=!0,e())}Ew||setTimeout((()=>{t()}),30)}()})),Cw)}function Pw(e){const t={};for(const n in e){const i=e[n];Gb(i)&&(t[n]=Jb(i))}return t}class Iw extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Mw={request:e=>Ry(e),uploadFile:e=>jy(e),setStorageSync:(e,t)=>iy(e,t),getStorageSync:e=>sy(e),removeStorageSync:e=>ry(e),clearStorageSync:()=>ly()};function Ow(e){return e&&Ow(e.__v_raw)||e}function $w(){return{token:Mw.getStorageSync("uni_id_token")||Mw.getStorageSync("uniIdToken"),tokenExpired:Mw.getStorageSync("uni_id_token_expired")}}function Aw({token:e,tokenExpired:t}={}){e&&Mw.setStorageSync("uni_id_token",e),t&&Mw.setStorageSync("uni_id_token_expired",t)}let Lw,Rw;function Nw(){return Lw||(Lw=ty()),Lw}function Bw(){let e,t;try{if(Vh){if(Vh.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:i}=Vh();e=i,t=n}}catch(n){}return{channel:e,scene:t}}function Fw(){const e=Bh&&Bh()||"en";if(Rw)return{...Rw,locale:e,LOCALE:e};const t=Nw(),{deviceId:n,osName:i,uniPlatform:a,appId:o}=t,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let r=0;r{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return i(new Iw({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const a=e.data;if(a.error)return i(new Iw({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},Ww=function(e){return Ub.stringify(qb.parse(e))},qw={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:Uw}=Qs({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:qw,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:qw},"zh-Hans");var Hw=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(Uw("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Mw,this._getAccessTokenPromiseHub=new ew({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Iw({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:Zb})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return Vw(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=jw(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=jw(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:o}){return new Promise(((s,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?s(e):r(new Iw({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Iw({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:i,config:a}){if("string"!==Xb(t))throw new Iw({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Iw({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Iw({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=a&&a.envType||this.config.envType,s=(await this.getOSSUploadOptionsFromPath({env:o,filename:t})).result,r="https://"+s.cdnDomain+"/"+s.ossPath,{securityToken:l,accessKeyId:c,signature:u,host:d,ossPath:h,id:p,policy:f,ossCallbackUrl:m}=s,g={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:c,Signature:u,host:d,id:p,key:h,policy:f,success_action_status:200};if(l&&(g["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:p,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});g.callback=Ww(e)}const y={url:"https://"+s.host,formData:g,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:i})),m)return{success:!0,filePath:e,fileID:r};if((await this.reportOSSUpload({id:p})).success)return{success:!0,filePath:e,fileID:r};throw new Iw({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Iw({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Iw({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},zw={init(e){const t=new Hw(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Yw="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Xw,Kw;(Kw=Xw||(Xw={})).local="local",Kw.none="none",Kw.session="session";var Gw=function(){};const Jw=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Iw({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,i)=>e?n(e):t(i)}));return e.promise=t,e};function Qw(e){return void 0===e}function Zw(e){return"[object Null]"===Object.prototype.toString.call(e)}var ek;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(ek||(ek={}));const tk={adapter:null,runtime:void 0},nk=["anonymousUuidKey"];class ik extends Gw{constructor(){super(),tk.adapter.root.tcbObject||(tk.adapter.root.tcbObject={})}setItem(e,t){tk.adapter.root.tcbObject[e]=t}getItem(e){return tk.adapter.root.tcbObject[e]}removeItem(e){delete tk.adapter.root.tcbObject[e]}clear(){delete tk.adapter.root.tcbObject}}function ak(e,t){switch(e){case"local":return t.localStorage||new ik;case"none":return new ik;default:return t.sessionStorage||new ik}}class ok{constructor(e){if(!this._storage){this._persistence=tk.adapter.primaryStorage||e.persistence,this._storage=ak(this._persistence,tk.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,i=`refresh_token_${e.env}`,a=`anonymous_uuid_${e.env}`,o=`login_type_${e.env}`,s=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=ak(e,tk.adapter);for(const i in this.keys){const e=this.keys[i];if(t&&nk.includes(i))continue;const a=this._storage.getItem(e);Qw(a)||Zw(a)||(n.setItem(e,a),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const i={version:n||"localCachev1",content:t},a=JSON.stringify(i);try{this._storage.setItem(e,a)}catch(o){throw o}}getStore(e,t){try{if(!this._storage)return}catch(i){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const sk={},rk={};function lk(e){return sk[e]}class ck{constructor(e,t){this.data=t||null,this.name=e}}class uk extends ck{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const dk=new class{constructor(){this._listeners={}}on(e,t){return n=e,i=t,(a=this._listeners)[n]=a[n]||[],a[n].push(i),this;var n,i,a}off(e,t){return function(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof uk)return console.error(e.error),this;const n="string"==typeof e?new ck(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;const e=this._listeners[i]?[...this._listeners[i]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function hk(e,t){dk.on(e,t)}function pk(e,t={}){dk.fire(e,t)}function fk(e,t){dk.off(e,t)}const mk="loginStateChanged",gk="loginStateExpire",yk="loginTypeChanged",_k="anonymousConverted",vk="refreshAccessToken";var bk;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(bk||(bk={}));const wk=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],kk={"X-SDK-Version":"1.3.5"};function xk(e,t,n){const i=e[t];e[t]=function(t){const a={},o={};n.forEach((n=>{const{data:i,headers:s}=n.call(e,t);Object.assign(a,i),Object.assign(o,s)}));const s=t.data;return s&&(()=>{var e;if(e=s,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...s,...a};else for(const t in a)s.append(t,a[t])})(),t.headers={...t.headers||{},...o},i.call(e,t)}}function Tk(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...kk,"x-seqid":e}}}class Sk{constructor(e={}){var t;this.config=e,this._reqClass=new tk.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=lk(this.config.env),this._localCache=(t=this.config.env,rk[t]),xk(this._reqClass,"post",[Tk]),xk(this._reqClass,"upload",[Tk]),xk(this._reqClass,"download",[Tk])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:i,anonymousUuidKey:a}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(n);if(!o)throw new Iw({message:"未登录CloudBase"});const s={refresh_token:o},r=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(r.data.code){const{code:e}=r.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(i)===bk.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(a),t=this._cache.getStore(n),i=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(i.refresh_token),this._refreshAccessToken()}pk(gk),this._cache.removeStore(n)}throw new Iw({code:r.data.code,message:`刷新access token失败:${r.data.code}`})}if(r.data.access_token)return pk(vk),this._cache.setStore(e,r.data.access_token),this._cache.setStore(t,r.data.access_token_expire+Date.now()),{accessToken:r.data.access_token,accessTokenExpire:r.data.access_token_expire};r.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,r.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Iw({message:"refresh token不存在,登录状态异常"});let i=this._cache.getStore(e),a=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(i,a))&&(o=!1),(!i||!a||a{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:i,province:a,country:o,city:s}=e,{data:r}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:i,province:a,country:o,city:s});this.setLocalUserInfo(r)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class Ik{constructor(e){if(!e)throw new Iw({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=lk(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys,a=this._cache.getStore(t),o=this._cache.getStore(n),s=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:o,accessTokenExpire:s},this.user=new Pk(e)}get isAnonymousAuth(){return this.loginType===bk.ANONYMOUS}get isCustomAuth(){return this.loginType===bk.CUSTOM}get isWeixinAuth(){return this.loginType===bk.WECHAT||this.loginType===bk.WECHAT_OPEN||this.loginType===bk.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Mk extends Dk{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,i=this._cache.getStore(t)||void 0,a=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:i});if(a.uuid&&a.refresh_token){this._setAnonymousUUID(a.uuid),this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),pk(mk),pk(yk,{env:this.config.env,loginType:bk.ANONYMOUS,persistence:"local"});const e=new Ik(this.config.env);return await e.user.refresh(),e}throw new Iw({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,i=this._cache.getStore(t),a=this._cache.getStore(n),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:a,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),pk(_k,{env:this.config.env}),pk(yk,{loginType:bk.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new Iw({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,bk.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Ok extends Dk{async signIn(e){if("string"!=typeof e)throw new Iw({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),pk(mk),pk(yk,{env:this.config.env,loginType:bk.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new Ik(this.config.env);throw new Iw({message:"自定义登录失败"})}}class $k extends Dk{async signIn(e,t){if("string"!=typeof e)throw new Iw({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token:o,access_token_expire:s}=i;if(a)return this.setRefreshToken(a),o&&s?this.setAccessToken(o,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),pk(mk),pk(yk,{env:this.config.env,loginType:bk.EMAIL,persistence:this.config.persistence}),new Ik(this.config.env);throw i.code?new Iw({code:i.code,message:`邮箱登录失败: ${i.message}`}):new Iw({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Ak extends Dk{async signIn(e,t){if("string"!=typeof e)throw new Iw({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:bk.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token_expire:o,access_token:s}=i;if(a)return this.setRefreshToken(a),s&&o?this.setAccessToken(s,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),pk(mk),pk(yk,{env:this.config.env,loginType:bk.USERNAME,persistence:this.config.persistence}),new Ik(this.config.env);throw i.code?new Iw({code:i.code,message:`用户名密码登录失败: ${i.message}`}):new Iw({message:"用户名密码登录失败"})}}class Lk{constructor(e){this.config=e,this._cache=lk(e.env),this._request=Ek(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),hk(yk,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Mk(this.config)}customAuthProvider(){return new Ok(this.config)}emailAuthProvider(){return new $k(this.config)}usernameAuthProvider(){return new Ak(this.config)}async signInAnonymously(){return new Mk(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new $k(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Ak(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Mk(this.config)),hk(_k,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===bk.ANONYMOUS)throw new Iw({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e);if(!i)return;const a=await this._request.send("auth.logout",{refresh_token:i});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),pk(mk),pk(yk,{env:this.config.env,loginType:bk.NULL,persistence:this.config.persistence}),a}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){hk(mk,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){hk(gk,e.bind(this))}onAccessTokenRefreshed(e){hk(vk,e.bind(this))}onAnonymousConverted(e){hk(_k,e.bind(this))}onLoginTypeChanged(e){hk(yk,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new Ik(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Iw({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Ok(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:i}=e.data;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Rk=function(e,t){t=t||Jw();const n=Ek(this.config.env),{cloudPath:i,filePath:a,onUploadProgress:o,fileType:s="image"}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{const{data:{url:r,authorization:l,token:c,fileId:u,cosFileId:d},requestId:h}=e,p={key:i,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:r,data:p,file:a,name:i,fileType:s,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new Iw({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Nk=function(e,t){t=t||Jw();const n=Ek(this.config.env),{cloudPath:i}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Bk=function({fileList:e},t){if(t=t||Jw(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let i of e)if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Ek(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Fk=function({fileList:e},t){t=t||Jw(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let a of e)"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?n.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const i={file_list:n};return Ek(this.config.env).send("storage.batchGetDownloadUrl",i).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},jk=async function({fileID:e},t){const n=(await Fk.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const i=Ek(this.config.env);let a=n.download_url;if(a=encodeURI(a),!t)return i.download({url:a});t(await i.download({url:a}))},Vk=function({name:e,data:t,query:n,parse:i,search:a},o){const s=o||Jw();let r;try{r=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Iw({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:i,search:a,function_name:e,request_data:r};return Ek(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)s(null,e);else{let n=e.data.response_data;if(i)s(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),s(null,{result:n,requestId:e.requestId})}catch(t){s(new Iw({message:"response data must be json"}))}}return s.promise})).catch((e=>{s(e)})),s.promise},Wk={timeout:15e3,persistence:"session"},qk={};class Uk{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(tk.adapter||(this.requestClient=new tk.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Wk,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Uk(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||tk.adapter.primaryStorage||Wk.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;sk[t]=new ok(e),rk[t]=new ok({...e,persistence:"local"})}(this.config),n=this.config,Ck[n.env]=new Sk(n),this.authObj=new Lk(this.config),this.authObj}on(e,t){return hk.apply(this,[e,t])}off(e,t){return fk.apply(this,[e,t])}callFunction(e,t){return Vk.apply(this,[e,t])}deleteFile(e,t){return Bk.apply(this,[e,t])}getTempFileURL(e,t){return Fk.apply(this,[e,t])}downloadFile(e,t){return jk.apply(this,[e,t])}uploadFile(e,t){return Rk.apply(this,[e,t])}getUploadMetadata(e,t){return Nk.apply(this,[e,t])}registerExtension(e){qk[e.name]=e}async invokeExtension(e,t){const n=qk[e];if(!n)throw new Iw({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const i of t){const{isMatch:e,genAdapter:t,runtime:n}=i;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(tk.adapter=t),n&&(tk.runtime=n)}}var Hk=new Uk;function zk(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),a="";for(var o in n)""===a?!i&&(t+="?"):a+="&",a+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}class Yk{post(e){const{url:t,data:n,headers:i}=e;return new Promise(((e,a)=>{Mw.request({url:zk("https:",t),data:n,method:"POST",header:i,success(t){e(t)},fail(e){a(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:i,file:a,data:o,headers:s,fileType:r}=e,l=Mw.uploadFile({url:zk("https:",i),name:"file",formData:Object.assign({},o),filePath:a,fileType:r,header:s,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Xk={setItem(e,t){Mw.setStorageSync(e,t)},getItem:e=>Mw.getStorageSync(e),removeItem(e){Mw.removeStorageSync(e)},clear(){Mw.clearStorageSync()}};var Kk={genAdapter:function(){return{root:{},reqClass:Yk,localStorage:Xk,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Hk.useAdapters(Kk);const Gk=Hk,Jk=Gk.init;Gk.init=function(e){e.env=e.spaceId;const t=Jk.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:i,complete:a}=Pw(e);if(!(t||i||a))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),a&&a(e)}),(e=>{i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Qk=Gk,Zk=class extends Hw{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=jw(n,this.config.clientSecret);const a=Fw();i["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:o}=$w();return i["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(i))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:o}){return new Promise(((s,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,success(e){e&&e.statusCode<400?s(e):r(new Iw({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Iw({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:i}){if(!t)throw new Iw({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let a;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:o,formData:s,name:r}=t.result;a=t.result.fileUrl;const l={url:o,formData:s,name:r,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:i}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,i)=>{t.success?n({success:!0,filePath:e,fileID:a}):i(new Iw({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Iw({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Iw({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Iw({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},ex={init(e){const t=new Zk(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function tx({data:e}){let t;t=Fw();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=$w();e&&(n.uniIdToken=e)}return n}const nx=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var ix=/[\\^$.*+?()[\]{}|]/g,ax=RegExp(ix.source);function ox(e,t,n){return e.replace(new RegExp((i=t)&&ax.test(i)?i.replace(ix,"\\$&"):i,"g"),n);var i}const sx=2e4,rx={code:20101,message:"Invalid client"};function lx(e){const{errSubject:t,subject:n,errCode:i,errMsg:a,code:o,message:s,cause:r}=e||{};return new Iw({subject:t||n||"uni-secure-network",code:i||o||sx,message:a||s,cause:r})}let cx;function ux({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function dx({functionName:e,result:t,logPvd:n}){}function hx(e){const t=e.callFunction,n=function(n){const i=n.name;n.data=tx.call(e,{data:n.data});const a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider],o=ux(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!o&&dx.call(this,{functionName:i,result:e,logPvd:a}),Promise.resolve(e))),(e=>(!o&&dx.call(this,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let i=0;in.provider===e&&n.spaceId===t));return i&&i.config}({provider:e,spaceId:t});if(!r||!r.accessControl||!r.accessControl.enable)return!1;const l=r.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const u=function(e,t){let n,i,a;for(let o=0;oe.trim())).indexOf(t)>-1&&(i=s):a=s:n=s}return n||i||a}(c,n);if(!u)return!1;if((l[u]||[]).find(((e={})=>e.appId===i&&(e.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${i}, platform: ${s}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),lx(rx)}({provider:i,spaceId:a,functionName:o})?new cx({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):s(t),Object.defineProperty(r,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),r}}cx=class{constructor(){throw lx({message:`Platform ${iw} is not supported by secure network`})}};const px=Symbol("CLIENT_DB_INTERNAL");function fx(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=px,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,i){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,i)}})}function mx(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1)}}}const gx=["db.Geo","db.command","command.aggregate"];function yx(e,t){return gx.indexOf(`${e}.${t}`)>-1}function _x(e){switch(Xb(e=Ow(e))){case"array":return e.map((e=>_x(e)));case"object":return e._internalType===px||Object.keys(e).forEach((t=>{e[t]=_x(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function vx(e){return e&&e.content&&e.content.$method}class bx{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:_x(e.$param)})))}}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=vx(e),n=vx(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===vx(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=vx(e),n=vx(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return kx({$method:e,$param:_x(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:_x(t)}),this._database._callCloudFunction({action:n,command:i})}}function kx(e,t,n){return fx(new bx(e,t,n),{get(e,t){let i="db";return e&&e.content&&(i=e.content.$method),yx(i,t)?kx({$method:t},e,n):function(){return kx({$method:t,$param:_x(Array.from(arguments))},e,n)}}})}function xx({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}}}function Tx(e,t={}){return fx(new e(t),{get:(e,t)=>yx("db",t)?kx({$method:t},null,e):function(){return kx({$method:t,$param:_x(Array.from(arguments))},null,e)}})}class Sx extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=rw("_globalUniCloudDatabaseCallback")),t||(this.auth=mx(this._authCallBacks)),this._isJQL=t,Object.assign(this,mx(this._dbCallBacks)),this.env=fx({},{get:(e,t)=>({$env:t})}),this.Geo=fx({},{get:(e,t)=>xx({path:["Geo"],method:t})}),this.serverDate=xx({path:[],method:"serverDate"}),this.RegExp=xx({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:i}){function a(e,t){if(n&&i)for(let n=0;nhw(pw(s,"complete"),e))).then((()=>(a(null,e),Sw(gw,{type:vw,content:e}),Promise.reject(e))))}const l=hw(pw(s,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:i,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let a=0;a(console.warn(n),i)})}}return d=e,hw(pw(s,"success"),d).then((()=>hw(pw(s,"complete"),d))).then((()=>{a(d,null);const e=o._parseResult(d);return Sw(gw,{type:vw,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),r(new Iw({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Cx="token无效,跳转登录页面",Ex="token过期,跳转登录页面",Dx={TOKEN_INVALID_TOKEN_EXPIRED:Ex,TOKEN_INVALID_INVALID_CLIENTID:Cx,TOKEN_INVALID:Cx,TOKEN_INVALID_WRONG_TOKEN:Cx,TOKEN_INVALID_ANONYMOUS_USER:Cx},Px={"uni-id-token-expired":Ex,"uni-id-check-token-failed":Cx,"uni-id-token-not-exist":Cx,"uni-id-check-device-feature-failed":Cx};function Ix(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Mx(e=[],t=""){const n=[],i=[];return e.forEach((e=>{!0===e.needLogin?n.push(Ix(t,e.path)):!1===e.needLogin&&i.push(Ix(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function Ox(e){return e.split("?")[0].replace(/^\//,"")}function $x(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=og();return e[e.length-1]}())}function Ax(){return Ox($x())}function Lx(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,i=Ox(e);return n.some((e=>e.pagePath===i))}const Rx=!!Bb.uniIdRouter,{loginPage:Nx,routerNeedLogin:Bx,resToLogin:Fx,needLoginPage:jx,notNeedLoginPage:Vx,loginPageInTabBar:Wx}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:i={}}=Bb){const{loginPage:a,needLogin:o=[],resToLogin:s=!0}=n,{needLoginPage:r,notNeedLoginPage:l}=Mx(e),{needLoginPage:c,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:i,pages:a=[]}=e,{needLoginPage:o,notNeedLoginPage:s}=Mx(a,i);t.push(...o),n.push(...s)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:a,routerNeedLogin:o,resToLogin:s,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...u],loginPageInTabBar:Lx(a,i)}}();if(jx.indexOf(Nx)>-1)throw new Error(`Login page [${Nx}] should not be "needLogin", please check your pages.json`);function qx(e){const t=Ax();if("/"===e.charAt(0))return e;const[n,i]=e.split("?"),a=n.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let s=0;s-1?i+`&uniIdRedirectUrl=${encodeURIComponent(a)}`:i+`?uniIdRedirectUrl=${encodeURIComponent(a)}`:i);var i,a;Wx?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:qy,redirectTo:Uy,switchTab:Yy,reLaunch:Hy};setTimeout((()=>{o[e]({url:n})}))}function zx({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=$w();let n;if(e){if(t-1)&&(jx.indexOf(t)>-1||Bx.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,kw(yw).length>0)return setTimeout((()=>{Sw(yw,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Yx(){!function(){const e=$x(),{abortLoginPageJump:t,autoToLoginPage:n}=zx({url:e});t||n&&Hx({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let i=!1;switch(t){case"cloudobject":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Px}(n);break;case"clientdb":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Dx}(n)}i&&function(e={}){const t=kw(yw);Dw().then((()=>{const n=$x();if(n&&Ux({redirect:n}))return t.length>0?Sw(yw,Object.assign({uniIdRedirectUrl:n},e)):void(Nx&&Hx({api:"navigateTo",redirect:n}))}))}(n)}))}function Kx(e){var t;(t=e).onResponse=function(e){xw(gw,e)},t.offResponse=function(e){Tw(gw,e)},function(e){e.onNeedLogin=function(e){xw(yw,e)},e.offNeedLogin=function(e){Tw(yw,e)},Rx&&(rw("_globalUniCloudStatus").needLoginInit||(rw("_globalUniCloudStatus").needLoginInit=!0,Dw().then((()=>{Yx.call(e)})),Fx&&Xx.call(e)))}(e),function(e){e.onRefreshToken=function(e){xw(_w,e)},e.offRefreshToken=function(e){Tw(_w,e)}}(e)}let Gx;const Jx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Qx=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Zx(){const e=$w().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(Gx(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Gx="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Qx.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",o=0;o>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var eT=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Fb((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function o(e,t,{onChooseFile:i,onUploadProgress:a}){return t.then((e=>{if(i){const t=i(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,i=5,a){(t=Object.assign({},t)).errMsg=n;const o=t.tempFiles,s=o.length;let r=0;return new Promise((n=>{for(;r=s)return void(!o.find((e=>!e.url&&!e.errMsg))&&n(t));const c=o[i];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,a&&a(e)}}).then((e=>{c.url=e.fileID,i{c.errMsg=e.errMsg||e.message,i{gy({count:t,sizeType:n,sourceType:o,extension:s,success(t){e(a(t,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?o(e,function(e){const{camera:t,compressed:n,maxDuration:o,sourceType:s=["album","camera"],extension:r}=e;return new Promise(((e,l)=>{Ly({camera:t,compressed:n,maxDuration:o,sourceType:s,extension:r,success(t){const{tempFilePath:n,duration:i,size:o,height:s,width:r}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:r,height:s,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):o(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,o)=>{let s=fy;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return o({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success(t){e(a(t))},fail(e){o({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function tT(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const i=[];for(let a=2;a{this.mixinDatacomLoading=!1;const{data:i,count:a}=n.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=i.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const i=t.action||this.action;i&&(n=n.action(i));const a=t.collection||this.collection;n=Array.isArray(a)?n.collection(...a):n.collection(a);const o=t.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));const s=t.field||this.field;s&&(n=n.field(s));const r=t.foreignKey||this.foreignKey;r&&(n=n.foreignKey(r));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,m=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(g.getTree=y),m&&(g.getTreePath=y),n=n.skip(h*(d-1)).limit(h).get(g),n}}}}function nT(e){return rw("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function iT({openid:e,callLoginByWeixin:t=!1}={}){throw nT(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${iw}\``)}async function aT(e){const t=nT(this);return t.initPromise||(t.initPromise=iT.call(this,e)),t.initPromise}const oT={tcb:Qk,tencent:Qk,aliyun:zw,private:ex};let sT=new class{init(e){let t={};const n=oT[e.provider];if(!n)throw new Error("未提供正确的provider参数");var i;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new ew({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),hx(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(i=t).database=function(e){if(e&&Object.keys(e).length>0)return i.init(e).database();if(this._database)return this._database;const t=Tx(Sx,{uniClient:i});return this._database=t,t},i.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return i.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Tx(Sx,{uniClient:i,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Zx,e.chooseAndUploadFile=eT.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return tT(e)}}),e.importObject=function(t){return function(n,i={}){i=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},i);const{customUI:a,loadingOptions:o,errorOptions:s,parseSystemError:r}=i,l=!a;return new Proxy({},{get:(a,c)=>function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...i){const a=n?n({params:i}):{};let o,s;try{return await hw(pw(t,"invoke"),{...a}),o=await e(...i),await hw(pw(t,"success"),{...a,result:o}),o}catch(r){throw s=r,await hw(pw(t,"fail"),{...a,error:s}),s}finally{await hw(pw(t,"complete"),s?{...a,error:s}:{...a,result:o})}}}({fn:async function a(...u){let d;l&&g_({title:o.title,mask:o.mask});const h={name:n,type:"OBJECT",data:{method:c,params:u}};"object"==typeof i.secretMethods&&function(e,t){const n=t.data.method,i=e.secretMethods||{},a=i[n]||i["*"];a&&(t.secretType=a)}(i,h);let p=!1;try{d=await t.callFunction(h)}catch(e){p=!0,d={result:new Iw(e)}}const{errSubject:f,errCode:m,errMsg:g,newToken:y}=d.result||{};if(l&&y_(),y&&y.token&&y.tokenExpired&&(Aw(y),Sw(_w,{...y})),m){let e=g;if(p&&r&&(e=(await r({objectName:n,methodName:c,params:u,errSubject:f,errCode:m,errMsg:g})).errMsg||g),l)if("toast"===s.type)f_({title:e,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:i,confirmText:a}={}){return new Promise(((o,s)=>{i_({title:e,content:t,showCancel:n,cancelText:i,confirmText:a,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&t)return a(...u)}}const t=new Iw({subject:f,code:m,message:g,requestId:d.requestId});throw t.detail=d.result,Sw(gw,{type:ww,content:t}),t}return Sw(gw,{type:ww,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:c,params:e}}})})}}(e),e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return aT.call(e,{openid:t,callLoginByWeixin:n})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];var i,a;t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=(i=t[e],a=e,function(e){let t=!1;if("callFunction"===a){const n=e&&e.type||Hb;t=n!==Hb}const n="callFunction"===a&&!t,o=this._initPromiseHub.exec();e=e||{};const{success:s,fail:r,complete:l}=Pw(e),c=o.then((()=>t?Promise.resolve():hw(pw(a,"invoke"),e))).then((()=>i.call(this,e))).then((e=>t?Promise.resolve(e):hw(pw(a,"success"),e).then((()=>hw(pw(a,"complete"),e))).then((()=>(n&&Sw(gw,{type:bw,content:e}),Promise.resolve(e))))),(e=>t?Promise.reject(e):hw(pw(a,"fail"),e).then((()=>hw(pw(a,"complete"),e))).then((()=>(Sw(gw,{type:bw,content:e}),Promise.reject(e))))));if(!(s||r||l))return c;c.then((e=>{s&&s(e),l&&l(e),n&&Sw(gw,{type:bw,content:e})}),(e=>{r&&r(e),l&&l(e),n&&Sw(gw,{type:bw,content:e})}))}).bind(t)})),t.init=this.init,t}};(()=>{const e=aw;let t={};if(e&&1===e.length)t=e[0],sT=sT.init(t),sT._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{sT[e]=function(){return console.error(n),Promise.reject(new Iw({code:"SYS_ERR",message:n}))}}))}Object.assign(sT,{get mixinDatacom(){return tT(sT)}}),Kx(sT),sT.addInterceptor=uw,sT.removeInterceptor=dw,sT.interceptObject=fw})();var rT=sT;const lT={methods:{getParentAll(e,t){(t=this.getParent(`uni${e}`,t))&&(this.rootMenu[e].push(t),this.getParentAll(e,t))},getParent(e,t,n){let i=(t=t.$parent).$options.name;for(;i!==e;){if(!(t=t.$parent))return!1;i=t.$options.name}return t}}},cT={name:"uniMenuItem",mixins:[lT],props:{index:{type:[String,Object],default:()=>""},disabled:{type:Boolean,default:!1}},data:()=>({active:!1,activeTextColor:"#42B983",textColor:"#303133",activeBackgroundColor:""}),computed:{paddingLeft(){return 20+20*this.rootMenu.SubMenu.length+"px"}},created(){this.init()},destroyed(){if(this.$menuParent){const e=this.$menuParent.itemChildrens.findIndex((e=>e===this));this.$menuParent.itemChildrens.splice(e,1)}},methods:{init(){this.rootMenu={NavMenu:[],SubMenu:[]},this.indexPath=[],this.getParentAll("SubMenu",this),this.$menuParent=this.getParent("uniNavMenu",this),this.$subMenu=this.rootMenu.SubMenu,this.activeTextColor=this.$menuParent.activeTextColor,this.textColor=this.$menuParent.textColor,this.activeBackgroundColor=this.$menuParent.activeBackgroundColor,this.$menuParent&&(this.$menuParent.itemChildrens.push(this),this.$menuParent.isActive(this))},onClickItem(e){this.disabled||(this.$menuParent.closeOtherActive(this),this.active=!0,this.indexPath.unshift(this.index),this.indexPath.reverse(),"init"!==e&&this.$menuParent.select(this.index,this.indexPath))}}};const uT=sv(cT,[["render",function(e,n,i,a,o,r){const l=Em;return uo(),go(l,{class:s(["uni-menu-item",{"is-active":o.active,"is-disabled":i.disabled}]),style:t({paddingLeft:r.paddingLeft,"background-color":o.active?o.activeBackgroundColor:""}),onClick:r.onClickItem},{default:ui((()=>[ba(e.$slots,"default",{},void 0,!0)])),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-0f52fd32"]]);const dT=sv({name:"uniSubMenu",mixins:[lT],props:{index:{type:[String,Object],default:()=>""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#f5f5f5"}},data:()=>({height:0,oldheight:0,isOpen:!1,textColor:"#303133"}),computed:{paddingLeft(){return 20+20*this.rootMenu.SubMenu.length+"px"}},created(){this.init()},destroyed(){if(this.$menuParent){const e=this.$menuParent.subChildrens.findIndex((e=>e===this));this.$menuParent.subChildrens.splice(e,1)}},methods:{init(){this.rootMenu={NavMenu:[],SubMenu:[]},this.childrens=[],this.indexPath=[],this.getParentAll("SubMenu",this),this.$menuParent=this.getParent("uniNavMenu",this),this.textColor=this.$menuParent.textColor,this.$subMenu=this.rootMenu.SubMenu,this.$menuParent&&this.$menuParent.subChildrens.push(this)},select(){this.disabled||this.$menuParent.selectMenu(this)},open(){this.isOpen=!0},close(){this.isOpen=!1}}},[["render",function(e,n,i,a,o,r){const l=Em,c=dv(ma("uni-icons"),rv);return uo(),go(l,{class:"uni-sub-menu"},{default:ui((()=>[xo(l,{class:s(["uni-sub-menu__title",{"is-disabled":i.disabled}]),style:t({paddingLeft:r.paddingLeft}),onClick:r.select},{default:ui((()=>[xo(l,{class:"uni-sub-menu__title-sub",style:t({color:i.disabled?"#999":o.textColor})},{default:ui((()=>[ba(e.$slots,"title",{},void 0,!0)])),_:3},8,["style"]),xo(c,{class:s(["uni-sub-menu__icon",{transition:o.isOpen}]),type:"arrowdown",color:"#bbb",size:"14"},null,8,["class"])])),_:3},8,["class","style","onClick"]),xo(l,{class:s(["uni-sub-menu__content",{"uni-sub-menu--close":!o.isOpen}]),style:t({"background-color":i.backgroundColor})},{default:ui((()=>[xo(l,{id:"content--hook"},{default:ui((()=>[ba(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3},8,["class","style"])])),_:3})}],["__scopeId","data-v-914d30f1"]]);const hT=sv({name:"uniMenuSidebar",props:{data:{type:Array,default:()=>[]}},data:()=>({}),computed:{},methods:{}},[["render",function(e,t,n,i,a,o){const r=Em,l=km,u=dv(ma("uni-menu-item"),uT),d=dv(ma("uni-menu-sidebar"),hT),h=dv(ma("uni-sub-menu"),dT);return uo(),go(r,{class:"pointer"},{default:ui((()=>[(uo(!0),mo(ao,null,_a(n.data,((e,t)=>(uo(),mo(ao,{key:t},[e.children&&e.children.length?(uo(),go(h,{key:1,index:e},{title:ui((()=>[xo(r,{class:s(e.icon)},null,8,["class"]),xo(l,{class:s({title:e.icon})},{default:ui((()=>[So(c(e.text),1)])),_:2},1032,["class"])])),default:ui((()=>[(uo(),go(d,{class:"item-bg",data:e.children,key:e._id},null,8,["data"]))])),_:2},1032,["index"])):(uo(),go(u,{key:0,index:e},{default:ui((()=>[xo(r,{class:s(e.icon)},null,8,["class"]),xo(l,{class:s({title:e.icon})},{default:ui((()=>[So(c(e.text),1)])),_:2},1032,["class"])])),_:2},1032,["index"]))],64)))),128))])),_:1})}],["__scopeId","data-v-267e9cbb"]]);const pT=sv({name:"uniNavMenu",props:{data:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"},collapse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#fff"},textColor:{type:String,default:"#303133"},activeTextColor:{type:String,default:"#42B983"},activeBackgroundColor:{type:String,default:"inherit"},activeKey:{type:String,default:"id"},active:{type:String,default:""},defaultOpeneds:{type:Array,default:()=>[]},uniqueOpened:{type:Boolean,default:!1},menuTrigger:{type:String,default:"hover"},router:{type:Boolean,default:!1},collapseTransition:{type:Boolean,default:!0}},data(){return{activeIndex:this.active}},watch:{active(e){this.activeIndex=e},activeIndex(e,t){if(this.itemChildrens.length>0){let e=!1;for(let t=0;t{t.disabled||e.disabled||(e.indexPath.push(t.index),t.isOpen=!0)})),e.active||e.onClickItem("init")),n},selectMenu(e){this.subChildrens.forEach(((t,n)=>{t===e?(e.isOpen=!e.isOpen,e.indexPath.push(e.index)):t.isOpen&&this.uniqueOpened&&(t.isOpen=!1)})),e.$subMenu.forEach(((t,n)=>{t.isOpen=!0,e.indexPath.unshift(t.index)})),e.isOpen?this.open(e.indexPath[e.indexPath.length-1],e.indexPath):this.close(e.indexPath[e.indexPath.length-1],e.indexPath),e.indexPath=[]},closeOtherActive(e){e.indexPath=[],e.$subMenu.forEach((t=>{t.disabled||e.indexPath.push(t.index)})),this.itemChildrens.map((e=>(e.active&&(e.active=!1),e)))},closeAll(){this.subChildrens.forEach((e=>{e.isOpen&&(e.isOpen=!1)}))}}},[["render",function(e,n,i,a,o,s){const r=dv(ma("uni-menu-sidebar"),hT),l=Em;return uo(),go(l,{class:"uni-nav-menu",style:t({"background-color":i.backgroundColor})},{default:ui((()=>[ba(e.$slots,"default",{},(()=>[xo(r,{data:i.data},null,8,["data"])]),!0)])),_:3},8,["style"])}],["__scopeId","data-v-55c83ed4"]]);function fT(e,t,n){let i=[];for(let a=e.length-1;a>-1;a--){const o=e[a],s=t.filter((e=>{if(e.parent_id===o.menu_id)return n.push(e.menu_id),!0}));i=i.concat(s),o.children=s}i.length&&fT(i,t,n)}function mT(e,t){const n=[];let i=e;for(;i&&i.parent_id;)n.push(i.parent_id),i=t.find((e=>e.menu_id===i.parent_id));return n}function gT(e,t=!0){if(e=e.sort((function(t,n){const i=mT(t,e),a=mT(n,e);return i.includes(n.menu_id)?1:i.length-a.length||t.sort-n.sort})),t)for(let a=e.length-1;a>-1;a--){const t=e[a],n=e.filter((e=>e.parent_id===t.menu_id));t.isLeafNode||n.length||e.splice(a,1)}const n=[],i=e.filter((e=>{if(!e.parent_id)return n.push(e.menu_id),!0}));return fT(i,e,n),t||n.length===e.length||i.push(...e.filter((e=>!n.includes(e.menu_id)))),i}const yT=sv({data:()=>({menus:[],userMenu:[],famliy:[]}),mixins:[rT.mixinDatacom],props:{value:{type:String,default:""},activeTextColor:{type:String,default:"#42B983"},uniqueOpened:{type:Boolean,default:!1},staticMenu:{type:Array,default:()=>[]}},watch:{localdata:{handler(e){this.hasLocalData(e)&&(this.userMenu=e)},immediate:!0},menus:{immediate:!0,handler(e,t){const n=this.menus.find((e=>e.value===this.$route.path));n&&(this.getMenuAncestor(n.menu_id,e),n&&this.setRoutes&&this.setRoutes(this.famliy))}},$route:{immediate:!1,handler(e,t){if(e.fullPath!==t.fullPath){this.famliy=[];const t=this.menus.find((t=>t.value===e.path)),n=t&&t.menu_id;this.getMenuAncestor(n,this.menus),this.setRoutes&&this.setRoutes(this.famliy)}}}},created(){this.hasLocalData(this.localdata)},methods:{...gb({setRoutes:"app/setRoutes"}),getUserMenu(e){const{permission:t,role:n}=rT.getCurrentUserInfo();return e.map((t=>{e.some((e=>e.parent_id===t.menu_id))||(t.isLeafNode=!0)})),n.includes("admin")||(e=e.filter((e=>!e.isLeafNode||!(!e.permission||!e.permission.length)&&e.permission.some((e=>t.indexOf(e)>-1))))),gT(e)},onSelect(e){this.famliy=[],this.getMenuAncestor(e.menu_id,this.menus),this.emit(e)},emit(e){this.$emit("select",e,this.famliy),this.$emit("input",e.value)},hasLocalData:e=>Array.isArray(e)&&e.length>0,load(){1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((e=>{this.mixinDatacomLoading=!1;const{data:t,count:n}=e.result;this.menus=t,this.userMenu=this.getUserMenu(this.menus)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e})))},getMenuAncestor(e,t){t.forEach((n=>{if(n.menu_id===e){const e={name:n.text},i=n.value;i&&(e.to={path:i}),this.famliy.unshift(e);const a=n.parent_id;a&&this.getMenuAncestor(a,t)}}))}}},[["render",function(e,t,n,i,a,o){const s=dv(ma("uni-menu-sidebar"),hT),r=dv(ma("uni-nav-menu"),pT),l=Em;return uo(),go(l,null,{default:ui((()=>[xo(r,{active:n.value,activeKey:"value",activeTextColor:n.activeTextColor,uniqueOpened:n.uniqueOpened,onSelect:o.onSelect},{default:ui((()=>[xo(s,{data:a.userMenu},null,8,["data"]),xo(s,{data:n.staticMenu},null,8,["data"])])),_:1},8,["active","activeTextColor","uniqueOpened","onSelect"])])),_:1})}]]),_T={data:()=>({...Ab.sideBar,field:"url as value, name as text, menu_id, parent_id, sort, icon, permission",currentMenu:"/"}),computed:{...fb("app",["inited","navMenu","active"]),userInfo(){return this.$uniIdPagesStore.store.userInfo}},watch:{$route:{immediate:!0,handler(e,t){const n=e.fullPath;n&&(this.currentMenu=this.splitFullPath(n))}},userInfo:{handler(e,t){e&&this.$nextTick((function(){this.$refs.menu.load()}))}}},methods:{...gb({setRoutes:"app/setRoutes"}),select(e,t){let n=e.value;n||(n=this.active),this.clickMenuItem(n),this.setRoutes(t),L_()},clickMenuItem(e){if(0===e.indexOf("http"))return window.open(e);"/"!==e[0]&&0!==e.indexOf("http")&&(e="/"+e),Uy({url:e,fail:()=>{i_({title:"提示",content:"页面 "+e+" 跳转失败",showCancel:!1})}})},splitFullPath:e=>(e||(e="/"),e.split("?")[0])}};const vT=sv(_T,[["render",function(e,t,n,i,a,o){const s=dv(ma("uni-data-menu"),yT),r=fm;return uo(),go(r,{class:"sidebar","scroll-y":"true"},{default:ui((()=>[xo(s,{ref:"menu",value:a.currentMenu,staticMenu:e.staticMenu,collection:"opendb-admin-menus","page-size":500,field:a.field,where:"enable==true",orderby:"sort asc","active-text-color":"#409eff",onSelect:o.select},null,8,["value","staticMenu","field","onSelect"])])),_:1})}],["__scopeId","data-v-c6591093"]]);window.uni={},window.wx={},window.rpx2px=Yd;const bT=Object.assign({}),wT=Object.assign;window.__uniConfig=wT({globalStyle:{backgroundColor:"#F8F8F8",titleNView:!1,navigationBar:{backgroundColor:"#F8F8F8",titleText:"管理系统",type:"default",style:"custom",titleColor:"#000000"},isNVue:!1},topWindow:{path:"windows/topWindow",style:{height:"60px"},matchMedia:{minWidth:0}},leftWindow:{path:"windows/leftWindow",style:{width:"240px"}},uniIdRouter:{loginPage:"uni_modules/uni-id-pages/pages/login/login-withpwd",needLogin:["^((?!uni-id-pages/pages/login|register|retrieve).)*$"],resToLogin:!0},compilerVersion:"3.7.9"},{appId:"__UNI__2A45DD3",appName:"admin",appVersion:"1.0.0",appVersionCode:"100",async:av,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:12e5,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(bT).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return wT(e[n]||(e[n]={}),bT[t].default),e}),{}),router:{mode:"hash",base:"/admin/",assets:"assets",routerBase:"/admin/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{},window.__uniConfig.topWindow.component=$g(Nb,-1),window.__uniConfig.leftWindow.component=$g(vT,-2);const kT={delay:av.delay,timeout:av.timeout,suspensible:av.suspensible};av.loading&&(kT.loadingComponent={name:"SystemAsyncLoading",render:()=>xo(pa(av.loading))}),av.error&&(kT.errorComponent={name:"SystemAsyncError",render:()=>xo(pa(av.error))});const xT=()=>iv((()=>import("./pages-index-index.d7d2825f.js")),["assets/pages-index-index.d7d2825f.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-notice-bar.629dd577.js","assets/uni-notice-bar-9aaf6cb8.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/util.63f19a41.js","assets/index-5c3365b0.css"]).then((e=>Ag(e.default||e))),TT=Ri(wT({loader:xT},kT)),ST=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-login-login-withpwd.668f64ea.js")),["assets/uni_modules-uni-id-pages-pages-login-login-withpwd.668f64ea.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-agreements.0414ff30.js","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/uni-id-pages-agreements-2a2e04b7.css","assets/uni-id-pages-fab-login.8d4ba320.js","assets/uni-id-pages-fab-login-dc2ac76e.css","assets/login-page.mixin.6ab7e5a6.js","assets/login-withpwd-fdaed16c.css"]).then((e=>Ag(e.default||e))),CT=Ri(wT({loader:ST},kT)),ET=()=>iv((()=>import("./pages-error-404.39e3e581.js")),[]).then((e=>Ag(e.default||e))),DT=Ri(wT({loader:ET},kT)),PT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.70d77e52.js")),["assets/uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.70d77e52.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/login-page.mixin.6ab7e5a6.js","assets/password.4f678814.js","assets/change_pwd-7af11db1.css"]).then((e=>Ag(e.default||e))),IT=Ri(wT({loader:PT},kT)),MT=()=>iv((()=>import("./uni_modules-uni-upgrade-center-pages-version-list.ebe393cb.js")),["assets/uni_modules-uni-upgrade-center-pages-version-list.ebe393cb.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/utils.df25cf33.js","assets/list-a40d3c9a.css"]).then((e=>Ag(e.default||e))),OT=Ri(wT({loader:MT},kT)),$T=()=>iv((()=>import("./uni_modules-uni-upgrade-center-pages-version-add.3b71204d.js")),["assets/uni_modules-uni-upgrade-center-pages-version-add.3b71204d.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-card.0addf51a.js","assets/uni-card-0ea40861.css","assets/uni-file-picker.1b864550.js","assets/uni-file-picker-208fe2fe.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/version_add_detail_mixin.1fff617b.js","assets/utils.df25cf33.js","assets/add-c0d0d784.css"]).then((e=>Ag(e.default||e))),AT=Ri(wT({loader:$T},kT)),LT=()=>iv((()=>import("./uni_modules-uni-upgrade-center-pages-version-detail.0a376ba7.js")),["assets/uni_modules-uni-upgrade-center-pages-version-detail.0a376ba7.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-card.0addf51a.js","assets/uni-card-0ea40861.css","assets/uni-file-picker.1b864550.js","assets/uni-file-picker-208fe2fe.css","assets/uni-dateformat.b1c4ea95.js","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/version_add_detail_mixin.1fff617b.js","assets/utils.df25cf33.js","assets/detail-791a1977.css"]).then((e=>Ag(e.default||e))),RT=Ri(wT({loader:LT},kT)),NT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.900aed6f.js")),["assets/uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.900aed6f.js","assets/deactivate-36b6f5c0.css"]).then((e=>Ag(e.default||e))),BT=Ri(wT({loader:NT},kT)),FT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-userinfo.d40ff874.js")),["assets/uni_modules-uni-id-pages-pages-userinfo-userinfo.d40ff874.js","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/userinfo-7b5baffd.css"]).then((e=>Ag(e.default||e))),jT=Ri(wT({loader:FT},kT)),VT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.3efbf535.js")),["assets/uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.3efbf535.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-id-pages-sms-form.2fbc0429.js","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-sms-form-f3a905f0.css","assets/uni-popup-captcha.a1d919b2.js","assets/uni-popup-captcha-e8a89b0e.css","assets/bind-mobile-b269d0bb.css"]).then((e=>Ag(e.default||e))),WT=Ri(wT({loader:VT},kT)),qT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.5c0c9d44.js")),["assets/uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.5c0c9d44.js","assets/cropImage-ef9b552e.css"]).then((e=>Ag(e.default||e))),UT=Ri(wT({loader:qT},kT)),HT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-login-login-smscode.f55038fb.js")),["assets/uni_modules-uni-id-pages-pages-login-login-smscode.f55038fb.js","assets/uni-id-pages-sms-form.2fbc0429.js","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-id-pages-sms-form-f3a905f0.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-popup-captcha.a1d919b2.js","assets/uni-popup-captcha-e8a89b0e.css","assets/login-page.mixin.6ab7e5a6.js","assets/login-smscode-8e780045.css"]).then((e=>Ag(e.default||e))),zT=Ri(wT({loader:HT},kT)),YT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-login-login-withoutpwd.89332b49.js")),["assets/uni_modules-uni-id-pages-pages-login-login-withoutpwd.89332b49.js","assets/uni-id-pages-agreements.0414ff30.js","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/uni-id-pages-agreements-2a2e04b7.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-id-pages-fab-login.8d4ba320.js","assets/uni-id-pages-fab-login-dc2ac76e.css","assets/login-page.mixin.6ab7e5a6.js","assets/login-withoutpwd-7c3aa37b.css"]).then((e=>Ag(e.default||e))),XT=Ri(wT({loader:YT},kT)),KT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-register-register.575c11d6.js")),["assets/uni_modules-uni-id-pages-pages-register-register.575c11d6.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-agreements.0414ff30.js","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/uni-id-pages-agreements-2a2e04b7.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/validator.496e107f.js","assets/password.4f678814.js","assets/login-page.mixin.6ab7e5a6.js","assets/register-b87ba729.css"]).then((e=>Ag(e.default||e))),GT=Ri(wT({loader:KT},kT)),JT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-register-register-admin.8d337068.js")),["assets/uni_modules-uni-id-pages-pages-register-register-admin.8d337068.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-agreements.0414ff30.js","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/uni-id-pages-agreements-2a2e04b7.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/validator.496e107f.js","assets/password.4f678814.js","assets/login-page.mixin.6ab7e5a6.js","assets/register-admin-161c0c69.css"]).then((e=>Ag(e.default||e))),QT=Ri(wT({loader:JT},kT)),ZT=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-register-register-by-email.ae7991c3.js")),["assets/uni_modules-uni-id-pages-pages-register-register-by-email.ae7991c3.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-id-pages-email-form.79cacd6d.js","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-email-form-04bad1f7.css","assets/uni-id-pages-agreements.0414ff30.js","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/uni-id-pages-agreements-2a2e04b7.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/validator.496e107f.js","assets/password.4f678814.js","assets/login-page.mixin.6ab7e5a6.js","assets/register-by-email-825c75a7.css"]).then((e=>Ag(e.default||e))),eS=Ri(wT({loader:ZT},kT)),tS=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-retrieve-retrieve.3cafdf7e.js")),["assets/uni_modules-uni-id-pages-pages-retrieve-retrieve.3cafdf7e.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-id-pages-sms-form.2fbc0429.js","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-sms-form-f3a905f0.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-popup-captcha.a1d919b2.js","assets/uni-popup-captcha-e8a89b0e.css","assets/login-page.mixin.6ab7e5a6.js","assets/retrieve-bad3e0eb.css"]).then((e=>Ag(e.default||e))),nS=Ri(wT({loader:tS},kT)),iS=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.89348ce7.js")),["assets/uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.89348ce7.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-id-pages-email-form.79cacd6d.js","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-email-form-04bad1f7.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-popup-captcha.a1d919b2.js","assets/uni-popup-captcha-e8a89b0e.css","assets/login-page.mixin.6ab7e5a6.js","assets/password.4f678814.js","assets/retrieve-by-email-ec76efa9.css"]).then((e=>Ag(e.default||e))),aS=Ri(wT({loader:iS},kT)),oS=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-common-webview-webview.e810cea7.js")),[]).then((e=>Ag(e.default||e))),sS=Ri(wT({loader:oS},kT)),rS=()=>iv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.ab65324d.js")),["assets/uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.ab65324d.js","assets/uni-match-media.cb822f29.js","assets/uni-match-media-9d3d031f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-id-pages-sms-form.2fbc0429.js","assets/uni-captcha.7a7d8040.js","assets/uni-captcha-ad333770.css","assets/uni-id-pages-sms-form-f3a905f0.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-popup-captcha.a1d919b2.js","assets/uni-popup-captcha-e8a89b0e.css","assets/password.4f678814.js","assets/set-pwd-b173b497.css"]).then((e=>Ag(e.default||e))),lS=Ri(wT({loader:rS},kT)),cS=()=>iv((()=>import("./pages-system-menu-list.b441465a.js")),["assets/pages-system-menu-list.b441465a.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/unicloud-db.dfa2c90d.js","assets/list-aa6dd69c.css"]).then((e=>Ag(e.default||e))),uS=Ri(wT({loader:cS},kT)),dS=()=>iv((()=>import("./pages-system-menu-add.4c0576bc.js")),["assets/pages-system-menu-add.4c0576bc.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-link.d3d03343.js","assets/uni-link-8c2d623c.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/icons.ee1da151.js","assets/icons-70c51fc1.css","assets/add-2309fabd.css"]).then((e=>Ag(e.default||e))),hS=Ri(wT({loader:dS},kT)),pS=()=>iv((()=>import("./pages-system-menu-edit.5667dded.js")),["assets/pages-system-menu-edit.5667dded.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-link.d3d03343.js","assets/uni-link-8c2d623c.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/icons.ee1da151.js","assets/icons-70c51fc1.css","assets/edit-0fb72f18.css"]).then((e=>Ag(e.default||e))),fS=Ri(wT({loader:pS},kT)),mS=()=>iv((()=>import("./pages-system-permission-list.8000ba4a.js")),["assets/pages-system-permission-list.8000ba4a.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/download-excel.9236b5ca.js","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/uni-id-permissions.7a340838.js"]).then((e=>Ag(e.default||e))),gS=Ri(wT({loader:mS},kT)),yS=()=>iv((()=>import("./pages-system-permission-add.11d64e78.js")),["assets/pages-system-permission-add.11d64e78.js","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-permissions.7a340838.js","assets/add-461c6796.css"]).then((e=>Ag(e.default||e))),_S=Ri(wT({loader:yS},kT)),vS=()=>iv((()=>import("./pages-system-permission-edit.0680d105.js")),["assets/pages-system-permission-edit.0680d105.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-permissions.7a340838.js","assets/edit-394f802a.css"]).then((e=>Ag(e.default||e))),bS=Ri(wT({loader:vS},kT)),wS=()=>iv((()=>import("./pages-system-role-add.cf4625db.js")),["assets/pages-system-role-add.cf4625db.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-roles.ef72d0a7.js","assets/add-af8d271c.css"]).then((e=>Ag(e.default||e))),kS=Ri(wT({loader:wS},kT)),xS=()=>iv((()=>import("./pages-system-role-edit.f09585ae.js")),["assets/pages-system-role-edit.f09585ae.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-roles.ef72d0a7.js","assets/edit-72ff78e2.css"]).then((e=>Ag(e.default||e))),TS=Ri(wT({loader:xS},kT)),SS=()=>iv((()=>import("./pages-system-role-list.9144be7c.js")),["assets/pages-system-role-list.9144be7c.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/download-excel.9236b5ca.js","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/uni-id-roles.ef72d0a7.js"]).then((e=>Ag(e.default||e))),CS=Ri(wT({loader:SS},kT)),ES=()=>iv((()=>import("./pages-system-admin-user-add.89d05206.js")),["assets/pages-system-admin-user-add.89d05206.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-users.cf221585.js","assets/add-cc1a1a4e.css"]).then((e=>Ag(e.default||e))),DS=Ri(wT({loader:ES},kT)),PS=()=>iv((()=>import("./pages-system-admin-user-edit.d2f7f2e6.js")),["assets/pages-system-admin-user-edit.d2f7f2e6.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-users.cf221585.js","assets/edit-1e145b8a.css"]).then((e=>Ag(e.default||e))),IS=Ri(wT({loader:PS},kT)),MS=()=>iv((()=>import("./pages-system-admin-user-list.8c0bf37b.js")),["assets/pages-system-admin-user-list.8c0bf37b.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/download-excel.9236b5ca.js","assets/uni-link.d3d03343.js","assets/uni-link-8c2d623c.css","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-id-users.cf221585.js","assets/list-891afde7.css"]).then((e=>Ag(e.default||e))),OS=Ri(wT({loader:MS},kT)),$S=()=>iv((()=>import("./pages-system-app-add.7b6890b0.js")),["assets/pages-system-app-add.7b6890b0.js","assets/uni-notice-bar.629dd577.js","assets/uni-notice-bar-9aaf6cb8.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-card.0addf51a.js","assets/uni-card-0ea40861.css","assets/uni-file-picker.1b864550.js","assets/uni-file-picker-208fe2fe.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/opendb-app-list.55eb8c3a.js","assets/add-280582c8.css"]).then((e=>Ag(e.default||e))),AS=Ri(wT({loader:$S},kT)),LS=()=>iv((()=>import("./pages-system-app-list.d8fabfdc.js")),["assets/pages-system-app-list.d8fabfdc.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/opendb-app-list.55eb8c3a.js"]).then((e=>Ag(e.default||e))),RS=Ri(wT({loader:LS},kT)),NS=()=>iv((()=>import("./pages-system-app-uni-portal-uni-portal.151c7502.js")),["assets/pages-system-app-uni-portal-uni-portal.151c7502.js","assets/uni-portal-8c737489.css"]).then((e=>Ag(e.default||e))),BS=Ri(wT({loader:NS},kT)),FS=()=>iv((()=>import("./pages-system-safety-list.511c83f6.js")),["assets/pages-system-safety-list.511c83f6.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js"]).then((e=>Ag(e.default||e))),jS=Ri(wT({loader:FS},kT)),VS=()=>iv((()=>import("./pages-content-mustgo-user-add.618dad60.js")),["assets/pages-content-mustgo-user-add.618dad60.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-file-picker.1b864550.js","assets/uni-file-picker-208fe2fe.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-user.22c2617f.js","assets/add-74c817c0.css"]).then((e=>Ag(e.default||e))),WS=Ri(wT({loader:VS},kT)),qS=()=>iv((()=>import("./pages-content-mustgo-user-edit.a2b1bb62.js")),["assets/pages-content-mustgo-user-edit.a2b1bb62.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-user.22c2617f.js"]).then((e=>Ag(e.default||e))),US=Ri(wT({loader:qS},kT)),HS=()=>iv((()=>import("./pages-content-mustgo-user-list.820c238b.js")),["assets/pages-content-mustgo-user-list.820c238b.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-user.22c2617f.js"]).then((e=>Ag(e.default||e))),zS=Ri(wT({loader:HS},kT)),YS=()=>iv((()=>import("./pages-content-mustgo-team-add.2854119d.js")),["assets/pages-content-mustgo-team-add.2854119d.js","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-team.80703cc9.js"]).then((e=>Ag(e.default||e))),XS=Ri(wT({loader:YS},kT)),KS=()=>iv((()=>import("./pages-content-mustgo-team-edit.49d863ca.js")),["assets/pages-content-mustgo-team-edit.49d863ca.js","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-team.80703cc9.js"]).then((e=>Ag(e.default||e))),GS=Ri(wT({loader:KS},kT)),JS=()=>iv((()=>import("./pages-content-mustgo-team-list.56529fc3.js")),["assets/pages-content-mustgo-team-list.56529fc3.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-team.80703cc9.js"]).then((e=>Ag(e.default||e))),QS=Ri(wT({loader:JS},kT)),ZS=()=>iv((()=>import("./pages-content-mustgo-record-running-add.edfe1524.js")),["assets/pages-content-mustgo-record-running-add.edfe1524.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-running-record.e84758c9.js"]).then((e=>Ag(e.default||e))),eC=Ri(wT({loader:ZS},kT)),tC=()=>iv((()=>import("./pages-content-mustgo-record-running-edit.7a3fa882.js")),["assets/pages-content-mustgo-record-running-edit.7a3fa882.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-running-record.e84758c9.js"]).then((e=>Ag(e.default||e))),nC=Ri(wT({loader:tC},kT)),iC=()=>iv((()=>import("./pages-content-mustgo-record-running-list.a5448f7e.js")),["assets/pages-content-mustgo-record-running-list.a5448f7e.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-running-record.e84758c9.js"]).then((e=>Ag(e.default||e))),aC=Ri(wT({loader:iC},kT)),oC=()=>iv((()=>import("./pages-content-mustgo-record-walking-add.dd62b02c.js")),["assets/pages-content-mustgo-record-walking-add.dd62b02c.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-walking-record.8249cf9a.js"]).then((e=>Ag(e.default||e))),sC=Ri(wT({loader:oC},kT)),rC=()=>iv((()=>import("./pages-content-mustgo-record-walking-edit.52788fa6.js")),["assets/pages-content-mustgo-record-walking-edit.52788fa6.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-walking-record.8249cf9a.js"]).then((e=>Ag(e.default||e))),lC=Ri(wT({loader:rC},kT)),cC=()=>iv((()=>import("./pages-content-mustgo-record-walking-list.4b32de51.js")),["assets/pages-content-mustgo-record-walking-list.4b32de51.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-walking-record.8249cf9a.js"]).then((e=>Ag(e.default||e))),uC=Ri(wT({loader:cC},kT)),dC=()=>iv((()=>import("./pages-content-mustgo-post-add.39ba9480.js")),["assets/pages-content-mustgo-post-add.39ba9480.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-post.8570f775.js"]).then((e=>Ag(e.default||e))),hC=Ri(wT({loader:dC},kT)),pC=()=>iv((()=>import("./pages-content-mustgo-post-edit.13cbaef0.js")),["assets/pages-content-mustgo-post-edit.13cbaef0.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-data-checkbox.b1dd95fe.js","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/uni-data-checkbox-a63315ae.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-post.8570f775.js"]).then((e=>Ag(e.default||e))),fC=Ri(wT({loader:pC},kT)),mC=()=>iv((()=>import("./pages-content-mustgo-post-list.756b3f3a.js")),["assets/pages-content-mustgo-post-list.756b3f3a.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-post.8570f775.js"]).then((e=>Ag(e.default||e))),gC=Ri(wT({loader:mC},kT)),yC=()=>iv((()=>import("./pages-content-mustgo-comment-add.818bffd5.js")),["assets/pages-content-mustgo-comment-add.818bffd5.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-post-comment.6f761277.js"]).then((e=>Ag(e.default||e))),_C=Ri(wT({loader:yC},kT)),vC=()=>iv((()=>import("./pages-content-mustgo-comment-edit.082d7a49.js")),["assets/pages-content-mustgo-comment-edit.082d7a49.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-post-comment.6f761277.js"]).then((e=>Ag(e.default||e))),bC=Ri(wT({loader:vC},kT)),wC=()=>iv((()=>import("./pages-content-mustgo-comment-list.029ec0f7.js")),["assets/pages-content-mustgo-comment-list.029ec0f7.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-post-comment.6f761277.js"]).then((e=>Ag(e.default||e))),kC=Ri(wT({loader:wC},kT)),xC=()=>iv((()=>import("./pages-content-mustgo-activity-school-add.bb32ce68.js")),["assets/pages-content-mustgo-activity-school-add.bb32ce68.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-school-activity.ad20959b.js"]).then((e=>Ag(e.default||e))),TC=Ri(wT({loader:xC},kT)),SC=()=>iv((()=>import("./pages-content-mustgo-activity-school-edit.6020ac34.js")),["assets/pages-content-mustgo-activity-school-edit.6020ac34.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-school-activity.ad20959b.js"]).then((e=>Ag(e.default||e))),CC=Ri(wT({loader:SC},kT)),EC=()=>iv((()=>import("./pages-content-mustgo-activity-school-list.dfbb028a.js")),["assets/pages-content-mustgo-activity-school-list.dfbb028a.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-school-activity.ad20959b.js"]).then((e=>Ag(e.default||e))),DC=Ri(wT({loader:EC},kT)),PC=()=>iv((()=>import("./pages-content-mustgo-activity-team-add.0ccc416c.js")),["assets/pages-content-mustgo-activity-team-add.0ccc416c.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-team-activity.f91e8a14.js"]).then((e=>Ag(e.default||e))),IC=Ri(wT({loader:PC},kT)),MC=()=>iv((()=>import("./pages-content-mustgo-activity-team-edit.0f2fdcfc.js")),["assets/pages-content-mustgo-activity-team-edit.0f2fdcfc.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/mustgo-team-activity.f91e8a14.js"]).then((e=>Ag(e.default||e))),OC=Ri(wT({loader:MC},kT)),$C=()=>iv((()=>import("./pages-content-mustgo-activity-team-list.73acb30d.js")),["assets/pages-content-mustgo-activity-team-list.73acb30d.js","assets/download-excel.9236b5ca.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/mustgo-team-activity.f91e8a14.js"]).then((e=>Ag(e.default||e))),AC=Ri(wT({loader:$C},kT)),LC=()=>iv((()=>import("./pages-uni-stat-page-res-page-res.0a79bd49.js")),["assets/pages-uni-stat-page-res-page-res.0a79bd49.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/util.63f19a41.js","assets/page-res-eb13bfbf.css"]).then((e=>Ag(e.default||e))),RC=Ri(wT({loader:LC},kT)),NC=()=>iv((()=>import("./pages-uni-stat-page-ent-page-ent.1839f596.js")),["assets/pages-uni-stat-page-ent-page-ent.1839f596.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js","assets/page-ent-40a7a904.css"]).then((e=>Ag(e.default||e))),BC=Ri(wT({loader:NC},kT)),FC=()=>iv((()=>import("./pages-uni-stat-scene-scene.74f69857.js")),["assets/pages-uni-stat-scene-scene.74f69857.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js","assets/scene-55119c9b.css"]).then((e=>Ag(e.default||e))),jC=Ri(wT({loader:FC},kT)),VC=()=>iv((()=>import("./pages-uni-stat-channel-channel.88c76401.js")),["assets/pages-uni-stat-channel-channel.88c76401.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-link.d3d03343.js","assets/uni-link-8c2d623c.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/util.63f19a41.js","assets/channel-662deb2b.css"]).then((e=>Ag(e.default||e))),WC=Ri(wT({loader:VC},kT)),qC=()=>iv((()=>import("./pages-uni-stat-error-js-js.5f1bc9b4.js")),["assets/pages-uni-stat-error-js-js.5f1bc9b4.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/uni-load-more.67944ae0.js","assets/uni-load-more-45eaeab2.css","assets/util.63f19a41.js","assets/fieldsMap.565b6b26.js","assets/js-f072318e.css"]).then((e=>Ag(e.default||e))),UC=Ri(wT({loader:qC},kT)),HC=()=>iv((()=>import("./pages-uni-stat-error-js-detail.28b6b442.js")),["assets/pages-uni-stat-error-js-detail.28b6b442.js","assets/uni-stat-table.19e19a80.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-table-836378df.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js","assets/fieldsMap.565b6b26.js","assets/detail-ec4ffb87.css"]).then((e=>Ag(e.default||e))),zC=Ri(wT({loader:HC},kT)),YC=()=>iv((()=>import("./pages-uni-stat-error-app-app.955765fd.js")),["assets/pages-uni-stat-error-app-app.955765fd.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/download-excel.9236b5ca.js","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/util.63f19a41.js","assets/app-495643fe.css"]).then((e=>Ag(e.default||e))),XC=Ri(wT({loader:YC},kT)),KC=()=>iv((()=>import("./pages-uni-stat-event-event.fa63b5a1.js")),["assets/pages-uni-stat-event-event.fa63b5a1.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-link.d3d03343.js","assets/uni-link-8c2d623c.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/uni-popup-dialog.39d6dc6f.js","assets/uni-popup-dialog-95c0e766.css","assets/util.63f19a41.js","assets/event-451a0e68.css"]).then((e=>Ag(e.default||e))),GC=Ri(wT({loader:KC},kT)),JC=()=>iv((()=>import("./pages-uni-stat-device-overview-overview.1d63bc0c.js")),["assets/pages-uni-stat-device-overview-overview.1d63bc0c.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/util.63f19a41.js","assets/overview-61115583.css"]).then((e=>Ag(e.default||e))),QC=Ri(wT({loader:JC},kT)),ZC=()=>iv((()=>import("./pages-uni-stat-device-activity-activity.8ec8bb95.js")),["assets/pages-uni-stat-device-activity-activity.8ec8bb95.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js"]).then((e=>Ag(e.default||e))),eE=Ri(wT({loader:ZC},kT)),tE=()=>iv((()=>import("./pages-uni-stat-device-trend-trend.35831c4a.js")),["assets/pages-uni-stat-device-trend-trend.35831c4a.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js"]).then((e=>Ag(e.default||e))),nE=Ri(wT({loader:tE},kT)),iE=()=>iv((()=>import("./pages-uni-stat-device-retention-retention.5cfb2d01.js")),["assets/pages-uni-stat-device-retention-retention.5cfb2d01.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js","assets/retention-c7cd26e8.css"]).then((e=>Ag(e.default||e))),aE=Ri(wT({loader:iE},kT)),oE=()=>iv((()=>import("./pages-uni-stat-device-comparison-comparison.5770a6cb.js")),["assets/pages-uni-stat-device-comparison-comparison.5770a6cb.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/util.63f19a41.js","assets/comparison-9f6dcc46.css"]).then((e=>Ag(e.default||e))),sE=Ri(wT({loader:oE},kT)),rE=()=>iv((()=>import("./pages-uni-stat-device-stickiness-stickiness.6d3b9731.js")),["assets/pages-uni-stat-device-stickiness-stickiness.6d3b9731.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/util.63f19a41.js","assets/stickiness-73769afa.css"]).then((e=>Ag(e.default||e))),lE=Ri(wT({loader:rE},kT)),cE=()=>iv((()=>import("./pages-uni-stat-user-overview-overview.de147d1c.js")),["assets/pages-uni-stat-user-overview-overview.de147d1c.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/util.63f19a41.js","assets/overview-e642b5fc.css"]).then((e=>Ag(e.default||e))),uE=Ri(wT({loader:cE},kT)),dE=()=>iv((()=>import("./pages-uni-stat-user-activity-activity.8cc44ce7.js")),["assets/pages-uni-stat-user-activity-activity.8cc44ce7.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js"]).then((e=>Ag(e.default||e))),hE=Ri(wT({loader:dE},kT)),pE=()=>iv((()=>import("./pages-uni-stat-user-trend-trend.590928a7.js")),["assets/pages-uni-stat-user-trend-trend.590928a7.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-stat-panel.2e6a5931.js","assets/uni-stat-panel-77ddbcf2.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js"]).then((e=>Ag(e.default||e))),fE=Ri(wT({loader:pE},kT)),mE=()=>iv((()=>import("./pages-uni-stat-user-retention-retention.1ba97121.js")),["assets/pages-uni-stat-user-retention-retention.1ba97121.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/util.63f19a41.js","assets/retention-883d6bd3.css"]).then((e=>Ag(e.default||e))),gE=Ri(wT({loader:mE},kT)),yE=()=>iv((()=>import("./pages-uni-stat-user-comparison-comparison.6f4793d4.js")),["assets/pages-uni-stat-user-comparison-comparison.6f4793d4.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/util.63f19a41.js","assets/comparison-6ed214d4.css"]).then((e=>Ag(e.default||e))),_E=Ri(wT({loader:yE},kT)),vE=()=>iv((()=>import("./pages-uni-stat-user-stickiness-stickiness.f3c491ba.js")),["assets/pages-uni-stat-user-stickiness-stickiness.f3c491ba.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/uni-stat-table.19e19a80.js","assets/uni-stat-table-836378df.css","assets/util.63f19a41.js","assets/stickiness-5e951bec.css"]).then((e=>Ag(e.default||e))),bE=Ri(wT({loader:vE},kT)),wE=()=>iv((()=>import("./pages-uni-stat-pay-order-overview-overview.d14f3ca9.js")),["assets/pages-uni-stat-pay-order-overview-overview.d14f3ca9.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/util.63f19a41.js","assets/timeUtil.4078d62f.js","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/overview-9f64537a.css"]).then((e=>Ag(e.default||e))),kE=Ri(wT({loader:wE},kT)),xE=()=>iv((()=>import("./pages-uni-stat-pay-order-list-list.a97675d1.js")),["assets/pages-uni-stat-pay-order-list-list.a97675d1.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/download-excel.9236b5ca.js","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-dateformat.b1c4ea95.js","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/uni-easyinput.a1fc57c1.js","assets/uni-easyinput-cfd2af8c.css","assets/uni-forms-item.69698491.js","assets/uni-forms-item-3ba8e15f.css","assets/uni-forms.bc4bcf6e.js","assets/uni-forms-e3b0c442.css","assets/uni-pay-orders.57c55841.js","assets/util.63f19a41.js","assets/list-f19836f4.css"]).then((e=>Ag(e.default||e))),TE=Ri(wT({loader:xE},kT)),SE=()=>iv((()=>import("./pages-uni-stat-pay-order-funnel-funnel.e441fac2.js")),["assets/pages-uni-stat-pay-order-funnel-funnel.e441fac2.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/util.63f19a41.js","assets/timeUtil.4078d62f.js","assets/qiun-data-charts.a402b569.js","assets/qiun-data-charts-d776792e.css","assets/funnel-98383919.css"]).then((e=>Ag(e.default||e))),CE=Ri(wT({loader:SE},kT)),EE=()=>iv((()=>import("./pages-uni-stat-pay-order-ranking-ranking.e1fecd9d.js")),["assets/pages-uni-stat-pay-order-ranking-ranking.e1fecd9d.js","assets/uni-stat-breadcrumb.647cd81f.js","assets/uni-stat-breadcrumb-41bb7932.css","assets/download-excel.9236b5ca.js","assets/uni-data-select.8acadad5.js","assets/uni-data-select-85c277ad.css","assets/uni-stat-tabs.4355c19c.js","assets/uni-tooltip.58062496.js","assets/uni-tooltip-6af3c8a4.css","assets/uni-stat-tabs-6fbceb64.css","assets/uni-pagination.018f31ea.js","assets/uni-pagination-a9a41ff3.css","assets/unicloud-db.dfa2c90d.js","assets/uni-pay-orders.57c55841.js","assets/util.63f19a41.js","assets/timeUtil.4078d62f.js","assets/ranking-bc16c92f.css"]).then((e=>Ag(e.default||e))),DE=Ri(wT({loader:EE},kT));function PE(e,t){return uo(),go(ev,null,{page:ui((()=>[xo(e,wT({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(TT,t)}},loader:xT,meta:{isQuit:!0,isEntry:!0,navigationBar:{},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/login/login-withpwd",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(CT,t)}},loader:ST,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/error/404",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(DT,t)}},loader:ET,meta:{navigationBar:{titleText:"Not Found",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(IT,t)}},loader:PT,meta:{navigationBar:{titleText:"修改密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-upgrade-center/pages/version/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(OT,t)}},loader:MT,meta:{navigationBar:{titleText:"版本列表",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-upgrade-center/pages/version/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(AT,t)}},loader:$T,meta:{navigationBar:{titleText:"新版发布",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-upgrade-center/pages/version/detail",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(RT,t)}},loader:LT,meta:{navigationBar:{titleText:"版本信息查看",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(BT,t)}},loader:NT,meta:{navigationBar:{titleText:"注销账号",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/userinfo",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(jT,t)}},loader:FT,meta:{navigationBar:{titleText:"个人资料",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(WT,t)}},loader:VT,meta:{navigationBar:{titleText:"绑定手机号码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(UT,t)}},loader:qT,meta:{navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/login/login-smscode",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(zT,t)}},loader:HT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"手机验证码登录",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(XT,t)}},loader:YT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"免密登录页",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/register/register",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(GT,t)}},loader:KT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"注册",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/register/register-admin",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(QT,t)}},loader:JT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"创建超级管理员",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/register/register-by-email",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(eS,t)}},loader:ZT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"邮箱验证码注册",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/retrieve/retrieve",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(nS,t)}},loader:tS,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"重置密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(aS,t)}},loader:iS,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"通过邮箱重置密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/common/webview/webview",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(sS,t)}},loader:oS,meta:{topWindow:!1,leftWindow:!1,enablePullDownRefresh:!1,navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(lS,t)}},loader:rS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"设置密码",type:"default"},isNVue:!1}},{path:"/pages/system/menu/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(uS,t)}},loader:cS,meta:{navigationBar:{titleText:"菜单管理",type:"default"},isNVue:!1}},{path:"/pages/system/menu/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(hS,t)}},loader:dS,meta:{navigationBar:{titleText:"新增菜单",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/menu/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(fS,t)}},loader:pS,meta:{navigationBar:{titleText:"修改菜单",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/permission/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(gS,t)}},loader:mS,meta:{navigationBar:{titleText:"权限管理",type:"default"},isNVue:!1}},{path:"/pages/system/permission/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(_S,t)}},loader:yS,meta:{navigationBar:{titleText:"新增权限",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/permission/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(bS,t)}},loader:vS,meta:{navigationBar:{titleText:"修改权限",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/role/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(kS,t)}},loader:wS,meta:{navigationBar:{titleText:"新增角色",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/role/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(TS,t)}},loader:xS,meta:{navigationBar:{titleText:"修改角色",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/role/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(CS,t)}},loader:SS,meta:{navigationBar:{titleText:"角色管理",type:"default"},isNVue:!1}},{path:"/pages/system/admin-user/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(DS,t)}},loader:ES,meta:{navigationBar:{titleText:"新增用户",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/admin-user/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(IS,t)}},loader:PS,meta:{navigationBar:{titleText:"修改用户",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/admin-user/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(OS,t)}},loader:MS,meta:{navigationBar:{titleText:"用户管理",type:"default"},isNVue:!1}},{path:"/pages/system/app/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(AS,t)}},loader:$S,meta:{navigationBar:{titleText:"新增应用",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/app/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(RS,t)}},loader:LS,meta:{navigationBar:{titleText:"应用管理",type:"default"},isNVue:!1}},{path:"/pages/system/app/uni-portal/uni-portal",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(BS,t)}},loader:NS,meta:{navigationBar:{titleText:"发布页管理",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/safety/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(jS,t)}},loader:FS,meta:{navigationBar:{titleText:"用户日志",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-user/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(WS,t)}},loader:VS,meta:{navigationBar:{titleText:"新增",style:"default",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-user/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(US,t)}},loader:qS,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-user/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(zS,t)}},loader:HS,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-team/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(XS,t)}},loader:YS,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-team/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(GS,t)}},loader:KS,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-team/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(QS,t)}},loader:JS,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-record/running/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(eC,t)}},loader:ZS,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-record/running/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(nC,t)}},loader:tC,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-record/running/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(aC,t)}},loader:iC,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-record/walking/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(sC,t)}},loader:oC,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-record/walking/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(lC,t)}},loader:rC,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-record/walking/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(uC,t)}},loader:cC,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-post/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(hC,t)}},loader:dC,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-post/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(fC,t)}},loader:pC,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-post/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(gC,t)}},loader:mC,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-comment/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(_C,t)}},loader:yC,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-comment/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(bC,t)}},loader:vC,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-comment/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(kC,t)}},loader:wC,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-activity/school/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(TC,t)}},loader:xC,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-activity/school/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(CC,t)}},loader:SC,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-activity/school/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(DC,t)}},loader:EC,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-activity/team/add",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(IC,t)}},loader:PC,meta:{navigationBar:{titleText:"新增",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-activity/team/edit",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(OC,t)}},loader:MC,meta:{navigationBar:{titleText:"编辑",type:"default"},isNVue:!1}},{path:"/pages/content/mustgo-activity/team/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(AC,t)}},loader:$C,meta:{navigationBar:{titleText:"列表",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/page-res/page-res",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(RC,t)}},loader:LC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"受访页",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/page-ent/page-ent",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(BC,t)}},loader:NC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"入口页",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/scene/scene",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(jC,t)}},loader:FC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"场景值(小程序)",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/channel/channel",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(WC,t)}},loader:VC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"渠道(app)",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/error/js/js",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(UC,t)}},loader:qC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"js报错统计",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/error/js/detail",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(zC,t)}},loader:HC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"错误信息",style:"default",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/error/app/app",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(XC,t)}},loader:YC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"app原生报错统计",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/event/event",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(GC,t)}},loader:KC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"事件和转化",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/overview/overview",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(QC,t)}},loader:JC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"今日概况",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/activity/activity",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(eE,t)}},loader:ZC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"活跃度",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/trend/trend",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(nE,t)}},loader:tE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"趋势分析",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/retention/retention",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(aE,t)}},loader:iE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"留存",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/comparison/comparison",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(sE,t)}},loader:oE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"平台对比",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/stickiness/stickiness",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(lE,t)}},loader:rE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"粘性",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/overview/overview",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(uE,t)}},loader:cE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"今日概况",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/activity/activity",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(hE,t)}},loader:dE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"活跃度",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/trend/trend",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(fE,t)}},loader:pE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"趋势分析",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/retention/retention",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(gE,t)}},loader:mE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"留存",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/comparison/comparison",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(_E,t)}},loader:yE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"平台对比",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/stickiness/stickiness",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(bE,t)}},loader:vE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"粘性",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/overview/overview",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(kE,t)}},loader:wE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"订单概况",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/list/list",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(TE,t)}},loader:xE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"订单明细",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/funnel/funnel",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(CE,t)}},loader:SE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"漏斗分析",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/ranking/ranking",component:{setup(){const e=Pg(),t=e&&e.$route&&e.$route.query||{};return()=>PE(DE,t)}},loader:EE,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"用户价值排行",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const IE="uni-admin-theme",ME={created(){this.clear=void 0},methods:{...mb("app",["SET_THEME"]),...gb({init:"app/init"}),clearPlatform(){const e=cy().keys.filter((e=>e.indexOf("platform")>-1));e.length&&e.forEach((e=>ry(e)))}},onPageNotFound(e){Uy({url:Ab.error.url})},onLaunch:function(){console.log("%c uni-admin %c v2.3.6 ","background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff","background:#007aff ;padding: 1px; border-radius: 0 3px 3px 0; color: #fff; font-weight: bold;"),console.log("App Launch"),this.$uniIdPagesStore.store.hasLogin&&this.init(),Jd("uni-id-pages-login-success",(()=>{this.init()})),this.SET_THEME(sy(IE)||"default")},onShow:function(){console.log("App Show"),this.clear=setInterval((()=>this.clearPlatform()),9e5)},onHide:function(){console.log("App Hide"),this.clear&&clearInterval(this.clear)}};Og(ME,{init:Ig,setup(e){const t=zm(),n=()=>{var n;n=e,Object.keys(jh).forEach((e=>{jh[e].forEach((t=>{Qi(e,t,n)}))}));const{onLaunch:i,onShow:a,onPageNotFound:o}=e,s=function({path:e,query:t}){return _(Mp,{path:e,query:t}),_(Op,Mp),_({},Mp)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:He(t.query)});if(i&&q(i,s),a&&q(a,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};o&&q(o,e)}};return yi(_l).isReady().then(n),ta((()=>{window.addEventListener("resize",Xe(Lg,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",Rg),document.addEventListener("visibilitychange",Ng),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}e&&e.addEventListener("change",(e=>{K_.emit(ie,{theme:e.matches?"dark":"light"})}))}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(uo(),go($_));e.setup=(e,i)=>{const a=t&&t(e,i);return S(a)?n:a},e.render=n}});const OE={namespaced:!0,state:{inited:!1,navMenu:[],routes:[],theme:sy(IE)||"default",appName:"admin",appid:"__UNI__2A45DD3"},mutations:{SET_APP_NAME:(e,t)=>{e.appName=t},SET_NAV_MENU:(e,t)=>{e.inited=!0,e.navMenu=t},SET_ROUTES:(e,t)=>{e.routes=t},SET_THEME:(e,t)=>{document.getElementsByTagName("body")[0].setAttribute("data-theme",t),iy(IE,t),e.theme=t}},actions:{init({commit:e,dispatch:t}){t("user/getUserInfo",null,{root:!0})},setAppName({commit:e},t){e("SET_APP_NAME",t)},setRoutes({commit:e},t){e("SET_ROUTES",t)}}},$E={namespaced:!0,state:{logs:[]},mutations:{ADD_ERROR_LOG:(e,t)=>{e.logs.unshift(t)},CLEAR_ERROR_LOG:e=>{e.logs.splice(0)}},actions:{add({commit:e},t){if(!t.route){const e=og();e.length&&(t.route=e[e.length-1].route)}t.route="/"+(t.route||""),e("ADD_ERROR_LOG",t)},clear({commit:e}){e("CLEAR_ERROR_LOG")}}},AE={debug:!1,isAdmin:!0,loginTypes:["username"],appid:{weixin:{h5:"xxxxxx",web:"xxxxxx"}},passwordStrength:"medium"},LE=rT.importObject("uni-id-co"),RE=rT.database().collection("uni-id-users");let NE=sy("uni-id-pages-userInfo")||{};const BE={userInfo:NE,hasLogin:0!=Object.keys(NE).length},FE={async updateUserInfo(e=!1){if(e)RE.where("_id==$env.uid").update(e).then((t=>{t.result.updated?(f_({title:"更新成功",icon:"none",duration:3e3}),this.setUserInfo(e)):f_({title:"没有改变",icon:"none",duration:3e3})}));else try{let e=await RE.where("'_id' == $cloudEnv_uid").field("mobile,nickname,username,email,avatar_file").get();this.setUserInfo(e.result.data[0])}catch(Kw){this.setUserInfo({},{cover:!0}),console.error(Kw.message,Kw.errCode)}},async setUserInfo(e,{cover:t}={cover:!1}){let n=t?e:Object.assign(jE.userInfo,e);return jE.userInfo=Object.assign({},n),jE.hasLogin=0!=Object.keys(jE.userInfo).length,ay({key:"uni-id-pages-userInfo",data:jE.userInfo}),e},async logout(){var e;if(rT.getCurrentUserInfo().tokenExpired>Date.now())try{await LE.logout()}catch(Kw){console.error(Kw)}ry("uni_id_token"),iy("uni_id_token_expired",0),Uy({url:`/${(null==(e=Bb.uniIdRouter)?void 0:e.loginPage)??"uni_modules/uni-id-pages/pages/login/login-withoutpwd"}`}),Zd("uni-id-pages-logout"),this.setUserInfo({},{cover:!0})},loginBack(e={}){const{uniIdRedirectUrl:t=""}=e;let n=0,i=og();if(i.forEach(((e,t)=>{"login"==i[i.length-t-1].route.split("/")[3]&&n++})),t)return Hy({url:t});if("weixin"==e.loginType)return window.history.go(-3);if(n){const e=Bb.pages[0];return Hy({url:`/${e.path}`})}Vy({delta:n})},loginSuccess(e={}){const{showToast:t=!0,toastText:n="登录成功",autoBack:i=!0,uniIdRedirectUrl:a="",passwordConfirmed:o}=e;if(t&&f_({title:n,icon:"none",duration:3e3}),this.updateUserInfo(),Zd("uni-id-pages-login-success"),AE.setPasswordAfterLogin&&!o)return Uy({url:a?`/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd?uniIdRedirectUrl=${a}&loginType=${e.loginType}`:`/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd?loginType=${e.loginType}`,fail:e=>{console.log(e)}});i&&this.loginBack(a)}},jE=fn(BE),VE=Object.freeze(Object.defineProperty({__proto__:null,mutations:FE,store:jE},Symbol.toStringTag,{value:"Module"})),WE=new hb({modules:{app:OE,error:$E,user:{namespaced:!0,state:{},mutations:{},actions:{getUserInfo:({commit:e})=>rT.database().collection("uni-id-users").where("_id==$cloudEnv_uid").field("username,nickname,mobile,email,role,permission").get().then((({result:e})=>{const[t]=e.data;return FE.setUserInfo(t,!0),Promise.resolve(t)}))}}}});function qE(e,t=2){for(e+="";e.lengthqE(e.year,4),yy:e=>qE(e.year),MM:e=>qE(e.month),M:e=>e.month,dd:e=>qE(e.day),d:e=>e.day,hh:e=>qE(e.hour),h:e=>e.hour,mm:e=>qE(e.minute),m:e=>e.minute,ss:e=>qE(e.second),s:e=>e.second,SSS:e=>qE(e.millisecond,3),S:e=>e.millisecond};function HE(e){return e instanceof Date?e:"string"==typeof e?e.indexOf("T")>-1?new Date(e):new Date(e.replace(/-/g,"/")):new Date(e)}function zE(e,t="yyyy/MM/dd hh:mm:ss"){if(!e&&0!==e)return"";const n={year:(e=HE(e)).getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()},i=/yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/;let a=!0,o=t;for(;a;)a=!1,o=o.replace(i,(function(e){return a=!0,UE[e](n)}));return o}function YE(e,{locale:t="zh",threshold:n=[6e4,36e5],format:i="yyyy/MM/dd hh:mm:ss"}){if("-"===e)return e;if(!e&&0!==e)return"";const a={zh:{year:"年",month:"月",day:"天",hour:"小时",minute:"分钟",second:"秒",ago:"前",later:"后",justNow:"刚刚",soon:"马上",template:"{num}{unit}{suffix}"},en:{year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",later:"later",justNow:"just now",soon:"soon",template:"{num} {unit} {suffix}"}},o=a[t]||a.zh;let s,r,l=HE(e),c=l.getTime()-Date.now(),u=Math.abs(c);if(u=n[1])return zE(l,i);let d=o.later;c<0&&(d=o.ago,c=-c);const h=Math.floor(c/1e3),p=Math.floor(h/60),f=Math.floor(p/60),m=Math.floor(f/24),g=Math.floor(m/30),y=Math.floor(g/12);switch(!0){case y>0:s=y,r=o.year;break;case g>0:s=g,r=o.month;break;case m>0:s=m,r=o.day;break;case f>0:s=f,r=o.hour;break;case p>0:s=p,r=o.minute;break;default:s=h,r=o.second}return"en"===t&&(1===s?s="a":r+="s"),o.template.replace(/{\s*num\s*}/g,s+"").replace(/{\s*unit\s*}/g,r).replace(/{\s*suffix\s*}/g,d)}function XE(e){const t=["B","KB","MB","GB","TB"];if(0==e)return"n/a";const n=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return 0==n?e+" "+t[n]:(e/Math.pow(1024,n)).toFixed(1)+" "+t[n]}const KE=Ab.navBar.debug;function GE(e,t,n){const{objectName:i,functionName:a,showModal:o,...s}=Object.assign({objectName:"uni-id-co",functionName:"",showModal:!1,customUI:!0,loadingOptions:{title:"xxx"}},n);let r;if(a)r=rT.callFunction({name:a,data:{action:e,params:t}});else{r=rT.importObject(i,s)[e](t)}return r.then((e=>(e=a?e.result:e)&&e.errCode?Promise.reject(e):Promise.resolve(e))).catch((t=>{o&&i_({content:t.errMsg||"请求服务失败",showCancel:!1});const n=location.hash.split("#")[1];return KE&&!0===KE.enable&&-1===["/uni_modules/uni-id-pages/pages/login/login-withpwd","/uni_modules/uni-id-pages/pages/register/register"].indexOf(n)&&WE.dispatch("error/add",{err:t.toString(),info:'$request("'+e+'")',route:"",time:(new Date).toLocaleTimeString()}),Promise.reject(t)}))}function JE(e){return Promise.resolve([])}rT.database();const QE={install(e){var t;(t=e).config.globalProperties.$formatDate=zE,t.config.globalProperties.$formatBytes=XE,function(e){const t=Ab.navBar.debug;if(t&&!0===t.enable){const t=e.config.errorHandler;e.config.errorHandler=function(e,n,i){console.error(e);const a=n.$page&&n.$page.route;return WE.dispatch("error/add",{err:e.toString(),info:i,route:a,time:(new Date).toLocaleTimeString()}),t&&t(e,n,i)}}}(e),function(e){e.config.globalProperties.$uniIdPagesStore=VE}(e),function(e){e.config.globalProperties.$request=GE}(e),function(e){e.config.globalProperties.$fetch=JE}(e),function(e){e.config.globalProperties.$hasPermission=function(e){const t=this.$uniIdPagesStore.store.userInfo.permission||[];return(this.$uniIdPagesStore.store.userInfo.role||[]).indexOf("admin")>-1||t.indexOf(e)>-1},e.config.globalProperties.$hasRole=function(e){return(this.$uniIdPagesStore.store.userInfo.role||[]).indexOf(e)>-1}}(e),Kd("navigateTo",{fail:({errMsg:e})=>{-1!==e.indexOf("is not found")&&qy({url:Ab.error.url+"?errMsg="+e})}})}},ZE={en:{login:{text:{title:"System Login",prompt:"If there is no administrator account, please create an administrator first..."},field:{username:"Account",password:"Password",captcha:"Captcha"},button:{login:"Log In"}},topwindow:{text:{doc:"Admin doc",plugin:"More admin plugin",changeLanguage:"Language",changePwd:"ChangePwd",signOut:"Sign out"}},index:{text:{prompt:"Main content, customizable content and style",vesion:"The current version can be viewed in the console and package.json"}},updatePwd:{text:{title:"Change Password"},field:{oldPassword:"Old password",newPassword:"New password",passwordConfirmation:"Confirm password"},button:{save:"Save",back:"Back"}},common:{placeholder:{query:"Enter search content"},button:{search:"Search",add:"Add",edit:"Edit",delete:"Delete",batchDelete:"Batch Delete",exportExcel:"Export Excel",submit:"Submit",back:"Back",tagManager:"Tag Manager",publish:"Publish page management",version:"version manager",sendSMS:"Send SMS"},empty:"No more data",piecePerPage:"piece/page"},user:{text:{userManager:"Users Manager"}},role:{text:{roleManager:"Roles Manager"}},permission:{text:{permissionManager:"Permissions Manager"}},app:{text:{appManager:"App Manager",describle:"Manage the apps that users can login"}},menu:{text:{menuManager:"Menus Manager",additiveMenu:"Additive Menu"},button:{addFirstLevelMenu:"Add First-level Menu",addChildMenu:"Submenu",updateBuiltInMenu:"Update built-in Menu"}},demo:{icons:{title:"Icons",describle:"Click icons to copy the icon code"},table:{title:"Table"}}},"zh-Hans":{login:{text:{title:"系统登录",prompt:"如无管理员账号,请先创建管理员"},field:{username:"账号",password:"密码",captcha:"验证码"},button:{login:"登录"}},topwindow:{text:{doc:"Admin 框架文档",plugin:"浏览更多 Admin 插件",changeLanguage:"切换语言",changePwd:"修改密码",signOut:"退出"}},index:{text:{prompt:"内容主体,可自定义内容及样式",vesion:"可在控制台和 package.json 中查看当前的版本"}},updatePwd:{text:{title:"修改密码"},field:{oldPassword:"旧密码",newPassword:"新密码",passwordConfirmation:"确认新密码"},button:{save:"保存",back:"返回"}},common:{placeholder:{query:"请输入搜索内容"},button:{search:"搜索",add:"新增",edit:"修改",delete:"删除",batchDelete:"批量删除",exportExcel:"导出 Excel",submit:"提交",back:"返回",tagManager:"标签管理",publish:"发布页管理",version:"版本管理",sendSMS:"群发短信"},empty:"没有更多数据",piecePerPage:"条/页"},user:{text:{userManager:"用户管理"}},role:{text:{roleManager:"角色管理"}},permission:{text:{permissionManager:"权限管理"}},app:{text:{appManager:"应用管理",describle:"管理用户可登录的应用"}},menu:{text:{menuManager:"菜单列表",additiveMenu:"待添加菜单"},button:{addFirstLevelMenu:"新增一级菜单",addChildMenu:"子菜单",updateBuiltInMenu:"更新内置菜单"}},demo:{icons:{title:"图标",describle:"点击图标即可复制图标代码"},table:{title:"表格"}}},"zh-Hant":{login:{text:{title:"系統登錄",prompt:"如無管理員賬號,請先創建管理員..."},field:{username:"賬號",password:"密碼",captcha:"驗證碼"},button:{login:"登錄"}},topwindow:{text:{doc:"Admin 框架文檔",plugin:"瀏覽更多 Admin 插件",changeLanguage:"切换语言",changePwd:"修改密碼",signOut:"退出"}},index:{text:{prompt:"內容主體,可自定義內容及樣式",vesion:"可在控制台和 package.json 中查看當前的版本"}},updatePwd:{text:{title:"修改密碼"},field:{oldPassword:"舊密碼",newPassword:"新密碼",passwordConfirmation:"確認新密碼"},button:{save:"保存",back:"返回"}},common:{placeholder:{query:"請輸入搜索內容"},button:{search:"檢索",add:"新增",edit:"修改",delete:"刪除",batchDelete:"批量刪除",exportExcel:"導出 Excel",submit:"提交",back:"返回",tagManager:"標簽管理",publish:"發布頁管理",version:"版本管理",sendSMS:"群發短信"},empty:"沒有更多數據",piecePerPage:"條/頁"},user:{text:{userManager:"用戶管理"}},role:{text:{roleManager:"角色管理"}},permission:{text:{permissionManager:"權限管理"}},app:{text:{appManager:"應用管理",describle:"管理用戶可登錄的應用"}},menu:{text:{menuManager:"菜單列表",additiveMenu:"待添加菜單"},button:{addFirstLevelMenu:"新增一級菜單",addChildMenu:"子菜單",updateBuiltInMenu:"更新內寘選單"}},demo:{icons:{title:"圖標",describle:"點擊圖標即可複製圖標代碼"},table:{title:"表格"}}}},eD="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,tD=e=>eD?Symbol(e):e,nD=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),iD=e=>"number"==typeof e&&isFinite(e),aD=e=>"[object RegExp]"===yD(e),oD=e=>_D(e)&&0===Object.keys(e).length;function sD(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const rD=Object.assign;function lD(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const cD=Object.prototype.hasOwnProperty;function uD(e,t){return cD.call(e,t)}const dD=Array.isArray,hD=e=>"function"==typeof e,pD=e=>"string"==typeof e,fD=e=>"boolean"==typeof e,mD=e=>null!==e&&"object"==typeof e,gD=Object.prototype.toString,yD=e=>gD.call(e),_D=e=>"[object Object]"===yD(e),vD=Object.prototype.hasOwnProperty;function bD(e,t){return vD.call(e,t)}const wD=e=>null!==e&&"object"==typeof e,kD=[];kD[0]={w:[0],i:[3,0],"[":[4],o:[7]},kD[1]={w:[1],".":[2],"[":[4],o:[7]},kD[2]={w:[2],i:[3,0],0:[3,0]},kD[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},kD[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},kD[5]={"'":[4,0],o:8,l:[5,0]},kD[6]={'"':[4,0],o:8,l:[6,0]};const xD=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function TD(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function SD(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,xD.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const CD=new Map;function ED(e,t){if(!wD(e))return null;let n=CD.get(t);if(n||(n=function(e){const t=[];let n,i,a,o,s,r,l,c=-1,u=0,d=0;const h=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,h[0](),!0}for(h[0]=()=>{void 0===i?i=a:i+=a},h[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,u=4,h[0]();else{if(d=0,void 0===i)return!1;if(i=SD(i),!1===i)return!1;h[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=TD(n),l=kD[u],s=l[o]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(r=h[s[1]],r&&(a=n,!1===r())))return;if(7===u)return t}}(t),n&&CD.set(t,n)),!n)return null;const i=n.length;let a=e,o=0;for(;oe,ID=e=>"",MD=e=>0===e.length?"":e.join(""),OD=e=>null==e?"":dD(e)||_D(e)&&e.toString===gD?JSON.stringify(e,null,2):String(e);function $D(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function AD(e={}){const t=e.locale,n=function(e){const t=iD(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(iD(e.named.count)||iD(e.named.n))?iD(e.named.count)?e.named.count:iD(e.named.n)?e.named.n:t:t}(e),i=mD(e.pluralRules)&&pD(t)&&hD(e.pluralRules[t])?e.pluralRules[t]:$D,a=mD(e.pluralRules)&&pD(t)&&hD(e.pluralRules[t])?$D:void 0,o=e.list||[],s=e.named||{};iD(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function r(t){const n=hD(e.messages)?e.messages(t):!!mD(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):ID)}const l=_D(e.processor)&&hD(e.processor.normalize)?e.processor.normalize:MD,c=_D(e.processor)&&hD(e.processor.interpolate)?e.processor.interpolate:OD,u={list:e=>o[e],named:e=>s[e],plural:e=>e[i(n,e.length,a)],linked:(t,n)=>{const i=r(t)(u);return pD(n)?(t=>e.modifiers?e.modifiers[t]:PD)(n)(i):i},message:r,type:_D(e.processor)&&pD(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l};return u} +/*! + * @intlify/message-compiler v9.1.9 + * (c) 2021 kazuya kawaguchi + * Released under the MIT License. + */function LD(e,t,n={}){const{domain:i,messages:a,args:o}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=i,s}function RD(e){throw e}function ND(e,t,n){const i={start:e,end:t};return null!=n&&(i.source=n),i}const BD=" ",FD="\n",jD=String.fromCharCode(8232),VD=String.fromCharCode(8233);function WD(e){const t=e;let n=0,i=1,a=1,o=0;const s=e=>"\r"===t[e]&&t[e+1]===FD,r=e=>t[e]===VD,l=e=>t[e]===jD,c=e=>s(e)||(e=>t[e]===FD)(e)||r(e)||l(e),u=e=>s(e)||r(e)||l(e)?FD:t[e];function d(){return o=0,c(n)&&(i++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>i,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:d,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,i=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)d();o=0}}}const qD=void 0;function UD(e,t={}){const n=!1!==t.location,i=WD(e),a=()=>i.index(),o=()=>{return e=i.line(),t=i.column(),n=i.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),r=a(),l={currentType:14,offset:r,startLoc:s,endLoc:s,lastType:14,lastOffset:r,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,n,...i){const a=c();if(t.column+=n,t.offset+=n,u){const n=LD(e,ND(a.startLoc,t),{domain:"tokenizer",args:i});u(n)}}function h(e,t,i){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=ND(e.startLoc,e.endLoc)),null!=i&&(a.value=i),a}const p=e=>h(e,14);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(0,o(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===BD||e.currentPeek()===FD;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function y(e){if(e===qD)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function _(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=function(e){if(e===qD)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),i}function v(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,i="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==i&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==i&&!a)||!(i===BD||i===FD):o===BD?(e.peek(),n(!0,BD,a)):o!==FD||(e.peek(),n(!0,FD,a)):"%"===i||t},i=n();return t&&e.resetPeek(),i}function w(e,t){const n=e.currentChar();return n===qD?qD:t(n)?(e.next(),n):null}function k(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function x(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function S(e){let t="",n="";for(;t=x(e);)n+=t;return n}function C(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return E(e,t,4);case"U":return E(e,t,6);default:return d(3,o(),0,t),""}}function E(e,t,n){f(e,t);let i="";for(let a=0;a=1&&d(8,o(),0),e.next(),n=h(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(7,o(),0),e.next(),n=h(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(6,o(),0),n=I(e,t)||p(t),t.braceNest=0,n;default:let i=!0,a=!0,s=!0;if(v(e))return t.braceNest>0&&d(6,o(),0),n=h(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(6,o(),0),t.braceNest=0,M(e,t);if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}(e,t))return n=h(t,5,function(e){g(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===qD&&d(6,o(),0),n}(e)),g(e),n;if(a=_(e,t))return n=h(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${S(e)}`):t+=S(e),e.currentChar()===qD&&d(6,o(),0),t}(e)),g(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i="'"===e.currentPeek();return e.resetPeek(),i}(e,t))return n=h(t,7,function(e){g(e),f(e,"'");let t="",n="";const i=e=>"'"!==e&&e!==FD;for(;t=w(e,i);)n+="\\"===t?C(e):t;const a=e.currentChar();return a===FD||a===qD?(d(2,o(),0),a===FD&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}(e)),g(e),n;if(!i&&!a&&!s)return n=h(t,13,function(e){g(e);let t="",n="";const i=e=>"{"!==e&&"}"!==e&&e!==BD&&e!==FD;for(;t=w(e,i);)n+=t;return n}(e)),d(1,o(),0,n.value),g(e),n}return n}function I(e,t){const{currentType:n}=t;let i=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==FD&&a!==BD||d(9,o(),0),a){case"@":return e.next(),i=h(t,8,"@"),t.inLinked=!0,i;case".":return g(e),e.next(),h(t,9,".");case":":return g(e),e.next(),h(t,10,":");default:return v(e)?(i=h(t,1,D(e)),t.braceNest=0,t.inLinked=!1,i):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const i="."===e.currentPeek();return e.resetPeek(),i}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const i=":"===e.currentPeek();return e.resetPeek(),i}(e,t)?(g(e),I(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}(e,t)?(g(e),h(t,12,function(e){let t="",n="";for(;t=k(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const i=()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===BD||!t)&&(t===FD?(e.peek(),i()):y(t))},a=i();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?P(e,t)||i:h(t,11,function(e){const t=(n=!1,i)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===BD?i:a===FD?(i+=a,e.next(),t(n,i)):(i+=a,e.next(),t(!0,i)):i};return t(!1,"")}(e))):(8===n&&d(9,o(),0),t.braceNest=0,t.inLinked=!1,M(e,t))}}function M(e,t){let n={type:14};if(t.braceNest>0)return P(e,t)||p(t);if(t.inLinked)return I(e,t)||p(t);const i=e.currentChar();switch(i){case"{":return P(e,t)||p(t);case"}":return d(5,o(),0),e.next(),h(t,3,"}");case"@":return I(e,t)||p(t);default:if(v(e))return n=h(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(b(e))return h(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(n===BD||n===FD)if(b(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===i)return e.next(),h(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=a(),l.startLoc=o(),i.currentChar()===qD?h(l,14):M(i,l)},currentOffset:a,currentPosition:o,context:c}}const HD=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function zD(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function YD(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,t,i,a,...o){const s=e.currentPosition();if(s.offset+=a,s.column+=a,n){const e=LD(t,ND(i,s),{domain:"parser",args:o});n(e)}}function a(e,n,i){const a={type:e,start:n,end:n};return t&&(a.loc={start:i,end:i}),a}function o(e,n,i,a){e.end=n,a&&(e.type=a),t&&e.loc&&(e.loc.end=i)}function s(e,t){const n=e.context(),i=a(3,n.offset,n.startLoc);return i.value=t,o(i,e.currentOffset(),e.currentPosition()),i}function r(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,r=a(5,i,s);return r.index=parseInt(t,10),e.nextToken(),o(r,e.currentOffset(),e.currentPosition()),r}function l(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,r=a(4,i,s);return r.key=t,e.nextToken(),o(r,e.currentOffset(),e.currentPosition()),r}function c(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:s}=n,r=a(9,i,s);return r.value=t.replace(HD,zD),e.nextToken(),o(r,e.currentOffset(),e.currentPosition()),r}function u(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let s=e.nextToken();if(9===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:r}=n,l=a(8,s,r);return 12!==t.type?(i(e,11,n.lastStartLoc,0),l.value="",o(l,s,r),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,13,n.lastStartLoc,0,XD(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(10!==s.type&&i(e,13,t.lastStartLoc,0,XD(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 11:null==s.value&&i(e,13,t.lastStartLoc,0,XD(s)),n.key=function(e,t){const n=e.context(),i=a(7,n.offset,n.startLoc);return i.value=t,o(i,e.currentOffset(),e.currentPosition()),i}(e,s.value||"");break;case 5:null==s.value&&i(e,13,t.lastStartLoc,0,XD(s)),n.key=l(e,s.value||"");break;case 6:null==s.value&&i(e,13,t.lastStartLoc,0,XD(s)),n.key=r(e,s.value||"");break;case 7:null==s.value&&i(e,13,t.lastStartLoc,0,XD(s)),n.key=c(e,s.value||"");break;default:i(e,12,t.lastStartLoc,0);const u=e.context(),d=a(7,u.offset,u.startLoc);return d.value="",o(d,u.offset,u.startLoc),n.key=d,o(n,u.offset,u.startLoc),{nextConsumeToken:s,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=a(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const a=d||e.nextToken();switch(d=null,a.type){case 0:null==a.value&&i(e,13,t.lastStartLoc,0,XD(a)),n.items.push(s(e,a.value||""));break;case 6:null==a.value&&i(e,13,t.lastStartLoc,0,XD(a)),n.items.push(r(e,a.value||""));break;case 5:null==a.value&&i(e,13,t.lastStartLoc,0,XD(a)),n.items.push(l(e,a.value||""));break;case 7:null==a.value&&i(e,13,t.lastStartLoc,0,XD(a)),n.items.push(c(e,a.value||""));break;case 8:const o=u(e);n.items.push(o.node),d=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function h(e){const t=e.context(),{offset:n,startLoc:s}=t,r=d(e);return 14===t.currentType?r:function(e,t,n,s){const r=e.context();let l=0===s.items.length;const c=a(1,t,n);c.cases=[],c.cases.push(s);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==r.currentType);return l&&i(e,10,n,0),o(c,e.currentOffset(),e.currentPosition()),c}(e,n,s,r)}return{parse:function(n){const s=UD(n,rD({},e)),r=s.context(),l=a(0,r.offset,r.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=h(s),14!==r.currentType&&i(s,13,r.lastStartLoc,0,n[r.offset]||""),o(l,s.currentOffset(),s.currentPosition()),l}}}function XD(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function KD(e,t){for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&GD(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function QD(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?QD(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const a=t.cases.length;for(let n=0;n{const n=pD(t.mode)?t.mode:"normal",i=pD(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,r=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:i,breakLineCode:a,needIndent:o}=t,s={source:e.loc.source,filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function r(e,t){s.code+=e}function l(e,t=!0){const n=t?a:"";r(o?n+" ".repeat(e):n)}return{context:()=>s,push:r,indent:function(e=!0){const t=++s.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&l(t)},newline:function(){l(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:i,sourceMap:a,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),r.length>0&&(l.push(`const { ${r.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),QD(l,e),l.deindent(s),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}})(i,n)} +/*! + * @intlify/core-base v9.1.9 + * (c) 2021 kazuya kawaguchi + * Released under the MIT License. + */let eP;let tP=0;function nP(e={}){const t=pD(e.version)?e.version:"9.1.9",n=pD(e.locale)?e.locale:"en-US",i=dD(e.fallbackLocale)||_D(e.fallbackLocale)||pD(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=_D(e.messages)?e.messages:{[n]:{}},o=_D(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=_D(e.numberFormats)?e.numberFormats:{[n]:{}},r=rD({},e.modifiers||{},{upper:e=>pD(e)?e.toUpperCase():e,lower:e=>pD(e)?e.toLowerCase():e,capitalize:e=>pD(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),l=e.pluralRules||{},c=hD(e.missing)?e.missing:null,u=!fD(e.missingWarn)&&!aD(e.missingWarn)||e.missingWarn,d=!fD(e.fallbackWarn)&&!aD(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,p=!!e.unresolving,f=hD(e.postTranslation)?e.postTranslation:null,m=_D(e.processor)?e.processor:null,g=!fD(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,_=hD(e.messageCompiler)?e.messageCompiler:eP,v=hD(e.onWarn)?e.onWarn:sD,b=e,w=mD(b.__datetimeFormatters)?b.__datetimeFormatters:new Map,k=mD(b.__numberFormatters)?b.__numberFormatters:new Map,x=mD(b.__meta)?b.__meta:{};tP++;return{version:t,cid:tP,locale:n,fallbackLocale:i,messages:a,datetimeFormats:o,numberFormats:s,modifiers:r,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:h,unresolving:p,postTranslation:f,processor:m,warnHtmlMessage:g,escapeParameter:y,messageCompiler:_,onWarn:v,__datetimeFormatters:w,__numberFormatters:k,__meta:x}}function iP(e,t,n,i,a){const{missing:o,onWarn:s}=e;if(null!==o){const i=o(e,n,t,a);return pD(i)?i:t}return t}function aP(e,t,n){const i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let e=[n];for(;dD(e);)e=oP(a,e,t);const o=dD(t)?t:_D(t)?t.default?t.default:null:t;e=pD(o)?[o]:o,dD(e)&&oP(a,e,!1),i.__localeChainCache.set(n,a)}return a}function oP(e,t,n){let i=!0;for(let a=0;ae;let uP=Object.create(null);function dP(e){return LD(e,null,void 0)}const hP=()=>"",pP=e=>hD(e);function fP(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:a,fallbackLocale:o,messages:s}=e,[r,l]=gP(...t),c=(fD(l.missingWarn)?l.missingWarn:e.missingWarn,fD(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,fD(l.escapeParameter)?l.escapeParameter:e.escapeParameter),u=!!l.resolvedMessage,d=pD(l.default)||fD(l.default)?fD(l.default)?r:l.default:n?r:"",h=n||""!==d,p=pD(l.locale)?l.locale:e.locale;c&&function(e){dD(e.list)?e.list=e.list.map((e=>pD(e)?lD(e):e)):mD(e.named)&&Object.keys(e.named).forEach((t=>{pD(e.named[t])&&(e.named[t]=lD(e.named[t]))}))}(l);let[f,m,g]=u?[r,p,s[p]||{}]:function(e,t,n,i,a,o){const{messages:s,onWarn:r}=e,l=aP(e,i,n);let c,u={},d=null;const h="translate";for(let p=0;p{_=!0}));if(_)return f;const b=function(e,t,n,i){const{modifiers:a,pluralRules:o}=e,s=i=>{const a=ED(n,i);if(pD(a)){let n=!1;const o=mP(e,i,t,a,i,(()=>{n=!0}));return n?hP:o}return pP(a)?a:hP},r={locale:t,modifiers:a,pluralRules:o,messages:s};e.processor&&(r.processor=e.processor);i.list&&(r.list=i.list);i.named&&(r.named=i.named);iD(i.plural)&&(r.pluralIndex=i.plural);return r}(e,m,g,l),w=function(e,t,n){const i=t(n);return i}(0,v,AD(b));return i?i(w):w}function mP(e,t,n,i,a,o){const{messageCompiler:s,warnHtmlMessage:r}=e;if(pP(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}const l=s(i,function(e,t,n,i,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>nD({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,r,o));return l.locale=n,l.key=t,l.source=i,l}function gP(...e){const[t,n,i]=e,a={};if(!pD(t)&&!iD(t)&&!pP(t))throw dP(14);const o=iD(t)?String(t):(pP(t),t);return iD(n)?a.plural=n:pD(n)?a.default=n:_D(n)&&!oD(n)?a.named=n:dD(n)&&(a.list=n),iD(i)?a.plural=i:pD(i)?a.default=i:_D(i)&&rD(a,i),[o,a]}function yP(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:a,onWarn:o}=e,{__datetimeFormatters:s}=e,[r,l,c,u]=_P(...t);fD(c.missingWarn)?c.missingWarn:e.missingWarn;fD(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,h=pD(c.locale)?c.locale:e.locale,p=aP(e,a,h);if(!pD(r)||""===r)return new Intl.DateTimeFormat(h).format(l);let f,m={},g=null;for(let v=0;ve(n,i,Lo()||void 0,a)}function MP(e,t){const{messages:n,__i18n:i}=t,a=_D(n)?n:dD(i)?{}:{[e]:{}};if(dD(i)&&i.forEach((({locale:e,resource:t})=>{e?(a[e]=a[e]||{},$P(t,a[e])):$P(t,a)})),t.flatJson)for(const o in a)uD(a,o)&&DD(a[o]);return a}const OP=e=>!mD(e)||dD(e);function $P(e,t){if(OP(e)||OP(t))throw xP(20);for(const n in e)uD(e,n)&&(OP(e[n])||OP(t[n])?t[n]=e[n]:$P(e[n],t[n]))}function AP(e={}){const{__root:t}=e,n=void 0===t;let i=!fD(e.inheritLocale)||e.inheritLocale;const a=Dn(t&&i?t.locale.value:pD(e.locale)?e.locale:"en-US"),o=Dn(t&&i?t.fallbackLocale.value:pD(e.fallbackLocale)||dD(e.fallbackLocale)||_D(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a.value),s=Dn(MP(a.value,e)),r=Dn(_D(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),l=Dn(_D(e.numberFormats)?e.numberFormats:{[a.value]:{}});let c=t?t.missingWarn:!fD(e.missingWarn)&&!aD(e.missingWarn)||e.missingWarn,u=t?t.fallbackWarn:!fD(e.fallbackWarn)&&!aD(e.fallbackWarn)||e.fallbackWarn,d=t?t.fallbackRoot:!fD(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,p=hD(e.missing)?e.missing:null,f=hD(e.missing)?IP(e.missing):null,m=hD(e.postTranslation)?e.postTranslation:null,g=!fD(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const _=t?t.modifiers:_D(e.modifiers)?e.modifiers:{};let v,b=e.pluralRules||t&&t.pluralRules;v=nP({version:"9.1.9",locale:a.value,fallbackLocale:o.value,messages:s.value,datetimeFormats:r.value,numberFormats:l.value,modifiers:_,pluralRules:b,missing:null===f?void 0:f,missingWarn:c,fallbackWarn:u,fallbackFormat:h,unresolving:!0,postTranslation:null===m?void 0:m,warnHtmlMessage:g,escapeParameter:y,__datetimeFormatters:_D(v)?v.__datetimeFormatters:void 0,__numberFormatters:_D(v)?v.__numberFormatters:void 0,__v_emitter:_D(v)?v.__v_emitter:void 0,__meta:{framework:"vue"}}),lP(v,a.value,o.value);const w=Uo({get:()=>a.value,set:e=>{a.value=e,v.locale=a.value}}),k=Uo({get:()=>o.value,set:e=>{o.value=e,v.fallbackLocale=o.value,lP(v,a.value,e)}}),x=Uo((()=>s.value)),T=Uo((()=>r.value)),S=Uo((()=>l.value));function C(e,n,i,c,u,h){let p;if(a.value,o.value,s.value,r.value,l.value,p=e(v),iD(p)&&-1===p){const[e,i]=n();return t&&d?c(t):u(e)}if(h(p))return p;throw xP(14)}function E(...e){return C((t=>fP(t,...e)),(()=>gP(...e)),0,(t=>t.t(...e)),(e=>e),(e=>pD(e)))}const D={normalize:function(e){return e.map((e=>pD(e)?xo(oo,null,e,0):e))},interpolate:e=>e,type:"vnode"};function P(e){return s.value[e]||{}}PP++,t&&(bi(t.locale,(e=>{i&&(a.value=e,v.locale=e,lP(v,a.value,o.value))})),bi(t.fallbackLocale,(e=>{i&&(o.value=e,v.fallbackLocale=e,lP(v,a.value,o.value))})));return{id:PP,locale:w,fallbackLocale:k,get inheritLocale(){return i},set inheritLocale(e){i=e,e&&t&&(a.value=t.locale.value,o.value=t.fallbackLocale.value,lP(v,a.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:x,datetimeFormats:T,numberFormats:S,get modifiers(){return _},get pluralRules(){return b||{}},get isGlobal(){return n},get missingWarn(){return c},set missingWarn(e){c=e,v.missingWarn=c},get fallbackWarn(){return u},set fallbackWarn(e){u=e,v.fallbackWarn=u},get fallbackRoot(){return d},set fallbackRoot(e){d=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,v.fallbackFormat=h},get warnHtmlMessage(){return g},set warnHtmlMessage(e){g=e,v.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,v.escapeParameter=e},t:E,rt:function(...e){const[t,n,i]=e;if(i&&!mD(i))throw xP(15);return E(t,n,rD({resolvedMessage:!0},i||{}))},d:function(...e){return C((t=>yP(t,...e)),(()=>_P(...e)),0,(t=>t.d(...e)),(()=>""),(e=>pD(e)))},n:function(...e){return C((t=>bP(t,...e)),(()=>wP(...e)),0,(t=>t.n(...e)),(()=>""),(e=>pD(e)))},te:function(e,t){return null!==ED(P(pD(t)?t:a.value),e)},tm:function(e){const n=function(e){let t=null;const n=aP(v,o.value,a.value);for(let i=0;i{let n;const i=t;try{i.processor=D,n=fP(i,...e)}finally{i.processor=null}return n}),(()=>gP(...e)),0,(t=>t[TP](...e)),(e=>[xo(oo,null,e,0)]),(e=>dD(e)))},[CP]:function(...e){return C((t=>bP(t,...e)),(()=>wP(...e)),0,(t=>t[CP](...e)),(()=>[]),(e=>pD(e)||dD(e)))},[SP]:function(...e){return C((t=>yP(t,...e)),(()=>_P(...e)),0,(t=>t[SP](...e)),(()=>[]),(e=>pD(e)||dD(e)))},[EP]:function(e){b=e,v.pluralRules=b},[DP]:e.__injectWithOption}}function LP(e={}){const t=AP(function(e){const t=pD(e.locale)?e.locale:"en-US",n=pD(e.fallbackLocale)||dD(e.fallbackLocale)||_D(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,i=hD(e.missing)?e.missing:void 0,a=!fD(e.silentTranslationWarn)&&!aD(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!fD(e.silentFallbackWarn)&&!aD(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!fD(e.fallbackRoot)||e.fallbackRoot,r=!!e.formatFallbackMessages,l=_D(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=hD(e.postTranslation)?e.postTranslation:void 0,d=!pD(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,p=!fD(e.sync)||e.sync;let f=e.messages;if(_D(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,n)=>{const i=e[n]||(e[n]={});return rD(i,t[n]),e}),f||{})}const{__i18n:m,__root:g,__injectWithOption:y}=e,_=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:n,messages:f,flatJson:e.flatJson,datetimeFormats:_,numberFormats:v,missing:i,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:r,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:h,inheritLocale:p,__i18n:m,__root:g,__injectWithOption:y}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return fD(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=fD(e)?!e:e},get silentFallbackWarn(){return fD(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=fD(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,i,a]=e,o={};let s=null,r=null;if(!pD(n))throw xP(15);const l=n;return pD(i)?o.locale=i:dD(i)?s=i:_D(i)&&(r=i),dD(a)?s=a:_D(a)&&(r=a),t.t(l,s||r||{},o)},rt:(...e)=>t.rt(...e),tc(...e){const[n,i,a]=e,o={plural:1};let s=null,r=null;if(!pD(n))throw xP(15);const l=n;return pD(i)?o.locale=i:iD(i)?o.plural=i:dD(i)?s=i:_D(i)&&(r=i),pD(a)?o.locale=a:dD(a)?s=a:_D(a)&&(r=a),t.t(l,s||r||{},o)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:i}=e;i&&i(t,n)}};return n}const RP={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},NP={name:"i18n-t",props:rD({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>iD(e)||!isNaN(e)}},RP),setup(e,t){const{slots:n,attrs:i}=t,a=e.i18n||zP({useScope:e.scope,__useComponent:!0}),o=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=pD(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i()),t}),{})}(t,o),r=a[TP](e.keypath,s,n),l=rD({},i);return pD(e.tag)||mD(e.tag)?Ho(e.tag,l,r):Ho(ao,l,r)}}};function BP(e,t,n,i){const{slots:a,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),pD(e.format)?t.key=e.format:mD(e.format)&&(pD(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,i)=>n.includes(i)?rD({},t,{[i]:e.format[i]}):t),{}));const r=i(e.value,t,s);let l=[t.key];dD(r)?l=r.map(((e,t)=>{const n=a[e.type];return n?n({[e.type]:e.value,index:t,parts:r}):[e.value]})):pD(r)&&(l=[r]);const c=rD({},o);return pD(e.tag)||mD(e.tag)?Ho(e.tag,c,l):Ho(ao,c,l)}}const FP=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],jP={name:"i18n-n",props:rD({value:{type:Number,required:!0},format:{type:[String,Object]}},RP),setup(e,t){const n=e.i18n||zP({useScope:"parent",__useComponent:!0});return BP(e,t,FP,((...e)=>n[CP](...e)))}},VP=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],WP={name:"i18n-d",props:rD({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},RP),setup(e,t){const n=e.i18n||zP({useScope:"parent",__useComponent:!0});return BP(e,t,VP,((...e)=>n[SP](...e)))}};function qP(e){const t=(t,{instance:n,value:i,modifiers:a})=>{if(!n||!n.$)throw xP(22);const o=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return null!=i?i.__composer:e.global.__composer}}(e,n.$),s=function(e){if(pD(e))return{path:e};if(_D(e)){if(!("path"in e))throw xP(19);return e}throw xP(20)}(i);t.textContent=o.t(...function(e){const{path:t,locale:n,args:i,choice:a,plural:o}=e,s={},r=i||{};pD(n)&&(s.locale=n);iD(a)&&(s.plural=a);iD(o)&&(s.plural=o);return[t,r,s]}(s))};return{beforeMount:t,beforeUpdate:t}}function UP(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[EP](t.pluralizationRules||e.pluralizationRules);const n=MP(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}function HP(e={}){const t=!fD(e.legacy)||e.legacy,n=!!e.globalInjection,i=new Map,a=t?LP(e):AP(e),o=tD(""),s={get mode(){return t?"legacy":"composition"},async install(e,...i){e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,s),!t&&n&&function(e,t){const n=Object.create(null);YP.forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw xP(22);const a=En(i.value)?{get:()=>i.value.value,set(e){i.value.value=e}}:{get:()=>i.get&&i.get()};Object.defineProperty(n,e,a)})),e.config.globalProperties.$i18n=n,XP.forEach((n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw xP(22);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}))}(e,s.global),function(e,t,...n){const i=_D(n[0])?n[0]:{},a=!!i.useI18nComponentName;(!fD(i.globalInstall)||i.globalInstall)&&(e.component(a?"i18n":NP.name,NP),e.component(jP.name,jP),e.component(WP.name,WP)),e.directive("t",qP(t))}(e,s,...i),t&&e.mixin(function(e,t,n){return{beforeCreate(){const i=Lo();if(!i)throw xP(22);const a=this.$options;if(a.i18n){const n=a.i18n;a.__i18n&&(n.__i18n=a.__i18n),n.__root=t,this===this.$root?this.$i18n=UP(e,n):(n.__injectWithOption=!0,this.$i18n=LP(n))}else a.__i18n?this===this.$root?this.$i18n=UP(e,a):this.$i18n=LP({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(i,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},beforeUnmount(){const e=Lo();if(!e)throw xP(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(a,a.__composer,s))},get global(){return a},__instances:i,__getInstance:e=>i.get(e)||null,__setInstance(e,t){i.set(e,t)},__deleteInstance(e){i.delete(e)}};return s}function zP(e={}){const t=Lo();if(null==t)throw xP(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw xP(17);const n=yi(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw xP(22);const i="composition"===n.mode?n.global:n.global.__composer,a=oD(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===a){let n=mD(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=MP(i.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const a=Object.keys(n);if(a.length&&a.forEach((e=>{i.mergeLocaleMessage(e,n[e])})),mD(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach((t=>{i.mergeDateTimeFormat(t,e.datetimeFormats[t])}))}if(mD(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach((t=>{i.mergeNumberFormat(t,e.numberFormats[t])}))}return i}if("parent"===a){let a=function(e,t,n=!1){let i=null;const a=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)i=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(i=e.__composer),n&&i&&!i[DP]&&(i=null)}if(null!=i)break;if(a===o)break;o=o.parent}return i}(n,t,e.__useComponent);return null==a&&(a=i),a}if("legacy"===n.mode)throw xP(18);const o=n;let s=o.__getInstance(t);if(null==s){const n=t.type,a=rD({},e);n.__i18n&&(a.__i18n=n.__i18n),i&&(a.__root=i),s=AP(a),function(e,t,n){ta((()=>{}),t),oa((()=>{e.__deleteInstance(t)}),t)}(o,t),o.__setInstance(t,s)}return s}const YP=["locale","fallbackLocale","availableLocales"],XP=["t","rt","d","n","tm"];var KP;KP=function(e,t={}){{const n=(t.onCacheKey||cP)(e),i=uP[n];if(i)return i;let a=!1;const o=t.onError||RD;t.onError=e=>{a=!0,o(e)};const{code:s}=ZD(e,t),r=new Function(`return ${s}`)();return a?r:uP[n]=r}},eP=KP;const GP=Bh();(function(){const e=Bs(ME),t=HP({locale:GP,messages:ZE});return e.use(t),e.use(QE),e.use(WE),{app:e}})().app.use(wg).mount("#app");export{FE as $,rv as A,pa as B,ba as C,$s as D,fb as E,ao as F,Vy as G,E_ as H,t as I,ko as J,z_ as K,rT as L,bf as M,g_ as N,y_ as O,ua as P,Cm as Q,vm as R,fm as S,As as T,Yp as U,$u as V,zp as W,Kf as X,ty as Y,jE as Z,sv as _,xo as a,gy as a0,Yy as a1,Hy as a2,hv as a3,N_ as a4,vv as a5,uy as a6,_h as a7,vh as a8,Up as a9,lm as aA,Wg as aB,Nv as aC,Rh as aD,Nh as aE,Ry as aF,Ab as aG,AE as aa,Jd as ab,Qd as ac,og as ad,Zd as ae,P_ as af,Vg as ag,kh as ah,gT as ai,ny as aj,sy as ak,Ih as al,va as am,Pg as an,Iu as ao,Qs as ap,YE as aq,uv as ar,cv as as,ta as at,Lo as au,hm as av,dm as aw,Ly as ax,fy as ay,$y as az,Co as b,go as c,So as d,mo as e,dv as f,ma as g,Pb as h,Em as i,Mb as j,Ob as k,$b as l,ef as m,qy as n,uo as o,km as p,Nu as q,_a as r,f_ as s,c as t,ry as u,iy as v,ui as w,Uy as x,i_ as y,s as z}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/index-5c3365b0.css b/alpha/admin/unpackage/dist/build/h5/assets/index-5c3365b0.css new file mode 100644 index 0000000000000000000000000000000000000000..0171859bf44eda817f92dd5da384a5f367c827cf --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/index-5c3365b0.css @@ -0,0 +1 @@ +.uni-stat-card-header[data-v-5f930688]{display:flex;justify-content:space-between;color:#555;font-size:14px;font-weight:600;padding:10px 0;margin-bottom:15px}.uni-table-scroll[data-v-5f930688]{min-height:auto}.link-btn-color[data-v-5f930688]{color:#007aff;cursor:pointer}.uni-stat-text[data-v-5f930688]{color:#606266}.mt10[data-v-5f930688]{margin-top:10px}.uni-radio-cell[data-v-5f930688]{margin:0 10px}.uni-stat-tooltip-s[data-v-5f930688]{width:400px;white-space:normal}.uni-a[data-v-5f930688]{cursor:pointer;text-decoration:underline;color:#555;font-size:14px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/index-94b442f9.css b/alpha/admin/unpackage/dist/build/h5/assets/index-94b442f9.css new file mode 100644 index 0000000000000000000000000000000000000000..f517b8741e4d9be3df4228b36975d33629025804 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/index-94b442f9.css @@ -0,0 +1 @@ +.uniui-color[data-v-7c2f6cb0]:before{content:"\e6cf"}.uniui-wallet[data-v-7c2f6cb0]:before{content:"\e6b1"}.uniui-settings-filled[data-v-7c2f6cb0]:before{content:"\e6ce"}.uniui-auth-filled[data-v-7c2f6cb0]:before{content:"\e6cc"}.uniui-shop-filled[data-v-7c2f6cb0]:before{content:"\e6cd"}.uniui-staff-filled[data-v-7c2f6cb0]:before{content:"\e6cb"}.uniui-vip-filled[data-v-7c2f6cb0]:before{content:"\e6c6"}.uniui-plus-filled[data-v-7c2f6cb0]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-7c2f6cb0]:before{content:"\e6c8"}.uniui-color-filled[data-v-7c2f6cb0]:before{content:"\e6c9"}.uniui-tune-filled[data-v-7c2f6cb0]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-7c2f6cb0]:before{content:"\e6c0"}.uniui-notification-filled[data-v-7c2f6cb0]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-7c2f6cb0]:before{content:"\e6c2"}.uniui-medal-filled[data-v-7c2f6cb0]:before{content:"\e6c3"}.uniui-gift-filled[data-v-7c2f6cb0]:before{content:"\e6c4"}.uniui-fire-filled[data-v-7c2f6cb0]:before{content:"\e6c5"}.uniui-refreshempty[data-v-7c2f6cb0]:before{content:"\e6bf"}.uniui-location-filled[data-v-7c2f6cb0]:before{content:"\e6af"}.uniui-person-filled[data-v-7c2f6cb0]:before{content:"\e69d"}.uniui-personadd-filled[data-v-7c2f6cb0]:before{content:"\e698"}.uniui-back[data-v-7c2f6cb0]:before{content:"\e6b9"}.uniui-forward[data-v-7c2f6cb0]:before{content:"\e6ba"}.uniui-arrow-right[data-v-7c2f6cb0]:before{content:"\e6bb"}.uniui-arrowthinright[data-v-7c2f6cb0]:before{content:"\e6bb"}.uniui-arrow-left[data-v-7c2f6cb0]:before{content:"\e6bc"}.uniui-arrowthinleft[data-v-7c2f6cb0]:before{content:"\e6bc"}.uniui-arrow-up[data-v-7c2f6cb0]:before{content:"\e6bd"}.uniui-arrowthinup[data-v-7c2f6cb0]:before{content:"\e6bd"}.uniui-arrow-down[data-v-7c2f6cb0]:before{content:"\e6be"}.uniui-arrowthindown[data-v-7c2f6cb0]:before{content:"\e6be"}.uniui-bottom[data-v-7c2f6cb0]:before{content:"\e6b8"}.uniui-arrowdown[data-v-7c2f6cb0]:before{content:"\e6b8"}.uniui-right[data-v-7c2f6cb0]:before{content:"\e6b5"}.uniui-arrowright[data-v-7c2f6cb0]:before{content:"\e6b5"}.uniui-top[data-v-7c2f6cb0]:before{content:"\e6b6"}.uniui-arrowup[data-v-7c2f6cb0]:before{content:"\e6b6"}.uniui-left[data-v-7c2f6cb0]:before{content:"\e6b7"}.uniui-arrowleft[data-v-7c2f6cb0]:before{content:"\e6b7"}.uniui-eye[data-v-7c2f6cb0]:before{content:"\e651"}.uniui-eye-filled[data-v-7c2f6cb0]:before{content:"\e66a"}.uniui-eye-slash[data-v-7c2f6cb0]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-7c2f6cb0]:before{content:"\e6b4"}.uniui-info-filled[data-v-7c2f6cb0]:before{content:"\e649"}.uniui-reload[data-v-7c2f6cb0]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-7c2f6cb0]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-7c2f6cb0]:before{content:"\e6ac"}.uniui-map-pin[data-v-7c2f6cb0]:before{content:"\e6ad"}.uniui-location[data-v-7c2f6cb0]:before{content:"\e6ae"}.uniui-starhalf[data-v-7c2f6cb0]:before{content:"\e683"}.uniui-star[data-v-7c2f6cb0]:before{content:"\e688"}.uniui-star-filled[data-v-7c2f6cb0]:before{content:"\e68f"}.uniui-calendar[data-v-7c2f6cb0]:before{content:"\e6a0"}.uniui-fire[data-v-7c2f6cb0]:before{content:"\e6a1"}.uniui-medal[data-v-7c2f6cb0]:before{content:"\e6a2"}.uniui-font[data-v-7c2f6cb0]:before{content:"\e6a3"}.uniui-gift[data-v-7c2f6cb0]:before{content:"\e6a4"}.uniui-link[data-v-7c2f6cb0]:before{content:"\e6a5"}.uniui-notification[data-v-7c2f6cb0]:before{content:"\e6a6"}.uniui-staff[data-v-7c2f6cb0]:before{content:"\e6a7"}.uniui-vip[data-v-7c2f6cb0]:before{content:"\e6a8"}.uniui-folder-add[data-v-7c2f6cb0]:before{content:"\e6a9"}.uniui-tune[data-v-7c2f6cb0]:before{content:"\e6aa"}.uniui-auth[data-v-7c2f6cb0]:before{content:"\e6ab"}.uniui-person[data-v-7c2f6cb0]:before{content:"\e699"}.uniui-email-filled[data-v-7c2f6cb0]:before{content:"\e69a"}.uniui-phone-filled[data-v-7c2f6cb0]:before{content:"\e69b"}.uniui-phone[data-v-7c2f6cb0]:before{content:"\e69c"}.uniui-email[data-v-7c2f6cb0]:before{content:"\e69e"}.uniui-personadd[data-v-7c2f6cb0]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-7c2f6cb0]:before{content:"\e692"}.uniui-contact[data-v-7c2f6cb0]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-7c2f6cb0]:before{content:"\e694"}.uniui-contact-filled[data-v-7c2f6cb0]:before{content:"\e695"}.uniui-chatboxes[data-v-7c2f6cb0]:before{content:"\e696"}.uniui-chatbubble[data-v-7c2f6cb0]:before{content:"\e697"}.uniui-upload-filled[data-v-7c2f6cb0]:before{content:"\e68e"}.uniui-upload[data-v-7c2f6cb0]:before{content:"\e690"}.uniui-weixin[data-v-7c2f6cb0]:before{content:"\e691"}.uniui-compose[data-v-7c2f6cb0]:before{content:"\e67f"}.uniui-qq[data-v-7c2f6cb0]:before{content:"\e680"}.uniui-download-filled[data-v-7c2f6cb0]:before{content:"\e681"}.uniui-pyq[data-v-7c2f6cb0]:before{content:"\e682"}.uniui-sound[data-v-7c2f6cb0]:before{content:"\e684"}.uniui-trash-filled[data-v-7c2f6cb0]:before{content:"\e685"}.uniui-sound-filled[data-v-7c2f6cb0]:before{content:"\e686"}.uniui-trash[data-v-7c2f6cb0]:before{content:"\e687"}.uniui-videocam-filled[data-v-7c2f6cb0]:before{content:"\e689"}.uniui-spinner-cycle[data-v-7c2f6cb0]:before{content:"\e68a"}.uniui-weibo[data-v-7c2f6cb0]:before{content:"\e68b"}.uniui-videocam[data-v-7c2f6cb0]:before{content:"\e68c"}.uniui-download[data-v-7c2f6cb0]:before{content:"\e68d"}.uniui-help[data-v-7c2f6cb0]:before{content:"\e679"}.uniui-navigate-filled[data-v-7c2f6cb0]:before{content:"\e67a"}.uniui-plusempty[data-v-7c2f6cb0]:before{content:"\e67b"}.uniui-smallcircle[data-v-7c2f6cb0]:before{content:"\e67c"}.uniui-minus-filled[data-v-7c2f6cb0]:before{content:"\e67d"}.uniui-micoff[data-v-7c2f6cb0]:before{content:"\e67e"}.uniui-closeempty[data-v-7c2f6cb0]:before{content:"\e66c"}.uniui-clear[data-v-7c2f6cb0]:before{content:"\e66d"}.uniui-navigate[data-v-7c2f6cb0]:before{content:"\e66e"}.uniui-minus[data-v-7c2f6cb0]:before{content:"\e66f"}.uniui-image[data-v-7c2f6cb0]:before{content:"\e670"}.uniui-mic[data-v-7c2f6cb0]:before{content:"\e671"}.uniui-paperplane[data-v-7c2f6cb0]:before{content:"\e672"}.uniui-close[data-v-7c2f6cb0]:before{content:"\e673"}.uniui-help-filled[data-v-7c2f6cb0]:before{content:"\e674"}.uniui-paperplane-filled[data-v-7c2f6cb0]:before{content:"\e675"}.uniui-plus[data-v-7c2f6cb0]:before{content:"\e676"}.uniui-mic-filled[data-v-7c2f6cb0]:before{content:"\e677"}.uniui-image-filled[data-v-7c2f6cb0]:before{content:"\e678"}.uniui-locked-filled[data-v-7c2f6cb0]:before{content:"\e668"}.uniui-info[data-v-7c2f6cb0]:before{content:"\e669"}.uniui-locked[data-v-7c2f6cb0]:before{content:"\e66b"}.uniui-camera-filled[data-v-7c2f6cb0]:before{content:"\e658"}.uniui-chat-filled[data-v-7c2f6cb0]:before{content:"\e659"}.uniui-camera[data-v-7c2f6cb0]:before{content:"\e65a"}.uniui-circle[data-v-7c2f6cb0]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-7c2f6cb0]:before{content:"\e65c"}.uniui-chat[data-v-7c2f6cb0]:before{content:"\e65d"}.uniui-circle-filled[data-v-7c2f6cb0]:before{content:"\e65e"}.uniui-flag[data-v-7c2f6cb0]:before{content:"\e65f"}.uniui-flag-filled[data-v-7c2f6cb0]:before{content:"\e660"}.uniui-gear-filled[data-v-7c2f6cb0]:before{content:"\e661"}.uniui-home[data-v-7c2f6cb0]:before{content:"\e662"}.uniui-home-filled[data-v-7c2f6cb0]:before{content:"\e663"}.uniui-gear[data-v-7c2f6cb0]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-7c2f6cb0]:before{content:"\e665"}.uniui-map-filled[data-v-7c2f6cb0]:before{content:"\e666"}.uniui-map[data-v-7c2f6cb0]:before{content:"\e667"}.uniui-refresh-filled[data-v-7c2f6cb0]:before{content:"\e656"}.uniui-refresh[data-v-7c2f6cb0]:before{content:"\e657"}.uniui-cloud-upload[data-v-7c2f6cb0]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-7c2f6cb0]:before{content:"\e646"}.uniui-cloud-download[data-v-7c2f6cb0]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-7c2f6cb0]:before{content:"\e648"}.uniui-redo[data-v-7c2f6cb0]:before{content:"\e64a"}.uniui-images-filled[data-v-7c2f6cb0]:before{content:"\e64b"}.uniui-undo-filled[data-v-7c2f6cb0]:before{content:"\e64c"}.uniui-more[data-v-7c2f6cb0]:before{content:"\e64d"}.uniui-more-filled[data-v-7c2f6cb0]:before{content:"\e64e"}.uniui-undo[data-v-7c2f6cb0]:before{content:"\e64f"}.uniui-images[data-v-7c2f6cb0]:before{content:"\e650"}.uniui-paperclip[data-v-7c2f6cb0]:before{content:"\e652"}.uniui-settings[data-v-7c2f6cb0]:before{content:"\e653"}.uniui-search[data-v-7c2f6cb0]:before{content:"\e654"}.uniui-redo-filled[data-v-7c2f6cb0]:before{content:"\e655"}.uniui-list[data-v-7c2f6cb0]:before{content:"\e644"}.uniui-mail-open-filled[data-v-7c2f6cb0]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-7c2f6cb0]:before{content:"\e63c"}.uniui-hand-down[data-v-7c2f6cb0]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-7c2f6cb0]:before{content:"\e63e"}.uniui-hand-up[data-v-7c2f6cb0]:before{content:"\e63f"}.uniui-heart-filled[data-v-7c2f6cb0]:before{content:"\e641"}.uniui-mail-open[data-v-7c2f6cb0]:before{content:"\e643"}.uniui-heart[data-v-7c2f6cb0]:before{content:"\e639"}.uniui-loop[data-v-7c2f6cb0]:before{content:"\e633"}.uniui-pulldown[data-v-7c2f6cb0]:before{content:"\e632"}.uniui-scan[data-v-7c2f6cb0]:before{content:"\e62a"}.uniui-bars[data-v-7c2f6cb0]:before{content:"\e627"}.uniui-cart-filled[data-v-7c2f6cb0]:before{content:"\e629"}.uniui-checkbox[data-v-7c2f6cb0]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-7c2f6cb0]:before{content:"\e62c"}.uniui-shop[data-v-7c2f6cb0]:before{content:"\e62f"}.uniui-headphones[data-v-7c2f6cb0]:before{content:"\e630"}.uniui-cart[data-v-7c2f6cb0]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(/admin/assets/uniicons-89ed7d6d.ttf) format("truetype")}.uni-icons[data-v-7c2f6cb0]{font-family:uniicons;text-decoration:none;text-align:center}.uni-badge--x[data-v-414d462c]{display:inline-block;position:relative}.uni-badge--absolute[data-v-414d462c]{position:absolute}.uni-badge--small[data-v-414d462c]{transform:scale(.8);transform-origin:center center}.uni-badge[data-v-414d462c]{display:flex;overflow:hidden;box-sizing:border-box;font-feature-settings:"tnum";min-width:20px;justify-content:center;flex-direction:row;height:20px;padding:0 4px;line-height:18px;color:#fff;border-radius:100px;background-color:#8f939c;background-color:transparent;border:1px solid #fff;text-align:center;font-family:Helvetica Neue,Helvetica,sans-serif;font-size:12px;z-index:999;cursor:pointer}.uni-badge--info[data-v-414d462c]{color:#fff;background-color:#8f939c}.uni-badge--primary[data-v-414d462c]{background-color:#2979ff}.uni-badge--success[data-v-414d462c]{background-color:#18bc37}.uni-badge--warning[data-v-414d462c]{background-color:#f3a73f}.uni-badge--error[data-v-414d462c]{background-color:#e43d33}.uni-badge--inverted[data-v-414d462c]{padding:0 5px 0 0;color:#8f939c}.uni-badge--info-inverted[data-v-414d462c]{color:#8f939c;background-color:transparent}.uni-badge--primary-inverted[data-v-414d462c]{color:#2979ff;background-color:transparent}.uni-badge--success-inverted[data-v-414d462c]{color:#18bc37;background-color:transparent}.uni-badge--warning-inverted[data-v-414d462c]{color:#f3a73f;background-color:transparent}.uni-badge--error-inverted[data-v-414d462c]{color:#e43d33;background-color:transparent}.uni-popup[data-v-dd488718]{position:fixed;z-index:99}.uni-popup.top[data-v-dd488718],.uni-popup.left[data-v-dd488718],.uni-popup.right[data-v-dd488718]{top:var(--window-top)}.uni-popup .uni-popup__wrapper[data-v-dd488718]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-dd488718],.uni-popup .uni-popup__wrapper.right[data-v-dd488718]{padding-top:var(--window-top);flex:1}.fixforpc-z-index[data-v-dd488718]{z-index:999}.fixforpc-top[data-v-dd488718]{top:0}.uni-calendar-item__weeks-box[data-v-33ef2289]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-33ef2289]{font-size:14px;font-weight:700;color:#00225c}.uni-calendar-item__weeks-box-item[data-v-33ef2289]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px;cursor:pointer}.uni-calendar-item__weeks-box-circle[data-v-33ef2289]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-33ef2289]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-33ef2289]{color:#d1d1d1}.uni-calendar-item--today[data-v-33ef2289]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-33ef2289]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-33ef2289]{background-color:#2979ff;border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--checked .uni-calendar-item--checked-text[data-v-33ef2289]{color:#fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-33ef2289]{color:#333}.uni-calendar-item--multiple[data-v-33ef2289]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-33ef2289],.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-33ef2289]{background-color:#2979ff;border-radius:50%;box-sizing:border-box;border:3px solid #F6F7FC}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-33ef2289],.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-33ef2289]{color:#fff}.uni-calendar-item--before-checked-x[data-v-33ef2289]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-33ef2289]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}.uni-datetime-picker-view[data-v-b41d3aae]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-b41d3aae]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-b41d3aae]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-b41d3aae]{font-size:14px;color:#2979ff}.uni-datetime-picker-btn-group[data-v-b41d3aae]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-b41d3aae]{margin-right:30px}.uni-datetime-picker-mask[data-v-b41d3aae]{position:fixed;bottom:0px;top:0px;left:0px;right:0px;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-b41d3aae]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-b41d3aae]{color:gray}.uni-datetime-picker-column[data-v-b41d3aae]{height:50px}.uni-datetime-picker-timebox[data-v-b41d3aae]{border:1px solid #E5E5E5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-b41d3aae]{cursor:pointer}.uni-datetime-picker-disabled[data-v-b41d3aae]{opacity:.4;cursor:not-allowed!important}.uni-datetime-picker-text[data-v-b41d3aae]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-b41d3aae]{position:absolute;top:53px;color:#999}.sign-left[data-v-b41d3aae]{left:86px}.sign-right[data-v-b41d3aae]{right:86px}.sign-center[data-v-b41d3aae]{left:135px}.uni-datetime-picker__container-box[data-v-b41d3aae]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-b41d3aae]{width:180px}.uni-calendar[data-v-1a59e302]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-1a59e302]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-1a59e302]{opacity:1}.uni-calendar--fixed[data-v-1a59e302]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:transform;transition-duration:.3s;transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-1a59e302]{transform:translateY(0)}.uni-calendar__content[data-v-1a59e302]{background-color:#fff}.uni-calendar__content-mobile[data-v-1a59e302]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-1a59e302]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-1a59e302]{padding:10px 10px 0}.uni-calendar--fixed-top[data-v-1a59e302]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-1a59e302]{width:50px}.uni-calendar__backtoday[data-v-1a59e302]{position:absolute;right:0;top:.78125rem;padding:0 5px 0 10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-1a59e302]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-1a59e302]{text-align:center;width:100px;font-size:14px;color:#2979ff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-1a59e302]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-1a59e302]{width:9px;height:9px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-1a59e302]{transform:rotate(-45deg)}.uni-calendar--right[data-v-1a59e302]{transform:rotate(135deg)}.uni-calendar__weeks[data-v-1a59e302]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-1a59e302]{flex:1}.uni-calendar__weeks-day[data-v-1a59e302]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-1a59e302]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-1a59e302]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-1a59e302]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-1a59e302]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-1a59e302]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-1a59e302]{padding:20px 15px}.uni-date-changed--time-start[data-v-1a59e302],.uni-date-changed--time-end[data-v-1a59e302]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-1a59e302]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-1a59e302]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-1a59e302]{margin-right:10px}.dialog-close[data-v-1a59e302]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-1a59e302]{width:16px;height:2px;background-color:#737987;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-1a59e302]{position:absolute;transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-1a59e302]{border-radius:100px;height:40px;line-height:40px;background-color:#2979ff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-1a59e302]:active{opacity:.7}.uni-date[data-v-62c6ca45]{width:100%;flex:1}.uni-date-x[data-v-62c6ca45]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-62c6ca45]{padding-left:3px}.uni-date-x .range-separator[data-v-62c6ca45]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-62c6ca45]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-62c6ca45]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-62c6ca45]{padding-right:3px;display:flex;align-items:center;cursor:pointer}.uni-date__x-input[data-v-62c6ca45]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-62c6ca45]{text-align:center}.uni-date__input[data-v-62c6ca45]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-62c6ca45]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-62c6ca45]{position:relative}.uni-date-mask--pc[data-v-62c6ca45]{position:fixed;bottom:0px;top:0px;left:0px;right:0px;background-color:rgba(0,0,0,0);transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-62c6ca45],.uni-date-range--x[data-v-62c6ca45]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-62c6ca45]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-62c6ca45]{width:16px;height:16px;vertical-align:middle}.popup-x-header[data-v-62c6ca45]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-62c6ca45]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-62c6ca45]{display:flex}.popup-x-footer[data-v-62c6ca45]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-62c6ca45]:hover{color:#2979ff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-62c6ca45]{margin-left:20px;color:#2979ff}.uni-date-changed[data-v-62c6ca45]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-62c6ca45]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-62c6ca45]{flex:1}.uni-date-changed--time-date[data-v-62c6ca45]{color:#333;opacity:.6}.mr-50[data-v-62c6ca45]{margin-right:50px}.uni-popper__arrow[data-v-62c6ca45],.uni-popper__arrow[data-v-62c6ca45]:after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-62c6ca45]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-62c6ca45]:after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}.uni-table-checkbox[data-v-ff0fdce7]{display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative;margin:5px 0;cursor:pointer}.uni-table-checkbox .checkbox__inner[data-v-ff0fdce7]{flex-shrink:0;box-sizing:border-box;position:relative;width:16px;height:16px;border:1px solid #DCDFE6;border-radius:2px;background-color:#fff;z-index:1}.uni-table-checkbox .checkbox__inner .checkbox__inner-icon[data-v-ff0fdce7]{position:absolute;top:2px;left:5px;height:7px;width:3px;border:1px solid #fff;border-left:0;border-top:0;opacity:0;transform-origin:center;transform:rotate(45deg);box-sizing:content-box}.uni-table-checkbox .checkbox__inner.checkbox--indeterminate[data-v-ff0fdce7]{border-color:#2979ff;background-color:#2979ff}.uni-table-checkbox .checkbox__inner.checkbox--indeterminate .checkbox__inner-icon[data-v-ff0fdce7]{position:absolute;opacity:1;transform:rotate(0);height:2px;top:0;margin:auto;left:0px;right:0px;bottom:0;width:auto;border:none;border-radius:2px;transform:scale(.5);background-color:#fff}.uni-table-checkbox .checkbox__inner[data-v-ff0fdce7]:hover{border-color:#2979ff}.uni-table-checkbox .checkbox__inner.is-disable[data-v-ff0fdce7]{cursor:not-allowed;background-color:#f2f6fc;border-color:#dcdfe6}.uni-table-checkbox .checkbox__inner.is-checked[data-v-ff0fdce7]{border-color:#2979ff;background-color:#2979ff}.uni-table-checkbox .checkbox__inner.is-checked .checkbox__inner-icon[data-v-ff0fdce7]{opacity:1;transform:rotate(45deg)}.uni-table-checkbox .checkbox__inner.is-checked.is-disable[data-v-ff0fdce7]{opacity:.4}.flex-r[data-v-eeb1dcc7]{display:flex;flex-direction:row}.flex-f[data-v-eeb1dcc7]{flex:1}.a-i-c[data-v-eeb1dcc7]{align-items:center}.j-c-c[data-v-eeb1dcc7]{justify-content:center}.icon-select[data-v-eeb1dcc7]{width:14px;height:16px;border:solid 6px transparent;border-top:solid 6px #ddd;border-bottom:none;background-color:#ddd;background-clip:content-box;box-sizing:border-box}.icon-select.active[data-v-eeb1dcc7]{background-color:#2979ff;border-top-color:#2979ff}.icon-search[data-v-eeb1dcc7]{width:12px;height:16px;position:relative}.icon-search-0[data-v-eeb1dcc7]{border:2px solid #ddd;border-radius:8px;width:7px;height:7px}.icon-search-1[data-v-eeb1dcc7]{position:absolute;top:8px;right:0;width:1px;height:7px;background-color:#ddd;transform:rotate(-45deg)}.icon-search.active .icon-search-0[data-v-eeb1dcc7]{border-color:#2979ff}.icon-search.active .icon-search-1[data-v-eeb1dcc7]{background-color:#2979ff}.icon-calendar[data-v-eeb1dcc7]{color:#ddd;width:14px;height:16px}.icon-calendar-0[data-v-eeb1dcc7]{height:4px;margin-top:3px;margin-bottom:1px;background-color:#ddd;border-radius:2px 2px 1px 1px;position:relative}.icon-calendar-0[data-v-eeb1dcc7]:before,.icon-calendar-0[data-v-eeb1dcc7]:after{content:"";position:absolute;top:-3px;width:4px;height:3px;border-radius:1px;background-color:#ddd}.icon-calendar-0[data-v-eeb1dcc7]:before{left:2px}.icon-calendar-0[data-v-eeb1dcc7]:after{right:2px}.icon-calendar-1[data-v-eeb1dcc7]{height:9px;background-color:#ddd;border-radius:1px 1px 2px 2px}.icon-calendar.active[data-v-eeb1dcc7]{color:#2979ff}.icon-calendar.active .icon-calendar-0[data-v-eeb1dcc7],.icon-calendar.active .icon-calendar-1[data-v-eeb1dcc7],.icon-calendar.active .icon-calendar-0[data-v-eeb1dcc7]:before,.icon-calendar.active .icon-calendar-0[data-v-eeb1dcc7]:after{background-color:#2979ff}.uni-filter-dropdown[data-v-eeb1dcc7]{position:relative;font-weight:400}.dropdown-popup[data-v-eeb1dcc7]{position:absolute;top:100%;background-color:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);min-width:150px;z-index:1000}.dropdown-popup-left[data-v-eeb1dcc7]{left:0}.dropdown-popup-right[data-v-eeb1dcc7]{right:0}.uni-dropdown-cover[data-v-eeb1dcc7]{position:fixed;left:0;top:0;right:0;bottom:0;background-color:transparent;z-index:100}.list[data-v-eeb1dcc7]{margin-top:5px;margin-bottom:5px}.list-item[data-v-eeb1dcc7]{padding:5px 10px;text-align:left}.list-item[data-v-eeb1dcc7]:hover{background-color:#f0f0f0}.check[data-v-eeb1dcc7]{margin-right:5px}.search-area[data-v-eeb1dcc7]{padding:10px}.search-input[data-v-eeb1dcc7]{font-size:12px;border:1px solid #f0f0f0;border-radius:3px;padding:2px 5px;min-width:150px;text-align:left}.input-label[data-v-eeb1dcc7]{margin:10px 10px 5px;text-align:left}.input[data-v-eeb1dcc7]{font-size:12px;border:1px solid #f0f0f0;border-radius:3px;margin:10px;padding:2px 5px;min-width:150px;text-align:left}.opera-area[data-v-eeb1dcc7]{cursor:default;border-top:1px solid #ddd;padding:5px}.opera-area .btn[data-v-eeb1dcc7]{font-size:12px;border-radius:3px;margin:5px;padding:4px}.btn-default[data-v-eeb1dcc7]{border:1px solid #ddd}.btn-default.disable[data-v-eeb1dcc7]{border-color:transparent}.btn-submit[data-v-eeb1dcc7]{background-color:#2979ff;color:#fff}.uni-table-th[data-v-46096bb8]{padding:12px 10px;display:table-cell;box-sizing:border-box;font-size:14px;font-weight:700;color:#909399;border-bottom:1px #ebeef5 solid}.uni-table-th-row[data-v-46096bb8]{display:flex;flex-direction:row}.table--border[data-v-46096bb8]{border-right:1px #ebeef5 solid}.uni-table-th-content[data-v-46096bb8]{display:flex;align-items:center;flex:1}.arrow[data-v-46096bb8]{display:block;position:relative;width:10px;height:8px;left:5px;overflow:hidden;cursor:pointer}.down[data-v-46096bb8]{top:3px}.down[data-v-46096bb8] :after{content:"";width:8px;height:8px;position:absolute;left:2px;top:-5px;transform:rotate(45deg);background-color:#ccc}.down.active[data-v-46096bb8] :after{background-color:#2979ff}.up[data-v-46096bb8] :after{content:"";width:8px;height:8px;position:absolute;left:2px;top:5px;transform:rotate(45deg);background-color:#ccc}.up.active[data-v-46096bb8] :after{background-color:#2979ff}.uni-table-tr[data-v-81e49fd2]{display:table-row;transition:all .3s;box-sizing:border-box}.checkbox[data-v-81e49fd2]{width:26px;padding:0 8px 0 12px;display:table-cell;vertical-align:middle;color:#333;font-weight:500;border-bottom:1px #ebeef5 solid;font-size:14px}.tr-table--border[data-v-81e49fd2]{border-right:1px #ebeef5 solid}.uni-table-td[data-v-aef02679]{display:table-cell;padding:8px 10px;font-size:14px;border-bottom:1px #EBEEF5 solid;font-weight:400;color:#606266;line-height:23px;box-sizing:border-box}.table--border[data-v-aef02679]{border-right:1px #EBEEF5 solid}.uni-table-scroll[data-v-82f3199e]{width:100%;overflow-x:auto}.uni-table[data-v-82f3199e]{position:relative;width:100%;border-radius:5px;background-color:#fff;box-sizing:border-box;display:table;overflow-x:auto}.uni-table[data-v-82f3199e] .uni-table-tr:nth-child(n+2):hover{background-color:#f5f7fa}.uni-table[data-v-82f3199e] .uni-table-thead .uni-table-tr:hover{background-color:#fafafa}.table--border[data-v-82f3199e]{border:1px #ebeef5 solid;border-right:none}.border-none[data-v-82f3199e]{border-bottom:none}.table--stripe[data-v-82f3199e] .uni-table-tr:nth-child(2n+3){background-color:#fafafa}.uni-table-loading[data-v-82f3199e]{position:relative;display:table-row;height:50px;line-height:50px;overflow:hidden;box-sizing:border-box}.empty-border[data-v-82f3199e]{border-right:1px #ebeef5 solid}.uni-table-text[data-v-82f3199e]{position:absolute;right:0;left:0;text-align:center;font-size:14px;color:#999}.uni-table-mask[data-v-82f3199e]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,255,255,.8);z-index:99;display:flex;margin:auto;transition:all .5s;justify-content:center;align-items:center}.uni-table--loader[data-v-82f3199e]{width:30px;height:30px;border:2px solid #aaa;border-radius:50%;animation:2s uni-table--loader-82f3199e linear infinite;position:relative}@keyframes uni-table--loader-82f3199e{0%{transform:rotate(360deg)}10%{border-left-color:transparent}20%{border-bottom-color:transparent}30%{border-right-color:transparent}40%{border-top-color:transparent}50%{transform:rotate(0)}60%{border-top-color:transparent}70%{border-left-color:transparent}80%{border-bottom-color:transparent}90%{border-right-color:transparent}to{transform:rotate(-360deg)}}.err-msg[data-v-880e209b]{color:red}.err-search[data-v-880e209b]{margin-right:10px}.header[data-v-c2e6313c]{height:60px;width:100%;box-sizing:border-box;border-bottom:1px solid #ebebeb;background-color:#fff;color:#999}.navbar[data-v-c2e6313c]{font-size:14px;position:relative;height:100%;padding:0 20px;display:flex;justify-content:space-between;align-items:center}.logo[data-v-c2e6313c]{min-width:223px;display:flex;align-items:center}.logo .logo-image[data-v-c2e6313c]{width:30px;height:30px}.logo .logo-text[data-v-c2e6313c]{margin-left:8px}.menu-icon[data-v-c2e6313c]{width:30px;height:30px;line-height:30px}.navbar-middle[data-v-c2e6313c],.navbar-right[data-v-c2e6313c]{flex:1}.navbar-right-item-gap[data-v-c2e6313c]{margin-right:30px}.navbar-left[data-v-c2e6313c]{display:flex}@media screen and (max-width: 767px){.navbar-left[data-v-c2e6313c]{flex:1}}.navbar-middle[data-v-c2e6313c],.username[data-v-c2e6313c]{display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navbar-middle[data-v-c2e6313c]{text-align:center}.username[data-v-c2e6313c]{max-width:150px}.title-text[data-v-c2e6313c]{font-size:14px;line-height:30px}.navbar-menu[data-v-c2e6313c]{display:flex}.menu-item[data-v-c2e6313c]{padding:8px;font-size:16px;color:#555;line-height:1}.debug[data-v-c2e6313c]{display:inline-block;position:relative}.debug-badge[data-v-c2e6313c]{position:absolute;top:5px;right:14px;transform:translateY(-50%) translate(100%) scale(.8)}.arrowdown[data-v-c2e6313c]{margin-top:4px;margin-left:3px}.person[data-v-c2e6313c]{margin-top:2px;margin-right:2px}.navbar-right[data-v-c2e6313c]{display:flex;justify-content:flex-end;align-items:center}.navbar-right .uni-mask[data-v-c2e6313c]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0);z-index:999}.popup-menu__arrow[data-v-c2e6313c]{position:absolute;top:-6px;right:20px;border-width:6px;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5;filter:drop-shadow(0 6px 12px rgba(0,0,0,.1))}.popup-menu__arrow[data-v-c2e6313c]:after{content:" ";position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:10px;top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.menu-icon[data-v-c2e6313c],.navbar-middle[data-v-c2e6313c],.popup-menu__arrow[data-v-c2e6313c],.navbar-right .uni-mask[data-v-c2e6313c]{display:none}.navbar-mini .menu-icon[data-v-c2e6313c]{display:block}.navbar-user[data-v-c2e6313c]{display:flex;justify-content:center;align-items:center}.navbar-mini .logo[data-v-c2e6313c],.navbar-mini .debug[data-v-c2e6313c],.navbar-menu[data-v-c2e6313c]{display:none}.navbar-menu[data-v-c2e6313c]{width:100px;flex-direction:column;align-items:center;justify-content:center;position:absolute;right:0;top:27px;z-index:999;padding:10px 0;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;box-shadow:0 6px 12px rgba(0,0,0,.5)}.popup-menu .navbar-menu[data-v-c2e6313c]{display:flex}.popup-menu .popup-menu__arrow[data-v-c2e6313c],.popup-menu .navbar-right .uni-mask[data-v-c2e6313c]{display:block}.hover-highlight[data-v-c2e6313c]:hover{color:#409eff}.svg-icon[data-v-c2e6313c]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.password-popup[data-v-c2e6313c]{padding:30px}.language-item[data-v-c2e6313c]{font-stretch:12px;vertical-align:baseline;text-decoration:underline}.lang-icon[data-v-c2e6313c]{font-size:18px;margin-top:5px;margin-right:30px}.user-icon[data-v-c2e6313c]{font-size:20px}.uni-menu-item[data-v-0f52fd32]{display:flex;align-items:center;padding:0 20px;height:56px;line-height:56px;color:#303133;transition:all .3s;cursor:pointer}.uni-menu-item[data-v-0f52fd32]:hover{outline:none;background-color:#ebebeb;transition:all .3s}.is-active[data-v-0f52fd32]{color:#2979ff}.is-disabled[data-v-0f52fd32]{color:#999}.uni-menu-item.is-disabled[data-v-0f52fd32]:hover{background-color:inherit;color:#999;cursor:not-allowed}.uni-sub-menu[data-v-914d30f1]{position:relative}.uni-sub-menu__title[data-v-914d30f1]{display:flex;align-items:center;padding:0 10px 0 20px;height:56px;line-height:56px;color:#303133;cursor:pointer}.uni-sub-menu__title[data-v-914d30f1]:hover{color:#42b983;outline:none;background-color:#ebebeb}.uni-sub-menu__title-sub[data-v-914d30f1]{display:flex;align-items:center;flex:1}.uni-sub-menu--close[data-v-914d30f1]{height:0}.uni-sub-menu__content[data-v-914d30f1]{overflow:hidden}.uni-sub-menu__icon[data-v-914d30f1]{max-height:auto;transition:all .2s}.transition[data-v-914d30f1]{transform:rotate(-180deg)}.is-disabled[data-v-914d30f1]{color:red}.uni-sub-menu__title.is-disabled[data-v-914d30f1]:hover{background-color:inherit;color:#999;cursor:not-allowed}.title[data-v-267e9cbb]{margin-left:5px}.uni-nav-menu[data-v-55c83ed4]{width:240px;background-color:#fff;font-size:14px}.sidebar[data-v-c6591093]{position:fixed;width:240px;height:calc(100vh - (var(--top-window-height)));box-sizing:border-box;border-right:1px solid #ebebeb;background-color:#fff;padding-bottom:10px}.sidebar[data-v-c6591093] ::-webkit-scrollbar{display:none}.title[data-v-c6591093]{margin-left:5px}*{margin:0;-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%;height:100%}body,uni-page-body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}body{overflow-x:hidden;font-size:16px}uni-app,uni-page,uni-page-wrapper,uni-page-body{display:block;box-sizing:border-box;width:100%}uni-page-wrapper{position:relative}#app,uni-app,uni-page,uni-page-wrapper{height:100%}.uni-mask{position:fixed;z-index:999;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.5)}.uni-fade-enter-active,.uni-fade-leave-active{transition-duration:.25s;transition-property:opacity;transition-timing-function:ease}.uni-fade-enter-from,.uni-fade-leave-active{opacity:0}.uni-loading,uni-button[loading]:before{background-color:transparent;background-image:url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=);background-repeat:no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}html{--primary-color: #007aff;--UI-BG: #fff;--UI-BG-1: #f7f7f7;--UI-BG-2: #fff;--UI-BG-3: #f7f7f7;--UI-BG-4: #4c4c4c;--UI-BG-5: #fff;--UI-FG: #000;--UI-FG-0: rgba(0, 0, 0, .9);--UI-FG-HALF: rgba(0, 0, 0, .9);--UI-FG-1: rgba(0, 0, 0, .5);--UI-FG-2: rgba(0, 0, 0, .3);--UI-FG-3: rgba(0, 0, 0, .1)}body:after{position:fixed;content:"";left:-1000px;top:-1000px;animation:shadow-preload .1s;animation-delay:3s}@keyframes shadow-preload{0%{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}to{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}}.uni-async-error{position:absolute;left:0;right:0;top:0;bottom:0;color:#999;padding:100px 10px;text-align:center}.uni-async-loading{box-sizing:border-box;width:100%;padding:50px;text-align:center}.uni-async-loading .uni-loading{width:30px;height:30px}uni-content{display:flex;flex:1 0 auto;height:100%}uni-main{flex:1;width:100%}uni-top-window+uni-content{height:calc(100vh - var(--top-window-height))}uni-left-window{position:relative;width:var(--window-left);order:-1;overflow-x:hidden}uni-right-window{position:relative;width:var(--window-right);overflow-x:hidden}uni-left-window[data-show],uni-right-window[data-show]{position:absolute}uni-right-window[data-show]{right:0}uni-content .uni-mask,.uni-left-window,.uni-right-window{z-index:997}.uni-top-window{position:fixed;left:var(--window-margin);right:var(--window-margin);top:0;z-index:998;overflow:hidden}uni-page-head{display:block;box-sizing:border-box}.uni-page-head{position:fixed;left:var(--window-left);right:var(--window-right);height:44px;height:calc(44px + constant(safe-area-inset-top));height:calc(44px + env(safe-area-inset-top));padding:7px 3px;padding-top:calc(7px + constant(safe-area-inset-top));padding-top:calc(7px + env(safe-area-inset-top));display:flex;overflow:hidden;justify-content:space-between;box-sizing:border-box;z-index:998;color:#fff;background-color:#000;transition-property:all}.uni-page-head *{box-sizing:border-box}.uni-page-head .uni-btn-icon{overflow:hidden;min-width:1em;font-style:normal}.uni-page-head-titlePenetrate,.uni-page-head-titlePenetrate .uni-page-head-bd,.uni-page-head-titlePenetrate .uni-page-head-bd *{pointer-events:none}.uni-page-head-titlePenetrate *{pointer-events:auto}.uni-page-head.uni-page-head-transparent .uni-page-head-ft>div{justify-content:center}.uni-page-head~.uni-placeholder{width:100%;height:44px;height:calc(44px + constant(safe-area-inset-top));height:calc(44px + env(safe-area-inset-top))}.uni-placeholder-titlePenetrate{pointer-events:none}.uni-page-head-hd{display:flex;align-items:center;font-size:16px}.uni-page-head-bd{position:absolute;left:70px;right:70px;min-width:0;-webkit-user-select:auto;user-select:auto}.uni-page-head-btn{position:relative;width:auto;margin:0 2px;word-break:keep-all;white-space:pre;cursor:pointer}.uni-page-head-btn svg{margin-top:-2px}.uni-page-head-transparent .uni-page-head-btn{display:flex;align-items:center;width:32px;height:32px;border-radius:50%;background-color:rgba(0,0,0,.5)}.uni-page-head-btn-red-dot:after{content:attr(badge-text);position:absolute;right:0;top:0;background-color:red;color:#fff;width:18px;height:18px;line-height:18px;border-radius:18px;overflow:hidden;transform:scale(.5) translate(40%,-40%);transform-origin:100% 0}.uni-page-head-btn-red-dot[badge-text]:after{font-size:12px;width:auto;min-width:18px;max-width:42px;text-align:center;padding:0 3px;transform:scale(.7) translate(40%,-40%)}.uni-page-head-btn-select svg{vertical-align:middle;margin-left:2px;transform:rotate(270deg) scale(.8)}.uni-page-head-search{position:relative;display:flex;flex:1;margin:0 2px;line-height:30px;font-size:15px}.uni-page-head-search-input{width:100%;height:100%;padding-left:34px;text-align:left}.uni-page-head-search-placeholder{position:absolute;max-width:100%;height:100%;padding-left:34px;overflow:hidden;word-break:keep-all;white-space:pre}.uni-page-head-search-placeholder-right{right:0}.uni-page-head-search-placeholder-center{left:50%;transform:translate(-50%)}.uni-page-head-search-icon{position:absolute;top:0;left:2px;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.uni-page-head-ft{display:flex;align-items:center;flex-direction:row-reverse;font-size:13px}.uni-page-head__title{font-weight:700;font-size:16px;line-height:30px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-page-head__title .uni-loading{width:16px;height:16px;margin-top:-3px}.uni-page-head__title .uni-page-head__title_image{width:auto;height:26px;vertical-align:middle}.uni-page-head-shadow{overflow:visible}.uni-page-head-shadow:after{content:"";position:absolute;left:0;right:0;top:100%;height:5px;background-size:100% 100%}.uni-page-head-shadow-grey:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-grey.png)}.uni-page-head-shadow-blue:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-blue.png)}.uni-page-head-shadow-green:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-green.png)}.uni-page-head-shadow-orange:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-orange.png)}.uni-page-head-shadow-red:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-red.png)}.uni-page-head-shadow-yellow:after{background-image:url(https://cdn.dcloud.net.cn/img/shadow-yellow.png)}uni-page-head[uni-page-head-type=default]~uni-page-wrapper{height:calc(100% - 44px);height:calc(100% - 44px - constant(safe-area-inset-top));height:calc(100% - 44px - env(safe-area-inset-top))}body,html{-webkit-user-select:auto;user-select:auto;font-size:16px}.uni-app--showleftwindow uni-main{position:relative;background-color:#f5f5f5}.uni-mask+.uni-left-window,.uni-mask+.uni-right-window{position:fixed}.uni-app--showleftwindow uni-page-head .uni-page-head{color:#333!important}uni-page-head .uni-btn-icon{color:#333!important}.uni-app--showleftwindow uni-page-head[uni-page-head-type=default]~uni-page-wrapper{height:auto;padding-top:44px}.uni-app--showleftwindow uni-page-wrapper{position:absolute;width:100%;top:0;bottom:0;padding:15px;overflow-y:auto;box-sizing:border-box;background-color:#f5f5f5}.uni-app--showleftwindow uni-page-body{width:100%;min-height:100%;box-sizing:border-box;border-radius:5px;box-shadow:-1px -1px 5px rgba(0,0,0,.1);background-color:#fff}.uni-app--showleftwindow .uni-container .uni-forms{padding:15px;max-width:650px}.pointer{cursor:pointer}.uni-top-window{z-index:999;overflow:visible}.uni-tips{font-size:12px;color:#666}.uni-container{padding:15px;box-sizing:border-box}.uni-header{padding:0 15px;display:flex;min-height:55px;align-items:center;justify-content:space-between;border-bottom:1px #f5f5f5 solid;flex-wrap:wrap}.uni-title{margin-right:10px;font-size:16px;font-weight:500;color:#333}.uni-sub-title{margin-top:3px;font-size:14px;color:#999}.uni-link{color:#3a8ee6;cursor:pointer;text-decoration:underline}.uni-group{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;word-break:keep-all}.uni-button-group{margin-top:30px;display:flex;align-items:center;justify-content:center}.uni-button{padding:10px 20px;font-size:14px;border-radius:4px;line-height:1;margin:0;box-sizing:border-box;overflow:initial}.uni-group .uni-button,.uni-group .uni-search{margin:10px}.uni-group>.uni-button:first-child{margin-left:0}.uni-button:hover,.uni-button:focus{opacity:.9}.uni-button:active{opacity:1}.uni-button-full{width:100%}.uni-search{width:268px;height:28px;line-height:28px;font-size:12px;color:#606266;padding:0 10px;border:1px #dcdfe6 solid;border-radius:3px}.uni-pagination-box{margin-top:20px}.uni-input-border,.uni-textarea-border{width:100%;font-size:14px;color:#666;border:1px #e5e5e5 solid;border-radius:5px;box-sizing:border-box}.uni-input-border{padding:0 10px;height:35px}.uni-textarea-border{padding:10px;height:80px}.uni-disabled{background-color:#f5f7fa;color:#c0c4cc}.uni-icon-password-eye{position:absolute;right:8px;top:6px;font-family:uniicons;font-size:20px;font-weight:400;font-style:normal;width:24px;height:24px;line-height:24px;color:#999}.uni-eye-active{color:#007aff}.uni-tabs__header{position:relative;background-color:#f5f7fa;border-bottom:1px solid #e4e7ed}.uni-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.uni-tabs__nav-scroll{overflow:hidden}.uni-tabs__nav{position:relative;white-space:nowrap}.uni-tabs__item{position:relative;padding:0 20px;height:40px;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:500;color:#909399;margin-top:-1px;margin-left:-1px;border:1px solid transparent;cursor:pointer}.uni-tabs__item.is-active{color:$uni-color-primary;background-color:#fff;border-right-color:#dcdfe6;border-left-color:#dcdfe6}.uni-form-item-tips{color:#999;font-size:12px;margin-top:10px}.uni-form-item-empty{color:#999;min-height:36px;line-height:36px}.uni-forms-item__label .label-text{color:#606266!important}.flex-center-x .uni-forms-item__content{display:flex;align-items:center;flex-wrap:wrap}.link-btn{line-height:26px;margin-top:5px;color:#007aff!important;text-decoration:underline;cursor:pointer}uni-button[size=mini]{line-height:2.4;font-size:12px;border-radius:3px}uni-button{background:#fff;border:1px solid #dcdfe6;color:#606266;box-sizing:border-box}uni-button[type=primary]{background-color:#409eff;border-color:#409eff;border-width:0}uni-button[type=warn]{background-color:#f56c6c;border-color:#f56c6c;border-width:0}uni-button[type=default]{background:#fff;border:1px solid #dcdfe6;color:#606266;box-sizing:border-box}uni-button[type=primary][plain]{border-color:#409eff;color:#409eff}uni-button[type=warn][plain]{border-color:#f56c6c;color:#f56c6c}uni-button[type=default][plain]{border-color:#dcdfe6;color:#606266}uni-button[plain]{border-color:#dcdfe6;color:#606266}uni-button:after{border-width:0}.uni-input-placeholder{color:#999}.uni-pagination-box{display:flex;align-items:center;justify-content:center}.select-picker{margin-right:20px}.select-picker uni-button{margin-top:5px;line-height:29px;font-size:14px}.select-picker uni-button uni-text{color:#999}.select-picker-icon{margin-left:8px}.m-m{margin:15px!important}.mb-s{margin-bottom:5px}.mb-m{margin-bottom:15px!important}.mb-l{margin-bottom:30px!important}.ml-s{margin-left:5px}.ml-m{margin-left:15px!important}.ml-l{margin-left:30px!important}.p-m{padding:15px}.p-channel{padding:0 15px 15px}.p-1015{padding:10px 15px}.uni-charts-box{width:100%;height:350px}.uni-stat--x{border-radius:4px;box-shadow:-1px -1px 5px rgba(0,0,0,.1);margin-bottom:15px}.flex{display:flex;flex-wrap:wrap;align-items:center}.label-text{font-size:14px;font-weight:700;color:#555;margin:auto 5px auto 0}.uni-stat-edit--x{display:flex;justify-content:space-between}.uni-stat-edit--btn{cursor:pointer}.uni-stat-datetime-picker{margin:15px}.modal{max-width:calc(100vw - 200px);min-width:600px;margin:0 auto;background-color:#fff}.modal-header{padding:20px 0;text-align:center;border-bottom:1px solid #eee}.modal-footer{padding:20px;display:flex;justify-content:flex-end;align-items:center}.modal-content{padding:15px;height:600px;box-sizing:border-box}.uni-stat-tooltip-s{width:160px;white-space:normal}@media screen and (max-width: 500px){.hide-on-phone{display:none!important}.uni-charts-box{width:100%;height:220px}.uni-group .uni-search{height:32px;line-height:32px;width:100%;margin:20px 20px 10px}.uni-header{padding-left:0;padding-right:0;border:unset}.uni-group{width:100%}.uni-stat-breadcrumb-on-phone{padding:0 20px!important;border-bottom:1px #f5f5f5 solid}.flex{width:100%;display:flex;flex-wrap:wrap;align-items:center}}@media screen and (min-width: 500px){.dispaly-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.pc-flex-wrap{display:flex;flex-wrap:wrap;align-items:center}.uni-stat-datetime-picker{max-width:350px}.uni-pagination-picker-show .uni-picker-container .uni-picker-custom{width:100px;margin:0 86px}.uni-pagination-picker-show .uni-picker-container .uni-picker-custom .uni-picker-select+div{left:50%!important}}.uni-table-scroll{min-height:calc(100vh - 237px);box-sizing:border-box}.uni-table .tr-table--border{border-left:1px #ebeef5 solid}@font-face{font-family:uni-icons;src:url(/admin/assets/uni-173d2b94.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class*=" uni-icons-"],[class^=uni-icons-]{font-family:uni-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.uni-icons-shop:before{content:"\e609"}.uni-icons-headphones:before{content:"\e8bf"}.uni-icons-pulldown:before{content:"\e588"}.uni-icons-scan:before{content:"\e612"}.uni-icons-back:before{content:"\e471"}.uni-icons-forward:before{content:"\e470"}.uni-icons-refreshempty:before{content:"\e461"}.uni-icons-checkbox-filled:before{content:"\e442"}.uni-icons-checkbox:before{content:"\e7fa"}.uni-icons-loop:before{content:"\e565"}.uni-icons-arrowthindown:before{content:"\e585"}.uni-icons-arrowthinleft:before{content:"\e586"}.uni-icons-arrowthinright:before{content:"\e587"}.uni-icons-arrowthinup:before{content:"\e584"}.uni-icons-bars:before{content:"\e563"}.uni-icons-cart-filled:before{content:"\e7f4"}.uni-icons-cart:before{content:"\e7f5"}.uni-icons-arrowleft:before{content:"\e582"}.uni-icons-arrowdown:before{content:"\e581"}.uni-icons-arrowright:before{content:"\e583"}.uni-icons-arrowup:before{content:"\e580"}.uni-icons-eye-filled:before{content:"\e568"}.uni-icons-eye-slash-filled:before{content:"\e822"}.uni-icons-eye-slash:before{content:"\e823"}.uni-icons-eye:before{content:"\e824"}.uni-icons-reload:before{content:"\e462"}.uni-icons-hand-thumbsdown-filled:before{content:"\e83b"}.uni-icons-hand-thumbsdown:before{content:"\e83c"}.uni-icons-hand-thumbsup-filled:before{content:"\e83d"}.uni-icons-heart-filled:before{content:"\e83e"}.uni-icons-hand-thumbsup:before{content:"\e83f"}.uni-icons-heart:before{content:"\e840"}.uni-icons-mail-open-filled:before{content:"\e84d"}.uni-icons-mail-open:before{content:"\e84e"}.uni-icons-list:before{content:"\e562"}.uni-icons-map-pin:before{content:"\e85e"}.uni-icons-map-pin-ellipse:before{content:"\e864"}.uni-icons-paperclip:before{content:"\e567"}.uni-icons-images-filled:before{content:"\e87a"}.uni-icons-images:before{content:"\e87b"}.uni-icons-search:before{content:"\e466"}.uni-icons-settings:before{content:"\e560"}.uni-icons-cloud-download:before{content:"\e8e4"}.uni-icons-cloud-upload-filled:before{content:"\e8e5"}.uni-icons-cloud-upload:before{content:"\e8e6"}.uni-icons-cloud-download-filled:before{content:"\e8e9"}.uni-icons-more:before{content:"\e507"}.uni-icons-more-filled:before{content:"\e537"}.uni-icons-refresh:before{content:"\e407"}.uni-icons-refresh-filled:before{content:"\e437"}.uni-icons-undo-filled:before{content:"\e7d6"}.uni-icons-undo:before{content:"\e406"}.uni-icons-redo:before{content:"\e405"}.uni-icons-redo-filled:before{content:"\e7d9"}.uni-icons-camera:before{content:"\e301"}.uni-icons-camera-filled:before{content:"\e7ef"}.uni-icons-smallcircle-filled:before{content:"\e801"}.uni-icons-circle:before{content:"\e411"}.uni-icons-flag-filled:before{content:"\e825"}.uni-icons-flag:before{content:"\e508"}.uni-icons-gear-filled:before{content:"\e532"}.uni-icons-gear:before{content:"\e502"}.uni-icons-home:before{content:"\e500"}.uni-icons-info:before{content:"\e504"}.uni-icons-home-filled:before{content:"\e530"}.uni-icons-info-filled:before{content:"\e534"}.uni-icons-circle-filled:before{content:"\e441"}.uni-icons-chat-filled:before{content:"\e847"}.uni-icons-chat:before{content:"\e263"}.uni-icons-checkmarkempty:before{content:"\e472"}.uni-icons-locked-filled:before{content:"\e856"}.uni-icons-locked:before{content:"\e506"}.uni-icons-map-filled:before{content:"\e85c"}.uni-icons-map:before{content:"\e364"}.uni-icons-minus-filled:before{content:"\e440"}.uni-icons-mic-filled:before{content:"\e332"}.uni-icons-minus:before{content:"\e410"}.uni-icons-micoff:before{content:"\e360"}.uni-icons-mic:before{content:"\e302"}.uni-icons-clear:before{content:"\e434"}.uni-icons-smallcircle:before{content:"\e868"}.uni-icons-close:before{content:"\e404"}.uni-icons-closeempty:before{content:"\e460"}.uni-icons-paperplane:before{content:"\e503"}.uni-icons-paperplane-filled:before{content:"\e86e"}.uni-icons-image:before{content:"\e363"}.uni-icons-image-filled:before{content:"\e877"}.uni-icons-location-filled:before{content:"\e333"}.uni-icons-location:before{content:"\e303"}.uni-icons-plus-filled:before{content:"\e439"}.uni-icons-plus:before{content:"\e409"}.uni-icons-plusempty:before{content:"\e468"}.uni-icons-help-filled:before{content:"\e535"}.uni-icons-help:before{content:"\e505"}.uni-icons-navigate-filled:before{content:"\e884"}.uni-icons-navigate:before{content:"\e501"}.uni-icons-mic-slash-filled:before{content:"\e892"}.uni-icons-sound:before{content:"\e590"}.uni-icons-sound-filled:before{content:"\e8a1"}.uni-icons-spinner-cycle:before{content:"\e465"}.uni-icons-download-filled:before{content:"\e8a4"}.uni-icons-videocam-filled:before{content:"\e8af"}.uni-icons-upload:before{content:"\e402"}.uni-icons-upload-filled:before{content:"\e8b1"}.uni-icons-starhalf:before{content:"\e463"}.uni-icons-star-filled:before{content:"\e438"}.uni-icons-star:before{content:"\e408"}.uni-icons-trash:before{content:"\e401"}.uni-icons-compose:before{content:"\e400"}.uni-icons-videocam:before{content:"\e300"}.uni-icons-trash-filled:before{content:"\e8dc"}.uni-icons-download:before{content:"\e403"}.uni-icons-qq:before{content:"\e264"}.uni-icons-weibo:before{content:"\e260"}.uni-icons-weixin:before{content:"\e261"}.uni-icons-pengyouquan:before{content:"\e262"}.uni-icons-chatboxes:before{content:"\e203"}.uni-icons-chatboxes-filled:before{content:"\e233"}.uni-icons-email-filled:before{content:"\e231"}.uni-icons-email:before{content:"\e201"}.uni-icons-person-filled:before{content:"\e131"}.uni-icons-contact-filled:before{content:"\e130"}.uni-icons-person:before{content:"\e101"}.uni-icons-contact:before{content:"\e100"}.uni-icons-phone:before{content:"\e200"}.uni-icons-personadd-filled:before{content:"\e132"}.uni-icons-personadd:before{content:"\e102"}.uni-icons-phone-filled:before{content:"\e230"}.uni-icons-chatbubble-filled:before{content:"\e232"}.uni-icons-chatbubble:before{content:"\e202"}@font-face{font-family:admin-icons;src:url(/admin/assets/admin-icons-dec9f887.ttf) format("truetype");font-weight:400;font-display:"auto";font-style:normal}[class*=admin-icons-],[class^=admin-icons-]{font-family:admin-icons!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;vertical-align:baseline;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.admin-icons-stat:before{content:"\e64a"}.admin-icons-fl-xitong:before{content:"\e623"}.admin-icons-tongji:before{content:"\e64a"}.admin-icons-yonghutongji:before{content:"\e661"}.admin-icons-dashboard:before{content:"\e78b"}.admin-icons-qudaofenxi:before{content:"\e6c6"}.admin-icons-shebeitongji:before{content:"\e6fd"}.admin-icons-xitongguanli:before{content:"\e671"}.admin-icons-kaifashili:before{content:"\e614"}.admin-icons-yonghutongji1:before{content:"\e769"}.admin-icons-shijianfenxi:before{content:"\e604"}.admin-icons-ziyuan:before{content:"\e619"}.admin-icons-cuowutongji:before{content:"\e51f"}.admin-icons-shijianfenxi1:before{content:"\e629"}.admin-icons-tongjishouye:before{content:"\e679"}.admin-icons-yemiantongji:before{content:"\e684"}.admin-icons-manager-user:before{content:"\e610"}.admin-icons-manager-role:before{content:"\e61a"}.admin-icons-manager-permission:before{content:"\e637"}.admin-icons-manager-app:before{content:"\e65b"}.admin-icons-manager-tag:before{content:"\e83c"}.admin-icons-manager-menu:before{content:"\e629"}.admin-icons-overview:before{content:"\e609"}.admin-icons-activity:before{content:"\e70e"}.admin-icons-trend:before{content:"\e63c"}.admin-icons-retention:before{content:"\e697"}.admin-icons-comparison:before{content:"\e955"}.admin-icons-stickiness:before{content:"\e770"}.admin-icons-page-ent:before{content:"\e767"}.admin-icons-page-res:before{content:"\e69b"}.admin-icons-scene:before{content:"\e601"}.admin-icons-channel:before{content:"\e603"}.admin-icons-error-js:before{content:"\ec0c"}.admin-icons-error-app:before{content:"\e617"}.admin-icons-help:before{content:"\e65c"}.admin-icons-icon:before{content:"\e503"}.admin-icons-table:before{content:"\e639"}.admin-icons-eco:before{content:"\e698"}.admin-icons-doc:before{content:"\e656"}.admin-icons-pulgin:before{content:"\e648"}.admin-icons-lang:before{content:"\e618"}.admin-icons-user:before{content:"\e68d"}.admin-icons-safety:before{content:"\e769"}[data-theme=default] uni-button[type=primary],[data-theme=default] uni-button[type=primary]{background-color:#2979ff}[data-theme=default] uni-button[type=primary][disabled],[data-theme=default] uni-button[type=primary][disabled]{background-color:#2979ff}[data-theme=default] uni-button[type=primary][plain],[data-theme=default] uni-button[type=primary][plain]{color:#2979ff;border-color:#2979ff;background-color:transparent}[data-theme=default] uni-button[type=primary][loading],[data-theme=default] uni-button[type=primary][loading]{background-color:#2979ff}[data-theme=default] uni-button[type=primary][loading][plain],[data-theme=default] uni-button[type=primary][loading][plain]{color:#2979ff}[data-theme=default] uni-button[type=primary].button-hover,[data-theme=default] uni-button[type=primary].button-hover{background-color:#005cf5}[data-theme=default] uni-button[type=primary].button-hover[plain],[data-theme=default] uni-button[type=primary].button-hover[plain]{color:#005cf5;border-color:#005cf5;background-color:transparent}[data-theme=default] uni-button[type=warn],[data-theme=default] uni-button[type=warn]{background-color:#e43d33}[data-theme=default] uni-button[type=warn][disabled],[data-theme=default] uni-button[type=warn][disabled]{background-color:#e43d33}[data-theme=default] uni-button[type=warn][plain],[data-theme=default] uni-button[type=warn][plain]{color:#e43d33;border-color:#e43d33;background-color:transparent}[data-theme=default] uni-button[type=warn][loading],[data-theme=default] uni-button[type=warn][loading]{background-color:#e43d33}[data-theme=default] uni-button[type=warn][loading][plain],[data-theme=default] uni-button[type=warn][loading][plain]{color:#e43d33}[data-theme=default] uni-button[type=warn].button-hover,[data-theme=default] uni-button[type=warn].button-hover{background-color:#c9251b}[data-theme=default] uni-button[type=warn].button-hover[plain],[data-theme=default] uni-button[type=warn].button-hover[plain]{color:#c9251b;border-color:#c9251b;background-color:transparent}[data-theme=default] .uni-tag--primary{background-color:#2979ff!important;border-color:#2979ff!important}[data-theme=default] .uni-tag--primary--inverted{background-color:#fff!important;color:#2979ff!important}[data-theme=default] .uni-tag--success{background-color:#18bc37!important;border-color:#18bc37!important}[data-theme=default] .uni-tag--success--inverted{background-color:#fff!important;color:#18bc37!important}[data-theme=default] .uni-tag--warning{background-color:#f3a73f!important;border-color:#f3a73f!important}[data-theme=default] .uni-tag--warning--inverted{background-color:#fff!important;color:#f3a73f!important}[data-theme=default] .uni-tag--error{background-color:#e43d33!important;border-color:#e43d33!important}[data-theme=default] .uni-tag--error--inverted{background-color:#fff!important;color:#e43d33!important}[data-theme=default] .checklist-box.is-checked .checkbox__inner{border-color:#2979ff!important;background-color:#2979ff!important}[data-theme=default] .checklist-box.is-checked .radio__inner{border-color:#2979ff!important}[data-theme=default] .checklist-box.is-checked .radio__inner .radio__inner-icon{background-color:#2979ff!important}[data-theme=default] .checklist-box.is-checked .checklist-text{color:#2979ff!important}[data-theme=default] .checklist-box .checkbox__inner:hover{border-color:#2979ff!important}[data-theme=default] .uni-switch-input.uni-switch-input-checked{background-color:#2979ff!important;border-color:#2979ff!important}[data-theme=default] .uni-easyinput.uni-easyinput-error{color:#e43d33!important}[data-theme=default] .uni-easyinput .uni-easyinput__content.is-focused.is-input-border{border-color:#2979ff!important}[data-theme=default] .uni-easyinput .uni-easyinput__content.is-focused .uni-icons{color:#2979ff!important}[data-theme=default] .uni-nav-menu .uni-menu-item.is-active,[data-theme=default] .navbar-menu .menu-item.hover-highlight:hover,[data-theme=default] .uni-table .link-btn-color{color:#2979ff}[data-theme=default] .uni-table .uni-table-checkbox .checkbox__inner.checkbox--indeterminate,[data-theme=default] .uni-table .uni-table-checkbox .checkbox__inner.is-checked{border-color:#2979ff;background-color:#2979ff}[data-theme=default] .uni-table .uni-table-checkbox .checkbox__inner:hover{border-color:#2979ff}[data-theme=default] .uni-table .uni-table-th-content .arrow-box .arrow.active :after{background-color:#2979ff}[data-theme=default] .uni-table .opera-area .btn.btn-submit{background-color:#2979ff}[data-theme=default] .uni-table .dropdown-btn .icon-search.active .icon-search-0{border-color:#2979ff}[data-theme=default] .uni-table .dropdown-btn .icon-search.active .icon-search-1{background-color:#2979ff}[data-theme=default] .uni-table .dropdown-btn .icon-calendar.active .icon-calendar-0{border-color:#2979ff}[data-theme=default] .uni-table .dropdown-btn .icon-calendar.active .icon-calendar-1{background-color:#2979ff}[data-theme=default] .uni-table .uni-icons.uni-stat-edit--btn{color:#2979ff!important}[data-theme=default] .uni-pagination .uni-pagination__num-current .page--active{background-color:#2979ff!important}[data-theme=default] .uni-picker-select .uni-picker-item.selected,[data-theme=default] .uni-calendar__button-text{color:#2979ff}[data-theme=default] .uni-datetime-picker--btn,[data-theme=default] .uni-calendar-item--multiple .uni-calendar-item--before-checked,[data-theme=default] .uni-calendar-item--multiple .uni-calendar-item--after-checked,[data-theme=default] .uni-calendar-item__weeks-box .uni-calendar-item--checked{background-color:#2979ff}[data-theme=default] .uni-calendar-item__weeks-box-text{color:#00225c}[data-theme=default] .uni-popup-dialog .uni-button-color{color:#2979ff}[data-theme=default] .link-btn{color:#2979ff!important}[data-theme=default] .uni-stat--tab-item.uni-stat--tab-item-line-active,[data-theme=default] .uni-stat--tab-item.uni-stat--tab-item-boldLine-active{color:#2979ff;border-color:#2979ff}[data-theme=default] .uni-stat--tab-item.uni-stat--tab-item-box-active{border-color:#2979ff}[data-theme=default] .uni-title.app-list{color:#2979ff;border-color:#2979ff}[data-theme=default] .uni-link,[data-theme=default] .uni-selector-select .uni-picker-item.selected,[data-theme=default] .uni-tabs__item.is-active{color:#2979ff}[data-theme=default] .uni-modal__btn_primary{color:#2979ff!important}[data-theme=default] .uni-radio-input-checked{background-color:#2979ff!important;border-color:#2979ff!important}[data-theme=default] .uni-container .icon-item:hover,[data-theme=default] .uni-container .icon-item:hover .icon-text{color:#2979ff}[data-theme=green] uni-button[type=primary],[data-theme=green] uni-button[type=primary]{background-color:#42b983}[data-theme=green] uni-button[type=primary][disabled],[data-theme=green] uni-button[type=primary][disabled]{background-color:#42b983}[data-theme=green] uni-button[type=primary][plain],[data-theme=green] uni-button[type=primary][plain]{color:#42b983;border-color:#42b983;background-color:transparent}[data-theme=green] uni-button[type=primary][loading],[data-theme=green] uni-button[type=primary][loading]{background-color:#42b983}[data-theme=green] uni-button[type=primary][loading][plain],[data-theme=green] uni-button[type=primary][loading][plain]{color:#42b983}[data-theme=green] uni-button[type=primary].button-hover,[data-theme=green] uni-button[type=primary].button-hover{background-color:#359368}[data-theme=green] uni-button[type=primary].button-hover[plain],[data-theme=green] uni-button[type=primary].button-hover[plain]{color:#359368;border-color:#359368;background-color:transparent}[data-theme=green] uni-button[type=warn],[data-theme=green] uni-button[type=warn]{background-color:#e43d33}[data-theme=green] uni-button[type=warn][disabled],[data-theme=green] uni-button[type=warn][disabled]{background-color:#e43d33}[data-theme=green] uni-button[type=warn][plain],[data-theme=green] uni-button[type=warn][plain]{color:#e43d33;border-color:#e43d33;background-color:transparent}[data-theme=green] uni-button[type=warn][loading],[data-theme=green] uni-button[type=warn][loading]{background-color:#e43d33}[data-theme=green] uni-button[type=warn][loading][plain],[data-theme=green] uni-button[type=warn][loading][plain]{color:#e43d33}[data-theme=green] uni-button[type=warn].button-hover,[data-theme=green] uni-button[type=warn].button-hover{background-color:#c9251b}[data-theme=green] uni-button[type=warn].button-hover[plain],[data-theme=green] uni-button[type=warn].button-hover[plain]{color:#c9251b;border-color:#c9251b;background-color:transparent}[data-theme=green] .uni-tag--primary{background-color:#42b983!important;border-color:#42b983!important}[data-theme=green] .uni-tag--primary--inverted{background-color:#fff!important;color:#42b983!important}[data-theme=green] .uni-tag--success{background-color:#18bc37!important;border-color:#18bc37!important}[data-theme=green] .uni-tag--success--inverted{background-color:#fff!important;color:#18bc37!important}[data-theme=green] .uni-tag--warning{background-color:#f3a73f!important;border-color:#f3a73f!important}[data-theme=green] .uni-tag--warning--inverted{background-color:#fff!important;color:#f3a73f!important}[data-theme=green] .uni-tag--error{background-color:#e43d33!important;border-color:#e43d33!important}[data-theme=green] .uni-tag--error--inverted{background-color:#fff!important;color:#e43d33!important}[data-theme=green] .checklist-box.is-checked .checkbox__inner{border-color:#42b983!important;background-color:#42b983!important}[data-theme=green] .checklist-box.is-checked .radio__inner{border-color:#42b983!important}[data-theme=green] .checklist-box.is-checked .radio__inner .radio__inner-icon{background-color:#42b983!important}[data-theme=green] .checklist-box.is-checked .checklist-text{color:#42b983!important}[data-theme=green] .checklist-box .checkbox__inner:hover{border-color:#42b983!important}[data-theme=green] .uni-switch-input.uni-switch-input-checked{background-color:#42b983!important;border-color:#42b983!important}[data-theme=green] .uni-easyinput.uni-easyinput-error{color:#e43d33!important}[data-theme=green] .uni-easyinput .uni-easyinput__content.is-focused.is-input-border{border-color:#42b983!important}[data-theme=green] .uni-easyinput .uni-easyinput__content.is-focused .uni-icons{color:#42b983!important}[data-theme=green] .uni-nav-menu .uni-menu-item.is-active,[data-theme=green] .navbar-menu .menu-item.hover-highlight:hover,[data-theme=green] .uni-table .link-btn-color{color:#42b983}[data-theme=green] .uni-table .uni-table-checkbox .checkbox__inner.checkbox--indeterminate,[data-theme=green] .uni-table .uni-table-checkbox .checkbox__inner.is-checked{border-color:#42b983;background-color:#42b983}[data-theme=green] .uni-table .uni-table-checkbox .checkbox__inner:hover{border-color:#42b983}[data-theme=green] .uni-table .uni-table-th-content .arrow-box .arrow.active :after{background-color:#42b983}[data-theme=green] .uni-table .opera-area .btn.btn-submit{background-color:#42b983}[data-theme=green] .uni-table .dropdown-btn .icon-search.active .icon-search-0{border-color:#42b983}[data-theme=green] .uni-table .dropdown-btn .icon-search.active .icon-search-1{background-color:#42b983}[data-theme=green] .uni-table .dropdown-btn .icon-calendar.active .icon-calendar-0{border-color:#42b983}[data-theme=green] .uni-table .dropdown-btn .icon-calendar.active .icon-calendar-1{background-color:#42b983}[data-theme=green] .uni-table .uni-icons.uni-stat-edit--btn{color:#42b983!important}[data-theme=green] .uni-pagination .uni-pagination__num-current .page--active{background-color:#42b983!important}[data-theme=green] .uni-picker-select .uni-picker-item.selected,[data-theme=green] .uni-calendar__button-text{color:#42b983}[data-theme=green] .uni-datetime-picker--btn,[data-theme=green] .uni-calendar-item--multiple .uni-calendar-item--before-checked,[data-theme=green] .uni-calendar-item--multiple .uni-calendar-item--after-checked,[data-theme=green] .uni-calendar-item__weeks-box .uni-calendar-item--checked{background-color:#42b983}[data-theme=green] .uni-calendar-item__weeks-box-text{color:#0c2319}[data-theme=green] .uni-popup-dialog .uni-button-color{color:#42b983}[data-theme=green] .link-btn{color:#42b983!important}[data-theme=green] .uni-stat--tab-item.uni-stat--tab-item-line-active,[data-theme=green] .uni-stat--tab-item.uni-stat--tab-item-boldLine-active{color:#42b983;border-color:#42b983}[data-theme=green] .uni-stat--tab-item.uni-stat--tab-item-box-active{border-color:#42b983}[data-theme=green] .uni-title.app-list{color:#42b983;border-color:#42b983}[data-theme=green] .uni-link,[data-theme=green] .uni-selector-select .uni-picker-item.selected,[data-theme=green] .uni-tabs__item.is-active{color:#42b983}[data-theme=green] .uni-modal__btn_primary{color:#42b983!important}[data-theme=green] .uni-radio-input-checked{background-color:#42b983!important;border-color:#42b983!important}[data-theme=green] .uni-container .icon-item:hover,[data-theme=green] .uni-container .icon-item:hover .icon-text{color:#42b983} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/js-f072318e.css b/alpha/admin/unpackage/dist/build/h5/assets/js-f072318e.css new file mode 100644 index 0000000000000000000000000000000000000000..1b218059d60a79c5949f7cbef95a1a0e570e8f1a --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/js-f072318e.css @@ -0,0 +1 @@ +.uni-drawer[data-v-ac0dbaaa]{display:block;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:999}.uni-drawer__content[data-v-ac0dbaaa]{display:block;position:absolute;top:0;width:220px;bottom:0;background-color:#fff;transition:transform .3s ease}.uni-drawer--left[data-v-ac0dbaaa]{left:0;transform:translate(-100%)}.uni-drawer--right[data-v-ac0dbaaa]{right:0;transform:translate(100%)}.uni-drawer__content--visible[data-v-ac0dbaaa]{transform:translate(0)}.uni-drawer__mask[data-v-ac0dbaaa]{display:block;opacity:0;position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.4);transition:opacity .3s}.uni-drawer__mask--visible[data-v-ac0dbaaa]{display:block;opacity:1}.upload-task-body[data-v-5938fce7]{background-color:#fff;padding:0 .78125rem;transition:background-color .4s}.upload-task-body[data-v-5938fce7]:hover{background-color:#f5f5f5}.upload-task-item[data-v-5938fce7],.upload-task-item-progress[data-v-5938fce7]{padding:.625rem 0}.upload-task-item-size[data-v-5938fce7]{font-size:12px;color:#999}.upload-task-item-name[data-v-5938fce7]{font-size:14px}.flex-between[data-v-a0b830e1]{margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.uni-stat-panel[data-v-a0b830e1]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px}.uni-stat-tooltip-s[data-v-a0b830e1]{width:160px;white-space:normal}.black-theme[data-v-a0b830e1]{background-color:#333;color:#fff}.dialog-close[data-v-a0b830e1]{cursor:pointer;position:absolute;top:0;right:0;display:flex;flex-direction:row;align-items:center;padding:20px;margin-top:10px}.dialog-close-plus[data-v-a0b830e1]{width:20px;height:2px;background-color:#fff;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-a0b830e1]{position:absolute;transform:rotate(-45deg)}.upload-msg-warning[data-v-a0b830e1]{padding:0 15px;color:red;font-size:14px}[data-v-a0b830e1] .sourcemap-drawser .uni-select{flex:1}[data-v-a0b830e1] .sourcemap-drawser .uni-select .uni-select__input-text{width:100%}.upload-task-header[data-v-a0b830e1]{font-size:14px;color:#666;padding:.46875rem .78125rem;border-top:1px solid #eee;border-bottom:1px solid #eee} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/list-891afde7.css b/alpha/admin/unpackage/dist/build/h5/assets/list-891afde7.css new file mode 100644 index 0000000000000000000000000000000000000000..eef94b784c9babfd30041a31756fa215abefbcd1 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/list-891afde7.css @@ -0,0 +1 @@ +.uni-tag[data-v-f9b60738]{line-height:14px;font-size:12px;font-weight:200;padding:4px 7px;color:#fff;border-radius:3px;background-color:#8f939c;border-width:.03125rem;border-style:solid;border-color:#8f939c;cursor:pointer}.uni-tag--default[data-v-f9b60738]{font-size:12px}.uni-tag--default--inverted[data-v-f9b60738]{color:#8f939c;border-color:#8f939c}.uni-tag--small[data-v-f9b60738]{padding:2px 5px;font-size:12px;border-radius:2px}.uni-tag--mini[data-v-f9b60738]{padding:1px 3px;font-size:12px;border-radius:2px}.uni-tag--primary[data-v-f9b60738]{background-color:#2979ff;border-color:#2979ff;color:#fff}.uni-tag--success[data-v-f9b60738]{color:#fff;background-color:#18bc37;border-color:#18bc37}.uni-tag--warning[data-v-f9b60738]{color:#fff;background-color:#f3a73f;border-color:#f3a73f}.uni-tag--error[data-v-f9b60738]{color:#fff;background-color:#e43d33;border-color:#e43d33}.uni-tag--primary--inverted[data-v-f9b60738]{color:#2979ff;border-color:#2979ff}.uni-tag--success--inverted[data-v-f9b60738]{color:#18bc37;border-color:#18bc37}.uni-tag--warning--inverted[data-v-f9b60738]{color:#f3a73f;border-color:#f3a73f}.uni-tag--error--inverted[data-v-f9b60738]{color:#e43d33;border-color:#e43d33}.uni-tag--inverted[data-v-f9b60738]{background-color:#fff}.uni-tag--circle[data-v-f9b60738]{border-radius:15px!important}.uni-tag--mark[data-v-f9b60738]{border-radius:0 15px 15px 0!important}.uni-tag--disabled[data-v-f9b60738]{opacity:.5;cursor:not-allowed}.uni-tag-text[data-v-f9b60738]{color:#fff;font-size:14px}.uni-tag-text--primary[data-v-f9b60738]{color:#2979ff}.uni-tag-text--success[data-v-f9b60738]{color:#18bc37}.uni-tag-text--warning[data-v-f9b60738]{color:#f3a73f}.uni-tag-text--error[data-v-f9b60738]{color:#e43d33}.uni-tag-text--small[data-v-f9b60738]{font-size:12px}.a-link[data-v-83446d02]{cursor:pointer;color:#2979ff;text-decoration:none}.close[data-v-83446d02]{position:absolute;right:20px;top:20px;cursor:pointer}.sms-manager[data-v-83446d02]{width:570px;background:#fff;padding:30px;border-radius:5px}.sms-manager.preview[data-v-83446d02]{width:550px}.sms-manager--header[data-v-83446d02]{text-align:center;font-size:22px}.sms-manager--header.mb[data-v-83446d02]{margin-bottom:50px}.sms-manager--header .sub-title[data-v-83446d02]{margin-top:5px;font-size:16px;color:#999}.sms-manager .content[data-v-83446d02]{margin-top:20px;font-size:16px;line-height:1.5}.sms-manager .content .length[data-v-83446d02]{text-align:right;font-size:13px;margin-top:20px}.sms-manager .content .length .num[data-v-83446d02]{color:red}.sms-manager .tip[data-v-83446d02]{border-top:#ccc solid 1px;padding-top:20px;margin-top:20px;line-height:1.7;font-size:13px;color:#999}.sms-data-item[data-v-83446d02]{display:flex;align-items:center;margin-top:10px}.sms-data-item[data-v-83446d02]:first-child{margin-top:0}.sms-data-item .m[data-v-83446d02]{margin:0 5px}.sms-data-item .m[data-v-83446d02]:first-child{margin-left:0}.sms-data-item .m[data-v-83446d02]:last-child{margin-right:0}.sms-data-item .type[data-v-83446d02]{width:100px;flex:none}.sms-data-item .add[data-v-83446d02],.sms-data-item .minus[data-v-83446d02]{cursor:pointer}.sms-data-tip[data-v-83446d02]{color:#8f939c;font-size:12px;margin-top:5px}.form-item-flex-center[data-v-83446d02]{height:100%;display:flex;align-items:center}.tags-manager--x[data-v-5257fcd4]{width:400px;padding:40px 30px;border-radius:5px;background-color:#fff}.tags-manager--header[data-v-5257fcd4]{font-size:22px;color:#333;text-align:center}.mb[data-v-5257fcd4]{margin-bottom:80px}.ml[data-v-5257fcd4]{margin-left:30px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/list-a40d3c9a.css b/alpha/admin/unpackage/dist/build/h5/assets/list-a40d3c9a.css new file mode 100644 index 0000000000000000000000000000000000000000..e5ccb6d2f30175440b0b541808e047f0f81375c6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/list-a40d3c9a.css @@ -0,0 +1 @@ +.uni-data-pickerview[data-v-bae1831b]{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%}.error-text[data-v-bae1831b]{color:#dd524d}.loading-cover[data-v-bae1831b]{position:absolute;left:0;top:0;right:0;bottom:0;background-color:rgba(255,255,255,.5);display:flex;flex-direction:column;align-items:center;z-index:1001}.load-more[data-v-bae1831b]{margin:auto}.error-message[data-v-bae1831b]{background-color:#fff;position:absolute;left:0;top:0;right:0;bottom:0;padding:15px;opacity:.9;z-index:102}.selected-list[data-v-bae1831b]{display:flex;flex-direction:row;flex-wrap:nowrap;padding:0 5px;border-bottom:1px solid #f8f8f8}.selected-item[data-v-bae1831b]{margin-left:10px;margin-right:10px;padding:12px 0;text-align:center;white-space:nowrap}.selected-item-text-overflow[data-v-bae1831b]{width:168px;overflow:hidden;width:6em;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.selected-item-active[data-v-bae1831b]{border-bottom:2px solid #2979ff}.selected-item-text[data-v-bae1831b]{color:#2979ff}.tab-c[data-v-bae1831b]{position:relative;flex:1;display:flex;flex-direction:row;overflow:hidden}.list[data-v-bae1831b]{flex:1}.item[data-v-bae1831b]{padding:12px 15px;display:flex;flex-direction:row;justify-content:space-between}.is-disabled[data-v-bae1831b]{opacity:.5}.item-text[data-v-bae1831b]{color:#333}.item-text-overflow[data-v-bae1831b]{width:280px;overflow:hidden;width:20em;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.check[data-v-bae1831b]{margin-right:5px;border:2px solid #2979ff;border-left:0;border-top:0;height:12px;width:6px;transform-origin:center;transition:all .3s;transform:rotate(45deg)}.uni-data-tree[data-v-fc53b656]{flex:1;position:relative;font-size:14px}.error-text[data-v-fc53b656]{color:#dd524d}.input-value[data-v-fc53b656]{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;font-size:14px;padding:0 5px 0 10px;overflow:hidden;height:35px;box-sizing:border-box}.input-value-border[data-v-fc53b656]{border:1px solid #e5e5e5;border-radius:5px}.selected-area[data-v-fc53b656]{flex:1;overflow:hidden;display:flex;flex-direction:row}.load-more[data-v-fc53b656]{margin-right:auto}.selected-list[data-v-fc53b656]{display:flex;flex-direction:row;flex-wrap:nowrap}.selected-item[data-v-fc53b656]{flex-direction:row;white-space:nowrap}.text-color[data-v-fc53b656]{color:#333}.placeholder[data-v-fc53b656]{color:gray;font-size:12px}.input-split-line[data-v-fc53b656]{opacity:.5}.arrow-area[data-v-fc53b656]{position:relative;width:20px;margin-bottom:5px;margin-left:auto;display:flex;justify-content:center;transform:rotate(-45deg);transform-origin:center}.input-arrow[data-v-fc53b656]{width:7px;height:7px;border-left:1px solid #999;border-bottom:1px solid #999}.uni-data-tree-cover[data-v-fc53b656]{position:fixed;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.4);display:flex;flex-direction:column;z-index:100}.uni-data-tree-dialog[data-v-fc53b656]{position:fixed;left:0;top:20%;right:0;bottom:0;background-color:#fff;border-top-left-radius:10px;border-top-right-radius:10px;display:flex;flex-direction:column;z-index:102;overflow:hidden}.dialog-caption[data-v-fc53b656]{position:relative;display:flex;flex-direction:row}.title-area[data-v-fc53b656]{display:flex;align-items:center;margin:auto;padding:0 10px}.dialog-title[data-v-fc53b656]{line-height:44px}.dialog-close[data-v-fc53b656]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 15px}.dialog-close-plus[data-v-fc53b656]{width:16px;height:2px;background-color:#666;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-fc53b656]{position:absolute;transform:rotate(-45deg)}.picker-view[data-v-fc53b656]{flex:1;overflow:hidden}.icon-clear[data-v-fc53b656]{display:flex;align-items:center}@media all and (min-width: 768px){.uni-data-tree-cover[data-v-fc53b656]{background-color:transparent}.uni-data-tree-dialog[data-v-fc53b656]{position:absolute;top:55px;height:auto;min-height:400px;max-height:50vh;background-color:#fff;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px;overflow:unset}.dialog-caption[data-v-fc53b656]{display:none}}.uni-popper__arrow[data-v-fc53b656],.uni-popper__arrow[data-v-fc53b656]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-fc53b656]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-fc53b656]:after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.page-loading[data-v-a55f3636]{display:flex;justify-content:center;align-items:center;flex-direction:column;flex:1}.page-loading i[data-v-a55f3636]{width:2.5rem;height:2.5rem}uni-page-body[data-v-a55f3636],uni-page-body .main[data-v-a55f3636],.page-loading[data-v-a55f3636]{height:100%}.app-list[data-v-a55f3636]{display:flex;justify-content:space-between;align-items:center;padding:5px 10px;border-radius:4px;border:1px solid #2e76ba;color:#3a8ee6}.app-list uni-text[data-v-a55f3636]{margin-left:10px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/list-aa6dd69c.css b/alpha/admin/unpackage/dist/build/h5/assets/list-aa6dd69c.css new file mode 100644 index 0000000000000000000000000000000000000000..705f59e0b865d9a80096fce196d6d237f60a35e0 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/list-aa6dd69c.css @@ -0,0 +1 @@ +.menu-disable[data-v-95038015]{color:red}.menu-badge[data-v-95038015]{position:absolute;top:0;right:5px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/list-f19836f4.css b/alpha/admin/unpackage/dist/build/h5/assets/list-f19836f4.css new file mode 100644 index 0000000000000000000000000000000000000000..6003ef0f17657bcf0c168702f61ec93d02ee9684 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/list-f19836f4.css @@ -0,0 +1 @@ +.text-btn[data-v-c58737a6]{color:#2979ff;cursor:pointer;margin:0 5px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/login-page.mixin.6ab7e5a6.js b/alpha/admin/unpackage/dist/build/h5/assets/login-page.mixin.6ab7e5a6.js new file mode 100644 index 0000000000000000000000000000000000000000..f112566bbb10133b07fca0f60865b955ad821481 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/login-page.mixin.6ab7e5a6.js @@ -0,0 +1 @@ +import{aa as e,N as i,$ as s}from"./index-389238f5.js";let t={data:()=>({config:e,uniIdRedirectUrl:"",isMounted:!1}),onUnload(){document.onkeydown=!1},mounted(){this.isMounted=!0},onLoad(e){if(e.is_weixin_redirect){if(i({mask:!0}),window.location.href.includes("#")){window.location.href.split("?")[1].split("&").forEach((i=>{let s=i.split("=");"code"==s[0]&&(e.code=s[1])}))}this.$nextTick((i=>{this.$refs.uniFabLogin.login({code:e.code},"weixin")}))}e.uniIdRedirectUrl&&(this.uniIdRedirectUrl=decodeURIComponent(e.uniIdRedirectUrl))},computed:{needAgreements(){if(this.isMounted)return!!this.$refs.agreements&&this.$refs.agreements.needAgreements},agree:{get(){if(this.isMounted)return!this.$refs.agreements||this.$refs.agreements.isAgree},set(e){this.$refs.agreements?this.$refs.agreements.isAgree=e:console.log("不存在 隐私政策协议组件")}}},methods:{loginSuccess(e){s.loginSuccess({...e,uniIdRedirectUrl:this.uniIdRedirectUrl})}}};export{t as m}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/login-smscode-8e780045.css b/alpha/admin/unpackage/dist/build/h5/assets/login-smscode-8e780045.css new file mode 100644 index 0000000000000000000000000000000000000000..7d7c7583a74a7212e22a725e6c68660b7c4863a7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/login-smscode-8e780045.css @@ -0,0 +1 @@ +.input-box[data-v-93225fe2] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-93225fe2]{padding:0 1.875rem}.login-logo[data-v-93225fe2]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-93225fe2]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-93225fe2]{display:flex;justify-content:center}.login-logo uni-image[data-v-93225fe2]{width:60px;height:60px}.register-back[data-v-93225fe2]{display:none}uni-button[data-v-93225fe2]{padding-bottom:1px}}.uni-content uni-view[data-v-93225fe2]{box-sizing:border-box}.title[data-v-93225fe2]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-93225fe2]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-93225fe2] .uni-easyinput__content,.input-box[data-v-93225fe2]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-93225fe2]{color:#04498c;cursor:pointer}.uni-content[data-v-93225fe2] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-93225fe2]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-93225fe2]{height:auto!important}.tip[data-v-93225fe2]{margin-top:-15px;margin-bottom:15px}.popup-captcha[data-v-93225fe2]{display:flex;padding:.625rem;background-color:#fff;border-radius:2px;flex-direction:column;position:relative}.popup-captcha .title[data-v-93225fe2]{font-weight:400;padding:0 0 15px;color:#666}.popup-captcha .close[data-v-93225fe2]{position:absolute;bottom:-40px;margin-left:-13px;left:50%}.popup-captcha .uni-btn[data-v-93225fe2]{margin:0} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/login-withoutpwd-7c3aa37b.css b/alpha/admin/unpackage/dist/build/h5/assets/login-withoutpwd-7c3aa37b.css new file mode 100644 index 0000000000000000000000000000000000000000..56861bb7f916c874aa52b69c8df4892c87f0eb1b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/login-withoutpwd-7c3aa37b.css @@ -0,0 +1 @@ +.input-box[data-v-e394d6b8] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-e394d6b8]{padding:0 1.875rem}.login-logo[data-v-e394d6b8]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-e394d6b8]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-e394d6b8]{display:flex;justify-content:center}.login-logo uni-image[data-v-e394d6b8]{width:60px;height:60px}.register-back[data-v-e394d6b8]{display:none}uni-button[data-v-e394d6b8]{padding-bottom:1px}}.uni-content uni-view[data-v-e394d6b8]{box-sizing:border-box}.title[data-v-e394d6b8]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-e394d6b8]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-e394d6b8] .uni-easyinput__content,.input-box[data-v-e394d6b8]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-e394d6b8]{color:#04498c;cursor:pointer}.uni-content[data-v-e394d6b8] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-e394d6b8]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-e394d6b8]{height:auto!important}@media screen and (min-width: 690px){.uni-content[data-v-e394d6b8]{height:350px}}.uni-content[data-v-e394d6b8],.quickLogin[data-v-e394d6b8]{display:flex;flex-direction:column}.phone-box[data-v-e394d6b8]{position:relative;display:flex}.area[data-v-e394d6b8]{position:absolute;left:10px;z-index:9;top:12px;font-size:14px}.area[data-v-e394d6b8]:after{content:"";border:3px solid transparent;border-top-color:#000;top:12px;left:3px;position:relative}.input-box[data-v-e394d6b8]{box-sizing:border-box;flex:1;padding-left:45px;margin-bottom:10px;border-radius:0}.quickLogin[data-v-e394d6b8]{height:350px;align-items:center;justify-content:center}.quickLoginBtn[data-v-e394d6b8]{margin:20px 0;width:14.0625rem;max-width:230px;height:2.5625rem}.tip[data-v-e394d6b8]{margin-top:-15px;margin-bottom:20px}@media screen and (min-width: 690px){.quickLogin[data-v-e394d6b8]{height:auto}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/login-withpwd-fdaed16c.css b/alpha/admin/unpackage/dist/build/h5/assets/login-withpwd-fdaed16c.css new file mode 100644 index 0000000000000000000000000000000000000000..3b7f7580f88a77102dfb49e65ed34913b8453a70 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/login-withpwd-fdaed16c.css @@ -0,0 +1 @@ +.input-box[data-v-e40f8cce] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-e40f8cce]{padding:0 1.875rem}.login-logo[data-v-e40f8cce]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-e40f8cce]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-e40f8cce]{display:flex;justify-content:center}.login-logo uni-image[data-v-e40f8cce]{width:60px;height:60px}.register-back[data-v-e40f8cce]{display:none}uni-button[data-v-e40f8cce]{padding-bottom:1px}}.uni-content uni-view[data-v-e40f8cce]{box-sizing:border-box}.title[data-v-e40f8cce]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-e40f8cce]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-e40f8cce] .uni-easyinput__content,.input-box[data-v-e40f8cce]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-e40f8cce]{color:#04498c;cursor:pointer}.uni-content[data-v-e40f8cce] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-e40f8cce]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-e40f8cce]{height:auto!important}@media screen and (min-width: 690px){.uni-content[data-v-e40f8cce]{max-height:650px}}.forget[data-v-e40f8cce]{font-size:12px;color:#8a8f8b}.link-box[data-v-e40f8cce]{display:flex;flex-direction:row;justify-content:space-between;margin-top:20px}.link[data-v-e40f8cce]{font-size:12px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-post-comment.6f761277.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-post-comment.6f761277.js new file mode 100644 index 0000000000000000000000000000000000000000..44f63184dd67f7e2ae61a926ef0b7f28afadfb7e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-post-comment.6f761277.js @@ -0,0 +1 @@ +const e={owner_id:{rules:[{format:"string"}],title:"评论人id",label:"评论人id"},date:{rules:[{format:"string"}],title:"发布时间",label:"发布时间"},likes:{rules:[{format:"int"}],title:"点赞数",label:"点赞数"},post_id:{rules:[{format:"string"}],title:"帖子id",label:"帖子id"},check_status:{rules:[{format:"bool"}],title:"状态",label:"状态"},content:{rules:[{format:"string"}],title:"评论内容",label:"评论内容"}},t={};function l(e,t){let l={};for(let a in e){let{type:r,value:s}=e[a];switch(r){case"search":"string"==typeof s&&s.length&&(l[a]=new RegExp(s));break;case"select":if(s.length){let e=[];for(let l of s)e.push(t.eq(l));l[a]=t.or(e)}break;case"range":if(s.length){let e=s[0],r=s[1];l[a]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(s.length){let[e,r]=s,i=new Date(e),n=new Date(r);l[a]=t.and([t.gte(i),t.lte(n)])}break;case"timestamp":if(s.length){let[e,r]=s;l[a]=t.and([t.gte(e),t.lte(r)])}}}return l}export{t as e,l as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-post.8570f775.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-post.8570f775.js new file mode 100644 index 0000000000000000000000000000000000000000..bbb1d6dd5fcba6cf48679fc02d70c013302d84d0 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-post.8570f775.js @@ -0,0 +1 @@ +const e={content:{rules:[{format:"string"}],title:"内容",label:"内容"},date:{rules:[{format:"string"}],title:"发布时间",label:"发布时间"},likes:{rules:[{format:"int"}],title:"点赞数",label:"点赞数"},owner_id:{rules:[{format:"string"}],title:"发帖人id",label:"发帖人id"},check_status:{rules:[{format:"bool"}],title:"审核状态",label:"审核状态"},comment_num:{rules:[{format:"int"}],title:"评论数",label:"评论数"},url:{rules:[{format:"array"}],title:"图片url",label:"图片url"}},t={};function l(e,t){let l={};for(let a in e){let{type:r,value:n}=e[a];switch(r){case"search":"string"==typeof n&&n.length&&(l[a]=new RegExp(n));break;case"select":if(n.length){let e=[];for(let l of n)e.push(t.eq(l));l[a]=t.or(e)}break;case"range":if(n.length){let e=n[0],r=n[1];l[a]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(n.length){let[e,r]=n,s=new Date(e),i=new Date(r);l[a]=t.and([t.gte(s),t.lte(i)])}break;case"timestamp":if(n.length){let[e,r]=n;l[a]=t.and([t.gte(e),t.lte(r)])}}}return l}export{t as e,l as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-running-record.e84758c9.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-running-record.e84758c9.js new file mode 100644 index 0000000000000000000000000000000000000000..84304e77738909950445fd03da00c0a6baa24d7b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-running-record.e84758c9.js @@ -0,0 +1 @@ +const e={start_date:{rules:[{format:"string"}],title:"开始时间",label:"开始时间"},duration:{rules:[{format:"int"}],title:"持续时间",label:"持续时间"},feelings:{rules:[{format:"string"}],title:"感受",label:"感受"},owner_id:{rules:[{format:"string"}],title:"用户id",label:"用户id"},distance:{rules:[{format:"double"}],title:"距离",label:"距离"},pace:{rules:[{format:"double"}],title:"配速",label:"配速"},path_line:{rules:[{format:"array"}],title:"路线",label:"路线"},start_point:{rules:[{format:"object"}],title:"起始地点",label:"起始地点"},end_point:{rules:[{format:"object"}],title:"结束地点",label:"结束地点"}},t={};function l(e,t){let l={};for(let a in e){let{type:r,value:i}=e[a];switch(r){case"search":"string"==typeof i&&i.length&&(l[a]=new RegExp(i));break;case"select":if(i.length){let e=[];for(let l of i)e.push(t.eq(l));l[a]=t.or(e)}break;case"range":if(i.length){let e=i[0],r=i[1];l[a]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(i.length){let[e,r]=i,s=new Date(e),n=new Date(r);l[a]=t.and([t.gte(s),t.lte(n)])}break;case"timestamp":if(i.length){let[e,r]=i;l[a]=t.and([t.gte(e),t.lte(r)])}}}return l}export{t as e,l as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-school-activity.ad20959b.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-school-activity.ad20959b.js new file mode 100644 index 0000000000000000000000000000000000000000..dc66870a356b2c89434d3387962fd531b53efbfa --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-school-activity.ad20959b.js @@ -0,0 +1 @@ +const e={title:{rules:[{format:"string"}],title:"标题",label:"标题"},content:{rules:[{format:"string"}],title:"内容",label:"内容"},start_date:{rules:[{format:"string"}],title:"开始时间",label:"开始时间"},end_date:{rules:[{format:"string"}],title:"结束时间",label:"结束时间"},owner_id:{rules:[{format:"string"}],title:"发布者id",label:"发布者id"},background_picture:{rules:[{format:"string"}],title:"背景图片",label:"背景图片"},place:{rules:[{format:"string"}],title:"地点",label:"地点"},status:{rules:[{format:"int"}],title:"活动状态",label:"活动状态"},contact:{rules:[{format:"string"}],title:"联系方式",label:"联系方式"},invitee:{rules:[{format:"string"}],title:"面向对象",label:"面向对象"}},t={};function l(e,t){let l={};for(let a in e){let{type:r,value:s}=e[a];switch(r){case"search":"string"==typeof s&&s.length&&(l[a]=new RegExp(s));break;case"select":if(s.length){let e=[];for(let l of s)e.push(t.eq(l));l[a]=t.or(e)}break;case"range":if(s.length){let e=s[0],r=s[1];l[a]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(s.length){let[e,r]=s,i=new Date(e),n=new Date(r);l[a]=t.and([t.gte(i),t.lte(n)])}break;case"timestamp":if(s.length){let[e,r]=s;l[a]=t.and([t.gte(e),t.lte(r)])}}}return l}export{t as e,l as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-team-activity.f91e8a14.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-team-activity.f91e8a14.js new file mode 100644 index 0000000000000000000000000000000000000000..04a77b12a732c2de718c6a441f1a42a7aff58eec --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-team-activity.f91e8a14.js @@ -0,0 +1 @@ +const t={title:{rules:[{format:"string"}],title:"标题",label:"标题"},content:{rules:[{format:"string"}],title:"内容",label:"内容"},start_date:{rules:[{format:"string"}],title:"开始时间",label:"开始时间"},end_date:{rules:[{format:"string"}],title:"结束时间",label:"结束时间"},owner_id:{rules:[{format:"string"}],title:"发布者id",label:"发布者id"},background_picture:{rules:[{format:"string"}],title:"背景图片",label:"背景图片"},place:{rules:[{format:"string"}],title:"地点",label:"地点"},status:{rules:[{format:"int"}],title:"活动状态",label:"活动状态"},participants:{rules:[{format:"int"}],title:"参与人数",label:"参与人数"},contact:{rules:[{format:"string"}],title:"联系方式",label:"联系方式"},team_id:{rules:[{format:"string"}],title:"小队id",label:"小队id"}},e={};function l(t,e){let l={};for(let a in t){let{type:r,value:i}=t[a];switch(r){case"search":"string"==typeof i&&i.length&&(l[a]=new RegExp(i));break;case"select":if(i.length){let t=[];for(let l of i)t.push(e.eq(l));l[a]=e.or(t)}break;case"range":if(i.length){let t=i[0],r=i[1];l[a]=e.and([e.gte(t),e.lte(r)])}break;case"date":if(i.length){let[t,r]=i,s=new Date(t),n=new Date(r);l[a]=e.and([e.gte(s),e.lte(n)])}break;case"timestamp":if(i.length){let[t,r]=i;l[a]=e.and([e.gte(t),e.lte(r)])}}}return l}export{e,l as f,t as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-team.80703cc9.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-team.80703cc9.js new file mode 100644 index 0000000000000000000000000000000000000000..42432254413382b7ec5c14877cca69d177dbf34a --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-team.80703cc9.js @@ -0,0 +1 @@ +const e={icon:{rules:[{format:"string"}],title:"队标",label:"队标"},name:{rules:[{format:"string"}],title:"队名",label:"队名"},owner_id:{rules:[{format:"string"}],title:"发起人id",label:"发起人id"},description:{rules:[{format:"string"}],title:"描述",label:"描述"}},t={};function l(e,t){let l={};for(let a in e){let{type:r,value:n}=e[a];switch(r){case"search":"string"==typeof n&&n.length&&(l[a]=new RegExp(n));break;case"select":if(n.length){let e=[];for(let l of n)e.push(t.eq(l));l[a]=t.or(e)}break;case"range":if(n.length){let e=n[0],r=n[1];l[a]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(n.length){let[e,r]=n,s=new Date(e),i=new Date(r);l[a]=t.and([t.gte(s),t.lte(i)])}break;case"timestamp":if(n.length){let[e,r]=n;l[a]=t.and([t.gte(e),t.lte(r)])}}}return l}export{t as e,l as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-user.22c2617f.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-user.22c2617f.js new file mode 100644 index 0000000000000000000000000000000000000000..cea90387a582846c72fd83b327ced47d2bbae1db --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-user.22c2617f.js @@ -0,0 +1 @@ +const e={name:{rules:[{format:"string"}]},icon:{rules:[{format:"string"}]},gender:{rules:[{format:"string"}]},password:{rules:[{format:"string"}]},phone_num:{rules:[{format:"string"}]},team_id:{rules:[{format:"string"}],defaultValue:""},school:{rules:[{format:"string"}]},type:{rules:[{format:"string"}]},total_running_distance:{rules:[{format:"double"}],defaultValue:0},total_walking_distance:{rules:[{format:"double"}],defaultValue:0}},t={};function a(e,t){let a={};for(let r in e){let{type:l,value:s}=e[r];switch(l){case"search":"string"==typeof s&&s.length&&(a[r]=new RegExp(s));break;case"select":if(s.length){let e=[];for(let a of s)e.push(t.eq(a));a[r]=t.or(e)}break;case"range":if(s.length){let e=s[0],l=s[1];a[r]=t.and([t.gte(e),t.lte(l)])}break;case"date":if(s.length){let[e,l]=s,n=new Date(e),o=new Date(l);a[r]=t.and([t.gte(n),t.lte(o)])}break;case"timestamp":if(s.length){let[e,l]=s;a[r]=t.and([t.gte(e),t.lte(l)])}}}return a}export{t as e,a as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/mustgo-walking-record.8249cf9a.js b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-walking-record.8249cf9a.js new file mode 100644 index 0000000000000000000000000000000000000000..5e92c245bc28d470302704baad3e69a59eb54e78 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/mustgo-walking-record.8249cf9a.js @@ -0,0 +1 @@ +const e={start_date:{rules:[{format:"string"}],title:"开始时间",label:"开始时间"},duration:{rules:[{format:"int"}],title:"持续时间",label:"持续时间"},feelings:{rules:[{format:"string"}],title:"感受",label:"感受"},owner_id:{rules:[{format:"string"}],title:"用户id",label:"用户id"},distance:{rules:[{format:"double"}],title:"距离",label:"距离"},pace:{rules:[{format:"double"}],title:"配速",label:"配速"},start_point:{rules:[{format:"object"}],title:"起始地点",label:"起始地点"},end_point:{rules:[{format:"object"}],title:"结束地点",label:"结束地点"},path_line:{rules:[{format:"array"}],title:"路线",label:"路线"}},t={};function l(e,t){let l={};for(let a in e){let{type:r,value:i}=e[a];switch(r){case"search":"string"==typeof i&&i.length&&(l[a]=new RegExp(i));break;case"select":if(i.length){let e=[];for(let l of i)e.push(t.eq(l));l[a]=t.or(e)}break;case"range":if(i.length){let e=i[0],r=i[1];l[a]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(i.length){let[e,r]=i,s=new Date(e),n=new Date(r);l[a]=t.and([t.gte(s),t.lte(n)])}break;case"timestamp":if(i.length){let[e,r]=i;l[a]=t.and([t.gte(e),t.lte(r)])}}}return l}export{t as e,l as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/opendb-app-list.55eb8c3a.js b/alpha/admin/unpackage/dist/build/h5/assets/opendb-app-list.55eb8c3a.js new file mode 100644 index 0000000000000000000000000000000000000000..b7dbc8f9b8541c3895fdf41350d8f70904935405 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/opendb-app-list.55eb8c3a.js @@ -0,0 +1 @@ +const e={appid:{rules:[{required:!0},{format:"string"}],label:"AppID"},name:{rules:[{required:!0},{format:"string"}],label:"应用名称"},icon_url:{rules:[{format:"string"}],label:"应用图标"},introduction:{rules:[{format:"string"}],label:"应用简介"},description:{rules:[{format:"string"}],label:"应用描述"},screenshot:{rules:[{format:"array"}],label:"应用截图"},create_date:{rules:[{format:"timestamp"}],label:"发行时间"}};function t(e,t){let a={};for(let r in e){let{type:l,value:s}=e[r];switch(l){case"search":"string"==typeof s&&s.length&&(a[r]=new RegExp(s));break;case"select":if(s.length){let e=[];for(let a of s)e.push(t.eq(a));a[r]=t.or(e)}break;case"range":if(s.length){let e=s[0],l=s[1];a[r]=t.and([t.gte(e),t.lte(l)])}break;case"date":if(s.length){let[e,l]=s,n=new Date(e),i=new Date(l);a[r]=t.and([t.gte(n),t.lte(i)])}break;case"timestamp":if(s.length){let[e,l]=s;a[r]=t.and([t.gte(e),t.lte(l)])}}}return a}const a={},r={mp_weixin:"微信小程序",mp_alipay:"支付宝小程序",mp_baidu:"百度小程序",mp_toutiao:"字节小程序",mp_qq:"QQ小程序",mp_dingtalk:"钉钉小程序",mp_kuaishou:"快手小程序",mp_lark:"飞书小程序",mp_jd:"京东小程序",quickapp:"快应用"};export{a as e,t as f,r as m,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/overview-61115583.css b/alpha/admin/unpackage/dist/build/h5/assets/overview-61115583.css new file mode 100644 index 0000000000000000000000000000000000000000..2312b7177637405beb280d53460562c9ae4c3150 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/overview-61115583.css @@ -0,0 +1 @@ +.uni-stat-card-header[data-v-ecb460f0]{display:flex;justify-content:space-between;color:#555;font-size:14px;font-weight:600;padding:10px 0;margin-bottom:15px}.uni-stat-card-header-link[data-v-ecb460f0]{cursor:pointer} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/overview-9f64537a.css b/alpha/admin/unpackage/dist/build/h5/assets/overview-9f64537a.css new file mode 100644 index 0000000000000000000000000000000000000000..f60bf8f6df9e049cf00b668575d775b441900836 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/overview-9f64537a.css @@ -0,0 +1 @@ +.uni-stat-tooltip-s[data-v-9f2e867a]{width:400px;white-space:normal}.uni-stat--sum-x[data-v-9f2e867a]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;border-radius:4px;padding:15px;box-shadow:-1px -1px 5px rgba(0,0,0,.1)}.uni-stat--sum-item[data-v-9f2e867a]{white-space:nowrap;text-align:center;margin:10px 18px}.uni-stat--sum-item-width[data-v-9f2e867a]{width:100px}.uni-stat--sum-item-title[data-v-9f2e867a]{display:flex;align-items:center;justify-content:center;min-height:17px;font-size:12px;color:#666}.uni-stat--sum-item-value[data-v-9f2e867a]{font-size:24px;line-height:48px;font-weight:700;color:#333}.uni-stat--sum-item-contrast[data-v-9f2e867a]{font-size:14px;color:#666}@media screen and (max-width: 500px){.uni-stat--sum-x[data-v-9f2e867a]{padding:15px 0;align-items:center;justify-content:center;flex-wrap:unset;overflow-x:auto!important}[data-v-9f2e867a]::-webkit-scrollbar{display:none}}.uni-stat--sum-flex[data-v-9f2e867a]{flex:1;display:flex;justify-content:flex-start;flex-wrap:wrap;border-radius:4px;padding:15px}.uni-stat--sum-flex .uni-stat--sum-item[data-v-9f2e867a]{min-width:9.375rem;max-width:15.625rem;flex:1}.uni-stat-card-header[data-v-9f2e867a]{justify-content:space-between;color:#555;font-size:14px;font-weight:600;padding:10px 0;margin-bottom:15px}.td.main[data-v-9f2e867a]{color:#e43d33}.uni-stat-tooltip-s[data-v-2f62b91c]{width:350px;white-space:normal}.uni-stat--sum-x[data-v-2f62b91c]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;border-radius:4px;padding:15px;box-shadow:-1px -1px 5px rgba(0,0,0,.1)}.uni-stat--sum-item[data-v-2f62b91c]{white-space:nowrap;text-align:center;margin:10px 18px}.uni-stat--sum-item-width[data-v-2f62b91c]{width:100px}.uni-stat--sum-item-title[data-v-2f62b91c]{display:flex;align-items:center;justify-content:center;min-height:17px;font-size:12px;color:#666}.uni-stat--sum-item-value[data-v-2f62b91c]{font-size:24px;line-height:48px;font-weight:700;color:#333}.uni-stat--sum-item-contrast[data-v-2f62b91c]{font-size:14px;color:#666}@media screen and (max-width: 500px){.uni-stat--sum-x[data-v-2f62b91c]{padding:15px 0;align-items:center;justify-content:center;flex-wrap:unset;overflow-x:auto!important}[data-v-2f62b91c]::-webkit-scrollbar{display:none}}.uni-stat--sum-flex[data-v-2f62b91c]{flex:1;display:flex;justify-content:flex-start;flex-wrap:wrap;border-radius:4px;padding:15px}.uni-stat--sum-flex .uni-stat--sum-item[data-v-2f62b91c]{min-width:9.375rem;max-width:15.625rem;flex:1}.uni-stat-card-header[data-v-2f62b91c]{justify-content:space-between;color:#555;font-size:14px;font-weight:600;padding:10px 0;margin-bottom:15px}.td.main[data-v-2f62b91c]{color:#e43d33}.justify-center[data-v-152a1129]{justify-content:center} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/overview-e642b5fc.css b/alpha/admin/unpackage/dist/build/h5/assets/overview-e642b5fc.css new file mode 100644 index 0000000000000000000000000000000000000000..e15038bfe6d95a9dea10f062b1adf97a79e8fd05 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/overview-e642b5fc.css @@ -0,0 +1 @@ +.uni-stat-card-header[data-v-29748419]{display:flex;justify-content:space-between;color:#555;font-size:14px;font-weight:600;padding:10px 0;margin-bottom:15px}.uni-stat-card-header-link[data-v-29748419]{cursor:pointer} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/page-ent-40a7a904.css b/alpha/admin/unpackage/dist/build/h5/assets/page-ent-40a7a904.css new file mode 100644 index 0000000000000000000000000000000000000000..fdf3f44768816dd92438ba50d0394ce52788fdbd --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/page-ent-40a7a904.css @@ -0,0 +1 @@ +.uni-stat-edit--x[data-v-c412e863]{display:flex;justify-content:space-between} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/page-res-eb13bfbf.css b/alpha/admin/unpackage/dist/build/h5/assets/page-res-eb13bfbf.css new file mode 100644 index 0000000000000000000000000000000000000000..d623156a859fe33b0adb25f7ab3a94c7b119ee70 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/page-res-eb13bfbf.css @@ -0,0 +1 @@ +.uni-stat-edit--x[data-v-b4f0553c]{display:flex;justify-content:space-between}.uni-stat-edit--btn[data-v-b4f0553c]{cursor:pointer} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-add.bb32ce68.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-add.bb32ce68.js new file mode 100644 index 0000000000000000000000000000000000000000..f533b1c393d4e292c10a8fcc730c333cbb0ac9d4 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-add.bb32ce68.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as d,o as s,c as m,w as u,i as r,a as i,d as c,f,g as p,m as _,q as h,X as V}from"./index-389238f5.js";import{_ as b}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as g}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-school-activity.ad20959b.js";const v=a.database();v.command;function k(e){let a={};for(let t in y)e.includes(t)&&(a[t]=y[t]);return a}const U=e({data(){let e={title:"",content:"",start_date:"",end_date:"",owner_id:"",background_picture:"",place:"",status:null,contact:"",invitee:""};return{formData:e,formOptions:{},rules:{...k(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{avatarChoose(){let e=this;console.log("upload image loading"),a.chooseAndUploadFile({type:"image",success(a){e.formData.icon=a.tempFiles[0].url,console.log(a)},fail(){console.log("upload icon failed")},complete(){}})},submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return v.collection("mustgo-school-activity").add(e).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{d({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,a,t,l,o,n){const d=f(p("uni-easyinput"),b),y=f(p("uni-forms-item"),D),v=_,k=h,U=V,w=r,C=f(p("uni-forms"),g);return s(),m(w,{class:"uni-container"},{default:u((()=>[i(C,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:u((()=>[i(y,{name:"title",label:"标题"},{default:u((()=>[i(d,{placeholder:"校园活动标题",modelValue:o.formData.title,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.title=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"content",label:"内容"},{default:u((()=>[i(d,{placeholder:"校园活动内容",modelValue:o.formData.content,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.content=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"start_date",label:"开始时间"},{default:u((()=>[i(d,{placeholder:"校园活动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.start_date=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"end_date",label:"结束时间"},{default:u((()=>[i(d,{placeholder:"校园活动结束时间",modelValue:o.formData.end_date,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.end_date=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"owner_id",label:"发布者id"},{default:u((()=>[i(d,{placeholder:"校园活动发布者id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[4]||(a[4]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"background_picture",label:"背景图片",onClick:n.avatarChoose},{default:u((()=>[i(v,{src:o.formData.background_picture,style:{width:"120px",height:"80px","background-color":"darkgray"}},null,8,["src"])])),_:1},8,["onClick"]),i(y,{name:"place",label:"地点"},{default:u((()=>[i(d,{placeholder:"校园活动地点",modelValue:o.formData.place,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.place=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"status",label:"活动状态"},{default:u((()=>[i(d,{placeholder:"校园活动状态",type:"number",modelValue:o.formData.status,"onUpdate:modelValue":a[6]||(a[6]=e=>o.formData.status=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"contact",label:"联系方式"},{default:u((()=>[i(d,{placeholder:"校园活动发布者联系方式",modelValue:o.formData.contact,"onUpdate:modelValue":a[7]||(a[7]=e=>o.formData.contact=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"invitee",label:"面向对象"},{default:u((()=>[i(d,{placeholder:"校园活动面向对象",modelValue:o.formData.invitee,"onUpdate:modelValue":a[8]||(a[8]=e=>o.formData.invitee=e)},null,8,["modelValue"])])),_:1}),i(w,{class:"uni-button-group"},{default:u((()=>[i(k,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:u((()=>[c("提交")])),_:1},8,["onClick"]),i(U,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:u((()=>[i(k,{class:"uni-button",style:{width:"100px"}},{default:u((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{U as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-edit.6020ac34.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-edit.6020ac34.js new file mode 100644 index 0000000000000000000000000000000000000000..4bc699206434ca790f08d7605aa1e73a7f371ca6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-edit.6020ac34.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as d,o as s,c as m,w as i,i as u,a as r,d as c,f,g as p,m as h,q as _,X as D}from"./index-389238f5.js";import{_ as V}from"./uni-easyinput.a1fc57c1.js";import{_ as b}from"./uni-forms-item.69698491.js";import{_ as g}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-school-activity.ad20959b.js";const v=a.database();v.command;const k="mustgo-school-activity";function w(e){let a={};for(let t in y)e.includes(t)&&(a[t]=y[t]);return a}const U=e({data(){let e={title:"",content:"",start_date:"",end_date:"",owner_id:"",background_picture:"",place:"",status:null,contact:"",invitee:""};return{formData:e,formOptions:{},rules:{...w(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{avatarChoose(){let e=this;console.log("upload image loading"),a.chooseAndUploadFile({type:"image",success(a){e.formData.icon=a.tempFiles[0].url,console.log(a)},fail(){console.log("upload icon failed")},complete(){}})},submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return v.collection(k).doc(this.formDataId).update(e).then((e=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{d({content:e.message||"请求服务失败",showCancel:!1})}))},getDetail(e){t({mask:!0}),v.collection(k).doc(e).field("title,content,start_date,end_date,owner_id,background_picture,place,status,contact,invitee").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{d({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(e,a,t,l,o,n){const d=f(p("uni-easyinput"),V),y=f(p("uni-forms-item"),b),v=h,k=_,w=D,U=u,C=f(p("uni-forms"),g);return s(),m(U,{class:"uni-container"},{default:i((()=>[r(C,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:i((()=>[r(y,{name:"title",label:"标题"},{default:i((()=>[r(d,{placeholder:"校园活动标题",modelValue:o.formData.title,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.title=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"content",label:"内容"},{default:i((()=>[r(d,{placeholder:"校园活动内容",modelValue:o.formData.content,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.content=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"start_date",label:"开始时间"},{default:i((()=>[r(d,{placeholder:"校园活动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.start_date=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"end_date",label:"结束时间"},{default:i((()=>[r(d,{placeholder:"校园活动结束时间",modelValue:o.formData.end_date,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.end_date=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"owner_id",label:"发布者id"},{default:i((()=>[r(d,{placeholder:"校园活动发布者id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[4]||(a[4]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"background_picture",label:"背景图片",onClick:n.avatarChoose},{default:i((()=>[r(v,{src:o.formData.background_picture,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:1},8,["onClick"]),r(y,{name:"place",label:"地点"},{default:i((()=>[r(d,{placeholder:"校园活动地点",modelValue:o.formData.place,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.place=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"status",label:"活动状态"},{default:i((()=>[r(d,{placeholder:"校园活动状态",type:"number",modelValue:o.formData.status,"onUpdate:modelValue":a[6]||(a[6]=e=>o.formData.status=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"contact",label:"联系方式"},{default:i((()=>[r(d,{placeholder:"校园活动发布者联系方式",modelValue:o.formData.contact,"onUpdate:modelValue":a[7]||(a[7]=e=>o.formData.contact=e)},null,8,["modelValue"])])),_:1}),r(y,{name:"invitee",label:"面向对象"},{default:i((()=>[r(d,{placeholder:"校园活动面向对象",modelValue:o.formData.invitee,"onUpdate:modelValue":a[8]||(a[8]=e=>o.formData.invitee=e)},null,8,["modelValue"])])),_:1}),r(U,{class:"uni-button-group"},{default:i((()=>[r(k,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:i((()=>[c("提交")])),_:1},8,["onClick"]),r(w,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:i((()=>[r(k,{class:"uni-button",style:{width:"100px"}},{default:i((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{U as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-list.dfbb028a.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-list.dfbb028a.js new file mode 100644 index 0000000000000000000000000000000000000000..86cc5143d2ed430d4ae0f84684e420aaf3209c1b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-school-list.dfbb028a.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as l,w as i,i as r,a as s,d as o,e as d,r as c,F as u,M as h,q as g,f,g as p,t as _,h as C,j as m,k as b,m as y,l as x}from"./index-389238f5.js";import{_ as k}from"./download-excel.9236b5ca.js";import{_ as w}from"./uni-pagination.018f31ea.js";import{_ as S}from"./unicloud-db.dfa2c90d.js";import{e as v,f as D}from"./mustgo-school-activity.ad20959b.js";const $=t.database(),z=[],F={ascending:"asc",descending:"desc"};const T=e({data:()=>({collectionList:"mustgo-school-activity",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...v},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-school-activity.xls",type:"xls",fields:{"标题":"title","内容":"content","开始时间":"start_date","结束时间":"end_date","发布者id":"owner_id","背景图片":"background_picture","地点":"place","活动状态":"status","联系方式":"contact","面向对象":"invitee"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return z.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+F[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=D(this._filter,$.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,v,D,$){const z=r,F=h,T=g,E=f(p("download-excel"),k),j=f(p("uni-th"),C),q=f(p("uni-tr"),m),I=f(p("uni-td"),b),L=y,V=f(p("uni-table"),x),U=f(p("uni-pagination"),w),B=f(p("unicloud-db"),S);return n(),l(z,null,{default:i((()=>[s(z,{class:"uni-header"},{default:i((()=>[s(z,{class:"uni-group"},{default:i((()=>[s(z,{class:"uni-title"}),s(z,{class:"uni-sub-title"})])),_:1}),s(z,{class:"uni-group"},{default:i((()=>[s(F,{class:"uni-search",type:"text",modelValue:D.query,"onUpdate:modelValue":t[0]||(t[0]=e=>D.query=e),onConfirm:$.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),s(T,{class:"uni-button",type:"default",size:"mini",onClick:$.search},{default:i((()=>[o("搜索")])),_:1},8,["onClick"]),s(T,{class:"uni-button",type:"default",size:"mini",onClick:t[1]||(t[1]=e=>$.navigateTo("./add"))},{default:i((()=>[o("新增")])),_:1}),s(T,{class:"uni-button",type:"default",size:"mini",disabled:!D.selectedIndexs.length,onClick:$.delTable},{default:i((()=>[o("批量删除")])),_:1},8,["disabled","onClick"]),s(E,{class:"hide-on-phone",fields:D.exportExcel.fields,data:D.exportExcelData,type:D.exportExcel.type,name:D.exportExcel.filename},{default:i((()=>[s(T,{class:"uni-button",type:"primary",size:"mini"},{default:i((()=>[o("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),s(z,{class:"uni-container"},{default:i((()=>[s(B,{ref:"udb",collection:D.collectionList,field:"title,content,start_date,end_date,owner_id,background_picture,place,status,contact,invitee",where:D.where,"page-data":"replace",orderby:D.orderby,getcount:!0,"page-size":D.options.pageSize,"page-current":D.options.pageCurrent,options:D.options,loadtime:"manual",onLoad:$.onqueryload},{default:i((({data:e,pagination:a,loading:r,error:h,options:g})=>[s(V,{ref:"table",loading:r,emptyText:h.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:$.selectionChange},{default:i((()=>[s(q,null,{default:i((()=>[s(j,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>$.filterChange(e,"title")),sortable:"",onSortChange:t[3]||(t[3]=e=>$.sortChange(e,"title"))},{default:i((()=>[o("标题")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>$.filterChange(e,"content")),sortable:"",onSortChange:t[5]||(t[5]=e=>$.sortChange(e,"content"))},{default:i((()=>[o("内容")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>$.filterChange(e,"start_date")),sortable:"",onSortChange:t[7]||(t[7]=e=>$.sortChange(e,"start_date"))},{default:i((()=>[o("开始时间")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[8]||(t[8]=e=>$.filterChange(e,"end_date")),sortable:"",onSortChange:t[9]||(t[9]=e=>$.sortChange(e,"end_date"))},{default:i((()=>[o("结束时间")])),_:1}),s(j,{align:"center",sortable:"",onSortChange:t[10]||(t[10]=e=>$.sortChange(e,"owner_id"))},{default:i((()=>[o("发布者id")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[11]||(t[11]=e=>$.filterChange(e,"background_picture")),sortable:"",onSortChange:t[12]||(t[12]=e=>$.sortChange(e,"background_picture"))},{default:i((()=>[o("背景图片")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[13]||(t[13]=e=>$.filterChange(e,"place")),sortable:"",onSortChange:t[14]||(t[14]=e=>$.sortChange(e,"place"))},{default:i((()=>[o("地点")])),_:1}),s(j,{align:"center",sortable:"",onSortChange:t[15]||(t[15]=e=>$.sortChange(e,"status"))},{default:i((()=>[o("活动状态")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[16]||(t[16]=e=>$.filterChange(e,"contact")),sortable:"",onSortChange:t[17]||(t[17]=e=>$.sortChange(e,"contact"))},{default:i((()=>[o("联系方式")])),_:1}),s(j,{align:"center","filter-type":"search",onFilterChange:t[18]||(t[18]=e=>$.filterChange(e,"invitee")),sortable:"",onSortChange:t[19]||(t[19]=e=>$.sortChange(e,"invitee"))},{default:i((()=>[o("面向对象")])),_:1}),s(j,{align:"center"},{default:i((()=>[o("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),l(q,{key:t},{default:i((()=>[s(I,{align:"center"},{default:i((()=>[o(_(e.title),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.content),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.start_date),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.end_date),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.owner_id),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[s(L,{src:e.background_picture,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.place),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.status),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.contact),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[o(_(e.invitee),1)])),_:2},1024),s(I,{align:"center"},{default:i((()=>[s(z,{class:"uni-group"},{default:i((()=>[s(T,{onClick:t=>$.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:i((()=>[o("修改")])),_:2},1032,["onClick"]),s(T,{onClick:t=>$.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:i((()=>[o("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),s(z,{class:"uni-pagination-box"},{default:i((()=>[s(U,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:$.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{T as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-add.0ccc416c.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-add.0ccc416c.js new file mode 100644 index 0000000000000000000000000000000000000000..50c5d3ad56ec42a89d084009e5146f15366de3b0 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-add.0ccc416c.js @@ -0,0 +1 @@ +import{_ as a,L as e,N as t,O as l,s as o,G as n,y as d,o as m,c as u,w as r,i as s,a as i,d as f,f as c,g as p,q as _,X as V}from"./index-389238f5.js";import{_ as h}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-team-activity.f91e8a14.js";const g=e.database();g.command;function U(a){let e={};for(let t in y)a.includes(t)&&(e[t]=y[t]);return e}const w=a({data(){let a={title:"",content:"",start_date:"",end_date:"",owner_id:"",place:"",status:null,participants:null,contact:"",team_id:""};return{formData:a,formOptions:{},rules:{...U(Object.keys(a))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((a=>this.submitForm(a))).catch((()=>{})).finally((()=>{l()}))},submitForm(a){return g.collection("mustgo-team-activity").add(a).then((a=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((a=>{d({content:a.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(a,e,t,l,o,n){const d=c(p("uni-easyinput"),h),y=c(p("uni-forms-item"),D),g=_,U=V,w=s,v=c(p("uni-forms"),b);return m(),u(w,{class:"uni-container"},{default:r((()=>[i(v,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:r((()=>[i(y,{name:"title",label:"标题"},{default:r((()=>[i(d,{placeholder:"小队活动标题",modelValue:o.formData.title,"onUpdate:modelValue":e[0]||(e[0]=a=>o.formData.title=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"content",label:"内容"},{default:r((()=>[i(d,{placeholder:"小队活动内容",modelValue:o.formData.content,"onUpdate:modelValue":e[1]||(e[1]=a=>o.formData.content=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"start_date",label:"开始时间"},{default:r((()=>[i(d,{placeholder:"小队活动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":e[2]||(e[2]=a=>o.formData.start_date=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"end_date",label:"结束时间"},{default:r((()=>[i(d,{placeholder:"小队活动结束时间",modelValue:o.formData.end_date,"onUpdate:modelValue":e[3]||(e[3]=a=>o.formData.end_date=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"owner_id",label:"发布者id"},{default:r((()=>[i(d,{placeholder:"小队活动发布者id",modelValue:o.formData.owner_id,"onUpdate:modelValue":e[4]||(e[4]=a=>o.formData.owner_id=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"place",label:"地点"},{default:r((()=>[i(d,{placeholder:"小队活动地点",modelValue:o.formData.place,"onUpdate:modelValue":e[5]||(e[5]=a=>o.formData.place=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"status",label:"活动状态"},{default:r((()=>[i(d,{placeholder:"小队活动状态",type:"number",modelValue:o.formData.status,"onUpdate:modelValue":e[6]||(e[6]=a=>o.formData.status=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"participants",label:"参与人数"},{default:r((()=>[i(d,{placeholder:"小队活动参与人数",type:"number",modelValue:o.formData.participants,"onUpdate:modelValue":e[7]||(e[7]=a=>o.formData.participants=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"contact",label:"联系方式"},{default:r((()=>[i(d,{placeholder:"小队活动发布者联系方式",modelValue:o.formData.contact,"onUpdate:modelValue":e[8]||(e[8]=a=>o.formData.contact=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"team_id",label:"小队id"},{default:r((()=>[i(d,{placeholder:"活动所属小队id",modelValue:o.formData.team_id,"onUpdate:modelValue":e[9]||(e[9]=a=>o.formData.team_id=a)},null,8,["modelValue"])])),_:1}),i(w,{class:"uni-button-group"},{default:r((()=>[i(g,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:r((()=>[f("提交")])),_:1},8,["onClick"]),i(U,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[i(g,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{w as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-edit.0f2fdcfc.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-edit.0f2fdcfc.js new file mode 100644 index 0000000000000000000000000000000000000000..933628cba9779fa61d57f83bd006f1d6d2d1d81e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-edit.0f2fdcfc.js @@ -0,0 +1 @@ +import{_ as a,L as e,N as t,O as l,s as o,G as n,y as d,o as m,c as s,w as r,i as u,a as i,d as c,f,g as p,q as _,X as h}from"./index-389238f5.js";import{_ as V}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-team-activity.f91e8a14.js";const g=e.database();g.command;const w="mustgo-team-activity";function U(a){let e={};for(let t in y)a.includes(t)&&(e[t]=y[t]);return e}const k=a({data(){let a={title:"",content:"",start_date:"",end_date:"",owner_id:"",background_picture:"",place:"",status:null,participants:null,contact:"",team_id:""};return{formData:a,formOptions:{},rules:{...U(Object.keys(a))}}},onLoad(a){if(a.id){const e=a.id;this.formDataId=e,this.getDetail(e)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((a=>this.submitForm(a))).catch((()=>{})).finally((()=>{l()}))},submitForm(a){return g.collection(w).doc(this.formDataId).update(a).then((a=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((a=>{d({content:a.message||"请求服务失败",showCancel:!1})}))},getDetail(a){t({mask:!0}),g.collection(w).doc(a).field("title,content,start_date,end_date,owner_id,background_picture,place,status,participants,contact,team_id").get().then((a=>{const e=a.result.data[0];e&&(this.formData=e)})).catch((a=>{d({content:a.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(a,e,t,l,o,n){const d=f(p("uni-easyinput"),V),y=f(p("uni-forms-item"),D),g=_,w=h,U=u,k=f(p("uni-forms"),b);return m(),s(U,{class:"uni-container"},{default:r((()=>[i(k,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:r((()=>[i(y,{name:"title",label:"标题"},{default:r((()=>[i(d,{placeholder:"小队活动标题",modelValue:o.formData.title,"onUpdate:modelValue":e[0]||(e[0]=a=>o.formData.title=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"content",label:"内容"},{default:r((()=>[i(d,{placeholder:"小队活动内容",modelValue:o.formData.content,"onUpdate:modelValue":e[1]||(e[1]=a=>o.formData.content=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"start_date",label:"开始时间"},{default:r((()=>[i(d,{placeholder:"小队活动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":e[2]||(e[2]=a=>o.formData.start_date=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"end_date",label:"结束时间"},{default:r((()=>[i(d,{placeholder:"小队活动结束时间",modelValue:o.formData.end_date,"onUpdate:modelValue":e[3]||(e[3]=a=>o.formData.end_date=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"owner_id",label:"发布者id"},{default:r((()=>[i(d,{placeholder:"小队活动发布者id",modelValue:o.formData.owner_id,"onUpdate:modelValue":e[4]||(e[4]=a=>o.formData.owner_id=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"place",label:"地点"},{default:r((()=>[i(d,{placeholder:"小队活动地点",modelValue:o.formData.place,"onUpdate:modelValue":e[5]||(e[5]=a=>o.formData.place=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"status",label:"活动状态"},{default:r((()=>[i(d,{placeholder:"小队活动状态",type:"number",modelValue:o.formData.status,"onUpdate:modelValue":e[6]||(e[6]=a=>o.formData.status=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"participants",label:"参与人数"},{default:r((()=>[i(d,{placeholder:"小队活动参与人数",type:"number",modelValue:o.formData.participants,"onUpdate:modelValue":e[7]||(e[7]=a=>o.formData.participants=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"contact",label:"联系方式"},{default:r((()=>[i(d,{placeholder:"小队活动发布者联系方式",modelValue:o.formData.contact,"onUpdate:modelValue":e[8]||(e[8]=a=>o.formData.contact=a)},null,8,["modelValue"])])),_:1}),i(y,{name:"team_id",label:"小队id"},{default:r((()=>[i(d,{placeholder:"活动所属小队id",modelValue:o.formData.team_id,"onUpdate:modelValue":e[9]||(e[9]=a=>o.formData.team_id=a)},null,8,["modelValue"])])),_:1}),i(U,{class:"uni-button-group"},{default:r((()=>[i(g,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:r((()=>[c("提交")])),_:1},8,["onClick"]),i(w,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[i(g,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{k as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-list.73acb30d.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-list.73acb30d.js new file mode 100644 index 0000000000000000000000000000000000000000..37b531f567fc83f18d3451aadf9293652b1d171f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-activity-team-list.73acb30d.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as l,i as r,a as s,d as o,e as d,r as c,F as u,M as h,q as g,f,g as p,t as _,h as m,j as C,k as b,l as y}from"./index-389238f5.js";import{_ as x}from"./download-excel.9236b5ca.js";import{_ as S}from"./uni-pagination.018f31ea.js";import{_ as w}from"./unicloud-db.dfa2c90d.js";import{e as k,f as D}from"./mustgo-team-activity.f91e8a14.js";const $=t.database(),z=[],v={ascending:"asc",descending:"desc"};const T=e({data:()=>({collectionList:"mustgo-team-activity",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...k},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-team-activity.xls",type:"xls",fields:{"标题":"title","内容":"content","开始时间":"start_date","结束时间":"end_date","发布者id":"owner_id","地点":"place","活动状态":"status","参与人数":"participants","联系方式":"contact","小队id":"team_id"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return z.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+v[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=D(this._filter,$.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,k,D,$){const z=r,v=h,T=g,E=f(p("download-excel"),x),F=f(p("uni-th"),m),j=f(p("uni-tr"),C),q=f(p("uni-td"),b),I=f(p("uni-table"),y),L=f(p("uni-pagination"),S),V=f(p("unicloud-db"),w);return n(),i(z,null,{default:l((()=>[s(z,{class:"uni-header"},{default:l((()=>[s(z,{class:"uni-group"},{default:l((()=>[s(z,{class:"uni-title"}),s(z,{class:"uni-sub-title"})])),_:1}),s(z,{class:"uni-group"},{default:l((()=>[s(v,{class:"uni-search",type:"text",modelValue:D.query,"onUpdate:modelValue":t[0]||(t[0]=e=>D.query=e),onConfirm:$.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),s(T,{class:"uni-button",type:"default",size:"mini",onClick:$.search},{default:l((()=>[o("搜索")])),_:1},8,["onClick"]),s(T,{class:"uni-button",type:"default",size:"mini",onClick:t[1]||(t[1]=e=>$.navigateTo("./add"))},{default:l((()=>[o("新增")])),_:1}),s(T,{class:"uni-button",type:"default",size:"mini",disabled:!D.selectedIndexs.length,onClick:$.delTable},{default:l((()=>[o("批量删除")])),_:1},8,["disabled","onClick"]),s(E,{class:"hide-on-phone",fields:D.exportExcel.fields,data:D.exportExcelData,type:D.exportExcel.type,name:D.exportExcel.filename},{default:l((()=>[s(T,{class:"uni-button",type:"primary",size:"mini"},{default:l((()=>[o("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),s(z,{class:"uni-container"},{default:l((()=>[s(V,{ref:"udb",collection:D.collectionList,field:"title,content,start_date,end_date,owner_id,background_picture,place,status,participants,contact,team_id",where:D.where,"page-data":"replace",orderby:D.orderby,getcount:!0,"page-size":D.options.pageSize,"page-current":D.options.pageCurrent,options:D.options,loadtime:"manual",onLoad:$.onqueryload},{default:l((({data:e,pagination:a,loading:r,error:h,options:g})=>[s(I,{ref:"table",loading:r,emptyText:h.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:$.selectionChange},{default:l((()=>[s(j,null,{default:l((()=>[s(F,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>$.filterChange(e,"title")),sortable:"",onSortChange:t[3]||(t[3]=e=>$.sortChange(e,"title"))},{default:l((()=>[o("标题")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>$.filterChange(e,"content")),sortable:"",onSortChange:t[5]||(t[5]=e=>$.sortChange(e,"content"))},{default:l((()=>[o("内容")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>$.filterChange(e,"start_date")),sortable:"",onSortChange:t[7]||(t[7]=e=>$.sortChange(e,"start_date"))},{default:l((()=>[o("开始时间")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[8]||(t[8]=e=>$.filterChange(e,"end_date")),sortable:"",onSortChange:t[9]||(t[9]=e=>$.sortChange(e,"end_date"))},{default:l((()=>[o("结束时间")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[10]||(t[10]=e=>$.sortChange(e,"owner_id"))},{default:l((()=>[o("发布者id")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[11]||(t[11]=e=>$.filterChange(e,"place")),sortable:"",onSortChange:t[12]||(t[12]=e=>$.sortChange(e,"place"))},{default:l((()=>[o("地点")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[13]||(t[13]=e=>$.sortChange(e,"status"))},{default:l((()=>[o("活动状态")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[14]||(t[14]=e=>$.filterChange(e,"participants")),sortable:"",onSortChange:t[15]||(t[15]=e=>$.sortChange(e,"participants"))},{default:l((()=>[o("参与人数")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[16]||(t[16]=e=>$.filterChange(e,"contact")),sortable:"",onSortChange:t[17]||(t[17]=e=>$.sortChange(e,"contact"))},{default:l((()=>[o("联系方式")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[18]||(t[18]=e=>$.sortChange(e,"team_id"))},{default:l((()=>[o("小队id")])),_:1}),s(F,{align:"center"},{default:l((()=>[o("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),i(j,{key:t},{default:l((()=>[s(q,{align:"center"},{default:l((()=>[o(_(e.title),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.content),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.start_date),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.end_date),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.owner_id),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.place),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.status),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.participants),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.contact),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[o(_(e.team_id),1)])),_:2},1024),s(q,{align:"center"},{default:l((()=>[s(z,{class:"uni-group"},{default:l((()=>[s(T,{onClick:t=>$.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:l((()=>[o("修改")])),_:2},1032,["onClick"]),s(T,{onClick:t=>$.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:l((()=>[o("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),s(z,{class:"uni-pagination-box"},{default:l((()=>[s(L,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:$.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{T as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-add.818bffd5.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-add.818bffd5.js new file mode 100644 index 0000000000000000000000000000000000000000..62b84a7e729ca43c3a67e06bdbe54db998751737 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-add.818bffd5.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as s,y as n,o as m,c as d,w as u,i as r,a as i,d as f,f as c,g as p,R as _,q as h,X as b}from"./index-389238f5.js";import{_ as k}from"./uni-easyinput.a1fc57c1.js";import{_ as V}from"./uni-forms-item.69698491.js";import{_ as D}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-post-comment.6f761277.js";const g=a.database();g.command;function w(e){let a={};for(let t in y)e.includes(t)&&(a[t]=y[t]);return a}const j=e({data(){let e={owner_id:"",date:"",likes:null,post_id:"",check_status:null,content:""};return{formData:e,formOptions:{},rules:{...w(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return g.collection("mustgo-post-comment").add(e).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,a,t,l,o,s){const n=c(p("uni-easyinput"),k),y=c(p("uni-forms-item"),V),g=_,w=h,j=b,v=r,x=c(p("uni-forms"),D);return m(),d(v,{class:"uni-container"},{default:u((()=>[i(x,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:u((()=>[i(y,{name:"owner_id",label:"评论人id"},{default:u((()=>[i(n,{placeholder:"评论人id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"date",label:"发布时间"},{default:u((()=>[i(n,{placeholder:"评论发布时间",modelValue:o.formData.date,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.date=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"likes",label:"点赞数"},{default:u((()=>[i(n,{placeholder:"评论点赞数",type:"number",modelValue:o.formData.likes,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.likes=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"post_id",label:"帖子id"},{default:u((()=>[i(n,{placeholder:"帖子id",modelValue:o.formData.post_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.post_id=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"check_status",label:"状态"},{default:u((()=>[i(g,{onChange:a[4]||(a[4]=a=>e.binddata("check_status",a.detail.value)),checked:o.formData.check_status},null,8,["checked"])])),_:1}),i(y,{name:"content",label:"评论内容"},{default:u((()=>[i(n,{placeholder:"评论内容",modelValue:o.formData.content,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.content=e)},null,8,["modelValue"])])),_:1}),i(v,{class:"uni-button-group"},{default:u((()=>[i(w,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:u((()=>[f("提交")])),_:1},8,["onClick"]),i(j,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:u((()=>[i(w,{class:"uni-button",style:{width:"100px"}},{default:u((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-edit.082d7a49.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-edit.082d7a49.js new file mode 100644 index 0000000000000000000000000000000000000000..f28ebbaf4a173cfdaa439659bf8c3cdb24245dac --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-edit.082d7a49.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as s,y as n,o as d,c as i,w as m,i as u,a as r,d as c,f,g as p,R as h,q as _,X as D}from"./index-389238f5.js";import{_ as b}from"./uni-easyinput.a1fc57c1.js";import{_ as k}from"./uni-forms-item.69698491.js";import{_ as g}from"./uni-forms.bc4bcf6e.js";import{v as V}from"./mustgo-post-comment.6f761277.js";const y=a.database();y.command;const w="mustgo-post-comment";function j(e){let a={};for(let t in V)e.includes(t)&&(a[t]=V[t]);return a}const v=e({data(){let e={owner_id:"",date:"",likes:null,post_id:"",check_status:null,content:""};return{formData:e,formOptions:{},rules:{...j(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return y.collection(w).doc(this.formDataId).update(e).then((e=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})}))},getDetail(e){t({mask:!0}),y.collection(w).doc(e).field("owner_id,date,likes,post_id,check_status,content").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(e,a,t,l,o,s){const n=f(p("uni-easyinput"),b),V=f(p("uni-forms-item"),k),y=h,w=_,j=D,v=u,C=f(p("uni-forms"),g);return d(),i(v,{class:"uni-container"},{default:m((()=>[r(C,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:m((()=>[r(V,{name:"owner_id",label:"评论人id"},{default:m((()=>[r(n,{placeholder:"评论人id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),r(V,{name:"date",label:"发布时间"},{default:m((()=>[r(n,{placeholder:"评论发布时间",modelValue:o.formData.date,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.date=e)},null,8,["modelValue"])])),_:1}),r(V,{name:"likes",label:"点赞数"},{default:m((()=>[r(n,{placeholder:"评论点赞数",type:"number",modelValue:o.formData.likes,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.likes=e)},null,8,["modelValue"])])),_:1}),r(V,{name:"post_id",label:"帖子id"},{default:m((()=>[r(n,{placeholder:"帖子id",modelValue:o.formData.post_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.post_id=e)},null,8,["modelValue"])])),_:1}),r(V,{name:"check_status",label:"状态"},{default:m((()=>[r(y,{onChange:a[4]||(a[4]=a=>e.binddata("check_status",a.detail.value)),checked:o.formData.check_status},null,8,["checked"])])),_:1}),r(V,{name:"content",label:"评论内容"},{default:m((()=>[r(n,{placeholder:"评论内容",modelValue:o.formData.content,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.content=e)},null,8,["modelValue"])])),_:1}),r(v,{class:"uni-button-group"},{default:m((()=>[r(w,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:m((()=>[c("提交")])),_:1},8,["onClick"]),r(j,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:m((()=>[r(w,{class:"uni-button",style:{width:"100px"}},{default:m((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{v as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-list.029ec0f7.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-list.029ec0f7.js new file mode 100644 index 0000000000000000000000000000000000000000..08df699f1a4305a133b011b56131940b4c1b1248 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-comment-list.029ec0f7.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as l,i as s,a as o,d as r,e as d,r as c,F as u,M as h,q as g,f,g as p,t as m,h as _,j as b,k as C,l as y}from"./index-389238f5.js";import{_ as x}from"./download-excel.9236b5ca.js";import{_ as k}from"./uni-pagination.018f31ea.js";import{_ as w}from"./unicloud-db.dfa2c90d.js";import{e as D,f as $}from"./mustgo-post-comment.6f761277.js";const S=t.database(),z=[],T={ascending:"asc",descending:"desc"};const E=e({data:()=>({collectionList:"mustgo-post-comment",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...D},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-post-comment.xls",type:"xls",fields:{"评论人id":"owner_id","发布时间":"date","点赞数":"likes","帖子id":"post_id","状态":"check_status","评论内容":"content"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return z.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+T[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=$(this._filter,S.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,D,$,S){const z=s,T=h,E=g,j=f(p("download-excel"),x),v=f(p("uni-th"),_),q=f(p("uni-tr"),b),I=f(p("uni-td"),C),L=f(p("uni-table"),y),V=f(p("uni-pagination"),k),F=f(p("unicloud-db"),w);return n(),i(z,null,{default:l((()=>[o(z,{class:"uni-header"},{default:l((()=>[o(z,{class:"uni-group"},{default:l((()=>[o(z,{class:"uni-title"}),o(z,{class:"uni-sub-title"})])),_:1}),o(z,{class:"uni-group"},{default:l((()=>[o(T,{class:"uni-search",type:"text",modelValue:$.query,"onUpdate:modelValue":t[0]||(t[0]=e=>$.query=e),onConfirm:S.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),o(E,{class:"uni-button",type:"default",size:"mini",onClick:S.search},{default:l((()=>[r("搜索")])),_:1},8,["onClick"]),o(E,{class:"uni-button",type:"default",size:"mini",onClick:t[1]||(t[1]=e=>S.navigateTo("./add"))},{default:l((()=>[r("新增")])),_:1}),o(E,{class:"uni-button",type:"default",size:"mini",disabled:!$.selectedIndexs.length,onClick:S.delTable},{default:l((()=>[r("批量删除")])),_:1},8,["disabled","onClick"]),o(j,{class:"hide-on-phone",fields:$.exportExcel.fields,data:$.exportExcelData,type:$.exportExcel.type,name:$.exportExcel.filename},{default:l((()=>[o(E,{class:"uni-button",type:"primary",size:"mini"},{default:l((()=>[r("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),o(z,{class:"uni-container"},{default:l((()=>[o(F,{ref:"udb",collection:$.collectionList,field:"owner_id,date,likes,post_id,check_status,content",where:$.where,"page-data":"replace",orderby:$.orderby,getcount:!0,"page-size":$.options.pageSize,"page-current":$.options.pageCurrent,options:$.options,loadtime:"manual",onLoad:S.onqueryload},{default:l((({data:e,pagination:a,loading:s,error:h,options:g})=>[o(L,{ref:"table",loading:s,emptyText:h.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:S.selectionChange},{default:l((()=>[o(q,null,{default:l((()=>[o(v,{align:"center",sortable:"",onSortChange:t[2]||(t[2]=e=>S.sortChange(e,"owner_id"))},{default:l((()=>[r("评论人id")])),_:1}),o(v,{align:"center","filter-type":"search",onFilterChange:t[3]||(t[3]=e=>S.filterChange(e,"date")),sortable:"",onSortChange:t[4]||(t[4]=e=>S.sortChange(e,"date"))},{default:l((()=>[r("发布时间")])),_:1}),o(v,{align:"center","filter-type":"range",onFilterChange:t[5]||(t[5]=e=>S.filterChange(e,"likes")),sortable:"",onSortChange:t[6]||(t[6]=e=>S.sortChange(e,"likes"))},{default:l((()=>[r("点赞数")])),_:1}),o(v,{align:"center",sortable:"",onSortChange:t[7]||(t[7]=e=>S.sortChange(e,"post_id"))},{default:l((()=>[r("帖子id")])),_:1}),o(v,{align:"center",sortable:"",onSortChange:t[8]||(t[8]=e=>S.sortChange(e,"check_status"))},{default:l((()=>[r("状态")])),_:1}),o(v,{align:"center","filter-type":"search",onFilterChange:t[9]||(t[9]=e=>S.filterChange(e,"content")),sortable:"",onSortChange:t[10]||(t[10]=e=>S.sortChange(e,"content"))},{default:l((()=>[r("评论内容")])),_:1}),o(v,{align:"center"},{default:l((()=>[r("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),i(q,{key:t},{default:l((()=>[o(I,{align:"center"},{default:l((()=>[r(m(e.owner_id),1)])),_:2},1024),o(I,{align:"center"},{default:l((()=>[r(m(e.date),1)])),_:2},1024),o(I,{align:"center"},{default:l((()=>[r(m(e.likes),1)])),_:2},1024),o(I,{align:"center"},{default:l((()=>[r(m(e.post_id),1)])),_:2},1024),o(I,{align:"center"},{default:l((()=>[r(m(1==e.check_status?"✅":"❌"),1)])),_:2},1024),o(I,{align:"center"},{default:l((()=>[r(m(e.content),1)])),_:2},1024),o(I,{align:"center"},{default:l((()=>[o(z,{class:"uni-group"},{default:l((()=>[o(E,{onClick:t=>S.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:l((()=>[r("修改")])),_:2},1032,["onClick"]),o(E,{onClick:t=>S.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:l((()=>[r("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),o(z,{class:"uni-pagination-box"},{default:l((()=>[o(V,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:S.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{E as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-add.39ba9480.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-add.39ba9480.js new file mode 100644 index 0000000000000000000000000000000000000000..2cd6807523cdbb22aef409709963c93e9609bdd3 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-add.39ba9480.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as m,o as s,c as u,w as r,i as d,a as i,d as c,f,g as p,R as _,q as h,X as b}from"./index-389238f5.js";import{_ as V}from"./uni-easyinput.a1fc57c1.js";import{_ as k}from"./uni-forms-item.69698491.js";import{_ as D}from"./uni-data-checkbox.b1dd95fe.js";import{_ as y}from"./uni-forms.bc4bcf6e.js";import{v as g}from"./mustgo-post.8570f775.js";import"./uni-load-more.67944ae0.js";const j=a.database();j.command;function w(e){let a={};for(let t in g)e.includes(t)&&(a[t]=g[t]);return a}const x=e({data(){let e={content:"",date:"",likes:null,owner_id:"",check_status:null,comment_num:null,url:[]};return{formData:e,formOptions:{},rules:{...w(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return j.collection("mustgo-post").add(e).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{m({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,a,t,l,o,n){const m=f(p("uni-easyinput"),V),g=f(p("uni-forms-item"),k),j=_,w=f(p("uni-data-checkbox"),D),x=h,v=b,U=d,C=f(p("uni-forms"),y);return s(),u(U,{class:"uni-container"},{default:r((()=>[i(C,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:r((()=>[i(g,{name:"content",label:"内容"},{default:r((()=>[i(m,{placeholder:"帖子内容",modelValue:o.formData.content,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.content=e)},null,8,["modelValue"])])),_:1}),i(g,{name:"date",label:"发布时间"},{default:r((()=>[i(m,{placeholder:"帖子发布时间",modelValue:o.formData.date,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.date=e)},null,8,["modelValue"])])),_:1}),i(g,{name:"likes",label:"点赞数"},{default:r((()=>[i(m,{placeholder:"帖子点赞数",type:"number",modelValue:o.formData.likes,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.likes=e)},null,8,["modelValue"])])),_:1}),i(g,{name:"owner_id",label:"发帖人id"},{default:r((()=>[i(m,{placeholder:"发帖人id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),i(g,{name:"check_status",label:"审核状态"},{default:r((()=>[i(j,{onChange:a[4]||(a[4]=a=>e.binddata("check_status",a.detail.value)),checked:o.formData.check_status},null,8,["checked"])])),_:1}),i(g,{name:"comment_num",label:"评论数"},{default:r((()=>[i(m,{placeholder:"帖子评论数",type:"number",modelValue:o.formData.comment_num,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.comment_num=e)},null,8,["modelValue"])])),_:1}),i(g,{name:"url",label:"图片url"},{default:r((()=>[i(w,{multiple:!0,modelValue:o.formData.url,"onUpdate:modelValue":a[6]||(a[6]=e=>o.formData.url=e)},null,8,["modelValue"])])),_:1}),i(U,{class:"uni-button-group"},{default:r((()=>[i(x,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:r((()=>[c("提交")])),_:1},8,["onClick"]),i(v,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[i(x,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{x as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-edit.13cbaef0.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-edit.13cbaef0.js new file mode 100644 index 0000000000000000000000000000000000000000..e8f2fe74018cc4ac49c21834eb6805853e2638af --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-edit.13cbaef0.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as s,o as m,c as u,w as d,i as r,a as i,d as c,f,g as h,R as p,q as _,X as b}from"./index-389238f5.js";import{_ as D}from"./uni-easyinput.a1fc57c1.js";import{_ as k}from"./uni-forms-item.69698491.js";import{_ as V}from"./uni-data-checkbox.b1dd95fe.js";import{_ as g}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-post.8570f775.js";import"./uni-load-more.67944ae0.js";const w=a.database();w.command;const j="mustgo-post";function x(e){let a={};for(let t in y)e.includes(t)&&(a[t]=y[t]);return a}const v=e({data(){let e={content:"",date:"",likes:null,owner_id:"",check_status:null,comment_num:null,url:[]};return{formData:e,formOptions:{},rules:{...x(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return w.collection(j).doc(this.formDataId).update(e).then((e=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{s({content:e.message||"请求服务失败",showCancel:!1})}))},getDetail(e){t({mask:!0}),w.collection(j).doc(e).field("content,date,likes,owner_id,check_status,comment_num,url").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{s({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(e,a,t,l,o,n){const s=f(h("uni-easyinput"),D),y=f(h("uni-forms-item"),k),w=p,j=f(h("uni-data-checkbox"),V),x=_,v=b,C=r,U=f(h("uni-forms"),g);return m(),u(C,{class:"uni-container"},{default:d((()=>[i(U,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:d((()=>[i(y,{name:"content",label:"内容"},{default:d((()=>[i(s,{placeholder:"帖子内容",modelValue:o.formData.content,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.content=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"date",label:"发布时间"},{default:d((()=>[i(s,{placeholder:"帖子发布时间",modelValue:o.formData.date,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.date=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"likes",label:"点赞数"},{default:d((()=>[i(s,{placeholder:"帖子点赞数",type:"number",modelValue:o.formData.likes,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.likes=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"owner_id",label:"发帖人id"},{default:d((()=>[i(s,{placeholder:"发帖人id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"check_status",label:"审核状态"},{default:d((()=>[i(w,{onChange:a[4]||(a[4]=a=>e.binddata("check_status",a.detail.value)),checked:o.formData.check_status},null,8,["checked"])])),_:1}),i(y,{name:"comment_num",label:"评论数"},{default:d((()=>[i(s,{placeholder:"帖子评论数",type:"number",modelValue:o.formData.comment_num,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.comment_num=e)},null,8,["modelValue"])])),_:1}),i(y,{name:"url",label:"图片url"},{default:d((()=>[i(j,{multiple:!0,modelValue:o.formData.url,"onUpdate:modelValue":a[6]||(a[6]=e=>o.formData.url=e)},null,8,["modelValue"])])),_:1}),i(C,{class:"uni-button-group"},{default:d((()=>[i(x,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:d((()=>[c("提交")])),_:1},8,["onClick"]),i(v,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:d((()=>[i(x,{class:"uni-button",style:{width:"100px"}},{default:d((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{v as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-list.756b3f3a.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-list.756b3f3a.js new file mode 100644 index 0000000000000000000000000000000000000000..95311ec4eee855235dc050a16f61af56c94df869 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-post-list.756b3f3a.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as l,w as i,i as s,a as o,d as r,e as d,r as c,F as u,M as h,q as g,f,g as p,t as m,h as _,j as b,k as C,l as y}from"./index-389238f5.js";import{_ as x}from"./download-excel.9236b5ca.js";import{_ as k}from"./uni-pagination.018f31ea.js";import{_ as w}from"./unicloud-db.dfa2c90d.js";import{e as D,f as S}from"./mustgo-post.8570f775.js";const $=t.database(),z=[],T={ascending:"asc",descending:"desc"};const E=e({data:()=>({collectionList:"mustgo-post",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...D},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-post.xls",type:"xls",fields:{"内容":"content","发布时间":"date","点赞数":"likes","发帖人id":"owner_id","审核状态":"check_status","评论数":"comment_num","图片url":"url"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return z.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+T[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=S(this._filter,$.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,D,S,$){const z=s,T=h,E=g,j=f(p("download-excel"),x),v=f(p("uni-th"),_),q=f(p("uni-tr"),b),F=f(p("uni-td"),C),I=f(p("uni-table"),y),L=f(p("uni-pagination"),k),V=f(p("unicloud-db"),w);return n(),l(z,null,{default:i((()=>[o(z,{class:"uni-header"},{default:i((()=>[o(z,{class:"uni-group"},{default:i((()=>[o(z,{class:"uni-title"}),o(z,{class:"uni-sub-title"})])),_:1}),o(z,{class:"uni-group"},{default:i((()=>[o(T,{class:"uni-search",type:"text",modelValue:S.query,"onUpdate:modelValue":t[0]||(t[0]=e=>S.query=e),onConfirm:$.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),o(E,{class:"uni-button",type:"default",size:"mini",onClick:$.search},{default:i((()=>[r("搜索")])),_:1},8,["onClick"]),o(E,{class:"uni-button",type:"default",size:"mini",onClick:t[1]||(t[1]=e=>$.navigateTo("./add"))},{default:i((()=>[r("新增")])),_:1}),o(E,{class:"uni-button",type:"default",size:"mini",disabled:!S.selectedIndexs.length,onClick:$.delTable},{default:i((()=>[r("批量删除")])),_:1},8,["disabled","onClick"]),o(j,{class:"hide-on-phone",fields:S.exportExcel.fields,data:S.exportExcelData,type:S.exportExcel.type,name:S.exportExcel.filename},{default:i((()=>[o(E,{class:"uni-button",type:"primary",size:"mini"},{default:i((()=>[r("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),o(z,{class:"uni-container"},{default:i((()=>[o(V,{ref:"udb",collection:S.collectionList,field:"content,date,likes,owner_id,check_status,comment_num,url",where:S.where,"page-data":"replace",orderby:S.orderby,getcount:!0,"page-size":S.options.pageSize,"page-current":S.options.pageCurrent,options:S.options,loadtime:"manual",onLoad:$.onqueryload},{default:i((({data:e,pagination:a,loading:s,error:h,options:g})=>[o(I,{ref:"table",loading:s,emptyText:h.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:$.selectionChange},{default:i((()=>[o(q,null,{default:i((()=>[o(v,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>$.filterChange(e,"content")),sortable:"",onSortChange:t[3]||(t[3]=e=>$.sortChange(e,"content"))},{default:i((()=>[r("内容")])),_:1}),o(v,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>$.filterChange(e,"date")),sortable:"",onSortChange:t[5]||(t[5]=e=>$.sortChange(e,"date"))},{default:i((()=>[r("发布时间")])),_:1}),o(v,{align:"center","filter-type":"range",onFilterChange:t[6]||(t[6]=e=>$.filterChange(e,"likes")),sortable:"",onSortChange:t[7]||(t[7]=e=>$.sortChange(e,"likes"))},{default:i((()=>[r("点赞数")])),_:1}),o(v,{align:"center",sortable:"",onSortChange:t[8]||(t[8]=e=>$.sortChange(e,"owner_id"))},{default:i((()=>[r("发帖人id")])),_:1}),o(v,{align:"center",sortable:"",onSortChange:t[9]||(t[9]=e=>$.sortChange(e,"check_status"))},{default:i((()=>[r("审核状态")])),_:1}),o(v,{align:"center","filter-type":"range",onFilterChange:t[10]||(t[10]=e=>$.filterChange(e,"comment_num")),sortable:"",onSortChange:t[11]||(t[11]=e=>$.sortChange(e,"comment_num"))},{default:i((()=>[r("评论数")])),_:1}),o(v,{align:"center",sortable:"",onSortChange:t[12]||(t[12]=e=>$.sortChange(e,"url"))},{default:i((()=>[r("图片url")])),_:1}),o(v,{align:"center"},{default:i((()=>[r("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),l(q,{key:t},{default:i((()=>[o(F,{align:"center"},{default:i((()=>[r(m(e.content),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[r(m(e.date),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[r(m(e.likes),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[r(m(e.owner_id),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[r(m(1==e.check_status?"✅":"❌"),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[r(m(e.comment_num),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[r(m(e.url),1)])),_:2},1024),o(F,{align:"center"},{default:i((()=>[o(z,{class:"uni-group"},{default:i((()=>[o(E,{onClick:t=>$.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:i((()=>[r("修改")])),_:2},1032,["onClick"]),o(E,{onClick:t=>$.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:i((()=>[r("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),o(z,{class:"uni-pagination-box"},{default:i((()=>[o(L,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:$.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{E as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-add.edfe1524.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-add.edfe1524.js new file mode 100644 index 0000000000000000000000000000000000000000..e6aac6e5edebd7b370813c5cf4d8ff7aeb491b82 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-add.edfe1524.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as l,O as t,s as o,G as n,y as d,o as u,c as m,w as r,i as s,a as i,d as f,f as p,g as c,B as _,q as h,X as V}from"./index-389238f5.js";import{_ as b}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as g}from"./uni-data-checkbox.b1dd95fe.js";import{_ as y}from"./uni-forms.bc4bcf6e.js";import{v as U}from"./mustgo-running-record.e84758c9.js";import"./uni-load-more.67944ae0.js";const j=a.database();j.command;function w(e){let a={};for(let l in U)e.includes(l)&&(a[l]=U[l]);return a}const k=e({data(){let e={start_date:"",duration:null,feelings:"",owner_id:"",distance:null,pace:null,path_line:[],start_point:null,end_point:null};return{formData:e,formOptions:{},rules:{...w(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){l({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{t()}))},submitForm(e){return j.collection("mustgo-running-record").add(e).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{d({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,a,l,t,o,n){const d=p(c("uni-easyinput"),b),U=p(c("uni-forms-item"),D),j=p(c("uni-data-checkbox"),g),w=_("undefined"),k=h,x=V,v=s,C=p(c("uni-forms"),y);return u(),m(v,{class:"uni-container"},{default:r((()=>[i(C,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:r((()=>[i(U,{name:"start_date",label:"开始时间"},{default:r((()=>[i(d,{placeholder:"运动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.start_date=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"duration",label:"持续时间"},{default:r((()=>[i(d,{placeholder:"运动持续时间",type:"number",modelValue:o.formData.duration,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.duration=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"feelings",label:"感受"},{default:r((()=>[i(d,{placeholder:"运动感受",modelValue:o.formData.feelings,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.feelings=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"owner_id",label:"用户id"},{default:r((()=>[i(d,{placeholder:"用户id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"distance",label:"距离"},{default:r((()=>[i(d,{placeholder:"运动距离",type:"number",modelValue:o.formData.distance,"onUpdate:modelValue":a[4]||(a[4]=e=>o.formData.distance=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"pace",label:"配速"},{default:r((()=>[i(d,{placeholder:"运动配速",type:"number",modelValue:o.formData.pace,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.pace=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"path_line",label:"路线"},{default:r((()=>[i(j,{multiple:!0,modelValue:o.formData.path_line,"onUpdate:modelValue":a[6]||(a[6]=e=>o.formData.path_line=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"start_point",label:"起始地点"},{default:r((()=>[i(w,{modelValue:o.formData.start_point,"onUpdate:modelValue":a[7]||(a[7]=e=>o.formData.start_point=e)},null,8,["modelValue"])])),_:1}),i(U,{name:"end_point",label:"结束地点"},{default:r((()=>[i(w,{modelValue:o.formData.end_point,"onUpdate:modelValue":a[8]||(a[8]=e=>o.formData.end_point=e)},null,8,["modelValue"])])),_:1}),i(v,{class:"uni-button-group"},{default:r((()=>[i(k,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:r((()=>[f("提交")])),_:1},8,["onClick"]),i(x,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[i(k,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{k as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-edit.7a3fa882.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-edit.7a3fa882.js new file mode 100644 index 0000000000000000000000000000000000000000..60fd57f593510565450deb0e7a2d4dc6013b8217 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-edit.7a3fa882.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as s,o as r,c as d,w as i,i as u,a as m,d as f,f as c,g as p,q as _,X as h}from"./index-389238f5.js";import{_ as g}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{v as V}from"./mustgo-running-record.e84758c9.js";const y=a.database();y.command;const w="mustgo-running-record";function j(e){let a={};for(let t in V)e.includes(t)&&(a[t]=V[t]);return a}const k=e({data(){let e={start_date:"",duration:null,feelings:"",owner_id:"",distance:null,pace:null,path_line:[],start_point:null,end_point:null};return{formData:e,formOptions:{},rules:{...j(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return y.collection(w).doc(this.formDataId).update(e).then((e=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{s({content:e.message||"请求服务失败",showCancel:!1})}))},getDetail(e){t({mask:!0}),y.collection(w).doc(e).field("start_date,duration,feelings,owner_id,distance,pace,path_line,start_point,end_point").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{s({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(e,a,t,l,o,n){const s=c(p("uni-easyinput"),g),V=c(p("uni-forms-item"),D),y=_,w=h,j=u,k=c(p("uni-forms"),b);return r(),d(j,{class:"uni-container"},{default:i((()=>[m(k,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:i((()=>[m(V,{name:"start_date",label:"开始时间"},{default:i((()=>[m(s,{placeholder:"运动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.start_date=e)},null,8,["modelValue"])])),_:1}),m(V,{name:"duration",label:"持续时间"},{default:i((()=>[m(s,{placeholder:"运动持续时间",type:"number",modelValue:o.formData.duration,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.duration=e)},null,8,["modelValue"])])),_:1}),m(V,{name:"feelings",label:"感受"},{default:i((()=>[m(s,{placeholder:"运动感受",modelValue:o.formData.feelings,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.feelings=e)},null,8,["modelValue"])])),_:1}),m(V,{name:"owner_id",label:"用户id"},{default:i((()=>[m(s,{placeholder:"用户id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),m(V,{name:"distance",label:"距离"},{default:i((()=>[m(s,{placeholder:"运动距离",type:"number",modelValue:o.formData.distance,"onUpdate:modelValue":a[4]||(a[4]=e=>o.formData.distance=e)},null,8,["modelValue"])])),_:1}),m(V,{name:"pace",label:"配速"},{default:i((()=>[m(s,{placeholder:"运动配速",type:"number",modelValue:o.formData.pace,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.pace=e)},null,8,["modelValue"])])),_:1}),m(j,{class:"uni-button-group"},{default:i((()=>[m(y,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:i((()=>[f("提交")])),_:1},8,["onClick"]),m(w,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:i((()=>[m(y,{class:"uni-button",style:{width:"100px"}},{default:i((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{k as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-list.a5448f7e.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-list.a5448f7e.js new file mode 100644 index 0000000000000000000000000000000000000000..1baeaf903cf618ffc21d4fcfae1b18b85e4954da --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-running-list.a5448f7e.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as l,i as r,a as s,d as o,e as d,r as c,F as u,M as g,q as h,f,g as p,t as _,h as m,j as C,k as b,l as y}from"./index-389238f5.js";import{_ as x}from"./download-excel.9236b5ca.js";import{_ as w}from"./uni-pagination.018f31ea.js";import{_ as S}from"./unicloud-db.dfa2c90d.js";import{e as D,f as $}from"./mustgo-running-record.e84758c9.js";const k=t.database(),z=[],E={ascending:"asc",descending:"desc"};const T=e({data:()=>({collectionList:"mustgo-running-record",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...D},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-running-record.xls",type:"xls",fields:{"开始时间":"start_date","持续时间":"duration","感受":"feelings","用户id":"owner_id","距离":"distance","配速":"pace","路线":"path_line","起始地点":"start_point","结束地点":"end_point"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return z.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+E[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=$(this._filter,k.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,D,$,k){const z=r,E=g,T=h,j=f(p("download-excel"),x),F=f(p("uni-th"),m),q=f(p("uni-tr"),C),v=f(p("uni-td"),b),I=f(p("uni-table"),y),L=f(p("uni-pagination"),w),V=f(p("unicloud-db"),S);return n(),i(z,null,{default:l((()=>[s(z,{class:"uni-header"},{default:l((()=>[s(z,{class:"uni-group"},{default:l((()=>[s(z,{class:"uni-title"}),s(z,{class:"uni-sub-title"})])),_:1}),s(z,{class:"uni-group"},{default:l((()=>[s(E,{class:"uni-search",type:"text",modelValue:$.query,"onUpdate:modelValue":t[0]||(t[0]=e=>$.query=e),onConfirm:k.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),s(T,{class:"uni-button",type:"default",size:"mini",onClick:k.search},{default:l((()=>[o("搜索")])),_:1},8,["onClick"]),s(T,{class:"uni-button",type:"default",size:"mini",disabled:!$.selectedIndexs.length,onClick:k.delTable},{default:l((()=>[o("批量删除")])),_:1},8,["disabled","onClick"]),s(j,{class:"hide-on-phone",fields:$.exportExcel.fields,data:$.exportExcelData,type:$.exportExcel.type,name:$.exportExcel.filename},{default:l((()=>[s(T,{class:"uni-button",type:"primary",size:"mini"},{default:l((()=>[o("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),s(z,{class:"uni-container"},{default:l((()=>[s(V,{ref:"udb",collection:$.collectionList,field:"start_date,duration,feelings,owner_id,distance,pace,path_line,start_point,end_point",where:$.where,"page-data":"replace",orderby:$.orderby,getcount:!0,"page-size":$.options.pageSize,"page-current":$.options.pageCurrent,options:$.options,loadtime:"manual",onLoad:k.onqueryload},{default:l((({data:e,pagination:a,loading:r,error:g,options:h})=>[s(I,{ref:"table",loading:r,emptyText:g.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:k.selectionChange},{default:l((()=>[s(q,null,{default:l((()=>[s(F,{align:"center","filter-type":"search",onFilterChange:t[1]||(t[1]=e=>k.filterChange(e,"start_date")),sortable:"",onSortChange:t[2]||(t[2]=e=>k.sortChange(e,"start_date"))},{default:l((()=>[o("开始时间")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[3]||(t[3]=e=>k.filterChange(e,"duration")),sortable:"",onSortChange:t[4]||(t[4]=e=>k.sortChange(e,"duration"))},{default:l((()=>[o("持续时间(秒)")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[5]||(t[5]=e=>k.filterChange(e,"feelings")),sortable:"",onSortChange:t[6]||(t[6]=e=>k.sortChange(e,"feelings"))},{default:l((()=>[o("感受")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[7]||(t[7]=e=>k.sortChange(e,"owner_id"))},{default:l((()=>[o("用户id")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[8]||(t[8]=e=>k.filterChange(e,"distance")),sortable:"",onSortChange:t[9]||(t[9]=e=>k.sortChange(e,"distance"))},{default:l((()=>[o("距离")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[10]||(t[10]=e=>k.filterChange(e,"pace")),sortable:"",onSortChange:t[11]||(t[11]=e=>k.sortChange(e,"pace"))},{default:l((()=>[o("配速")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[12]||(t[12]=e=>k.sortChange(e,"start_point"))},{default:l((()=>[o("起始地点")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[13]||(t[13]=e=>k.sortChange(e,"end_point"))},{default:l((()=>[o("结束地点")])),_:1}),s(F,{align:"center"},{default:l((()=>[o("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),i(q,{key:t},{default:l((()=>[s(v,{align:"center"},{default:l((()=>[o(_(e.start_date),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.duration),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.feelings),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.owner_id),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.distance),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.pace),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.start_point),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.end_point),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[s(z,{class:"uni-group"},{default:l((()=>[s(T,{onClick:t=>k.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:l((()=>[o("修改")])),_:2},1032,["onClick"]),s(T,{onClick:t=>k.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:l((()=>[o("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),s(z,{class:"uni-pagination-box"},{default:l((()=>[s(L,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:k.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{T as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-add.dd62b02c.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-add.dd62b02c.js new file mode 100644 index 0000000000000000000000000000000000000000..04a4a209913906a382e46f0f1f36902d45a7f920 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-add.dd62b02c.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as d,o as s,c as m,w as u,i as r,a as i,d as f,f as p,g as c,B as _,q as h,X as V}from"./index-389238f5.js";import{_ as b}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as g}from"./uni-data-checkbox.b1dd95fe.js";import{_ as y}from"./uni-forms.bc4bcf6e.js";import{v as w}from"./mustgo-walking-record.8249cf9a.js";import"./uni-load-more.67944ae0.js";const k=a.database();k.command;function U(e){let a={};for(let t in w)e.includes(t)&&(a[t]=w[t]);return a}const j=e({data(){let e={start_date:"",duration:null,feelings:"",owner_id:"",distance:null,steps:null,start_point:null,end_point:null,path_line:[]};return{formData:e,formOptions:{},rules:{...U(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return k.collection("mustgo-walking-record").add(e).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{d({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,a,t,l,o,n){const d=p(c("uni-easyinput"),b),w=p(c("uni-forms-item"),D),k=_("undefined"),U=p(c("uni-data-checkbox"),g),j=h,x=V,v=r,C=p(c("uni-forms"),y);return s(),m(v,{class:"uni-container"},{default:u((()=>[i(C,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:u((()=>[i(w,{name:"start_date",label:"开始时间"},{default:u((()=>[i(d,{placeholder:"运动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.start_date=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"duration",label:"持续时间"},{default:u((()=>[i(d,{placeholder:"运动持续时间",type:"number",modelValue:o.formData.duration,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.duration=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"feelings",label:"感受"},{default:u((()=>[i(d,{placeholder:"运动感受",modelValue:o.formData.feelings,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.feelings=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"owner_id",label:"用户id"},{default:u((()=>[i(d,{placeholder:"用户id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"distance",label:"距离"},{default:u((()=>[i(d,{placeholder:"运动距离",type:"number",modelValue:o.formData.distance,"onUpdate:modelValue":a[4]||(a[4]=e=>o.formData.distance=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"steps",label:"步数"},{default:u((()=>[i(d,{placeholder:"健走步数",type:"number",modelValue:o.formData.steps,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.steps=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"start_point",label:"起始地点"},{default:u((()=>[i(k,{modelValue:o.formData.start_point,"onUpdate:modelValue":a[6]||(a[6]=e=>o.formData.start_point=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"end_point",label:"结束地点"},{default:u((()=>[i(k,{modelValue:o.formData.end_point,"onUpdate:modelValue":a[7]||(a[7]=e=>o.formData.end_point=e)},null,8,["modelValue"])])),_:1}),i(w,{name:"path_line",label:"路线"},{default:u((()=>[i(U,{multiple:!0,modelValue:o.formData.path_line,"onUpdate:modelValue":a[8]||(a[8]=e=>o.formData.path_line=e)},null,8,["modelValue"])])),_:1}),i(v,{class:"uni-button-group"},{default:u((()=>[i(j,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:u((()=>[f("提交")])),_:1},8,["onClick"]),i(x,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:u((()=>[i(j,{class:"uni-button",style:{width:"100px"}},{default:u((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-edit.52788fa6.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-edit.52788fa6.js new file mode 100644 index 0000000000000000000000000000000000000000..50d17c36ca577fa63ceefbf11217c26ccb8a0e38 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-edit.52788fa6.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as o,G as n,y as s,o as r,c as d,w as i,i as m,a as u,d as f,f as c,g as p,q as _,X as h}from"./index-389238f5.js";import{_ as g}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{v as V}from"./mustgo-walking-record.8249cf9a.js";const y=a.database();y.command;const w="mustgo-walking-record";function k(e){let a={};for(let t in V)e.includes(t)&&(a[t]=V[t]);return a}const j=e({data(){let e={start_date:"",duration:null,feelings:"",owner_id:"",distance:null,pace:null,start_point:null,end_point:null,path_line:[]};return{formData:e,formOptions:{},rules:{...k(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{l()}))},submitForm(e){return y.collection(w).doc(this.formDataId).update(e).then((e=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{s({content:e.message||"请求服务失败",showCancel:!1})}))},getDetail(e){t({mask:!0}),y.collection(w).doc(e).field("start_date,duration,feelings,owner_id,distance,pace,start_point,end_point,path_line").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{s({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(e,a,t,l,o,n){const s=c(p("uni-easyinput"),g),V=c(p("uni-forms-item"),D),y=_,w=h,k=m,j=c(p("uni-forms"),b);return r(),d(k,{class:"uni-container"},{default:i((()=>[u(j,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:i((()=>[u(V,{name:"start_date",label:"开始时间"},{default:i((()=>[u(s,{placeholder:"运动开始时间",modelValue:o.formData.start_date,"onUpdate:modelValue":a[0]||(a[0]=e=>o.formData.start_date=e)},null,8,["modelValue"])])),_:1}),u(V,{name:"duration",label:"持续时间"},{default:i((()=>[u(s,{placeholder:"运动持续时间",type:"number",modelValue:o.formData.duration,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.duration=e)},null,8,["modelValue"])])),_:1}),u(V,{name:"feelings",label:"感受"},{default:i((()=>[u(s,{placeholder:"运动感受",modelValue:o.formData.feelings,"onUpdate:modelValue":a[2]||(a[2]=e=>o.formData.feelings=e)},null,8,["modelValue"])])),_:1}),u(V,{name:"owner_id",label:"用户id"},{default:i((()=>[u(s,{placeholder:"用户id",modelValue:o.formData.owner_id,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),u(V,{name:"distance",label:"距离"},{default:i((()=>[u(s,{placeholder:"运动距离",type:"number",modelValue:o.formData.distance,"onUpdate:modelValue":a[4]||(a[4]=e=>o.formData.distance=e)},null,8,["modelValue"])])),_:1}),u(V,{name:"pace",label:"配速"},{default:i((()=>[u(s,{placeholder:"运动配速",type:"number",modelValue:o.formData.pace,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.pace=e)},null,8,["modelValue"])])),_:1}),u(k,{class:"uni-button-group"},{default:i((()=>[u(y,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:i((()=>[f("提交")])),_:1},8,["onClick"]),u(w,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:i((()=>[u(y,{class:"uni-button",style:{width:"100px"}},{default:i((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-list.4b32de51.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-list.4b32de51.js new file mode 100644 index 0000000000000000000000000000000000000000..f41c926d22e011640645b718f5d264a30163543d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-record-walking-list.4b32de51.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as l,i as r,a as s,d as o,e as d,r as c,F as u,M as g,q as h,f,g as p,t as _,h as m,j as C,k as b,l as y}from"./index-389238f5.js";import{_ as x}from"./download-excel.9236b5ca.js";import{_ as w}from"./uni-pagination.018f31ea.js";import{_ as k}from"./unicloud-db.dfa2c90d.js";import{e as S,f as D}from"./mustgo-walking-record.8249cf9a.js";const $=t.database(),z=[],E={ascending:"asc",descending:"desc"};const T=e({data:()=>({collectionList:"mustgo-walking-record",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...S},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-walking-record.xls",type:"xls",fields:{"开始时间":"start_date","持续时间":"duration","感受":"feelings","用户id":"owner_id","距离":"distance","配速":"pace","起始地点":"start_point","结束地点":"end_point","路线":"path_line"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return z.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+E[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=D(this._filter,$.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,S,D,$){const z=r,E=g,T=h,j=f(p("download-excel"),x),F=f(p("uni-th"),m),q=f(p("uni-tr"),C),v=f(p("uni-td"),b),I=f(p("uni-table"),y),L=f(p("uni-pagination"),w),V=f(p("unicloud-db"),k);return n(),i(z,null,{default:l((()=>[s(z,{class:"uni-header"},{default:l((()=>[s(z,{class:"uni-group"},{default:l((()=>[s(z,{class:"uni-title"}),s(z,{class:"uni-sub-title"})])),_:1}),s(z,{class:"uni-group"},{default:l((()=>[s(E,{class:"uni-search",type:"text",modelValue:D.query,"onUpdate:modelValue":t[0]||(t[0]=e=>D.query=e),onConfirm:$.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),s(T,{class:"uni-button",type:"default",size:"mini",onClick:$.search},{default:l((()=>[o("搜索")])),_:1},8,["onClick"]),s(T,{class:"uni-button",type:"default",size:"mini",disabled:!D.selectedIndexs.length,onClick:$.delTable},{default:l((()=>[o("批量删除")])),_:1},8,["disabled","onClick"]),s(j,{class:"hide-on-phone",fields:D.exportExcel.fields,data:D.exportExcelData,type:D.exportExcel.type,name:D.exportExcel.filename},{default:l((()=>[s(T,{class:"uni-button",type:"primary",size:"mini"},{default:l((()=>[o("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),s(z,{class:"uni-container"},{default:l((()=>[s(V,{ref:"udb",collection:D.collectionList,field:"start_date,duration,feelings,owner_id,distance,pace,start_point,end_point,path_line",where:D.where,"page-data":"replace",orderby:D.orderby,getcount:!0,"page-size":D.options.pageSize,"page-current":D.options.pageCurrent,options:D.options,loadtime:"manual",onLoad:$.onqueryload},{default:l((({data:e,pagination:a,loading:r,error:g,options:h})=>[s(I,{ref:"table",loading:r,emptyText:g.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:$.selectionChange},{default:l((()=>[s(q,null,{default:l((()=>[s(F,{align:"center","filter-type":"search",onFilterChange:t[1]||(t[1]=e=>$.filterChange(e,"start_date")),sortable:"",onSortChange:t[2]||(t[2]=e=>$.sortChange(e,"start_date"))},{default:l((()=>[o("开始时间")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[3]||(t[3]=e=>$.filterChange(e,"duration")),sortable:"",onSortChange:t[4]||(t[4]=e=>$.sortChange(e,"duration"))},{default:l((()=>[o("持续时间")])),_:1}),s(F,{align:"center","filter-type":"search",onFilterChange:t[5]||(t[5]=e=>$.filterChange(e,"feelings")),sortable:"",onSortChange:t[6]||(t[6]=e=>$.sortChange(e,"feelings"))},{default:l((()=>[o("感受")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[7]||(t[7]=e=>$.sortChange(e,"owner_id"))},{default:l((()=>[o("用户id")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[8]||(t[8]=e=>$.filterChange(e,"distance")),sortable:"",onSortChange:t[9]||(t[9]=e=>$.sortChange(e,"distance"))},{default:l((()=>[o("距离")])),_:1}),s(F,{align:"center","filter-type":"range",onFilterChange:t[10]||(t[10]=e=>$.filterChange(e,"pace")),sortable:"",onSortChange:t[11]||(t[11]=e=>$.sortChange(e,"pace"))},{default:l((()=>[o("配速")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[12]||(t[12]=e=>$.sortChange(e,"start_point"))},{default:l((()=>[o("起始地点")])),_:1}),s(F,{align:"center",sortable:"",onSortChange:t[13]||(t[13]=e=>$.sortChange(e,"end_point"))},{default:l((()=>[o("结束地点")])),_:1}),s(F,{align:"center"},{default:l((()=>[o("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),i(q,{key:t},{default:l((()=>[s(v,{align:"center"},{default:l((()=>[o(_(e.start_date),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.duration),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.feelings),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.owner_id),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.distance),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.pace),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.start_point),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[o(_(e.end_point),1)])),_:2},1024),s(v,{align:"center"},{default:l((()=>[s(z,{class:"uni-group"},{default:l((()=>[s(T,{onClick:t=>$.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:l((()=>[o("修改")])),_:2},1032,["onClick"]),s(T,{onClick:t=>$.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:l((()=>[o("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),s(z,{class:"uni-pagination-box"},{default:l((()=>[s(L,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:$.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{T as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-add.2854119d.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-add.2854119d.js new file mode 100644 index 0000000000000000000000000000000000000000..def33c7dff015419e79f469b2963fa36cdfb2749 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-add.2854119d.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as o,s as l,G as s,y as n,o as i,c as m,w as r,i as d,a as u,d as c,m as f,f as p,g as h,q as g,X as _}from"./index-389238f5.js";import{_ as b}from"./uni-forms-item.69698491.js";import{_ as y}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms.bc4bcf6e.js";import{v as w}from"./mustgo-team.80703cc9.js";const V=a.database();V.command;function C(e){let a={};for(let t in w)e.includes(t)&&(a[t]=w[t]);return a}const j=e({data(){let e={icon:"https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/0510a534-dd8d-41f0-8341-601aa677e243.jpg",name:"",owner_id:"",description:""};return{formData:e,formOptions:{},rules:{...C(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{o()}))},avatarChoose(){let e=this;console.log("upload image loading"),a.chooseAndUploadFile({type:"image",success(a){e.formData.icon=a.tempFiles[0].url,console.log(a)},fail(){console.log("upload icon failed")},complete(){}})},submitForm(e){return V.collection("mustgo-team").add(e).then((e=>{l({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,a,t,o,l,s){const n=f,w=p(h("uni-forms-item"),b),V=p(h("uni-easyinput"),y),C=g,j=_,k=d,v=p(h("uni-forms"),D);return i(),m(k,{class:"uni-container"},{default:r((()=>[u(v,{ref:"form",model:l.formData,validateTrigger:"bind"},{default:r((()=>[u(w,{name:"icon",label:"队标",onClick:s.avatarChoose},{default:r((()=>[u(n,{src:l.formData.icon,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:1},8,["onClick"]),u(w,{name:"name",label:"队名"},{default:r((()=>[u(V,{placeholder:"小队名称",modelValue:l.formData.name,"onUpdate:modelValue":a[0]||(a[0]=e=>l.formData.name=e)},null,8,["modelValue"])])),_:1}),u(w,{name:"owner_id",label:"发起人id"},{default:r((()=>[u(V,{placeholder:"小队发起人id",modelValue:l.formData.owner_id,"onUpdate:modelValue":a[1]||(a[1]=e=>l.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),u(w,{name:"description",label:"描述"},{default:r((()=>[u(V,{placeholder:"小队描述",modelValue:l.formData.description,"onUpdate:modelValue":a[2]||(a[2]=e=>l.formData.description=e)},null,8,["modelValue"])])),_:1}),u(k,{class:"uni-button-group"},{default:r((()=>[u(C,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:r((()=>[c("提交")])),_:1},8,["onClick"]),u(j,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[u(C,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-edit.49d863ca.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-edit.49d863ca.js new file mode 100644 index 0000000000000000000000000000000000000000..43615efc462ff21b993442a986693bbb56783434 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-edit.49d863ca.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as o,s,G as l,y as n,o as i,c as r,w as m,i as d,a as u,d as c,m as f,f as p,g as h,q as g,X as _}from"./index-389238f5.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as y}from"./uni-easyinput.a1fc57c1.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{v as w}from"./mustgo-team.80703cc9.js";const C=a.database();C.command;const V="mustgo-team";function k(e){let a={};for(let t in w)e.includes(t)&&(a[t]=w[t]);return a}const v=e({data(){let e={icon:"",name:"",owner_id:"",description:""};return{formData:e,formOptions:{},rules:{...k(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{o()}))},submitForm(e){return C.collection(V).doc(this.formDataId).update(e).then((e=>{s({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>l()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})}))},avatarChoose(){let e=this;console.log("upload image loading"),a.chooseAndUploadFile({type:"image",success(a){e.formData.icon=a.tempFiles[0].url,console.log(a)},fail(){console.log("upload icon failed")},complete(){}})},getDetail(e){t({mask:!0}),C.collection(V).doc(e).field("icon,name,owner_id,description").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{o()}))}}},[["render",function(e,a,t,o,s,l){const n=f,w=p(h("uni-forms-item"),D),C=p(h("uni-easyinput"),y),V=g,k=_,v=d,x=p(h("uni-forms"),b);return i(),r(v,{class:"uni-container"},{default:m((()=>[u(x,{ref:"form",model:s.formData,validateTrigger:"bind"},{default:m((()=>[u(w,{name:"icon",label:"队标",onClick:l.avatarChoose},{default:m((()=>[u(n,{src:s.formData.icon,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:1},8,["onClick"]),u(w,{name:"name",label:"队名"},{default:m((()=>[u(C,{placeholder:"小队名称",modelValue:s.formData.name,"onUpdate:modelValue":a[0]||(a[0]=e=>s.formData.name=e)},null,8,["modelValue"])])),_:1}),u(w,{name:"owner_id",label:"发起人id"},{default:m((()=>[u(C,{placeholder:"小队发起人id",modelValue:s.formData.owner_id,"onUpdate:modelValue":a[1]||(a[1]=e=>s.formData.owner_id=e)},null,8,["modelValue"])])),_:1}),u(w,{name:"description",label:"描述"},{default:m((()=>[u(C,{placeholder:"小队描述",modelValue:s.formData.description,"onUpdate:modelValue":a[2]||(a[2]=e=>s.formData.description=e)},null,8,["modelValue"])])),_:1}),u(v,{class:"uni-button-group"},{default:m((()=>[u(V,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:l.submit},{default:m((()=>[c("提交")])),_:1},8,["onClick"]),u(k,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:m((()=>[u(V,{class:"uni-button",style:{width:"100px"}},{default:m((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{v as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-list.56529fc3.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-list.56529fc3.js new file mode 100644 index 0000000000000000000000000000000000000000..f7add71fd2d590e5276f43ceb6be5e761be969e8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-team-list.56529fc3.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as l,i as s,a as o,d as r,e as d,r as c,F as u,M as h,q as f,f as g,g as p,t as m,h as b,j as _,m as y,k as x,l as C}from"./index-389238f5.js";import{_ as w}from"./download-excel.9236b5ca.js";import{_ as D}from"./uni-pagination.018f31ea.js";import{_ as k}from"./unicloud-db.dfa2c90d.js";import{e as $,f as z}from"./mustgo-team.80703cc9.js";const S=t.database(),T=[],E={ascending:"asc",descending:"desc"};const j=e({data:()=>({collectionList:"mustgo-team",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...$},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-team.xls",type:"xls",fields:{"队标":"icon","队名":"name","发起人id":"owner_id","描述":"description"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return T.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+E[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=z(this._filter,S.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,$,z,S){const T=s,E=h,j=f,v=g(p("download-excel"),w),q=g(p("uni-th"),b),I=g(p("uni-tr"),_),L=y,V=g(p("uni-td"),x),F=g(p("uni-table"),C),U=g(p("uni-pagination"),D),B=g(p("unicloud-db"),k);return n(),i(T,null,{default:l((()=>[o(T,{class:"uni-header"},{default:l((()=>[o(T,{class:"uni-group"},{default:l((()=>[o(T,{class:"uni-title"}),o(T,{class:"uni-sub-title"})])),_:1}),o(T,{class:"uni-group"},{default:l((()=>[o(E,{class:"uni-search",type:"text",modelValue:z.query,"onUpdate:modelValue":t[0]||(t[0]=e=>z.query=e),onConfirm:S.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),o(j,{class:"uni-button",type:"default",size:"mini",onClick:S.search},{default:l((()=>[r("搜索")])),_:1},8,["onClick"]),o(j,{class:"uni-button",type:"default",size:"mini",onClick:t[1]||(t[1]=e=>S.navigateTo("./add"))},{default:l((()=>[r("新增")])),_:1}),o(j,{class:"uni-button",type:"default",size:"mini",disabled:!z.selectedIndexs.length,onClick:S.delTable},{default:l((()=>[r("批量删除")])),_:1},8,["disabled","onClick"]),o(v,{class:"hide-on-phone",fields:z.exportExcel.fields,data:z.exportExcelData,type:z.exportExcel.type,name:z.exportExcel.filename},{default:l((()=>[o(j,{class:"uni-button",type:"primary",size:"mini"},{default:l((()=>[r("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),o(T,{class:"uni-container"},{default:l((()=>[o(B,{ref:"udb",collection:z.collectionList,field:"icon,name,owner_id,description",where:z.where,"page-data":"replace",orderby:z.orderby,getcount:!0,"page-size":z.options.pageSize,"page-current":z.options.pageCurrent,options:z.options,loadtime:"manual",onLoad:S.onqueryload},{default:l((({data:e,pagination:a,loading:s,error:h,options:f})=>[o(F,{ref:"table",loading:s,emptyText:h.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:S.selectionChange},{default:l((()=>[o(I,null,{default:l((()=>[o(q,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>S.filterChange(e,"icon")),sortable:"",onSortChange:t[3]||(t[3]=e=>S.sortChange(e,"icon"))},{default:l((()=>[r("队标")])),_:1}),o(q,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>S.filterChange(e,"name")),sortable:"",onSortChange:t[5]||(t[5]=e=>S.sortChange(e,"name"))},{default:l((()=>[r("队名")])),_:1}),o(q,{align:"center",sortable:"",onSortChange:t[6]||(t[6]=e=>S.sortChange(e,"owner_id"))},{default:l((()=>[r("发起人id")])),_:1}),o(q,{align:"center","filter-type":"search",onFilterChange:t[7]||(t[7]=e=>S.filterChange(e,"description")),sortable:"",onSortChange:t[8]||(t[8]=e=>S.sortChange(e,"description"))},{default:l((()=>[r("描述")])),_:1}),o(q,{align:"center"},{default:l((()=>[r("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),i(I,{key:t},{default:l((()=>[o(V,{align:"center"},{default:l((()=>[o(L,{src:e.icon,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:2},1024),o(V,{align:"center"},{default:l((()=>[r(m(e.name),1)])),_:2},1024),o(V,{align:"center"},{default:l((()=>[r(m(e.owner_id),1)])),_:2},1024),o(V,{align:"center"},{default:l((()=>[r(m(e.description),1)])),_:2},1024),o(V,{align:"center"},{default:l((()=>[o(T,{class:"uni-group"},{default:l((()=>[o(j,{onClick:t=>S.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:l((()=>[r("修改")])),_:2},1032,["onClick"]),o(j,{onClick:t=>S.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:l((()=>[r("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),o(T,{class:"uni-pagination-box"},{default:l((()=>[o(U,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:S.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-add.618dad60.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-add.618dad60.js new file mode 100644 index 0000000000000000000000000000000000000000..b24ec366bc4c4a058555d614e0dc8734db2aca06 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-add.618dad60.js @@ -0,0 +1 @@ +import{_ as e,o as a,c as t,w as l,a as u,I as o,z as n,d as i,p as s,i as d,M as m,L as r,N as c,O as p,s as f,G as h,y as b,f as V,g as _,q as g,X as y}from"./index-389238f5.js";import{_ as x}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as k}from"./uni-file-picker.1b864550.js";import{_ as v}from"./uni-data-checkbox.b1dd95fe.js";import{_ as w}from"./uni-forms.bc4bcf6e.js";import{v as U}from"./mustgo-user.22c2617f.js";import"./uni-load-more.67944ae0.js";const S=e({name:"UniNumberBox",emits:["change","input","update:modelValue","blur","focus"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},background:{type:String,default:"#f5f5f5"},color:{type:String,default:"#333"},disabled:{type:Boolean,default:!1}},data:()=>({inputValue:0}),watch:{value(e){this.inputValue=+e},modelValue(e){this.inputValue=+e}},created(){1===this.value&&(this.inputValue=+this.modelValue),1===this.modelValue&&(this.inputValue=+this.value)},methods:{_calcValue(e){if(this.disabled)return;const a=this._getDecimalScale();let t=this.inputValue*a,l=this.step*a;if("minus"===e){if(t-=l,tthis.max*a&&(t=this.max*a)}if("plus"===e){if(t+=l,t>this.max*a)return;tthis.max?a=this.max:a[u(V,{onClick:r[0]||(r[0]=e=>h._calcValue("minus")),class:"uni-numbox__minus uni-numbox-btns",style:o({background:c.background})},{default:l((()=>[u(b,{class:n(["uni-numbox--text",{"uni-numbox--disabled":f.inputValue<=c.min||c.disabled}]),style:o({color:c.color})},{default:l((()=>[i("-")])),_:1},8,["class","style"])])),_:1},8,["style"]),u(_,{disabled:c.disabled,onFocus:h._onFocus,onBlur:h._onBlur,class:"uni-numbox__value",type:"number",modelValue:f.inputValue,"onUpdate:modelValue":r[1]||(r[1]=e=>f.inputValue=e),style:o({background:c.background,color:c.color})},null,8,["disabled","onFocus","onBlur","modelValue","style"]),u(V,{onClick:r[2]||(r[2]=e=>h._calcValue("plus")),class:"uni-numbox__plus uni-numbox-btns",style:o({background:c.background})},{default:l((()=>[u(b,{class:n(["uni-numbox--text",{"uni-numbox--disabled":f.inputValue>=c.max||c.disabled}]),style:o({color:c.color})},{default:l((()=>[i("+")])),_:1},8,["class","style"])])),_:1},8,["style"])])),_:1})}],["__scopeId","data-v-0f576b9a"]]),j=r.database();j.command;function q(e){let a={};for(let t in U)e.includes(t)&&(a[t]=U[t]);return a}const $=e({data:()=>({icon:[],formData:{url:""},formOptions:{},rules:{...q(Object.keys({}))},genders:[{text:"男",value:"男"},{text:"女",value:"女"}],types:[{text:"学生",value:"644a64c228064a7587cd79bf"},{text:"老师",value:"644a64d2e766bb0085e6048e"}]}),watch:{icon(e,a){this.formData.icon=e[0].url}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){this.formData.icon=this.icon[0].url,console.log(this.formData.icon),console.log(this.formData),c({mask:!0}),this.$refs.form.validate().then((e=>this.submitForm(e))).catch((()=>{})).finally((()=>{p()}))},submitForm(e){return j.collection("mustgo-user").add(e).then((e=>{f({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>h()),500)})).catch((e=>{b({content:e.message||"请求服务失败",showCancel:!1})}))}}},[["render",function(e,o,n,s,m,r){const c=V(_("uni-easyinput"),x),p=V(_("uni-forms-item"),D),f=V(_("uni-file-picker"),k),h=V(_("uni-data-checkbox"),v),b=V(_("uni-number-box"),S),U=g,j=y,q=d,$=V(_("uni-forms"),w);return a(),t(q,{class:"uni-container"},{default:l((()=>[u($,{ref:"form",model:m.formData,validateTrigger:"bind"},{default:l((()=>[u(p,{name:"name",label:"用户名",required:""},{default:l((()=>[u(c,{modelValue:m.formData.name,"onUpdate:modelValue":o[0]||(o[0]=e=>m.formData.name=e),clearable:!1,placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),u(p,{name:"icon",label:"用户头像",required:""},{default:l((()=>[u(f,{modelValue:m.icon,"onUpdate:modelValue":o[1]||(o[1]=e=>m.icon=e),fileMediatype:"image",mode:"grid"},null,8,["modelValue"]),u(c,{modelValue:m.formData.icon,"onUpdate:modelValue":o[2]||(o[2]=e=>m.formData.icon=e),clearable:!1,disabled:"true"},null,8,["modelValue"])])),_:1}),u(p,{name:"gender",label:"性别",class:"flex-center-x"},{default:l((()=>[u(h,{localdata:m.genders,modelValue:m.formData.gender,"onUpdate:modelValue":o[3]||(o[3]=e=>m.formData.gender=e)},null,8,["localdata","modelValue"])])),_:1}),u(p,{name:"password",label:"初始密码",required:""},{default:l((()=>[u(c,{modelValue:m.formData.password,"onUpdate:modelValue":o[4]||(o[4]=e=>m.formData.password=e),clearable:!1,placeholder:"请输入初始密码"},null,8,["modelValue"])])),_:1}),u(p,{name:"phone_num",label:"手机号",required:""},{default:l((()=>[u(c,{modelValue:m.formData.phone_num,"onUpdate:modelValue":o[5]||(o[5]=e=>m.formData.phone_num=e),clearable:!1,placeholder:"请输入手机号"},null,8,["modelValue"])])),_:1}),u(p,{name:"school",label:"学校",required:""},{default:l((()=>[u(c,{modelValue:m.formData.school,"onUpdate:modelValue":o[6]||(o[6]=e=>m.formData.school=e),clearable:!1,placeholder:"请输入学校"},null,8,["modelValue"])])),_:1}),u(p,{name:"type",label:"类型",required:""},{default:l((()=>[u(h,{localdata:m.types,modelValue:m.formData.type,"onUpdate:modelValue":o[7]||(o[7]=e=>m.formData.type=e)},null,8,["localdata","modelValue"])])),_:1}),u(p,{name:"total_running_distance",label:"跑步总距离",required:""},{default:l((()=>[u(b,{value:0,step:.1,modelValue:m.formData.total_running_distance,"onUpdate:modelValue":o[8]||(o[8]=e=>m.formData.total_running_distance=e)},null,8,["value","step","modelValue"])])),_:1}),u(p,{name:"total_walking_distance",label:"健走总距离",required:""},{default:l((()=>[u(b,{value:0,step:.1,modelValue:m.formData.total_walking_distance,"onUpdate:modelValue":o[9]||(o[9]=e=>m.formData.total_walking_distance=e)},null,8,["value","step","modelValue"])])),_:1}),u(q,{class:"uni-button-group"},{default:l((()=>[u(U,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:r.submit},{default:l((()=>[i("提交")])),_:1},8,["onClick"]),u(j,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:l((()=>[u(U,{class:"uni-button",style:{width:"100px"}},{default:l((()=>[i("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{$ as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-edit.a2b1bb62.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-edit.a2b1bb62.js new file mode 100644 index 0000000000000000000000000000000000000000..84f2b2134195a33fb2a3644fda7f8045c3d8d2b6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-edit.a2b1bb62.js @@ -0,0 +1 @@ +import{_ as a,L as e,N as t,O as l,s as o,G as n,y as s,o as m,c as d,w as i,i as u,a as r,d as f,f as c,g as p,m as _,q as h,X as g}from"./index-389238f5.js";import{_ as D}from"./uni-easyinput.a1fc57c1.js";import{_ as V}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{v as y}from"./mustgo-user.22c2617f.js";const w=e.database();w.command;const k="mustgo-user";function U(a){let e={};for(let t in y)a.includes(t)&&(e[t]=y[t]);return e}const C=a({data(){let a={name:"",icon:"https://mp-6f6feaec-a026-4402-8e8d-18f7572890da.cdn.bspapp.com/cloudstorage/0510a534-dd8d-41f0-8341-601aa677e243.jpg",gender:"",password:"",phone_num:"",team_id:"",school:"",type:"",total_running_distance:0,total_walking_distance:0};return{formData:a,formOptions:{},rules:{...U(Object.keys(a))}}},onLoad(a){if(a.id){const e=a.id;this.formDataId=e,this.getDetail(e)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((a=>this.submitForm(a))).catch((()=>{})).finally((()=>{l()}))},submitForm(a){return w.collection(k).doc(this.formDataId).update(a).then((a=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((a=>{s({content:a.message||"请求服务失败",showCancel:!1})}))},avatarChoose(){let a=this;console.log("upload image loading"),e.chooseAndUploadFile({type:"image",success(e){a.formData.icon=e.tempFiles[0].url,console.log(e)},fail(){console.log("upload icon failed")},complete(){}})},getDetail(a){t({mask:!0}),w.collection(k).doc(a).field("name,icon,gender,password,phone_num,team_id,school,type,total_running_distance,total_walking_distance").get().then((a=>{const e=a.result.data[0];e&&(this.formData=e)})).catch((a=>{s({content:a.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))}}},[["render",function(a,e,t,l,o,n){const s=c(p("uni-easyinput"),D),y=c(p("uni-forms-item"),V),w=_,k=h,U=g,C=u,j=c(p("uni-forms"),b);return m(),d(C,{class:"uni-container"},{default:i((()=>[r(j,{ref:"form",model:o.formData,validateTrigger:"bind"},{default:i((()=>[r(y,{name:"name",label:"用户名"},{default:i((()=>[r(s,{modelValue:o.formData.name,"onUpdate:modelValue":e[0]||(e[0]=a=>o.formData.name=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"icon",label:"用户头像",onClick:n.avatarChoose},{default:i((()=>[r(w,{src:o.formData.icon,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:1},8,["onClick"]),r(y,{name:"gender",label:"性别"},{default:i((()=>[r(s,{modelValue:o.formData.gender,"onUpdate:modelValue":e[1]||(e[1]=a=>o.formData.gender=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"password",label:"密码"},{default:i((()=>[r(s,{modelValue:o.formData.password,"onUpdate:modelValue":e[2]||(e[2]=a=>o.formData.password=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"phone_num",label:"手机号"},{default:i((()=>[r(s,{modelValue:o.formData.phone_num,"onUpdate:modelValue":e[3]||(e[3]=a=>o.formData.phone_num=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"team_id",label:"小组 id"},{default:i((()=>[r(s,{modelValue:o.formData.team_id,"onUpdate:modelValue":e[4]||(e[4]=a=>o.formData.team_id=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"school",label:"学校"},{default:i((()=>[r(s,{modelValue:o.formData.school,"onUpdate:modelValue":e[5]||(e[5]=a=>o.formData.school=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"type",label:"人员"},{default:i((()=>[r(s,{modelValue:o.formData.type,"onUpdate:modelValue":e[6]||(e[6]=a=>o.formData.type=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"total_running_distance",label:"跑步总距离"},{default:i((()=>[r(s,{type:"number",modelValue:o.formData.total_running_distance,"onUpdate:modelValue":e[7]||(e[7]=a=>o.formData.total_running_distance=a)},null,8,["modelValue"])])),_:1}),r(y,{name:"total_walking_distance",label:"健走总距离"},{default:i((()=>[r(s,{type:"number",modelValue:o.formData.total_walking_distance,"onUpdate:modelValue":e[8]||(e[8]=a=>o.formData.total_walking_distance=a)},null,8,["modelValue"])])),_:1}),r(C,{class:"uni-button-group"},{default:i((()=>[r(k,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:i((()=>[f("提交")])),_:1},8,["onClick"]),r(U,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:i((()=>[r(k,{class:"uni-button",style:{width:"100px"}},{default:i((()=>[f("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["model"])])),_:1})}]]);export{C as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-list.820c238b.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-list.820c238b.js new file mode 100644 index 0000000000000000000000000000000000000000..27187b92e80fc36b718bb853c9beb53d9417900b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-content-mustgo-user-list.820c238b.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as l,w as i,i as s,a as r,d as o,e as d,r as c,F as u,M as h,q as g,f,g as p,t as m,h as _,j as C,m as y,k as b,l as x}from"./index-389238f5.js";import{_ as w}from"./download-excel.9236b5ca.js";import{_ as k}from"./uni-pagination.018f31ea.js";import{_ as S}from"./unicloud-db.dfa2c90d.js";import{e as D,f as $}from"./mustgo-user.22c2617f.js";const z=t.database(),F=["name","_id","phone_num"],T={ascending:"asc",descending:"desc"};const E=e({data:()=>({collectionList:"mustgo-user,mustgo-role",query:"",where:"",orderby:"",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...D},imageStyles:{width:64,height:64},exportExcel:{filename:"mustgo-user.xls",type:"xls",fields:{}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return F.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+T[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=$(this._filter,z.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,D,$,z){const F=s,T=h,E=g,j=f(p("download-excel"),w),v=f(p("uni-th"),_),q=f(p("uni-tr"),C),I=y,L=f(p("uni-td"),b),V=f(p("uni-table"),x),U=f(p("uni-pagination"),k),W=f(p("unicloud-db"),S);return n(),l(F,null,{default:i((()=>[r(F,{class:"uni-header"},{default:i((()=>[r(F,{class:"uni-group"},{default:i((()=>[r(F,{class:"uni-title"}),r(F,{class:"uni-sub-title"})])),_:1}),r(F,{class:"uni-group"},{default:i((()=>[r(T,{class:"uni-search",type:"text",modelValue:$.query,"onUpdate:modelValue":t[0]||(t[0]=e=>$.query=e),onConfirm:z.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),r(E,{class:"uni-button",type:"default",size:"mini",onClick:z.search},{default:i((()=>[o("搜索")])),_:1},8,["onClick"]),r(E,{class:"uni-button",type:"default",size:"mini",onClick:t[1]||(t[1]=e=>z.navigateTo("./add"))},{default:i((()=>[o("新增")])),_:1}),r(E,{class:"uni-button",type:"default",size:"mini",disabled:!$.selectedIndexs.length,onClick:z.delTable},{default:i((()=>[o("批量删除")])),_:1},8,["disabled","onClick"]),r(j,{class:"hide-on-phone",fields:$.exportExcel.fields,data:$.exportExcelData,type:$.exportExcel.type,name:$.exportExcel.filename},{default:i((()=>[r(E,{class:"uni-button",type:"primary",size:"mini"},{default:i((()=>[o("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),r(F,{class:"uni-container"},{default:i((()=>[r(W,{ref:"udb",collection:$.collectionList,field:"",where:$.where,"page-data":"replace",orderby:$.orderby,getcount:!0,"page-size":$.options.pageSize,"page-current":$.options.pageCurrent,options:$.options,loadtime:"manual",onLoad:z.onqueryload},{default:i((({data:e,pagination:a,loading:s,error:h,options:g})=>[r(V,{ref:"table",loading:s,emptyText:h.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:z.selectionChange},{default:i((()=>[r(q,null,{default:i((()=>[r(v,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>z.filterChange(e,"icon")),sortable:"",onSortChange:t[3]||(t[3]=e=>z.sortChange(e,"icon"))},{default:i((()=>[o("头像")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>z.filterChange(e,"name")),sortable:"",onSortChange:t[5]||(t[5]=e=>z.sortChange(e,"name"))},{default:i((()=>[o("用户名")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>z.filterChange(e,"gender")),sortable:"",onSortChange:t[7]||(t[7]=e=>z.sortChange(e,"gender"))},{default:i((()=>[o("性别")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[8]||(t[8]=e=>z.filterChange(e,"password")),sortable:"",onSortChange:t[9]||(t[9]=e=>z.sortChange(e,"password"))},{default:i((()=>[o("密码")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[10]||(t[10]=e=>z.filterChange(e,"phone_num")),sortable:"",onSortChange:t[11]||(t[11]=e=>z.sortChange(e,"phone_num"))},{default:i((()=>[o("手机号")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[12]||(t[12]=e=>z.filterChange(e,"school")),sortable:"",onSortChange:t[13]||(t[13]=e=>z.sortChange(e,"school"))},{default:i((()=>[o("学校")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[14]||(t[14]=e=>z.filterChange(e,"type[0].identity")),sortable:"",onSortChange:t[15]||(t[15]=e=>z.sortChange(e,"type[0].identity"))},{default:i((()=>[o("身份")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[16]||(t[16]=e=>z.filterChange(e,"total_running_distance")),sortable:"",onSortChange:t[17]||(t[17]=e=>z.sortChange(e,"total_running_distance"))},{default:i((()=>[o("跑步总量")])),_:1}),r(v,{align:"center","filter-type":"search",onFilterChange:t[18]||(t[18]=e=>z.filterChange(e,"total_walking_distance")),sortable:"",onSortChange:t[19]||(t[19]=e=>z.sortChange(e,"total_walking_distance"))},{default:i((()=>[o("健走总量")])),_:1}),r(v,{align:"center"},{default:i((()=>[o("操作")])),_:1})])),_:1}),(n(!0),d(u,null,c(e,((e,t)=>(n(),l(q,{key:t},{default:i((()=>[r(L,{align:"center"},{default:i((()=>[r(I,{src:e.icon,style:{width:"120px",height:"80px"}},null,8,["src"])])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.name),1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.gender),1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.password),1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.phone_num),1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.school),1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.type[0].identity),1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.total_running_distance)+" km",1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[o(m(e.total_walking_distance)+" km",1)])),_:2},1024),r(L,{align:"center"},{default:i((()=>[r(F,{class:"uni-group"},{default:i((()=>[r(E,{onClick:t=>z.navigateTo("./edit?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:i((()=>[o("修改")])),_:2},1032,["onClick"]),r(E,{onClick:t=>z.confirmDelete(e._id),class:"uni-button",size:"mini",type:"warn"},{default:i((()=>[o("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),r(F,{class:"uni-pagination-box"},{default:i((()=>[r(U,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:z.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{E as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-error-404.39e3e581.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-error-404.39e3e581.js new file mode 100644 index 0000000000000000000000000000000000000000..53feb09e92e404c43d391a408a84e55354f5ba14 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-error-404.39e3e581.js @@ -0,0 +1 @@ +import{_ as s,o as a,c as t,w as e,i as o,a as l,d as r,t as n,p as d}from"./index-389238f5.js";const u=s({data:()=>({}),onLoad(s){this.errMsg=s.errMsg||""},methods:{}},[["render",function(s,u,f,i,c,_){const p=d,g=o;return a(),t(g,null,{default:e((()=>[l(g,null,{default:e((()=>[l(p,{style:{"font-size":"25px",color:"#333"}},{default:e((()=>[r(" 404 Page Not Found ")])),_:1})])),_:1}),l(g,null,{default:e((()=>[l(p,{style:{"font-size":"18px",color:"#999"}},{default:e((()=>[r(n(s.errMsg),1)])),_:1})])),_:1})])),_:1})}]]);export{u as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-index-index.d7d2825f.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-index-index.d7d2825f.js new file mode 100644 index 0000000000000000000000000000000000000000..c47b2767d40d8a45c738bb5862ead83376e283ce --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-index-index.d7d2825f.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as l,c as i,w as s,i as o,a as d,b as n,d as p,e as u,r,F as c,f,g as h,t as _,h as m,j as v,k as b,l as y}from"./index-389238f5.js";import{_ as g}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as k}from"./uni-notice-bar.629dd577.js";import{_ as w}from"./uni-stat-tabs.4355c19c.js";import{g as T,d as A,s as D,a as x,b as I,p as q,f as S,c as F}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const C=[{value:"今天",contrast:"昨天"},{field:"appid",title:"APPID",tooltip:""},{field:"name",title:"应用名",tooltip:""},{field:"total_devices",title:"总设备数",tooltip:"从添加统计到当前选择时间的总设备数(去重)",value:0,contrast:0},{field:"new_device_count",title:"新增设备",tooltip:"首次访问应用的设备数(以设备为判断标准,去重)",value:0,contrast:0},{field:"active_device_count",title:"活跃设备",tooltip:"访问过应用内任意页面的总设备数(去重)",value:0,contrast:0}],$=[{value:"今天",contrast:"昨天"},{field:"appid",title:"APPID",tooltip:""},{field:"name",title:"应用名",tooltip:""},{field:"total_users",title:"总用户数",tooltip:"从添加统计到当前选择时间的总用户数(去重)",value:0,contrast:0},{field:"new_user_count",title:"新增用户",tooltip:"首次访问应用的用户数(以用户为判断标准,去重)",value:0,contrast:0},{field:"active_user_count",title:"活跃用户",tooltip:"访问过应用内任意页面的总用户数(去重)",value:0,contrast:0}];const O=e({data:()=>({query:{platform_id:"",start_time:[T(1),(new Date).getTime()]},deviceTableData:[],userTableData:[],pageSize:10,pageCurrent:1,total:0,loading:!1,complete:!1,statSetting:{mode:"",day:7},statModeList:[{value:"open",text:"开启"},{value:"close",text:"关闭"},{value:"auto",text:"节能"}],showAddAppId:!1}),onReady(){this.debounceGet=A((()=>{this.getAllData(this.queryStr)}),300),this.debounceGet(),this.checkAppId()},watch:{query:{deep:!0,handler(e){this.debounceGet(this.queryStr)}}},computed:{queryStr(){return D(this.query)+' && (dimension == "hour" || dimension == "day")'},deviceTableFields(){return this.tableFieldsMap(C)},userTableFields(){return this.tableFieldsMap($)}},methods:{getAllData(e){this.getApps(this.queryStr,C,"device"),this.getApps(this.queryStr,$,"user")},tableFieldsMap(e){let t=[];const a=[],l=[],i=[];for(const s of e)if(s.field)if(s.hasOwnProperty("value")){const e=JSON.parse(JSON.stringify(s)),t=JSON.parse(JSON.stringify(s));"total_users"!==s.field&&"total_devices"!==s.field?(e.title="今日"+s.title,e.field=s.field+"_value",t.title="昨日"+s.title,t.field=s.field+"_contrast",a.push(e),l.push(t)):(e.field=s.field+"_value",i.push(e))}else t.push(s);return t=[...t,...a,...l,...i],t},getApps(e,a,l="device"){this.loading=!0;const i=t.database(),s=i.collection("uni-stat-result").where(e).getTemp(),o=i.collection("opendb-app-list").getTemp();i.collection(s,o).field(`${x(a,"","value")},stat_date,appid,dimension`).groupBy("appid,dimension,stat_date").groupField(I(a,"","value")).orderBy("appid","desc").get().then((e=>{let{data:t}=e.result;if(this[`${l}TableData`]=[],!t.length)return;let i=[],s=[],o=[],d=q(T(0),"",""),n=q(T(1),"","");for(const a of t){const{appid:e,name:t}=a.appid&&a.appid[0]||{};a.appid=e,a.name=t,i.indexOf(a.appid)<0&&i.push(a.appid),"hour"===a.dimension&&a.stat_date===d&&s.push(a),"day"===a.dimension&&a.stat_date===n&&o.push(a)}const p=a.map((e=>e.field)).filter(Boolean);for(const a of i){const e={},t=s.find((e=>e.appid===a)),i=o.find((e=>e.appid===a));for(const a of p)if("appid"===a||"name"===a)e[a]=t&&t[a];else{const l=t&&t[a],s=i&&i[a];e[a+"_value"]=S(l),e[a+"_contrast"]=S(s)}if(a&&(e[`total_${l}s_value`]="获取中..."),this[`${l}TableData`].push(e),a){t[`total_${l}s`]=0;const e=JSON.parse(JSON.stringify(this.query));e.start_time=[T(0),(new Date).getTime()],e.appid=a,F.call(this,e,`total_${l}s`).then((e=>{this[`${l}TableData`].find((e=>e.appid===a))[`total_${l}s_value`]=e}))}}})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1,this.complete=!0}))},navTo(e,t){e.indexOf("http")>-1?window.open(e):(t&&(e=`${e}?appid=${t}`),a({url:e}))},toUrl(e){window.open(e,"_blank")},toAddAppId(){this.showAddAppId=!1,a({url:"/pages/system/app/list",events:{refreshData:()=>{this.checkAppId()}}})},async checkAppId(){const e=t.database();let a=await e.collection("opendb-app-list").count();this.showAddAppId=!a.result||0===a.result.total}}},[["render",function(e,t,a,T,A,D){const x=f(h("uni-stat-breadcrumb"),g),I=o,q=f(h("uni-notice-bar"),k),S=f(h("uni-stat-tabs"),w),F=f(h("uni-th"),m),C=f(h("uni-tr"),v),$=f(h("uni-td"),b),O=f(h("uni-table"),y);return l(),i(I,{class:"fix-top-window"},{default:s((()=>[d(I,{class:"uni-header"},{default:s((()=>[d(x,{class:"uni-stat-breadcrumb-on-phone"}),d(I,{class:"uni-group"},{default:s((()=>[d(I,{class:"uni-sub-title hide-on-phone"})])),_:1})])),_:1}),d(I,{class:"uni-container"},{default:s((()=>[A.showAddAppId?(l(),i(q,{key:0,showGetMore:"",showIcon:"",class:"mb-m pointer",text:"检测到您还未添加应用,点击前往应用管理添加",onClick:D.toAddAppId},null,8,["onClick"])):n("",!0),A.deviceTableData.length||A.userTableData.length||A.query.platform_id||!A.complete?n("",!0):(l(),i(q,{key:1,showGetMore:"",showIcon:"",class:"mb-m pointer",text:"暂无数据, 统计相关功能需开通 uni 统计后才能使用, 如未开通, 点击查看具体流程",onClick:t[0]||(t[0]=e=>D.navTo("https://uniapp.dcloud.io/uni-stat-v2.html"))})),d(I,{class:"uni-stat--x mb-m"},{default:s((()=>[d(S,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:A.query.platform_id,"onUpdate:modelValue":t[1]||(t[1]=e=>A.query.platform_id=e)},null,8,["modelValue"])])),_:1}),d(I,{class:"uni-stat--x p-m"},{default:s((()=>[d(I,{class:"uni-stat-card-header"},{default:s((()=>[p("设备概览")])),_:1}),d(O,{loading:A.loading,border:"",stripe:"",emptyText:"暂无数据"},{default:s((()=>[d(C,null,{default:s((()=>[(l(!0),u(c,null,r(D.deviceTableFields,((e,t)=>(l(),u(c,{key:t},[e.title?(l(),i(F,{key:t,align:"center"},{default:s((()=>[p(_(e.title),1)])),_:2},1024)):n("",!0)],64)))),128))])),_:1}),(l(!0),u(c,null,r(A.deviceTableData,((e,a)=>(l(),i(C,{key:a},{default:s((()=>[(l(!0),u(c,null,r(D.deviceTableFields,((a,o)=>(l(),u(c,{key:o},["appid"===a.field?(l(),i($,{key:0,align:"center"},{default:s((()=>[e.appid?(l(),i(I,{key:0,onClick:t=>D.navTo("/pages/uni-stat/device/overview/overview",e.appid),class:"link-btn-color"},{default:s((()=>[p(_(void 0!==e[a.field]?e[a.field]:"-"),1)])),_:2},1032,["onClick"])):(l(),i(I,{key:1,onClick:t[2]||(t[2]=e=>D.navTo("/pages/system/app/add")),class:"link-btn-color"},{default:s((()=>[p(" 需添加此应用的 appid ")])),_:1}))])),_:2},1024)):(l(),i($,{key:o,align:"center"},{default:s((()=>[p(_(void 0!==e[a.field]?e[a.field]:"-"),1)])),_:2},1024))],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading"])])),_:1}),d(I,{class:"uni-stat--x p-m"},{default:s((()=>[d(I,{class:"uni-stat-card-header"},{default:s((()=>[p("注册用户概览")])),_:1}),d(O,{loading:A.loading,border:"",stripe:"",emptyText:"暂无数据"},{default:s((()=>[d(C,null,{default:s((()=>[(l(!0),u(c,null,r(D.userTableFields,((e,t)=>(l(),u(c,{key:t},[e.title?(l(),i(F,{key:t,align:"center"},{default:s((()=>[p(_(e.title),1)])),_:2},1024)):n("",!0)],64)))),128))])),_:1}),(l(!0),u(c,null,r(A.userTableData,((e,a)=>(l(),i(C,{key:a},{default:s((()=>[(l(!0),u(c,null,r(D.userTableFields,((a,o)=>(l(),u(c,{key:o},["appid"===a.field?(l(),i($,{key:0,align:"center"},{default:s((()=>[e.appid?(l(),i(I,{key:0,onClick:t=>D.navTo("/pages/uni-stat/user/overview/overview",e.appid),class:"link-btn-color"},{default:s((()=>[p(_(void 0!==e[a.field]?e[a.field]:"-"),1)])),_:2},1032,["onClick"])):(l(),i(I,{key:1,onClick:t[3]||(t[3]=e=>D.navTo("/pages/system/app/add")),class:"link-btn-color"},{default:s((()=>[p(" 需添加此应用的 appid ")])),_:1}))])),_:2},1024)):(l(),i($,{key:o,align:"center"},{default:s((()=>[p(_(void 0!==e[a.field]?e[a.field]:"-"),1)])),_:2},1024))],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-5f930688"]]);export{O as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-add.89d05206.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-add.89d05206.js new file mode 100644 index 0000000000000000000000000000000000000000..5b2a054c11af263b6aa4ee2375e405bbe9c7487a --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-add.89d05206.js @@ -0,0 +1 @@ +import{_ as a,L as e,n as l,N as t,s as o,G as s,y as n,O as m,o as r,c as u,w as i,i as d,a as c,J as f,d as p,t as b,f as h,g,R as V,q as _,X as D}from"./index-389238f5.js";import{_ as k}from"./uni-easyinput.a1fc57c1.js";import{_ as x}from"./uni-forms-item.69698491.js";import{_ as v}from"./uni-data-checkbox.b1dd95fe.js";import{_ as y}from"./uni-forms.bc4bcf6e.js";import{v as w}from"./uni-id-users.cf221585.js";import"./uni-load-more.67944ae0.js";const A=e.database();function C(a){let e={};for(let l in w)a.includes(l)&&(e[l]=w[l]);return e}A.command;const U=a({data:()=>({formData:{username:"",nickname:"",password:"",role:[],authorizedApp:[],tags:[],mobile:void 0,email:void 0,status:!0},rules:{...C(["username","password","role","mobile","email"]),status:{rules:[{format:"bool"}]}},roles:[]}),onLoad(){this.loadroles()},methods:{gotoAppList(){l({url:"../app/list"})},gotoTagList(){l({url:"../tag/list"})},gotoTagAdd(){l({url:"../tag/add",events:{refreshCheckboxData:()=>{this.$refs.checkbox.loadData()}}})},submitForm(){this.$refs.form.submit()},submit(a){const{value:e,errors:l}=a.detail;l||(t({title:"提交中...",mask:!0}),"boolean"==typeof e.status&&(e.status=Number(!e.status)),this.$request("addUser",e).then((()=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((a=>{n({content:a.message||"请求服务失败",showCancel:!1})})).finally((a=>{m()})))},loadroles(){A.collection("uni-id-roles").limit(500).get().then((a=>{const e=[];this.roles=a.result.data.map((a=>(e.push(a.role_id),{value:a.role_id,text:a.role_name}))),-1===e.indexOf("admin")&&this.roles.unshift({value:"admin",text:"超级管理员"})})).catch((a=>{n({title:"提示",content:a.message,showCancel:!1})}))}}},[["render",function(a,e,l,t,o,s){const n=h(g("uni-easyinput"),k),m=h(g("uni-forms-item"),x),w=h(g("uni-data-checkbox"),v),A=V,C=_,U=D,T=d,L=h(g("uni-forms"),y);return r(),u(T,{class:"uni-container"},{default:i((()=>[c(L,{ref:"form",modelValue:o.formData,"onUpdate:modelValue":e[12]||(e[12]=a=>o.formData=a),rules:o.rules,validateTrigger:"bind",onSubmit:s.submit},{default:i((()=>[c(m,{name:"username",label:"用户名",required:""},{default:i((()=>[c(n,{modelValue:o.formData.username,"onUpdate:modelValue":e[0]||(e[0]=a=>o.formData.username=a),clearable:!1,placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),c(m,{name:"nickname",label:"用户昵称",required:""},{default:i((()=>[c(n,{modelValue:o.formData.nickname,"onUpdate:modelValue":e[1]||(e[1]=a=>o.formData.nickname=a),clearable:!1,placeholder:"请输入用户昵称"},null,8,["modelValue"])])),_:1}),c(m,{name:"password",label:"初始密码",required:""},{default:i((()=>[c(n,{modelValue:o.formData.password,"onUpdate:modelValue":e[2]||(e[2]=a=>o.formData.password=a),clearable:!1,placeholder:"请输入初始密码"},null,8,["modelValue"])])),_:1}),c(m,{name:"role",label:"角色列表",class:"flex-center-x"},{default:i((()=>[c(w,{multiple:"",localdata:o.roles,modelValue:o.formData.role,"onUpdate:modelValue":e[3]||(e[3]=a=>o.formData.role=a)},null,8,["localdata","modelValue"])])),_:1}),c(m,{name:"tags",label:"用户标签",labelWidth:"100",class:"flex-center-x"},{default:i((()=>[c(w,{ref:"checkbox",multiple:!0,modelValue:o.formData.tags,"onUpdate:modelValue":e[4]||(e[4]=a=>o.formData.tags=a),collection:"uni-id-tag",field:"tagid as value, name as text"},null,8,["modelValue"]),f("span",{class:"link-btn",onClick:e[5]||(e[5]=(...a)=>s.gotoTagAdd&&s.gotoTagAdd(...a))},"新增"),f("span",{class:"link-btn",onClick:e[6]||(e[6]=(...a)=>s.gotoTagList&&s.gotoTagList(...a)),style:{"margin-left":"10px"}},"管理")])),_:1}),c(m,{name:"authorizedApp",label:"可登录应用",labelWidth:"100",class:"flex-center-x"},{default:i((()=>[c(w,{multiple:!0,modelValue:o.formData.authorizedApp,"onUpdate:modelValue":e[7]||(e[7]=a=>o.formData.authorizedApp=a),collection:"opendb-app-list",field:"appid as value, name as text"},null,8,["modelValue"]),f("span",{class:"link-btn",onClick:e[8]||(e[8]=(...a)=>s.gotoAppList&&s.gotoAppList(...a))},"管理")])),_:1}),c(m,{name:"mobile",label:"手机号"},{default:i((()=>[c(n,{modelValue:o.formData.mobile,"onUpdate:modelValue":e[9]||(e[9]=a=>o.formData.mobile=a),clearable:!1,placeholder:"请输入手机号"},null,8,["modelValue"])])),_:1}),c(m,{name:"email",label:"邮箱"},{default:i((()=>[c(n,{modelValue:o.formData.email,"onUpdate:modelValue":e[10]||(e[10]=a=>o.formData.email=a),clearable:!1,placeholder:"请输入邮箱"},null,8,["modelValue"])])),_:1}),c(m,{name:"status",label:"是否启用"},{default:i((()=>[c(A,{onChange:e[11]||(e[11]=e=>a.binddata("status",e.detail.value)),checked:o.formData.status},null,8,["checked"])])),_:1}),c(T,{class:"uni-button-group"},{default:i((()=>[c(C,{style:{width:"100px"},type:"primary",class:"uni-button",onClick:s.submitForm},{default:i((()=>[p(b(a.$t("common.button.submit")),1)])),_:1},8,["onClick"]),c(U,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:i((()=>[c(C,{style:{width:"100px"},class:"uni-button"},{default:i((()=>[p(b(a.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue","rules","onSubmit"])])),_:1})}],["__scopeId","data-v-7d77b006"]]);export{U as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-edit.d2f7f2e6.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-edit.d2f7f2e6.js new file mode 100644 index 0000000000000000000000000000000000000000..74926e57032d7e62709174290e865cc7c1b5ba67 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-edit.d2f7f2e6.js @@ -0,0 +1 @@ +import{_ as a,L as e,ak as t,n as s,N as l,s as o,G as i,y as n,O as r,o as u,c as d,w as m,i as p,a as c,d as f,J as h,t as b,b as g,f as k,g as D,R as _,q as w,X as V}from"./index-389238f5.js";import{_ as x}from"./uni-easyinput.a1fc57c1.js";import{_ as y}from"./uni-forms-item.69698491.js";import{_ as A}from"./uni-data-checkbox.b1dd95fe.js";import{_ as v}from"./uni-forms.bc4bcf6e.js";import{v as C}from"./uni-id-users.cf221585.js";import"./uni-load-more.67944ae0.js";const L=e.database();L.command;function I(a){let e={};for(let t in C)a.includes(t)&&(e[t]=C[t]);return e}const U=a({data:()=>({showPassword:!1,formData:{username:"",nickname:"",password:void 0,role:[],tags:[],authorizedApp:[],mobile:void 0,email:void 0,status:!1},rules:{...I(["username","password","role","mobile","email"]),status:{rules:[{format:"bool"}]}},roles:[],userId:"",appList:[],unknownAppids:[]}),onLoad(a){const e=a.id;this.formDataId=e;let s=t("uni-id-pages-userInfo")||{};this.userId=s._id,this.getDetail(e),this.loadroles()},methods:{gotoAppList(){s({url:"../app/list"})},gotoTagList(){s({url:"../tag/list"})},gotoTagAdd(){s({url:"../tag/add",events:{refreshCheckboxData:()=>{this.$refs.checkboxTags.loadData()}}})},trigger(){this.showPassword=!this.showPassword},submitForm(a){this.$refs.form.submit()},submit(a){const{value:e,errors:t}=a.detail;t||(l({title:"修改中...",mask:!0}),"boolean"==typeof e.status&&(e.status=Number(!e.status)),e.uid=this.formDataId,this.$request("updateUser",e).then((()=>{o({title:"修改成功"});const a=this.getOpenerEventChannel();a.emit&&a.emit("refreshData"),setTimeout((()=>i()),500)})).catch((a=>{n({content:a.message||"请求服务失败",showCancel:!1})})).finally((a=>{r()})))},resetPWd(a){this.$request("system/user/resetPwd",a).then().catch((a=>{n({content:a.message||"请求服务失败",showCancel:!1})})).finally()},getDetail(a){l({mask:!0}),L.collection("uni-id-users").doc(a).field("username,nickname,role,dcloud_appid as authorizedApp,tags,mobile,email,status").get().then((a=>{const e=a.result.data[0];e&&(void 0===e.status&&(e.status=!0),0===e.status&&(e.status=!0),1===e.status&&(e.status=!1),this.formData=Object.assign(this.formData,e),this.loadAppList(this.formData.authorizedApp))})).catch((a=>{n({content:a.message||"请求服务失败",showCancel:!1})})).finally((()=>{r()}))},loadroles(){L.collection("uni-id-roles").limit(500).get().then((a=>{const e=[];this.roles=a.result.data.map((a=>(e.push(a.role_id),{value:a.role_id,text:a.role_name}))),-1===e.indexOf("admin")&&this.roles.unshift({value:"admin",text:"超级管理员"})})).catch((a=>{n({title:"提示",content:a.message,showCancel:!1})}))},loadAppList(a){L.collection("opendb-app-list").limit(500).get().then((e=>{let t=e.result.data.map(((a,e)=>({value:a.appid,text:a.name})));t||(t=[]),a.map((a=>{t.find((e=>e.value===a))||(this.unknownAppids.push(a),t.push({value:a,text:`未知应用${a}`}))})),this.appList=t})).catch((a=>{n({title:"提示",content:a.message,showCancel:!1})}))},parseUserStatus:a=>0===a?"启用":1===a?"禁用":2===a?"审核中":3===a?"审核拒绝":"启用"},computed:{unknownAppidsCom(){let a="";return this.unknownAppids.map(((e,t)=>{a+=e,t!==this.unknownAppids.length-1&&(a+="、")})),a}}},[["render",function(a,e,t,s,l,o){const i=k(D("uni-easyinput"),x),n=k(D("uni-forms-item"),y),r=p,C=k(D("uni-data-checkbox"),A),L=_,I=w,U=V,T=k(D("uni-forms"),v);return u(),d(r,{class:"uni-container"},{default:m((()=>[c(T,{ref:"form",modelValue:l.formData,"onUpdate:modelValue":e[13]||(e[13]=a=>l.formData=a),rules:l.rules,validateTrigger:"bind",onSubmit:o.submit},{default:m((()=>[c(n,{name:"username",label:"用户名",required:""},{default:m((()=>[c(i,{modelValue:l.formData.username,"onUpdate:modelValue":e[0]||(e[0]=a=>l.formData.username=a),clearable:!1,placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),c(n,{name:"nickname",label:"用户昵称",required:""},{default:m((()=>[c(i,{modelValue:l.formData.nickname,"onUpdate:modelValue":e[1]||(e[1]=a=>l.formData.nickname=a),clearable:!1,placeholder:"请输入用户昵称"},null,8,["modelValue"])])),_:1}),l.showPassword?(u(),d(n,{name:"password",label:"重置密码",key:"password"},{default:m((()=>[c(i,{modelValue:l.formData.password,"onUpdate:modelValue":e[2]||(e[2]=a=>l.formData.password=a),clearable:!1,placeholder:"请输入重置密码"},{default:m((()=>[c(r,{slot:"right",class:"cancel-reset-password-btn",onClick:o.trigger},{default:m((()=>[f("取消")])),_:1},8,["onClick"])])),_:1},8,["modelValue"])])),_:1})):(u(),d(n,{key:1,label:"重置密码"},{default:m((()=>[h("span",{class:"reset-password-btn",onClick:e[3]||(e[3]=(...a)=>o.trigger&&o.trigger(...a))},"点击重置密码")])),_:1})),c(n,{name:"role",label:"角色列表",class:"flex-center-x"},{default:m((()=>[c(C,{multiple:"",localdata:l.roles,modelValue:l.formData.role,"onUpdate:modelValue":e[4]||(e[4]=a=>l.formData.role=a)},null,8,["localdata","modelValue"])])),_:1}),c(n,{name:"tags",label:"用户标签",labelWidth:"100",class:"flex-center-x"},{default:m((()=>[c(C,{ref:"checkboxTags",multiple:!0,modelValue:l.formData.tags,"onUpdate:modelValue":e[5]||(e[5]=a=>l.formData.tags=a),collection:"uni-id-tag",field:"tagid as value, name as text"},null,8,["modelValue"]),h("span",{class:"link-btn",onClick:e[6]||(e[6]=(...a)=>o.gotoTagAdd&&o.gotoTagAdd(...a))},"新增"),h("span",{class:"link-btn",onClick:e[7]||(e[7]=(...a)=>o.gotoTagList&&o.gotoTagList(...a)),style:{"margin-left":"10px"}},"管理")])),_:1}),c(n,{name:"authorizedApp",label:"可登录应用"},{default:m((()=>[c(r,{class:"uni-forms-item-flex-center-x"},{default:m((()=>[c(C,{multiple:!0,modelValue:l.formData.authorizedApp,"onUpdate:modelValue":e[8]||(e[8]=a=>l.formData.authorizedApp=a),localdata:l.appList},null,8,["modelValue","localdata"]),h("span",{class:"link-btn",onClick:e[9]||(e[9]=(...a)=>o.gotoAppList&&o.gotoAppList(...a))},"管理")])),_:1}),a.formDataId===l.userId?(u(),d(r,{key:0,class:"uni-form-item-tips"},{default:m((()=>[f("当前有未添加的应用"+b(o.unknownAppidsCom)+",建议点击右侧管理进行添加",1)])),_:1})):g("",!0)])),_:1}),c(n,{name:"mobile",label:"手机号"},{default:m((()=>[c(i,{modelValue:l.formData.mobile,"onUpdate:modelValue":e[10]||(e[10]=a=>l.formData.mobile=a),clearable:!1,placeholder:"请输入手机号"},null,8,["modelValue"])])),_:1}),c(n,{name:"email",label:"邮箱"},{default:m((()=>[c(i,{modelValue:l.formData.email,"onUpdate:modelValue":e[11]||(e[11]=a=>l.formData.email=a),clearable:!1,placeholder:"请输入邮箱"},null,8,["modelValue"])])),_:1}),c(n,{name:"status",label:"用户状态"},{default:m((()=>[Number(l.formData.status)<2?(u(),d(L,{key:0,onChange:e[12]||(e[12]=e=>a.binddata("status",e.detail.value)),checked:l.formData.status,disabled:a.formDataId===l.userId},null,8,["checked","disabled"])):(u(),d(r,{key:1,class:"uni-form-item-empty"},{default:m((()=>[f(b(o.parseUserStatus(l.formData.status)),1)])),_:1})),a.formDataId===l.userId?(u(),d(r,{key:2,class:"uni-form-item-tips"},{default:m((()=>[f("请勿禁用当前登录的账号")])),_:1})):g("",!0)])),_:1}),c(r,{class:"uni-button-group"},{default:m((()=>[c(I,{style:{width:"100px"},type:"primary",class:"uni-button",onClick:o.submitForm},{default:m((()=>[f(b(a.$t("common.button.submit")),1)])),_:1},8,["onClick"]),c(U,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:m((()=>[c(I,{style:{width:"100px"},class:"uni-button"},{default:m((()=>[f(b(a.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue","rules","onSubmit"])])),_:1})}],["__scopeId","data-v-63afe8a5"]]);export{U as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-list.8c0bf37b.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-list.8c0bf37b.js new file mode 100644 index 0000000000000000000000000000000000000000..09aeb28282fde7ebacd7384ded1f221cf501f237 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-admin-user-list.8c0bf37b.js @@ -0,0 +1 @@ +import{_ as e,o as t,c as a,w as s,d as l,t as n,z as i,I as o,b as r,p as d,L as u,y as c,ay as m,f as p,g as h,A as f,a5 as g,a as _,e as y,F as C,J as b,r as k,i as x,U as T,W as v,q as D,n as S,s as w,O as $,M,h as P,j as I,k as z,l as V}from"./index-389238f5.js";import{_ as j}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as U}from"./download-excel.9236b5ca.js";import{_ as q}from"./uni-link.d3d03343.js";import{_ as F}from"./uni-dateformat.b1c4ea95.js";import{_ as L}from"./uni-pagination.018f31ea.js";import{_ as E}from"./unicloud-db.dfa2c90d.js";import{_ as R}from"./uni-data-checkbox.b1dd95fe.js";import{_ as O}from"./uni-data-select.8acadad5.js";import{_ as A}from"./uni-forms-item.69698491.js";import{_ as B}from"./uni-easyinput.a1fc57c1.js";import{_ as J}from"./uni-forms.bc4bcf6e.js";import{e as N,f as W}from"./uni-id-users.cf221585.js";import"./uni-load-more.67944ae0.js";const G=e({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:e,disabled:t,inverted:a,circle:s,mark:l,size:n,isTrue:i}=this;return["uni-tag--"+e,"uni-tag--"+n,i(t)?"uni-tag--disabled":"",i(a)?"uni-tag--"+e+"--inverted":"",i(s)?"uni-tag--circle":"",i(l)?"uni-tag--mark":"",i(a)?"uni-tag--inverted uni-tag-text--"+e:"","small"===n?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:e=>!0===e||"true"===e,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(e,u,c,m,p,h){const f=d;return c.text?(t(),a(f,{key:0,class:i(["uni-tag",h.classes]),style:o(c.customStyle),onClick:h.onClick},{default:s((()=>[l(n(c.text),1)])),_:1},8,["class","style","onClick"])):r("",!0)}],["__scopeId","data-v-f9b60738"]]),Q=u.importObject("uni-sms-co");const H=e({name:"batchSms",props:{toType:String,receiver:{type:Array,default:()=>[]},condition:{type:Object,default:()=>({})}},data:()=>({smsTemplateLoading:!1,smsPresetList:[{value:"all",text:"全部用户"},{value:"7-day-offline-users",text:"7天内未登录用户"},{value:"15-day-offline-users",text:"15天内未登录用户"},{value:"30-day-offline-users",text:"30天内未登录用户"}],smsTemplate:[],smsTemplateDataErrorMessage:"",smsDataModel:{name:"",templateId:"",templateData:[],smsPreset:"",filtered:!1},smsTemplateContent:"",smsPreviewContent:[],smsSendUserCount:0}),computed:{isSelectedReceiver(){return!!this.receiver.length},sendAll(){return"all"===this.smsDataModel.smsPreset||"userTags"===this.toType},hasCondition(){return!!Object.keys(this.condition).length}},watch:{smsDataModel:{handler(e){if(!e.templateId)return"";const t=this.smsTemplate.find((t=>t.value===e.templateId));let a=e.templateData.reduce(((e,t)=>{const a=new RegExp(`\\$\\{${t.field}\\}`);return e.replace(a,(e=>t.value||e))}),t.content);this.smsTemplateContent=`【${t.sign}】${a}`},deep:!0}},methods:{smsFilteredChange(){this.smsDataModel.filtered=!this.smsDataModel.filtered},popupChange(e){e.show||this.reset()},open(){this.$refs.smsPopup.open(),this.loadSmsTemplate()},close(){this.reset(),this.$refs.smsPopup.close()},async loadSmsTemplate(){if(!(this.smsTemplate.length>0||this.smsTemplateLoading)){this.smsTemplateLoading=!0;try{const e=u.importObject("uni-sms-co",{customUI:!0}),t=await e.template();this.smsTemplate=t.map((e=>({...e,value:e._id,text:e.name})))}finally{this.smsTemplateLoading=!1}}},onSmsTemplateSelected(e){const t=this.smsTemplate.find((t=>t.value===e));if(!t)return;const a=new RegExp(/\$\{(.*?)\}/g);let s,l=[];for(;s=a.exec(t.content);){const e=s[1];e&&l.push({field:e,value:""})}this.smsDataModel.templateData=l},async sendSms(e=!1){const t=await this.$refs.smsForm.validate(),a=this.receiver;for(const l of this.smsDataModel.templateData)if(!l.value)return void(this.smsTemplateDataErrorMessage="字段/值不可为空");this.smsTemplateDataErrorMessage="";const s={type:this.toType,receiver:a};if((this.smsDataModel.filtered||this.smsDataModel.smsPreset)&&(s.condition=this.smsDataModel.smsPreset||this.condition),e){const e=await Q.preview(s,t.templateId,this.smsDataModel.templateData);if(0===e.errCode)return this.smsPreviewContent=e.list,this.$refs.previewPopup.open(),void(this.smsSendUserCount=e.total)}c({title:"发送确认",content:`短信${this.sendAll?"将发送给所有用户":this.smsSendUserCount?`预计发送${this.smsSendUserCount}人`:"将发送给符合条件的用户"},确定发送?`,success:async e=>{if(this.smsSendUserCount=0,e.cancel)return;(await Q.createSmsTask(s,t.templateId,this.smsDataModel.templateData,{taskName:t.name})).taskId&&c({content:"短信任务已提交,您可在DCloud开发者后台查看短信发送记录",confirmText:"立即查看",cancelText:"关闭",success:e=>{e.cancel?(this.reset(),this.$refs.smsPopup.close()):(window.open("https://dev.dcloud.net.cn/#/pages/sms/sendLog","_blank"),this.reset(),this.$refs.smsPopup.close())}})}})},chooseFile(){void 0!==window.FileReader?m({count:1,extension:[".json"],success:({tempFiles:e})=>{if(e.length<=0)return;const[t]=e,a=new FileReader;a.readAsText(t),a.onload=()=>this.parserFileJson(null,a.result),a.onerror=()=>this.parserFileJson(a.error)},fail:()=>{c({content:"打开选择文件框失败",showCancel:!1})}}):c({content:"当前浏览器不支持文件上传,请升级浏览器重试",showCancel:!1})},async parserFileJson(e,t){if(e)return console.error(e),void c({content:"文件读取失败,请重新上传文件",showCancel:!1});let a=[];try{a=JSON.parse(t)}catch(s){return console.error(s),void c({content:"短信模板解析失败,请检查模板格式",showCancel:!1})}0===(await Q.updateTemplates(a)).errCode&&c({content:"短信模板更新成功",showCancel:!1,success:()=>{this.loadSmsTemplate()}})},reset(){this.smsDataModel.name="",this.smsDataModel.smsPreset="",this.smsDataModel.templateId="",this.smsDataModel.templateData=[],this.smsPreviewContent=[],this.smsTemplateContent="",this.smsSendUserCount=0}}},[["render",function(e,i,o,u,c,m){const S=x,w=p(h("uni-data-select"),O),$=p(h("uni-forms-item"),A),M=T,P=v,I=p(h("uni-easyinput"),B),z=d,V=D,j=p(h("uni-forms"),J),U=p(h("uni-icons"),f),q=p(h("uni-popup"),g);return t(),a(S,null,{default:s((()=>[_(q,{ref:"smsPopup",type:"center",onChange:m.popupChange,"is-mask-click":!1},{default:s((()=>[_(S,{class:"sms-manager"},{default:s((()=>[_(S,{class:"sms-manager--header mb"},{default:s((()=>[l("群发短信")])),_:1}),_(j,{"label-width":100,modelValue:c.smsDataModel,ref:"smsForm"},{default:s((()=>["user"!==o.toType||m.isSelectedReceiver?"user"===o.toType&&m.isSelectedReceiver?(t(),a($,{key:1,label:"目标对象"},{default:s((()=>[_(S,null,{default:s((()=>[l("当前已选择"+n(o.receiver.length)+"人",1)])),_:1})])),_:1})):"userTags"===o.toType?(t(),a($,{key:2,label:"目标对象"},{default:s((()=>[_(S,null,{default:s((()=>[l("当前已选择"+n(o.receiver.length)+"个标签",1)])),_:1}),_(S,{class:"sms-data-tip"},{default:s((()=>[l("如标签关联的用户没有绑定手机号,将不会发送短信。")])),_:1})])),_:1})):r("",!0):(t(),a($,{key:0,label:"目标对象",name:"smsPreset",rules:[{required:!0,errorMessage:"请选择目标对象"}],required:""},{default:s((()=>[_(w,{class:"type m",placeholder:"预设条件",size:"mini",clear:!1,localdata:c.smsPresetList,modelValue:c.smsDataModel.smsPreset,"onUpdate:modelValue":i[0]||(i[0]=e=>c.smsDataModel.smsPreset=e)},null,8,["localdata","modelValue"]),_(S,{class:"sms-data-tip"},{default:s((()=>[l("如需给指定用户发送,请在列表选择要发送的用户。")])),_:1})])),_:1})),m.isSelectedReceiver&&m.hasCondition?(t(),a($,{key:3,label:"跨分页选择"},{default:s((()=>[_(P,{onChange:m.smsFilteredChange},{default:s((()=>[_(M,{style:{transform:"scale(.9)"},checked:c.smsDataModel.filtered},null,8,["checked"])])),_:1},8,["onChange"]),_(S,{class:"sms-data-tip"},{default:s((()=>[l("对用户进行了筛选后,可能存在分页无法全部选中时,请勾选跨分页选中")])),_:1})])),_:1})):r("",!0),_($,{label:"任务名称",name:"name",required:"",rules:[{required:!0,errorMessage:"请输入任务名称"}]},{default:s((()=>[_(I,{modelValue:c.smsDataModel.name,"onUpdate:modelValue":i[1]||(i[1]=e=>c.smsDataModel.name=e),placeholder:"请输入任务名称,例如 “7日内未登录用户召回”"},null,8,["modelValue"])])),_:1}),_($,{required:"",label:"短信模板",name:"templateId",rules:[{required:!0,errorMessage:"请选择短信模板"}]},{default:s((()=>[c.smsTemplateLoading?(t(),y(C,{key:1},[l(" 模板加载中... ")],64)):(t(),y(C,{key:0},[c.smsTemplate.length?(t(),a(S,{key:0},{default:s((()=>[_(w,{class:"type m",placeholder:"请选择短信模板",size:"mini",clear:!1,localdata:c.smsTemplate,modelValue:c.smsDataModel.templateId,"onUpdate:modelValue":i[2]||(i[2]=e=>c.smsDataModel.templateId=e),onChange:m.onSmsTemplateSelected},null,8,["localdata","modelValue","onChange"]),_(S,{class:"sms-data-tip"},{default:s((()=>[l(" 导入短信模版参考"),b("a",{class:"a-link",href:"https://uniapp.dcloud.net.cn/uniCloud/admin.html#群发短信",target:"_blank"},"教程"),l(";若有新的短信模版,可 "),_(z,{onClick:m.chooseFile,class:"a-link"},{default:s((()=>[l("点此导入 ")])),_:1},8,["onClick"])])),_:1})])),_:1})):(t(),a(S,{key:1},{default:s((()=>[_(V,{onClick:m.chooseFile,type:"primary",style:{width:"120px"},size:"mini"},{default:s((()=>[l("上传短信模板 ")])),_:1},8,["onClick"]),_(S,{class:"sms-data-tip"},{default:s((()=>[l("当前未导入短信模板,请从dev.dcloud.net.cn的短信-"),b("a",{href:"https://dev.dcloud.net.cn/pages/sms/template",target:"_blank"},"模板配置"),l("中导出短信模版,并在此导入。教程"),b("a",{href:"https://uniapp.dcloud.net.cn/uniCloud/admin.html#batch-sms",target:"_blank"},"详见")])),_:1})])),_:1}))],64))])),_:1}),c.smsTemplateContent?(t(),a($,{key:4,label:"短信内容"},{default:s((()=>[_(S,{class:"form-item-flex-center"},{default:s((()=>[l(n(c.smsTemplateContent),1)])),_:1})])),_:1})):r("",!0),c.smsDataModel.templateData.length?(t(),a($,{key:5,label:"模板变量配置","error-message":c.smsTemplateDataErrorMessage},{default:s((()=>[(t(!0),y(C,null,k(c.smsDataModel.templateData,((e,l)=>(t(),a(S,{class:"sms-data-item",key:e.field},{default:s((()=>[_(I,{class:"field m",modelValue:e.field,"onUpdate:modelValue":t=>e.field=t,placeholder:"字段",clearable:!1,disabled:!0,style:{width:"120px",flex:"none"}},null,8,["modelValue","onUpdate:modelValue"]),_(I,{class:"value m",modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,placeholder:"例 {uni-id-users.username}",clearable:!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)))),128)),_(S,{class:"sms-data-tip"},{default:s((()=>[l(" 短信变量支持固定值和数据表查询两种方式;固定值如:各位同事,数据表查询如:{uni-id-users.username};请注意,若使用数据表查询方式,目前仅支持查询 uni-id-users 表;并注意确保数据库中查询字段值不为空,否则短信将发送失败。 ")])),_:1})])),_:1},8,["error-message"])):r("",!0)])),_:1},8,["modelValue"]),_(S,{class:"uni-group"},{default:s((()=>[_(V,{onClick:i[3]||(i[3]=e=>m.sendSms(!0)),class:"uni-button"},{default:s((()=>[l("预览")])),_:1}),_(V,{onClick:i[4]||(i[4]=e=>m.sendSms()),class:"uni-button",type:"primary"},{default:s((()=>[l("提交")])),_:1})])),_:1})])),_:1}),_(U,{type:"closeempty",size:"24",class:"close",onClick:m.close},null,8,["onClick"])])),_:1},8,["onChange"]),_(q,{ref:"previewPopup",type:"center","is-mask-click":!1},{default:s((()=>[_(S,{class:"sms-manager preview"},{default:s((()=>[_(S,{class:"sms-manager--header mb"},{default:s((()=>[_(S,null,{default:s((()=>[l("短信预览")])),_:1}),_(S,{class:"sub-title"},{default:s((()=>[l("仅预览第一条短信内容")])),_:1}),_(S,{class:"sub-title"},{default:s((()=>[l("预计送达 "),_(z,{style:{color:"red"}},{default:s((()=>[l(n(c.smsSendUserCount),1)])),_:1}),l(" 位用户")])),_:1})])),_:1}),_(S,{class:"content"},{default:s((()=>[(t(!0),y(C,null,k(c.smsPreviewContent,((e,i)=>(t(),a(S,{key:i},{default:s((()=>[l(n(e),1)])),_:2},1024)))),128)),_(S,{class:"length"},{default:s((()=>[l("短信字数: "),_(z,{class:"num"},{default:s((()=>[l(n(c.smsPreviewContent.length?c.smsPreviewContent[0].length:0),1)])),_:1}),l(" 字 ")])),_:1})])),_:1}),_(S,{class:"tip"},{default:s((()=>[_(S,null,{default:s((()=>[l("说明:")])),_:1}),_(S,null,{default:s((()=>[l("若从数据表中查询,字段内容长度会影响总字数,短信字数=短信签名字数+短信内容字数。")])),_:1}),_(S,null,{default:s((()=>[l("短信长度不超过70个字,按照一条短信计费;超过70个字,按照67字/条拆分成多条计费。")])),_:1})])),_:1}),_(S,{class:"uni-group"},{default:s((()=>[_(V,{onClick:i[5]||(i[5]=t=>e.$refs.previewPopup.close()),class:"uni-button"},{default:s((()=>[l("关闭")])),_:1})])),_:1})])),_:1})])),_:1},512)])),_:1})}],["__scopeId","data-v-83446d02"]]),K=u.database(),X=["username","role.role_name","mobile","email"],Y={ascending:"asc",descending:"desc"};const Z=e({data:()=>({collectionList:[K.collection("uni-id-users").field("ali_openid,apple_openid,avatar,avatar_file,comment,dcloud_appid,department_id,email,email_confirmed,gender,invite_time,inviter_uid,last_login_date,last_login_ip,mobile,mobile_confirmed,my_invite_code,nickname,role,score,status,username,wx_unionid,qq_unionid,tags").getTemp(),K.collection("uni-id-roles").field("role_id, role_name").getTemp()],query:"",where:"",orderby:"last_login_date desc",orderByFieldName:"",selectedIndexs:[],pageSizeIndex:0,pageSizeOption:[20,50,100,500],tags:{},managerTags:[],queryTagid:"",queryUserId:"",options:{pageSize:20,pageCurrent:1,filterData:{status_localdata:[{text:"正常",value:0,checked:!0},{text:"禁用",value:1},{text:"审核中",value:2},{text:"审核拒绝",value:3}]},...N},imageStyles:{width:64,height:64},exportExcel:{filename:"uni-id-users.xls",type:"xls",fields:{"用户名":"username","手机号码":"mobile","用户状态":"status","邮箱":"email","角色":"role",last_login_date:"last_login_date"}},exportExcelData:[],noAppidWhatShouldIDoLink:"https://uniapp.dcloud.net.cn/uniCloud/uni-id?id=makeup-dcloud-appid",smsCondition:{}}),onLoad(e){this._filter={};const t=e.tagid,a=e.id;if(t){this.queryTagid=t;const e={filterType:"select",filter:[t]};this.filterChange(e,"tags")}if(a){this.queryUserId=a;const e={filterType:"select",filter:[a]};this.filterChange(e,"_id")}},onReady(){this.loadTags(),this.queryTagid||this.queryUserId||this.$refs.udb.loadData()},computed:{tagsData(){const e=[];for(const t in this.tags){const a={value:t,text:this.tags[t]};t===this.queryTagid&&(a.checked=!0),e.push(a)}return e},smsReceiver(){if(this.selectedIndexs.length){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))}}},methods:{onqueryload(e){for(var t=0;te.role_name));a.role=s.join("、");const l=a.tags&&a.tags.map((e=>this.tags[e]));a.tags=l,Array.isArray(a.dcloud_appid)&&(a.dcloud_appid=a.dcloud_appid.join("、")),a.last_login_date=this.$formatDate(a.last_login_date)}this.exportExcelData=e},changeSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.$nextTick((()=>{this.loadData()}))},openTagsPopup(){this.$refs.tagsPopup.open()},closeTagsPopup(){this.$refs.tagsPopup.close()},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return console.log(JSON.stringify(K.command.or(X.map((e=>({[e]:t})))))),K.command.or(X.map((e=>({[e]:t}))))},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){S({url:e,events:{refreshData:()=>{this.loadTags(),this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+Y[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=W(this._filter,K.command);Object.keys(a).length?this.where=a:this.where="",Object.keys(this._filter).length?this.smsCondition=this._filter:this.smsCondition={},this.$nextTick((()=>{this.$refs.udb.loadData()}))},loadTags(){K.collection("uni-id-tag").limit(500).get().then((e=>{e.result.data.map((e=>{this.$set(this.tags,e.tagid,e.name)}))})).catch((e=>{c({title:"提示",content:e.message,showCancel:!1})}))},managerMultiTag(){const e=this.selectedItems();K.collection("uni-id-users").where({_id:K.command.in(e)}).update({tags:this.managerTags}).then((()=>{w({title:"修改标签成功",duration:2e3}),this.$refs.table.clearSelection(),this.managerTags=[],this.loadData(),this.closeTagsPopup()})).catch((e=>{c({content:e.message||"请求服务失败",showCancel:!1})})).finally((e=>{$()}))}}},[["render",function(e,i,o,d,u,c){const m=p(h("uni-stat-breadcrumb"),j),f=M,b=D,T=p(h("download-excel"),U),v=x,S=p(h("uni-th"),P),w=p(h("uni-tr"),I),$=p(h("uni-td"),z),O=p(h("uni-link"),q),A=p(h("uni-tag"),G),B=p(h("uni-dateformat"),F),J=p(h("uni-table"),V),N=p(h("uni-pagination"),L),W=p(h("unicloud-db"),E),Q=p(h("uni-data-checkbox"),R),K=p(h("uni-popup"),g),X=p(h("batch-sms"),H);return t(),a(v,{class:"fix-top-window"},{default:s((()=>[_(v,{class:"uni-header"},{default:s((()=>[_(m,{class:"uni-stat-breadcrumb-on-phone"}),_(v,{class:"uni-group"},{default:s((()=>[_(f,{class:"uni-search",type:"text",modelValue:u.query,"onUpdate:modelValue":i[0]||(i[0]=e=>u.query=e),onConfirm:c.search,placeholder:e.$t("common.placeholder.query")},null,8,["modelValue","onConfirm","placeholder"]),_(b,{class:"uni-button hide-on-phone",type:"default",size:"mini",onClick:c.search},{default:s((()=>[l(n(e.$t("common.button.search")),1)])),_:1},8,["onClick"]),_(b,{class:"uni-button",type:"primary",size:"mini",onClick:i[1]||(i[1]=e=>c.navigateTo("./add"))},{default:s((()=>[l(n(e.$t("common.button.add")),1)])),_:1}),_(b,{class:"uni-button",type:"warn",size:"mini",disabled:!u.selectedIndexs.length,onClick:c.delTable},{default:s((()=>[l(n(e.$t("common.button.batchDelete")),1)])),_:1},8,["disabled","onClick"]),_(b,{class:"uni-button",type:"primary",size:"mini",disabled:!u.selectedIndexs.length,onClick:c.openTagsPopup},{default:s((()=>[l(n(e.$t("common.button.tagManager")),1)])),_:1},8,["disabled","onClick"]),_(b,{class:"uni-button",type:"primary",size:"mini",onClick:i[2]||(i[2]=t=>e.$refs.batchSms.open())},{default:s((()=>[l(n(e.$t("common.button.sendSMS")),1)])),_:1}),_(T,{class:"hide-on-phone",fields:u.exportExcel.fields,data:u.exportExcelData,type:u.exportExcel.type,name:u.exportExcel.filename},{default:s((()=>[_(b,{class:"uni-button",type:"primary",size:"mini"},{default:s((()=>[l(n(e.$t("common.button.exportExcel")),1)])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),_(v,{class:"uni-container"},{default:s((()=>[_(W,{ref:"udb",collection:u.collectionList,where:u.where,"page-data":"replace",orderby:u.orderby,getcount:!0,"page-size":u.options.pageSize,"page-current":u.options.pageCurrent,options:u.options,loadtime:"manual",onLoad:c.onqueryload},{default:s((({data:o,pagination:d,loading:m,error:p,options:h})=>[_(J,{ref:"table",loading:m,emptyText:p.message||e.$t("common.empty"),border:"",stripe:"",type:"selection",onSelectionChange:c.selectionChange},{default:s((()=>[_(w,null,{default:s((()=>[_(S,{align:"center","filter-type":"search",onFilterChange:i[3]||(i[3]=e=>c.filterChange(e,"username")),sortable:"",onSortChange:i[4]||(i[4]=e=>c.sortChange(e,"username"))},{default:s((()=>[l("用户名")])),_:1}),_(S,{align:"center","filter-type":"search",onFilterChange:i[5]||(i[5]=e=>c.filterChange(e,"nickname")),sortable:"",onSortChange:i[6]||(i[6]=e=>c.sortChange(e,"nickname"))},{default:s((()=>[l("用户昵称")])),_:1}),_(S,{align:"center","filter-type":"search",onFilterChange:i[7]||(i[7]=e=>c.filterChange(e,"mobile")),sortable:"",onSortChange:i[8]||(i[8]=e=>c.sortChange(e,"mobile"))},{default:s((()=>[l("手机号码")])),_:1}),_(S,{align:"center","filter-type":"select","filter-data":h.filterData.status_localdata,onFilterChange:i[9]||(i[9]=e=>c.filterChange(e,"status"))},{default:s((()=>[l("用户状态")])),_:2},1032,["filter-data"]),_(S,{align:"center","filter-type":"search",onFilterChange:i[10]||(i[10]=e=>c.filterChange(e,"email")),sortable:"",onSortChange:i[11]||(i[11]=e=>c.sortChange(e,"email"))},{default:s((()=>[l("邮箱")])),_:1}),_(S,{align:"center"},{default:s((()=>[l("角色")])),_:1}),_(S,{align:"center","filter-type":"select","filter-data":c.tagsData,onFilterChange:i[12]||(i[12]=e=>c.filterChange(e,"tags"))},{default:s((()=>[l("用户标签")])),_:1},8,["filter-data"]),_(S,{align:"center"},{default:s((()=>[l("可登录应用")])),_:1}),_(S,{align:"center","filter-type":"timestamp",onFilterChange:i[13]||(i[13]=e=>c.filterChange(e,"last_login_date")),sortable:"",onSortChange:i[14]||(i[14]=e=>c.sortChange(e,"last_login_date"))},{default:s((()=>[l("最后登录时间")])),_:1}),_(S,{align:"center"},{default:s((()=>[l("操作")])),_:1})])),_:2},1024),(t(!0),y(C,null,k(o,((i,o)=>(t(),a(w,{key:o},{default:s((()=>[_($,{align:"center"},{default:s((()=>[l(n(i.username),1)])),_:2},1024),_($,{align:"center"},{default:s((()=>[l(n(i.nickname),1)])),_:2},1024),_($,{align:"center"},{default:s((()=>[l(n(i.mobile),1)])),_:2},1024),_($,{align:"center"},{default:s((()=>[l(n(h.status_valuetotext[i.status]),1)])),_:2},1024),_($,{align:"center"},{default:s((()=>[_(O,{href:"mailto:"+i.email,text:i.email},null,8,["href","text"])])),_:2},1024),_($,{align:"center"},{default:s((()=>[l(n(i.role),1)])),_:2},1024),_($,{align:"center"},{default:s((()=>[(t(!0),y(C,null,k(i.tags,((e,s)=>(t(),y(C,{key:s},[i.tags?(t(),a(A,{key:0,type:"primary",inverted:"",size:"small",text:e,style:{margin:"0 5px"}},null,8,["text"])):r("",!0)],64)))),128))])),_:2},1024),_($,{align:"center"},{default:s((()=>[void 0===i.dcloud_appid?(t(),a(O,{key:0,href:u.noAppidWhatShouldIDoLink},{default:s((()=>[l(" 未绑定可登录应用"),_(v,{class:"uni-icons-help"})])),_:1},8,["href"])):r("",!0),l(" "+n(i.dcloud_appid),1)])),_:2},1024),_($,{align:"center"},{default:s((()=>[_(B,{threshold:[0,0],date:i.last_login_date},null,8,["date"])])),_:2},1024),_($,{align:"center"},{default:s((()=>[_(v,{class:"uni-group"},{default:s((()=>[_(b,{onClick:e=>c.navigateTo("./edit?id="+i._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:s((()=>[l(n(e.$t("common.button.edit")),1)])),_:2},1032,["onClick"]),_(b,{onClick:e=>c.confirmDelete(i._id),class:"uni-button",size:"mini",type:"warn"},{default:s((()=>[l(n(e.$t("common.button.delete")),1)])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),_(v,{class:"uni-pagination-box"},{default:s((()=>[_(N,{"show-iconn":"","show-page-size":"","page-size":d.size,modelValue:d.current,"onUpdate:modelValue":e=>d.current=e,total:d.count,onChange:c.onPageChanged,onPageSizeChange:c.changeSize},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange","onPageSizeChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1}),_(K,{ref:"tagsPopup",type:"center"},{default:s((()=>[_(v,{class:"tags-manager--x"},{default:s((()=>[_(v,{class:"tags-manager--header mb"},{default:s((()=>[l("管理标签")])),_:1}),_(Q,{ref:"checkbox",modelValue:u.managerTags,"onUpdate:modelValue":i[15]||(i[15]=e=>u.managerTags=e),class:"mb ml",multiple:!0,collection:"uni-id-tag",field:"tagid as value, name as text"},null,8,["modelValue"]),_(v,{class:"uni-group"},{default:s((()=>[_(b,{onClick:c.managerMultiTag,class:"uni-button",type:"primary",style:{"margin-right":"75px"}},{default:s((()=>[l("保存")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512),_(X,{ref:"batchSms",toType:"user",receiver:c.smsReceiver,condition:u.smsCondition},null,8,["receiver","condition"])])),_:1})}],["__scopeId","data-v-5257fcd4"]]);export{Z as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-add.7b6890b0.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-add.7b6890b0.js new file mode 100644 index 0000000000000000000000000000000000000000..f5025c406e660d7e659a7c79aa71056ff7f3e5d3 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-add.7b6890b0.js @@ -0,0 +1 @@ +import{N as e,O as t,s as a,_ as l,L as o,af as i,G as s,y as r,o as n,c as d,w as m,i as c,a as u,d as p,b as f,e as h,r as _,F as b,J as x,f as g,g as k,Q as y,q as D,p as V,X as F,z as w,t as C,U as P,V as S,W as U,a5 as v}from"./index-389238f5.js";import{_ as j}from"./uni-notice-bar.629dd577.js";import{_ as A}from"./uni-easyinput.a1fc57c1.js";import{_ as I}from"./uni-forms-item.69698491.js";import{a as E,_ as O}from"./uni-card.0addf51a.js";import{_ as q}from"./uni-file-picker.1b864550.js";import{_ as z}from"./uni-forms.bc4bcf6e.js";import{m as L,v as K}from"./opendb-app-list.55eb8c3a.js";const $=e=>e?{name:"",extname:"",url:e}:{};function W(e){let t={};for(let a in K)e.includes(a)&&(t[a]=K[a]);return t}const N=["mimarket","samsungapps","appmarket","oppomarket","vivomarket"],X=["xiaomi","samsung","huawei","oppo","vivo"],M={data(){let e={appid:"",name:"",icon_url:"",introduction:"",alias:"",description:"",screenshot:[],store_list:[],app_android:{},app_ios:{},mp_weixin:{},mp_alipay:{},mp_baidu:{},mp_toutiao:{},mp_qq:{},mp_lark:{},mp_kuaishou:{},mp_dingtalk:{},mp_jd:{},h5:{},quickapp:{}};const t={formData:e,rules:Object.freeze(W(Object.keys(e))),mpPlatform:Object.freeze(L),screenshotList:[],middleware_img:{},middleware_checkbox:{},appPackageInfo:{},appPlatformKeys:Object.freeze(["app_ios","app_android"]),appPlatformValues:Object.freeze({app_android:"Android",app_ios:"iOS"}),keepItems:Object.freeze([]),isEdit:!1,deletedStore:[]},a=Object.keys(L);return t.mpPlatformKeys=Object.freeze(a),[].concat(a,["icon_url","quickapp"]).forEach((e=>t.middleware_img[e]={})),t.platFormKeys=Object.freeze([].concat(a,t.appPlatformKeys)),t.platFormKeys.forEach((e=>t.middleware_checkbox[e]=!1)),t},methods:{requestCloudFunction(e,t={}){return this.$request(e,t,{functionName:"uni-upgrade-center"})},hasValue:e=>"object"!=typeof e?!!e:e instanceof Array?!!e.length:!(!e||!Object.keys(e).length),initFormData(e){if(e&&Object.keys(e).length)for(let t in e){const a=e[t];switch(t){case"icon_url":this.middleware_img[t]=$(a);break;case"screenshot":this.screenshotList=a.map((e=>$(e)));break;default:-1===t.indexOf("mp")&&-1===t.indexOf("app")||!this.hasValue(a)||(this.setPlatformChcekbox(t,!0),a.qrcode_url&&(this.middleware_img[t]=$(a.qrcode_url)))}this.setFormData(t,a)}},setFormData(e,t){const a=-1!==e.indexOf(".")?e.split("."):[e],l=a.length-1;let o=this.formData;a.forEach(((e,a)=>{const i=o[e];"object"==typeof i&&ae.fileID||e.url)));for(let e=0;ethis.getPlatformChcekbox(e)&&(this.formData[e].url||this.formData[e].qrcode_url))).concat(["icon_url","screenshot","create_date","store_list"]),this.formData.h5&&this.formData.h5.url&&this.keepItems.push("h5")},autoFill(){const a=this.getFormData("appid");a&&(e({mask:!0}),this.requestCloudFunction("getAppInfo",{appid:a}).then((e=>{if(e.success)return this.setFormData("description",e.description),void this.setFormData("name",e.name)})).catch((e=>{console.error(e)})).finally((()=>{t()})))},autoFillApp(){const e=this.getFormData("appid");e&&this.appPlatformKeys.forEach((t=>{this.fetchAppInfo(e,this.appPlatformValues[t]).then((e=>{if(e&&e.success)return this.setPlatformChcekbox(t,!0),void this.setFormData(t,{name:e.name,url:e.url})}))}))},fetchAppInfo(a,l){return e({mask:!0}),this.requestCloudFunction("getAppVersionInfo",{appid:a,platform:l}).then((e=>e)).catch((e=>{console.error(e)})).finally((()=>{t()}))},iconUrlSuccess(e,t){a({icon:"success",title:"上传成功",duration:500}),this.setFormData(t,e.tempFilePaths[0])},async iconUrlDelete(e,t){let l=await this.requestCloudFunction("deleteFile",{fileList:[e.tempFile.fileID||e.tempFile.url]});if(l=l.fileList?l.fileList[0]:l[0],l.success||"SUCCESS"===l.code){if(a({icon:"success",title:"删除成功",duration:800}),!t)return;this.setFormData(t,""),this.$refs.form.clearValidate(t)}},getPlatformChcekbox(e){return this.middleware_checkbox[e]},setPlatformChcekbox(e,t=!1){this.middleware_checkbox[e]=t},selectFile(){this.hasPackage&&a({icon:"none",title:"只可上传一个文件,请删除已上传后重试",duration:1e3})}},computed:{hasPackage(){return this.appPackageInfo&&!!Object.keys(this.appPackageInfo).length}}},T=o.database();T.command;const B="opendb-app-list";function G(e){for(var t=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],a="",l=0;l({mpExtra:" ",mpAccordionStatus:1,labelWidth:"80px"}),onLoad(e){e.id?(this.isEdit=!0,i({title:"修改应用"}),this.setFormData("appid",e.id),this.getDetail(e.id)):this.$watch("formData.name",(e=>{this.platFormKeys.forEach((t=>{this.setFormData(`${t}.name`,e)}))}))},onReady(){this.mpExtra="折叠"},methods:{resolvestableVersionStoreList(){const e={},t=[];return this.formData.store_list.forEach(((a,l)=>{t.push(a.id),e[a.id]=l})),this.fetchAppInfo(this.getFormData("appid"),"Android").then((a=>{if(a.success){if(a.store_list){const l={},o=[];a.store_list.forEach(((e,t)=>{o.push(e.id),l[e.id]=t})),t.forEach(((t,i)=>{const s=this.formData.store_list[e[t]];-1===o.indexOf(t)?a.store_list.push(s):(a.store_list[l[t]].name=s.name,a.store_list[l[t]].scheme=s.scheme)}));for(let e=0;eT.collection("opendb-app-versions").doc(e).update(t),submit(){e({mask:!0}),this.formatFormData(),this.$refs.form.validate(this.keepItems).then((e=>this.submitForm(e))).catch((e=>{console.error(e)})).finally((()=>{t()}))},submitForm(e){(this.isEdit?this.requestCloudFunction("setNewAppData",{id:this.formDataId,value:e}):T.collection(B).add(e)).then((e=>{if(this.isEdit)return this.resolvestableVersionStoreList()})).then((()=>{a({title:(this.isEdit?"更新":"新增")+"成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{r({content:e.message||"请求服务失败",showCancel:!1})}))},getDetail(a){e({mask:!0}),T.collection(B).where({appid:a}).get().then((e=>{const t=e.result.data[0];t?(this.formDataId=t._id,this.initFormData(t)):(this.autoFill(),this.autoFillApp())})).catch((e=>{r({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{t()}))},mpAccordion(){this.mpAccordionStatus?(this.mpExtra="展开",this.mpAccordionStatus=0):(this.mpExtra="折叠",this.mpAccordionStatus=1)},addStoreScheme(){this.formData.store_list.push({enable:!1,priority:0,id:G(5)+"_"+Date.now()})},deleteStore(e,t){t.scheme&&t.scheme.trim().length&&this.isEdit?r({content:"是否同步删除线上版本此条商店记录?",success:t=>{const a=this.formData.store_list.splice(e,1)[0];a&&t.confirm&&this.deletedStore.push(a.id)}}):this.formData.store_list.splice(e,1)[0]},schemeDemo(){window.open("https://ask.dcloud.net.cn/article/39960","_blank")}}},[["render",function(e,t,a,l,o,i){const s=g(k("uni-notice-bar"),j),r=g(k("uni-easyinput"),A),L=g(k("uni-forms-item"),I),K=y,$=g(k("uni-card"),E),W=g(k("uni-file-picker"),q),N=D,X=g(k("show-info"),O),M=c,T=P,B=V,G=S,H=U,J=g(k("uni-popup"),v),Q=F,R=g(k("uni-forms"),z);return n(),d(M,{class:"uni-container"},{default:m((()=>[u(s,{style:{margin:"0"},showIcon:"",text:"本页面信息,在应用发布、app升级模块中,都会关联使用,请认真填写"}),u(R,{ref:"form",modelValue:e.formData,"onUpdate:modelValue":t[11]||(t[11]=t=>e.formData=t),validateTrigger:"bind",style:{"max-width":"792px"},labelWidth:o.labelWidth,rules:e.rules},{default:m((()=>[u($,{title:"基础信息"},{default:m((()=>[u(L,{class:"forn-item__flex",name:"appid",label:"AppID",required:""},{default:m((()=>[u(r,{disabled:e.isEdit,placeholder:"应用的AppID",modelValue:e.formData.appid,"onUpdate:modelValue":t[0]||(t[0]=t=>e.formData.appid=t),trim:"both"},null,8,["disabled","modelValue"])])),_:1}),u(L,{name:"name",label:"应用名称",required:""},{default:m((()=>[u(r,{disabled:e.isEdit,placeholder:"应用名称",modelValue:e.formData.name,"onUpdate:modelValue":t[1]||(t[1]=t=>e.formData.name=t),trim:"both"},null,8,["disabled","modelValue"])])),_:1}),u(L,{name:"introduction",label:"应用简介"},{default:m((()=>[u(r,{placeholder:"应用简介",modelValue:e.formData.introduction,"onUpdate:modelValue":t[2]||(t[2]=t=>e.formData.introduction=t),trim:"both"},null,8,["modelValue"])])),_:1}),u(L,{name:"description",label:"应用描述"},{default:m((()=>[u(K,{maxlength:-1,"auto-height":"",placeholder:"应用描述",onInput:t[3]||(t[3]=t=>e.binddata("description",t.detail.value)),class:"uni-textarea-border",modelValue:e.formData.description,"onUpdate:modelValue":t[4]||(t[4]=t=>e.formData.description=t)},null,8,["modelValue"])])),_:1})])),_:1}),u($,{title:"图标素材"},{default:m((()=>[u(L,{label:"应用图标"},{default:m((()=>[u(W,{modelValue:e.middleware_img.icon_url,"onUpdate:modelValue":t[5]||(t[5]=t=>e.middleware_img.icon_url=t),"image-styles":{width:"200rpx"},"return-type":"object","file-mediatype":"image",limit:"1",mode:"grid",onSuccess:t[6]||(t[6]=t=>e.iconUrlSuccess(t,"icon_url")),onDelete:t[7]||(t[7]=t=>e.iconUrlDelete(t,"icon_url"))},null,8,["modelValue"])])),_:1}),u(L,{label:"应用截图"},{default:m((()=>[u(W,{modelValue:e.screenshotList,"onUpdate:modelValue":t[8]||(t[8]=t=>e.screenshotList=t),"file-mediatype":"image",mode:"grid","image-styles":{height:"500rpx",width:"300rpx"},onDelete:e.iconUrlDelete},null,8,["modelValue","onDelete"])])),_:1})])),_:1}),u($,{class:"app_platform",title:"App 信息"},{default:m((()=>[e.isEdit?(n(),d(M,{key:0,class:"extra-button"},{default:m((()=>[u(N,{type:"primary",plain:"",size:"mini",onClick:e.autoFillApp},{default:m((()=>[p("自动填充")])),_:1},8,["onClick"]),u(X,{left:-10,top:-35,width:"230",content:"从App升级中心同步应用安装包信息"})])),_:1})):f("",!0),(n(!0),h(b,null,_(e.appPlatformKeys,(a=>(n(),d(M,{key:a},{default:m((()=>[u(H,{onChange:({detail:{value:t}})=>{e.setPlatformChcekbox(a,!!t.length)}},{default:m((()=>[u(G,{class:w(["title_padding",{font_bold:e.getPlatformChcekbox(a)}])},{default:m((()=>[u(T,{value:a,checked:e.middleware_checkbox[a]},null,8,["value","checked"]),u(B,null,{default:m((()=>[p(C(e.appPlatformValues[a]),1)])),_:2},1024)])),_:2},1032,["class"])])),_:2},1032,["onChange"]),e.getPlatformChcekbox(a)?(n(),h(b,{key:0},[u(L,{label:"名称"},{default:m((()=>[u(r,{modelValue:e.formData[a].name,"onUpdate:modelValue":t=>e.formData[a].name=t,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),"app_android"===a?(n(),d(L,{key:0,class:"forn-item__flex",label:"上传apk包"},{default:m((()=>[u(W,{modelValue:e.appPackageInfo,"onUpdate:modelValue":t[9]||(t[9]=t=>e.appPackageInfo=t),"file-extname":"apk",disabled:e.hasPackage,returnType:"object","file-mediatype":"all",limit:"1",onSuccess:t=>e.iconUrlSuccess(t,`${a}.url`),onDelete:t=>e.iconUrlDelete(t,`${a}.url`),style:{flex:"1"}},{default:m((()=>[u(M,{class:"flex"},{default:m((()=>[u(N,{type:"primary",size:"mini",onClick:e.selectFile,style:{margin:"0"}},{default:m((()=>[p("选择文件")])),_:1},8,["onClick"]),u(B,{style:{padding:"10px","font-size":"12px",color:"#666"}},{default:m((()=>[p(" 上传apk到当前服务空间的云存储中,上传成功后,会自动使用云存储地址填充下载链接 ")])),_:1})])),_:1})])),_:2},1032,["modelValue","disabled","onSuccess","onDelete"]),e.hasPackage?(n(),d(B,{key:0,style:{"padding-left":"20px",color:"#a8a8a8"}},{default:m((()=>[p(C(e.appPackageInfo.size&&Number(e.appPackageInfo.size/1024/1024).toFixed(2)+"M"),1)])),_:1})):f("",!0)])),_:2},1024)):f("",!0),u(L,{label:"app_ios"===a?"AppStore":"下载链接"},{default:m((()=>[u(r,{maxlength:-1,modelValue:e.formData[a].url,"onUpdate:modelValue":t=>e.formData[a].url=t,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1032,["label"])],64)):f("",!0)])),_:2},1024)))),128)),u(J,{ref:"scheme","background-color":"#fff"},{default:m((()=>[u(M,{class:"popup-content"},{default:m((()=>[u(B,{style:{"font-size":"15px","font-weight":"bold"}},{default:m((()=>[p(" 常见的应用商店 scheme 地址 ")])),_:1}),u(M),u(B,null,{default:m((()=>[p(" 应用宝:tmast://appdetails?r=XXX&pname=xxx; 小米:mimarket://details?id=com.xx.xx; 三星:samsungapps://ProductDetail/com.xx.xx; 华为:appmarket://details?id=com.xx.xx; oppo:oppomarket://details?packagename=com.xx.xx; vivo:vivomarket://details?id=com.xx.xx; ")])),_:1})])),_:1})])),_:1},512),u(L,{name:"store_schemes",label:"Android应用市场",labelWidth:"120"},{default:m((()=>[u(M,{style:{height:"100%"}},{default:m((()=>[u(M,{class:"flex",style:{"justify-content":"end"}},{default:m((()=>[u(B,{class:"pointer",style:{"text-decoration":"underline",color:"#666","font-size":"12px","padding-left":"10rpx"},onClick:i.schemeDemo},{default:m((()=>[p("常见应用商店schema汇总")])),_:1},8,["onClick"]),u(N,{type:"primary",size:"mini",onClick:i.addStoreScheme,style:{margin:"0 0 0 10px"}},{default:m((()=>[p("新增")])),_:1},8,["onClick"])])),_:1}),(n(!0),h(b,null,_(e.formData.store_list,((e,t)=>(n(),d(M,{key:e.id},{default:m((()=>[u($,{title:"",style:{margin:"20px 0px 0px 0px"}},{default:m((()=>[u(M,{style:{display:"flex"}},{default:m((()=>[u(M,{style:{"padding-left":"10px"}},{default:m((()=>[u(N,{type:"warn",size:"mini",onClick:a=>i.deleteStore(t,e)},{default:m((()=>[p("删除")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024),u(L,{label:"商店名称"},{default:m((()=>[u(r,{modelValue:e.name,"onUpdate:modelValue":t=>e.name=t,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),u(L,{label:"Scheme"},{default:m((()=>[u(r,{maxlength:-1,modelValue:e.scheme,"onUpdate:modelValue":t=>e.scheme=t,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1}),u($,{class:"mp_platform",title:"小程序/快应用信息"},{default:m((()=>[(n(!0),h(b,null,_(e.mpPlatformKeys,(t=>(n(),d(M,{key:t},{default:m((()=>[u(H,{onChange:({detail:{value:a}})=>{e.setPlatformChcekbox(t,!!a.length)}},{default:m((()=>[u(G,{class:w(["title_padding",{font_bold:e.getPlatformChcekbox(t)}])},{default:m((()=>[u(T,{value:t,checked:e.middleware_checkbox[t]},null,8,["value","checked"]),u(B,null,{default:m((()=>[p(C(e.mpPlatform[t]),1)])),_:2},1024)])),_:2},1032,["class"])])),_:2},1032,["onChange"]),o.mpAccordionStatus&&e.getPlatformChcekbox(t)?(n(),h(b,{key:0},[u(L,{label:"名称"},{default:m((()=>[u(r,{modelValue:e.formData[t].name,"onUpdate:modelValue":a=>e.formData[t].name=a,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),u(L,{label:e.mpPlatform[t].slice(-3)+"码"},{default:m((()=>[u(W,{modelValue:e.middleware_img[t],"onUpdate:modelValue":a=>e.middleware_img[t]=a,"image-styles":{width:"200rpx"},"return-type":"object","file-mediatype":"image",limit:"1",mode:"grid",onSuccess:a=>e.iconUrlSuccess(a,`${t}.qrcode_url`),onDelete:a=>e.iconUrlDelete(a,`${t}.qrcode_url`)},null,8,["modelValue","onUpdate:modelValue","onSuccess","onDelete"])])),_:2},1032,["label"])],64)):f("",!0)])),_:2},1024)))),128))])),_:1}),u($,{title:"web信息"},{default:m((()=>[u(L,{label:"链接地址"},{default:m((()=>[u(r,{maxlength:-1,modelValue:e.formData.h5.url,"onUpdate:modelValue":t[10]||(t[10]=t=>e.formData.h5.url=t),trim:"both"},null,8,["modelValue"]),x("span",{style:{"font-size":"13px",color:"#999"}},[p("如需免费的前端网页托管,请开通 "),x("a",{style:{color:"inherit"},href:"https://unicloud.dcloud.net.cn"},"uniCloud"),p(" ,创建服务空间,并在 “前端网页托管” 里上传你的网页")])])),_:1})])),_:1}),e.isEdit?(n(),d($,{key:0,isShadow:!1},{default:m((()=>[u(B,null,{default:m((()=>[u(B,{style:{"font-weight":"bold"}},{default:m((()=>[p("提示:")])),_:1}),p("保存后需重新生成发布页")])),_:1})])),_:1})):f("",!0),u(M,{class:"uni-button-group"},{default:m((()=>[u(N,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:i.submit},{default:m((()=>[p("保存")])),_:1},8,["onClick"]),u(Q,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:m((()=>[u(N,{class:"uni-button",style:{width:"100px"}},{default:m((()=>[p("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue","labelWidth","rules"])])),_:1})}],["__scopeId","data-v-adb2730c"]]);export{H as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-list.d8fabfdc.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-list.d8fabfdc.js new file mode 100644 index 0000000000000000000000000000000000000000..0adcc40689bd3d2b9922a36f9f99889fb5755cfd --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-list.d8fabfdc.js @@ -0,0 +1 @@ +import{_ as e,L as t,E as a,y as i,n,o,c as s,w as d,i as l,a as r,d as p,t as c,e as u,r as h,F as g,f as m,g as f,M as b,q as C,h as y,j as _,k as x,l as $}from"./index-389238f5.js";import{_ as w}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as z}from"./uni-dateformat.b1c4ea95.js";import{_ as k}from"./uni-pagination.018f31ea.js";import{_ as D}from"./unicloud-db.dfa2c90d.js";import{e as S,f as T}from"./opendb-app-list.55eb8c3a.js";const v=t.database(),I=[],j={ascending:"asc",descending:"desc"};const L=e({data:()=>({query:"",where:"",orderby:"create_date",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...S},imageStyles:{width:64,height:64},exportExcel:{filename:"opendb-app-list.xls",type:"xls",fields:{AppID:"appid","应用名称":"name","应用描述":"description","创建时间":"create_date"}},exportExcelData:[],addAppidLoading:!0,descriptionThWidth:380,buttonThWidth:400}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},computed:{...a("app",["appName","appid"])},methods:{pageSizeChange(e){this.options.pageSize=e,this.options.pageCurrent=1,this.$nextTick((()=>{this.loadData()}))},onqueryload(e){e.find((e=>e.appid===this.appid))?this.addAppidLoading=!1:this.addCurrentAppid({appid:this.appid,name:this.appName,description:"admin 管理后台"}),this.exportExcelData=e},changeSize(e){this.pageSizeIndex=e.detail.value},addCurrentAppid(e){v.collection("opendb-app-list").add(e).then((e=>{this.loadData(),setTimeout((()=>{i({content:`检测到数据库中无当前应用, 已自动添加应用: ${this.appName}`,showCancel:!1})}),500)})).catch((e=>{})).finally((()=>{this.addAppidLoading=!1}))},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return I.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.loadData()},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){n({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){console.warn("删除应用,只能删除应用表 opendb-app-list 中的应用数据记录,不能删除与应用关联的其他数据,例如:使用升级中心 uni-upgrade-center 等插件产生的数据(应用版本数据等)"),this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){console.warn("删除应用,只能删除应用表 opendb-app-list 中的应用数据记录,不能删除与应用关联的其他数据,例如:使用升级中心 uni-upgrade-center 等插件产生的数据(应用版本数据等)"),this.$refs.udb.remove(e,{confirmContent:"是否删除该应用",success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+j[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=T(this._filter,v.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))},publish(e){n({url:"/pages/system/app/uni-portal/uni-portal?id="+e})}}},[["render",function(e,t,a,i,n,S){const T=m(f("uni-stat-breadcrumb"),w),v=b,I=C,j=l,L=m(f("uni-th"),y),q=m(f("uni-tr"),_),A=m(f("uni-td"),x),V=m(f("uni-dateformat"),z),F=m(f("uni-table"),$),E=m(f("uni-pagination"),k),W=m(f("unicloud-db"),D);return o(),s(j,{class:"fix-top-window"},{default:d((()=>[r(j,{class:"uni-header"},{default:d((()=>[r(T,{class:"uni-stat-breadcrumb-on-phone"}),r(j,{class:"uni-group"},{default:d((()=>[r(v,{class:"uni-search",type:"text",modelValue:n.query,"onUpdate:modelValue":t[0]||(t[0]=e=>n.query=e),onConfirm:S.search,placeholder:e.$t("common.placeholder.query")},null,8,["modelValue","onConfirm","placeholder"]),r(I,{class:"uni-button hide-on-phone",type:"default",size:"mini",onClick:S.search},{default:d((()=>[p(c(e.$t("common.button.search")),1)])),_:1},8,["onClick"]),r(I,{class:"uni-button",type:"primary",size:"mini",onClick:t[1]||(t[1]=e=>S.navigateTo("./add"))},{default:d((()=>[p(c(e.$t("common.button.add")),1)])),_:1}),r(I,{class:"uni-button",type:"warn",size:"mini",disabled:!n.selectedIndexs.length,onClick:S.delTable},{default:d((()=>[p(c(e.$t("common.button.batchDelete")),1)])),_:1},8,["disabled","onClick"])])),_:1})])),_:1}),r(j,{class:"uni-container"},{default:d((()=>[r(W,{ref:"udb",collection:"opendb-app-list",field:"appid,name,description,create_date",where:n.where,"page-data":"replace",orderby:n.orderby,getcount:!0,"page-size":n.options.pageSize,"page-current":n.options.pageCurrent,options:n.options,loadtime:"manual",onLoad:S.onqueryload},{default:d((({data:a,pagination:i,loading:l,error:m,options:f})=>[r(F,{ref:"table",loading:l||n.addAppidLoading,emptyText:m.message||e.$t("common.empty"),border:"",stripe:"",type:"selection",onSelectionChange:S.selectionChange,class:"table-pc"},{default:d((()=>[r(q,null,{default:d((()=>[r(L,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>S.filterChange(e,"appid")),sortable:"",onSortChange:t[3]||(t[3]=e=>S.sortChange(e,"appid"))},{default:d((()=>[p("AppID")])),_:1}),r(L,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>S.filterChange(e,"name")),sortable:"",onSortChange:t[5]||(t[5]=e=>S.sortChange(e,"name"))},{default:d((()=>[p("应用名称")])),_:1}),r(L,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>S.filterChange(e,"description")),sortable:"",onSortChange:t[7]||(t[7]=e=>S.sortChange(e,"description")),width:n.descriptionThWidth},{default:d((()=>[p("应用描述 ")])),_:1},8,["width"]),r(L,{align:"center","filter-type":"timestamp",onFilterChange:t[8]||(t[8]=e=>S.filterChange(e,"create_date")),sortable:"",onSortChange:t[9]||(t[9]=e=>S.sortChange(e,"create_date"))},{default:d((()=>[p("创建时间")])),_:1}),r(L,{align:"center",width:n.buttonThWidth},{default:d((()=>[p("操作")])),_:1},8,["width"])])),_:1}),(o(!0),u(g,null,h(a,((t,a)=>(o(),s(q,{key:a,disabled:t.appid===e.appid},{default:d((()=>[r(A,{align:"center"},{default:d((()=>[p(c(t.appid),1)])),_:2},1024),r(A,{align:"center"},{default:d((()=>[p(c(t.name),1)])),_:2},1024),r(A,{align:"left"},{default:d((()=>[p(c(t.description),1)])),_:2},1024),r(A,{align:"center"},{default:d((()=>[r(V,{threshold:[0,0],date:t.create_date},null,8,["date"])])),_:2},1024),r(A,{align:"center"},{default:d((()=>[t.appid===e.appid?(o(),s(j,{key:0},{default:d((()=>[p(" - ")])),_:1})):(o(),s(j,{key:1,class:"uni-group"},{default:d((()=>[r(I,{onClick:e=>S.publish(t._id),class:"uni-button",size:"mini",type:"primary"},{default:d((()=>[p(c(e.$t("common.button.publish")),1)])),_:2},1032,["onClick"]),r(I,{onClick:e=>S.navigateTo("/uni_modules/uni-upgrade-center/pages/version/list?appid="+t.appid,!1),class:"uni-button",size:"mini",type:"primary"},{default:d((()=>[p(c(e.$t("common.button.version")),1)])),_:2},1032,["onClick"]),r(I,{onClick:e=>S.navigateTo("./add?id="+t.appid,!1),class:"uni-button",size:"mini",type:"primary"},{default:d((()=>[p(c(e.$t("common.button.edit")),1)])),_:2},1032,["onClick"]),r(I,{onClick:e=>S.confirmDelete(t._id),class:"uni-button",size:"mini",type:"warn"},{default:d((()=>[p(c(e.$t("common.button.delete")),1)])),_:2},1032,["onClick"])])),_:2},1024))])),_:2},1024)])),_:2},1032,["disabled"])))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),r(j,{class:"uni-pagination-box"},{default:d((()=>[r(E,{"show-icon":"","show-page-size":"","page-size":i.size,modelValue:i.current,"onUpdate:modelValue":e=>i.current=e,total:i.count,onChange:S.onPageChanged,onPageSizeChange:S.pageSizeChange},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange","onPageSizeChange"])])),_:2},1024)])),_:1},8,["where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{L as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-uni-portal-uni-portal.151c7502.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-uni-portal-uni-portal.151c7502.js new file mode 100644 index 0000000000000000000000000000000000000000..b8fc2af9e3f495d0f0ff84c01070aeb5f01475c1 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-app-uni-portal-uni-portal.151c7502.js @@ -0,0 +1 @@ +import{_ as t,y as a,x as e,s,o as l,c as d,w as n,i as o,J as r,a as i,d as p,p as u,q as c}from"./index-389238f5.js";const f=t({data:()=>({id:""}),onLoad({id:t}){this.id=t},methods:{publish(){this.id?this.$request("createPublishHtml",{id:this.id},{functionName:"uni-portal",showModal:!1}).then((t=>{"download"in document.createElement("a")?function(t,a){var e=document.createElement("a");e.download=a,e.style.display="none";var s=new Blob([t]);e.href=URL.createObjectURL(s),document.body.appendChild(e),e.click(),document.body.removeChild(e)}(t.body,"index.html"):s({icon:"error",title:"浏览器不支持",duration:800})})).catch((t=>{a({content:t.errMsg,showCancel:!1})})):a({content:"页面出错,请返回重进",showCancel:!1,success(t){e({url:"/pages/system/app/list"})}})}}},[["render",function(t,a,e,s,f,h){const _=u,x=o,m=c;return l(),d(x,{class:"uni-container"},{default:n((()=>[r("h3",{class:"text-separated",style:{padding:"0 0 20rpx 0"}},"步骤1:了解“统一发布页”"),i(x,{style:{"margin-top":"20rpx"}},{default:n((()=>[i(x,{class:"text-separated"},{default:n((()=>[i(_,{class:"strong"},{default:n((()=>[p("uni-portal ")])),_:1}),i(_,null,{default:n((()=>[p("是 uni-app 提供的一套开箱即用的“统一发布页”。")])),_:1})])),_:1}),i(x,{class:"text-separated"},{default:n((()=>[i(_,{class:"strong"},{default:n((()=>[p("uni-portal ")])),_:1}),i(_,null,{default:n((()=>[p("可作为面向用户的统一业务名片,在一个页面集中展现:App下载地址、小程序二维码、H5访问链接等信息。")])),_:1})])),_:1}),i(x,{class:"text-separated"},{default:n((()=>[i(_,{style:{"font-size":"16px"}},{default:n((()=>[p("uni-app 官方示例的发布页就是基于"),i(_,{class:"strong"},{default:n((()=>[p("uni-portal ")])),_:1}),p(" 制作的,"),r("a",{href:"https://hellouniapp.dcloud.net.cn/portal",target:"_blank",class:"a-label"},"点击体验")])),_:1})])),_:1})])),_:1}),r("h3",{class:"text-separated",style:{padding:"40rpx 0 20rpx 0"}},"步骤2:获取“统一发布页”"),i(x,{class:"flex text-separated",style:{"margin-top":"20rpx"}},{default:n((()=>[i(_,null,{default:n((()=>[i(x,{class:"strong"},{default:n((()=>[p("uni-portal ")])),_:1}),p(" 可根据「应用管理」中所填写的应用信息,一键生成发布页: ")])),_:1}),i(m,{class:"custom-button",size:"mini",type:"primary",onClick:h.publish,style:{margin:"0"}},{default:n((()=>[p("生成并下载发布页")])),_:1},8,["onClick"])])),_:1}),r("h3",{class:"text-separated",style:{padding:"40rpx 0 20rpx 0"}},"步骤3:上传“统一发布页”"),i(x,{style:{"margin-top":"20rpx"}},{default:n((()=>[i(x,{class:"text-separated"},{default:n((()=>[i(_,null,{default:n((()=>[p(" 步骤2下载的“统一发布页”,是一个静态HTML页面,你可以直接在本地浏览器中打开访问。 ")])),_:1})])),_:1}),i(x,{class:"text-separated"},{default:n((()=>[i(_,null,{default:n((()=>[p(" 为了让用户访问到这个“统一发布页”,你需要将该静态HTML文件上传到你的服务器中;推荐使用"),r("a",{href:"https://uniapp.dcloud.io/uniCloud/hosting",target:"_blank",class:"a-label",style:{padding:"5px"}},"前端网页托管"),p(",因为前端网页托管具备使用更简单、价格更便宜、访问更快等优点。 ")])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-9817eb0f"]]);export{f as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-add.4c0576bc.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-add.4c0576bc.js new file mode 100644 index 0000000000000000000000000000000000000000..57e34fbc26ead9c4702f62e5d032e321e18ea84f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-add.4c0576bc.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as l,s as o,G as t,y as n,O as s,o as i,c as m,w as r,i as u,a as d,J as c,d as p,t as f,f as b,g as _,R as h,q as V,X as D,B as g,a5 as x}from"./index-389238f5.js";import{_ as y}from"./uni-easyinput.a1fc57c1.js";import{_ as k}from"./uni-forms-item.69698491.js";import{_ as U}from"./uni-link.d3d03343.js";import{_ as w}from"./uni-data-checkbox.b1dd95fe.js";import{_ as j}from"./uni-forms.bc4bcf6e.js";import{I as v,v as I}from"./icons.ee1da151.js";import"./uni-load-more.67944ae0.js";const C=a.database();C.command;function P(e){let a={};for(let l in I)e.includes(l)&&(a[l]=I[l]);return a}const L=e({components:{Icons:v},data:()=>({formData:{menu_id:"",name:"",icon:"",url:"",sort:null,parent_id:"",permission:[],enable:!0},rules:{...P(["menu_id","name","icon","url","sort","parent_id","permission","enable"])}}),onLoad(e){e.parent_id&&(this.formData.parent_id=e.parent_id)},methods:{submitForm(){this.$refs.form.submit()},submit(e){const{value:a,errors:i}=e.detail;i||(l({title:"提交中...",mask:!0}),C.collection("opendb-admin-menus").add(a).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>t()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{s()})))},showIconPopup(){this.$refs.iconPopup.open()}}},[["render",function(e,a,l,o,t,n){const s=b(_("uni-easyinput"),y),v=b(_("uni-forms-item"),k),I=b(_("uni-link"),U),C=b(_("uni-data-checkbox"),w),P=u,L=h,R=V,$=D,q=b(_("uni-forms"),j),B=g("Icons"),O=b(_("uni-popup"),x);return i(),m(P,{class:"uni-container"},{default:r((()=>[d(q,{labelWidth:"80",ref:"form",modelValue:t.formData,"onUpdate:modelValue":a[9]||(a[9]=e=>t.formData=e),rules:t.rules,validateTrigger:"bind",onSubmit:n.submit},{default:r((()=>[d(v,{name:"menu_id",label:"标识",required:""},{default:r((()=>[d(s,{modelValue:t.formData.menu_id,"onUpdate:modelValue":a[0]||(a[0]=e=>t.formData.menu_id=e),clearable:!1,placeholder:"请输入菜单项的ID,不可重复"},null,8,["modelValue"])])),_:1}),d(v,{name:"name",label:"显示名称",required:""},{default:r((()=>[d(s,{modelValue:t.formData.name,"onUpdate:modelValue":a[1]||(a[1]=e=>t.formData.name=e),clearable:!1,placeholder:"请输入菜单名称"},null,8,["modelValue"])])),_:1}),d(v,{name:"icon",label:"图标class",style:{"margin-bottom":"10px"}},{default:r((()=>[d(s,{modelValue:t.formData.icon,"onUpdate:modelValue":a[3]||(a[3]=e=>t.formData.icon=e),clearable:!1,placeholder:"请输入菜单图标css样式类名"},{right:r((()=>[c("span",{style:{color:"#007aff",cursor:"pointer","padding-right":"10px"},onClick:a[2]||(a[2]=(...e)=>n.showIconPopup&&n.showIconPopup(...e))},"内置图标")])),_:1},8,["modelValue"]),d(I,{"font-size":"12",href:"https://uniapp.dcloud.net.cn/uniCloud/admin?id=icon-%e5%9b%be%e6%a0%87",text:"如何使用自定义图标?",class:"uni-form-item-tips"})])),_:1}),d(v,{name:"url",label:"页面URL"},{default:r((()=>[d(s,{modelValue:t.formData.url,"onUpdate:modelValue":a[4]||(a[4]=e=>t.formData.url=e),clearable:!1,placeholder:"URL必须是/开头,若URL为空代表是目录而不是叶子节点"},null,8,["modelValue"])])),_:1}),d(v,{name:"sort",label:"序号"},{default:r((()=>[d(s,{modelValue:t.formData.sort,"onUpdate:modelValue":a[5]||(a[5]=e=>t.formData.sort=e),clearable:!1,placeholder:"请输入菜单序号(越大越靠后)"},null,8,["modelValue"])])),_:1}),d(v,{name:"parent_id",label:"父菜单标识"},{default:r((()=>[d(s,{disabled:!0,modelValue:t.formData.parent_id,"onUpdate:modelValue":a[6]||(a[6]=e=>t.formData.parent_id=e),clearable:!1,placeholder:"新增菜单时自动填充, 一级菜单不需要填写"},null,8,["modelValue"])])),_:1}),d(v,{name:"permission",label:"权限列表",class:"flex-center-x"},{default:r((()=>[d(C,{multiple:!0,modelValue:t.formData.permission,"onUpdate:modelValue":a[7]||(a[7]=e=>t.formData.permission=e),collection:"uni-id-permissions","page-size":500,field:"permission_name as text, permission_id as value"},null,8,["modelValue"]),d(P,{class:"uni-form-item-tips"},{default:r((()=>[p(" 当用户拥有以上被选中的权限时,可以访问此菜单。建议仅对子菜单配置权限,父菜单会自动包含。如不选择权限,意味着仅超级管理员可访问本菜单 ")])),_:1})])),_:1}),d(v,{name:"enable",label:"是否启用"},{default:r((()=>[d(L,{onChange:a[8]||(a[8]=a=>e.binddata("enable",a.detail.value)),checked:t.formData.enable},null,8,["checked"])])),_:1}),d(P,{class:"uni-button-group"},{default:r((()=>[d(R,{type:"primary",class:"uni-button",onClick:n.submitForm,style:{width:"100px"}},{default:r((()=>[p(f(e.$t("common.button.submit")),1)])),_:1},8,["onClick"]),d($,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[d(R,{class:"uni-button",tyle:"width: 100px;"},{default:r((()=>[p(f(e.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue","rules","onSubmit"]),d(O,{class:"icon-modal-box",ref:"iconPopup",type:"center"},{default:r((()=>[d(P,{class:"icon-modal icon-modal-pc"},{default:r((()=>[d(B,{tag:!1,"fix-window":!1})])),_:1})])),_:1},512)])),_:1})}],["__scopeId","data-v-0479b821"]]);export{L as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-edit.5667dded.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-edit.5667dded.js new file mode 100644 index 0000000000000000000000000000000000000000..96ee0442952d39753d852767519ecd3a1516d447 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-edit.5667dded.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as l,s as o,G as t,y as n,O as s,o as i,c as m,w as r,i as u,a as d,J as c,d as p,t as f,f as b,g as _,R as h,q as D,X as V,B as g,a5 as x}from"./index-389238f5.js";import{_ as y}from"./uni-easyinput.a1fc57c1.js";import{_ as k}from"./uni-forms-item.69698491.js";import{_ as w}from"./uni-link.d3d03343.js";import{_ as U}from"./uni-data-checkbox.b1dd95fe.js";import{_ as I}from"./uni-forms.bc4bcf6e.js";import{I as j,v}from"./icons.ee1da151.js";import"./uni-load-more.67944ae0.js";const C=a.database();C.command;const P="opendb-admin-menus";function L(e){let a={};for(let l in v)e.includes(l)&&(a[l]=v[l]);return a}const R=e({components:{Icons:j},data:()=>({formData:{menu_id:"",name:"",icon:"",url:"",sort:"",parent_id:"",permission:[],enable:null},rules:{...L(["menu_id","name","icon","url","sort","parent_id","permission","enable"])}}),onLoad(e){const a=e.id;this.formDataId=a,this.getDetail(a)},methods:{submitForm(e){this.$refs.form.submit()},submit(e){const{value:a,errors:i}=e.detail;i||(l({title:"修改中...",mask:!0}),C.collection(P).doc(this.formDataId).update(a).then((e=>{o({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>t()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{s()})))},getDetail(e){l({mask:!0}),C.collection(P).where({_id:e}).get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{s()}))},showIconPopup(){this.$refs.iconPopup.open()}}},[["render",function(e,a,l,o,t,n){const s=b(_("uni-easyinput"),y),j=b(_("uni-forms-item"),k),v=b(_("uni-link"),w),C=b(_("uni-data-checkbox"),U),P=u,L=h,R=D,$=V,q=g("Icons"),B=b(_("uni-popup"),x),O=b(_("uni-forms"),I);return i(),m(P,{class:"uni-container"},{default:r((()=>[d(O,{labelWidth:"80",ref:"form",modelValue:t.formData,"onUpdate:modelValue":a[9]||(a[9]=e=>t.formData=e),rules:t.rules,validateTrigger:"bind",onSubmit:n.submit},{default:r((()=>[d(j,{name:"menu_id",label:"标识",required:""},{default:r((()=>[d(s,{modelValue:t.formData.menu_id,"onUpdate:modelValue":a[0]||(a[0]=e=>t.formData.menu_id=e),clearable:!1,placeholder:"请输入菜单项的ID,不可重复"},null,8,["modelValue"])])),_:1}),d(j,{name:"name",label:"显示名称",required:""},{default:r((()=>[d(s,{modelValue:t.formData.name,"onUpdate:modelValue":a[1]||(a[1]=e=>t.formData.name=e),clearable:!1,placeholder:"请输入菜单名称"},null,8,["modelValue"])])),_:1}),d(j,{name:"icon",label:"图标 class",style:{"margin-bottom":"40px"}},{default:r((()=>[d(s,{modelValue:t.formData.icon,"onUpdate:modelValue":a[3]||(a[3]=e=>t.formData.icon=e),clearable:!1,placeholder:"请输入菜单图标css样式类名"},{default:r((()=>[c("span",{slot:"right",style:{color:"#007aff",cursor:"pointer","padding-right":"10px"},onClick:a[2]||(a[2]=(...e)=>n.showIconPopup&&n.showIconPopup(...e))},"内置图标")])),_:1},8,["modelValue"]),d(v,{"font-size":"12",href:"https://uniapp.dcloud.net.cn/uniCloud/admin?id=icon-%e5%9b%be%e6%a0%87",text:"如何使用自定义图标?",class:"uni-form-item-tips"})])),_:1}),d(j,{name:"url",label:"页面URL"},{default:r((()=>[d(s,{modelValue:t.formData.url,"onUpdate:modelValue":a[4]||(a[4]=e=>t.formData.url=e),clearable:!1,placeholder:"URL必须是/开头,URL为空代表是目录而不是叶子节点"},null,8,["modelValue"])])),_:1}),d(j,{name:"sort",label:"序号"},{default:r((()=>[d(s,{modelValue:t.formData.sort,"onUpdate:modelValue":a[5]||(a[5]=e=>t.formData.sort=e),clearable:!1,placeholder:"请输入菜单序号(越大越靠后)"},null,8,["modelValue"])])),_:1}),d(j,{name:"parent_id",label:"父菜单标识"},{default:r((()=>[d(s,{modelValue:t.formData.parent_id,"onUpdate:modelValue":a[6]||(a[6]=e=>t.formData.parent_id=e),clearable:!1,placeholder:"请输入父级菜单标识, 一级菜单不需要填写"},null,8,["modelValue"])])),_:1}),d(j,{name:"permission",label:"权限列表",class:"flex-center-x"},{default:r((()=>[d(C,{multiple:!0,modelValue:t.formData.permission,"onUpdate:modelValue":a[7]||(a[7]=e=>t.formData.permission=e),collection:"uni-id-permissions","page-size":500,field:"permission_name as text, permission_id as value"},null,8,["modelValue"]),d(P,{class:"uni-form-item-tips"},{default:r((()=>[p(" 当用户拥有以上被选中的权限时,可以访问此菜单。建议仅对子菜单配置权限,父菜单会自动包含。如不选择权限,意味着仅超级管理员可访问本菜单 ")])),_:1})])),_:1}),d(j,{name:"enable",label:"是否启用"},{default:r((()=>[d(L,{onChange:a[8]||(a[8]=a=>e.binddata("enable",a.detail.value)),checked:t.formData.enable},null,8,["checked"])])),_:1}),d(P,{class:"uni-button-group"},{default:r((()=>[d(R,{type:"primary",class:"uni-button",onClick:n.submitForm,style:{width:"100px"}},{default:r((()=>[p(f(e.$t("common.button.submit")),1)])),_:1},8,["onClick"]),d($,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[d(R,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[p(f(e.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1}),d(B,{class:"icon-modal-box",ref:"iconPopup",type:"center"},{default:r((()=>[d(P,{class:"icon-modal icon-modal-pc"},{default:r((()=>[d(q,{tag:!1,"fix-window":!1})])),_:1})])),_:1},512)])),_:1},8,["modelValue","rules","onSubmit"])])),_:1})}],["__scopeId","data-v-8bf98a02"]]);export{R as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-list.b441465a.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-list.b441465a.js new file mode 100644 index 0000000000000000000000000000000000000000..0c96fe8f276b92e886af4219197ca6859ba5be08 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-menu-list.b441465a.js @@ -0,0 +1 @@ +import{_ as e,L as n,ai as t,n as a,y as i,N as s,O as r,s as u,o,c as l,w as d,i as c,a as m,z as p,d as _,t as g,b,P as f,T as y,e as h,r as v,F as w,f as k,g as M,q as C,a3 as T,h as x,j,k as $,l as z}from"./index-389238f5.js";import{_ as S}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as I}from"./unicloud-db.dfa2c90d.js";const D=[{menu_id:"index",name:"首页",icon:"uni-icons-home",url:"/",sort:100,parent_id:"",permission:[],enable:!0,create_date:1602662469396},{menu_id:"system_management",name:"系统管理",icon:"admin-icons-fl-xitong",url:"",sort:1e3,parent_id:"",permission:[],enable:!0,create_date:1602662469396},{menu_id:"system_user",name:"用户管理",icon:"admin-icons-manager-user",url:"/pages/system/user/list",sort:1010,parent_id:"system_management",permission:[],enable:!0,create_date:1602662469398},{menu_id:"system_role",name:"角色管理",icon:"admin-icons-manager-role",url:"/pages/system/role/list",sort:1020,parent_id:"system_management",permission:[],enable:!0,create_date:1602662469397},{menu_id:"system_permission",name:"权限管理",icon:"admin-icons-manager-permission",url:"/pages/system/permission/list",sort:1030,parent_id:"system_management",permission:[],enable:!0,create_date:1602662469396},{menu_id:"system_menu",name:"菜单管理",icon:"admin-icons-manager-menu",url:"/pages/system/menu/list",sort:1040,parent_id:"system_management",permission:[],enable:!0,create_date:1602662469396},{menu_id:"system_app",name:"应用管理",icon:"admin-icons-manager-app",url:"/pages/system/app/list",sort:1035,parent_id:"system_management",permission:[],enable:!0,create_date:1602662469399},{menu_id:"system_update",name:"App升级中心",icon:"uni-icons-cloud-upload",url:"/uni_modules/uni-upgrade-center/pages/version/list",sort:1036,parent_id:"system_management",permission:[],enable:!0,create_date:1656491532434},{menu_id:"system_tag",name:"标签管理",icon:"admin-icons-manager-tag",url:"/pages/system/tag/list",sort:1037,parent_id:"system_management",permission:[],enable:!0,create_date:1602662479389},{permission:[],enable:!0,menu_id:"safety_statistics",name:"安全审计",icon:"admin-icons-safety",url:"",sort:3100,parent_id:"",create_date:1638356430871},{permission:[],enable:!0,menu_id:"safety_statistics_user_log",name:"用户日志",icon:"",url:"/pages/system/safety/list",sort:3101,parent_id:"safety_statistics",create_date:1638356430871},{permission:[],enable:!0,menu_id:"uni-stat",name:"uni 统计",icon:"admin-icons-tongji",url:"",sort:2100,parent_id:"",create_date:1638356430871},{parent_id:"uni-stat",permission:[],enable:!0,menu_id:"uni-stat-device",name:"设备统计",icon:"admin-icons-shebeitongji",url:"",sort:2120,create_date:1638356902516},{parent_id:"uni-stat-device",permission:[],enable:!0,menu_id:"uni-stat-device-overview",name:"概况",icon:"",url:"/pages/uni-stat/device/overview/overview",sort:2121,create_date:1638356902516},{parent_id:"uni-stat-device",permission:[],enable:!0,menu_id:"uni-stat-device-activity",name:"活跃度",icon:"",url:"/pages/uni-stat/device/activity/activity",sort:2122,create_date:1638356902516},{parent_id:"uni-stat-device",permission:[],enable:!0,menu_id:"uni-stat-device-trend",name:"趋势分析",icon:"",url:"/pages/uni-stat/device/trend/trend",sort:2123,create_date:1638356902516},{parent_id:"uni-stat-device",permission:[],enable:!0,menu_id:"uni-stat-device-retention",name:"留存",icon:"",url:"/pages/uni-stat/device/retention/retention",sort:2124,create_date:1638356902516},{parent_id:"uni-stat-device",permission:[],enable:!0,menu_id:"uni-stat-device-comparison",name:"平台对比",icon:"",url:"/pages/uni-stat/device/comparison/comparison",sort:2125,create_date:1638356902516},{parent_id:"uni-stat-device",permission:[],enable:!0,menu_id:"uni-stat-device-stickiness",name:"粘性",icon:"",url:"/pages/uni-stat/device/stickiness/stickiness",sort:2126,create_date:1638356902516},{parent_id:"uni-stat",permission:[],enable:!0,menu_id:"uni-stat-user",name:"注册用户统计",icon:"admin-icons-yonghutongji",url:"",sort:2122,create_date:1638356902516},{parent_id:"uni-stat-user",permission:[],enable:!0,menu_id:"uni-stat-user-overview",name:"概况",icon:"",url:"/pages/uni-stat/user/overview/overview",sort:2121,create_date:1638356902516},{parent_id:"uni-stat-user",permission:[],enable:!0,menu_id:"uni-stat-user-activity",name:"活跃度",icon:"",url:"/pages/uni-stat/user/activity/activity",sort:2122,create_date:1638356902516},{parent_id:"uni-stat-user",permission:[],enable:!0,icon:"",menu_id:"uni-stat-user-trend",name:"趋势分析",url:"/pages/uni-stat/user/trend/trend",sort:2123,create_date:1638356902516},{parent_id:"uni-stat-user",permission:[],enable:!0,menu_id:"uni-stat-user-retention",name:"留存",icon:"",url:"/pages/uni-stat/user/retention/retention",sort:2124,create_date:1638356902516},{parent_id:"uni-stat-user",permission:[],enable:!0,menu_id:"uni-stat-user-comparison",name:"平台对比",icon:"",url:"/pages/uni-stat/user/comparison/comparison",sort:2125,create_date:1638356902516},{parent_id:"uni-stat-user",permission:[],enable:!0,menu_id:"uni-stat-user-stickiness",name:"粘性",icon:"",url:"/pages/uni-stat/user/stickiness/stickiness",sort:2126,create_date:1638356902516},{parent_id:"uni-stat",permission:[],enable:!0,menu_id:"uni-stat-page-analysis",name:"页面统计",icon:"admin-icons-page-ent",url:"",sort:2123,create_date:1638356902516},{parent_id:"uni-stat-page-analysis",permission:[],enable:!0,menu_id:"uni-stat-page-res",name:"受访页",icon:"",url:"/pages/uni-stat/page-res/page-res",sort:2131,create_date:1638356902516},{parent_id:"uni-stat-page-analysis",permission:[],enable:!0,menu_id:"uni-stat-page-ent",name:"入口页",icon:"",url:"/pages/uni-stat/page-ent/page-ent",sort:2132,create_date:1638356902516},{parent_id:"uni-stat",permission:[],enable:!0,menu_id:"uni-stat-senceChannel",name:"渠道/场景值分析",icon:"admin-icons-qudaofenxi",url:"",sort:2150,create_date:1638356902516},{parent_id:"uni-stat-senceChannel",permission:[],enable:!0,menu_id:"uni-stat-senceChannel-scene",name:"场景值(小程序)",icon:"",url:"/pages/uni-stat/scene/scene",sort:2151,create_date:1638356902516},{parent_id:"uni-stat-senceChannel",permission:[],enable:!0,menu_id:"uni-stat-senceChannel-channel",name:"渠道(app)",icon:"",url:"/pages/uni-stat/channel/channel",sort:2152,create_date:1638356902516},{parent_id:"uni-stat",permission:[],enable:!0,menu_id:"uni-stat-event-event",name:"自定义事件",icon:"admin-icons-shijianfenxi",url:"/pages/uni-stat/event/event",sort:2160,create_date:1638356902516},{parent_id:"uni-stat",permission:[],enable:!0,menu_id:"uni-stat-error",name:"错误统计",icon:"admin-icons-cuowutongji",url:"",sort:2170,create_date:1638356902516},{parent_id:"uni-stat-error",permission:[],enable:!0,menu_id:"uni-stat-error-js",name:"js报错",icon:"",url:"/pages/uni-stat/error/js/js",sort:2171,create_date:1638356902516},{parent_id:"uni-stat-error",permission:[],enable:!0,menu_id:"uni-stat-error-app",name:"app崩溃",icon:"",url:"/pages/uni-stat/error/app/app",sort:2172,create_date:1638356902516},{menu_id:"uni-stat-pay",name:"支付统计",icon:"uni-icons-circle",url:"",sort:2122,parent_id:"uni-stat",permission:[],enable:!0,create_date:1667386977981},{menu_id:"uni-stat-pay-overview",name:"概况",icon:"",url:"/pages/uni-stat/pay-order/overview/overview",sort:21221,parent_id:"uni-stat-pay",permission:[],enable:!0,create_date:1667387038602},{menu_id:"uni-stat-pay-funnel",name:"转换漏斗分析",icon:"",url:"/pages/uni-stat/pay-order/funnel/funnel",sort:21222,parent_id:"uni-stat-pay",permission:[],enable:!0,create_date:1668430092890},{menu_id:"uni-stat-pay-ranking",name:"价值用户排行",icon:"",url:"/pages/uni-stat/pay-order/ranking/ranking",sort:21223,parent_id:"uni-stat-pay",permission:[],enable:!0,create_date:1668430128302},{menu_id:"uni-stat-pay-order-list",name:"订单明细",icon:"",url:"/pages/uni-stat/pay-order/list/list",sort:21224,parent_id:"uni-stat-pay",permission:[],enable:!0,create_date:1667387078947}];n.database();const L=[];function P(e,n,t=0){return e.forEach((a=>{a.menu_id===n&&a.parent_id&&(t=t+1+P(e,a.parent_id,t))})),t}function E(e,n,t=[]){return e.find((e=>e.parent_id===n))&&e.forEach((a=>{a.parent_id===n&&(t.push(a._id),E(e,a.menu_id,t))})),t}const q=e({data:()=>({query:"",where:"",orderby:"create_date asc",options:{pageSize:2e4,pageCurrent:1},selectedIndexs:[],loading:!0,menus:[],errMsg:"",currentTab:"menus",selectedPluginMenuIndexs:[]}),computed:{pluginMenus(){const e=[];if(!this.$hasRole("admin"))return e;const n=this.menus;return n.length?(L.forEach((t=>{n.find((e=>e.menu_id===t.menu_id))||e.push(t)})),e):e}},watch:{pluginMenus(e){e.length||(this.currentTab="menus")}},methods:{getSortMenu:e=>(e.map((n=>{e.some((e=>e.parent_id===n.menu_id))||(n.isLeafNode=!0)})),t(e)),onqueryload(e){for(var n=0;n{n.push(e),e.children.length&&this.patTree(e.children,n)})),n},switchTab(e){this.currentTab=e},loadData(e=!0){this.$refs.udb.loadData({clear:e})},navigateTo(e,n){a({url:e,events:{refreshData:()=>{this.loadData(n)}}})},confirmDelete(e){let n=e._id,t="是否删除该菜单?";const a=E(this.menus,e.menu_id);a.length&&(t="是否删除该菜单及其子菜单?"),n=[n,...a],i({title:"提示",content:t,success:e=>{e.confirm&&this.$refs.udb.remove(n,{needConfirm:!1})}})},pluginMenuSelectChange(e){this.selectedPluginMenuIndexs=e.detail.index},addPluginMenus(e){if(!this.selectedPluginMenuIndexs.length)return i({title:"提示",content:"请选择要添加的菜单!",showCancel:!1});const t=this.pluginMenus,a=[];this.selectedPluginMenuIndexs.forEach((e=>{const n=t[e];if(n){const e=JSON.parse(JSON.stringify(n));delete e.json,a.push(e)}})),i({title:"提示",content:"您确认要添加已选中的菜单吗?",success:e=>{if(!e.confirm)return;s({mask:!0});const u=a.length===t.length;n.database().collection("opendb-admin-menus").add(a).then((e=>{i({title:"提示",content:"添加菜单成功!",showCancel:!1,success:()=>{this.$refs.pluginMenusTable.clearSelection(),u&&(this.currentTab="menus"),this.loadData()}})})).catch((e=>{i({title:"提示",content:e.message,showCancel:!1})})).finally((()=>{r()}))}})},async updateBuiltInMenu(){i({title:"提示",content:"确定更新内置菜单吗?\n(该操作不会影响现有的菜单)",success:async e=>{if(e.confirm){const e=n.database(),a=e.command;let i=D.map(((e,n)=>e.menu_id));s({title:"更新中...",mask:!0});try{let n=[],t=(await e.collection("opendb-admin-menus").where({menu_id:a.in[i]}).limit(500).get()).result.data;if(D.map(((e,a)=>{t.find(((n,t,a)=>n.menu_id===e.menu_id))||n.push({...e,create_date:void 0})})),n&&n.length>0){let t=await e.collection("opendb-admin-menus").add(n);u({title:`新增了${t.result.inserted}个菜单,即将刷新`,icon:"none"}),setTimeout((()=>{window.location.reload()}),300)}else u({title:"菜单无变动",icon:"none"})}catch(t){console.error(t)}finally{r()}}}})}}},[["render",function(e,n,t,a,i,s){const r=k(M("uni-stat-breadcrumb"),S),u=c,D=k(M("uni-badge"),T),L=C,P=k(M("uni-th"),x),E=k(M("uni-tr"),j),q=k(M("uni-td"),$),N=k(M("uni-table"),z),B=k(M("unicloud-db"),I);return o(),l(u,null,{default:d((()=>[m(u,{class:"uni-header"},{default:d((()=>[m(r,{class:"uni-stat-breadcrumb-on-phone"})])),_:1}),m(u,{class:"uni-tabs__header"},{default:d((()=>[m(u,{class:"uni-tabs__nav-wrap"},{default:d((()=>[m(u,{class:"uni-tabs__nav-scroll"},{default:d((()=>[m(u,{class:"uni-tabs__nav"},{default:d((()=>[m(u,{onClick:n[0]||(n[0]=e=>s.switchTab("menus")),class:p([{"is-active":"menus"===i.currentTab},"uni-tabs__item"])},{default:d((()=>[_(g(e.$t("menu.text.menuManager")),1)])),_:1},8,["class"]),s.pluginMenus.length?(o(),l(u,{key:0,onClick:n[1]||(n[1]=e=>s.switchTab("pluginMenus")),class:p([{"is-active":"pluginMenus"===i.currentTab},"uni-tabs__item"])},{default:d((()=>[_(g(e.$t("menu.text.additiveMenu"))+" ",1),m(D,{class:"menu-badge",text:s.pluginMenus.length,type:"error"},null,8,["text"])])),_:1},8,["class"])):b("",!0)])),_:1})])),_:1})])),_:1})])),_:1}),f(m(u,null,{default:d((()=>[m(u,{class:"uni-header",style:{"border-bottom":"0","margin-bottom":"-15px"}},{default:d((()=>[m(u,{class:"uni-group"},{default:d((()=>[m(L,{onClick:n[2]||(n[2]=e=>s.navigateTo("./add")),size:"mini",plain:"true",type:"primary"},{default:d((()=>[_(g(e.$t("menu.button.addFirstLevelMenu")),1)])),_:1}),m(L,{onClick:s.updateBuiltInMenu,size:"mini",plain:"true",style:{"margin-left":"10px"},type:"warn"},{default:d((()=>[_(g(e.$t("menu.button.updateBuiltInMenu")),1)])),_:1},8,["onClick"])])),_:1}),m(u,{class:"uni-group"})])),_:1}),m(u,{class:"uni-container"},{default:d((()=>[m(B,{ref:"udb",onLoad:s.onqueryload,collection:"opendb-admin-menus",options:i.options,where:i.where,"page-data":"replace",orderby:i.orderby,getcount:!0,"page-size":i.options.pageSize,"page-current":i.options.pageCurrent},{default:d((({data:n,pagination:t,loading:a,error:r})=>[m(N,{loading:a,class:"table-pc",emptyText:i.errMsg||e.$t("common.empty"),border:"",stripe:""},{default:d((()=>[m(E,null,{default:d((()=>[m(P,{align:"center"},{default:d((()=>[_("排序")])),_:1}),m(P,{width:"200",align:"center"},{default:d((()=>[_("名称")])),_:1}),m(P,{align:"center"},{default:d((()=>[_("标识")])),_:1}),m(P,{align:"center"},{default:d((()=>[_("URL")])),_:1}),m(P,{width:"100",align:"center"},{default:d((()=>[_("是否启用")])),_:1}),m(P,{align:"center"},{default:d((()=>[_("操作")])),_:1})])),_:1}),(o(!0),h(w,null,v(n,((n,t)=>(o(),l(E,{key:t},{default:d((()=>[m(q,{align:"center"},{default:d((()=>[_(g(n.sort),1)])),_:2},1024),m(q,null,{default:d((()=>[_(g(n.name),1)])),_:2},1024),m(q,null,{default:d((()=>[_(g(n.menu_id),1)])),_:2},1024),m(q,null,{default:d((()=>[_(g(n.url),1)])),_:2},1024),m(q,{align:"center",class:p({"menu-disable":!n.enable})},{default:d((()=>[_(g(n.enable?"已启用":"未启用"),1)])),_:2},1032,["class"]),m(q,{align:"center"},{default:d((()=>[m(u,{class:"uni-group",style:{"justify-content":"left"}},{default:d((()=>[m(L,{onClick:e=>s.navigateTo("./edit?id="+n._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:d((()=>[_(g(e.$t("common.button.edit")),1)])),_:2},1032,["onClick"]),"system_menu"!==n.menu_id&&"system_management"!==n.menu_id?(o(),l(L,{key:0,onClick:e=>s.confirmDelete(n),class:"uni-button",size:"mini",type:"warn"},{default:d((()=>[_(g(e.$t("common.button.delete")),1)])),_:2},1032,["onClick"])):b("",!0),n.url?b("",!0):(o(),l(L,{key:1,onClick:e=>s.navigateTo("./add?parent_id="+n.menu_id,!1),class:"uni-button",size:"mini",type:"primary"},{default:d((()=>[_(g(e.$t("menu.button.addChildMenu")),1)])),_:2},1032,["onClick"]))])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText"])])),_:1},8,["onLoad","options","where","orderby","page-size","page-current"])])),_:1})])),_:1},512),[[y,"menus"===i.currentTab]]),f(m(u,null,{default:d((()=>[m(u,{class:"uni-header",style:{"border-bottom":"0","margin-bottom":"-15px"}},{default:d((()=>[m(u,{class:"uni-group"},{default:d((()=>[m(L,{style:{width:"130px"},onClick:s.addPluginMenus,size:"mini",type:"primary"},{default:d((()=>[_("添加选中的菜单 ")])),_:1},8,["onClick"])])),_:1}),m(u,{class:"uni-group"})])),_:1}),m(u,{class:"uni-container"},{default:d((()=>[m(N,{ref:"pluginMenusTable",type:"selection",border:"",stripe:"",onSelectionChange:s.pluginMenuSelectChange},{default:d((()=>[m(E,null,{default:d((()=>[m(P,{align:"center"},{default:d((()=>[_("名称(标识)")])),_:1}),m(P,{align:"center"},{default:d((()=>[_("URL")])),_:1}),m(P,{align:"center"},{default:d((()=>[_("插件菜单 json 文件")])),_:1})])),_:1}),(o(!0),h(w,null,v(s.pluginMenus,((e,n)=>(o(),l(E,{key:n},{default:d((()=>[m(q,null,{default:d((()=>[_(g(e.name)+"("+g(e.menu_id)+")",1)])),_:2},1024),m(q,null,{default:d((()=>[_(g(e.url),1)])),_:2},1024),m(q,null,{default:d((()=>[_(g(e.json),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["onSelectionChange"]),m(u,{class:"uni-sub-title",style:{"margin-top":"15px"}},{default:d((()=>[_(" 以上待添加菜单来自于三方插件,添加后,将显示在菜单管理中,若不希望显示在上述表格中时,可手动删除项目中对应的`插件id-menu.json`文件。 ")])),_:1})])),_:1})])),_:1},512),[[y,"pluginMenus"===i.currentTab]])])),_:1})}],["__scopeId","data-v-95038015"]]);export{q as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-add.11d64e78.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-add.11d64e78.js new file mode 100644 index 0000000000000000000000000000000000000000..1c9238fa294c19fa214d18c2fecd629e2adcf59b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-add.11d64e78.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as s,s as o,G as n,y as i,o as m,c as l,w as r,i as u,a as d,d as c,t as f,M as p,f as b,g as _,Q as h,q as v,X as y}from"./index-389238f5.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as V}from"./uni-forms.bc4bcf6e.js";import{v as g}from"./uni-id-permissions.7a340838.js";const k=a.database();k.command;function x(e){let a={};for(let t in g)e.includes(t)&&(a[t]=g[t]);return a}const j=e({data(){let e={permission_id:"",permission_name:"",comment:""};return{formData:e,formOptions:{},rules:{...x(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>{this.submitForm(e)})).catch((()=>{s()}))},submitForm(e){k.collection("uni-id-permissions").add(e).then((e=>{o({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{s()}))}}},[["render",function(e,a,t,s,o,n){const i=p,g=b(_("uni-forms-item"),D),k=h,x=v,j=y,I=u,w=b(_("uni-forms"),V);return m(),l(I,{class:"uni-container"},{default:r((()=>[d(w,{ref:"form",value:o.formData,validateTrigger:"bind"},{default:r((()=>[d(g,{name:"permission_id",label:"权限ID",required:""},{default:r((()=>[d(i,{placeholder:"权限唯一标识,不可修改,不允许重复",onInput:a[0]||(a[0]=a=>e.binddata("permission_id",a.detail.value)),class:"uni-input-border",modelValue:o.formData.permission_id,"onUpdate:modelValue":a[1]||(a[1]=e=>o.formData.permission_id=e),trim:"both"},null,8,["modelValue"])])),_:1}),d(g,{name:"permission_name",label:"权限名称",required:""},{default:r((()=>[d(i,{placeholder:"权限名称",onInput:a[2]||(a[2]=a=>e.binddata("permission_name",a.detail.value)),class:"uni-input-border",modelValue:o.formData.permission_name,"onUpdate:modelValue":a[3]||(a[3]=e=>o.formData.permission_name=e),trim:"both"},null,8,["modelValue"])])),_:1}),d(g,{name:"comment",label:"备注"},{default:r((()=>[d(k,{placeholder:"备注",onInput:a[4]||(a[4]=a=>e.binddata("comment",a.detail.value)),class:"uni-textarea-border",modelValue:o.formData.comment,"onUpdate:modelValue":a[5]||(a[5]=e=>o.formData.comment=e),trim:"both"},null,8,["modelValue"])])),_:1}),d(I,{class:"uni-button-group"},{default:r((()=>[d(x,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:n.submit},{default:r((()=>[c(f(e.$t("common.button.submit")),1)])),_:1},8,["onClick"]),d(j,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[d(x,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[c(f(e.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["value"])])),_:1})}],["__scopeId","data-v-0c01ac2c"]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-edit.0680d105.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-edit.0680d105.js new file mode 100644 index 0000000000000000000000000000000000000000..87a0df3b825628a851cc3560ab5d960a2796bbb2 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-edit.0680d105.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as s,s as i,G as o,y as n,o as m,c as l,w as r,i as d,a as u,d as c,t as f,f as p,g as h,M as _,Q as b,q as D,X as y}from"./index-389238f5.js";import{_ as g}from"./uni-easyinput.a1fc57c1.js";import{_ as v}from"./uni-forms-item.69698491.js";import{_ as V}from"./uni-forms.bc4bcf6e.js";import{v as k}from"./uni-id-permissions.7a340838.js";const I=a.database();I.command;const j="uni-id-permissions";function x(e){let a={};for(let t in k)e.includes(t)&&(a[t]=k[t]);return a}const w=e({data(){let e={permission_id:"",permission_name:"",comment:""};return{formData:e,formOptions:{},rules:{...x(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>{this.submitForm(e)})).catch((()=>{s()}))},submitForm(e){I.collection(j).doc(this.formDataId).update(e).then((e=>{i({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>o()),500)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{s()}))},getDetail(e){t({mask:!0}),I.collection(j).doc(e).field("permission_id,permission_name,comment").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{n({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{s()}))}}},[["render",function(e,a,t,s,i,o){const n=p(h("uni-easyinput"),g),k=p(h("uni-forms-item"),v),I=_,j=b,x=D,w=y,C=d,O=p(h("uni-forms"),V);return m(),l(C,{class:"uni-container"},{default:r((()=>[u(O,{ref:"form",value:i.formData,validateTrigger:"bind"},{default:r((()=>[u(k,{name:"permission_id",label:"权限ID",required:""},{default:r((()=>[u(n,{placeholder:"权限唯一标识,不可修改,不允许重复",onInput:a[0]||(a[0]=a=>e.binddata("permission_id",a.detail.value)),modelValue:i.formData.permission_id,"onUpdate:modelValue":a[1]||(a[1]=e=>i.formData.permission_id=e),trim:"both",disabled:""},null,8,["modelValue"])])),_:1}),u(k,{name:"permission_name",label:"权限名称",required:""},{default:r((()=>[u(I,{placeholder:"权限名称",onInput:a[2]||(a[2]=a=>e.binddata("permission_name",a.detail.value)),class:"uni-input-border",modelValue:i.formData.permission_name,"onUpdate:modelValue":a[3]||(a[3]=e=>i.formData.permission_name=e),trim:"both"},null,8,["modelValue"])])),_:1}),u(k,{name:"comment",label:"备注"},{default:r((()=>[u(j,{placeholder:"备注",onInput:a[4]||(a[4]=a=>e.binddata("comment",a.detail.value)),class:"uni-textarea-border",modelValue:i.formData.comment,"onUpdate:modelValue":a[5]||(a[5]=e=>i.formData.comment=e),trim:"both"},null,8,["modelValue"])])),_:1}),u(C,{class:"uni-button-group"},{default:r((()=>[u(x,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:o.submit},{default:r((()=>[c(f(e.$t("common.button.submit")),1)])),_:1},8,["onClick"]),u(w,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[u(x,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[c(f(e.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["value"])])),_:1})}],["__scopeId","data-v-1c97c706"]]);export{w as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-list.8000ba4a.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-list.8000ba4a.js new file mode 100644 index 0000000000000000000000000000000000000000..720d53152ec42d97d8d3869c47f9ae865beb864d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-permission-list.8000ba4a.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as s,i as o,a as r,d as l,t as d,e as c,r as u,F as m,f as h,g as p,M as f,q as g,h as _,j as b,k as y,l as C}from"./index-389238f5.js";import{_ as x}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as $}from"./download-excel.9236b5ca.js";import{_ as z}from"./uni-dateformat.b1c4ea95.js";import{_ as D}from"./uni-pagination.018f31ea.js";import{_ as w}from"./unicloud-db.dfa2c90d.js";import{e as S,f as k}from"./uni-id-permissions.7a340838.js";const T=t.database(),j=["permission_id","permission_name"],E={ascending:"asc",descending:"desc"};const q=e({data:()=>({query:"",where:"",orderby:"create_date desc",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...S},imageStyles:{width:64,height:64},exportExcel:{filename:"uni-id-permissions.xls",type:"xls",fields:{"权限ID":"permission_id","权限名称":"permission_name","备注":"comment"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},changeSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.$nextTick((()=>{this.loadData()}))},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return j.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+E[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=k(this._filter,T.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,S,k,T){const j=h(p("uni-stat-breadcrumb"),x),E=f,q=g,v=h(p("download-excel"),$),I=o,F=h(p("uni-th"),_),V=h(p("uni-tr"),b),L=h(p("uni-td"),y),P=h(p("uni-dateformat"),z),R=h(p("uni-table"),C),U=h(p("uni-pagination"),D),B=h(p("unicloud-db"),w);return n(),i(I,{class:"fix-top-window"},{default:s((()=>[r(I,{class:"uni-header"},{default:s((()=>[r(j,{class:"uni-stat-breadcrumb-on-phone"}),r(I,{class:"uni-group"},{default:s((()=>[r(E,{class:"uni-search",type:"text",modelValue:k.query,"onUpdate:modelValue":t[0]||(t[0]=e=>k.query=e),onConfirm:T.search,placeholder:e.$t("common.placeholder.query")},null,8,["modelValue","onConfirm","placeholder"]),r(q,{class:"uni-button hide-on-phone",type:"default",size:"mini",onClick:T.search},{default:s((()=>[l(d(e.$t("common.button.search")),1)])),_:1},8,["onClick"]),r(q,{class:"uni-button",type:"primary",size:"mini",onClick:t[1]||(t[1]=e=>T.navigateTo("./add"))},{default:s((()=>[l(d(e.$t("common.button.add")),1)])),_:1}),r(q,{class:"uni-button",type:"warn",size:"mini",disabled:!k.selectedIndexs.length,onClick:T.delTable},{default:s((()=>[l(d(e.$t("common.button.batchDelete")),1)])),_:1},8,["disabled","onClick"]),r(v,{class:"hide-on-phone",fields:k.exportExcel.fields,data:k.exportExcelData,type:k.exportExcel.type,name:k.exportExcel.filename},{default:s((()=>[r(q,{class:"uni-button",type:"primary",size:"mini"},{default:s((()=>[l(d(e.$t("common.button.exportExcel")),1)])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),r(I,{class:"uni-container"},{default:s((()=>[r(B,{ref:"udb",collection:"uni-id-permissions",field:"permission_id,permission_name,comment,create_date",where:k.where,"page-data":"replace",orderby:k.orderby,getcount:!0,"page-size":k.options.pageSize,"page-current":k.options.pageCurrent,options:k.options,loadtime:"manual",onLoad:T.onqueryload},{default:s((({data:a,pagination:o,loading:h,error:p,options:f})=>[r(R,{ref:"table",loading:h,emptyText:p.message||e.$t("common.empty"),border:"",stripe:"",type:"selection",onSelectionChange:T.selectionChange},{default:s((()=>[r(V,null,{default:s((()=>[r(F,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>T.filterChange(e,"permission_id")),sortable:"",onSortChange:t[3]||(t[3]=e=>T.sortChange(e,"permission_id"))},{default:s((()=>[l("权限标识")])),_:1}),r(F,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>T.filterChange(e,"permission_name")),sortable:"",onSortChange:t[5]||(t[5]=e=>T.sortChange(e,"permission_name"))},{default:s((()=>[l("权限名称")])),_:1}),r(F,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>T.filterChange(e,"comment")),sortable:"",onSortChange:t[7]||(t[7]=e=>T.sortChange(e,"comment"))},{default:s((()=>[l("备注")])),_:1}),r(F,{align:"center","filter-type":"timestamp",onFilterChange:t[8]||(t[8]=e=>T.filterChange(e,"create_date")),sortable:"",onSortChange:t[9]||(t[9]=e=>T.sortChange(e,"create_date"))},{default:s((()=>[l("创建时间")])),_:1}),r(F,{align:"center"},{default:s((()=>[l("操作")])),_:1})])),_:1}),(n(!0),c(m,null,u(a,((t,a)=>(n(),i(V,{key:a},{default:s((()=>[r(L,{align:"center"},{default:s((()=>[l(d(t.permission_id),1)])),_:2},1024),r(L,{align:"center"},{default:s((()=>[l(d(t.permission_name),1)])),_:2},1024),r(L,{align:"center"},{default:s((()=>[l(d(t.comment),1)])),_:2},1024),r(L,{align:"center"},{default:s((()=>[r(P,{threshold:[0,0],date:t.create_date},null,8,["date"])])),_:2},1024),r(L,{align:"center"},{default:s((()=>[r(I,{class:"uni-group"},{default:s((()=>[r(q,{onClick:e=>T.navigateTo("./edit?id="+t._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:s((()=>[l(d(e.$t("common.button.edit")),1)])),_:2},1032,["onClick"]),r(q,{onClick:e=>T.confirmDelete(t._id),class:"uni-button",size:"mini",type:"warn"},{default:s((()=>[l(d(e.$t("common.button.delete")),1)])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),r(I,{class:"uni-pagination-box"},{default:s((()=>[r(U,{"show-icon":"","show-page-size":"","page-size":o.size,modelValue:o.current,"onUpdate:modelValue":e=>o.current=e,total:o.count,onChange:T.onPageChanged,onPageSizeChange:T.changeSize},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange","onPageSizeChange"])])),_:2},1024)])),_:1},8,["where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{q as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-add.cf4625db.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-add.cf4625db.js new file mode 100644 index 0000000000000000000000000000000000000000..8a9964f6163fe0bdb203244cbfc47c0460277f51 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-add.cf4625db.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as o,s as l,G as s,y as m,o as i,c as n,w as r,i as u,a as d,d as f,t as c,f as p,g as _,q as b,X as h}from"./index-389238f5.js";import{_ as y}from"./uni-easyinput.a1fc57c1.js";import{_ as D}from"./uni-forms-item.69698491.js";import{_ as V}from"./uni-data-checkbox.b1dd95fe.js";import{_ as x}from"./uni-forms.bc4bcf6e.js";import{v as g}from"./uni-id-roles.ef72d0a7.js";import"./uni-load-more.67944ae0.js";const v=a.database();v.command;function j(e){let a={};for(let t in g)e.includes(t)&&(a[t]=g[t]);return a}const k=e({data(){let e={role_id:"",role_name:"",permission:[],comment:"",create_date:null};return{formData:e,formOptions:{},rules:{...j(Object.keys(e))}}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>{this.submitForm(e)})).catch((()=>{o()}))},submitForm(e){v.collection("uni-id-roles").add(e).then((e=>{l({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{m({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{o()}))}}},[["render",function(e,a,t,o,l,s){const m=p(_("uni-easyinput"),y),g=p(_("uni-forms-item"),D),v=p(_("uni-data-checkbox"),V),j=b,k=h,w=u,C=p(_("uni-forms"),x);return i(),n(w,{class:"uni-container"},{default:r((()=>[d(C,{ref:"form",value:l.formData,validateTrigger:"bind"},{default:r((()=>[d(g,{name:"role_id",label:"唯一ID",required:""},{default:r((()=>[d(m,{placeholder:"角色唯一标识,不可修改,不允许重复",modelValue:l.formData.role_id,"onUpdate:modelValue":a[0]||(a[0]=e=>l.formData.role_id=e),trim:"both"},null,8,["modelValue"])])),_:1}),d(g,{name:"role_name",label:"名称",required:""},{default:r((()=>[d(m,{placeholder:"角色名称",modelValue:l.formData.role_name,"onUpdate:modelValue":a[1]||(a[1]=e=>l.formData.role_name=e),trim:"both"},null,8,["modelValue"])])),_:1}),d(g,{name:"permission",label:"权限",class:"flex-center-x"},{default:r((()=>[d(v,{multiple:!0,modelValue:l.formData.permission,"onUpdate:modelValue":a[2]||(a[2]=e=>l.formData.permission=e),collection:"uni-id-permissions","page-size":500,field:"permission_name as text, permission_id as value"},null,8,["modelValue"])])),_:1}),d(g,{name:"comment",label:"备注"},{default:r((()=>[d(m,{type:"textarea",placeholder:"备注",modelValue:l.formData.comment,"onUpdate:modelValue":a[3]||(a[3]=e=>l.formData.comment=e),trim:"both"},null,8,["modelValue"])])),_:1}),d(w,{class:"uni-button-group"},{default:r((()=>[d(j,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:r((()=>[f(c(e.$t("common.button.submit")),1)])),_:1},8,["onClick"]),d(k,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[d(j,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[f(c(e.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["value"])])),_:1})}],["__scopeId","data-v-f03a568c"]]);export{k as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-edit.f09585ae.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-edit.f09585ae.js new file mode 100644 index 0000000000000000000000000000000000000000..2b6ab539ffa244b683749adc0e229a608baf7491 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-edit.f09585ae.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as o,s as l,G as s,y as i,o as n,c as m,w as r,i as d,a as u,d as c,t as f,f as p,g as _,q as h,X as b}from"./index-389238f5.js";import{_ as D}from"./uni-easyinput.a1fc57c1.js";import{_ as y}from"./uni-forms-item.69698491.js";import{_ as g}from"./uni-data-checkbox.b1dd95fe.js";import{_ as V}from"./uni-forms.bc4bcf6e.js";import{v as x}from"./uni-id-roles.ef72d0a7.js";import"./uni-load-more.67944ae0.js";const k=a.database();k.command;const v="uni-id-roles";function j(e){let a={};for(let t in x)e.includes(t)&&(a[t]=x[t]);return a}const w=e({data(){let e={role_id:"",role_name:"",permission:[],comment:"",create_date:null};return{formData:e,formOptions:{},rules:{...j(Object.keys(e))}}},onLoad(e){if(e.id){const a=e.id;this.formDataId=a,this.getDetail(a)}},onReady(){this.$refs.form.setRules(this.rules)},methods:{submit(){t({mask:!0}),this.$refs.form.validate().then((e=>{this.submitForm(e)})).catch((()=>{o()}))},submitForm(e){k.collection(v).doc(this.formDataId).update(e).then((e=>{l({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{o()}))},getDetail(e){t({mask:!0}),k.collection(v).doc(e).field("role_id,role_name,permission,comment,create_date").get().then((e=>{const a=e.result.data[0];a&&(this.formData=a)})).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{o()}))}}},[["render",function(e,a,t,o,l,s){const i=p(_("uni-easyinput"),D),x=p(_("uni-forms-item"),y),k=p(_("uni-data-checkbox"),g),v=h,j=b,w=d,C=p(_("uni-forms"),V);return n(),m(w,{class:"uni-container"},{default:r((()=>[u(C,{ref:"form",value:l.formData,validateTrigger:"bind"},{default:r((()=>[u(x,{name:"role_id",label:"唯一ID",required:""},{default:r((()=>[u(i,{placeholder:"角色唯一标识,不可修改,不允许重复",modelValue:l.formData.role_id,"onUpdate:modelValue":a[0]||(a[0]=e=>l.formData.role_id=e),trim:"both",disabled:""},null,8,["modelValue"])])),_:1}),u(x,{name:"role_name",label:"名称",required:""},{default:r((()=>[u(i,{placeholder:"角色名称",modelValue:l.formData.role_name,"onUpdate:modelValue":a[1]||(a[1]=e=>l.formData.role_name=e),trim:"both"},null,8,["modelValue"])])),_:1}),u(x,{name:"permission",label:"权限",class:"flex-center-x"},{default:r((()=>[u(k,{multiple:!0,modelValue:l.formData.permission,"onUpdate:modelValue":a[2]||(a[2]=e=>l.formData.permission=e),collection:"uni-id-permissions","page-size":500,field:"permission_name as text, permission_id as value"},null,8,["modelValue"])])),_:1}),u(x,{name:"comment",label:"备注"},{default:r((()=>[u(i,{type:"textarea",placeholder:"备注",modelValue:l.formData.comment,"onUpdate:modelValue":a[3]||(a[3]=e=>l.formData.comment=e),trim:"both"},null,8,["modelValue"])])),_:1}),u(w,{class:"uni-button-group"},{default:r((()=>[u(v,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:r((()=>[c(f(e.$t("common.button.submit")),1)])),_:1},8,["onClick"]),u(j,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:r((()=>[u(v,{class:"uni-button",style:{width:"100px"}},{default:r((()=>[c(f(e.$t("common.button.back")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["value"])])),_:1})}],["__scopeId","data-v-6f1dcef2"]]);export{w as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-list.9144be7c.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-list.9144be7c.js new file mode 100644 index 0000000000000000000000000000000000000000..8b88dec0654402065de008b4596abd31cd02a315 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-role-list.9144be7c.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as n,c as i,w as o,i as s,a as l,d as r,t as d,e as c,r as u,F as m,f as h,g as p,M as f,q as g,h as _,j as b,k as y,l as C}from"./index-389238f5.js";import{_ as x}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as $}from"./download-excel.9236b5ca.js";import{_ as D}from"./uni-dateformat.b1c4ea95.js";import{_ as z}from"./uni-pagination.018f31ea.js";import{_ as S}from"./unicloud-db.dfa2c90d.js";import{e as w,f as k}from"./uni-id-roles.ef72d0a7.js";const T=t.database(),j=["role_id","role_name","permission.permission_name"],E={ascending:"asc",descending:"desc"};const v=e({data:()=>({collectionList:[T.collection("uni-id-roles").field("comment,permission,role_id,role_name,create_date").getTemp(),T.collection("uni-id-permissions").field("permission_name, permission_id").getTemp()],query:"",where:"",orderby:"create_date desc",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...w},imageStyles:{width:64,height:64},exportExcel:{filename:"uni-id-roles.xls",type:"xls",fields:{"唯一ID":"role_id","名称":"role_name","权限":"permission","备注":"comment",create_date:"create_date"}},exportExcelData:[]}),onLoad(){this._filter={}},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){for(var t=0;te.permission_name)).join("、"),a.create_date=this.$formatDate(a.create_date)}this.exportExcelData=e},changeSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.$nextTick((()=>{this.loadData()}))},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return j.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e,{success:e=>{this.$refs.table.clearSelection()}})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+E[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=k(this._filter,T.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))}}},[["render",function(e,t,a,w,k,T){const j=h(p("uni-stat-breadcrumb"),x),E=f,v=g,I=h(p("download-excel"),$),q=s,F=h(p("uni-th"),_),L=h(p("uni-tr"),b),V=h(p("uni-td"),y),P=h(p("uni-dateformat"),D),U=h(p("uni-table"),C),B=h(p("uni-pagination"),z),N=h(p("unicloud-db"),S);return n(),i(q,{class:"fix-top-window"},{default:o((()=>[l(q,{class:"uni-header"},{default:o((()=>[l(j,{class:"uni-stat-breadcrumb-on-phone"}),l(q,{class:"uni-group"},{default:o((()=>[l(E,{class:"uni-search",type:"text",modelValue:k.query,"onUpdate:modelValue":t[0]||(t[0]=e=>k.query=e),onConfirm:T.search,placeholder:e.$t("common.placeholder.query")},null,8,["modelValue","onConfirm","placeholder"]),l(v,{class:"uni-button hide-on-phone",type:"default",size:"mini",onClick:T.search},{default:o((()=>[r(d(e.$t("common.button.search")),1)])),_:1},8,["onClick"]),l(v,{class:"uni-button",type:"primary",size:"mini",onClick:t[1]||(t[1]=e=>T.navigateTo("./add"))},{default:o((()=>[r(d(e.$t("common.button.add")),1)])),_:1}),l(v,{class:"uni-button",type:"warn",size:"mini",disabled:!k.selectedIndexs.length,onClick:T.delTable},{default:o((()=>[r(d(e.$t("common.button.batchDelete")),1)])),_:1},8,["disabled","onClick"]),l(I,{class:"hide-on-phone",fields:k.exportExcel.fields,data:k.exportExcelData,type:k.exportExcel.type,name:k.exportExcel.filename},{default:o((()=>[l(v,{class:"uni-button",type:"primary",size:"mini"},{default:o((()=>[r(d(e.$t("common.button.exportExcel")),1)])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),l(q,{class:"uni-container"},{default:o((()=>[l(N,{ref:"udb",collection:k.collectionList,where:k.where,"page-data":"replace",orderby:k.orderby,getcount:!0,"page-size":k.options.pageSize,"page-current":k.options.pageCurrent,options:k.options,loadtime:"manual",onLoad:T.onqueryload},{default:o((({data:a,pagination:s,loading:h,error:p,options:f})=>[l(U,{ref:"table",loading:h,emptyText:p.message||e.$t("common.empty"),border:"",stripe:"",type:"selection",onSelectionChange:T.selectionChange},{default:o((()=>[l(L,null,{default:o((()=>[l(F,{align:"center","filter-type":"search",onFilterChange:t[2]||(t[2]=e=>T.filterChange(e,"role_id")),sortable:"",onSortChange:t[3]||(t[3]=e=>T.sortChange(e,"role_id"))},{default:o((()=>[r("唯一ID")])),_:1}),l(F,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>T.filterChange(e,"role_name")),sortable:"",onSortChange:t[5]||(t[5]=e=>T.sortChange(e,"role_name"))},{default:o((()=>[r("名称")])),_:1}),l(F,{align:"center"},{default:o((()=>[r("权限")])),_:1}),l(F,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>T.filterChange(e,"comment")),sortable:"",onSortChange:t[7]||(t[7]=e=>T.sortChange(e,"comment"))},{default:o((()=>[r("备注")])),_:1}),l(F,{align:"center","filter-type":"timestamp",onFilterChange:t[8]||(t[8]=e=>T.filterChange(e,"create_date")),sortable:"",onSortChange:t[9]||(t[9]=e=>T.sortChange(e,"create_date"))},{default:o((()=>[r("创建时间")])),_:1}),l(F,{align:"center"},{default:o((()=>[r("操作")])),_:1})])),_:1}),(n(!0),c(m,null,u(a,((t,a)=>(n(),i(L,{key:a},{default:o((()=>[l(V,{align:"center"},{default:o((()=>[r(d(t.role_id),1)])),_:2},1024),l(V,{align:"center"},{default:o((()=>[r(d(t.role_name),1)])),_:2},1024),l(V,{align:"center"},{default:o((()=>[r(d(t.permission),1)])),_:2},1024),l(V,{align:"center"},{default:o((()=>[r(d(t.comment),1)])),_:2},1024),l(V,{align:"center"},{default:o((()=>[l(P,{threshold:[0,0],date:t.create_date},null,8,["date"])])),_:2},1024),l(V,{align:"center"},{default:o((()=>[l(q,{class:"uni-group"},{default:o((()=>[l(v,{onClick:e=>T.navigateTo("./edit?id="+t._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:o((()=>[r(d(e.$t("common.button.edit")),1)])),_:2},1032,["onClick"]),l(v,{onClick:e=>T.confirmDelete(t._id),class:"uni-button",size:"mini",type:"warn"},{default:o((()=>[r(d(e.$t("common.button.delete")),1)])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),l(q,{class:"uni-pagination-box"},{default:o((()=>[l(B,{"show-icon":"","show-page-size":"","page-size":s.size,modelValue:s.current,"onUpdate:modelValue":e=>s.current=e,total:s.count,onChange:T.onPageChanged,onPageSizeChange:T.changeSize},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange","onPageSizeChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}]]);export{v as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-system-safety-list.511c83f6.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-safety-list.511c83f6.js new file mode 100644 index 0000000000000000000000000000000000000000..834b747cc94762976e8e1e73a29bc38e4e631dc5 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-system-safety-list.511c83f6.js @@ -0,0 +1 @@ +import{_ as e,L as a,s as t,n,o as r,c as i,w as s,i as l,a as o,d,t as u,e as c,r as p,F as m,f as g,g as h,M as f,q as _,h as b,j as y,k as C,l as x}from"./index-389238f5.js";import{_ as w}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as z}from"./uni-dateformat.b1c4ea95.js";import{_ as D}from"./uni-pagination.018f31ea.js";import{_ as j}from"./unicloud-db.dfa2c90d.js";const k=a.database(),V=["user_id.username","user_id.nickname","type","ip"];const $=e({data:()=>({collectionList:[k.collection("uni-id-log").field("type, ip, create_date, user_id").getTemp(),k.collection("uni-id-users").field("_id, username,nickname").getTemp()],query:"",where:"",orderby:"create_date desc",options:{pageSize:20,pageCurrent:1}}),methods:{getWhere(){const e=this.query.trim();if(!e)return"";let a;try{a=new RegExp(e,"i")}catch(n){return void t({title:"请勿输入等不满足正则格式的符号",icon:"none"})}return V.map((e=>a+".test("+e+")")).join(" || ")},search(){const e=this.getWhere(),a=e===this.where;this.where=e,a&&this.loadData()},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.$refs.udb.loadData({current:e.current})},navigateTo(e){n({url:e,events:{refreshData:()=>{this.loadData()}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((a=>e[a]._id))},delTable(){this.$refs.udb.remove(this.selectedItems())},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e)}}},[["render",function(e,a,t,n,k,V){const $=g(h("uni-stat-breadcrumb"),w),q=f,v=_,T=l,I=g(h("uni-th"),b),L=g(h("uni-tr"),y),P=g(h("uni-td"),C),U=g(h("uni-dateformat"),z),E=g(h("uni-table"),x),S=g(h("uni-pagination"),D),W=g(h("unicloud-db"),j);return r(),i(T,null,{default:s((()=>[o(T,{class:"uni-header"},{default:s((()=>[o($,{class:"uni-stat-breadcrumb-on-phone"}),o(T,{class:"uni-group"},{default:s((()=>[o(q,{class:"uni-search",type:"text",modelValue:k.query,"onUpdate:modelValue":a[0]||(a[0]=e=>k.query=e),onConfirm:V.search,placeholder:e.$t("common.placeholder.query")},null,8,["modelValue","onConfirm","placeholder"]),o(v,{class:"uni-button hide-on-phone",type:"default",size:"mini",onClick:V.search},{default:s((()=>[d(u(e.$t("common.button.search")),1)])),_:1},8,["onClick"])])),_:1})])),_:1}),o(T,{class:"uni-container"},{default:s((()=>[o(W,{ref:"udb",collection:k.collectionList,options:k.options,where:k.where,"page-data":"replace",orderby:k.orderby,getcount:!0,"page-size":k.options.pageSize,"page-current":k.options.pageCurrent},{default:s((({data:e,pagination:a,loading:t,error:n})=>[o(E,{loading:t,emptyText:n.message||"没有更多数据",border:"",stripe:""},{default:s((()=>[o(L,null,{default:s((()=>[o(I,{align:"center"},{default:s((()=>[d("序号")])),_:1}),o(I,{align:"center"},{default:s((()=>[d("用户名")])),_:1}),o(I,{align:"center"},{default:s((()=>[d("昵称")])),_:1}),o(I,{align:"center"},{default:s((()=>[d("内容")])),_:1}),o(I,{align:"center"},{default:s((()=>[d("IP")])),_:1}),o(I,{align:"center"},{default:s((()=>[d("时间")])),_:1})])),_:1}),(r(!0),c(m,null,p(e,((e,t)=>(r(),i(L,{key:t},{default:s((()=>[o(P,{align:"center"},{default:s((()=>[d(u((a.current-1)*a.size+(t+1)),1)])),_:2},1024),o(P,{align:"center"},{default:s((()=>[d(u(e.user_id[0]&&e.user_id[0].username||"-"),1)])),_:2},1024),o(P,{align:"center"},{default:s((()=>[d(u(e.user_id[0]&&e.user_id[0].nickname||"-"),1)])),_:2},1024),o(P,{align:"center"},{default:s((()=>[d(u(e.type),1)])),_:2},1024),o(P,{align:"center"},{default:s((()=>[d(u(e.ip),1)])),_:2},1024),o(P,{align:"center"},{default:s((()=>[o(U,{date:e.create_date,threshold:[0,0]},null,8,["date"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText"]),o(T,{class:"uni-pagination-box"},{default:s((()=>[o(S,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:V.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","options","where","orderby","page-size","page-current"])])),_:1})])),_:1})}]]);export{$ as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-channel-channel.88c76401.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-channel-channel.88c76401.js new file mode 100644 index 0000000000000000000000000000000000000000..137f394c6e0ab441a6a1f45e835b7bb92c011d90 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-channel-channel.88c76401.js @@ -0,0 +1 @@ +import{_ as e,L as t,s as a,y as i,O as n,o as l,c as s,w as o,i as r,a as u,z as d,e as p,r as c,F as h,f as m,g,d as f,t as _,b as y,aC as b,h as C,j as v,A as D,k as q,l as x,a5 as T}from"./index-389238f5.js";import{_ as O}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as V}from"./uni-link.d3d03343.js";import{_ as k}from"./uni-data-select.8acadad5.js";import{_ as w}from"./uni-stat-tabs.4355c19c.js";import{_ as S}from"./uni-stat-panel.2e6a5931.js";import{_ as P}from"./qiun-data-charts.a402b569.js";import{_ as z}from"./uni-pagination.018f31ea.js";import{_ as j}from"./uni-popup-dialog.39d6dc6f.js";import{s as M,e as $,d as A,g as U,a as B,b as I,m as N,h as E,c as F}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const J=[{title:"渠道值",field:"channel_code",tooltip:"",formatter:""},{title:"渠道名称",field:"channel_name",tooltip:"",formatter:""},{title:"新增设备",field:"new_device_count",tooltip:"首次访问应用的设备数(以设备为判断标准,去重)",value:0},{title:"活跃设备",field:"active_device_count",tooltip:"访问过应用内任意页面的总设备数(去重)",value:0},{title:"访问次数",field:"page_visit_count",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0},{title:"启动次数",field:"app_launch_count",tooltip:"设备从打开应用到主动关闭应用或超时退出计为一次启动",value:0},{title:"次均停留时长",field:"avg_device_session_time",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0},{title:"设备平均停留时长 ",field:"avg_device_time",formatter:":",tooltip:"平均每个设备停留在应用内的总时长,即应用停留总时长/活跃设备",value:0},{title:"跳出率",field:"bounceRate",computed:"bounce_times/app_launch_count",formatter:"%",tooltip:"只浏览一个页面便离开应用的次数占总启动次数的百分比",value:0,contrast:0,fix:2},{title:"总设备数",field:"total_devices",tooltip:"从添加统计到当前选择时间的总设备数(去重)",value:0}];const R=e({data:()=>({fieldsMap:J,query:{dimension:"day",appid:"",uni_platform:"android",platform_id:"",version_id:"",start_time:[]},paginationOptions:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,days:0,tableData:[],panelData:J.filter((e=>e.hasOwnProperty("value"))),chartData:{},chartTab:"new_device_count",queryId:"",updateValue:"",errorMessage:""}),computed:{chartTabs(){const e=[];return J.forEach((t=>{const{field:a,title:i}=t,n=t.hasOwnProperty("value");a&&i&&n&&e.push({_id:a,name:i})})),e},queryStr(){return M(this.query,!0)},dimension(){return $(this.query.start_time,1)?"hour":"day"},versionQuery(){const{appid:e,uni_platform:t}=this.query;return M({appid:e,uni_platform:t,type:"native_app"})}},created(){this.debounceGet=A((()=>{this.getAllData(this.queryStr)}),300)},watch:{query:{deep:!0,handler(e){this.paginationOptions.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changePlatform(e,t,a,i){this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;let a,i;a=U(e),i=e?U(0)-1:U(0)+864e5-1,this.query.start_time=[a,i]},changePageCurrent(e){this.paginationOptions.pageCurrent=e.current,this.getTableData()},changePageSize(e){this.paginationOptions.pageSize=e,this.paginationOptions.pageCurrent=1,this.getTableData()},changeChartTab(e,t,a){this.getChartData(e,a)},getAllData(e){-1!==e.indexOf("appid")?(this.errorMessage="",this.getPanelData(),this.getChartData(),this.getTableData()):this.errorMessage="请先选择应用"},getChartData(e=this.chartTab){let a=M(this.query,!1,["uni_platform"]);this.paginationOptions;t.database().collection("uni-stat-result").where(a).field(`${B(J,e)}, start_time, channel_id`).groupBy("channel_id,start_time").groupField(I(J,e)).orderBy("start_time","asc").get({getCount:!0}).then((t=>{const{count:a,data:i}=t.result,n={categories:[],series:[{name:"暂无数据",data:[]}]},l=n.categories;if("hour"===this.dimension)for(let e=0;e<24;++e){const t=e<10?"0"+e:e,a=`${t}:00 ~ ${t}:59`;l.push(a)}const s=[];i.forEach((e=>{s.indexOf(e.channel_id)<0&&s.push(e.channel_id)}));let o=[];this.getChannels().then((e=>{o=e.result.data})).finally((()=>{s.forEach(((t,a)=>{const s=o.find((e=>e._id===t)),r=n.series[a]={name:s&&s.channel_name||"未知",data:[]};if("hour"===this.dimension)for(let e=0;e<24;++e)r.data[e]=0;let u=J.filter((t=>t.field===e));u=JSON.parse(JSON.stringify(u)),delete u[0].value,u[0].formatter="";for(const n of i){N(u,n,n);let a=n.start_time;const i=E(a,this.dimension);let s=n[e];const o=l.indexOf(i);t===n.channel_id&&(o<0?(l.push(i),r.data.push(s)):r.data[o]=s)}})),n.series=n.series.sort(((e,t)=>e.name.localeCompare(t.name))),this.chartData=n}))})).catch((e=>{console.error(e)})).finally((()=>{}))},getChannels(){return t.database().collection("uni-stat-app-channels").where(M({appid:this.query.appid,platform_id:this.query.platform_id})).get()},getTableData(){const e=M(this.query,!1,["uni_platform"]),{pageCurrent:a}=this.paginationOptions;this.loading=!0;t.database().collection("uni-stat-result").where(e).field(`${B(J)},appid, channel_id`).groupBy("appid, channel_id").groupField(I(J)).orderBy("new_device_count","desc").skip((a-1)*this.paginationOptions.pageSize).limit(this.paginationOptions.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;this.getChannels().then((e=>{const t=e.result.data;for(const i of a)t.forEach((e=>{i.channel_id===e._id&&(i.channel_code=e.channel_code,i.channel_name=e.channel_name)}))})).finally((()=>{for(const e of a)N(J,e,e,"total_");this.tableData=[],this.paginationOptions.total=t,this.tableData=a,this.loading=!1}))})).catch((e=>{console.error(e),this.loading=!1}))},createStr(e,t,a="total_"){const i=[];return e.forEach((e=>{if(field.hasOwnProperty("value")){const n=e.field;i.push(`${t}(${n}) as ${a+n}`)}})),i.join()},getPanelData(){let e=JSON.parse(JSON.stringify(this.query));e.dimension="day";let a=M(e,!1,["uni_platform"]);t.database().collection("uni-stat-result").where(a).field(B(J)).groupBy("appid").groupField(I(J)).orderBy("start_time","desc").get().then((t=>{const a=t.result.data[0];a&&(a.total_devices=0),F.call(this,e),this.panelData=[],this.panelData=N(J,a)}))},inputDialogToggle(e,t){this.queryId=e,this.updateValue=t,this.$refs.inputDialog.open()},editName(e){t.database().collection("uni-stat-app-channels").where({channel_code:this.queryId}).update({channel_name:e}).then((e=>{a({title:"修改成功"}),this.getTableData()})).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{n()}))}}},[["render",function(e,t,a,i,n,M){const $=m(g("uni-stat-breadcrumb"),O),A=m(g("uni-link"),V),U=r,B=m(g("uni-data-select"),k),I=m(g("uni-stat-tabs"),w),N=m(g("uni-datetime-picker"),b),E=m(g("uni-stat-panel"),S),F=m(g("qiun-data-charts"),P),J=m(g("uni-th"),C),R=m(g("uni-tr"),v),G=m(g("uni-icons"),D),L=m(g("uni-td"),q),Q=m(g("uni-table"),x),H=m(g("uni-pagination"),z),K=m(g("uni-popup-dialog"),j),W=m(g("uni-popup"),T);return l(),s(U,{class:"fix-top-window"},{default:o((()=>[u(U,{class:"uni-header"},{default:o((()=>[u($,{class:"uni-stat-breadcrumb-on-phone"}),u(U,{class:"uni-group"},{default:o((()=>[u(U,{class:"uni-sub-title hide-on-phone"},{default:o((()=>[u(A,{href:"https://ask.dcloud.net.cn/article/35974",text:"支持Android App多渠道统计。设置App渠道包的方法,请参考 https://ask.dcloud.net.cn/article/35974。"})])),_:1})])),_:1})])),_:1}),u(U,{class:"uni-container"},{default:o((()=>[u(U,{class:"uni-stat--x flex p-1015"},{default:o((()=>[u(B,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:n.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>n.query.appid=e),clear:!1},null,8,["modelValue"]),u(B,{collection:"opendb-app-versions",storage:!1,where:M.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:n.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>n.query.version_id=e)},null,8,["where","modelValue"]),u(I,{label:"平台选择",type:"boldLine",mode:"platform-channel",all:!1,modelValue:n.query.platform_id,"onUpdate:modelValue":t[2]||(t[2]=e=>n.query.platform_id=e),onChange:M.changePlatform},null,8,["modelValue","onChange"])])),_:1}),u(U,{class:"uni-stat--x flex"},{default:o((()=>[u(I,{label:"日期选择",current:n.currentDateTab,mode:"date",onChange:M.changeTimeRange},null,8,["current","onChange"]),u(N,{type:"daterange",end:(new Date).getTime(),modelValue:n.query.start_time,"onUpdate:modelValue":t[3]||(t[3]=e=>n.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:d(["uni-stat-datetime-picker",{"uni-stat__actived":n.currentDateTab<0&&!!n.query.start_time.length}]),onChange:M.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),u(U,{class:"uni-stat--x",style:{padding:"15px 0"}},{default:o((()=>[u(E,{items:n.panelData,class:"uni-stat-panel"},null,8,["items"]),u(I,{type:"box",modelValue:n.chartTab,"onUpdate:modelValue":t[4]||(t[4]=e=>n.chartTab=e),tabs:M.chartTabs,class:"mb-l",onChange:M.changeChartTab},null,8,["modelValue","tabs","onChange"]),u(U,{class:"uni-charts-box"},{default:o((()=>[u(F,{type:"area",chartData:n.chartData,echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:n.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),u(U,{class:"uni-stat--x p-m"},{default:o((()=>[u(U,{class:"mb-m"},{default:o((()=>[u(A,{color:"",href:"https://ask.dcloud.net.cn/article/35974",text:"如何自定义渠道包?"})])),_:1}),u(Q,{loading:n.loading,border:"",stripe:"",emptyText:e.$t("common.empty")},{default:o((()=>[u(R,null,{default:o((()=>[(l(!0),p(h,null,c(n.fieldsMap.slice(0,n.fieldsMap.length-1),((e,t)=>(l(),p(h,{key:t},[e.title?(l(),s(J,{key:t,align:"center"},{default:o((()=>[f(_(e.title),1)])),_:2},1024)):y("",!0)],64)))),128))])),_:1}),(l(!0),p(h,null,c(n.tableData,((e,t)=>(l(),s(R,{key:t},{default:o((()=>[(l(!0),p(h,null,c(n.fieldsMap.slice(0,n.fieldsMap.length-1),((t,a)=>(l(),p(h,{key:a},[t.title&&1===a?(l(),s(L,{key:t.field,class:"uni-stat-edit--x"},{default:o((()=>[f(_(e[t.field]?e[t.field]:"-")+" ",1),u(G,{type:"compose",color:"#2979ff",size:"25",class:"uni-stat-edit--btn",onClick:t=>M.inputDialogToggle(e.channel_code,e.channel_name)},null,8,["onClick"])])),_:2},1024)):(l(),s(L,{key:t.field,align:"center"},{default:o((()=>[f(_(void 0!==e[t.field]?e[t.field]:"-"),1)])),_:2},1024))],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),u(U,{class:"uni-pagination-box"},{default:o((()=>[u(H,{"show-icon":"","show-page-size":"","page-size":n.paginationOptions.pageSize,current:n.paginationOptions.pageCurrent,total:n.paginationOptions.total,onChange:M.changePageCurrent,onPageSizeChange:M.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1}),u(W,{ref:"inputDialog",type:"dialog",maskClick:!0},{default:o((()=>[u(K,{ref:"inputClose",mode:"input",title:"请编辑名称",modelValue:n.updateValue,"onUpdate:modelValue":t[5]||(t[5]=e=>n.updateValue=e),placeholder:"请输入内容",onConfirm:M.editName},null,8,["modelValue","onConfirm"])])),_:1},512)])),_:1})}],["__scopeId","data-v-186a4fb4"]]);export{R as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-activity-activity.8ec8bb95.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-activity-activity.8ec8bb95.js new file mode 100644 index 0000000000000000000000000000000000000000..a3c5622e07c389b3307600a6610b6ece636b3002 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-activity-activity.8ec8bb95.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as a,c as i,w as n,i as s,a as o,d as r,z as l,b as c,f as u,g as d,aC as h}from"./index-389238f5.js";import{_ as p}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as m}from"./uni-data-select.8acadad5.js";import{_ as g}from"./uni-stat-tabs.4355c19c.js";import{_}from"./qiun-data-charts.a402b569.js";import{_ as f}from"./uni-stat-table.19e19a80.js";import{_ as b}from"./uni-pagination.018f31ea.js";import{e as y,s as D,d as C,g as v,a as q,b as w,h as T,m as k}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const x=[{title:"日期",field:"start_time",tooltip:"",formatter:"-"},{title:"日活",field:"active_device_count",tooltip:"选中日期当天的访问用户数"},{title:"周活",field:"week_active_device_count",tooltip:"选中日期所在自然周(包括选中日期在内)的访问用户数"},{title:"日活/周活",field:"active_device_count/week_active_device_count",computed:"active_device_count/week_active_device_count",tooltip:"选中日期的访问用户数占周访问用户数的百分比",formatter:"%"},{title:"月活",field:"month_active_device_count",tooltip:"选中日期所在自然月(包括选中日期在内)的访问用户数"},{title:"日活/月活",field:"active_device_count/month_active_device_count",computed:"active_device_count/month_active_device_count",tooltip:"选中日期的访问用户数占月访问用户数的百分比",formatter:"%"}];const M=e({data:()=>({tableName:"uni-stat-result",fieldsMap:x,query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:0,currentChartTab:"day",tableData:[],chartData:{},channelData:[],tabName:"日活",errorMessage:""}),computed:{chartTabs(){const e=[{_id:"day",name:"日活"},{_id:"week",name:"周活"},{_id:"month",name:"月活"}];return y(this.query.start_time,7)&&e.forEach(((e,t)=>{"month"===e._id?e.disabled=!0:e.disabled=!1})),e},channelQuery(){const e=this.query.platform_id;return D({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return D({appid:e,uni_platform:t})}},created(){this.debounceGet=C((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;let a,i;a=v(e),i=e?v(0)-1:v(0)+864e5-1,this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.query)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTabelData(this.query)},changeChartTab(e,t,a){this.currentChartTab=e,this.tabName=a,this.getChartData(this.query,e,a)},getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e,this.currentChartTab,this.tabName),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a,i="日活",n="active_device_count"){this.chartData={};const s={categories:[],series:[{name:i,data:[]}]};e=D(e,!1,["uni_platform"]);const o=t.database();"day"===a?o.collection(this.tableName).where(e).field(`${q(x,n)}, start_time`).groupBy("start_time").groupField(w(x,n)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;this.chartData=[];for(const i of a){const e=T(i.start_time,"day"),t=i[n];s.series[0].data.push(t),s.categories.push(e)}this.chartData=s})).catch((e=>{console.error(e)})):this.getRangeCountData(e,a).then((e=>{const t=a;"week"===a&&(a="isoWeek");const{count:i,data:o}=e.result;this.chartData=[];for(const r of o){const e=+new Date(r.year,0)+(6048e5*Number(r[a])-1),i=T(e,t),o=r[a+"_"+n];o&&(s.series[0].data.push(o),s.categories.push(i))}this.chartData=s}))},getTabelData(e,a="active_device_count"){const{pageCurrent:i}=this.options;let n=D(e);this.loading=!0;t.database().collection(this.tableName).where(n).field(`${q(x,a)}, start_time`).groupBy("start_time").groupField(w(x,a)).orderBy("start_time","desc").skip((i-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((t=>{const{count:a,data:i}=t.result;let n=i,s=a,o=[],r=[],l=JSON.parse(JSON.stringify(e));l.dimension="week",this.getRangeCountData(D(l),"week").then((t=>{const{count:a,data:i}=t.result;o=i;let l=JSON.parse(JSON.stringify(e));l.dimension="month",this.getRangeCountData(D(l),"month").then((e=>{const{count:t,data:a}=e.result;r=a;const i=this.mapWithWeekAndMonth(n,o,r);for(const n of i)k(x,n,n);this.tableData=[],this.options.total=s,this.tableData=i})).finally((()=>{this.loading=!1}))}))})).catch((e=>{console.error(e)}))},getRangeCountData(e,a,i="active_device_count"){"week"===a&&(a="isoWeek"),this.options;return t.database().collection(this.tableName).where(e).field(`${i}, start_time, ${a}(add(new Date(0),start_time), "Asia/Shanghai") as ${a},year(add(new Date(0),start_time), "Asia/Shanghai") as year`).groupBy(`year, ${a}`).groupField(`sum(${i}) as ${a}_${i}`).orderBy(`year asc, ${a} asc`).get({getCount:!0})},mapWithWeekAndMonth(e,t,a,i="active_device_count"){for(const n of e){const e=new Date(n.start_time),s=e.getUTCFullYear(),o=e.getMonth()+1,r=this.getWeekNumber(e);for(const a of t)a.isoWeek===r&&a.year===s&&(n[`week_${i}`]=a[`isoWeek_${i}`]);for(const t of a)t.month===o&&t.year===s&&(n[`month_${i}`]=t[`month_${i}`])}return e},getWeekNumber(e){(e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))).setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));var t=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-t)/864e5+1)/7)},getChannelData(e,a){this.query.channel_id="";const i=t.database(),n={};(e=e||this.query.appid)&&(n.appid=e),(a=a||this.query.platform_id)&&(n.platform_id=a);let s=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),o=i.collection("uni-stat-app-channels").where(n).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(o,s).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,y,D,C,v){const q=u(d("uni-stat-breadcrumb"),p),w=s,T=u(d("uni-data-select"),m),k=u(d("uni-stat-tabs"),g),x=u(d("uni-datetime-picker"),h),M=u(d("qiun-data-charts"),_),S=u(d("uni-stat-table"),f),V=u(d("uni-pagination"),b);return a(),i(w,{class:"fix-top-window"},{default:n((()=>[o(w,{class:"uni-header"},{default:n((()=>[o(q,{class:"uni-stat-breadcrumb-on-phone"}),o(w,{class:"uni-group"},{default:n((()=>[o(w,{class:"uni-sub-title hide-on-phone"},{default:n((()=>[r("用户活跃度分析")])),_:1})])),_:1})])),_:1}),o(w,{class:"uni-container"},{default:n((()=>[o(w,{class:"uni-stat--x flex p-1015"},{default:n((()=>[o(T,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:v.changeAppid,modelValue:C.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>C.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),o(T,{collection:"opendb-app-versions",where:v.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:C.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>C.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),o(w,{class:"uni-stat--x flex"},{default:n((()=>[o(k,{label:"日期选择",current:C.currentDateTab,mode:"date",yesterday:!1,onChange:v.changeTimeRange},null,8,["current","onChange"]),o(x,{type:"daterange",end:(new Date).getTime(),modelValue:C.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>C.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:l(["uni-stat-datetime-picker",{"uni-stat__actived":C.currentDateTab<0&&!!C.query.start_time.length}]),onChange:v.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),o(w,{class:"uni-stat--x"},{default:n((()=>[o(k,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:C.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>C.query.platform_id=e),onChange:v.changePlatform},null,8,["modelValue","onChange"]),C.query.platform_id&&-1===C.query.platform_id.indexOf("==")?(a(),i(T,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:v.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:C.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>C.query.channel_id=e)},null,8,["where","modelValue"])):c("",!0)])),_:1}),o(w,{class:"uni-stat--x p-m"},{default:n((()=>[o(w,{class:"label-text mb-l"},{default:n((()=>[r(" 趋势图 ")])),_:1}),o(k,{type:"box",tabs:v.chartTabs,class:"mb-l",onChange:v.changeChartTab},null,8,["tabs","onChange"]),o(w,{class:"uni-charts-box"},{default:n((()=>[o(M,{type:"area",chartData:C.chartData,echartsH5:"",echartsApp:"",errorMessage:C.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),o(w,{class:"uni-stat--x p-m"},{default:n((()=>[o(S,{data:C.tableData,filedsMap:C.fieldsMap,loading:C.loading,tooltip:""},null,8,["data","filedsMap","loading"]),o(w,{class:"uni-pagination-box"},{default:n((()=>[o(V,{"show-icon":"","show-page-size":"","page-size":C.options.pageSize,current:C.options.pageCurrent,total:C.options.total,onChange:v.changePageCurrent,onPageSizeChange:v.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}]]);export{M as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-comparison-comparison.5770a6cb.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-comparison-comparison.5770a6cb.js new file mode 100644 index 0000000000000000000000000000000000000000..8401acec58112333326b09f431d93156974a4a12 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-comparison-comparison.5770a6cb.js @@ -0,0 +1 @@ +import{_ as e,L as a,o as t,c as s,w as i,i as r,a as d,d as n,z as o,e as l,r as c,F as u,f as _,g as p,t as m,aC as h}from"./index-389238f5.js";import{_ as f}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as y}from"./uni-data-select.8acadad5.js";import{_ as v}from"./qiun-data-charts.a402b569.js";import{g,d as b,s as D}from"./util.63f19a41.js";const x=e({data:()=>({query:{dimension:"day",appid:"",version_id:"",start_time:g(0)},platforms:[],dayChartsData:[],monChartsData:[],errorMessage:""}),created(){this.debounceGet=b((()=>{this.getAllData(this.query)}),300)},watch:{query:{deep:!0,handler(e){this.debounceGet()}}},computed:{chartsData(){return[...this.dayChartsData,...this.monChartsData]},versionQuery(){const{appid:e}=this.query;return D({appid:e})}},methods:{getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e),this.getRangeCountData(e,"month")):this.errorMessage="请先选择应用"},getChartData(e,t="day"){e=JSON.parse(JSON.stringify(e));const s=g(0);if(e.start_time>=s){const a=(new Date).getTime();e.start_time=[s,a],e=D(e,!0)}else e=D(e);a.database().collection("uni-stat-result").where(e).field("active_device_count,new_device_count,total_devices,platform_id").groupBy("platform_id").groupField(`sum(active_device_count) as ${t}_active_device_count, sum(new_device_count) as ${t}_new_device_count, max(total_devices) as ${t}_total_devices`).get().then((e=>{const a=e.result.data;this.initChartOption(a,"dayChartsData")}))},getRangeCountData(e,t){e=D(e);a.database().collection("uni-stat-result").where(e).field(`active_device_count, new_device_count, platform_id, ${t}(add(new Date(0),start_time), "Asia/Shanghai") as ${t},year(add(new Date(0),start_time), "Asia/Shanghai") as year`).groupBy(`year, ${t?t+",":""}platform_id`).groupField(`sum(active_device_count) as ${t}_active_device_count, sum(new_device_count) as ${t}_new_device_count`).orderBy(`year asc, ${t} asc`).get().then((e=>{const a=e.result.data;this.initChartOption(a,"monChartsData","month")}))},initChartOption(e,t,s="day"){a.database().collection("uni-stat-app-platforms").get().then((a=>{const i=[{field:`${s}_new_device_count`,title:("day"===s?"日":"月")+"新增设备对比",series:[{data:[]}]},{field:`${s}_active_device_count`,title:("day"===s?"日":"月")+"活跃设备对比",series:[{data:[]}]}];"day"===s&&i.unshift({field:"day_total_devices",title:"总设备数对比",series:[{data:[]}]}),this[t]=i;const r=a.result.data,d={};r.forEach((e=>{d[e._id]=e.name}));for(const s of this[t]){const a=s.series[0].data,t=JSON.parse(JSON.stringify(d));for(const i of e)for(const e in i)if(s.field===e){const s=i.platform_id,r={name:t[s],value:i[e]};a.push(r),delete t[s]}for(const e in t){const s={name:t[e],value:0};a.push(s)}}}))}}},[["render",function(e,a,g,b,D,x){const w=_(p("uni-stat-breadcrumb"),f),C=r,q=_(p("uni-data-select"),y),$=_(p("uni-datetime-picker"),h),V=_(p("qiun-data-charts"),v);return t(),s(C,{class:"fix-top-window"},{default:i((()=>[d(C,{class:"uni-header"},{default:i((()=>[d(w,{class:"uni-stat-breadcrumb-on-phone"}),d(C,{class:"uni-group hide-on-phone"},{default:i((()=>[d(C,{class:"uni-sub-title"},{default:i((()=>[n("多个指标在不同平台数据的占比,可以直观看出各个平台引流的效果")])),_:1})])),_:1})])),_:1}),d(C,{class:"uni-container"},{default:i((()=>[d(C,{class:"uni-stat--x flex mb-m",style:{padding:"0px 15px"}},{default:i((()=>[d(q,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:D.query.appid,"onUpdate:modelValue":a[0]||(a[0]=e=>D.query.appid=e),clear:!1},null,8,["modelValue"]),d(q,{collection:"opendb-app-versions",where:x.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:D.query.version_id,"onUpdate:modelValue":a[1]||(a[1]=e=>D.query.version_id=e)},null,8,["where","modelValue"]),d(C,{class:"flex"},{default:i((()=>[d(C,{class:"ml-m label-text hide-on-phone"},{default:i((()=>[n("日期选择:")])),_:1}),d($,{type:"date",modelValue:D.query.start_time,"onUpdate:modelValue":a[2]||(a[2]=e=>D.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":!!D.query.start_time}])},null,8,["modelValue","class"])])),_:1})])),_:1}),d(C,{class:"dispaly-grid"},{default:i((()=>[(t(!0),l(u,null,c(x.chartsData,((e,a)=>(t(),s(C,{key:a,class:"uni-stat--x uni-charts-box1"},{default:i((()=>[d(C,{class:"label-text",style:{margin:"5px 0 20px 0"}},{default:i((()=>[n(m(x.chartsData[a].title),1)])),_:2},1024),d(V,{type:"ring",chartData:x.chartsData[a],echartsH5:"",echartsApp:"",errorMessage:D.errorMessage},null,8,["chartData","errorMessage"])])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-8bf93566"]]);export{x as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-overview-overview.1d63bc0c.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-overview-overview.1d63bc0c.js new file mode 100644 index 0000000000000000000000000000000000000000..493f2c62ac55e2b5a8c19439071f955b0a7c6642 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-overview-overview.1d63bc0c.js @@ -0,0 +1 @@ +import{_ as t,L as e,n as a,o as s,c as l,w as i,i as o,a as r,z as n,b as d,d as u,e as c,r as p,F as h,f as m,g as _,am as f,t as g,aC as y,A as b,h as v,j as D,k as T,l as q}from"./index-389238f5.js";import{_ as x}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as C}from"./uni-data-select.8acadad5.js";import{_ as k}from"./uni-stat-tabs.4355c19c.js";import{_ as F}from"./uni-stat-panel.2e6a5931.js";import{_ as w}from"./qiun-data-charts.a402b569.js";import{_ as S}from"./uni-tooltip.58062496.js";import{s as V,d as M,g as N,a as P,b as O,p as j,m as A,c as I,h as $}from"./util.63f19a41.js";const z=[{value:"今天",contrast:"昨天"},{title:"新增设备",field:"new_device_count",tooltip:"首次访问应用的设备数(以设备为判断标准,去重)",value:0,contrast:0},{title:"活跃设备",field:"active_device_count",tooltip:"访问过应用内任意页面的总设备数,今日数据为每小时活跃设备累加(未虑重),昨日数据为全天活跃设备虑重后结果",value:0,contrast:0},{title:"访问次数",field:"page_visit_count",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0,contrast:0},{title:"启动次数",field:"app_launch_count",tooltip:"设备从打开应用到主动关闭应用或超时退出计为一次启动",value:0,contrast:0},{title:"次均停留时长",field:"avg_device_session_time",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0,contrast:0,stat:"avg"},{title:"设备平均停留时长 ",field:"avg_device_time",formatter:":",tooltip:"平均每个设备停留在应用内的总时长,即应用停留总时长/活跃设备",value:0,contrast:0,stat:"avg"},{title:"跳出率",field:"bounceRate",computed:"bounce_times/app_launch_count",formatter:"%",tooltip:"只浏览一个页面便离开应用的次数占总启动次数的百分比",value:0,contrast:0,fix:2},{title:"总设备数",field:"total_devices",tooltip:"从添加统计到当前选择时间的总设备数(去重)",value:0,contrast:0}],B=[{title:"受访页",field:"path",tooltip:"设备进入应用访问的所有页面,例如设备从页面1进入应用,跳转到页面2,1,2均为受访页",formatter:""},{title:"访问次数",field:"visit_times",tooltip:"访问该页面的总次数",value:0},{title:"占比",field:"rate",computed:"visit_times/total_app_access",tooltip:"页面的访问次数占所有页面访问次数的比例",formatter:"%"}],U=[{title:"入口页",field:"path",tooltip:"设备进入应用访问的第一个页面,例如设备从页面1进入应用,跳转到页面2,1为入口页,而2不是",formatter:""},{title:"入口页次数",field:"entry_count",tooltip:"访问该入口页的总次数",value:0},{title:"占比",field:"rate",computed:"entry_count/total_app_access",tooltip:"页面的入口页次数占所有页面访问次数的比例",formatter:"%"}],J=z.filter((t=>t.hasOwnProperty("value")));const R=t({data:()=>({tableName:"uni-stat-result",fieldsMap:z,resFieldsMap:B,entFieldsMap:U,query:{dimension:"hour",appid:"",version_id:"",platform_id:"",uni_platform:"",start_time:[],channel_id:""},options:{pageCurrent:1,total:0,pageSizeIndex:0,pageSizeRange:[10,20,50,100]},errorMessage:"",loading:!1,currentDateTab:2,chartTab:"new_user_count",tableData:[],resTableData:[],entTableData:[],panelData:J,chartData:{},eopts:{seriesTemplate:[{itemStyle:{borderWidth:2,borderColor:"#1890FF",color:"#1890FF"},areaStyle:{color:{colorStops:[{offset:0,color:"#1890FF"},{offset:1,color:"#FFFFFF"}]}}},{lineStyle:{color:"#ea7ccc",width:2,type:"dashed"},itemStyle:{borderWidth:1,borderColor:"#ea7ccc",color:"#ea7ccc"},areaStyle:null}]},tabIndex:0,tabName:"新增设备"}),onLoad(t){const{appid:e}=t;e&&(this.query.appid=e)},computed:{pageSize(){const{pageSizeRange:t,pageSizeIndex:e}=this.options;return t[e]},chartTabs(){const t=[];return z.forEach((e=>{const a=e.field,s=e.title;a&&s&&t.push({_id:a,name:s})})),t},versionQuery(){const{appid:t,uni_platform:e}=this.query;return V({appid:t,uni_platform:e})},channelQuery(){const{appid:t,platform_id:e}=this.query;return V({appid:t,platform_id:e})}},created(){this.debounceGet=M((()=>{this.getAllData(this.query)}),300)},watch:{query:{deep:!0,handler(t){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=null},changePlatform(t,e,a,s){this.query.version_id=0,this.query.uni_platform=s.code},changeTimeRange(t,e){this.currentDateTab=e;let a,s;a=N(t),s=t?N(0)-1:N(0)+864e5-1,this.query.start_time=[a,s]},changePageCurrent(t){this.options.pageCurrent=t.current,this.getChartData(this.query)},changePageSize(t){const{value:e}=t.detail;this.options.pageCurrent=1,this.options.pageSizeIndex=e,this.getChartData(this.query)},changeChartTab(t,e,a){this.tabIndex=e,this.tabName=a,this.getChartData(this.query,t,a)},getAllData(t){t.appid?(this.errorMessage="",this.getPanelData(),this.getChartData(t),this.getPageData(t,"res"),this.getPageData(t,"ent")):this.errorMessage="请先选择应用"},getDays(){if(!this.query.start_time.length)return!0;const[t,e]=this.query.start_time;return e-t>=864e5},getPanelData(){const{appid:t,platform_id:a,version_id:s,channel_id:l}=this.query;let i=V({appid:t,platform_id:a,version_id:s,channel_id:l,start_time:[N(1),(new Date).getTime()]});e.database().collection(this.tableName).where(i).field(`${P(z)},dimension,stat_date`).groupBy("stat_date, dimension").groupField(O(z)).orderBy("stat_date","desc").get().then((t=>{const e=t.result.data,a=e.find((t=>t.stat_date===j(N(0),"","")))||{};a.total_devices=0;const s=e.find((t=>"day"===t.dimension&&t.stat_date===j(N(1),"","")));this.panelData=[],this.panelData=A(z,a),this.panelData.map((t=>{A(z,s,t,"","contrast")})),I.call(this,i)}))},getChartData(t,a=this.chartTabs[this.tabIndex]._id,s=this.chartTabs[this.tabIndex].name){this.options;const l=this.currentDateTab,i=N(l),o=864e5;let r;if(!this.getDays()){const e=i-o,a=i+o-1;t=JSON.parse(JSON.stringify(t)),r=t.start_time=[e,a]}t=V(t,!0,["uni_platform"]);e.database().collection(this.tableName).where(t).field(`${P(z,a)}, start_time`).groupBy("start_time").groupField(O(z,a)).orderBy("start_time","asc").get({getCount:!0}).then((t=>{const{count:e,data:l}=t.result,o={categories:[],series:[{name:s,data:[]}]};let n=z.filter((t=>t.field===a));if(n=JSON.parse(JSON.stringify(n)),delete n[0].value,n[0].formatter="",this.getDays())for(const s of l){A(n,s,s);const t=$(s.start_time,"day");let e=Number(s[a]);o.series[0].data.push(e),o.categories.push(t)}else{const[t,e]=r,s=o.series[1]={name:$(t),data:[]},d=o.series[0]={name:$(e),data:[]};for(let r=0;r<24;++r){const t=r<10?"0"+r:r,e=`${t}:00 ~ ${t}:59`;o.categories.push(e),s.data[r]=0,d.data[r]=0,l.forEach((t=>{A(n,t,t);let e=Number(t[a]);const l=new Date(t.start_time);t.start_time{console.error(t)})).finally((()=>{}))},getAppAccessTimes(t){return e.database().collection(this.tableName).where(t).groupBy("appid").groupField("sum(page_visit_count) as total_app_access").get()},getPageData(t,a){(t=JSON.parse(JSON.stringify(t))).dimension="day",t=V(t,!1,["uni_platform"]),this.options;const s=this[`${a}FieldsMap`],l=s[1].field;this.loading=!0;const i=e.database(),o=V({appid:this.query.appid}),r=i.collection("uni-stat-pages").where(o).field("_id, title, path").getTemp(),n=i.collection("uni-stat-page-result").where(`${t} && ${l} > 0`).getTemp();i.collection(n,r).field(`${P(s,l)}, stat_date, page_id`).groupBy("page_id").groupField(O(s,l)).orderBy(l,"desc").limit(10).get({getCount:!0}).then((e=>{const{count:l,data:i}=e.result;let o;this.getAppAccessTimes(t).then((t=>{const e=t.result.data[0];o=e&&e.total_app_access})).finally((()=>{this[`${a}TableData`]=[];for(const t of i){t.total_app_access=o;const e=t.page_id;if(Array.isArray(e)){delete t.page_id;const a=e[0];if(a&&Object.keys(a).length)for(const e in a)"_id"!==e&&(t[e]=a[e])}A(s,t,t),this[`${a}TableData`].push(t)}this.loading=!1}))})).catch((t=>{console.error(t)})).finally((()=>{}))},navTo(t){t&&a({url:t})}}},[["render",function(t,e,a,V,M,N){const P=m(_("uni-stat-breadcrumb"),x),O=o,j=m(_("uni-data-select"),C),A=m(_("uni-stat-tabs"),k),I=m(_("uni-datetime-picker"),y),$=m(_("uni-stat-panel"),F),z=m(_("qiun-data-charts"),w),B=m(_("uni-icons"),b),U=m(_("uni-tooltip"),S),J=m(_("uni-th"),v),R=m(_("uni-tr"),D),Q=m(_("uni-td"),T),H=m(_("uni-table"),q);return s(),l(O,{class:"fix-top-window"},{default:i((()=>[r(O,{class:"uni-header"},{default:i((()=>[r(P,{class:"uni-stat-breadcrumb-on-phone"})])),_:1}),r(O,{class:"uni-container"},{default:i((()=>[r(O,{class:"uni-stat--x flex p-1015"},{default:i((()=>[r(j,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:M.query.appid,"onUpdate:modelValue":e[0]||(e[0]=t=>M.query.appid=t),clear:!1},null,8,["modelValue"]),r(j,{collection:"opendb-app-versions",where:N.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:M.query.version_id,"onUpdate:modelValue":e[1]||(e[1]=t=>M.query.version_id=t)},null,8,["where","modelValue"])])),_:1}),r(O,{class:"uni-stat--x flex"},{default:i((()=>[r(A,{label:"日期选择",current:M.currentDateTab,mode:"date",today:!0,onChange:N.changeTimeRange},null,8,["current","onChange"]),r(I,{type:"daterange",end:(new Date).getTime(),modelValue:M.query.start_time,"onUpdate:modelValue":e[2]||(e[2]=t=>M.query.start_time=t),returnType:"timestamp",clearIcon:!1,class:n(["uni-stat-datetime-picker",{"uni-stat__actived":M.currentDateTab<0&&!!M.query.start_time.length}]),onChange:N.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),r(O,{class:"uni-stat--x"},{default:i((()=>[r(A,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:M.query.platform_id,"onUpdate:modelValue":e[3]||(e[3]=t=>M.query.platform_id=t),onChange:N.changePlatform},null,8,["modelValue","onChange"]),M.query.platform_id&&-1===M.query.platform_id.indexOf("==")?(s(),l(j,{key:0,collection:"uni-stat-app-channels",where:N.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:M.query.channel_id,"onUpdate:modelValue":e[4]||(e[4]=t=>M.query.channel_id=t)},null,8,["where","modelValue"])):d("",!0)])),_:1}),r($,{items:M.panelData,contrast:!0},null,8,["items"]),r(O,{class:"uni-stat--x p-m"},{default:i((()=>[r(O,{class:"uni-stat-card-header"},{default:i((()=>[u(" 趋势图 ")])),_:1}),r(A,{type:"box",modelValue:M.chartTab,"onUpdate:modelValue":e[5]||(e[5]=t=>M.chartTab=t),tabs:N.chartTabs,class:"mb-l",onChange:N.changeChartTab},null,8,["modelValue","tabs","onChange"]),r(O,{class:"uni-charts-box"},{default:i((()=>[r(z,{type:"area",chartData:M.chartData,eopts:M.eopts,echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:M.errorMessage},null,8,["chartData","eopts","errorMessage"])])),_:1})])),_:1}),r(O,{class:"dispaly-grid"},{default:i((()=>[r(O,{class:"uni-stat--x p-m"},{default:i((()=>[r(O,{class:"uni-stat-card-header"},{default:i((()=>[r(O,null,{default:i((()=>[u("受访页 TOP10")])),_:1}),r(O,{class:"uni-stat-card-header-link",onClick:e[6]||(e[6]=t=>N.navTo("/pages/uni-stat/page-res/page-res"))},{default:i((()=>[u("查看更多 ")])),_:1})])),_:1}),r(H,{loading:M.loading,border:"",stripe:"",emptyText:"暂无数据"},{default:i((()=>[r(R,null,{default:i((()=>[(s(!0),c(h,null,p(M.resFieldsMap,((t,e)=>(s(),c(h,{key:e},[t.title?(s(),l(J,{key:e,align:"center"},{default:i((()=>[r(U,null,f({default:i((()=>[u(g(t.title)+" ",1),t.tooltip?(s(),l(B,{key:0,type:"help",color:"#666"})):d("",!0)])),_:2},[t.tooltip?{name:"content",fn:i((()=>[r(O,{class:"uni-stat-tooltip-s"},{default:i((()=>[u(g(t.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):d("",!0)],64)))),128))])),_:1}),(s(!0),c(h,null,p(M.resTableData,((t,e)=>(s(),l(R,{key:e},{default:i((()=>[(s(!0),c(h,null,p(M.resFieldsMap,((e,a)=>(s(),c(h,{key:a},[e.title?(s(),l(Q,{key:a,align:0===a?"left":"center"},{default:i((()=>[u(g(void 0!==t[e.field]?t[e.field]:"-"),1)])),_:2},1032,["align"])):d("",!0)],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading"])])),_:1}),r(O,{class:"uni-stat--x uni-stat-card p-m"},{default:i((()=>[r(O,{class:"uni-stat-card-header"},{default:i((()=>[r(O,null,{default:i((()=>[u("入口页 TOP10")])),_:1}),r(O,{class:"uni-stat-card-header-link",onClick:e[7]||(e[7]=t=>N.navTo("/pages/uni-stat/page-ent/page-ent"))},{default:i((()=>[u("查看更多 ")])),_:1})])),_:1}),r(H,{loading:M.loading,border:"",stripe:"",emptyText:"暂无数据"},{default:i((()=>[r(R,null,{default:i((()=>[(s(!0),c(h,null,p(M.entFieldsMap,((t,e)=>(s(),c(h,{key:e},[t.title?(s(),l(J,{key:e,align:"center"},{default:i((()=>[r(U,null,f({default:i((()=>[u(g(t.title)+" ",1),t.tooltip?(s(),l(B,{key:0,type:"help",color:"#666"})):d("",!0)])),_:2},[t.tooltip?{name:"content",fn:i((()=>[r(O,{class:"uni-stat-tooltip-s"},{default:i((()=>[u(g(t.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):d("",!0)],64)))),128))])),_:1}),(s(!0),c(h,null,p(M.entTableData,((t,e)=>(s(),l(R,{key:e},{default:i((()=>[(s(!0),c(h,null,p(M.entFieldsMap,((e,a)=>(s(),c(h,{key:a},[e.title?(s(),l(Q,{key:a,align:0===a?"left":"center"},{default:i((()=>[u(g(void 0!==t[e.field]?t[e.field]:"-"),1)])),_:2},1032,["align"])):d("",!0)],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-ecb460f0"]]);export{R as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-retention-retention.5cfb2d01.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-retention-retention.5cfb2d01.js new file mode 100644 index 0000000000000000000000000000000000000000..2357dc5fc2a6b09acafaea1d9cc4465b22115b09 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-retention-retention.5cfb2d01.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as a,c as i,w as s,i as l,a as n,d as r,z as o,b as d,e as u,r as c,F as p,f as h,g as m,t as f,aC as _,A as g,h as y,j as b,k as D,l as C}from"./index-389238f5.js";import{_ as q}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as x}from"./uni-data-select.8acadad5.js";import{_ as k}from"./uni-stat-tabs.4355c19c.js";import{_ as v}from"./qiun-data-charts.a402b569.js";import{_ as $}from"./uni-pagination.018f31ea.js";import{s as V,d as w,g as T,b as M,h as z,m as S}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const j=e({data:()=>({query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:0,tableData:[],chartData:{},field:"new_device",fields:[{_id:"new_device",name:"新增留存",tooltip:"指定时间新增(即首次访问应用)用户,在之后的第N天,再次访问应用的用户数占比"},{_id:"active_device",name:"活跃留存",tooltip:"指定时间活跃(即访问应用)用户,在之后的第N天,再次访问应用的用户数占比"}],key:1,channelData:[],errorMessage:""}),computed:{fieldsMap(){return function(e=[{title:"新增设备",field:"new_device_count",stat:0}]){let t=[{title:"日期",field:"start_time",tooltip:"",formatter:"-",stat:-1}];e&&t.push(...e);const a=[1,2,3,4,5,6,7,14,30].map((t=>({title:`${t}天后`,field:`d_${t}`,computed:`d_${t}/${e[0].field}`,formatter:"%",tooltip:""})));return t=t.concat(a),t}([{title:"active_device"===this.field?"活跃用户":"新增用户",field:`${this.field}_count`,stat:0}])},fieldName(){let e="";return this.fields.forEach((t=>{t._id===this.field&&(e=t.name)})),e},keyName(){return this.keys.forEach((e=>{if(e._id===this.key)return e.name}))},keys:()=>[1,2,3,4,5,6,7,14,30].map((e=>({_id:e,name:`${e}天后`}))),channelQuery(){const e=this.query.platform_id;return V({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return V({appid:e,uni_platform:t})}},created(){this.debounceGet=w((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}},key(){this.debounceGet()},field(){this.debounceGet()}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=T(e),i=T(0)-1;this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.query)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTabelData(this.query)},stringifyField(e,t,a){t&&(e=e.filter((e=>e.field===t))),a&&(e=e.filter((e=>e.field&&e.hasOwnProperty(a))));return e.map((e=>-1===e.stat?e.field:0===e.stat?`${e.field} as ${"temp_"+e.field}`:`retention.${this.field}.${e.field}.device_count as ${"temp_"+e.field}`)).join()},createStr(e="device_count",t,a,i){const s=t||[1,2,3,4,5,6,7,14,30],l=this.fields.map((e=>e._id));a=a||l;const n=s.map((t=>a.map((a=>`retention.${a}.${"d_"+t}.${e} as ${"d_"+t}`))));i&&n.push(i);return n.join()},getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e,this.key,this.keyName),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.key,i="访问人数"){this.options,e=V(e,null,["uni_platform"]),this.createStr("device_count",[a],[this.field]);t.database().collection("uni-stat-result").where(e).field(`${this.stringifyField(this.fieldsMap,`d_${a}`)}, start_time`).groupBy("start_time").groupField(M(this.fieldsMap,`d_${a}`)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{let{count:t,data:i}=e.result;const s={categories:[],series:[{name:`${a}天后${this.fieldName}`,data:[]}]};for(const l of i){const e=z(l.start_time,"day"),t=l[`d_${a}`];s.series[0].data.push(t),s.categories.push(e)}this.chartData=s})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getTabelData(e){const{pageCurrent:a}=this.options;e=V(e,null,["uni_platform"]);const i=this.field+"_count";this.createStr("user_rate","",[this.field],i),this.loading=!0;t.database().collection("uni-stat-result").where(e).field(this.stringifyField(this.fieldsMap)).groupBy("start_time").groupField(M(this.fieldsMap)).orderBy("start_time","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;for(const i of a)S(this.fieldsMap,i,i);this.options.total=t,this.tableData=[],this.tableData=a})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getChannelData(e,a){this.query.channel_id="";const i=t.database(),s={};(e=e||this.query.appid)&&(s.appid=e),(a=a||this.query.platform_id)&&(s.platform_id=a);let l=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),n=i.collection("uni-stat-app-channels").where(s).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(n,l).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,V,w,T,M){const z=h(m("uni-stat-breadcrumb"),q),S=l,j=h(m("uni-data-select"),x),P=h(m("uni-stat-tabs"),k),U=h(m("uni-datetime-picker"),_),F=h(m("qiun-data-charts"),v),A=h(m("uni-icons"),g),N=h(m("uni-th"),y),B=h(m("uni-tr"),b),G=h(m("uni-td"),D),Q=h(m("uni-table"),C),I=h(m("uni-pagination"),$);return a(),i(S,{class:"fix-top-window"},{default:s((()=>[n(S,{class:"uni-header"},{default:s((()=>[n(z,{class:"uni-stat-breadcrumb-on-phone"}),n(S,{class:"uni-group"},{default:s((()=>[n(S,{class:"uni-sub-title hide-on-phone"},{default:s((()=>[r("设备留存趋势分析")])),_:1})])),_:1})])),_:1}),n(S,{class:"uni-container"},{default:s((()=>[n(S,{class:"uni-stat--x flex p-1015"},{default:s((()=>[n(j,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:M.changeAppid,modelValue:T.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>T.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),n(j,{collection:"opendb-app-versions",where:M.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:T.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>T.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),n(S,{class:"uni-stat--x flex"},{default:s((()=>[n(P,{label:"日期选择",current:T.currentDateTab,mode:"date",yesterday:!1,onChange:M.changeTimeRange},null,8,["current","onChange"]),n(U,{type:"daterange",end:(new Date).getTime(),modelValue:T.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>T.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":T.currentDateTab<0&&!!T.query.start_time.length}]),onChange:M.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),n(S,{class:"uni-stat--x"},{default:s((()=>[n(P,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:T.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>T.query.platform_id=e),onChange:M.changePlatform},null,8,["modelValue","onChange"]),T.query.platform_id&&-1===T.query.platform_id.indexOf("==")?(a(),i(j,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:M.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:T.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>T.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),n(S,{class:"uni-stat--x mb-m",style:{"padding-top":"0"}},{default:s((()=>[n(S,{class:"mb-m line-bottom"},{default:s((()=>[n(P,{type:"boldLine",tabs:T.fields,modelValue:T.field,"onUpdate:modelValue":t[5]||(t[5]=e=>T.field=e),tooltip:"",style:{"line-height":"40px","margin-bottom":"-17px"}},null,8,["tabs","modelValue"])])),_:1}),n(P,{type:"box",tabs:M.keys,modelValue:T.key,"onUpdate:modelValue":t[6]||(t[6]=e=>T.key=e),class:"mb-l"},null,8,["tabs","modelValue"]),n(S,{class:"p-m"},{default:s((()=>[n(S,{class:"uni-charts-box"},{default:s((()=>[n(F,{type:"area",chartData:T.chartData,echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:T.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1})])),_:1}),n(S,{class:"uni-stat--x p-m"},{default:s((()=>[n(S,{class:"uni-tips mb-s flex"},{default:s((()=>[n(A,{type:"info"}),r(" 表格中显示为空,表示留存为 0 或无数据 ")])),_:1}),n(Q,{loading:T.loading,stripe:"",emptyText:e.$t("common.empty")},{default:s((()=>[n(B,{style:{"background-color":"#eee"}},{default:s((()=>[(a(!0),u(p,null,c(M.fieldsMap,((e,t)=>(a(),u(p,{key:t},[e.title?(a(),i(N,{key:t,align:"center"},{default:s((()=>[r(f(e.title),1)])),_:2},1024)):d("",!0)],64)))),128))])),_:1}),(a(!0),u(p,null,c(T.tableData,((e,t)=>(a(),i(B,{key:t},{default:s((()=>[(a(!0),u(p,null,c(M.fieldsMap,((t,l)=>(a(),u(p,{key:l},[t.title?(a(),i(G,{key:l,align:"center",class:o(/[d|w|m]_\d/.test(t.field)&&[e[t.field]?"uni-stat-table-bg":""])},{default:s((()=>[r(f(e[t.field]?e[t.field]:""),1)])),_:2},1032,["class"])):d("",!0)],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),n(S,{class:"uni-pagination-box"},{default:s((()=>[n(I,{"show-icon":"","show-page-size":"","page-size":T.options.pageSize,current:T.options.pageCurrent,total:T.options.total,onChange:M.changePageCurrent,onPageSizeChange:M.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-02223ba4"]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-stickiness-stickiness.6d3b9731.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-stickiness-stickiness.6d3b9731.js new file mode 100644 index 0000000000000000000000000000000000000000..0108b4f84e4a49a21b30ab2650740c659bd44ae8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-stickiness-stickiness.6d3b9731.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as a,c as i,w as s,i as l,a as n,d as r,z as o,b as d,f as u,g as p,aC as c}from"./index-389238f5.js";import{_ as h}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as m}from"./uni-data-select.8acadad5.js";import{_}from"./uni-stat-tabs.4355c19c.js";import{_ as f}from"./qiun-data-charts.a402b569.js";import{_ as g}from"./uni-stat-table.19e19a80.js";import{s as y,d as v,g as b,m as D}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const q=[{title:"名称",field:"name",tooltip:"",formatter:""},{title:"访问人数",field:"visit_devices",tooltip:"访问人数(活跃用户数):访问过应用内任意页面的总用户数(去重)",value:0},{title:"访问人数占比",field:"visit_devices/total_visit_devices",computed:"visit_devices/total_visit_devices",formatter:"%"},{title:"访问次数",field:"visit_times",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0},{title:"访问次数占比",field:"visit_times/total_visit_times",computed:"visit_times/total_visit_times",formatter:"%",tooltip:""}];const x=e({data:()=>({fieldsMap:q,query:{appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},loading:!1,currentDateTab:1,tableData:[],panelData:q.filter((e=>e.hasOwnProperty("value"))),chartData:{},type:"visit_depth_data",types:[{_id:"visit_depth_data",name:"访问页数"},{_id:"duration_data",name:"访问时长"}],field:"visit_devices",fields:[{_id:"visit_devices",name:"访问人数"},{_id:"visit_times",name:"访问次数"}],options:{visit_depth_data:{prefix:"p",title:"页",value:[1,2,3,4,5,10]},duration_data:{prefix:"s",title:"秒",value:[0,3,6,11,21,31,51,100]}},channelData:[],errorMessage:""}),computed:{fieldName(){return this.fields.forEach((e=>{if(e._id===this.field)return e.name}))},channelQuery(){const e=this.query.platform_id;return y({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return y({appid:e,uni_platform:t})}},created(){this.debounceGet=v((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.debounceGet()}},type(){this.getAllData(this.query)},field(){this.getAllData(this.query)}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=b(e),i=b(0)-1;this.query.start_time=[a,i]},createStr(e,t="visit_depth_data"){const a=e.length,i=this.options[t].prefix;return this.options[t].value.map((s=>e.map((e=>`sum(${t}.${e}.${i+"_"+s}) as ${a>1?e+"_"+i+"_"+s:i+"_"+s}`)))).join()},parseChars(e){e=e.split("_");const t=this.options[this.type];let a=t.title;return t.value.forEach(((i,s)=>{const l=t.value[s+1];i===Number(e[e.length-1])&&(a=l?i+1===l?i+a:i+"-"+(l-1)+a:i+"+"+a)})),a},getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e,this.field,this.fieldName),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.field,i=this.fields.find((e=>e._id===this.field)).name){e=y(e,null,["uni_platform"]);const s=this.createStr([a],this.type);t.database().collection("uni-stat-loyalty-result").where(e).groupBy("appid").groupField(s).orderBy("start_time","asc").get({getCount:!0}).then((e=>{let{count:t,data:a}=e.result;a=a[0];const i={series:[{data:[]}]};for(const s in a)if("appid"!==s){const e=this.parseChars(s),t=a[s];i.series[0].data.push({name:e,value:t})}this.chartData=i})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getTabelData(e){e=y(e,null,["uni_platform"]);const a=this.createStr(["visit_devices","visit_times"],this.type);this.fieldsMap[0].title=this.types.find((e=>e._id===this.type)).name,this.loading=!0;t.database().collection("uni-stat-loyalty-result").where(e).groupBy("appid").groupField(a).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result,i=this.type,s=[];let l=this.options[i].prefix;l=`_${l}_`;for(const p of a)for(const e in p)if("appid"!==e){const t={},a=e.split(l);t.name=a[1],t[a[0]]=p[e],s.push(t)}const n=[],r={},o=(e,t)=>e+t;let d=s.filter((e=>e.visit_devices)).map((e=>e.visit_devices));d=d.length?d.reduce(o):0;let u=s.filter((e=>e.visit_times)).map((e=>e.visit_times));u=u.length?u.reduce(o):0,r.visit_times=u,r.visit_devices=d,this.options[i].value.forEach((e=>{const t={};t.name=e+"p",s.forEach((a=>{if(Number(a.name)===e)for(const e in a)e!==name&&(t[e]=a[e],t["total_"+e]=r[e])})),t.name=this.parseChars(String(e)),n.push(t)}));for(const p of n)D(q,p,p);this.tableData=[],this.tableData=n})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getChannelData(e,a){this.query.channel_id="";const i=t.database(),s={};(e=e||this.query.appid)&&(s.appid=e),(a=a||this.query.platform_id)&&(s.platform_id=a);let l=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),n=i.collection("uni-stat-app-channels").where(s).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(n,l).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,y,v,b,D){const q=u(p("uni-stat-breadcrumb"),h),x=l,C=u(p("uni-data-select"),m),V=u(p("uni-stat-tabs"),_),w=u(p("uni-datetime-picker"),c),T=u(p("qiun-data-charts"),f),M=u(p("uni-stat-table"),g);return a(),i(x,{class:"fix-top-window"},{default:s((()=>[n(x,{class:"uni-header"},{default:s((()=>[n(q,{class:"uni-stat-breadcrumb-on-phone"}),n(x,{class:"uni-group"},{default:s((()=>[n(x,{class:"uni-sub-title hide-on-phone"},{default:s((()=>[r("用户忠诚度用户对您应用的访问深度及访问频次情况。助您了解用户对应用的粘度,尤其在对内容改进后,效果是否有所提升")])),_:1})])),_:1})])),_:1}),n(x,{class:"uni-container"},{default:s((()=>[n(x,{class:"uni-stat--x flex p-1015"},{default:s((()=>[n(C,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:D.changeAppid,modelValue:b.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>b.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),n(C,{collection:"opendb-app-versions",where:D.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:b.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>b.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),n(x,{class:"uni-stat--x flex"},{default:s((()=>[n(V,{label:"日期选择",current:b.currentDateTab,mode:"date",onChange:D.changeTimeRange},null,8,["current","onChange"]),n(w,{type:"daterange",end:(new Date).getTime(),modelValue:b.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>b.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":b.currentDateTab<0&&!!b.query.start_time.length}]),onChange:D.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),n(x,{class:"uni-stat--x"},{default:s((()=>[n(V,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:b.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>b.query.platform_id=e),onChange:D.changePlatform},null,8,["modelValue","onChange"]),b.query.platform_id&&-1===b.query.platform_id.indexOf("==")?(a(),i(C,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:D.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:b.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>b.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),n(x,{class:"uni-stat--x mb-l",style:{"padding-top":"0"}},{default:s((()=>[n(x,{class:"mb-m line-bottom"},{default:s((()=>[n(V,{type:"boldLine",tabs:b.types,modelValue:b.type,"onUpdate:modelValue":t[5]||(t[5]=e=>b.type=e),style:{"line-height":"40px","margin-bottom":"-17px"}},null,8,["tabs","modelValue"])])),_:1}),n(x,{class:"p-m"},{default:s((()=>[n(x,{class:"uni-charts-box"},{default:s((()=>[n(T,{type:"pie",chartData:b.chartData,echartsH5:"",echartsApp:"",errorMessage:b.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1})])),_:1}),n(x,{class:"uni-stat--x p-m"},{default:s((()=>[n(M,{data:b.tableData,filedsMap:b.fieldsMap,loading:b.loading},null,8,["data","filedsMap","loading"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-c4c976ab"]]);export{x as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-trend-trend.35831c4a.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-trend-trend.35831c4a.js new file mode 100644 index 0000000000000000000000000000000000000000..087711c8c8bc4ff955c67e3bbd2b0b6cf97889b9 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-device-trend-trend.35831c4a.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as i,c as n,w as s,i as l,a as r,d as o,z as u,b as d,f as c,g as h,aC as p}from"./index-389238f5.js";import{_ as m}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as g}from"./uni-data-select.8acadad5.js";import{_}from"./uni-stat-tabs.4355c19c.js";import{_ as f}from"./uni-stat-panel.2e6a5931.js";import{_ as b}from"./qiun-data-charts.a402b569.js";import{_ as y}from"./uni-stat-table.19e19a80.js";import{_ as D}from"./uni-pagination.018f31ea.js";import{s as v,d as q,g as C,a as T,b as x,m as w,h as V,c as P}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const z=[{title:"日期",field:"start_time",tooltip:"",formatter:"",stat:-1},{title:"新增设备",field:"new_device_count",tooltip:"首次访问应用的设备数(以设备为判断标准,去重)",value:0},{title:"活跃设备",field:"active_device_count",tooltip:"访问过应用内任意页面的总设备数(去重)",value:0},{title:"访问次数",field:"page_visit_count",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0},{title:"启动次数",field:"app_launch_count",tooltip:"设备从打开应用到主动关闭应用或超时退出计为一次启动",value:0},{title:"次均停留时长",field:"avg_device_session_time",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0,stat:"avg"},{title:"设备平均停留时长 ",field:"avg_device_time",formatter:":",tooltip:"平均每个设备停留在应用内的总时长,即应用停留总时长/活跃设备",value:0,stat:"avg"},{title:"跳出率",field:"bounceRate",computed:"bounce_times/app_launch_count",formatter:"%",tooltip:"只浏览一个页面便离开应用的次数占总启动次数的百分比",value:0,contrast:0,fix:2},{field:"bounce_times",disable:!0},{title:"总设备数",field:"total_devices",tooltip:"从添加统计到当前选择时间的总设备数(去重)",value:0}];const S=e({data:()=>({tableName:"uni-stat-result",fieldsMap:z,query:{dimension:"hour",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,currentDimensionTab:0,tableData:[],panelData:z.filter((e=>e.hasOwnProperty("value"))),chartData:{},chartTab:"new_user_count",channelData:[],tabIndex:0,errorMessage:""}),computed:{chartTabs(){const e=[];return z.forEach((t=>{const{field:a,title:i}=t,n=t.hasOwnProperty("value");a&&i&&n&&e.push({_id:a,name:i})})),e},dimensionTabs(){const e=[{_id:"hour",name:"按时"},{_id:"day",name:"按日"},{_id:"week",name:"按周"},{_id:"month",name:"按月"}];return this.getDays()?(this.query.dimension="day",e.forEach(((e,t)=>{"hour"===e._id?e.disabled=!0:e.disabled=!1})),this.currentDimensionTab=1):(this.query.dimension="hour",e.forEach(((e,t)=>{"hour"===e._id?e.disabled=!1:e.disabled=!0})),this.currentDimensionTab=0),e},channelQuery(){const e=this.query.platform_id;return v({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return v({appid:e,uni_platform:t})}},created(){this.debounceGet=q((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.debounceGet()}}},methods:{getDays(){if(!this.query.start_time.length)return!0;const[e,t]=this.query.start_time;return t-e>=864e5},useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;let a,i;a=C(e),i=e?C(0)-1:C(0)+864e5-1,this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.query)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTabelData(this.query)},changeChartTab(e,t,a){this.tabIndex=t,this.getChartData(this.query,e,a)},getAllData(e){e.appid?(this.errorMessage="",this.getPanelData(),this.getChartData(e),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.chartTabs[this.tabIndex]._id,i=this.chartTabs[this.tabIndex].name){e=v(e,!0,["uni_platform"]);const n=this.query.dimension;t.database().collection(this.tableName).where(e).field(`${T(z,a)}, start_time`).groupBy("start_time").groupField(x(z,a)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:s}=e.result,l={categories:[],series:[{name:i,data:[]}]};let r=z.filter((e=>e.field===a));r=JSON.parse(JSON.stringify(r)),delete r[0].value,r[0].formatter="";for(const i of s){w(r,i,i);const e=V(i.start_time,n);let t=i[a];l.series[0].data.push(t),l.categories.push(e)}this.chartData=l})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getTabelData(e){const{pageCurrent:a}=this.options;e=v(e,!0,["uni_platform"]),this.options.pageCurrent=1,this.loading=!0;t.database().collection(this.tableName).where(e).field(T(z)).groupBy("start_time").groupField(x(z)).orderBy("start_time","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;for(const i of a){let e=i.start_time;if(e){const t=this.query.dimension;i.start_time=V(e,t)}w(z,i,i)}this.tableData=[],this.options.total=t,this.tableData=a})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getPanelData(){let e=JSON.parse(JSON.stringify(this.query));e.dimension="day";let a=v(e,!1,["uni_platform"]);t.database().collection(this.tableName).where(a).field(`${T(z)},stat_date`).groupBy("appid").groupField(x(z)).orderBy("stat_date","desc").get().then((t=>{const a=t.result.data[0];a&&(a.total_devices=0),P.call(this,e),this.panelData=[],this.panelData=w(z,a)}))},navTo(e){a({url:`/pages/uni-stat/overview/overview?id=${e}`})},getChannelData(e,a){this.query.channel_id="";const i=t.database(),n={};(e=e||this.query.appid)&&(n.appid=e),(a=a||this.query.platform_id)&&(n.platform_id=a);let s=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),l=i.collection("uni-stat-app-channels").where(n).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(l,s).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,a,v,q,C){const T=c(h("uni-stat-breadcrumb"),m),x=l,w=c(h("uni-data-select"),g),V=c(h("uni-stat-tabs"),_),P=c(h("uni-datetime-picker"),p),z=c(h("uni-stat-panel"),f),S=c(h("qiun-data-charts"),b),j=c(h("uni-stat-table"),y),M=c(h("uni-pagination"),D);return i(),n(x,{class:"fix-top-window"},{default:s((()=>[r(x,{class:"uni-header"},{default:s((()=>[r(T,{class:"uni-stat-breadcrumb-on-phone"}),r(x,{class:"uni-group"},{default:s((()=>[r(x,{class:"uni-sub-title hide-on-phone"},{default:s((()=>[o("各指标趋势分析")])),_:1})])),_:1})])),_:1}),r(x,{class:"uni-container"},{default:s((()=>[r(x,{class:"uni-stat--x flex p-1015"},{default:s((()=>[r(w,{collection:"opendb-app-list",onChange:C.changeAppid,field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:q.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>q.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),r(w,{collection:"opendb-app-versions",where:C.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:q.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>q.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),r(x,{class:"uni-stat--x flex"},{default:s((()=>[r(V,{label:"日期选择",current:q.currentDateTab,mode:"date",onChange:C.changeTimeRange},null,8,["current","onChange"]),r(P,{type:"daterange",end:(new Date).getTime(),modelValue:q.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>q.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:u(["uni-stat-datetime-picker",{"uni-stat__actived":q.currentDateTab<0&&!!q.query.start_time.length}]),onChange:C.useDatetimePicker},null,8,["end","modelValue","class","onChange"]),r(V,{label:"维度选择",type:"box",current:q.currentDimensionTab,tabs:C.dimensionTabs,modelValue:q.query.dimension,"onUpdate:modelValue":t[3]||(t[3]=e=>q.query.dimension=e)},null,8,["current","tabs","modelValue"])])),_:1}),r(x,{class:"uni-stat--x"},{default:s((()=>[r(V,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:q.query.platform_id,"onUpdate:modelValue":t[4]||(t[4]=e=>q.query.platform_id=e),onChange:C.changePlatform},null,8,["modelValue","onChange"]),q.query.platform_id&&-1===q.query.platform_id.indexOf("==")?(i(),n(w,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:C.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:q.query.channel_id,"onUpdate:modelValue":t[5]||(t[5]=e=>q.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),r(z,{items:q.panelData},null,8,["items"]),r(x,{class:"uni-stat--x p-m"},{default:s((()=>[r(x,{class:"label-text mb-l"},{default:s((()=>[o(" 趋势图 ")])),_:1}),r(V,{type:"box",modelValue:q.chartTab,"onUpdate:modelValue":t[6]||(t[6]=e=>q.chartTab=e),tabs:C.chartTabs,class:"mb-l",onChange:C.changeChartTab},null,8,["modelValue","tabs","onChange"]),r(x,{class:"uni-charts-box"},{default:s((()=>[r(S,{type:"area",chartData:q.chartData,echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:q.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),r(x,{class:"uni-stat--x p-m"},{default:s((()=>[r(j,{data:q.tableData,filedsMap:q.fieldsMap,loading:q.loading},null,8,["data","filedsMap","loading"]),r(x,{class:"uni-pagination-box"},{default:s((()=>[r(M,{"show-icon":"","show-page-size":"","page-size":q.options.pageSize,current:q.options.pageCurrent,total:q.options.total,onChange:C.changePageCurrent,onPageSizeChange:C.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}]]);export{S as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-app-app.955765fd.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-app-app.955765fd.js new file mode 100644 index 0000000000000000000000000000000000000000..046e42d467aee7865a649a0a90e3f64aa169ec12 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-app-app.955765fd.js @@ -0,0 +1 @@ +import{_ as e,L as t,ak as a,o as i,c as r,w as o,i as l,a as s,d as n,z as d,e as c,r as p,F as u,f as _,g as m,q as f,I as h,am as g,t as y,b as v,aC as b,A as x,h as D,j as k,k as w,l as q}from"./index-389238f5.js";import{_ as z}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as C}from"./uni-data-select.8acadad5.js";import{_ as T}from"./uni-stat-tabs.4355c19c.js";import{_ as A}from"./uni-stat-panel.2e6a5931.js";import{_ as V}from"./qiun-data-charts.a402b569.js";import{_ as E}from"./download-excel.9236b5ca.js";import{_ as j}from"./uni-tooltip.58062496.js";import{_ as S}from"./uni-dateformat.b1c4ea95.js";import{_ as P}from"./uni-pagination.018f31ea.js";import{_ as $}from"./unicloud-db.dfa2c90d.js";import{s as F,d as L,g as B,m as M,j as U,h as I}from"./util.63f19a41.js";const O=[{title:"报错时间",field:"create_time",tooltip:"",formatter:"",filter:"timestamp"},{title:"错误信息",field:"error_msg",formatter:"",filter:"search"},{title:"原生应用包名",field:"package_name",formatter:"",filter:"search"},{title:"用户端上报的应用版本号",field:"version",formatter:"",tooltip:"manifest.json中的versionName的值",filter:"search"},{title:"平台",field:"platform",formatter:"",tooltip:"用户端上报的平台code",filter:"search"},{title:"渠道",field:"channel",formatter:"",tooltip:"用户端上报的渠道code场景值",filter:"search"},{title:"基础库版本号",field:"sdk_version",formatter:"",tooltip:"",filter:"search"},{title:"设备标识",field:"device_id",formatter:"",tooltip:"客户端携带的设备标识",filter:"search"},{title:"设备网络型号",field:"device_net",formatter:"",tooltip:"设备网络型号wifi/3G/4G/",filter:"search"},{title:"系统版本",field:"device_os",formatter:"",tooltip:"iOS平台为系统版本号,如15.1;Android平台为API等级,如30",filter:"search"},{title:"系统版本名称",field:"device_os_version",formatter:"",tooltip:"iOS平台与os字段一致;Android平台为版本名称,如5.1.1",filter:"search"},{title:"设备供应商",field:"device_vendor",formatter:"",tooltip:"",filter:"search"},{title:"设备型号",field:"device_model",formatter:"",tooltip:"",filter:"search"},{title:"是否root",field:"device_is_root",formatter:"",tooltip:"1表示root;0表示未root",filter:"range"},{title:"系统名称",field:"device_os_name",formatter:"",tooltip:"用于区别Android和鸿蒙,仅Android支持",filter:"search"},{title:"设备电池电量",field:"device_batt_level",formatter:"",tooltip:"取值范围0-100,仅Android支持",filter:"range"},{title:"电池温度",field:"device_batt_temp",formatter:"",tooltip:"仅Android支持",filter:"search"},{title:"系统已使用内存",field:"device_memory_use_size",formatter:"",tooltip:"单位为Byte,仅Android支持",filter:"range"},{title:"系统总内存",field:"device_memory_total_size",formatter:"",tooltip:"单位为Byte,仅Android支持",filter:"range"},{title:"系统磁盘已使用大小",field:"device_disk_use_size",formatter:"",tooltip:"单位为Byte,仅Android支持",filter:"range"},{title:"系统磁盘总大小",field:"device_disk_total_size",formatter:"",tooltip:"单位为Byte,仅Android支持",filter:"range"},{title:"设备支持的CPU架构",field:"device_abis",formatter:"",tooltip:"多个使用,分割,如arm64-v8a,armeabi-v7a,armeabi,仅Android支持",filter:"search"},{title:"运行的app个数",field:"app_count",formatter:"",tooltip:"包括运行的uni小程序数目,独立App时值为1",filter:"range"},{title:"APP使用的内存量",field:"app_use_memory_size",formatter:"",tooltip:"单位为Byte",filter:"range"},{title:"运行应用的个数",field:"app_count",formatter:"",filter:"range"},{title:"打开 Webview 的个数",field:"app_webview_count",formatter:"",filter:"range"},{title:"APP使用时长",field:"app_use_duration",formatter:"",tooltip:"单位为s",filter:"range"},{title:"是否前台运行",field:"app_run_fore",formatter:"",tooltip:"1表示前台运行,0表示后台运行",filter:"search"},{title:"原生应用版本名称",field:"package_version",formatter:"",tooltip:"Android的apk版本名称;iOS的ipa版本名称",filter:"search"},{title:"页面url",field:"page_url",formatter:"",filter:"search"}],Q={};const R=[{title:"崩溃总数",field:"count",value:0,formatter:",",tooltip:"指原生应用在某个时间段内出现崩溃的总数"},{title:"崩溃率",field:"count/app_launch_count",computed:"count/app_launch_count",formatter:"%",value:0,tooltip:"时间范围内的总崩溃数/原生应用启动次数,如果小于0.01%,默认显示为0"}],G=t.database(),N=[],W={ascending:"asc",descending:"desc"};const J=e({data(){return{fieldsMap:O,query:{type:"crash",dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",start_time:[]},loading:!1,popupLoading:!1,currentDateTab:0,tableData:[],popupTableData:[],panelData:JSON.parse(JSON.stringify(R)),chartData:{},chartTab:"errorCount",chartTabs:[{_id:"errorCount",name:"崩溃次数"},{_id:"errorRate",name:"崩溃率"}],collectionList:"uni-stat-app-crash-logs",schemaQuery:"",where:this.tableData,orderby:"create_time desc",orderByFieldName:"",selectedIndexs:[],options:{pageCurrent:1,total:0,pageSizeIndex:0,pageSizeRange:[10,20,50,100],pageSize:20,pageCurrent:1,filterData:{},...Q},errorMessage:"",exportExcel:{filename:"uni-stat-app-crash-logs.xls",type:"xls",fields:{appid:"appid",version:"version",platform:"platform",channel:"channel",sdk_version:"sdk_version",device_id:"device_id",device_net:"device_net",device_os:"device_os",device_os_version:"device_os_version",device_vendor:"device_vendor",device_model:"device_model",device_is_root:"device_is_root",device_os_name:"device_os_name",device_batt_level:"device_batt_level",device_batt_temp:"device_batt_temp",device_memory_use_size:"device_memory_use_size",device_memory_total_size:"device_memory_total_size",device_disk_use_size:"device_disk_use_size",device_disk_total_size:"device_disk_total_size",device_abis:"device_abis",app_count:"app_count",app_use_memory_size:"app_use_memory_size",app_webview_count:"app_webview_count",app_use_duration:"app_use_duration",app_run_fore:"app_run_fore",package_name:"package_name",package_version:"package_version",page_url:"page_url",error_msg:"error_msg",create_time:"create_time"}},exportExcelData:[]}},computed:{queryStr(){return F(this.query)},tableQuery(){const{appid:e,platform_id:t,version_id:a,start_time:i}=this.query,r=this.getPlatform(t),o=this.getVersion(a);return F({appid:e,create_time:i,platform:r,version:o})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return F({appid:e,uni_platform:t,type:"native_app"})}},created(){this.debounceGet=L((()=>{this.getAllData(this.queryStr),this.where=this.tableQuery,this.$nextTick((()=>{this.$refs.udb&&this.$refs.udb.loadData()}),200)}),300),this.debounceGet()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}},chartTab(e){this.getChartData(this.queryStr)}},onLoad(){this._filter={}},methods:{onqueryload(e){this.exportExcelData=e,this.tableData=e},getWhere(){const e=this.schemaQuery.trim();if(!e)return"";const t=new RegExp(e,"i");return N.map((e=>t+".test("+e+")")).join(" || ")},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+W[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t){this._filter[t]={type:e.filterType,value:e.filter};let a=function(e,t){let a={};for(let i in e){let{type:r,value:o}=e[i];switch(r){case"search":"string"==typeof o&&o.length&&(a[i]=new RegExp(o));break;case"select":if(o.length){let e=[];for(let a of o)e.push(t.eq(a));a[i]=t.or(e)}break;case"range":if(o.length){let e=o[0],r=o[1];a[i]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(o.length){let[e,r]=o,l=new Date(e),s=new Date(r);a[i]=t.and([t.gte(l),t.lte(s)])}break;case"timestamp":if(o.length){let[e,r]=o;a[i]=t.and([t.gte(e),t.lte(r)])}}}return a}(this._filter,G.command);Object.keys(a).length?this.where=a:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))},useDatetimePicker(){this.currentDateTab=-1},changePlatform(e,t,a,i){this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=B(e),i=B(0)-1;this.query.start_time=[a,i]},getPlatform(e){const t=a("uni-admin-statTabsData")["platform-channel"],i=Array.isArray(t)&&t.find((t=>t._id===e));return i&&i.code||""},getVersion(e){let t=[];this.$refs["app-versions"]&&"function"==typeof this.$refs["app-versions"].getLoadData&&(t=this.$refs["app-versions"].getLoadData());const a=Array.isArray(t)&&t.find((t=>t._id===e));return a&&a.text||""},getAllData(e){-1!==e.indexOf("appid")?(this.errorMessage="",this.getPanelData(e),this.getChartData(e)):this.errorMessage="请先选择应用"},getPanelData(e){let a=F(this.query,!1,["uni_platform"]);t.database().collection("uni-stat-error-result").where(a).field("count as temp_count, app_launch_count as temp_app_launch_count, appid").groupBy("appid").groupField("sum(temp_count) as count, sum(temp_app_launch_count) as app_launch_count").get({getCount:!0}).then((e=>{e.result;const t=e.result.data[0]||{count:0,app_launch_count:0};let a=Object.assign({},this.query);delete a.type,this.getTotalLaunch(F(a,!1,["uni_platform"])).then((e=>{const a=e.result.data[0];if(t){let e=a&&a.total_app_launch_count;t.app_launch_count=e,this.panelData=M(R,t)}}))}))},getTotalLaunch:e=>t.database().collection("uni-stat-result").where(e).groupBy("appid").groupField("sum(app_launch_count) as total_app_launch_count").get(),getChartData(e,a="day_count"){let i=F(this.query,!1,["uni_platform"]);this.chartData={},this.options;const r=t.database(),[o,l]=this.query.start_time,s=U(new Date(o),new Date(l));r.collection("uni-stat-error-result").where(i).field("count as temp_count, app_launch_count as temp_app_launch_count, start_time").groupBy("start_time").groupField("sum(temp_count) as count, sum(temp_app_launch_count) as app_launch_count").orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;let i=[];s.forEach((e=>{let t=a.find((t=>t.start_time===e));t?i.push(t):i.push({app_launch_count:0,count:0,start_time:e})}));const r={categories:[],series:[{name:"暂无数据",data:[]}]};if("errorCount"===this.chartTab){const e=r.series[0]={name:"崩溃次数",data:[]},t=r.categories;for(const a of i){let i=a.start_time;const r=I(i,"day"),o=a.count;t.push(r),e.data.push(o)}this.chartData=r}else{const e=r.series[0]={name:"崩溃率(%)",data:[],lineStyle:{color:"#EE6666",width:1},itemStyle:{borderWidth:1,borderColor:"#EE6666",color:"#EE6666"},areaStyle:{color:{colorStops:[{offset:0,color:"#EE6666"},{offset:1,color:"#FFFFFF"}]}}},t=r.categories;for(const a of i){const{count:i,app_launch_count:r}=a;let o=a.start_time;const l=I(o,"day");t.push(l);let s=i/r;s=s?s.toFixed(2):0,e.data.push(s)}this.chartData=r}})).finally((()=>{}))}}},[["render",function(e,t,a,F,L,B){const M=_(m("uni-stat-breadcrumb"),z),U=l,I=_(m("uni-data-select"),C),O=_(m("uni-stat-tabs"),T),Q=_(m("uni-datetime-picker"),b),R=_(m("uni-stat-panel"),A),G=_(m("qiun-data-charts"),V),N=f,W=_(m("download-excel"),E),J=_(m("uni-icons"),x),H=_(m("uni-tooltip"),j),K=_(m("uni-th"),D),X=_(m("uni-tr"),k),Y=_(m("uni-td"),w),Z=_(m("uni-dateformat"),S),ee=_(m("uni-table"),q),te=_(m("uni-pagination"),P),ae=_(m("unicloud-db"),$);return i(),r(U,{class:"fix-top-window"},{default:o((()=>[s(U,{class:"uni-header"},{default:o((()=>[s(M,{class:"uni-stat-breadcrumb-on-phone"}),s(U,{class:"uni-group hide-on-phone"},{default:o((()=>[s(U,{class:"uni-sub-title"},{default:o((()=>[n("开发者可以在这里快速查询原生应用最近出现的具体崩溃内容,了解崩溃概况信息,以便快速修复问题")])),_:1})])),_:1})])),_:1}),s(U,{class:"uni-container"},{default:o((()=>[s(U,{class:"uni-stat--x flex p-1015"},{default:o((()=>[s(I,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:L.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>L.query.appid=e),clear:!1},null,8,["modelValue"]),s(I,{ref:"app-versions",collection:"opendb-app-versions",where:B.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:L.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>L.query.version_id=e)},null,8,["where","modelValue"]),s(O,{label:"平台选择",type:"boldLine",all:!1,mode:"platform-channel",modelValue:L.query.platform_id,"onUpdate:modelValue":t[2]||(t[2]=e=>L.query.platform_id=e),onChange:B.changePlatform},null,8,["modelValue","onChange"])])),_:1}),s(U,{class:"uni-stat--x flex"},{default:o((()=>[s(O,{label:"日期选择",current:L.currentDateTab,yesterday:!1,mode:"date",onChange:B.changeTimeRange},null,8,["current","onChange"]),s(Q,{type:"daterange",end:(new Date).getTime(),modelValue:L.query.start_time,"onUpdate:modelValue":t[3]||(t[3]=e=>L.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:d(["uni-stat-datetime-picker",{"uni-stat__actived":L.currentDateTab<0&&!!L.query.start_time.length}]),onChange:B.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),s(U,{class:"uni-stat--x",style:{padding:"15px 0"}},{default:o((()=>[s(R,{items:L.panelData,class:"uni-stat-panel"},null,8,["items"]),s(O,{type:"box",modelValue:L.chartTab,"onUpdate:modelValue":t[4]||(t[4]=e=>L.chartTab=e),tabs:L.chartTabs,class:"mb-l"},null,8,["modelValue","tabs"]),s(U,{class:"uni-charts-box"},{default:o((()=>[s(G,{type:"area",chartData:L.chartData,eopts:{notMerge:!0},echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:L.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),s(U,{class:"uni-stat--x p-m"},{default:o((()=>[s(U,{class:"flex-between"},{default:o((()=>[s(U,{class:"uni-stat-card-header"},{default:o((()=>[n("信息列表")])),_:1}),s(U,{class:"uni-group"},{default:o((()=>[s(W,{class:"hide-on-phone",fields:L.exportExcel.fields,data:L.exportExcelData,type:L.exportExcel.type,name:L.exportExcel.filename},{default:o((()=>[s(N,{class:"uni-button",type:"primary",size:"mini"},{default:o((()=>[n("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),s(ae,{ref:"udb",collection:L.collectionList,field:"appid,version,platform,channel,sdk_version,device_id,device_net,device_os,device_os_version,device_vendor,device_model,device_is_root,device_os_name,device_batt_level,device_batt_temp,device_memory_use_size,device_memory_total_size,device_disk_use_size,device_disk_total_size,device_abis,app_count,app_use_memory_size,app_webview_count,app_use_duration,app_run_fore,package_name,package_version,page_url,error_msg,create_time",where:L.where,"page-data":"replace",orderby:L.orderby,getcount:!0,"page-size":L.options.pageSize,"page-current":L.options.pageCurrent,loadtime:"manual",options:L.options,onLoad:B.onqueryload},{default:o((({data:t,pagination:a,loading:l,error:d,options:_})=>[s(ee,{ref:"table",loading:l,border:"",stripe:"",emptyText:e.$t("common.empty"),style:{"overflow-y":"scroll"}},{default:o((()=>[s(X,null,{default:o((()=>[(i(!0),c(u,null,p(L.fieldsMap,((e,t)=>(i(),c(u,{key:t},[e.title?(i(),r(K,{key:t,align:"center",style:h({minWidth:15*e.title.length+80+"px"})},{default:o((()=>[s(H,null,g({default:o((()=>[n(y(e.title)+" ",1),e.tooltip?(i(),r(J,{key:0,type:"help",color:"#666"})):v("",!0)])),_:2},[e.tooltip?{name:"content",fn:o((()=>[s(U,{class:"uni-stat-tooltip-s"},{default:o((()=>[n(y(e.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1032,["style"])):v("",!0)],64)))),128))])),_:1}),(i(!0),c(u,null,p(L.tableData,((e,t)=>(i(),r(X,{key:t},{default:o((()=>[(i(!0),c(u,null,p(L.fieldsMap,((t,a)=>(i(),c(u,{key:a},["error_msg"===t.field?(i(),r(Y,{key:t.field,align:"left",style:{"min-width":"500px"}},{default:o((()=>[s(H,null,g({default:o((()=>[n(y(e.error_msg?e.error_msg.substring(0,100)+"...":"")+" ",1),e.error_msg?(i(),r(J,{key:0,type:"help",color:"#666"})):v("",!0)])),_:2},[e.error_msg?{name:"content",fn:o((()=>[s(U,{class:"uni-stat-tooltip-l"},{default:o((()=>[n(y(e.error_msg),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):"create_time"===t.field?(i(),r(Y,{key:t.field,align:"center"},{default:o((()=>[s(Z,{threshold:[0,0],date:e.create_time},null,8,["date"])])),_:2},1024)):(i(),r(Y,{key:t.field,align:"center"},{default:o((()=>[n(y(void 0!==e[t.field]?e[t.field]:"-"),1)])),_:2},1024))],64)))),128))])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText"]),s(U,{class:"uni-pagination-box"},{default:o((()=>[s(te,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:B.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-5e849582"]]);export{J as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-js-detail.28b6b442.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-js-detail.28b6b442.js new file mode 100644 index 0000000000000000000000000000000000000000..5d9e697db037ad3a3a642023fcfa48306b9b2f7c --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-js-detail.28b6b442.js @@ -0,0 +1 @@ +import{_ as t,L as a,o as e,c as i,w as o,i as s,a as n,f as r,g as p}from"./index-389238f5.js";import{_ as l}from"./uni-stat-table.19e19a80.js";import{_ as g}from"./uni-pagination.018f31ea.js";import{s as u,p as h}from"./util.63f19a41.js";import{p as c}from"./fieldsMap.565b6b26.js";import"./uni-tooltip.58062496.js";const d=t({data:()=>({popupFieldsMap:c,options:{pageSize:20,pageCurrent:1,total:0},query:{error_hash:"",create_time:[]},loading:!1,tableData:[]}),onLoad(t){let{error_hash:a,create_time:e}=t;a&&(e=Number(e),this.query.error_hash=a,this.query.create_time=[e,e+864e5],this.getTableData(u(this.query)))},methods:{changePageCurrent(t){this.options.pageCurrent=t.current,this.getTableData(u(this.query))},changePageSize(t){this.options.pageSize=t,this.options.pageCurrent=1,this.getTableData(u(this.query))},getTableData(t){const{pageCurrent:e}=this.options;this.loading=!0;a.database().collection("uni-stat-error-logs").where(t).orderBy("create_time","desc").skip((e-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((t=>{const{count:a,data:e}=t.result;this.options.total=a;for(const i of e)i.create_time=h(i.create_time,"dateTime");this.tableData=e})).finally((()=>{this.loading=!1}))}}},[["render",function(t,a,u,h,c,d){const m=r(p("uni-stat-table"),l),f=r(p("uni-pagination"),g),_=s;return e(),i(_,{class:"fix-top-window"},{default:o((()=>[n(_,{class:"uni-container"},{default:o((()=>[n(m,{data:c.tableData,filedsMap:c.popupFieldsMap,loading:c.loading},null,8,["data","filedsMap","loading"]),n(_,{class:"uni-pagination-box"},{default:o((()=>[n(f,{"show-icon":"","show-page-size":"","page-size":c.options.pageSize,current:c.options.pageCurrent,total:c.options.total,onChange:d.changePageCurrent,onPageSizeChange:d.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-d581af0c"]]);export{d as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-js-js.5f1bc9b4.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-js-js.5f1bc9b4.js new file mode 100644 index 0000000000000000000000000000000000000000..b61f147a1725df3cff9309072a468a58ace2a37e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-error-js-js.5f1bc9b4.js @@ -0,0 +1 @@ +import{_ as e,B as t,o as n,c as a,w as r,a as s,z as o,I as i,C as l,D as u,b as c,i as p,e as d,r as h,F as m,d as g,t as f,p as _,aA as y,aF as w,L as b,aG as C,n as S,f as M,g as k,q as E,S as P,am as x,aC as v,A as L,h as T,j as O,k as A,l as D,a5 as R}from"./index-389238f5.js";import{_ as U}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as F}from"./uni-data-select.8acadad5.js";import{_ as $}from"./uni-stat-tabs.4355c19c.js";import{_ as I}from"./uni-stat-panel.2e6a5931.js";import{_ as N}from"./qiun-data-charts.a402b569.js";import{_ as q}from"./uni-tooltip.58062496.js";import{_ as B}from"./uni-pagination.018f31ea.js";import{_ as z}from"./uni-load-more.67944ae0.js";import{i as j,s as G,d as V,g as W,j as Q,h as J,p as H,m as X,k as K}from"./util.63f19a41.js";import{f as Y,p as Z}from"./fieldsMap.565b6b26.js";const ee=e({name:"UniDrawer",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(t=>{if(this.disable)return;const n=Object.keys(e).find((n=>{const a=t.key,r=e[n];return r===a||Array.isArray(r)&&r.includes(a)}));n&&setTimeout((()=>{this.$emit(n,{})}),0)}))},render:()=>{}}},emits:["change"],props:{mode:{type:String,default:""},mask:{type:Boolean,default:!0},maskClick:{type:Boolean,default:!0},width:{type:Number,default:220}},data:()=>({visibleSync:!1,showDrawer:!1,rightMode:!1,watchTimer:null,drawerWidth:220}),created(){this.drawerWidth=this.width,this.rightMode="right"===this.mode},methods:{clear(){},close(e){("mask"!==e||this.maskClick)&&this.visibleSync&&this._change("showDrawer","visibleSync",!1)},open(){this.visibleSync||this._change("visibleSync","showDrawer",!0)},_change(e,t,n){this[e]=n,this.watchTimer&&clearTimeout(this.watchTimer),this.watchTimer=setTimeout((()=>{this[t]=n,this.$emit("change",n)}),n?50:300)}}},[["render",function(e,d,h,m,g,f){const _=p,y=t("keypress");return g.visibleSync?(n(),a(_,{key:0,class:o([{"uni-drawer--visible":g.showDrawer},"uni-drawer"]),onTouchmove:u(f.clear,["stop","prevent"])},{default:r((()=>[s(_,{class:o(["uni-drawer__mask",{"uni-drawer__mask--visible":g.showDrawer&&h.mask}]),onClick:d[0]||(d[0]=e=>f.close("mask"))},null,8,["class"]),s(_,{class:o(["uni-drawer__content",{"uni-drawer--right":g.rightMode,"uni-drawer--left":!g.rightMode,"uni-drawer__content--visible":g.showDrawer}]),style:i({width:g.drawerWidth+"px"})},{default:r((()=>[l(e.$slots,"default",{},void 0,!0)])),_:3},8,["class","style"]),s(y,{onEsc:d[1]||(d[1]=e=>f.close("mask"))})])),_:3},8,["class","onTouchmove"])):c("",!0)}],["__scopeId","data-v-ac0dbaaa"]]);const te=e({props:{uploadTasks:{type:Array,default:function(){return[]}},showProgress:{type:Boolean,default:!0}}},[["render",function(e,t,o,i,l,u){const w=_,b=y,C=p;return n(),a(C,null,{default:r((()=>[(n(!0),d(m,null,h(o.uploadTasks,((e,t)=>(n(),a(C,{key:t,class:"upload-task-body"},{default:r((()=>[s(C,{class:"upload-task-item"},{default:r((()=>[s(w,{class:"upload-task-item-name"},{default:r((()=>[g(f(e.name),1)])),_:2},1024),o.showProgress?(n(),a(b,{key:0,class:"upload-task-item-progress",activeColor:-1!==e.state?"#42b983":"#ff5a5f",percent:100*e.progress,active:"",duration:5},null,8,["activeColor","percent"])):c("",!0),s(C,{class:"flex",style:{"justify-content":"space-between"}},{default:r((()=>[s(w,{class:"upload-task-item-size"},{default:r((()=>[g(f(e.size),1)])),_:2},1024),s(w,{class:"upload-task-item-size"},{default:r((()=>[g(f(-1!==e.state?"":"失败"),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})}],["__scopeId","data-v-5938fce7"]]),ne={},ae=Object,re="undefined"!=typeof window&&window.window===window&&window.navigator,se=re?null:module.require,oe=e=>e[e.length-1],ie=e=>e.replace(/\\/g,"/"),le=re?window.location.href:ie(process.cwd())+"/";class ue{constructor(e,t,n){this.itemsHeader=[],this.isMP=!1;const a=e,r=e&&e instanceof SyntaxError&&!re;if(e||(e=new Error,n=void 0===n?1:n),e instanceof Error&&(e=e.stack||""),"string"==typeof e&&(this.isMP="mp-weixin"===t,e=this.rawParse(e).slice(n).map((e=>this.extractEntryMetadata(e)))),Array.isArray(e)){if(r){const t=se("util").inspect(a).split("\n"),n=t[0].split(":"),r=n.pop(),s=n.join(":");s&&e.unshift({file:ie(s),line:r,column:(t[2]||"").indexOf("^")+1,sourceLine:t[1],callee:"(syntax error)",syntaxError:!0})}this.items=e}else this.items=[]}extractEntryMetadata(e){const t=this.decomposePath(e.file||""),n=t[0],a=t[1];return ae.assign(e,{calleeShort:e.calleeShort||oe((e.callee||"").split(".")),fileRelative:n,fileShort:this.shortenPath(n),fileName:oe((e.file||"").split("/")),thirdParty:this.isThirdParty(n,a)&&!e.index,externalDomain:a})}shortenPath(e){return e.replace(/^node_modules\//,"").replace(/^webpack\/bootstrap\//,"").replace(/^__parcel_source_root\//,"")}decomposePath(e){let t=e;re&&(t=t.replace(le,""));const n=t.match(/^(http|https)\:\/\/?([^\/]+)\/{1,}(.*)/),a=n?n[2]:void 0;return t=n?n[3]:t,[ie(t).replace(/^.*\:\/\/?\/?/,""),a]}isThirdParty(e,t){return this.isMP?void 0!==t&&"usr"!==t:"~"===e[0]||"/"===e[0]||-1!==e.indexOf("@dcloudio")||-1!==e.indexOf("weex-main-jsfm")||0===e.indexOf("webpack/bootstrap")}rawParse(e){return(e||"").split("\n").map(((e,t)=>{let n,a,r,s,o=[];if(-1!==(e=e.trim()).indexOf("file:")&&(e=e.replace(/file:\/\/(.*)www/,"file://")),(r=e.match(/at (.+) \(eval at .+ \((.+)\), .+\)/))||(r=e.match(/at (.+) \((.+)\)/))||"at "!==e.slice(0,3)&&(r=e.match(/(.*)@(.*)/)))this.itemsHeader.push("%StacktraceyItem%"),n=r[1],a="native"===r[2],o=(r[2].match(/(.*):(\d+):(\d+)/)||r[2].match(/(.*):(\d+)/)||r[2].match(/\[(.*)\]/)||[]).slice(1);else{if(!(s=e.match(/^(at\s*)*(.*)\s+(.+):(\d+):(\d+)/)))return void this.itemsHeader.push(e);this.itemsHeader.push("%StacktraceyItem%"),n=s[2].trim(),o=s.slice(3)}if(n&&!o[0]){"Array"===n.split(".")[0]&&(a=!0)}return{beforeParse:e,callee:n||"",index:re&&o[0]===window.location.href,native:a||!1,file:ie(o[0]||""),line:parseInt(o[1]||"",10)||void 0,column:parseInt(o[2]||"",10)||void 0}})).filter((e=>void 0!==e))}maxColumnWidths(){return{callee:30,file:60,sourceLine:80}}asTable(e){const t=e&&e.maxColumnWidths||this.maxColumnWidths(),n=this.filter((e=>!e.thirdParty)).map((e=>pe(e,t,this.isMP))),a=this.filter((e=>e.thirdParty)).map((e=>pe(e,t,this.isMP)));return{items:n.items,thirdPartyItems:a.items}}}const ce=(e,t)=>e&&(e.length>t?e.slice(0,t-1)+"…":e);function pe(e,t,n){if(!e.parsed)return e.beforeParse;const a=(n?e.file&&e.file:e.fileShort&&e.fileShort)+`${e.line?":"+e.line:""}${e.column?":"+e.column:""}`;return["at "+ce(n?e.callee:e.calleeShort,t.callee),(r=a||"",s=t.file,r&&(r.length>s?"…"+r.slice(-(s-1)):r)),ce((e.sourceLine||"").trim()||"",t.sourceLine)];var r,s}["map","filter","slice","concat"].forEach((e=>{ue.prototype[e]=function(){return new ue(this.items[e].apply(this.items,arguments))}}));var de=ue,he={};!function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};const t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function a(e){const n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function r(e){let t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=a,e.urlGenerate=r;const s=function(e){const t=[];return function(n){for(let e=0;e32&&t.pop(),a}}((function(t){let n=t;const s=a(t);if(s){if(!s.path)return t;n=s.path}const o=e.isAbsolute(n),i=[];let l=0,u=0;for(;;){if(l=u,u=n.indexOf("/",l),-1===u){i.push(n.slice(l));break}for(i.push(n.slice(l,u));u=0;u--){const e=i[u];"."===e?i.splice(u,1):".."===e?c++:c>0&&(""===e?(i.splice(u+1,c),c=0):(i.splice(u,2),c--))}return n=i.join("/"),""===n&&(n=o?"/":"."),s?(s.path=n,r(s)):n}));function o(e,t){""===e&&(e="."),""===t&&(t=".");const o=a(t),i=a(e);if(i&&(e=i.path||"/"),o&&!o.scheme)return i&&(o.scheme=i.scheme),r(o);if(o||t.match(n))return t;if(i&&!i.host&&!i.path)return i.host=t,r(i);const l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=l,r(i)):l}e.normalize=s,e.join=o,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");let n=0;for(;0!==t.indexOf(e+"/");){const a=e.lastIndexOf("/");if(a<0)return t;if((e=e.slice(0,a)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};const i=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=i?l:function(e){return u(e)?"$"+e:e},e.fromSetString=i?l:function(e){return u(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){let a=c(e.source,t.source);return 0!==a?a:(a=e.originalLine-t.originalLine,0!==a?a:(a=e.originalColumn-t.originalColumn,0!==a||n?a:(a=e.generatedColumn-t.generatedColumn,0!==a?a:(a=e.generatedLine-t.generatedLine,0!==a?a:c(e.name,t.name)))))},e.compareByGeneratedPositionsDeflated=function(e,t,n){let a=e.generatedLine-t.generatedLine;return 0!==a?a:(a=e.generatedColumn-t.generatedColumn,0!==a||n?a:(a=c(e.source,t.source),0!==a?a:(a=e.originalLine-t.originalLine,0!==a?a:(a=e.originalColumn-t.originalColumn,0!==a?a:c(e.name,t.name)))))},e.compareByGeneratedPositionsInflated=function(e,t){let n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=c(e.source,t.source),0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:c(e.name,t.name)))))},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){const e=a(n);if(!e)throw new Error("sourceMapURL could not be parsed");if(e.path){const t=e.path.lastIndexOf("/");t>=0&&(e.path=e.path.substring(0,t+1))}t=o(r(e),t)}return s(t)}}(he);var me={};me.ArraySet=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,n){const a=new e;for(let e=0,r=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e0?a-l>1?t(l,a,r,s,o,i):i==e.LEAST_UPPER_BOUND?a1?t(n,l,r,s,o,i):i==e.LEAST_UPPER_BOUND?l:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,a,r,s){if(0===a.length)return-1;let o=t(-1,a.length,n,a,r,s||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===r(a[o],a[o-1],!0);)--o;return o}}(fe);var _e={};{let e=null;({get exports(){return _e},set exports(e){_e=e}}).exports=function(){if("string"==typeof e)return fetch(e).then((e=>e.arrayBuffer()));if(e instanceof ArrayBuffer)return Promise.resolve(e);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},_e.initialize=t=>e=t}const ye=_e;function we(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let be=null;const Ce=he,Se=fe,Me=me.ArraySet,ke=_e,Ee=function(){if(be)return be;const e=[];return be=ye().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,n,a,r,s,o,i,l,u,c){const p=new we;p.generatedLine=t+1,p.generatedColumn=n,a&&(p.lastGeneratedColumn=r-1),s&&(p.source=o,p.originalLine=i+1,p.originalColumn=l,u&&(p.name=c)),e[e.length-1](p)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,n)=>{e.push(t);try{n()}finally{e.pop()}}}))).then(null,(e=>{throw be=null,e})),be},Pe=Symbol("smcInternal");let xe=class e{constructor(e,t){return e==Pe?Promise.resolve(this):function(e,t){let n=e;"string"==typeof e&&(n=Ce.parseSourceMapInput(e));const a=null!=n.sections?new Le(n,t):new ve(n,t);return Promise.resolve(a)}(e,t)}static initialize(e){ke.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return function(e,t){return ve.fromSourceMap(e,t)}(e,t)}static async with(t,n,a){const r=await new e(t,n);try{return await a(r)}finally{r.destroy()}}_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")}eachMapping(e,t,n){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};xe.prototype._version=3,xe.GENERATED_ORDER=1,xe.ORIGINAL_ORDER=2,xe.GREATEST_LOWER_BOUND=1,xe.LEAST_UPPER_BOUND=2,ge.SourceMapConsumer=xe;class ve extends xe{constructor(e,t){return super(Pe).then((n=>{let a=e;"string"==typeof e&&(a=Ce.parseSourceMapInput(e));const r=Ce.getArg(a,"version");let s=Ce.getArg(a,"sources");const o=Ce.getArg(a,"names",[]);let i=Ce.getArg(a,"sourceRoot",null);const l=Ce.getArg(a,"sourcesContent",null),u=Ce.getArg(a,"mappings"),c=Ce.getArg(a,"file",null);if(r!=n._version)throw new Error("Unsupported version: "+r);return i&&(i=Ce.normalize(i)),s=s.map(String).map(Ce.normalize).map((function(e){return i&&Ce.isAbsolute(i)&&Ce.isAbsolute(e)?Ce.relative(i,e):e})),n._names=Me.fromArray(o.map(String),!0),n._sources=Me.fromArray(s,!0),n._absoluteSources=n._sources.toArray().map((function(e){return Ce.computeSourceURL(i,e,t)})),n.sourceRoot=i,n.sourcesContent=l,n._mappings=u,n._sourceMapURL=t,n.file=c,n._computedColumnSpans=!1,n._mappingsPtr=0,n._wasm=null,Ee().then((e=>(n._wasm=e,n)))}))}_findSourceIndex(e){let t=e;if(null!=this.sourceRoot&&(t=Ce.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);for(let n=0;n{null!==t.source&&(t.source=this._sources.at(t.source),t.source=Ce.computeSourceURL(s,t.source,this._sourceMapURL),null!==t.name&&(t.name=this._names.at(t.name))),e.call(a,t)}),(()=>{switch(r){case xe.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case xe.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=Ce.getArg(e,"source");const n=Ce.getArg(e,"line"),a=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(n<1)throw new Error("Line numbers must be >= 1");if(a<0)throw new Error("Column numbers must be >= 0");const r=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),r.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,n-1,"column"in e,a)})),r}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:Ce.getArg(e,"line"),generatedColumn:Ce.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let n,a=Ce.getArg(e,"bias",xe.GREATEST_LOWER_BOUND);if(null==a&&(a=xe.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>n=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,a)})),n&&n.generatedLine===t.generatedLine){let e=Ce.getArg(n,"source",null);null!==e&&(e=this._sources.at(e),e=Ce.computeSourceURL(this.sourceRoot,e,this._sourceMapURL));let t=Ce.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:Ce.getArg(n,"originalLine",null),column:Ce.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];let a,r=e;if(null!=this.sourceRoot&&(r=Ce.relative(this.sourceRoot,r)),null!=this.sourceRoot&&(a=Ce.urlParse(this.sourceRoot))){const e=r.replace(/^file:\/\//,"");if("file"==a.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!a.path||"/"==a.path)&&this._sources.has("/"+r))return this.sourcesContent[this._sources.indexOf("/"+r)]}if(t)return null;throw new Error('"'+r+'" is not in the SourceMap.')}generatedPositionFor(e){let t=Ce.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const n={source:t,originalLine:Ce.getArg(e,"line"),originalColumn:Ce.getArg(e,"column")};if(n.originalLine<1)throw new Error("Line numbers must be >= 1");if(n.originalColumn<0)throw new Error("Column numbers must be >= 0");let a,r=Ce.getArg(e,"bias",xe.GREATEST_LOWER_BOUND);if(null==r&&(r=xe.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>a=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),n.source,n.originalLine-1,n.originalColumn,r)})),a&&a.source===n.source){let e=a.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:Ce.getArg(a,"generatedLine",null),column:Ce.getArg(a,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}ve.prototype.consumer=xe,ge.BasicSourceMapConsumer=ve;class Le extends xe{constructor(e,t){return super(Pe).then((n=>{let a=e;"string"==typeof e&&(a=Ce.parseSourceMapInput(e));const r=Ce.getArg(a,"version"),s=Ce.getArg(a,"sections");if(r!=n._version)throw new Error("Unsupported version: "+r);n._sources=new Me,n._names=new Me,n.__generatedMappings=null,n.__originalMappings=null,n.__generatedMappingsUnsorted=null,n.__originalMappingsUnsorted=null;let o={line:-1,column:0};return Promise.all(s.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const n=Ce.getArg(e,"offset"),a=Ce.getArg(n,"line"),r=Ce.getArg(n,"column");if(a({generatedOffset:{generatedLine:a+1,generatedColumn:r+1},consumer:e})))}))).then((e=>(n._sections=e,n)))}))}get _generatedMappings(){return this.__generatedMappings||this._sortGeneratedMappings(),this.__generatedMappings}get _originalMappings(){return this.__originalMappings||this._sortOriginalMappings(),this.__originalMappings}get _generatedMappingsUnsorted(){return this.__generatedMappingsUnsorted||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappingsUnsorted}get _originalMappingsUnsorted(){return this.__originalMappingsUnsorted||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappingsUnsorted}_sortGeneratedMappings(){const e=this._generatedMappingsUnsorted;e.sort(Ce.compareByGeneratedPositionsDeflated),this.__generatedMappings=e}_sortOriginalMappings(){const e=this._originalMappingsUnsorted;e.sort(Ce.compareByOriginalPositions),this.__originalMappings=e}get sources(){const e=[];for(let t=0;tt.push(e)));for(let r=0;r= 1");if(n.originalColumn<0)throw new Error("Column numbers must be >= 0");const a=[];let r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Ce.compareByOriginalPositions,Se.LEAST_UPPER_BOUND);if(r>=0){let n=this._originalMappings[r];if(void 0===e.column){const e=n.originalLine;for(;n&&n.originalLine===e;){let e=n.lastGeneratedColumn;this._computedColumnSpans&&null===e&&(e=1/0),a.push({line:Ce.getArg(n,"generatedLine",null),column:Ce.getArg(n,"generatedColumn",null),lastColumn:e}),n=this._originalMappings[++r]}}else{const e=n.originalColumn;for(;n&&n.originalLine===t&&n.originalColumn==e;){let e=n.lastGeneratedColumn;this._computedColumnSpans&&null===e&&(e=1/0),a.push({line:Ce.getArg(n,"generatedLine",null),column:Ce.getArg(n,"generatedColumn",null),lastColumn:e}),n=this._originalMappings[++r]}}}return a}destroy(){for(let e=0;e{const s=(e,a)=>{const{line:r=0,column:o=0,file:i,fileName:l,fileRelative:u}=e;if(e.thirdParty)return Promise.resolve();try{return(c=i,p=l,d=u,t.preset.getSourceMapContent(c,p,d).then((e=>{if(e)return function(e){return new Promise(((t,n)=>{try{if(Te.with)Te.with(e,null,(e=>{t(e)}));else{const n=Te(e);t(n)}}catch(je){n()}}))}(e).then((e=>function(e,t,n){const{source:a,line:r,column:s}=e.originalPositionFor(t);if(a){const t=a.split("/");return{source:a,sourcePath:t.slice(3).join("/"),sourceLine:null===r?0:r,sourceColumn:null===s?0:s,fileName:t.pop(),sourceContent:n&&e.sourceContentFor(a)||""}}}(e,{line:r+(t.preset.lineOffset||0),column:o},!!t.withSourceContent)))}))).then((t=>{if(t){const{source:o,sourcePath:i,sourceLine:l,sourceColumn:u,sourceContent:c,fileName:p=""}=t;n.items[a]=Object.assign({},e,{file:o,line:l,column:u,fileShort:i,fileRelative:o,fileName:p,thirdParty:(r=i,-1!==r.indexOf("@dcloudio")),parsed:!0,sourceContent:c});const d=n.items[a];if(n.isMP&&-1!==d.beforeParse.indexOf("app-service"))return s(d,a)}var r}))}catch(je){return Promise.resolve()}var c,p,d};a=a.then((()=>new Promise(((t,n)=>{setTimeout((()=>{s(e,r).then(t)}),0)}))))}));return new Promise(((r,s)=>{a.then((()=>{const a=t.preset.asTableStacktrace({stack:n,maxColumnWidths:{callee:999,file:999,sourceLine:999},stacktrace:e});r(a)})).catch((()=>{r(e)}))}))}function Re(e){if("string"==typeof e)return e;return`${e[0]}${e[1]?` ${e[1]}`:""}${e[2]?` ${e[2]}`:""}`}function Ue(e){const{base:t,sourceRoot:n,splitThirdParty:a,uniPlatform:r,lineOffset:s}=e;let o;return{parseSourceMapUrl(e,a,r){if(-1!==r.indexOf("(")&&(r=r.match(/\((.*)/)[1]),!t||!r)return"";if(n)return`${r.replace(n,t+"/")}.map`;let s="";return o.isMP&&(-1!==r.indexOf("app-service.js")&&(s=(t.match(/\w$/)?"/":"")+"__WEIXIN__",r===a&&(s+="/__APP__"),r=r.replace(".js",".map")),s&&r.match(/^\w/)&&(s+="/")),`${t}${s}${r}.map`},getSourceMapContent(e,t,n){if(o.isMP&&-1===n.indexOf(".js"))return Promise.resolve("");const a=this.parseSourceMapUrl(e,t,n);return Promise.resolve(function(e){try{return Ae[e]||(Ae[e]=new Promise(((t,n)=>{try{/^[http|https]+:/i.test(e)?w({url:e,success:n=>{200===n.statusCode?(Ae[e]=n.data,t(Ae[e])):t(Ae[e]="")},fail(){t(Ae[e]="")}}):(Ae[e]=ne.readFileSync(e,"utf-8"),t(Ae[e]))}catch(je){t("")}})))}catch(je){return""}}(a))},parseStacktrace:e=>(o=new de(e,r),o),asTableStacktrace({maxColumnWidths:e,stacktrace:t,stack:n}){const r=t.split("\n")[0],s=n.asTable?n.asTable(e?{maxColumnWidths:e}:void 0):{items:[],thirdPartyItems:[]};if(s.items.length||s.thirdPartyItems.length){const{items:e,thirdPartyItems:t}=s,r=n.itemsHeader.map((t=>{if("%StacktraceyItem%"===t){const t=e.shift();return t?Re(t):""}return t})).filter(Boolean).join("\n"),o=t.length?t.map(Re).join("\n"):"";return a?{userError:r,thirdParty:o}:r+"\n"+o}return a?{userError:r,thirdParty:""}:r},lineOffset:s}}const Fe=[{title:"错误总数",value:0,tooltip:"指应用在某个时间段内出现错误的总数"},{title:"错误率",value:0,tooltip:"时间范围内的总错误数/应用启动次数,如果小于0.01%,默认显示为0"}],$e=b.database(),Ie=$e.command,Ne="uni-stat-error-source-map",qe="__UNI__/uni-stat/sourcemap";var Be={};const ze=e({data:()=>({uniStat:C.uniStat,fieldsMap:Y,popupFieldsMap:Z,query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",start_time:[]},uploadOptions:j({appid:"",uni_platform:""}),uploadMsg:"",options:{pageSize:20,pageCurrent:1,total:0},loading:!1,popupLoading:!1,currentDateTab:0,tableData:[],popupTableData:[],panelData:JSON.parse(JSON.stringify(Fe)),chartData:{},chartTab:"errorCount",chartTabs:[{_id:"errorCount",name:"错误次数"},{_id:"errorRate",name:"错误率"}],errMsg:"",msgLoading:!1,uploadFile:{tempFileTasks:[],tempFiles:[],clear(){this.tempFileTasks.length=this.tempFiles.length=0}},uploadSuccessTaskNames:[],errorItem:"",errorMessage:""}),components:{uploadTask:te},computed:{queryStr(){return G(this.query)},versionQuery(){const{appid:e,uni_platform:t}=this.query;return G(j({appid:e,uni_platform:t}))},uploadVersionQuery(){const{appid:e,uni_platform:t}=this.uploadOptions;return G(j({appid:e,uni_platform:t}))},vaildate(){const e=Object.keys(this.uploadOptions).every((e=>this.uploadOptions[e]));return e&&this.uploadMsg&&(this.uploadMsg=""),e},uploadSuccessTasks(){return this.uploadFile.tempFileTasks.filter((e=>1===e.state))},sortUploadFileTempFileTasks(){return this.uploadFile.tempFileTasks.filter((e=>1!==e.state)).sort(((e,t)=>e.state-t.state))},sourceMapEnabled:()=>!0,channelQuery(){const e=this.query.platform_id;return G({platform_id:e})}},created(){if(this.parsedErrors={},this.sourceMapEnabled)if(this.uniStat.uploadSourceMapCloudSpaceId)if("aliyun"===this.uniStat.uploadSourceMapCloudPlatform){let e=0===this.uniStat.uploadSourceMapCloudSpaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com";this.uploadSourcemapCloud=b.init({provider:"aliyun",spaceId:this.uniStat.uploadSourceMapCloudSpaceId,clientSecret:this.uniStat.uploadSourceMapCloudClientSecret,endpoint:e})}else this.uploadSourcemapCloud=b.init({provider:"tencent",spaceId:this.uniStat.uploadSourceMapCloudSpaceId});else this.uploadSourcemapCloud=b;this.getCloudDataDebounce=V((()=>{this.getAllData(this.queryStr)}),300),this.getCloudDataDebounce()},watch:{query:{deep:!0,handler(e,t){this.options.pageCurrent=1,this.getCloudDataDebounce()}},chartTab(e){this.getChartData(this.queryStr)}},methods:{useDatetimePicker(e){this.currentDateTab=-1},changePlatform(e,t,n,a){this.query.version_id=0,this.uploadOptions.uni_platform=a.code,this.query.uni_platform=a.code},changeTimeRange(e,t){this.currentDateTab=t;const n=W(e),a=W(0)-1;this.query.start_time=[n,a]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTableData(this.queryStr)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTableData(this.queryStr)},getAllData(e){-1!==e.indexOf("appid")?(this.errorMessage="",this.getChartData(e),this.getTableData(e)):this.errorMessage="请先选择应用"},getChartData(e,t="day_count"){let n=G(this.query,!1,["uni_platform"]);this.chartData={},this.options;const a=b.database(),[r,s]=this.query.start_time,o=Q(new Date(r),new Date(s));a.collection("uni-stat-error-result").where(n).groupBy("start_time").groupField("sum(count) as total_day_count").orderBy("start_time","desc").get({getCount:!0}).then((async e=>{e.result.count;const a=e.result.data;let r=[];o.forEach((e=>{let t=a.find((t=>t.start_time===e));t?r.push(t):r.push({start_time:e,total_day_count:0})}));const s={categories:[],series:[{name:"暂无数据",data:[]}]};if("errorCount"===this.chartTab){const e=s.series[0]={name:"错误次数",data:[]},n=s.categories;for(const a of r){let r=a.start_time;const s=J(r,"day"),o=a[`total_${t}`];n.push(s),e.data.push(o)}this.chartData=s}else{let e=await this.getDayLaunch(n);const a=s.series[0]={name:"错误率(%)",data:[],lineStyle:{color:"#EE6666",width:1},itemStyle:{borderWidth:1,borderColor:"#EE6666",color:"#EE6666"},areaStyle:{color:{colorStops:[{offset:0,color:"#EE6666"},{offset:1,color:"#FFFFFF"}]}}},o=s.categories;for(const n of r){let r=n.start_time;const s=J(r,"day"),i=n[`total_${t}`];if(o.push(s),e.length){const t=e.find((e=>e.start_time===n.start_time)),r=o.indexOf(s);if(t){let e=100*i/t.day_app_launch_count;e=e.toFixed(2),a.data[r]=e}else a.data[r]=0}}this.chartData=s}})).catch((e=>{console.error(e)})).finally((()=>{}))},getTotalCount:e=>b.database().collection("uni-stat-error-result").where(e).groupBy("appid").groupField("sum(count) as total_count").get(),getTotalLaunch:e=>b.database().collection("uni-stat-result").where(e).groupBy("appid").groupField("sum(app_launch_count) as total_app_launch_count").get(),async getDayLaunch(e){const t=b.database();return(await t.collection("uni-stat-result").where(e).groupBy("start_time").groupField("sum(app_launch_count) as day_app_launch_count").orderBy("start_time","asc").get()).result.data||[]},getTableData(e=G(this.query)){let t=G(this.query,!1,["uni_platform"]);const{pageCurrent:n}=this.options;this.loading=!0;const a=b.database(),r=G(j({appid:this.query.appid})),s=a.collection("uni-stat-error-result").where(t).getTemp(),o=a.collection("opendb-app-versions").where(r).getTemp(),i=a.collection("uni-stat-app-platforms").getTemp();a.collection(s,o,i).orderBy("count","desc").skip((n-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:n,data:a}=e.result,r=[];this.panelData=JSON.parse(JSON.stringify(Fe));for(const t of a){t.last_time=H(t.last_time,"dateTime"),t.msgTooltip=t.msg,t.msg=t.msg?t.msg.substring(0,100)+"...":"";const e=t.version_id[0],n=t.platform_id[0];t.version=e&&e.version,t.platform=n&&n.name,t.platform_code=n&&n.code,r.push(t)}this.getTotalCount(t).then((e=>{const n=e.result.data[0],a=n&&n.total_count;a&&(r.forEach((e=>e.total_count=Number(a))),this.panelData[0].value=a);let s="";this.getTotalLaunch(t).then((e=>{const t=e.result.data[0];if(s=t&&t.total_app_launch_count,a&&s){let e=a/s;e=(100*e).toFixed(2)+"%",this.panelData[1].value=e}}))})).finally((()=>{this.tableData=[],this.options.total=n,r.forEach((e=>X(Y,e,e))),this.tableData=r}))})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},navTo(e,t){e.indexOf("http")>-1?window.open(e):(t&&(e=`${e}?error_hash=${t.hash}&create_time=${t.start_time}`),S({url:e}))},closeErrPopup(){this.$refs.errMsg.close()},errMsgPopupChange(e){if(e.show){const e=this.errorItem.msgTooltip;return this.msgLoading?void this.closeErrPopup():(e||(this.errMsg="暂无错误数据"),this.errMsg="",this.parsedErrors[e],this.msgLoading=!0,void this.parseError(this.errorItem))}this.msgLoading=!1},async parseError(e){let t,{msgTooltip:n,appid:a,platform_code:r,version:s}=e,o=`/${a}/${r}/${s}/`;Be[o]&&Be[o].length>0?t=Be[o]:(t=await this.getSourceMapFileList({base:o}),t&&t.length>0?Be[o]=t:console.error(`缺少${o}对应的sourceMap,请先上传sourceMap`));try{n=JSON.parse(n)}catch(l){}const i={base:o,uniPlatform:r,splitThirdParty:!0};["ios","android","app"].indexOf(r)>-1&&(i.lineOffset=-1),De(n,{preset:{...Ue(i),parseSourceMapUrl(e,n,a){if(-1!==a.indexOf("(")){let e=a.match(/\((.*)/);a=e&&e[1]}if(!o||!a)return"";if("undefined"!=typeof sourceRoot)return`${a.replace(sourceRoot,o+"/")}.map`;let s="";r.indexOf("mp-")>-1&&-1!==a.indexOf("app-service.js")&&(s=(o.match(/\w$/)?"/":"")+"__WEIXIN__",a===n&&(s+="/__APP__")),s&&a.match(/^\w/)&&(s+="/");let i,l=`${qe}${`${o}${s}${a}.map`}`;if("web"===r){let e=a.substring(a.indexOf("/")+1);i=`${qe}${`${o}${s}${e}.map`}`}let u=t.find((e=>[l,i].indexOf(e.cloud_path)>-1));return u?u.url:l}}}).then((e=>{const{userError:t,thirdParty:a}=e,s=t.length&&a.length?`\n\n------------${-1!==r.indexOf("mp-")?r:"uni-app"} runtime error------------\n\n`:"";this.errMsg=`${t}${s}${a}`,this.parsedErrors[n]=this.errMsg})).finally((()=>{this.msgLoading=!1}))},openUploadPopup(){const{appid:e,uni_platform:t}=this.query;this.uploadOptions={appid:e,uni_platform:t},this.$refs.upload.open()},closeUploadPopup(){this.$refs.upload.close()},createUploadFileTask(e,t,n,a){const r=e+t;return this.uploadSourcemapCloud.uploadFile({filePath:n,cloudPath:r,onUploadProgress:a})},async choosefile(){if(!this.vaildate)return void(this.uploadMsg="请先将应用、平台、版本填写完整");const{appid:e,uni_platform:t,version:n}=this.uploadOptions,a=`/${e}/${t}/${n}/`,r=`${qe}${a}`,s=document.createElement("input");s.type="file",s.directory=!0,s.webkitdirectory=!0,s.click(),s.addEventListener("change",(async()=>{this.uploadFile.clear();const o=s.files;if(!o.length)return;Array.prototype.forEach.call(o,(e=>{const t=K(e);this.uploadFile.tempFileTasks.push({fileDiskPath:e.webkitRelativePath.split("/").slice(1).join("/"),path:t,size:`${(e.size/1024).toFixed(2)}kb`,name:e.name,state:0,progress:0,file:e}),Object.defineProperty(e,"path",{get:()=>t}),this.uploadFile.tempFiles.push(e)}));let i=[];for(let s=0;s{-1!==this.uploadSuccessTaskNames.indexOf(o.name)?(o.progress=1,setTimeout((()=>{o.state=1,s()}),200)):this.createUploadFileTask(r,o.fileDiskPath,o.path,(e=>{const{loaded:t,total:n}=e;o.progress=t/n})).then((i=>{const l=r+o.fileDiskPath;let u=i.fileID;b.getTempFileURL({fileList:[u]}).then((r=>{let i=r.fileList[0].tempFileURL,c={appid:e,uni_platform:t,version:n,file_id:u,url:i,name:o.name,size:o.file.size,cloud_path:l,base:a};setTimeout((()=>{this.uploadSuccessTaskNames.push(name),o.state=1,s(c)}),100)}))})).catch((e=>{o.state=-1,i(`${o.name} 上传失败:`+JSON.stringify(e))}))}));l&&i.push(l)}i&&i.length>0&&await this.addSourceMapFile(i)}))},createStr(e,t,n="total_"){const a=[];return e.forEach((e=>{if(field.hasOwnProperty("value")){const r=e.field;a.push(`${t}(${r}) as ${n+r}`)}})),a.join()},openErrPopup(e){this.errorItem=e,this.$refs.errMsg.open()},async addSourceMapFile(e){let t=[];e.map(((e,n)=>{t.push(e.cloud_path)})),await $e.collection(Ne).where({cloud_path:Ie.in(t)}).remove(),await $e.collection(Ne).add(e)},async getSourceMapFileList(e){let{base:t}=e;return(await $e.collection(Ne).where({base:t}).limit(1e3).get()).result.data||[]}}},[["render",function(e,i,l,u,y,w){const b=M(k("uni-stat-breadcrumb"),U),C=p,S=M(k("uni-data-select"),F),j=M(k("uni-stat-tabs"),$),G=M(k("uni-datetime-picker"),v),V=M(k("uni-stat-panel"),I),W=M(k("qiun-data-charts"),N),Q=E,J=M(k("uni-icons"),L),H=M(k("uni-tooltip"),q),X=M(k("uni-th"),T),K=M(k("uni-tr"),O),Y=_,Z=M(k("uni-td"),A),te=M(k("uni-table"),D),ne=M(k("uni-pagination"),B),ae=M(k("uni-load-more"),z),re=P,se=M(k("uni-popup"),R),oe=t("uploadTask"),ie=M(k("uni-drawer"),ee);return n(),a(C,{class:"fix-top-window"},{default:r((()=>[s(C,{class:"uni-header"},{default:r((()=>[s(b,{class:"uni-stat-breadcrumb-on-phone"}),s(C,{class:"uni-group hide-on-phone"},{default:r((()=>[s(C,{class:"uni-sub-title"},{default:r((()=>[g("开发者可以在这里快速查询应用最近出现的具体错误内容,了解错误概况信息,以便快速修复问题")])),_:1})])),_:1})])),_:1}),s(C,{class:"uni-container"},{default:r((()=>[s(C,{class:"uni-stat--x flex p-1015"},{default:r((()=>[s(S,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:y.query.appid,"onUpdate:modelValue":i[0]||(i[0]=e=>y.query.appid=e),clear:!1},null,8,["modelValue"]),s(S,{collection:"opendb-app-versions",where:w.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:y.query.version_id,"onUpdate:modelValue":i[1]||(i[1]=e=>y.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),s(C,{class:"uni-stat--x flex"},{default:r((()=>[s(j,{label:"日期选择",current:y.currentDateTab,yesterday:!1,mode:"date",onChange:w.changeTimeRange},null,8,["current","onChange"]),s(G,{type:"daterange",end:(new Date).getTime(),modelValue:y.query.start_time,"onUpdate:modelValue":i[2]||(i[2]=e=>y.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":y.currentDateTab<0&&!!y.query.start_time.length}]),onChange:w.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),s(C,{class:"uni-stat--x"},{default:r((()=>[s(j,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:y.query.platform_id,"onUpdate:modelValue":i[3]||(i[3]=e=>y.query.platform_id=e),onChange:w.changePlatform},null,8,["modelValue","onChange"]),y.query.platform_id&&-1===y.query.platform_id.indexOf("==")?(n(),a(S,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:w.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:y.query.channel_id,"onUpdate:modelValue":i[4]||(i[4]=e=>y.query.channel_id=e)},null,8,["where","modelValue"])):c("",!0)])),_:1}),s(C,{class:"uni-stat--x",style:{padding:"15px 0"}},{default:r((()=>[s(V,{items:y.panelData,class:"uni-stat-panel"},null,8,["items"]),s(j,{type:"box",modelValue:y.chartTab,"onUpdate:modelValue":i[5]||(i[5]=e=>y.chartTab=e),tabs:y.chartTabs,class:"mb-l"},null,8,["modelValue","tabs"]),s(C,{class:"uni-charts-box"},{default:r((()=>[s(W,{type:"area",chartData:y.chartData,eopts:{notMerge:!0},echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:y.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),s(C,{class:"uni-stat--x p-m"},{default:r((()=>[s(C,{class:"flex-between"},{default:r((()=>[s(C,{class:"uni-stat-card-header"},{default:r((()=>[g("信息列表")])),_:1}),s(C,{class:"uni-group"},{default:r((()=>[w.sourceMapEnabled?(n(),a(Q,{key:0,class:"uni-button",type:"primary",size:"mini",onClick:w.openUploadPopup},{default:r((()=>[g("上传 sourceMap")])),_:1},8,["onClick"])):c("",!0)])),_:1})])),_:1}),s(te,{loading:y.loading,border:"",stripe:"",emptyText:e.$t("common.empty")},{default:r((()=>[s(K,null,{default:r((()=>[(n(!0),d(m,null,h(y.fieldsMap,((e,t)=>(n(),d(m,{key:t},[e.title?(n(),a(X,{key:t,align:"center"},{default:r((()=>[s(H,null,x({default:r((()=>[g(f(e.title)+" ",1),e.tooltip?(n(),a(J,{key:0,type:"help",color:"#666"})):c("",!0)])),_:2},[e.tooltip?{name:"content",fn:r((()=>[s(C,{class:"uni-stat-tooltip-s"},{default:r((()=>[g(f(e.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):c("",!0)],64)))),128)),w.sourceMapEnabled?(n(),a(X,{key:0,align:"center"},{default:r((()=>[g(" 操作 ")])),_:1})):c("",!0)])),_:1}),(n(!0),d(m,null,h(y.tableData,((e,t)=>(n(),a(K,{key:t},{default:r((()=>[(n(!0),d(m,null,h(y.fieldsMap,((t,o)=>(n(),d(m,{key:o},["count"===t.field?(n(),a(Z,{key:t.field,align:"center"},{default:r((()=>[s(Y,{class:"link-btn",onClick:t=>w.navTo("detail",e)},{default:r((()=>[g(f(void 0!==e[t.field]?e[t.field]:"-"),1)])),_:2},1032,["onClick"])])),_:2},1024)):(n(),a(Z,{key:t.field,align:"center"},{default:r((()=>[g(f(void 0!==e[t.field]?e[t.field]:"-"),1)])),_:2},1024))],64)))),128)),w.sourceMapEnabled?(n(),a(Z,{key:0},{default:r((()=>[s(Q,{size:"mini",type:"primary",style:{"white-space":"nowrap"},onClick:t=>w.openErrPopup(e)},{default:r((()=>[g("详 情")])),_:2},1032,["onClick"])])),_:2},1024)):c("",!0)])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),s(C,{class:"uni-pagination-box"},{default:r((()=>[s(ne,{"show-icon":"","show-page-size":"","page-size":y.options.pageSize,current:y.options.pageCurrent,total:y.options.total,onChange:w.changePageCurrent,onPageSizeChange:w.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1}),s(se,{ref:"errMsg",type:"center",animation:!1,maskClick:!0,onChange:w.errMsgPopupChange},{default:r((()=>[s(C,{class:"modal black-theme"},{default:r((()=>[s(C,{class:"modal-header"},{default:r((()=>[g(" 错误详情 ")])),_:1}),s(re,{"scroll-x":"true","scroll-y":"true"},{default:r((()=>[s(C,{class:"modal-content",style:{padding:"20px 30px"}},{default:r((()=>[y.msgLoading?(n(),a(C,{key:0,style:{margin:"150px 0","text-align":"center","font-size":"14px"}},{default:r((()=>[s(ae,{class:"mb-m",showText:!1,status:"loading"}),s(C,null,{default:r((()=>[g("正在解析,请稍等...")])),_:1})])),_:1})):c("",!0),s(Y,null,{default:r((()=>[g(f(y.errMsg),1)])),_:1})])),_:1})])),_:1}),s(C,{class:"dialog-close",onClick:w.closeErrPopup},{default:r((()=>[s(C,{class:"dialog-close-plus","data-id":"close"}),s(C,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"])])),_:1})])),_:1},8,["onChange"]),s(ie,{class:"sourcemap-drawser",ref:"upload",mode:"right","mask-click":!0,width:340},{default:r((()=>[s(C,{class:"modal",style:{"max-width":"none","min-width":"auto",padding:"0 10px"}},{default:r((()=>[s(C,{class:"modal-header"},{default:r((()=>[g(" 上传 sourceMap ")])),_:1}),s(C,{class:"modal-content",style:{height:"300px",padding:"0"}},{default:r((()=>[s(C,{style:{"margin-top":"10px"}},{default:r((()=>[s(S,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",label:"应用",modelValue:y.uploadOptions.appid,"onUpdate:modelValue":i[6]||(i[6]=e=>y.uploadOptions.appid=e)},null,8,["modelValue"])])),_:1}),s(C,{style:{"margin-top":"10px"}},{default:r((()=>[s(S,{collection:"uni-stat-app-platforms",field:"code as value, name as text",orderby:"text asc",label:"平台",modelValue:y.uploadOptions.uni_platform,"onUpdate:modelValue":i[7]||(i[7]=e=>y.uploadOptions.uni_platform=e)},null,8,["modelValue"])])),_:1}),s(C,{style:{"margin-top":"10px"}},{default:r((()=>[s(S,{collection:"opendb-app-versions",where:w.uploadVersionQuery,field:"version as value, version as text",orderby:"text desc",label:"版本",modelValue:y.uploadOptions.version,"onUpdate:modelValue":i[8]||(i[8]=e=>y.uploadOptions.version=e)},null,8,["where","modelValue"])])),_:1}),s(C,{class:"flex m-m"},{default:r((()=>[s(C,{class:"label-text"},{default:r((()=>[g("选择文件:")])),_:1}),s(Q,{class:"uni-button ml-m",type:"primary",onClick:w.choosefile},{default:r((()=>[g("选择文件并上传")])),_:1},8,["onClick"])])),_:1}),w.vaildate?c("",!0):(n(),a(C,{key:0,class:"upload-msg-warning"},{default:r((()=>[g(f(y.uploadMsg),1)])),_:1}))])),_:1}),s(C,{class:"dialog-close",onClick:w.closeUploadPopup},{default:r((()=>[s(C,{class:"dialog-close-plus",style:{"background-color":"#333"},"data-id":"close"}),s(C,{class:"dialog-close-plus dialog-close-rotate",style:{"background-color":"#333"},"data-id":"close"})])),_:1},8,["onClick"])])),_:1}),s(C,{class:"upload-task-header"},{default:r((()=>[s(Y,null,{default:r((()=>[g("上传任务:"+f(w.uploadSuccessTasks.length)+"/"+f(y.uploadFile.tempFileTasks.length),1)])),_:1})])),_:1}),y.uploadFile.tempFileTasks.length?(n(),a(re,{key:0,style:{height:"calc(100vh - 362px)"},"scroll-y":"true"},{default:r((()=>[y.uploadFile.tempFileTasks.length>w.uploadSuccessTasks.length?(n(),a(C,{key:0},{default:r((()=>[s(C,{class:"upload-task-header"},{default:r((()=>[s(Y,null,{default:r((()=>[g("正在上传")])),_:1})])),_:1}),s(oe,{uploadTasks:w.sortUploadFileTempFileTasks},null,8,["uploadTasks"])])),_:1})):c("",!0),w.uploadSuccessTasks.length?(n(),a(C,{key:1},{default:r((()=>[s(C,{class:"upload-task-header"},{default:r((()=>[s(Y,{style:{color:"#42b983"}},{default:r((()=>[g("上传成功")])),_:1})])),_:1}),s(oe,{uploadTasks:w.uploadSuccessTasks,showProgress:!1},null,8,["uploadTasks"])])),_:1})):c("",!0)])),_:1})):c("",!0)])),_:1},512)])),_:1})}],["__scopeId","data-v-a0b830e1"]]);export{ze as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-event-event.fa63b5a1.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-event-event.fa63b5a1.js new file mode 100644 index 0000000000000000000000000000000000000000..0c398c1b600be6f6dac796b37422fe89c4e3e994 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-event-event.fa63b5a1.js @@ -0,0 +1 @@ +import{_ as e,L as a,o as t,c as l,w as n,i,a as o,d as s,z as r,b as u,e as d,r as p,F as c,f as m,g as h,t as f,aC as g,h as _,j as y,k as b,l as C,a5 as D}from"./index-389238f5.js";import{_ as q}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as x}from"./uni-link.d3d03343.js";import{_ as V}from"./uni-data-select.8acadad5.js";import{_ as v}from"./uni-stat-tabs.4355c19c.js";import{_ as T}from"./uni-pagination.018f31ea.js";import{_ as k}from"./uni-popup-dialog.39d6dc6f.js";import{s as w,d as z,g as j,p as P,m as S}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const U=[{title:"创建时间",field:"create_time",tooltip:"",formatter:""},{title:"事件ID",field:"event_key",stat:-1},{title:"事件参数",field:"param",tooltip:""},{title:"平台",field:"platform",tooltip:""},{title:"设备标识",field:"device_id",tooltip:""}];const I=e({data:()=>({fieldsMap:U,query:{appid:"",platform_id:"",uni_platform:"",channel_id:"",version_id:"",create_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,tableData:[],panelData:[],queryId:"",updateValue:"",channelData:[]}),computed:{channelQuery(){const e=this.query.platform_id;return w({platform_id:e})},versionQuery(){const{appid:e,uni_platform:a}=this.query;return w({appid:e,uni_platform:a})}},created(){this.debounceGet=z((()=>this.getAllData())),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,a,t,l){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=l.code},changeTimeRange(e,a){this.currentDateTab=a;const t=j(e),l=j(0)-1;this.query.create_time=[t,l]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTableData()},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTableData()},getAllData(e){this.getTableData(e)},getTableData(e=w(this.query,null,["uni_platform"])){const{pageCurrent:t}=this.options;this.loading=!0;a.database().collection("uni-stat-event-logs","uni-stat-app-platforms").where(e).orderBy("create_time","desc").skip((t-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:a,data:t}=e.result;this.tableData=[],this.options.total=a;for(const l of t)l.create_time=P(l.create_time,"dateTime"),l.platform=l.platform&&l.platform[0].name,S(U,l,l),this.tableData.push(l)})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getChannelData(e,t){this.query.channel_id="";const l=a.database(),n={};(e=e||this.query.appid)&&(n.appid=e),(t=t||this.query.platform_id)&&(n.platform_id=t);let i=l.collection("uni-stat-app-platforms").field("_id, name").getTemp(),o=l.collection("uni-stat-app-channels").where(n).field("_id, channel_name, create_time, platform_id").getTemp();l.collection(o,i).orderBy("platform_id","asc").get().then((e=>{let a=e.result.data,t=[];if(a.length>0){let e;for(let l in a)e=a[l].channel_name?a[l].channel_name:"默认",a[l].platform_id.length>0&&(e=a[l].platform_id[0].name+"-"+e),t.push({value:a[l]._id,text:e})}this.channelData=t})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,a,w,z,j,P){const S=m(h("uni-stat-breadcrumb"),q),U=m(h("uni-link"),x),I=i,Q=m(h("uni-data-select"),V),A=m(h("uni-stat-tabs"),v),M=m(h("uni-datetime-picker"),g),B=m(h("uni-th"),_),G=m(h("uni-tr"),y),L=m(h("uni-td"),b),O=m(h("uni-table"),C),R=m(h("uni-pagination"),T),F=m(h("uni-popup-dialog"),k),N=m(h("uni-popup"),D);return t(),l(I,{class:"fix-top-window"},{default:n((()=>[o(I,{class:"uni-header"},{default:n((()=>[o(S,{class:"uni-stat-breadcrumb-on-phone"}),o(I,{class:"uni-group"},{default:n((()=>[o(I,{class:"uni-sub-title hide-on-phone"},{default:n((()=>[s("分析用户自定义事件 "),o(U,{href:"https://ask.dcloud.net.cn/article/36304",text:"自定义事件说明>>"})])),_:1})])),_:1})])),_:1}),o(I,{class:"uni-container"},{default:n((()=>[o(I,{class:"uni-stat--x flex p-1015"},{default:n((()=>[o(Q,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:j.query.appid,"onUpdate:modelValue":a[0]||(a[0]=e=>j.query.appid=e),clear:!1},null,8,["modelValue"]),o(Q,{collection:"opendb-app-versions",where:P.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:j.query.version_id,"onUpdate:modelValue":a[1]||(a[1]=e=>j.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),o(I,{class:"uni-stat--x flex"},{default:n((()=>[o(A,{label:"日期选择",current:j.currentDateTab,mode:"date",onChange:P.changeTimeRange},null,8,["current","onChange"]),o(M,{type:"daterange",end:(new Date).getTime(),modelValue:j.query.create_time,"onUpdate:modelValue":a[2]||(a[2]=e=>j.query.create_time=e),returnType:"timestamp",clearIcon:!1,class:r(["uni-stat-datetime-picker",{"uni-stat__actived":j.currentDateTab<0&&!!j.query.create_time.length}]),onChange:P.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),o(I,{class:"uni-stat--x"},{default:n((()=>[o(A,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:j.query.platform_id,"onUpdate:modelValue":a[3]||(a[3]=e=>j.query.platform_id=e),onChange:P.changePlatform},null,8,["modelValue","onChange"]),j.query.platform_id&&-1===j.query.platform_id.indexOf("==")?(t(),l(Q,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:P.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:j.query.channel_id,"onUpdate:modelValue":a[4]||(a[4]=e=>j.query.channel_id=e)},null,8,["where","modelValue"])):u("",!0)])),_:1}),o(I,{class:"uni-stat--x p-m"},{default:n((()=>[o(O,{loading:j.loading,border:"",stripe:"",emptyText:e.$t("common.empty")},{default:n((()=>[o(G,null,{default:n((()=>[(t(!0),d(c,null,p(j.fieldsMap,((e,a)=>(t(),d(c,{key:a},[e.title?(t(),l(B,{key:a,align:"center"},{default:n((()=>[s(f(e.title),1)])),_:2},1024)):u("",!0)],64)))),128))])),_:1}),(t(!0),d(c,null,p(j.tableData,((e,a)=>(t(),l(G,{key:a},{default:n((()=>[(t(!0),d(c,null,p(j.fieldsMap,((a,i)=>(t(),l(L,{align:"center",key:i},{default:n((()=>[s(f(void 0!==e[a.field]?e[a.field]:"-"),1)])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),o(I,{class:"uni-pagination-box"},{default:n((()=>[o(R,{"show-icon":"","show-page-size":"","page-size":j.options.pageSize,current:j.options.pageCurrent,total:j.options.total,onChange:P.changePageCurrent,onPageSizeChange:P.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1}),o(N,{ref:"inputDialog",type:"dialog",maskClick:!0},{default:n((()=>[o(F,{ref:"inputClose",mode:"input",title:"请编辑名称",modelValue:j.updateValue,"onUpdate:modelValue":a[5]||(a[5]=e=>j.updateValue=e),placeholder:"请输入内容",onConfirm:e.editName},null,8,["modelValue","onConfirm"])])),_:1},512)])),_:1})}],["__scopeId","data-v-c61d4bff"]]);export{I as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-page-ent-page-ent.1839f596.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-page-ent-page-ent.1839f596.js new file mode 100644 index 0000000000000000000000000000000000000000..9a2f8abbf822f4fffa1dffaa3ef6282009c3e265 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-page-ent-page-ent.1839f596.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as i,c as l,w as n,i as o,a as s,d as r,z as u,b as d,e as p,r as c,F as m,f as h,g,am as f,t as _,aC as y,A as b,h as v,j as D,k as q,l as C}from"./index-389238f5.js";import{_ as x}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as T}from"./uni-data-select.8acadad5.js";import{_ as w}from"./uni-stat-tabs.4355c19c.js";import{_ as V}from"./uni-stat-panel.2e6a5931.js";import{_ as k}from"./uni-tooltip.58062496.js";import{_ as z}from"./uni-pagination.018f31ea.js";import{s as P,d as j,g as S,a as A,b as U,m as B}from"./util.63f19a41.js";const Q=[{title:"入口页",field:"path",tooltip:"设备进入应用访问的第一个页面,例如设备从页面1进入应用,跳转到页面2,1为入口页,而2不是"},{title:"页面名称",field:"title"},{title:"访问次数",field:"visit_times",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0},{title:"入口页次数",field:"entry_count",tooltip:"作为访问会话第一个访问页面(即着陆页)的次数",value:0},{title:"跳出率",field:"bounce_rate",formatter:"%%",tooltip:"只浏览一个页面便离开应用的次数占总启动次数的百分比",value:0,stat:"avg"},{title:"访问总时长",field:"duration",disabled:!0},{title:"次均停留时长",field:"avg_device_session_time",computed:"duration/visit_times",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0},{title:"设备平均停留时长 ",field:"avg_user_time",computed:"duration/visit_devices",formatter:":",tooltip:"平均每个设备停留在应用内的总时长,即应用停留总时长/访问设备数",value:0}];const F=e({data:()=>({fieldsMap:Q,query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,tableData:[],panelData:Q.filter((e=>e.hasOwnProperty("value"))),channelData:[]}),computed:{channelQuery(){const e=this.query.platform_id;return P({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return P({appid:e,uni_platform:t})}},created(){this.debounceGet=j((()=>this.getAllData())),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=S(e),i=S(0)-1;this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTableData()},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTableData()},getAllData(){this.getPanelData(),this.getTableData()},getTableData(e){e=P(this.query,null,["uni_platform"]);const{pageCurrent:a}=this.options;this.loading=!0;const i=t.database(),l=P({appid:this.query.appid}),n=i.collection("uni-stat-pages").where(l).getTemp(),o=i.collection("uni-stat-page-result").where(e+" && entry_count > 0").getTemp();i.collection(o,n).field(`${A(Q)}, stat_date, page_id`).groupBy("page_id").groupField(U(Q)).orderBy("entry_count","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;this.options.total=t,this.tableData=[];for(const i of a){const e=i.page_id;if(Array.isArray(e)){delete i.page_id;const t=e[0];if(t&&Object.keys(t).length)for(const e in t)"_id"!==e&&(i[e]=t[e])}B(Q,i,i),this.tableData.push(i)}})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getPanelData(e=P(this.query,null,["uni_platform"])){t.database().collection("uni-stat-page-result").where(e).field(A(Q)).groupBy("appid").groupField(U(Q)).orderBy("start_time","desc ").get().then((e=>{const t=e.result.data[0];this.panelData=[],this.panelData=B(Q,t)}))},navTo(e){a({url:`/pages/uni-stat/overview/overview?id=${e}`})},getChannelData(e,a){this.query.channel_id="";const i=t.database(),l={};(e=e||this.query.appid)&&(l.appid=e),(a=a||this.query.platform_id)&&(l.platform_id=a);let n=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),o=i.collection("uni-stat-app-channels").where(l).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(o,n).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,a,P,j,S){const A=h(g("uni-stat-breadcrumb"),x),U=o,B=h(g("uni-data-select"),T),Q=h(g("uni-stat-tabs"),w),F=h(g("uni-datetime-picker"),y),I=h(g("uni-stat-panel"),V),M=h(g("uni-icons"),b),O=h(g("uni-tooltip"),k),$=h(g("uni-th"),v),G=h(g("uni-tr"),D),L=h(g("uni-td"),q),R=h(g("uni-table"),C),E=h(g("uni-pagination"),z);return i(),l(U,{class:"fix-top-window"},{default:n((()=>[s(U,{class:"uni-header"},{default:n((()=>[s(A,{class:"uni-stat-breadcrumb-on-phone"}),s(U,{class:"uni-group"},{default:n((()=>[s(U,{class:"uni-sub-title hide-on-phone"},{default:n((()=>[r("入口页数据分析")])),_:1})])),_:1})])),_:1}),s(U,{class:"uni-container"},{default:n((()=>[s(U,{class:"uni-stat--x flex p-1015"},{default:n((()=>[s(B,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:j.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>j.query.appid=e),clear:!1},null,8,["modelValue"]),s(B,{collection:"opendb-app-versions",where:S.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:j.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>j.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),s(U,{class:"uni-stat--x flex"},{default:n((()=>[s(Q,{label:"日期选择",current:j.currentDateTab,mode:"date",onChange:S.changeTimeRange},null,8,["current","onChange"]),s(F,{type:"daterange",end:(new Date).getTime(),modelValue:j.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>j.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:u(["uni-stat-datetime-picker",{"uni-stat__actived":j.currentDateTab<0&&!!j.query.start_time.length}]),onChange:S.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),s(U,{class:"uni-stat--x"},{default:n((()=>[s(Q,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:j.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>j.query.platform_id=e),onChange:S.changePlatform},null,8,["modelValue","onChange"]),j.query.platform_id&&-1===j.query.platform_id.indexOf("==")?(i(),l(B,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:S.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:j.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>j.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),s(I,{items:j.panelData},null,8,["items"]),s(U,{class:"uni-stat--x p-m"},{default:n((()=>[s(R,{loading:j.loading,border:"",stripe:"",emptyText:e.$t("common.empty")},{default:n((()=>[s(G,null,{default:n((()=>[(i(!0),p(m,null,c(j.fieldsMap,((e,t)=>(i(),p(m,{key:t},[e.title?(i(),l($,{key:t,align:"center"},{default:n((()=>[s(O,null,f({default:n((()=>[r(_(e.title)+" ",1),0===t&&e.tooltip?(i(),l(M,{key:0,type:"help",color:"#666"})):d("",!0)])),_:2},[0===t&&e.tooltip?{name:"content",fn:n((()=>[s(U,{class:"uni-stat-tooltip-s"},{default:n((()=>[r(_(e.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):d("",!0)],64)))),128))])),_:1}),(i(!0),p(m,null,c(j.tableData,((e,t)=>(i(),l(G,{key:t},{default:n((()=>[(i(!0),p(m,null,c(j.fieldsMap,((t,a)=>(i(),l(L,{align:0===a?"left":"center",key:a},{default:n((()=>[r(_(void 0!==e[t.field]?e[t.field]:"-"),1)])),_:2},1032,["align"])))),128))])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),s(U,{class:"uni-pagination-box"},{default:n((()=>[s(E,{"show-icon":"","show-page-size":"","page-size":j.options.pageSize,current:j.options.pageCurrent,total:j.options.total,onChange:S.changePageCurrent,onPageSizeChange:S.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-c412e863"]]);export{F as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-page-res-page-res.0a79bd49.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-page-res-page-res.0a79bd49.js new file mode 100644 index 0000000000000000000000000000000000000000..687d11518b181d2783912e8ccf2cb91982f6ae24 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-page-res-page-res.0a79bd49.js @@ -0,0 +1 @@ +import{_ as e,L as t,s as a,y as i,O as l,o as n,c as s,w as o,i as r,a as u,d,z as p,b as c,e as m,r as h,F as f,f as g,g as _,am as y,t as b,aC as D,A as v,h as q,j as C,k as x,l as T,a5 as V}from"./index-389238f5.js";import{_ as k}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as w}from"./uni-data-select.8acadad5.js";import{_ as z}from"./uni-stat-tabs.4355c19c.js";import{_ as P}from"./uni-stat-panel.2e6a5931.js";import{_ as j}from"./uni-tooltip.58062496.js";import{_ as S}from"./uni-pagination.018f31ea.js";import{_ as U}from"./uni-popup-dialog.39d6dc6f.js";import{s as A,d as I,g as B,a as O,b as Q,m as F}from"./util.63f19a41.js";const M=[{title:"受访页",field:"path",tooltip:"设备进入应用访问的所有页面,例如设备从页面1进入应用,跳转到页面2,1,2均为受访页",stat:-1},{title:"页面名称",field:"title",stat:-1},{title:"访问次数",field:"visit_times",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问;",value:0},{title:"退出页次数",field:"exit_times",tooltip:"作为访问会话最后一个访问页面(即离开页)的次数",value:0},{title:"退出率",field:"exitRate",computed:"exit_times/visit_times",formatter:"%",tooltip:"在此页面,选择离开应用占此页面访问次数的比例",stat:-1},{title:"访问总时长",field:"duration",disabled:!0},{title:"次均停留时长",field:"avg_device_session_time",computed:"duration/visit_times",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0},{title:"设备平均停留时长",field:"avg_user_time",computed:"duration/visit_devices",formatter:":",tooltip:"平均每个设备停留在应用内的总时长,即应用停留总时长/访问设备数",value:0},{title:"分享次数",field:"share_count",tooltip:"页面被分享成功的次数",value:0}];const R=e({data:()=>({fieldsMap:M,query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,tableData:[],panelData:M.filter((e=>e.hasOwnProperty("value"))),queryId:"",updateValue:"",channelData:[]}),computed:{channelQuery(){const e=this.query.platform_id;return A({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return A({appid:e,uni_platform:t})}},created(){this.debounceGet=I((()=>this.getAllData())),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=B(e),i=B(0)-1;this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTableData(this.query)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTableData()},getAllData(){this.getPanelData(),this.getTableData()},getTableData(e){e=A(this.query,null,["uni_platform"]);const{pageCurrent:a}=this.options;this.loading=!0;const i=t.database(),l=A({appid:this.query.appid}),n=i.collection("uni-stat-pages").where(l).field("_id, title, path").getTemp(),s=i.collection("uni-stat-page-result").where(e).getTemp();i.collection(s,n).field(`${O(M)}, stat_date, page_id`).groupBy("page_id").groupField(Q(M)).orderBy("visit_times","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;this.options.total=t,this.tableData=[];for(const i of a){const e=i.page_id;if(Array.isArray(e)){delete i.page_id;const t=e[0];if(t&&Object.keys(t).length)for(const e in t)"_id"!==e&&(i[e]=t[e])}F(M,i,i),this.tableData.push(i)}})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getPanelData(e=A(this.query,null,["uni_platform"])){t.database().collection("uni-stat-page-result").where(e).field(O(M)).groupBy("appid").groupField(Q(M)).orderBy("start_time","desc ").get().then((e=>{const t=e.result.data[0];this.panelData=[],this.panelData=F(M,t)}))},inputDialogToggle(e,t){this.queryId=e,this.updateValue=t,this.$refs.inputDialog.open()},editName(e){t.database().collection("uni-stat-pages").where({url:this.queryId}).update({title:e}).then((e=>{a({title:"修改成功"}),this.getTableData()})).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))},getChannelData(e,a){this.query.channel_id="";const i=t.database(),l={};(e=e||this.query.appid)&&(l.appid=e),(a=a||this.query.platform_id)&&(l.platform_id=a);let n=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),s=i.collection("uni-stat-app-channels").where(l).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(s,n).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,a,i,l,A){const I=g(_("uni-stat-breadcrumb"),k),B=r,O=g(_("uni-data-select"),w),Q=g(_("uni-stat-tabs"),z),F=g(_("uni-datetime-picker"),D),M=g(_("uni-stat-panel"),P),R=g(_("uni-icons"),v),$=g(_("uni-tooltip"),j),G=g(_("uni-th"),q),L=g(_("uni-tr"),C),N=g(_("uni-td"),x),E=g(_("uni-table"),T),H=g(_("uni-pagination"),S),J=g(_("uni-popup-dialog"),U),K=g(_("uni-popup"),V);return n(),s(B,{class:"fix-top-window"},{default:o((()=>[u(B,{class:"uni-header"},{default:o((()=>[u(I,{class:"uni-stat-breadcrumb-on-phone"}),u(B,{class:"uni-group"},{default:o((()=>[u(B,{class:"uni-sub-title hide-on-phone"},{default:o((()=>[d("受访页数据分析")])),_:1})])),_:1})])),_:1}),u(B,{class:"uni-container"},{default:o((()=>[u(B,{class:"uni-stat--x flex p-1015"},{default:o((()=>[u(O,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:l.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>l.query.appid=e),clear:!1},null,8,["modelValue"]),u(O,{collection:"opendb-app-versions",where:A.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:l.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>l.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),u(B,{class:"uni-stat--x flex"},{default:o((()=>[u(Q,{label:"日期选择",current:l.currentDateTab,mode:"date",onChange:A.changeTimeRange},null,8,["current","onChange"]),u(F,{type:"daterange",end:(new Date).getTime(),modelValue:l.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>l.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:p(["uni-stat-datetime-picker",{"uni-stat__actived":l.currentDateTab<0&&!!l.query.start_time.length}]),onChange:A.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),u(B,{class:"uni-stat--x"},{default:o((()=>[u(Q,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:l.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>l.query.platform_id=e),onChange:A.changePlatform},null,8,["modelValue","onChange"]),l.query.platform_id&&-1===l.query.platform_id.indexOf("==")?(n(),s(O,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:A.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:l.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>l.query.channel_id=e)},null,8,["where","modelValue"])):c("",!0)])),_:1}),u(M,{items:l.panelData},null,8,["items"]),u(B,{class:"uni-stat--x p-m"},{default:o((()=>[u(E,{loading:l.loading,border:"",stripe:"",emptyText:e.$t("common.empty")},{default:o((()=>[u(L,null,{default:o((()=>[(n(!0),m(f,null,h(l.fieldsMap,((e,t)=>(n(),m(f,{key:t},[e.title?(n(),s(G,{key:t,align:"center"},{default:o((()=>[u($,null,y({default:o((()=>[d(b(e.title)+" ",1),0===t&&e.tooltip?(n(),s(R,{key:0,type:"help",color:"#666"})):c("",!0)])),_:2},[0===t&&e.tooltip?{name:"content",fn:o((()=>[u(B,{class:"uni-stat-tooltip-s"},{default:o((()=>[d(b(e.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):c("",!0)],64)))),128))])),_:1}),(n(!0),m(f,null,h(l.tableData,((e,t)=>(n(),s(L,{key:t},{default:o((()=>[(n(!0),m(f,null,h(l.fieldsMap,((t,a)=>(n(),m(f,{key:a},[1===a?(n(),s(N,{key:t.field,class:"uni-stat-edit--x"},{default:o((()=>[d(b(void 0!==e[t.field]?e[t.field]:"-")+" ",1),u(R,{type:"compose",color:"#2979ff",size:"25",class:"uni-stat-edit--btn",onClick:t=>A.inputDialogToggle(e.path,e.title)},null,8,["onClick"])])),_:2},1024)):(n(),s(N,{key:t.field,align:0===a?"left":"center"},{default:o((()=>[d(b(void 0!==e[t.field]?e[t.field]:"-"),1)])),_:2},1032,["align"]))],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),u(B,{class:"uni-pagination-box"},{default:o((()=>[u(H,{"show-icon":"","show-page-size":"","page-size":l.options.pageSize,current:l.options.pageCurrent,total:l.options.total,onChange:A.changePageCurrent,onPageSizeChange:A.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1}),u(K,{ref:"inputDialog",type:"dialog",maskClick:!0},{default:o((()=>[u(J,{ref:"inputClose",mode:"input",title:"请编辑名称",modelValue:l.updateValue,"onUpdate:modelValue":t[5]||(t[5]=e=>l.updateValue=e),placeholder:"请输入内容",onConfirm:A.editName},null,8,["modelValue","onConfirm"])])),_:1},512)])),_:1})}],["__scopeId","data-v-b4f0553c"]]);export{R as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-funnel-funnel.e441fac2.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-funnel-funnel.e441fac2.js new file mode 100644 index 0000000000000000000000000000000000000000..15ee456ac9952c56c7e1601c46c3bd2f8c6dec80 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-funnel-funnel.e441fac2.js @@ -0,0 +1 @@ +import{_ as e}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as t,L as a,o as s,c as i,w as r,a as n,d,t as l,b as o,i as u,f as m,g as c,aC as h,B as p}from"./index-389238f5.js";import{_ as f}from"./uni-data-select.8acadad5.js";import{_ as b}from"./uni-stat-tabs.4355c19c.js";import{d as g,s as y,a as _,b as C,n as T,p as x,g as D}from"./util.63f19a41.js";import{t as q}from"./timeUtil.4078d62f.js";import{_ as v}from"./qiun-data-charts.a402b569.js";import"./uni-tooltip.58062496.js";const F=[{title:"活跃设备数",field:"activity_device_count",tooltip:"统计时间内,访问设备数,一台设备多次访问被计为一台(包含未登录的用户)。",formatter:",",value:0,contrast:0,stat:"sum"},{title:"活跃用户数",field:"activity_user_count",tooltip:"活跃用户数:统计时间内,访问人数,一人多次访问被计为一人(只统计已登录的用户)。",formatter:",",value:0,contrast:0,stat:"sum"},{title:"支付用户数",field:"pay_user_count",tooltip:"统计时间内,成功支付的人数(不剔除退款订单)(只统计已登录的用户)。",formatter:",",value:0,contrast:0,stat:"sum"}];const M=t({components:{funnelChart:t({props:{query:{type:[Object],default:function(){return{}}}},data:()=>({tableName:"uni-stat-pay-result",fieldsMap:F,chartData:{},errorMessage:"",notData:!1,opts:{color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"custom",minSize:20}}},dateTabs:{time:Date.now(),timeStr:"",index:0,list:[{_id:"day",name:"日维度"},{_id:"week",name:"周维度"},{_id:"month",name:"月维度"}]}}),created(){this.getCloudDataDebounce=g((()=>{this.getCloudData()}),400),this.getCloudDataDebounce()},methods:{calcPercentage:(e,t)=>t>0?parseFloat((e/t*100).toFixed(2)):0,getCloudData(){let e=this.query;if(!e.appid)return void(this.errorMessage="请先选择应用");let t=this.getWhere(),s={...e,...t};s=y(s,!1,["uni_platform"]);a.database().collection(this.tableName).where(s).field(`${_(F)}, dimension, stat_date.date_str as stat_time, start_time`).groupBy("null").groupField(C(F)).get().then((e=>{let t=e.result.data;if(!t.length)return void(this.errorMessage="暂无数据");this.errorMessage="",t.map((e=>{for(let t in e)t.indexOf("_amount")>1&&(e[t]=Number((e[t]/100).toFixed(2)))}));let{activity_device_count:a=0,activity_user_count:s=0,pay_user_count:i=0}=t[0]||{};this.notData=!(a||s||i);let r={series:[{data:[{name:"活跃设备数量",value:a,centerText:`${a}`,labelText:"活跃设备数"},{name:"活跃用户数量",value:s,centerText:`${s}`,labelText:`活跃用户数(用户转化率:${this.calcPercentage(s,a)}%)`},{name:"支付用户数量",value:i,centerText:`${i}`,labelText:`支付用户数(支付转化率:${this.calcPercentage(i,s)}%)`}]}]};this.chartData=r}))},dateTabsChange(e,t){this.dateTabs.index=t,this.getCloudData()},datePickerChange(e){this.dateTabs.time=e,this.getCloudData()},getWhere(){let e=this.dateTabs.time,t=this.dateTabs.list[this.dateTabs.index]._id||"day",a=[];if("day"===t){let{startTime:t,endTime:s}=q.getOffsetStartAndEnd("day",0,e);a=[t,s]}else if("week"===t){let{startTime:t,endTime:s}=q.getOffsetStartAndEnd("week",0,e);a=[t,s]}else if("month"===t){let{startTime:t,endTime:s}=q.getOffsetStartAndEnd("month",0,e);a=[t,s]}return this.dateTabs.timeStr=`${q.timeFormat(a[0])} ~ ${q.timeFormat(a[1])}`,{dimension:t,start_time:a}}},watch:{query:{deep:!0,handler(e){this.getCloudDataDebounce()}}},computed:{}},[["render",function(e,t,a,p,f,g){const y=u,_=m(c("uni-stat-tabs"),b),C=m(c("uni-datetime-picker"),h),T=m(c("qiun-data-charts"),v);return s(),i(y,{class:"uni-stat--x p-m"},{default:r((()=>[n(y,{class:"uni-stat-card-header"},{default:r((()=>[d("漏斗分析")])),_:1}),n(y,{class:"flex"},{default:r((()=>[n(_,{type:"box",current:f.dateTabs.index,tabs:f.dateTabs.list,onChange:g.dateTabsChange},null,8,["current","tabs","onChange"]),n(C,{type:"date",modelValue:f.dateTabs.time,"onUpdate:modelValue":t[0]||(t[0]=e=>f.dateTabs.time=e),end:Date.now(),"return-type":"timestamp","clear-icon":!1,class:"uni-stat-datetime-picker",onChange:g.datePickerChange},null,8,["modelValue","end","onChange"]),f.dateTabs.timeStr?(s(),i(y,{key:0,class:"uni-stat--tips"},{default:r((()=>[d("当前时间范围:"+l(f.dateTabs.timeStr),1)])),_:1})):o("",!0)])),_:1}),f.notData?(s(),i(y,{key:1,class:"uni-charts-box flex center"},{default:r((()=>[n(y,null,{default:r((()=>[d("暂无数据")])),_:1})])),_:1})):(s(),i(y,{key:0,class:"uni-charts-box"},{default:r((()=>[n(T,{type:"funnel",chartData:f.chartData,opts:f.opts,errorMessage:f.errorMessage},null,8,["chartData","opts","errorMessage"])])),_:1}))])),_:1})}],["__scopeId","data-v-77807d93"]]),trendChart:t({props:{query:{type:[Object],default:function(){return{}}}},data:()=>({tableName:"uni-stat-pay-result",chartData:{},errorMessage:"",opts:{color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[15,15,0,15],legend:{},enableScroll:!0,xAxis:{disableGrid:!0,itemCount:24,fontSize:12},yAxis:{gridType:"dash",dashLength:2,data:[{tofix:2,unit:"%"}]},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}}},dateTabs:{time:[],timeStr:"",index:0,list:[{_id:7,name:"最近七天",dimension:"day"},{_id:30,name:"最近30天",dimension:"day"},{_id:90,name:"最近90天",dimension:"day"},{_id:372,name:"月维度",dimension:"month"},{_id:1116,name:"季维度",dimension:"quarter"},{_id:4392,name:"年维度",dimension:"year"}]},statTabs:{index:0,list:[{_id:1,name:"支付转化率"}]},queryMode:0}),created(){this.getCloudDataDebounce=g((()=>{this.getCloudData()}),300),this.getCloudDataDebounce()},methods:{getCloudData(e={}){let t=this.query;if(!t.appid)return void(this.errorMessage="请先选择应用");this.errorMessage="";let s=this.getWhere(),i={...t,...s};i=y(i,!0,["uni_platform"]);a.database().collection(this.tableName).where(i).field(`${_(F)}, start_time`).groupBy("start_time, dimension").groupField(C(F)).orderBy("start_time","asc").limit(100).get({getCount:!0}).then((e=>{let{count:t,data:a}=e.result;a=T(a,s,F),a.map(((e,t)=>{e.value=Number((e.pay_user_count/e.activity_user_count*100).toFixed(2)),isNaN(e.value)&&(e.value=0)})),this.setChartData(a,s.dimension)})).catch((e=>{console.error(e)})).finally((()=>{}))},setChartData(e,t){let a={categories:[],series:[{name:"支付转化率",data:[]}]};for(const s of e){const e=this.formatDate(s.start_time,t);a.categories.push(e);let i=Number(s.value);a.series[0].data.push(i)}this.chartData=a},formatDate(e,t){let a=new Date(e),s=a.getFullYear(),i=a.getMonth()+1;a.getDate();let r=a.getHours(),n=Math.floor((a.getMonth()+3)/3);return i<10&&(i="0"+i),"hour"===t?`${r}时`:"month"===t?`${s}-${i}`:"quarter"===t?`${s}/Q${n}`:"year"===t?`${s}`:x(a)},datePickerChange(e){this.dateTabs.time=e,this.queryMode=1,this.getCloudData()},dateTabsChange(e,t){this.dateTabs.index=t,this.queryMode=0,this.getCloudData()},statTabsChange(e,t,a){this.statTabs.index=t,this.getCloudData({field:e,name:a})},getWhere(){let e=[],t=this.dateTabs.list[this.dateTabs.index]||{};if("number"==typeof t._id&&0===this.queryMode){let a=D(t._id),s=q.getOffsetStartAndEnd("day",0).endTime;1==t._id&&(s=q.getOffsetStartAndEnd("day",0,a).endTime),e=[a,s]}else this.dateTabs.time&&(e=this.dateTabs.time);let a=t.dimension||"day";return this.dateTabs.timeStr=`${q.timeFormat(e[0])} ~ ${q.timeFormat(e[1])}`,this.dateTabs.time=e,{dimension:a,start_time:e}}},watch:{query:{deep:!0,handler(e){this.getCloudDataDebounce()}}},computed:{}},[["render",function(e,t,a,p,f,g){const y=u,_=m(c("uni-stat-tabs"),b),C=m(c("uni-datetime-picker"),h),T=m(c("qiun-data-charts"),v);return s(),i(y,{class:"uni-stat--x p-m"},{default:r((()=>[n(y,{class:"uni-stat-card-header"},{default:r((()=>[d("趋势图")])),_:1}),n(y,{class:"flex"},{default:r((()=>[n(_,{type:"box",current:f.dateTabs.index,tabs:f.dateTabs.list,onChange:g.dateTabsChange},null,8,["current","tabs","onChange"]),n(C,{type:"daterange",modelValue:f.dateTabs.time,"onUpdate:modelValue":t[0]||(t[0]=e=>f.dateTabs.time=e),end:Date.now(),"return-type":"timestamp","clear-icon":!1,class:"uni-stat-datetime-picker",onChange:g.datePickerChange},null,8,["modelValue","end","onChange"]),f.dateTabs.timeStr?(s(),i(y,{key:0,class:"uni-stat--tips"},{default:r((()=>[d("当前时间范围:"+l(f.dateTabs.timeStr),1)])),_:1})):o("",!0)])),_:1}),n(_,{type:"box",current:f.statTabs.index,tabs:f.statTabs.list,class:"mb-l",onChange:g.statTabsChange},null,8,["current","tabs","onChange"]),n(y,{class:"uni-charts-box"},{default:r((()=>[n(T,{type:"area",chartData:f.chartData,opts:f.opts,errorMessage:f.errorMessage},null,8,["chartData","opts","errorMessage"])])),_:1})])),_:1})}]])},data:()=>({tableName:"uni-stat-pay-result",query:{dimension:"hour",appid:"",platform_id:"",uni_platform:"",version_id:"",start_time:[]},loading:!1}),onLoad(e){const{appid:t}=e;t&&(this.query.appid=t)},created(){},methods:{platformChange(e,t,a,s){this.query.version_id=0,this.query.uni_platform=s.code}},watch:{},computed:{versionQuery(){const{appid:e,uni_platform:t}=this.query;return y({appid:e,uni_platform:t})},channelQuery(){const{appid:e,platform_id:t}=this.query;return y({appid:e,platform_id:t})}}},[["render",function(t,a,d,l,h,g){const y=m(c("uni-stat-breadcrumb"),e),_=u,C=m(c("uni-data-select"),f),T=m(c("uni-stat-tabs"),b),x=p("funnelChart"),D=p("trendChart");return s(),i(_,{class:"fix-top-window"},{default:r((()=>[n(_,{class:"uni-header"},{default:r((()=>[n(y,{class:"uni-stat-breadcrumb-on-phone"})])),_:1}),n(_,{class:"uni-container"},{default:r((()=>[n(_,{class:"uni-stat--x flex p-1015"},{default:r((()=>[n(C,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc","def-item":1,label:"应用选择",modelValue:h.query.appid,"onUpdate:modelValue":a[0]||(a[0]=e=>h.query.appid=e),clear:!1},null,8,["modelValue"]),n(C,{collection:"opendb-app-versions",where:g.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:h.query.version_id,"onUpdate:modelValue":a[1]||(a[1]=e=>h.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),n(_,{class:"uni-stat--x"},{default:r((()=>[n(T,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:h.query.platform_id,"onUpdate:modelValue":a[2]||(a[2]=e=>h.query.platform_id=e),onChange:g.platformChange},null,8,["modelValue","onChange"]),h.query.platform_id&&-1===h.query.platform_id.indexOf("==")?(s(),i(C,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:g.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:h.query.channel_id,"onUpdate:modelValue":a[3]||(a[3]=e=>h.query.channel_id=e)},null,8,["where","modelValue"])):o("",!0)])),_:1}),n(x,{query:h.query},null,8,["query"]),n(D,{query:h.query},null,8,["query"])])),_:1})])),_:1})}]]);export{M as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-list-list.a97675d1.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-list-list.a97675d1.js new file mode 100644 index 0000000000000000000000000000000000000000..25264290e388f2fba5eabe3054c8318ac6bd86f6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-list-list.a97675d1.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,s as r,o as n,c as l,w as i,i as o,a as d,d as s,e as u,r as f,F as p,t as _,f as c,g as h,q as g,h as m,j as y,k as C,p as b,l as x,a5 as F}from"./index-389238f5.js";import{_ as v}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as D}from"./download-excel.9236b5ca.js";import{_ as S}from"./uni-stat-tabs.4355c19c.js";import{_ as $}from"./uni-dateformat.b1c4ea95.js";import{_ as V}from"./uni-pagination.018f31ea.js";import{_ as k}from"./unicloud-db.dfa2c90d.js";import{_ as w}from"./uni-easyinput.a1fc57c1.js";import{_ as I}from"./uni-forms-item.69698491.js";import{_ as j}from"./uni-forms.bc4bcf6e.js";import{e as q,f as z}from"./uni-pay-orders.57c55841.js";import{s as T}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const U=t.importObject("uni-pay-co"),E=t.database(),L={ascending:"asc",descending:"desc"};const R=e({data:()=>({collectionList:"uni-pay-orders",query:{appid:"",platform_id:"",uni_platform:"",version:"",pay_date:[]},where:"",orderby:"create_date desc",orderByFieldName:"",selectedIndexs:[],filterDefaultValueUserId:"",refundFormData:{out_trade_no:"",max_refund_fee:"",refund_fee:"",refund_desc:""},refundFormRules:{refund_fee:{rules:[{required:!0,errorMessage:"退款金额必须>0"},{minimum:.01,maximum:0,errorMessage:"最大可退 {maximum} 元"}]},refund_desc:{rules:[{required:!0,errorMessage:"请输入退款原因"}]}},options:{pageSize:20,pageCurrent:1,filterData:{provider_localdata:[{text:"微信支付",value:"wxpay"},{text:"支付宝",value:"alipay"},{text:"苹果应用内支付",value:"appleiap"}],status_localdata:[{text:"已关闭",value:-1},{text:"未支付",value:0},{text:"已支付",value:1},{text:"已部分退款",value:2},{text:"已全额退款",value:3}]},...q},imageStyles:{width:64,height:64},exportExcel:{filename:"uni-pay-orders.xls",type:"xls",fields:{"用户ID":"user_id","用户昵称":"nickname","支付供应商":"provider","支付方式":"provider_pay_type","应用平台":"uni_platform","订单状态":"status","支付失败原因":"err_msg","订单类型":"type","业务系统订单号":"order_no","支付插件订单号":"out_trade_no","交易单号":"transaction_id","支付描述":"description","订单支付金额":"total_fee","订单退款金额":"refund_fee","当前退款笔数":"refund_count","退款详情":"refund_list","回调状态":"user_order_success","创建时间":"create_date","支付时间":"pay_date","异步通知时间":"notify_date","取消时间":"cancel_date","开放平台appid":"provider_appid","DCloud AppId":"appid","设备ID":"device_id","客户端IP":"client_ip",openid:"openid"}},exportExcelData:[]}),onLoad(e){this._filter={},e.user_id&&(this.filterDefaultValueUserId=e.user_id,this.filterChange({filterType:"search",filter:e.user_id},"user_id"))},onReady(){this.$refs.udb.loadData()},methods:{onqueryload(e){this.exportExcelData=e},getWhere(){let e="",{pay_date:t,appid:a,version:r,uni_platform:n}=this.query;return t&&2==t.length&&(e+=` && pay_date>=${t[0]} && pay_date<=${t[1]}`),a&&(e+=` && appid=='${a}'`),r&&(e+=` && stat_data.app_version=='${r}'`),n&&(e+=` && stat_data.platform=='${n}'`),e=e.substring(3).trim(),e},search(){const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){a({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},refundPopup(e,t){if(e){let{total_fee:e=0,refund_fee:a=0,out_trade_no:r}=t,n=Number(((e-a)/100).toFixed(2));this.refundFormData.max_refund_fee=n,this.refundFormData.refund_fee=n,this.refundFormData.out_trade_no=r,this.refundFormRules.refund_fee.rules[1].maximum=n,this.$refs.popup.open()}else this.refundFormData.max_refund_fee="",this.refundFormData.refund_fee="",this.refundFormData.out_trade_no="",this.refundFormRules.refund_fee.rules[1].maximum=0,this.$refs.popup.close()},async confirmRefund(e){let{total_fee:t=0,refund_fee:a=0,out_trade_no:n,refund_desc:l}=e;e.refund_fee=Number(e.refund_fee.toFixed(2)),this.$refs.refundForm.validate().then((async t=>{let i=Number(a);if(isNaN(i)||i<=0)return void r({title:"请输入正确的退款金额",icon:"none",success:()=>{setTimeout((()=>{this.confirmRefund(e)}),500)}});let o={out_trade_no:n,refund_fee:parseInt(100*i),refund_desc:l};(await U.refund(o)).errCode||(this.refundPopup(!1),this.loadData(!1))})).catch((e=>{}))},sortChange(e,t){this.orderByFieldName=t,e.order?this.orderby=t+" "+L[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,t,a){a&&e.filter&&"object"==typeof e.filter&&("number"==typeof e.filter[0]&&(e.filter[0]=e.filter[0]/a),"number"==typeof e.filter[1]&&(e.filter[1]=e.filter[1]/a)),this._filter[t]={type:e.filterType,value:e.filter};let r=z(this._filter,E.command);Object.keys(r).length?this.where=r:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))},platformChange(e,t,a,r){this.query.version=0,this.query.uni_platform=r.code},nameFormat:e=>e.user_id?e.nickname?`${e.user_id}(${e.nickname})`:e.user_id:"匿名用户",pageToUser(e){let{user_id:t}=e;a({url:`/pages/system/user/list?id=${t}`})}},watch:{query:{deep:!0,handler(e){this.search()}}},computed:{versionQuery(){const{appid:e,uni_platform:t}=this.query;return T({appid:e,uni_platform:t})}}},[["render",function(e,t,a,r,q,z){const T=c(h("uni-stat-breadcrumb"),v),U=o,E=g,L=c(h("download-excel"),D),R=c(h("uni-stat-tabs"),S),N=c(h("uni-th"),m),P=c(h("uni-tr"),y),M=c(h("uni-td"),C),O=b,W=c(h("uni-dateformat"),$),A=c(h("uni-table"),x),B=c(h("uni-pagination"),V),Q=c(h("unicloud-db"),k),G=c(h("uni-easyinput"),w),H=c(h("uni-forms-item"),I),J=c(h("uni-forms"),j),K=c(h("uni-popup"),F);return n(),l(U,null,{default:i((()=>[d(U,{class:"uni-header"},{default:i((()=>[d(U,{class:"uni-group"},{default:i((()=>[d(T)])),_:1}),d(U,{class:"uni-group"},{default:i((()=>[d(E,{class:"uni-button",type:"default",size:"mini",onClick:z.search},{default:i((()=>[s("搜索")])),_:1},8,["onClick"]),d(L,{class:"hide-on-phone",fields:q.exportExcel.fields,data:q.exportExcelData,type:q.exportExcel.type,name:q.exportExcel.filename},{default:i((()=>[d(E,{class:"uni-button",type:"primary",size:"mini"},{default:i((()=>[s("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),d(U,{class:"uni-container"},{default:i((()=>[d(U,{class:"uni-stat--x"},{default:i((()=>[d(R,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:q.query.platform,"onUpdate:modelValue":t[0]||(t[0]=e=>q.query.platform=e),onChange:z.platformChange},null,8,["modelValue","onChange"])])),_:1}),d(Q,{ref:"udb",collection:q.collectionList,field:"user_id,nickname,provider,provider_pay_type,uni_platform,status,type,order_no,out_trade_no,transaction_id,device_id,client_ip,openid,description,err_msg,total_fee,refund_fee,refund_count,refund_list,provider_appid,appid,user_order_success,create_date,pay_date,notify_date,cancel_date",where:q.where,"page-data":"replace",orderby:q.orderby,getcount:!0,"page-size":q.options.pageSize,"page-current":q.options.pageCurrent,options:q.options,loadtime:"manual",onLoad:z.onqueryload},{default:i((({data:e,pagination:a,loading:r,error:o,options:c})=>[d(A,{ref:"table",loading:r,emptyText:o.message||r?"请求中...":"没有更多数据",border:"",stripe:"",type:"",onSelectionChange:z.selectionChange,style:{"min-height":"900px"}},{default:i((()=>[d(P,null,{default:i((()=>[d(N,{align:"center"},{default:i((()=>[s("序号")])),_:1}),d(N,{ref:"user_id",align:"center",filterDefaultValue:q.filterDefaultValueUserId,"filter-type":"search",onFilterChange:t[1]||(t[1]=e=>z.filterChange(e,"user_id")),sortable:"",onSortChange:t[2]||(t[2]=e=>z.sortChange(e,"user_id"))},{default:i((()=>[s("用户")])),_:1},8,["filterDefaultValue"]),d(N,{align:"center","filter-type":"select","filter-data":c.filterData.provider_localdata,onFilterChange:t[3]||(t[3]=e=>z.filterChange(e,"provider"))},{default:i((()=>[s("支付供应商")])),_:2},1032,["filter-data"]),d(N,{align:"center","filter-type":"search",onFilterChange:t[4]||(t[4]=e=>z.filterChange(e,"provider_pay_type")),sortable:"",onSortChange:t[5]||(t[5]=e=>z.sortChange(e,"provider_pay_type"))},{default:i((()=>[s("支付方式")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[6]||(t[6]=e=>z.filterChange(e,"uni_platform")),sortable:"",onSortChange:t[7]||(t[7]=e=>z.sortChange(e,"uni_platform"))},{default:i((()=>[s("应用平台")])),_:1}),d(N,{align:"center","filter-type":"select","filter-data":c.filterData.status_localdata,onFilterChange:t[8]||(t[8]=e=>z.filterChange(e,"status"))},{default:i((()=>[s("订单状态")])),_:2},1032,["filter-data"]),d(N,{align:"center","filter-type":"search",onFilterChange:t[9]||(t[9]=e=>z.filterChange(e,"type")),sortable:"",onSortChange:t[10]||(t[10]=e=>z.sortChange(e,"type"))},{default:i((()=>[s("订单类型")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[11]||(t[11]=e=>z.filterChange(e,"order_no")),sortable:"",onSortChange:t[12]||(t[12]=e=>z.sortChange(e,"order_no"))},{default:i((()=>[s("业务系统订单号")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[13]||(t[13]=e=>z.filterChange(e,"out_trade_no")),sortable:"",onSortChange:t[14]||(t[14]=e=>z.sortChange(e,"out_trade_no"))},{default:i((()=>[s("支付插件订单号")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[15]||(t[15]=e=>z.filterChange(e,"transaction_id")),sortable:"",onSortChange:t[16]||(t[16]=e=>z.sortChange(e,"transaction_id"))},{default:i((()=>[s("交易单号")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[17]||(t[17]=e=>z.filterChange(e,"description")),sortable:"",onSortChange:t[18]||(t[18]=e=>z.sortChange(e,"description"))},{default:i((()=>[s("支付描述")])),_:1}),d(N,{align:"center","filter-type":"range",onFilterChange:t[19]||(t[19]=e=>z.filterChange(e,"total_fee",.01)),sortable:"",onSortChange:t[20]||(t[20]=e=>z.sortChange(e,"total_fee"))},{default:i((()=>[s("订单支付金额")])),_:1}),d(N,{align:"center","filter-type":"range",onFilterChange:t[21]||(t[21]=e=>z.filterChange(e,"refund_fee",.01)),sortable:"",onSortChange:t[22]||(t[22]=e=>z.sortChange(e,"refund_fee"))},{default:i((()=>[s("订单退款金额")])),_:1}),d(N,{align:"center","filter-type":"range",onFilterChange:t[23]||(t[23]=e=>z.filterChange(e,"refund_count")),sortable:"",onSortChange:t[24]||(t[24]=e=>z.sortChange(e,"refund_count"))},{default:i((()=>[s("当前退款笔数")])),_:1}),d(N,{align:"center",sortable:"",onSortChange:t[25]||(t[25]=e=>z.sortChange(e,"user_order_success"))},{default:i((()=>[s("回调状态")])),_:1}),d(N,{align:"center","filter-type":"timestamp",onFilterChange:t[26]||(t[26]=e=>z.filterChange(e,"create_date")),sortable:"",onSortChange:t[27]||(t[27]=e=>z.sortChange(e,"create_date"))},{default:i((()=>[s("创建时间")])),_:1}),d(N,{align:"center","filter-type":"timestamp",onFilterChange:t[28]||(t[28]=e=>z.filterChange(e,"pay_date")),sortable:"",onSortChange:t[29]||(t[29]=e=>z.sortChange(e,"pay_date"))},{default:i((()=>[s("支付时间")])),_:1}),d(N,{align:"center","filter-type":"timestamp",onFilterChange:t[30]||(t[30]=e=>z.filterChange(e,"cancel_date")),sortable:"",onSortChange:t[31]||(t[31]=e=>z.sortChange(e,"cancel_date"))},{default:i((()=>[s("取消时间")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[32]||(t[32]=e=>z.filterChange(e,"provider_appid")),sortable:"",onSortChange:t[33]||(t[33]=e=>z.sortChange(e,"provider_appid"))},{default:i((()=>[s("开放平台appid")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[34]||(t[34]=e=>z.filterChange(e,"appid")),sortable:"",onSortChange:t[35]||(t[35]=e=>z.sortChange(e,"appid"))},{default:i((()=>[s("DCloud AppId")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[36]||(t[36]=e=>z.filterChange(e,"device_id")),sortable:"",onSortChange:t[37]||(t[37]=e=>z.sortChange(e,"device_id"))},{default:i((()=>[s("设备ID")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[38]||(t[38]=e=>z.filterChange(e,"client_ip")),sortable:"",onSortChange:t[39]||(t[39]=e=>z.sortChange(e,"client_ip"))},{default:i((()=>[s("客户端IP")])),_:1}),d(N,{align:"center","filter-type":"search",onFilterChange:t[40]||(t[40]=e=>z.filterChange(e,"openid")),sortable:"",onSortChange:t[41]||(t[41]=e=>z.sortChange(e,"openid"))},{default:i((()=>[s("openid")])),_:1})])),_:2},1024),(n(!0),u(p,null,f(e,((e,t)=>(n(),l(P,{key:t},{default:i((()=>[d(M,{align:"center"},{default:i((()=>[s(_(parseInt(t+1+(a.current-1)*a.size)),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[d(O,{class:"text-btn",onClick:t=>z.pageToUser(e)},{default:i((()=>[s(_(z.nameFormat(e)),1)])),_:2},1032,["onClick"])])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(c.provider_valuetotext[e.provider]),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.provider_pay_type),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.uni_platform),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(c.status_valuetotext[e.status]),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.type),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.order_no),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.out_trade_no),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.transaction_id),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.description),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_((.01*e.total_fee).toFixed(2)),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_((.01*e.refund_fee).toFixed(2)),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.refund_count),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[!0===e.user_order_success?(n(),l(U,{key:0,style:{color:"#18bc37"}},{default:i((()=>[s("✔正常")])),_:1})):[-1,0].indexOf(e.status)>-1?(n(),l(U,{key:1},{default:i((()=>[s("-")])),_:1})):(n(),l(U,{key:2,style:{color:"#e43d33"}},{default:i((()=>[s("●异常")])),_:1}))])),_:2},1024),d(M,{align:"center"},{default:i((()=>[d(W,{threshold:[0,0],date:e.create_date},null,8,["date"])])),_:2},1024),d(M,{align:"center"},{default:i((()=>[d(W,{threshold:[0,0],date:e.pay_date},null,8,["date"])])),_:2},1024),d(M,{align:"center"},{default:i((()=>[d(W,{threshold:[0,0],date:e.cancel_date},null,8,["date"])])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.provider_appid),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.appid),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.device_id),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.client_ip),1)])),_:2},1024),d(M,{align:"center"},{default:i((()=>[s(_(e.openid),1)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),d(U,{class:"uni-pagination-box"},{default:i((()=>[d(B,{"show-icon":"","page-size":a.size,modelValue:a.current,"onUpdate:modelValue":e=>a.current=e,total:a.count,onChange:z.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1}),d(K,{ref:"popup",type:"center",animation:!1},{default:i((()=>[d(U,{style:{padding:"30px","background-color":"#ffffff",width:"500px"}},{default:i((()=>[d(U,{style:{"margin-bottom":"20px","text-align":"center","font-size":"20px","font-weight":"bold"}},{default:i((()=>[s("退款确认")])),_:1}),d(J,{ref:"refundForm",modelValue:q.refundFormData,"label-position":"left",labelWidth:"100px",rules:q.refundFormRules},{default:i((()=>[d(H,{label:"退款金额",name:"refund_fee"},{default:i((()=>[d(G,{type:"text",modelValue:q.refundFormData.refund_fee,"onUpdate:modelValue":t[42]||(t[42]=e=>q.refundFormData.refund_fee=e),modelModifiers:{number:!0},placeholder:"请输入退款金额",clearable:!1},null,8,["modelValue"]),d(U,{style:{color:"#666","margin-top":"5px","font-size":"12px"}},{default:i((()=>[s("最大可退:"+_(q.refundFormData.max_refund_fee),1)])),_:1})])),_:1}),d(H,{label:"退款原因",name:"refund_desc"},{default:i((()=>[d(G,{type:"textarea",modelValue:q.refundFormData.refund_desc,"onUpdate:modelValue":t[43]||(t[43]=e=>q.refundFormData.refund_desc=e),placeholder:"请输入退款原因",clearable:!1},null,8,["modelValue"])])),_:1}),d(E,{type:"warn",style:{width:"100px",height:"40px","font-size":"16px"},onClick:t[44]||(t[44]=e=>{z.confirmRefund(q.refundFormData)})},{default:i((()=>[s("确定")])),_:1})])),_:1},8,["modelValue","rules"])])),_:1})])),_:1},512)])),_:1})}],["__scopeId","data-v-c58737a6"]]);export{R as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-overview-overview.d14f3ca9.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-overview-overview.d14f3ca9.js new file mode 100644 index 0000000000000000000000000000000000000000..85f133e957acba7ebe3920831a3694c343348789 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-overview-overview.d14f3ca9.js @@ -0,0 +1 @@ +import{_ as t}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as e,L as a,o as n,c as l,w as i,a as s,d as r,e as d,r as o,F as u,i as m,f as c,g as _,am as p,t as f,h,j as y,A as g,k as b,l as D,aC as C,b as x,B as q}from"./index-389238f5.js";import{_ as T}from"./uni-data-select.8acadad5.js";import{_ as v}from"./uni-stat-tabs.4355c19c.js";import{d as $,s as w,a as M,b as k,l as A,g as O,p as V,n as E}from"./util.63f19a41.js";import{_ as S}from"./uni-tooltip.58062496.js";import{t as j}from"./timeUtil.4078d62f.js";import{_ as F}from"./qiun-data-charts.a402b569.js";const P=[{title:"订单金额",group:"total_amount",list:[{title:"下单金额",field:"create_total_amount",tooltip:"下单:统计时间内,下单金额(包含未支付订单和退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,trendChart:!0,multiple:.01},{title:"收款金额",field:"pay_total_amount",tooltip:"收款:统计时间内,成功支付的订单金额(包含退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,trendChart:!0,multiple:.01},{title:"退款金额",field:"refund_total_amount",tooltip:"退款:统计时间内,发生退款的金额。",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,multiple:.01}]},{title:"订单数量",group:"order_count",list:[{title:"下单数量",field:"create_order_count",tooltip:"下单:统计时间内,成功下单的订单笔数(包含未支付订单和退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0,trendChart:!0},{title:"收款数量",field:"pay_order_count",tooltip:"收款:统计时间内,成功支付的订单数(包含退款订单)。",formatter:"",value:"-",contrast:0,stat:"sum",fix:0,trendChart:!0},{title:"退款数量",field:"refund_order_count",tooltip:"退款:统计时间内,发生退款的订单数。",formatter:"",value:"-",contrast:0,stat:"sum",fix:0}]},{title:"用户数量",group:"user_count",list:[{title:"下单用户数",field:"create_user_count",tooltip:"下单:统计时间内,成功下单的客户数(包含未支付订单和退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0,trendChart:!0},{title:"收款用户数",field:"pay_user_count",tooltip:"收款:统计时间内,成功支付的用户数(包含退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0,trendChart:!0},{title:"退款用户数",field:"refund_user_count",tooltip:"退款:统计时间内,发生退款的用户数。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0}]},{title:"设备数量",group:"device_count",list:[{title:"下单设备数",field:"create_device_count",tooltip:"下单:统计时间内,成功下单的设备数(包含未支付订单和退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0,trendChart:!0},{title:"收款设备数",field:"pay_device_count",tooltip:"收款:统计时间内,成功支付的设备数(包含退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0,trendChart:!0},{title:"退款设备数",field:"refund_device_count",tooltip:"退款:统计时间内,发生退款的设备数。",formatter:",",value:"-",contrast:0,stat:"sum",fix:0}]}];let B=[];P.map(((t,e)=>{t.list.map(((t,e)=>{B.push(t)}))}));let N=[{title:"下单金额(GMV)",field:"create_total_amount",tooltip:"统计时间内,下单金额(包含未支付订单和退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,trendChart:!0,multiple:.01},{title:"收款金额(GPV)",field:"pay_total_amount",tooltip:"统计时间内,成功支付的订单金额(包含退款订单)。",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,trendChart:!0,multiple:.01},{title:"退款金额",field:"refund_total_amount",tooltip:"统计时间内,发生退款的金额。",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,trendChart:!0,multiple:.01},{title:"实收金额",field:"actual_total_amount",tooltip:"实收金额=收款金额-退款金额",formatter:",",value:"-",contrast:0,stat:"sum",fix:2,trendChart:!0,multiple:.01}];const U=e({props:{query:{type:[Object],default:function(){return{}}}},data:()=>({tableName:"uni-stat-pay-result",fieldsMap:N,panelData:{today:{pay_total_amount:"-",pay_order_count:"-"},yesterday:{pay_total_amount:"-",pay_order_count:"-"},beforeyesterday:{pay_total_amount:"-",pay_order_count:"-"},week:{pay_total_amount:"-",pay_order_count:"-"},month:{pay_total_amount:"-",pay_order_count:"-"},quarter:{pay_total_amount:"-",pay_order_count:"-"},year:{pay_total_amount:"-",pay_order_count:"-"},total:{pay_total_amount:"-",pay_order_count:"-"}},loading:!1}),created(){this.getCloudDataDebounce=$((()=>{this.getCloudData()}),300),this.getCloudDataDebounce()},methods:{getCloudData(){let t=this.query;if(!t.appid)return;this.loading=!0,t=w(t,!0,["uni_platform"]);let e=this.getWhere(t);t&&(e=`${t} && (${e})`);const n=a.database();n.collection(this.tableName).where(e).field(`${M(N)}, dimension, stat_date.date_str as stat_time, start_time`).groupBy("stat_time, dimension").groupField(k(N)+",last(start_time) as start_time").get().then((t=>{let e=t.result.data;e.map(((t,e)=>{t.actual_total_amount||(t.actual_total_amount=t.pay_total_amount-t.refund_total_amount)})),e=A({fieldsMap:N,data:e}),this.loading=!1,Object.assign(this.panelData,this.setPanelData(e))}));let l=`${t} && dimension == "year"`;n.collection(this.tableName).where(l).field(`${M(N)}, dimension`).groupBy("dimension").groupField(k(N)).get().then((t=>{let e=t.result.data;e.map(((t,e)=>{t.actual_total_amount=t.pay_total_amount-t.refund_total_amount})),e=A({fieldsMap:N,data:e}),Object.assign(this.panelData,{total:e[0]||{pay_total_amount:0,pay_order_count:0,create_total_amount:0,refund_total_amount:0,actual_total_amount:0}})}))},getWhere(t){let e,a=Date.now(),n=j.getOffsetStartAndEnd("day",0,a),l=j.getOffsetStartAndEnd("day",-1,a),i=j.getOffsetStartAndEnd("day",-2,a),s=j.getOffsetStartAndEnd("week",0,a),r=j.getOffsetStartAndEnd("month",0,a),d=j.getOffsetStartAndEnd("quarter",0,a),o=j.getOffsetStartAndEnd("year",0,a);return e=`(dimension=="day" && start_time==${n.startTime} && end_time==${n.endTime}) || (dimension=="day" && start_time==${l.startTime} && end_time==${l.endTime}) || (dimension=="day" && start_time==${i.startTime} && end_time==${i.endTime}) || (dimension=="week" && start_time==${s.startTime} && end_time==${s.endTime}) || (dimension=="month" && start_time==${r.startTime} && end_time==${r.endTime}) || (dimension=="quarter" && start_time==${d.startTime} && end_time==${d.endTime}) || (dimension=="year" && start_time==${o.startTime} && end_time==${o.endTime})`,e},setPanelData(t){let e=Date.now(),a=j.getOffsetStartAndEnd("day",0,e),n=j.getOffsetStartAndEnd("day",-1,e),l=j.getOffsetStartAndEnd("day",-2,e),i={pay_total_amount:0,pay_order_count:0,create_total_amount:0,refund_total_amount:0,actual_total_amount:0};return{today:t.find((t=>"day"===t.dimension&&t.start_time===a.startTime))||i,yesterday:t.find((t=>"day"===t.dimension&&t.start_time===n.startTime))||i,beforeyesterday:t.find((t=>"day"===t.dimension&&t.start_time===l.startTime))||i,week:t.find((t=>"week"===t.dimension))||i,month:t.find((t=>"month"===t.dimension))||i,quarter:t.find((t=>"quarter"===t.dimension))||i,year:t.find((t=>"year"===t.dimension))||i}}},watch:{query:{deep:!0,handler(t){this.getCloudDataDebounce()}}}},[["render",function(t,e,a,C,x,q){const T=m,v=c(_("uni-th"),h),$=c(_("uni-tr"),y),w=c(_("uni-icons"),g),M=c(_("uni-tooltip"),S),k=c(_("uni-td"),b),A=c(_("uni-table"),D);return n(),l(T,{class:"uni-stat--x p-m"},{default:i((()=>[s(T,{class:"uni-stat-card-header"},{default:i((()=>[r("概况")])),_:1}),s(A,{loading:x.loading,border:"",stripe:"",emptyText:"暂无更多数据",style:{"min-height":"100px"}},{default:i((()=>[s($,null,{default:i((()=>[s(v,{align:"center",class:"th"}),s(v,{align:"center",class:"th"},{default:i((()=>[r("今日")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("昨日")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("前日")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("本周")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("本月")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("本季度")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("本年度")])),_:1}),s(v,{align:"center",class:"th"},{default:i((()=>[r("累计")])),_:1})])),_:1}),(n(!0),d(u,null,o(x.fieldsMap,((t,e)=>(n(),l($,{key:e},{default:i((()=>[s(k,{align:"center",class:"td"},{default:i((()=>[s(M,null,p({default:i((()=>[s(T,{class:"uni-stat--sum-item-title"},{default:i((()=>[r(f(t.title)+" ",1),s(w,{class:"ml-s",type:"help",color:"#666"})])),_:2},1024)])),_:2},[t.tooltip?{name:"content",fn:i((()=>[s(T,{class:"uni-stat-tooltip-s"},{default:i((()=>[r(f(t.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.today[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.yesterday[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.beforeyesterday[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.week[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.month[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.quarter[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.year[t.field]),1)])),_:2},1024),s(k,{align:"center",class:"td"},{default:i((()=>[r(f(x.panelData.total[t.field]),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["loading"])])),_:1})}],["__scopeId","data-v-9f2e867a"]]);const L=e({props:{query:{type:[Object],default:function(){return{}}}},data:()=>({tableName:"uni-stat-pay-result",panelData:P,loading:!1}),created(){this.getCloudDataDebounce=$((()=>{this.getCloudData()}),300),this.getCloudDataDebounce()},methods:{getCloudData(){let t=this.query;if(!t.appid)return;this.loading=!0;const e=w({...t,start_time:[O(0),Date.now()]},!0,["uni_platform"]);a.database().collection(this.tableName).where(e).field(`${M(B)}, dimension, stat_date.date_str as stat_time, start_time`).groupBy("stat_time, dimension").groupField(k(B)).orderBy("stat_time","desc").get().then((t=>{let e=t.result.data;e=A({fieldsMap:B,data:e});let a=e.find((t=>"day"===t.dimension&&t.stat_time===V(O(0),"")));a||(a=e.find((t=>"hour"===t.dimension&&t.stat_time===V(O(0),"")))||{}),this.loading=!1,this.panelData=this.setPanelData(a)}))},setPanelData(t){let e=this.panelData;return e.map(((e,a)=>{e.list.map(((e,a)=>{e.value=t[e.field]||0}))})),e}},watch:{query:{deep:!0,handler(t){this.getCloudDataDebounce()}}}},[["render",function(t,e,a,p,C,x){const q=m,T=c(_("uni-th"),h),v=c(_("uni-icons"),g),$=c(_("uni-tooltip"),S),w=c(_("uni-tr"),y),M=c(_("uni-td"),b),k=c(_("uni-table"),D);return n(),l(q,{class:"uni-stat--x p-m"},{default:i((()=>[s(q,{class:"uni-stat-card-header"},{default:i((()=>[r("今日数据")])),_:1}),s(k,{loading:C.loading,border:"",stripe:"",emptyText:"暂无更多数据",style:{"min-height":"100px"}},{default:i((()=>[s(w,null,{default:i((()=>[s(T,{align:"center",class:"th"}),(n(!0),d(u,null,o(C.panelData,((t,e)=>(n(),l(T,{align:"center",class:"th",key:e},{default:i((()=>[s($,null,{content:i((()=>[s(q,{class:"uni-stat-tooltip-s"},{default:i((()=>[(n(!0),d(u,null,o(t.list,((t,e)=>(n(),l(q,{key:e},{default:i((()=>[r(f(t.tooltip),1)])),_:2},1024)))),128))])),_:2},1024)])),default:i((()=>[s(q,{class:"uni-stat--sum-item-title"},{default:i((()=>[r(f(t.title)+" ",1),s(v,{class:"ml-s",type:"help",color:"#666"})])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),s(w,null,{default:i((()=>[s(M,{align:"center",class:"td"},{default:i((()=>[r("下单")])),_:1}),(n(!0),d(u,null,o(C.panelData,((t,e)=>(n(),l(M,{align:"center",class:"td",key:e},{default:i((()=>[r(f(t.list[0].value),1)])),_:2},1024)))),128))])),_:1}),s(w,null,{default:i((()=>[s(M,{align:"center",class:"td"},{default:i((()=>[r("收款")])),_:1}),(n(!0),d(u,null,o(C.panelData,((t,e)=>(n(),l(M,{align:"center",class:"td",key:e},{default:i((()=>[r(f(t.list[1].value),1)])),_:2},1024)))),128))])),_:1}),s(w,null,{default:i((()=>[s(M,{align:"center",class:"td"},{default:i((()=>[r("退款")])),_:1}),(n(!0),d(u,null,o(C.panelData,((t,e)=>(n(),l(M,{align:"center",class:"td",key:e},{default:i((()=>[r(f(t.list[2].value),1)])),_:2},1024)))),128))])),_:1})])),_:1},8,["loading"])])),_:1})}],["__scopeId","data-v-2f62b91c"]]);let Q=[];P.forEach((t=>{const e=t.group,a=t.title;e&&a&&Q.push({_id:e,name:a,list:t.list})}));const G=e({components:{statPanelTotal:U,statPanelToday:L,trendChart:e({props:{query:{type:[Object],default:function(){return{}}}},data:()=>({tableName:"uni-stat-pay-result",chartData:{},errorMessage:"",opts:{color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[15,15,0,15],legend:{},enableScroll:!0,dataLabel:!1,xAxis:{disableGrid:!0,itemCount:24,fontSize:12,boundaryGap:"center"},yAxis:{gridType:"dash",dashLength:2,data:[{tofix:2}]},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}},legend:{position:"bottom"}},dateTabs:{time:[],timeStr:"",index:2,list:[{_id:1,name:"昨天",dimension:"hour"},{_id:0,name:"今天",dimension:"hour"},{_id:7,name:"最近七天",dimension:"day"},{_id:30,name:"最近30天",dimension:"day"},{_id:90,name:"最近90天",dimension:"day"},{_id:372,name:"月纬度",dimension:"month"},{_id:1116,name:"季纬度",dimension:"quarter"},{_id:4392,name:"年纬度",dimension:"year"}]},statTabs:{index:0,list:Q},queryMode:0}),created(){this.getCloudDataDebounce=$((()=>{this.getCloudData()}),300),this.getCloudDataDebounce()},methods:{getCloudData(t={}){let e=this.query;if(!e.appid)return void(this.errorMessage="请先选择应用");this.errorMessage="";let n=this.getWhere(),l={...e,...n},i=this.statTabs.list[this.statTabs.index].list;l=w(l,!0,["uni_platform"]);a.database().collection(this.tableName).where(l).field(`${M(i)}, start_time`).groupBy("start_time").groupField(k(i)).orderBy("start_time","asc").limit(100).get({getCount:!0}).then((t=>{let{count:e,data:a}=t.result;a=E(a,n,i),a=A({fieldsMap:i,data:a,formatter:!1}),this.setChartData(a,i,n)})).catch((t=>{console.error(t)})).finally((()=>{}))},setChartData(t,e,a){let n={categories:[],series:[]};e.map(((t,e)=>{t.trendChart&&n.series.push({name:t.title,data:[]})}));for(const l of t){const t=this.formatDate(l.start_time,a.dimension);n.categories.push(t),e.map(((t,e)=>{if(t.trendChart){let a=Number(l[t.field]);n.series[e].data.push(a)}}))}this.chartData=n},formatDate(t,e){let a=new Date(t),n=a.getFullYear(),l=a.getMonth()+1;a.getDate();let i=a.getHours(),s=Math.floor((a.getMonth()+3)/3);return l<10&&(l="0"+l),"hour"===e?`${i}时`:"month"===e?`${n}-${l}`:"quarter"===e?`${n}/Q${s}`:"year"===e?`${n}`:V(a)},datePickerChange(t){this.dateTabs.time=t,this.queryMode=1,this.getCloudData()},dateTabsChange(t,e){this.dateTabs.index=e,this.queryMode=0,this.getCloudData()},statTabsChange(t,e,a){this.statTabs.index=e,this.getCloudData({field:t,name:a})},getWhere(){let t=[],e=this.dateTabs.list[this.dateTabs.index]||{};if("number"==typeof e._id&&0===this.queryMode){let a=O(e._id),n=j.getOffsetStartAndEnd("day",0).endTime;1==e._id&&(n=j.getOffsetStartAndEnd("day",0,a).endTime),t=[a,n]}else this.dateTabs.time&&(t=this.dateTabs.time);let a=e.dimension||"day";return this.dateTabs.timeStr=`${j.timeFormat(t[0])} ~ ${j.timeFormat(t[1])}`,this.dateTabs.time=t,{dimension:a,start_time:t}}},watch:{query:{deep:!0,handler(t){this.getCloudDataDebounce()}}},computed:{}},[["render",function(t,e,a,d,o,u){const p=m,f=c(_("uni-stat-tabs"),v),h=c(_("uni-datetime-picker"),C),y=c(_("qiun-data-charts"),F);return n(),l(p,{class:"uni-stat--x p-m"},{default:i((()=>[s(p,{class:"uni-stat-card-header"},{default:i((()=>[r("趋势图")])),_:1}),s(p,{class:"flex"},{default:i((()=>[s(f,{type:"box",current:o.dateTabs.index,tabs:o.dateTabs.list,onChange:u.dateTabsChange},null,8,["current","tabs","onChange"]),s(h,{type:"daterange",modelValue:o.dateTabs.time,"onUpdate:modelValue":e[0]||(e[0]=t=>o.dateTabs.time=t),end:Date.now(),"return-type":"timestamp","clear-icon":!1,class:"uni-stat-datetime-picker",onChange:u.datePickerChange},null,8,["modelValue","end","onChange"])])),_:1}),s(f,{type:"box",current:o.statTabs.index,tabs:o.statTabs.list,onChange:u.statTabsChange},null,8,["current","tabs","onChange"]),s(p,{class:"uni-charts-box"},{default:i((()=>[s(y,{type:"area",chartData:o.chartData,opts:o.opts,errorMessage:o.errorMessage},null,8,["chartData","opts","errorMessage"])])),_:1})])),_:1})}],["__scopeId","data-v-152a1129"]])},data:()=>({query:{appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:""}}),onLoad(t){const{appid:e}=t;e&&(this.query.appid=e)},computed:{versionQuery(){const{appid:t,uni_platform:e}=this.query;return w({appid:t,uni_platform:e})},channelQuery(){const{appid:t,platform_id:e}=this.query;return w({appid:t,platform_id:e})}},created(){},methods:{platformChange(t,e,a,n){this.query.version_id=0,this.query.uni_platform=n.code}},watch:{}},[["render",function(e,a,r,d,o,u){const p=c(_("uni-stat-breadcrumb"),t),f=m,h=c(_("uni-data-select"),T),y=c(_("uni-stat-tabs"),v),g=q("statPanelTotal"),b=q("statPanelToday"),D=q("trendChart");return n(),l(f,{class:"fix-top-window"},{default:i((()=>[s(f,{class:"uni-header"},{default:i((()=>[s(p,{class:"uni-stat-breadcrumb-on-phone"})])),_:1}),s(f,{class:"uni-container"},{default:i((()=>[s(f,{class:"uni-stat--x flex p-1015"},{default:i((()=>[s(h,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:o.query.appid,"onUpdate:modelValue":a[0]||(a[0]=t=>o.query.appid=t),clear:!1},null,8,["modelValue"]),s(h,{collection:"opendb-app-versions",where:u.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:o.query.version_id,"onUpdate:modelValue":a[1]||(a[1]=t=>o.query.version_id=t)},null,8,["where","modelValue"])])),_:1}),s(f,{class:"uni-stat--x"},{default:i((()=>[s(y,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:o.query.platform_id,"onUpdate:modelValue":a[2]||(a[2]=t=>o.query.platform_id=t),onChange:u.platformChange},null,8,["modelValue","onChange"]),o.query.platform_id&&-1===o.query.platform_id.indexOf("==")?(n(),l(h,{key:0,collection:"uni-stat-app-channels",where:u.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:o.query.channel_id,"onUpdate:modelValue":a[3]||(a[3]=t=>o.query.channel_id=t)},null,8,["where","modelValue"])):x("",!0)])),_:1}),s(g,{query:o.query},null,8,["query"]),s(b,{query:o.query},null,8,["query"]),s(D,{query:o.query},null,8,["query"])])),_:1})])),_:1})}]]);export{G as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-ranking-ranking.e1fecd9d.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-ranking-ranking.e1fecd9d.js new file mode 100644 index 0000000000000000000000000000000000000000..56ec9532ed1a988bb7fac9b77a766c53b17b4a60 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-pay-order-ranking-ranking.e1fecd9d.js @@ -0,0 +1 @@ +import{_ as e,L as a,n as t,o as n,c as l,w as s,i as r,a as i,d as o,b as d,e as u,r as c,F as p,f as m,g as f,q as h,t as _,aC as g,h as y,j as b,k as x,p as C,l as q}from"./index-389238f5.js";import{_ as k}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as $}from"./download-excel.9236b5ca.js";import{_ as T}from"./uni-data-select.8acadad5.js";import{_ as v}from"./uni-stat-tabs.4355c19c.js";import{_ as w}from"./uni-pagination.018f31ea.js";import{_ as V}from"./unicloud-db.dfa2c90d.js";import{e as D,f as S}from"./uni-pay-orders.57c55841.js";import{g as j,s as E}from"./util.63f19a41.js";import{t as U}from"./timeUtil.4078d62f.js";import"./uni-tooltip.58062496.js";const z=a.database(),I={ascending:"asc",descending:"desc"};const L=e({data:()=>({collectionList:"uni-pay-orders",query:{appid:"",platform_id:"",uni_platform:"",version:"",pay_date:[],channel_code:""},where:"",orderby:"total_fee desc",orderByFieldName:"",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,filterData:{},...D},imageStyles:{width:64,height:64},exportExcel:{filename:"价值用户排行.xls",type:"xls",fields:{"用户ID":"user_id","用户昵称":"nickname","支付金额":"total_fee","订单数量":"count"}},exportExcelData:[],dateTabs:{time:[],timeStr:"",index:null,list:[{_id:0,name:"今天"},{_id:1,name:"昨天"},{_id:7,name:"最近七天"},{_id:30,name:"最近30天"},{_id:90,name:"最近90天"}]}}),onLoad(){this._filter={}},onReady(){},methods:{payDatePicker(e){this.query.pay_date=e,this.search()},onqueryload(e){this.exportExcelData=e},getWhere(){let e="status>0",{pay_date:a,appid:t,version:n,uni_platform:l,channel_code:s}=this.query;return a&&2==a.length&&(e+=` && pay_date>=${a[0]} && pay_date<=${a[1]}`),t&&(e+=` && appid=='${t}'`),n&&(e+=` && stat_data.app_version=='${n}'`),l&&(e+=` && stat_data.platform=='${l}'`),s&&(e+=` && stat_data.channel=='${s}'`),e=e.trim(),console.log("where: ",e),e},search(){if(!this.query.appid)return;const e=this.getWhere();this.where=e,this.$nextTick((()=>{this.loadData()}))},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.selectedIndexs.length=0,this.$refs.table.clearSelection(),this.$refs.udb.loadData({current:e.current})},navigateTo(e,a){t({url:e,events:{refreshData:()=>{this.loadData(a)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((a=>e[a]._id))},delTable(){this.$refs.udb.remove(this.selectedItems(),{success:e=>{this.$refs.table.clearSelection()}})},selectionChange(e){this.selectedIndexs=e.detail.index},sortChange(e,a){this.orderByFieldName=a,e.order?this.orderby=a+" "+I[e.order]:this.orderby="",this.$refs.table.clearSelection(),this.$nextTick((()=>{this.$refs.udb.loadData()}))},filterChange(e,a){this._filter[a]={type:e.filterType,value:e.filter};let t=S(this._filter,z.command);Object.keys(t).length?this.where=t:this.where="",this.$nextTick((()=>{this.$refs.udb.loadData()}))},platformChange(e,a,t,n){this.query.version=0,this.query.uni_platform=n.code},nameFormat:e=>e.user_id?e.nickname?`${e.user_id}(${e.nickname})`:e.user_id:"匿名用户",pageToUser(e){let{user_id:a}=e;t({url:`/pages/system/user/list?id=${a}`})},pageToOrder(e){let{user_id:a}=e;t({url:`/pages/uni-stat/pay-order/list/list?user_id=${a}`})},dateTabsChange(e,a){this.dateTabs.index=a;let t=j(e),n=U.getOffsetStartAndEnd("day",0).endTime;1==e&&(n=U.getOffsetStartAndEnd("day",0,t).endTime),this.query.pay_date=[t,n]}},watch:{query:{deep:!0,handler(e){this.search()}}},computed:{versionQuery(){const{appid:e,uni_platform:a}=this.query;return E({appid:e,uni_platform:a})},channelQuery(){const{appid:e,platform_id:a}=this.query;return E({appid:e,platform_id:a})}}},[["render",function(e,a,t,D,S,j){const E=m(f("uni-stat-breadcrumb"),k),U=r,z=h,I=m(f("download-excel"),$),L=m(f("uni-data-select"),T),F=m(f("uni-stat-tabs"),v),O=m(f("uni-datetime-picker"),g),Q=m(f("uni-th"),y),P=m(f("uni-tr"),b),A=m(f("uni-td"),x),B=C,N=m(f("uni-table"),q),W=m(f("uni-pagination"),w),R=m(f("unicloud-db"),V);return n(),l(U,null,{default:s((()=>[i(U,{class:"uni-header"},{default:s((()=>[i(U,{class:"uni-group"},{default:s((()=>[i(E)])),_:1}),i(U,{class:"uni-group"},{default:s((()=>[i(z,{class:"uni-button",type:"default",size:"mini",onClick:j.search},{default:s((()=>[o("搜索")])),_:1},8,["onClick"]),i(I,{class:"hide-on-phone",fields:S.exportExcel.fields,data:S.exportExcelData,type:S.exportExcel.type,name:S.exportExcel.filename},{default:s((()=>[i(z,{class:"uni-button",type:"primary",size:"mini"},{default:s((()=>[o("导出 Excel")])),_:1})])),_:1},8,["fields","data","type","name"])])),_:1})])),_:1}),i(U,{class:"uni-container"},{default:s((()=>[i(U,{class:"uni-stat--x flex p-1015"},{default:s((()=>[i(L,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:S.query.appid,"onUpdate:modelValue":a[0]||(a[0]=e=>S.query.appid=e),clear:!1},null,8,["modelValue"]),i(L,{collection:"opendb-app-versions",where:j.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:S.query.version_id,"onUpdate:modelValue":a[1]||(a[1]=e=>S.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),i(U,{class:"uni-stat--x",style:{"margin-bottom":"0"}},{default:s((()=>[i(F,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:S.query.platform_id,"onUpdate:modelValue":a[2]||(a[2]=e=>S.query.platform_id=e),onChange:j.platformChange},null,8,["modelValue","onChange"]),S.query.platform_id&&-1===S.query.platform_id.indexOf("==")?(n(),l(L,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:j.channelQuery,class:"p-channel",field:"channel_code as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:S.query.channel_code,"onUpdate:modelValue":a[3]||(a[3]=e=>S.query.channel_code=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),i(U,{class:"flex"},{default:s((()=>[i(F,{type:"box",current:S.dateTabs.index,tabs:S.dateTabs.list,onChange:j.dateTabsChange},null,8,["current","tabs","onChange"]),i(O,{type:"daterange",modelValue:S.query.pay_date,"onUpdate:modelValue":a[4]||(a[4]=e=>S.query.pay_date=e),end:Date.now(),"return-type":"timestamp","clear-icon":!0,class:"uni-stat-datetime-picker",onChange:a[5]||(a[5]=e=>S.dateTabs.index=null)},null,8,["modelValue","end"])])),_:1}),i(R,{ref:"udb",collection:S.collectionList,field:"user_id,nickname,uni_platform,status,total_fee,refund_fee,appid,pay_date",where:S.where,"page-data":"replace",orderby:S.orderby,getcount:!0,"page-size":S.options.pageSize,"page-current":S.options.pageCurrent,groupby:"user_id","group-field":"sum(total_fee) as total_fee,sum(refund_fee) as refund_fee, sum(subtract(total_fee,refund_fee)) as reality_fee, sum(1) as count,last(nickname) as nickname",options:S.options,loadtime:"manual",onLoad:j.onqueryload},{default:s((({data:e,pagination:t,loading:r,error:d,options:m})=>[i(N,{ref:"table",loading:r,emptyText:d.message||r?"请求中...":"没有更多数据",border:"",stripe:"",type:"",style:{"min-height":"900px"},onSelectionChange:j.selectionChange},{default:s((()=>[i(P,null,{default:s((()=>[i(Q,{align:"center"},{default:s((()=>[o("排名")])),_:1}),i(Q,{align:"center",sortable:"",onSortChange:a[6]||(a[6]=e=>j.sortChange(e,"user_id"))},{default:s((()=>[o("用户")])),_:1}),i(Q,{align:"center",sortable:"",onSortChange:a[7]||(a[7]=e=>j.sortChange(e,"reality_fee"))},{default:s((()=>[o("支付金额(不含退款)")])),_:1}),i(Q,{align:"center",sortable:"",onSortChange:a[8]||(a[8]=e=>j.sortChange(e,"count"))},{default:s((()=>[o("订单数量")])),_:1})])),_:1}),(n(!0),u(p,null,c(e,((e,a)=>(n(),l(P,{key:a},{default:s((()=>[i(A,{align:"center"},{default:s((()=>[o(_(parseInt(a+1+(t.current-1)*t.size)),1)])),_:2},1024),i(A,{align:"center"},{default:s((()=>[i(B,{class:"text-btn",onClick:a=>j.pageToUser(e)},{default:s((()=>[o(_(j.nameFormat(e)),1)])),_:2},1032,["onClick"])])),_:2},1024),i(A,{align:"center"},{default:s((()=>[o(_((e.reality_fee/100).toFixed(2)),1)])),_:2},1024),i(A,{align:"center"},{default:s((()=>[i(B,{class:"text-btn",onClick:a=>j.pageToOrder(e)},{default:s((()=>[o(_(e.count),1)])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),i(U,{class:"uni-pagination-box"},{default:s((()=>[i(W,{"show-icon":"","page-size":t.size,modelValue:t.current,"onUpdate:modelValue":e=>t.current=e,total:t.count,onChange:j.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options","onLoad"])])),_:1})])),_:1})}],["__scopeId","data-v-7e6baa4e"]]);export{L as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-scene-scene.74f69857.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-scene-scene.74f69857.js new file mode 100644 index 0000000000000000000000000000000000000000..9c168ba95b412c040cca4fa9ff6023a9e07c07f8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-scene-scene.74f69857.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as i,c as s,w as n,i as l,a as o,d as r,z as u,f as d,g as c,aC as p}from"./index-389238f5.js";import{_ as h}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as m}from"./uni-data-select.8acadad5.js";import{_ as g}from"./uni-stat-tabs.4355c19c.js";import{_ as f}from"./uni-stat-panel.2e6a5931.js";import{_}from"./qiun-data-charts.a402b569.js";import{_ as b}from"./uni-stat-table.19e19a80.js";import{_ as y}from"./uni-pagination.018f31ea.js";import{s as v,e as D,d as C,g as q,a as x,b as T,m as S,h as w,c as V}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const P=[{title:"场景值",field:"channel_code",tooltip:"",formatter:""},{title:"场景名称",field:"channel_name",tooltip:"",formatter:""},{title:"新增设备",field:"new_device_count",tooltip:"首次访问应用的设备数(以设备为判断标准,去重)",value:0},{title:"活跃设备",field:"active_device_count",tooltip:"访问过应用内任意页面的总设备数(去重)",value:0},{title:"访问次数",field:"page_visit_count",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0},{title:"启动次数",field:"app_launch_count",tooltip:"设备从打开应用到主动关闭应用或超时退出计为一次启动",value:0},{title:"次均停留时长",field:"avg_device_session_time",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0,stat:"avg"},{title:"设备平均停留时长 ",field:"avg_device_time",formatter:":",tooltip:"平均每个设备停留在应用内的总时长,即应用停留总时长/活跃设备",value:0,stat:"avg"},{title:"跳出率",field:"bounceRate",computed:"bounce_times/app_launch_count",formatter:"%",tooltip:"只浏览一个页面便离开应用的次数占总启动次数的百分比",value:0,contrast:0,fix:2},{field:"bounce_times",disable:!0},{title:"总设备数",field:"total_devices",tooltip:"从添加统计到当前选择时间的总设备数(去重)",value:0}];const z=e({data:()=>({fieldsMap:P,query:{dimension:"hour",appid:"",platform_id:"",uni_platform:"",version_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,tableData:[],panelData:P.filter((e=>e.hasOwnProperty("value"))),chartData:{},chartTab:"new_device_count",errorMessage:""}),computed:{chartTabs(){const e=[];return P.forEach((t=>{const{field:a,title:i}=t,s=t.hasOwnProperty("value");a&&i&&s&&e.push({_id:a,name:i})})),e},queryStr(){return v(this.query,!0)},dimension(){return D(this.query.start_time,1)?"hour":"day"},versionQuery(){const{appid:e,uni_platform:t}=this.query;return v({appid:e,uni_platform:t})}},created(){this.debounceGet=C((()=>{this.getAllData(this.queryStr)}),300)},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changePlatform(e,t,a,i){this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=q(e),i=q(0)-1;this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.queryStr)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTabelData(this.queryStr)},changeChartTab(e,t,a){this.getChartData(this.queryStr,e,a)},getAllData(e){-1!==e.indexOf("appid")?(this.errorMessage="",this.getPanelData(e),this.getChartData(e),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.chartTab){this.options,(e=JSON.parse(JSON.stringify(this.query))).dimension="day";let i=v(e,!1,["uni_platform"]);t.database().collection("uni-stat-result").where(i).field(`${x(P,a)},start_time,channel_id`).groupBy("channel_id,start_time").groupField(T(P,a)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:i}=e.result,s={categories:[],series:[{name:"暂无数据",data:[]}]},n=s.categories;if("hour"===this.dimension)for(let a=0;a<24;++a){const e=a<10?"0"+a:a,t=`${e}:00 ~ ${e}:59`;n.push(t)}const l=[];i.forEach((e=>{l.indexOf(e.channel_id)<0&&l.push(e.channel_id)}));let o=[];this.getChannels().then((e=>{o=e.result.data})).finally((()=>{l.forEach(((e,t)=>{const l=o.find((t=>t._id===e)),r=s.series[t]={name:l&&l.channel_name||"未知",data:[]};if("hour"===this.dimension)for(let a=0;a<24;++a)r.data[a]=0;let u=P.filter((e=>e.field===a));u=JSON.parse(JSON.stringify(u)),delete u[0].value,u[0].formatter="";for(const s of i){S(u,s,s);let t=s.start_time;const i=w(t,this.dimension);let l=s[a];const o=n.indexOf(i);e===s.channel_id&&(o<0?(n.push(i),r.data.push(l)):r.data[o]=l)}})),this.chartData=s}))})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getChannels:()=>t.database().collection("uni-stat-app-channels").get(),getTabelData(e){const{pageCurrent:a}=this.options;this.loading=!0;let i=v(this.query,!1,["uni_platform"]);t.database().collection("uni-stat-result").where(i).field(`${x(P)},appid, channel_id`).groupBy("appid, channel_id").groupField(T(P)).orderBy("new_device_count","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;this.getChannels().then((e=>{const t=e.result.data;for(const i of a)t.forEach((e=>{i.channel_id===e._id&&(i.channel_code=e.channel_code,i.channel_name=e.channel_name)}))})).finally((()=>{for(const e of a)S(P,e,e);this.tableData=[],this.options.total=t,this.tableData=a}))})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getPanelData(){let e=JSON.parse(JSON.stringify(this.query));e.dimension="day";let a=v(e,!1,["uni_platform"]);t.database().collection("uni-stat-result").where(a).field(x(P)).groupBy("appid").groupField(T(P)).orderBy("start_time","desc").get().then((t=>{const a=t.result.data[0];a&&(a.total_devices=0),V.call(this,e),this.panelData=[],this.panelData=S(P,a)}))},navTo(e){a({url:`/pages/uni-stat/overview/overview?id=${e}`})}}},[["render",function(e,t,a,v,D,C){const q=d(c("uni-stat-breadcrumb"),h),x=l,T=d(c("uni-data-select"),m),S=d(c("uni-stat-tabs"),g),w=d(c("uni-datetime-picker"),p),V=d(c("uni-stat-panel"),f),P=d(c("qiun-data-charts"),_),z=d(c("uni-stat-table"),b),M=d(c("uni-pagination"),y);return i(),s(x,{class:"fix-top-window"},{default:n((()=>[o(x,{class:"uni-header"},{default:n((()=>[o(q,{class:"uni-stat-breadcrumb-on-phone"}),o(x,{class:"uni-group"},{default:n((()=>[o(x,{class:"uni-sub-title hide-on-phone"},{default:n((()=>[r(" 小程序平台有效。用户打开小程序时的场景,如通过扫描二维码打开小程序,场景为二维码。注意:部分平台可能获取不到场景值,如支付宝小程序")])),_:1})])),_:1})])),_:1}),o(x,{class:"uni-container"},{default:n((()=>[o(x,{class:"uni-stat--x flex p-1015"},{default:n((()=>[o(T,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:D.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>D.query.appid=e),clear:!1},null,8,["modelValue"]),o(T,{collection:"opendb-app-versions",where:C.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:D.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>D.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),o(x,{class:"uni-stat--x flex"},{default:n((()=>[o(S,{label:"日期选择",current:D.currentDateTab,mode:"date",onChange:C.changeTimeRange},null,8,["current","onChange"]),o(w,{type:"daterange",end:(new Date).getTime(),modelValue:D.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>D.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:u(["uni-stat-datetime-picker",{"uni-stat__actived":D.currentDateTab<0&&!!D.query.start_time.length}]),onChange:C.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),o(x,{class:"uni-stat--x"},{default:n((()=>[o(S,{label:"平台选择",type:"boldLine",mode:"platform-scene",all:!1,modelValue:D.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>D.query.platform_id=e),onChange:C.changePlatform},null,8,["modelValue","onChange"])])),_:1}),o(x,{class:"uni-stat--x",style:{padding:"15px 0"}},{default:n((()=>[o(V,{items:D.panelData,class:"uni-stat-panel"},null,8,["items"]),o(S,{type:"box",modelValue:D.chartTab,"onUpdate:modelValue":t[4]||(t[4]=e=>D.chartTab=e),tabs:C.chartTabs,class:"mb-l",onChange:C.changeChartTab},null,8,["modelValue","tabs","onChange"]),o(x,{class:"uni-charts-box",style:{height:"400px"}},{default:n((()=>[o(P,{type:"area",chartData:D.chartData,echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:D.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),o(x,{class:"uni-stat--x p-m"},{default:n((()=>[o(z,{data:D.tableData,filedsMap:D.fieldsMap.slice(0,D.fieldsMap.length-1),loading:D.loading},null,8,["data","filedsMap","loading"]),o(x,{class:"uni-pagination-box"},{default:n((()=>[o(M,{"show-icon":"","show-page-size":"","page-size":D.options.pageSize,current:D.options.pageCurrent,total:D.options.total,onChange:C.changePageCurrent,onPageSizeChange:C.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-ceafa36b"]]);export{z as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-activity-activity.8cc44ce7.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-activity-activity.8cc44ce7.js new file mode 100644 index 0000000000000000000000000000000000000000..2938a8ff09a91c8a8cfda9c0e371fcbd982d38e0 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-activity-activity.8cc44ce7.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as a,c as n,w as s,i,a as r,d as o,z as l,b as u,f as c,g as d,aC as h}from"./index-389238f5.js";import{_ as p}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as m}from"./uni-data-select.8acadad5.js";import{_}from"./uni-stat-tabs.4355c19c.js";import{_ as g}from"./qiun-data-charts.a402b569.js";import{_ as f}from"./uni-stat-table.19e19a80.js";import{_ as b}from"./uni-pagination.018f31ea.js";import{e as y,s as D,d as C,g as q,a as v,b as w,h as T,m as k}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const x=[{title:"日期",field:"start_time",tooltip:"",formatter:"-"},{title:"日活",field:"active_user_count",tooltip:"选中日期当天的访问用户数"},{title:"周活",field:"week_active_user_count",tooltip:"选中日期所在自然周(包括选中日期在内)的访问用户数"},{title:"日活/周活",field:"active_user_count/week_active_user_count",computed:"active_user_count/week_active_user_count",tooltip:"选中日期的访问用户数占周访问用户数的百分比",formatter:"%"},{title:"月活",field:"month_active_user_count",tooltip:"选中日期所在自然月(包括选中日期在内)的访问用户数"},{title:"日活/月活",field:"active_user_count/month_active_user_count",computed:"active_user_count/month_active_user_count",tooltip:"选中日期的访问用户数占月访问用户数的百分比",formatter:"%"}];const M=e({data:()=>({tableName:"uni-stat-result",fieldsMap:x,query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:0,currentChartTab:"day",tableData:[],chartData:{},defaultChart:{field:"new_user_count",name:"新增用户"},channelData:[],errorMessage:""}),computed:{chartTabs(){const e=[{_id:"day",name:"日活"},{_id:"week",name:"周活"},{_id:"month",name:"月活"}];return y(this.query.start_time,7)&&e.forEach(((e,t)=>{"month"===e._id?e.disabled=!0:e.disabled=!1})),e},channelQuery(){const e=this.query.platform_id;return D({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return D({appid:e,uni_platform:t})}},created(){this.debounceGet=C((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,n){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=n.code},changeTimeRange(e,t){this.currentDateTab=t;let a,n;a=q(e),n=e?q(0)-1:q(0)+864e5-1,this.query.start_time=[a,n]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.query)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTabelData(this.query)},changeChartTab(e,t,a){this.currentChartTab=e,this.getChartData(this.query,e,a)},getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e,this.currentChartTab),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a,n="日活",s="active_user_count"){const i={categories:[],series:[{name:n,data:[]}]};e=D(e,null,["uni_platform"]);const r=t.database();"day"===a?r.collection(this.tableName).where(e).field(`${v(x,s)}, start_time`).groupBy("start_time").groupField(w(x,s)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;this.chartData=[];for(const n of a){const e=T(n.start_time,"day"),t=n[s];i.series[0].data.push(t),i.categories.push(e)}this.chartData=i})).catch((e=>{console.error(e)})):this.getRangeCountData(e,a).then((e=>{const t=a;"week"===a&&(a="isoWeek");const{count:n,data:r}=e.result;this.chartData=[];for(const o of r){const e=+new Date(o.year,0)+(6048e5*Number(o[a])-1),n=T(e,t),r=o[a+"_"+s];r&&(i.series[0].data.push(r),i.categories.push(n))}this.chartData=i}))},getTabelData(e,a="active_user_count"){const{pageCurrent:n}=this.options;e=D(e,null,["uni_platform"]),this.loading=!0;t.database().collection(this.tableName).where(e).field(`${v(x,a)}, start_time`).groupBy("start_time").groupField(w(x,a)).orderBy("start_time","desc").skip((n-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((t=>{const{count:a,data:n}=t.result;let s=n,i=a,r=[],o=[];this.getRangeCountData(e,"week").then((t=>{const{count:a,data:n}=t.result;r=n,this.getRangeCountData(e,"month").then((e=>{const{count:t,data:a}=e.result;o=a;const n=this.mapWithWeekAndMonth(s,r,o);for(const s of n)k(x,s,s);this.tableData=[],this.options.total=i,this.tableData=n})).finally((()=>{this.loading=!1}))}))})).catch((e=>{console.error(e)}))},getRangeCountData(e,a,n="active_user_count"){"week"===a&&(a="isoWeek"),this.options;return t.database().collection(this.tableName).where(e).field(`${n}, start_time, ${a}(add(new Date(0),start_time), "Asia/Shanghai") as ${a},year(add(new Date(0),start_time), "Asia/Shanghai") as year`).groupBy(`year, ${a}`).groupField(`sum(${n}) as ${a}_${n}`).orderBy(`year asc, ${a} asc`).get({getCount:!0})},mapWithWeekAndMonth(e,t,a,n="active_user_count"){for(const s of e){const e=new Date(s.start_time),i=e.getUTCFullYear(),r=e.getMonth()+1,o=this.getWeekNumber(e);for(const a of t)a.isoWeek===o&&a.year===i&&(s[`isoWeek_${n}`]=a[`week_${n}`]);for(const t of a)t.month===r&&t.year===i&&(s[`month_${n}`]=t[`month_${n}`])}return e},getWeekNumber(e){(e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))).setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));var t=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-t)/864e5+1)/7)},getChannelData(e,a){this.query.channel_id="";const n=t.database(),s={};(e=e||this.query.appid)&&(s.appid=e),(a=a||this.query.platform_id)&&(s.platform_id=a);let i=n.collection("uni-stat-app-platforms").field("_id, name").getTemp(),r=n.collection("uni-stat-app-channels").where(s).field("_id, channel_name, create_time, platform_id").getTemp();n.collection(r,i).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let n in t)e=t[n].channel_name?t[n].channel_name:"默认",t[n].platform_id.length>0&&(e=t[n].platform_id[0].name+"-"+e),a.push({value:t[n]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,y,D,C,q){const v=c(d("uni-stat-breadcrumb"),p),w=i,T=c(d("uni-data-select"),m),k=c(d("uni-stat-tabs"),_),x=c(d("uni-datetime-picker"),h),M=c(d("qiun-data-charts"),g),V=c(d("uni-stat-table"),f),$=c(d("uni-pagination"),b);return a(),n(w,{class:"fix-top-window"},{default:s((()=>[r(w,{class:"uni-header"},{default:s((()=>[r(v,{class:"uni-stat-breadcrumb-on-phone"}),r(w,{class:"uni-group"},{default:s((()=>[r(w,{class:"uni-sub-title hide-on-phone"},{default:s((()=>[o("用户活跃度分析")])),_:1})])),_:1})])),_:1}),r(w,{class:"uni-container"},{default:s((()=>[r(w,{class:"uni-stat--x flex p-1015"},{default:s((()=>[r(T,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:q.changeAppid,modelValue:C.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>C.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),r(T,{collection:"opendb-app-versions",where:q.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:C.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>C.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),r(w,{class:"uni-stat--x flex"},{default:s((()=>[r(k,{label:"日期选择",current:C.currentDateTab,mode:"date",yesterday:!1,onChange:q.changeTimeRange},null,8,["current","onChange"]),r(x,{type:"daterange",end:(new Date).getTime(),modelValue:C.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>C.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:l(["uni-stat-datetime-picker",{"uni-stat__actived":C.currentDateTab<0&&!!C.query.start_time.length}]),onChange:q.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),r(w,{class:"uni-stat--x"},{default:s((()=>[r(k,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:C.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>C.query.platform_id=e),onChange:q.changePlatform},null,8,["modelValue","onChange"]),C.query.platform_id&&-1===C.query.platform_id.indexOf("==")?(a(),n(T,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:q.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:C.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>C.query.channel_id=e)},null,8,["where","modelValue"])):u("",!0)])),_:1}),r(w,{class:"uni-stat--x p-m"},{default:s((()=>[r(w,{class:"label-text mb-l"},{default:s((()=>[o(" 趋势图 ")])),_:1}),r(k,{type:"box",tabs:q.chartTabs,class:"mb-l",onChange:q.changeChartTab},null,8,["tabs","onChange"]),r(w,{class:"uni-charts-box"},{default:s((()=>[r(M,{type:"area",chartData:C.chartData,echartsH5:"",echartsApp:"",errorMessage:C.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),r(w,{class:"uni-stat--x p-m"},{default:s((()=>[r(V,{data:C.tableData,filedsMap:C.fieldsMap,loading:C.loading,tooltip:""},null,8,["data","filedsMap","loading"]),r(w,{class:"uni-pagination-box"},{default:s((()=>[r($,{"show-icon":"","show-page-size":"","page-size":C.options.pageSize,current:C.options.pageCurrent,total:C.options.total,onChange:q.changePageCurrent,onPageSizeChange:q.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}]]);export{M as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-comparison-comparison.6f4793d4.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-comparison-comparison.6f4793d4.js new file mode 100644 index 0000000000000000000000000000000000000000..0708c1adb375b8a42869cc6effe7b91137da143d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-comparison-comparison.6f4793d4.js @@ -0,0 +1 @@ +import{_ as a,L as t,o as e,c as s,w as r,i,a as n,d as l,z as o,e as u,r as d,F as c,f as _,g as m,t as p,aC as h}from"./index-389238f5.js";import{_ as f}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as y}from"./uni-data-select.8acadad5.js";import{_ as g}from"./qiun-data-charts.a402b569.js";import{g as b,d as v,s as D}from"./util.63f19a41.js";const w=a({data:()=>({query:{dimension:"day",appid:"",version_id:"",start_time:b(0)},platforms:[],dayChartsData:[],monChartsData:[]}),created(){this.debounceGet=v((()=>{this.getChartData(this.query),this.getRangeCountData(this.query,"month")}),300)},watch:{query:{deep:!0,handler(a){this.debounceGet()}}},computed:{chartsData(){return[...this.dayChartsData,...this.monChartsData]},versionQuery(){const{appid:a}=this.query;return D({appid:a})}},methods:{getChartData(a,e="day"){a=JSON.parse(JSON.stringify(a));const s=b(0);if(a.start_time>=s){const t=(new Date).getTime();a.start_time=[s,t],a=D(a,!0)}else a=D(a);t.database().collection("uni-stat-result").where(a).field("active_user_count,new_user_count,total_users,platform_id").groupBy("platform_id").groupField(`sum(active_user_count) as ${e}_active_user_count, sum(new_user_count) as ${e}_new_user_count, max(total_users) as ${e}_total_users`).get().then((a=>{const t=a.result.data;this.initChartOption(t,"dayChartsData")}))},getRangeCountData(a,e){a=D(a);t.database().collection("uni-stat-result").where(a).field(`active_user_count, new_user_count, platform_id, ${e}(add(new Date(0),start_time), "Asia/Shanghai") as ${e},year(add(new Date(0),start_time), "Asia/Shanghai") as year`).groupBy(`year, ${e?e+",":""}platform_id`).groupField(`sum(active_user_count) as ${e}_active_user_count, sum(new_user_count) as ${e}_new_user_count`).orderBy(`year asc, ${e} asc`).get().then((a=>{const t=a.result.data;this.initChartOption(t,"monChartsData","month")}))},initChartOption(a,e,s="day"){t.database().collection("uni-stat-app-platforms").get().then((t=>{const r=[{field:`${s}_new_user_count`,title:("day"===s?"日":"月")+"新增用户对比",series:[{data:[]}]},{field:`${s}_active_user_count`,title:("day"===s?"日":"月")+"活跃用户对比",series:[{data:[]}]}];"day"===s&&r.unshift({field:"day_total_users",title:"总用户数对比",series:[{data:[]}]}),this[e]=r;const i=t.result.data,n={};i.forEach((a=>{n[a._id]=a.name}));for(const s of this[e]){const t=s.series[0].data,e=JSON.parse(JSON.stringify(n));for(const r of a)for(const a in r)if(s.field===a){const s=r.platform_id,i={name:e[s],value:r[a]};t.push(i),delete e[s]}for(const a in e){const s={name:e[a],value:0};t.push(s)}}}))}}},[["render",function(a,t,b,v,D,w){const x=_(m("uni-stat-breadcrumb"),f),q=i,C=_(m("uni-data-select"),y),$=_(m("uni-datetime-picker"),h),V=_(m("qiun-data-charts"),g);return e(),s(q,{class:"fix-top-window"},{default:r((()=>[n(q,{class:"uni-header"},{default:r((()=>[n(x,{class:"uni-stat-breadcrumb-on-phone"}),n(q,{class:"uni-group hide-on-phone"},{default:r((()=>[n(q,{class:"uni-sub-title"},{default:r((()=>[l("多个指标在不同平台数据的占比,可以直观看出各个平台引流的效果")])),_:1})])),_:1})])),_:1}),n(q,{class:"uni-container"},{default:r((()=>[n(q,{class:"uni-stat--x flex mb-m",style:{padding:"0 15px"}},{default:r((()=>[n(C,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:D.query.appid,"onUpdate:modelValue":t[0]||(t[0]=a=>D.query.appid=a),clear:!1},null,8,["modelValue"]),n(C,{collection:"opendb-app-versions",where:w.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:D.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=a=>D.query.version_id=a)},null,8,["where","modelValue"]),n(q,{class:"flex"},{default:r((()=>[n(q,{class:"ml-m label-text hide-on-phone"},{default:r((()=>[l("日期选择:")])),_:1}),n($,{type:"date",modelValue:D.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=a=>D.query.start_time=a),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":!!D.query.start_time}])},null,8,["modelValue","class"])])),_:1})])),_:1}),n(q,{class:"dispaly-grid"},{default:r((()=>[(e(!0),u(c,null,d(w.chartsData,((a,t)=>(e(),s(q,{key:t,class:"uni-stat--x uni-charts-box1"},{default:r((()=>[n(q,{class:"label-text",style:{margin:"5px 0 20px 0"}},{default:r((()=>[l(p(w.chartsData[t].title),1)])),_:2},1024),n(V,{type:"ring",chartData:w.chartsData[t],echartsH5:"",echartsApp:""},null,8,["chartData"])])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-edc2efa9"]]);export{w as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-overview-overview.de147d1c.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-overview-overview.de147d1c.js new file mode 100644 index 0000000000000000000000000000000000000000..147594052be1d659d4f0b718e3976122f61fa645 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-overview-overview.de147d1c.js @@ -0,0 +1 @@ +import{_ as t,L as e,n as a,o as s,c as r,w as i,i as o,a as l,z as n,b as d,d as u,f as c,g as p,aC as m}from"./index-389238f5.js";import{_ as h}from"./uni-stat-breadcrumb.647cd81f.js";import{_}from"./uni-data-select.8acadad5.js";import{_ as f}from"./uni-stat-tabs.4355c19c.js";import{_ as g}from"./uni-stat-panel.2e6a5931.js";import{_ as b}from"./qiun-data-charts.a402b569.js";import{s as y,d as v,g as D,a as q,b as x,p as C,m as T,c as w,h as F}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const V=[{value:"今天",contrast:"昨天"},{title:"新增用户",field:"new_user_count",tooltip:"首次访问应用的用户数(以用户为判断标准,去重)",value:0,contrast:0},{title:"活跃用户",field:"active_user_count",tooltip:"访问过应用内任意页面的总用户数,今日数据为每小时活跃用户累加(未虑重),昨日数据为全天活跃用户虑重后结果。",value:0,contrast:0},{title:"次均停留时长",field:"avg_user_session_time",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0,contrast:0,stat:"avg"},{title:"人均停留时长 ",field:"avg_user_time",formatter:":",tooltip:"平均每个用户停留在应用内的总时长,即应用停留总时长/活跃用户",value:0,contrast:0,stat:"avg"},{title:"总用户数",field:"total_users",tooltip:"从添加统计到当前选择时间的总用户数(去重)",value:0,contrast:0}],S=[{title:"受访页",field:"path",tooltip:"用户进入应用访问的所有页面,例如用户从页面1进入应用,跳转到页面2,1,2均为受访页",formatter:""},{title:"访问次数",field:"visit_times",tooltip:"访问该页面的总次数",value:0},{title:"占比",field:"rate",computed:"visit_times/total_app_access",tooltip:"某个页面的访问次数占所有页面访问次数的比例",formatter:"%"}],I=[{title:"入口页",field:"path",tooltip:"用户进入应用访问的第一个页面,例如用户从页面1进入应用,跳转到页面2,1为入口页,而2不是",formatter:""},{title:"访问次数",field:"entry_count",tooltip:"访问该页面的总次数",value:0},{title:"占比",field:"rate",computed:"entry_count/total_app_access",tooltip:"某个页面的访问次数占所有页面访问次数的比例",formatter:"%"}],N=V.filter((t=>t.hasOwnProperty("value")));const M=t({data:()=>({tableName:"uni-stat-result",fieldsMap:V,resFieldsMap:S,entFieldsMap:I,query:{dimension:"hour",appid:"",platform_id:"",uni_platform:"",version_id:"",start_time:[]},options:{pageCurrent:1,total:0,pageSizeIndex:0,pageSizeRange:[10,20,50,100]},loading:!1,currentDateTab:2,chartTab:"new_user_count",tableData:[],resTableData:[],entTableData:[],panelData:N,chartData:{},eopts:{seriesTemplate:[{itemStyle:{borderWidth:2,borderColor:"#1890FF",color:"#1890FF"},areaStyle:{color:{colorStops:[{offset:0,color:"#1890FF"},{offset:1,color:"#FFFFFF"}]}}},{lineStyle:{color:"#ea7ccc",width:2,type:"dashed"},itemStyle:{borderWidth:1,borderColor:"#ea7ccc",color:"#ea7ccc"},areaStyle:null}]},tabIndex:0,errorMessage:""}),onLoad(t){const{appid:e}=t;e&&(this.query.appid=e)},computed:{pageSize(){const{pageSizeRange:t,pageSizeIndex:e}=this.options;return t[e]},chartTabs(){const t=[];return V.forEach((e=>{const a=e.field,s=e.title;a&&s&&t.push({_id:a,name:s})})),t},versionQuery(){const{appid:t,uni_platform:e}=this.query;return y({appid:t,uni_platform:e})},channelQuery(){const{appid:t,platform_id:e}=this.query;return y({appid:t,platform_id:e})}},created(){this.debounceGet=v((()=>{this.getAllData(this.query)}),300)},watch:{query:{deep:!0,handler(t){this.options.pageCurrent=1,this.debounceGet()}}},methods:{useDatetimePicker(){this.currentDateTab=null},changePlatform(t,e,a,s){this.query.version_id=0,this.query.uni_platform=s.code},changeTimeRange(t,e){this.currentDateTab=e;let a,s;a=D(t),s=t?D(0)-1:D(0)+864e5-1,this.query.start_time=[a,s]},changePageCurrent(t){this.options.pageCurrent=t.current,this.getChartData(this.query)},changePageSize(t){const{value:e}=t.detail;this.options.pageCurrent=1,this.options.pageSizeIndex=e,this.getChartData(this.query)},changeChartTab(t,e,a){this.tabIndex=e,this.getChartData(this.query,t,a)},getAllData(t){t.appid?(this.errorMessage="",this.getPanelData(),this.getChartData(t)):this.errorMessage="请先选择应用"},getDays(){if(!this.query.start_time.length)return!0;const[t,e]=this.query.start_time;return e-t>=864e5},getPanelData(){const{appid:t,platform_id:a,version_id:s}=this.query,r=y({appid:t,platform_id:a,version_id:s,start_time:[D(1),(new Date).getTime()]});e.database().collection(this.tableName).where(r).field(`${q(V)},dimension,stat_date`).groupBy("stat_date, dimension").groupField(x(V)).orderBy("stat_date","desc").get().then((t=>{const e=t.result.data,a=e.find((t=>t.stat_date===C(D(0),"","")))||{};a.total_users=0;const s=e.find((t=>"day"===t.dimension&&t.stat_date===C(D(1),"","")));this.panelData=[],this.panelData=T(V,a),this.panelData.map((t=>{T(V,s,t,"","contrast")})),w.call(this,r,"total_users")}))},getChartData(t,a=this.chartTabs[this.tabIndex]._id,s=this.chartTabs[this.tabIndex].name){this.options;const r=this.currentDateTab,i=D(r),o=864e5;let l;if(!this.getDays()){const e=i-o,a=i+o-1;t=JSON.parse(JSON.stringify(t)),l=t.start_time=[e,a]}t=y(t,!0,["uni_platform"]);e.database().collection(this.tableName).where(t).field(`${q(V,a)}, start_time`).groupBy("start_time").groupField(x(V,a)).orderBy("start_time","asc").get({getCount:!0}).then((t=>{const{count:e,data:r}=t.result,o={categories:[],series:[{name:s,data:[]}]};let n=V.filter((t=>t.field===a));if(n=JSON.parse(JSON.stringify(n)),delete n[0].value,n[0].formatter="",this.getDays())for(const s of r){T(n,s,s);const t=F(s.start_time,"day");let e=Number(s[a]);o.series[0].data.push(e),o.categories.push(t)}else{const[t,e]=l,s=o.series[1]={name:F(t),data:[]},d=o.series[0]={name:F(e),data:[]};for(let l=0;l<24;++l){const t=l<10?"0"+l:l,e=`${t}:00 ~ ${t}:59`;o.categories.push(e),s.data[l]=0,d.data[l]=0,r.forEach((t=>{T(n,t,t);let e=Number(t[a]);const r=new Date(t.start_time);t.start_time{console.error(t)})).finally((()=>{}))},getAppAccessTimes(t){return e.database().collection(this.tableName).where(t).groupBy("appid").groupField("sum(page_visit_count) as total_app_access").get()},navTo(t){t&&a({url:t})}}},[["render",function(t,e,a,y,v,D){const q=c(p("uni-stat-breadcrumb"),h),x=o,C=c(p("uni-data-select"),_),T=c(p("uni-stat-tabs"),f),w=c(p("uni-datetime-picker"),m),F=c(p("uni-stat-panel"),g),V=c(p("qiun-data-charts"),b);return s(),r(x,{class:"fix-top-window"},{default:i((()=>[l(x,{class:"uni-header"},{default:i((()=>[l(q,{class:"uni-stat-breadcrumb-on-phone"})])),_:1}),l(x,{class:"uni-container"},{default:i((()=>[l(x,{class:"uni-stat--x flex p-1015"},{default:i((()=>[l(C,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",modelValue:v.query.appid,"onUpdate:modelValue":e[0]||(e[0]=t=>v.query.appid=t),clear:!1},null,8,["modelValue"]),l(C,{collection:"opendb-app-versions",where:D.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:v.query.version_id,"onUpdate:modelValue":e[1]||(e[1]=t=>v.query.version_id=t)},null,8,["where","modelValue"])])),_:1}),l(x,{class:"uni-stat--x flex"},{default:i((()=>[l(T,{label:"日期选择",current:v.currentDateTab,mode:"date",today:!0,onChange:D.changeTimeRange},null,8,["current","onChange"]),l(w,{type:"daterange",end:(new Date).getTime(),modelValue:v.query.start_time,"onUpdate:modelValue":e[2]||(e[2]=t=>v.query.start_time=t),returnType:"timestamp",clearIcon:!1,class:n(["uni-stat-datetime-picker",{"uni-stat__actived":v.currentDateTab<0&&!!v.query.start_time.length}]),onChange:D.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),l(x,{class:"uni-stat--x"},{default:i((()=>[l(T,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:v.query.platform_id,"onUpdate:modelValue":e[3]||(e[3]=t=>v.query.platform_id=t),onChange:D.changePlatform},null,8,["modelValue","onChange"]),v.query.platform_id&&-1===v.query.platform_id.indexOf("==")?(s(),r(C,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:D.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:v.query.channel_id,"onUpdate:modelValue":e[4]||(e[4]=t=>v.query.channel_id=t)},null,8,["where","modelValue"])):d("",!0)])),_:1}),l(F,{items:v.panelData,contrast:!0},null,8,["items"]),l(x,{class:"uni-stat--x p-m"},{default:i((()=>[l(x,{class:"uni-stat-card-header"},{default:i((()=>[u(" 趋势图 ")])),_:1}),l(T,{type:"box",modelValue:v.chartTab,"onUpdate:modelValue":e[5]||(e[5]=t=>v.chartTab=t),tabs:D.chartTabs,class:"mb-l",onChange:D.changeChartTab},null,8,["modelValue","tabs","onChange"]),l(x,{class:"uni-charts-box"},{default:i((()=>[l(V,{type:"area",chartData:v.chartData,eopts:v.eopts,echartsH5:"",echartsApp:"",tooltipFormat:"tooltipCustom",errorMessage:v.errorMessage},null,8,["chartData","eopts","errorMessage"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-29748419"]]);export{M as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-retention-retention.1ba97121.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-retention-retention.1ba97121.js new file mode 100644 index 0000000000000000000000000000000000000000..1002029e3e1d7c13136575f1f97ce81b8fdbffe2 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-retention-retention.1ba97121.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as a,c as i,w as s,i as l,a as n,d as r,z as o,b as d,e as u,r as c,F as p,f as h,g as m,t as f,aC as _,A as g,h as y,j as b,k as D,l as q}from"./index-389238f5.js";import{_ as C}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as x}from"./uni-data-select.8acadad5.js";import{_ as k}from"./uni-stat-tabs.4355c19c.js";import{_ as $}from"./qiun-data-charts.a402b569.js";import{_ as V}from"./uni-pagination.018f31ea.js";import{s as w,d as v,g as T,b as M,h as z,m as S}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const j=e({data:()=>({query:{dimension:"day",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:0,tableData:[],chartData:{},field:"new_user",fields:[{_id:"new_user",name:"新增留存",tooltip:"指定时间新增(即首次访问应用)用户,在之后的第N天,再次访问应用的用户数占比"},{_id:"active_user",name:"活跃留存",tooltip:"指定时间活跃(即访问应用)用户,在之后的第N天,再次访问应用的用户数占比"}],key:1,channelData:[],errorMessage:""}),computed:{fieldsMap(){return function(e=[{title:"新增用户",field:"new_user_count",stat:0}]){let t=[{title:"日期",field:"start_time",tooltip:"",formatter:"-",stat:-1}];e&&t.push(...e);const a=[1,2,3,4,5,6,7,14,30].map((t=>({title:`${t}天后`,field:`d_${t}`,computed:`d_${t}/${e[0].field}`,formatter:"%",tooltip:""})));return t=t.concat(a),t}([{title:"active_user"===this.field?"活跃用户":"新增用户",field:`${this.field}_count`,stat:0}])},fieldName(){let e="";return this.fields.forEach((t=>{t._id===this.field&&(e=t.name)})),e},keyName(){return this.keys.forEach((e=>{if(e._id===this.key)return e.name}))},keys:()=>[1,2,3,4,5,6,7,14,30].map((e=>({_id:e,name:`${e}天后`}))),channelQuery(){const e=this.query.platform_id;return w({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return w({appid:e,uni_platform:t})}},created(){this.debounceGet=v((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.options.pageCurrent=1,this.debounceGet()}},key(){this.debounceGet()},field(){this.debounceGet()}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=T(e),i=T(0)-1;this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.query)},changePageSize(e){this.options.pageSize=e,this.options.pageCurrent=1,this.getTabelData(this.query)},stringifyField(e,t,a){t&&(e=e.filter((e=>e.field===t))),a&&(e=e.filter((e=>e.field&&e.hasOwnProperty(a))));return e.map((e=>-1===e.stat?e.field:0===e.stat?`${e.field} as ${"temp_"+e.field}`:`retention.${this.field}.${e.field}.user_count as ${"temp_"+e.field}`)).join()},createStr(e="user_count",t,a,i){const s=t||[1,2,3,4,5,6,7,14,30],l=this.fields.map((e=>e._id));a=a||l;const n=s.map((t=>a.map((a=>`retention.${a}.${"d_"+t}.${e} as ${"d_"+t}`))));i&&n.push(i);return n.join()},getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e,this.key,this.keyName),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.key,i="访问人数"){this.options,e=w(e,null,["uni_platform"]),this.createStr("user_count",[a],[this.field]);t.database().collection("uni-stat-result").where(e).field(`${this.stringifyField(this.fieldsMap,`d_${a}`)}, start_time`).groupBy("start_time").groupField(M(this.fieldsMap,`d_${a}`)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{let{count:t,data:i}=e.result;const s={categories:[],series:[{name:`${a}天后${this.fieldName}`,data:[]}]};for(const l of i){const e=z(l.start_time,"day"),t=l[`d_${a}`];s.series[0].data.push(t),s.categories.push(e)}this.chartData=s})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getTabelData(e){const{pageCurrent:a}=this.options;e=w(e,null,["uni_platform"]);const i=this.field+"_count";this.createStr("user_rate","",[this.field],i),this.loading=!0;t.database().collection("uni-stat-result").where(e).field(this.stringifyField(this.fieldsMap)).groupBy("start_time").groupField(M(this.fieldsMap)).orderBy("start_time","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;for(const i of a)S(this.fieldsMap,i,i);this.options.total=t,this.tableData=[],this.tableData=a})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getChannelData(e,a){this.query.channel_id="";const i=t.database(),s={};(e=e||this.query.appid)&&(s.appid=e),(a=a||this.query.platform_id)&&(s.platform_id=a);let l=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),n=i.collection("uni-stat-app-channels").where(s).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(n,l).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,w,v,T,M){const z=h(m("uni-stat-breadcrumb"),C),S=l,j=h(m("uni-data-select"),x),P=h(m("uni-stat-tabs"),k),U=h(m("uni-datetime-picker"),_),A=h(m("qiun-data-charts"),$),F=h(m("uni-icons"),g),N=h(m("uni-th"),y),B=h(m("uni-tr"),b),G=h(m("uni-td"),D),Q=h(m("uni-table"),q),I=h(m("uni-pagination"),V);return a(),i(S,{class:"fix-top-window"},{default:s((()=>[n(S,{class:"uni-header"},{default:s((()=>[n(z,{class:"uni-stat-breadcrumb-on-phone"}),n(S,{class:"uni-group"},{default:s((()=>[n(S,{class:"uni-sub-title hide-on-phone"},{default:s((()=>[r("用户留存趋势分析")])),_:1})])),_:1})])),_:1}),n(S,{class:"uni-container"},{default:s((()=>[n(S,{class:"uni-stat--x flex p-1015"},{default:s((()=>[n(j,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:M.changeAppid,modelValue:T.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>T.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),n(j,{collection:"opendb-app-versions",where:M.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:T.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>T.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),n(S,{class:"uni-stat--x flex"},{default:s((()=>[n(P,{label:"日期选择",current:T.currentDateTab,mode:"date",yesterday:!1,onChange:M.changeTimeRange},null,8,["current","onChange"]),n(U,{type:"daterange",end:(new Date).getTime(),modelValue:T.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>T.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":T.currentDateTab<0&&!!T.query.start_time.length}]),onChange:M.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),n(S,{class:"uni-stat--x"},{default:s((()=>[n(P,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:T.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>T.query.platform_id=e),onChange:M.changePlatform},null,8,["modelValue","onChange"]),T.query.platform_id&&-1===T.query.platform_id.indexOf("==")?(a(),i(j,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:M.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:T.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>T.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),n(S,{class:"uni-stat--x mb-m",style:{"padding-top":"0"}},{default:s((()=>[n(S,{class:"mb-m line-bottom"},{default:s((()=>[n(P,{type:"boldLine",tabs:T.fields,modelValue:T.field,"onUpdate:modelValue":t[5]||(t[5]=e=>T.field=e),tooltip:"",style:{"line-height":"40px","margin-bottom":"-17px"}},null,8,["tabs","modelValue"])])),_:1}),n(P,{type:"box",tabs:M.keys,modelValue:T.key,"onUpdate:modelValue":t[6]||(t[6]=e=>T.key=e),class:"mb-l"},null,8,["tabs","modelValue"]),n(S,{class:"p-m"},{default:s((()=>[n(S,{class:"uni-charts-box"},{default:s((()=>[n(A,{type:"area",chartData:T.chartData,echartsH5:"",echartsApp:"",errorMessage:T.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1})])),_:1}),n(S,{class:"uni-stat--x p-m"},{default:s((()=>[n(S,{class:"uni-tips mb-s flex"},{default:s((()=>[n(F,{type:"info"}),r(" 表格中显示为空,表示留存为 0 或无数据 ")])),_:1}),n(Q,{loading:T.loading,stripe:"",emptyText:e.$t("common.empty")},{default:s((()=>[n(B,{style:{"background-color":"#eee"}},{default:s((()=>[(a(!0),u(p,null,c(M.fieldsMap,((e,t)=>(a(),u(p,{key:t},[e.title?(a(),i(N,{key:t,align:"center"},{default:s((()=>[r(f(e.title),1)])),_:2},1024)):d("",!0)],64)))),128))])),_:1}),(a(!0),u(p,null,c(T.tableData,((e,t)=>(a(),i(B,{key:t},{default:s((()=>[(a(!0),u(p,null,c(M.fieldsMap,((t,l)=>(a(),u(p,{key:l},[t.title?(a(),i(G,{key:l,align:"center",class:o(/[d|w|m]_\d/.test(t.field)&&[e[t.field]?"uni-stat-table-bg":""])},{default:s((()=>[r(f(e[t.field]?e[t.field]:""),1)])),_:2},1032,["class"])):d("",!0)],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading","emptyText"]),n(S,{class:"uni-pagination-box"},{default:s((()=>[n(I,{"show-icon":"","show-page-size":"","page-size":T.options.pageSize,current:T.options.pageCurrent,total:T.options.total,onChange:M.changePageCurrent,onPageSizeChange:M.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-80313bba"]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-stickiness-stickiness.f3c491ba.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-stickiness-stickiness.f3c491ba.js new file mode 100644 index 0000000000000000000000000000000000000000..4749928ff6c82ae3d4a35069fba0e16d8dac0dba --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-stickiness-stickiness.f3c491ba.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as a,c as i,w as s,i as l,a as n,d as r,z as o,b as d,f as u,g as p,aC as c}from"./index-389238f5.js";import{_ as h}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as m}from"./uni-data-select.8acadad5.js";import{_}from"./uni-stat-tabs.4355c19c.js";import{_ as f}from"./qiun-data-charts.a402b569.js";import{_ as g}from"./uni-stat-table.19e19a80.js";import{s as y,d as b,g as v,m as D}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const q=[{title:"名称",field:"name",tooltip:"",formatter:""},{title:"访问人数",field:"visit_users",tooltip:"访问人数(活跃用户数):访问过应用内任意页面的总用户数(去重)",value:0},{title:"访问人数占比",field:"visit_users/total_visit_users",computed:"visit_users/total_visit_users",formatter:"%"},{title:"访问次数",field:"visit_times",tooltip:"访问过应用内任意页面总次数,多个页面之间跳转、同一页面的重复访问计为多次访问",value:0},{title:"访问次数占比",field:"visit_times/total_visit_times",computed:"visit_times/total_visit_times",formatter:"%",tooltip:""}];const x=e({data:()=>({fieldsMap:q,query:{appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},loading:!1,currentDateTab:1,tableData:[],panelData:q.filter((e=>e.hasOwnProperty("value"))),chartData:{},type:"visit_depth_data",types:[{_id:"visit_depth_data",name:"访问页数"},{_id:"duration_data",name:"访问时长"}],field:"visit_users",fields:[{_id:"visit_users",name:"访问人数"},{_id:"visit_times",name:"访问次数"}],options:{visit_depth_data:{prefix:"p",title:"页",value:[1,2,3,4,5,10]},duration_data:{prefix:"s",title:"秒",value:[0,3,6,11,21,31,51,100]}},channelData:[],errorMessage:""}),computed:{fieldName(){return this.fields.forEach((e=>{if(e._id===this.field)return e.name}))},channelQuery(){const e=this.query.platform_id;return y({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return y({appid:e,uni_platform:t})}},created(){this.debounceGet=b((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.debounceGet()}},type(){this.debounceGet()},field(){this.debounceGet()}},methods:{useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;const a=v(e),i=v(0)-1;this.query.start_time=[a,i]},createStr(e,t="visit_depth_data"){const a=e.length,i=this.options[t].prefix;return this.options[t].value.map((s=>e.map((e=>`sum(${t}.${e}.${i+"_"+s}) as ${a>1?e+"_"+i+"_"+s:i+"_"+s}`)))).join()},parseChars(e){e=e.split("_");const t=this.options[this.type];let a=t.title;return t.value.forEach(((i,s)=>{const l=t.value[s+1];i===Number(e[e.length-1])&&(a=l?i+1===l?i+a:i+"-"+(l-1)+a:i+"+"+a)})),a},getAllData(e){e.appid?(this.errorMessage="",this.getChartData(e,this.field,this.fieldName),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.field,i=this.fields.find((e=>e._id===this.field)).name){e=y(e,null,["uni_platform"]);const s=this.createStr([a],this.type);t.database().collection("uni-stat-loyalty-result").where(e).groupBy("appid").groupField(s).orderBy("start_time","asc").get({getCount:!0}).then((e=>{let{count:t,data:a}=e.result;a=a[0];const i={series:[{data:[]}]};for(const s in a)if("appid"!==s){const e=this.parseChars(s),t=a[s];i.series[0].data.push({name:e,value:t})}this.chartData=i})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getTabelData(e){e=y(e,null,["uni_platform"]);const a=this.createStr(["visit_users","visit_times"],this.type);this.fieldsMap[0].title=this.types.find((e=>e._id===this.type)).name,this.loading=!0;t.database().collection("uni-stat-loyalty-result").where(e).groupBy("appid").groupField(a).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result,i=this.type,s=[];let l=this.options[i].prefix;l=`_${l}_`;for(const p of a)for(const e in p)if("appid"!==e){const t={},a=e.split(l);t.name=a[1],t[a[0]]=p[e],s.push(t)}const n=[],r={},o=(e,t)=>e+t;let d=s.filter((e=>e.visit_users)).map((e=>e.visit_users));d=d.length?d.reduce(o):0;let u=s.filter((e=>e.visit_times)).map((e=>e.visit_times));u=u.length?u.reduce(o):0,r.visit_times=u,r.visit_users=d,this.options[i].value.forEach((e=>{const t={};t.name=e+"p",s.forEach((a=>{if(Number(a.name)===e)for(const e in a)e!==name&&(t[e]=a[e],t["total_"+e]=r[e])})),t.name=this.parseChars(String(e)),n.push(t)}));for(const p of n)D(q,p,p);this.tableData=[],this.tableData=n})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getChannelData(e,a){this.query.channel_id="";const i=t.database(),s={};(e=e||this.query.appid)&&(s.appid=e),(a=a||this.query.platform_id)&&(s.platform_id=a);let l=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),n=i.collection("uni-stat-app-channels").where(s).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(n,l).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,y,b,v,D){const q=u(p("uni-stat-breadcrumb"),h),x=l,C=u(p("uni-data-select"),m),V=u(p("uni-stat-tabs"),_),w=u(p("uni-datetime-picker"),c),T=u(p("qiun-data-charts"),f),M=u(p("uni-stat-table"),g);return a(),i(x,{class:"fix-top-window"},{default:s((()=>[n(x,{class:"uni-header"},{default:s((()=>[n(q,{class:"uni-stat-breadcrumb-on-phone"}),n(x,{class:"uni-group"},{default:s((()=>[n(x,{class:"uni-sub-title hide-on-phone"},{default:s((()=>[r("用户忠诚度用户对您应用的访问深度及访问频次情况。助您了解用户对应用的粘度,尤其在对内容改进后,效果是否有所提升")])),_:1})])),_:1})])),_:1}),n(x,{class:"uni-container"},{default:s((()=>[n(x,{class:"uni-stat--x flex p-1015"},{default:s((()=>[n(C,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:D.changeAppid,modelValue:v.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>v.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),n(C,{collection:"opendb-app-versions",where:D.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:v.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>v.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),n(x,{class:"uni-stat--x flex"},{default:s((()=>[n(V,{label:"日期选择",current:v.currentDateTab,mode:"date",onChange:D.changeTimeRange},null,8,["current","onChange"]),n(w,{type:"daterange",end:(new Date).getTime(),modelValue:v.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>v.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:o(["uni-stat-datetime-picker",{"uni-stat__actived":v.currentDateTab<0&&!!v.query.start_time.length}]),onChange:D.useDatetimePicker},null,8,["end","modelValue","class","onChange"])])),_:1}),n(x,{class:"uni-stat--x"},{default:s((()=>[n(V,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:v.query.platform_id,"onUpdate:modelValue":t[3]||(t[3]=e=>v.query.platform_id=e),onChange:D.changePlatform},null,8,["modelValue","onChange"]),v.query.platform_id&&-1===v.query.platform_id.indexOf("==")?(a(),i(C,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:D.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:v.query.channel_id,"onUpdate:modelValue":t[4]||(t[4]=e=>v.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),n(x,{class:"uni-stat--x mb-l",style:{"padding-top":"0"}},{default:s((()=>[n(x,{class:"mb-m line-bottom"},{default:s((()=>[n(V,{type:"boldLine",tabs:v.types,modelValue:v.type,"onUpdate:modelValue":t[5]||(t[5]=e=>v.type=e),style:{"line-height":"40px","margin-bottom":"-17px"}},null,8,["tabs","modelValue"])])),_:1}),n(x,{class:"p-m"},{default:s((()=>[n(x,{class:"uni-charts-box"},{default:s((()=>[n(T,{type:"pie",chartData:v.chartData,echartsH5:"",echartsApp:"",errorMessage:v.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1})])),_:1}),n(x,{class:"uni-stat--x p-m"},{default:s((()=>[n(M,{data:v.tableData,filedsMap:v.fieldsMap,loading:v.loading},null,8,["data","filedsMap","loading"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-696af8be"]]);export{x as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-trend-trend.590928a7.js b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-trend-trend.590928a7.js new file mode 100644 index 0000000000000000000000000000000000000000..3c95d14b1f0d657945b805c2135eb791401d4b47 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/pages-uni-stat-user-trend-trend.590928a7.js @@ -0,0 +1 @@ +import{_ as e,L as t,n as a,o as i,c as s,w as n,i as l,a as r,d as o,z as u,b as d,f as c,g as h,aC as p}from"./index-389238f5.js";import{_ as m}from"./uni-stat-breadcrumb.647cd81f.js";import{_ as g}from"./uni-data-select.8acadad5.js";import{_}from"./uni-stat-tabs.4355c19c.js";import{_ as f}from"./uni-stat-panel.2e6a5931.js";import{_ as b}from"./qiun-data-charts.a402b569.js";import{_ as y}from"./uni-stat-table.19e19a80.js";import{_ as D}from"./uni-pagination.018f31ea.js";import{s as q,d as C,g as v,a as T,b as x,m as w,h as V,c as P}from"./util.63f19a41.js";import"./uni-tooltip.58062496.js";const z=[{title:"日期",field:"start_time",tooltip:"",formatter:"",stat:-1},{title:"新增用户",field:"new_user_count",tooltip:"首次访问应用的用户数(以设备为判断标准,去重)",value:0},{title:"活跃用户",field:"active_user_count",tooltip:"访问过应用内任意页面的总用户数(去重)",value:0},{title:"次均停留时长",field:"avg_user_session_time",formatter:":",tooltip:"平均每次打开应用停留在应用内的总时长,即应用停留总时长/启动次数",value:0,stat:"avg"},{title:"人均停留时长 ",field:"avg_user_time",formatter:":",tooltip:"平均每个用户停留在应用内的总时长,即应用停留总时长/活跃用户",value:0,stat:"avg"},{title:"总用户数",field:"total_users",tooltip:"从添加统计到当前选择时间的总用户数(去重)",value:0}];const S=e({data:()=>({fieldsMap:z,query:{dimension:"hour",appid:"",platform_id:"",uni_platform:"",version_id:"",channel_id:"",start_time:[]},options:{pageSize:20,pageCurrent:1,total:0},loading:!1,currentDateTab:1,currentDimensionTab:0,tableData:[],panelData:z.filter((e=>e.hasOwnProperty("value"))),chartData:{},chartTab:"new_user_count",channelData:[],tabName:"新增用户",errorMessage:""}),computed:{chartTabs(){const e=[];return z.forEach((t=>{const{field:a,title:i}=t,s=t.hasOwnProperty("value");a&&i&&s&&e.push({_id:a,name:i})})),e},dimensionTabs(){const e=[{_id:"hour",name:"按时"},{_id:"day",name:"按日"},{_id:"week",name:"按周"},{_id:"month",name:"按月"}];return this.getDays()?(this.query.dimension="day",e.forEach(((e,t)=>{"hour"===e._id?e.disabled=!0:e.disabled=!1})),this.currentDimensionTab=1):(this.query.dimension="hour",e.forEach(((e,t)=>{"hour"===e._id?e.disabled=!1:e.disabled=!0})),this.currentDimensionTab=0),e},channelQuery(){const e=this.query.platform_id;return q({platform_id:e})},versionQuery(){const{appid:e,uni_platform:t}=this.query;return q({appid:e,uni_platform:t})}},created(){this.debounceGet=C((()=>{this.getAllData(this.query)}),300),this.getChannelData()},watch:{query:{deep:!0,handler(e){this.debounceGet()}}},methods:{getDays(){if(!this.query.start_time.length)return!0;const[e,t]=this.query.start_time;return t-e>=864e5},useDatetimePicker(){this.currentDateTab=-1},changeAppid(e){this.getChannelData(e,!1)},changePlatform(e,t,a,i){this.getChannelData(null,e),this.query.version_id=0,this.query.uni_platform=i.code},changeTimeRange(e,t){this.currentDateTab=t;let a,i;a=v(e),i=e?v(0)-1:v(0)+864e5-1,this.query.start_time=[a,i]},changePageCurrent(e){this.options.pageCurrent=e.current,this.getTabelData(this.query)},changePageSize(e){this.options.pageSize=e,this.getTabelData(this.query)},changeChartTab(e,t,a){this.tabName=a,this.getChartData(this.query,e,a)},getAllData(e){e.appid?(this.errorMessage="",this.getPanelData(),this.getChartData(e,this.chartTab,this.tabName),this.getTabelData(e)):this.errorMessage="请先选择应用"},getChartData(e,a=this.chartTab,i="新增用户"){e=q(e,!0,["uni_platform"]);const s=this.query.dimension;t.database().collection("uni-stat-result").where(e).field(`${T(z,a)}, start_time`).groupBy("start_time").groupField(x(z,a)).orderBy("start_time","asc").get({getCount:!0}).then((e=>{const{count:t,data:n}=e.result,l={categories:[],series:[{name:i,data:[]}]};let r=z.filter((e=>e.field===a));r=JSON.parse(JSON.stringify(r)),delete r[0].value,r[0].formatter="";for(const i of n){w(r,i,i);const e=V(i.start_time,s);let t=i[a];l.series[0].data.push(t),l.categories.push(e)}this.chartData=l})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getTabelData(e){const{pageCurrent:a}=this.options;e=q(e,!0,["uni_platform"]),this.options.pageCurrent=1,this.loading=!0;t.database().collection("uni-stat-result").where(e).field(T(z)).groupBy("start_time").groupField(x(z)).orderBy("start_time","desc").skip((a-1)*this.options.pageSize).limit(this.options.pageSize).get({getCount:!0}).then((e=>{const{count:t,data:a}=e.result;for(const i of a){let e=i.start_time;if(e){const t=this.query.dimension;i.start_time=V(e,t)}w(z,i,i)}this.tableData=[],this.options.total=t,this.tableData=a})).catch((e=>{console.error(e)})).finally((()=>{this.loading=!1}))},getPanelData(){let e=JSON.parse(JSON.stringify(this.query));e.dimension="day";let a=q(e,null,["uni_platform"]);t.database().collection("uni-stat-result").where(a).field(`${T(z)},stat_date`).groupBy("appid").groupField(x(z)).orderBy("stat_date","desc").get().then((e=>{const t=e.result.data[0];t&&(t.total_users=0),this.panelData=[],this.panelData=w(z,t),P.call(this,a,"total_users")}))},navTo(e){a({url:`/pages/uni-stat/overview/overview?id=${e}`})},getChannelData(e,a){this.query.channel_id="";const i=t.database(),s={};(e=e||this.query.appid)&&(s.appid=e),(a=a||this.query.platform_id)&&(s.platform_id=a);let n=i.collection("uni-stat-app-platforms").field("_id, name").getTemp(),l=i.collection("uni-stat-app-channels").where(s).field("_id, channel_name, create_time, platform_id").getTemp();i.collection(l,n).orderBy("platform_id","asc").get().then((e=>{let t=e.result.data,a=[];if(t.length>0){let e;for(let i in t)e=t[i].channel_name?t[i].channel_name:"默认",t[i].platform_id.length>0&&(e=t[i].platform_id[0].name+"-"+e),a.push({value:t[i]._id,text:e})}this.channelData=a})).catch((e=>{console.error(e)})).finally((()=>{}))}}},[["render",function(e,t,a,q,C,v){const T=c(h("uni-stat-breadcrumb"),m),x=l,w=c(h("uni-data-select"),g),V=c(h("uni-stat-tabs"),_),P=c(h("uni-datetime-picker"),p),z=c(h("uni-stat-panel"),f),S=c(h("qiun-data-charts"),b),j=c(h("uni-stat-table"),y),M=c(h("uni-pagination"),D);return i(),s(x,{class:"fix-top-window"},{default:n((()=>[r(x,{class:"uni-header"},{default:n((()=>[r(T,{class:"uni-stat-breadcrumb-on-phone"}),r(x,{class:"uni-group"},{default:n((()=>[r(x,{class:"uni-sub-title hide-on-phone"},{default:n((()=>[o("各指标趋势分析")])),_:1})])),_:1})])),_:1}),r(x,{class:"uni-container"},{default:n((()=>[r(x,{class:"uni-stat--x flex p-1015"},{default:n((()=>[r(w,{collection:"opendb-app-list",field:"appid as value, name as text",orderby:"text asc",defItem:1,label:"应用选择",onChange:v.changeAppid,modelValue:C.query.appid,"onUpdate:modelValue":t[0]||(t[0]=e=>C.query.appid=e),clear:!1},null,8,["onChange","modelValue"]),r(w,{collection:"opendb-app-versions",where:v.versionQuery,class:"ml-m",field:"_id as value, version as text, uni_platform as label, create_date as date",format:"{label} - {text}",orderby:"date desc",label:"版本选择",modelValue:C.query.version_id,"onUpdate:modelValue":t[1]||(t[1]=e=>C.query.version_id=e)},null,8,["where","modelValue"])])),_:1}),r(x,{class:"uni-stat--x flex"},{default:n((()=>[r(V,{label:"日期选择",current:C.currentDateTab,mode:"date",onChange:v.changeTimeRange},null,8,["current","onChange"]),r(P,{type:"daterange",end:(new Date).getTime(),modelValue:C.query.start_time,"onUpdate:modelValue":t[2]||(t[2]=e=>C.query.start_time=e),returnType:"timestamp",clearIcon:!1,class:u(["uni-stat-datetime-picker",{"uni-stat__actived":C.currentDateTab<0&&!!C.query.start_time.length}]),onChange:v.useDatetimePicker},null,8,["end","modelValue","class","onChange"]),r(V,{label:"维度选择",type:"box",current:C.currentDimensionTab,tabs:v.dimensionTabs,modelValue:C.query.dimension,"onUpdate:modelValue":t[3]||(t[3]=e=>C.query.dimension=e)},null,8,["current","tabs","modelValue"])])),_:1}),r(x,{class:"uni-stat--x"},{default:n((()=>[r(V,{label:"平台选择",type:"boldLine",mode:"platform",modelValue:C.query.platform_id,"onUpdate:modelValue":t[4]||(t[4]=e=>C.query.platform_id=e),onChange:v.changePlatform},null,8,["modelValue","onChange"]),C.query.platform_id&&-1===C.query.platform_id.indexOf("==")?(i(),s(w,{key:0,ref:"version-select",collection:"uni-stat-app-channels",where:v.channelQuery,class:"p-channel",field:"_id as value, channel_name as text",orderby:"text asc",label:"渠道/场景值选择",modelValue:C.query.channel_id,"onUpdate:modelValue":t[5]||(t[5]=e=>C.query.channel_id=e)},null,8,["where","modelValue"])):d("",!0)])),_:1}),r(z,{items:C.panelData},null,8,["items"]),r(x,{class:"uni-stat--x p-m"},{default:n((()=>[r(x,{class:"label-text mb-l"},{default:n((()=>[o(" 趋势图 ")])),_:1}),r(V,{type:"box",modelValue:C.chartTab,"onUpdate:modelValue":t[6]||(t[6]=e=>C.chartTab=e),tabs:v.chartTabs,class:"mb-l",onChange:v.changeChartTab},null,8,["modelValue","tabs","onChange"]),r(x,{class:"uni-charts-box"},{default:n((()=>[r(S,{type:"area",chartData:C.chartData,echartsH5:"",echartsApp:"",errorMessage:C.errorMessage},null,8,["chartData","errorMessage"])])),_:1})])),_:1}),r(x,{class:"uni-stat--x p-m"},{default:n((()=>[r(j,{data:C.tableData,filedsMap:C.fieldsMap,loading:C.loading},null,8,["data","filedsMap","loading"]),r(x,{class:"uni-pagination-box"},{default:n((()=>[r(M,{"show-icon":"","show-page-size":"","page-size":C.options.pageSize,current:C.options.pageCurrent,total:C.options.total,onChange:v.changePageCurrent,onPageSizeChange:v.changePageSize},null,8,["page-size","current","total","onChange","onPageSizeChange"])])),_:1})])),_:1})])),_:1})])),_:1})}]]);export{S as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/password.4f678814.js b/alpha/admin/unpackage/dist/build/h5/assets/password.4f678814.js new file mode 100644 index 0000000000000000000000000000000000000000..0ff447701b228b8b6b434e9e66cd116b9b18682c --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/password.4f678814.js @@ -0,0 +1 @@ +import{aa as r}from"./index-389238f5.js";const{passwordStrength:e}=r,n={super:/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/])[0-9a-zA-Z~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/]{8,16}$/,strong:/^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/])[0-9a-zA-Z~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/]{8,16}$/,medium:/^(?![0-9]+$)(?![a-zA-Z]+$)(?![~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/]+$)[0-9a-zA-Z~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/]{8,16}$/,weak:/^(?=.*[0-9])(?=.*[a-zA-Z])[0-9a-zA-Z~!@#$%^&*_\-+=`|\\(){}[\]:;"'<>,.?/]{6,16}$/},o={normal:{noPwd:"请输入密码",noRePwd:"再次输入密码",rePwdErr:"两次输入密码不一致"},passwordStrengthError:{super:"密码必须包含大小写字母、数字和特殊符号,密码长度必须在8-16位之间",strong:"密码必须包含字母、数字和特殊符号,密码长度必须在8-16位之间",medium:"密码必须为字母、数字和特殊符号任意两种的组合,密码长度必须在8-16位之间",weak:"密码必须包含字母,密码长度必须在6-16位之间"}};function a(r){return!(e&&n[e]&&!new RegExp(n[e]).test(r))||o.passwordStrengthError[e]}const s={ERROR:o,validPwd:a,getPwdRules:function(r="password",e="password2"){const n={};return n[r]={rules:[{required:!0,errorMessage:o.normal.noPwd},{validateFunction:function(r,e,n,o){const s=a(e);return!0!==s&&o(s),!0}}]},e&&(n[e]={rules:[{required:!0,errorMessage:o.normal.noRePwd},{validateFunction:function(e,n,a,s){return n!=a[r]&&s(o.normal.rePwdErr),!0}}]}),n}};export{s as p}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/photo-6f69f4e3.svg b/alpha/admin/unpackage/dist/build/h5/assets/photo-6f69f4e3.svg new file mode 100644 index 0000000000000000000000000000000000000000..7b4b59058376794d6e6a78035f627678102f96ad --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/photo-6f69f4e3.svg @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/alpha/admin/unpackage/dist/build/h5/assets/qiun-data-charts-d776792e.css b/alpha/admin/unpackage/dist/build/h5/assets/qiun-data-charts-d776792e.css new file mode 100644 index 0000000000000000000000000000000000000000..045573a73a3e22ca5031909e65aeec67b6606e49 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/qiun-data-charts-d776792e.css @@ -0,0 +1 @@ +.container[data-v-a16ea79e]{width:30px;height:30px;position:relative}.container.loading1[data-v-a16ea79e]{transform:rotate(45deg)}.container .shape[data-v-a16ea79e]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-a16ea79e]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-a16ea79e]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-a16ea79e]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-a16ea79e]{bottom:0;right:0;background-color:#e66}.loading1 .shape1[data-v-a16ea79e]{animation:animation1shape1-a16ea79e .5s ease 0s infinite alternate}@keyframes animation1shape1-a16ea79e{0%{transform:translate(0)}to{transform:translate(16px,16px)}}.loading1 .shape2[data-v-a16ea79e]{animation:animation1shape2-a16ea79e .5s ease 0s infinite alternate}@keyframes animation1shape2-a16ea79e{0%{transform:translate(0)}to{transform:translate(-16px,16px)}}.loading1 .shape3[data-v-a16ea79e]{animation:animation1shape3-a16ea79e .5s ease 0s infinite alternate}@keyframes animation1shape3-a16ea79e{0%{transform:translate(0)}to{transform:translate(16px,-16px)}}.loading1 .shape4[data-v-a16ea79e]{animation:animation1shape4-a16ea79e .5s ease 0s infinite alternate}@keyframes animation1shape4-a16ea79e{0%{transform:translate(0)}to{transform:translate(-16px,-16px)}}.container[data-v-51d40d8b]{width:30px;height:30px;position:relative}.container.loading2[data-v-51d40d8b]{transform:rotate(10deg)}.container.loading2 .shape[data-v-51d40d8b]{border-radius:5px}.container.loading2[data-v-51d40d8b]{animation:rotation 1s infinite}.container .shape[data-v-51d40d8b]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-51d40d8b]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-51d40d8b]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-51d40d8b]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-51d40d8b]{bottom:0;right:0;background-color:#e66}.loading2 .shape1[data-v-51d40d8b]{animation:animation2shape1-51d40d8b .5s ease 0s infinite alternate}@keyframes animation2shape1-51d40d8b{0%{transform:translate(0)}to{transform:translate(20px,20px)}}.loading2 .shape2[data-v-51d40d8b]{animation:animation2shape2-51d40d8b .5s ease 0s infinite alternate}@keyframes animation2shape2-51d40d8b{0%{transform:translate(0)}to{transform:translate(-20px,20px)}}.loading2 .shape3[data-v-51d40d8b]{animation:animation2shape3-51d40d8b .5s ease 0s infinite alternate}@keyframes animation2shape3-51d40d8b{0%{transform:translate(0)}to{transform:translate(20px,-20px)}}.loading2 .shape4[data-v-51d40d8b]{animation:animation2shape4-51d40d8b .5s ease 0s infinite alternate}@keyframes animation2shape4-51d40d8b{0%{transform:translate(0)}to{transform:translate(-20px,-20px)}}.container[data-v-47408335]{width:30px;height:30px;position:relative}.container.loading3[data-v-47408335]{animation:rotation 1s infinite}.container.loading3 .shape1[data-v-47408335]{border-top-left-radius:10px}.container.loading3 .shape2[data-v-47408335]{border-top-right-radius:10px}.container.loading3 .shape3[data-v-47408335]{border-bottom-left-radius:10px}.container.loading3 .shape4[data-v-47408335]{border-bottom-right-radius:10px}.container .shape[data-v-47408335]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-47408335]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-47408335]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-47408335]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-47408335]{bottom:0;right:0;background-color:#e66}.loading3 .shape1[data-v-47408335]{animation:animation3shape1-47408335 .5s ease 0s infinite alternate}@keyframes animation3shape1-47408335{0%{transform:translate(0)}to{transform:translate(5px,5px)}}.loading3 .shape2[data-v-47408335]{animation:animation3shape2-47408335 .5s ease 0s infinite alternate}@keyframes animation3shape2-47408335{0%{transform:translate(0)}to{transform:translate(-5px,5px)}}.loading3 .shape3[data-v-47408335]{animation:animation3shape3-47408335 .5s ease 0s infinite alternate}@keyframes animation3shape3-47408335{0%{transform:translate(0)}to{transform:translate(5px,-5px)}}.loading3 .shape4[data-v-47408335]{animation:animation3shape4-47408335 .5s ease 0s infinite alternate}@keyframes animation3shape4-47408335{0%{transform:translate(0)}to{transform:translate(-5px,-5px)}}.container[data-v-49a6258a]{width:30px;height:30px;position:relative}.container.loading5 .shape[data-v-49a6258a]{width:15px;height:15px}.container .shape[data-v-49a6258a]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-49a6258a]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-49a6258a]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-49a6258a]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-49a6258a]{bottom:0;right:0;background-color:#e66}.loading5 .shape1[data-v-49a6258a]{animation:animation5shape1-49a6258a 2s ease 0s infinite reverse}@keyframes animation5shape1-49a6258a{0%{transform:translate(0)}25%{transform:translateY(15px)}50%{transform:translate(15px,15px)}75%{transform:translate(15px)}}.loading5 .shape2[data-v-49a6258a]{animation:animation5shape2-49a6258a 2s ease 0s infinite reverse}@keyframes animation5shape2-49a6258a{0%{transform:translate(0)}25%{transform:translate(-15px)}50%{transform:translate(-15px,15px)}75%{transform:translateY(15px)}}.loading5 .shape3[data-v-49a6258a]{animation:animation5shape3-49a6258a 2s ease 0s infinite reverse}@keyframes animation5shape3-49a6258a{0%{transform:translate(0)}25%{transform:translate(15px)}50%{transform:translate(15px,-15px)}75%{transform:translateY(-15px)}}.loading5 .shape4[data-v-49a6258a]{animation:animation5shape4-49a6258a 2s ease 0s infinite reverse}@keyframes animation5shape4-49a6258a{0%{transform:translate(0)}25%{transform:translateY(-15px)}50%{transform:translate(-15px,-15px)}75%{transform:translate(-15px)}}.container[data-v-08a06125]{width:30px;height:30px;position:relative}.container.loading6[data-v-08a06125]{animation:rotation 1s infinite}.container.loading6 .shape[data-v-08a06125]{width:12px;height:12px;border-radius:2px}.container .shape[data-v-08a06125]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-08a06125]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-08a06125]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-08a06125]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-08a06125]{bottom:0;right:0;background-color:#e66}.loading6 .shape1[data-v-08a06125]{animation:animation6shape1-08a06125 2s linear 0s infinite normal}@keyframes animation6shape1-08a06125{0%{transform:translate(0)}25%{transform:translateY(18px)}50%{transform:translate(18px,18px)}75%{transform:translate(18px)}}.loading6 .shape2[data-v-08a06125]{animation:animation6shape2-08a06125 2s linear 0s infinite normal}@keyframes animation6shape2-08a06125{0%{transform:translate(0)}25%{transform:translate(-18px)}50%{transform:translate(-18px,18px)}75%{transform:translateY(18px)}}.loading6 .shape3[data-v-08a06125]{animation:animation6shape3-08a06125 2s linear 0s infinite normal}@keyframes animation6shape3-08a06125{0%{transform:translate(0)}25%{transform:translate(18px)}50%{transform:translate(18px,-18px)}75%{transform:translateY(-18px)}}.loading6 .shape4[data-v-08a06125]{animation:animation6shape4-08a06125 2s linear 0s infinite normal}@keyframes animation6shape4-08a06125{0%{transform:translate(0)}25%{transform:translateY(-18px)}50%{transform:translate(-18px,-18px)}75%{transform:translate(-18px)}}.chartsview[data-v-af32de60]{width:100%;height:100%;display:flex;flex-direction:column;flex:1;justify-content:center;align-items:center}.charts-font[data-v-af32de60]{font-size:14px;color:#ccc;margin-top:10px}.charts-error[data-v-af32de60]{width:128px;height:128px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAUz0lEQVR4Xu1de3Bc1X3+zmp3jYVWfkPAgCWwY8zLEglNQCSW0yT9o2SQaDKdNulUykwfM+k09p+J3ImYIPJXi9yZzDSZZiwyaZuZBCwnNG1DMogEmUAAy7xs/MAyNhCMjWWtsK1deU/n23OvtLu6j3Pv3t29d71nxjOSde455/5+3/m9z7kCjRY4BR7eK7fkcmhrasLT37hbTAY+QYADigDHagwFYGhc7gZwHMAUgG4hMPzNe8RoWInTAECAnHl4r+yREt0DXWIbhx3cJ5fHP8TYjntFR4DTBDqUIwBmMrJDCtyPHDoQw0Q8jkeXinCLtECp43Gwh56R22IxTBbu+KFxOTbQJbo9DlW17rYASGdlNySeKl2JADpbkmKiait0mWhoXHZkmzE52CkocmvavvOsbMvl8MhAl+jlQrg2CQzu6BI9NV2Yw+T2AJiVo+DuL2kSeLQ1KfrC8kLcYbkYBv/pbjEWhjUNjUvSpk9KSAicm2tGXxjAaUcbewBkJAm6xeLBp1PJ2os06ttcDl8H0CEEaGnvGegSg2EAQZTW4B0AEntSS2ov0mhgJc5jmwT6IDEWi2E0zNZ2WEFhC4CZjCRxH7GwAfpbkmIkLC9EFQBg20BXeOySsNBGZx2OXkB6Vg5CgAbMZgD7BTDSkhTDOgM3+kSDAr7iANNz8n4hQRdxojUu9kTjVRurtKKAJwBIKZfPZPOuYWFgY6wlgV4hau+GNVjsnQKeAJDOSIp/Wt6lbSKeQG8jSOSdAbV+wisA7FxDSGAqBmwNS5DIiGIucyNwKiGedutTz3/3BgCb4JBJoGqDIJ2VW4REmxRog0S3lGgT/NlfY3RzCgJjQmJSCkxeDuDwBgCb8HAhvQkCIdCbSgQfmSPDmWGDzHsm1UqwjBEUAMbqERCeAEBGz2RknwR2uW0yAZQdL6DR+WEW90syXLmjtW8So0Jg9MoE9tSD4esZANUAAd1M5NAjGOULaaOkAzCKGEaj7Ar7AoBHEGxrSYqdOnxMZ+W3ZA59ZehxnWkC7yMlJkUMIy1x7IyaVPANAAMEHTlgTACO1rYERlqTot+J8nbp58C5VcEBDftnOEpAKAsAgYPAPgNZQbYFP3QeCAybJ/Bg2CVC2QDwCoJUAtudiJKuExCQLoZbPKirAoOHovuIThVByuXii2jE/C9I2TaXBYsfmThyahMtCWy1A4ERbj7rvvRI9aCa3F7pINm3n5XdXgtjFgHAYCQrW4v8bBo6MYFep5cwmEefuSwQpDNSRoq9+osdrqRaGBqXMhfDVi8gWASAdEbuswuyGCKNSLatBygXBHUqAQohMmHESAKrqzSro4TIS2yOq10dVQQAuyKQUoC7BXnIxHQWwwL4ay/qIM/8DHaFJuijv7M99QzaNmAx6hzQFsvhKSmxvakJo7oHUooA4MUA0wHBTDYfQnVUB6bFnLc1JHqiFgPwxPnSzhKjLUn0B+UpsDoqFkOfLvO5HN8AMN5lOJUU2+2IMD0ne0QOtCcq0k7OANe1VGToag7qaBRXeiFFAJjOyBENsV20Jqcgj2FQHgvyJWYvAQfPAJuvAv7198ADm4DMHJBKAmuag5ypemPpGNiVWk2pDcCDDDQCPTU7EOgmjrxMRgA8dgBYmwJOXwBuWgH87m3gz26OLgDy6q9G9RSLvIAymFZUGsaCjJzE7qB1+vvngXRGQebG5QB/P30eaF2iQBHllk8wxdDfGq/eYVLLQJBfEOQNOpk3/Bg86hbA8iAZwt2/a78asX8zsKRJ/fzYQeDttFIHUbcJqi0JnM4FaOX9g2Sw7lgHTgPTs0DHRxTjT5wDtqzTfTr8/aoJArfTwX055P1519q6apGV4v8/XlU6nzv/vo8CvzwK3L0W2LS6Wquo/DzVAoFrMiivyzVSvpUnycIMVAUU///2kgIC9b+pDqq5jirMVXEX0RUAfMkwgoDrMoFQBUbUcoqxVFJsrdQCtAAQZhBUijChGlfiwdSSypx81gaAAQLLA6OhIlaNF2MGqriMm1cFqJoEtlai0lobAIzqZbPYF7RrV2N+BT79L99c8Eh+dzI474RGYSqB9qDyBuaLawMgnZE8Exjau24C56TPAZ8+vsD0594GPrHW50DWjwVuD2gBwDgm/q1AX6VOB/v5YeDWNerlXnsf+MKGYF/ULQvrdTZXAFQioeN1kVHqTxuAgSo2xiWCdk+DVgWuAEjPyt31XqARJYAZa92ZSqq7CMttjgCoh1r9cgkU1ueDuq7PEQDTs/JY0Nm8sBI0gusKxCCMZDIogsyqzJIDiA3YAqCx+yvDs4BHLVsKBFoPEPDLNYbToUCZUsASAFHY/SfTCxWtq5qBK4ziEB2a1VmfsqTAIgBUupLXL/Evshj0NNCaBM7NAr89sTDSp64HOj/id+ToP1eOR7AYAD4qg6tBwufeARhabV8BfPJaFWxZEgeSMWDTmstaApD8vuMCRQAI47Gs37wFrG4GrksBR882mG212VhW3rpEtPvZiL6OhvmZyOszFPm7D6qqX+76L6xfGIH/l7mkVMGNKy773Z8njIyh1081cfHBkJAEfgqZv2kV8Cmj4HP/H4ADZ1RBqNmYbfvEtV7hVX/9/X7HYR4AYUr6PPmmYjSZ/7kblRT47yOK8Uyu8DxA6xXqHADVw2XsARQhuSWBFV7rBeYBoHsyuNJ7582zwBNHgNVLgb+8TTH/8YOq/o+7ffPVCwynpAiC+W+cUfOcnwOuvlIdO4ti86MG5gGQdrkFtFoE2fUykJ4F+u4AknHgx6+pnf/ZduCW1QD9f3oDPA/A5tcFpA3x8ingxXcVuPJ61Dgt27MRuKG1Wm8c6DyevYE8AMJk/f/nq8BNK5VeN10/k8mvnwZ+ZRw1pfjnYdCOq1VZuJd2/Bzwv0cXGL9hpdr1PGNIgMUF8Oe3AquWehk1FH0nUknR6WUleQCENe37vZeUFOi/AyhUDbQL/JwE5q4ngI4YNxBxl7NiZ5kBoCePAb9/R4mBq64EejcGX9DhhTl++sYTaPdya7sCgPoySM1LvujzM8Dzd3cuMNy08ikZeBqYqoE7njv1t28p3c3f/+hapSLs2jszAI1Luo40JMn4j64s7v3PzympQNeSgLtnLfDxiHkYXkvGFAA0r2Yjsf3sPF0km/r/H+9aEP8P8ORPEhh5ecErIPNpGLJxF7/3oWLcfesV80rboQ+UyDf7f3HTYuPx+XeAX00Ct68BPn0D8O8TasyvbgZakrpvEIp+nuyAPACmM/KsW7k3b+N4/ABA5lSq8cIH0/o39f9f3KoYQYab0uDnR4BjZ4Gv3LYAgB+9qiQB+xe2X0+q4kw22hL8V9roTXz3BTXP1z6mVAJzDfxHqUIDNELN02f9hI7/T6v7zSklbml8MfFCXzzoRp1Pv57n/Wj5M/RrJnn2/QG4rlVJIPM4+DfvWVjB9/YpFfFJIzBEZv7iMHAirUT+59qBO2zcu7zuf1ftfrOKtxAUVElBF3cGTTtzPBaNtiaFhRy0nlHoGIDc/a+fUlez0Dq/ZY26kiXoRoCR0G5WvRkoMnf0/xwFXnwPiAFINgE3LAOmLwKnjPEoKejfW7Xj0+q0Mef92seLVQNLvF95H/iTm4CNJfZC0O8e5HheAkJCNwBkHsv++zuDXKq/sSgd/uu1xf47gfnWOR5mVeNe1Qx8adOClW8l+n8woQzDL9682Cik7fDTg8D1KaD3Zn9rrdRTlHA0mmmvLJJOHopERFg8AK+EIgiomo6dAy7OKdXwNx3AiRngRy8DOQl0XgN8Zp19tJDMJZMLRX/pOh7eqwhMNRCmZtpkVreiePEECADLj0SH6WWd1kIgPP6G2sVty4Av36pE/+43gDMX1K6+b8NiEJhGHqXEV263Bwm9AY731Q6gJVF7qnDnT7ynbCS6zDx8QpXJgNi8JPBwmljouoC1f3X7FdDHH30DmMsBG1YosU+m0Vg8exG4pkV5B2begCFg5htIMCf7gDOadsCXbgGusbEjqkkbMp+iv7QR5POG+eUGADL/rWmgSQBzEui4CvjT9cBUBnjikPqbCYJzF4EfGBdNMW5g5xmYBKY3cOgMsGEVcClXTVY7z+WkArxUCIkoFIA6keLXx4DXTiuDb2ubihdkcsCnDZ+fDPzZIRX+pYvJRBPF6GfbVPRQt124FE4AULJZBOe0YwFUAZG9mv2Fd4G9J4tdOEb0fnNCVQxtuQHoug4gCH5yADgxrdjtZPRZeQqvnFISgEmiMDV6ZjbueP0DgBm9PYes9Tizhr84mr98Ol9Qwps66OszZOyF+WS2GSQKiw2gCcD6BkBMABT9DNLY6XFKgicnVWCIuQR6BMwb0Ojz0hhipg3x5dsilR6ubwA0xwGCgDvaLsJHJtPPP/yBKvQg862SQG5gYByArZI5ELc1+Pi7PgCmM5JfuArNRZBuL0uGMkdg5dsXPktwcPfS4PMq9s1xzDAxS9KZlYxQ0wdAlOIAFOPU5Wxm1s6KKfTzqbvLYT7HNWMANCZZixihVp8AYHSPlrxdWpcMMiN8/Pmua1QW0E+LajbQeNf6A4BZ1MGw5z98bDFLybAnDqvYPptOkMcJGBGuB+BraReFRCYU/OPXgVMfWjOW+p4Gn1nu5RbedZMIHOe7L6pevJa+EqlvtzWU9XdPoeCQ1AM6vbCp+0t3P3c96wJZzMHG6l4WdJR7VuCR54ELc6q4xEu0sCymBfiwp2ygbj1AgOvzPBQjcU8dL9bpNPQops1dT7sgCGYxScSxGURa2+rubXh+mWo84KkeICu7IcFbQEPb6Pqx6mdpXBV9HvlgoRiktLS7nJcw9X4ipuIM9CJWXqHSxVFqXkrDRZgOhdgROZsDvv8ScMnMWgiV9uWOXxfACR6qErp8BJpVY7KF2UW3UrUwgEQC51qTQrtiU1UFz8pJIRDqj67MzAGPva5EPsO7zPkHwXyO98NX1IeomE4myFgnQHAxysiQMkPBLIZlsWoEmrYLyHfxdC6g1i/PxfJkD9O/bOWIf/OaGep7Nur8eEwBoNCFpHQw6wb/9s7yDcwq0FDbBVwAQAQ8gULCUVSPn1y4J4BlX+uWqfIv85iXFaHN4g7uaJ4INr84wtLzrAReeFs99Ve3Fx8O/ZfnVd3hXdeqbxOFuXnxAOYBENaLoZwITWnA3ct6APN0L/tTbFOEXxFXP3OnT11UI5HxhY2HPnjYhCqFpeY8+8BWGGnk89/fB9AOYWPRCXMLYW1eDMB5APCHqBaGEAisDWCI+PDZ4ttDSplEYKxfody79uUKKOapI55J4Glg2gIsJqF6IYAIMvZh/2MGQG5bA3ymLXgI0IATAj3ml0G8VmxLieOtS4SnlYXufoByydoUUwdHeUhkdk6dLqbzwCNndO8KG5nO8DGZblYHs2bwJweLgWQGmFgbyDgBG08OXx+AB1K0IAv/3ctHPP1cExO6G0LKBYDu82Q+q4a52ynSWTlUGEFkKpht+ZJiu4L/T8/g8+1Ac6JY/ejObdcvlRSWRWc8vSUlRt3S9mXdEKJzRrDcFwzL86ynZ7qYzW+tAA3Knx5Qhaa0GcotrHQ706f16T6J0ZYk+r3cE1SEuHRGTgDYHBZGVWIdhcz3WhlcuJ7CdDGDUn/crozJcprbDtYCAeDpY5PFAIiYO+iV2Nz15udcyk0Xc+7CqiPeKPLAxvJAoPO5WOOr7KMugTttEBQBoJ7VQCHzGS9wqiX0AiyCwKxBqBYIjPA9v9LuJK0n4gn0ul0XE5m7gr0wpbSveYqmnDF0nw3qWhm3gI4OCHQkyiIA6NwXoEuMsPSjH8/IX2ausiuiIcjawXJtAXOVgYBAYjKVRKedYWj3vYDQJ4cqy8rwjO4GAq502uWGdyfjsvHFkPDw2n4lAoOphHjQaalOIHACkSUAqF/SWUy6BR6iQLt6WaMERlqTot8rCBheTiTQYWcM2h539BKCrBcih/09dEBAvuWAYW5eMh8x9JnXyBu5hS359xQYa4ljp+N51ygUioSdaUGvjyBIJbDdLdpHKV7YxyqxxNyBIwDq0SMImiE1Gk870GOuz+oEGN1E1xPvUTo6ViNm1GpaTyCwC/O7AoChRwnsq9VbNuZ1pIA2CCy9BIk9rgDg9OmMHAbw9QYzQkkBLRAYkcNRAMoIBPYLoE8LAAYI6j5TGEr26i3KUyFo4ZDaANBMReott9ErUAq41RI4TaYNAA4ShWNkgVI2QoPZVRO5vYItAIbGZYcQWJZZiv2DncIoh8x/XCLSN4u6ESSqfw8UAEPjeaOvj1+kBLCuqQmd37hb8Gfz+0Juueio0jGS6/ZTDGq+6CIJMLhPLk+cx9lYDO1k+kPPyBEhMDnQJQbNh1g4ks1iopErqDhe9scT6JnLYBgC91vN5hbrd1vhIgB851nZlsvhWLYZKyj6DWmAgS6xrXCwhlHoRtry/s4a/1QSHWY4l6FcKbCtcNOxT0ygpyUp6KH5apY2gLHrt1AFCIHOWAwdpgoonKURKvZFc9eHuKtjQHcpY/Mle3NoQw7dsgkTfr4VXDq5rRH48F7Zk8uhrakJo1bMNwdqZA1d+empgx3zPQ3iobMnN9Bu3AYIPFDcoWu1mc+lBAIADsQDpshhpGEY+gNDLZgfCADoNSQvqPLkTSuxfuNq7IwJhODTCv4YUYunsjkc3f8+Bo7M4v8KYy5cixmPKVxXaWymnDWXLQGGxiVjAmaCoZy1XPbPSon9O+4VHSYhaIdJid2lhJESUzvu1f80nBNhywYA3cY5oOhI8uqlaLk+hfWXPUc1CHAijSOnL2CGXePAZKHBzd0PgEG50jZR6pZrTGXZpWwA+J248Vw4KNAAQDj4ULNVBA6Abz8ru8Ul9SVyITCVbUY/DRsjxLxLSmhdYSYEHh3oEiMch2rm0iXssqHSxI57xfZKU/ChZ+QjAOb1c6XnM+g3T4NKzRc4AIbGZR8TSeaCYzH0Ua8ZIeY8QzXbSBEAcvlSZyvwBKYPndb10LjkBQ1a4NV8P51u8zTQ6eynT+AA8LOIxjO1o0ADALWjfShmjhwACgNPoaCgsnWOO+VLwrJOq3VEDgCGLrbMjdeK0EEGZqr9DpEDgFXgqdpEK50vlsPUQJf/nHwt1///89bqDjCPWPAAAAAASUVORK5CYII=);background-position:center}.chartsview[data-v-53c001dd]{width:100%;height:100%;display:flex;flex:1;justify-content:center;align-items:center} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/qiun-data-charts.a402b569.js b/alpha/admin/unpackage/dist/build/h5/assets/qiun-data-charts.a402b569.js new file mode 100644 index 0000000000000000000000000000000000000000..95a80b891d5e5cf063f85ff73ba37e5b6c03e2a5 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/qiun-data-charts.a402b569.js @@ -0,0 +1 @@ +import{_ as t,o as e,c as i,w as a,a as o,i as r,B as n,b as l,d as s,t as h,L as c,Y as d,aD as p,aE as x,al as g,a7 as u,a8 as f,f as y,g as m,P as b,I as v,T as S,a9 as w}from"./index-389238f5.js";const T=t({components:{Loading1:t({name:"loading1",data:()=>({})},[["render",function(t,n,l,s,h,c){const d=r;return e(),i(d,{class:"container loading1"},{default:a((()=>[o(d,{class:"shape shape1"}),o(d,{class:"shape shape2"}),o(d,{class:"shape shape3"}),o(d,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-a16ea79e"]]),Loading2:t({name:"loading2",data:()=>({})},[["render",function(t,n,l,s,h,c){const d=r;return e(),i(d,{class:"container loading2"},{default:a((()=>[o(d,{class:"shape shape1"}),o(d,{class:"shape shape2"}),o(d,{class:"shape shape3"}),o(d,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-51d40d8b"]]),Loading3:t({name:"loading3",data:()=>({})},[["render",function(t,n,l,s,h,c){const d=r;return e(),i(d,{class:"container loading3"},{default:a((()=>[o(d,{class:"shape shape1"}),o(d,{class:"shape shape2"}),o(d,{class:"shape shape3"}),o(d,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-47408335"]]),Loading4:t({name:"loading5",data:()=>({})},[["render",function(t,n,l,s,h,c){const d=r;return e(),i(d,{class:"container loading5"},{default:a((()=>[o(d,{class:"shape shape1"}),o(d,{class:"shape shape2"}),o(d,{class:"shape shape3"}),o(d,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-49a6258a"]]),Loading5:t({name:"loading6",data:()=>({})},[["render",function(t,n,l,s,h,c){const d=r;return e(),i(d,{class:"container loading6"},{default:a((()=>[o(d,{class:"shape shape1"}),o(d,{class:"shape shape2"}),o(d,{class:"shape shape3"}),o(d,{class:"shape shape4"})])),_:1})}],["__scopeId","data-v-08a06125"]])},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:()=>({})},[["render",function(t,o,s,h,c,d){const p=n("Loading1"),x=n("Loading2"),g=n("Loading3"),u=n("Loading4"),f=n("Loading5"),y=r;return e(),i(y,null,{default:a((()=>[1==s.loadingType?(e(),i(p,{key:0})):l("",!0),2==s.loadingType?(e(),i(x,{key:1})):l("",!0),3==s.loadingType?(e(),i(g,{key:2})):l("",!0),4==s.loadingType?(e(),i(u,{key:3})):l("",!0),5==s.loadingType?(e(),i(f,{key:4})):l("",!0)])),_:1})}]]);const A=t({name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:()=>({})},[["render",function(t,n,l,c,d,p){const x=r;return e(),i(x,{class:"chartsview"},{default:a((()=>[o(x,{class:"charts-error"}),o(x,{class:"charts-font"},{default:a((()=>[s(h(null==l.errorMessage?"请点击重试":l.errorMessage),1)])),_:1})])),_:1})}],["__scopeId","data-v-af32de60"]]);var C={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},P=function(t,...e){if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!e||e.length<=0)return t;function i(t,e){for(let a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?i(t[a],e[a]):t[a]=e[a];return t}return e.forEach((e=>{t=i(t,e)})),t},D={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!=0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){return t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,!(e.start.x>t.end.x||e.end.xt.start.y||e.start.y1&&(o.extra.mount.widthRatio>2&&(o.extra.mount.widthRatio=2),n+=(o.extra.mount.widthRatio-1)*i.eachSpacing);var l=e;return e>=0?(l=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",o.xAxis.scrollPosition="left"):Math.abs(e)>=n-r?(l=r-n,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",o.xAxis.scrollPosition="right"):(t.scrollOption.position=e,o.xAxis.scrollPosition=e),l}function _(t,e,i){function a(t){for(;t<0;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t}return t=a(t),(e=a(e))>(i=a(i))&&(i+=2*Math.PI,t=e&&t<=i}function k(t,e){function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var o=.2,r=.2,n=null,l=null,s=null,h=null;if(e<1?(n=t[0].x+(t[1].x-t[0].x)*o,l=t[0].y+(t[1].y-t[0].y)*o):(n=t[e].x+(t[e+1].x-t[e-1].x)*o,l=t[e].y+(t[e+1].y-t[e-1].y)*o),e>t.length-3){var c=t.length-1;s=t[c].x-(t[c].x-t[c-1].x)*r,h=t[c].y-(t[c].y-t[c-1].y)*r}else s=t[e+1].x-(t[e+2].x-t[e].x)*r,h=t[e+1].y-(t[e+2].y-t[e].y)*r;return i(t,e+1)&&(h=t[e+1].y),i(t,e)&&(l=t[e].y),a(t,e+1)&&(s=t[e+1].x),a(t,e)&&(n=t[e].x),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e].y),(h>=Math.max(t[e].y,t[e+1].y)||h<=Math.min(t[e].y,t[e+1].y))&&(h=t[e+1].y),(n>=Math.max(t[e].x,t[e+1].x)||n<=Math.min(t[e].x,t[e+1].x))&&(n=t[e].x),(s>=Math.max(t[e].x,t[e+1].x)||s<=Math.min(t[e].x,t[e+1].x))&&(s=t[e+1].x),{ctrA:{x:n,y:l},ctrB:{x:s,y:h}}}function I(t,e,i){return{x:i.x+t,y:i.y-e}}function O(t,e){if(e)for(;D.isCollision(t,e);)t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function z(t,e,i){for(var a=0,o=0;o-1;if(r){let e=q(t);for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:{},n=e.chartData.calPoints?e.chartData.calPoints:[];let l={};if(a.length>0){let t=[];for(let e=0;e0&&(a=o[i]),{text:r.formatter?r.formatter(t,a,i,e):t.name+": "+t.data,color:t.color,legendShape:"auto"==e.extra.tooltip.legendShape?t.legendShape:e.extra.tooltip.legendShape}})),h={x:Math.round(l.x),y:Math.round(l.y)};return{textList:s,offset:h}}function J(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=e.chartData.xAxisPoints[i]+e.chartData.eachSpacing/2,n=t.map((function(t){return{text:o.formatter?o.formatter(t,a[i],i,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend,legendShape:"auto"==e.extra.tooltip.legendShape?t.legendShape:e.extra.tooltip.legendShape}}));n=n.filter((function(t){if(!0!==t.disableLegend)return t}));var l={x:Math.round(r),y:0};return{textList:n,offset:l}}function Y(t,e,i,a,o,r){var n=i.chartData.calPoints;let l=r.color.upFill,s=r.color.downFill,h=[l,l,s,l];var c=[];e.map((function(e){0==a?e.data[1]-e.data[0]<0?h[1]=s:h[1]=l:(e.data[0]t[a-1][1]&&(h[2]=l),e.data[3]=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function U(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function V(t,e){var i=[],a=[];return t.forEach((function(t,o){e.connectNulls?null!==t&&a.push(t):null!==t?a.push(t):(a.length&&i.push(a),a=[])})),a.length&&i.push(a),i}function Z(t,e,i,a,o){var r={angle:0,xAxisHeight:e.xAxis.lineHeight*e.pix+e.xAxis.marginTop*e.pix},n=e.xAxis.fontSize*e.pix,l=t.map((function(t,i){var a=e.xAxis.formatter?e.xAxis.formatter(t,i,e):t;return W(String(a),n,o)})),s=Math.max.apply(this,l);if(1==e.xAxis.rotateLabel){r.angle=e.xAxis.rotateAngle*Math.PI/180;let t=e.xAxis.marginTop*e.pix*2+Math.abs(s*Math.sin(r.angle));t=t4&&void 0!==arguments[4]?arguments[4]:-1;o="stack"==a?B(t,e.categories.length):R(t);var n=[];(o=o.filter((function(t){return"object"==typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t}))).map((function(t){"object"==typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){n.push(t)})):n.push(t[0]):n.push(t.value):n.push(t)}));var l=0,s=0;if(n.length>0&&(l=Math.min.apply(this,n),s=Math.max.apply(this,n)),r>-1?("number"==typeof e.xAxis.data[r].min&&(l=Math.min(e.xAxis.data[r].min,l)),"number"==typeof e.xAxis.data[r].max&&(s=Math.max(e.xAxis.data[r].max,s))):("number"==typeof e.xAxis.min&&(l=Math.min(e.xAxis.min,l)),"number"==typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),l===s){s+=s||10}for(var h=l,c=[],d=(s-h)/e.xAxis.splitNumber,p=0;p<=e.xAxis.splitNumber;p++)c.push(h+d*p);return c}(t,e,i,o.type),r.rangesFormat=r.ranges.map((function(t){return t=D.toFixed(t,2)}));var n=r.ranges.map((function(t){return t=D.toFixed(t,2)}));return(r=Object.assign(r,pt(n,e))).eachSpacing,n.map((function(t){return W(t,e.xAxis.fontSize*e.pix,a)})),!0===e.xAxis.disabled&&(r.xAxisHeight=0),r}function Q(t,e,i,a,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,n=o.extra.radar||{};n.max=n.max||0;var l=Math.max(n.max,Math.max.apply(null,R(a))),s=[];for(let h=0;h2&&void 0!==arguments[2]?arguments[2]:1,a=0,o=0;for(let r=0;r4&&void 0!==arguments[4]?arguments[4]:1;for(let r=0;r4&&void 0!==arguments[4]?arguments[4]:1,r=0,n=0,l=[];for(let d=0;d2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(let a=0;a=2&&(r._proportion_=r._proportion_%2)}return t}function ot(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(let a=0;a=2&&(r._proportion_=r._proportion_%2)}return t}function rt(t,e,i){let a;a=i=2&&(t[r]._endAngle_=t[r]._endAngle_%2),o=t[r]._endAngle_;return t}function nt(t,e,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;for(let o=0;o=i.oldData?n._proportion_=(n._endAngle_-n._oldAngle_)*a+i.oldAngle:n._proportion_=n._oldAngle_-(n._oldAngle_-n._endAngle_)*a,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function lt(t,e,i,a,o,r){return t.map((function(t){if(null===t)return null;var o=0,n=0;return"mix"==r.type?(o=r.extra.mix.column.seriesGap*r.pix||0,n=r.extra.mix.column.categoryGap*r.pix||0):(o=r.extra.column.seriesGap*r.pix||0,n=r.extra.column.categoryGap*r.pix||0),o=Math.min(o,e/i),n=Math.min(n,e/i),t.width=Math.ceil((e-2*n-o*(i-1))/i),r.extra.mix&&r.extra.mix.column.width&&+r.extra.mix.column.width>0&&(t.width=Math.min(t.width,+r.extra.mix.column.width*r.pix)),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width*r.pix)),t.width<=0&&(t.width=1),t.x+=(a+.5-i/2)*(t.width+o),t}))}function st(t,e,i,a,o,r){return t.map((function(t){if(null===t)return null;var o=0,n=0;return o=r.extra.bar.seriesGap*r.pix||0,n=r.extra.bar.categoryGap*r.pix||0,o=Math.min(o,e/i),n=Math.min(n,e/i),t.width=Math.ceil((e-2*n-o*(i-1))/i),r.extra.bar&&r.extra.bar.width&&+r.extra.bar.width>0&&(t.width=Math.min(t.width,+r.extra.bar.width*r.pix)),t.width<=0&&(t.width=1),t.y+=(a+.5-i/2)*(t.width+o),t}))}function ht(t,e,i,a,o,r,n){var l=r.extra.column.categoryGap*r.pix||0;return t.map((function(t){return null===t?null:(t.width=e-2*l,r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width*r.pix)),a>0&&(t.width-=n),t)}))}function ct(t,e,i,a,o,r,n){var l=r.extra.column.categoryGap*r.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*l),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width*r.pix)),t.width<=0&&(t.width=1),t)}))}function dt(t,e,i,a,o,r,n){var l=r.extra.bar.categoryGap*r.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*l),r.extra.bar&&r.extra.bar.width&&+r.extra.bar.width>0&&(t.width=Math.min(t.width,+r.extra.bar.width*r.pix)),t.width<=0&&(t.width=1),t)}))}function pt(t,e,i){var a=e.width-e.area[1]-e.area[3],o=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&o>1&&"justify"==e.xAxis.boundaryGap&&(o-=1);var r=0;"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),o+=r=e.extra.mount.widthRatio-1);var n=a/o,l=[],s=e.area[3],h=e.width-e.area[1];return t.forEach((function(t,e){l.push(s+r/2*n+e*n)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?l.push(s+r*n+t.length*n):l.push(h)),{xAxisPoints:l,startX:s,endX:h,eachSpacing:n}}function xt(t,e,i,a,o,r,n){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[],h=r.height-r.area[0]-r.area[2];return t.forEach((function(t,n){if(null===t)s.push(null);else{var c=[];t.forEach((function(t,s){var d={};d.x=a[n]+Math.round(o/2);var p=t.value||t,x=h*(p-e)/(i-e);x*=l,d.y=r.height-Math.round(x)-r.area[2],c.push(d)})),s.push(c)}})),s}function gt(t,e,i,a,o,r,n){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s="center";"line"!=r.type&&"area"!=r.type&&"scatter"!=r.type&&"bubble"!=r.type||(s=r.xAxis.boundaryGap);var h=[],c=r.height-r.area[0]-r.area[2],d=r.width-r.area[1]-r.area[3];return t.forEach((function(t,n){if(null===t)h.push(null);else{var p={};p.color=t.color,p.x=a[n];var x=t;if("object"==typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1){let e,i,a;e=[].concat(r.chartData.xAxisData.ranges),i=e.shift(),a=e.pop(),x=t[1],p.x=r.area[3]+d*(t[0]-i)/(a-i),"bubble"==r.type&&(p.r=t[2],p.t=t[3])}else x=t.value;"center"==s&&(p.x+=o/2);var g=c*(x-e)/(i-e);g*=l,p.y=r.height-g-r.area[2],h.push(p)}})),h}function ut(t,e,i,a,o,r,n,l,s){s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var h=r.xAxis.boundaryGap,c=[],d=r.height-r.area[0]-r.area[2],p=r.width-r.area[1]-r.area[3];return t.forEach((function(t,n){if(null===t)c.push(null);else{var x={};if(x.color=t.color,"vertical"==l.animation){x.x=a[n];var g=t;if("object"==typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1){let e,i,a;e=[].concat(r.chartData.xAxisData.ranges),i=e.shift(),a=e.pop(),g=t[1],x.x=r.area[3]+p*(t[0]-i)/(a-i)}else g=t.value;"center"==h&&(x.x+=o/2);var u=d*(g-e)/(i-e);u*=s,x.y=r.height-u-r.area[2],c.push(x)}else{x.x=a[0]+o*n*s;g=t;"center"==h&&(x.x+=o/2);u=d*(g-e)/(i-e);x.y=r.height-u-r.area[2],c.push(x)}}})),c}function ft(t,e,i,a,o,r,n,l,s){s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var h=[],c=r.height-r.area[0]-r.area[2],d=r.width-r.area[1]-r.area[3];return t.forEach((function(t,n){if(null===t)h.push(null);else{var l={};l.color=t.color,l.x=a[n];var p=t;if("object"==typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1){let e,i,a;e=[].concat(r.chartData.xAxisData.ranges),i=e.shift(),a=e.pop(),p=t[1],l.x=r.area[3]+d*(t[0]-i)/(a-i)}else p=t.value;l.x+=o/2;var x=c*(p*s-e)/(i-e);l.y=r.height-x-r.area[2],h.push(l)}})),h}function yt(t,e,i,a,o,r,n,l){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,h=[],c=r.height-r.area[0]-r.area[2];r.width,r.area[1],r.area[3];var d=o*n.widthRatio;return t.forEach((function(t,n){if(null===t)h.push(null);else{var l={};l.color=t.color,l.x=a[n],l.x+=o/2;var p=t.data,x=c*(p*s-e)/(i-e);l.y=r.height-x-r.area[2],l.value=p,l.width=d,h.push(l)}})),h}function mt(t,e,i,a,o,r,n){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[];r.height,r.area[0],r.area[2];var h=r.width-r.area[1]-r.area[3];return t.forEach((function(t,o){if(null===t)s.push(null);else{var n={};n.color=t.color,n.y=a[o];var c=t;"object"==typeof t&&null!==t&&(c=t.value);var d=h*(c-e)/(i-e);d*=l,n.height=d,n.value=c,n.x=d+r.area[3],s.push(n)}})),s}function bt(t,e,i,a,o,r,n,l,s){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,c=[],d=r.height-r.area[0]-r.area[2];return t.forEach((function(t,n){if(null===t)c.push(null);else{var p={};if(p.color=t.color,p.x=a[n]+Math.round(o/2),l>0){var x=0;for(let t=0;t<=l;t++)x+=s[t].data[n];var g=d*(x-e)/(i-e),u=d*(x-t-e)/(i-e)}else{x=t;"object"==typeof t&&null!==t&&(x=t.value);g=d*(x-e)/(i-e),u=0}var f=u;g*=h,f*=h,p.y=r.height-Math.round(g)-r.area[2],p.y0=r.height-Math.round(f)-r.area[2],c.push(p)}})),c}function vt(t,e,i,a,o,r,n,l,s){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,c=[],d=r.width-r.area[1]-r.area[3];return t.forEach((function(t,o){if(null===t)c.push(null);else{var n={};if(n.color=t.color,n.y=a[o],l>0){var p=0;for(let t=0;t<=l;t++)p+=s[t].data[o];var x=d*(p-e)/(i-e),g=d*(p-t-e)/(i-e)}else{p=t;"object"==typeof t&&null!==t&&(p=t.value);x=d*(p-e)/(i-e),g=0}var u=g;x*=h,u*=h,n.height=x-u,n.x=r.area[3]+x,n.x0=r.area[3]+u,c.push(n)}})),c}function St(t,e,i,a,o){var r;r="stack"==a?B(t,e.categories.length):R(t);var n=[];(r=r.filter((function(t){return"object"==typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t}))).map((function(t){"object"==typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){n.push(t)})):n.push(t[1]):n.push(t.value):n.push(t)}));var l=o.min||0,s=o.max||0;n.length>0&&(l=Math.min.apply(this,n),s=Math.max.apply(this,n)),l===s&&(0==s?s=10:l=0);for(var h=function(t,e){var i=0,a=e-t;return{minRange:F(t,"lower",i=a>=1e4?1e3:a>=1e3?100:a>=100?10:a>=10?5:a>=1?1:a>=.1?.1:a>=.01?.01:a>=.001?.001:a>=1e-4?1e-4:a>=1e-5?1e-5:1e-6),maxRange:F(e,"upper",i)}}(l,s),c=void 0===o.min||null===o.min?h.minRange:o.min,d=((void 0===o.max||null===o.max?h.maxRange:o.max)-c)/e.yAxis.splitNumber,p=[],x=0;x<=e.yAxis.splitNumber;x++)p.push(c+d*x);return p.reverse()}function wt(t,e,i,a){var o=P({},{type:""},e.extra.column),r=e.yAxis.data.length,n=new Array(r);if(r>0){for(let e=0;et+(r.unit||"")),r.categories=r.categories||e.categories,l[t]=r.categories):(r.formatter||(r.formatter=(t,e,i)=>D.toFixed(t,r.tofix||0)+(r.unit||"")),l[t]=St(n[t],e,0,o.type,r));let c=r.fontSize*e.pix||i.fontSize;h[t]={position:r.position?r.position:"left",width:0},s[t]=l[t].map((function(i,o){return i=r.formatter(i,o,e),h[t].width=Math.max(h[t].width,W(i,c,a)+5),i}));let d=r.calibration?4*e.pix:0;h[t].width+=d+3*e.pix,!0===r.disabled&&(h[t].width=0)}}else{l=new Array(1),s=new Array(1),h=new Array(1);"bar"===e.type?(l[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=(t,e,i)=>t+(i.yAxis.unit||""))):(e.yAxis.formatter||(e.yAxis.formatter=(t,e,i)=>t.toFixed(i.yAxis.tofix)+(i.yAxis.unit||"")),l[0]=St(t,e,0,o.type,{})),h[0]={position:"left",width:0};var c=e.yAxis.fontSize*e.pix||i.fontSize;s[0]=l[0].map((function(t,i){return t=e.yAxis.formatter(t,i,e),h[0].width=Math.max(h[0].width,W(t,c,a)+5),t})),h[0].width+=3*e.pix,!0===e.yAxis.disabled?(h[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):(e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:s,ranges:l,yAxisWidth:h}}function Tt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function At(t,e,i,a,o){if(a.beginPath(),"hollow"==o.dataPointShapeType?(a.setStrokeStyle(e),a.setFillStyle(o.background),a.setLineWidth(2*o.pix)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*o.pix)),"diamond"===i)t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))}));else if("circle"===i)t.forEach((function(t,e){null!==t&&(a.moveTo(t.x+2.5*o.pix,t.y),a.arc(t.x,t.y,3*o.pix,0,2*Math.PI,!1))}));else if("square"===i)t.forEach((function(t,e){null!==t&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===i)t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))}));else if("none"===i)return;a.closePath(),a.fill(),a.stroke()}function Ct(t,e,i,a,o,r,n){if(o.tooltip&&!(o.tooltip.group.length>0&&0==o.tooltip.group.includes(n))){var l="number"==typeof o.tooltip.index?o.tooltip.index:o.tooltip.index[o.tooltip.group.indexOf(n)];if(a.beginPath(),"hollow"==r.activeType?(a.setStrokeStyle(e),a.setFillStyle(o.background),a.setLineWidth(2*o.pix)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*o.pix)),"diamond"===i)t.forEach((function(t,e){null!==t&&l==e&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))}));else if("circle"===i)t.forEach((function(t,e){null!==t&&l==e&&(a.moveTo(t.x+2.5*o.pix,t.y),a.arc(t.x,t.y,3*o.pix,0,2*Math.PI,!1))}));else if("square"===i)t.forEach((function(t,e){null!==t&&l==e&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===i)t.forEach((function(t,e){null!==t&&l==e&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))}));else if("none"===i)return;a.closePath(),a.fill(),a.stroke()}}function Pt(t,e,i,a){var o=t.title.fontSize||e.titleFontSize,r=t.subtitle.fontSize||e.subtitleFontSize,n=t.title.name||"",l=t.subtitle.name||"",s=t.title.color||t.fontColor,h=t.subtitle.color||t.fontColor,c=n?o:0,d=l?r:0;if(l){var p=W(l,r*t.pix,i),x=a.x-p/2+(t.subtitle.offsetX||0)*t.pix,g=a.y+r*t.pix/2+(t.subtitle.offsetY||0)*t.pix;n&&(g+=(c*t.pix+5)/2),i.beginPath(),i.setFontSize(r*t.pix),i.setFillStyle(h),i.fillText(l,x,g),i.closePath(),i.stroke()}if(n){var u=W(n,o*t.pix,i),f=a.x-u/2+(t.title.offsetX||0),y=a.y+o*t.pix/2+(t.title.offsetY||0)*t.pix;l&&(y-=(d*t.pix+5)/2),i.beginPath(),i.setFontSize(o*t.pix),i.setFillStyle(s),i.fillText(n,f,y),i.closePath(),i.stroke()}}function Dt(t,e,i,a,o){var r=e.data,n=e.textOffset?e.textOffset:0;t.forEach((function(t,l){if(null!==t){a.beginPath();var s=e.textSize?e.textSize*o.pix:i.fontSize;a.setFontSize(s),a.setFillStyle(e.textColor||o.fontColor);var h=r[l];"object"==typeof r[l]&&null!==r[l]&&(h=r[l].constructor.toString().indexOf("Array")>-1?r[l][1]:r[l].value);var c=e.formatter?e.formatter(h,l,e,o):h;a.setTextAlign("center"),a.fillText(String(c),t.x,t.y-4+n*o.pix),a.closePath(),a.stroke(),a.setTextAlign("left")}}))}function Mt(t,e,i,a,o){var r=e.data,n=e.textOffset?e.textOffset:0,l=o.extra.column.labelPosition;t.forEach((function(t,s){if(null!==t){a.beginPath();var h=e.textSize?e.textSize*o.pix:i.fontSize;a.setFontSize(h),a.setFillStyle(e.textColor||o.fontColor);var c=r[s];"object"==typeof r[s]&&null!==r[s]&&(c=r[s].constructor.toString().indexOf("Array")>-1?r[s][1]:r[s].value);var d=e.formatter?e.formatter(c,s,e,o):c;a.setTextAlign("center");var p=t.y-4*o.pix+n*o.pix;t.y>e.zeroPoints&&(p=t.y+n*o.pix+h),"insideTop"==l&&(p=t.y+h+n*o.pix,t.y>e.zeroPoints&&(p=t.y-n*o.pix-4*o.pix)),"center"==l&&(p=t.y+n*o.pix+(o.height-o.area[2]-t.y+h)/2,e.zeroPointse.zeroPoints&&(p=t.y-n*o.pix-(t.y-e.zeroPoints-h)/2),"stack"==o.extra.column.type&&(p=t.y+n*o.pix+(t.y0-t.y+h)/2)),"bottom"==l&&(p=o.height-o.area[2]+n*o.pix-4*o.pix,e.zeroPointse.zeroPoints&&(p=e.zeroPoints-n*o.pix+h+2*o.pix),"stack"==o.extra.column.type&&(p=t.y0+n*o.pix-4*o.pix)),a.fillText(String(d),t.x,p),a.closePath(),a.stroke(),a.setTextAlign("left")}}))}function Ft(t,e,i,a,o,r){e.data;var n=e.textOffset?e.textOffset:0;o.extra.mount.labelPosition,t.forEach((function(t,l){if(null!==t){a.beginPath();var s=e[l].textSize?e[l].textSize*o.pix:i.fontSize;a.setFontSize(s),a.setFillStyle(e[l].textColor||o.fontColor);var h=t.value,c=e[l].formatter?e[l].formatter(h,l,e,o):h;a.setTextAlign("center");var d=t.y-4*o.pix+n*o.pix;t.y>r&&(d=t.y+n*o.pix+s),a.fillText(String(c),t.x,d),a.closePath(),a.stroke(),a.setTextAlign("left")}}))}function Lt(t,e,i,a,o){var r=e.data;e.textOffset&&e.textOffset,t.forEach((function(t,n){if(null!==t){a.beginPath();var l=e.textSize?e.textSize*o.pix:i.fontSize;a.setFontSize(l),a.setFillStyle(e.textColor||o.fontColor);var s=r[n];"object"==typeof r[n]&&null!==r[n]&&(s=r[n].value);var h=e.formatter?e.formatter(s,n,e,o):s;a.setTextAlign("left"),a.fillText(String(h),t.x+4*o.pix,t.y+l/2-3),a.closePath(),a.stroke()}}))}function _t(t,e,i,a,o,r){let n;e=(e-=t.width/2+t.labelOffset*a.pix)<10?10:e,n=t.endAngle=2&&(h%=2),c+=s}}function kt(t,e,i,a,o,r){var n=a.extra.radar||{};t.forEach((function(t,l){if(!0===n.labelPointShow&&""!==a.categories[l]){var s={x:e*Math.cos(t),y:e*Math.sin(t)},h=I(s.x,s.y,i);r.setFillStyle(n.labelPointColor),r.beginPath(),r.arc(h.x,h.y,n.labelPointRadius*a.pix,0,2*Math.PI,!1),r.closePath(),r.fill()}if(!0===n.labelShow){var c={x:(e+o.radarLabelTextMargin*a.pix)*Math.cos(t),y:(e+o.radarLabelTextMargin*a.pix)*Math.sin(t)},d=I(c.x,c.y,i),p=d.x,x=d.y;D.approximatelyEqual(c.x,0)?p-=W(a.categories[l]||"",o.fontSize,r)/2:c.x<0&&(p-=W(a.categories[l]||"",o.fontSize,r)),r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(n.labelColor||a.fontColor),r.fillText(a.categories[l]||"",p,x+o.fontSize/2),r.closePath(),r.stroke()}}))}function It(t,e,i,a,o,r){var n=i.pieChartLinePadding,l=[],s=null,h=t.map((function(i,a){var o=i.formatter?i.formatter(i,a,t,e):D.toFixed(100*i._proportion_.toFixed(4))+"%";o=i.labelText?i.labelText:o;var r=2*Math.PI-(i._start_+2*Math.PI*i._proportion_/2);return i._rose_proportion_&&(r=2*Math.PI-(i._start_+2*Math.PI*i._rose_proportion_/2)),{arc:r,text:o,color:i.color,radius:i._radius_,textColor:i.textColor,textSize:i.textSize,labelShow:i.labelShow}}));for(let c=0;c=0?o+i.pieChartTextPadding:o-i.pieChartTextPadding,g=r,u=W(t.text,t.textSize*e.pix||i.fontSize,a),f=g;s&&D.isSameXCoordinateArea(s.start,{x:x})&&(f=x>0?Math.min(g,s.start.y):o<0||g>0?Math.max(g,s.start.y):Math.min(g,s.start.y)),x<0&&(x-=u),s=O({lineStart:{x:d,y:p},lineEnd:{x:o,y:r},start:{x:x,y:f},width:u,height:i.fontSize,text:t.text,color:t.color,textColor:t.textColor,textSize:t.textSize},s),l.push(s)}for(let c=0;co?o:r.activeWidth;var n=e.area[0],l=e.height-e.area[2];a.beginPath(),a.setFillStyle(M(r.activeBgColor,r.activeBgOpacity)),a.rect(t-r.activeWidth/2,n,r.activeWidth,l-n),a.closePath(),a.fill(),a.setFillStyle("#FFFFFF")}function Wt(t,e,i,a,o){var r=P({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),n=e.area[3],l=e.width-e.area[1];a.beginPath(),a.setFillStyle(M(r.activeBgColor,r.activeBgOpacity)),a.rect(n,t-o/2,l-n,o),a.closePath(),a.fill(),a.setFillStyle("#FFFFFF")}function Rt(t,e,i,a,o,r,n){var l=P({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},i.extra.tooltip);1==l.showCategory&&i.categories&&t.unshift({text:i.categories[i.tooltip.index],color:null});var s=l.fontSize*i.pix,h=l.lineHeight*i.pix,c=l.boxPadding*i.pix,d=s,p=5*i.pix;0==l.legendShow&&(d=0,p=0);var x=l.showArrow?8*i.pix:0,g=!1;"line"!=i.type&&"mount"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||1==l.splitLine&&function(t,e,i,a){var o=e.extra.tooltip||{};o.gridType=null==o.gridType?"solid":o.gridType,o.dashLength=null==o.dashLength?4:o.dashLength;var r=e.area[0],n=e.height-e.area[2];if("dash"==o.gridType&&a.setLineDash([o.dashLength,o.dashLength]),a.setStrokeStyle(o.gridColor||"#cccccc"),a.setLineWidth(1*e.pix),a.beginPath(),a.moveTo(t,r),a.lineTo(t,n),a.stroke(),a.setLineDash([]),o.xAxisLabel){let r=e.categories[e.tooltip.index];a.setFontSize(i.fontSize);let l=W(r,i.fontSize,a),s=t-.5*l,h=n+2*e.pix;a.beginPath(),a.setFillStyle(M(o.labelBgColor||i.toolTipBackground,o.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(o.labelBgColor||i.toolTipBackground),a.setLineWidth(1*e.pix),a.rect(s-o.boxPadding*e.pix,h,l+2*o.boxPadding*e.pix,i.fontSize+2*o.boxPadding*e.pix),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(o.labelFontColor||e.fontColor),a.fillText(String(r),s,h+o.boxPadding*e.pix+i.fontSize),a.closePath(),a.stroke()}}(i.tooltip.offset.x,i,a,o),(e=P({x:0,y:0},e)).y-=8*i.pix;var u=t.map((function(t){return W(t.text,s,o)})),f=d+p+4*c+Math.max.apply(null,u),y=2*c+t.length*h;if(0!=l.showBox){e.x-Math.abs(i._scrollDistance_||0)+x+f>i.width&&(g=!0),y+e.y>i.height&&(e.y=i.height-y),o.beginPath(),o.setFillStyle(M(l.bgColor,l.bgOpacity)),o.setLineWidth(l.borderWidth*i.pix),o.setStrokeStyle(M(l.borderColor,l.borderOpacity));var m=l.borderRadius;g?(f+x>i.width&&(e.x=i.width+Math.abs(i._scrollDistance_||0)+x+(f-i.width)),f>e.x&&(e.x=i.width+Math.abs(i._scrollDistance_||0)+x+(f-i.width)),l.showArrow&&(o.moveTo(e.x,e.y+10*i.pix),o.lineTo(e.x-x,e.y+10*i.pix+5*i.pix)),o.arc(e.x-x-m,e.y+y-m,m,0,Math.PI/2,!1),o.arc(e.x-x-Math.round(f)+m,e.y+y-m,m,Math.PI/2,Math.PI,!1),o.arc(e.x-x-Math.round(f)+m,e.y+m,m,-Math.PI,-Math.PI/2,!1),o.arc(e.x-x-m,e.y+m,m,-Math.PI/2,0,!1),l.showArrow&&(o.lineTo(e.x-x,e.y+10*i.pix-5*i.pix),o.lineTo(e.x,e.y+10*i.pix))):(l.showArrow&&(o.moveTo(e.x,e.y+10*i.pix),o.lineTo(e.x+x,e.y+10*i.pix-5*i.pix)),o.arc(e.x+x+m,e.y+m,m,-Math.PI,-Math.PI/2,!1),o.arc(e.x+x+Math.round(f)-m,e.y+m,m,-Math.PI/2,0,!1),o.arc(e.x+x+Math.round(f)-m,e.y+y-m,m,0,Math.PI/2,!1),o.arc(e.x+x+m,e.y+y-m,m,Math.PI/2,Math.PI,!1),l.showArrow&&(o.lineTo(e.x+x,e.y+10*i.pix+5*i.pix),o.lineTo(e.x,e.y+10*i.pix))),o.closePath(),o.fill(),l.borderWidth>0&&o.stroke(),l.legendShow&&t.forEach((function(t,a){if(null!==t.color){o.beginPath(),o.setFillStyle(t.color);var r=e.x+x+2*c,n=e.y+(h-s)/2+h*a+c+1;switch(g&&(r=e.x-f-x+2*c),t.legendShape){case"line":o.moveTo(r,n+.5*d-2*i.pix),o.fillRect(r,n+.5*d-2*i.pix,d,4*i.pix);break;case"triangle":o.moveTo(r+7.5*i.pix,n+.5*d-5*i.pix),o.lineTo(r+2.5*i.pix,n+.5*d+5*i.pix),o.lineTo(r+12.5*i.pix,n+.5*d+5*i.pix),o.lineTo(r+7.5*i.pix,n+.5*d-5*i.pix);break;case"diamond":o.moveTo(r+7.5*i.pix,n+.5*d-5*i.pix),o.lineTo(r+2.5*i.pix,n+.5*d),o.lineTo(r+7.5*i.pix,n+.5*d+5*i.pix),o.lineTo(r+12.5*i.pix,n+.5*d),o.lineTo(r+7.5*i.pix,n+.5*d-5*i.pix);break;case"circle":o.moveTo(r+7.5*i.pix,n+.5*d),o.arc(r+7.5*i.pix,n+.5*d,5*i.pix,0,2*Math.PI);break;case"rect":default:o.moveTo(r,n+.5*d-5*i.pix),o.fillRect(r,n+.5*d-5*i.pix,15*i.pix,10*i.pix);break;case"square":o.moveTo(r+2*i.pix,n+.5*d-5*i.pix),o.fillRect(r+2*i.pix,n+.5*d-5*i.pix,10*i.pix,10*i.pix)}o.closePath(),o.fill()}})),t.forEach((function(t,i){var a=e.x+x+2*c+d+p;g&&(a=e.x-f-x+2*c+d+p);var r=e.y+h*i+(h-s)/2-1+c+s;o.beginPath(),o.setFontSize(s),o.setTextBaseline("normal"),o.setFillStyle(l.fontColor),o.fillText(t.text,a,r),o.closePath(),o.stroke()}))}}function Bt(t,e,i,a,o,r){(t.extra.tooltip||{}).horizentalLine&&t.tooltip&&1===a&&("line"==t.type||"area"==t.type||"column"==t.type||"mount"==t.type||"candle"==t.type||"mix"==t.type)&&zt(t,e,i),i.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&i.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&Rt(t.tooltip.textList,t.tooltip.offset,t,e,i),i.restore()}function Gt(t,e,i,a){let o=e.chartData.xAxisData,r=o.xAxisPoints,n=o.startX,l=o.endX,s=o.eachSpacing;var h="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(h=e.xAxis.boundaryGap);var c=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+i.xAxisHeight,x=l-n,g=s*(r.length-1);"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),g+=(e.extra.mount.widthRatio-1)*s);var u=x*x/g,f=0;e._scrollDistance_&&(f=-e._scrollDistance_*x/g),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pix),a.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),a.moveTo(n,p),a.lineTo(l,p),a.stroke(),a.closePath(),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pix),a.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),a.moveTo(n+f,p),a.lineTo(n+f+u,p),a.stroke(),a.closePath(),a.setLineCap("butt")}if(a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pix),r.forEach((function(t,i){i>0&&(a.beginPath(),a.moveTo(t-s/2,c),a.lineTo(t-s/2,c+3*e.pix),a.closePath(),a.stroke())}))),!0!==e.xAxis.disableGrid&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&a.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,i){i%e.xAxis.gridEval==0&&(a.beginPath(),a.moveTo(t,c),a.lineTo(t,d),a.stroke())})),a.setLineDash([])),!0!==e.xAxis.disabled){let o=t.length;e.xAxis.labelCount&&(o=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,o-=1);let n=Math.ceil(t.length/o),l=[],d=t.length;for(let e=0;e=e.area[3]-1&&d-Math.abs(l)<=e.width-e.area[1]+1&&(a.beginPath(),a.setFontSize(y),a.setFillStyle(e.xAxis.fontColor||e.fontColor),a.fillText(String(o),r[i]+n,c+e.xAxis.marginTop*e.pix+(e.xAxis.lineHeight-e.xAxis.fontSize)*e.pix/2+e.xAxis.fontSize*e.pix),a.closePath(),a.stroke())})):l.forEach((function(t,o){var n=e.xAxis.formatter?e.xAxis.formatter(t):t,l=e._scrollDistance_||0,d="center"==h?r[o]+s/2:r[o];if(d-Math.abs(l)>=e.area[3]-1&&d-Math.abs(l)<=e.width-e.area[1]+1){a.save(),a.beginPath(),a.setFontSize(y),a.setFillStyle(e.xAxis.fontColor||e.fontColor);var p=W(String(n),y,a),x=r[o];"center"==h&&(x=r[o]+s/2),e.xAxis.scrollShow&&e.pix;var g=c+e.xAxis.marginTop*e.pix+y-y*Math.abs(Math.sin(i._xAxisTextAngle_));e.xAxis.rotateAngle<0?(x-=y/2,p=0):(x+=y/2,p=-p),a.translate(x,g),a.rotate(-1*i._xAxisTextAngle_),a.fillText(String(n),p,0),a.closePath(),a.stroke(),a.restore()}}))}a.restore(),e.xAxis.title&&(a.beginPath(),a.setFontSize(e.xAxis.titleFontSize*e.pix),a.setFillStyle(e.xAxis.titleFontColor),a.fillText(String(e.xAxis.title),e.width-e.area[1]+e.xAxis.titleOffsetX*e.pix,e.height-e.area[2]+e.xAxis.marginTop*e.pix+(e.xAxis.lineHeight-e.xAxis.titleFontSize)*e.pix/2+(e.xAxis.titleFontSize+e.xAxis.titleOffsetY)*e.pix),a.closePath(),a.stroke()),e.xAxis.axisLine&&(a.beginPath(),a.setStrokeStyle(e.xAxis.axisLineColor),a.setLineWidth(1*e.pix),a.moveTo(n,e.height-e.area[2]),a.lineTo(l,e.height-e.area[2]),a.stroke())}function Nt(t,e,i,a){if(!0===e.yAxis.disableGrid)return;let o=(e.height-e.area[0]-e.area[2])/e.yAxis.splitNumber,r=e.area[3],n=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,s=l*(n.length-1);"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),s+=(e.extra.mount.widthRatio-1)*l);let h=r+s,c=[],d=1;!1===e.xAxis.axisLine&&(d=0);for(let p=d;p4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),n={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==i.pieChartLinePadding&&(i.pieChartLinePadding=r.activeRadius*e.pix);var l=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);l=l<10?10:l,r.customRadius>0&&(l=r.customRadius*e.pix),t=tt(t,l,o);var s=r.activeRadius*e.pix;if(r.customColor=E(r.linearType,r.customColor,t,i),(t=t.map((function(t){return t._start_+=r.offsetAngle*Math.PI/180,t}))).forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(M(t.color,r.activeOpacity||.5)),a.moveTo(n.x,n.y),a.arc(n.x,n.y,t._radius_+s,t._start_,t._start_+2*t._proportion_*Math.PI),a.closePath(),a.fill()),a.beginPath(),a.setLineWidth(r.borderWidth*e.pix),a.lineJoin="round",a.setStrokeStyle(r.borderColor);var o,l=t.color;"custom"==r.linearType&&((o=a.createCircularGradient?a.createCircularGradient(n.x,n.y,t._radius_):a.createRadialGradient(n.x,n.y,0,n.x,n.y,t._radius_)).addColorStop(0,M(r.customColor[t.linearIndex],1)),o.addColorStop(1,M(t.color,1)),l=o);a.setFillStyle(l),a.moveTo(n.x,n.y),a.arc(n.x,n.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),a.closePath(),a.fill(),1==r.border&&a.stroke()})),"ring"===e.type){var h=.6*l;"number"==typeof r.ringWidth&&r.ringWidth>0&&(h=Math.max(0,l-r.ringWidth*e.pix)),a.beginPath(),a.setFillStyle(r.centerColor),a.moveTo(n.x,n.y),a.arc(n.x,n.y,h,0,2*Math.PI),a.closePath(),a.fill()}return!1!==e.dataLabel&&1===o&&It(t,e,i,a,0,n),1===o&&"ring"===e.type&&Pt(e,i,a,n),{center:n,radius:l,series:t}}function Jt(t,e){var i=Array(2),a=20037508.34*t/180,o=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return o=20037508.34*o/180,i[0]=a,i[1]=o,i}function Yt(t,e,i,a,o,r){return{x:(e-i.xMin)*a+o,y:(i.yMax-t)*a+r}}function qt(t,e,i){if(e[1]==i[1])return!1;if(e[1]>t[1]&&i[1]>t[1])return!1;if(e[1]t[1])return!1;if(i[1]==t[1]&&e[1]>t[1])return!1;if(e[0]e[r].area[2]||t[1]>e[r].area[3]||t[2]i||t[3]>a){o=!0;break}o=!1}return o}function Zt(t,e,i){let a=t.series;switch(e){case"normal":for(let o=0;o.7};for(let o=0;o0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;let i=t[0].data;for(var o=0;oe.width-e.area[1]-e.area[3]?(i.push(x),p.push(a-e.legend.itemGap*e.pix),a=l,x=[n]):(a+=l,x.push(n))}if(x.length){i.push(x),p.push(a-e.legend.itemGap*e.pix),r.widthArr=p;let t=Math.max.apply(null,p);switch(e.legend.float){case"left":r.area.start.x=e.area[3],r.area.end.x=e.area[3]+t+2*n;break;case"right":r.area.start.x=e.width-e.area[1]-t-2*n,r.area.end.x=e.width-e.area[1];break;default:r.area.start.x=(e.width-t)/2-n,r.area.end.x=(e.width+t)/2+n}r.area.width=t+2*n,r.area.wholeWidth=t+2*n,r.area.height=i.length*d+2*n,r.area.wholeHeight=i.length*d+2*n+2*l,r.points=i}}else{let i=t.length,a=e.height-e.area[0]-e.area[2]-2*l-2*n,p=Math.min(Math.floor(a/d),i);switch(r.area.height=p*d+2*n,r.area.wholeHeight=p*d+2*n,e.legend.float){case"top":r.area.start.y=e.area[0]+l,r.area.end.y=e.area[0]+l+r.area.height;break;case"bottom":r.area.start.y=e.height-e.area[2]-l-r.area.height,r.area.end.y=e.height-e.area[2]-l;break;default:r.area.start.y=(e.height-r.area.height)/2,r.area.end.y=(e.height+r.area.height)/2}let x=i%p==0?i/p:Math.floor(i/p+1),g=[];for(let e=0;ea&&(a=r)}r.widthArr.push(a),r.heightArr.push(t.length*d+2*n)}let t=0;for(let e=0;e0?x[i].width+e.yAxis.padding*e.pix:x[i].width,o+=1):"right"==x[i].position&&(e.area[1]+=t>0?x[i].width+e.yAxis.padding*e.pix:x[i].width,t+=1)}else i.yAxisWidth=x;if(e.chartData.yAxisData=p,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=pt(e.categories,e);let t=Z(e.categories,e,0,e.chartData.xAxisData.eachSpacing,a),o=t.xAxisHeight,r=t.angle;i.xAxisHeight=o,i._xAxisTextAngle_=r,e.area[2]+=o,e.chartData.categoriesData=t}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=K(r,e,i,a);let t=Z(n=e.chartData.xAxisData.rangesFormat,e,0,e.chartData.xAxisData.eachSpacing,a),o=t.xAxisHeight,l=t.angle;i.xAxisHeight=o,i._xAxisTextAngle_=l,e.area[2]+=o,e.chartData.categoriesData=t}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){let t=0,i=e.chartData.xAxisData.xAxisPoints,a=e.chartData.xAxisData.startX;t=e.chartData.xAxisData.endX-a-e.chartData.xAxisData.eachSpacing*(i.length-1),o.scrollOption.currentOffset=t,o.scrollOption.startTouchX=t,o.scrollOption.distance=0,o.scrollOption.lastMoveTime=0,e._scrollDistance_=t}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:function(t,e,i,a){t=tt(t);let o=0;for(let r=0;r4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=Zt(e,r.type,a)),a.beginPath(),a.setFillStyle(e.background),a.rect(0,0,e.width,e.height),a.fill(),a.save();let n=e.chartData.wordCloudData;a.translate(e.width/2,e.height/2);for(let l=0;l0&&(e.tooltip&&e.tooltip.index==l?a.strokeText(t,(n[l].areav[0]+5-e.width/2)*o-r*(1-o)/2,(n[l].areav[1]+5+i-e.height/2)*o):a.fillText(t,(n[l].areav[0]+5-e.width/2)*o-r*(1-o)/2,(n[l].areav[1]+5+i-e.height/2)*o)):n[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?a.strokeText(t,(n[l].area[0]+5-e.width/2)*o-r*(1-o)/2,(n[l].area[1]+5+i-e.height/2)*o):a.fillText(t,(n[l].area[0]+5-e.width/2)*o-r*(1-o)/2,(n[l].area[1]+5+i-e.height/2)*o)),a.stroke(),a.restore()}a.restore()}(r,e,i,a,t),te(0,a)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"map":a.clearRect(0,0,e.width,e.height),function(t,e,i,a){var o,r,n=P({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),l=t,s=function(t){for(var e,i={xMin:180,xMax:0,yMin:90,yMax:0},a=0;al.x?i.xMax:l.x,i.yMin=i.yMinl.y?i.yMax:l.y}}return i}(l);if(n.mercator){var h=Jt(s.xMax,s.yMax),c=Jt(s.xMin,s.yMin);s.xMax=h[0],s.yMax=h[1],s.xMin=c[0],s.yMin=c[1]}for(var d=e.width/Math.abs(s.xMax-s.xMin),p=e.height/Math.abs(s.yMax-s.yMin),x=d{this.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new ie({timing:e.timing,duration:l,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&Tt(a,e),e.chartData.funnelData=function(t,e,i,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),n=(e.height-e.area[0]-e.area[2])/t.length,l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},s=r.activeWidth*e.pix,h=Math.min((e.width-e.area[1]-e.area[3])/2-s,(e.height-e.area[0]-e.area[2])/2-s),c=et(t,h,r,n,o);if(a.save(),a.translate(l.x,l.y),r.customColor=E(r.linearType,r.customColor,t,i),"pyramid"==r.type)for(let x=0;x4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},e.extra.line);r.width*=e.pix;let n=e.chartData.xAxisData,l=n.xAxisPoints,s=n.eachSpacing;var h=[];a.save();let c=0,d=e.width+s;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),c=-e._scrollDistance_-2*s+e.area[3],d=c+(e.xAxis.itemCount+4)*s),t.forEach((function(t,n){let p,x,g;a.beginPath(),a.setStrokeStyle(t.color),a.moveTo(-1e4,-1e4),a.lineTo(-10001,-10001),a.stroke(),p=[].concat(e.chartData.yAxisData.ranges[t.index]),x=p.pop(),g=p.shift();var u=ut(t.data,x,g,l,s,e,i,r,o);h.push(u);var f=V(u,t);if("dash"==t.lineType){let i=t.dashLength?t.dashLength:8;i*=e.pix,a.setLineDash([i,i])}a.beginPath();var y=t.color;if("none"!==r.linearType&&t.linearColor&&t.linearColor.length>0){for(var m=a.createLinearGradient(e.chartData.xAxisData.startX,e.height/2,e.chartData.xAxisData.endX,e.height/2),b=0;b0?a.setShadow(t.setShadow[0],t.setShadow[1],t.setShadow[2],t.setShadow[3]):a.setShadow(0,0,0,"rgba(0,0,0,0)"),a.setLineWidth(r.width),f.forEach((function(t,e){if(1===t.length)a.moveTo(t[0].x,t[0].y);else{a.moveTo(t[0].x,t[0].y);let e=0;if("curve"===r.type)for(let o=0;oc&&(a.moveTo(r.x,r.y),e=1),o>0&&r.x>c&&r.xc&&(a.moveTo(o.x,o.y),e=1),i>0&&o.x>c&&o.xc&&(a.moveTo(o.x,o.y),e=1),i>0&&o.x>c&&o.x4&&void 0!==arguments[4]?arguments[4]:1;P({},{type:"circle"},e.extra.scatter);let r=e.chartData.xAxisData,n=r.xAxisPoints,l=r.eachSpacing;var s=[];a.save();let h=0;return e.width,e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],e.xAxis.itemCount),t.forEach((function(t,r){let s,h,c;s=[].concat(e.chartData.yAxisData.ranges[t.index]),h=s.pop(),c=s.shift();var d=gt(t.data,h,c,n,l,e,i,o);a.beginPath(),a.setStrokeStyle(t.color),a.setFillStyle(t.color),a.setLineWidth(1*e.pix);var p=t.pointShape;if("diamond"===p)d.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))}));else if("circle"===p)d.forEach((function(t,i){null!==t&&(a.moveTo(t.x+2.5*e.pix,t.y),a.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===p)d.forEach((function(t,e){null!==t&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===p)d.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))}));else if("triangle"===p)return;a.closePath(),a.fill(),a.stroke()})),!1!==e.dataLabel&&1===o&&t.forEach((function(t,r){let s,h,c;s=[].concat(e.chartData.yAxisData.ranges[t.index]),h=s.pop(),c=s.shift(),Dt(gt(t.data,h,c,n,l,e,i,o),t,i,a,e)})),a.restore(),{xAxisPoints:n,calPoints:s,eachSpacing:l}}(r,e,i,a,t),l=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=l,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Xt(0,e,i,a),!1!==e.enableMarkLine&&1===t&&Ot(e,0,a),Ht(e.series,e,i,a,e.chartData),Bt(e,i,a,t),te(0,a)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new ie({timing:e.timing,duration:l,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&Tt(a,e),Nt(0,e,0,a),Gt(n,e,i,a);var o=function(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{opacity:1,border:2},e.extra.bubble);let n=e.chartData.xAxisData,l=n.xAxisPoints,s=n.eachSpacing;var h=[];a.save();let c=0;return e.width,e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),c=-e._scrollDistance_-2*s+e.area[3],e.xAxis.itemCount),t.forEach((function(t,n){let h,c,d;h=[].concat(e.chartData.yAxisData.ranges[t.index]),c=h.pop(),d=h.shift();var p=gt(t.data,c,d,l,s,e,i,o);a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(r.border*e.pix),a.setFillStyle(M(t.color,r.opacity)),p.forEach((function(t,i){a.moveTo(t.x+t.r,t.y),a.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),a.closePath(),a.fill(),a.stroke(),!1!==e.dataLabel&&1===o&&p.forEach((function(o,r){a.beginPath();var n=t.textSize*e.pix||i.fontSize;a.setFontSize(n),a.setFillStyle(t.textColor||"#FFFFFF"),a.setTextAlign("center"),a.fillText(String(o.t),o.x,o.y+n/2),a.closePath(),a.stroke(),a.setTextAlign("left")}))})),a.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:s}}(r,e,i,a,t),l=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=l,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Xt(0,e,i,a),!1!==e.enableMarkLine&&1===t&&Ot(e,0,a),Ht(e.series,e,i,a,e.chartData),Bt(e,i,a,t),te(0,a)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new ie({timing:e.timing,duration:l,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&Tt(a,e),Nt(0,e,0,a),Gt(n,e,i,a);var o=function(t,e,i,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,n=r.xAxisPoints,l=r.eachSpacing,s=P({},{width:l/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),h=P({},{opacity:.2,gradient:!1},e.extra.mix.area),c=P({},{width:2},e.extra.mix.line),d=e.height-e.area[2],p=[];var x=0,g=0;t.forEach((function(t,e){"column"==t.type&&(g+=1)})),a.save();let u=-2,f=n.length+2,y=0,m=e.width+l;e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),u=Math.floor(-e._scrollDistance_/l)-2,f=u+e.xAxis.itemCount+4,y=-e._scrollDistance_-2*l+e.area[3],m=y+(e.xAxis.itemCount+4)*l),s.customColor=E(s.linearType,s.customColor,t,i),t.forEach((function(t,r){let b,v,S;b=[].concat(e.chartData.yAxisData.ranges[t.index]),v=b.pop(),S=b.shift();var w=gt(t.data,v,S,n,l,e,i,o);if(p.push(w),"column"==t.type){w=lt(w,l,g,x,0,e);for(let i=0;iu&&ip?p:l,h=h>p?p:h,c=c>p?p:c,d=d>p?p:d,l=l<0?0:l,h=h<0?0:h,c=c<0?0:c,d=d<0?0:d,a.arc(t+l,i+l,l,-Math.PI,-Math.PI/2),a.arc(t+r-h,i+h,h,-Math.PI/2,0),a.arc(t+r-c,i+n-c,c,0,Math.PI/2),a.arc(t+d,i+n-d,d,Math.PI/2,Math.PI)}else a.moveTo(T,o.y),a.lineTo(T+o.width,o.y),a.lineTo(T+o.width,e.height-e.area[2]),a.lineTo(T,e.height-e.area[2]),a.lineTo(T,o.y),a.setLineWidth(1),a.setStrokeStyle(C);a.setFillStyle(A),a.closePath(),a.fill()}}x+=1}if("area"==t.type){let i=V(w,t);for(let o=0;o1){var D=r[0];let e=r[r.length-1];a.moveTo(D.x,D.y);let i=0;if("curve"===t.style)for(let t=0;ty&&(a.moveTo(e.x,e.y),i=1),t>0&&e.x>y&&e.xy&&(a.moveTo(e.x,e.y),i=1),t>0&&e.x>y&&e.xy&&(a.moveTo(o.x,o.y),e=1),t>0&&o.x>y&&o.xy&&(a.moveTo(o.x,o.y),e=1),t>0&&o.x>y&&o.x4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,n=r.xAxisPoints,l=r.eachSpacing,s=P({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},e.extra.column),h=[];a.save();let c=-2,d=n.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),c=Math.floor(-e._scrollDistance_/l)-2,d=c+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&Et(e.tooltip.offset.x,e,0,a,l),s.customColor=E(s.linearType,s.customColor,t,i),t.forEach((function(r,p){let x,g,u;x=[].concat(e.chartData.yAxisData.ranges[r.index]),g=x.pop(),u=x.shift();let f=(e.height-e.area[0]-e.area[2])*(0-g)/(u-g),y=e.height-Math.round(f)-e.area[2];r.zeroPoints=y;var m=r.data;switch(s.type){case"group":var b=ft(m,g,u,n,l,e,i,y,o),v=bt(m,g,u,n,l,e,i,p,t,o);h.push(v),b=lt(b,l,t.length,p,0,e);for(let t=0;tc&&ty?y:i.y,o=i.width,r=Math.abs(y-i.y);s.barBorderCircle&&(s.barBorderRadius=[o/2,o/2,0,0]),i.y>y&&(s.barBorderRadius=[0,0,o/2,o/2]);let[n,l,h,c]=s.barBorderRadius,d=Math.min(o/2,r/2);n=n>d?d:n,l=l>d?d:l,h=h>d?d:h,c=c>d?d:c,n=n<0?0:n,l=l<0?0:l,h=h<0?0:h,c=c<0?0:c,a.arc(t+n,e+n,n,-Math.PI,-Math.PI/2),a.arc(t+o-l,e+l,l,-Math.PI/2,0),a.arc(t+o-h,e+r-h,h,0,Math.PI/2),a.arc(t+c,e+r-c,c,Math.PI/2,Math.PI)}else a.moveTo(S,i.y),a.lineTo(S+i.width,i.y),a.lineTo(S+i.width,y),a.lineTo(S,y),a.lineTo(S,i.y),a.setLineWidth(1),a.setStrokeStyle(A);a.setFillStyle(T),a.closePath(),a.fill()}}break;case"stack":b=bt(m,g,u,n,l,e,i,p,t,o),h.push(b),b=ct(b,l,t.length,0,0,e);for(let t=0;tc&&t0&&(w-=P),a.setFillStyle(T),a.moveTo(S,i.y),a.fillRect(S,i.y,i.width,w),a.closePath(),a.fill()}}break;case"meter":b=gt(m,g,u,n,l,e,i,o),h.push(b),b=ht(b,l,t.length,p,0,e,s.meterBorder);for(let t=0;tc&&t0&&(a.setStrokeStyle(r.color),a.setLineWidth(s.meterBorder*e.pix)),0==p?a.setFillStyle(s.meterFillColor):a.setFillStyle(i.color||r.color),S=i.x-i.width/2,w=e.height-i.y-e.area[2],s.barBorderRadius&&4===s.barBorderRadius.length||!0===s.barBorderCircle){const t=S,e=i.y,o=i.width,r=y-i.y;s.barBorderCircle&&(s.barBorderRadius=[o/2,o/2,0,0]);let[n,l,h,c]=s.barBorderRadius,d=Math.min(o/2,r/2);n=n>d?d:n,l=l>d?d:l,h=h>d?d:h,c=c>d?d:c,n=n<0?0:n,l=l<0?0:l,h=h<0?0:h,c=c<0?0:c,a.arc(t+n,e+n,n,-Math.PI,-Math.PI/2),a.arc(t+o-l,e+l,l,-Math.PI/2,0),a.arc(t+o-h,e+r-h,h,0,Math.PI/2),a.arc(t+c,e+r-c,c,Math.PI/2,Math.PI),a.fill()}else a.moveTo(S,i.y),a.lineTo(S+i.width,i.y),a.lineTo(S+i.width,y),a.lineTo(S,y),a.lineTo(S,i.y),a.fill();0==p&&s.meterBorder>0&&(a.closePath(),a.stroke())}}}})),!1!==e.dataLabel&&1===o&&t.forEach((function(r,h){let c,d,p;c=[].concat(e.chartData.yAxisData.ranges[r.index]),d=c.pop(),p=c.shift();var x=r.data;switch(s.type){case"group":Mt(lt(ft(x,d,p,n,l,e,i,o),l,t.length,h,0,e),r,i,a,e);break;case"stack":Mt(bt(x,d,p,n,l,e,i,h,t,o),r,i,a,e);break;case"meter":Mt(gt(x,d,p,n,l,e,i,o),r,i,a,e)}})),a.restore(),{xAxisPoints:n,calPoints:h,eachSpacing:l}}(r,e,i,a,t),l=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=l,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Xt(0,e,i,a),!1!==e.enableMarkLine&&1===t&&Ot(e,0,a),Ht(e.series,e,i,a,e.chartData),Bt(e,i,a,t),te(0,a)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new ie({timing:e.timing,duration:l,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&Tt(a,e),Nt(0,e,0,a),Gt(n,e,i,a);var o=function(t,e,i,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,n=r.xAxisPoints,l=r.eachSpacing,s=P({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mount);s.widthRatio=s.widthRatio<=0?0:s.widthRatio,s.widthRatio=s.widthRatio>=2?2:s.widthRatio,a.save();let h,c,d,p=-2,x=n.length+2;e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,x=p+e.xAxis.itemCount+4),s.customColor=E(s.linearType,s.customColor,t,i),h=[].concat(e.chartData.yAxisData.ranges[0]),c=h.pop(),d=h.shift();let g=e.height-e.area[0]-e.area[2],u=g*(0-c)/(d-c),f=e.height-Math.round(u)-e.area[2];var y=yt(t,c,d,n,l,e,s,f,o);switch(s.type){case"bar":for(let i=0;ip&&if?f:o.y,i=o.width,r=Math.abs(f-o.y);s.barBorderCircle&&(s.barBorderRadius=[i/2,i/2,0,0]),o.y>f&&(s.barBorderRadius=[0,0,i/2,i/2]);let[n,l,h,c]=s.barBorderRadius,d=Math.min(i/2,r/2);n=n>d?d:n,l=l>d?d:l,h=h>d?d:h,c=c>d?d:c,n=n<0?0:n,l=l<0?0:l,h=h<0?0:h,c=c<0?0:c,a.arc(t+n,e+n,n,-Math.PI,-Math.PI/2),a.arc(t+i-l,e+l,l,-Math.PI/2,0),a.arc(t+i-h,e+r-h,h,0,Math.PI/2),a.arc(t+c,e+r-c,c,Math.PI/2,Math.PI)}else a.moveTo(m,o.y),a.lineTo(m+o.width,o.y),a.lineTo(m+o.width,f),a.lineTo(m,f),a.lineTo(m,o.y);a.setStrokeStyle(S),a.setFillStyle(v),s.borderWidth>0&&(a.setLineWidth(s.borderWidth*e.pix),a.closePath(),a.stroke()),a.fill()}}break;case"triangle":for(let i=0;ip&&i0&&(a.setLineWidth(s.borderWidth*e.pix),a.stroke()),a.fill())}break;case"mount":for(let i=0;ip&&i0&&(a.setLineWidth(s.borderWidth*e.pix),a.stroke()),a.fill())}break;case"sharp":for(let i=0;ip&&i0&&(a.setLineWidth(s.borderWidth*e.pix),a.stroke()),a.fill())}}if(!1!==e.dataLabel&&1===o){let r,h,c;r=[].concat(e.chartData.yAxisData.ranges[0]),h=r.pop(),c=r.shift(),Ft(y=yt(t,h,c,n,l,e,s,f,o),t,i,a,e,f)}return a.restore(),{xAxisPoints:n,calPoints:y,eachSpacing:l}}(r,e,i,a,t),l=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=l,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Xt(0,e,i,a),!1!==e.enableMarkLine&&1===t&&Ot(e,0,a),Ht(e.series,e,i,a,e.chartData),Bt(e,i,a,t),te(0,a)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new ie({timing:e.timing,duration:l,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&Tt(a,e),Gt(n,e,i,a);var o=function(t,e,i,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=[],n=(e.height-e.area[0]-e.area[2])/e.categories.length;for(let d=0;dh&&td?d:n,s=s>d?d:s,h=h>d?d:h,c=c>d?d:c,n=n<0?0:n,s=s<0?0:s,h=h<0?0:h,c=c<0?0:c,a.arc(t+c,o+c,c,-Math.PI,-Math.PI/2),a.arc(i.x-n,o+n,n,-Math.PI/2,0),a.arc(i.x-s,o+e-s,s,0,Math.PI/2),a.arc(t+h,o+e-h,h,Math.PI/2,Math.PI)}else a.moveTo(b,v),a.lineTo(i.x,v),a.lineTo(i.x,v+i.width),a.lineTo(b,v+i.width),a.lineTo(b,v),a.setLineWidth(1),a.setStrokeStyle(w);a.setFillStyle(S),a.closePath(),a.fill()}}break;case"stack":y=vt(f,g,u,r,n,e,i,p,t,o),s.push(y),y=dt(y,n,t.length,0,0,e);for(let t=0;th&&t4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},e.extra.area);let n=e.chartData.xAxisData,l=n.xAxisPoints,s=n.eachSpacing,h=e.height-e.area[2],c=[];a.save();let d=0,p=e.width+s;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*s+e.area[3],p=d+(e.xAxis.itemCount+4)*s),t.forEach((function(t,n){let x,g,u;x=[].concat(e.chartData.yAxisData.ranges[t.index]),g=x.pop(),u=x.shift();let f=gt(t.data,g,u,l,s,e,i,o);c.push(f);let y=V(f,t);for(let i=0;i1){let t=o[0],e=o[o.length-1];a.moveTo(t.x,t.y);let i=0;if("curve"===r.type)for(let r=0;rd&&(a.moveTo(t.x,t.y),i=1),r>0&&t.x>d&&t.xd&&(a.moveTo(t.x,t.y),i=1),r>0&&t.x>d&&t.xd&&(a.moveTo(t.x,t.y),i=1),r>0&&t.x>d&&t.xd&&(a.moveTo(i.x,i.y),t=1),e>0&&i.x>d&&i.xd&&(a.moveTo(i.x,i.y),t=1),e>0&&i.x>d&&i.xd&&(a.moveTo(i.x,i.y),t=1),e>0&&i.x>d&&i.x4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=r.activeRadius*e.pix);var n={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);l=l<10?10:l;var s=r.minRadius||.5*l;l4&&void 0!==arguments[4]?arguments[4]:1,r=P({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},e.extra.radar),n=H(e.categories.length),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},s=(e.width-e.area[1]-e.area[3])/2,h=(e.height-e.area[0]-e.area[2])/2,c=Math.min(s-(X(e.categories,i.fontSize,a)+i.radarLabelTextMargin),h-i.radarLabelTextMargin);c=(c-=i.radarLabelTextMargin*e.pix)<10?10:c,c=r.radius?r.radius:c,a.beginPath(),a.setLineWidth(1*e.pix),a.setStrokeStyle(r.gridColor),n.forEach((function(t,e){var i=I(c*Math.cos(t),c*Math.sin(t),l);a.moveTo(l.x,l.y),e%r.gridEval==0&&a.lineTo(i.x,i.y)})),a.stroke(),a.closePath();for(var d=function(t){var i={};if(a.beginPath(),a.setLineWidth(1*e.pix),a.setStrokeStyle(r.gridColor),"radar"==r.gridType)n.forEach((function(e,o){var n=I(c/r.gridCount*t*Math.cos(e),c/r.gridCount*t*Math.sin(e),l);0===o?(i=n,a.moveTo(n.x,n.y)):a.lineTo(n.x,n.y)})),a.lineTo(i.x,i.y);else{var o=I(c/r.gridCount*t*Math.cos(1.5),c/r.gridCount*t*Math.sin(1.5),l);a.arc(l.x,l.y,l.y-o.y,0,2*Math.PI,!1)}a.stroke(),a.closePath()},p=1;p<=r.gridCount;p++)d(p);r.customColor=E(r.linearType,r.customColor,t,i);var x=Q(n,l,c,t,e,o);if(x.forEach((function(i,o){a.beginPath(),a.setLineWidth(r.borderWidth*e.pix),a.setStrokeStyle(i.color);var n,s=M(i.color,r.opacity);"custom"==r.linearType&&((n=a.createCircularGradient?a.createCircularGradient(l.x,l.y,c):a.createRadialGradient(l.x,l.y,0,l.x,l.y,c)).addColorStop(0,M(r.customColor[t[o].linearIndex],r.opacity)),n.addColorStop(1,M(i.color,r.opacity)),s=n),a.setFillStyle(s),i.data.forEach((function(t,e){0===e?a.moveTo(t.position.x,t.position.y):a.lineTo(t.position.x,t.position.y)})),a.closePath(),a.fill(),!0===r.border&&a.stroke(),a.closePath(),!1!==e.dataPointShape&&At(i.data.map((function(t){return t.position})),i.color,i.pointShape,a,e)})),!0===r.axisLabel){const i=Math.max(r.max,Math.max.apply(null,R(t))),o=c/r.gridCount,n=e.fontSize*e.pix;for(a.setFontSize(n),a.setFillStyle(e.fontColor),a.setTextAlign("left"),p=0;p4&&void 0!==arguments[4]?arguments[4]:1,l=P({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=at(t,l,n),o=l.centerX||l.centerY?{x:l.centerX?l.centerX:e.width/2,y:l.centerY?l.centerY:e.height/2}:{x:e.width/2,y:e.height/2},l.radius?r=l.radius:(r=Math.min(o.x,o.y),r-=5*e.pix,r-=l.width/2),r=r<10?10:r,l.customColor=E(l.linearType,l.customColor,t,i);for(let c=0;c5&&void 0!==arguments[5]?arguments[5]:1,n=P({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);null==n.oldAngle&&(n.oldAngle=n.startAngle),null==n.oldData&&(n.oldData=0),t=rt(t,n.startAngle,n.endAngle);var l={x:i.width/2,y:i.height/2},s=Math.min(l.x,l.y);s-=5*i.pix;var h=(s=(s-=n.width/2)<10?10:s)-n.width,c=0;if("progress"==n.type){var d=s-3*n.width;o.beginPath();let t=o.createLinearGradient(l.x,l.y-d,l.x,l.y+d);t.addColorStop("0",M(e[0].color,.3)),t.addColorStop("1.0",M("#FFFFFF",.1)),o.setFillStyle(t),o.arc(l.x,l.y,d,0,2*Math.PI,!1),o.fill(),o.setLineWidth(n.width),o.setStrokeStyle(M(e[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(l.x,l.y,h,n.startAngle*Math.PI,n.endAngle*Math.PI,!1),o.stroke(),c=n.endAngler/g?o.setStrokeStyle(M(e[0].color,1)):o.setStrokeStyle(M(e[0].color,.3)),o.setLineWidth(3*i.pix),o.moveTo(p,0),o.lineTo(x,0),o.stroke(),o.rotate(a*Math.PI);o.restore(),e=ot(e,n,r),o.setLineWidth(n.width),o.setStrokeStyle(e[0].color),o.setLineCap("round"),o.beginPath(),o.arc(l.x,l.y,h,n.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),o.stroke();let f=s-2.5*n.width;o.save(),o.translate(l.x,l.y),o.rotate((e[0]._proportion_-1)*Math.PI),o.beginPath(),o.setLineWidth(n.width/3);let y=o.createLinearGradient(0,.6*-f,0,.6*f);y.addColorStop("0",M("#FFFFFF",0)),y.addColorStop("0.5",M(e[0].color,1)),y.addColorStop("1.0",M("#FFFFFF",0)),o.setStrokeStyle(y),o.arc(0,0,f,.85*Math.PI,1.15*Math.PI,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(e[0].color),o.setFillStyle(e[0].color),o.moveTo(-f-n.width/3/2,-4),o.lineTo(-f-n.width/3/2-4,0),o.lineTo(-f-n.width/3/2,4),o.lineTo(-f-n.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(n.width),o.setLineCap("butt");for(let e=0;e5&&void 0!==arguments[5]?arguments[5]:1,n=P({},{color:{},average:{}},i.extra.candle);n.color=P({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},n.color),n.average=P({},{show:!1,name:[],day:[],color:a.color},n.average),i.extra.candle=n;let l=i.chartData.xAxisData,s=l.xAxisPoints,h=l.eachSpacing,c=[];o.save();let d=-2,p=s.length+2,x=0,g=i.width+h;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(o.translate(i._scrollDistance_,0),d=Math.floor(-i._scrollDistance_/h)-2,p=d+i.xAxis.itemCount+4,x=-i._scrollDistance_-2*h+i.area[3],g=x+(i.xAxis.itemCount+4)*h),(n.average.show||e)&&e.forEach((function(t,e){let n,l,c;n=[].concat(i.chartData.yAxisData.ranges[t.index]),l=n.pop(),c=n.shift();var d=V(gt(t.data,l,c,s,h,i,a,r),t);for(let i=0;ix&&(o.moveTo(a.x,a.y),t=1),i>0&&a.x>x&&a.xd&&a0?(o.setStrokeStyle(n.color.upLine),o.setFillStyle(n.color.upFill),o.setLineWidth(1*i.pix),o.moveTo(t[3].x,t[3].y),o.lineTo(t[1].x,t[1].y),o.lineTo(t[1].x-h/4,t[1].y),o.lineTo(t[0].x-h/4,t[0].y),o.lineTo(t[0].x,t[0].y),o.lineTo(t[2].x,t[2].y),o.lineTo(t[0].x,t[0].y),o.lineTo(t[0].x+h/4,t[0].y),o.lineTo(t[1].x+h/4,t[1].y),o.lineTo(t[1].x,t[1].y),o.moveTo(t[3].x,t[3].y)):(o.setStrokeStyle(n.color.downLine),o.setFillStyle(n.color.downFill),o.setLineWidth(1*i.pix),o.moveTo(t[3].x,t[3].y),o.lineTo(t[0].x,t[0].y),o.lineTo(t[0].x-h/4,t[0].y),o.lineTo(t[1].x-h/4,t[1].y),o.lineTo(t[1].x,t[1].y),o.lineTo(t[2].x,t[2].y),o.lineTo(t[1].x,t[1].y),o.lineTo(t[1].x+h/4,t[1].y),o.lineTo(t[0].x+h/4,t[0].y),o.lineTo(t[0].x,t[0].y),o.moveTo(t[3].x,t[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:s,calPoints:c,eachSpacing:h}}(r,s,e,i,a,t),l=o.xAxisPoints,h=o.calPoints,c=o.eachSpacing;e.chartData.xAxisPoints=l,e.chartData.calPoints=h,e.chartData.eachSpacing=c,Xt(0,e,i,a),!1!==e.enableMarkLine&&1===t&&Ot(e,0,a),Ht(s?0:e.series,e,i,a,e.chartData),Bt(e,i,a,t),te(0,a)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}})}}function oe(){this.events={}}ie.prototype.stop=function(){this.isStop=!0},oe.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},oe.prototype.delEventListener=function(t){this.events[t]=[]},oe.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};this.opts=P({},this.opts,t),this.opts.updateData=!0;let e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":let t=wt(this.opts.series,this.opts,this.config,this.context).yAxisWidth;this.config.yAxisWidth=t;let e=0,i=pt(this.opts.categories,this.opts,this.config),a=i.xAxisPoints,o=i.startX;e=i.endX-o-i.eachSpacing*(a.length-1),this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0},this.opts._scrollDistance_=e}ae.call(this,this.opts.type,this.opts,this.config,this.context)},re.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0!==this.opts.enableScroll)return void console.log("[uCharts] 请启用滚动条后使用");let e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;let i=wt(this.opts.series,this.opts,this.config,this.context),a=i.yAxisWidth;this.config.yAxisWidth=a;let o=0,r=pt(this.opts.categories,this.opts,this.config),n=r.xAxisPoints,l=r.startX,s=r.endX,h=r.eachSpacing,c=h*e,d=s-l,p=d-h*(n.length-1);o=d/2-c,o>0&&(o=0),o=this.opts.categories.length?this.opts.categories.length:n,this.opts.animation=!1,this.opts.xAxis.itemCount=n;let l=0,s=pt(this.opts.categories,this.opts,this.config),h=s.xAxisPoints,c=s.startX,d=s.endX,p=s.eachSpacing,x=p*this.scrollOption.moveCurrent1,g=d-c-p*(h.length-1);l=-x+Math.min(a[0].x,a[1].x)-this.opts.area[3]-p,l>0&&(l=0),l2*Math.PI&&(t-=2*Math.PI),t},n=Math.atan2(e.center.y-t.y,t.x-e.center.x);(n*=-1)<0&&(n+=2*Math.PI),e.angleList.map((function(t){return r(-1*t)})).forEach((function(t,e){var i=r(t-a/2),l=r(t+a/2);l=i&&n<=l||n+2*Math.PI>=i&&n+2*Math.PI<=l)&&(o=e)}))}return o}({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var i=-1,a=0,o=e.series.length;ar.funnelArea[0]&&t.xr.funnelArea[1]&&t.yr.area[0]&&t.xr.area[1]&&t.y4&&void 0!==arguments[4]?arguments[4]:0,r={index:-1,group:[]},n=i.chartData.eachSpacing/2;let l=i.chartData.yAxisPoints;return e&&e.length>0&&$(t,i)&&l.forEach((function(e,i){t.y+o+n>e&&(r.index=i)})),r}({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r={index:-1,group:[]},n=i.chartData.eachSpacing/2;let l=[];if(e&&e.length>0){if(i.categories){for(let t=1;te&&(r.index=i)}));else{let i=Array(e.length);for(let r=0;re.start.x&&t.xe.start.y&&t.yi[0]-0&&t.xi[1]-0&&t.y1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0]){G(i,this.opts,t);var a=this.getLegendDataIndex(t);a>=0&&("candle"==this.opts.type?this.opts.seriesMA[a].show=!this.opts.seriesMA[a].show:this.opts.series[a].show=!this.opts.series[a].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,ae.call(this,this.opts.type,this.opts,this.config,this.context))}},re.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0])||console.log("[uCharts] 未获取到event坐标信息");var a=G(i,this.opts,t),o=this.scrollOption.currentOffset,r=P({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var n=this.getCurrentDataIndex(t);if((p=null==e.index?n.index:e.index)>-1||p.length>0)if(0!==(s=N(this.opts.series,p,n.group)).length){var l=(d=j(s,this.opts,p,n.group,this.opts.categories,e)).textList;(h=d.offset).y=a.y,r.tooltip={textList:void 0!==e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p,group:n.group}}ae.call(this,r.type,r,this.config,this.context)}if("mount"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t).index:e.index)>-1){r=P({},this.opts,{animation:!1});var s=P({},r._series_[p]),h=(l=[{text:e.formatter?e.formatter(s,void 0,p,r):s.name+": "+s.data,color:s.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?s.legendShape:this.opts.extra.tooltip.legendShape}],{x:r.chartData.calPoints[p].x,y:a.y});r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}ae.call(this,r.type,r,this.config,this.context)}if("bar"===this.opts.type){n=this.getCurrentDataIndex(t);if((p=null==e.index?n.index:e.index)>-1||p.length>0)if(0!==(s=N(this.opts.series,p,n.group)).length){l=(d=j(s,this.opts,p,n.group,this.opts.categories,e)).textList;(h=d.offset).x=a.x,r.tooltip={textList:void 0!==e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}ae.call(this,r.type,r,this.config,this.context)}if("mix"===this.opts.type){n=this.getCurrentDataIndex(t);if((p=null==e.index?n.index:e.index)>-1){o=this.scrollOption.currentOffset,r=P({},this.opts,{_scrollDistance_:o,animation:!1});if(0!==(s=N(this.opts.series,p)).length){var c=J(s,this.opts,p,this.opts.categories,e);l=c.textList;(h=c.offset).y=a.y,r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}}ae.call(this,r.type,r,this.config,this.context)}if("candle"===this.opts.type){n=this.getCurrentDataIndex(t);if((p=null==e.index?n.index:e.index)>-1){o=this.scrollOption.currentOffset,r=P({},this.opts,{_scrollDistance_:o,animation:!1});if(0!==(s=N(this.opts.series,p)).length){var d;l=(d=Y(this.opts.series[0].data,s,this.opts,p,this.opts.categories,this.opts.extra.candle)).textList;(h=d.offset).y=a.y,r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}}ae.call(this,r.type,r,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){r=P({},this.opts,{animation:!1}),s=P({},r._series_[p]),l=[{text:e.formatter?e.formatter(s,void 0,p,r):s.name+": "+s.data,color:s.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?s.legendShape:this.opts.extra.tooltip.legendShape}],h={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}ae.call(this,r.type,r,this.config,this.context)}if("map"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){r=P({},this.opts,{animation:!1});(s=P({},this.opts.series[p])).name=s.properties.name;l=[{text:e.formatter?e.formatter(s,void 0,p,this.opts):s.name,color:s.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?s.legendShape:this.opts.extra.tooltip.legendShape}],h={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}r.updateData=!1,ae.call(this,r.type,r,this.config,this.context)}if("word"===this.opts.type){if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){r=P({},this.opts,{animation:!1}),s=P({},this.opts.series[p]),l=[{text:e.formatter?e.formatter(s,void 0,p,this.opts):s.name,color:s.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?s.legendShape:this.opts.extra.tooltip.legendShape}],h={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}r.updateData=!1,ae.call(this,r.type,r,this.config,this.context)}if("radar"===this.opts.type){var p;if((p=null==e.index?this.getCurrentDataIndex(t):e.index)>-1){r=P({},this.opts,{animation:!1});if(0!==(s=N(this.opts.series,p)).length){l=s.map((t=>({text:e.formatter?e.formatter(t,this.opts.categories[p],p,this.opts):t.name+": "+t.data,color:t.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?t.legendShape:this.opts.extra.tooltip.legendShape}))),h={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:l,offset:void 0!==e.offset?e.offset:h,option:e,index:p}}}ae.call(this,r.type,r,this.config,this.context)}},re.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};let e=P({},this.opts,{_scrollDistance_:t,animation:!1});ae.call(this,this.opts.type,e,this.config,this.context)},re.prototype.scrollStart=function(t){var e=null,i=G(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},re.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());let e=this.opts.touchMoveLimit||60,i=Date.now();if(!(i-this.scrollOption.lastMoveTime{var i=new Date;i.setTime(1e3*t);var a=i.getFullYear(),o=i.getMonth()+1;o=o<10?"0"+o:o;var r=i.getDate();r=r<10?"0"+r:r;var n=i.getHours();n=n<10?"0"+n:n;var l=i.getMinutes(),s=i.getSeconds();return l=l<10?"0"+l:l,s=s<10?"0"+s:s,"full"==e?a+"-"+o+"-"+r+" "+n+":"+l+":"+s:"y-m-d"==e?a+"-"+o+"-"+r:"h:m"==e?n+":"+l:"h:m:s"==e?n+":"+l+":"+s:[a,o,r,n,l,s]})(t,"h:m")},seriesDemo1:function(t,e,i,a){return t+"元"},tooltipDemo1:function(t,e,i,a){return 0==i?"随便用"+t.data+"年":"其他我没改"+t.data+"天"},pieDemo:function(t,e,i,a){if(void 0!==e)return i[e].name+":"+i[e].data+"元"}},demotype:{type:"line",color:ne,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:ne,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:ne,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:ne,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:ne,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:ne,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:ne,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:ne,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:ne,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:ne,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:ne,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:ne,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:ne,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:ne,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:ne,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:ne,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:ne,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:ne,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:ne,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:ne,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:ne,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},se=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],he={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){let e="";for(let i in t){0==i&&(e+=t[i].axisValueLabel+"年销售额");let a="--";null!==t[i].data&&(a=t[i].data),e+="\n"+t[i].seriesName+":"+a+" 万元"}return e},legendFormat:function(t){return"自定义图例+"+t},yAxisFormatDemo:function(t,e){return t+"元"},seriesFormatDemo:function(t){return t.name+"年"+t.value+"元"}},demotype:{color:se},column:{color:se,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:se,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:se,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:se,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:se,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:se,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:se,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:se,tooltip:{formatter:"{a}
{b} : {c}%"},seriesTemplate:{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}]}},candle:{xAxis:{data:[]},yAxis:{},color:se,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}};var ce={},de=null;function pe(t={},...e){for(let i in e)for(let a in e[i])e[i].hasOwnProperty(a)&&(t[a]=e[i][a]&&"object"==typeof e[i][a]?pe(Array.isArray(e[i][a])?[]:{},t[a],e[i][a]):e[i][a]);return t}function xe(t,e){for(let i in t)t.hasOwnProperty(i)&&null!==t[i]&&"object"==typeof t[i]?xe(t[i],e):"format"===i&&"string"==typeof t[i]&&(t.formatter=e[t[i]]?e[t[i]]:void 0);return t}const ge={data:()=>({rid:null}),mounted(){de={top:0,left:0};let t=document.querySelectorAll("uni-main")[0];void 0===t&&(t=document.querySelectorAll("uni-page-wrapper")[0]),de={top:t.offsetTop,left:t.offsetLeft},setTimeout((()=>{null===this.rid&&this.$ownerInstance&&this.$ownerInstance.callMethod("getRenderType")}),200)},destroyed(){delete le.option[this.rid],delete le.instance[this.rid],delete he.option[this.rid],delete he.instance[this.rid]},methods:{ecinit(t,e,i,a){let o=JSON.stringify(t.id);this.rid=o,ce[o]=this.$ownerInstance||a;let r=JSON.parse(JSON.stringify(t)),n=r.type;n&&he.type.includes(n)?he.option[o]=pe({},he[n],r):he.option[o]=pe({},r);let l=r.chartData;if(l){he.option[o].xAxis&&he.option[o].xAxis.type&&"category"===he.option[o].xAxis.type&&(he.option[o].xAxis.data=l.categories),he.option[o].yAxis&&he.option[o].yAxis.type&&"category"===he.option[o].yAxis.type&&(he.option[o].yAxis.data=l.categories),he.option[o].series=[];for(var s=0;s{let i=JSON.parse(JSON.stringify({x:e.event.offsetX,y:e.event.offsetY}));ce[t].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:i,currentIndex:e.dataIndex,value:e.data,seriesName:e.seriesName,id:t}})})),he.instance[t].on("highlight",(e=>{ce[t].callMethod("emitMsg",{name:"getHighlight",params:{type:"highlight",res:e,id:t}})}))),this.updataEChart(t,he.option[t])):this.updataEChart(t,he.option[t])},updataEChart(t,e){if((e=xe(e,he.formatter)).tooltip&&(e.tooltip.show=!!e.tooltipShow,e.tooltip.position=this.tooltipPosition(),"string"==typeof e.tooltipFormat&&he.formatter[e.tooltipFormat]&&(e.tooltip.formatter=e.tooltip.formatter?e.tooltip.formatter:he.formatter[e.tooltipFormat])),e.series)for(let i in e.series){let t=e.series[i].linearGradient;t&&(e.series[i].color=new echarts.graphic.LinearGradient(t[0],t[1],t[2],t[3],t[4]))}he.instance[t].setOption(e,e.notMerge),he.instance[t].on("finished",(function(){ce[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),he.instance[t]&&he.instance[t].off("finished")})),void 0!==ce[t].$el.children[0].clientWidth&&(Math.abs(ce[t].$el.children[0].clientWidth-he.instance[t].getWidth())>3||Math.abs(ce[t].$el.children[0].clientHeight-he.instance[t].getHeight())>3)&&this.ecresize()},tooltipPosition:()=>(t,e,i,a,o)=>{let r=t[0],n=t[1],l=o.viewSize[0],s=o.viewSize[1],h=o.contentSize[0],c=o.contentSize[1],d=r+30,p=n+30;return d+h>l&&(d=r-h-30),p+c>s&&(p=n-c-30),[d,p]},ucinit(t,e,i,a){if(JSON.stringify(t)==JSON.stringify(e))return;if(!t.canvasId)return;let o=JSON.parse(JSON.stringify(t.canvasId));this.rid=o,ce[o]=this.$ownerInstance||a,le.option[o]=JSON.parse(JSON.stringify(t)),le.option[o]=xe(le.option[o],le.formatter);let r=document.getElementById(o);r&&r.children[0]&&(le.option[o].context=r.children[0].getContext("2d"),le.instance[o]&&le.option[o]&&!0===le.option[o].update?this.updataUChart():setTimeout((()=>{le.option[o].context.restore(),le.option[o].context.save(),this.newUChart()}),100))},newUChart(){let t=this.rid;le.instance[t]=new re(le.option[t]),le.instance[t].addEventListener("renderComplete",(()=>{ce[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t,opts:le.instance[t].opts}}),le.instance[t].delEventListener("renderComplete")})),le.instance[t].addEventListener("scrollLeft",(()=>{ce[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t,opts:le.instance[t].opts}})})),le.instance[t].addEventListener("scrollRight",(()=>{ce[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t,opts:le.instance[t].opts}})}))},updataUChart(){let t=this.rid;le.instance[t].updateData(le.option[t])},tooltipDefault(t,e,i,a){if(e){let i=t.data;return"object"==typeof t.data&&(i=t.data.value),e+" "+t.name+":"+i}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip(t,e){let i=le.option[e].tooltipCustom;if(i&&null!=i){let a;i.x>=0&&i.y>=0&&(a={x:i.x,y:i.y+10}),le.instance[e].showToolTip(t,{index:i.index,offset:a,textList:i.textList,formatter:(t,i,a,o)=>"string"==typeof le.option[e].tooltipFormat&&le.formatter[le.option[e].tooltipFormat]?le.formatter[le.option[e].tooltipFormat](t,i,a,o):this.tooltipDefault(t,i,a,o)})}else le.instance[e].showToolTip(t,{formatter:(t,i,a,o)=>"string"==typeof le.option[e].tooltipFormat&&le.formatter[le.option[e].tooltipFormat]?le.formatter[le.option[e].tooltipFormat](t,i,a,o):this.tooltipDefault(t,i,a,o)})},tap(t){let e=this.rid,i=le.option[e].ontap,a=le.option[e].tooltipShow,o=le.option[e].tapLegend;if(0==i)return;let r=null,n=null,l=document.getElementById("UC"+e).getBoundingClientRect(),s={};s=t.detail.x?{x:t.detail.x-l.left,y:t.detail.y-l.top+de.top}:{x:t.clientX-l.left,y:t.clientY-l.top+de.top},t.changedTouches=[],t.changedTouches.unshift(s),r=le.instance[e].getCurrentDataIndex(t),n=le.instance[e].getLegendDataIndex(t),!0===o&&le.instance[e].touchLegend(t),1==a&&this.showTooltip(t,e),ce[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:s,currentIndex:r,legendIndex:n,id:e,opts:le.instance[e].opts}})},touchStart(t){let e=this.rid;0!=le.option[e].ontouch&&(!0===le.option[e].enableScroll&&1==t.touches.length&&le.instance[e].scrollStart(t),ce[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e,opts:le.instance[e].opts}}))},touchMove(t){let e=this.rid,i=le.option[e].ontouch;if(0!=i){if(!0===le.option[e].enableScroll&&1==t.changedTouches.length&&le.instance[e].scroll(t),!0===le.option[e].ontap&&!1===le.option[e].enableScroll&&!0===le.option[e].onmovetip){let i=document.getElementById("UC"+e).getBoundingClientRect(),a={x:t.changedTouches[0].clientX-i.left,y:t.changedTouches[0].clientY-i.top+de.top};t.changedTouches.unshift(a),!0===le.option[e].tooltipShow&&this.showTooltip(t,e)}!0===i&&!0===le.option[e].enableScroll&&!0===le.option[e].onzoom&&2==t.changedTouches.length&&le.instance[e].dobuleZoom(t),ce[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e,opts:le.instance[e].opts}})}},touchEnd(t){let e=this.rid;0!=le.option[e].ontouch&&(!0===le.option[e].enableScroll&&0==t.touches.length&&le.instance[e].scrollEnd(t),ce[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e,opts:le.instance[e].opts}}))},mouseDown(t){let e=this.rid;if(0==le.option[e].onmouse)return;let i=document.getElementById("UC"+e).getBoundingClientRect(),a={};a={x:t.clientX-i.left,y:t.clientY-i.top+de.top},t.changedTouches=[],t.changedTouches.unshift(a),le.instance[e].scrollStart(t),le.option[e].mousedown=!0,ce[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:a,id:e,opts:le.instance[e].opts}})},mouseMove(t){let e=this.rid,i=le.option[e].onmouse,a=le.option[e].tooltipShow;if(0==i)return;let o=document.getElementById("UC"+e).getBoundingClientRect(),r={};r={x:t.clientX-o.left,y:t.clientY-o.top+de.top},t.changedTouches=[],t.changedTouches.unshift(r),le.option[e].mousedown?(le.instance[e].scroll(t),ce[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:r,id:e,opts:le.instance[e].opts}})):le.instance[e]&&1==a&&this.showTooltip(t,e)},mouseUp(t){let e=this.rid;if(0==le.option[e].onmouse)return;let i=document.getElementById("UC"+e).getBoundingClientRect(),a={};a={x:t.clientX-i.left,y:t.clientY-i.top+de.top},t.changedTouches=[],t.changedTouches.unshift(a),le.instance[e].scrollEnd(t),le.option[e].mousedown=!1,ce[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:a,id:e,opts:le.instance[e].opts}})}}},ue=t=>{t.$renderjs||(t.$renderjs=[]),t.$renderjs.push("rdcharts"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.rdcharts=this},mounted(){this.$ownerInstance=this.$gcd(this,!0)}}),t.mixins.push(ge)};function fe(t={},...e){for(let i in e)for(let a in e[i])e[i].hasOwnProperty(a)&&(t[a]=e[i][a]&&"object"==typeof e[i][a]?fe(Array.isArray(e[i][a])?[]:{},t[a],e[i][a]):e[i][a]);return t}function ye(t,e){for(let i in t)t.hasOwnProperty(i)&&null!==t[i]&&"object"==typeof t[i]?ye(t[i],e):"format"===i&&"string"==typeof t[i]&&(t.formatter=e[t[i]]?e[t[i]]:void 0);return t}const me={name:"qiun-data-charts",mixins:[c.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"rgba(0,0,0,0)"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:()=>({categories:[],series:[]})},opts:{type:Object,default:()=>({})},eopts:{type:Object,default:()=>({})},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},optsWatch:{type:Boolean,default:!0},onzoom:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:()=>[]},groupEnum:{type:Array,default:()=>[]},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0},menus:{type:Array,default:()=>[]}},data:()=>({cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:{state:!1},uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}),created(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e=t.length,i="";for(let a=0;a<32;a++)i+=t.charAt(Math.floor(Math.random()*e));this.cid=i}const t=d();"windows"!==t.platform&&"mac"!==t.platform||(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted(){this.inH5=!0,!0===this.inWin&&(this.openmouse=this.onmouse),!0===this.echartsH5&&(this.echarts=!0),this.$nextTick((()=>{this.beforeInit()}));const t=this.inH5?500:200,e=this;p(function(t,e){let i=!1;return function(){clearTimeout(i),i&&clearTimeout(i),i=setTimeout((()=>{i=!1,t.apply(this,arguments)}),e)}}((function(t){if(1==e.mixinDatacomLoading)return;let i=e.mixinDatacomErrorMessage;null!==i&&"null"!==i&&""!==i||(e.echarts?e.echartsResize.state=!e.echartsResize.state:e.resizeHandler())}),t))},destroyed(){!0===this.echarts?(delete he.option[this.cid],delete he.instance[this.cid]):(delete le.option[this.cid],delete le.instance[this.cid]),x((()=>{}))},watch:{chartDataProps:{handler(t,e){"object"==typeof t?JSON.stringify(t)!==JSON.stringify(e)&&(this._clearChart(),t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:chartData数据类型错误")},immediate:!1,deep:!0},localdata:{handler(t,e){JSON.stringify(t)!==JSON.stringify(e)&&(t.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler(t,e){"object"==typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!1===this.echarts&&1==this.optsWatch&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:opts数据类型错误")},immediate:!1,deep:!0},eoptsProps:{handler(t,e){"object"==typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:eopts数据类型错误")},immediate:!1,deep:!0},reshow(t,e){!0===t&&!1===this.mixinDatacomLoading&&setTimeout((()=>{this.mixinDatacomErrorMessage=null,this.echartsResize.state=!this.echartsResize.state,this.checkData(this.drawData)}),200)},reload(t,e){!0===t&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage(t,e){t&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:t,id:this.cid}}),this.errorShow)},errorMessage(t,e){t&&this.errorShow&&null!==t&&"null"!==t&&""!==t?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit(){this.mixinDatacomErrorMessage=null,"object"==typeof this.chartData&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=fe({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit(t){if(this.groupEnum.length>0)for(let c=0;c0)for(let c=0;c0)a=this.chartData.categories;else if(this.startDate&&this.endDate){let t=new Date(this.startDate),e=new Date(this.endDate);for(;t<=e;)a.push((n=void 0,l=void 0,s=void 0,n=(r=t).getFullYear(),l=r.getMonth()+1,s=r.getDate(),l>=1&&l<=9&&(l="0"+l),s>=0&&s<=9&&(s="0"+s),n+"-"+l+"-"+s)),t=t.setDate(t.getDate()+1),t=new Date(t)}else{let e={};t.map((function(t,i){null==t.text||e[t.text]||(a.push(t.text),e[t.text]=!0)}))}i.categories=a}var r,n,l,s;let h={};if(t.map((function(t,e){null==t.group||h[t.group]||(o.push({name:t.group,data:[]}),h[t.group]=!0)})),0==o.length)if(o=[{name:"默认分组",data:[]}],!0===e)for(let c=0;c0)for(let e=0;e0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(he.option[e].chartData=i,this.$nextTick((()=>{this.init()}))):(le.option[e].categories=i.categories,le.option[e].series=i.series,this.$nextTick((()=>{this.init()}))))},resizeHandler(){let t=Date.now();t-(this.lastDrawTime?this.lastDrawTime:t-3e3)<1e3||g().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((t=>{this.showchart=!0,t.width>0&&t.height>0&&(t.width===this.cWidth&&t.height===this.cHeight||this.checkData(this.drawData))})).exec()},getCloudData(){1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((t=>{this.mixinDatacomResData=t.result.data,this.localdataInit(this.mixinDatacomResData)})).catch((t=>{this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="请求错误:"+t})))},onMixinDatacomPropsChange(t,e){1==t&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart(){let t=this.cid;if(!0!==this.echarts&&le.option[t]&&le.option[t].context){const e=le.option[t].context;"object"!=typeof e||le.option[t].update||(e.clearRect(0,0,this.cWidth*this.pixel,this.cHeight*this.pixel),e.draw())}},init(){let t=this.cid;g().in(this).select("#ChartBoxId"+t).boundingClientRect((e=>{e.width>0&&e.height>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.lastDrawTime=Date.now(),this.cWidth=e.width,this.cHeight=e.height,!0!==this.echarts&&(le.option[t].background="rgba(0,0,0,0)"==this.background?"#FFFFFF":this.background,le.option[t].canvas2d=this.type2d,le.option[t].pixelRatio=this.pixel,le.option[t].animation=this.animation,le.option[t].width=e.width*this.pixel,le.option[t].height=e.height*this.pixel,le.option[t].onzoom=this.onzoom,le.option[t].ontap=this.ontap,le.option[t].ontouch=this.ontouch,le.option[t].onmouse=this.openmouse,le.option[t].onmovetip=this.onmovetip,le.option[t].tooltipShow=this.tooltipShow,le.option[t].tooltipFormat=this.tooltipFormat,le.option[t].tooltipCustom=this.tooltipCustom,le.option[t].inScrollView=this.inScrollView,le.option[t].lastDrawTime=this.lastDrawTime,le.option[t].tapLegend=this.tapLegend),this.inH5||this.inApp?1==this.echarts?(he.option[t].ontap=this.ontap,he.option[t].onmouse=this.openmouse,he.option[t].tooltipShow=this.tooltipShow,he.option[t].tooltipFormat=this.tooltipFormat,he.option[t].tooltipCustom=this.tooltipCustom,he.option[t].lastDrawTime=this.lastDrawTime,this.echartsOpts=fe({},he.option[t])):(le.option[t].rotateLock=le.option[t].rotate,this.uchartsOpts=fe({},le.option[t])):(le.option[t]=ye(le.option[t],le.formatter),this.mixinDatacomErrorMessage=null,this.mixinDatacomLoading=!1,this.showchart=!0,this.$nextTick((()=>{if(!0===this.type2d){g().in(this).select("#"+t).fields({node:!0,size:!0}).exec((i=>{if(i[0]){const a=i[0].node,o=a.getContext("2d");le.option[t].context=o,le.option[t].rotateLock=le.option[t].rotate,le.instance[t]&&le.option[t]&&!0===le.option[t].update?this._updataUChart(t):(a.width=e.width*this.pixel,a.height=e.height*this.pixel,a._width=e.width*this.pixel,a._height=e.height*this.pixel,setTimeout((()=>{le.option[t].context.restore(),le.option[t].context.save(),this._newChart(t)}),100))}else this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:开启2d模式后,未获取到dom节点,canvas-id:"+t}))}else this.inAli&&(le.option[t].rotateLock=le.option[t].rotate),le.option[t].context=u(t,this),le.instance[t]&&le.option[t]&&!0===le.option[t].update?this._updataUChart(t):setTimeout((()=>{le.option[t].context.restore(),le.option[t].context.save(),this._newChart(t)}),100)})))):(this.mixinDatacomLoading=!1,this.showchart=!1,1==this.reshow&&(this.mixinDatacomErrorMessage="布局错误:未获取到父元素宽高尺寸!canvas-id:"+t))})).exec()},saveImage(){f({canvasId:this.cid,success:t=>{var e=document.createElement("a");e.href=t.tempFilePath,e.download=this.cid,e.target="_blank",e.click()}},this)},getImage(){if(0==this.type2d)f({canvasId:this.cid,success:t=>{this.emitMsg({name:"getImage",params:{type:"getImage",base64:t.tempFilePath}})}},this);else{g().in(this).select("#"+this.cid).fields({node:!0,size:!0}).exec((t=>{if(t[0]){const e=t[0].node;this.emitMsg({name:"getImage",params:{type:"getImage",base64:e.toDataURL("image/png")}})}}))}},_error(t){this.mixinDatacomErrorMessage=t.detail.errMsg},emitMsg(t){this.$emit(t.name,t.params)},getRenderType(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON(){return this}}};ue(me);const be=t(me,[["render",function(t,n,s,h,c,d){const p=y(m("qiun-loading"),T),x=r,g=y(m("qiun-error"),A),u=w;return e(),i(x,{class:"chartsview",id:"ChartBoxId"+c.cid},{default:a((()=>[t.mixinDatacomLoading?(e(),i(x,{key:0},{default:a((()=>[o(p,{loadingType:s.loadingType},null,8,["loadingType"])])),_:1})):l("",!0),t.mixinDatacomErrorMessage&&s.errorShow?(e(),i(x,{key:1,onClick:d.reloading},{default:a((()=>[o(g,{errorMessage:s.errorMessage},null,8,["errorMessage"])])),_:1},8,["onClick"])):l("",!0),c.echarts?b((e(),i(x,{key:2,style:v([{background:s.background},{width:"100%",height:"100%"}]),"data-directory":s.directory,id:"EC"+c.cid,prop:c.echartsOpts,"change:prop":t.rdcharts.ecinit,resize:c.echartsResize,"change:resize":t.rdcharts.ecresize},null,8,["style","data-directory","id","prop","change:prop","resize","change:resize"])),[[S,c.showchart]]):(e(),i(x,{key:3,onClick:t.rdcharts.tap,onMousemove:t.rdcharts.mouseMove,onMousedown:t.rdcharts.mouseDown,onMouseup:t.rdcharts.mouseUp,onTouchstart:t.rdcharts.touchStart,onTouchmove:t.rdcharts.touchMove,onTouchend:t.rdcharts.touchEnd,id:"UC"+c.cid,prop:c.uchartsOpts,"change:prop":t.rdcharts.ucinit},{default:a((()=>[b(o(u,{id:c.cid,canvasId:c.cid,style:v({width:c.cWidth+"px",height:c.cHeight+"px",background:s.background}),"disable-scroll":s.disableScroll,onError:d._error},null,8,["id","canvasId","style","disable-scroll","onError"]),[[S,c.showchart]])])),_:1},8,["onClick","onMousemove","onMousedown","onMouseup","onTouchstart","onTouchmove","onTouchend","id","prop","change:prop"]))])),_:1},8,["id"])}],["__scopeId","data-v-53c001dd"]]);export{be as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/ranking-bc16c92f.css b/alpha/admin/unpackage/dist/build/h5/assets/ranking-bc16c92f.css new file mode 100644 index 0000000000000000000000000000000000000000..1aba6ec34dc8f70d9fe4615323e76c96bfef3889 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/ranking-bc16c92f.css @@ -0,0 +1 @@ +.text-btn[data-v-7e6baa4e]{color:#2979ff;cursor:pointer;margin:0 5px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/register-admin-161c0c69.css b/alpha/admin/unpackage/dist/build/h5/assets/register-admin-161c0c69.css new file mode 100644 index 0000000000000000000000000000000000000000..635ea1d0695bbfc1ca8f436ea3a3a3df85fcfe38 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/register-admin-161c0c69.css @@ -0,0 +1 @@ +.input-box[data-v-e75f6013] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-e75f6013]{padding:0 1.875rem}.login-logo[data-v-e75f6013]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-e75f6013]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-e75f6013]{display:flex;justify-content:center}.login-logo uni-image[data-v-e75f6013]{width:60px;height:60px}.register-back[data-v-e75f6013]{display:none}uni-button[data-v-e75f6013]{padding-bottom:1px}}.uni-content uni-view[data-v-e75f6013]{box-sizing:border-box}.title[data-v-e75f6013]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-e75f6013]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-e75f6013] .uni-easyinput__content,.input-box[data-v-e75f6013]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-e75f6013]{color:#04498c;cursor:pointer}.uni-content[data-v-e75f6013] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-e75f6013]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-e75f6013]{height:auto!important}@media screen and (max-width: 690px){.uni-content[data-v-e75f6013]{margin-top:15px;height:100%;background-color:#fff}}@media screen and (min-width: 690px){.uni-content[data-v-e75f6013]{padding:30px 40px 60px;max-height:520px}.link-box[data-v-e75f6013]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.link[data-v-e75f6013]{font-size:12px}}.uni-content[data-v-e75f6013] .uni-forms-item__label{position:absolute;left:-15px}uni-button[data-v-e75f6013]{margin-top:15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/register-b87ba729.css b/alpha/admin/unpackage/dist/build/h5/assets/register-b87ba729.css new file mode 100644 index 0000000000000000000000000000000000000000..5a8ed3be4a9c72a41facd75000f126a073ee7ead --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/register-b87ba729.css @@ -0,0 +1 @@ +.input-box[data-v-7ae85e3a] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-7ae85e3a]{padding:0 1.875rem}.login-logo[data-v-7ae85e3a]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-7ae85e3a]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-7ae85e3a]{display:flex;justify-content:center}.login-logo uni-image[data-v-7ae85e3a]{width:60px;height:60px}.register-back[data-v-7ae85e3a]{display:none}uni-button[data-v-7ae85e3a]{padding-bottom:1px}}.uni-content uni-view[data-v-7ae85e3a]{box-sizing:border-box}.title[data-v-7ae85e3a]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-7ae85e3a]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-7ae85e3a] .uni-easyinput__content,.input-box[data-v-7ae85e3a]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-7ae85e3a]{color:#04498c;cursor:pointer}.uni-content[data-v-7ae85e3a] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-7ae85e3a]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-7ae85e3a]{height:auto!important}@media screen and (max-width: 690px){.uni-content[data-v-7ae85e3a]{margin-top:15px;height:100%;background-color:#fff}}@media screen and (min-width: 690px){.uni-content[data-v-7ae85e3a]{padding:30px 40px 60px;max-height:530px}.link-box[data-v-7ae85e3a]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.link[data-v-7ae85e3a]{font-size:12px}}.uni-content[data-v-7ae85e3a] .uni-forms-item__label{position:absolute;left:-15px}uni-button[data-v-7ae85e3a]{margin-top:15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/register-by-email-825c75a7.css b/alpha/admin/unpackage/dist/build/h5/assets/register-by-email-825c75a7.css new file mode 100644 index 0000000000000000000000000000000000000000..7ed89bcf8878329d3cae4d99dd63057b79461e3f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/register-by-email-825c75a7.css @@ -0,0 +1 @@ +.input-box[data-v-6ac98dd5] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-6ac98dd5]{padding:0 1.875rem}.login-logo[data-v-6ac98dd5]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-6ac98dd5]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-6ac98dd5]{display:flex;justify-content:center}.login-logo uni-image[data-v-6ac98dd5]{width:60px;height:60px}.register-back[data-v-6ac98dd5]{display:none}uni-button[data-v-6ac98dd5]{padding-bottom:1px}}.uni-content uni-view[data-v-6ac98dd5]{box-sizing:border-box}.title[data-v-6ac98dd5]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-6ac98dd5]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-6ac98dd5] .uni-easyinput__content,.input-box[data-v-6ac98dd5]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-6ac98dd5]{color:#04498c;cursor:pointer}.uni-content[data-v-6ac98dd5] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-6ac98dd5]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-6ac98dd5]{height:auto!important}@media screen and (max-width: 690px){.uni-content[data-v-6ac98dd5]{margin-top:15px}}@media screen and (min-width: 690px){.uni-content[data-v-6ac98dd5]{padding:30px 40px;max-height:650px}.link-box[data-v-6ac98dd5]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.link[data-v-6ac98dd5]{font-size:12px}}.uni-content[data-v-6ac98dd5] .uni-forms-item__label{position:absolute;left:-15px}uni-button[data-v-6ac98dd5]{margin-top:15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/retention-883d6bd3.css b/alpha/admin/unpackage/dist/build/h5/assets/retention-883d6bd3.css new file mode 100644 index 0000000000000000000000000000000000000000..bf14668d259eb259f2bdc0a678dfa79475912ea8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/retention-883d6bd3.css @@ -0,0 +1 @@ +.flex[data-v-80313bba]{display:flex;flex-wrap:wrap;align-items:center}.label-text[data-v-80313bba]{font-size:14px;color:#666;margin:auto 5px auto 0}.line-bottom[data-v-80313bba]{border-bottom:2px solid #eee}.uni-stat-table-bg[data-v-80313bba]{background-color:#4e82d9;color:#fff} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/retention-c7cd26e8.css b/alpha/admin/unpackage/dist/build/h5/assets/retention-c7cd26e8.css new file mode 100644 index 0000000000000000000000000000000000000000..e9e78d6e13a0add841b015f5cce4f0b134126a46 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/retention-c7cd26e8.css @@ -0,0 +1 @@ +.flex[data-v-02223ba4]{display:flex;flex-wrap:wrap;align-items:center}.label-text[data-v-02223ba4]{font-size:14px;color:#666;margin:auto 5px auto 0}.line-bottom[data-v-02223ba4]{border-bottom:2px solid #eee}.uni-stat-table-bg[data-v-02223ba4]{background-color:#4e82d9;color:#fff} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/retrieve-bad3e0eb.css b/alpha/admin/unpackage/dist/build/h5/assets/retrieve-bad3e0eb.css new file mode 100644 index 0000000000000000000000000000000000000000..262d70ae5260f96af793bcb779c7a355e7d1b5d8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/retrieve-bad3e0eb.css @@ -0,0 +1 @@ +.input-box[data-v-332307ef] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-332307ef]{padding:0 1.875rem}.login-logo[data-v-332307ef]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-332307ef]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-332307ef]{display:flex;justify-content:center}.login-logo uni-image[data-v-332307ef]{width:60px;height:60px}.register-back[data-v-332307ef]{display:none}uni-button[data-v-332307ef]{padding-bottom:1px}}.uni-content uni-view[data-v-332307ef]{box-sizing:border-box}.title[data-v-332307ef]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-332307ef]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-332307ef] .uni-easyinput__content,.input-box[data-v-332307ef]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-332307ef]{color:#04498c;cursor:pointer}.uni-content[data-v-332307ef] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-332307ef]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-332307ef]{height:auto!important}@media screen and (max-width: 690px){.uni-content[data-v-332307ef]{margin-top:15px}}@media screen and (min-width: 690px){.uni-content[data-v-332307ef]{padding:30px 40px 40px;max-height:650px}.link-box[data-v-332307ef]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.link[data-v-332307ef]{font-size:12px}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/retrieve-by-email-ec76efa9.css b/alpha/admin/unpackage/dist/build/h5/assets/retrieve-by-email-ec76efa9.css new file mode 100644 index 0000000000000000000000000000000000000000..c3fc8f169a6205b5f32717a3af90f47e8c81d5e2 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/retrieve-by-email-ec76efa9.css @@ -0,0 +1 @@ +.input-box[data-v-b2bc532c] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-b2bc532c]{padding:0 1.875rem}.login-logo[data-v-b2bc532c]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-b2bc532c]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-b2bc532c]{display:flex;justify-content:center}.login-logo uni-image[data-v-b2bc532c]{width:60px;height:60px}.register-back[data-v-b2bc532c]{display:none}uni-button[data-v-b2bc532c]{padding-bottom:1px}}.uni-content uni-view[data-v-b2bc532c]{box-sizing:border-box}.title[data-v-b2bc532c]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-b2bc532c]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-b2bc532c] .uni-easyinput__content,.input-box[data-v-b2bc532c]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-b2bc532c]{color:#04498c;cursor:pointer}.uni-content[data-v-b2bc532c] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-b2bc532c]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-b2bc532c]{height:auto!important}@media screen and (max-width: 690px){.uni-content[data-v-b2bc532c]{margin-top:15px}}@media screen and (min-width: 690px){.uni-content[data-v-b2bc532c]{padding:30px 40px 40px;max-height:650px}.link-box[data-v-b2bc532c]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.link[data-v-b2bc532c]{font-size:12px}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/rotate-9f2e0410.svg b/alpha/admin/unpackage/dist/build/h5/assets/rotate-9f2e0410.svg new file mode 100644 index 0000000000000000000000000000000000000000..0143706ca7adea484ed38339980c2cc23559595e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/rotate-9f2e0410.svg @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/alpha/admin/unpackage/dist/build/h5/assets/scene-55119c9b.css b/alpha/admin/unpackage/dist/build/h5/assets/scene-55119c9b.css new file mode 100644 index 0000000000000000000000000000000000000000..cb1973596e10be0334cfbae7660873ba69618309 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/scene-55119c9b.css @@ -0,0 +1 @@ +.uni-stat-panel[data-v-ceafa36b]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/set-pwd-b173b497.css b/alpha/admin/unpackage/dist/build/h5/assets/set-pwd-b173b497.css new file mode 100644 index 0000000000000000000000000000000000000000..4c9a808077d741f669df6a4efba14c29516dcf8f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/set-pwd-b173b497.css @@ -0,0 +1 @@ +.input-box[data-v-48ed0c26] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-48ed0c26]{padding:0 1.875rem}.login-logo[data-v-48ed0c26]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-48ed0c26]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-48ed0c26]{display:flex;justify-content:center}.login-logo uni-image[data-v-48ed0c26]{width:60px;height:60px}.register-back[data-v-48ed0c26]{display:none}uni-button[data-v-48ed0c26]{padding-bottom:1px}}.uni-content uni-view[data-v-48ed0c26]{box-sizing:border-box}.title[data-v-48ed0c26]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-48ed0c26]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-48ed0c26] .uni-easyinput__content,.input-box[data-v-48ed0c26]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-48ed0c26]{color:#04498c;cursor:pointer}.uni-content[data-v-48ed0c26] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-48ed0c26]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-48ed0c26]{height:auto!important}.uni-btn[type=default][data-v-48ed0c26]{color:inherit!important}.uni-content[data-v-48ed0c26] .uni-forms-item{margin-bottom:10px}.popup-captcha[data-v-48ed0c26]{display:flex;padding:.625rem;background-color:#fff;border-radius:2px;flex-direction:column;position:relative}.popup-captcha .title[data-v-48ed0c26]{font-weight:400;padding:0 0 15px;color:#666}.popup-captcha .close[data-v-48ed0c26]{position:absolute;bottom:-40px;margin-left:-13px;left:50%}.popup-captcha .uni-btn[data-v-48ed0c26]{margin:0} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/stickiness-5e951bec.css b/alpha/admin/unpackage/dist/build/h5/assets/stickiness-5e951bec.css new file mode 100644 index 0000000000000000000000000000000000000000..4fa4fed12889f8a4c2c4bbee59de52d87d9d6ecc --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/stickiness-5e951bec.css @@ -0,0 +1 @@ +.flex[data-v-696af8be]{display:flex;flex-wrap:wrap;align-items:center}.label-text[data-v-696af8be]{font-size:14px;color:#666;margin:auto 5px auto 0}.line-bottom[data-v-696af8be]{border-bottom:2px solid #eee}.uni-stat-panel[data-v-696af8be]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/stickiness-73769afa.css b/alpha/admin/unpackage/dist/build/h5/assets/stickiness-73769afa.css new file mode 100644 index 0000000000000000000000000000000000000000..7bc5a5405ebbfb0539abca6b9dcd6d5aca5cef7d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/stickiness-73769afa.css @@ -0,0 +1 @@ +.flex[data-v-c4c976ab]{display:flex;flex-wrap:wrap;align-items:center}.label-text[data-v-c4c976ab]{font-size:14px;color:#666;margin:auto 5px auto 0}.line-bottom[data-v-c4c976ab]{border-bottom:2px solid #eee}.uni-stat-panel[data-v-c4c976ab]{box-shadow:unset;border-bottom:1px solid #eee;padding:0;margin:0 15px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/timeUtil.4078d62f.js b/alpha/admin/unpackage/dist/build/h5/assets/timeUtil.4078d62f.js new file mode 100644 index 0000000000000000000000000000000000000000..ce13c037cc2e021a072475ab00391e3c31f697b7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/timeUtil.4078d62f.js @@ -0,0 +1 @@ +var e={getDateObject:function(e){if(!e)return"";let t;return"string"!=typeof e||isNaN(e)||(e=Number(e)),"number"==typeof e?(10==e.toString().length&&(e*=1e3),t=new Date(e)):"object"==typeof e&&(t=new Date(e.getTime())),t},timeFormat:function(t,n="yyyy-MM-dd hh:mm:ss"){try{if(!t)return"";let a=e.getDateObject(t),g={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in g)new RegExp("("+e+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?g[e]:("00"+g[e]).substr((""+g[e]).length)));return n}catch(a){return time}},getDateInfo:function(t=new Date){let n=e.getDateObject(t),a=n.getFullYear()+"",g=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),r=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),m=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds(),s=n.getMilliseconds(),D=n.getDay(),h=Math.floor((n.getMonth()+3)/3);return{year:Number(a),month:Number(g),day:Number(o),hour:Number(r),minute:Number(i),second:Number(m),millisecond:Number(s),week:Number(D),quarter:Number(h)}},getOffsetStartAndEnd:function(t="day",n=0,a=new Date){let g,o,r=e.getDateObject(a);if("hour"===t){let t=36e5,a=e.getDateInfo(new Date(r.getTime()+1*t*n));g=new Date(`${a.year}/${a.month}/${a.day} ${a.hour}:00:00`).getTime(),o=new Date(`${a.year}/${a.month}/${a.day} ${a.hour}:00:00`).getTime()+(t-1)}else if("day"===t){let t=864e5,a=e.getDateInfo(new Date(r.getTime()+1*t*n));g=new Date(`${a.year}/${a.month}/${a.day}`).getTime(),o=new Date(`${a.year}/${a.month}/${a.day}`).getTime()+(t-1)}else if("week"===t){r.setDate(r.getDate()-r.getDay()+1+7*n);let t=e.getDateInfo(r);r.setDate(r.getDate()+7);let a=e.getDateInfo(r);g=new Date(`${t.year}/${t.month}/${t.day}`).getTime(),o=new Date(`${a.year}/${a.month}/${a.day}`).getTime()-1}else if("month"===t){let t=e.getDateInfo(r),a=t.month+n,i=t.year;a>12?(i+=Math.floor(a/12),a=Math.abs(a)%12):a<=0&&(i=i-1-Math.floor(Math.abs(a)/12),a=12-Math.abs(a)%12);let m=new Date(i,a,0).getDate();g=new Date(`${i}/${a}/1`).getTime(),o=new Date(`${i}/${a}/${m}`).getTime()+86399999}else if("quarter"===t){r.setMonth(r.getMonth()+3*n);let t=e.getDateInfo(r).month;[1,2,3].indexOf(t)>-1?t=1:[4,5,6].indexOf(t)>-1?t=4:[7,8,9].indexOf(t)>-1?t=7:[10,11,12].indexOf(t)>-1&&(t=10),r.setMonth(t-1);let a=e.getDateInfo(r);r.setMonth(r.getMonth()+3);let i=e.getDateInfo(r);g=new Date(`${a.year}/${a.month}/1`).getTime(),o=new Date(`${i.year}/${i.month}/1`).getTime()-1}else if("year"===t){let t=e.getDateInfo(r).year+n;g=new Date(`${t}/1/1`).getTime(),o=new Date(`${t}/12/31`).getTime()+86399999}return{startTime:g,endTime:o}}};export{e as t}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-173d2b94.ttf b/alpha/admin/unpackage/dist/build/h5/assets/uni-173d2b94.ttf new file mode 100644 index 0000000000000000000000000000000000000000..60a1968d08cc6056c70b5402b2effac43c6f96a3 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/assets/uni-173d2b94.ttf differ diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-captcha-ad333770.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-captcha-ad333770.css new file mode 100644 index 0000000000000000000000000000000000000000..2440b1d4e38026a87785c6717cfd3eb10660ee66 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-captcha-ad333770.css @@ -0,0 +1 @@ +.captcha-box[data-v-07444ffa]{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex:1}.captcha-img-box[data-v-07444ffa],.captcha[data-v-07444ffa]{height:44px;line-height:44px}.captcha-img-box[data-v-07444ffa]{position:relative;background-color:#fefae7}.captcha[data-v-07444ffa]{background-color:#f8f8f8;font-size:14px;flex:1;padding:0 .625rem;margin-left:.625rem;box-sizing:border-box}.captcha-img-box[data-v-07444ffa],.captcha-img[data-v-07444ffa],.loding[data-v-07444ffa]{height:44px!important;width:100px}.captcha-img[data-v-07444ffa]{cursor:pointer}.loding[data-v-07444ffa]{z-index:9;color:#bbb;position:absolute;text-align:center;line-height:45px;animation:rotate-07444ffa 1s linear infinite}.opacity[data-v-07444ffa]{opacity:.5}@keyframes rotate-07444ffa{0%{transform:rotate(0)}to{transform:rotate(360deg)}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-captcha.7a7d8040.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-captcha.7a7d8040.js new file mode 100644 index 0000000000000000000000000000000000000000..199e017c6171397266816d4135f8aaac544b170f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-captcha.7a7d8040.js @@ -0,0 +1 @@ +import{_ as a,s as e,L as t,f as s,A as c,g as o,o as l,c as n,w as i,a as p,b as h,z as u,m as g,i as d,M as m}from"./index-389238f5.js";const r=a({props:{modelValue:String,value:String,scene:{type:String,default:()=>""},focus:{type:Boolean,default:()=>!1}},computed:{val:{get(){return this.value||this.modelValue},set(a){this.$emit("update:modelValue",a)}}},data:()=>({focusCaptchaInput:!1,captchaBase64:"",loging:!1}),watch:{scene:{handler(a){a?this.getImageCaptcha(this.focus):e({title:"scene不能为空",icon:"none"})},immediate:!0}},methods:{getImageCaptcha(a=!0){this.loging=!0,a&&(this.val="",this.focusCaptchaInput=!0);t.importObject("uni-captcha-co",{customUI:!0}).getImageCaptcha({scene:this.scene}).then((a=>{this.captchaBase64=a.captchaBase64})).catch((a=>{e({title:a.message,icon:"none"})})).finally((a=>{this.loging=!1}))}}},[["render",function(a,e,t,r,f,B){const C=s(o("uni-icons"),c),I=g,x=d,y=m;return l(),n(x,{class:"captcha-box"},{default:i((()=>[p(x,{class:"captcha-img-box"},{default:i((()=>[f.loging?(l(),n(C,{key:0,class:"loding",size:"20px",color:"#BBB",type:"spinner-cycle"})):h("",!0),p(I,{class:u(["captcha-img",{opacity:f.loging}]),onClick:B.getImageCaptcha,src:f.captchaBase64,mode:"widthFix"},null,8,["class","onClick","src"])])),_:1}),p(y,{onBlur:e[0]||(e[0]=a=>f.focusCaptchaInput=!1),focus:f.focusCaptchaInput,type:"text",class:"captcha",inputBorder:!1,maxlength:"4",modelValue:B.val,"onUpdate:modelValue":e[1]||(e[1]=a=>B.val=a),placeholder:"请输入验证码"},null,8,["focus","modelValue"])])),_:1})}],["__scopeId","data-v-07444ffa"]]);export{r as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-card-0ea40861.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-card-0ea40861.css new file mode 100644 index 0000000000000000000000000000000000000000..be652bd5f80c51ded17ca5de18f08ce36fabd243 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-card-0ea40861.css @@ -0,0 +1 @@ +.show-stable[data-v-aef060cf]{position:absolute;padding:5px 10px;background-color:#303133;color:#fff;border-radius:4px;border:1px solid #e9e9eb;z-index:99999}.uni-card[data-v-b4135a35]{margin:10px;padding:0 8px;border-radius:4px;overflow:hidden;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;background-color:#fff;flex:1}.uni-card .uni-card__cover[data-v-b4135a35]{position:relative;margin-top:10px;flex-direction:row;overflow:hidden;border-radius:4px}.uni-card .uni-card__cover .uni-card__cover-image[data-v-b4135a35]{flex:1;vertical-align:middle}.uni-card .uni-card__header[data-v-b4135a35]{display:flex;border-bottom:1px #DCDCDC solid;flex-direction:row;align-items:center;padding:10px;overflow:hidden}.uni-card .uni-card__header .uni-card__header-box[data-v-b4135a35]{display:flex;flex:1;flex-direction:row;align-items:center;overflow:hidden}.uni-card .uni-card__header .uni-card__header-avatar[data-v-b4135a35]{width:40px;height:40px;overflow:hidden;border-radius:5px;margin-right:10px}.uni-card .uni-card__header .uni-card__header-avatar .uni-card__header-avatar-image[data-v-b4135a35]{flex:1;width:40px;height:40px}.uni-card .uni-card__header .uni-card__header-content[data-v-b4135a35]{display:flex;flex-direction:column;justify-content:center;flex:1;overflow:hidden}.uni-card .uni-card__header .uni-card__header-content .uni-card__header-content-title[data-v-b4135a35]{font-size:15px;color:#3a3a3a}.uni-card .uni-card__header .uni-card__header-content .uni-card__header-content-subtitle[data-v-b4135a35]{font-size:12px;margin-top:5px;color:#909399}.uni-card .uni-card__header .uni-card__header-extra[data-v-b4135a35]{line-height:12px}.uni-card .uni-card__header .uni-card__header-extra .uni-card__header-extra-text[data-v-b4135a35]{font-size:12px;color:#909399}.uni-card .uni-card__content[data-v-b4135a35]{padding:10px;font-size:14px;color:#6a6a6a;line-height:22px}.uni-card .uni-card__actions[data-v-b4135a35]{font-size:12px}.uni-card--border[data-v-b4135a35]{border:1px solid #DCDCDC}.uni-card--shadow[data-v-b4135a35]{position:relative;box-shadow:0 1px 8px 1px rgba(165,165,165,.2)}.uni-card--full[data-v-b4135a35]{margin:0;border-left-width:0;border-radius:0}.uni-card--full[data-v-b4135a35]:after{border-radius:0}.uni-ellipsis[data-v-b4135a35]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-card.0addf51a.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-card.0addf51a.js new file mode 100644 index 0000000000000000000000000000000000000000..73880bbb19e479f97fe17d055608e35e1aa53501 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-card.0addf51a.js @@ -0,0 +1 @@ +import{_ as e,f as t,A as a,g as s,o as l,c as n,w as i,a as o,I as d,d as r,t as c,b as u,p,i as _,C as f,z as h,m as y}from"./index-389238f5.js";const g=e({props:{content:String,top:{type:[Number,String],default:-60},left:{type:[Number,String],default:-100},width:{type:[Number,String],default:200}},data:()=>({showStableInfo:!1,arrowStyle:{}}),methods:{mouseenter(e){this.showStableInfo=!0}}},[["render",function(e,f,h,y,g,b){const m=t(s("uni-icons"),a),x=p,S=_;return l(),n(S,{style:{position:"relative"}},{default:i((()=>[o(m,{onMouseenter:b.mouseenter,onMouseleave:f[0]||(f[0]=e=>g.showStableInfo=!1),style:{padding:"0 10px",color:"#a8a8a8",cursor:"pointer"},type:"info"},null,8,["onMouseenter"]),g.showStableInfo?(l(),n(S,{key:0,class:"show-stable",style:d({top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`})},{default:i((()=>[o(x,null,{default:i((()=>[r(c(h.content),1)])),_:1})])),_:1},8,["style"])):u("",!0)])),_:1})}],["__scopeId","data-v-aef060cf"]]);const b=e({name:"UniCard",emits:["click"],props:{title:{type:String,default:""},subTitle:{type:String,default:""},padding:{type:String,default:"10px"},margin:{type:String,default:"15px"},spacing:{type:String,default:"0 10px"},extra:{type:String,default:""},cover:{type:String,default:""},thumbnail:{type:String,default:""},isFull:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!0},shadow:{type:String,default:"0px 0px 3px 1px rgba(0, 0, 0, 0.08)"},border:{type:Boolean,default:!0}},methods:{onClick(e){this.$emit("click",e)}}},[["render",function(e,t,a,s,g,b){const m=y,x=_,S=p;return l(),n(x,{class:h(["uni-card",{"uni-card--full":a.isFull,"uni-card--shadow":a.isShadow,"uni-card--border":a.border}]),style:d({margin:a.isFull?0:a.margin,padding:a.spacing,"box-shadow":a.isShadow?a.shadow:""})},{default:i((()=>[f(e.$slots,"cover",{},(()=>[a.cover?(l(),n(x,{key:0,class:"uni-card__cover"},{default:i((()=>[o(m,{class:"uni-card__cover-image",mode:"widthFix",onClick:t[0]||(t[0]=e=>b.onClick("cover")),src:a.cover},null,8,["src"])])),_:1})):u("",!0)]),!0),f(e.$slots,"title",{},(()=>[a.title||a.extra?(l(),n(x,{key:0,class:"uni-card__header"},{default:i((()=>[o(x,{class:"uni-card__header-box",onClick:t[1]||(t[1]=e=>b.onClick("title"))},{default:i((()=>[a.thumbnail?(l(),n(x,{key:0,class:"uni-card__header-avatar"},{default:i((()=>[o(m,{class:"uni-card__header-avatar-image",src:a.thumbnail,mode:"aspectFit"},null,8,["src"])])),_:1})):u("",!0),o(x,{class:"uni-card__header-content"},{default:i((()=>[o(S,{class:"uni-card__header-content-title uni-ellipsis"},{default:i((()=>[r(c(a.title),1)])),_:1}),a.title&&a.subTitle?(l(),n(S,{key:0,class:"uni-card__header-content-subtitle uni-ellipsis"},{default:i((()=>[r(c(a.subTitle),1)])),_:1})):u("",!0)])),_:1})])),_:1}),o(x,{class:"uni-card__header-extra",onClick:t[2]||(t[2]=e=>b.onClick("extra"))},{default:i((()=>[o(S,{class:"uni-card__header-extra-text"},{default:i((()=>[r(c(a.extra),1)])),_:1})])),_:1})])),_:1})):u("",!0)]),!0),o(x,{class:"uni-card__content",style:d({padding:a.padding}),onClick:t[3]||(t[3]=e=>b.onClick("content"))},{default:i((()=>[f(e.$slots,"default",{},void 0,!0)])),_:3},8,["style"]),o(x,{class:"uni-card__actions",onClick:t[4]||(t[4]=e=>b.onClick("actions"))},{default:i((()=>[f(e.$slots,"actions",{},void 0,!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-b4135a35"]]);export{g as _,b as a}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-data-checkbox-a63315ae.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-checkbox-a63315ae.css new file mode 100644 index 0000000000000000000000000000000000000000..e123f0e9b06c97b081dfbaec00c3f7293746384c --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-checkbox-a63315ae.css @@ -0,0 +1 @@ +.uni-data-loading[data-v-56cecf7b]{display:flex;flex-direction:row;justify-content:center;align-items:center;height:36px;padding-left:10px;color:#999}.uni-data-checklist[data-v-56cecf7b]{position:relative;z-index:0;flex:1}.uni-data-checklist .checklist-group[data-v-56cecf7b]{display:flex;flex-direction:row;flex-wrap:wrap}.uni-data-checklist .checklist-group.is-list[data-v-56cecf7b]{flex-direction:column}.uni-data-checklist .checklist-group .checklist-box[data-v-56cecf7b]{display:flex;flex-direction:row;align-items:center;position:relative;margin:5px 25px 5px 0}.uni-data-checklist .checklist-group .checklist-box .hidden[data-v-56cecf7b]{position:absolute;opacity:0}.uni-data-checklist .checklist-group .checklist-box .checklist-content[data-v-56cecf7b]{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:space-between}.uni-data-checklist .checklist-group .checklist-box .checklist-content .checklist-text[data-v-56cecf7b]{font-size:14px;color:#666;margin-left:5px;line-height:14px}.uni-data-checklist .checklist-group .checklist-box .checklist-content .checkobx__list[data-v-56cecf7b]{border-right-width:1px;border-right-color:#007aff;border-right-style:solid;border-bottom-width:1px;border-bottom-color:#007aff;border-bottom-style:solid;height:12px;width:6px;left:-5px;transform-origin:center;transform:rotate(45deg);opacity:0}.uni-data-checklist .checklist-group .checklist-box .checkbox__inner[data-v-56cecf7b]{flex-shrink:0;box-sizing:border-box;position:relative;width:16px;height:16px;border:1px solid #DCDFE6;border-radius:4px;background-color:#fff;z-index:1}.uni-data-checklist .checklist-group .checklist-box .checkbox__inner .checkbox__inner-icon[data-v-56cecf7b]{position:absolute;top:1px;left:5px;height:8px;width:4px;border-right-width:1px;border-right-color:#fff;border-right-style:solid;border-bottom-width:1px;border-bottom-color:#fff;border-bottom-style:solid;opacity:0;transform-origin:center;transform:rotate(40deg)}.uni-data-checklist .checklist-group .checklist-box .radio__inner[data-v-56cecf7b]{display:flex;flex-shrink:0;box-sizing:border-box;justify-content:center;align-items:center;position:relative;width:16px;height:16px;border:1px solid #DCDFE6;border-radius:16px;background-color:#fff;z-index:1}.uni-data-checklist .checklist-group .checklist-box .radio__inner .radio__inner-icon[data-v-56cecf7b]{width:8px;height:8px;border-radius:10px;opacity:0}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable[data-v-56cecf7b]{cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable .checkbox__inner[data-v-56cecf7b]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable .radio__inner[data-v-56cecf7b]{background-color:#f2f6fc;border-color:#dcdfe6}.uni-data-checklist .checklist-group .checklist-box.is--default.is-disable .checklist-text[data-v-56cecf7b]{color:#999}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner[data-v-56cecf7b]{border-color:#2979ff;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner .checkbox__inner-icon[data-v-56cecf7b]{opacity:1;transform:rotate(45deg)}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .radio__inner[data-v-56cecf7b]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .radio__inner .radio__inner-icon[data-v-56cecf7b]{opacity:1;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text[data-v-56cecf7b]{color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable .checkbox__inner[data-v-56cecf7b],.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable .checklist-text[data-v-56cecf7b],.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked.is-disable .radio__inner[data-v-56cecf7b]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--button[data-v-56cecf7b]{margin-right:10px;padding:5px 10px;border:1px #DCDFE6 solid;border-radius:3px;transition:border-color .2s}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable[data-v-56cecf7b]{cursor:not-allowed;border:1px #eee solid;opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable .checkbox__inner[data-v-56cecf7b],.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable .radio__inner[data-v-56cecf7b]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--button.is-disable .checklist-text[data-v-56cecf7b]{color:#999}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked[data-v-56cecf7b]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checkbox__inner[data-v-56cecf7b]{border-color:#2979ff;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checkbox__inner .checkbox__inner-icon[data-v-56cecf7b]{opacity:1;transform:rotate(45deg)}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .radio__inner[data-v-56cecf7b]{border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .radio__inner .radio__inner-icon[data-v-56cecf7b]{opacity:1;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked .checklist-text[data-v-56cecf7b]{color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--button.is-checked.is-disable[data-v-56cecf7b]{opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--tag[data-v-56cecf7b]{margin-right:10px;padding:5px 10px;border:1px #DCDFE6 solid;border-radius:3px;background-color:#f5f5f5}.uni-data-checklist .checklist-group .checklist-box.is--tag .checklist-text[data-v-56cecf7b]{margin:0;color:#666}.uni-data-checklist .checklist-group .checklist-box.is--tag.is-disable[data-v-56cecf7b]{cursor:not-allowed;opacity:.4}.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked[data-v-56cecf7b]{background-color:#2979ff;border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--tag.is-checked .checklist-text[data-v-56cecf7b]{color:#fff}.uni-data-checklist .checklist-group .checklist-box.is--list[data-v-56cecf7b]{display:flex;padding:10px 15px 10px 0;margin:0}.uni-data-checklist .checklist-group .checklist-box.is--list.is-list-border[data-v-56cecf7b]{border-top:1px #eee solid}.uni-data-checklist .checklist-group .checklist-box.is--list.is-disable[data-v-56cecf7b]{cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--list.is-disable .checkbox__inner[data-v-56cecf7b]{background-color:#f2f6fc;border-color:#dcdfe6;cursor:not-allowed}.uni-data-checklist .checklist-group .checklist-box.is--list.is-disable .checklist-text[data-v-56cecf7b]{color:#999}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checkbox__inner[data-v-56cecf7b]{border-color:#2979ff;background-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checkbox__inner .checkbox__inner-icon[data-v-56cecf7b]{opacity:1;transform:rotate(45deg)}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .radio__inner .radio__inner-icon[data-v-56cecf7b]{opacity:1}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-text[data-v-56cecf7b]{color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked .checklist-content .checkobx__list[data-v-56cecf7b]{opacity:1;border-color:#2979ff}.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable .checkbox__inner[data-v-56cecf7b],.uni-data-checklist .checklist-group .checklist-box.is--list.is-checked.is-disable .checklist-text[data-v-56cecf7b]{opacity:.4} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-data-checkbox.b1dd95fe.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-checkbox.b1dd95fe.js new file mode 100644 index 0000000000000000000000000000000000000000..17e998d6c0361204e006ec9fa40f1149b30155bf --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-checkbox.b1dd95fe.js @@ -0,0 +1 @@ +import{L as e,_ as t,f as s,g as l,o as a,c as i,w as o,d,t as c,e as n,F as r,z as h,r as u,I as m,a as f,b as y,p as g,i as p,U as b,V as x,W as k,av as v,aw as D}from"./index-389238f5.js";import{_}from"./uni-load-more.67944ae0.js";const C=t({name:"uniDataChecklist",mixins:[e.mixinDatacom||{}],emits:["input","update:modelValue","change"],props:{mode:{type:String,default:"default"},multiple:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>""},modelValue:{type:[Array,String,Number],default:()=>""},localdata:{type:Array,default:()=>[]},min:{type:[Number,String],default:""},max:{type:[Number,String],default:""},wrap:{type:Boolean,default:!1},icon:{type:String,default:"left"},selectedColor:{type:String,default:""},selectedTextColor:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},disabled:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},watch:{localdata:{handler(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},deep:!0},mixinDatacomResData(e){this.range=e,this.dataList=this.getDataList(this.getSelectedValue(e))},value(e){this.dataList=this.getDataList(e)},modelValue(e){this.dataList=this.getDataList(e)}},data:()=>({dataList:[],range:[],contentText:{contentdown:"查看更多",contentrefresh:"加载中",contentnomore:"没有更多"},isLocal:!0,styles:{selectedColor:"#2979ff",selectedTextColor:"#666"},isTop:0}),computed:{dataValue(){return""===this.value?this.modelValue:(this.modelValue,this.value)}},created(){this.localdata&&0!==this.localdata.length?(this.isLocal=!0,this.range=this.localdata,this.dataList=this.getDataList(this.getSelectedValue(this.range))):this.collection&&(this.isLocal=!1,this.loadData())},methods:{loadData(){this.mixinDatacomGet().then((e=>{this.mixinDatacomResData=e.result.data,0===this.mixinDatacomResData.length?(this.isLocal=!1,this.mixinDatacomErrorMessage=this.emptyText):this.isLocal=!0})).catch((e=>{this.mixinDatacomErrorMessage=e.message}))},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t},chagne(e){const t=e.detail.value;let s={value:[],data:[]};if(this.multiple)this.range.forEach((e=>{t.includes(e[this.map.value]+"")&&(s.value.push(e[this.map.value]),s.data.push(e))}));else{const e=this.range.find((e=>e[this.map.value]+""===t));e&&(s={value:e[this.map.value],data:e})}this.$emit("input",s.value),this.$emit("update:modelValue",s.value),this.$emit("change",{detail:s}),this.multiple?this.dataList=this.getDataList(s.value,!0):this.dataList=this.getDataList(s.value)},getDataList(e){let t=JSON.parse(JSON.stringify(this.range)),s=[];return this.multiple&&(Array.isArray(e)||(e=[])),t.forEach(((t,l)=>{if(t.disabled=t.disable||t.disabled||!1,this.multiple)if(e.length>0){let s=e.find((e=>e===t[this.map.value]));t.selected=void 0!==s}else t.selected=!1;else t.selected=e===t[this.map.value];s.push(t)})),this.setRange(s)},setRange(e){let t=e.filter((e=>e.selected)),s=Number(this.min)||0,l=Number(this.max)||"";return e.forEach(((a,i)=>{if(this.multiple){if(t.length<=s){void 0!==t.find((e=>e[this.map.value]===a[this.map.value]))&&(a.disabled=!0)}if(t.length>=l&&""!==l){void 0===t.find((e=>e[this.map.value]===a[this.map.value]))&&(a.disabled=!0)}}this.setStyles(a,i),e[i]=a})),e},setStyles(e,t){e.styleBackgroud=this.setStyleBackgroud(e),e.styleIcon=this.setStyleIcon(e),e.styleIconText=this.setStyleIconText(e),e.styleRightIcon=this.setStyleRightIcon(e)},getSelectedValue(e){if(!this.multiple)return this.dataValue;let t=[];return e.forEach((e=>{e.selected&&t.push(e[this.map.value])})),this.dataValue.length>0?this.dataValue:t},setStyleBackgroud(e){let t={},s=this.selectedColor?this.selectedColor:"#2979ff";this.selectedColor&&("list"!==this.mode&&(t["border-color"]=e.selected?s:"#DCDFE6"),"tag"===this.mode&&(t["background-color"]=e.selected?s:"#f5f5f5"));let l="";for(let a in t)l+=`${a}:${t[a]};`;return l},setStyleIcon(e){let t={},s="";if(this.selectedColor){let s=this.selectedColor?this.selectedColor:"#2979ff";t["background-color"]=e.selected?s:"#fff",t["border-color"]=e.selected?s:"#DCDFE6",!e.selected&&e.disabled&&(t["background-color"]="#F2F6FC",t["border-color"]=e.selected?s:"#DCDFE6")}for(let l in t)s+=`${l}:${t[l]};`;return s},setStyleIconText(e){let t={},s="";if(this.selectedColor){let s=this.selectedColor?this.selectedColor:"#2979ff";"tag"===this.mode?t.color=e.selected?this.selectedTextColor?this.selectedTextColor:"#fff":"#666":t.color=e.selected?this.selectedTextColor?this.selectedTextColor:s:"#666",!e.selected&&e.disabled&&(t.color="#999")}for(let l in t)s+=`${l}:${t[l]};`;return s},setStyleRightIcon(e){let t={},s="";"list"===this.mode&&(t["border-color"]=e.selected?this.styles.selectedColor:"#DCDFE6");for(let l in t)s+=`${l}:${t[l]};`;return s}}},[["render",function(e,t,C,S,L,T){const I=s(l("uni-load-more"),_),V=g,$=p,E=b,B=x,F=k,w=v,R=D;return a(),i($,{class:"uni-data-checklist",style:m({"margin-top":L.isTop+"px"})},{default:o((()=>[L.isLocal?(a(),n(r,{key:1},[C.multiple?(a(),i(F,{key:0,class:h(["checklist-group",{"is-list":"list"===C.mode||C.wrap}]),onChange:T.chagne},{default:o((()=>[(a(!0),n(r,null,u(L.dataList,((e,t)=>(a(),i(B,{class:h(["checklist-box",["is--"+C.mode,e.selected?"is-checked":"",C.disabled||e.disabled?"is-disable":"",0!==t&&"list"===C.mode?"is-list-border":""]]),style:m(e.styleBackgroud),key:t},{default:o((()=>[f(E,{class:"hidden",hidden:"",disabled:C.disabled||!!e.disabled,value:e[C.map.value]+"",checked:e.selected},null,8,["disabled","value","checked"]),"tag"!==C.mode&&"list"!==C.mode||"list"===C.mode&&"left"===C.icon?(a(),i($,{key:0,class:"checkbox__inner",style:m(e.styleIcon)},{default:o((()=>[f($,{class:"checkbox__inner-icon"})])),_:2},1032,["style"])):y("",!0),f($,{class:h(["checklist-content",{"list-content":"list"===C.mode&&"left"===C.icon}])},{default:o((()=>[f(V,{class:"checklist-text",style:m(e.styleIconText)},{default:o((()=>[d(c(e[C.map.text]),1)])),_:2},1032,["style"]),"list"===C.mode&&"right"===C.icon?(a(),i($,{key:0,class:"checkobx__list",style:m(e.styleBackgroud)},null,8,["style"])):y("",!0)])),_:2},1032,["class"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["class","onChange"])):(a(),i(R,{key:1,class:h(["checklist-group",{"is-list":"list"===C.mode,"is-wrap":C.wrap}]),onChange:T.chagne},{default:o((()=>[(a(!0),n(r,null,u(L.dataList,((e,t)=>(a(),i(B,{class:h(["checklist-box",["is--"+C.mode,e.selected?"is-checked":"",C.disabled||e.disabled?"is-disable":"",0!==t&&"list"===C.mode?"is-list-border":""]]),style:m(e.styleBackgroud),key:t},{default:o((()=>[f(w,{class:"hidden",hidden:"",disabled:C.disabled||e.disabled,value:e[C.map.value]+"",checked:e.selected},null,8,["disabled","value","checked"]),"tag"!==C.mode&&"list"!==C.mode||"list"===C.mode&&"left"===C.icon?(a(),i($,{key:0,class:"radio__inner",style:m(e.styleBackgroud)},{default:o((()=>[f($,{class:"radio__inner-icon",style:m(e.styleIcon)},null,8,["style"])])),_:2},1032,["style"])):y("",!0),f($,{class:h(["checklist-content",{"list-content":"list"===C.mode&&"left"===C.icon}])},{default:o((()=>[f(V,{class:"checklist-text",style:m(e.styleIconText)},{default:o((()=>[d(c(e[C.map.text]),1)])),_:2},1032,["style"]),"list"===C.mode&&"right"===C.icon?(a(),i($,{key:0,style:m(e.styleRightIcon),class:"checkobx__list"},null,8,["style"])):y("",!0)])),_:2},1032,["class"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["class","onChange"]))],64)):(a(),i($,{key:0,class:"uni-data-loading"},{default:o((()=>[e.mixinDatacomErrorMessage?(a(),i(V,{key:1},{default:o((()=>[d(c(e.mixinDatacomErrorMessage),1)])),_:1})):(a(),i(I,{key:0,status:"loading",iconType:"snow",iconSize:18,"content-text":L.contentText},null,8,["content-text"]))])),_:1}))])),_:1},8,["style"])}],["__scopeId","data-v-56cecf7b"]]);export{C as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-data-select-85c277ad.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-select-85c277ad.css new file mode 100644 index 0000000000000000000000000000000000000000..4ab8abf16326687196850783ff77fece8b16ddf1 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-select-85c277ad.css @@ -0,0 +1 @@ +@media screen and (max-width: 500px){.hide-on-phone[data-v-1772d1d5]{display:none}}.uni-stat__select[data-v-1772d1d5]{display:flex;align-items:center;cursor:pointer;width:100%;flex:1;box-sizing:border-box}.uni-stat-box[data-v-1772d1d5],.uni-stat__actived[data-v-1772d1d5]{width:100%;flex:1}.uni-label-text[data-v-1772d1d5]{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 5px auto 0}.uni-select[data-v-1772d1d5]{font-size:14px;border:1px solid #e5e5e5;box-sizing:border-box;border-radius:4px;padding:0 5px 0 10px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;border-bottom:solid 1px #e5e5e5;width:100%;flex:1;height:35px}.uni-select--disabled[data-v-1772d1d5]{background-color:#f5f7fa;cursor:not-allowed}.uni-select__label[data-v-1772d1d5]{font-size:16px;height:35px;padding-right:10px;color:#909399}.uni-select__input-box[data-v-1772d1d5]{height:35px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input[data-v-1772d1d5]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac[data-v-1772d1d5]{font-size:14px;color:#909399}.uni-select__selector[data-v-1772d1d5]{box-sizing:border-box;position:absolute;top:calc(100% + 12px);left:0;width:100%;background-color:#fff;border:1px solid #EBEEF5;border-radius:6px;box-shadow:0 2px 12px rgba(0,0,0,.1);z-index:3;padding:4px 0}.uni-select__selector-scroll[data-v-1772d1d5]{max-height:200px;box-sizing:border-box}.uni-select__selector-empty[data-v-1772d1d5],.uni-select__selector-item[data-v-1772d1d5]{display:flex;cursor:pointer;line-height:35px;font-size:14px;text-align:center;padding:0 10px}.uni-select__selector-item[data-v-1772d1d5]:hover{background-color:#f9f9f9}.uni-select__selector-empty[data-v-1772d1d5]:last-child,.uni-select__selector-item[data-v-1772d1d5]:last-child{border-bottom:none}.uni-select__selector__disabled[data-v-1772d1d5]{opacity:.4;cursor:default}.uni-popper__arrow[data-v-1772d1d5],.uni-popper__arrow[data-v-1772d1d5]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-1772d1d5]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-1772d1d5]:after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-select__input-text[data-v-1772d1d5]{width:100%;color:#3a3a3a;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}.uni-select__input-placeholder[data-v-1772d1d5]{color:#6a6a6a;font-size:12px}.uni-select--mask[data-v-1772d1d5]{position:fixed;top:0;bottom:0;right:0;left:0} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-data-select.8acadad5.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-select.8acadad5.js new file mode 100644 index 0000000000000000000000000000000000000000..d64c5609b1507ef4076608e89dc55adca21fba6e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-data-select.8acadad5.js @@ -0,0 +1 @@ +import{L as e,ak as t,v as a,_ as l,f as s,A as i,g as c,o,c as n,w as r,e as h,t as u,b as d,a as m,z as p,d as f,F as y,r as _,i as g,p as b,S as C}from"./index-389238f5.js";const D=l({name:"uni-stat-select",mixins:[e.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout((()=>{e.apply(this,l)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("change",e),this.$emit("input",e),this.$emit("update:modelValue",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:l}=e;if(l=l?`(${l})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${l}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(e=this.getCurrentCacheKey()){return(t(this.cacheKey)||{})[e]},setCache(e,l=this.getCurrentCacheKey()){let s=t(this.cacheKey)||{};s[l]=e,a(this.cacheKey,s)},removeCache(e=this.getCurrentCacheKey()){let l=t(this.cacheKey)||{};delete l[e],a(this.cacheKey,l)}}},[["render",function(e,t,a,l,D,x){const k=g,v=s(c("uni-icons"),i),S=b,w=C;return o(),n(k,{class:"uni-stat__select"},{default:r((()=>[a.label?(o(),h("span",{key:0,class:"uni-label-text hide-on-phone"},u(a.label+":"),1)):d("",!0),m(k,{class:p(["uni-stat-box",{"uni-stat__actived":D.current}])},{default:r((()=>[m(k,{class:p(["uni-select",{"uni-select--disabled":a.disabled}])},{default:r((()=>[m(k,{class:"uni-select__input-box",onClick:x.toggleSelector},{default:r((()=>[D.current?(o(),n(k,{key:0,class:"uni-select__input-text"},{default:r((()=>[f(u(D.current),1)])),_:1})):(o(),n(k,{key:1,class:"uni-select__input-text uni-select__input-placeholder"},{default:r((()=>[f(u(x.typePlaceholder),1)])),_:1})),D.current&&a.clear?(o(),n(v,{key:2,type:"clear",color:"#c0c4cc",size:"24",onClick:x.clearVal},null,8,["onClick"])):(o(),n(v,{key:3,type:D.showSelector?"top":"bottom",size:"14",color:"#999"},null,8,["type"]))])),_:1},8,["onClick"]),D.showSelector?(o(),n(k,{key:0,class:"uni-select--mask",onClick:x.toggleSelector},null,8,["onClick"])):d("",!0),D.showSelector?(o(),n(k,{key:1,class:"uni-select__selector"},{default:r((()=>[m(k,{class:"uni-popper__arrow"}),m(w,{"scroll-y":"true",class:"uni-select__selector-scroll"},{default:r((()=>[0===D.mixinDatacomResData.length?(o(),n(k,{key:0,class:"uni-select__selector-empty"},{default:r((()=>[m(S,null,{default:r((()=>[f(u(a.emptyTips),1)])),_:1})])),_:1})):(o(!0),h(y,{key:1},_(D.mixinDatacomResData,((e,t)=>(o(),n(k,{class:"uni-select__selector-item",key:t,onClick:t=>x.change(e)},{default:r((()=>[m(S,{class:p({"uni-select__selector__disabled":e.disable})},{default:r((()=>[f(u(x.formatItemName(e)),1)])),_:2},1032,["class"])])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})):d("",!0)])),_:1},8,["class"])])),_:1},8,["class"])])),_:1})}],["__scopeId","data-v-1772d1d5"]]);export{D as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-dateformat.b1c4ea95.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-dateformat.b1c4ea95.js new file mode 100644 index 0000000000000000000000000000000000000000..620d01b509df54fd95db1c605529c650ea04e512 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-dateformat.b1c4ea95.js @@ -0,0 +1 @@ +import{_ as e,aq as t,o as r,c as a,w as s,d as h,t as f,p as o}from"./index-389238f5.js";const d=e({name:"uniDateformat",props:{date:{type:[Object,String,Number],default:()=>"-"},locale:{type:String,default:"zh"},threshold:{type:Array,default:()=>[0,0]},format:{type:String,default:"yyyy/MM/dd hh:mm:ss"},refreshRate:{type:[Number,String],default:0}},data:()=>({refreshMark:0}),computed:{dateShow(){return this.refreshMark,t(this.date,{locale:this.locale,threshold:this.threshold,format:this.format})}},watch:{refreshRate:{handler(){this.setAutoRefresh()},immediate:!0}},methods:{refresh(){this.refreshMark++},setAutoRefresh(){clearInterval(this.refreshInterval),this.refreshRate&&(this.refreshInterval=setInterval((()=>{this.refresh()}),parseInt(this.refreshRate)))}}},[["render",function(e,t,d,l,i,n){const u=o;return r(),a(u,null,{default:s((()=>[h(f(n.dateShow),1)])),_:1})}]]);export{d as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-easyinput-cfd2af8c.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-easyinput-cfd2af8c.css new file mode 100644 index 0000000000000000000000000000000000000000..beec5909c05bd77d38b72a75219a9a091f96c849 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-easyinput-cfd2af8c.css @@ -0,0 +1 @@ +.uni-easyinput[data-v-a08716d2]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-a08716d2]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-a08716d2]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__placeholder-class[data-v-a08716d2]{color:#999;font-size:12px}.is-textarea[data-v-a08716d2]{align-items:flex-start}.is-textarea-icon[data-v-a08716d2]{margin-top:5px}.uni-easyinput__content-textarea[data-v-a08716d2]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-a08716d2]{padding-left:10px}.content-clear-icon[data-v-a08716d2]{padding:0 5px}.label-icon[data-v-a08716d2]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-a08716d2]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #F0F0F0;border-radius:4px}.uni-error-message[data-v-a08716d2]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-a08716d2]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-a08716d2]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-a08716d2]{color:#f29e99}.uni-easyinput--border[data-v-a08716d2]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-a08716d2]{padding-bottom:0}.is-first-border[data-v-a08716d2]{border:none}.is-disabled[data-v-a08716d2]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-a08716d2]{color:#d5d5d5;font-size:12px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-easyinput.a1fc57c1.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-easyinput.a1fc57c1.js new file mode 100644 index 0000000000000000000000000000000000000000..209beea47fe6cd1cc3a55ae4eb3cc6cb1d72c782 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-easyinput.a1fc57c1.js @@ -0,0 +1 @@ +import{_ as e,f as t,A as s,g as o,o as i,c as l,w as a,a as r,z as n,I as c,b as u,e as h,F as d,C as p,Q as f,M as m,i as y}from"./index-389238f5.js";function g(e){let t="";for(let s in e){t+=`${s}:${e[s]};`}return t}const b=e({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let s in e)e[s]&&(t+=`${s} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return g({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return g({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=e},modelValue(e){this.val=e},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=null},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("focus",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(e,g,b,S,x,C){const w=t(o("uni-icons"),s),k=f,v=m,I=y;return i(),l(I,{class:n(["uni-easyinput",{"uni-easyinput-error":C.msg}]),style:c(C.boxStyle)},{default:a((()=>[r(I,{class:n(["uni-easyinput__content",C.inputContentClass]),style:c(C.inputContentStyle)},{default:a((()=>[b.prefixIcon?(i(),l(w,{key:0,class:"content-clear-icon",type:b.prefixIcon,color:"#c0c4cc",onClick:g[0]||(g[0]=e=>C.onClickIcon("prefix")),size:"22"},null,8,["type"])):u("",!0),"textarea"===b.type?(i(),l(k,{key:1,class:n(["uni-easyinput__content-textarea",{"input-padding":b.inputBorder}]),name:b.name,value:x.val,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,disabled:b.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:C.inputMaxlength,focus:x.focused,autoHeight:b.autoHeight,"cursor-spacing":b.cursorSpacing,onInput:C.onInput,onBlur:C._Blur,onFocus:C._Focus,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["class","name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])):(i(),l(v,{key:2,type:"password"===b.type?"text":b.type,class:"uni-easyinput__content-input",style:c(C.inputStyle),name:b.name,value:x.val,password:!x.showPassword&&"password"===b.type,placeholder:b.placeholder,placeholderStyle:b.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:b.disabled,maxlength:C.inputMaxlength,focus:x.focused,confirmType:b.confirmType,"cursor-spacing":b.cursorSpacing,onFocus:C._Focus,onBlur:C._Blur,onInput:C.onInput,onConfirm:C.onConfirm,onKeyboardheightchange:C.onkeyboardheightchange},null,8,["type","style","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","onFocus","onBlur","onInput","onConfirm","onKeyboardheightchange"])),"password"===b.type&&b.passwordIcon?(i(),h(d,{key:3},[C.isVal?(i(),l(w,{key:0,class:n(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:x.showPassword?"eye-slash-filled":"eye-filled",size:22,color:x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onEyes},null,8,["class","type","color","onClick"])):u("",!0)],64)):b.suffixIcon?(i(),h(d,{key:4},[b.suffixIcon?(i(),l(w,{key:0,class:"content-clear-icon",type:b.suffixIcon,color:"#c0c4cc",onClick:g[1]||(g[1]=e=>C.onClickIcon("suffix")),size:"22"},null,8,["type"])):u("",!0)],64)):(i(),h(d,{key:5},[b.clearable&&C.isVal&&!b.disabled&&"textarea"!==b.type?(i(),l(w,{key:0,class:n(["content-clear-icon",{"is-textarea-icon":"textarea"===b.type}]),type:"clear",size:b.clearSize,color:C.msg?"#dd524d":x.focusShow?b.primaryColor:"#c0c4cc",onClick:C.onClear},null,8,["class","size","color","onClick"])):u("",!0)],64)),p(e.$slots,"right",{},void 0,!0)])),_:3},8,["class","style"])])),_:3},8,["class","style"])}],["__scopeId","data-v-a08716d2"]]);export{b as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-file-picker-208fe2fe.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-file-picker-208fe2fe.css new file mode 100644 index 0000000000000000000000000000000000000000..e3fd918243bdf40349497428fccc12a980e381e3 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-file-picker-208fe2fe.css @@ -0,0 +1 @@ +.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-5d376bd5]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-5d376bd5]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-5d376bd5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-5d376bd5]{position:relative}.uni-file-picker__item[data-v-5d376bd5]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-5d376bd5]{border-top:1px #eee solid}.files__name[data-v-5d376bd5]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-5d376bd5]{position:static;background-color:initial}.is-list-card[data-v-5d376bd5]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-5d376bd5]{width:40px;height:40px;margin-right:10px}.header-image[data-v-5d376bd5]{width:100%;height:100%}.is-text-box[data-v-5d376bd5]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-5d376bd5]{width:25px;height:25px;margin-left:5px}.rotate[data-v-5d376bd5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-5d376bd5]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0px;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-5d376bd5]{width:15px;height:1px;background-color:#333}@media all and (min-width: 768px){.uni-file-picker__files[data-v-5d376bd5]{max-width:375px}}.uni-file-picker[data-v-c59319f7]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-c59319f7]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-c59319f7]{font-size:14px;color:#333}.file-count[data-v-c59319f7]{font-size:14px;color:#999}.is-add[data-v-c59319f7]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-c59319f7]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-c59319f7]{position:absolute;transform:rotate(90deg)} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-file-picker.1b864550.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-file-picker.1b864550.js new file mode 100644 index 0000000000000000000000000000000000000000..b240f52c34ca1e74b99961c98595322ce27d7fd8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-file-picker.1b864550.js @@ -0,0 +1 @@ +import{L as e,a0 as t,ax as s,ay as i,s as l,a6 as o,_ as a,az as r,o as n,c as d,w as h,e as u,F as c,r as p,I as f,a as m,D as y,b as g,d as b,C as F,m as x,i as _,aA as k,z as w,t as v,B as I,p as P,q as T}from"./index-389238f5.js";const S="chooseAndUploadFile:fail";function $(e,t){return e.tempFiles.forEach(((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function C(t,s=5,i){const l=(t=JSON.parse(JSON.stringify(t))).length;let o=0,a=this;return new Promise((r=>{for(;o=l)return void(!t.find((e=>!e.url&&!e.errMsg))&&r(t));const d=t[s],h=a.files.findIndex((e=>e.uuid===d.uuid));d.url="",delete d.errMsg,e.uploadFile({filePath:d.path,cloudPath:d.cloudPath,fileType:d.fileType,onUploadProgress:e=>{e.index=h,i&&i(e)}}).then((e=>{d.url=e.fileID,d.index=h,s{d.errMsg=e.errMsg||e.message,d.index=h,s{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function M(e={type:"all"}){return"image"===e.type?L(function(e){const{count:s,sizeType:i=["original","compressed"],sourceType:l,extension:o}=e;return new Promise(((e,a)=>{t({count:s,sizeType:i,sourceType:l,extension:o,success(t){e($(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",S)})}})}))}(e),e):"video"===e.type?L(function(e){const{camera:t,compressed:i,maxDuration:l,sourceType:o,extension:a}=e;return new Promise(((e,r)=>{s({camera:t,compressed:i,maxDuration:l,sourceType:o,extension:a,success(t){const{tempFilePath:s,duration:i,size:l,height:o,width:a}=t;e($({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:l,type:t.tempFile&&t.tempFile.type||"",width:a,height:o,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){r({errMsg:e.errMsg.replace("chooseVideo:fail",S)})}})}))}(e),e):L(function(e){const{count:t,extension:s}=e;return new Promise(((e,l)=>{let o=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return l({errMsg:S+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:s,success(t){e($(t))},fail(e){l({errMsg:e.errMsg.replace("chooseFile:fail",S)})}})}))}(e),e)}const O=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},E=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},j=async(e,t="image")=>{const s=O(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(l=e.path,new Promise(((e,t)=>{o({src:l,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var l;return i};const B=a({name:"uniFilePicker",components:{uploadImage:a({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let l in s)i+=`${l}:${s[l]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let s="";for(let i in t)s+=`${i}:${t[i]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{s.push(e.url)})),r({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,i,l,o){const a=x,r=_,w=k;return n(),d(r,{class:"uni-file-picker__container"},{default:h((()=>[(n(!0),u(c,null,p(s.filesList,((e,t)=>(n(),d(r,{class:"file-picker__box",key:t,style:f(o.boxStyle)},{default:h((()=>[m(r,{class:"file-picker__box-content",style:f(o.borderStyle)},{default:h((()=>[m(a,{class:"file-image",src:e.url,mode:"aspectFill",onClick:y((s=>o.prviewImage(e,t)),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(n(),d(r,{key:0,class:"icon-del-box",onClick:y((e=>o.delFile(t)),["stop"])},{default:h((()=>[m(r,{class:"icon-del"}),m(r,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):g("",!0),e.progress&&100!==e.progress||0===e.progress?(n(),d(r,{key:1,class:"file-picker__progress"},{default:h((()=>[m(w,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):g("",!0),e.errMsg?(n(),d(r,{key:2,class:"file-picker__mask",onClick:y((s=>o.uploadFiles(e,t)),["stop"])},{default:h((()=>[b(" 点击重试 ")])),_:2},1032,["onClick"])):g("",!0)])),_:2},1032,["style"])])),_:2},1032,["style"])))),128)),s.filesList.length[m(r,{class:"file-picker__box-content is-add",style:f(o.borderStyle),onClick:o.choose},{default:h((()=>[F(e.$slots,"default",{},(()=>[m(r,{class:"icon-add"}),m(r,{class:"icon-add rotate"})]),!0)])),_:3},8,["style","onClick"])])),_:3},8,["style"])):g("",!0)])),_:3})}],["__scopeId","data-v-86b162f5"]]),uploadFile:a({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else s.border="none";let i="";for(let l in s)i+=`${l}:${s[l]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,i=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let s="";for(let i in e)s+=`${i}:${e[i]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,i,l,o){const a=_,r=k;return n(),d(a,{class:"uni-file-picker__files"},{default:h((()=>[s.readonly?g("",!0):(n(),d(a,{key:0,class:"files-button",onClick:o.choose},{default:h((()=>[F(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])),o.list.length>0?(n(),d(a,{key:1,class:"uni-file-picker__lists is-text-box",style:f(o.borderStyle)},{default:h((()=>[(n(!0),u(c,null,p(o.list,((e,t)=>(n(),d(a,{class:w(["uni-file-picker__lists-box",{"files-border":0!==t&&o.styles.dividline}]),key:t,style:f(0!==t&&o.styles.dividline&&o.borderLineStyle)},{default:h((()=>[m(a,{class:"uni-file-picker__item"},{default:h((()=>[m(a,{class:"files__name"},{default:h((()=>[b(v(e.name),1)])),_:2},1024),s.delIcon&&!s.readonly?(n(),d(a,{key:0,class:"icon-del-box icon-files",onClick:e=>o.delFile(t)},{default:h((()=>[m(a,{class:"icon-del icon-files"}),m(a,{class:"icon-del rotate"})])),_:2},1032,["onClick"])):g("",!0)])),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(n(),d(a,{key:0,class:"file-picker__progress"},{default:h((()=>[m(r,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])),_:2},1024)):g("",!0),"error"===e.status?(n(),d(a,{key:1,class:"file-picker__mask",onClick:y((s=>o.uploadFiles(e,t)),["stop"])},{default:h((()=>[b(" 点击重试 ")])),_:2},1032,["onClick"])):g("",!0)])),_:2},1032,["class","style"])))),128))])),_:1},8,["style"])):g("",!0)])),_:3})}],["__scopeId","data-v-5d376bd5"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]}},data:()=>({files:[],localValue:[]}),watch:{modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){e.config&&e.config.provider||(this.noSpace=!0,e.chooseAndUploadFile=M),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?l({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const t=E(this.fileExtname);e.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:t.length>0?t:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{console.log("选择失败",e)}))},async chooseFileCallback(e){const t=E(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:i}=((e,t)=>{let s=[],i=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const l=O(e.name).ext.toLowerCase();-1!==t.indexOf(l)&&(i.push(e),s.push(e.path))})),i.length!==e.tempFiles.length&&l({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-i.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:s,files:i}):{filePaths:s,files:i}})(e,t);t&&t.length>0||(s=e.tempFilePaths,i=e.tempFiles);let o=[];for(let l=0;l{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{console.log(e)}))},async setSuccessAndError(e,t){let s=[],i=[],l=[],o=[];for(let a=0;ae.uuid===t.uuid)):t.index;if(-1===r||!this.files)break;if("request:fail"===t.errMsg)this.files[r].url=t.path,this.files[r].status="error",this.files[r].errMsg=t.errMsg,i.push(this.files[r]),o.push(this.files[r].url);else{this.files[r].errMsg="",this.files[r].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[r].url=await this.getTempFileURL(t.url):this.files[r].url=t.url,this.files[r].status="success",this.files[r].progress+=1,s.push(this.files[r]),l.push(this.files[r].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:l})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:o})},setProgress(e,t,s){this.files.length;const i=Math.round(100*e.loaded/e.total);let l=t;s||(l=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==l&&this.files[l]&&(this.files[l].progress=i-1,this.$emit("progress",{index:l,progress:parseInt(i),tempFile:this.files[l]}))},delFile(e){this.$emit("delete",{tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url})})),t},async getTempFileURL(t){t={fileList:[].concat(t)};return(await e.getTempFileURL(t)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,i,l,o){const a=P,r=_,u=I("upload-image"),c=T,p=I("upload-file");return n(),d(r,{class:"uni-file-picker"},{default:h((()=>[s.title?(n(),d(r,{key:0,class:"uni-file-picker__header"},{default:h((()=>[m(a,{class:"file-title"},{default:h((()=>[b(v(s.title),1)])),_:1}),m(a,{class:"file-count"},{default:h((()=>[b(v(o.filesList.length)+"/"+v(o.limitLength),1)])),_:1})])),_:1})):g("",!0),"image"===s.fileMediatype&&"grid"===o.showType?(n(),d(u,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":o.filesList,limit:o.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:h((()=>[F(e.$slots,"default",{},(()=>[m(r,{class:"is-add"},{default:h((()=>[m(r,{class:"icon-add"}),m(r,{class:"icon-add rotate"})])),_:1})]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):g("",!0),"image"!==s.fileMediatype||"grid"!==o.showType?(n(),d(p,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":o.filesList,showType:o.showType,delIcon:s.delIcon,onUploadFiles:o.uploadFiles,onChoose:o.choose,onDelFile:o.delFile},{default:h((()=>[F(e.$slots,"default",{},(()=>[m(c,{type:"primary",size:"mini"},{default:h((()=>[b("选择文件")])),_:1})]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):g("",!0)])),_:3})}],["__scopeId","data-v-c59319f7"]]);export{B as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-e3b0c442.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-e3b0c442.css new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-item-3ba8e15f.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-item-3ba8e15f.css new file mode 100644 index 0000000000000000000000000000000000000000..5e946167d7bab28677a2072803ba149b87250e59 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-item-3ba8e15f.css @@ -0,0 +1 @@ +.uni-forms-item[data-v-540b8126]{position:relative;display:flex;margin-bottom:22px;flex-direction:row}.uni-forms-item__label[data-v-540b8126]{display:flex;flex-direction:row;align-items:center;text-align:left;font-size:14px;color:#606266;height:36px;padding:0 12px 0 0;vertical-align:middle;flex-shrink:0;box-sizing:border-box}.uni-forms-item__label.no-label[data-v-540b8126]{padding:0}.uni-forms-item__content[data-v-540b8126]{position:relative;font-size:14px;flex:1;box-sizing:border-box;flex-direction:row}.uni-forms-item .uni-forms-item__nuve-content[data-v-540b8126]{display:flex;flex-direction:column;flex:1}.uni-forms-item__error[data-v-540b8126]{color:#f56c6c;font-size:12px;line-height:1;padding-top:4px;position:absolute;top:100%;left:0;transition:transform .3s;transform:translateY(-100%);opacity:0}.uni-forms-item__error .error-text[data-v-540b8126]{color:#f56c6c;font-size:12px}.uni-forms-item__error.msg--active[data-v-540b8126]{opacity:1;transform:translateY(0)}.uni-forms-item.is-direction-left[data-v-540b8126]{flex-direction:row}.uni-forms-item.is-direction-top[data-v-540b8126]{flex-direction:column}.uni-forms-item.is-direction-top .uni-forms-item__label[data-v-540b8126]{padding:0 0 8px;line-height:1.5715;text-align:left;white-space:initial}.uni-forms-item .is-required[data-v-540b8126]{color:#dd524d;font-weight:700}.uni-forms-item--border[data-v-540b8126]{margin-bottom:0;padding:10px 0;border-top:1px #eee solid}.uni-forms-item--border .uni-forms-item__content[data-v-540b8126]{flex-direction:column;justify-content:flex-start;align-items:flex-start}.uni-forms-item--border .uni-forms-item__content .uni-forms-item__error[data-v-540b8126]{position:relative;top:5px;left:0;padding-top:0}.is-first-border[data-v-540b8126]{border:none} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-item.69698491.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-item.69698491.js new file mode 100644 index 0000000000000000000000000000000000000000..9da6db599a079ace3122258485e85b8780613d14 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms-item.69698491.js @@ -0,0 +1 @@ +import{_ as t,s as e,y as i,o as s,c as r,w as l,C as a,a as o,z as n,I as u,d as h,b as d,t as m,p as f,i as c}from"./index-389238f5.js";const b=t({name:"uniFormsItem",options:{virtualHost:!0},provide(){return{uniFormItem:this}},inject:{form:{from:"uniForm",default:null}},props:{rules:{type:Array,default:()=>null},name:{type:[String,Array],default:""},required:{type:Boolean,default:!1},label:{type:String,default:""},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:""},errorMessage:{type:[String,Boolean],default:""},leftIcon:String,iconColor:{type:String,default:"#606266"}},data:()=>({errMsg:"",userRules:null,localLabelAlign:"left",localLabelWidth:"65px",localLabelPos:"left",border:!1,isFirstBorder:!1}),computed:{msg(){return this.errorMessage||this.errMsg}},watch:{"form.formRules"(t){this.init()},"form.labelWidth"(t){this.localLabelWidth=this._labelWidthUnit(t)},"form.labelPosition"(t){this.localLabelPos=this._labelPosition()},"form.labelAlign"(t){}},created(){this.init(!0),this.name&&this.form&&this.$watch((()=>this.form._getDataValue(this.name,this.form.localData)),((t,e)=>{if(!this.form._isEqual(t,e)){const e=this.itemSetValue(t);this.onFieldChange(e,!1)}}),{immediate:!1})},unmounted(){this.__isUnmounted=!0,this.unInit()},methods:{setRules(t=null){this.userRules=t,this.init(!1)},setValue(){},async onFieldChange(t,s=!0){const{formData:r,localData:l,errShowType:a,validateCheck:o,validateTrigger:n,_isRequiredField:u,_realName:h}=this.form,d=h(this.name);t||(t=this.form.formData[d]);const m=this.itemRules.rules&&this.itemRules.rules.length;if(!this.validator||!m||0===m)return;const f=u(this.itemRules.rules||[]);let c=null;return"bind"===n||s?(c=await this.validator.validateUpdate({[d]:t},r),f||void 0!==t&&""!==t||(c=null),c&&c.errorMessage?("undertext"===a&&(this.errMsg=c?c.errorMessage:""),"toast"===a&&e({title:c.errorMessage||"校验错误",icon:"none"}),"modal"===a&&i({title:"提示",content:c.errorMessage||"校验错误"})):this.errMsg="",o(c||null)):this.errMsg="",c||null},init(t=!1){const{validator:e,formRules:i,childrens:s,formData:r,localData:l,_realName:a,labelWidth:o,_getDataValue:n,_setDataValue:u}=this.form||{};if(this.localLabelAlign=this._justifyContent(),this.localLabelWidth=this._labelWidthUnit(o),this.localLabelPos=this._labelPosition(),this.form&&t&&s.push(this),!e||!i)return;this.form.isFirstBorder||(this.form.isFirstBorder=!0,this.isFirstBorder=!0),this.group&&(this.group.isFirstBorder||(this.group.isFirstBorder=!0,this.isFirstBorder=!0)),this.border=this.form.border;const h=a(this.name),d=this.userRules||this.rules;"object"==typeof i&&d&&(i[h]={rules:d},e.updateSchema(i));const m=i[h]||{};this.itemRules=m,this.validator=e,this.itemSetValue(n(this.name,l))},unInit(){if(this.form){const{childrens:t,formData:e,_realName:i}=this.form;t.forEach(((t,s)=>{t===this&&(this.form.childrens.splice(s,1),delete e[i(t.name)])}))}},itemSetValue(t){const e=this.form._realName(this.name),i=this.itemRules.rules||[],s=this.form._getValue(e,t,i);return this.form._setDataValue(e,this.form.formData,s),s},clearValidate(){this.errMsg=""},_isRequired(){return this.required},_justifyContent(){if(this.form){const{labelAlign:t}=this.form;let e=this.labelAlign?this.labelAlign:t;if("left"===e)return"flex-start";if("center"===e)return"center";if("right"===e)return"flex-end"}return"flex-start"},_labelWidthUnit(t){return this.num2px(this.labelWidth?this.labelWidth:t||(this.label?65:"auto"))},_labelPosition(){return this.form&&this.form.labelPosition||"left"},isTrigger:(t,e,i)=>"submit"!==t&&t?"bind":void 0===t?"bind"!==e?e?"submit":""===i?"bind":"submit":"bind":"submit",num2px:t=>"number"==typeof t?`${t}px`:t}},[["render",function(t,e,i,b,g,_){const p=f,y=c;return s(),r(y,{class:n(["uni-forms-item",["is-direction-"+g.localLabelPos,g.border?"uni-forms-item--border":"",g.border&&g.isFirstBorder?"is-first-border":""]])},{default:l((()=>[a(t.$slots,"label",{},(()=>[o(y,{class:n(["uni-forms-item__label",{"no-label":!i.label&&!i.required}]),style:u({width:g.localLabelWidth,justifyContent:g.localLabelAlign})},{default:l((()=>[i.required?(s(),r(p,{key:0,class:"is-required"},{default:l((()=>[h("*")])),_:1})):d("",!0),o(p,null,{default:l((()=>[h(m(i.label),1)])),_:1})])),_:1},8,["class","style"])]),!0),o(y,{class:"uni-forms-item__content"},{default:l((()=>[a(t.$slots,"default",{},void 0,!0),o(y,{class:n(["uni-forms-item__error",{"msg--active":_.msg}])},{default:l((()=>[o(p,null,{default:l((()=>[h(m(_.msg),1)])),_:1})])),_:1},8,["class"])])),_:3})])),_:3},8,["class"])}],["__scopeId","data-v-540b8126"]]);export{b as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-forms.bc4bcf6e.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms.bc4bcf6e.js new file mode 100644 index 0000000000000000000000000000000000000000..a88c3e1428f18815baa28068694fca8d430d1c25 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-forms.bc4bcf6e.js @@ -0,0 +1 @@ +import{_ as e,an as t,o as r,c as a,w as n,a as i,C as l,ao as s,i as u}from"./index-389238f5.js";var o={email:/^\S+?@\S+?\.\S+?$/,idcard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i")};const m={int:"integer",bool:"boolean",double:"number",long:"number",password:"string"};function d(e,t=""){["label"].forEach((t=>{void 0===e[t]&&(e[t]="")}));let r=t;for(let a in e){let t=new RegExp("{"+a+"}");r=r.replace(t,e[a])}return r}const f={integer:e=>f.number(e)&&parseInt(e,10)===e,string:e=>"string"==typeof e,number:e=>!isNaN(e)&&"number"==typeof e,boolean:function(e){return"boolean"==typeof e},float:function(e){return f.number(e)&&!f.integer(e)},array:e=>Array.isArray(e),object:e=>"object"==typeof e&&!f.array(e),date:e=>e instanceof Date,timestamp(e){return!(!this.integer(e)||Math.abs(e).toString().length>16)},file:e=>"string"==typeof e.url,email:e=>"string"==typeof e&&!!e.match(o.email)&&e.length<255,url:e=>"string"==typeof e&&!!e.match(o.url),pattern(e,t){try{return new RegExp(e).test(t)}catch(r){return!1}},method:e=>"function"==typeof e,idcard:e=>"string"==typeof e&&!!e.match(o.idcard),"url-https"(e){return this.url(e)&&e.startsWith("https://")},"url-scheme":e=>e.startsWith("://"),"url-web":e=>!1};class c{constructor(e){this._message=e}async validateRule(e,t,r,a,n){var i=null;let l=t.rules;if(l.findIndex((e=>e.required))<0){if(null==r)return i;if("string"==typeof r&&!r.length)return i}var s=this._message;if(void 0===l)return s.default;for(var u=0;u{l=e}));(l||"string"==typeof s&&s||!1===s)&&(i=this._getMessage(e,l||s,n))}catch(l){i=this._getMessage(e,l.message,n)}return i}_getMessage(e,t,r){return d(e,t||e.errorMessage||this._message[r]||t.default)}_getValidateType(e){var t="";return e.required?t="required":e.format?t="format":e.arrayType?t="arrayTypeFormat":e.range?t="range":void 0!==e.maximum||void 0!==e.minimum?t="rangeNumber":void 0!==e.maxLength||void 0!==e.minLength?t="rangeLength":e.pattern?t="pattern":e.validateFunction&&(t="validateFunction"),t}}const h={required:(e,t,r)=>e.required&&function(e,t){return null==e||"string"==typeof e&&!e||!(!Array.isArray(e)||e.length)||"object"===t&&!Object.keys(e).length}(t,e.format||typeof t)?d(e,e.errorMessage||r.required):null,range(e,t,r){const{range:a,errorMessage:n}=e;let i=new Array(a.length);for(let s=0;s-1&&(l=!0),l?null:d(e,n||r.enum)},rangeNumber(e,t,r){if(!f.number(t))return d(e,e.errorMessage||r.pattern.mismatch);let{minimum:a,maximum:n,exclusiveMinimum:i,exclusiveMaximum:l}=e,s=i?t<=a:t=n:t>n;return void 0!==a&&s?d(e,e.errorMessage||r.number[i?"exclusiveMinimum":"minimum"]):void 0!==n&&u?d(e,e.errorMessage||r.number[l?"exclusiveMaximum":"maximum"]):void 0!==a&&void 0!==n&&(s||u)?d(e,e.errorMessage||r.number.range):null},rangeLength(e,t,r){if(!f.string(t)&&!f.array(t))return d(e,e.errorMessage||r.pattern.mismatch);let a=e.minLength,n=e.maxLength,i=t.length;return void 0!==a&&in?d(e,e.errorMessage||r.length.maxLength):void 0!==a&&void 0!==n&&(in)?d(e,e.errorMessage||r.length.range):null},pattern:(e,t,r)=>f.pattern(e.pattern,t)?null:d(e,e.errorMessage||r.pattern.mismatch),format(e,t,r){var a=Object.keys(f),n=m[e.format]?m[e.format]:e.format||e.arrayType;return a.indexOf(n)>-1&&!f[n](t)?d(e,e.errorMessage||r.typeError):null},arrayTypeFormat(e,t,r){if(!Array.isArray(t))return d(e,e.errorMessage||r.typeError);for(let a=0;ar.indexOf(e)<0));return[{key:"invalid",errorMessage:d({field:JSON.stringify(a)},g.message.TAG+g.message.defaultInvalid)}]}}g.message=new function(){return{TAG:"",default:"验证错误",defaultInvalid:"提交的字段{field}在数据库中并不存在",validateFunction:"验证无效",required:"{label}必填",enum:"{label}超出范围",timestamp:"{label}格式无效",whitespace:"{label}不能为空",typeError:"{label}类型无效",date:{format:"{label}日期{value}格式无效",parse:"{label}日期无法解析,{value}无效",invalid:"{label}日期{value}无效"},length:{minLength:"{label}长度不能少于{minLength}",maxLength:"{label}长度不能超过{maxLength}",range:"{label}必须介于{minLength}和{maxLength}之间"},number:{minimum:"{label}不能小于{minimum}",maximum:"{label}不能大于{maximum}",exclusiveMinimum:"{label}不能小于等于{minimum}",exclusiveMaximum:"{label}不能大于等于{maximum}",range:"{label}必须介于{minimum}and{maximum}之间"},pattern:{mismatch:"{label}格式不匹配"}}};const p=(e,t,r)=>{const a=r.find((e=>{return e.format&&("int"===(t=e.format)||"double"===t||"number"===t||"timestamp"===t);var t})),n=r.find((e=>e.format&&"boolean"===e.format||"bool"===e.format));return a&&(t=t||0===t?M(Number(t))?Number(t):t:null),n&&(t=!!w(t)&&t),t},b=(e,t)=>S(t,e),y=(e,t={})=>{const r=_(e);if("object"==typeof r&&Array.isArray(r)&&r.length>1){return r.reduce(((e,t)=>e+`#${t}`),"_formdata_")}return r[0]||e},v=e=>{let t=e.replace("_formdata_#","");return t=t.split("#").map((e=>M(e)?Number(e):e)),t},x=(e,t,r)=>("object"!=typeof e||_(t).reduce(((e,t,a,n)=>a===n.length-1?(e[t]=r,null):(t in e||(e[t]=/^[0-9]{1,}$/.test(n[a+1])?[]:{}),e[t])),e),e);function _(e){return Array.isArray(e)?e:e.replace(/\[/g,".").replace(/\]/g,"").split(".")}const S=(e,t,r="undefined")=>{let a=_(t).reduce(((e,t)=>(e||{})[t]),e);return a&&void 0===a?r:a},M=e=>!isNaN(Number(e)),w=e=>"boolean"==typeof e;const k=e({name:"uniForms",emits:["validate","submit"],options:{virtualHost:!0},props:{value:{type:Object,default:()=>null},modelValue:{type:Object,default:()=>null},model:{type:Object,default:()=>null},rules:{type:Object,default:()=>({})},errShowType:{type:String,default:"undertext"},validateTrigger:{type:String,default:"submit"},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:""},labelAlign:{type:String,default:"left"},border:{type:Boolean,default:!1}},provide(){return{uniForm:this}},data:()=>({formData:{},formRules:{}}),computed:{localData(){const e=this.model||this.modelValue||this.value;return e?(t=e,JSON.parse(JSON.stringify(t))):{};var t}},watch:{rules:{handler:function(e,t){this.setRules(e)},deep:!0,immediate:!0}},created(){t().$vm.$.appContext.config.globalProperties.binddata||(t().$vm.$.appContext.config.globalProperties.binddata=function(e,t,r){if(r)this.$refs[r].setValue(e,t);else{let r;for(let e in this.$refs){const t=this.$refs[e];if(t&&t.$options&&"uniForms"===t.$options.name){r=t;break}}if(!r)return console.error("当前 uni-froms 组件缺少 ref 属性");r.setValue(e,t)}}),this.childrens=[],this.inputChildrens=[],this.setRules(this.rules)},methods:{setRules(e){this.formRules=Object.assign({},this.formRules,e),this.validator=new g(e)},setValue(e,t){let r=this.childrens.find((t=>t.name===e));return r?(this.formData[e]=p(0,t,this.formRules[e]&&this.formRules[e].rules||[]),r.onFieldChange(this.formData[e])):null},validate(e,t){return this.checkAll(this.formData,e,t)},validateField(e=[],t){e=[].concat(e);let r={};return this.childrens.forEach((t=>{const a=y(t.name);-1!==e.indexOf(a)&&(r=Object.assign({},r,{[a]:this.formData[a]}))})),this.checkAll(r,[],t)},clearValidate(e=[]){e=[].concat(e),this.childrens.forEach((t=>{if(0===e.length)t.errMsg="";else{const r=y(t.name);-1!==e.indexOf(r)&&(t.errMsg="")}}))},submit(e,t,r){for(let a in this.dataValue){this.childrens.find((e=>e.name===a))&&void 0===this.formData[a]&&(this.formData[a]=this._getValue(a,this.dataValue[a]))}return r||console.warn("submit 方法即将废弃,请使用validate方法代替!"),this.checkAll(this.formData,e,t,"submit")},async checkAll(e,t,r,a){if(!this.validator)return;let n,i=[];for(let o in e){const e=this.childrens.find((e=>y(e.name)===o));e&&i.push(e)}r||"function"!=typeof t||(r=t),!r&&"function"!=typeof r&&Promise&&(n=new Promise(((e,t)=>{r=function(r,a){r?t(r):e(a)}})));let l=[],s=JSON.parse(JSON.stringify(e));for(let o in i){const e=i[o];let t=y(e.name);const r=await e.onFieldChange(s[t]);if(r&&(l.push(r),"toast"===this.errShowType||"modal"===this.errShowType))break}Array.isArray(l)&&0===l.length&&(l=null),Array.isArray(t)&&t.forEach((e=>{let t=y(e),r=b(e,this.localData);void 0!==r&&(s[t]=r)})),"submit"===a?this.$emit("submit",{detail:{value:s,errors:l}}):this.$emit("validate",l);let u={};return u=((e={},t)=>{let r=JSON.parse(JSON.stringify(e)),a={};for(let n in r){let e=v(n);x(a,e,r[n])}return a})(s,this.name),r&&"function"==typeof r&&r(l,u),n&&r?n:null},validateCheck(e){this.$emit("validate",e)},_getValue:p,_isRequiredField:e=>{let t=!1;for(let r=0;r(t[e]=r,r||""),_getDataValue:b,_realName:y,_isRealName:e=>/^_formdata_#*/.test(e),_isEqual:(e,t)=>{if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;var r=toString.call(e);if(r!==toString.call(t))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}if("[object Object]"==r){var a=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(a.length!=n.length)return!1;for(var i=0;i[i(c,null,{default:n((()=>[l(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})}],["__scopeId","data-v-7b66846a"]]);export{k as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-agreements-2a2e04b7.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-agreements-2a2e04b7.css new file mode 100644 index 0000000000000000000000000000000000000000..ea9a77b2b9a7b50faaa679a9a68eb7e8e18c89d4 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-agreements-2a2e04b7.css @@ -0,0 +1 @@ +uni-view[data-v-2709ff10]{display:flex;box-sizing:border-box;flex-direction:column}.root[data-v-2709ff10]{flex-direction:row;align-items:center;font-size:12px;color:#8a8f8b}.checkbox-box[data-v-2709ff10],.uni-label-pointer[data-v-2709ff10]{align-items:center;display:flex;flex-direction:row}.item[data-v-2709ff10]{flex-direction:row}.text[data-v-2709ff10]{line-height:26px}.agreement[data-v-2709ff10]{color:#04498c;cursor:pointer}.checkbox-box[data-v-2709ff10] .uni-checkbox-input{border-radius:100%}.checkbox-box[data-v-2709ff10] .uni-checkbox-input.uni-checkbox-input-checked{border-color:#2979ff;color:#fff!important;background-color:#2979ff}.content[data-v-2709ff10]{flex-wrap:wrap;flex-direction:row}.root[data-v-2709ff10] .uni-popup__error{color:#333} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-agreements.0414ff30.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-agreements.0414ff30.js new file mode 100644 index 0000000000000000000000000000000000000000..568ccc347b6894987328b9e997b28a0985dde557 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-agreements.0414ff30.js @@ -0,0 +1 @@ +import{_ as e,aa as t,n as s,f as a,g as n,a5 as r,o as l,c as i,w as o,e as p,F as u,a as c,d as g,r as d,t as m,b as f,U as h,p as A,V as _,W as k,i as x}from"./index-389238f5.js";import{_ as y}from"./uni-popup-dialog.39d6dc6f.js";let v=()=>console.log("为定义");const C=e({name:"uni-agreements",computed:{agreements(){if(!t.agreements)return[];let{serviceUrl:e,privacyUrl:s}=t.agreements;return[{url:e,title:"用户服务协议"},{url:s,title:"隐私政策条款"}]}},props:{scope:{type:String,default:()=>"register"}},methods:{popupConfirm(){this.isAgree=!0,v()},popup(e){this.needPopupAgreements=!0,this.$nextTick((()=>{e&&(v=e),this.$refs.popupAgreement.open()}))},navigateTo({url:e,title:t}){s({url:"/uni_modules/uni-id-pages/pages/common/webview/webview?url="+e+"&title="+t,success:e=>{},fail:()=>{},complete:()=>{}})},hasAnd:(e,t)=>e.length-1>t,setAgree(e){this.isAgree=!this.isAgree,this.$emit("setAgree",this.isAgree)}},created(){var e,s;this.needAgreements=((null==(s=null==(e=t)?void 0:e.agreements)?void 0:s.scope)||[]).includes(this.scope)},data:()=>({isAgree:!1,needAgreements:!0,needPopupAgreements:!1})},[["render",function(e,t,s,v,C,b){const w=h,T=A,P=_,U=k,$=x,j=a(n("uni-popup-dialog"),y),F=a(n("uni-popup"),r);return b.agreements.length?(l(),i($,{key:0,class:"root"},{default:o((()=>[C.needAgreements?(l(),p(u,{key:0},[c(U,{onChange:b.setAgree},{default:o((()=>[c(P,{class:"checkbox-box"},{default:o((()=>[c(w,{checked:C.isAgree,style:{transform:"scale(0.5)","margin-right":"-6px"}},null,8,["checked"]),c(T,{class:"text"},{default:o((()=>[g("同意")])),_:1})])),_:1})])),_:1},8,["onChange"]),c($,{class:"content"},{default:o((()=>[(l(!0),p(u,null,d(b.agreements,((e,t)=>(l(),i($,{class:"item",key:t},{default:o((()=>[c(T,{class:"agreement text",onClick:t=>b.navigateTo(e)},{default:o((()=>[g(m(e.title),1)])),_:2},1032,["onClick"]),b.hasAnd(b.agreements,t)?(l(),i(T,{key:0,class:"text and",space:"nbsp"},{default:o((()=>[g(" 和 ")])),_:1})):f("",!0)])),_:2},1024)))),128))])),_:1})],64)):f("",!0),C.needAgreements||C.needPopupAgreements?(l(),i(F,{key:1,ref:"popupAgreement",type:"center"},{default:o((()=>[c(j,{confirmText:"同意",onConfirm:b.popupConfirm},{default:o((()=>[c($,{class:"content"},{default:o((()=>[c(T,{class:"text"},{default:o((()=>[g("请先阅读并同意")])),_:1}),(l(!0),p(u,null,d(b.agreements,((e,t)=>(l(),i($,{class:"item",key:t},{default:o((()=>[c(T,{class:"agreement text",onClick:t=>b.navigateTo(e)},{default:o((()=>[g(m(e.title),1)])),_:2},1032,["onClick"]),b.hasAnd(b.agreements,t)?(l(),i(T,{key:0,class:"text and",space:"nbsp"},{default:o((()=>[g(" 和 ")])),_:1})):f("",!0)])),_:2},1024)))),128))])),_:1})])),_:1},8,["onConfirm"])])),_:1},512)):f("",!0)])),_:1})):f("",!0)}],["__scopeId","data-v-2709ff10"]]);export{C as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-email-form-04bad1f7.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-email-form-04bad1f7.css new file mode 100644 index 0000000000000000000000000000000000000000..399428c5df0492acdcfc569bee3c0c945aa98aa0 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-email-form-04bad1f7.css @@ -0,0 +1 @@ +.box[data-v-55918d51]{position:relative;margin-top:10px}.short-code-btn[data-v-55918d51]{padding:0;position:absolute;top:0;right:8px;width:8.125rem;max-width:130px;height:44px;display:flex;justify-content:center;align-items:center}.inner-text[data-v-55918d51]{font-size:14px;color:#aaa}.inner-text-active[data-v-55918d51]{color:#04498c}.captcha[data-v-55918d51]{width:10.9375rem}.input-box[data-v-55918d51]{margin:0;padding:4px;background-color:#f8f8f8;font-size:14px}.box[data-v-55918d51] .content-clear-icon{margin-right:100px}.box[data-v-55918d51]{display:flex;flex-direction:row} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-email-form.79cacd6d.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-email-form.79cacd6d.js new file mode 100644 index 0000000000000000000000000000000000000000..d0eb58effdccd0a7d97d7bc21f1c6e9a064f85ef --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-email-form.79cacd6d.js @@ -0,0 +1 @@ +import{_ as e,s as t,L as a,f as s,g as i,o as n,c as o,w as l,a as r,z as u,d as c,t as m,p as d,i as h}from"./index-389238f5.js";import{_ as p}from"./uni-captcha.7a7d8040.js";import{_ as f}from"./uni-easyinput.a1fc57c1.js";const g=e({name:"uni-email-code-form",model:{prop:"modelValue",event:"update:modelValue"},props:{event:["update:modelValue"],count:{type:[String,Number],default:60},email:{type:[String],default:""},type:{type:String,default:()=>"register"},focusCaptchaInput:{type:Boolean,default:()=>!1}},data:()=>({captcha:"",reverseNumber:0,reverseTimer:null,modelValue:"",focusEmailCodeInput:!1}),watch:{captcha(e,t){4==e.length&&4!=t.length&&this.start()},modelValue(e){this.$emit("input",e),this.$emit("update:modelValue",e)}},computed:{innerText(){return 0==this.reverseNumber?"获取邮箱验证码":"重新发送("+this.reverseNumber+"s)"}},created(){this.initClick()},methods:{getImageCaptcha(e){this.$refs.captcha.getImageCaptcha(e)},initClick(){this.start=function(e,t){let a;return t=t||500,function(){let s=this,i=arguments;a&&clearTimeout(a);let n=!a;a=setTimeout((()=>{a=null}),t),n&&e.apply(s,i)}}((()=>{0==this.reverseNumber&&this.sendMsg()}))},sendMsg(){if(4!=this.captcha.length)return this.$refs.captcha.focusCaptchaInput=!0,t({title:"请先输入图形验证码",icon:"none",duration:3e3});if(!this.email)return t({title:"请输入邮箱",icon:"none",duration:3e3});if(!/@/.test(this.email))return t({title:"邮箱格式错误",icon:"none",duration:3e3});const e=a.importObject("uni-id-co",{customUI:!0});console.log("sendEmailCode",{email:this.email,scene:this.type,captcha:this.captcha}),e.sendEmailCode({email:this.email,scene:this.type,captcha:this.captcha}).then((e=>{t({title:"邮箱验证码发送成功",icon:"none",duration:3e3}),this.reverseNumber=Number(this.count),this.getCode()})).catch((e=>{"uni-id-invalid-mail-template"==e.code?(this.modelValue="123456",t({title:"已启动测试模式,详情【控制台信息】",icon:"none",duration:3e3}),console.warn(e.message)):(this.getImageCaptcha(),this.captcha="",t({title:e.message,icon:"none",duration:3e3}))}))},getCode(){if(0==this.reverseNumber)return clearTimeout(this.reverseTimer),void(this.reverseTimer=null);this.reverseNumber--,this.reverseTimer=setTimeout((()=>{this.getCode()}),1e3)}}},[["render",function(e,t,a,g,v,C){const b=s(i("uni-captcha"),p),V=s(i("uni-easyinput"),f),y=d,I=h;return n(),o(I,null,{default:l((()=>[r(b,{focus:a.focusCaptchaInput,ref:"captcha",scene:"send-email-code",modelValue:v.captcha,"onUpdate:modelValue":t[0]||(t[0]=e=>v.captcha=e)},null,8,["focus","modelValue"]),r(I,{class:"box"},{default:l((()=>[r(V,{focus:v.focusEmailCodeInput,onBlur:t[1]||(t[1]=e=>v.focusEmailCodeInput=!1),type:"number",class:"input-box",inputBorder:!1,modelValue:v.modelValue,"onUpdate:modelValue":t[2]||(t[2]=e=>v.modelValue=e),maxlength:"6",placeholder:"请输入邮箱验证码"},null,8,["focus","modelValue"]),r(I,{class:"short-code-btn","hover-class":"hover",onClick:e.start},{default:l((()=>[r(y,{class:u(["inner-text",0==v.reverseNumber?"inner-text-active":""])},{default:l((()=>[c(m(C.innerText),1)])),_:1},8,["class"])])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-55918d51"]]);export{g as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-fab-login-dc2ac76e.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-fab-login-dc2ac76e.css new file mode 100644 index 0000000000000000000000000000000000000000..a5d8f07c40159e29200c3bb1c241140cf41f1f83 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-fab-login-dc2ac76e.css @@ -0,0 +1 @@ +.fab-login-box[data-v-358aab82],.item[data-v-358aab82]{display:flex;box-sizing:border-box;flex-direction:column}.fab-login-box[data-v-358aab82]{flex-direction:row;flex-wrap:wrap;width:23.4375rem;justify-content:space-around;position:fixed;left:0}.item[data-v-358aab82]{flex-direction:column;justify-content:center;align-items:center;height:6.25rem;cursor:pointer}@media screen and (min-width: 690px){.fab-login-box[data-v-358aab82]{max-width:500px;margin-left:calc(50% - 250px)}.item[data-v-358aab82]{height:5rem}}@media screen and (max-width: 690px){.fab-login-box[data-v-358aab82]{bottom:.3125rem}}.logo[data-v-358aab82]{width:1.875rem;height:1.875rem;max-width:40px;max-height:40px;border-radius:100%;border:solid 1px #F6F6F6}.login-title[data-v-358aab82]{text-align:center;margin-top:6px;color:#999;font-size:10px;width:70px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-fab-login.8d4ba320.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-fab-login.8d4ba320.js new file mode 100644 index 0000000000000000000000000000000000000000..2d5d28897ba5ce5336568aeca03dc8fadb7bcdf4 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-fab-login.8d4ba320.js @@ -0,0 +1 @@ +import{_ as e,aa as t,ad as i,ae as n,G as o,s,N as a,O as l,a4 as u,L as r,$ as p,y as g,o as c,c as d,w as f,a as h,e as m,F as y,r as w,d as v,t as b,m as _,p as x,i as C}from"./index-389238f5.js";const S=e({computed:{agreements(){if(!t.agreements)return[];let{serviceUrl:e,privacyUrl:i}=t.agreements;return[{url:e,title:"用户服务协议"},{url:i,title:"隐私政策条款"}]},agree:{get(){return this.getParentComponent().agree},set(e){return this.getParentComponent().agree=e}}},data:()=>({servicesList:[{id:"username",text:"账号登录",logo:"/uni_modules/uni-id-pages/static/login/uni-fab-login/user.png",path:"/uni_modules/uni-id-pages/pages/login/login-withpwd"},{id:"smsCode",text:"短信验证码",logo:"/uni_modules/uni-id-pages/static/login/uni-fab-login/sms.png",path:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd?type=smsCode"},{id:"weixin",text:"微信登录",logo:"/uni_modules/uni-id-pages/static/login/uni-fab-login/weixin.png"},{id:"apple",text:"苹果登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/apple.png"},{id:"univerify",text:"一键登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/univerify.png"},{id:"taobao",text:"淘宝登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/taobao.png"},{id:"facebook",text:"脸书登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/facebook.png"},{id:"alipay",text:"支付宝登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/alipay.png"},{id:"qq",text:"QQ登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/qq.png"},{id:"google",text:"谷歌登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/google.png"},{id:"douyin",text:"抖音登录",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/douyin.png"},{id:"sinaweibo",text:"新浪微博",logo:"/uni_modules/uni-id-pages/static/app-plus/uni-fab-login/sinaweibo.png"}],univerifyStyle:{fullScreen:!0,backgroundColor:"#ffffff",buttons:{iconWidth:"45px",list:[]},privacyTerms:{defaultCheckBoxState:!1,textColor:"#BBBBBB",termsColor:"#5496E3",prefix:"我已阅读并同意",suffix:"并使用本机号码登录",privacyItems:[]}}}),watch:{agree(e){this.univerifyStyle.privacyTerms.defaultCheckBoxState=e}},async created(){let e=this.servicesList,i=t.loginTypes;e=e.filter((e=>"apple"!=e.id&&i.includes(e.id))),i.includes("univerify")&&(this.univerifyStyle.privacyTerms.privacyItems=this.agreements,e.forEach((({id:e,logo:t,path:i})=>{"univerify"!=e&&this.univerifyStyle.buttons.list.push({iconPath:t,provider:e,path:i})}))),this.servicesList=e.filter((e=>(e.path?e.path.split("?")[0]:"")!=this.getRoute(1)))},methods:{getParentComponent(){return this.$parent.$parent},setUserInfo(e){console.log("setUserInfo",e)},getRoute(e=0){let t=i();return e>t.length?"":"/"+t[t.length-e].route},toPage(e,t=0){let i=["navigateTo","redirectTo"][t];if(this.getRoute(1)==e.split("?")[0]&&"/uni_modules/uni-id-pages/pages/login/login-withoutpwd"==this.getRoute(1)){let t=e.split("?")[1].split("=")[1];n("uni-id-pages-setLoginType",t)}else this.getRoute(2)==e?o():this.getRoute(1)!=e?uni[i]({url:e,animationType:"slide-in-left",complete(e){}}):console.log("出乎意料的情况,path:"+e)},async login_before(e,i=!0,n={}){var r,p;if(console.log(e),["qq","xiaomi","sinaweibo","taobao","facebook","google","alipay","douyin"].includes(e))return s({title:"该登录方式暂未实现,欢迎提交pr",icon:"none",duration:3e3});if(["univerify","apple"].includes(e))return s({title:"当前设备不支持此登录,请选择其他登录方式",icon:"none",duration:3e3});let g=((null==(p=null==(r=t)?void 0:r.agreements)?void 0:p.scope)||[]).includes("register");if("univerify"!=e&&g&&!this.agree){return this.getParentComponent().$refs.agreements.popup((()=>{this.login_before(e,i,n)}))}if("weixin"==e){let e=location.protocol+"//"+document.domain+(window.location.href.includes("#")?"/#":"")+"/uni_modules/uni-id-pages/pages/login/login-withoutpwd?is_weixin_redirect=true&type=weixin";return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)?window.open(`https://open.weixin.qq.com/connect/oauth2/authorize?\n\t\t\t\t\t\t\t\t\t\tappid=${t.appid.weixin.h5}\n\t\t\t\t\t\t\t\t\t\t&redirect_uri=${encodeURIComponent(e)}\n\t\t\t\t\t\t\t\t\t\t&response_type=code\n\t\t\t\t\t\t\t\t\t\t&scope=snsapi_userinfo\n\t\t\t\t\t\t\t\t\t\t&state=STATE&connect_redirect=1#wechat_redirect`):location.href=`https://open.weixin.qq.com/connect/qrconnect?appid=${t.appid.weixin.web}\n\t\t\t\t\t\t\t\t\t\t\t&redirect_uri=${encodeURIComponent(e)}\n\t\t\t\t\t\t\t\t\t\t\t&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect`}if(a({mask:!0}),"univerify"==e){let e=function(){l(),t.close(),t.offButtonsClick(n)},t=uni.getUniverifyManager(),i=!1,n=async t=>{console.log("点击了第三方登录,provider:",t,t.provider,this.univerifyStyle.buttons.list),i=!0;let n=(await uni.getCheckBoxState())[1].state;this.agree=n;let{path:o}=this.univerifyStyle.buttons.list[t.index];o?(this.getRoute(1).includes("login-withoutpwd")&&o.includes("login-withoutpwd")&&this.getParentComponent().showCurrentWebview(),this.toPage(o,1),e()):n?(e(),setTimeout((()=>{this.login_before(t.provider)}),500)):s({title:"你未同意隐私政策协议",icon:"none",duration:3e3})};return t.onButtonsClick(n),t.login({univerifyStyle:this.univerifyStyle,success:e=>{this.login(e.authResult,"univerify")},fail(e){console.log(e),i||o()},complete:async e=>{l(),t.offButtonsClick(n)}})}if("weixinMobile"===e)return this.login({phoneCode:n.phoneNumberCode},e);u({provider:e,onlyAuthorize:!0,success:async t=>{if("apple"==e){let e=await this.getUserInfo({provider:"apple"});Object.assign(t.authResult,e.userInfo),l()}this.login("weixin"==e?{code:t.code}:t.authResult,e)},fail:async e=>{console.log(e),l()}})},login(e,t){console.log({params:e,type:t});let i="loginBy"+t.trim().replace(t[0],t[0].toUpperCase());r.importObject("uni-id-co",{customUI:!0})[i](e).then((e=>{s({title:"登录成功",icon:"none",duration:2e3}),e.loginType=t,p.loginSuccess(e)})).catch((e=>{g({content:e.message,confirmText:"知道了",showCancel:!1})})).finally((e=>{"univerify"==t&&uni.closeAuthView(),l()}))},doUserProfileNext(){try{p.loginSuccess()}catch(e){console.log(e)}},getUserInfo:async e=>new Promise(((t,i)=>{uni.getUserInfo({...e,success:e=>{t(e)},fail:e=>{g({content:JSON.stringify(e),showCancel:!1}),i(e)}})}))}},[["render",function(e,t,i,n,o,s){const a=_,l=x,u=C;return c(),d(u,null,{default:f((()=>[h(u,{class:"fab-login-box"},{default:f((()=>[(c(!0),m(y,null,w(o.servicesList,((e,t)=>(c(),d(u,{class:"item",key:t,onClick:t=>e.path?s.toPage(e.path):s.login_before(e.id,!1)},{default:f((()=>[h(a,{class:"logo",src:e.logo,mode:"scaleToFill"},null,8,["src"]),h(l,{class:"login-title"},{default:f((()=>[v(b(e.text),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-358aab82"]]);export{S as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-sms-form-f3a905f0.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-sms-form-f3a905f0.css new file mode 100644 index 0000000000000000000000000000000000000000..291e3c9ab5c4e72083457abe2ce725900ea12826 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-sms-form-f3a905f0.css @@ -0,0 +1 @@ +.box[data-v-c9fb6b9d]{position:relative;margin-top:10px}.short-code-btn[data-v-c9fb6b9d]{padding:0;position:absolute;top:0;right:8px;width:8.125rem;max-width:100px;height:44px;display:flex;justify-content:center;align-items:center}.inner-text[data-v-c9fb6b9d]{font-size:14px;color:#aaa}.inner-text-active[data-v-c9fb6b9d]{color:#04498c}.captcha[data-v-c9fb6b9d]{width:10.9375rem}.input-box[data-v-c9fb6b9d]{margin:0;padding:4px;background-color:#f8f8f8;font-size:14px}.box[data-v-c9fb6b9d] .content-clear-icon{margin-right:110px}.box[data-v-c9fb6b9d]{display:flex;flex-direction:row} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-sms-form.2fbc0429.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-sms-form.2fbc0429.js new file mode 100644 index 0000000000000000000000000000000000000000..802ef681f444d928cfdb2472afa0ef89f2ab992f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-pages-sms-form.2fbc0429.js @@ -0,0 +1 @@ +import{_ as e,s as t,L as s,f as a,g as n,o,c as i,w as r,a as u,z as c,d as l,t as h,p as d,i as m}from"./index-389238f5.js";import{_ as p}from"./uni-captcha.7a7d8040.js";import{_ as f}from"./uni-easyinput.a1fc57c1.js";const g=e({name:"uni-sms-form",model:{prop:"modelValue",event:"update:modelValue"},props:{event:["update:modelValue"],count:{type:[String,Number],default:60},phone:{type:[String,Number],default:""},type:{type:String,default:()=>"login"},focusCaptchaInput:{type:Boolean,default:()=>!1}},data:()=>({captcha:"",reverseNumber:0,reverseTimer:null,modelValue:"",focusSmsCodeInput:!1}),watch:{captcha(e,t){4==e.length&&4!=t.length&&this.start()},modelValue(e){this.$emit("input",e),this.$emit("update:modelValue",e)}},computed:{innerText(){return 0==this.reverseNumber?"获取短信验证码":"重新发送("+this.reverseNumber+"s)"}},created(){this.initClick()},methods:{getImageCaptcha(e){this.$refs.captcha.getImageCaptcha(e)},initClick(){this.start=function(e,t){let s;return t=t||500,function(){let a=this,n=arguments;s&&clearTimeout(s);let o=!s;s=setTimeout((()=>{s=null}),t),o&&e.apply(a,n)}}((()=>{0==this.reverseNumber&&this.sendMsg()}))},sendMsg(){if(4!=this.captcha.length)return this.$refs.captcha.focusCaptchaInput=!0,t({title:"请先输入图形验证码",icon:"none",duration:3e3});if(!/^1\d{10}$/.test(this.phone))return t({title:"手机号格式错误",icon:"none",duration:3e3});const e=s.importObject("uni-id-co",{customUI:!0});console.log("sendSmsCode",{mobile:this.phone,scene:this.type,captcha:this.captcha}),e.sendSmsCode({mobile:this.phone,scene:this.type,captcha:this.captcha}).then((e=>{t({title:"短信验证码发送成功",icon:"none",duration:3e3}),this.reverseNumber=Number(this.count),this.getCode()})).catch((e=>{"uni-id-invalid-sms-template-id"==e.code?(this.modelValue="123456",t({title:"已启动测试模式,详情【控制台信息】",icon:"none",duration:3e3}),console.warn(e.message)):(this.getImageCaptcha(),this.captcha="",t({title:e.message,icon:"none",duration:3e3}))}))},getCode(){if(0==this.reverseNumber)return clearTimeout(this.reverseTimer),void(this.reverseTimer=null);this.reverseNumber--,this.reverseTimer=setTimeout((()=>{this.getCode()}),1e3)}}},[["render",function(e,t,s,g,b,v){const C=a(n("uni-captcha"),p),V=a(n("uni-easyinput"),f),y=d,I=m;return o(),i(I,null,{default:r((()=>[u(C,{focus:s.focusCaptchaInput,ref:"captcha",scene:"send-sms-code",modelValue:b.captcha,"onUpdate:modelValue":t[0]||(t[0]=e=>b.captcha=e)},null,8,["focus","modelValue"]),u(I,{class:"box"},{default:r((()=>[u(V,{focus:b.focusSmsCodeInput,onBlur:t[1]||(t[1]=e=>b.focusSmsCodeInput=!1),type:"number",class:"input-box",inputBorder:!1,modelValue:b.modelValue,"onUpdate:modelValue":t[2]||(t[2]=e=>b.modelValue=e),maxlength:"6",clearable:!1,placeholder:"请输入短信验证码"},null,8,["focus","modelValue"]),u(I,{class:"short-code-btn","hover-class":"hover",onClick:e.start},{default:r((()=>[u(y,{class:c(["inner-text",0==b.reverseNumber?"inner-text-active":""])},{default:r((()=>[l(h(v.innerText),1)])),_:1},8,["class"])])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-c9fb6b9d"]]);export{g as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-permissions.7a340838.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-permissions.7a340838.js new file mode 100644 index 0000000000000000000000000000000000000000..a89f6de13b7e4d3c589d9e97bb3a31b2e0e98f0c --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-permissions.7a340838.js @@ -0,0 +1 @@ +const e={permission_id:{rules:[{required:!0},{format:"string"}],label:"权限标识"},permission_name:{rules:[{required:!0},{format:"string"}],label:"权限名称"},comment:{rules:[{format:"string"}],label:"备注"}},t={};function a(e,t){let a={};for(let r in e){let{type:l,value:n}=e[r];switch(l){case"search":"string"==typeof n&&n.length&&(a[r]=new RegExp(n));break;case"select":if(n.length){let e=[];for(let a of n)e.push(t.eq(a));a[r]=t.or(e)}break;case"range":if(n.length){let e=n[0],l=n[1];a[r]=t.and([t.gte(e),t.lte(l)])}break;case"date":if(n.length){let[e,l]=n,s=new Date(e),i=new Date(l);a[r]=t.and([t.gte(s),t.lte(i)])}break;case"timestamp":if(n.length){let[e,l]=n;a[r]=t.and([t.gte(e),t.lte(l)])}}}return a}export{t as e,a as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-roles.ef72d0a7.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-roles.ef72d0a7.js new file mode 100644 index 0000000000000000000000000000000000000000..6cece3b8006505d7b6a8e1b6b89f50f74c92a62b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-roles.ef72d0a7.js @@ -0,0 +1 @@ +const e={role_id:{rules:[{required:!0},{format:"string"}],label:"唯一ID"},role_name:{rules:[{required:!0},{format:"string"}],label:"名称"},permission:{rules:[{format:"array"}],label:"权限"},comment:{rules:[{format:"string"}],label:"备注"},create_date:{rules:[{format:"timestamp"}]}},t={};function a(e,t){let a={};for(let r in e){let{type:l,value:s}=e[r];switch(l){case"search":"string"==typeof s&&s.length&&(a[r]=new RegExp(s));break;case"select":if(s.length){let e=[];for(let a of s)e.push(t.eq(a));a[r]=t.or(e)}break;case"range":if(s.length){let e=s[0],l=s[1];a[r]=t.and([t.gte(e),t.lte(l)])}break;case"date":if(s.length){let[e,l]=s,n=new Date(e),i=new Date(l);a[r]=t.and([t.gte(n),t.lte(i)])}break;case"timestamp":if(s.length){let[e,l]=s;a[r]=t.and([t.gte(e),t.lte(l)])}}}return a}export{t as e,a as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-id-users.cf221585.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-users.cf221585.js new file mode 100644 index 0000000000000000000000000000000000000000..347705c6748e7dbc28c7ed9e0981eb8ab88e469a --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-id-users.cf221585.js @@ -0,0 +1 @@ +const e={username:{rules:[{required:!0,errorMessage:"请输入用户名"},{minLength:3,maxLength:32,errorMessage:"用户名长度在 {minLength} 到 {maxLength} 个字符"},{validateFunction:function(e,t,a,l){return(/^1\d{10}$/.test(t)||/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(t))&&l("用户名不能是:手机号或邮箱"),/^\d+$/.test(t)&&l("用户名不能为纯数字"),/[\u4E00-\u9FA5\uF900-\uFA2D]{1,}/.test(t)&&l("用户名不能包含中文"),!0}}],label:"用户名"},nickname:{rules:[{minLength:3,maxLength:32,errorMessage:"昵称长度在 {minLength} 到 {maxLength} 个字符"},{validateFunction:function(e,t,a,l){return(/^1\d{10}$/.test(t)||/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(t))&&l("昵称不能是:手机号或邮箱"),/^\d+$/.test(t)&&l("昵称不能为纯数字"),!0}}],label:"昵称"},password:{rules:[{required:!0},{format:"password"},{minLength:6}],label:"密码"},mobile:{rules:[{format:"string"},{pattern:"^\\+?[0-9-]{3,20}$"}],label:"手机号码"},status:{rules:[{format:"int"},{range:[{text:"正常",value:0},{text:"禁用",value:1},{text:"审核中",value:2},{text:"审核拒绝",value:3}]}],defaultValue:0,label:"用户状态"},email:{rules:[{format:"string"},{format:"email"}],label:"邮箱"},role:{rules:[{format:"array"}],label:"角色"},last_login_date:{rules:[{format:"timestamp"}]}},t={status_valuetotext:{0:"正常",1:"禁用",2:"审核中",3:"审核拒绝"}};function a(e,t){let a={};for(let l in e){let{type:r,value:n}=e[l];switch(r){case"search":"string"==typeof n&&n.length&&(a[l]=new RegExp(n));break;case"select":if(n.length){let e=[];for(let a of n)e.push(t.eq(a));a[l]=t.or(e)}break;case"range":if(n.length){let e=n[0],r=n[1];a[l]=t.and([t.gte(e),t.lte(r)])}break;case"date":if(n.length){let[e,r]=n,s=new Date(e),u=new Date(r);a[l]=t.and([t.gte(s),t.lte(u)])}break;case"timestamp":if(n.length){let[e,r]=n;a[l]=t.and([t.gte(e),t.lte(r)])}}}return a}export{t as e,a as f,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-link-8c2d623c.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-link-8c2d623c.css new file mode 100644 index 0000000000000000000000000000000000000000..b081870311b92fa1ac489be07af343f9c95bca62 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-link-8c2d623c.css @@ -0,0 +1 @@ +.uni-link[data-v-44511933]{cursor:pointer}.uni-link--withline[data-v-44511933]{text-decoration:underline} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-link.d3d03343.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-link.d3d03343.js new file mode 100644 index 0000000000000000000000000000000000000000..4b4f2bc9be9e517c090b6ceabb3e69af34f83e87 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-link.d3d03343.js @@ -0,0 +1 @@ +import{_ as e,aB as t,o as i,e as n,C as s,d as o,t as l,z as r,I as a,c as d,w as h,p as u}from"./index-389238f5.js";const f=e({name:"uniLink",props:{href:{type:String,default:""},text:{type:String,default:""},download:{type:String,default:""},showUnderLine:{type:[Boolean,String],default:!0},copyTips:{type:String,default:"已自动复制网址,请在手机浏览器里粘贴该网址"},color:{type:String,default:"#999999"},fontSize:{type:[Number,String],default:14}},computed:{isShowA(){return this._isH5=!0,!(!this.isMail()&&!this.isTel()||!0!==this._isH5)}},created(){this._isH5=null},methods:{isMail(){return this.href.startsWith("mailto:")},isTel(){return this.href.startsWith("tel:")},openURL(){window.open(this.href)},makePhoneCall(e){t({phoneNumber:e})}}},[["render",function(e,t,f,p,c,w){const S=u;return w.isShowA?(i(),n("a",{key:0,class:r(["uni-link",{"uni-link--withline":!0===f.showUnderLine||"true"===f.showUnderLine}]),href:f.href,style:a({color:f.color,fontSize:f.fontSize+"px"}),download:f.download},[s(e.$slots,"default",{},(()=>[o(l(f.text),1)]),!0)],14,["href","download"])):(i(),d(S,{key:1,class:r(["uni-link",{"uni-link--withline":!0===f.showUnderLine||"true"===f.showUnderLine}]),style:a({color:f.color,fontSize:f.fontSize+"px"}),onClick:w.openURL},{default:h((()=>[s(e.$slots,"default",{},(()=>[o(l(f.text),1)]),!0)])),_:3},8,["class","style","onClick"]))}],["__scopeId","data-v-44511933"]]);export{f as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-load-more-45eaeab2.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-load-more-45eaeab2.css new file mode 100644 index 0000000000000000000000000000000000000000..8bd0e2cfcfdf79838577e3b350e7332354bf98b1 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-load-more-45eaeab2.css @@ -0,0 +1 @@ +.uni-load-more[data-v-d82f3750]{display:flex;flex-direction:row;height:40px;align-items:center;justify-content:center}.uni-load-more__text[data-v-d82f3750]{font-size:14px;margin-left:8px}.uni-load-more__img[data-v-d82f3750]{width:24px;height:24px}.uni-load-more__img--nvue[data-v-d82f3750]{color:#666}.uni-load-more__img--android[data-v-d82f3750],.uni-load-more__img--ios[data-v-d82f3750]{width:24px;height:24px;transform:rotate(0)}.uni-load-more__img--android[data-v-d82f3750]{animation:loading-ios 1s 0s linear infinite}@keyframes loading-android-d82f3750{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.uni-load-more__img--ios-H5[data-v-d82f3750]{position:relative;animation:loading-ios-H5-d82f3750 1s 0s step-end infinite}.uni-load-more__img--ios-H5 uni-image[data-v-d82f3750]{position:absolute;width:100%;height:100%;left:0;top:0}@keyframes loading-ios-H5-d82f3750{0%{transform:rotate(0)}8%{transform:rotate(30deg)}16%{transform:rotate(60deg)}24%{transform:rotate(90deg)}32%{transform:rotate(120deg)}40%{transform:rotate(150deg)}48%{transform:rotate(180deg)}56%{transform:rotate(210deg)}64%{transform:rotate(240deg)}73%{transform:rotate(270deg)}82%{transform:rotate(300deg)}91%{transform:rotate(330deg)}to{transform:rotate(360deg)}}.uni-load-more__img--android-H5[data-v-d82f3750]{animation:loading-android-H5-rotate-d82f3750 2s linear infinite;transform-origin:center center}.uni-load-more__img--android-H5 circle[data-v-d82f3750]{display:inline-block;animation:loading-android-H5-dash-d82f3750 1.5s ease-in-out infinite;stroke:currentColor;stroke-linecap:round}@keyframes loading-android-H5-rotate-d82f3750{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loading-android-H5-dash-d82f3750{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-load-more.67944ae0.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-load-more.67944ae0.js new file mode 100644 index 0000000000000000000000000000000000000000..1394f98ecb325fc666a9495f5e5f45b41d410506 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-load-more.67944ae0.js @@ -0,0 +1 @@ +import{Y as e,ap as o,_ as n,o as t,c as i,w as c,e as a,I as d,J as s,a as l,b as A,d as h,t as m,m as r,i as w,p as E}from"./index-389238f5.js";const u={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let I;setTimeout((()=>{I=e().platform}),16);const{t:R}=o(u);const D=n({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:I,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||R("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||R("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||R("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(e,o,n,u,I,R){const D=r,J=w,x=E;return t(),i(J,{class:"uni-load-more",onClick:R.onClick},{default:c((()=>[!I.webviewHide&&("circle"===n.iconType||"auto"===n.iconType&&"android"===I.platform)&&"loading"===n.status&&n.showIcon?(t(),a("svg",{key:0,width:"24",height:"24",viewBox:"25 25 50 50",style:d({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-H5"},[s("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:d({color:n.color}),"stroke-width":3},null,4)],4)):!I.webviewHide&&"loading"===n.status&&n.showIcon?(t(),i(J,{key:1,style:d({width:n.iconSize+"px",height:n.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},{default:c((()=>[l(D,{src:I.imgBase64,mode:"widthFix"},null,8,["src"])])),_:1},8,["style"])):A("",!0),n.showText?(t(),i(x,{key:2,class:"uni-load-more__text",style:d({color:n.color})},{default:c((()=>[h(m("more"===n.status?R.contentdownText:"loading"===n.status?R.contentrefreshText:R.contentnomoreText),1)])),_:1},8,["style"])):A("",!0)])),_:1},8,["onClick"])}],["__scopeId","data-v-d82f3750"]]);export{D as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-match-media-9d3d031f.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-match-media-9d3d031f.css new file mode 100644 index 0000000000000000000000000000000000000000..89c6a7b114c444ab9ca5d7cd1f3af9cba3cdc384 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-match-media-9d3d031f.css @@ -0,0 +1 @@ +uni-view[data-v-f04bde01]{display:block} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-match-media.cb822f29.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-match-media.cb822f29.js new file mode 100644 index 0000000000000000000000000000000000000000..f1c8a1d137e77c537facde53dcecfccb7084d73b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-match-media.cb822f29.js @@ -0,0 +1 @@ +import{_ as t,ah as i,P as e,T as a,o as h,c as n,w as s,C as d,i as r}from"./index-389238f5.js";let m;const o=t({name:"UniMatchMedia",props:{width:{type:[Number,String],default:""},minWidth:{type:[Number,String],default:""},maxWidth:{type:[Number,String],default:""},height:{type:[Number,String],default:""},minHeight:{type:[Number,String],default:""},maxHeight:{type:[Number,String],default:""},orientation:{type:String,default:""}},data:()=>({matches:!0}),mounted(){m=i(this),m.observe({width:this.width,maxWidth:this.maxWidth,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight,maxHeight:this.maxHeight,orientation:this.orientation},(t=>{this.matches=t}))},destroyed(){m.disconnect()}},[["render",function(t,i,m,o,u,g){const l=r;return e((h(),n(l,null,{default:s((()=>[d(t.$slots,"default",{},void 0,!0)])),_:3},512)),[[a,u.matches]])}],["__scopeId","data-v-f04bde01"]]);export{o as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-notice-bar-9aaf6cb8.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-notice-bar-9aaf6cb8.css new file mode 100644 index 0000000000000000000000000000000000000000..11eec06eca4021d86d75064188252f7c3b17f370 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-notice-bar-9aaf6cb8.css @@ -0,0 +1 @@ +.uni-noticebar[data-v-69ae3424]{display:flex;width:100%;box-sizing:border-box;flex-direction:row;align-items:center;padding:10px 12px;margin-bottom:10px}.uni-cursor-point[data-v-69ae3424]{cursor:pointer}.uni-noticebar-close[data-v-69ae3424]{margin-left:8px;margin-right:5px}.uni-noticebar-icon[data-v-69ae3424]{margin-right:5px}.uni-noticebar__content-wrapper[data-v-69ae3424]{flex:1;flex-direction:column;overflow:hidden}.uni-noticebar__content-wrapper--single[data-v-69ae3424]{line-height:18px}.uni-noticebar__content-wrapper--single[data-v-69ae3424],.uni-noticebar__content-wrapper--scrollable[data-v-69ae3424]{flex-direction:row}.uni-noticebar__content-wrapper--scrollable[data-v-69ae3424]{position:relative}.uni-noticebar__content--scrollable[data-v-69ae3424]{flex:1;display:block;overflow:hidden}.uni-noticebar__content--single[data-v-69ae3424]{display:flex;flex:none;width:100%;justify-content:center}.uni-noticebar__content-text[data-v-69ae3424]{font-size:14px;line-height:18px;word-break:break-all}.uni-noticebar__content-text--single[data-v-69ae3424]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uni-noticebar__content-text--scrollable[data-v-69ae3424]{position:absolute;display:block;height:18px;line-height:18px;white-space:nowrap;padding-left:100%;animation:notice-69ae3424 10s 0s linear infinite both;animation-play-state:paused}.uni-noticebar__more[data-v-69ae3424]{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;padding-left:5px}@keyframes notice-69ae3424{to{transform:translate3d(-100%,0,0)}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-notice-bar.629dd577.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-notice-bar.629dd577.js new file mode 100644 index 0000000000000000000000000000000000000000..e57bfb555fc2491fb52432f4b0e61cd65396cf93 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-notice-bar.629dd577.js @@ -0,0 +1 @@ +import{_ as e,al as t,f as o,A as i,g as n,o as a,c as l,w as s,b as r,a as c,z as u,I as h,d,t as m,p,i as b}from"./index-389238f5.js";const y=e({name:"UniNoticeBar",emits:["click","getmore","close"],props:{text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:"#FFF9EA"},speed:{type:Number,default:100},color:{type:String,default:"#FF9A43"},fontSize:{type:Number,default:14},moreColor:{type:String,default:"#FF9A43"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},data:()=>({textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,elIdBox:`Uni_${Math.ceil(1e6*Math.random()).toString(36)}`,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}),computed:{isShowGetMore(){return!0===this.showGetMore||"true"===this.showGetMore},isShowClose(){return!(!0!==this.showClose&&"true"!==this.showClose||!1!==this.showGetMore&&"false"!==this.showGetMore)}},mounted(){this.$nextTick((()=>{this.initSize()}))},methods:{initSize(){if(this.scrollable){let e=[],o=new Promise(((e,o)=>{t().in(this).select(`#${this.elId}`).boundingClientRect().exec((t=>{this.textWidth=t[0].width,e()}))})),i=new Promise(((e,o)=>{t().in(this).select(`#${this.elIdBox}`).boundingClientRect().exec((t=>{this.boxWidth=t[0].width,e()}))}));e.push(o),e.push(i),Promise.all(e).then((()=>{this.animationDuration=this.textWidth/this.speed+"s",this.animationDelay=`-${this.boxWidth/this.speed}s`,setTimeout((()=>{this.animationPlayState="running"}),1e3)}))}},loopAnimation(){},clickMore(){this.$emit("getmore")},close(){this.show=!1,this.$emit("close")},onClick(){this.$emit("click")}}},[["render",function(e,t,y,w,f,S){const _=o(n("uni-icons"),i),g=p,x=b;return f.show?(a(),l(x,{key:0,class:"uni-noticebar",style:h({backgroundColor:y.backgroundColor}),onClick:S.onClick},{default:s((()=>[!0===y.showIcon||"true"===y.showIcon?(a(),l(_,{key:0,class:"uni-noticebar-icon",type:"sound",color:y.color,size:1.5*y.fontSize},null,8,["color","size"])):r("",!0),c(x,{ref:"textBox",class:u(["uni-noticebar__content-wrapper",{"uni-noticebar__content-wrapper--scrollable":y.scrollable,"uni-noticebar__content-wrapper--single":!y.scrollable&&(y.single||y.moreText)}]),style:h({height:y.scrollable?1.5*y.fontSize+"px":"auto"})},{default:s((()=>[c(x,{id:f.elIdBox,class:u(["uni-noticebar__content",{"uni-noticebar__content--scrollable":y.scrollable,"uni-noticebar__content--single":!y.scrollable&&(y.single||y.moreText)}])},{default:s((()=>[c(g,{id:f.elId,ref:"animationEle",class:u(["uni-noticebar__content-text",{"uni-noticebar__content-text--scrollable":y.scrollable,"uni-noticebar__content-text--single":!y.scrollable&&(y.single||y.showGetMore)}]),style:h({color:y.color,fontSize:y.fontSize+"px",lineHeight:1.5*y.fontSize+"px",width:f.wrapWidth+"px",animationDuration:f.animationDuration,"-webkit-animationDuration":f.animationDuration,animationPlayState:f.webviewHide?"paused":f.animationPlayState,"-webkit-animationPlayState":f.webviewHide?"paused":f.animationPlayState,animationDelay:f.animationDelay,"-webkit-animationDelay":f.animationDelay})},{default:s((()=>[d(m(y.text),1)])),_:1},8,["id","class","style"])])),_:1},8,["id","class"])])),_:1},8,["class","style"]),S.isShowGetMore?(a(),l(x,{key:1,class:"uni-noticebar__more uni-cursor-point",onClick:S.clickMore},{default:s((()=>[y.moreText.length>0?(a(),l(g,{key:0,style:h({color:y.moreColor,fontSize:y.fontSize+"px"})},{default:s((()=>[d(m(y.moreText),1)])),_:1},8,["style"])):(a(),l(_,{key:1,type:"right",color:y.moreColor,size:1.1*y.fontSize},null,8,["color","size"]))])),_:1},8,["onClick"])):r("",!0),S.isShowClose?(a(),l(x,{key:2,class:"uni-noticebar-close uni-cursor-point"},{default:s((()=>[c(_,{type:"closeempty",color:y.color,size:1.1*y.fontSize,onClick:S.close},null,8,["color","size","onClick"])])),_:1})):r("",!0)])),_:1},8,["style","onClick"])):r("",!0)}],["__scopeId","data-v-69ae3424"]]);export{y as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-pagination-a9a41ff3.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-pagination-a9a41ff3.css new file mode 100644 index 0000000000000000000000000000000000000000..bda23fbb246d11d014bba400630a4af3b5ababca --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-pagination-a9a41ff3.css @@ -0,0 +1 @@ +.uni-pagination[data-v-bd0b20fd]{display:flex;position:relative;overflow:hidden;flex-direction:row;justify-content:center;align-items:center}.uni-pagination__total[data-v-bd0b20fd]{font-size:14px;color:#999;margin-right:15px}.uni-pagination__btn[data-v-bd0b20fd]{display:flex;cursor:pointer;padding:0 8px;line-height:30px;font-size:12px;position:relative;background-color:#f0f0f0;flex-direction:row;justify-content:center;align-items:center;text-align:center;border-radius:5px}.uni-pagination__child-btn[data-v-bd0b20fd]{display:flex;position:relative;flex-direction:row;justify-content:center;align-items:center;text-align:center;color:#666;font-size:12px}.uni-pagination__num[data-v-bd0b20fd]{display:flex;flex:1;flex-direction:row;justify-content:center;align-items:center;height:30px;line-height:30px;font-size:12px;color:#666;margin:0 5px}.uni-pagination__num-tag[data-v-bd0b20fd]{cursor:pointer;min-width:30px;margin:0 5px;height:30px;text-align:center;line-height:30px;color:#999;border-radius:4px}.uni-pagination__num-current[data-v-bd0b20fd]{display:flex;flex-direction:row}.uni-pagination__num-current-text[data-v-bd0b20fd]{font-size:15px}.current-index-text[data-v-bd0b20fd]{color:#2979ff}.uni-pagination--enabled[data-v-bd0b20fd]{color:#333;opacity:1}.uni-pagination--disabled[data-v-bd0b20fd]{opacity:.5;cursor:default}.uni-pagination--hover[data-v-bd0b20fd]{color:rgba(0,0,0,.6);background-color:#eee}.tag--active[data-v-bd0b20fd]:hover{color:#2979ff}.page--active[data-v-bd0b20fd]{color:#fff;background-color:#2979ff}.page--active[data-v-bd0b20fd]:hover{color:#fff}.is-pc-hide[data-v-bd0b20fd]{display:block}.is-phone-hide[data-v-bd0b20fd]{display:none}@media screen and (min-width: 450px){.is-pc-hide[data-v-bd0b20fd]{display:none}.is-phone-hide[data-v-bd0b20fd]{display:block}.uni-pagination__num-flex-none[data-v-bd0b20fd]{flex:none}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-pagination.018f31ea.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-pagination.018f31ea.js new file mode 100644 index 0000000000000000000000000000000000000000..195d04138c6f736baaea2280aae88c7641f1d00f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-pagination.018f31ea.js @@ -0,0 +1 @@ +import{ap as e,_ as t,f as n,A as i,g as a,o as r,c as s,w as u,a as c,d as p,t as o,b as l,z as g,e as h,F as d,r as x,p as m,q as f,K as _,i as P}from"./index-389238f5.js";const I={en:{"uni-pagination.prevText":"prev","uni-pagination.nextText":"next","uni-pagination.piecePerPage":"piece/page"},es:{"uni-pagination.prevText":"anterior","uni-pagination.nextText":"prxima","uni-pagination.piecePerPage":"Art��culo/P��gina"},fr:{"uni-pagination.prevText":"précédente","uni-pagination.nextText":"suivante","uni-pagination.piecePerPage":"Articles/Pages"},"zh-Hans":{"uni-pagination.prevText":"上一页","uni-pagination.nextText":"下一页","uni-pagination.piecePerPage":"条/页"},"zh-Hant":{"uni-pagination.prevText":"上一頁","uni-pagination.nextText":"下一頁","uni-pagination.piecePerPage":"條/頁"}},{t:k}=e(I);const v=t({name:"UniPagination",emits:["update:modelValue","input","change","pageSizeChange"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},prevText:{type:String},nextText:{type:String},piecePerPageText:{type:String},current:{type:[Number,String],default:1},total:{type:[Number,String],default:0},pageSize:{type:[Number,String],default:10},showIcon:{type:[Boolean,String],default:!1},showPageSize:{type:[Boolean,String],default:!1},pagerCount:{type:Number,default:7},pageSizeRange:{type:Array,default:()=>[20,50,100,500]}},data:()=>({pageSizeIndex:0,currentIndex:1,paperData:[],pickerShow:!1}),computed:{piecePerPage(){return this.piecePerPageText||k("uni-pagination.piecePerPage")},prevPageText(){return this.prevText||k("uni-pagination.prevText")},nextPageText(){return this.nextText||k("uni-pagination.nextText")},maxPage(){let e=1,t=Number(this.total),n=Number(this.pageSize);return t&&n&&(e=Math.ceil(t/n)),e},paper(){const e=this.currentIndex,t=this.pagerCount,n=this.total,i=this.pageSize;let a=[],r=[],s=Math.ceil(n/i);for(let c=0;c{(t+1)/2>=e?n1&&r.push(n):e+2<=u?n>e-(t+1)/2&&ne-(t+1)/2||s-tt?((t+1)/2>=e?r[r.length-1]="...":e+2<=u?(r[1]="...",r[r.length-1]="..."):r[1]="...",r.push(a[a.length-1])):(t+1)/2>=e||e+2<=u||(r.shift(),r.push(a[a.length-1])),r}},watch:{current:{immediate:!0,handler(e,t){this.currentIndex=e<1?1:e}},value:{immediate:!0,handler(e){1===Number(this.current)&&(this.currentIndex=e<1?1:e)}},pageSizeIndex(e){this.$emit("pageSizeChange",this.pageSizeRange[e])}},methods:{pickerChange(e){this.pageSizeIndex=e.detail.value,this.pickerClick()},pickerClick(){const e=document.querySelector("body");if(!e)return;const t="uni-pagination-picker-show";this.pickerShow=!this.pickerShow,this.pickerShow?e.classList.add(t):setTimeout((()=>e.classList.remove(t)),300)},selectPage(e,t){if(parseInt(e))this.currentIndex=e,this.change("current");else{let e=Math.ceil(this.total/this.pageSize);if(t<=1)return void(this.currentIndex-5>1?this.currentIndex-=5:this.currentIndex=1);if(t>=6)return void(this.currentIndex+5>e?this.currentIndex=e:this.currentIndex+=5)}},clickLeft(){1!==Number(this.currentIndex)&&(this.currentIndex-=1,this.change("prev"))},clickRight(){Number(this.currentIndex)>=this.maxPage||(this.currentIndex+=1,this.change("next"))},change(e){this.$emit("input",this.currentIndex),this.$emit("update:modelValue",this.currentIndex),this.$emit("change",{type:e,current:this.currentIndex})}}},[["render",function(e,t,I,k,v,S){const y=m,z=n(a("uni-icons"),i),b=f,T=_,C=P;return r(),s(C,{class:"uni-pagination"},{default:u((()=>[!0===I.showPageSize||"true"===I.showPageSize?(r(),s(T,{key:0,class:"select-picker",mode:"selector",value:v.pageSizeIndex,range:I.pageSizeRange,onChange:S.pickerChange,onCancel:S.pickerClick,onClick:S.pickerClick},{default:u((()=>[c(b,{type:"default",size:"mini",plain:!0},{default:u((()=>[c(y,null,{default:u((()=>[p(o(I.pageSizeRange[v.pageSizeIndex])+" "+o(S.piecePerPage),1)])),_:1}),c(z,{class:"select-picker-icon",type:"arrowdown",size:"12",color:"#999"})])),_:1})])),_:1},8,["value","range","onChange","onCancel","onClick"])):l("",!0),c(C,{class:"uni-pagination__total is-phone-hide"},{default:u((()=>[p("共 "+o(I.total)+" 条",1)])),_:1}),c(C,{class:g(["uni-pagination__btn",1===v.currentIndex?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":1===v.currentIndex?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:S.clickLeft},{default:u((()=>[!0===I.showIcon||"true"===I.showIcon?(r(),s(z,{key:0,color:"#666",size:"16",type:"left"})):(r(),s(y,{key:1,class:"uni-pagination__child-btn"},{default:u((()=>[p(o(S.prevPageText),1)])),_:1}))])),_:1},8,["class","hover-class","onClick"]),c(C,{class:"uni-pagination__num uni-pagination__num-flex-none"},{default:u((()=>[c(C,{class:"uni-pagination__num-current"},{default:u((()=>[c(y,{class:"uni-pagination__num-current-text is-pc-hide current-index-text"},{default:u((()=>[p(o(v.currentIndex),1)])),_:1}),c(y,{class:"uni-pagination__num-current-text is-pc-hide"},{default:u((()=>[p("/"+o(S.maxPage||0),1)])),_:1}),(r(!0),h(d,null,x(S.paper,((e,t)=>(r(),s(C,{key:t,class:g([{"page--active":e===v.currentIndex},"uni-pagination__num-tag tag--active is-phone-hide"]),onClick:n=>S.selectPage(e,t)},{default:u((()=>[c(y,null,{default:u((()=>[p(o(e),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1}),c(C,{class:g(["uni-pagination__btn",v.currentIndex>=S.maxPage?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":v.currentIndex===S.maxPage?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:S.clickRight},{default:u((()=>[!0===I.showIcon||"true"===I.showIcon?(r(),s(z,{key:0,color:"#666",size:"16",type:"right"})):(r(),s(y,{key:1,class:"uni-pagination__child-btn"},{default:u((()=>[p(o(S.nextPageText),1)])),_:1}))])),_:1},8,["class","hover-class","onClick"])])),_:1})}],["__scopeId","data-v-bd0b20fd"]]);export{v as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-pay-orders.57c55841.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-pay-orders.57c55841.js new file mode 100644 index 0000000000000000000000000000000000000000..07c2bae3b9e196d2280102007c2b1f5eaf988747 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-pay-orders.57c55841.js @@ -0,0 +1 @@ +const e={provider_valuetotext:{wxpay:"微信支付",alipay:"支付宝",appleiap:"苹果应用内支付"},status_valuetotext:{0:"未支付",1:"已支付",2:"已部分退款",3:"已全额退款","-1":"已关闭"}};function t(e,t){let a={};for(let l in e){let{type:n,value:s}=e[l];switch(n){case"search":"string"==typeof s&&s.length&&(a[l]=new RegExp(s));break;case"select":if(s.length){let e=[];for(let a of s)e.push(t.eq(a));a[l]=t.or(e)}break;case"range":if(s.length){let e=s[0],n=s[1];a[l]=t.and([t.gte(e),t.lte(n)])}break;case"date":if(s.length){let[e,n]=s,r=new Date(e),i=new Date(n);a[l]=t.and([t.gte(r),t.lte(i)])}break;case"timestamp":if(s.length){let[e,n]=s;a[l]=t.and([t.gte(e),t.lte(n)])}}}return a}export{e,t as f}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-captcha-e8a89b0e.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-captcha-e8a89b0e.css new file mode 100644 index 0000000000000000000000000000000000000000..7c855fd1a715993c2bf9ddec162c0a28ac3616f3 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-captcha-e8a89b0e.css @@ -0,0 +1 @@ +uni-view[data-v-f0f3582f]{display:flex;flex-direction:column}.popup-captcha[data-v-f0f3582f]{display:flex;max-width:600px;width:18.75rem;padding-bottom:0;background-color:#fff;border-radius:10px;flex-direction:column;position:relative}.popup-captcha .content[data-v-f0f3582f]{padding:1.3em .8em}.popup-captcha .title[data-v-f0f3582f]{text-align:center;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;font-weight:400;font-size:18px;overflow:hidden;text-overflow:ellipsis;color:#111;margin-bottom:15px}.button-box[data-v-f0f3582f]{height:44px;border-top:solid 1px #eee;flex-direction:row;align-items:center;justify-content:space-around}.button-box[data-v-f0f3582f],.btn[data-v-f0f3582f]{height:44px;line-height:44px}.button-box .btn[data-v-f0f3582f]{flex:1;margin:1px;text-align:center}.button-box .confirm[data-v-f0f3582f]{color:#007aff;border-left:solid 1px #eee} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-captcha.a1d919b2.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-captcha.a1d919b2.js new file mode 100644 index 0000000000000000000000000000000000000000..09fc0ec158eb2e2e44d6da94278c123035cc9e96 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-captcha.a1d919b2.js @@ -0,0 +1 @@ +import{_ as e,s as t,f as s,g as a,a5 as o,o as l,c,w as n,a as u,d as i,t as p,p as f,i as r}from"./index-389238f5.js";import{_ as d}from"./uni-captcha.7a7d8040.js";const m=e({data:()=>({focus:!1}),props:{modelValue:String,value:String,scene:{type:String,default:()=>""},title:{type:String,default:()=>""}},computed:{val:{get(){return this.value||this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{open(){this.focus=!0,this.val="",this.$refs.popup.open()},close(){this.focus=!1,this.$refs.popup.close()},confirm(){if(!this.val)return t({title:"请填写验证码",icon:"none"});this.close(),this.$emit("confirm")}}},[["render",function(e,t,m,h,_,v){const g=f,V=s(a("uni-captcha"),d),b=r,k=s(a("uni-popup"),o);return l(),c(k,{ref:"popup",type:"center"},{default:n((()=>[u(b,{class:"popup-captcha"},{default:n((()=>[u(b,{class:"content"},{default:n((()=>[u(g,{class:"title"},{default:n((()=>[i(p(m.title),1)])),_:1}),u(V,{focus:_.focus,scene:m.scene,modelValue:v.val,"onUpdate:modelValue":t[0]||(t[0]=e=>v.val=e)},null,8,["focus","scene","modelValue"])])),_:1}),u(b,{class:"button-box"},{default:n((()=>[u(b,{onClick:v.close,class:"btn"},{default:n((()=>[i("取消")])),_:1},8,["onClick"]),u(b,{onClick:v.confirm,class:"btn confirm"},{default:n((()=>[i("确认")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},512)}],["__scopeId","data-v-f0f3582f"]]);export{m as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-dialog-95c0e766.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-dialog-95c0e766.css new file mode 100644 index 0000000000000000000000000000000000000000..d4ad6312a2292cde9b391348fa36eaa77a8a549b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-dialog-95c0e766.css @@ -0,0 +1 @@ +.uni-popup-dialog[data-v-fcded7e8]{width:300px;border-radius:11px;background-color:#fff}.uni-dialog-title[data-v-fcded7e8]{display:flex;flex-direction:row;justify-content:center;padding-top:25px}.uni-dialog-title-text[data-v-fcded7e8]{font-size:16px;font-weight:500}.uni-dialog-content[data-v-fcded7e8]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:20px}.uni-dialog-content-text[data-v-fcded7e8]{font-size:14px;color:#6c6c6c}.uni-dialog-button-group[data-v-fcded7e8]{display:flex;flex-direction:row;border-top-color:#f5f5f5;border-top-style:solid;border-top-width:1px}.uni-dialog-button[data-v-fcded7e8]{display:flex;flex:1;flex-direction:row;justify-content:center;align-items:center;height:45px}.uni-border-left[data-v-fcded7e8]{border-left-color:#f0f0f0;border-left-style:solid;border-left-width:1px}.uni-dialog-button-text[data-v-fcded7e8]{font-size:16px;color:#333}.uni-button-color[data-v-fcded7e8]{color:#2979ff}.uni-dialog-input[data-v-fcded7e8]{flex:1;font-size:14px;border:1px #eee solid;height:40px;padding:0 10px;border-radius:5px;color:#555}.uni-popup__success[data-v-fcded7e8]{color:#18bc37}.uni-popup__warn[data-v-fcded7e8]{color:#f3a73f}.uni-popup__error[data-v-fcded7e8]{color:#e43d33}.uni-popup__info[data-v-fcded7e8]{color:#909399} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-dialog.39d6dc6f.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-dialog.39d6dc6f.js new file mode 100644 index 0000000000000000000000000000000000000000..0a19d6332ea5310fb3ae939cb3d0b71c4b05d525 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-popup-dialog.39d6dc6f.js @@ -0,0 +1 @@ +import{ap as e,_ as t,o,c as l,w as i,a,z as p,d as u,t as n,C as s,p as c,i as d,M as r}from"./index-389238f5.js";const h={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,o=t.$options.name;for(;o!==e;){if(t=t.$parent,!t)return!1;o=t.$options.name}return t}}},f={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:g}=e(f);const m=t({name:"uniPopupDialog",mixins:[h],emits:["confirm","close"],props:{value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:()=>({dialogType:"error",focus:!1,val:""}),computed:{okText(){return this.confirmText||g("uni-popup.ok")},closeText(){return this.cancelText||g("uni-popup.cancel")},placeholderText(){return this.placeholder||g("uni-popup.placeholder")},titleText(){return this.title||g("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){this.val=e}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted(){this.focus=!0},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(e,t,h,f,g,m){const y=c,T=d,x=r;return o(),l(T,{class:"uni-popup-dialog"},{default:i((()=>[a(T,{class:"uni-dialog-title"},{default:i((()=>[a(y,{class:p(["uni-dialog-title-text",["uni-popup__"+g.dialogType]])},{default:i((()=>[u(n(m.titleText),1)])),_:1},8,["class"])])),_:1}),"base"===h.mode?(o(),l(T,{key:0,class:"uni-dialog-content"},{default:i((()=>[s(e.$slots,"default",{},(()=>[a(y,{class:"uni-dialog-content-text"},{default:i((()=>[u(n(h.content),1)])),_:1})]),!0)])),_:3})):(o(),l(T,{key:1,class:"uni-dialog-content"},{default:i((()=>[s(e.$slots,"default",{},(()=>[a(x,{class:"uni-dialog-input",modelValue:g.val,"onUpdate:modelValue":t[0]||(t[0]=e=>g.val=e),type:"text",placeholder:m.placeholderText,focus:g.focus},null,8,["modelValue","placeholder","focus"])]),!0)])),_:3})),a(T,{class:"uni-dialog-button-group"},{default:i((()=>[a(T,{class:"uni-dialog-button",onClick:m.closeDialog},{default:i((()=>[a(y,{class:"uni-dialog-button-text"},{default:i((()=>[u(n(m.closeText),1)])),_:1})])),_:1},8,["onClick"]),a(T,{class:"uni-dialog-button uni-border-left",onClick:m.onOk},{default:i((()=>[a(y,{class:"uni-dialog-button-text uni-button-color"},{default:i((()=>[u(n(m.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:3})}],["__scopeId","data-v-fcded7e8"]]);export{m as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-portal-8c737489.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-portal-8c737489.css new file mode 100644 index 0000000000000000000000000000000000000000..618bdc678f8e51aec5cf449873efb5ef05cf688b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-portal-8c737489.css @@ -0,0 +1 @@ +.strong[data-v-9817eb0f]{padding:.3125rem;display:inline-block;color:#c7254e}.a-label[data-v-9817eb0f]{text-decoration:none;color:#0366d6;font-weight:700;padding:.3125rem}.text-separated[data-v-9817eb0f]{line-height:2em;color:#2c3e50}.tip[data-v-9817eb0f]{display:flex;flex-direction:column;align-items:flex-start;background-color:#f3f5f7;color:#2c3e50;padding:10px;font-size:1rem;border-color:#409eff;border-left-width:8px;border-left-style:solid}.tip uni-text[data-v-9817eb0f]{margin-right:15px}.tip .custom-button[data-v-9817eb0f]{margin-left:0} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-breadcrumb-41bb7932.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-breadcrumb-41bb7932.css new file mode 100644 index 0000000000000000000000000000000000000000..4da33a32c429a164b50dec7e7167667d14e75aa9 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-breadcrumb-41bb7932.css @@ -0,0 +1 @@ +.uni-breadcrumb-item[data-v-c8775c9c]{display:flex;align-items:center;white-space:nowrap;font-size:14px}.uni-breadcrumb-item--slot[data-v-c8775c9c]{color:#6a6a6a;padding:0 10px}.uni-breadcrumb-item--slot-link[data-v-c8775c9c]{color:#3a3a3a;font-weight:700;cursor:pointer}.uni-breadcrumb-item--slot-link[data-v-c8775c9c]:hover{color:#2979ff}.uni-breadcrumb-item--separator[data-v-c8775c9c]{font-size:12px;color:#6a6a6a}.uni-breadcrumb-item:first-child .uni-breadcrumb-item--slot[data-v-c8775c9c]{padding-left:0}.uni-breadcrumb-item:last-child .uni-breadcrumb-item--separator[data-v-c8775c9c]{display:none}.uni-breadcrumb[data-v-d7415a56]{display:flex}.uni-breadcrumb-x[data-v-14258348]{flex:1;display:flex;padding:0 5px;min-height:55px;line-height:55px;align-items:center} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-breadcrumb.647cd81f.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-breadcrumb.647cd81f.js new file mode 100644 index 0000000000000000000000000000000000000000..d43114f0e6e8bacd1c38736c6512a7207dab8ac9 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-breadcrumb.647cd81f.js @@ -0,0 +1 @@ +import{_ as a,ad as t,x as r,n as e,o as s,c as u,w as o,a as n,z as c,C as d,e as i,d as l,t as p,i as m,p as b,E as f,f as _,g as h,F as v,r as g}from"./index-389238f5.js";const C=a({data:()=>({currentPage:""}),options:{virtualHost:!0},props:{to:{type:String,default:""},replace:{type:Boolean,default:!1}},inject:{uniBreadcrumb:{from:"uniBreadcrumb",default:null}},created(){const a=t(),r=a[a.length-1];r&&(this.currentPage=`/${r.route}`)},computed:{separator(){return this.uniBreadcrumb.separator},separatorClass(){return this.uniBreadcrumb.separatorClass}},methods:{navTo(){const{to:a}=this;a&&this.currentPage!==a&&(this.replace?r({url:a}):e({url:a}))}}},[["render",function(a,t,r,e,f,_){const h=m,v=b;return s(),u(h,{class:"uni-breadcrumb-item"},{default:o((()=>[n(h,{class:c({"uni-breadcrumb-item--slot":!0,"uni-breadcrumb-item--slot-link":r.to&&f.currentPage!==r.to}),onClick:_.navTo},{default:o((()=>[d(a.$slots,"default",{},void 0,!0)])),_:3},8,["class","onClick"]),_.separatorClass?(s(),i("i",{key:0,class:c(["uni-breadcrumb-item--separator",_.separatorClass])},null,2)):(s(),u(v,{key:1,class:"uni-breadcrumb-item--separator"},{default:o((()=>[l(p(_.separator),1)])),_:1}))])),_:3})}],["__scopeId","data-v-c8775c9c"]]);const y=a({options:{virtualHost:!0},props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide(){return{uniBreadcrumb:this}}},[["render",function(a,t,r,e,n,c){const i=m;return s(),u(i,{class:"uni-breadcrumb"},{default:o((()=>[d(a.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-d7415a56"]]);const k=a({name:"uni-stat-breadcrumb",data:()=>({}),computed:{...f("app",["routes"])}},[["render",function(a,t,r,e,c,d){const b=_(h("uni-breadcrumb-item"),C),f=_(h("uni-breadcrumb"),y),k=m;return s(),u(k,{class:"uni-breadcrumb-x"},{default:o((()=>[n(f,{separator:"/"},{default:o((()=>[(s(!0),i(v,null,g(a.routes,((a,t)=>(s(),u(b,{key:t,to:a.to&&a.to.path||""},{default:o((()=>[l(p(a.name),1)])),_:2},1032,["to"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-14258348"]]);export{k as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-panel-77ddbcf2.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-panel-77ddbcf2.css new file mode 100644 index 0000000000000000000000000000000000000000..615015f0411889dff98857df23690ad0e841900d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-panel-77ddbcf2.css @@ -0,0 +1 @@ +.uni-stat-tooltip-s[data-v-e5a3af22]{width:160px;white-space:normal}.uni-stat--sum-x[data-v-e5a3af22]{display:flex;justify-content:space-evenly;flex-wrap:wrap;border-radius:4px;padding:15px;box-shadow:-1px -1px 5px rgba(0,0,0,.1)}.uni-stat--sum-item[data-v-e5a3af22]{white-space:nowrap;text-align:center;margin:10px 18px}.uni-stat--sum-item-width[data-v-e5a3af22]{width:100px}.uni-stat--sum-item-title[data-v-e5a3af22]{display:flex;align-items:center;justify-content:center;min-height:17px;font-size:12px;color:#666}.uni-stat--sum-item-value[data-v-e5a3af22]{font-size:24px;line-height:48px;font-weight:700;color:#333}.uni-stat--sum-item-contrast[data-v-e5a3af22]{font-size:14px;color:#666}@media screen and (max-width: 500px){.uni-stat--sum-x[data-v-e5a3af22]{padding:15px 0;justify-content:space-between;flex-wrap:unset;overflow-x:auto!important}[data-v-e5a3af22]::-webkit-scrollbar{display:none}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-panel.2e6a5931.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-panel.2e6a5931.js new file mode 100644 index 0000000000000000000000000000000000000000..fc9275033f8569b450af27ffcaa79db914039b6f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-panel.2e6a5931.js @@ -0,0 +1 @@ +import{_ as t,f as a,A as s,g as e,o as l,c as i,w as u,e as n,F as o,r as m,z as c,a as r,am as d,d as p,t as f,b as _,i as y}from"./index-389238f5.js";import{_ as v}from"./uni-tooltip.58062496.js";const k=t({name:"uni-stat-panel",data:()=>({}),props:{items:{type:Array,default:()=>[]},contrast:{type:Boolean,default:!1}}},[["render",function(t,k,x,b,h,j){const w=a(e("uni-icons"),s),A=y,g=a(e("uni-tooltip"),v);return l(),i(A,{class:"uni-stat--sum-x mb-m"},{default:u((()=>[(l(!0),n(o,null,m(x.items,((t,a)=>(l(),i(A,{key:a,class:c(["uni-stat--sum-item",["今天"===t.value?"uni-stat--sum-item-width":""]])},{default:u((()=>[r(g,null,d({default:u((()=>[r(A,{class:"uni-stat--sum-item-title"},{default:u((()=>[p(f(t.title?t.title:"")+" ",1),t.title?(l(),i(w,{key:0,class:"ml-s",type:"help",color:"#666"})):_("",!0)])),_:2},1024)])),_:2},[t.tooltip?{name:"content",fn:u((()=>[r(A,{class:"uni-stat-tooltip-s"},{default:u((()=>[p(f(t.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024),r(A,{class:"uni-stat--sum-item-value"},{default:u((()=>[p(f(t.value?t.value:0),1)])),_:2},1024),x.contrast?(l(),i(A,{key:0,class:"uni-stat--sum-item-contrast"},{default:u((()=>[p(f(t.contrast?t.contrast:0),1)])),_:2},1024)):_("",!0)])),_:2},1032,["class"])))),128))])),_:1})}],["__scopeId","data-v-e5a3af22"]]);export{k as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-table-836378df.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-table-836378df.css new file mode 100644 index 0000000000000000000000000000000000000000..ee1887a0bcddb8f1683094cce226df4a14968c8d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-table-836378df.css @@ -0,0 +1 @@ +.uni-stat-tooltip-s[data-v-f1597293]{width:160px;white-space:normal} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-table.19e19a80.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-table.19e19a80.js new file mode 100644 index 0000000000000000000000000000000000000000..0de4ffcf8081fcae489d218233c3e071f5136df7 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-table.19e19a80.js @@ -0,0 +1 @@ +import{_ as t,f as a,A as e,g as l,h as o,j as i,k as s,l as n,o as d,c as u,w as p,a as f,e as r,F as y,r as _,am as c,d as k,t as m,b as g,i as b}from"./index-389238f5.js";import{_ as h}from"./uni-tooltip.58062496.js";const j=t({name:"uni-stat-table",data:()=>({}),props:{data:{type:Array,default:()=>[]},filedsMap:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1}}},[["render",function(t,j,v,x,A,M){const B=a(l("uni-icons"),e),q=b,w=a(l("uni-tooltip"),h),F=a(l("uni-th"),o),I=a(l("uni-tr"),i),T=a(l("uni-td"),s),z=a(l("uni-table"),n);return d(),u(z,{loading:v.loading,border:"",stripe:"",emptyText:"暂无数据"},{default:p((()=>[f(I,null,{default:p((()=>[(d(!0),r(y,null,_(v.filedsMap,((t,a)=>(d(),r(y,{key:a},[t.title?(d(),u(F,{key:a,align:"center"},{default:p((()=>[f(w,null,c({default:p((()=>[k(m(t.title)+" ",1),v.tooltip&&t.tooltip?(d(),u(B,{key:0,type:"help",color:"#666"})):g("",!0)])),_:2},[v.tooltip&&t.tooltip?{name:"content",fn:p((()=>[f(q,{class:"uni-stat-tooltip-s"},{default:p((()=>[k(m(t.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1024)):g("",!0)],64)))),128))])),_:1}),(d(!0),r(y,null,_(v.data,((t,a)=>(d(),u(I,{key:a},{default:p((()=>[(d(!0),r(y,null,_(v.filedsMap,((a,e)=>(d(),r(y,{key:e},[a.title?(d(),u(T,{key:e,align:"center"},{default:p((()=>[k(m(void 0!==t[a.field]?t[a.field]:"-"),1)])),_:2},1024)):g("",!0)],64)))),128))])),_:2},1024)))),128))])),_:1},8,["loading"])}],["__scopeId","data-v-f1597293"]]);export{j as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-tabs-6fbceb64.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-tabs-6fbceb64.css new file mode 100644 index 0000000000000000000000000000000000000000..ff237836e8d6d67031ec284c72f06d9fc551fff8 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-tabs-6fbceb64.css @@ -0,0 +1 @@ +.uni-stat-tooltip-s[data-v-317b24ae]{width:160px;white-space:normal}.uni-label-text[data-v-317b24ae]{font-size:14px;font-weight:700;color:#555;margin-top:17px;margin-bottom:17px;margin-right:5px}.uni-stat--tab-x[data-v-317b24ae]{display:flex;margin:0 15px;white-space:nowrap}.uni-stat--tab[data-v-317b24ae]{display:flex;flex-wrap:wrap}.uni-stat--tab-item[data-v-317b24ae]{white-space:nowrap;font-size:14px;color:#666;text-align:center;cursor:pointer;box-sizing:border-box;margin:15px 0}.uni-stat--tab-item-disabled[data-v-317b24ae]{cursor:unset;opacity:.4}.uni-stat--tab-item-line[data-v-317b24ae]{margin-right:30px;padding:2px 0;border-bottom:1px solid transparent}.uni-stat--tab-item-line[data-v-317b24ae]:last-child{margin-right:0}.uni-stat--tab-item-line-active[data-v-317b24ae]{color:#2979ff;border-bottom:1px solid #2979ff}.uni-stat--tab-item-boldLine[data-v-317b24ae]{box-sizing:border-box;margin-right:30px;padding:2px 0;border-bottom:2px solid transparent}.uni-stat--tab-item-boldLine[data-v-317b24ae]:last-child{margin-right:0}.uni-stat--tab-item-boldLine-active[data-v-317b24ae]{box-sizing:border-box;color:#2979ff;border-bottom:2px solid #2979ff}.uni-stat--tab-item-box[data-v-317b24ae]{padding:5px 15px;border:1px solid #dcdfe6}.uni-stat--tab-item-box[data-v-317b24ae]:not(:last-child){border-right-color:transparent}.uni-stat--tab-item-box-active[data-v-317b24ae]{box-sizing:border-box;border:1px solid #2979ff!important}@media screen and (max-width: 500px){.hide-on-phone[data-v-317b24ae]{display:none}.uni-stat--tab[data-v-317b24ae]{flex-wrap:unset;overflow-x:auto!important}[data-v-317b24ae]::-webkit-scrollbar{display:none}} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-tabs.4355c19c.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-tabs.4355c19c.js new file mode 100644 index 0000000000000000000000000000000000000000..cc045d8b2139db35016268fdef19fb4f996c0b78 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-stat-tabs.4355c19c.js @@ -0,0 +1 @@ +import{_ as t,L as e,ak as a,v as s,f as i,A as l,g as n,o as r,c as d,w as o,d as h,t as c,b as u,a as m,z as p,e as f,F as b,r as y,am as _,i as g}from"./index-389238f5.js";import{_ as C}from"./uni-tooltip.58062496.js";const T=t({name:"uni-stat-tabs",data:()=>({currentTab:0,renderTabs:[],cacheKey:"uni-admin-statTabsData"}),props:{type:{type:String,default:"line"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},current:{type:[String,Number],default:0},mode:{type:String,default:""},today:{type:Boolean,default:!1},yesterday:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},all:{type:Boolean,default:!0},label:{type:String,default:""},placeholder:{type:String,default:"暂无选项"},tabs:{type:Array,default:()=>[]}},created(){this.last=`${this.mode.replace("-","_")}_last_data`},mounted(){this.init()},computed:{},watch:{current:{immediate:!0,handler(t){this.currentTab=t}},tabs:{immediate:!1,handler(t){this.init()}},renderTabs(t){const e=this.current;this.mode&&t.length&&e>=0&&this.$nextTick((function(){const t=this.renderTabs[e];this.change(t,e)}))}},methods:{init(){if(this.mode.indexOf("platform")>-1)this.renderTabs=this.getCache()||[],this.getPlatform();else if("date"===this.mode){const t=[{_id:7,name:"最近七天"},{_id:30,name:"最近30天"},{_id:90,name:"最近90天"}];this.yesterday&&t.unshift({_id:1,name:"昨天"}),this.today&&t.unshift({_id:0,name:"今天"}),this.renderTabs=t}else this.renderTabs=this.tabs},change(t,e){if(t.disabled)return;const a=t._id,s=t.name;this.currentTab=e,this.emit(a,e,s,t)},emit(t,e,a,s){this.$emit("change",t,e,a,s),this.$emit("input",t,e,a),this.$emit("update:modelValue",t,e,a)},getPlatform(){e.database().collection("uni-stat-app-platforms").get().then((t=>{let e=t.result.data;if(e=e.filter((t=>!t.hasOwnProperty("enable")||t.enable)),e.sort(((t,e)=>t.order-e.order)),"platform-channel"===this.mode){e=e.filter((t=>/^android|ios$/.test(t.code)));let t=e.map((t=>`platform_id == "${t._id}"`)).join(" || ");t=`(${t})`,this.setAllItem(e,t)}else if("platform-scene"===this.mode){e=e.filter((t=>/mp-/.test(t.code)));let t=e.map((t=>`platform_id == "${t._id}"`)).join(" || ");t=`(${t})`,this.setAllItem(e,t)}else this.setAllItem(e);this.setCache(e),this.renderTabs=e}))},setAllItem(t,e="",a="全部"){this.all&&t.unshift({name:a,_id:e})},getCurrentCacheKey(){return this.mode},getCache(t=this.getCurrentCacheKey()){return(a(this.cacheKey)||{})[t]},setCache(t,e=this.getCurrentCacheKey()){let i=a(this.cacheKey)||{};i[e]=t,s(this.cacheKey,i)},removeCache(t=this.getCurrentCacheKey()){let e=a(this.cacheKey)||{};delete e[t],s(this.cacheKey,e)}}},[["render",function(t,e,a,s,T,$){const k=g,K=i(n("uni-icons"),l),S=i(n("uni-tooltip"),C);return r(),d(k,{class:"uni-stat--tab-x"},{default:o((()=>[a.label?(r(),d(k,{key:0,class:"uni-label-text hide-on-phone"},{default:o((()=>[h(c(a.label+":"),1)])),_:1})):u("",!0),m(k,{class:"uni-stat--tab"},{default:o((()=>[T.renderTabs.length?(r(!0),f(b,{key:1},y(T.renderTabs,((t,e)=>(r(),d(k,{key:e,onClick:a=>$.change(t,e),class:p(["uni-stat--tab-item",[e===T.currentTab?`uni-stat--tab-item-${a.type}-active`:"",`uni-stat--tab-item-${a.type}`,t.disabled?"uni-stat--tab-item-disabled":""]])},{default:o((()=>[m(S,null,_({default:o((()=>[h(c(t.name)+" ",1),t.tooltip?(r(),d(K,{key:0,type:"help",color:"#666"})):u("",!0)])),_:2},[t.tooltip?{name:"content",fn:o((()=>[m(k,{class:"uni-stat-tooltip-s"},{default:o((()=>[h(c(t.tooltip),1)])),_:2},1024)])),key:"0"}:void 0]),1024)])),_:2},1032,["onClick","class"])))),128)):(r(),d(k,{key:0,class:p(["uni-stat--tab-item uni-stat--tab-item-disabled",[`uni-stat--tab-item-${a.type}`]])},{default:o((()=>[h(c(a.placeholder),1)])),_:1},8,["class"]))])),_:1})])),_:1})}],["__scopeId","data-v-317b24ae"]]);export{T as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-tooltip-6af3c8a4.css b/alpha/admin/unpackage/dist/build/h5/assets/uni-tooltip-6af3c8a4.css new file mode 100644 index 0000000000000000000000000000000000000000..8f7f2847de5c0e5b6b01e40fdba2e729ff541862 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-tooltip-6af3c8a4.css @@ -0,0 +1 @@ +.uni-tooltip[data-v-ed25c689]{position:relative;cursor:pointer}.uni-tooltip-popup[data-v-ed25c689]{z-index:1;display:none;position:absolute;left:0;background-color:#333;border-radius:8px;color:#fff;font-size:12px;text-align:left;line-height:16px;padding:12px}.uni-tooltip:hover .uni-tooltip-popup[data-v-ed25c689]{display:block} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni-tooltip.58062496.js b/alpha/admin/unpackage/dist/build/h5/assets/uni-tooltip.58062496.js new file mode 100644 index 0000000000000000000000000000000000000000..cc8f14e79238828158e75d356ddc41f6d2d2645e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni-tooltip.58062496.js @@ -0,0 +1 @@ +import{_ as t,o,c as s,w as n,C as a,d as e,t as c,b as l,i as p}from"./index-389238f5.js";const d=t({name:"uni-tooltip",data:()=>({}),props:{content:{type:String,default:""},placement:{type:String,default:"bottom"}}},[["render",function(t,d,i,u,r,f){const _=p;return o(),s(_,{class:"uni-tooltip"},{default:n((()=>[a(t.$slots,"default",{},void 0,!0),i.content||t.$slots.content?(o(),s(_,{key:0,class:"uni-tooltip-popup"},{default:n((()=>[a(t.$slots,"content",{},(()=>[e(c(i.content),1)]),!0)])),_:3})):l("",!0)])),_:3})}],["__scopeId","data-v-ed25c689"]]);export{d as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni.baf7f1ff.css b/alpha/admin/unpackage/dist/build/h5/assets/uni.baf7f1ff.css new file mode 100644 index 0000000000000000000000000000000000000000..5304e72700662f48059cf3c5a89d337538505685 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni.baf7f1ff.css @@ -0,0 +1 @@ +uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox-group[hidden]{display:none}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-checkbox-group{display:block}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0px;left:0px;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6)),linear-gradient(0deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}uni-radio:not([disabled]) .uni-radio-input:hover{border-color:#007aff}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-text[selectable]{cursor:auto;user-select:text}uni-text{white-space:pre-line}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-view{display:block}uni-view[hidden]{display:none}uni-actionsheet{display:block;box-sizing:border-box}.uni-actionsheet{position:fixed;left:6px;right:6px;bottom:6px;transform:translateY(100%);backface-visibility:hidden;z-index:999;visibility:hidden;transition:transform .3s,visibility .3s}.uni-actionsheet.uni-actionsheet_toggle{visibility:visible;transform:translate(0)}.uni-actionsheet *{box-sizing:border-box}.uni-actionsheet__menu,.uni-actionsheet__action{border-radius:5px;background-color:#fcfcfd}.uni-actionsheet__action{margin-top:6px}.uni-actionsheet__cell,.uni-actionsheet__title{position:relative;padding:10px 6px;text-align:center;font-size:18px;text-overflow:ellipsis;overflow:hidden;cursor:pointer}.uni-actionsheet__title{position:absolute;top:0;right:0;left:0;z-index:1;color:var(--UI-FG);background-color:#fff;border-radius:5px 5px 0 0;border-bottom:1px solid #e5e5e5}.uni-actionsheet__cell:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #e5e5e5;color:#e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-actionsheet__cell:active{background-color:#ececec}.uni-actionsheet__cell:first-child:before{display:none}@media screen and (min-width: 500px) and (min-height: 500px){.uni-mask.uni-actionsheet__mask{background:none}.uni-actionsheet{width:300px;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);opacity:0;transition:opacity .3s,visibility .3s}.uni-actionsheet.uni-actionsheet_toggle{opacity:1;transform:translate(-50%,-50%)}.uni-actionsheet__menu{box-shadow:0 0 20px 5px rgba(0,0,0,.3)}.uni-actionsheet__action{display:none}}@media (prefers-color-scheme: dark){.uni-actionsheet__title{background-color:var(--UI-BG-1);border-bottom-color:var(--UI-BORDER-CLOLOR-1)}.uni-actionsheet__action,.uni-actionsheet__menu{background-color:var(--UI-BG-2)}.uni-actionsheet__cell:active{background-color:var(--UI-BG-CLOLOR-ACTIVE)}.uni-actionsheet__cell:before{border-top-color:var(--UI-BORDER-CLOLOR-1);color:var(--UI-BORDER-CLOLOR-1)}}uni-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box}.uni-modal{position:fixed;z-index:999;width:80%;max-width:300px;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;text-align:center;border-radius:3px;overflow:hidden}.uni-modal *{box-sizing:border-box}.uni-modal__hd{padding:1em 1.6em .3em}.uni-modal__title{font-weight:400;font-size:18px;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.uni-modal__bd{padding:1.3em 1.6em;min-height:40px;font-size:15px;line-height:1.4;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;color:#999;max-height:400px;overflow-x:hidden;overflow-y:auto}.uni-modal__textarea{resize:none;border:0;margin:0;width:90%;padding:10px;font-size:20px;outline:none;border:none;background-color:#eee;text-decoration:inherit}.uni-modal__ft{position:relative;line-height:48px;font-size:18px;display:flex}.uni-modal__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleY(.5)}.uni-modal__btn{display:block;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative;cursor:pointer}.uni-modal__btn:active{background-color:#eee}.uni-modal__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #d5d5d6;color:#d5d5d6;transform-origin:0 0;transform:scaleX(.5)}.uni-modal__btn:first-child:after{display:none}.uni-modal__btn_default{color:#353535}.uni-modal__btn_primary{color:#007aff}@media (prefers-color-scheme: dark){.uni-modal{color:var(--UI-FG-0);background-color:var(--UI-BG-2)}.uni-modal__bd{color:var(--UI-FG-1)}.uni-modal__btn:active{color:#aaa;background-color:var(--UI-BG-CLOLOR-ACTIVE)}.uni-modal__ft:after,.uni-modal__btn:after{color:var(--UI-BORDER-CLOLOR-1);border-color:var(--UI-BORDER-CLOLOR-1)}}uni-toast{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:block;box-sizing:border-box;pointer-events:none;font-size:16px}.uni-sample-toast{position:fixed;z-index:999;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;max-width:80%}.uni-simple-toast__text{display:inline-block;vertical-align:middle;color:#fff;background-color:rgba(17,17,17,.7);padding:10px 20px;border-radius:5px;font-size:13px;text-align:center;max-width:100%;word-break:break-all;white-space:normal}uni-toast .uni-mask{pointer-events:auto}.uni-toast{position:fixed;z-index:999;width:8em;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(17,17,17,.7);text-align:center;border-radius:5px;color:#fff}.uni-toast *{box-sizing:border-box}.uni-toast__icon{margin:20px 0 0;width:38px!important;height:38px!important;vertical-align:baseline!important}.uni-icon_toast{margin:15px 0 0}.uni-icon_toast.uni-icon-success-no-circle:before{color:#fff;font-size:55px}.uni-icon_toast.uni-loading{margin:20px 0 0;width:38px;height:38px;vertical-align:baseline}.uni-toast__content{margin:0 0 15px}@media (prefers-color-scheme: dark){.uni-toast{background-color:#606060;color:var(--UI-FG-0)}}uni-picker{position:relative;display:block;cursor:pointer}uni-picker[hidden]{display:none}uni-picker[disabled]{cursor:not-allowed}.uni-picker-container{display:none;position:fixed;left:0;right:0;top:0;bottom:0;box-sizing:border-box;z-index:999;font-size:16px}.uni-picker-container .uni-picker-custom *{box-sizing:border-box}.uni-picker-container .uni-picker-custom{position:fixed;left:0;bottom:0;transform:translateY(100%);backface-visibility:hidden;z-index:999;width:100%;background-color:#fff;visibility:hidden;transition:transform .3s,visibility .3s}.uni-picker-container .uni-picker-custom.uni-picker-toggle{visibility:visible;transform:translate(0)}.uni-picker-container .uni-picker-content{position:relative;display:block;width:100%;height:238px;background-color:#fff}.uni-picker-container .uni-picker-item{padding:0;height:34px;line-height:34px;text-align:center;color:#000;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.uni-picker-container .uni-picker-header{display:block;position:relative;text-align:center;width:100%;height:45px}.uni-picker-container .uni-picker-header:after{content:"";position:absolute;left:0;bottom:0;right:0;height:1px;clear:both;border-bottom:1px solid #e5e5e5;color:#e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-container .uni-picker-action{display:block;max-width:50%;top:0;height:100%;box-sizing:border-box;padding:0 14px;font-size:17px;line-height:45px;overflow:hidden;cursor:pointer}.uni-picker-container .uni-picker-action.uni-picker-action-cancel{float:left;color:#888}.uni-picker-container .uni-picker-action.uni-picker-action-confirm{float:right;color:#007aff}.uni-picker-container .uni-picker-select{display:none}.uni-picker-system{position:absolute;display:none;display:block;top:0;left:0;width:100%;height:100%;overflow:hidden}.uni-picker-system>.uni-picker-system_input{position:absolute;border:none;height:100%;opacity:0;cursor:pointer}.uni-picker-system>.uni-picker-system_input.firefox{top:0;left:0;width:100%}.uni-picker-system>.uni-picker-system_input.chrome{top:0;left:0;width:2em;font-size:32px;height:32px}@media screen and (min-width: 500px) and (min-height: 500px){.uni-mask.uni-picker-mask{background:none}.uni-picker-container .uni-picker-custom{width:300px;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);opacity:0;border-radius:5px;transition:opacity .3s,visibility .3s;box-shadow:0 0 20px 5px rgba(0,0,0,.3)}.uni-picker-container .uni-picker-header{border-radius:5px 5px 0 0}.uni-picker-container .uni-picker-content{transform:translate(0 0);overflow:hidden;border-radius:0 0 5px 5px}.uni-picker-container .uni-picker-custom.uni-picker-toggle{opacity:1;transform:translate(-50%,-50%)}.uni-selector-select .uni-picker-header,.uni-selector-select .uni-picker-content{display:none}.uni-selector-select .uni-picker-select{display:block;max-height:300px;overflow:auto;background-color:#fff;border-radius:5px;padding:6px 0}.uni-selector-select .uni-picker-item{padding:0 10px;color:#555}.uni-selector-select .uni-picker-item:hover{background-color:#f6f6f6}.uni-selector-select .uni-picker-item.selected{color:#007aff}}@media (prefers-color-scheme: dark){.uni-picker-container .uni-picker-content{background-color:var(--UI-BG-2)}.uni-picker-container .uni-picker-action.uni-picker-action-cancel{color:var(--UI-FG-0)}.uni-picker-container .uni-picker-custom{background-color:var(--UI-BG-2)}.uni-selector-select .uni-picker-item{color:var(--UI-FG-0)}.uni-picker-container .uni-picker-header:after{border-bottom-color:var(--UI-FG-3)}}uni-web-view{display:flex}uni-web-view.uni-webview--fullscreen{position:absolute;left:0;right:0;top:0;bottom:0} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-common-webview-webview.e810cea7.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-common-webview-webview.e810cea7.js new file mode 100644 index 0000000000000000000000000000000000000000..d3e7e9554e6d9c9b4260ed31cf00c76a8619c37c --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-common-webview-webview.e810cea7.js @@ -0,0 +1 @@ +import{_ as t,y as s,G as a,af as l,o as e,c as n,w as r,i as o,b as u,ag as c}from"./index-389238f5.js";const i=t({onLoad({url:t,title:e}){"http"!=t.substring(0,4)?(s({title:"错误",content:'不是一个有效的网站链接,"'+t+'"',showCancel:!1,confirmText:"知道了",complete:()=>{a()}}),e="页面路径错误"):this.url=t,e&&l({title:e})},data:()=>({url:null})},[["render",function(t,s,a,l,i,d){const f=c,m=o;return e(),n(m,null,{default:r((()=>[i.url?(e(),n(f,{key:0,src:i.url},null,8,["src"])):u("",!0)])),_:1})}]]);export{i as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-smscode.f55038fb.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-smscode.f55038fb.js new file mode 100644 index 0000000000000000000000000000000000000000..37e11a3f8db7123f7a28503f72a8be93075b3e8e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-smscode.f55038fb.js @@ -0,0 +1 @@ +import{_ as o,L as s,s as e,o as t,c as a,w as n,i,a as p,d as c,m as u,p as l,f as r,g as m,q as d}from"./index-389238f5.js";import{_ as h}from"./uni-id-pages-sms-form.2fbc0429.js";import{_ as f}from"./uni-forms.bc4bcf6e.js";import{_ as g}from"./uni-popup-captcha.a1d919b2.js";import{m as _}from"./login-page.mixin.6ab7e5a6.js";import"./uni-captcha.7a7d8040.js";import"./uni-easyinput.a1fc57c1.js";const b=o({mixins:[_],data:()=>({code:"",phone:"",captcha:"",logo:"/static/logo.png"}),computed:{tipText(){return"验证码已通过短信发送至"+this.phone}},onLoad({phoneNumber:o}){this.phone=o},onShow(){document.onkeydown=o=>{var s=o||window.event;s&&13==s.keyCode&&this.submit()}},methods:{submit(){const o=s.importObject("uni-id-co",{errorOptions:{type:"toast"}});if(6!=this.code.length)return this.$refs.smsCode.focusSmsCodeInput=!0,e({title:"验证码不能为空",icon:"none",duration:3e3});o.loginBySms({mobile:this.phone,code:this.code,captcha:this.captcha}).then((o=>{this.loginSuccess(o)})).catch((o=>{"uni-id-captcha-required"==o.errCode?this.$refs.popup.open():console.log(o.errMsg)})).finally((o=>{this.captcha=""}))}}},[["render",function(o,s,e,_,b,y){const C=u,j=i,x=l,V=r(m("uni-id-pages-sms-form"),h),w=d,k=r(m("uni-forms"),f),S=r(m("uni-popup-captcha"),g);return t(),a(j,{class:"uni-content"},{default:n((()=>[p(j,{class:"login-logo"},{default:n((()=>[p(C,{src:b.logo},null,8,["src"])])),_:1}),p(x,{class:"title"},{default:n((()=>[c("请输入验证码")])),_:1}),p(x,{class:"tip"},{default:n((()=>[c("先输入图形验证码,再获取短信验证码")])),_:1}),p(k,null,{default:n((()=>[p(V,{focusCaptchaInput:"",modelValue:b.code,"onUpdate:modelValue":s[0]||(s[0]=o=>b.code=o),type:"login-by-sms",ref:"smsCode",phone:b.phone},null,8,["modelValue","phone"]),p(w,{class:"uni-btn send-btn",type:"primary",onClick:y.submit},{default:n((()=>[c("登录")])),_:1},8,["onClick"])])),_:1}),p(S,{onConfirm:y.submit,modelValue:b.captcha,"onUpdate:modelValue":s[1]||(s[1]=o=>b.captcha=o),scene:"login-by-sms",ref:"popup"},null,8,["onConfirm","modelValue"])])),_:1})}],["__scopeId","data-v-93225fe2"]]);export{b as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-withoutpwd.89332b49.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-withoutpwd.89332b49.js new file mode 100644 index 0000000000000000000000000000000000000000..9c1591da403d31c72de49c40de02f1520538bf9f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-withoutpwd.89332b49.js @@ -0,0 +1 @@ +import{_ as e,aa as i,ab as n,ac as s,s as o,n as t,o as a,c as l,w as u,i as p,a as r,d,e as c,F as g,m,p as h,q as f,f as y,g as b}from"./index-389238f5.js";import{_}from"./uni-id-pages-agreements.0414ff30.js";import{_ as k}from"./uni-easyinput.a1fc57c1.js";import{_ as w}from"./uni-id-pages-fab-login.8d4ba320.js";import{m as x}from"./login-page.mixin.6ab7e5a6.js";import"./uni-popup-dialog.39d6dc6f.js";const L=e({mixins:[x],data:()=>({type:"",phone:"",focusPhone:!1,logo:"/static/logo.png"}),computed:{loginTypes:async()=>i.loginTypes,isPhone(){return/^1\d{10}$/.test(this.phone)},imgSrc(){return"weixin"==this.type?"/uni_modules/uni-id-pages/static/login/weixin.png":"/uni_modules/uni-id-pages/static/app-plus/apple.png"}},async onLoad(e){let s=e.type||i.loginTypes[0];this.type=s,"univerify"!=s&&(this.focusPhone=!0),this.$nextTick((()=>{["weixin","apple"].includes(s)&&(this.$refs.uniFabLogin.servicesList=this.$refs.uniFabLogin.servicesList.filter((e=>e.id!=s)))})),n("uni-id-pages-setLoginType",(e=>{this.type=e}))},onShow(){document.onkeydown=e=>{var i=e||window.event;i&&13==i.keyCode&&this.toSmsPage()}},onUnload(){s("uni-id-pages-setLoginType")},onReady(){},methods:{showCurrentWebview(){undefined.setStyle({top:0})},quickLogin(e){var i,n;let s={};(null==(i=e.detail)?void 0:i.code)&&(s.phoneNumberCode=e.detail.code),("weixinMobile"!==this.type||(null==(n=e.detail)?void 0:n.code))&&this.$refs.uniFabLogin.login_before(this.type,!0,s)},toSmsPage(){return this.isPhone?this.needAgreements&&!this.agree?this.$refs.agreements.popup(this.toSmsPage):void t({url:"/uni_modules/uni-id-pages/pages/login/login-smscode?phoneNumber="+this.phone}):(this.focusPhone=!0,o({title:"手机号码格式不正确",icon:"none",duration:3e3}))},toPwdLogin(){t({url:"../login/password"})},chooseArea(){o({title:"暂不支持其他国家",icon:"none",duration:3e3})}}},[["render",function(e,i,n,s,o,t){const x=m,L=p,P=h,v=f,C=y(b("uni-id-pages-agreements"),_),S=y(b("uni-easyinput"),k),j=y(b("uni-id-pages-fab-login"),w);return a(),l(L,{class:"uni-content"},{default:u((()=>[r(L,{class:"login-logo"},{default:u((()=>[r(x,{src:o.logo},null,8,["src"])])),_:1}),r(P,{class:"title"},{default:u((()=>[d("请选择登录方式")])),_:1}),["apple","weixin","weixinMobile"].includes(o.type)?(a(),c(g,{key:0},[r(P,{class:"tip"},{default:u((()=>[d("将根据第三方账号服务平台的授权范围获取你的信息")])),_:1}),r(L,{class:"quickLogin"},{default:u((()=>["weixinMobile"!==o.type?(a(),l(x,{key:0,onClick:t.quickLogin,src:t.imgSrc,mode:"widthFix",class:"quickLoginBtn"},null,8,["onClick","src"])):(a(),l(v,{key:1,type:"primary","open-type":"getPhoneNumber",onGetphonenumber:t.quickLogin,class:"uni-btn"},{default:u((()=>[d("微信授权手机号登录")])),_:1},8,["onGetphonenumber"])),r(C,{scope:"register",ref:"agreements"},null,512)])),_:1})],64)):(a(),c(g,{key:1},[r(P,{class:"tip"},{default:u((()=>[d("未注册的账号验证通过后将自动注册")])),_:1}),r(L,{class:"phone-box"},{default:u((()=>[r(L,{onClick:t.chooseArea,class:"area"},{default:u((()=>[d("+86")])),_:1},8,["onClick"]),r(S,{focus:o.focusPhone,onBlur:i[0]||(i[0]=e=>o.focusPhone=!1),class:"input-box",type:"number",inputBorder:!1,modelValue:o.phone,"onUpdate:modelValue":i[1]||(i[1]=e=>o.phone=e),maxlength:"11",placeholder:"请输入手机号"},null,8,["focus","modelValue"])])),_:1}),r(C,{scope:"register",ref:"agreements"},null,512),r(v,{class:"uni-btn",type:"primary",onClick:t.toSmsPage},{default:u((()=>[d("获取验证码")])),_:1},8,["onClick"])],64)),r(j,{ref:"uniFabLogin"},null,512)])),_:1})}],["__scopeId","data-v-e394d6b8"]]);export{L as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-withpwd.668f64ea.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-withpwd.668f64ea.js new file mode 100644 index 0000000000000000000000000000000000000000..cb1e324ef1ad3cda9805568de4de0151acd3329f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-login-login-withpwd.668f64ea.js @@ -0,0 +1 @@ +import{_ as e,L as s,n as a,s as t,o as i,c as n,w as o,i as r,a as u,d as l,b as c,t as d,m as p,p as m,f,g as h,q as g}from"./index-389238f5.js";import{_ as w}from"./uni-easyinput.a1fc57c1.js";import{_}from"./uni-forms-item.69698491.js";import{_ as C}from"./uni-forms.bc4bcf6e.js";import{_ as b}from"./uni-captcha.7a7d8040.js";import{_ as k}from"./uni-id-pages-agreements.0414ff30.js";import{_ as y}from"./uni-id-pages-fab-login.8d4ba320.js";import{m as j}from"./login-page.mixin.6ab7e5a6.js";import"./uni-popup-dialog.39d6dc6f.js";const x=s.importObject("uni-id-co",{errorOptions:{type:"toast"}});const V=e({mixins:[j],data:()=>({password:"",username:"",captcha:"",needCaptcha:!1,focusUsername:!1,focusPassword:!1,logo:"/static/logo.png"}),onShow(){document.onkeydown=e=>{var s=e||window.event;s&&13==s.keyCode&&this.pwdLogin()}},methods:{toRetrievePwd(){let e="/uni_modules/uni-id-pages/pages/retrieve/retrieve";/^1\d{10}$/.test(this.username)&&(e+=`?phoneNumber=${this.username}`),a({url:e})},pwdLogin(){if(!this.password.length)return this.focusPassword=!0,t({title:"请输入密码",icon:"none",duration:3e3});if(!this.username.length)return this.focusUsername=!0,t({title:"请输入手机号/用户名/邮箱",icon:"none",duration:3e3});if(this.needCaptcha&&4!=this.captcha.length)return this.$refs.captcha.getImageCaptcha(),t({title:"请输入验证码",icon:"none",duration:3e3});if(this.needAgreements&&!this.agree)return this.$refs.agreements.popup(this.pwdLogin);let e={password:this.password,captcha:this.captcha};/^1\d{10}$/.test(this.username)?e.mobile=this.username:/@/.test(this.username)?e.email=this.username:e.username=this.username,x.login(e).then((e=>{this.loginSuccess(e)})).catch((e=>{"uni-id-captcha-required"==e.errCode?this.needCaptcha=!0:this.needCaptcha&&this.$refs.captcha.getImageCaptcha()}))},toRegister(){a({url:this.config.isAdmin?"/uni_modules/uni-id-pages/pages/register/register-admin":"/uni_modules/uni-id-pages/pages/register/register",fail(e){console.error(e)}})}}},[["render",function(e,s,a,t,j,x){const V=p,v=r,U=m,L=f(h("uni-easyinput"),w),P=f(h("uni-forms-item"),_),$=f(h("uni-forms"),C),A=f(h("uni-captcha"),b),B=f(h("uni-id-pages-agreements"),k),R=g,I=f(h("uni-id-pages-fab-login"),y);return i(),n(v,{class:"uni-content"},{default:o((()=>[u(v,{class:"login-logo"},{default:o((()=>[u(V,{src:j.logo},null,8,["src"])])),_:1}),u(U,{class:"title title-box"},{default:o((()=>[l("账号密码登录")])),_:1}),u($,null,{default:o((()=>[u(P,{name:"username"},{default:o((()=>[u(L,{focus:j.focusUsername,onBlur:s[0]||(s[0]=e=>j.focusUsername=!1),class:"input-box",inputBorder:!1,modelValue:j.username,"onUpdate:modelValue":s[1]||(s[1]=e=>j.username=e),placeholder:"请输入手机号/用户名/邮箱"},null,8,["focus","modelValue"])])),_:1}),u(P,{name:"password"},{default:o((()=>[u(L,{focus:j.focusPassword,onBlur:s[2]||(s[2]=e=>j.focusPassword=!1),class:"input-box",clearable:"",type:"password",inputBorder:!1,modelValue:j.password,"onUpdate:modelValue":s[3]||(s[3]=e=>j.password=e),placeholder:"请输入密码"},null,8,["focus","modelValue"])])),_:1})])),_:1}),j.needCaptcha?(i(),n(A,{key:0,focus:"",ref:"captcha",scene:"login-by-pwd",modelValue:j.captcha,"onUpdate:modelValue":s[4]||(s[4]=e=>j.captcha=e)},null,8,["modelValue"])):c("",!0),u(B,{scope:"login",ref:"agreements"},null,512),u(R,{class:"uni-btn",type:"primary",onClick:x.pwdLogin},{default:o((()=>[l("登录")])),_:1},8,["onClick"]),u(v,{class:"link-box"},{default:o((()=>[e.config.isAdmin?c("",!0):(i(),n(v,{key:0},{default:o((()=>[u(U,{class:"forget"},{default:o((()=>[l("忘记了?")])),_:1}),u(U,{class:"link",onClick:x.toRetrievePwd},{default:o((()=>[l("找回密码")])),_:1},8,["onClick"])])),_:1})),u(U,{class:"link",onClick:x.toRegister},{default:o((()=>[l(d(e.config.isAdmin?"注册管理员账号":"注册账号"),1)])),_:1},8,["onClick"])])),_:1}),u(I,{ref:"uniFabLogin"},null,512)])),_:1})}],["__scopeId","data-v-e40f8cce"]]);export{V as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register-admin.8d337068.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register-admin.8d337068.js new file mode 100644 index 0000000000000000000000000000000000000000..465ad901830ad05764f499f6f7e4dcbfc139bcb6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register-admin.8d337068.js @@ -0,0 +1 @@ +import{_ as a,L as e,s,G as o,y as t,n as r,o as l,c as i,w as u,i as n,a as m,d,m as c,p,f,g as h,q as g}from"./index-389238f5.js";import{_ as w}from"./uni-match-media.cb822f29.js";import{_}from"./uni-easyinput.a1fc57c1.js";import{_ as k}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-captcha.7a7d8040.js";import{_ as V}from"./uni-id-pages-agreements.0414ff30.js";import{_ as D}from"./uni-forms.bc4bcf6e.js";import{r as y}from"./validator.496e107f.js";import{m as x}from"./login-page.mixin.6ab7e5a6.js";import"./uni-popup-dialog.39d6dc6f.js";import"./password.4f678814.js";const j=e.importObject("uni-id-co",{customUI:!0});const v=a({mixins:[x],data:()=>({formData:{username:"",nickname:"",password:"",password2:"",captcha:""},rules:y,focusUsername:!1,focusNickname:!1,focusPassword:!1,focusPassword2:!1,logo:"/static/logo.png"}),onReady(){this.$refs.form.setRules(this.rules)},onShow(){document.onkeydown=a=>{var e=a||window.event;e&&13==e.keyCode&&this.submit()}},methods:{submit(){this.$refs.form.validate().then((a=>4!=this.formData.captcha.length?(this.$refs.captcha.focusCaptchaInput=!0,s({title:"请输入验证码",icon:"none",duration:3e3})):this.needAgreements&&!this.agree?this.$refs.agreements.popup((()=>{this.submitForm(a)})):void this.submitForm(a))).catch((a=>{let e=a[0].key;e=e.replace(e[0],e[0].toUpperCase()),this["focus"+e]=!0}))},submitForm(a){j.registerAdmin(this.formData).then((a=>{o()})).catch((a=>{this.$refs.captcha.getImageCaptcha(),t({title:"提示",content:a.errMsg||`创建失败: ${a.errCode}`,showCancel:!1})}))},navigateBack(){o()},toLogin(){r({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"})},registerByEmail(){r({url:"/uni_modules/uni-id-pages/pages/register/register-by-email"})}}},[["render",function(a,e,s,o,t,r){const y=c,x=n,j=p,v=f(h("uni-match-media"),w),C=f(h("uni-easyinput"),_),U=f(h("uni-forms-item"),k),B=f(h("uni-captcha"),b),P=f(h("uni-id-pages-agreements"),V),$=g,q=f(h("uni-forms"),D);return l(),i(x,{class:"uni-content"},{default:u((()=>[m(v,{"min-width":690},{default:u((()=>[m(x,{class:"login-logo"},{default:u((()=>[m(y,{src:t.logo},null,8,["src"])])),_:1}),m(j,{class:"title title-box"},{default:u((()=>[d("创建超级管理员")])),_:1})])),_:1}),m(q,{ref:"form",value:t.formData,rules:t.rules,"validate-trigger":"submit","err-show-type":"toast"},{default:u((()=>[m(U,{name:"username",required:""},{default:u((()=>[m(C,{inputBorder:!1,focus:t.focusUsername,onBlur:e[0]||(e[0]=a=>t.focusUsername=!1),class:"input-box",placeholder:"请输入用户名",modelValue:t.formData.username,"onUpdate:modelValue":e[1]||(e[1]=a=>t.formData.username=a),trim:"both"},null,8,["focus","modelValue"])])),_:1}),m(U,{name:"nickname"},{default:u((()=>[m(C,{inputBorder:!1,focus:t.focusNickname,onBlur:e[2]||(e[2]=a=>t.focusNickname=!1),class:"input-box",placeholder:"请输入用户昵称",modelValue:t.formData.nickname,"onUpdate:modelValue":e[3]||(e[3]=a=>t.formData.nickname=a),trim:"both"},null,8,["focus","modelValue"])])),_:1}),m(U,{name:"password",modelValue:t.formData.password,"onUpdate:modelValue":e[6]||(e[6]=a=>t.formData.password=a),required:""},{default:u((()=>[m(C,{inputBorder:!1,focus:t.focusPassword,onBlur:e[4]||(e[4]=a=>t.focusPassword=!1),class:"input-box",maxlength:"20",placeholder:"请输入"+("weak"==a.config.passwordStrength?"6":"8")+"-16位密码",type:"password",modelValue:t.formData.password,"onUpdate:modelValue":e[5]||(e[5]=a=>t.formData.password=a),trim:"both"},null,8,["focus","placeholder","modelValue"])])),_:1},8,["modelValue"]),m(U,{name:"password2",modelValue:t.formData.password2,"onUpdate:modelValue":e[9]||(e[9]=a=>t.formData.password2=a),required:""},{default:u((()=>[m(C,{inputBorder:!1,focus:t.focusPassword2,onBlur:e[7]||(e[7]=a=>t.focusPassword2=!1),class:"input-box",placeholder:"再次输入密码",maxlength:"20",type:"password",modelValue:t.formData.password2,"onUpdate:modelValue":e[8]||(e[8]=a=>t.formData.password2=a),trim:"both"},null,8,["focus","modelValue"])])),_:1},8,["modelValue"]),m(U,null,{default:u((()=>[m(B,{ref:"captcha",scene:"register",modelValue:t.formData.captcha,"onUpdate:modelValue":e[10]||(e[10]=a=>t.formData.captcha=a)},null,8,["modelValue"])])),_:1}),m(P,{scope:"register",ref:"agreements"},null,512),m($,{class:"uni-btn",type:"primary",onClick:r.submit},{default:u((()=>[d("注册")])),_:1},8,["onClick"]),m($,{onClick:r.navigateBack,class:"register-back"},{default:u((()=>[d("返回")])),_:1},8,["onClick"]),m(v,{"min-width":690},{default:u((()=>[m(x,{class:"link-box"},{default:u((()=>[m(j,{class:"link",onClick:r.toLogin},{default:u((()=>[d("已有账号?点此登录")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["value","rules"])])),_:1})}],["__scopeId","data-v-e75f6013"]]);export{v as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register-by-email.ae7991c3.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register-by-email.ae7991c3.js new file mode 100644 index 0000000000000000000000000000000000000000..242f6cc7604b9b4b7ba274d48b1b6d93e71a048f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register-by-email.ae7991c3.js @@ -0,0 +1 @@ +import{_ as e,L as a,n as s,G as o,o as r,c as t,w as l,i,a as m,d as u,m as n,p as d,f as c,g as p,q as f}from"./index-389238f5.js";import{_ as g}from"./uni-match-media.cb822f29.js";import{_ as h}from"./uni-easyinput.a1fc57c1.js";import{_ as w}from"./uni-forms-item.69698491.js";import{_}from"./uni-id-pages-email-form.79cacd6d.js";import{_ as k}from"./uni-id-pages-agreements.0414ff30.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import"./validator.496e107f.js";import{m as V}from"./login-page.mixin.6ab7e5a6.js";import{p as D}from"./password.4f678814.js";import"./uni-captcha.7a7d8040.js";import"./uni-popup-dialog.39d6dc6f.js";const y=a.importObject("uni-id-co");const x=e({mixins:[V],data:()=>({formData:{email:"",nickname:"",password:"",password2:"",code:""},rules:{email:{rules:[{required:!0,errorMessage:"请输入邮箱"},{format:"email",errorMessage:"邮箱格式不正确"}]},nickname:{rules:[{minLength:3,maxLength:32,errorMessage:"昵称长度在 {minLength} 到 {maxLength} 个字符"},{validateFunction:function(e,a,s,o){return(/^1\d{10}$/.test(a)||/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(a))&&o("昵称不能是:手机号或邮箱"),/^\d+$/.test(a)&&o("昵称不能为纯数字"),!0}}],label:"昵称"},...D.getPwdRules(),code:{rules:[{required:!0,errorMessage:"请输入邮箱验证码"},{pattern:/^.{6}$/,errorMessage:"邮箱验证码不正确"}]}},focusEmail:!1,focusNickname:!1,focusPassword:!1,focusPassword2:!1,logo:"/static/logo.png"}),onReady(){this.$refs.form.setRules(this.rules)},onShow(){document.onkeydown=e=>{var a=e||window.event;a&&13==a.keyCode&&this.submit()}},methods:{submit(){this.$refs.form.validate().then((e=>{if(this.needAgreements&&!this.agree)return this.$refs.agreements.popup((()=>{this.submitForm(e)}));this.submitForm(e)})).catch((e=>{let a=e[0].key;a=a.replace(a[0],a[0].toUpperCase()),this["focus"+a]=!0}))},submitForm(e){y.registerUserByEmail(this.formData).then((e=>{s({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd",complete:e=>{}})})).catch((e=>{console.log(e.message)}))},navigateBack(){o()},toLogin(){s({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"})},registerByUserName(){s({url:"/uni_modules/uni-id-pages/pages/register/register"})}}},[["render",function(e,a,s,o,V,D){const y=n,x=i,j=d,B=c(p("uni-match-media"),g),v=c(p("uni-easyinput"),h),C=c(p("uni-forms-item"),w),U=c(p("uni-id-pages-email-form"),_),L=c(p("uni-id-pages-agreements"),k),P=f,$=c(p("uni-forms"),b);return r(),t(x,{class:"uni-content"},{default:l((()=>[m(B,{"min-width":690},{default:l((()=>[m(x,{class:"login-logo"},{default:l((()=>[m(y,{src:V.logo},null,8,["src"])])),_:1}),m(j,{class:"title title-box"},{default:l((()=>[u("邮箱验证码注册")])),_:1})])),_:1}),m($,{ref:"form",value:V.formData,rules:V.rules,"validate-trigger":"submit","err-show-type":"toast"},{default:l((()=>[m(C,{name:"email",required:""},{default:l((()=>[m(v,{inputBorder:!1,focus:V.focusEmail,onBlur:a[0]||(a[0]=e=>V.focusEmail=!1),class:"input-box",placeholder:"请输入邮箱",modelValue:V.formData.email,"onUpdate:modelValue":a[1]||(a[1]=e=>V.formData.email=e),trim:"both"},null,8,["focus","modelValue"])])),_:1}),m(C,{name:"nickname"},{default:l((()=>[m(v,{inputBorder:!1,focus:V.focusNickname,onBlur:a[2]||(a[2]=e=>V.focusNickname=!1),class:"input-box",placeholder:"请输入用户昵称",modelValue:V.formData.nickname,"onUpdate:modelValue":a[3]||(a[3]=e=>V.formData.nickname=e),trim:"both"},null,8,["focus","modelValue"])])),_:1}),m(C,{name:"password",modelValue:V.formData.password,"onUpdate:modelValue":a[6]||(a[6]=e=>V.formData.password=e),required:""},{default:l((()=>[m(v,{inputBorder:!1,focus:V.focusPassword,onBlur:a[4]||(a[4]=e=>V.focusPassword=!1),class:"input-box",maxlength:"20",placeholder:"请输入"+("weak"==e.config.passwordStrength?"6":"8")+"-16位密码",type:"password",modelValue:V.formData.password,"onUpdate:modelValue":a[5]||(a[5]=e=>V.formData.password=e),trim:"both"},null,8,["focus","placeholder","modelValue"])])),_:1},8,["modelValue"]),m(C,{name:"password2",modelValue:V.formData.password2,"onUpdate:modelValue":a[9]||(a[9]=e=>V.formData.password2=e),required:""},{default:l((()=>[m(v,{inputBorder:!1,focus:V.focusPassword2,onBlur:a[7]||(a[7]=e=>V.focusPassword2=!1),class:"input-box",placeholder:"再次输入密码",maxlength:"20",type:"password",modelValue:V.formData.password2,"onUpdate:modelValue":a[8]||(a[8]=e=>V.formData.password2=e),trim:"both"},null,8,["focus","modelValue"])])),_:1},8,["modelValue"]),m(C,{name:"code"},{default:l((()=>[m(U,{ref:"shortCode",email:V.formData.email,type:"register",modelValue:V.formData.code,"onUpdate:modelValue":a[10]||(a[10]=e=>V.formData.code=e)},null,8,["email","modelValue"])])),_:1}),m(L,{scope:"register",ref:"agreements"},null,512),m(P,{class:"uni-btn",type:"primary",onClick:D.submit},{default:l((()=>[u("注册")])),_:1},8,["onClick"]),m(P,{onClick:D.navigateBack,class:"register-back"},{default:l((()=>[u("返回")])),_:1},8,["onClick"]),m(B,{"min-width":690},{default:l((()=>[m(x,{class:"link-box"},{default:l((()=>[m(j,{class:"link",onClick:D.registerByUserName},{default:l((()=>[u("用户名密码注册")])),_:1},8,["onClick"]),m(j,{class:"link",onClick:D.toLogin},{default:l((()=>[u("已有账号?点此登录")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["value","rules"])])),_:1})}],["__scopeId","data-v-6ac98dd5"]]);export{x as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register.575c11d6.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register.575c11d6.js new file mode 100644 index 0000000000000000000000000000000000000000..48cec9bf38570d85b71d7c2650c10b996ed7710e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-register-register.575c11d6.js @@ -0,0 +1 @@ +import{_ as a,L as e,s,G as o,n as t,o as r,c as l,w as i,i as u,a as n,d as m,m as d,p as c,f as p,g as f,q as h}from"./index-389238f5.js";import{_ as g}from"./uni-match-media.cb822f29.js";import{_ as w}from"./uni-easyinput.a1fc57c1.js";import{_}from"./uni-forms-item.69698491.js";import{_ as k}from"./uni-captcha.7a7d8040.js";import{_ as b}from"./uni-id-pages-agreements.0414ff30.js";import{_ as V}from"./uni-forms.bc4bcf6e.js";import{r as D}from"./validator.496e107f.js";import{m as y}from"./login-page.mixin.6ab7e5a6.js";import"./uni-popup-dialog.39d6dc6f.js";import"./password.4f678814.js";const x=e.importObject("uni-id-co");const j=a({mixins:[y],data:()=>({formData:{username:"",nickname:"",password:"",password2:"",captcha:""},rules:D,focusUsername:!1,focusNickname:!1,focusPassword:!1,focusPassword2:!1,logo:"/static/logo.png"}),onReady(){this.$refs.form.setRules(this.rules)},onShow(){document.onkeydown=a=>{var e=a||window.event;e&&13==e.keyCode&&this.submit()}},methods:{submit(){this.$refs.form.validate().then((a=>4!=this.formData.captcha.length?(this.$refs.captcha.focusCaptchaInput=!0,s({title:"请输入验证码",icon:"none",duration:3e3})):this.needAgreements&&!this.agree?this.$refs.agreements.popup((()=>{this.submitForm(a)})):void this.submitForm(a))).catch((a=>{let e=a[0].key;e=e.replace(e[0],e[0].toUpperCase()),this["focus"+e]=!0}))},submitForm(a){x.registerUser(this.formData).then((a=>{this.loginSuccess(a)})).catch((a=>{console.log(a.message),this.$refs.captcha.getImageCaptcha()}))},navigateBack(){o()},toLogin(){t({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"})},registerByEmail(){t({url:"/uni_modules/uni-id-pages/pages/register/register-by-email"})}}},[["render",function(a,e,s,o,t,D){const y=d,x=u,j=c,v=p(f("uni-match-media"),g),B=p(f("uni-easyinput"),w),C=p(f("uni-forms-item"),_),U=p(f("uni-captcha"),k),P=p(f("uni-id-pages-agreements"),b),$=h,q=p(f("uni-forms"),V);return r(),l(x,{class:"uni-content"},{default:i((()=>[n(v,{"min-width":690},{default:i((()=>[n(x,{class:"login-logo"},{default:i((()=>[n(y,{src:t.logo},null,8,["src"])])),_:1}),n(j,{class:"title title-box"},{default:i((()=>[m("用户名密码注册")])),_:1})])),_:1}),n(q,{ref:"form",value:t.formData,rules:t.rules,"validate-trigger":"submit","err-show-type":"toast"},{default:i((()=>[n(C,{name:"username",required:""},{default:i((()=>[n(B,{inputBorder:!1,focus:t.focusUsername,onBlur:e[0]||(e[0]=a=>t.focusUsername=!1),class:"input-box",placeholder:"请输入用户名",modelValue:t.formData.username,"onUpdate:modelValue":e[1]||(e[1]=a=>t.formData.username=a),trim:"both"},null,8,["focus","modelValue"])])),_:1}),n(C,{name:"nickname"},{default:i((()=>[n(B,{inputBorder:!1,focus:t.focusNickname,onBlur:e[2]||(e[2]=a=>t.focusNickname=!1),class:"input-box",placeholder:"请输入用户昵称",modelValue:t.formData.nickname,"onUpdate:modelValue":e[3]||(e[3]=a=>t.formData.nickname=a),trim:"both"},null,8,["focus","modelValue"])])),_:1}),n(C,{name:"password",modelValue:t.formData.password,"onUpdate:modelValue":e[6]||(e[6]=a=>t.formData.password=a),required:""},{default:i((()=>[n(B,{inputBorder:!1,focus:t.focusPassword,onBlur:e[4]||(e[4]=a=>t.focusPassword=!1),class:"input-box",maxlength:"20",placeholder:"请输入"+("weak"==a.config.passwordStrength?"6":"8")+"-16位密码",type:"password",modelValue:t.formData.password,"onUpdate:modelValue":e[5]||(e[5]=a=>t.formData.password=a),trim:"both"},null,8,["focus","placeholder","modelValue"])])),_:1},8,["modelValue"]),n(C,{name:"password2",modelValue:t.formData.password2,"onUpdate:modelValue":e[9]||(e[9]=a=>t.formData.password2=a),required:""},{default:i((()=>[n(B,{inputBorder:!1,focus:t.focusPassword2,onBlur:e[7]||(e[7]=a=>t.focusPassword2=!1),class:"input-box",placeholder:"再次输入密码",maxlength:"20",type:"password",modelValue:t.formData.password2,"onUpdate:modelValue":e[8]||(e[8]=a=>t.formData.password2=a),trim:"both"},null,8,["focus","modelValue"])])),_:1},8,["modelValue"]),n(C,null,{default:i((()=>[n(U,{ref:"captcha",scene:"register",modelValue:t.formData.captcha,"onUpdate:modelValue":e[10]||(e[10]=a=>t.formData.captcha=a)},null,8,["modelValue"])])),_:1}),n(P,{scope:"register",ref:"agreements"},null,512),n($,{class:"uni-btn",type:"primary",onClick:D.submit},{default:i((()=>[m("注册")])),_:1},8,["onClick"]),n($,{onClick:D.navigateBack,class:"register-back"},{default:i((()=>[m("返回")])),_:1},8,["onClick"]),n(v,{"min-width":690},{default:i((()=>[n(x,{class:"link-box"},{default:i((()=>[n(j,{class:"link",onClick:D.registerByEmail},{default:i((()=>[m("邮箱验证码注册")])),_:1},8,["onClick"]),n(j,{class:"link",onClick:D.toLogin},{default:i((()=>[m("已有账号?点此登录")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["value","rules"])])),_:1})}],["__scopeId","data-v-7ae85e3a"]]);export{j as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.89348ce7.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.89348ce7.js new file mode 100644 index 0000000000000000000000000000000000000000..5ee1cb77cef5c0b8842c2936be862018ded6d57d --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.89348ce7.js @@ -0,0 +1 @@ +import{_ as a,L as e,n as o,x as s,o as t,c as r,w as i,i as l,a as u,d as m,m as d,p as n,f as c,g as p,q as f}from"./index-389238f5.js";import{_ as h}from"./uni-match-media.cb822f29.js";import{_ as w}from"./uni-easyinput.a1fc57c1.js";import{_ as g}from"./uni-forms-item.69698491.js";import{_}from"./uni-id-pages-email-form.79cacd6d.js";import{_ as b}from"./uni-forms.bc4bcf6e.js";import{_ as D}from"./uni-popup-captcha.a1d919b2.js";import{m as k}from"./login-page.mixin.6ab7e5a6.js";import{p as y}from"./password.4f678814.js";import"./uni-captcha.7a7d8040.js";const C=e.importObject("uni-id-co",{errorOptions:{type:"toast"}});const V=a({mixins:[k],data:()=>({lock:!1,focusEmail:!0,focusPassword:!1,focusPassword2:!1,formData:{email:"",code:"",password:"",password2:"",captcha:""},rules:{email:{rules:[{required:!0,errorMessage:"请输入邮箱"},{format:"email",errorMessage:"邮箱格式不正确"}]},code:{rules:[{required:!0,errorMessage:"请输入邮箱验证码"},{pattern:/^.{6}$/,errorMessage:"请输入6位验证码"}]},...y.getPwdRules()},logo:"/static/logo.png"}),computed:{isEmail(){return/@/.test(this.formData.email)},isPwd(){return/^.{6,20}$/.test(this.formData.password)},isCode(){return/^\d{6}$/.test(this.formData.code)}},onLoad(a){a&&a.emailNumber&&(this.formData.email=a.emailNumber,a.lock&&(this.lock=a.lock,this.focusEmail=!0))},onReady(){this.formData.email&&this.$refs.shortCode.start(),this.$refs.form.setRules(this.rules)},onShow(){document.onkeydown=a=>{var e=a||window.event;e&&13==e.keyCode&&this.submit()}},methods:{submit(){this.$refs.form.validate().then((a=>{let{email:e,password:s,captcha:t,code:r}=this.formData;C.resetPwdByEmail({email:e,code:r,password:s,captcha:t}).then((a=>{o({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd",complete:a=>{}})})).catch((a=>{"uni-id-captcha-required"==a.errCode&&this.$refs.popup.open()})).finally((a=>{this.formData.captcha=""}))})).catch((a=>{let e=a[0].key;if("code"==e)return this.$refs.shortCode.focusSmsCodeInput=!0;e=e.replace(e[0],e[0].toUpperCase()),this["focus"+e]=!0}))},retrieveByPhone(){o({url:"/uni_modules/uni-id-pages/pages/retrieve/retrieve"})},backLogin(){s({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"})}}},[["render",function(a,e,o,s,k,y){const C=d,V=l,x=n,j=c(p("uni-match-media"),h),P=c(p("uni-easyinput"),w),v=c(p("uni-forms-item"),g),B=c(p("uni-id-pages-email-form"),_),$=f,E=c(p("uni-forms"),b),U=c(p("uni-popup-captcha"),D);return t(),r(V,{class:"uni-content"},{default:i((()=>[u(j,{"min-width":690},{default:i((()=>[u(V,{class:"login-logo"},{default:i((()=>[u(C,{src:k.logo},null,8,["src"])])),_:1}),u(x,{class:"title title-box"},{default:i((()=>[m("通过邮箱验证码找回密码")])),_:1})])),_:1}),u(E,{ref:"form",value:k.formData,"err-show-type":"toast"},{default:i((()=>[u(v,{name:"email"},{default:i((()=>[u(P,{focus:k.focusEmail,onBlur:e[0]||(e[0]=a=>k.focusEmail=!1),class:"input-box",disabled:k.lock,inputBorder:!1,modelValue:k.formData.email,"onUpdate:modelValue":e[1]||(e[1]=a=>k.formData.email=a),placeholder:"请输入邮箱"},null,8,["focus","disabled","modelValue"])])),_:1}),u(v,{name:"code"},{default:i((()=>[u(B,{ref:"shortCode",email:k.formData.email,type:"reset-pwd-by-email",modelValue:k.formData.code,"onUpdate:modelValue":e[2]||(e[2]=a=>k.formData.code=a)},null,8,["email","modelValue"])])),_:1}),u(v,{name:"password"},{default:i((()=>[u(P,{focus:k.focusPassword,onBlur:e[3]||(e[3]=a=>k.focusPassword=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:k.formData.password,"onUpdate:modelValue":e[4]||(e[4]=a=>k.formData.password=a),placeholder:"请输入新密码"},null,8,["focus","modelValue"])])),_:1}),u(v,{name:"password2"},{default:i((()=>[u(P,{focus:k.focusPassword2,onBlur:e[5]||(e[5]=a=>k.focusPassword2=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:k.formData.password2,"onUpdate:modelValue":e[6]||(e[6]=a=>k.formData.password2=a),placeholder:"请再次输入新密码"},null,8,["focus","modelValue"])])),_:1}),u($,{class:"uni-btn send-btn-box",type:"primary",onClick:y.submit},{default:i((()=>[m("提交")])),_:1},8,["onClick"]),u(j,{"min-width":690},{default:i((()=>[u(V,{class:"link-box"},{default:i((()=>[u(x,{class:"link",onClick:y.retrieveByPhone},{default:i((()=>[m("通过手机验证码找回密码")])),_:1},8,["onClick"]),u(V),u(x,{class:"link",onClick:y.backLogin},{default:i((()=>[m("返回登录")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["value"]),u(U,{onConfirm:y.submit,modelValue:k.formData.captcha,"onUpdate:modelValue":e[7]||(e[7]=a=>k.formData.captcha=a),scene:"reset-pwd-by-sms",ref:"popup"},null,8,["onConfirm","modelValue"])])),_:1})}],["__scopeId","data-v-b2bc532c"]]);export{V as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-retrieve-retrieve.3cafdf7e.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-retrieve-retrieve.3cafdf7e.js new file mode 100644 index 0000000000000000000000000000000000000000..7ddf5cd1206cad9ff0128eaf3b077d52a6136005 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-retrieve-retrieve.3cafdf7e.js @@ -0,0 +1 @@ +import{_ as e,L as o,G as s,n as a,x as r,o as t,c as n,w as i,i as u,a as l,d,m as p,p as m,f as c,g as f,q as h}from"./index-389238f5.js";import{_ as w}from"./uni-match-media.cb822f29.js";import{_ as g}from"./uni-easyinput.a1fc57c1.js";import{_}from"./uni-forms-item.69698491.js";import{_ as b}from"./uni-id-pages-sms-form.2fbc0429.js";import{_ as y}from"./uni-forms.bc4bcf6e.js";import{_ as D}from"./uni-popup-captcha.a1d919b2.js";import{m as k}from"./login-page.mixin.6ab7e5a6.js";import"./uni-captcha.7a7d8040.js";const C=o.importObject("uni-id-co",{errorOptions:{type:"toast"}});const V=e({mixins:[k],data:()=>({lock:!1,focusPhone:!0,focusPassword:!1,focusPassword2:!1,formData:{phone:"",code:"",password:"",password2:"",captcha:""},rules:{phone:{rules:[{required:!0,errorMessage:"请输入手机号"},{pattern:/^1\d{10}$/,errorMessage:"手机号码格式不正确"}]},code:{rules:[{required:!0,errorMessage:"请输入短信验证码"},{pattern:/^.{6}$/,errorMessage:"请输入6位验证码"}]},password:{rules:[{required:!0,errorMessage:"请输入新密码"},{pattern:/^.{6,20}$/,errorMessage:"密码为6 - 20位"}]},password2:{rules:[{required:!0,errorMessage:"请确认密码"},{pattern:/^.{6,20}$/,errorMessage:"密码为6 - 20位"},{validateFunction:function(e,o,s,a){return o!=s.password&&a("两次输入密码不一致"),!0}}]}},logo:"/static/logo.png"}),computed:{isPhone(){return/^1\d{10}$/.test(this.formData.phone)},isPwd(){return/^.{6,20}$/.test(this.formData.password)},isCode(){return/^\d{6}$/.test(this.formData.code)}},onLoad(e){e&&e.phoneNumber&&(this.formData.phone=e.phoneNumber,e.lock&&(this.lock=e.lock,this.focusPhone=!0))},onReady(){this.formData.phone&&this.$refs.shortCode.start(),this.$refs.form.setRules(this.rules)},onShow(){document.onkeydown=e=>{var o=e||window.event;o&&13==o.keyCode&&this.submit()}},methods:{submit(){this.$refs.form.validate().then((e=>{let{phone:o,password:a,captcha:r,code:t}=this.formData;C.resetPwdBySms({mobile:o,code:t,password:a,captcha:r}).then((e=>{s()})).catch((e=>{"uni-id-captcha-required"==e.errCode&&this.$refs.popup.open()})).finally((e=>{this.formData.captcha=""}))})).catch((e=>{let o=e[0].key;if("code"==o)return this.$refs.shortCode.focusSmsCodeInput=!0;o=o.replace(o[0],o[0].toUpperCase()),this["focus"+o]=!0}))},retrieveByEmail(){a({url:"/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email"})},backLogin(){r({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"})}}},[["render",function(e,o,s,a,r,k){const C=p,V=u,x=m,P=c(f("uni-match-media"),w),$=c(f("uni-easyinput"),g),v=c(f("uni-forms-item"),_),j=c(f("uni-id-pages-sms-form"),b),B=h,M=c(f("uni-forms"),y),q=c(f("uni-popup-captcha"),D);return t(),n(V,{class:"uni-content"},{default:i((()=>[l(P,{"min-width":690},{default:i((()=>[l(V,{class:"login-logo"},{default:i((()=>[l(C,{src:r.logo},null,8,["src"])])),_:1}),l(x,{class:"title title-box"},{default:i((()=>[d("通过手机验证码找回密码")])),_:1})])),_:1}),l(M,{ref:"form",value:r.formData,"err-show-type":"toast"},{default:i((()=>[l(v,{name:"phone"},{default:i((()=>[l($,{focus:r.focusPhone,onBlur:o[0]||(o[0]=e=>r.focusPhone=!1),class:"input-box",disabled:r.lock,type:"number",inputBorder:!1,modelValue:r.formData.phone,"onUpdate:modelValue":o[1]||(o[1]=e=>r.formData.phone=e),maxlength:"11",placeholder:"请输入手机号"},null,8,["focus","disabled","modelValue"])])),_:1}),l(v,{name:"code"},{default:i((()=>[l(j,{ref:"shortCode",phone:r.formData.phone,type:"reset-pwd-by-sms",modelValue:r.formData.code,"onUpdate:modelValue":o[2]||(o[2]=e=>r.formData.code=e)},null,8,["phone","modelValue"])])),_:1}),l(v,{name:"password"},{default:i((()=>[l($,{focus:r.focusPassword,onBlur:o[3]||(o[3]=e=>r.focusPassword=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:r.formData.password,"onUpdate:modelValue":o[4]||(o[4]=e=>r.formData.password=e),placeholder:"请输入新密码"},null,8,["focus","modelValue"])])),_:1}),l(v,{name:"password2"},{default:i((()=>[l($,{focus:r.focusPassword2,onBlur:o[5]||(o[5]=e=>r.focusPassword2=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:r.formData.password2,"onUpdate:modelValue":o[6]||(o[6]=e=>r.formData.password2=e),placeholder:"请再次输入新密码"},null,8,["focus","modelValue"])])),_:1}),l(B,{class:"uni-btn send-btn-box",type:"primary",onClick:k.submit},{default:i((()=>[d("提交")])),_:1},8,["onClick"]),l(P,{"min-width":690},{default:i((()=>[l(V,{class:"link-box"},{default:i((()=>[l(x,{class:"link",onClick:k.retrieveByEmail},{default:i((()=>[d("通过邮箱验证码找回密码")])),_:1},8,["onClick"]),l(V),l(x,{class:"link",onClick:k.backLogin},{default:i((()=>[d("返回登录")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["value"]),l(q,{onConfirm:k.submit,modelValue:r.formData.captcha,"onUpdate:modelValue":o[7]||(o[7]=e=>r.formData.captcha=e),scene:"reset-pwd-by-sms",ref:"popup"},null,8,["onConfirm","modelValue"])])),_:1})}],["__scopeId","data-v-332307ef"]]);export{V as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.3efbf535.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.3efbf535.js new file mode 100644 index 0000000000000000000000000000000000000000..ea14f8993cf3c6e82f1e5606ae575822be79351b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.3efbf535.js @@ -0,0 +1 @@ +import{_ as o,s as a,L as e,$ as t,G as s,o as i,c as n,w as l,i as m,a as r,d as u,m as c,p as d,f as p,g as f,q as b}from"./index-389238f5.js";import{_ as h}from"./uni-match-media.cb822f29.js";import{_ as D}from"./uni-easyinput.a1fc57c1.js";import{_ as g}from"./uni-id-pages-sms-form.2fbc0429.js";import{_}from"./uni-popup-captcha.a1d919b2.js";import"./uni-captcha.7a7d8040.js";const y=o({data:()=>({formData:{mobile:"",code:"",captcha:""},focusMobile:!0,logo:"/static/logo.png"}),computed:{tipText(){return`验证码已通过短信发送至 ${this.formData.mobile}。密码为6 - 20位`}},onLoad(o){},onReady(){},methods:{submit(){if(!/^1\d{10}$/.test(this.formData.mobile))return this.focusMobile=!0,a({title:"手机号码格式不正确",icon:"none",duration:3e3});if(!/^\d{6}$/.test(this.formData.code))return this.$refs.smsForm.focusSmsCodeInput=!0,a({title:"验证码格式不正确",icon:"none",duration:3e3});e.importObject("uni-id-co").bindMobileBySms(this.formData).then((o=>{a({title:o.errMsg,icon:"none",duration:3e3}),this.getOpenerEventChannel(),t.setUserInfo(this.formData),s()})).catch((o=>{console.log(o),"uni-id-captcha-required"==o.errCode&&this.$refs.popup.open()})).finally((o=>{this.formData.captcha=""}))}}},[["render",function(o,a,e,t,s,y){const V=c,j=m,x=d,C=p(f("uni-match-media"),h),M=p(f("uni-easyinput"),D),$=p(f("uni-id-pages-sms-form"),g),U=b,B=p(f("uni-popup-captcha"),_);return i(),n(j,{class:"uni-content"},{default:l((()=>[r(C,{"min-width":690},{default:l((()=>[r(j,{class:"login-logo"},{default:l((()=>[r(V,{src:s.logo},null,8,["src"])])),_:1}),r(x,{class:"title title-box"},{default:l((()=>[u("绑定手机号")])),_:1})])),_:1}),r(M,{clearable:"",focus:s.focusMobile,onBlur:a[0]||(a[0]=o=>s.focusMobile=!1),type:"number",class:"input-box",inputBorder:!1,modelValue:s.formData.mobile,"onUpdate:modelValue":a[1]||(a[1]=o=>s.formData.mobile=o),maxlength:"11",placeholder:"请输入手机号"},null,8,["focus","modelValue"]),r($,{ref:"smsForm",type:"bind-mobile-by-sms",modelValue:s.formData.code,"onUpdate:modelValue":a[2]||(a[2]=o=>s.formData.code=o),phone:s.formData.mobile},null,8,["modelValue","phone"]),r(U,{class:"uni-btn send-btn-box",type:"primary",onClick:y.submit},{default:l((()=>[u("提交")])),_:1},8,["onClick"]),r(B,{onConfirm:y.submit,modelValue:s.formData.captcha,"onUpdate:modelValue":a[3]||(a[3]=o=>s.formData.captcha=o),scene:"bind-mobile-by-sms",ref:"popup"},null,8,["onConfirm","modelValue"])])),_:1})}],["__scopeId","data-v-8ad2d767"]]);export{y as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.70d77e52.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.70d77e52.js new file mode 100644 index 0000000000000000000000000000000000000000..5a728a97aebb201bff099a5b569cc34b6775e1d2 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.70d77e52.js @@ -0,0 +1 @@ +import{_ as s,L as o,u as a,v as e,x as r,y as t,o as d,c as l,w as n,i as u,a as i,d as m,m as w,p as f,f as c,g as p,q as P}from"./index-389238f5.js";import{_}from"./uni-match-media.cb822f29.js";import{_ as h}from"./uni-easyinput.a1fc57c1.js";import{_ as g}from"./uni-forms-item.69698491.js";import{_ as y}from"./uni-forms.bc4bcf6e.js";import{m as x}from"./login-page.mixin.6ab7e5a6.js";import{p as b}from"./password.4f678814.js";const D=o.importObject("uni-id-co",{customUI:!0});const V=s({mixins:[x],data:()=>({focusOldPassword:!1,focusNewPassword:!1,focusNewPassword2:!1,formData:{oldPassword:"",newPassword:"",newPassword2:""},rules:{oldPassword:{rules:[{required:!0,errorMessage:"请输入新密码"},{pattern:/^.{6,20}$/,errorMessage:"密码为6 - 20位"}]},...b.getPwdRules("newPassword","newPassword2")},logo:"/static/logo.png"}),onReady(){this.$refs.form.setRules(this.rules)},onShow(){document.onkeydown=s=>{var o=s||window.event;o&&13==o.keyCode&&this.submit()}},methods:{submit(){this.$refs.form.validate().then((s=>{let{oldPassword:o,newPassword:d}=this.formData;D.updatePwd({oldPassword:o,newPassword:d}).then((s=>{a("uni_id_token"),e("uni_id_token_expired",0),r({url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"})})).catch((s=>{t({content:s.message,showCancel:!1})}))})).catch((s=>{let o=s[0].key;o=o.replace(o[0],o[0].toUpperCase()),this["focus"+o]=!0}))}}},[["render",function(s,o,a,e,r,t){const x=w,b=u,D=f,V=c(p("uni-match-media"),_),j=c(p("uni-easyinput"),h),k=c(p("uni-forms-item"),g),v=P,B=c(p("uni-forms"),y);return d(),l(b,{class:"uni-content"},{default:n((()=>[i(V,{"min-width":690},{default:n((()=>[i(b,{class:"login-logo"},{default:n((()=>[i(x,{src:r.logo},null,8,["src"])])),_:1}),i(D,{class:"title title-box"},{default:n((()=>[m("修改密码")])),_:1})])),_:1}),i(B,{ref:"form",value:r.formData,"err-show-type":"toast"},{default:n((()=>[i(k,{name:"oldPassword"},{default:n((()=>[i(j,{focus:r.focusOldPassword,onBlur:o[0]||(o[0]=s=>r.focusOldPassword=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:r.formData.oldPassword,"onUpdate:modelValue":o[1]||(o[1]=s=>r.formData.oldPassword=s),placeholder:"请输入旧密码"},null,8,["focus","modelValue"])])),_:1}),i(k,{name:"newPassword"},{default:n((()=>[i(j,{focus:r.focusNewPassword,onBlur:o[2]||(o[2]=s=>r.focusNewPassword=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:r.formData.newPassword,"onUpdate:modelValue":o[3]||(o[3]=s=>r.formData.newPassword=s),placeholder:"请输入新密码"},null,8,["focus","modelValue"])])),_:1}),i(k,{name:"newPassword2"},{default:n((()=>[i(j,{focus:r.focusNewPassword2,onBlur:o[4]||(o[4]=s=>r.focusNewPassword2=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:r.formData.newPassword2,"onUpdate:modelValue":o[5]||(o[5]=s=>r.formData.newPassword2=s),placeholder:"请再次输入新密码"},null,8,["focus","modelValue"])])),_:1}),i(v,{class:"uni-btn send-btn-box",type:"primary",onClick:t.submit},{default:n((()=>[m("提交")])),_:1},8,["onClick"])])),_:1},8,["value"])])),_:1})}],["__scopeId","data-v-310f3ac4"]]);export{V as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.5c0c9d44.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.5c0c9d44.js new file mode 100644 index 0000000000000000000000000000000000000000..2b3f8081262dcef98f6111d2d75899e475510b0e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.5c0c9d44.js @@ -0,0 +1 @@ +import{Y as t,_ as i,N as e,a6 as a,a7 as s,s as h,H as l,O as o,o as n,c,w as p,a as g,I as r,e as d,r as m,F as u,D as f,b as w,C as y,d as D,z as v,a0 as T,a8 as H,i as W,m as S,a9 as C,G as x,B as L}from"./index-389238f5.js";function k(t,i){return Math.sqrt(Math.pow(t,2)+Math.pow(i,2))}function Y(t,i){const e=i.touches[0].clientX,a=i.touches[0].clientY;let{clipWidth:s,clipHeight:h,clipY:l,clipX:o,clipStart:n,isLockRatio:c,maxWidth:p,minWidth:g,maxHeight:r,minHeight:d}=t;p/=2,g/=2,d/=2,r/=2;let m=s,u=h,f=l,w=o,y=()=>(m=m<=p?m>=g?m:g:p,u=u<=r?u>=d?u:d:r,!(m>p||mr||u1&&n.corner<4?1:-1)*(n.y-a),n.corner){case 1:if(m=n.width-n.x+e,c&&(u=m/(s/h)),!y())return;break;case 2:if(m=n.width-n.x+e,c&&(u=m/(s/h)),!y())return;f=n.clipY-(u-n.height);break;case 3:if(m=n.width+n.x-e,c&&(u=m/(s/h)),!y())return;f=n.clipY-(u-n.height),w=n.clipX-(m-n.width);break;case 4:if(m=n.width+n.x-e,c&&(u=m/(s/h)),!y())return;w=n.clipX-(m-n.width)}return{width:m,height:u,clipX:w,clipY:f}}const M={};const X=i({components:{limeClipper:i({name:"l-clipper",props:{value:{type:Boolean,default:!0},customStyle:{type:String},canvasId:{type:String,default:"l-clipper"},zIndex:{type:Number,default:99},imageUrl:{type:String},fileType:{type:String,default:"png"},quality:{type:Number,default:1},width:{type:Number,default:400},height:{type:Number,default:400},minWidth:{type:Number,default:200},maxWidth:{type:Number,default:600},minHeight:{type:Number,default:200},maxHeight:{type:Number,default:600},isLockWidth:{type:Boolean,default:!1},isLockHeight:{type:Boolean,default:!1},isLockRatio:{type:Boolean,default:!0},scaleRatio:{type:Number,default:1},minRatio:{type:Number,default:.5},maxRatio:{type:Number,default:2},isDisableScale:{type:Boolean,default:!1},isDisableRotate:{type:Boolean,default:!1},isLimitMove:{type:Boolean,default:!1},isShowPhotoBtn:{type:Boolean,default:!0},isShowRotateBtn:{type:Boolean,default:!0},isShowConfirmBtn:{type:Boolean,default:!0},isShowCancelBtn:{type:Boolean,default:!0},rotateAngle:{type:Number,default:90},source:{type:Object,default:()=>({album:"从相册中选择",camera:"拍照"})}},data(){return{canvasWidth:0,canvasHeight:0,clipX:0,clipY:0,clipWidth:0,clipHeight:0,animation:!1,imageWidth:0,imageHeight:0,imageTop:0,imageLeft:0,scale:1,angle:0,image:this.imageUrl,sysinfo:{},throttleTimer:null,throttleFlag:!0,timeClipCenter:null,flagClipTouch:!1,flagEndTouch:!1,clipStart:{},animationTimer:null,touchRelative:[{x:0,y:0}],hypotenuseLength:0,ctx:null}},computed:{clipStyle(){const{clipWidth:t,clipHeight:i,clipY:e,clipX:a,animation:s}=this;return`\n\t\t\twidth: ${t}px;\n\t\t\theight:${i}px;\n\t\t\ttransition-property: ${s?"":"background"};\n\t\t\tleft: ${a}px;\n\t\t\ttop: ${e}px\n\t\t\t`},imageStyle(){const{imageWidth:t,imageHeight:i,imageLeft:e,imageTop:a,animation:s,scale:h,angle:l}=this;return`\n\t\t\t\twidth: ${t?t+"px":"auto"};\n\t\t\t\theight: ${i?i+"px":"auto"};\n\t\t\t\ttransform: translate3d(${e-t/2}px, ${a-i/2}px, 0) scale(${h}) rotate(${l}deg);\n\t\t\t\ttransition-duration: ${s?.35:0}s\n\t\t\t`},clipSize(){const{clipWidth:t,clipHeight:i}=this;return{clipWidth:t,clipHeight:i}},clipPoint(){const{clipY:t,clipX:i}=this;return{clipY:t,clipX:i}}},watch:{value(t){if(t){if(this.imageUrl){const{imageWidth:t,imageHeight:i,imageLeft:e,imageTop:a,scale:s,clipX:h,clipY:l,clipWidth:o,clipHeight:n,path:c}=(null==M?void 0:M[this.imageUrl])||{};c!=this.image?this.image=this.imageUrl:this.setDiffData({imageWidth:t,imageHeight:i,imageLeft:e,imageTop:a,scale:s,clipX:h,clipY:l,clipWidth:o,clipHeight:n})}}else this.animation=0,this.angle=0},imageUrl(t){this.image=t},image:{handler:async function(t){this.getImageInfo(t)}},clipSize({widthVal:t,heightVal:i}){let{minWidth:e,minHeight:a}=this;e/=2,a/=2,t{this.setDiffData({animation:!1})}),260);this.setDiffData({animationTimer:t}),this.animationTimer=t}},isLimitMove(t){t&&(this.angle%90&&this.setDiffData({angle:90*Math.round(this.angle/90)}),this.imgMarginDetectionScale())},clipPoint(){this.cutDetectionPosition()},width(t,i){t!==i&&this.setDiffData({clipWidth:t/2})},height(t,i){t!==i&&this.setDiffData({clipHeight:t/2})}},mounted(){const i=t();this.sysinfo=i,this.setClipInfo(),this.image&&this.getImageInfo(this.image),this.setClipCenter(),this.calcClipSize(),this.cutDetectionPosition()},methods:{setDiffData(t){Object.keys(t).forEach((i=>{this[i]!==t[i]&&(this[i]=t[i])}))},getImageInfo(t){t&&(this.value&&e({title:"请稍候...",mask:!0}),a({src:t,success:i=>{this.imgComputeSize(i.width,i.height),this.image=i.path,this.isLimitMove&&(this.imgMarginDetectionScale(),this.$emit("ready",i));const{imageWidth:e,imageHeight:a,imageLeft:s,imageTop:h,scale:l,clipX:o,clipY:n,clipWidth:c,clipHeight:p}=this;M[t]=Object.assign(i,{imageWidth:e,imageHeight:a,imageLeft:s,imageTop:h,scale:l,clipX:o,clipY:n,clipWidth:c,clipHeight:p})},fail:t=>{this.imgComputeSize(),this.isLimitMove&&this.imgMarginDetectionScale()}}))},setClipInfo(){const{width:t,height:i,sysinfo:e,canvasId:a}=this,h=t/2,l=i/2,o=(e.windowHeight-l)/2,n=(e.windowWidth-h)/2,c=e.windowWidth/2,p=e.windowHeight/2;this.ctx=s(a,this),this.clipWidth=h,this.clipHeight=l,this.clipX=n,this.clipY=o,this.canvasHeight=l,this.canvasWidth=h,this.imageLeft=c,this.imageTop=p},setClipCenter(){const{sysInfo:i,clipHeight:e,clipWidth:a,imageTop:s,imageLeft:h}=this;let l=i||t(),o=.5*(l.windowHeight-e),n=.5*(l.windowWidth-a);this.imageTop=s-this.clipY+o,this.imageLeft=h-this.clipX+n,this.clipY=o,this.clipX=n},calcClipSize(){const{clipHeight:t,clipWidth:i,sysinfo:e,clipX:a,clipY:s}=this;i>e.windowWidth?this.setDiffData({clipWidth:e.windowWidth}):i+a>e.windowWidth&&this.setDiffData({clipX:e.windowWidth-a}),t>e.windowHeight?this.setDiffData({clipHeight:e.windowHeight}):t+s>e.windowHeight&&(this.clipY=e.windowHeight-s,this.setDiffData({clipY:e.windowHeight-s}))},cutDetectionPosition(){const{clipX:t,clipY:i,sysinfo:e,clipHeight:a,clipWidth:s}=this;let h=()=>{i<0&&this.setDiffData({clipY:0}),i>e.windowHeight-a&&this.setDiffData({clipY:e.windowHeight-a})},l=()=>{t<0&&this.setDiffData({clipX:0}),t>e.windowWidth-s&&this.setDiffData({clipX:e.windowWidth-s})};if(null===i&&null===t){let t=.5*(e.windowHeight-a),i=.5*(e.windowWidth-s);this.setDiffData({clipX:i,clipY:t})}else null!==i&&null!==t?(h(),l()):null!==i&&null===t?(h(),this.setDiffData({clipX:(e.windowWidth-s)/2})):null===i&&null!==t&&(l(),this.setDiffData({clipY:(e.windowHeight-a)/2}))},imgComputeSize(i,e){const{imageWidth:a,imageHeight:s}=function(i,e,a){let s=i,h=e,{clipWidth:l,clipHeight:o,sysinfo:n,width:c,height:p}=a;s&&h?s/h>(l||c)/(l||p)?(h=o||p,s=i/e*h):(s=l||c,h=e/i*s):(s=(n||t()).windowWidth,h=0);return{imageWidth:s,imageHeight:h}}(i,e,this);this.imageWidth=a,this.imageHeight=s},imgMarginDetectionScale(t){if(!this.isLimitMove)return;const i=function(t,i){i=i||t.scale;let{imageWidth:e,imageHeight:a,clipWidth:s,clipHeight:h,angle:l}=t;return l/90%2&&(e=a,a=e),e*it*i/2,g=p(s),r=p(h);return e=l+g>=e?e:l+g,e=l+o-g<=e?e:l+o-g,a=n+r>=a?a:n+r,a=n+c-r<=a?a:n+c-r,{left:e,top:a,scale:i}}(this,t);this.setDiffData({imageLeft:e,imageTop:a,scale:i})},throttle(){this.setDiffData({throttleFlag:!0})},moveDuring(){clearTimeout(this.timeClipCenter)},moveStop(){clearTimeout(this.timeClipCenter);const t=setTimeout((()=>{this.animation||this.setDiffData({animation:!0}),this.setClipCenter()}),800);this.setDiffData({timeClipCenter:t})},clipTouchStart(t){if(t.preventDefault(),!this.image)return void h({title:"请选择图片",icon:"none",duration:3e3});const i=t.touches[0].clientX,e=t.touches[0].clientY,{clipX:a,clipY:s,clipWidth:l,clipHeight:o}=this,n=function(t,i,e,a,s,h){let l;const o=[t+e/2,i+a/2],n=[s,h];return n[0]<=o[0]&&n[1]<=o[1]?l=3:n[0]>=o[0]&&n[1]<=o[1]?l=2:n[0]<=o[0]&&n[1]>=o[1]?l=4:n[0]>=o[0]&&n[1]>=o[1]&&(l=1),l}(a,s,l,o,i,e);this.moveDuring(),n&&(this.clipStart={width:l,height:o,x:i,y:e,clipY:s,clipX:a,corner:n},this.flagClipTouch=!0,this.flagEndTouch=!0)},clipTouchMove(t){if(t.stopPropagation(),t.preventDefault(),!this.image)return void h({title:"请选择图片",icon:"none",duration:3e3});if(1!==t.touches.length)return;const{flagClipTouch:i,throttleFlag:e}=this;if(i&&e){const{isLockRatio:i,isLockHeight:e,isLockWidth:a}=this;if(i&&(a||e))return;this.setDiffData({throttleFlag:!1}),this.throttle();const s=Y(this,t);if(s){const{width:t,height:i,clipX:h,clipY:l}=s;a||e?a?e||this.setDiffData({clipHeight:i,clipY:l}):this.setDiffData({clipWidth:t,clipX:h}):this.setDiffData({clipWidth:t,clipHeight:i,clipX:h,clipY:l}),this.imgMarginDetectionScale()}}},clipTouchEnd(){this.moveStop(),this.flagClipTouch=!1},imageTouchStart(t){event.preventDefault(),this.flagEndTouch=!1;const{imageLeft:i,imageTop:e}=this,a=t.touches[0].clientX,s=t.touches[0].clientY;let h=[];if(1===t.touches.length)h[0]={x:a-i,y:s-e},this.touchRelative=h;else{const l=t.touches[1].clientX,o=t.touches[1].clientY;const n=k(Math.abs(a-l),Math.abs(s-o));h=[{x:a-i,y:s-e},{x:l-i,y:o-e}],this.touchRelative=h,this.hypotenuseLength=n}},imageTouchMove(t){event.preventDefault();const{flagEndTouch:i,throttleFlag:e}=this;if(i||!e)return;const a=t.touches[0].clientX,s=t.touches[0].clientY;if(this.setDiffData({throttleFlag:!1}),this.throttle(),this.moveDuring(),1===t.touches.length){const{left:t,top:i}=function(t,i,e){return{left:i-t.touchRelative[0].x,top:e-t.touchRelative[0].y}}(this,a,s);this.setDiffData({imageLeft:t,imageTop:i}),this.imgMarginDetectionPosition()}else{const i=t.touches[1].clientX,e=t.touches[1].clientY;let h=Math.abs(a-i),l=Math.abs(s-e),o=k(h,l),n=this.scale*(o/this.hypotenuseLength);this.isDisableScale?n=1:(n=n<=this.minRatio?this.minRatio:n,n=n>=this.maxRatio?this.maxRatio:n,this.$emit("change",{width:this.imageWidth*n,height:this.imageHeight*n})),this.imgMarginDetectionScale(n),this.hypotenuseLength=Math.sqrt(Math.pow(h,2)+Math.pow(l,2)),this.scale=n}},imageTouchEnd(){this.setDiffData({flagEndTouch:!0}),this.moveStop()},uploadImage(){const t=Object.entries(this.source),i=["original","compressed"],e=({tempFilePaths:t,tempFiles:i})=>{this.image=t?t[0]:i[0].path},a=t=>{"message"!==t&&T({count:1,sizeType:i,sourceType:[t],success:e})};t.length>1?l({itemList:t.map((t=>t[1])),success:({tapIndex:i})=>{a(t[i][0])}}):a(t[0][0])},imageReset(){const i=this.sysinfo||t();this.scale=1,this.angle=0,this.imageTop=i.windowHeight/2,this.imageLeft=i.windowWidth/2},imageLoad(t){this.imageReset(),o(),this.$emit("ready",t.detail)},rotate(t){if(this.isDisableRotate)return;if(!this.image)return void h({title:"请选择图片",icon:"none",duration:3e3});const{rotateAngle:i}=this,e=this.angle,a=t.currentTarget.dataset.type;this.angle="along"===a?e+i:e-i,this.$emit("rotate",this.angle)},confirm(){if(!this.image)return void h({title:"请选择图片",icon:"none",duration:3e3});e({title:"加载中"});const{canvasHeight:t,canvasWidth:i,clipHeight:a,clipWidth:s,ctx:l,scale:n,imageLeft:c,imageTop:p,clipX:g,clipY:r,angle:d,scaleRatio:m,image:u,quality:f,fileType:w,type:y,canvasId:D}=this,v=()=>{const t=this.imageWidth*n*m,i=this.imageHeight*n*m,e=c-g,h=p-r;l.translate(e*m,h*m),l.rotate(d*Math.PI/180),l.drawImage(u,-t/2,-i/2,t,i),l.draw(!1,(()=>{const t=s*m,i=a*m;let e={x:0,y:0,width:t,height:i,destWidth:t,destHeight:i,canvasId:D,fileType:w,quality:f,success:t=>{h.url=t.tempFilePath,o(),this.$emit("success",h),this.$emit("input",!1)},fail:t=>{console.error("error",t),this.$emit("fail",t),this.$emit("input",!1)}},h={url:"",width:t,height:i};H(e,this)}))};i!==s||t!==a?(this.canvasWidth=s,this.canvasHeight=a,l.draw(),this.$nextTick((()=>{setTimeout((()=>{v()}),100)}))):v()},cancel(){this.$emit("cancel",!1),this.$emit("input",!1)}}},[["render",function(t,i,e,a,s,h){const l=W,o=S,T=C;return n(),c(l,{class:v(["l-clipper",{open:e.value}]),"disable-scroll":"",style:r("z-index: "+e.zIndex+";"+e.customStyle)},{default:p((()=>[g(l,{class:"l-clipper-mask",onTouchstart:f(h.clipTouchStart,["stop","prevent"]),onTouchmove:f(h.clipTouchMove,["stop","prevent"]),onTouchend:f(h.clipTouchEnd,["stop","prevent"])},{default:p((()=>[g(l,{class:"l-clipper__content",style:r(h.clipStyle)},{default:p((()=>[(n(),d(u,null,m([0,0,0,0],((t,i)=>g(l,{class:"l-clipper__edge",key:i}))),64))])),_:1},8,["style"])])),_:1},8,["onTouchstart","onTouchmove","onTouchend"]),s.image?(n(),c(o,{key:0,class:"l-clipper-image",onError:h.imageLoad,onLoad:h.imageLoad,onTouchstart:f(h.imageTouchStart,["stop","prevent"]),onTouchmove:f(h.imageTouchMove,["stop","prevent"]),onTouchend:f(h.imageTouchEnd,["stop","prevent"]),src:s.image,mode:"auto"==s.imageWidth?"widthFix":"",style:r(h.imageStyle)},null,8,["onError","onLoad","onTouchstart","onTouchmove","onTouchend","src","mode","style"])):w("",!0),g(T,{"canvas-id":e.canvasId,id:"l-clipper","disable-scroll":"",style:r("width: "+s.canvasWidth*e.scaleRatio+"px; height:"+s.canvasHeight*e.scaleRatio+"px;"),class:"l-clipper-canvas"},null,8,["canvas-id","style"]),g(l,{class:"l-clipper-tools"},{default:p((()=>[g(l,{class:"l-clipper-tools__btns"},{default:p((()=>[e.isShowCancelBtn?(n(),c(l,{key:0,onClick:h.cancel},{default:p((()=>[t.$slots.cancel?y(t.$slots,"cancel",{key:0},void 0,!0):(n(),c(l,{key:1,class:"cancel"},{default:p((()=>[D("取消")])),_:1}))])),_:3},8,["onClick"])):w("",!0),e.isShowPhotoBtn?(n(),c(l,{key:1,onClick:h.uploadImage},{default:p((()=>[t.$slots.photo?y(t.$slots,"photo",{key:0},void 0,!0):(n(),c(o,{key:1,src:"/admin/assets/photo-6f69f4e3.svg"}))])),_:3},8,["onClick"])):w("",!0),e.isShowRotateBtn?(n(),c(l,{key:2,onClick:h.rotate},{default:p((()=>[t.$slots.rotate?y(t.$slots,"rotate",{key:0},void 0,!0):(n(),c(o,{key:1,src:"/admin/assets/rotate-9f2e0410.svg","data-type":"inverse"}))])),_:3},8,["onClick"])):w("",!0),e.isShowConfirmBtn?(n(),c(l,{key:3,onClick:h.confirm},{default:p((()=>[t.$slots.confirm?y(t.$slots,"confirm",{key:0},void 0,!0):(n(),c(l,{key:1,class:"confirm"},{default:p((()=>[D("确定")])),_:1}))])),_:3},8,["onClick"])):w("",!0)])),_:3}),y(t.$slots,"default",{},void 0,!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-592a86cd"]])},data:()=>({path:"",options:{width:600,height:600}}),onLoad({path:t,options:i}){this.path=t,i&&(this.options=JSON.parse(i))},methods:{successFn(t){this.getOpenerEventChannel().emit("success",t.url),x()},cancel(){x()}}},[["render",function(t,i,e,a,s,h){const l=L("limeClipper"),o=W;return n(),c(o,{class:"content"},{default:p((()=>[g(l,{width:s.options.width,"scale-ratio":2,"is-lock-width":!1,"is-lock-height":!1,height:s.options.height,"image-url":s.path,onSuccess:h.successFn,onCancel:h.cancel},null,8,["width","height","image-url","onSuccess","onCancel"])])),_:1})}],["__scopeId","data-v-c2c356f4"]]);export{X as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.900aed6f.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.900aed6f.js new file mode 100644 index 0000000000000000000000000000000000000000..39d7601e238e504e123d9f9c68a2c3e3a7005474 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.900aed6f.js @@ -0,0 +1 @@ +import{_ as n,G as e,y as a,L as t,s,u as o,v as c,n as i,o as d,c as l,w as u,i as p,a as r,d as _,p as f,q as m}from"./index-389238f5.js";const k=n({data:()=>({}),onLoad(){},methods:{cancel(){e()},nextStep(){a({content:"已经仔细阅读注销提示,知晓可能带来的后果,并确认要注销",complete:n=>{if(n.confirm){t.importObject("uni-id-co").closeAccount().then((n=>{s({title:"注销成功",duration:3e3}),o("uni_id_token"),c("uni_id_token_expired",0),i({url:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd"})}))}else e()}})}}},[["render",function(n,e,a,t,s,o){const c=f,i=m,k=p;return d(),l(k,{class:"uni-content"},{default:u((()=>[r(c,{class:"words",space:"emsp"},{default:u((()=>[_(" 一、注销是不可逆操作,注销后:\\n 1.帐号将无法登录、无法找回。\\n 2.帐号所有信息都会清除(个人身份信息、粉丝数等;发布的作品、评论、点赞等;交易信息等),你 的朋友将无法通过本应用帐号联系你,请自行备份相关 信息和数据。\\n 二、重要提示\\n 1.封禁帐号(永久封禁、社交封禁、直播权限封禁)不能申请注销。\\n 2.注销后,你的身份证、三方帐号(微信、QQ、微博、支付宝)、手机号等绑定关系将解除,解除后可以绑定到其他帐号。\\n 3.注销后,手机号可以注册新的帐号,新帐号不会存在之前帐号的任何信息(作品、粉丝、评论、个人信息等)。\\n 4.注销本应用帐号前,需尽快处理帐号下的资金问题。\\n 5.视具体帐号情况而定,注销最多需要7天。\\n ")])),_:1}),r(k,{class:"button-group"},{default:u((()=>[r(i,{onClick:o.nextStep,class:"next",type:"default"},{default:u((()=>[_("下一步")])),_:1},8,["onClick"]),r(i,{onClick:o.cancel,type:"warn"},{default:u((()=>[_("取消")])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-3b80a2de"]]);export{k as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.ab65324d.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.ab65324d.js new file mode 100644 index 0000000000000000000000000000000000000000..089c45fcd9a7a2a08a4d41b6f73d4d8a63f52e14 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.ab65324d.js @@ -0,0 +1 @@ +import{_ as s,L as a,Z as o,aa as e,s as t,y as r,$ as n,o as i,c as l,w as d,i as u,a as c,d as m,b as p,m as f,p as w,f as h,g,q as P}from"./index-389238f5.js";import{_}from"./uni-match-media.cb822f29.js";import{_ as y}from"./uni-easyinput.a1fc57c1.js";import{_ as b}from"./uni-forms-item.69698491.js";import{_ as D}from"./uni-id-pages-sms-form.2fbc0429.js";import{_ as k}from"./uni-forms.bc4bcf6e.js";import{_ as C}from"./uni-popup-captcha.a1d919b2.js";import{p as I}from"./password.4f678814.js";import"./uni-captcha.7a7d8040.js";const V=a.importObject("uni-id-co",{customUI:!0});const U=s({name:"set-pwd.vue",data:()=>({uniIdRedirectUrl:"",loginType:"",logo:"/static/logo.png",focusNewPassword:!1,focusNewPassword2:!1,allowSkip:!1,formData:{code:"",captcha:"",newPassword:"",newPassword2:""},rules:I.getPwdRules("newPassword","newPassword2")}),computed:{userInfo:()=>o.userInfo},onReady(){this.$refs.form.setRules(this.rules)},onLoad(s){var a;this.uniIdRedirectUrl=s.uniIdRedirectUrl,this.loginType=s.loginType,e.setPasswordAfterLogin&&(null==(a=e.setPasswordAfterLogin)?void 0:a.allowSkip)&&(this.allowSkip=!0)},methods:{submit(){if(!/^\d{6}$/.test(this.formData.code))return this.$refs.smsCode.focusSmsCodeInput=!0,t({title:"验证码格式不正确",icon:"none"});this.$refs.form.validate().then((s=>{V.setPwd({password:this.formData.newPassword,code:this.formData.code,captcha:this.formData.captcha}).then((s=>{r({content:"密码设置成功",showCancel:!1,success:()=>{n.loginBack({uniIdRedirectUrl:this.uniIdRedirectUrl,loginType:this.loginType})}})})).catch((s=>{r({content:s.message,showCancel:!1})}))})).catch((s=>{"uni-id-captcha-required"==s.errCode?this.$refs.popup.open():console.log(s.errMsg)})).finally((s=>{this.formData.captcha=""}))},skip(){n.loginBack(this.uniIdRedirectUrl)}}},[["render",function(s,a,o,e,t,r){const n=f,I=u,V=w,U=h(g("uni-match-media"),_),j=h(g("uni-easyinput"),y),R=h(g("uni-forms-item"),b),v=h(g("uni-id-pages-sms-form"),D),x=P,B=h(g("uni-forms"),k),N=h(g("uni-popup-captcha"),C);return i(),l(I,{class:"uni-content"},{default:d((()=>[c(U,{"min-width":690},{default:d((()=>[c(I,{class:"login-logo"},{default:d((()=>[c(n,{src:t.logo},null,8,["src"])])),_:1}),c(V,{class:"title title-box"},{default:d((()=>[m("设置密码")])),_:1})])),_:1}),c(B,{class:"set-password-form",ref:"form",value:t.formData,"err-show-type":"toast"},{default:d((()=>[c(V,{class:"tip"},{default:d((()=>[m("输入密码")])),_:1}),c(R,{name:"newPassword"},{default:d((()=>[c(j,{focus:t.focusNewPassword,onBlur:a[0]||(a[0]=s=>t.focusNewPassword=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:t.formData.newPassword,"onUpdate:modelValue":a[1]||(a[1]=s=>t.formData.newPassword=s),placeholder:"请输入密码"},null,8,["focus","modelValue"])])),_:1}),c(V,{class:"tip"},{default:d((()=>[m("再次输入密码")])),_:1}),c(R,{name:"newPassword2"},{default:d((()=>[c(j,{focus:t.focusNewPassword2,onBlur:a[2]||(a[2]=s=>t.focusNewPassword2=!1),class:"input-box",type:"password",inputBorder:!1,modelValue:t.formData.newPassword2,"onUpdate:modelValue":a[3]||(a[3]=s=>t.formData.newPassword2=s),placeholder:"请再次输入新密码"},null,8,["focus","modelValue"])])),_:1}),c(v,{modelValue:t.formData.code,"onUpdate:modelValue":a[4]||(a[4]=s=>t.formData.code=s),type:"set-pwd-by-sms",ref:"smsCode",phone:r.userInfo.mobile},null,8,["modelValue","phone"]),c(I,{class:"link-box"},{default:d((()=>[c(x,{class:"uni-btn send-btn",type:"primary",onClick:r.submit},{default:d((()=>[m("确认")])),_:1},8,["onClick"]),t.allowSkip?(i(),l(x,{key:0,class:"uni-btn send-btn",type:"default",onClick:r.skip},{default:d((()=>[m("跳过")])),_:1},8,["onClick"])):p("",!0)])),_:1})])),_:1},8,["value"]),c(N,{onConfirm:r.submit,modelValue:t.formData.captcha,"onUpdate:modelValue":a[5]||(a[5]=s=>t.formData.captcha=s),scene:"set-pwd-by-sms",ref:"popup"},null,8,["onConfirm","modelValue"])])),_:1})}],["__scopeId","data-v-48ed0c26"]]);export{U as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-userinfo.d40ff874.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-userinfo.d40ff874.js new file mode 100644 index 0000000000000000000000000000000000000000..5644cc6022a41a978d5c4df148db87dd5c9af118 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-id-pages-pages-userinfo-userinfo.d40ff874.js @@ -0,0 +1 @@ +import{_ as e,L as t,o as i,c as s,w as o,I as a,b as l,m as n,i as c,Y as d,Z as r,$ as u,n as h,a0 as p,N as g,O as f,f as m,g as y,A as b,z as w,a1 as k,a2 as _,x as S,a3 as x,a as C,C as v,d as I,t as B,p as T,R as M,a4 as L,a5 as P,q as $,s as F,e as A,F as j}from"./index-389238f5.js";import{_ as z}from"./uni-popup-dialog.39d6dc6f.js";const U=e({name:"cloud-image",emits:["click"],props:{mode:{type:String,default:()=>"widthFix"},src:{default:()=>""},width:{type:String,default:()=>"100rpx"},height:{type:String,default:()=>"100rpx"}},watch:{src:{handler(e){e&&"cloud://"==e.substring(0,8)?t.getTempFileURL({fileList:[e]}).then((e=>{this.cSrc=e.fileList[0].tempFileURL})):this.cSrc=e},immediate:!0}},methods:{onClick(){this.$emit("click")}},data:()=>({cSrc:!1})},[["render",function(e,t,d,r,u,h){const p=n,g=c;return i(),s(g,{onClick:h.onClick,style:a([{width:d.width,height:d.height},{"justify-content":"center"}])},{default:o((()=>[u.cSrc?(i(),s(p,{key:0,style:a({width:d.width,height:d.height}),src:u.cSrc,mode:d.mode},null,8,["style","src","mode"])):l("",!0)])),_:1},8,["onClick","style"])}]]);const O=e({data:()=>({isPC:!1}),props:{width:{type:String,default:()=>"50px"},height:{type:String,default:()=>"50px"},border:{type:Boolean,default:()=>!1}},async mounted(){this.isPC=!["ios","android"].includes(d().platform)},computed:{hasLogin:()=>r.hasLogin,userInfo:()=>r.userInfo,avatar_file:()=>r.userInfo.avatar_file},methods:{setAvatarFile(e){u.updateUserInfo({avatar_file:e})},uploadAvatarImg(e){if(!this.hasLogin)return h({url:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd"});const i={quality:100,width:600,height:600,resize:!0};p({count:1,crop:i,success:async e=>{let s=e.tempFiles[0],o={extname:s.name.split(".")[s.name.split(".").length-1]},a=e.tempFilePaths[0];a=await new Promise((e=>{this.isPC||h({url:"/uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage?path="+a+`&options=${JSON.stringify(i)}`,animationType:"fade-in",events:{success:t=>{e(t)}},complete(e){}})}));let l=this.userInfo._id+""+Date.now();o.name=l,g({title:"更新中",mask:!0});let{fileID:n}=await t.uploadFile({filePath:a,cloudPath:l,fileType:"image"});o.url=n,f(),this.setAvatarFile(o)}})}}},[["render",function(e,t,l,n,d,r){const u=m(y("cloud-image"),U),h=m(y("uni-icons"),b),p=c;return i(),s(p,{onClick:r.uploadAvatarImg,class:w(["box",{showBorder:l.border}]),style:a({width:l.width,height:l.height,lineHeight:l.height})},{default:o((()=>[r.avatar_file?(i(),s(u,{key:0,src:r.avatar_file.url,width:l.width,height:l.height},null,8,["src","width","height"])):(i(),s(h,{key:1,style:a({width:l.width,height:l.height,lineHeight:l.height}),class:"chooseAvatar",type:"plusempty",size:"30",color:"#dddddd"},null,8,["style"]))])),_:1},8,["onClick","class","style"])}],["__scopeId","data-v-9650e156"]]);const N=e({name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:()=>({})},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:()=>({type:"",color:"#000000",size:20,customPrefix:""})},border:{type:Boolean,default:!0},customStyle:{type:Object,default:()=>({padding:"",backgroundColor:"#FFFFFF"})},keepScrollPosition:{type:Boolean,default:!1}},watch:{"customStyle.padding":{handler(e){"number"==typeof e&&(e+="");let t=e.split(" ");if(1===t.length){const e=t[0];this.padding={top:e,right:e,bottom:e,left:e}}else if(2===t.length){const[e,i]=t;this.padding={top:e,right:i,bottom:e,left:i}}else if(4===t.length){const[e,i,s,o]=t;this.padding={top:e,right:i,bottom:s,left:o}}},immediate:!0}},data:()=>({isFirstChild:!1,padding:{top:"",right:"",bottom:"",left:""}}),mounted(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm(e="uniList"){let t=this.$parent,i=t.$options.name;for(;i!==e;){if(t=t.$parent,!t)return!1;i=t.$options.name}return t},onClick(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange(e){this.$emit("switchChange",e.detail)},openPage(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi(e){let t={url:this.to,success:e=>{this.$emit("click",{data:e})},fail:e=>{this.$emit("click",{data:e})}};switch(e){case"navigateTo":default:h(t);break;case"redirectTo":S(t);break;case"reLaunch":_(t);break;case"switchTab":k(t)}}}},[["render",function(e,t,d,r,u,h){const p=c,g=n,f=m(y("uni-icons"),b),k=T,_=m(y("uni-badge"),x),S=M;return i(),s(p,{class:w([{"uni-list-item--disabled":d.disabled},"uni-list-item"]),style:a({"background-color":d.customStyle.backgroundColor}),"hover-class":!d.clickable&&!d.link||d.disabled||d.showSwitch?"":"uni-list-item--hover",onClick:h.onClick},{default:o((()=>[u.isFirstChild?l("",!0):(i(),s(p,{key:0,class:w(["border--left",{"uni-list--border":d.border}])},null,8,["class"])),C(p,{class:w(["uni-list-item__container",{"container--right":d.showArrow||d.link,"flex--direction":"column"===d.direction}]),style:a({paddingTop:u.padding.top,paddingLeft:u.padding.left,paddingRight:u.padding.right,paddingBottom:u.padding.bottom})},{default:o((()=>[v(e.$slots,"header",{},(()=>[C(p,{class:"uni-list-item__header"},{default:o((()=>[d.thumb?(i(),s(p,{key:0,class:"uni-list-item__icon"},{default:o((()=>[C(g,{src:d.thumb,class:w(["uni-list-item__icon-img",["uni-list--"+d.thumbSize]])},null,8,["src","class"])])),_:1})):d.showExtraIcon?(i(),s(p,{key:1,class:"uni-list-item__icon"},{default:o((()=>[C(f,{customPrefix:d.extraIcon.customPrefix,color:d.extraIcon.color,size:d.extraIcon.size,type:d.extraIcon.type},null,8,["customPrefix","color","size","type"])])),_:1})):l("",!0)])),_:1})]),!0),v(e.$slots,"body",{},(()=>[C(p,{class:w(["uni-list-item__content",{"uni-list-item__content--center":d.thumb||d.showExtraIcon||d.showBadge||d.showSwitch}])},{default:o((()=>[d.title?(i(),s(k,{key:0,class:w(["uni-list-item__content-title",[0!==d.ellipsis&&d.ellipsis<=2?"uni-ellipsis-"+d.ellipsis:""]])},{default:o((()=>[I(B(d.title),1)])),_:1},8,["class"])):l("",!0),d.note?(i(),s(k,{key:1,class:"uni-list-item__content-note"},{default:o((()=>[I(B(d.note),1)])),_:1})):l("",!0)])),_:1},8,["class"])]),!0),v(e.$slots,"footer",{},(()=>[d.rightText||d.showBadge||d.showSwitch?(i(),s(p,{key:0,class:w(["uni-list-item__extra",{"flex--justify":"column"===d.direction}])},{default:o((()=>[d.rightText?(i(),s(k,{key:0,class:"uni-list-item__extra-text"},{default:o((()=>[I(B(d.rightText),1)])),_:1})):l("",!0),d.showBadge?(i(),s(_,{key:1,type:d.badgeType,text:d.badgeText,"custom-style":d.badgeStyle},null,8,["type","text","custom-style"])):l("",!0),d.showSwitch?(i(),s(S,{key:2,disabled:d.disabled,checked:d.switchChecked,onChange:h.onSwitchChange},null,8,["disabled","checked","onChange"])):l("",!0)])),_:1},8,["class"])):l("",!0)]),!0)])),_:3},8,["class","style"]),d.showArrow||d.link?(i(),s(f,{key:1,size:16,class:"uni-icon-wrapper",color:"#bbb",type:"arrowright"})):l("",!0)])),_:3},8,["class","style","hover-class","onClick"])}],["__scopeId","data-v-77963a5a"]]);const q=e({name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{stackFromEnd:{type:Boolean,default:!1},enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0},renderReverse:{type:Boolean,default:!1}},created(){this.firstChildAppend=!1},methods:{loadMore(e){this.$emit("scrolltolower")},scroll(e){this.$emit("scroll",e)}}},[["render",function(e,t,a,n,d,r){const u=c;return i(),s(u,{class:"uni-list uni-border-top-bottom"},{default:o((()=>[a.border?(i(),s(u,{key:0,class:"uni-list--border-top"})):l("",!0),v(e.$slots,"default",{},void 0,!0),a.border?(i(),s(u,{key:1,class:"uni-list--border-bottom"})):l("",!0)])),_:3})}],["__scopeId","data-v-c1d7c358"]]);t.database().collection("uni-id-users");const R=t.importObject("uni-id-co");const E=e({emits:["success"],computed:{},data:()=>({}),methods:{beforeGetphonenumber:async()=>await new Promise(((e,i)=>{g({mask:!0}),wx.checkSession({success(){e(),f()},fail(){L({success({code:s}){t.importObject("uni-id-co",{customUI:!0}).loginByWeixin({code:s}).then((t=>{e()})).catch((e=>{console.log(e),i()})).finally((e=>{f()}))},fail:e=>{console.error(e),i()}})}})})),async bindMobileByMpWeixin(e){"getPhoneNumber:ok"==e.detail.errMsg?(await this.beforeGetphonenumber(),R.bindMobileByMpWeixin(e.detail).then((e=>{this.$emit("success")})).finally((e=>{this.closeMe()}))):this.closeMe()},async open(){this.$refs.popup.open()},closeMe(e){this.$refs.popup.close()}}},[["render",function(e,t,a,l,n,d){const r=T,u=$,h=c,p=m(y("uni-popup"),P);return i(),s(p,{ref:"popup",type:"bottom"},{default:o((()=>[C(h,{class:"box"},{default:o((()=>[C(r,{class:"headBox"},{default:o((()=>[I("绑定资料")])),_:1}),C(r,{class:"tip"},{default:o((()=>[I("将一键获取你的手机号码绑定你的个人资料")])),_:1}),C(h,{class:"btnBox"},{default:o((()=>[C(r,{onClick:d.closeMe,class:"close"},{default:o((()=>[I("关闭")])),_:1},8,["onClick"]),C(u,{class:"agree uni-btn",type:"primary","open-type":"getPhoneNumber",onGetphonenumber:d.bindMobileByMpWeixin},{default:o((()=>[I("获取")])),_:1},8,["onGetphonenumber"])])),_:1})])),_:1})])),_:1},512)}],["__scopeId","data-v-1edc5089"]]),G=t.importObject("uni-id-co");const W=e({computed:{userInfo:()=>r.userInfo},data:()=>({univerifyStyle:{authButton:{title:"本机号码一键绑定"},otherLoginButton:{title:"其他号码绑定"}},hasPwd:!1,showLoginManage:!1}),async onShow(){this.univerifyStyle.authButton.title="本机号码一键绑定",this.univerifyStyle.otherLoginButton.title="其他号码绑定"},async onLoad(e){e.showLoginManage&&(this.showLoginManage=!0);let t=await G.getAccountInfo();this.hasPwd=t.isPasswordSet},methods:{login(){h({url:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd",complete:e=>{}})},logout(){u.logout()},bindMobileSuccess(){u.updateUserInfo()},changePassword(){h({url:"/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",complete:e=>{}})},bindMobile(){this.bindMobileBySmsCode()},univerify(){L({provider:"univerify",univerifyStyle:this.univerifyStyle,success:async e=>{G.bindMobileByUniverify(e.authResult).then((e=>{u.updateUserInfo()})).catch((e=>{console.log(e)})).finally((e=>{uni.closeAuthView()}))},fail:e=>{console.log(e),"30002"!=e.code&&"30001"!=e.code||this.bindMobileBySmsCode()}})},bindMobileBySmsCode(){h({url:"./bind-mobile/bind-mobile"})},setNickname(e){e?(u.updateUserInfo({nickname:e}),this.$refs.dialog.close()):this.$refs.dialog.open()},deactivate(){h({url:"/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate"})},async bindThirdAccount(e){const i=t.importObject("uni-id-co"),s={weixin:"wx_openid",alipay:"ali_openid",apple:"apple_openid",qq:"qq_openid"}[e.toLowerCase()];this.userInfo[s]?(await i["unbind"+e](),await u.updateUserInfo()):L({provider:e.toLowerCase(),onlyAuthorize:!0,success:async t=>{const s=await i["bind"+e]({code:t.code});s.errCode&&F({title:s.errMsg||"绑定失败",duration:3e3}),await u.updateUserInfo()},fail:async e=>{console.log(e),f()}})}}},[["render",function(e,t,a,n,d,r){const u=m(y("uni-id-pages-avatar"),O),h=c,p=m(y("uni-list-item"),N),g=m(y("uni-list"),q),f=m(y("uni-popup-dialog"),z),b=m(y("uni-popup"),P),w=m(y("uni-id-pages-bind-mobile"),E),k=$;return i(),s(h,{class:"uni-content"},{default:o((()=>[C(h,{class:"avatar"},{default:o((()=>[C(u,{width:"260rpx",height:"260rpx"})])),_:1}),C(g,null,{default:o((()=>[C(p,{class:"item",onClick:t[0]||(t[0]=e=>r.setNickname("")),title:"昵称",rightText:r.userInfo.nickname||"未设置",link:""},null,8,["rightText"]),C(p,{class:"item",onClick:r.bindMobile,title:"手机号",rightText:r.userInfo.mobile||"未绑定",link:""},null,8,["onClick","rightText"]),r.userInfo.email?(i(),s(p,{key:0,class:"item",title:"电子邮箱",rightText:r.userInfo.email},null,8,["rightText"])):l("",!0),d.hasPwd?(i(),s(p,{key:1,class:"item",onClick:r.changePassword,title:"修改密码",link:""},null,8,["onClick"])):l("",!0)])),_:1}),C(g,{class:"mt10"},{default:o((()=>[C(p,{onClick:r.deactivate,title:"注销账号",link:"navigateTo"},null,8,["onClick"])])),_:1}),C(b,{ref:"dialog",type:"dialog"},{default:o((()=>[C(f,{mode:"input",value:r.userInfo.nickname,onConfirm:r.setNickname,title:"设置昵称",placeholder:"请输入要设置的昵称"},null,8,["value","onConfirm"])])),_:1},512),C(w,{ref:"bind-mobile-by-sms",onSuccess:r.bindMobileSuccess},null,8,["onSuccess"]),d.showLoginManage?(i(),A(j,{key:0},[r.userInfo._id?(i(),s(k,{key:0,onClick:r.logout},{default:o((()=>[I("退出登录")])),_:1},8,["onClick"])):(i(),s(k,{key:1,onClick:r.login},{default:o((()=>[I("去登录")])),_:1},8,["onClick"]))],64)):l("",!0)])),_:1})}],["__scopeId","data-v-3ac98ea6"]]);export{W as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-add.3b71204d.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-add.3b71204d.js new file mode 100644 index 0000000000000000000000000000000000000000..3cee14181018d4a13572ed7f799640644165e05b --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-add.3b71204d.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,y as i,s,G as n,o,c as r,w as d,i as u,a as m,d as p,t as c,b as f,e as h,r as _,F as b,P as y,f as g,g as D,Q as V,q as k,p as v,R as x,T as C,U as S,V as U,W as w}from"./index-389238f5.js";import{_ as W}from"./uni-easyinput.a1fc57c1.js";import{_ as F}from"./uni-forms-item.69698491.js";import{_ as T}from"./uni-data-checkbox.b1dd95fe.js";import{_ as G,a as j}from"./uni-card.0addf51a.js";import{_ as O}from"./uni-file-picker.1b864550.js";import{_ as q}from"./uni-forms.bc4bcf6e.js";import{a as I,f as L}from"./version_add_detail_mixin.1fff617b.js";import{a as P}from"./utils.df25cf33.js";import"./uni-load-more.67944ae0.js";const A=a.database();A.command;const z=P;const N=e({mixins:[I],data:()=>({latestVersion:"0.0.0",lastVersionId:""}),async onLoad({appid:e,name:a,type:t}){if(e&&t&&a){const l=await this.getStoreList(e);this.formData={...this.formData,appid:e,name:a,type:t,store_list:l},this.latestStableData=await this.getDetail(e,t),!this.isWGT&&this.latestStableData.length&&this.setFormData("Android"),this.isWGT&&this.rules.min_uni_version.rules.push({required:!0})}},watch:{isiOS(e){e||!this.hasPackage?this.formData.url="":this.formData.url=this.appFileList.url},"formData.platform"(e){this.setFormData(e)}},methods:{setFormData(e){t({mask:!0}),this.latestVersion="0.0.0",this.lastVersionId="";const a=this.getData(this.latestStableData,e)[0];if(a){const{_id:e,version:t,name:l,platform:i,min_uni_version:s,url:n}=a;this.lastVersionId=e,this.latestVersion=t,this.formData.name=l,this.isWGT?this.formData.min_uni_version=s:(delete this.formData.min_uni_version,this.formData.platform=i[0],this.isiOS&&(this.formData.url=n))}else this.isWGT&&(this.formData.min_uni_version="");l()},submit(){t({mask:!0}),this.$refs.form.validate(["store_list"]).then((e=>{if(function(e="0",a="0"){e=String(e).split("."),a=String(a).split(".");const t=Math.min(e.length,a.length);let l=0;for(let i=0;is){l=1;break}if(ta.length,s=i?e:a;for(let e=t;e0){l=i?1:-1;break}}return l}(this.latestVersion,e.version)>=0)throw i({content:`版本号必须大于当前已上线版本(${this.latestVersion})`,showCancel:!1}),new Error("版本号必须大于已上线版本(${this.latestVersion})");this.isWGT||(e.platform=[e.platform]),(this.isiOS||this.isWGT)&&delete e.store_list,e.store_list&&e.store_list.forEach((e=>{e.priority=parseFloat(e.priority)})),this.submitForm(e)})).catch((e=>{l()}))},async submitForm(e){e=this.createCenterRecord(e);const a=A.collection(z);let t,o=[];this.isWGT||(o=await this.getDetail(e.appid,e.type,this.createStatQuery(e))),o.length?(e.create_date=Date.now(),t=a.doc(o[0]._id).update(e)):t=a.add(e),t.then((async t=>{e.stable_publish&&this.lastVersionId&&await a.doc(this.lastVersionId).update({stable_publish:!1}),s({title:"新增成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>n()),500)})).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))},getDetail:(e,a,s={})=>(t({mask:!0}),A.collection(z).where(Object.assign({appid:e,type:a,stable_publish:!0},s)).field(L).get().then((e=>e.result.data)).catch((e=>{i({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))),getData:(e=[],a)=>"string"==typeof a?e.filter((e=>e.platform.includes(a))):e.filter((e=>e.platform.toString()===a.toString())),back(){i({title:"取消发布",content:this.hasPackage?"将会删除已上传的包":void 0,success:e=>{e.confirm&&(this.hasPackage&&this.deleteFile([this.appFileList.url]),n())}})}}},[["render",function(e,a,t,l,i,s){const n=u,I=g(D("uni-easyinput"),W),L=g(D("uni-forms-item"),F),P=V,A=g(D("uni-data-checkbox"),T),z=g(D("show-info"),G),N=k,E=v,$=g(D("uni-file-picker"),O),M=S,Q=U,R=w,B=g(D("uni-card"),j),H=x,J=g(D("uni-forms"),q);return o(),r(n,{class:"uni-container"},{default:d((()=>[m(n,{class:"uni-header"},{default:d((()=>[m(n,{class:"uni-group"},{default:d((()=>[m(n,{class:"uni-title"},{default:d((()=>[p("包类型")])),_:1}),m(n,{class:"uni-sub-title"},{default:d((()=>[p(c(e.type_valuetotext[e.formData.type]),1)])),_:1})])),_:1})])),_:1}),m(J,{ref:"form",value:e.formData,validateTrigger:"bind",labelWidth:e.labelWidth},{default:d((()=>[m(L,{name:"appid",label:"AppID",required:""},{default:d((()=>[m(I,{disabled:!0,modelValue:e.formData.appid,"onUpdate:modelValue":a[0]||(a[0]=a=>e.formData.appid=a),trim:"both"},null,8,["modelValue"])])),_:1}),m(L,{name:"name",label:"应用名称"},{default:d((()=>[m(I,{disabled:!0,modelValue:e.formData.name,"onUpdate:modelValue":a[1]||(a[1]=a=>e.formData.name=a),trim:"both"},null,8,["modelValue"])])),_:1}),m(L,{name:"title",label:"更新标题"},{default:d((()=>[m(I,{placeholder:"更新标题",modelValue:e.formData.title,"onUpdate:modelValue":a[2]||(a[2]=a=>e.formData.title=a)},null,8,["modelValue"])])),_:1}),m(L,{name:"contents",label:"更新内容",required:""},{default:d((()=>[m(P,{"auto-height":"",style:{"box-sizing":"content-box"},onInput:a[3]||(a[3]=a=>e.binddata("contents",a.detail.value)),class:"uni-textarea-border",value:e.formData.contents,"onUpdate:value":a[4]||(a[4]=a=>e.formData.contents=a)},null,8,["value"])])),_:1}),m(L,{name:"platform",label:"平台",required:""},{default:d((()=>[m(A,{multiple:e.isWGT,modelValue:e.formData.platform,"onUpdate:modelValue":a[5]||(a[5]=a=>e.formData.platform=a),localdata:e.platformLocaldata},null,8,["multiple","modelValue","localdata"])])),_:1}),m(L,{name:"version",label:"版本号",required:""},{default:d((()=>[m(I,{modelValue:e.formData.version,"onUpdate:modelValue":a[6]||(a[6]=a=>e.formData.version=a),placeholder:"当前包版本号,必须大于当前线上发行版本号"},null,8,["modelValue"])])),_:1}),e.isWGT?(o(),r(L,{key:"min_uni_version",name:"min_uni_version",label:"原生App最低版本",required:e.isWGT},{default:d((()=>[m(I,{placeholder:"原生App最低版本",modelValue:e.formData.min_uni_version,"onUpdate:modelValue":a[7]||(a[7]=a=>e.formData.min_uni_version=a)},null,8,["modelValue"]),m(z,{content:e.minUniVersionContent},null,8,["content"])])),_:1},8,["required"])):f("",!0),e.isiOS?f("",!0):(o(),r(L,{key:1,label:"上传apk包"},{default:d((()=>[m($,{modelValue:e.appFileList,"onUpdate:modelValue":a[8]||(a[8]=a=>e.appFileList=a),"file-extname":e.fileExtname,disabled:e.hasPackage,returnType:"object","file-mediatype":"all",limit:"1",onSuccess:e.packageUploadSuccess,onDelete:e.packageDelete},{default:d((()=>[m(n,{class:"flex"},{default:d((()=>[m(N,{type:"primary",size:"mini",onClick:e.selectFile,style:{margin:"0"}},{default:d((()=>[p("选择文件")])),_:1},8,["onClick"]),m(E,{style:{padding:"10px","font-size":"12px",color:"#666"}},{default:d((()=>[p("上传apk到当前服务空间的云存储中,上传成功后,会自动使用云存储地址填充下载链接")])),_:1}),m(E,{class:"uni-sub-title",style:{"font-size":"12px"}},{default:d((()=>[p("上传文件后同步到各地cdn缓存节点有延迟。请适当等候再提交新版信息入库,触发客户端更新提示。")])),_:1})])),_:1})])),_:1},8,["modelValue","file-extname","disabled","onSuccess","onDelete"]),e.hasPackage?(o(),r(E,{key:0,style:{"padding-left":"20px",color:"#a8a8a8"}},{default:d((()=>[p(c(Number(e.appFileList.size/1024/1024).toFixed(2))+"M",1)])),_:1})):f("",!0)])),_:1})),m(L,{key:"url",name:"url",label:e.isiOS?"AppStore":"下载链接",required:""},{default:d((()=>[m(I,{placeholder:"链接",modelValue:e.formData.url,"onUpdate:modelValue":a[9]||(a[9]=a=>e.formData.url=a),maxlength:-1},null,8,["modelValue"])])),_:1},8,["label"]),e.isiOS||e.isWGT||!e.formData.store_list.length?f("",!0):(o(),r(L,{label:"Android应用市场",labelWidth:"125px",key:"store_list",name:"store_list"},{default:d((()=>[m(n,{style:{flex:"1"}},{default:d((()=>[(o(!0),h(b,null,_(e.formData.store_list,(a=>(o(),r(n,{key:a.id},{default:d((()=>[m(B,{style:{margin:"0px 0px 20px 0px"}},{default:d((()=>[m(n,{style:{display:"flex"}},{default:d((()=>[m(R,{style:{"user-select":"none"},onChange:({detail:{value:e}})=>{a.enable=!!e.length}},{default:d((()=>[m(Q,{class:"title_padding"},{default:d((()=>[m(M,{value:"scheme",checked:a.enable},null,8,["checked"]),m(E,null,{default:d((()=>[p("是否启用")])),_:1})])),_:2},1024)])),_:2},1032,["onChange"])])),_:2},1024),m(L,{label:"商店名称"},{default:d((()=>[m(I,{disabled:"",modelValue:a.name,"onUpdate:modelValue":e=>a.name=e,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),m(L,{label:"Scheme"},{default:d((()=>[m(I,{disabled:"",modelValue:a.scheme,"onUpdate:modelValue":e=>a.scheme=e,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),m(L,{label:"优先级"},{default:d((()=>[m(I,{modelValue:a.priority,"onUpdate:modelValue":e=>a.priority=e,type:"number"},null,8,["modelValue","onUpdate:modelValue"]),m(z,{top:-100,left:-180,content:e.priorityContent},null,8,["content"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})),e.isWGT?(o(),r(L,{key:"is_silently",name:"is_silently",label:"静默更新"},{default:d((()=>[m(H,{onChange:a[10]||(a[10]=a=>e.binddata("is_silently",a.detail.value)),checked:e.formData.is_silently},null,8,["checked"]),m(z,{top:-80,content:e.silentlyContent},null,8,["content"])])),_:1})):f("",!0),e.isiOS?f("",!0):(o(),r(L,{key:"is_mandatory",name:"is_mandatory",label:"强制更新"},{default:d((()=>[m(H,{onChange:a[11]||(a[11]=a=>e.binddata("is_mandatory",a.detail.value)),checked:e.formData.is_mandatory},null,8,["checked"]),m(z,{content:e.mandatoryContent},null,8,["content"])])),_:1})),m(L,{name:"stable_publish",label:"上线发行"},{default:d((()=>[m(H,{onChange:a[12]||(a[12]=a=>e.binddata("stable_publish",a.detail.value)),checked:e.formData.stable_publish},null,8,["checked"]),m(z,{top:-40,content:e.stablePublishContent2},null,8,["content"])])),_:1}),y(m(L,{name:"type",label:"安装包类型"},{default:d((()=>[m(A,{modelValue:e.formData.type,"onUpdate:modelValue":a[13]||(a[13]=a=>e.formData.type=a),localdata:e.formOptions.type_localdata},null,8,["modelValue","localdata"])])),_:1},512),[[C,!1]]),m(n,{class:"uni-button-group"},{default:d((()=>[m(N,{type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:d((()=>[p("发布")])),_:1},8,["onClick"]),m(N,{type:"warn",class:"uni-button",style:{width:"100px","margin-left":"15px"},onClick:s.back},{default:d((()=>[p("取消")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["value","labelWidth"])])),_:1})}],["__scopeId","data-v-b471f01c"]]);export{N as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-detail.0a376ba7.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-detail.0a376ba7.js new file mode 100644 index 0000000000000000000000000000000000000000..156edf03efaf9368ddbb95d6eebdf7c7f545ee99 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-detail.0a376ba7.js @@ -0,0 +1 @@ +import{_ as e,L as a,N as t,O as l,s as i,G as s,y as o,o as n,c as d,w as u,i as r,a as m,d as c,t as f,b as p,e as h,r as b,F as _,P as y,q as D,f as k,g,Q as V,p as S,R as v,X as x,T as C,U as w,V as U,W as j}from"./index-389238f5.js";import{_ as F}from"./uni-easyinput.a1fc57c1.js";import{_ as T}from"./uni-forms-item.69698491.js";import{_ as W}from"./uni-data-checkbox.b1dd95fe.js";import{_ as q,a as L}from"./uni-card.0addf51a.js";import{_ as O}from"./uni-file-picker.1b864550.js";import{_ as P}from"./uni-dateformat.b1c4ea95.js";import{_ as G}from"./uni-forms.bc4bcf6e.js";import{a as I,f as E}from"./version_add_detail_mixin.1fff617b.js";import{c as A,a as z}from"./utils.df25cf33.js";import"./uni-load-more.67944ae0.js";const M=a.database();M.command;const B=z;const N=e({mixins:[I],data:()=>({showStableInfo:!1,isStable:!0,originalData:{},detailsState:!0}),async onLoad(e){const a=e.id;this.formDataId=a,await this.getDetail(a),this.isStable=this.formData.stable_publish,this.latestStableData=await this.getLatestVersion(),this.isWGT&&this.rules.min_uni_version.rules.push({required:!0})},methods:{submit(){t({mask:!0}),this.$refs.form.validate(["store_list"]).then((e=>{e.store_list&&e.store_list.forEach((e=>{e.priority=parseFloat(e.priority)})),this.submitForm(e)})).catch((e=>{l()}))},async submitForm(e){const a=M.collection(B);a.doc(this.formDataId).update(e).then((async t=>{!this.isStable&&!0===e.stable_publish&&this.latestStableData&&await a.doc(this.latestStableData._id).update({stable_publish:!1}),i({title:"修改成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{o({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))},getDetail(e){return t({mask:!0}),M.collection(B).doc(e).field(E).get().then((e=>{const a=e.result.data[0];a&&(a.store_list||(a.store_list=[]),this.formData=a,this.originalData=A(this.formData))})).catch((e=>{o({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()}))},deletePackage(){o({title:"提示",content:"是否删除该版本",success:e=>{e.confirm&&(t({mask:!0}),M.collection(B).doc(this.formDataId).remove().then((()=>{i({title:"删除成功"}),this.getOpenerEventChannel().emit("refreshData"),setTimeout((()=>s()),500)})).catch((e=>{o({content:e.message||"请求服务失败",showCancel:!1})})).finally((()=>{l()})))}})},async getLatestVersion(){const e={appid:this.formData.appid,type:this.formData.type,stable_publish:!0};this.isWGT||(e.platform=this.formData.platform[0]);return(await M.collection(B).where(e).get()).result.data.find((e=>e.platform.toString()===this.formData.platform.toString()))},cancelEdit(){let e="";!this.isiOS&&this.hasPackage&&(e+="\n将会删除已上传的包"),o({title:"取消修改",content:e,success:e=>{e.confirm&&(this.formData=A(this.originalData),this.detailsState=!0,this.hasPackage&&this.deleteFile([this.appFileList.url]))}})}}},[["render",function(e,a,t,l,i,s){const o=r,I=D,E=k(g("uni-easyinput"),F),A=k(g("uni-forms-item"),T),z=V,M=k(g("uni-data-checkbox"),W),B=k(g("show-info"),q),N=k(g("uni-file-picker"),O),H=S,J=w,Q=U,R=j,X=k(g("uni-card"),L),$=v,K=k(g("uni-dateformat"),P),Y=x,Z=k(g("uni-forms"),G);return n(),d(o,{class:"uni-container"},{default:u((()=>[m(o,{class:"uni-header"},{default:u((()=>[m(o,{class:"uni-group"},{default:u((()=>[m(o,{class:"uni-title"},{default:u((()=>[c("包类型")])),_:1}),m(o,{class:"uni-sub-title",style:{display:"flex","justify-content":"center","align-items":"center"}},{default:u((()=>[c(f(e.type_valuetotext[e.formData.type]),1)])),_:1})])),_:1}),i.isStable?p("",!0):(n(),d(o,{key:0,class:"uni-group"},{default:u((()=>[m(I,{class:"uni-button",type:"warn",size:"mini",onClick:s.deletePackage},{default:u((()=>[c("删除")])),_:1},8,["onClick"])])),_:1}))])),_:1}),m(Z,{ref:"form",value:e.formData,validateTrigger:"bind",labelWidth:e.labelWidth},{default:u((()=>[m(A,{name:"appid",label:"AppID",required:""},{default:u((()=>[m(E,{disabled:!0,modelValue:e.formData.appid,"onUpdate:modelValue":a[0]||(a[0]=a=>e.formData.appid=a),trim:"both"},null,8,["modelValue"])])),_:1}),m(A,{name:"name",label:"应用名称"},{default:u((()=>[m(E,{disabled:!0,modelValue:e.formData.name,"onUpdate:modelValue":a[1]||(a[1]=a=>e.formData.name=a),trim:"both"},null,8,["modelValue"])])),_:1}),m(A,{name:"title",label:"更新标题"},{default:u((()=>[m(E,{disabled:i.detailsState,placeholder:"更新标题",modelValue:e.formData.title,"onUpdate:modelValue":a[2]||(a[2]=a=>e.formData.title=a)},null,8,["disabled","modelValue"])])),_:1}),m(A,{name:"contents",label:"更新内容",required:""},{default:u((()=>[m(z,{"auto-height":"",style:{"box-sizing":"content-box"},disabled:i.detailsState,onInput:a[3]||(a[3]=a=>e.binddata("contents",a.detail.value)),class:"uni-textarea-border",value:e.formData.contents,"onUpdate:value":a[4]||(a[4]=a=>e.formData.contents=a)},null,8,["disabled","value"])])),_:1}),m(A,{name:"platform",label:"平台",required:""},{default:u((()=>[m(M,{disabled:!0,multiple:!0,modelValue:e.formData.platform,"onUpdate:modelValue":a[5]||(a[5]=a=>e.formData.platform=a),localdata:e.platformLocaldata},null,8,["modelValue","localdata"])])),_:1}),m(A,{name:"version",label:"版本号",required:""},{default:u((()=>[m(E,{disabled:!0,modelValue:e.formData.version,"onUpdate:modelValue":a[6]||(a[6]=a=>e.formData.version=a),placeholder:"当前包版本号,必须大于当前已上线版本号"},null,8,["modelValue"])])),_:1}),e.isWGT?(n(),d(A,{key:"min_uni_version",name:"min_uni_version",label:"原生App最低版本",required:e.isWGT},{default:u((()=>[m(E,{disabled:i.detailsState,placeholder:"原生App最低版本",modelValue:e.formData.min_uni_version,"onUpdate:modelValue":a[7]||(a[7]=a=>e.formData.min_uni_version=a)},null,8,["disabled","modelValue"]),m(B,{content:e.minUniVersionContent},null,8,["content"])])),_:1},8,["required"])):p("",!0),e.isiOS||i.detailsState?p("",!0):(n(),d(A,{key:1,label:"上传apk包"},{default:u((()=>[m(N,{modelValue:e.appFileList,"onUpdate:modelValue":a[8]||(a[8]=a=>e.appFileList=a),"file-extname":e.fileExtname,disabled:e.hasPackage,returnType:"object","file-mediatype":"all",limit:"1",onSuccess:e.packageUploadSuccess,onDelete:e.packageDelete},{default:u((()=>[m(I,{type:"primary",size:"mini",onClick:e.selectFile},{default:u((()=>[c("选择文件")])),_:1},8,["onClick"])])),_:1},8,["modelValue","file-extname","disabled","onSuccess","onDelete"]),e.hasPackage?(n(),d(H,{key:0,style:{"padding-left":"20px",color:"#a8a8a8"}},{default:u((()=>[c(f(Number(e.appFileList.size/1024/1024).toFixed(2))+"M",1)])),_:1})):p("",!0)])),_:1})),m(A,{key:"url",name:"url",label:e.isiOS?"AppStore":"下载链接",required:""},{default:u((()=>[m(E,{disabled:i.detailsState,placeholder:"下载链接",modelValue:e.formData.url,"onUpdate:modelValue":a[9]||(a[9]=a=>e.formData.url=a),maxlength:-1},null,8,["disabled","modelValue"])])),_:1},8,["label"]),e.isiOS||e.isWGT||!e.formData.store_list.length?p("",!0):(n(),d(A,{label:"Android应用市场",key:"store_list",name:"store_list",labelWidth:"120"},{default:u((()=>[m(o,{style:{flex:"1"}},{default:u((()=>[(n(!0),h(_,null,b(e.formData.store_list,((a,t)=>(n(),d(o,{key:a.id},{default:u((()=>[m(X,{style:{margin:"0px 0px 20px 0px"}},{default:u((()=>[m(o,{style:{display:"flex"}},{default:u((()=>[m(R,{style:{"user-select":"none"},onChange:({detail:{value:e}})=>{a.enable=!!e.length}},{default:u((()=>[m(Q,{class:"title_padding"},{default:u((()=>[m(J,{disabled:i.detailsState,value:"scheme",checked:a.enable},null,8,["disabled","checked"]),m(H,null,{default:u((()=>[c("是否启用")])),_:1})])),_:2},1024)])),_:2},1032,["onChange"])])),_:2},1024),m(A,{label:"商店名称"},{default:u((()=>[m(E,{disabled:"",modelValue:a.name,"onUpdate:modelValue":e=>a.name=e,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),m(A,{label:"Scheme"},{default:u((()=>[m(E,{disabled:"",modelValue:a.scheme,"onUpdate:modelValue":e=>a.scheme=e,trim:"both"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),m(A,{label:"优先级"},{default:u((()=>[m(E,{disabled:i.detailsState,modelValue:a.priority,"onUpdate:modelValue":e=>a.priority=e,type:"number"},null,8,["disabled","modelValue","onUpdate:modelValue"]),m(B,{top:-100,left:-180,content:e.priorityContent},null,8,["content"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})),e.isWGT?(n(),d(A,{key:"is_silently",name:"is_silently",label:"静默更新"},{default:u((()=>[m($,{disabled:i.detailsState,onChange:a[10]||(a[10]=a=>(e.binddata("is_silently",a.detail.value),e.formData.is_silently=a.detail.value)),checked:e.formData.is_silently},null,8,["disabled","checked"]),m(B,{top:-80,content:e.silentlyContent},null,8,["content"])])),_:1})):p("",!0),e.isiOS?p("",!0):(n(),d(A,{key:"is_mandatory",name:"is_mandatory",label:"强制更新"},{default:u((()=>[m($,{disabled:i.detailsState,onChange:a[11]||(a[11]=a=>(e.binddata("is_mandatory",a.detail.value),e.formData.is_mandatory=a.detail.value)),checked:e.formData.is_mandatory},null,8,["disabled","checked"]),m(B,{width:"230",top:-30,content:e.mandatoryContent},null,8,["content"])])),_:1})),m(A,{name:"stable_publish",label:"上线发行"},{default:u((()=>[m($,{disabled:i.detailsState||i.isStable,onChange:a[12]||(a[12]=a=>(e.binddata("stable_publish",a.detail.value),e.formData.stable_publish=a.detail.value)),checked:e.formData.stable_publish},null,8,["disabled","checked"]),i.isStable?(n(),d(B,{key:0,top:-50,width:"350",content:e.stablePublishContent},null,8,["content"])):(n(),d(B,{key:1,top:-40,content:e.stablePublishContent2},null,8,["content"]))])),_:1}),m(A,{name:"create_date",label:"上传时间"},{default:u((()=>[m(K,{format:"yyyy-MM-dd hh:mm:ss",date:e.formData.create_date,threshold:[0,0]},null,8,["date"])])),_:1}),y(m(A,{name:"type",label:"安装包类型"},{default:u((()=>[m(M,{modelValue:e.formData.type,"onUpdate:modelValue":a[13]||(a[13]=a=>e.formData.type=a),localdata:e.formOptions.type_localdata},null,8,["modelValue","localdata"])])),_:1},512),[[C,!1]]),m(o,{class:"uni-button-group"},{default:u((()=>[i.detailsState?(n(),d(I,{key:0,type:"primary",class:"uni-button",style:{width:"100px"},onClick:a[14]||(a[14]=e=>i.detailsState=!1)},{default:u((()=>[c("修改")])),_:1})):p("",!0),i.detailsState?p("",!0):(n(),d(I,{key:1,type:"primary",class:"uni-button",style:{width:"100px"},onClick:s.submit},{default:u((()=>[c("提交")])),_:1},8,["onClick"])),i.detailsState?p("",!0):(n(),d(I,{key:2,type:"warn",class:"uni-button",style:{width:"100px"},onClick:s.cancelEdit},{default:u((()=>[c("取消")])),_:1},8,["onClick"])),m(Y,{"open-type":"navigateBack",style:{"margin-left":"15px"}},{default:u((()=>[m(I,{class:"uni-button",style:{width:"100px"}},{default:u((()=>[c("返回")])),_:1})])),_:1})])),_:1})])),_:1},8,["value","labelWidth"])])),_:1})}],["__scopeId","data-v-f2716d1e"]]);export{N as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-list.ebe393cb.js b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-list.ebe393cb.js new file mode 100644 index 0000000000000000000000000000000000000000..fa07cc7e55d747b62a6b222c06b74fa5627971d4 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/uni_modules-uni-upgrade-center-pages-version-list.ebe393cb.js @@ -0,0 +1 @@ +import{L as e,_ as t,f as a,g as l,o as s,c as i,w as n,a as d,e as o,F as r,r as h,z as c,d as p,t as u,b as g,p as f,i as m,S as _,A as y,B as v,C as b,D as x,E as w,G as k,n as C,H as D,y as S,I,J as $,K as V,M as T,q as A,h as N,j as L,k as F,l as B}from"./index-389238f5.js";import{_ as M}from"./uni-load-more.67944ae0.js";import{_ as j}from"./uni-dateformat.b1c4ea95.js";import{_ as P}from"./uni-pagination.018f31ea.js";import{_ as z}from"./unicloud-db.dfa2c90d.js";import{a as O,e as E,d as R,b as W}from"./utils.df25cf33.js";const U={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocaldata(){return!this.collection.length},postField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let a=2;a{this.loading=!1,this.selected=t.result.data,e&&e()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},getTreePath(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((t=>{this.loading=!1;let a=[];this._extractTreePath(t.result.data,a),this.selected=a,e&&e()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},loadData(){this.isLocaldata?this._processLocalData():null==this.dataValue?this.stepSearh?this._loadNodeData((e=>{this._treeData=e,this._updateBindData()})):this._loadAllData((e=>{this._treeData=[],this._extractTree(e,this._treeData,null),this._updateBindData()})):this._loadNodeData((e=>{this._treeData=e,this._updateBindData(),this._updateSelected()}))},_loadAllData(e){this.loading||(this.loading=!0,this.getCommand({field:this.postField,gettree:!0,startwith:`${this.selfField}=='${this.dataValue}'`}).then((t=>{this.loading=!1,e(t.result.data),this.onDataChange()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},_loadNodeData(e,t){this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:t||this._postWhere(),pageSize:500}).then((t=>{this.loading=!1,e(t.result.data),this.onDataChange()})).catch((e=>{this.loading=!1,this.errorMessage=e})))},_pathWhere(){let e=[],t=this._getParentNameByField();return t&&e.push(`${t} == '${this.dataValue}'`),this.where?`(${this.where}) && (${e.join(" || ")})`:e.join(" || ")},_postWhere(){let e=[],t=this.selected,a=this.parentField;if(a&&e.push(`${a} == null || ${a} == ""`),t.length)for(var l=0;lnull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let n=0;ne.parent_value===s));i.length?a.push(i):l=!1}return{dataList:a,hasNodes:l}},_extractTree(e,t,a){let l=this.map.value;for(let s=0;s({}),created(){this.managedMode||this.$nextTick((()=>{this.load()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.isLocaldata?this.loadData():this.dataValue.length&&this.getTreePath((e=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,a){if(e.disable)return;const l=this.dataList[t][a],s=l[this.map.text],i=l[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(l)):l.isleaf=!0,this.onSelectedChange(l,l.isleaf)}),this._nodeWhere()):this.onSelectedChange(l,!0)},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(e,t,y,v,b,x){const w=f,k=m,C=_,D=a(l("uni-load-more"),M);return s(),i(k,{class:"uni-data-pickerview"},{default:n((()=>[d(C,{class:"selected-area","scroll-x":"true","scroll-y":"false","show-scrollbar":!1},{default:n((()=>[d(k,{class:"selected-list"},{default:n((()=>[(s(!0),o(r,null,h(e.selected,((t,a)=>(s(),o(r,{key:a},[t.text?(s(),i(k,{key:0,class:c(["selected-item",{"selected-item-active":a==e.selectedIndex,"selected-item-text-overflow":y.ellipsis}]),onClick:e=>x.handleSelect(a)},{default:n((()=>[d(w,{class:""},{default:n((()=>[p(u(t.text),1)])),_:2},1024)])),_:2},1032,["class","onClick"])):g("",!0)],64)))),128))])),_:1})])),_:1}),d(k,{class:"tab-c"},{default:n((()=>[(s(!0),o(r,null,h(e.dataList,((t,a)=>(s(),o(r,{key:e.index},[a==e.selectedIndex?(s(),i(C,{class:"list",key:a,"scroll-y":!0},{default:n((()=>[(s(!0),o(r,null,h(t,((t,l)=>(s(),i(k,{class:c(["item",{"is-disabled":!!t.disable}]),key:l,onClick:e=>x.handleNodeClick(t,a,l)},{default:n((()=>[d(w,{class:"item-text item-text-overflow"},{default:n((()=>[p(u(t[e.map.text]),1)])),_:2},1024),e.selected.length>a&&t[e.map.value]==e.selected[a].value?(s(),i(k,{key:0,class:"check"})):g("",!0)])),_:2},1032,["class","onClick"])))),128))])),_:2},1024)):g("",!0)],64)))),128)),e.loading?(s(),i(k,{key:0,class:"loading-cover"},{default:n((()=>[d(D,{class:"load-more",contentText:e.loadMore,status:"loading"},null,8,["contentText"])])),_:1})):g("",!0),e.errorMessage?(s(),i(k,{key:1,class:"error-message"},{default:n((()=>[d(w,{class:"error-text"},{default:n((()=>[p(u(e.errorMessage),1)])),_:1})])),_:1})):g("",!0)])),_:1})])),_:1})}],["__scopeId","data-v-bae1831b"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this)),this.$nextTick((()=>{this.load()}))},methods:{clear(){this.inputSelected.splice(0),this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocaldata?(this.loadData(),this.inputSelected=this.selected.slice(0)):this.parentField||this.selfField||!this.hasValue?this.hasValue&&this.getTreePath((()=>{this.inputSelected=this.selected.slice(0)})):this.getNodeData((()=>{this.inputSelected=this.selected.slice(0)}))},getForm(e="uniForms"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly||this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let a=[];for(let i=0;ie.value==l));s&&a.push(s)}a.length&&(this.inputSelected=a)},_filterForArray(e,t){var a=[];for(let i=0;ie.value==l));s&&a.push(s)}return a},_dispatchEvent(e){let t={};if(e.length){for(var a=new Array(e.length),l=0;l[d($,{class:"uni-data-tree-input",onClick:D.handleInput},{default:n((()=>[b(e.$slots,"default",{options:w.options,data:C.inputSelected,error:e.errorMessage},(()=>[d($,{class:c(["input-value",{"input-value-border":w.border}])},{default:n((()=>[e.errorMessage?(s(),i(S,{key:0,class:"selected-area error-text"},{default:n((()=>[p(u(e.errorMessage),1)])),_:1})):e.loading&&!C.isOpened?(s(),i($,{key:1,class:"selected-area"},{default:n((()=>[d(I,{class:"load-more",contentText:e.loadMore,status:"loading"},null,8,["contentText"])])),_:1})):C.inputSelected.length?(s(),i(V,{key:2,class:"selected-area","scroll-x":"true"},{default:n((()=>[d($,{class:"selected-list"},{default:n((()=>[(s(!0),o(r,null,h(C.inputSelected,((e,t)=>(s(),i($,{class:"selected-item",key:t},{default:n((()=>[d(S,{class:"text-color"},{default:n((()=>[p(u(e.text),1)])),_:2},1024),t[p(u(w.split),1)])),_:1})):g("",!0)])),_:2},1024)))),128))])),_:1})])),_:1})):(s(),i(S,{key:3,class:"selected-area placeholder"},{default:n((()=>[p(u(w.placeholder),1)])),_:1})),w.clearIcon&&!w.readonly&&C.inputSelected.length?(s(),i($,{key:4,class:"icon-clear",onClick:x(D.clear,["stop"])},{default:n((()=>[d(T,{type:"clear",color:"#c0c4cc",size:"24"})])),_:1},8,["onClick"])):g("",!0),w.clearIcon&&C.inputSelected.length||w.readonly?g("",!0):(s(),i($,{key:5,class:"arrow-area"},{default:n((()=>[d($,{class:"input-arrow"})])),_:1}))])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),C.isOpened?(s(),i($,{key:0,class:"uni-data-tree-cover",onClick:D.handleClose},null,8,["onClick"])):g("",!0),C.isOpened?(s(),i($,{key:1,class:"uni-data-tree-dialog"},{default:n((()=>[d($,{class:"uni-popper__arrow"}),d($,{class:"dialog-caption"},{default:n((()=>[d($,{class:"title-area"},{default:n((()=>[d(S,{class:"dialog-title"},{default:n((()=>[p(u(w.popupTitle),1)])),_:1})])),_:1}),d($,{class:"dialog-close",onClick:D.handleClose},{default:n((()=>[d($,{class:"dialog-close-plus","data-id":"close"}),d($,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"])])),_:1}),d(A,{class:"picker-view",ref:"pickerView",modelValue:e.dataValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.dataValue=t),localdata:e.localdata,preload:e.preload,collection:e.collection,field:e.field,orderby:e.orderby,where:e.where,"step-searh":e.stepSearh,"self-field":e.selfField,"parent-field":e.parentField,"managed-mode":!0,map:e.map,ellipsis:w.ellipsis,onChange:D.onchange,onDatachange:D.ondatachange,onNodeclick:D.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])),_:1})):g("",!0)])),_:3})}],["__scopeId","data-v-fc53b656"]]),H=e.database(),K=H.command,G=["name","title","stable_publish","type"];function J(e={}){return{create_env:K.neq("uni-stat"),...e}}const X=t({data:()=>({backButtonHover:!1,appVersionListDbName:O,currentAppid:"",currentAppName:"",query:"",where:"",orderby:"stable_publish desc,create_date desc",selectedIndexs:[],options:{pageSize:20,pageCurrent:1,...E},imageStyles:{width:64,height:64},loaded:!1,containerTop:{},appList:[],showAppIndex:0}),async onLoad({appid:e}){await this.getAppList(),this.appList.length?(this.loaded=!0,this.appList.forEach(((t,a)=>{(t.appid===e||R)&&(this.showAppIndex=a)})),this.setAppInfo(this.showAppIndex),this.where=J({appid:this.currentAppid})):this.showModalToAppManager()},computed:{...w("app",["appid"]),appNameList(){return this.appList.map((e=>e.name))}},watch:{showAppIndex(e){this.setAppInfo(e),this.where=J({appid:this.currentAppid})}},onReady(){this.containerTop.height=`${document.documentElement?document.documentElement.clientHeight:window.innerHeight}px`},methods:{setAppInfo(e){this.currentAppid=this.appList[e].appid,this.currentAppName=this.appList[e].name},navigateBack(){k()},getWhere(){const e=this.query.trim();if(!e)return"";const t=new RegExp(e,"i");return G.map((e=>t+".test("+e+")")).join(" || ")},search(){const e=this.getWhere(),t=e===this.where;this.where=e,this.where&&(this.where=`(${this.where}) && `),this.where+=`${new RegExp(this.currentAppid,"i")}.test(appid)`,t&&this.loadData()},loadData(e=!0){this.$refs.udb.loadData({clear:e})},onPageChanged(e){this.$refs.udb.loadData({current:e.current})},navigateTo(e,t){C({url:e,events:{refreshData:()=>{this.loadData(t)}}})},selectedItems(){var e=this.$refs.udb.dataList;return this.selectedIndexs.map((t=>e[t]._id))},delTable(){this.$refs.udb.remove(this.selectedItems())},selectionChange(e){this.selectedIndexs=e.detail.index},confirmDelete(e){this.$refs.udb.remove(e)},publish(e){const{top:t,left:a,width:l,height:s}=document.querySelector(".uni-button.publish").getBoundingClientRect(),i=Object.keys(this.options.type_valuetotext);D({itemList:Object.values(this.options.type_valuetotext),popover:{top:t+s,left:a,width:l},success:async e=>{this.navigateTo(`./add?appid=${this.currentAppid}&name=${this.currentAppName}&type=${i[e.tapIndex]}`)}})},async getAppList(){try{const{result:e}=await H.collection(W).get();e&&e.data&&e.data.length>0?this.appList=e.data.filter((e=>e.appid!==this.appid)):this.showModalToAppManager()}catch(e){-1===["TOKEN_INVALID_TOKEN_EXPIRED","TOKEN_INVALID_ANONYMOUS_USER"].indexOf(e.code)&&this.showModalToAppManager()}},showModalToAppManager(){let e=null,t=3;function a(){C({url:"/pages/system/app/list"}),clearInterval(e)}e=setInterval((()=>{--t<=0&&a()}),1e3),S({title:"请先添加应用",content:"即将跳转至应用管理……",showCancel:!1,confirmText:"立即跳转",success:e=>a()})},store_list_key(e){const t=e?e.filter((e=>e.enable)):[];return t.length?t.sort(((e,t)=>t.priority-e.priority)).map((e=>e.name)).join(","):"-"}}},[["render",function(e,t,c,g,_,v){const b=m,x=a(l("uni-icons"),y),w=V,k=T,C=A,D=a(l("uni-th"),N),S=a(l("uni-tr"),L),M=a(l("uni-td"),F),O=f,E=a(l("uni-data-picker"),q),R=a(l("uni-dateformat"),j),W=a(l("uni-table"),B),U=a(l("uni-pagination"),P),H=a(l("unicloud-db"),z);return s(),i(b,{class:"main"},{default:n((()=>[_.loaded?(s(),i(b,{key:0},{default:n((()=>[d(b,{class:"uni-header"},{default:n((()=>[d(b,{class:"uni-group"},{default:n((()=>[d(b,{class:"uni-sub-title"},{default:n((()=>[p("当前应用:")])),_:1}),d(b,{class:"uni-title app-list"},{default:n((()=>[d(w,{onChange:t[0]||(t[0]=e=>_.showAppIndex=e.detail.value),value:_.showAppIndex,range:v.appNameList},{default:n((()=>[d(b,{class:"uni-input",style:{"font-size":"14px"}},{default:n((()=>[p(u(v.appNameList[_.showAppIndex])+" ",1),d(x,{type:"bottom"})])),_:1})])),_:1},8,["value","range"])])),_:1})])),_:1}),d(b,{class:"uni-group"},{default:n((()=>[d(k,{class:"uni-search",type:"text",modelValue:_.query,"onUpdate:modelValue":t[1]||(t[1]=e=>_.query=e),onConfirm:v.search,placeholder:"请输入搜索内容"},null,8,["modelValue","onConfirm"]),d(C,{class:"uni-button",type:"default",size:"mini",onClick:v.search},{default:n((()=>[p("搜索")])),_:1},8,["onClick"]),d(C,{class:"uni-button publish",type:"primary",size:"mini",onClick:v.publish},{default:n((()=>[p("发布新版")])),_:1},8,["onClick"]),d(C,{class:"uni-button",type:"warn",size:"mini",disabled:!_.selectedIndexs.length,onClick:v.delTable},{default:n((()=>[p("批量删除")])),_:1},8,["disabled","onClick"])])),_:1})])),_:1}),d(b,{class:"uni-container"},{default:n((()=>[d(H,{ref:"udb",collection:_.appVersionListDbName,field:"store_list,appid,contents,platform,type,version,min_uni_version,url,stable_publish,create_date,title,name",where:_.where,"page-data":"replace",orderby:_.orderby,getcount:!0,"page-size":_.options.pageSize,"page-current":_.options.pageCurrent,options:_.options},{default:n((({data:e,pagination:t,loading:a,error:l,options:c})=>[d(W,{style:{"overflow-y":"hidden"},loading:a,emptyText:l.message||"没有更多数据",border:"",stripe:"",type:"selection",onSelectionChange:v.selectionChange},{default:n((()=>[d(S,null,{default:n((()=>[d(D,{align:"center"},{default:n((()=>[p("AppID")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("更新标题")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("安装包类型")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("平台")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("已上架应用市场")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("版本号")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("安装包状态")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("上传时间")])),_:1}),d(D,{align:"center"},{default:n((()=>[p("操作")])),_:1})])),_:1}),(s(!0),o(r,null,h(e,((e,t)=>(s(),i(S,{key:t,disabled:e.stable_publish},{default:n((()=>[d(M,{align:"center"},{default:n((()=>[p(u(e.appid),1)])),_:2},1024),d(M,{align:"center"},{default:n((()=>[p(u(e.title||"-"),1)])),_:2},1024),d(M,{align:"center"},{default:n((()=>[d(O,{style:I({padding:"5px 8px",backgroundColor:"wgt"===e.type?"#f0f9eb":"#ecf5ff",color:"wgt"===e.type?"#67c23a":"#409eff",border:"1px solid "+("wgt"===e.type?"#e1f3d8":"#d9ecff"),borderRadius:"4px"})},{default:n((()=>[p(u(c.type_valuetotext[e.type]),1)])),_:2},1032,["style"])])),_:2},1024),d(M,{align:"center"},{default:n((()=>[d(E,{localdata:c.platform_valuetotext,value:e.platform,border:!1,readonly:!0,split:","},null,8,["localdata","value"])])),_:2},1024),d(M,{align:"center"},{default:n((()=>[d(O,null,{default:n((()=>[p(u(v.store_list_key(e.store_list)),1)])),_:2},1024)])),_:2},1024),d(M,{align:"center"},{default:n((()=>[p(u(e.version),1)])),_:2},1024),d(M,{align:"center"},{default:n((()=>[p(u(1==e.stable_publish?"已上线":"已下线"),1)])),_:2},1024),d(M,{align:"center"},{default:n((()=>[d(R,{format:"yyyy-MM-dd hh:mm:ss",date:e.create_date,threshold:[0,0]},null,8,["date"])])),_:2},1024),d(M,{align:"center"},{default:n((()=>[d(C,{onClick:t=>v.navigateTo("./detail?id="+e._id,!1),class:"uni-button",size:"mini",type:"primary"},{default:n((()=>[p("详情")])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1032,["disabled"])))),128))])),_:2},1032,["loading","emptyText","onSelectionChange"]),d(b,{class:"uni-pagination-box"},{default:n((()=>[d(U,{"show-icon":"","page-size":t.size,modelValue:t.current,"onUpdate:modelValue":e=>t.current=e,total:t.count,onChange:v.onPageChanged},null,8,["page-size","modelValue","onUpdate:modelValue","total","onChange"])])),_:2},1024)])),_:1},8,["collection","where","orderby","page-size","page-current","options"])])),_:1})])),_:1})):(s(),i(b,{key:1,class:"page-loading",style:I(_.containerTop)},{default:n((()=>[$("i",{class:"uni-icon_toast uni-loading"})])),_:1},8,["style"]))])),_:1})}],["__scopeId","data-v-a55f3636"]]);export{X as default}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/unicloud-db.dfa2c90d.js b/alpha/admin/unpackage/dist/build/h5/assets/unicloud-db.dfa2c90d.js new file mode 100644 index 0000000000000000000000000000000000000000..434037872d73dd189e2d3638c716f745066a62a5 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/unicloud-db.dfa2c90d.js @@ -0,0 +1 @@ +import{ap as t,_ as e,ar as i,as as n,at as o,N as a,L as s,s as l,y as c,O as r,o as d,c as h,w as u,C as p,au as g,i as m}from"./index-389238f5.js";const f={en:{"uniCloud.component.add.success":"Success","uniCloud.component.update.success":"Success","uniCloud.component.remove.showModal.title":"Tips","uniCloud.component.remove.showModal.content":"是否删除该数据"},es:{"uniCloud.component.add.success":"新增成功","uniCloud.component.update.success":"修改成功","uniCloud.component.remove.showModal.title":"提示","uniCloud.component.remove.showModal.content":"是否删除该数据"},fr:{"uniCloud.component.add.success":"新增成功","uniCloud.component.update.success":"修改成功","uniCloud.component.remove.showModal.title":"提示","uniCloud.component.remove.showModal.content":"是否删除该数据"},"zh-Hans":{"uniCloud.component.add.success":"新增成功","uniCloud.component.update.success":"修改成功","uniCloud.component.remove.showModal.title":"提示","uniCloud.component.remove.showModal.content":"是否删除该数据"},"zh-Hant":{"uniCloud.component.add.success":"新增成功","uniCloud.component.update.success":"修改成功","uniCloud.component.remove.showModal.title":"提示","uniCloud.component.remove.showModal.content":"是否刪除數據"}},y=Array.isArray,{t:C}=t(f),v="load",_="error",S="add",w="replace",b="auto",M="manual",D=["pageCurrent","pageSize","collection","action","field","getcount","orderby","where","groupby","groupField","distinct"];const L=e({name:"UniClouddb",setup(t){const e=t.ssrKey?t.getone?i(void 0,t.ssrKey):n([],t.ssrKey):t.getone?i(void 0,"ejMlO/fkQSgm8hMB20Q5CQ=="):n([],"CT2D4fWLgGMuoQaRngMEfA=="),a=g();return o((()=>{e.value&&0!==e.value.length||t.manual||t.loadtime!==b||a.proxy.loadData()})),{dataList:e}},async serverPrefetch(){if(!this.manual&&this.loadtime===b)return this.loadData()},props:{options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String,Object],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},pageIndistinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1},ssrKey:{type:[String,Number],default:""}},data:()=>({loading:!1,hasMore:!1,paginationInternal:{},errorMessage:""}),computed:{collectionArgs(){return y(this.collection)?this.collection:[this.collection]},isLookup(){return y(this.collection)&&this.collection.length>1||"string"==typeof this.collection&&this.collection.indexOf(",")>-1},mainCollection(){if("string"==typeof this.collection)return this.collection.split(",")[0];return JSON.parse(JSON.stringify(this.collection[0])).$db[0].$param[0]}},created(){this._isEnded=!1,this.paginationInternal={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var t=[];return D.forEach((e=>{t.push(this[e])})),t}),((t,e)=>{if(this.paginationInternal.size=this.pageSize,t[0]!==e[0]&&(this.paginationInternal.current=this.pageCurrent),this.loadtime===M)return;let i=!1;for(let n=2;n{o&&o(t),i&&l({title:n||C("uniCloud.component.add.success")})})).catch((t=>{d&&d(t),u&&c({content:t.message,showCancel:!1})})).finally((()=>{p&&r(),h&&h()}))},remove(t,{action:e,success:i,fail:n,complete:o,confirmTitle:a,confirmContent:s,needConfirm:l=!0,needLoading:r=!0,loadingTitle:d=""}={}){t&&t.length&&(l?c({title:a||C("uniCloud.component.remove.showModal.title"),content:s||C("uniCloud.component.remove.showModal.content"),showCancel:!0,success:a=>{a.confirm&&this._execRemove(t,e,i,n,o,l,r,d)}}):this._execRemove(t,e,i,n,o,l,r,d))},update(t,e,{action:i,showToast:n=!0,toastTitle:o,success:d,fail:h,complete:u,needConfirm:p=!0,needLoading:g=!0,loadingTitle:m=""}={}){g&&a({title:m});let f=s.database(this.spaceInfo);return i&&(f=f.action(i)),f.collection(this.mainCollection).doc(t).update(e).then((t=>{d&&d(t),n&&l({title:o||C("uniCloud.component.update.success")})})).catch((t=>{h&&h(t),p&&c({content:t.message,showCancel:!1})})).finally((()=>{g&&r(),u&&u()}))},getTemp(t=!0){let e=s.database(this.spaceInfo);this.action&&(e=e.action(this.action)),e=e.collection(...this.collectionArgs),this.foreignKey&&(e=e.foreignKey(this.foreignKey)),this.where&&Object.keys(this.where).length&&(e=e.where(this.where)),this.field&&(e=e.field(this.field)),this.groupby&&(e=e.groupBy(this.groupby)),this.groupField&&(e=e.groupField(this.groupField)),!0===this.distinct&&(e=e.distinct()),this.orderby&&(e=e.orderBy(this.orderby));const{current:i,size:n}=this.paginationInternal,o={};this.getcount&&(o.getCount=this.getcount);const a={limitLevel:this.limitlevel,startWith:this.startwith};return this.gettree&&(o.getTree=a),this.gettreepath&&(o.getTreePath=a),e=e.skip(n*(i-1)).limit(n),t?(e=e.getTemp(o),e.udb=this):e=e.get(o),e},setResult(t){0===t.code?this._execLoadDataSuccess(t):this._execLoadDataFail(new Error(t.message))},_execLoadData(t,e){if(!this.loading)return this.loading=!0,this.errorMessage="",this._getExec().then((i=>{this.loading=!1,this._execLoadDataSuccess(i.result,t,e)})).catch((e=>{this.loading=!1,this._execLoadDataFail(e,t)}))},_execLoadDataSuccess(t,e,i){const{data:n,count:o}=t;this._isEnded=void 0!==o?this.paginationInternal.current*this.paginationInternal.size>=o:n.length{i&&i(t.result),this.pageData===w?this.refresh():this.removeData(u)})).catch((t=>{n&&n(t),l&&c({content:t.message,showCancel:!1})})).finally((()=>{d&&r(),o&&o()}))},removeData(t){const e=t.slice(0),i=this.dataList;for(let n=i.length-1;n>=0;n--){const t=e.indexOf(i[n]._id);t>=0&&(i.splice(n,1),e.splice(t,1))}},_dispatchEvent(t,e){this._changeDataFunction?this._changeDataFunction(e,this._isEnded,this.paginationInternal):this.$emit(t,e,this._isEnded,this.paginationInternal)}}},[["render",function(t,e,i,n,o,a){const s=m;return d(),h(s,null,{default:u((()=>[p(t.$slots,"default",{options:i.options,data:n.dataList,pagination:o.paginationInternal,loading:o.loading,hasMore:o.hasMore,error:o.errorMessage})])),_:3})}]]);export{L as _}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/uniicons-89ed7d6d.ttf b/alpha/admin/unpackage/dist/build/h5/assets/uniicons-89ed7d6d.ttf new file mode 100644 index 0000000000000000000000000000000000000000..835f33bc9411461b8b9046b3fec742e921d6ce3a Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/assets/uniicons-89ed7d6d.ttf differ diff --git a/alpha/admin/unpackage/dist/build/h5/assets/userinfo-7b5baffd.css b/alpha/admin/unpackage/dist/build/h5/assets/userinfo-7b5baffd.css new file mode 100644 index 0000000000000000000000000000000000000000..bdc033a19f02629a220c5216bdd258914a48b4e6 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/userinfo-7b5baffd.css @@ -0,0 +1 @@ +.box[data-v-9650e156]{overflow:hidden}.chooseAvatar[data-v-9650e156]{display:inline-block;box-sizing:border-box;border:dotted 1px #ddd;border-radius:10px;text-align:center;padding:1px}.showBorder[data-v-9650e156]{border:solid 1px #ddd}.uni-list-item[data-v-77963a5a]{display:flex;font-size:16px;position:relative;justify-content:space-between;align-items:center;background-color:#fff;flex-direction:row;cursor:pointer}.uni-list-item--disabled[data-v-77963a5a]{opacity:.3}.uni-list-item--hover[data-v-77963a5a]{background-color:#f1f1f1!important}.uni-list-item__container[data-v-77963a5a]{position:relative;display:flex;flex-direction:row;padding:12px 15px;flex:1;overflow:hidden}.container--right[data-v-77963a5a]{padding-right:0}.uni-list--border[data-v-77963a5a]{position:absolute;top:0;right:0;left:0}.uni-list--border[data-v-77963a5a]:after{position:absolute;top:0;right:0;left:0;height:1px;content:"";transform:scaleY(.5);background-color:#e5e5e5}.uni-list-item__content[data-v-77963a5a]{display:flex;padding-right:8px;flex:1;color:#3b4144;flex-direction:column;justify-content:space-between;overflow:hidden}.uni-list-item__content--center[data-v-77963a5a]{justify-content:center}.uni-list-item__content-title[data-v-77963a5a]{font-size:14px;color:#3b4144;overflow:hidden}.uni-list-item__content-note[data-v-77963a5a]{margin-top:.1875rem;color:#999;font-size:12px;overflow:hidden}.uni-list-item__extra[data-v-77963a5a]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.uni-list-item__header[data-v-77963a5a]{display:flex;flex-direction:row;align-items:center}.uni-list-item__icon[data-v-77963a5a]{margin-right:.5625rem;flex-direction:row;justify-content:center;align-items:center}.uni-list-item__icon-img[data-v-77963a5a]{display:block;height:26px;width:26px;margin-right:10px}.uni-icon-wrapper[data-v-77963a5a]{display:flex;align-items:center;padding:0 10px}.flex--direction[data-v-77963a5a]{flex-direction:column;align-items:initial}.flex--justify[data-v-77963a5a]{justify-content:initial}.uni-list--lg[data-v-77963a5a]{height:40px;width:40px}.uni-list--base[data-v-77963a5a]{height:26px;width:26px}.uni-list--sm[data-v-77963a5a]{height:20px;width:20px}.uni-list-item__extra-text[data-v-77963a5a]{color:#999;font-size:12px}.uni-ellipsis-1[data-v-77963a5a]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-ellipsis-2[data-v-77963a5a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.uni-list[data-v-c1d7c358]{display:flex;background-color:#fff;position:relative;flex-direction:column}.uni-list--border[data-v-c1d7c358]{position:relative;z-index:-1}.uni-list--border-top[data-v-c1d7c358]{position:absolute;top:0;right:0;left:0;height:1px;transform:scaleY(.5);background-color:#e5e5e5;z-index:1}.uni-list--border-bottom[data-v-c1d7c358]{position:absolute;bottom:0;right:0;left:0;height:1px;transform:scaleY(.5);background-color:#e5e5e5}.input-box[data-v-1edc5089] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-1edc5089]{padding:0 1.875rem}.login-logo[data-v-1edc5089]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-1edc5089]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-1edc5089]{display:flex;justify-content:center}.login-logo uni-image[data-v-1edc5089]{width:60px;height:60px}.register-back[data-v-1edc5089]{display:none}uni-button[data-v-1edc5089]{padding-bottom:1px}}.uni-content uni-view[data-v-1edc5089]{box-sizing:border-box}.title[data-v-1edc5089]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-1edc5089]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-1edc5089] .uni-easyinput__content,.input-box[data-v-1edc5089]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-1edc5089]{color:#04498c;cursor:pointer}.uni-content[data-v-1edc5089] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-1edc5089]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-1edc5089]{height:auto!important}uni-view[data-v-1edc5089]{display:flex}.box[data-v-1edc5089]{background-color:#fff;height:200px;width:23.4375rem;flex-direction:column;border-top-left-radius:15px;border-top-right-radius:15px}.headBox[data-v-1edc5089]{padding:.625rem;height:2.5rem;line-height:2.5rem;text-align:left;font-size:16px;color:#333;margin-left:.46875rem}.tip[data-v-1edc5089]{color:#666;text-align:left;justify-content:center;margin:.3125rem .9375rem;font-size:18px}.btnBox[data-v-1edc5089]{margin-top:1.40625rem;justify-content:center;flex-direction:row}.close[data-v-1edc5089],.agree[data-v-1edc5089]{text-align:center;width:6.25rem;height:2.5rem;line-height:2.5rem;border-radius:5px;margin:0 .625rem;font-size:14px}.close[data-v-1edc5089]{color:#999;border-color:#eee;border-style:solid;border-width:1px;background-color:#fff}.close[data-v-1edc5089]:active{color:#989898;background-color:#e2e2e2}.agree[data-v-1edc5089]{color:#fff}.agree[data-v-1edc5089]:active{background-color:#f5f5f6}.input-box[data-v-3ac98ea6] .uni-input-input[type=password]::-ms-reveal{display:none}.uni-content[data-v-3ac98ea6]{padding:0 1.875rem}.login-logo[data-v-3ac98ea6]{display:none}@media screen and (min-width: 690px){.uni-content[data-v-3ac98ea6]{margin:0 auto;position:relative;top:100px;padding:30px 40px 80px;max-width:450px;max-height:450px;border-radius:10px;box-shadow:0 0 20px #efefef;background-color:#fff}.login-logo[data-v-3ac98ea6]{display:flex;justify-content:center}.login-logo uni-image[data-v-3ac98ea6]{width:60px;height:60px}.register-back[data-v-3ac98ea6]{display:none}uni-button[data-v-3ac98ea6]{padding-bottom:1px}}.uni-content uni-view[data-v-3ac98ea6]{box-sizing:border-box}.title[data-v-3ac98ea6]{display:flex;padding:18px 0;font-weight:800;flex-direction:column}.tip[data-v-3ac98ea6]{display:flex;color:#bdbdc0;font-size:11px;margin:6px 0}.uni-content[data-v-3ac98ea6] .uni-easyinput__content,.input-box[data-v-3ac98ea6]{height:44px;background-color:#f8f8f8!important;border-radius:0;font-size:14px;display:flex;flex:1}.link[data-v-3ac98ea6]{color:#04498c;cursor:pointer}.uni-content[data-v-3ac98ea6] .uni-forms-item__inner{padding-bottom:8px}.uni-btn[data-v-3ac98ea6]{text-align:center;height:40px;line-height:40px;margin:15px 0 10px;color:#fff!important;border-radius:5px;font-size:16px}.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd[data-v-3ac98ea6]{height:auto!important}.uni-content[data-v-3ac98ea6]{padding:0}uni-view[data-v-3ac98ea6]{display:flex;box-sizing:border-box;flex-direction:column}@media screen and (min-width: 690px){.uni-content[data-v-3ac98ea6]{padding:0;max-width:690px;margin-left:calc(50% - 345px);border:none;max-height:none;border-radius:0;box-shadow:none}}.avatar[data-v-3ac98ea6]{align-items:center;justify-content:center;margin:22px 0;width:100%}.item[data-v-3ac98ea6]{flex:1;flex-direction:row;justify-content:space-between;align-items:center}uni-button[data-v-3ac98ea6]{margin:40px 10% 10%;border-radius:0;background-color:#fff;width:80%}.mt10[data-v-3ac98ea6]{margin-top:10px} diff --git a/alpha/admin/unpackage/dist/build/h5/assets/util.63f19a41.js b/alpha/admin/unpackage/dist/build/h5/assets/util.63f19a41.js new file mode 100644 index 0000000000000000000000000000000000000000..5ff83665b4a162c4a7564e7496587ee42a7c2b5a --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/util.63f19a41.js @@ -0,0 +1 @@ +import{L as t}from"./index-389238f5.js";function e(t){let{fieldsMap:e,data:n,formatter:r=!0}=t,i=JSON.parse(JSON.stringify(n));return i.map((t=>{for(let i in t){let o=e.find((t=>t.field==i));if("object"==typeof o){let{fix:e=0}=o;"number"==typeof o.multiple&&"number"==typeof t[i]&&(t[i]=Number((t[i]*o.multiple).toFixed(e))),r&&o.formatter&&"number"==typeof t[i]&&(","===o.formatter?t[i]=(n=t[i],String(n).replace(/\B(?=(\d{3})+(?!\d))/g,",")):"%"===o.formatter?t[i]=`${(100*t[i]).toFixed(e)}%`:"-"===o.formatter&&(t[i]=l(t[i])))}}var n})),i}function n(t,e,n){let{start_time:r,dimension:i}=e;if(["hour","day"].indexOf(i)>-1){let e,o=[];"hour"===i?e=36e5:"day"===i&&(e=864e5);let a=r[0],s=r[1],u=a;for(o=[a];u+e<=s;)u+=e,o.push(u);let f=[];for(let r=0;rt.start_time===e));if(i)f.push(i);else{let t={start_time:e};n.map(((e,n)=>{t[e.field]=0})),f.push(t)}}return f}return t}function r(t,e=!1,n=[]){const r=[],i=Object.keys(t),o=t.start_time;i.forEach((i=>{if("time_range"===i||-1!==n.indexOf(i))return;let a=t[i];a&&("string"==typeof a&&a.indexOf(i)>-1?r.push(a):("string"==typeof a&&(a=`"${a}"`),Array.isArray(a)?2===a.length&&i.indexOf("time")>-1?r.push(`${i} >= ${a[0]} && ${i} <= ${a[1]}`):(a=a.map((t=>`${i} == "${t}"`)).join(" || "),a&&r.push(`(${a})`)):e&&"dimension"===i?m(o)?r.push('dimension == "hour"'):a&&'"hour"'!==a?r.push(`${i} == ${a}`):r.push('dimension == "day"'):r.push(`${i} == ${a}`)))}));return r.join(" && ")||{}}function i(t,e={},n,r="",i="value"){const o=[],a=n;t=JSON.parse(JSON.stringify(t));const f=JSON.parse(JSON.stringify(e));for(const l of t){let{field:t,computed:p,formatter:c,disable:m,fix:d}=l;if(!m){const m=(n=a||l).hasOwnProperty(i);if(e){const o=e[r+t];if(p){const e=p.split("/");let[o,a]=e;o=Number(f[r+o]),a=Number(f[r+a]);const l=u(s(o,a),c,d);m&&t===n.field?n[i]=l:n[t]=l}else if(o){const e=u(o,c,d);m?n.field===t&&(n[i]=e):n[t]=e}}m&&o.push(n)}}return o}function o(t,e,n){e&&(t=t.filter((t=>t.field===e))),n&&(t=t.filter((t=>t.field&&t.hasOwnProperty(n))));return t.map((t=>{let e=[];return t.computed?e=t.computed.split("/"):e.push(t.field),e=e.map((e=>-1===t.stat?e:`${e} as ${"temp_"+e}`)),e.join()})).join()}function a(t,e,n){e&&(t=t.filter((t=>t.field===e))),n&&(t=t.filter((t=>t.field&&t.hasOwnProperty(n))));return t.map((t=>{const e=t.stat;let n=[];return t.computed?n=t.computed.split("/"):n.push(t.field),n=n.map((t=>{if(-1!==e)return`${e||"sum"}(${"temp_"+t}) as ${t}`})),n.filter(Boolean).join()})).filter(Boolean).join()}function s(t,e){return e?t/e:0}function u(t,e=",",n){if("number"!=typeof t)return t;if("%"===e)return t*=100,String(t).indexOf(".")>-1&&(t=t.toFixed(2)),t=t?t+e:t;if("%%"===e)return(t=Number(t)).toFixed(2)+"%";if("-"===e)return f(t,"day");if(":"===e){let n,r,i;n=r=i=0;const o=3600,a=60;if((t=Math.ceil(t))>=o){n=Math.floor(t/o);const e=t%o;e>=a?(r=Math.floor(e/a),i=e%a):i=e}else o>=t&&t>=a?(r=Math.floor(t/a),i=t%a):i=t;return[n,r,i].map((t=>t<10?"0"+t:t)).join(e)}return","===e?t.toLocaleString():(String(t).indexOf(".")>-1&&(t=Math.abs(t)>1?t.toFixed(n||0):t.toFixed(n||2)),t)}function f(t,e){let n=new Date(t);if("hour"===e){let t=n.getHours();return t=t<10?"0"+t:t,`${t}:00 ~ ${t}:59`}if("week"===e){const t=n.getDate()-n.getDay()+1,e=t+6;let r=new Date(n.setDate(t));r=l(r);let i=new Date(n.setDate(e));return i=l(i),`${r} ~ ${i}`}if("month"===e){let t=new Date(n.getFullYear(),n.getMonth(),1);t=l(t);let e=new Date(n.getFullYear(),n.getMonth()+1,0);return e=l(e),`${t} ~ ${e}`}return l(n)}function l(t,e,n="-"){let r=t;"object"!=typeof r&&(r=new Date(r));const i=r.getFullYear(),o=r.getMonth()+1,a=r.getDate(),s=r.getHours(),u=r.getMinutes(),f=r.getSeconds(),l=[i,p(o),p(a)].join(n),c=[p(s),p(u),p(f)].join(":");return"dateTime"===e?l+" "+c:l}function p(t){return t<10?"0"+t:t}function c(t=0,e=Date.now()){const n=new Date(e);let r=[n.getFullYear(),n.getMonth()+1,n.getDate()].join("/");r+=" 00:00:00";return new Date(r).getTime()-864e5*t}function m(t,e=2){if(!t.length)return!0;const[n,r]=t;return r-n<864e5*e}function d(e=this.query,n="total_devices"){let i;"object"==typeof e&&(e=r(e,!1,["uni_platform"]));return t.database().collection("uni-stat-result").where(e).field(`${n} as temp_${n}, start_time`).groupBy("start_time").groupField(`sum(temp_${n}) as ${n}`).orderBy("start_time","desc").get().then((t=>{const e=t.result.data;return i=e.length&&e[0][n],i=u(i),this.panelData&&this.panelData.forEach((t=>{t.field===n&&(t.value=i)})),Promise.resolve(i)}))}function h(t,e=100){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}}const g={};function y(t){for(const n in g)if(g.hasOwnProperty(n)){if(g[n]===t)return n}var e=(window.URL||window.webkitURL).createObjectURL(t);return g[e]=t,e}function $(t,e){let n=[],r=0;for(;e.getTime()-t.getTime()>=0;)n[r]=t.getTime(),t.setDate(t.getDate()+1),r+=1;return n}function w(t){return Object.assign({},t,{type:"native_app",create_env:"uni-stat"})}export{o as a,a as b,d as c,h as d,m as e,u as f,c as g,f as h,w as i,$ as j,y as k,e as l,i as m,n,l as p,r as s}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/utils.df25cf33.js b/alpha/admin/unpackage/dist/build/h5/assets/utils.df25cf33.js new file mode 100644 index 0000000000000000000000000000000000000000..0dc6df0bc582d92d2098fa66b09a8c10fb4e376f --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/utils.df25cf33.js @@ -0,0 +1 @@ +const e={appid:{rules:[{required:!0},{format:"string"}],label:"AppID"},name:{rules:[{format:"string"}],label:"应用名称"},title:{rules:[{format:"string"}],label:"更新标题"},contents:{rules:[{required:!0},{format:"string"}],label:"更新内容"},platform:{rules:[{required:!0},{range:[{value:"Android",text:"安卓"},{value:"iOS",text:"苹果"}]}],label:"平台"},type:{rules:[{required:!0},{format:"string"},{range:[{value:"native_app",text:"原生App安装包"},{value:"wgt",text:"wgt资源包"}]}],label:"安装包类型"},version:{rules:[{required:!0},{format:"string"}],label:"版本号"},min_uni_version:{rules:[{format:"string"}],label:"原生App最低版本"},url:{rules:[{required:!0},{format:"string"}],label:"链接"},stable_publish:{rules:[{format:"bool"}],label:"上线发行"},create_date:{rules:[{format:"timestamp"}],label:"上传时间"},is_silently:{rules:[{format:"bool"}],label:"静默更新",defaultValue:!1},is_mandatory:{rules:[{format:"bool"}],label:"强制更新",defaultValue:!1},store_list:{rules:[{format:"array"}],label:"应用市场"}},t={platform_valuetotext:[{value:"Android",text:"安卓"},{value:"iOS",text:"苹果"}],type_valuetotext:{native_app:"原生App安装包",wgt:"wgt资源包"}};function r(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;var t,l=(t=e,"[object Array]"===Object.prototype.toString.call(t)?[]:{});for(let a in e)e.hasOwnProperty(a)&&(l[a]="object"==typeof e[a]?r(e[a]):e[a]);return l}const l="opendb-app-list",a="opendb-app-versions",o="";export{a,l as b,r as c,o as d,t as e,e as v}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/validator.496e107f.js b/alpha/admin/unpackage/dist/build/h5/assets/validator.496e107f.js new file mode 100644 index 0000000000000000000000000000000000000000..30531c3ea09e95e39c7f90c7fec2c19d7e237474 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/validator.496e107f.js @@ -0,0 +1 @@ +import{p as e}from"./password.4f678814.js";const t={username:{rules:[{required:!0,errorMessage:"请输入用户名"},{minLength:3,maxLength:32,errorMessage:"用户名长度在 {minLength} 到 {maxLength} 个字符"},{validateFunction:function(e,t,n,r){return(/^1\d{10}$/.test(t)||/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(t))&&r("用户名不能是:手机号或邮箱"),/^\d+$/.test(t)&&r("用户名不能为纯数字"),/[\u4E00-\u9FA5\uF900-\uFA2D]{1,}/.test(t)&&r("用户名不能包含中文"),!0}}],label:"用户名"},nickname:{rules:[{minLength:3,maxLength:32,errorMessage:"昵称长度在 {minLength} 到 {maxLength} 个字符"},{validateFunction:function(e,t,n,r){return(/^1\d{10}$/.test(t)||/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/.test(t))&&r("昵称不能是:手机号或邮箱"),/^\d+$/.test(t)&&r("昵称不能为纯数字"),!0}}],label:"昵称"},...e.getPwdRules()};export{t as r}; diff --git a/alpha/admin/unpackage/dist/build/h5/assets/version_add_detail_mixin.1fff617b.js b/alpha/admin/unpackage/dist/build/h5/assets/version_add_detail_mixin.1fff617b.js new file mode 100644 index 0000000000000000000000000000000000000000..b982a4050745aab2f4764ce6cf03c24afe166851 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/assets/version_add_detail_mixin.1fff617b.js @@ -0,0 +1 @@ +import{L as t,s as e}from"./index-389238f5.js";import{e as a,v as i}from"./utils.df25cf33.js";const s=t.database();function r(t){let e={};for(let a in i)t.includes(a)&&(e[a]=i[a]);return e}const l="appid,name,title,contents,platform,type,version,min_uni_version,url,stable_publish,is_silently,is_mandatory,create_date,store_list",n={data:()=>({labelWidth:"80px",enableiOSWgt:!0,silentlyContent:"静默更新:App升级时会在后台下载wgt包并自行安装。新功能在下次启动App时生效",mandatoryContent:"强制更新:App升级弹出框不可取消",stablePublishContent:"同时只可有一个线上发行版,线上发行不可更设为下线。\n未上线可以设为上线发行并自动替换当前线上发行版",stablePublishContent2:"使用本包替换当前线上发行版",uploadFileContent:"可下载安装包地址。上传文件到云存储自动填写,也可以手动填写",minUniVersionContent:"上次使用新Api或打包新模块的App版本",priorityContent:"检查更新时,按照优先级从大到小依次尝试跳转商店。如果都跳转失败,则会打开浏览器使用下载链接下载apk安装包",latestStableData:[],appFileList:null,type_valuetotext:a.type_valuetotext,preUrl:"",formData:{appid:"",name:"",title:"",contents:"",platform:[],store_list:[],type:"",version:"",min_uni_version:"",url:"",stable_publish:!1,create_date:null},formOptions:{platform_localdata:[{value:"Android",text:"安卓"},{value:"iOS",text:"苹果"}],type_localdata:[{value:"native_app",text:"原生App安装包"},{value:"wgt",text:"App资源包"}]},rules:{...r(["appid","contents","platform","type","version","min_uni_version","url","stable_publish","title","name","is_silently","is_mandatory","store_list"])}}),onReady(){this.$refs.form.setRules(this.rules)},computed:{isWGT(){return"wgt"===this.formData.type},isiOS(){return!this.isWGT&&this.formData.platform.includes("iOS")},hasPackage(){return this.appFileList&&!!Object.keys(this.appFileList).length},fileExtname(){return this.isWGT?["wgt"]:["apk"]},platformLocaldata(){return this.isWGT?this.enableiOSWgt?this.formOptions.platform_localdata:[this.formOptions.platform_localdata[0]]:this.formOptions.platform_localdata},uni_platform(){return(this.isiOS?"iOS":"Android").toLocaleLowerCase()}},methods:{getStoreList:t=>s.collection("opendb-app-list").where({appid:t}).get().then((t=>t.result.data[0].store_list||[])),packageUploadSuccess(t){e({icon:"success",title:"上传成功",duration:800}),this.preUrl=this.formData.url,this.formData.url=t.tempFilePaths[0]},deleteFile(t){return this.$request("deleteFile",{fileList:t},{functionName:"uni-upgrade-center"})},async packageDelete(t){this.hasPackage&&(await this.deleteFile([t.tempFilePath]),e({icon:"success",title:"删除成功",duration:800}),this.formData.url=this.preUrl,this.$refs.form.clearValidate("url"))},selectFile(){this.hasPackage&&e({icon:"none",title:"只可上传一个文件,请删除已上传后重试",duration:1e3})},createCenterRecord(t){return{...t,uni_platform:this.uni_platform,create_env:"upgrade-center"}},createCenterQuery:({appid:t})=>({appid:t,create_env:"upgrade-center"}),createStatQuery({appid:t,type:e,version:a,uni_platform:i}){return{appid:t,type:e,version:a,uni_platform:i||this.uni_platform,create_env:"uni-stat",stable_publish:!1}}}};export{n as a,l as f}; diff --git a/alpha/admin/unpackage/dist/build/h5/index.html b/alpha/admin/unpackage/dist/build/h5/index.html new file mode 100644 index 0000000000000000000000000000000000000000..59063ff9b441e3faa1f14262fba55f7b3e0d8731 --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/index.html @@ -0,0 +1,24 @@ + + + + + + + + admin + + + + + + +
+ + + diff --git a/alpha/admin/unpackage/dist/build/h5/static/admin-icons.ttf b/alpha/admin/unpackage/dist/build/h5/static/admin-icons.ttf new file mode 100644 index 0000000000000000000000000000000000000000..8b74e537286cc1f3fce505e09322454a79ef9731 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/static/admin-icons.ttf differ diff --git a/alpha/admin/unpackage/dist/build/h5/static/logo.png b/alpha/admin/unpackage/dist/build/h5/static/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..710f9246e7f27c03d72858b39e9ab57d1fa36b5c Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/static/logo.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/qiun-data-charts/static/h5/echarts.min.js b/alpha/admin/unpackage/dist/build/h5/uni_modules/qiun-data-charts/static/h5/echarts.min.js new file mode 100644 index 0000000000000000000000000000000000000000..5396a032a62151dacaa6e35e007f8b9242ebe51c --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/uni_modules/qiun-data-charts/static/h5/echarts.min.js @@ -0,0 +1,23 @@ + +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +* 版本为4.2.1,修改一处源码:this.el.hide() 改为 this.el?this.el.hide():true +*/ + + +!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){"createCanvas"===t&&(nw=null),ew[t]=e}function i(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Y_.call(t);if("[object Array]"===n){if(!O(t)){e=[];for(var o=0,a=t.length;o=0){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&st(t,o,e,i)}else st(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&gw.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function ht(t,e,i){pw?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function ct(t,e,i){pw?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function dt(t){return 2===t.which||3===t.which}function ft(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function pt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function gt(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:mt}}function mt(t){mw(this.event)}function vt(){}function yt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,o=t;o;){if(o.clipPath&&!o.clipPath.contain(e,i))return!1;o.silent&&(n=!0),o=o.parent}return!n||xw}return!1}function xt(){var t=new bw(6);return _t(t),t}function _t(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function wt(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 bt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=a,t[3]=r,t[4]=s,t[5]=l,t}function St(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Mt(t,e,i){var n=e[0],o=e[2],a=e[4],r=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+r*u,t[1]=-n*u+r*h,t[2]=o*h+s*u,t[3]=-o*u+h*s,t[4]=h*a+u*l,t[5]=h*l-u*a,t}function It(t,e,i){var n=i[0],o=i[1];return t[0]=e[0]*n,t[1]=e[1]*o,t[2]=e[2]*n,t[3]=e[3]*o,t[4]=e[4]*n,t[5]=e[5]*o,t}function Tt(t,e){var i=e[0],n=e[2],o=e[4],a=e[1],r=e[3],s=e[5],l=i*r-a*n;return l?(l=1/l,t[0]=r*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-r*o)*l,t[5]=(a*o-i*s)*l,t):null}function At(t){var e=xt();return wt(e,t),e}function Dt(t){return t>Iw||t<-Iw}function Ct(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Lt(t){return(t=Math.round(t))<0?0:t>255?255:t}function kt(t){return(t=Math.round(t))<0?0:t>360?360:t}function Pt(t){return t<0?0:t>1?1:t}function Nt(t){return Lt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function Ot(t){return Pt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Et(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function Rt(t,e,i){return t+(e-t)*i}function zt(t,e,i,n,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t}function Bt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Vt(t,e){Vw&&Bt(Vw,e),Vw=Bw.put(t,Vw||e.slice())}function Gt(t,e){if(t){e=e||[];var i=Bw.get(t);if(i)return Bt(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in zw)return Bt(e,zw[n]),Vt(t,e),e;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===n.length){var r=n.substr(0,o),s=n.substr(o+1,a-(o+1)).split(","),l=1;switch(r){case"rgba":if(4!==s.length)return void zt(e,0,0,0,1);l=Ot(s.pop());case"rgb":return 3!==s.length?void zt(e,0,0,0,1):(zt(e,Nt(s[0]),Nt(s[1]),Nt(s[2]),l),Vt(t,e),e);case"hsla":return 4!==s.length?void zt(e,0,0,0,1):(s[3]=Ot(s[3]),Ft(s,e),Vt(t,e),e);case"hsl":return 3!==s.length?void zt(e,0,0,0,1):(Ft(s,e),Vt(t,e),e);default:return}}zt(e,0,0,0,1)}else{if(4===n.length)return(u=parseInt(n.substr(1),16))>=0&&u<=4095?(zt(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),Vt(t,e),e):void zt(e,0,0,0,1);if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&u<=16777215?(zt(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),Vt(t,e),e):void zt(e,0,0,0,1)}}}}function Ft(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Ot(t[1]),o=Ot(t[2]),a=o<=.5?o*(n+1):o+n-o*n,r=2*o-a;return e=e||[],zt(e,Lt(255*Et(r,a,i+1/3)),Lt(255*Et(r,a,i)),Lt(255*Et(r,a,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Wt(t){if(t){var e,i,n=t[0]/255,o=t[1]/255,a=t[2]/255,r=Math.min(n,o,a),s=Math.max(n,o,a),l=s-r,u=(s+r)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+r):l/(2-s-r);var h=((s-n)/6+l/2)/l,c=((s-o)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-c:o===s?e=1/3+h-d:a===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function Ht(t,e){var i=Gt(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return qt(i,4===i.length?"rgba":"rgb")}}function Zt(t){var e=Gt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ut(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),o=Math.floor(n),a=Math.ceil(n),r=e[o],s=e[a],l=n-o;return i[0]=Lt(Rt(r[0],s[0],l)),i[1]=Lt(Rt(r[1],s[1],l)),i[2]=Lt(Rt(r[2],s[2],l)),i[3]=Pt(Rt(r[3],s[3],l)),i}}function Xt(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),o=Math.floor(n),a=Math.ceil(n),r=Gt(e[o]),s=Gt(e[a]),l=n-o,u=qt([Lt(Rt(r[0],s[0],l)),Lt(Rt(r[1],s[1],l)),Lt(Rt(r[2],s[2],l)),Pt(Rt(r[3],s[3],l))],"rgba");return i?{color:u,leftIndex:o,rightIndex:a,value:n}:u}}function jt(t,e,i,n){if(t=Gt(t))return t=Wt(t),null!=e&&(t[0]=kt(e)),null!=i&&(t[1]=Ot(i)),null!=n&&(t[2]=Ot(n)),qt(Ft(t),"rgba")}function Yt(t,e){if((t=Gt(t))&&null!=e)return t[3]=Pt(e),qt(t,"rgba")}function qt(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function Kt(t,e){return t[e]}function $t(t,e,i){t[e]=i}function Jt(t,e,i){return(e-t)*i+t}function Qt(t,e,i){return i>.5?e:t}function te(t,e,i,n,o){var a=t.length;if(1===o)for(s=0;so)t.length=o;else for(r=n;r=0&&!(m[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=L;ie);i++);i=Math.min(i-1,u-2)}L=i,k=e;var n=m[i+1]-m[i];if(0!==n)if(I=(e-m[i])/n,l)if(A=v[i],T=v[0===i?i:i-1],D=v[i>u-2?u-1:i+1],C=v[i>u-3?u-1:i+2],d)ne(T,A,D,C,I,I*I,I*I*I,r(t,o),g);else{if(f)a=ne(T,A,D,C,I,I*I,I*I*I,P,1),a=re(P);else{if(p)return Qt(A,D,I);a=oe(T,A,D,C,I,I*I,I*I*I)}s(t,o,a)}else if(d)te(v[i],v[i+1],I,r(t,o),g);else{var a;if(f)te(v[i],v[i+1],I,P,1),a=re(P);else{if(p)return Qt(v[i],v[i+1],I);a=Jt(v[i],v[i+1],I)}s(t,o,a)}},ondestroy:i});return e&&"spline"!==e&&(N.easing=e),N}}}function ue(t,e,i,n,o,a,r,s){_(n)?(a=o,o=n,n=0):x(o)?(a=o,o="linear",n=0):x(n)?(a=n,n=0):x(i)?(a=i,i=500):i||(i=500),t.stopAnimation(),he(t,"",t,e,i,n,s);var l=t.animators.slice(),u=l.length;u||a&&a();for(var h=0;h0&&t.animate(e,!1).when(null==o?500:o,s).delay(a||0)}function ce(t,e,i,n){if(e){var o={};o[e]={},o[e][i]=n,t.attr(o)}else t.attr(i,n)}function de(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function fe(t){for(var e=0;t>=eb;)e|=1&t,t>>=1;return t+e}function pe(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o=0;)o++;return o-e}function ge(t,e,i){for(i--;e>>1])<0?l=a:s=a+1;var u=n-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]=r}}function ve(t,e,i,n,o,a){var r=0,s=0,l=1;if(a(t,e[i+o])>0){for(s=n-o;l0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),r+=o,l+=o}else{for(s=o+1;ls&&(l=s);var u=r;r=o-l,l=o-u}for(r++;r>>1);a(t,e[i+h])>0?r=h+1:l=h}return l}function ye(t,e,i,n,o,a){var r=0,s=0,l=1;if(a(t,e[i+o])<0){for(s=o+1;ls&&(l=s);var u=r;r=o-l,l=o-u}else{for(s=n-o;l=0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),r+=o,l+=o}for(r++;r>>1);a(t,e[i+h])<0?l=h:r=h+1}return l}function xe(t,e){function i(i){var s=a[i],u=r[i],h=a[i+1],c=r[i+1];r[i]=u+c,i===l-3&&(a[i+1]=a[i+2],r[i+1]=r[i+2]),l--;var d=ye(t[h],t,s,u,0,e);s+=d,0!==(u-=d)&&0!==(c=ve(t[s+u-1],t,h,c,c-1,e))&&(u<=c?n(s,u,h,c):o(s,u,h,c))}function n(i,n,o,a){var r=0;for(r=0;r=ib||f>=ib);if(p)break;g<0&&(g=0),g+=2}if((s=g)<1&&(s=1),1===n){for(r=0;r=0;r--)t[f+r]=t[d+r];if(0===n){v=!0;break}}if(t[c--]=u[h--],1==--a){v=!0;break}if(0!=(m=a-ve(t[l],u,0,a,a-1,e))){for(a-=m,f=(c-=m)+1,d=(h-=m)+1,r=0;r=ib||m>=ib);if(v)break;p<0&&(p=0),p+=2}if((s=p)<1&&(s=1),1===a){for(f=(c-=n)+1,d=(l-=n)+1,r=n-1;r>=0;r--)t[f+r]=t[d+r];t[c]=u[h]}else{if(0===a)throw new Error;for(d=c-(a-1),r=0;r=0;r--)t[f+r]=t[d+r];t[c]=u[h]}else for(d=c-(a-1),r=0;r1;){var t=l-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;i(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&r[t-1]s&&(l=s),me(t,i,i+l,i+a,e),a=l}r.pushRun(i,a),r.mergeRuns(),o-=a,i+=a}while(0!==o);r.forceMergeRuns()}}function we(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function be(t,e,i){var n=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,r=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,o=o*i.width+i.x,a=a*i.height+i.y,r=r*i.height+i.y),n=isNaN(n)?0:n,o=isNaN(o)?1:o,a=isNaN(a)?0:a,r=isNaN(r)?0:r,t.createLinearGradient(n,a,o,r)}function Se(t,e,i){var n=i.width,o=i.height,a=Math.min(n,o),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(r=r*n+i.x,s=s*o+i.y,l*=a),t.createRadialGradient(r,s,0,r,s,l)}function Me(){return!1}function Ie(t,e,i){var n=iw(),o=e.getWidth(),a=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left=0,r.top=0,r.width=o+"px",r.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*i,n.height=a*i,n}function Te(t){if("string"==typeof t){var e=mb.get(t);return e&&e.image}return t}function Ae(t,e,i,n,o){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var a=mb.get(t),r={hostEl:i,cb:n,cbPayload:o};return a?!Ce(e=a.image)&&a.pending.push(r):((e=new Image).onload=e.onerror=De,mb.put(t,e.__cachedImgObj={image:e,pending:[r]}),e.src=e.__zrImageSrc=t),e}return t}return e}function De(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;exb&&(yb=0,vb={}),yb++,vb[i]=o,o}function ke(t,e,i,n,o,a,r,s){return r?Ne(t,e,i,n,o,a,r,s):Pe(t,e,i,n,o,a,s)}function Pe(t,e,i,n,o,a,r){var s=He(t,e,o,a,r),l=Le(t,e);o&&(l+=o[1]+o[3]);var u=s.outerHeight,h=new de(Oe(0,l,i),Ee(0,u,n),l,u);return h.lineHeight=s.lineHeight,h}function Ne(t,e,i,n,o,a,r,s){var l=Ze(t,{rich:r,truncate:s,font:e,textAlign:i,textPadding:o,textLineHeight:a}),u=l.outerWidth,h=l.outerHeight;return new de(Oe(0,u,i),Ee(0,h,n),u,h)}function Oe(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ee(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Re(t,e,i){var n=e.x,o=e.y,a=e.height,r=e.width,s=a/2,l="left",u="top";switch(t){case"left":n-=i,o+=s,l="right",u="middle";break;case"right":n+=i+r,o+=s,u="middle";break;case"top":n+=r/2,o-=i,l="center",u="bottom";break;case"bottom":n+=r/2,o+=a+i,l="center";break;case"inside":n+=r/2,o+=s,l="center",u="middle";break;case"insideLeft":n+=i,o+=s,u="middle";break;case"insideRight":n+=r-i,o+=s,l="right",u="middle";break;case"insideTop":n+=r/2,o+=i,l="center";break;case"insideBottom":n+=r/2,o+=a-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,o+=i;break;case"insideTopRight":n+=r-i,o+=i,l="right";break;case"insideBottomLeft":n+=i,o+=a-i,u="bottom";break;case"insideBottomRight":n+=r-i,o+=a-i,l="right",u="bottom"}return{x:n,y:o,textAlign:l,textVerticalAlign:u}}function ze(t,e,i,n,o){if(!e)return"";var a=(t+"").split("\n");o=Be(e,i,n,o);for(var r=0,s=a.length;r=r;l++)s-=r;var u=Le(i,e);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function Ve(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var a=Le(t,n);if(a<=i)return t;for(var r=0;;r++){if(a<=o||r>=e.maxIterations){t+=e.ellipsis;break}var s=0===r?Ge(t,o,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*o/a):0;a=Le(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function Ge(t,e,i,n){for(var o=0,a=0,r=t.length;au)t="",r=[];else if(null!=h)for(var c=Be(h-(i?i[1]+i[3]:0),e,o.ellipsis,{minChar:o.minChar,placeholder:o.placeholder}),d=0,f=r.length;do&&Ue(i,t.substring(o,a)),Ue(i,n[2],n[1]),o=_b.lastIndex}of)return{lines:[],width:0,height:0};k.textWidth=Le(k.text,_);var b=y.textWidth,S=null==b||"auto"===b;if("string"==typeof b&&"%"===b.charAt(b.length-1))k.percentWidth=b,u.push(k),b=0;else{if(S){b=k.textWidth;var M=y.textBackgroundColor,I=M&&M.image;I&&Ce(I=Te(I))&&(b=Math.max(b,I.width*w/I.height))}var T=x?x[1]+x[3]:0;b+=T;var C=null!=d?d-m:null;null!=C&&Cl&&(i*=l/(c=i+n),n*=l/c),o+a>l&&(o*=l/(c=o+a),a*=l/c),n+o>u&&(n*=u/(c=n+o),o*=u/c),i+a>u&&(i*=u/(c=i+a),a*=u/c),t.moveTo(r+i,s),t.lineTo(r+l-n,s),0!==n&&t.arc(r+l-n,s+n,n,-Math.PI/2,0),t.lineTo(r+l,s+u-o),0!==o&&t.arc(r+l-o,s+u-o,o,0,Math.PI/2),t.lineTo(r+a,s+u),0!==a&&t.arc(r+a,s+u-a,a,Math.PI/2,Math.PI),t.lineTo(r,s+i),0!==i&&t.arc(r+i,s+i,i,Math.PI,1.5*Math.PI)}function Ye(t){return qe(t),d(t.rich,qe),t}function qe(t){if(t){t.font=Xe(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Mb[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||Ib[i]?i:"top",t.textPadding&&(t.textPadding=L(t.textPadding))}}function Ke(t,e,i,n,o,a){n.rich?Je(t,e,i,n,o,a):$e(t,e,i,n,o,a)}function $e(t,e,i,n,o,a){var r,s=ii(n),l=!1,u=e.__attrCachedBy===rb.PLAIN_TEXT;a!==sb?(a&&(r=a.style,l=!s&&u&&r),e.__attrCachedBy=s?rb.NONE:rb.PLAIN_TEXT):u&&(e.__attrCachedBy=rb.NONE);var h=n.font||Sb;l&&h===(r.font||Sb)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=n.textPadding,f=n.textLineHeight,p=t.__textCotentBlock;p&&!t.__dirtyText||(p=t.__textCotentBlock=He(i,c,d,f,n.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=ai(g,n,o),x=y.baseX,_=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;ti(e,n,o,x,_);var S=Ee(_,g,b),M=x,I=S;if(s||d){var T=Le(i,c);d&&(T+=d[1]+d[3]);var A=Oe(x,T,w);s&&ni(t,e,n,A,S,T,g),d&&(M=hi(x,w,d),I+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(B=0;B=0&&"right"===(_=b[C]).textAlign;)ei(t,e,_,n,M,v,D,"right"),I-=_.width,D-=_.width,C--;for(A+=(a-(A-m)-(y-D)-I)/2;T<=C;)ei(t,e,_=b[T],n,M,v,A+_.width/2,"center"),A+=_.width,T++;v+=M}}function ti(t,e,i,n,o){if(i&&e.textRotation){var a=e.textOrigin;"center"===a?(n=i.width/2+i.x,o=i.height/2+i.y):a&&(n=a[0]+i.x,o=a[1]+i.y),t.translate(n,o),t.rotate(-e.textRotation),t.translate(-n,-o)}}function ei(t,e,i,n,o,a,r,s){var l=n.rich[i.styleName]||{};l.text=i.text;var u=i.textVerticalAlign,h=a+o/2;"top"===u?h=a+i.height/2:"bottom"===u&&(h=a+o-i.height/2),!i.isLineHolder&&ii(l)&&ni(t,e,l,"right"===s?r-i.width:"center"===s?r-i.width/2:r,h-i.height/2,i.width,i.height);var c=i.textPadding;c&&(r=hi(r,s,c),h-=i.height/2-c[2]-i.textHeight/2),ri(e,"shadowBlur",D(l.textShadowBlur,n.textShadowBlur,0)),ri(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),ri(e,"shadowOffsetX",D(l.textShadowOffsetX,n.textShadowOffsetX,0)),ri(e,"shadowOffsetY",D(l.textShadowOffsetY,n.textShadowOffsetY,0)),ri(e,"textAlign",s),ri(e,"textBaseline","middle"),ri(e,"font",i.font||Sb);var d=si(l.textStroke||n.textStroke,p),f=li(l.textFill||n.textFill),p=A(l.textStrokeWidth,n.textStrokeWidth);d&&(ri(e,"lineWidth",p),ri(e,"strokeStyle",d),e.strokeText(i.text,r,h)),f&&(ri(e,"fillStyle",f),e.fillText(i.text,r,h))}function ii(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function ni(t,e,i,n,o,a,r){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,h=_(s);if(ri(e,"shadowBlur",i.textBoxShadowBlur||0),ri(e,"shadowColor",i.textBoxShadowColor||"transparent"),ri(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),ri(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=i.textBorderRadius;c?je(e,{x:n,y:o,width:a,height:r,r:c}):e.rect(n,o,a,r),e.closePath()}if(h)if(ri(e,"fillStyle",s),null!=i.fillOpacity){f=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=f}else e.fill();else if(w(s)){var d=s.image;(d=Ae(d,null,t,oi,s))&&Ce(d)&&e.drawImage(d,n,o,a,r)}if(l&&u)if(ri(e,"lineWidth",l),ri(e,"strokeStyle",u),null!=i.strokeOpacity){var f=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=f}else e.stroke()}function oi(t,e){e.image=t}function ai(t,e,i){var n=e.x||0,o=e.y||0,a=e.textAlign,r=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+ui(s[0],i.width),o=i.y+ui(s[1],i.height);else{var l=Re(s,i,e.textDistance);n=l.x,o=l.y,a=a||l.textAlign,r=r||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],o+=u[1])}return{baseX:n,baseY:o,textAlign:a,textVerticalAlign:r}}function ri(t,e,i){return t[e]=ab(t,e,i),t[e]}function si(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function li(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function ui(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function hi(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function ci(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function di(t){t=t||{},Kw.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new ub(t.style,this),this._rect=null,this.__clipPaths=[]}function fi(t){di.call(this,t)}function pi(t){return parseInt(t,10)}function gi(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function mi(t,e,i){return Cb.copy(t.getBoundingRect()),t.transform&&Cb.applyTransform(t.transform),Lb.width=e,Lb.height=i,!Cb.intersect(Lb)}function vi(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i=i.length&&i.push({option:t})}}),i}function Ni(t){var e=R();Zb(t,function(t,i){var n=t.exist;n&&e.set(n.id,t)}),Zb(t,function(t,i){var n=t.option;k(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),Zb(t,function(t,i){var n=t.exist,o=t.option,a=t.keyInfo;if(Ub(o)){if(a.name=null!=o.name?o.name+"":n?n.name:jb+i,n)a.id=n.id;else if(null!=o.id)a.id=o.id+"";else{var r=0;do{a.id="\0"+a.name+"\0"+r++}while(e.get(a.id))}e.set(a.id,t)}})}function Oi(t){var e=t.name;return!(!e||!e.indexOf(jb))}function Ei(t){return Ub(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function Ri(t,e){function i(t,e,i){for(var n=0,o=t.length;n-rS&&trS||t<-rS}function tn(t,e,i,n,o){var a=1-o;return a*a*(a*t+3*o*e)+o*o*(o*n+3*a*i)}function en(t,e,i,n,o){var a=1-o;return 3*(((e-t)*a+2*(i-e)*o)*a+(n-i)*o*o)}function nn(t,e,i,n,o,a){var r=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-o,h=s*s-3*r*l,c=s*l-9*r*u,d=l*l-3*s*u,f=0;if(Ji(h)&&Ji(c))Ji(s)?a[0]=0:(M=-l/s)>=0&&M<=1&&(a[f++]=M);else{var p=c*c-4*h*d;if(Ji(p)){var g=c/h,m=-g/2;(M=-s/r+g)>=0&&M<=1&&(a[f++]=M),m>=0&&m<=1&&(a[f++]=m)}else if(p>0){var v=aS(p),y=h*s+1.5*r*(-c+v),x=h*s+1.5*r*(-c-v);(M=(-s-((y=y<0?-oS(-y,uS):oS(y,uS))+(x=x<0?-oS(-x,uS):oS(x,uS))))/(3*r))>=0&&M<=1&&(a[f++]=M)}else{var _=(2*h*s-3*r*c)/(2*aS(h*h*h)),w=Math.acos(_)/3,b=aS(h),S=Math.cos(w),M=(-s-2*b*S)/(3*r),m=(-s+b*(S+lS*Math.sin(w)))/(3*r),I=(-s+b*(S-lS*Math.sin(w)))/(3*r);M>=0&&M<=1&&(a[f++]=M),m>=0&&m<=1&&(a[f++]=m),I>=0&&I<=1&&(a[f++]=I)}}return f}function on(t,e,i,n,o){var a=6*i-12*e+6*t,r=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Ji(r))Qi(a)&&(c=-s/a)>=0&&c<=1&&(o[l++]=c);else{var u=a*a-4*r*s;if(Ji(u))o[0]=-a/(2*r);else if(u>0){var h=aS(u),c=(-a+h)/(2*r),d=(-a-h)/(2*r);c>=0&&c<=1&&(o[l++]=c),d>=0&&d<=1&&(o[l++]=d)}}return l}function an(t,e,i,n,o,a){var r=(e-t)*o+t,s=(i-e)*o+e,l=(n-i)*o+i,u=(s-r)*o+r,h=(l-s)*o+s,c=(h-u)*o+u;a[0]=t,a[1]=r,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=n}function rn(t,e,i,n,o,a,r,s,l,u,h){var c,d,f,p,g,m=.005,v=1/0;hS[0]=l,hS[1]=u;for(var y=0;y<1;y+=.05)cS[0]=tn(t,i,o,r,y),cS[1]=tn(e,n,a,s,y),(p=hw(hS,cS))=0&&p=0&&c<=1&&(o[l++]=c);else{var u=r*r-4*a*s;if(Ji(u))(c=-r/(2*a))>=0&&c<=1&&(o[l++]=c);else if(u>0){var h=aS(u),c=(-r+h)/(2*a),d=(-r-h)/(2*a);c>=0&&c<=1&&(o[l++]=c),d>=0&&d<=1&&(o[l++]=d)}}return l}function hn(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function cn(t,e,i,n,o){var a=(e-t)*n+t,r=(i-e)*n+e,s=(r-a)*n+a;o[0]=t,o[1]=a,o[2]=s,o[3]=s,o[4]=r,o[5]=i}function dn(t,e,i,n,o,a,r,s,l){var u,h=.005,c=1/0;hS[0]=r,hS[1]=s;for(var d=0;d<1;d+=.05)cS[0]=sn(t,i,o,d),cS[1]=sn(e,n,a,d),(m=hw(hS,cS))=0&&m1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(yS[0]=mS(o)*i+t,yS[1]=gS(o)*n+e,xS[0]=mS(a)*i+t,xS[1]=gS(a)*n+e,u(s,yS,xS),h(l,yS,xS),(o%=vS)<0&&(o+=vS),(a%=vS)<0&&(a+=vS),o>a&&!r?a+=vS:oo&&(_S[0]=mS(f)*i+t,_S[1]=gS(f)*n+e,u(s,_S,s),h(l,_S,l))}function yn(t,e,i,n,o,a,r){if(0===o)return!1;var s=o,l=0,u=t;if(r>e+s&&r>n+s||rt+s&&a>i+s||ae+c&&h>n+c&&h>a+c&&h>s+c||ht+c&&u>i+c&&u>o+c&&u>r+c||ue+u&&l>n+u&&l>a+u||lt+u&&s>i+u&&s>o+u||si||h+uo&&(o+=zS);var d=Math.atan2(l,s);return d<0&&(d+=zS),d>=n&&d<=o||d+zS>=n&&d+zS<=o}function Sn(t,e,i,n,o,a){if(a>e&&a>n||ao?r:0}function Mn(t,e){return Math.abs(t-e)e&&u>n&&u>a&&u>s||u1&&In(),c=tn(e,n,a,s,WS[0]),p>1&&(d=tn(e,n,a,s,WS[1]))),2===p?me&&s>n&&s>a||s=0&&u<=1){for(var h=0,c=sn(e,n,a,u),d=0;di||s<-i)return 0;u=Math.sqrt(i*i-s*s);FS[0]=-u,FS[1]=u;var l=Math.abs(n-o);if(l<1e-4)return 0;if(l%VS<1e-4){n=0,o=VS;p=a?1:-1;return r>=FS[0]+t&&r<=FS[1]+t?p:0}if(a){var u=n;n=wn(o),o=wn(u)}else n=wn(n),o=wn(o);n>o&&(o+=VS);for(var h=0,c=0;c<2;c++){var d=FS[c];if(d+t>r){var f=Math.atan2(s,d),p=a?1:-1;f<0&&(f=VS+f),(f>=n&&f<=o||f+VS>=n&&f+VS<=o)&&(f>Math.PI/2&&f<1.5*Math.PI&&(p=-p),h+=p)}}return h}function Cn(t,e,i,n,o){for(var a=0,r=0,s=0,l=0,u=0,h=0;h1&&(i||(a+=Sn(r,s,l,u,n,o))),1===h&&(l=r=t[h],u=s=t[h+1]),c){case BS.M:r=l=t[h++],s=u=t[h++];break;case BS.L:if(i){if(yn(r,s,t[h],t[h+1],e,n,o))return!0}else a+=Sn(r,s,t[h],t[h+1],n,o)||0;r=t[h++],s=t[h++];break;case BS.C:if(i){if(xn(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,o))return!0}else a+=Tn(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],n,o)||0;r=t[h++],s=t[h++];break;case BS.Q:if(i){if(_n(r,s,t[h++],t[h++],t[h],t[h+1],e,n,o))return!0}else a+=An(r,s,t[h++],t[h++],t[h],t[h+1],n,o)||0;r=t[h++],s=t[h++];break;case BS.A:var d=t[h++],f=t[h++],p=t[h++],g=t[h++],m=t[h++],v=t[h++];h+=1;var y=1-t[h++],x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;h>1?a+=Sn(r,s,x,_,n,o):(l=x,u=_);var w=(n-d)*g/p+d;if(i){if(bn(d,f,g,m,m+v,y,e,w,o))return!0}else a+=Dn(d,f,g,m,m+v,y,w,o);r=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case BS.R:l=r=t[h++],u=s=t[h++];var x=l+t[h++],_=u+t[h++];if(i){if(yn(l,u,x,u,e,n,o)||yn(x,u,x,_,e,n,o)||yn(x,_,l,_,e,n,o)||yn(l,_,l,u,e,n,o))return!0}else a+=Sn(x,u,x,_,n,o),a+=Sn(l,_,l,u,n,o);break;case BS.Z:if(i){if(yn(r,s,l,u,e,n,o))return!0}else a+=Sn(r,s,l,u,n,o);r=l,s=u}}return i||Mn(s,u)||(a+=Sn(r,s,l,u,n,o)||0),0!==a}function Ln(t,e,i){return Cn(t,0,!1,e,i)}function kn(t,e,i,n){return Cn(t,e,!0,i,n)}function Pn(t){di.call(this,t),this.path=null}function Nn(t,e,i,n,o,a,r,s,l,u,h){var c=l*(tM/180),d=QS(c)*(t-i)/2+JS(c)*(e-n)/2,f=-1*JS(c)*(t-i)/2+QS(c)*(e-n)/2,p=d*d/(r*r)+f*f/(s*s);p>1&&(r*=$S(p),s*=$S(p));var g=(o===a?-1:1)*$S((r*r*(s*s)-r*r*(f*f)-s*s*(d*d))/(r*r*(f*f)+s*s*(d*d)))||0,m=g*r*f/s,v=g*-s*d/r,y=(t+i)/2+QS(c)*m-JS(c)*v,x=(e+n)/2+JS(c)*m+QS(c)*v,_=nM([1,0],[(d-m)/r,(f-v)/s]),w=[(d-m)/r,(f-v)/s],b=[(-1*d-m)/r,(-1*f-v)/s],S=nM(w,b);iM(w,b)<=-1&&(S=tM),iM(w,b)>=1&&(S=0),0===a&&S>0&&(S-=2*tM),1===a&&S<0&&(S+=2*tM),h.addData(u,y,x,r,s,_,S,c,a)}function On(t){if(!t)return new ES;for(var e,i=0,n=0,o=i,a=n,r=new ES,s=ES.CMD,l=t.match(oM),u=0;u=2){if(o&&"spline"!==o){var a=fM(n,o,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var r=n.length,s=0;s<(i?r:r-1);s++){var l=a[2*s],u=a[2*s+1],h=n[(s+1)%r];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===o&&(n=dM(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s=0)?(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=a,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=a&&(i={textFill:null},t.textFill=a),i&&(t.insideRollback=i)}}function bo(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function So(t,e){var i=e||e.getModel("textStyle");return P([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Mo(t,e,i,n,o,a){if("function"==typeof o&&(a=o,o=null),n&&n.isAnimationEnabled()){var r=t?"Update":"",s=n.getShallow("animationDuration"+r),l=n.getShallow("animationEasing"+r),u=n.getShallow("animationDelay"+r);"function"==typeof u&&(u=u(o,n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null)),"function"==typeof s&&(s=s(o)),s>0?e.animateTo(i,s,u||0,l,a,!!a):(e.stopAnimation(),e.attr(i),a&&a())}else e.stopAnimation(),e.attr(i),a&&a()}function Io(t,e,i,n,o){Mo(!0,t,e,i,n,o)}function To(t,e,i,n,o){Mo(!1,t,e,i,n,o)}function Ao(t,e){for(var i=_t([]);t&&t!==e;)bt(i,t.getLocalTransform(),i),t=t.parent;return i}function Do(t,e,i){return e&&!c(e)&&(e=Tw.getLocalTransform(e)),i&&(e=Tt([],e)),Q([],t,e)}function Co(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-o:"bottom"===t?o:0];return a=Do(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Lo(t,e,i,n){function o(t){var e={position:F(t.position),rotation:t.rotation};return t.shape&&(e.shape=a({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),Io(t,n,i,t.dataIndex)}}})}}function ko(t,e){return f(t,function(t){var i=t[0];i=LM(i,e.x),i=kM(i,e.x+e.width);var n=t[1];return n=LM(n,e.y),n=kM(n,e.y+e.height),[i,n]})}function Po(t,e,i){var n=(e=a({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),r(n,i),new fi(e)):Xn(t.replace("path://",""),e,i,"center")}function No(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function Oo(t,e,i){for(var n=0;n0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/o*a+i[0]}function Vo(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"string"==typeof t?zo(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Go(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function Fo(t){return t.sort(function(t,e){return t-e}),t}function Wo(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Ho(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var o=e.indexOf(".");return o<0?0:e.length-1-o}function Zo(t,e){var i=Math.log,n=Math.LN10,o=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n),r=Math.min(Math.max(-o+a,0),20);return isFinite(r)?r:20}function Uo(t,e,i){if(!t[e])return 0;var n=p(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var o=Math.pow(10,i),a=f(t,function(t){return(isNaN(t)?0:t)/n*o*100}),r=100*o,s=f(a,function(t){return Math.floor(t)}),l=p(s,function(t,e){return t+e},0),u=f(a,function(t,e){return t-s[e]});lh&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/o}function Xo(t){var e=2*Math.PI;return(t%e+e)%e}function jo(t){return t>-UM&&t=-20?+t.toFixed(n<0?-n:0):t}function Jo(t){function e(t,i,n){return t.interval[n]=0}function ta(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ea(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 ia(t){return null==t?"":(t+"").replace(KM,function(t,e){return $M[e]})}function na(t,e,i){y(e)||(e=[e]);var n=e.length;if(!n)return"";for(var o=e[0].$vars||[],a=0;a':'':{renderMode:o,content:"{marker"+a+"|} ",style:{color:i}}:""}function ra(t,e){return t+="","0000".substr(0,e-t.length)+t}function sa(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=Yo(e),o=i?"UTC":"",a=n["get"+o+"FullYear"](),r=n["get"+o+"Month"]()+1,s=n["get"+o+"Date"](),l=n["get"+o+"Hours"](),u=n["get"+o+"Minutes"](),h=n["get"+o+"Seconds"](),c=n["get"+o+"Milliseconds"]();return t=t.replace("MM",ra(r,2)).replace("M",r).replace("yyyy",a).replace("yy",a%100).replace("dd",ra(s,2)).replace("d",s).replace("hh",ra(l,2)).replace("h",l).replace("mm",ra(u,2)).replace("m",u).replace("ss",ra(h,2)).replace("s",h).replace("SSS",ra(c,3))}function la(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ua(t,e,i,n,o){var a=0,r=0;null==n&&(n=1/0),null==o&&(o=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(h=a+m)>n||l.newline?(a=0,h=m,r+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=r+v)>o||l.newline?(a+=s+i,r=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=r,"horizontal"===t?a=h+i:r=c+i)})}function ha(t,e,i){var n=e.width,o=e.height,a=Vo(t.x,n),r=Vo(t.y,o),s=Vo(t.x2,n),l=Vo(t.y2,o);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(r)||isNaN(parseFloat(t.y)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=o),i=qM(i||0),{width:Math.max(s-a-i[1]-i[3],0),height:Math.max(l-r-i[0]-i[2],0)}}function ca(t,e,i){i=qM(i||0);var n=e.width,o=e.height,a=Vo(t.left,n),r=Vo(t.top,o),s=Vo(t.right,n),l=Vo(t.bottom,o),u=Vo(t.width,n),h=Vo(t.height,o),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(h)&&(h=o-l-c-r),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/o?u=.8*n:h=.8*o),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(a)&&(a=n-s-u-d),isNaN(r)&&(r=o-l-h-c),t.left||t.right){case"center":a=n/2-u/2-i[3];break;case"right":a=n-u-d}switch(t.top||t.bottom){case"middle":case"center":r=o/2-h/2-i[0];break;case"bottom":r=o-h-c}a=a||0,r=r||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(h)&&(h=o-c-r-(l||0));var p=new de(a+i[3],r+i[0],u,h);return p.margin=i,p}function da(t,e,i,n,o){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(a||s){var u;if("raw"===l)u="group"===t.type?new de(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(u=u.clone()).applyTransform(h)}e=ca(r({width:u.width,height:u.height},e),i,n);var c=t.position,d=a?e.x-u.x:0,f=s?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[c[0]+d,c[1]+f])}}function fa(t,e){return null!=t[oI[e][0]]||null!=t[oI[e][1]]&&null!=t[oI[e][2]]}function pa(t,e,i){function n(i,n){var r={},l=0,u={},h=0;if(iI(i,function(e){u[e]=t[e]}),iI(i,function(t){o(e,t)&&(r[t]=u[t]=e[t]),a(r,t)&&l++,a(u,t)&&h++}),s[n])return a(e,i[1])?u[i[2]]=null:a(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return r;for(var c=0;ce)return t[n];return t[i-1]}function ya(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:R(),categoryAxisMap:R()},n=fI[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}function xa(t){return"category"===t.get("type")}function _a(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===vI?{}:[]),this.sourceFormat=t.sourceFormat||yI,this.seriesLayoutBy=t.seriesLayoutBy||_I,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&R(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function wa(t){var e=t.option.source,i=yI;if(S(e))i=xI;else if(y(e)){0===e.length&&(i=gI);for(var n=0,o=e.length;n=e:"max"===i?t<=e:t===e}function Xa(t,e){return t.join(",")===e.join(",")}function ja(t,e){AI(e=e||{},function(e,i){if(null!=e){var n=t[i];if(lI.hasClass(i)){e=Di(e);var o=Pi(n=Di(n),e);t[i]=CI(o,function(t){return t.option&&t.exist?LI(t.exist,t.option,!0):t.exist||t.option})}else t[i]=LI(n,e,!0)}})}function Ya(t){var e=t&&t.itemStyle;if(e)for(var i=0,o=OI.length;i=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||h<=0&&m<0){h+=m,f=m;break}}}return n[0]=h,n[1]=f,n});r.hostModel.setData(l),e.data=l})}function rr(t,e){_a.isInstance(t)||(t=_a.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===xI&&(this._offset=0,this._dimSize=e,this._data=i),a(this,GI[n===gI?n+"_"+t.seriesLayoutBy:n])}function sr(){return this._data.length}function lr(t){return this._data[t]}function ur(t){for(var e=0;ee.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Mr(t,e){d(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,v(Ir,e))})}function Ir(t){var e=Tr(t);e&&e.setOutputEnd(this.count())}function Tr(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var o=n.agentStubMap;o&&(n=o.get(t.uid))}return n}}function Ar(){this.group=new tb,this.uid=Ro("viewChart"),this.renderTask=gr({plan:Lr,reset:kr}),this.renderTask.context={view:this}}function Dr(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i=0?n():c=setTimeout(n,-a),u=o};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function Nr(t,e,i,n){var o=t[e];if(o){var a=o[iT]||o,r=o[oT];if(o[nT]!==i||r!==n){if(null==i||!n)return t[e]=a;(o=t[e]=Pr(a,i,"debounce"===n))[iT]=a,o[oT]=n,o[nT]=i}return o}}function Or(t,e){var i=t[e];i&&i[iT]&&(t[e]=i[iT])}function Er(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=R()}function Rr(t,e,i,n,o){function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}o=o||{};var r;d(e,function(e,s){if(!o.visualType||o.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(t){a(o,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),hT(h,n);var f=t.getPerformArgs(h,o.block);d.each(function(t){t.perform(f)}),r|=h.perform(f)}else u&&u.each(function(s,l){a(o,s)&&s.dirty();var u=t.getPerformArgs(s,o.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),hT(s,n),r|=s.perform(u)})}}),t.unfinished|=r}function zr(t,e,i,n,o){function a(i){var a=i.uid,s=r.get(a)||r.set(a,gr({plan:Hr,reset:Zr,count:Xr}));s.context={model:i,ecModel:n,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},jr(t,i,s)}var r=i.seriesTaskMap||(i.seriesTaskMap=R()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(a):s?n.eachRawSeriesByType(s,a):l&&l(n,o).each(a);var u=t._pipelineMap;r.each(function(t,e){u.get(e)||(t.dispose(),r.removeKey(e))})}function Br(t,e,i,n,o){function a(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,gr({reset:Gr,onDirty:Wr})),r.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=r,n.__block=h,jr(t,e,n)}var r=i.overallTask=i.overallTask||gr({reset:Vr});r.context={ecModel:n,api:o,overallReset:e.overallReset,scheduler:t};var s=r.agentStubMap=r.agentStubMap||R(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,a):u?u(n,o).each(a):(h=!1,d(n.getSeries(),a));var f=t._pipelineMap;s.each(function(t,e){f.get(e)||(t.dispose(),r.dirty(),s.removeKey(e))})}function Vr(t){t.overallReset(t.ecModel,t.api,t.payload)}function Gr(t,e){return t.overallProgress&&Fr}function Fr(){this.agent.dirty(),this.getDownstream().dirty()}function Wr(){this.agent&&this.agent.dirty()}function Hr(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Zr(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Di(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?f(e,function(t,e){return Ur(e)}):cT}function Ur(t){return function(e,i){var n=i.data,o=i.resetDefines[t];if(o&&o.dataEach)for(var a=e.start;a0?parseInt(n,10)/100:n?parseFloat(n):0;var o=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,o)}i=i.nextSibling}}function Qr(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),r(e.__inheritedStyle,t.__inheritedStyle))}function ts(t){for(var e=P(t).split(_T),i=[],n=0;n0;a-=2){var r=o[a],s=o[a-1];switch(n=n||xt(),s){case"translate":r=P(r).split(_T),St(n,n,[parseFloat(r[0]),parseFloat(r[1]||0)]);break;case"scale":r=P(r).split(_T),It(n,n,[parseFloat(r[0]),parseFloat(r[1]||r[0])]);break;case"rotate":r=P(r).split(_T),Mt(n,n,parseFloat(r[0]));break;case"skew":r=P(r).split(_T),console.warn("Skew transform is not supported yet");break;case"matrix":r=P(r).split(_T);n[0]=parseFloat(r[0]),n[1]=parseFloat(r[1]),n[2]=parseFloat(r[2]),n[3]=parseFloat(r[3]),n[4]=parseFloat(r[4]),n[5]=parseFloat(r[5])}}e.setLocalTransform(n)}}function os(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n={};TT.lastIndex=0;for(var o;null!=(o=TT.exec(e));)n[o[1]]=o[2];for(var a in ST)ST.hasOwnProperty(a)&&null!=n[a]&&(i[ST[a]]=n[a]);return i}function as(t,e,i){var n=e/t.width,o=i/t.height,a=Math.min(n,o);return{scale:[a,a],position:[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+i/2]}}function rs(t,e){return(new $r).parse(t,e)}function ss(t){return function(e,i,n){e=e&&e.toLowerCase(),fw.prototype[t].call(this,e,i,n)}}function ls(){fw.call(this)}function us(t,e,n){function o(t,e){return t.__prio-e.__prio}n=n||{},"string"==typeof e&&(e=JT[e]),this.id,this.group,this._dom=t;var a=this._zr=Ii(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=Pr(m(a.flush,a),17),(e=i(e))&&BI(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Fa;var r=this._api=As(this);_e($T,o),_e(YT,o),this._scheduler=new Er(this,r,YT,$T),fw.call(this,this._ecEventProcessor=new Ds),this._messageCenter=new ls,this._initEvents(),this.resize=m(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),vs(a,this),N(this)}function hs(t,e,i){var n,o=this._model,a=this._coordSysMgr.getCoordinateSystems();e=Vi(o,e);for(var r=0;re.get("hoverLayerThreshold")&&!U_.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function Is(t,e){var i=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",i)})})}function Ts(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function As(t){var e=t._coordSysMgr;return a(new Ga(t),{getCoordinateSystems:m(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function Ds(){this.eventInfo}function Cs(t){function e(t,e){for(var n=0;n65535?dA:pA}function Js(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Qs(t,e){d(gA.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,d(mA,function(n){t[n]=i(e[n])}),t._calculationInfo=a(e._calculationInfo)}function tl(t,e,i,n,o){var a=cA[e.type],r=n-1,s=e.name,l=t[s][r];if(l&&l.length=0?this._indices[t]:-1}function al(t,e){var i=t._idList[e];return null==i&&(i=il(t,t._idDimIdx,e)),null==i&&(i=hA+e),i}function rl(t){return y(t)||(t=[t]),t}function sl(t,e){var i=t.dimensions,n=new vA(f(i,t.getDimensionInfo,t),t.hostModel);Qs(n,t);for(var o=n._storage={},a=t._storage,r=0;r=0?(o[s]=ll(a[s]),n._rawExtent[s]=ul(),n._extent[s]=null):o[s]=a[s])}return n}function ll(t){for(var e=new Array(t.length),i=0;in&&(r=o.interval=n);var s=o.intervalPrecision=Ml(r);return Tl(o.niceTickExtent=[MA(Math.ceil(t[0]/r)*r,s),MA(Math.floor(t[1]/r)*r,s)],t),o}function Ml(t){return Ho(t)+2}function Il(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Tl(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Il(t,0,e),Il(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Al(t,e,i,n){var o=[];if(!t)return o;e[0]1e4)return[];return e[1]>(o.length?o[o.length-1]:i[1])&&o.push(e[1]),o}function Dl(t){return t.get("stack")||AA+t.seriesIndex}function Cl(t){return t.dim+t.index}function Ll(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getBandWidth(),o=0;o=0?"p":"n",b=m;p&&(o[r][_]||(o[r][_]={p:m,n:m}),b=o[r][_][w]);var S,M,I,T;if(g)S=b,M=(A=i.dataToPoint([x,_]))[1]+l,I=A[0]-m,T=u,Math.abs(I)a[1]?(n=a[1],o=a[0]):(n=a[0],o=a[1]);var r=e.toGlobalCoord(e.dataToCoord(0));return ro&&(r=o),r}function Vl(t,e){return VA(t,BA(e))}function Gl(t,e){var i,n,o,a=t.type,r=e.getMin(),s=e.getMax(),l=null!=r,u=null!=s,h=t.getExtent();"ordinal"===a?i=e.getCategories().length:(y(n=e.get("boundaryGap"))||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Vo(n[0],1),n[1]=Vo(n[1],1),o=h[1]-h[0]||Math.abs(h[0])),null==r&&(r="ordinal"===a?i?0:NaN:h[0]-n[0]*o),null==s&&(s="ordinal"===a?i?i-1:NaN:h[1]+n[1]*o),"dataMin"===r?r=h[0]:"function"==typeof r&&(r=r({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==r||!isFinite(r))&&(r=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(I(r)||I(s)||"ordinal"===a&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(r>0&&s>0&&!l&&(r=0),r<0&&s<0&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===a){var f,p=kl("bar",c);if(d(p,function(t){f|=t.getBaseAxis()===e.axis}),f){var g=Pl(p),m=Fl(r,s,e,g);r=m.min,s=m.max}}return[r,s]}function Fl(t,e,i,n){var o=i.axis.getExtent(),a=o[1]-o[0],r=Ol(n,i.axis);if(void 0===r)return{min:t,max:e};var s=1/0;d(r,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(r,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/a)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}function Wl(t,e){var i=Gl(t,e),n=null!=e.getMin(),o=null!=e.getMax(),a=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var r=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:a,fixMin:n,fixMax:o,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function Hl(t,e){if(e=e||t.get("type"))switch(e){case"category":return new SA(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new TA;default:return(xl.getClass(e)||TA).create(t)}}function Zl(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function Ul(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(n,o){return null!=i&&(o=n-i),e(Xl(t,n),o)}:function(e){return t.scale.getLabel(e)}}function Xl(t,e){return"category"===t.type?t.scale.getLabel(e):e}function jl(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,o,a="category"===t.type,r=i.getExtent();o=a?i.count():(n=i.getTicks()).length;var s,l=t.getLabelModel(),u=Ul(t),h=1;o>40&&(h=Math.ceil(o/40));for(var c=0;c>1^-(1&s),l=l>>1^-(1&l),o=s+=o,a=l+=a,n.push([s/i,l/i])}return n}function ou(t){return"category"===t.type?ru(t):uu(t)}function au(t,e){return"category"===t.type?lu(t,e):{ticks:t.scale.getTicks()}}function ru(t){var e=t.getLabelModel(),i=su(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function su(t,e){var i=hu(t,"labels"),n=ql(e),o=cu(i,n);if(o)return o;var a,r;return a=x(n)?vu(t,n):mu(t,r="auto"===n?fu(t):n),du(i,n,{labels:a,labelCategoryInterval:r})}function lu(t,e){var i=hu(t,"ticks"),n=ql(e),o=cu(i,n);if(o)return o;var a,r;if(e.get("show")&&!t.scale.isBlank()||(a=[]),x(n))a=vu(t,n,!0);else if("auto"===n){var s=su(t,t.getLabelModel());r=s.labelCategoryInterval,a=f(s.labels,function(t){return t.tickValue})}else a=mu(t,r=n,!0);return du(i,n,{ticks:a,tickCategoryInterval:r})}function uu(t){var e=t.scale.getTicks(),i=Ul(t);return{labels:f(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function hu(t,e){return nD(t)[e]||(nD(t)[e]=[])}function cu(t,e){for(var i=0;i40&&(s=Math.max(1,Math.floor(r/40)));for(var l=a[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=a[1];l+=s){var p=0,g=0,m=ke(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=nD(t.model),w=_.lastAutoInterval,b=_.lastTickCount;return null!=w&&null!=b&&Math.abs(w-x)<=1&&Math.abs(b-r)<=1&&w>x?x=w:(_.lastTickCount=r,_.lastAutoInterval=x),x}function gu(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 mu(t,e,i){function n(t){l.push(i?t:{formattedLabel:o(t),rawLabel:a.getLabel(t),tickValue:t})}var o=Ul(t),a=t.scale,r=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=r[0],c=a.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d=Kl(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&h!==r[0]&&n(r[0]);for(var g=h;g<=r[1];g+=u)n(g);return p&&g!==r[1]&&n(r[1]),l}function vu(t,e,i){var n=t.scale,o=Ul(t),a=[];return d(n.getTicks(),function(t){var r=n.getLabel(t);e(t,r)&&a.push(i?t:{formattedLabel:o(t),rawLabel:r,tickValue:t})}),a}function yu(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}function xu(t,e,i,n,o){function a(t,e){return h?t>e:t0&&(t.coord-=u/(2*(e+1)))}),s={coord:e[r-1].coord+u},e.push(s)}var h=l[0]>l[1];a(e[0].coord,l[0])&&(o?e[0].coord=l[0]:e.shift()),o&&a(l[0],e[0].coord)&&e.unshift({coord:l[0]}),a(l[1],s.coord)&&(o?s.coord=l[1]:e.pop()),o&&a(s.coord,l[1])&&e.push({coord:l[1]})}}function _u(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return fr(t,e,i[0]);if(n){for(var o=[],a=0;a0?i=n[0]:n[1]<0&&(i=n[1]),i}function Ou(t,e,i,n){var o=NaN;t.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart);var a=t.baseDataOffset,r=[];return r[a]=i.get(t.baseDim,n),r[1-a]=o,e.dataToPoint(r)}function Eu(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function Ru(t){return isNaN(t[0])||isNaN(t[1])}function zu(t,e,i,n,o,a,r,s,l,u,h){return"none"!==u&&u?Bu.apply(this,arguments):Vu.apply(this,arguments)}function Bu(t,e,i,n,o,a,r,s,l,u,h){for(var c=0,d=i,f=0;f=o||d<0)break;if(Ru(p)){if(h){d+=a;continue}break}if(d===i)t[a>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;_D(bD,g),bD[m]=g[m]+v,_D(SD,p),SD[m]=p[m]-v,t.bezierCurveTo(bD[0],bD[1],SD[0],SD[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function Vu(t,e,i,n,o,a,r,s,l,u,h){for(var c=0,d=i,f=0;f=o||d<0)break;if(Ru(p)){if(h){d+=a;continue}break}if(d===i)t[a>0?"moveTo":"lineTo"](p[0],p[1]),_D(bD,p);else if(l>0){var g=d+a,m=e[g];if(h)for(;m&&Ru(e[g]);)m=e[g+=a];var v=.5,y=e[c];if(!(m=e[g])||Ru(m))_D(SD,p);else{Ru(m)&&!h&&(m=p),U(wD,m,y);var x,_;if("x"===u||"y"===u){var w="x"===u?0:1;x=Math.abs(p[w]-y[w]),_=Math.abs(p[w]-m[w])}else x=uw(p,y),_=uw(p,m);xD(SD,p,wD,-l*(1-(v=_/(_+x))))}vD(bD,bD,s),yD(bD,bD,r),vD(SD,SD,s),yD(SD,SD,r),t.bezierCurveTo(bD[0],bD[1],SD[0],SD[1],p[0],p[1]),xD(bD,p,wD,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function Gu(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var o=0;on[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}function Fu(t,e){if(t.length===e.length){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function Zu(t,e,i){if(!i.valueDim)return[];for(var n=[],o=0,a=e.count();oa[1]&&a.reverse();var r=o.getExtent(),s=Math.PI/180;i&&(a[0]-=.5,a[1]+=.5);var l=new hM({shape:{cx:Go(t.cx,1),cy:Go(t.cy,1),r0:Go(a[0],1),r:Go(a[1],1),startAngle:-r[0]*s,endAngle:-r[1]*s,clockwise:o.inverse}});return e&&(l.shape.endAngle=-r[0]*s,To(l,{shape:{endAngle:-r[1]*s}},n)),l}function ju(t,e,i,n){return"polar"===t.type?Xu(t,e,i,n):Uu(t,e,i,n)}function Yu(t,e,i){for(var n=e.getBaseAxis(),o="x"===n.dim||"radius"===n.dim?0:1,a=[],r=0;r=0;a--){var r=i[a].dimension,s=t.dimensions[r],l=t.getDimensionInfo(s);if("x"===(n=l&&l.coordDim)||"y"===n){o=i[a];break}}if(o){var u=e.getAxis(n),h=f(o.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,p=o.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),p.reverse());var g=h[0].coord-10,m=h[c-1].coord+10,v=m-g;if(v<.001)return"transparent";d(h,function(t){t.offset=(t.coord-g)/v}),h.push({offset:c?h[c-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:p[0]||"transparent"});var y=new TM(0,0,0,0,h,!0);return y[n]=g,y[n+"2"]=m,y}}}function Ku(t,e,i){var n=t.get("showAllSymbol"),o="auto"===n;if(!n||o){var a=i.getAxesByScale("ordinal")[0];if(a&&(!o||!$u(a,e))){var r=e.mapDimension(a.dim),s={};return d(a.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function $u(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),r=0;rn)return!1;return!0}function Ju(t){return this._axes[t]}function Qu(t){LD.call(this,t)}function th(t,e){return e.type||(e.data?"category":"value")}function eh(t,e,i){return t.getCoordSysModel()===e}function ih(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function nh(t,e,i,n){function o(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return a?[a]:[]};var a,r=t[e],s=i.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)oh(r[u])&&(a=r[u]);else for(var h in r)if(r.hasOwnProperty(h)&&oh(r[h])&&!n[o(r[h])]){a=r[h];break}a&&(n[o(a)]=!0)}}function oh(t){return t&&"category"!==t.type&&"time"!==t.type&&Zl(t)}function ah(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function rh(t,e){return f(VD,function(e){return t.getReferringComponents(e)[0]})}function sh(t){return"cartesian2d"===t.get("coordinateSystem")}function lh(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e}function uh(t,e,i,n){var o,a,r=Xo(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return jo(r-GD/2)?(a=l?"bottom":"top",o="center"):jo(r-1.5*GD)?(a=l?"top":"bottom",o="center"):(a="middle",o=r<1.5*GD&&r>GD/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function hh(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function ch(t,e,i){if(!Kl(t.axis)){var n=t.get("axisLabel.showMinLabel"),o=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var a=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],d=i[i.length-2];!1===n?(dh(a),dh(u)):fh(a,r)&&(n?(dh(r),dh(h)):(dh(a),dh(u))),!1===o?(dh(s),dh(c)):fh(l,s)&&(o?(dh(l),dh(d)):(dh(s),dh(c)))}}function dh(t){t&&(t.ignore=!0)}function fh(t,e,i){var n=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(n&&o){var a=_t([]);return Mt(a,a,-t.rotation),n.applyTransform(bt([],a,t.getLocalTransform())),o.applyTransform(bt([],a,e.getLocalTransform())),n.intersect(o)}}function ph(t){return"middle"===t||"center"===t}function gh(t,e,i){var n=e.axis;if(e.get("axisTick.show")&&!n.scale.isBlank()){for(var o=e.getModel("axisTick"),a=o.getModel("lineStyle"),s=o.get("length"),l=n.getTicksCoords(),u=[],h=[],c=t._transform,d=[],f=0;f=0||t===e}function Sh(t){var e=Mh(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,o=i.option,a=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=Th(i);null==a&&(o.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r0?"bottom":"top":o.width>0?"left":"right";l||kh(t.style,d,n,u,a,i,p),fo(t,d)}function Rh(t,e){var i=t.get(tC)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}function zh(t,e,i){var n=t.getData(),o=[],a=n.getLayout("valueAxisHorizontal")?1:0;o[1-a]=n.getLayout("valueAxisStart");var r=new nC({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:o,__valueIdx:a});e.add(r),Bh(r,t,n)}function Bh(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),o=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(o),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function Vh(t,e,i,n){var o=e.getData(),a=this.dataIndex,r=o.getName(a),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:r,seriesId:e.id}),o.each(function(t){Gh(o.getItemGraphicEl(t),o.getItemLayout(t),e.isSelected(o.getName(t)),s,i)})}function Gh(t,e,i,n,o){var a=(e.startAngle+e.endAngle)/2,r=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[r*l,s*l];o?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function Fh(t,e){function i(){a.ignore=a.hoverIgnore,r.ignore=r.hoverIgnore}function n(){a.ignore=a.normalIgnore,r.ignore=r.normalIgnore}tb.call(this);var o=new hM({z2:2}),a=new gM,r=new rM;this.add(o),this.add(a),this.add(r),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function Wh(t,e,i,n,o,a,r){function s(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function l(t,e,i,n,o,a){for(var r=e?Number.MAX_VALUE:0,s=0,l=t.length;s=r&&(d=r-10),!e&&d<=r&&(d=r+10),t[s].x=i+d*a,r=d}}t.sort(function(t,e){return t.y-e.y});for(var u,h=0,c=t.length,d=[],f=[],p=0;pe&&a+1t[a].y+t[a].height)return void s(a,n/2);s(i-1,n/2)}(p,c,-u),h=t[p].y+t[p].height;r-h<0&&s(c-1,h-r);for(p=0;p=i?f.push(t[p]):d.push(t[p]);l(d,!1,e,i,n,o),l(f,!0,e,i,n,o)}function Hh(t,e,i,n,o,a){for(var r=[],s=[],l=0;l3?1.4:o>1?1.2:1.1;hc(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:a,originY:r})}if(i){var l=Math.abs(n);hc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:r})}}}function uc(t){ic(this._zr,"globalPan")||hc(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function hc(t,e,i,n,o){t.pointerChecker&&t.pointerChecker(n,o.originX,o.originY)&&(mw(n.event),cc(t,e,i,n,o))}function cc(t,e,i,n,o){o.isAvailableBehavior=m(dc,null,i,n),t.trigger(e,o)}function dc(t,e,i){var n=i[t];return!t||n&&(!_(n)||e.event[n+"Key"])}function fc(t,e,i){var n=t.target,o=n.position;o[0]+=e,o[1]+=i,n.dirty()}function pc(t,e,i,n){var o=t.target,a=t.zoomLimit,r=o.position,s=o.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,h=a.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,r[0]-=(i-r[0])*(c-1),r[1]-=(n-r[1])*(c-1),s[0]*=c,s[1]*=c,o.dirty()}function gc(t,e,i){var n=e.getComponentByElement(t.topTarget),o=n&&n.coordinateSystem;return n&&n!==i&&!RC[n.mainType]&&o&&o.model!==i}function mc(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function vc(t,e,i,n,o){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(a){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var r=a.target;!r.__regions;)r=r.parent;if(r){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:f(r.__regions,function(t){return{name:t.name,from:o.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),yc(e,i)}}}))}function yc(t,e){e.eachChild(function(e){d(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function xc(t,e){var i=new tb;this.uid=Ro("ec_map_draw"),this._controller=new oc(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new tb),i.add(this._backgroundGroup=new tb)}function _c(t){var e=this[zC];e&&e.recordVersion===this[BC]&&wc(e,t)}function wc(t,e){var i=t.circle,n=t.labelModel,o=t.hoverLabelModel,a=t.emphasisText,r=t.normalText;e?(i.style.extendFrom(mo({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=NM):(mo(i.style,n,{text:n.get("show")?r:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}function bc(t,e,i){var n=t.getZoom(),o=t.getCenter(),a=e.zoom,r=t.dataToPoint(o);if(null!=e.dx&&null!=e.dy){r[0]-=e.dx,r[1]-=e.dy;o=t.pointToData(r);t.setCenter(o)}if(null!=a){if(i){var s=i.min||0,l=i.max||1/0;a=Math.max(Math.min(n*a,l),s)/n}t.scale[0]*=a,t.scale[1]*=a;var u=t.position,h=(e.originX-u[0])*(a-1),c=(e.originY-u[1])*(a-1);u[0]-=h,u[1]-=c,t.updateTransform();o=t.pointToData(r);t.setCenter(o),t.setZoom(a*n)}return{center:t.getCenter(),zoom:t.getZoom()}}function Sc(){Tw.call(this)}function Mc(t){this.name=t,this.zoomLimit,Tw.call(this),this._roamTransformable=new Sc,this._rawTransformable=new Sc,this._center,this._zoom}function Ic(t,e,i,n){var o=i.seriesModel,a=o?o.coordinateSystem:null;return a===this?a[t](n):null}function Tc(t,e,i,n){Mc.call(this,t),this.map=e;var o=OC.load(e,i);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=null==n||n,this.regions=o.regions,this._rect=o.boundingRect}function Ac(t,e,i,n){var o=i.geoModel,a=i.seriesModel,r=o?o.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return r===this?r[t](n):null}function Dc(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],o=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(o[0])||isNaN(o[1])||this.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1])}var a,r=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),c=r.width/r.height*this.aspectScale,d=!1;s&&l&&(s=[Vo(s[0],u),Vo(s[1],h)],l=Vo(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(d=!0));if(d){var f={};c>1?(f.width=l,f.height=l/c):(f.height=l,f.width=l*c),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else(a=t.getBoxLayoutParams()).aspect=c,f=ca(a,{width:u,height:h});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Cc(t,e){d(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function Lc(t,e){var i={};return d(t,function(t){t.each(t.mapDimension("value"),function(e,n){var o="ec-"+t.getName(n);i[o]=i[o]||[],isNaN(e)||i[o].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,o){for(var a="ec-"+t[0].getName(o),r=0,s=1/0,l=-1/0,u=i[a].length,h=0;h=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(a)}}function Wc(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,o=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){jc(t);var a=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=Yc(t,o,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Hc(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Zc(t){return arguments.length?t:Qc}function Uc(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function Xc(t,e){return ca(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jc(t){for(var e=t.children,i=e.length,n=0,o=0;--i>=0;){var a=e[i];a.hierNode.prelim+=n,a.hierNode.modifier+=n,o+=a.hierNode.change,n+=a.hierNode.shift+o}}function Yc(t,e,i,n){if(e){for(var o=t,a=t,r=a.parentNode.children[0],s=e,l=o.hierNode.modifier,u=a.hierNode.modifier,h=r.hierNode.modifier,c=s.hierNode.modifier;s=qc(s),a=Kc(a),s&&a;){o=qc(o),r=Kc(r),o.hierNode.ancestor=t;var d=s.hierNode.prelim+c-a.hierNode.prelim-u+n(s,a);d>0&&(Jc($c(s,t,i),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=o.hierNode.modifier,h+=r.hierNode.modifier}s&&!qc(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),a&&!Kc(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=u-h,i=t)}return i}function qc(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Kc(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $c(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function Jc(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function Qc(t,e){return t.parentNode===e.parentNode?1:2}function td(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function ed(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function id(t,e,i,n,o,a){var s=!i,l=t.tree.getNodeByDataIndex(e),a=ed(l,l.getModel(),a),u=t.tree.root,h=l.parentNode===u?l:l.parentNode||l,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=l.getLayout();s?(i=new wu(t,e,a)).attr("position",[f.x,f.y]):i.updateData(t,e,a),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=p.rawX,i.__radialRawY=p.rawY,n.add(i),t.setItemGraphicEl(e,i),Io(i,{position:[p.x,p.y]},o);var g=i.getSymbolPath();if("radial"===a.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===l.isExpand){var w={};w.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,w.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(w.y-x.y,w.x-x.x))<0&&(m=2*Math.PI+m),(v=w.xx.x)||(m-=Math.PI);var b=v?"left":"right";g.setStyle({textPosition:b,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(l.parentNode&&l.parentNode!==u){var S=i.__edge;S||(S=i.__edge=new bM({shape:od(a,f,f),style:r({opacity:0,strokeNoScale:!0},a.lineStyle)})),Io(S,{shape:od(a,d,p),style:{opacity:1}},o),n.add(S)}}function nd(t,e,i,n,o,a){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,a=ed(s,s.getModel(),a),u=s.parentNode===l?s:s.parentNode||s;null==(r=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;Io(i,{position:[r.x+1,r.y+1]},o,function(){n.remove(i),t.setItemGraphicEl(e,null)}),i.fadeOut(null,{keepLabel:!0});var h=i.__edge;h&&Io(h,{shape:od(a,r,r),style:{opacity:0}},o,function(){n.remove(h)})}function od(t,e,i){var n,o,a,r,s,l,u,h,c=t.orient;if("radial"===t.layout){s=e.rawX,u=e.rawY,l=i.rawX,h=i.rawY;var d=Uc(s,u),f=Uc(s,u+(h-u)*t.curvature),p=Uc(l,h+(u-h)*t.curvature),g=Uc(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=i.x,h=i.y,"LR"!==c&&"RL"!==c||(n=s+(l-s)*t.curvature,o=u,a=l+(s-l)*t.curvature,r=h),"TB"!==c&&"BT"!==c||(n=s,o=u+(h-u)*t.curvature,a=l,r=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:n,cpy1:o,cpx2:a,cpy2:r}}function ad(t,e,i){for(var n,o=[t],a=[];n=o.pop();)if(a.push(n),n.isExpand){var r=n.children;if(r.length)for(var s=0;s=0;a--)n.push(o[a])}}function sd(t,e){var i=Xc(t,e);t.layoutInfo=i;var n=t.get("layout"),o=0,a=0,r=null;"radial"===n?(o=2*Math.PI,a=Math.min(i.height,i.width)/2,r=Zc(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=i.width,a=i.height,r=Zc());var s=t.getData().tree.root,l=s.children[0];if(l){Fc(s),ad(l,Wc,r),s.hierNode.modifier=-l.hierNode.prelim,rd(l,Hc);var u=l,h=l,c=l;rd(l,function(t){var e=t.getLayout().x;eh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var d=u===h?1:r(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=o/(h.getLayout().x+d+f),g=a/(c.depth-1||1),rd(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Uc(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=a/(h.getLayout().x+d+f),p=o/(c.depth-1||1),rd(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:o-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=o/(h.getLayout().x+d+f),g=a/(c.depth-1||1),rd(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:a-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}function ld(t,e,i){if(t&&l(e,t.type)>=0){var n=i.getData().tree.root,o=t.targetNode;if("string"==typeof o&&(o=n.getNodeById(o)),o&&n.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=n.getNodeById(a)))return{node:o}}}function ud(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hd(t,e){return l(ud(t),e)>=0}function cd(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}function dd(t){var e=0;d(t.children,function(t){dd(t);var i=t.value;y(i)&&(i=i[0]),e+=i});var i=t.value;y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),y(t.value)?t.value[0]=i:t.value=i}function fd(t,e){var i=e.get("color");if(i){var n;return d(t=t||[],function(t){var e=new No(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}}function pd(t){this.group=new tb,t.add(this.group)}function gd(t,e,i,n,o,a){var r=[[o?t:t-UC,e],[t+i,e],[t+i,e+n],[o?t:t-UC,e+n]];return!a&&r.splice(2,0,[t+i+UC,e+n/2]),!o&&r.push([t,e+n/2]),r}function md(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&cd(i,e)}}function vd(){var t,e=[],i={};return{add:function(t,n,o,a,r){return _(a)&&(r=a,a=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:o,delay:a,easing:r}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,o=0,a=e.length;o=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function bd(t,e){var i=t.visual,n=[];w(i)?sL(i,function(t){n.push(t)}):null!=i&&n.push(i);var o={color:1,symbol:1};e||1!==n.length||o.hasOwnProperty(t.type)||(n[1]=n[0]),Ld(t,n)}function Sd(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:Dd([0,1])}}function Md(t){var e=this.option.visual;return e[Math.round(Bo(t,[0,1],[0,e.length-1],!0))]||{}}function Id(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function Td(t){var e=this.option.visual;return e[this.option.loop&&t!==uL?t%e.length:t]}function Ad(){return this.option.visual[0]}function Dd(t){return{linear:function(e){return Bo(e,t,this.option.visual,!0)},category:Td,piecewise:function(e,i){var n=Cd.call(this,i);return null==n&&(n=Bo(e,t,this.option.visual,!0)),n},fixed:Ad}}function Cd(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[hL.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function Ld(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=f(e,function(t){return Gt(t)})),e}function kd(t,e,i){return t?e<=i:e=o.length||t===o[t.depth])&&Pd(t,Vd(r,h,t,e,g,a),i,n,o,a)})}else l=Od(h),t.setVisual("color",l)}}function Nd(t,e,i,n){var o=a({},e);return d(["color","colorAlpha","colorSaturation"],function(a){var r=t.get(a,!0);null==r&&i&&(r=i[a]),null==r&&(r=e[a]),null==r&&(r=n.get(a)),null!=r&&(o[a]=r)}),o}function Od(t){var e=Rd(t,"color");if(e){var i=Rd(t,"colorAlpha"),n=Rd(t,"colorSaturation");return n&&(e=jt(e,null,null,n)),i&&(e=Yt(e,i)),e}}function Ed(t,e){return null!=e?jt(e,null,null,t):null}function Rd(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function zd(t,e,i,n,o,a){if(a&&a.length){var r=Bd(e,"color")||null!=o.color&&"none"!==o.color&&(Bd(e,"colorAlpha")||Bd(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),u=i.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:r.name,dataExtent:u,visual:r.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new hL(c);return d.__drColorMappingBy=h,d}}}function Bd(t,e){var i=t.get(e);return fL(i)&&i.length?{name:e,range:i}:null}function Vd(t,e,i,n,o,r){var s=a({},e);if(o){var l=o.type,u="color"===l&&o.__drColorMappingBy,h="index"===u?n:"id"===u?r.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=o.mapValueToVisual(h)}return s}function Gd(t,e,i,n){var o,a;if(!t.isRemoved()){var r=t.getLayout();o=r.width,a=r.height;var s=(f=t.getModel()).get(_L),l=f.get(wL)/2,u=Kd(f),h=Math.max(s,u),c=s-l,d=h-l,f=t.getModel();t.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:u},!0);var p=(o=mL(o-2*c,0))*(a=mL(a-c-d,0)),g=Fd(t,f,p,e,i,n);if(g.length){var m={x:c,y:d,width:o,height:a},v=vL(o,a),y=1/0,x=[];x.area=0;for(var _=0,w=g.length;_=0;l--){var u=o["asc"===n?r-l-1:l].getValue();u/i*es[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function Ud(t,e,i){for(var n,o=0,a=1/0,r=0,s=t.length;ro&&(o=n));var l=t.area*t.area,u=e*e*i;return l?mL(u*o/l,l/(u*a)):1/0}function Xd(t,e,i,n,o){var a=e===i.width?0:1,r=1-a,s=["x","y"],l=["width","height"],u=i[s[a]],h=e?t.area/e:0;(o||h>i[l[r]])&&(h=i[l[r]]);for(var c=0,d=t.length;cXM&&(u=XM),a=s}u=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function pf(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function gf(t,e,i){var n=t.getGraphicEl(),o=pf(t,e);null!=i&&(null==o&&(o=1),o*=i),n.downplay&&n.downplay(),n.traverse(function(t){if("group"!==t.type){var e=t.lineLabelOriginalOpacity;null!=e&&null==i||(e=o),t.setStyle("opacity",e)}})}function mf(t,e){var i=pf(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function vf(t){return t instanceof Array||(t=[t,t]),t}function yf(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),xf(i)}}function xf(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=F(t.node1.getLayout()),n=F(t.node2.getLayout()),o=[i,n];+e&&o.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(o)})}function _f(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),n=t.getData(),o=n.graph,a=0,r=n.getSum("value"),s=2*Math.PI/(r||n.count()),l=i.width/2+i.x,u=i.height/2+i.y,h=Math.min(i.width,i.height)/2;o.eachNode(function(t){var e=t.getValue("value");a+=s*(r?e:1)/2,t.setLayout([h*Math.cos(a)+l,h*Math.sin(a)+u]),a+=s*(r?e:1)/2}),n.setLayout({cx:l,cy:u}),o.eachEdge(function(t){var e,i=t.getModel().get("lineStyle.curveness")||0,n=F(t.node1.getLayout()),o=F(t.node2.getLayout()),a=(n[0]+o[0])/2,r=(n[1]+o[1])/2;+i&&(e=[l*(i*=3)+a*(1-i),u*i+r*(1-i)]),t.setLayout([n,o,e])})}}function wf(t,e,i){for(var n=i.rect,o=n.width,a=n.height,r=[n.x+o/2,n.y+a/2],s=null==i.gravity?.1:i.gravity,l=0;l0?-1:i<0?1:e?-1:1}}function Pf(t,e){return Math.min(e[1],Math.max(e[0],t))}function Nf(t,e,i){this._axesMap=R(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function Of(t,e){return ek(ik(t,e[0]),e[1])}function Ef(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function Rf(t,e){var i,n,o=e.layoutLength,a=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return tmk}function $f(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Jf(t,e,i,n){var o=new tb;return o.add(new yM({name:"main",style:ip(i),silent:!0,draggable:!0,cursor:"move",drift:uk(t,e,o,"nswe"),ondragend:uk(qf,e,{isEnd:!0})})),hk(n,function(i){o.add(new yM({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:uk(t,e,o,i),ondragend:uk(qf,e,{isEnd:!0})}))}),o}function Qf(t,e,i,n){var o=n.brushStyle.lineWidth||0,a=fk(o,vk),r=i[0][0],s=i[1][0],l=r-o/2,u=s-o/2,h=i[0][1],c=i[1][1],d=h-a+o/2,f=c-a+o/2,p=h-r,g=c-s,m=p+o,v=g+o;ep(t,e,"main",r,s,p,g),n.transformable&&(ep(t,e,"w",l,u,a,v),ep(t,e,"e",d,u,a,v),ep(t,e,"n",l,u,m,a),ep(t,e,"s",l,f,m,a),ep(t,e,"nw",l,u,a,a),ep(t,e,"ne",d,u,a,a),ep(t,e,"sw",l,f,a,a),ep(t,e,"se",d,f,a,a))}function tp(t,e){var i=e.__brushOption,n=i.transformable,o=e.childAt(0);o.useStyle(ip(i)),o.attr({silent:!n,cursor:n?"move":"default"}),hk(["w","e","n","s","se","sw","ne","nw"],function(i){var o=e.childOfName(i),a=ap(t,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?_k[a]+"-resize":null})})}function ep(t,e,i,n,o,a,r){var s=e.childOfName(i);s&&s.setShape(hp(up(t,e,[[n,o],[n+a,o+r]])))}function ip(t){return r({strokeNoScale:!0},t.brushStyle)}function np(t,e,i,n){var o=[dk(t,i),dk(e,n)],a=[fk(t,i),fk(e,n)];return[[o[0],a[0]],[o[1],a[1]]]}function op(t){return Ao(t.group)}function ap(t,e){if(e.length>1)return("e"===(n=[ap(t,(e=e.split(""))[0]),ap(t,e[1])])[0]||"w"===n[0])&&n.reverse(),n.join("");var i={left:"w",right:"e",top:"n",bottom:"s"},n=Co({w:"left",e:"right",n:"top",s:"bottom"}[e],op(t));return i[n]}function rp(t,e,i,n,o,a,r,s){var l=n.__brushOption,u=t(l.range),h=lp(i,a,r);hk(o.split(""),function(t){var e=xk[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(np(u[0][0],u[1][0],u[0][1],u[1][1])),Zf(i,n),qf(i,{isEnd:!1})}function sp(t,e,i,n,o){var a=e.__brushOption.range,r=lp(t,i,n);hk(a,function(t){t[0]+=r[0],t[1]+=r[1]}),Zf(t,e),qf(t,{isEnd:!1})}function lp(t,e,i){var n=t.group,o=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function up(t,e,n){var o=jf(t,e);return o&&!0!==o?o.clipPath(n,t._transform):i(n)}function hp(t){var e=dk(t[0][0],t[1][0]),i=dk(t[0][1],t[1][1]);return{x:e,y:i,width:fk(t[0][0],t[1][0])-e,height:fk(t[0][1],t[1][1])-i}}function cp(t,e,i){if(t._brushType){var n=t._zr,o=t._covers,a=Xf(t,e,i);if(!t._dragging)for(var r=0;r0;a--)Yp(s,l*=.99,r),jp(s,o,i,n,r),tg(s,l,r),jp(s,o,i,n,r)}function Up(t,e){var i=[],n="vertical"===e?"y":"x",o=Zi(t,function(t){return t.getLayout()[n]});return o.keys.sort(function(t,e){return t-e}),d(o.keys,function(t){i.push(o.buckets.get(t))}),i}function Xp(t,e,i,n,o,a,r){var s=[];d(e,function(t){var e=t.length,i=0,l=0;d(t,function(t){i+=t.getLayout().value}),l="vertical"===r?(o-(e-1)*a)/i:(n-(e-1)*a)/i,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];d(e,function(t){d(t,function(t,e){var i=t.getLayout().value*l;"vertical"===r?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))})}),d(i,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})}function jp(t,e,i,n,o){d(t,function(t){var a,r,s,l=0,u=t.length;if("vertical"===o){var h;for(t.sort(function(t,e){return t.getLayout().x-e.getLayout().x}),s=0;s0&&(h=a.getLayout().x+r,a.setLayout({x:h},!0)),l=a.getLayout().x+a.getLayout().dx+e;if((r=l-e-n)>0)for(h=a.getLayout().x-r,a.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)(r=(a=t[s]).getLayout().x+a.getLayout().dx+e-l)>0&&(h=a.getLayout().x-r,a.setLayout({x:h},!0)),l=a.getLayout().x}else{var c;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;s0&&(c=a.getLayout().y+r,a.setLayout({y:c},!0)),l=a.getLayout().y+a.getLayout().dy+e;if((r=l-e-i)>0)for(c=a.getLayout().y-r,a.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)(r=(a=t[s]).getLayout().y+a.getLayout().dy+e-l)>0&&(c=a.getLayout().y-r,a.setLayout({y:c},!0)),l=a.getLayout().y}})}function Yp(t,e,i){d(t.slice().reverse(),function(t){d(t,function(t){if(t.outEdges.length){var n=Qp(t.outEdges,qp,i)/Qp(t.outEdges,Jp,i);if("vertical"===i){var o=t.getLayout().x+(n-$p(t,i))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(n-$p(t,i))*e;t.setLayout({y:a},!0)}}})})}function qp(t,e){return $p(t.node2,e)*t.getValue()}function Kp(t,e){return $p(t.node1,e)*t.getValue()}function $p(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Jp(t){return t.getValue()}function Qp(t,e,i){for(var n=0,o=t.length,a=-1;++a0?"P":"N",a=n.getVisual("borderColor"+o)||n.getVisual("color"+o),r=i.getModel(Gk).getItemStyle(Wk);e.useStyle(r),e.style.fill=null,e.style.stroke=a}function fg(t,e,i,n,o){return i>n?-1:i0?t.get(o,e-1)<=n?1:-1:1}function pg(t,e){var i,n=t.getBaseAxis(),o="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),a=Vo(A(t.get("barMaxWidth"),o),o),r=Vo(A(t.get("barMinWidth"),1),o),s=t.get("barWidth");return null!=s?Vo(s,o):Math.max(Math.min(o/2,a),r)}function gg(t){return y(t)||(t=[+t,+t]),t}function mg(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function vg(t,e){tb.call(this);var i=new wu(t,e),n=new tb;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}function yg(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=f(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),o([e,t[0],t[1]])}))}function xg(t,e,i){tb.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function _g(t,e,i){tb.call(this),this._createPolyline(t,e,i)}function wg(t,e,i){xg.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function bg(){this.group=new tb}function Sg(t){return t instanceof Array||(t=[t,t]),t}function Mg(){var t=iw();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function Ig(t,e,i){var n=t[1]-t[0],o=(e=f(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}})).length,a=0;return function(t){for(n=a;n=0;n--){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){a=n;break}}return n>=0&&n=e[0]&&t<=e[1]}}function Ag(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}function Dg(t,e,i,n){var o=t.getItemLayout(e),a=i.get("symbolRepeat"),r=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=(i.get("symbolRotate")||0)*Math.PI/180||0,u=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),c={dataIndex:e,layout:o,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:r,symbolRepeat:a,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?i:null,hoverAnimation:h&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};Cg(i,a,o,n,c),kg(t,e,o,a,r,c.boundingLength,c.pxSign,u,n,c),Pg(i,c.symbolScale,l,n,c);var d=c.symbolSize,f=i.get("symbolOffset");return y(f)&&(f=[Vo(f[0],d[0]),Vo(f[1],d[1])]),Ng(i,d,o,a,r,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function Cg(t,e,i,n,o){var a,r=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(i[r.wh]<=0);if(y(s)){var c=[Lg(l,s[0])-u,Lg(l,s[1])-u];c[1]0?1:a<0?-1:0}function Lg(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function kg(t,e,i,n,o,a,r,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),f=t.getItemVisual(e,"symbolSize");y(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[c.index]=Vo(f[c.index],d),f[h.index]=Vo(f[h.index],n?d:Math.abs(a)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*r}function Pg(t,e,i,n,o){var a=t.get(cP)||0;a&&(fP.attr({scale:e.slice(),rotation:i}),fP.updateTransform(),a/=fP.getLineScale(),a*=e[n.valueDim.index]),o.valueLineWidth=a}function Ng(t,e,i,n,o,r,s,l,u,h,c,d){var f=c.categoryDim,p=c.valueDim,g=d.pxSign,m=Math.max(e[p.index]+l,0),v=m;if(n){var y=Math.abs(u),x=T(t.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1)),x=Vo(x,e[p.index]);var w=Math.max(m+2*x,0),b=_?0:2*x,S=Qo(n),M=S?n:Kg((y+b)/w);w=m+2*(x=(y-M*m)/2/(_?M:M-1)),b=_?0:2*x,S||"fixed"===n||(M=h?Kg((Math.abs(h)+b)/w):0),v=M*w-b,d.repeatTimes=M,d.symbolMargin=x}var I=g*(v/2),A=d.pathPosition=[];A[f.index]=i[f.wh]/2,A[p.index]="start"===s?I:"end"===s?u-I:u/2,r&&(A[0]+=r[0],A[1]+=r[1]);var D=d.bundlePosition=[];D[f.index]=i[f.xy],D[p.index]=i[p.xy];var C=d.barRectShape=a({},i);C[p.wh]=g*Math.max(Math.abs(i[p.wh]),Math.abs(A[p.index]+I)),C[f.wh]=i[f.wh];var L=d.clipShape={};L[f.xy]=-i[f.xy],L[f.wh]=c.ecSize[f.wh],L[p.xy]=0,L[p.wh]=i[p.wh]}function Og(t){var e=t.symbolPatternSize,i=Jl(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function Eg(t,e,i,n){function o(t){var e=l.slice(),n=i.pxSign,o=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(o=h-1-t),e[u.index]=d*(o-h/2+.5)+l[u.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}var a=t.__pictorialBundle,r=i.symbolSize,s=i.valueLineWidth,l=i.pathPosition,u=e.valueDim,h=i.repeatTimes||0,c=0,d=r[e.valueDim.index]+s+2*i.symbolMargin;for(jg(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,c0)],d=t.__pictorialBarRect;kh(d.style,h,a,n,e.seriesModel,o,c),fo(d,h)}function Kg(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function $g(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function Jg(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,o={},a=n.position,r=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===r?u.vertical[a]:l[0],"horizontal"===r?u.horizontal[a]:l[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[r];var c={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=c[a],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),T(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var d=e.rotate;return null==d&&(d=t.get("axisLabel.rotate")),o.labelRotation="top"===a?-d:d,o.z2=1,o}function Qg(t,e,i,n,o){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e))if(t.involveSeries){var s=tm(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==o.seriesIndex&&a(o,l[0]),!n&&t.snap&&r.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,o),i.showTooltip(t,s,u)}else i.showPointer(t,e)}function tm(t,e){var i=e.axis,n=i.dim,o=t,a=[],r=Number.MAX_VALUE,s=-1;return _P(e.seriesModels,function(e,l){var u,h,c=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,i);h=d.dataIndices,u=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===i.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=r&&((p=0&&s<0)&&(r=p,s=f,o=u,a.length=0),_P(h,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:o}}function em(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function im(t,e,i,n){var o=i.payloadBatch,a=e.axis,r=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,u=Ah(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:a.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:o.slice()})}}function nm(t,e,i){var n=i.axesInfo=[];_P(e,function(e,i){var o=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(o.status="show"),o.value=a.value,o.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})})}function om(t,e,i,n){if(!lm(e)&&t.list.length){var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function am(t,e,i){var n=i.getZr(),o=bP(n).axisPointerLastHighlights||{},a=bP(n).axisPointerLastHighlights={};_P(t,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&_P(i.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var r=[],s=[];d(o,function(t,e){!a[e]&&s.push(t)}),d(a,function(t,e){!o[e]&&r.push(t)}),s.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),r.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:r})}function rm(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function sm(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function lm(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function um(t,e,i){if(!U_.node){var n=e.getZr();SP(n).records||(SP(n).records={}),hm(n,e),(SP(n).records[t]||(SP(n).records[t]={})).handler=i}}function hm(t,e){function i(i,n){t.on(i,function(i){var o=pm(e);MP(SP(t).records,function(t){t&&n(t,i,o.dispatchAction)}),cm(o.pendings,e)})}SP(t).initialized||(SP(t).initialized=!0,i("click",v(fm,"click")),i("mousemove",v(fm,"mousemove")),i("globalout",dm))}function cm(t,e){var i,n=t.showTip.length,o=t.hideTip.length;n?i=t.showTip[n-1]:o&&(i=t.hideTip[o-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function dm(t,e,i){t.handler("leave",null,i)}function fm(t,e,i,n){e.handler(t,i,n)}function pm(t){var e={showTip:[],hideTip:[]},i=function(n){var o=e[n.type];o?o.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function gm(t,e){if(!U_.node){var i=e.getZr();(SP(i).records||{})[t]&&(SP(i).records[t]=null)}}function mm(){}function vm(t,e,i,n){ym(TP(i).lastProp,n)||(TP(i).lastProp=n,e?Io(i,n,t):(i.stopAnimation(),i.attr(n)))}function ym(t,e){if(w(t)&&w(e)){var i=!0;return d(e,function(e,n){i=i&&ym(t[n],e)}),!!i}return t===e}function xm(t,e){t[e.get("label.show")?"show":"hide"]()}function _m(t){return{position:t.position.slice(),rotation:t.rotation||0}}function wm(t,e,i){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=o&&(t.zlevel=o),t.silent=i)})}function bm(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e}function Sm(t,e,i,n,o){var a=Im(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),r=i.getModel("label"),s=qM(r.get("padding")||0),l=r.getFont(),u=ke(a,l),h=o.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=o.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var p=o.verticalAlign;"bottom"===p&&(h[1]-=d),"middle"===p&&(h[1]-=d/2),Mm(h,c,d,n);var g=r.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:r.get("borderRadius")},position:h.slice(),style:{text:a,textFont:l,textFill:r.getTextColor(),textPosition:"inside",fill:g,stroke:r.get("borderColor")||"transparent",lineWidth:r.get("borderWidth")||0,shadowBlur:r.get("shadowBlur"),shadowColor:r.get("shadowColor"),shadowOffsetX:r.get("shadowOffsetX"),shadowOffsetY:r.get("shadowOffsetY")},z2:10}}function Mm(t,e,i,n){var o=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+i,a)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Im(t,e,i,n,o){t=e.scale.parse(t);var a=e.scale.getLabel(t,{precision:o.precision}),r=o.formatter;if(r){var s={value:Xl(e,t),seriesData:[]};d(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,o=e&&e.getDataParams(n);o&&s.seriesData.push(o)}),_(r)?a=r.replace("{value}",a):x(r)&&(a=r(s))}return a}function Tm(t,e,i){var n=xt();return Mt(n,n,i.rotation),St(n,n,i.position),Do([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Am(t,e,i,n,o,a){var r=FD.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=o.get("label.margin"),Sm(e,n,o,a,{position:Tm(n.axis,t,i),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function Dm(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function Cm(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function Lm(t,e,i,n,o,a){return{cx:t,cy:e,r0:i,r:n,startAngle:o,endAngle:a,clockwise:!0}}function km(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Pm(t){return"x"===t.dim?0:1}function Nm(t){return t.isHorizontal()?0:1}function Om(t,e){var i=t.getRect();return[i[kP[e]],i[kP[e]]+i[PP[e]]]}function Em(t,e,i){var n=new yM({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return To(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function Rm(t,e,i){if(t.count())for(var n,o=e.coordinateSystem,a=e.getLayerSeries(),r=t.mapDimension("single"),s=t.mapDimension("value"),l=f(a,function(e){return f(e.indices,function(e){var i=o.dataToPoint(t.get(r,e));return i[1]=t.get(s,e),i})}),u=zm(l),h=u.y0,c=i/u.max,d=a.length,p=a[0].indices.length,g=0;ga&&(a=u),n.push(u)}for(var h=0;ha&&(a=d)}return r.y0=o,r.max=a,r}function Bm(t){var e=0;d(t.children,function(t){Bm(t);var i=t.value;y(i)&&(i=i[0]),e+=i});var i=t.value;y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),y(t.value)?t.value[0]=i:t.value=i}function Vm(t,e,i){function n(){r.ignore=r.hoverIgnore}function o(){r.ignore=r.normalIgnore}tb.call(this);var a=new hM({z2:zP});a.seriesIndex=e.seriesIndex;var r=new rM({z2:BP,silent:t.getModel("label").get("silent")});this.add(a),this.add(r),this.updateData(!0,t,"normal",e,i),this.on("emphasis",n).on("normal",o).on("mouseover",n).on("mouseout",o)}function Gm(t,e,i){var n=t.getVisual("color"),o=t.getVisual("visualMeta");o&&0!==o.length||(n=null);var a=t.getModel("itemStyle").get("color");if(a)return a;if(n)return n;if(0===t.depth)return i.option.color[0];var r=i.option.color.length;return a=i.option.color[Fm(t)%r]}function Fm(t){for(var e=t;e.depth>1;)e=e.parentNode;return l(t.getAncestors()[0].children,e)}function Wm(t,e,i){return i!==RP.NONE&&(i===RP.SELF?t===e:i===RP.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function Hm(t,e,i){e.getData().setItemVisual(t.dataIndex,"color",i)}function Zm(t,e){var i=t.children||[];t.children=Um(i,e),i.length&&d(t.children,function(t){Zm(t,e)})}function Um(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function Xm(t,e){return e=e||[0,0],f(["x","y"],function(i,n){var o=this.getAxis(i),a=e[n],r=t[n]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-r)-o.dataToCoord(a+r))},this)}function jm(t,e){return e=e||[0,0],f([0,1],function(i){var n=e[i],o=t[i]/2,a=[],r=[];return a[i]=n-o,r[i]=n+o,a[1-i]=r[1-i]=e[1-i],Math.abs(this.dataToPoint(a)[i]-this.dataToPoint(r)[i])},this)}function Ym(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))}function qm(t,e){return f(["Radius","Angle"],function(i,n){var o=this["get"+i+"Axis"](),a=e[n],r=t[n]/2,s="dataTo"+i,l="category"===o.type?o.getBandWidth():Math.abs(o[s](a-r)-o[s](a+r));return"Angle"===i&&(l=l*Math.PI/180),l},this)}function Km(t){var e,i=t.type;if("path"===i){var n=t.shape,o=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=lv(n);(e=Xn(a,null,o,n.layout||"center")).__customPathData=a}else"image"===i?(e=new fi({})).__customImagePath=t.style.image:"text"===i?(e=new rM({})).__customText=t.style.text:e=new(0,zM[i.charAt(0).toUpperCase()+i.slice(1)]);return e.__customGraphicType=i,e.name=t.name,e}function $m(t,e,n,o,a,r,s){var l={},u=n.style||{};if(n.shape&&(l.shape=i(n.shape)),n.position&&(l.position=n.position.slice()),n.scale&&(l.scale=n.scale.slice()),n.origin&&(l.origin=n.origin.slice()),n.rotation&&(l.rotation=n.rotation),"image"===t.type&&n.style){h=l.style={};d(["x","y","width","height"],function(e){Jm(e,h,u,t.style,r)})}if("text"===t.type&&n.style){var h=l.style={};d(["x","y"],function(e){Jm(e,h,u,t.style,r)}),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==t.type&&(t.useStyle(u),r)){t.style.opacity=0;var c=u.opacity;null==c&&(c=1),To(t,{style:{opacity:c}},o,e)}r?t.attr(l):Io(t,l,o,e),n.hasOwnProperty("z2")&&t.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&t.attr("silent",n.silent),n.hasOwnProperty("invisible")&&t.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&t.attr("ignore",n.ignore),n.hasOwnProperty("info")&&t.attr("info",n.info);var f=n.styleEmphasis,p=!1===f;t.__cusHasEmphStl&&null==f||!t.__cusHasEmphStl&&p||(ro(t,f),t.__cusHasEmphStl=!p),s&&po(t,!p)}function Jm(t,e,i,n,o){null==i[t]||o||(e[t]=i[t],i[t]=n[t])}function Qm(t,e,i,n){function o(t){null==t&&(t=h),v&&(c=e.getItemModel(t),d=c.getModel(UP),f=c.getModel(XP),p=e.getItemVisual(t,"color"),v=!1)}var s=t.get("renderItem"),l=t.coordinateSystem,u={};l&&(u=l.prepareCustoms?l.prepareCustoms():YP[l.type](l));var h,c,d,f,p,g=r({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(t,i){return null==i&&(i=h),e.get(e.getDimension(t||0),i)},style:function(i,n){null==n&&(n=h),o(n);var r=c.getModel(HP).getItemStyle();null!=p&&(r.fill=p);var s=e.getItemVisual(n,"opacity");return null!=s&&(r.opacity=s),mo(r,d,null,{autoColor:p,isRectText:!0}),r.text=d.getShallow("show")?A(t.getFormattedLabel(n,"normal"),_u(e,n)):null,i&&a(r,i),r},styleEmphasis:function(i,n){null==n&&(n=h),o(n);var r=c.getModel(ZP).getItemStyle();return mo(r,f,null,{isRectText:!0},!0),r.text=f.getShallow("show")?D(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),_u(e,n)):null,i&&a(r,i),r},visual:function(t,i){return null==i&&(i=h),e.getItemVisual(i,t)},barLayout:function(t){if(l.getBaseAxis)return Ll(r({axis:l.getBaseAxis()},t),n)},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(t){return So(t,i)}},u.api||{}),m={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:u.coordSys,dataInsideLength:e.count(),encode:tv(t.getData())},v=!0;return function(t,i){return h=t,v=!0,s&&s(r({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},m),g)}}function tv(t){var e={};return d(t.dimensions,function(i,n){var o=t.getDimensionInfo(i);if(!o.isExtraCoord){var a=o.coordDim;(e[a]=e[a]||[])[o.coordDimIndex]=n}}),e}function ev(t,e,i,n,o,a){return(t=iv(t,e,i,n,o,a,!0))&&a.setItemGraphicEl(e,t),t}function iv(t,e,i,n,o,a,r){var s=!i,l=(i=i||{}).type,u=i.shape,h=i.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&uv(u)&&lv(u)!==t.__customPathData||"image"===l&&hv(h,"image")&&h.image!==t.__customImagePath||"text"===l&&hv(u,"text")&&h.text!==t.__customText)&&(o.remove(t),t=null),!s){var c=!t;return!t&&(t=Km(i)),$m(t,e,i,n,a,c,r),"group"===l&&nv(t,e,i,n,a),o.add(t),t}}function nv(t,e,i,n,o){var a=i.children,r=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(r||l||u)if(l)ov({oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,animatableModel:n,group:t,data:o});else{u&&t.removeAll();for(var h=0;hn?t-=l+a:t+=a),null!=r&&(e+u+r>o?e-=u+r:e+=r),[t,e]}function Ov(t,e,i,n,o){var a=i.getOuterSize(),r=a.width,s=a.height;return t=Math.min(t+r,n)-r,e=Math.min(e+s,o)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Ev(t,e,i){var n=i[0],o=i[1],a=0,r=0,s=e.width,l=e.height;switch(t){case"inside":a=e.x+s/2-n/2,r=e.y+l/2-o/2;break;case"top":a=e.x+s/2-n/2,r=e.y-o-5;break;case"bottom":a=e.x+s/2-n/2,r=e.y+l+5;break;case"left":a=e.x-n-5,r=e.y+l/2-o/2;break;case"right":a=e.x+s+5,r=e.y+l/2-o/2}return[a,r]}function Rv(t){return"center"===t||"middle"===t}function zv(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Bv(t){return t.dim}function Vv(t,e){var i={};d(t,function(t,e){var n=t.getData(),o=t.coordinateSystem.getBaseAxis(),a=o.getExtent(),r="category"===o.type?o.getBandWidth():Math.abs(a[1]-a[0])/n.count(),s=i[Bv(o)]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[Bv(o)]=s;var u=zv(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=Vo(t.get("barWidth"),r),c=Vo(t.get("barMaxWidth"),r),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var n={};return d(i,function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,a=Vo(t.categoryGap,o),r=Vo(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-a)/(l+(l-1)*r);u=Math.max(u,0),d(i,function(t,e){var i=t.maxWidth;i&&ie[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),o=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:o[0],y2:o[1]}}function jv(t){return t.getRadiusAxis().inverse?0:1}function Yv(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function qv(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function Kv(t,e,i,n,o){var a=e.axis,r=a.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=n.getRadiusAxis().getExtent();if("radius"===a.dim){var d=xt();Mt(d,d,s),St(d,d,[n.cx,n.cy]),l=Do([r,-o],d);var f=e.getModel("axisLabel").get("rotate")||0,p=FD.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,h=p.textVerticalAlign}else{var g=c[1];l=n.coordToPoint([g+o,r]);var m=n.cx,v=n.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}function $v(t,e){e.update="updateView",Es(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name),d(i.coordinateSystem.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function Jv(t){var e={};d(t,function(t){e[t]=1}),t.length=0,d(e,function(e,i){t.push(i)})}function Qv(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function ty(t,e,n){function o(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}var a={};return MN(e,function(e){var r=a[e]=o();MN(t[e],function(t,o){if(hL.isValidType(o)){var a={type:o,visual:t};n&&n(a,e),r[o]=new hL(a),"opacity"===o&&((a=i(a)).type="colorAlpha",r.__hidden.__alphaForOpacity=new hL(a))}})}),a}function ey(t,e,n){var o;d(n,function(t){e.hasOwnProperty(t)&&Qv(e[t])&&(o=!0)}),o&&d(n,function(n){e.hasOwnProperty(n)&&Qv(e[n])?t[n]=i(e[n]):delete t[n]})}function iy(t,e,i,n,o,a){function r(t){return i.getItemVisual(h,t)}function s(t,e){i.setItemVisual(h,t,e)}function l(t,l){h=null==a?t:l;var c=i.getRawDataItem(h);if(!c||!1!==c.visualMap)for(var d=n.call(o,t),f=e[d],p=u[d],g=0,m=p.length;g1)return!1;var h=uy(i-t,o-t,n-e,a-e)/l;return!(h<0||h>1)}function ly(t){return t<=1e-6&&t>=-1e-6}function uy(t,e,i,n){return t*n-e*i}function hy(t,e,i){var n=this._targetInfoList=[],o={},a=dy(e,t);TN(PN,function(t,e){(!i||!i.include||AN(i.include,e)>=0)&&t(a,n,o)})}function cy(t){return t[0]>t[1]&&t.reverse(),t}function dy(t,e){return Vi(t,e,{includeMainTypes:LN})}function fy(t,e,i,n){var o=i.getAxis(["x","y"][t]),a=cy(f([0,1],function(t){return e?o.coordToData(o.toLocalCoord(n[t])):o.toGlobalCoord(o.dataToCoord(n[t]))})),r=[];return r[t]=a,r[1-t]=[NaN,NaN],{values:a,xyMinMax:r}}function py(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function gy(t,e){var i=my(t),n=my(e),o=[i[0]/n[0],i[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function my(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}function vy(t,e,i,n,o){if(o){var a=t.getZr();a[VN]||(a[BN]||(a[BN]=yy),Nr(a,BN,i,e)(t,n))}}function yy(t,e){if(!t.isDisposed()){var i=t.getZr();i[VN]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[VN]=!1}}function xy(t,e,i,n){for(var o=0,a=e.length;o=0}function Ny(t,e,i){function n(t,e){return l(e.nodes,t)>=0}function o(t,n){var o=!1;return e(function(e){d(i(t,e)||[],function(t){n.records[e.name][t]&&(o=!0)})}),o}function a(t,n){n.nodes.push(t),e(function(e){d(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){var r={nodes:[],records:{}};if(e(function(t){r.records[t.name]={}}),!i)return r;a(i,r);var s;do{s=!1,t(function(t){!n(t,r)&&o(t,r)&&(a(t,r),s=!0)})}while(s);return r}}function Oy(t,e,i){var n=[1/0,-1/0];return $N(i,function(t){var i=t.getData();i&&$N(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:NaN);var r=i.getMax(!0);return null!=r&&"dataMax"!==r&&"function"!=typeof r?e[1]=r:o&&(e[1]=a>0?a-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function Ry(t,e){var i=t.getAxisModel(),n=t._percentWindow,o=t._valueWindow;if(n){var a=Zo(o,[0,500]);a=Math.min(a,20);var r=e||0===n[0]&&100===n[1];i.setRange(r?null:+o[0].toFixed(a),r?null:+o[1].toFixed(a))}}function zy(t){var e=t._minMaxSpan={},i=t._dataZoomModel;$N(["min","max"],function(n){e[n+"Span"]=i.get(n+"Span");var o=i.get(n+"ValueSpan");if(null!=o&&(e[n+"ValueSpan"]=o,null!=(o=t.getAxisModel().axis.scale.parse(o)))){var a=t._dataExtent;e[n+"Span"]=Bo(a[0]+o,a,[0,100],!0)}})}function By(t){var e={};return tO(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function Vy(t,e){var i=t._rangePropMode,n=t.get("rangeMode");tO([["start","startValue"],["end","endValue"]],function(t,o){var a=null!=e[t[0]],r=null!=e[t[1]];a&&!r?i[o]="percent":!a&&r?i[o]="value":n?i[o]=n[o]:a&&(i[o]="percent")})}function Gy(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}function Fy(t){return"vertical"===t?"ns-resize":"ew-resize"}function Wy(t,e){var i=Uy(t),n=e.dataZoomId,o=e.coordId;d(i,function(t,i){var a=t.dataZoomInfos;a[n]&&l(e.allCoordIds,o)<0&&(delete a[n],t.count--)}),jy(i);var a=i[o];a||((a=i[o]={coordId:o,dataZoomInfos:{},count:0}).controller=Xy(t,a),a.dispatchAction=v(Yy,t)),!a.dataZoomInfos[n]&&a.count++,a.dataZoomInfos[n]=e;var r=qy(a.dataZoomInfos);a.controller.enable(r.controlType,r.opt),a.controller.setPointerChecker(e.containsPoint),Nr(a,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function Hy(t,e){var i=Uy(t);d(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),jy(i)}function Zy(t){return t.type+"\0_"+t.id}function Uy(t){var e=t.getZr();return e[fO]||(e[fO]={})}function Xy(t,e){var i=new oc(t.getZr());return d(["pan","zoom","scrollMove"],function(t){i.on(t,function(i){var n=[];d(e.dataZoomInfos,function(o){if(i.isAvailableBehavior(o.dataZoomModel.option)){var a=(o.getRange||{})[t],r=a&&a(e.controller,i);!o.dataZoomModel.get("disabled",!0)&&r&&n.push({dataZoomId:o.dataZoomId,start:r[0],end:r[1]})}}),n.length&&e.dispatchAction(n)})}),i}function jy(t){d(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function Yy(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function qy(t){var e,i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return d(t,function(t){var o=t.dataZoomModel,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i["type_"+a]>i["type_"+e]&&(e=a),n&=o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Ky(t){return function(e,i,n,o){var a=this._range,r=a.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,i,n,o);return QL(l,r,[0,100],"all"),this._range=r,a[0]!==r[0]||a[1]!==r[1]?r:void 0}}}function $y(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function Jy(t,e,i,n){for(var o=e.targetVisuals[n],a=hL.prepareVisualTypes(o),r={color:t.getData().getVisual("color")},s=0,l=a.length;s=0&&(r[a]=+r[a].toFixed(h)),r}function fx(t,e){var n=t.getData(),o=t.coordinateSystem;if(e&&!cx(e)&&!y(e.coord)&&o){var a=o.dimensions,r=px(e,n,o,t);if((e=i(e)).type&&YO[e.type]&&r.baseAxis&&r.valueAxis){var s=XO(a,r.baseAxis.dim),l=XO(a,r.valueAxis.dim);e.coord=YO[e.type](n,r.baseDataDim,r.valueDataDim,s,l),e.value=e.coord[l]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)YO[u[h]]&&(u[h]=yx(n,n.mapDimension(a[h]),u[h]));e.coord=u}}return e}function px(t,e,i,n){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=i.getAxis(gx(n,o.valueDataDim)),o.baseAxis=i.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=i.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function gx(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var o=0;o=0)return!0}function Yx(t){for(var e=t.split(/\n+/g),i=[],n=f(Xx(e.shift()).split(pE),function(t){return{name:t,data:[]}}),o=0;o=0&&!i[o][n];o--);if(o<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(a){var r=a.getPercentRange();i[0][n]={dataZoomId:n,start:r[0],end:r[1]}}}}),i.push(e)}function t_(t){var e=n_(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return gE(i,function(t,i){for(var o=e.length-1;o>=0;o--)if(t=e[o][i]){n[i]=t;break}}),n}function e_(t){t[mE]=null}function i_(t){return n_(t).length}function n_(t){var e=t[mE];return e||(e=t[mE]=[{}]),e}function o_(t,e,i){(this._brushController=new zf(i.getZr())).on("brush",m(this._onBrush,this)).mount(),this._isZoomActive}function a_(t){var e={};return d(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])}),e}function r_(t,e){t.setIconStatus("back",i_(e)>1?"emphasis":"normal")}function s_(t,e,i,n,o){var a=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(a="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var r=new hy(a_(t.option),e,{include:["grid"]});i._brushController.setPanels(r.makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!a&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}function l_(t){this.model=t}function u_(t){return SE(t)}function h_(){if(!TE&&AE){TE=!0;var t=AE.styleSheets;t.length<31?AE.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}function c_(t){return parseInt(t,10)}function d_(t,e){h_(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var o=e.delFromStorage,a=e.addToStorage;e.delFromStorage=function(t){o.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),a.call(e,t)},this._firstPaint=!0}function f_(t){return function(){Yw('In IE8.0 VML mode painter not support method "'+t+'"')}}function p_(t){return document.createElementNS(sR,t)}function g_(t){return cR(1e4*t)/1e4}function m_(t){return t-vR}function v_(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==hR}function y_(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==hR}function x_(t,e){e&&__(t,"transform","matrix("+uR.call(e,",")+")")}function __(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function w_(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function b_(t,e,i,n){if(v_(e,i)){var o=i?e.textFill:e.fill;o="transparent"===o?hR:o,"none"!==t.getAttribute("clip-path")&&o===hR&&(o="rgba(0, 0, 0, 0.002)"),__(t,"fill",o),__(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else __(t,"fill",hR);if(y_(e,i)){var a=i?e.textStroke:e.stroke;__(t,"stroke",a="transparent"===a?hR:a),__(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?n.getLineScale():1)),__(t,"paint-order",i?"stroke":"fill"),__(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(__(t,"stroke-dasharray",e.lineDash.join(",")),__(t,"stroke-dashoffset",cR(e.lineDashOffset||0))):__(t,"stroke-dasharray",""),e.lineCap&&__(t,"stroke-linecap",e.lineCap),e.lineJoin&&__(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&__(t,"stroke-miterlimit",e.miterLimit)}else __(t,"stroke",hR)}function S_(t){for(var e=[],i=t.data,n=t.len(),o=0;o=gR||!m_(g)&&(d>-pR&&d<0||d>pR)==!!p;var y=g_(s+u*fR(c)),x=g_(l+h*dR(c));m&&(d=p?gR-1e-4:1e-4-gR,v=!0,9===o&&e.push("M",y,x));var _=g_(s+u*fR(c+d)),w=g_(l+h*dR(c+d));e.push("A",g_(u),g_(h),cR(f*mR),+v,+p,_,w);break;case lR.Z:a="Z";break;case lR.R:var _=g_(i[o++]),w=g_(i[o++]),b=g_(i[o++]),S=g_(i[o++]);e.push("M",_,w,"L",_+b,w,"L",_+b,w+S,"L",_,w+S,"L",_,w)}a&&e.push(a);for(var M=0;M=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent),X_={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},j_={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},Y_=Object.prototype.toString,q_=Array.prototype,K_=q_.forEach,$_=q_.filter,J_=q_.slice,Q_=q_.map,tw=q_.reduce,ew={},iw=function(){return ew.createCanvas()};ew.createCanvas=function(){return document.createElement("canvas")};var nw,ow="__ec_primitive__";E.prototype={constructor:E,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){void 0!==e&&(t=m(t,e));for(var i in this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}};var aw=(Object.freeze||Object)({$override:e,clone:i,merge:n,mergeAll:o,extend:a,defaults:r,createCanvas:iw,getContext:s,indexOf:l,inherits:u,mixin:h,isArrayLike:c,each:d,map:f,reduce:p,filter:g,find:function(t,e,i){if(t&&e)for(var n=0,o=t.length;n3&&(n=dw.call(n,1));for(var a=e.length,r=0;r4&&(n=dw.call(n,1,n.length-1));for(var a=n[n.length-1],r=e.length,s=0;s1&&n&&n.length>1){var a=ft(n)/ft(o);!isFinite(a)&&(a=1),e.pinchScale=a;var r=pt(n);return e.pinchX=r[0],e.pinchY=r[1],{type:"pinch",target:t[0].target,event:e}}}}},xw="silent";vt.prototype.dispose=function(){};var _w=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ww=function(t,e,i,n){fw.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new vt,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,it.call(this),this.setHandlerProxy(i)};ww.prototype={constructor:ww,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(d(_w,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,o=n.target;o&&!o.__zr&&(o=(n=this.findHover(n.x,n.y)).target);var a=this._hovered=this.findHover(e,i),r=a.target,s=this.proxy;s.setCursor&&s.setCursor(r?r.cursor:"default"),o&&r!==o&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(a,"mousemove",t),r&&r!==o&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do{i=i&&i.parentNode}while(i&&9!==i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var o="on"+e,a=gt(e,t,i);n&&(n[o]&&(a.cancelBubble=n[o].call(n,a)),n.trigger(e,a),n=n.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),o={x:t,y:e},a=n.length-1;a>=0;a--){var r;if(n[a]!==i&&!n[a].ignore&&(r=yt(n[a],t,e))&&(!o.topTarget&&(o.topTarget=n[a]),r!==xw)){o.target=n[a];break}}return o},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new vw);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var o=n.type;t.gestureEvent=o,this.dispatchToElement({target:n.target},o,n.event)}}},d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){ww.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||uw(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),h(ww,fw),h(ww,it);var bw="undefined"==typeof Float32Array?Array:Float32Array,Sw=(Object.freeze||Object)({create:xt,identity:_t,copy:wt,mul:bt,translate:St,rotate:Mt,scale:It,invert:Tt,clone:At}),Mw=_t,Iw=5e-5,Tw=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Aw=Tw.prototype;Aw.transform=null,Aw.needLocalTransform=function(){return Dt(this.rotation)||Dt(this.position[0])||Dt(this.position[1])||Dt(this.scale[0]-1)||Dt(this.scale[1]-1)};var Dw=[];Aw.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(i||e){n=n||xt(),i?this.getLocalTransform(n):Mw(n),e&&(i?bt(n,t.transform,n):wt(n,t.transform)),this.transform=n;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(Dw);var a=Dw[0]<0?-1:1,r=Dw[1]<0?-1:1,s=((Dw[0]-a)*o+a)/Dw[0]||0,l=((Dw[1]-r)*o+r)/Dw[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||xt(),Tt(this.invTransform,n)}else n&&Mw(n)},Aw.getLocalTransform=function(t){return Tw.getLocalTransform(this,t)},Aw.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},Aw.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Cw=[],Lw=xt();Aw.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,o=this.scale;Dt(e-1)&&(e=Math.sqrt(e)),Dt(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],o[0]=e,o[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},Aw.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(bt(Cw,t.invTransform,e),e=Cw);var i=this.origin;i&&(i[0]||i[1])&&(Lw[4]=i[0],Lw[5]=i[1],bt(Cw,e,Lw),Cw[4]-=i[0],Cw[5]-=i[1],e=Cw),this.setLocalTransform(e)}},Aw.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},Aw.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Q(i,i,n),i},Aw.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Q(i,i,n),i},Tw.getLocalTransform=function(t,e){Mw(e=e||[]);var i=t.origin,n=t.scale||[1,1],o=t.rotation||0,a=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),It(e,e,n),o&&Mt(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=a[0],e[5]+=a[1],e};var kw={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*(2-Math.pow(2,-10*(t-1)))},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,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-kw.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*kw.bounceIn(2*t):.5*kw.bounceOut(2*t-1)+.5}};Ct.prototype={constructor:Ct,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,o="string"==typeof n?kw[n]:n,a="function"==typeof o?o(i):i;return this.fire("frame",a),1===i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Pw=function(){this.head=null,this.tail=null,this._len=0},Nw=Pw.prototype;Nw.insert=function(t){var e=new Ow(t);return this.insertEntry(e),e},Nw.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++},Nw.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Nw.len=function(){return this._len},Nw.clear=function(){this.head=this.tail=null,this._len=0};var Ow=function(t){this.value=t,this.next,this.prev},Ew=function(t){this._list=new Pw,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Rw=Ew.prototype;Rw.put=function(t,e){var i=this._list,n=this._map,o=null;if(null==n[t]){var a=i.len(),r=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=i.head;i.remove(s),delete n[s.key],o=s.value,this._lastRemovedEntry=s}r?r.value=e:r=new Ow(e),r.key=t,i.insertEntry(r),n[t]=r}return o},Rw.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Rw.clear=function(){this._list.clear(),this._map={}};var zw={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]},Bw=new Ew(20),Vw=null,Gw=Ut,Fw=Xt,Ww=(Object.freeze||Object)({parse:Gt,lift:Ht,toHex:Zt,fastLerp:Ut,fastMapToColor:Gw,lerp:Xt,mapToColor:Fw,modifyHSL:jt,modifyAlpha:Yt,stringify:qt}),Hw=Array.prototype.slice,Zw=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||Kt,this._setter=n||$t,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Zw.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var o=this._getter(this._target,n);if(null==o)continue;0!==t&&i[n].push({time:0,value:ae(o)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new de(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},de.create=function(t){return new de(t.x,t.y,t.width,t.height)};var tb=function(t){t=t||{},Kw.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};tb.prototype={constructor:tb,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof tb&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,o=l(n,t);return o<0?this:(n.splice(o,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof tb&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof tb&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:we};var ob={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},ab=function(t,e,i){return ob.hasOwnProperty(e)?i*=t.dpr:i},rb={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},sb=9,lb=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],ub=function(t){this.extendFrom(t,!1)};ub.prototype={constructor:ub,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){var n=this,o=i&&i.style,a=!o||t.__attrCachedBy!==rb.STYLE_BIND;t.__attrCachedBy=rb.STYLE_BIND;for(var r=0;r0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?Se:be)(t,e,i),o=e.colorStops,a=0;a=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i15)break}s.__drawIndex=m,s.__drawIndex0&&t>n[0]){for(r=0;rt);r++);a=i[n[r]]}if(n.splice(r+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else Yw("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,o=this._zlevelList;for(n=0;n0?.01:0),this._needsManuallyCompositing),a.__builtin__||Yw("ZLevel "+s+" has been used by unkown layer "+a.id),a!==i&&(a.__used=!0,a.__startIndex!==o&&(a.__dirty=!0),a.__startIndex=o,a.incremental?a.__drawIndex=-1:a.__drawIndex=o,e(o),i=a),r.__dirty&&(a.__dirty=!0,a.incremental&&a.__drawIndex<0&&(a.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?n(i[t],e,!0):i[t]=e;for(var o=0;o=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i=0||n&&l(n,r)<0)){var s=e.getShallow(r);null!=s&&(o[t[a][0]]=s)}}return o}},tS=Qb([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),eS={getLineStyle:function(t){var e=tS(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},iS=Qb([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),nS={getAreaStyle:function(t,e){return iS(this,t,e)}},oS=Math.pow,aS=Math.sqrt,rS=1e-8,sS=1e-4,lS=aS(3),uS=1/3,hS=V(),cS=V(),dS=V(),fS=Math.min,pS=Math.max,gS=Math.sin,mS=Math.cos,vS=2*Math.PI,yS=V(),xS=V(),_S=V(),wS=[],bS=[],SS={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},MS=[],IS=[],TS=[],AS=[],DS=Math.min,CS=Math.max,LS=Math.cos,kS=Math.sin,PS=Math.sqrt,NS=Math.abs,OS="undefined"!=typeof Float32Array,ES=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};ES.prototype={constructor:ES,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=NS(1/Xw/t)||0,this._uy=NS(1/Xw/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(SS.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=NS(t-this._xi)>this._ux||NS(e-this._yi)>this._uy||this._len<5;return this.addData(SS.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,o,a){return this.addData(SS.C,t,e,i,n,o,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,o,a):this._ctx.bezierCurveTo(t,e,i,n,o,a)),this._xi=o,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(SS.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,o,a){return this.addData(SS.A,t,e,i,i,n,o-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,o,a),this._xi=LS(o)*i+t,this._yi=kS(o)*i+e,this},arcTo:function(t,e,i,n,o){return this._ctx&&this._ctx.arcTo(t,e,i,n,o),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(SS.R,t,e,i,n),this},closePath:function(){this.addData(SS.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ie.length&&(this._expandData(),e=this.data);for(var i=0;i0&&f<=t||h<0&&f>=t||0===h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(i=r[n=this._dashIdx]),p+=c*i,this._dashIdx=(n+1)%g,h>0&&fl||c>0&&pu||s[n%2?"moveTo":"lineTo"](h>=0?DS(f,t):CS(f,t),c>=0?DS(p,e):CS(p,e));h=f-t,c=p-e,this._dashOffset=-PS(h*h+c*c)},_dashedBezierTo:function(t,e,i,n,o,a){var r,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=tn,y=0,x=this._dashIdx,_=f.length,w=0;for(d<0&&(d=c+d),d%=c,r=0;r<1;r+=.1)s=v(g,t,i,o,r+.1)-v(g,t,i,o,r),l=v(m,e,n,a,r+.1)-v(m,e,n,a,r),y+=PS(s*s+l*l);for(;x<_&&!((w+=f[x])>d);x++);for(r=(w-d)/y;r<=1;)u=v(g,t,i,o,r),h=v(m,e,n,a,r),x%2?p.moveTo(u,h):p.lineTo(u,h),r+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(o,a),s=o-u,l=a-h,this._dashOffset=-PS(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var o=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,o,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,OS&&(this.data=new Float32Array(t)))},getBoundingRect:function(){MS[0]=MS[1]=TS[0]=TS[1]=Number.MAX_VALUE,IS[0]=IS[1]=AS[0]=AS[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,o=0,a=0;al||NS(r-o)>u||c===h-1)&&(t.lineTo(a,r),n=a,o=r);break;case SS.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],o=s[c-1];break;case SS.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],o=s[c-1];break;case SS.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],w=g>m?g:m,b=g>m?1:g/m,S=g>m?m/g:1,M=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(b,S),t.arc(0,0,w,v,M,1-_),t.scale(1/b,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,w,v,M,1-_),1===c&&(e=LS(v)*g+f,i=kS(v)*m+p),n=LS(M)*g+f,o=kS(M)*m+p;break;case SS.R:e=n=s[c],i=o=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case SS.Z:t.closePath(),n=e,o=i}}}},ES.CMD=SS;var RS=2*Math.PI,zS=2*Math.PI,BS=ES.CMD,VS=2*Math.PI,GS=1e-4,FS=[-1,-1,-1],WS=[-1,-1],HS=fb.prototype.getCanvasPattern,ZS=Math.abs,US=new ES(!0);Pn.prototype={constructor:Pn,type:"path",__dirtyPath:!0,strokeContainThreshold:5,subPixelOptimize:!1,brush:function(t,e){var i=this.style,n=this.path||US,o=i.hasStroke(),a=i.hasFill(),r=i.fill,s=i.stroke,l=a&&!!r.colorStops,u=o&&!!s.colorStops,h=a&&!!r.image,c=o&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=i.getGradient(t,r,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=HS.call(r,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=HS.call(s,t));var f=i.lineDash,p=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();if(n.setScale(m[0],m[1]),this.__dirtyPath||f&&!g&&o?(n.beginPath(t),f&&!g&&(n.setLineDash(f),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a)if(null!=i.fillOpacity){v=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,n.fill(t),t.globalAlpha=v}else n.fill(t);if(f&&g&&(t.setLineDash(f),t.lineDashOffset=p),o)if(null!=i.strokeOpacity){var v=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,n.stroke(t),t.globalAlpha=v}else n.stroke(t);f&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new ES},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new ES),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.lineWidth,r=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),r>1e-10&&(o.width+=a/r,o.height+=a/r,o.x-=a/r/2,o.y-=a/r/2)}return o}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),o=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var a=this.path.data;if(o.hasStroke()){var r=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(o.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),kn(a,r/s,t,e)))return!0}if(o.hasFill())return Ln(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):di.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(w(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ZS(t[0]-1)>1e-10&&ZS(t[3]-1)>1e-10?Math.sqrt(ZS(t[0]*t[3]-t[2]*t[1])):1}},Pn.extend=function(t){var e=function(e){Pn.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var o in i)!n.hasOwnProperty(o)&&i.hasOwnProperty(o)&&(n[o]=i[o])}t.init&&t.init.call(this,e)};u(e,Pn);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},u(Pn,di);var XS=ES.CMD,jS=[[],[],[]],YS=Math.sqrt,qS=Math.atan2,KS=function(t,e){var i,n,o,a,r,s,l=t.data,u=XS.M,h=XS.C,c=XS.L,d=XS.R,f=XS.A,p=XS.Q;for(o=0,a=0;o=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var o=0;oi-2?i-1:c+1],u=t[c>i-3?i-1:c+2]);var p=d*d,g=d*p;n.push([Bn(s[0],f[0],l[0],u[0],d,p,g),Bn(s[1],f[1],l[1],u[1],d,p,g)])}return n},fM=function(t,e,i,n){var o,a,r,s,l=[],u=[],h=[],c=[];if(n){r=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=i&&a>=o)return{x:i,y:o,width:n-i,height:a-o}},createIcon:Po,Group:tb,Image:fi,Text:rM,Circle:sM,Sector:hM,Ring:cM,Polygon:pM,Polyline:gM,Rect:yM,Line:_M,BezierCurve:bM,Arc:SM,IncrementalDisplayable:Zn,CompoundPath:MM,LinearGradient:TM,RadialGradient:AM,BoundingRect:de}),BM=["textStyle","color"],VM={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(BM):null)},getFont:function(){return So({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return ke(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}},GM=Qb([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),FM={getItemStyle:function(t,e){var i=GM(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},WM=h,HM=Bi();No.prototype={constructor:No,init:null,mergeOption:function(t){n(this.option,t,!0)},get:function(t,e){return null==t?this.option:Oo(this.option,this.parsePath(t),!e&&Eo(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],o=!e&&Eo(this,t);return null==n&&o&&(n=o.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:Oo(this.option,t=this.parsePath(t));return e=e||(i=Eo(this,t))&&i.getModel(t),new No(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(i(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){HM(this).getParent=t},isAnimationEnabled:function(){if(!U_.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},ji(No),Yi(No),WM(No,eS),WM(No,nS),WM(No,VM),WM(No,FM);var ZM=0,UM=1e-4,XM=9007199254740991,jM=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,YM=(Object.freeze||Object)({linearMap:Bo,parsePercent:Vo,round:Go,asc:Fo,getPrecision:Wo,getPrecisionSafe:Ho,getPixelPrecision:Zo,getPercentWithPrecision:Uo,MAX_SAFE_INTEGER:XM,remRadian:Xo,isRadianAroundZero:jo,parseDate:Yo,quantity:qo,nice:$o,quantile:function(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),o=+t[n-1],a=i-n;return a?o+a*(t[n]-o):o},reformIntervals:Jo,isNumeric:Qo}),qM=L,KM=/([&<>"'])/g,$M={"&":"&","<":"<",">":">",'"':""","'":"'"},JM=["a","b","c","d","e","f","g"],QM=function(t,e){return"{"+t+(null==e?"":e)+"}"},tI=ze,eI=(Object.freeze||Object)({addCommas:ta,toCamelCase:ea,normalizeCssArray:qM,encodeHTML:ia,formatTpl:na,formatTplSimple:oa,getTooltipMarker:aa,formatTime:sa,capitalFirst:la,truncateText:tI,getTextBoundingRect:function(t){return ke(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},getTextRect:function(t,e,i,n,o,a,r,s){return ke(t,e,i,n,o,s,a,r)}}),iI=d,nI=["left","right","top","bottom","width","height"],oI=[["width","left","right"],["height","top","bottom"]],aI=ua,rI=(v(ua,"vertical"),v(ua,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),sI=Bi(),lI=No.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){No.call(this,t,e,i,n),this.uid=Ro("ec_cpt_model")},init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,o=i?ga(t):{};n(t,e.getTheme().get(this.mainType)),n(t,this.getDefaultOption()),i&&pa(t,o,i)},mergeOption:function(t,e){n(this.option,t,!0);var i=this.layoutMode;i&&pa(this.option,t,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=sI(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var o=i.prototype.defaultOption;o&&e.push(o),i=i.superClass}for(var a={},r=e.length-1;r>=0;r--)a=n(a,e[r],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});$i(lI,{registerWhenExtend:!0}),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){t=Ui(t),e[t.main]=i},t.determineSubType=function(i,n){var o=n.type;if(!o){var a=Ui(i).main;t.hasSubTypes(i)&&e[a]&&(o=e[a](n))}return o}}(lI),function(t,e){function i(t){var i={},a=[];return d(t,function(r){var s=n(i,r),u=o(s.originalDeps=e(r),t);s.entryCount=u.length,0===s.entryCount&&a.push(r),d(u,function(t){l(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);l(e.successor,t)<0&&e.successor.push(r)})}),{graph:i,noEntryList:a}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var i=[];return d(t,function(t){l(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,o){function a(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}if(t.length){var r=i(e),s=r.graph,l=r.noEntryList,u={};for(d(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=s[h],f=!!u[h];f&&(n.call(o,h,c.originalDeps.slice()),delete u[h]),d(c.successor,f?function(t){u[t]=!0,a(t)}:a)}d(u,function(){throw new Error("Circle dependency may exists")})}}}(lI,function(t){var e=[];return d(lI.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=f(e,function(t){return Ui(t).main}),"dataset"!==t&&l(e,"dataset")<=0&&e.unshift("dataset"),e}),h(lI,rI);var uI="";"undefined"!=typeof navigator&&(uI=navigator.platform||"");var hI={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:uI.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},cI=Bi(),dI={clearColorPalette:function(){cI(this).colorIdx=0,cI(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=cI(e=e||this),o=n.colorIdx||0,a=n.colorNameMap=n.colorNameMap||{};if(a.hasOwnProperty(t))return a[t];var r=Di(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?va(s,i):r;if((l=l||r)&&l.length){var u=l[o];return t&&(a[t]=u),n.colorIdx=(o+1)%l.length,u}}},fI={cartesian2d:function(t,e,i,n){var o=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",o),i.set("y",a),xa(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),xa(a)&&(n.set("y",a),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var o=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",o),xa(o)&&(n.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var o=t.getReferringComponents("polar")[0],a=o.findAxisModel("radiusAxis"),r=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",a),i.set("angle",r),xa(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),xa(r)&&(n.set("angle",r),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=a.dimensions.slice();d(a.parallelAxisIndex,function(t,a){var s=o.getComponent("parallelAxis",t),l=r[a];i.set(l,s),xa(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=a)})}},pI="original",gI="arrayRows",mI="objectRows",vI="keyedColumns",yI="unknown",xI="typedArray",_I="column",wI="row";_a.seriesDataToSource=function(t){return new _a({data:t,sourceFormat:S(t)?xI:pI,fromDataset:!1})},Yi(_a);var bI=Bi(),SI="\0_ec_inner",MI=No.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new No(i),this._optionManager=n},setOption:function(t,e){k(!(SI in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):Ea.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(this.mergeOption(o),e=!0)}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this,this._api);a.length&&d(a,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){var e=this.option,o=this._componentsMap,r=[];Sa(this),d(t,function(t,o){null!=t&&(lI.hasClass(o)?o&&r.push(o):e[o]=null==e[o]?i(t):n(e[o],t,!0))}),lI.topologicalTravel(r,lI.getAllClassMainTypes(),function(i,n){var r=Di(t[i]),s=Pi(o.get(i),r);Ni(s),d(s,function(t,e){var n=t.option;w(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=za(i,n,t.exist))});var l=Ra(o,n);e[i]=[],o.set(i,[]),d(s,function(t,n){var r=t.exist,s=t.option;if(k(w(s)||r,"Empty component definition"),s){var u=lI.getClass(i,t.keyInfo.subType,!0);if(r&&r instanceof u)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var h=a({dependentModels:l,componentIndex:n},t.keyInfo);a(r=new u(s,this,this,h),h),r.init(s,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o.get(i)[n]=r,e[i][n]=r.option},this),"series"===i&&Ba(this,o.get("series"))},this),this._seriesIndicesMap=R(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=i(this.option);return d(t,function(e,i){if(lI.hasClass(i)){for(var n=(e=Di(e)).length-1;n>=0;n--)Ei(e[n])&&e.splice(n,1);t[i]=e}}),delete t[SI],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,o=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];var r;if(null!=i)y(i)||(i=[i]),r=g(f(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=y(n);r=g(a,function(t){return s&&l(n,t.id)>=0||!s&&t.id===n})}else if(null!=o){var u=y(o);r=g(a,function(t){return u&&l(o,t.name)>=0||!u&&t.name===o})}else r=a.slice();return Va(r,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",o=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[o]?null:{mainType:i,index:t[e],id:t[n],name:t[o]}}(e);return function(e){return t.filter?g(e,t.filter):e}(Va(n?this.queryComponents(n):this._componentsMap.get(i),t))},eachComponent:function(t,e,i){var n=this._componentsMap;"function"==typeof t?(i=e,e=t,n.each(function(t,n){d(t,function(t,o){e.call(i,n,t,o)})})):_(t)?d(n.get(t),e,i):w(t)&&d(this.findComponents(t),e,i)},getSeriesByName:function(t){return g(this._componentsMap.get("series"),function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){return g(this._componentsMap.get("series"),function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){d(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){d(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){d(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&e.call(i,o,n)},this)},eachRawSeriesByType:function(t,e,i){return d(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Ba(this,g(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Ba(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),lI.topologicalTravel(i,lI.getAllClassMainTypes(),function(i,n){d(e.get(i),function(e){("series"!==i||!Na(e,t))&&e.restoreData()})})}});h(MI,dI);var II=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],TI={};Fa.prototype={constructor:Fa,create:function(t,e){var i=[];d(TI,function(n,o){var a=n.create(t,e);i=i.concat(a||[])}),this._coordinateSystems=i},update:function(t,e){d(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Fa.register=function(t,e){TI[t]=e},Fa.get=function(t){return TI[t]};var AI=d,DI=i,CI=f,LI=n,kI=/^(min|max)?(.+)$/;Wa.prototype={constructor:Wa,setOption:function(t,e){t&&d(Di(t.series),function(t){t&&t.data&&S(t.data)&&N(t.data)}),t=DI(t,!0);var i=this._optionBackup,n=Ha.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(ja(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=CI(e.timelineOptions,DI),this._mediaList=CI(e.mediaList,DI),this._mediaDefault=DI(e.mediaDefault),this._currentMediaIndices=[],DI(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=DI(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,a=[],r=[];if(!n.length&&!o)return r;for(var s=0,l=n.length;s=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var r=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;r===l&&s===u||(a="reset");var h;(this._dirty||"reset"===a)&&(this._dirty=!1,h=yr(this,n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||d=i?null:t1&&a>0?e:t}};return s}();UI.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},UI.unfinished=function(){return this._progress&&this._dueIndex":"\n",s="richText"===n,l={},u=0,h=this.getData(),c=h.mapDimension("defaultedTooltip",!0),f=c.length,g=this.getRawValue(t),m=y(g),v=h.getItemVisual(t,"color");w(v)&&v.colorStops&&(v=(v.colorStops[0]||{}).color),v=v||"transparent";var x=(f>1||m&&!f?function(i){function o(t,i){var o=h.getDimensionInfo(i);if(o&&!1!==o.otherDims.tooltip){var c=o.type,d="sub"+a.seriesIndex+"at"+u,p=aa({color:v,type:"subItem",renderMode:n,markerId:d}),g="string"==typeof p?p:p.content,m=(r?g+ia(o.displayName||"-")+": ":"")+ia("ordinal"===c?t+"":"time"===c?e?"":sa("yyyy/MM/dd hh:mm:ss",t):ta(t));m&&f.push(m),s&&(l[d]=v,++u)}}var r=p(i,function(t,e,i){var n=h.getDimensionInfo(i);return t|=n&&!1!==n.tooltip&&null!=n.displayName},0),f=[];c.length?d(c,function(e){o(fr(h,t,e),e)}):d(i,o);var g=r?s?"\n":"
":"",m=g+f.join(g||", ");return{renderMode:n,content:m,style:l}}(g):o(f?fr(h,t,c[0]):m?g[0]:g)).content,_=a.seriesIndex+"at"+u,b=aa({color:v,type:"item",renderMode:n,markerId:_});l[_]=v,++u;var S=h.getName(t),M=this.name;Oi(this)||(M=""),M=M?ia(M)+(e?": ":r):"";var I="string"==typeof b?b:b.content;return{html:e?I+M+x:M+I+(S?ia(S)+": "+x:x),markers:l}},isAnimationEnabled:function(){if(U_.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,o=dI.getColorFromPalette.call(this,t,e,i);return o||(o=n.getColorFromPalette(t,e,i)),o},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});h(YI,ZI),h(YI,dI);var qI=function(){this.group=new tb,this.uid=Ro("viewComponent")};qI.prototype={constructor:qI,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};var KI=qI.prototype;KI.updateView=KI.updateLayout=KI.updateVisual=function(t,e,i,n){},ji(qI),$i(qI,{registerWhenExtend:!0});var $I=function(){var t=Bi();return function(e){var i=t(e),n=e.pipelineContext,o=i.large,a=i.progressiveRender,r=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(o^r||a^s)&&"reset"}},JI=Bi(),QI=$I();Ar.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){Cr(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){Cr(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var tT=Ar.prototype;tT.updateView=tT.updateLayout=tT.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},ji(Ar),$i(Ar,{registerWhenExtend:!0}),Ar.markUpdateMethod=function(t,e){JI(t).updateMethod=e};var eT={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)}}},iT="\0__throttleOriginMethod",nT="\0__throttleRate",oT="\0__throttleType",aT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(n)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",o),!e.isSeriesFiltered(t)){"function"!=typeof o||o instanceof IM||i.each(function(e){i.setItemVisual(e,"color",o(t.getDataParams(e)))});return{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e).get(n,!0);null!=i&&t.setItemVisual(e,"color",i)}:null}}}},rT={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},sT=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return d(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=a.get(t);if(null==e){for(var i=t.split("."),n=rT.aria,o=0;o1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:r}),e.eachSeries(function(t,e){if(e1?"multiple":"single")+".";a=i(a=n(s?u+"withName":u+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:o(t.subType)});var c=t.getData();window.data=c,c.count()>l?a+=i(n("data.partialData"),{displayCnt:l}):a+=n("data.allData");for(var d=[],p=0;pi.blockIndex?i.step:null,a=n&&n.modDataCount;return{step:o,modBy:null!=a?Math.ceil(a/o):null,modDataCount:a}}},uT.getPipeline=function(t){return this._pipelineMap.get(t)},uT.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,a=t.get("large")&&n>=t.get("largeThreshold"),r="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:r,large:a}},uT.restorePipelines=function(t){var e=this,i=e._pipelineMap=R();t.eachSeries(function(t){var n=t.getProgressive(),o=t.uid;i.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),jr(e,t,t.dataTask)})},uT.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;d(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,[]);n.reset&&zr(this,n,o,e,i),n.overallReset&&Br(this,n,o,e,i)},this)},uT.prepareView=function(t,e,i,n){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=n,o.__block=!t.incrementalPrepareRender,jr(this,e,o)},uT.performDataProcessorTasks=function(t,e){Rr(this,this._dataProcessorHandlers,t,e,{block:!0})},uT.performVisualTasks=function(t,e,i){Rr(this,this._visualHandlers,t,e,i)},uT.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},uT.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)})};var hT=uT.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},cT=Ur(0);Er.wrapStageHandler=function(t,e){return x(t)&&(t={overallReset:t,seriesType:Yr(t)}),t.uid=Ro("stageHandler"),e&&(t.visualType=e),t};var dT,fT={},pT={};qr(fT,MI),qr(pT,Ga),fT.eachSeriesByType=fT.eachRawSeriesByType=function(t){dT=t},fT.eachComponent=function(t){"series"===t.mainType&&t.subType&&(dT=t.subType)};var gT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],mT={color:gT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],gT]},vT=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],yT={color:vT,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:vT[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:vT},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};yT.categoryAxis.splitLine.show=!1,lI.extend({type:"dataset",defaultOption:{seriesLayoutBy:_I,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){wa(this)}}),qI.extend({type:"dataset"});var xT=Pn.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,o=e.cy,a=e.rx,r=e.ry,s=a*i,l=r*i;t.moveTo(n-a,o),t.bezierCurveTo(n-a,o-l,n-s,o-r,n,o-r),t.bezierCurveTo(n+s,o-r,n+a,o-l,n+a,o),t.bezierCurveTo(n+a,o+l,n+s,o+r,n,o+r),t.bezierCurveTo(n-s,o+r,n-a,o+l,n-a,o),t.closePath()}}),_T=/[\s,]+/;$r.prototype.parse=function(t,e){e=e||{};var i=Kr(t);if(!i)throw new Error("Illegal svg");var n=new tb;this._root=n;var o=i.getAttribute("viewBox")||"",a=parseFloat(i.getAttribute("width")||e.width),r=parseFloat(i.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(r)&&(r=null),es(i,n,null,!0);for(var s=i.firstChild;s;)this._parseNode(s,n),s=s.nextSibling;var l,u;if(o){var h=P(o).split(_T);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=r&&(u=as(l,a,r),!e.ignoreViewBox)){var c=n;(n=new tb).add(c),c.scale=u.scale.slice(),c.position=u.position.slice()}return e.ignoreRootClip||null==a||null==r||n.setClipPath(new yM({shape:{x:0,y:0,width:a,height:r}})),{root:n,width:a,height:r,viewBoxRect:l,viewBoxTransform:u}},$r.prototype._parseNode=function(t,e){var i=t.nodeName.toLowerCase();"defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0);var n;if(this._isDefine){if(r=bT[i]){var o=r.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else{var r=wT[i];r&&(n=r.call(this,t,e),e.add(n))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},$r.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var o=new rM({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Qr(e,o),es(t,o,this._defs);var a=o.style.fontSize;a&&a<9&&(o.style.fontSize=9,o.scale=o.scale||[1,1],o.scale[0]*=a/9,o.scale[1]*=a/9);var r=o.getBoundingRect();return this._textX+=r.width,e.add(o),o};var wT={g:function(t,e){var i=new tb;return Qr(e,i),es(t,i,this._defs),i},rect:function(t,e){var i=new yM;return Qr(e,i),es(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new sM;return Qr(e,i),es(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new _M;return Qr(e,i),es(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new xT;return Qr(e,i),es(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=ts(i));var n=new pM({shape:{points:i||[]}});return Qr(e,n),es(t,n,this._defs),n},polyline:function(t,e){var i=new Pn;Qr(e,i),es(t,i,this._defs);var n=t.getAttribute("points");return n&&(n=ts(n)),new gM({shape:{points:n||[]}})},image:function(t,e){var i=new fi;return Qr(e,i),es(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,n=t.getAttribute("y")||0,o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(n)+parseFloat(a);var r=new tb;return Qr(e,r),es(t,r,this._defs),r},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var o=t.getAttribute("dx")||0,a=t.getAttribute("dy")||0,r=new tb;return Qr(e,r),es(t,r,this._defs),this._textX+=o,this._textY+=a,r},path:function(t,e){var i=Rn(t.getAttribute("d")||"");return Qr(e,i),es(t,i,this._defs),i}},bT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),o=parseInt(t.getAttribute("y2")||0,10),a=new TM(e,i,n,o);return Jr(t,a),a},radialgradient:function(t){}},ST={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},MT=/url\(\s*#(.*?)\)/,IT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,TT=/([^\s:;]+)\s*:\s*([^:;]+)/g,AT=R(),DT={registerMap:function(t,e,i){var n;return y(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),d(n,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,CT[e])(t)}),AT.set(t,n)},retrieveMap:function(t){return AT.get(t)}},CT={geoJSON:function(t){var e=t.source;t.geoJSON=_(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Kr(t.source)}},LT=k,kT=d,PT=x,NT=w,OT=lI.parseClassType,ET={zrender:"4.0.6"},RT=1e3,zT=1e3,BT=3e3,VT={PROCESSOR:{FILTER:RT,STATISTIC:5e3},VISUAL:{LAYOUT:zT,GLOBAL:2e3,CHART:BT,COMPONENT:4e3,BRUSH:5e3}},GT="__flagInMainProcess",FT="__optionUpdated",WT=/^[a-zA-Z0-9_]+$/;ls.prototype.on=ss("on"),ls.prototype.off=ss("off"),ls.prototype.one=ss("one"),h(ls,fw);var HT=us.prototype;HT._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[FT]){var e=this[FT].silent;this[GT]=!0,cs(this),ZT.update.call(this),this[GT]=!1,this[FT]=!1,gs.call(this,e),ms.call(this,e)}else if(t.unfinished){var i=1,n=this._model;this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),fs(this,n),t.performVisualTasks(n),bs(this,this._model,0,"remain"),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},HT.getDom=function(){return this._dom},HT.getZr=function(){return this._zr},HT.setOption=function(t,e,i){var n;if(NT(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[GT]=!0,!this._model||e){var o=new Wa(this._api),a=this._theme,r=this._model=new MI(null,null,a,o);r.scheduler=this._scheduler,r.init(null,null,a,o)}this._model.setOption(t,qT),i?(this[FT]={silent:n},this[GT]=!1):(cs(this),ZT.update.call(this),this._zr.flush(),this[FT]=!1,this[GT]=!1,gs.call(this,n),ms.call(this,n))},HT.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},HT.getModel=function(){return this._model},HT.getOption=function(){return this._model&&this._model.getOption()},HT.getWidth=function(){return this._zr.getWidth()},HT.getHeight=function(){return this._zr.getHeight()},HT.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},HT.getRenderedCanvas=function(t){if(U_.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},HT.getSvgDataUrl=function(){if(U_.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},HT.getDataURL=function(t){var e=(t=t||{}).excludeComponents,i=this._model,n=[],o=this;kT(e,function(t){i.eachComponent({mainType:t},function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return kT(n,function(t){t.group.ignore=!1}),a},HT.getConnectedDataURL=function(t){if(U_.canvasSupported){var e=this.group,n=Math.min,o=Math.max;if(eA[e]){var a=1/0,r=1/0,s=-1/0,l=-1/0,u=[],h=t&&t.pixelRatio||1;d(tA,function(h,c){if(h.group===e){var d=h.getRenderedCanvas(i(t)),f=h.getDom().getBoundingClientRect();a=n(f.left,a),r=n(f.top,r),s=o(f.right,s),l=o(f.bottom,l),u.push({dom:d,left:f.left,top:f.top})}});var c=(s*=h)-(a*=h),f=(l*=h)-(r*=h),p=iw();p.width=c,p.height=f;var g=Ii(p);return kT(u,function(t){var e=new fi({style:{x:t.left*h-a,y:t.top*h-r,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},HT.convertToPixel=v(hs,"convertToPixel"),HT.convertFromPixel=v(hs,"convertFromPixel"),HT.containPixel=function(t,e){var i;return t=Vi(this._model,t),d(t,function(t,n){n.indexOf("Models")>=0&&d(t,function(t){var o=t.coordinateSystem;if(o&&o.containPoint)i|=!!o.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}},this)},this),!!i},HT.getVisual=function(t,e){var i=(t=Vi(this._model,t,{defaultMainType:"series"})).seriesModel.getData(),n=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=n?i.getItemVisual(n,e):i.getVisual(e)},HT.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},HT.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var ZT={prepareAndUpdate:function(t){cs(this),ZT.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,o=this._coordSysMgr,a=this._scheduler;if(e){a.restoreData(e,t),a.performSeriesTasks(e),o.create(e,i),a.performDataProcessorTasks(e,t),fs(this,e),o.update(e,i),xs(e),a.performVisualTasks(e,t),_s(this,e,i,t);var r=e.get("backgroundColor")||"transparent";if(U_.canvasSupported)n.setBackgroundColor(r);else{var s=Gt(r);r=qt(s,"rgb"),0===s[3]&&(r="transparent")}Ss(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var o=[];e.eachComponent(function(a,r){var s=i.getViewOfComponentModel(r);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(r,e,n,t);l&&l.update&&o.push(s)}else o.push(s)});var a=R();e.eachSeries(function(o){var r=i._chartsMap[o.__viewId];if(r.updateTransform){var s=r.updateTransform(o,e,n,t);s&&s.update&&a.set(o.uid,1)}else a.set(o.uid,1)}),xs(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:a}),bs(i,e,0,t,a),Ss(e,this._api)}},updateView:function(t){var e=this._model;e&&(Ar.markUpdateMethod(t,"updateView"),xs(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),_s(this,this._model,this._api,t),Ss(e,this._api))},updateVisual:function(t){ZT.update.call(this,t)},updateLayout:function(t){ZT.update.call(this,t)}};HT.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[GT]=!0,i&&cs(this),ZT.update.call(this),this[GT]=!1,gs.call(this,n),ms.call(this,n)}},HT.showLoading=function(t,e){if(NT(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),QT[t]){var i=QT[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},HT.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},HT.makeActionFromEvent=function(t){var e=a({},t);return e.type=jT[t.type],e},HT.dispatchAction=function(t,e){NT(e)||(e={silent:!!e}),XT[t.type]&&this._model&&(this[GT]?this._pendingActions.push(t):(ps.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&U_.browser.weChat&&this._throttledZrFlush(),gs.call(this,e.silent),ms.call(this,e.silent)))},HT.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},HT.on=ss("on"),HT.off=ss("off"),HT.one=ss("one");var UT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];HT._initEvents=function(){kT(UT,function(t){var e=function(e){var i,n=this.getModel(),o=e.target;if("globalout"===t)i={};else if(o&&null!=o.dataIndex){var r=o.dataModel||n.getSeriesByIndex(o.seriesIndex);i=r&&r.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(i=a({},o.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&n.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:h},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),kT(jT,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},HT.isDisposed=function(){return this._disposed},HT.clear=function(){this.setOption({series:[]},!0)},HT.dispose=function(){if(!this._disposed){this._disposed=!0,Fi(this.getDom(),oA,"");var t=this._api,e=this._model;kT(this._componentsViews,function(i){i.dispose(e,t)}),kT(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete tA[this.id]}},h(us,fw),Ds.prototype={constructor:Ds,normalizeQuery:function(t){var e={},i={},n={};if(_(t)){var o=OT(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],r={name:1,dataIndex:1,dataType:1};d(t,function(t,o){for(var s=!1,l=0;l0&&h===o.length-u.length){var c=o.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}r.hasOwnProperty(o)&&(i[o]=t,s=!0),s||(n[o]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){function n(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var o=this.eventInfo;if(!o)return!0;var a=o.targetEl,r=o.packedEvent,s=o.model,l=o.view;if(!s||!l)return!0;var u=e.cptQuery,h=e.dataQuery;return n(u,s,"mainType")&&n(u,s,"subType")&&n(u,s,"index","componentIndex")&&n(u,s,"name")&&n(u,s,"id")&&n(h,r,"name")&&n(h,r,"dataIndex")&&n(h,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,a,r))},afterTrigger:function(){this.eventInfo=null}};var XT={},jT={},YT=[],qT=[],KT=[],$T=[],JT={},QT={},tA={},eA={},iA=new Date-0,nA=new Date-0,oA="_echarts_instance_",aA=Ls;Bs(2e3,aT),Ns(BI),Os(5e3,function(t){var e=R();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),o=t.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;n.length&&o.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}}),e.each(ar)}),Gs("default",function(t,e){r(e=e||{},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new yM({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),n=new SM({shape:{startAngle:-lT/2,endAngle:-lT/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),o=new yM({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:3*lT/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*lT/2}).delay(300).start("circularInOut");var a=new tb;return a.add(n),a.add(o),a.add(i),a.resize=function(){var e=t.getWidth()/2,a=t.getHeight()/2;n.setShape({cx:e,cy:a});var r=n.shape.r;o.setShape({x:e-r,y:a-r,width:2*r,height:2*r}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},a.resize(),a}),Es({type:"highlight",event:"highlight",update:"highlight"},B),Es({type:"downplay",event:"downplay",update:"downplay"},B),Ps("light",mT),Ps("dark",yT);var rA={};Xs.prototype={constructor:Xs,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},n=[],o=[];for(js(t,{},n,"_oldKeyGetter",this),js(e,i,o,"_newKeyGetter",this),a=0;ax[1]&&(x[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=l,this._extent={},el(this)},yA._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,o=this._rawData,a=this._storage,r=this.dimensions,s=r.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;pM[1]&&(M[1]=S)}if(!o.pure){var I=u[v];if(m&&null==I)if(null!=m.name)u[v]=I=m.name;else if(null!=i){var T=r[i],A=a[T][y];if(A){I=A[x];var D=l[T].ordinalMeta;D&&D.categories.length&&(I=D.categories[I])}}var C=null==m?null:m.id;null==C&&null!=I&&(d[I]=d[I]||0,C=I,d[I]>0&&(C+="__ec__"+d[I]),d[I]++),null!=C&&(h[v]=C)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=e,this._extent={},el(this)}},yA.count=function(){return this._count},yA.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array){n=new e(i);for(o=0;o=0&&e=0&&ea&&(a=s)}return i=[o,a],this._extent[t]=i,i},yA.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},yA.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},yA.getCalculationInfo=function(t){return this._calculationInfo[t]},yA.setCalculationInfo=function(t,e){lA(t)?a(this._calculationInfo,t):this._calculationInfo[t]=e},yA.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&it))return a;o=a-1}}return-1},yA.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var o=Number.MAX_VALUE,a=-1,r=0,s=this.count();r=0&&a<0)&&(o=u,a=l,n.length=0),n.push(r))}return n},yA.getRawIndex=nl,yA.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i=l&&w<=u||isNaN(w))&&(a[r++]=c),c++;h=!0}else if(2===n){for(var d=this._storage[s],v=this._storage[e[1]],y=t[e[1]][0],x=t[e[1]][1],f=0;f=l&&w<=u||isNaN(w))&&(b>=y&&b<=x||isNaN(b))&&(a[r++]=c),c++}h=!0}}if(!h)if(1===n)for(m=0;m=l&&w<=u||isNaN(w))&&(a[r++]=M)}else for(m=0;mt[I][1])&&(S=!1)}S&&(a[r++]=this.getRawIndex(m))}return rb[1]&&(b[1]=w)}}}return o},yA.downSample=function(t,e,i,n){for(var o=sl(this,[t]),a=o._storage,r=[],s=Math.floor(1/e),l=a[t],u=this.count(),h=this._chunkSize,c=o._rawExtent[t],d=new($s(this))(u),f=0,p=0;pu-p&&(s=u-p,r.length=s);for(var g=0;gc[1]&&(c[1]=x),d[f++]=_}return o._count=f,o._indices=d,o.getRawIndex=ol,o},yA.getItemModel=function(t){var e=this.hostModel;return new No(this.getRawDataItem(t),e,e&&e.ecModel)},yA.diff=function(t){var e=this;return new Xs(t?t.getIndices():[],this.getIndices(),function(e){return al(t,e)},function(t){return al(e,t)})},yA.getVisual=function(t){var e=this._visual;return e&&e[t]},yA.setVisual=function(t,e){if(lA(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},yA.setLayout=function(t,e){if(lA(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},yA.getLayout=function(t){return this._layout[t]},yA.getItemLayout=function(t){return this._itemLayouts[t]},yA.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?a(this._itemLayouts[t]||{},e):e},yA.clearItemLayouts=function(){this._itemLayouts.length=0},yA.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],o=n&&n[e];return null!=o||i?o:this.getVisual(e)},yA.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},o=this.hasItemVisual;if(this._itemVisuals[t]=n,lA(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a],o[a]=!0);else n[e]=i,o[e]=!0},yA.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var xA=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};yA.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(xA,e)),this._graphicEls[t]=e},yA.getItemGraphicEl=function(t){return this._graphicEls[t]},yA.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},yA.cloneShallow=function(t){if(!t){var e=f(this.dimensions,this.getDimensionInfo,this);t=new vA(e,this.hostModel)}if(t._storage=this._storage,Qs(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?ol:nl,t},yA.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(C(arguments)))})},yA.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],yA.CHANGABLE_METHODS=["filterSelf","selectRange"];var _A=function(t,e){return e=e||{},hl(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})};xl.prototype.parse=function(t){return t},xl.prototype.getSetting=function(t){return this._setting[t]},xl.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},xl.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},xl.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},xl.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},xl.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},xl.prototype.getExtent=function(){return this._extent.slice()},xl.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},xl.prototype.isBlank=function(){return this._isBlank},xl.prototype.setBlank=function(t){this._isBlank=t},xl.prototype.getLabel=null,ji(xl),$i(xl,{registerWhenExtend:!0}),_l.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&f(i,bl);return new _l({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var wA=_l.prototype;wA.getOrdinal=function(t){return wl(this).get(t)},wA.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=wl(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var bA=xl.prototype,SA=xl.extend({type:"ordinal",init:function(t,e){t&&!y(t)||(t=new _l({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),bA.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return bA.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(bA.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:B,niceExtent:B});SA.create=function(){return new SA};var MA=Go,IA=Go,TA=xl.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),TA.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ml(t)},getTicks:function(){return Al(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Ho(t)||0:"auto"===i&&(i=this._intervalPrecision),t=IA(t,i,!0),ta(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,o=n[1]-n[0];if(isFinite(o)){o<0&&(o=-o,n.reverse());var a=Sl(n,t,e,i);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=IA(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=IA(Math.ceil(e[1]/o)*o))}});TA.create=function(){return new TA};var AA="__ec_stack_",DA="undefined"!=typeof Float32Array?Float32Array:Array,CA={seriesType:"bar",plan:$I(),reset:function(t){if(Rl(t)&&zl(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),o=i.getOtherAxis(n),a=e.mapDimension(o.dim),r=e.mapDimension(n.dim),s=o.isHorizontal(),l=s?0:1,u=Ol(Pl([t]),n,t).width;return u>.5||(u=.5),{progress:function(t,e){for(var n,h=new DA(2*t.count),c=[],d=[],f=0;null!=(n=t.next());)d[l]=e.get(a,n),d[1-l]=e.get(r,n),c=i.dataToPoint(d,null,c),h[f++]=c[0],h[f++]=c[1];e.setLayout({largePoints:h,barWidth:u,valueAxisStart:Bl(0,o),valueAxisHorizontal:s})}}}}},LA=TA.prototype,kA=Math.ceil,PA=Math.floor,NA=function(t,e,i,n){for(;i>>1;t[o][1]i&&(a=i);var r=EA.length,s=NA(EA,a,0,r),l=EA[Math.min(s,r-1)],u=l[1];"year"===l[0]&&(u*=$o(o/u/t,!0));var h=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,c=[Math.round(kA((n[0]-h)/u)*u+h),Math.round(PA((n[1]-h)/u)*u+h)];Tl(c,n),this._stepLvl=l,this._interval=u,this._niceExtent=c},parse:function(t){return+Yo(t)}});d(["contain","normalize"],function(t){OA.prototype[t]=function(e){return LA[t].call(this,this.parse(e))}});var EA=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",864e5],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];OA.create=function(t){return new OA({useUTC:t.ecModel.get("useUTC")})};var RA=xl.prototype,zA=TA.prototype,BA=Ho,VA=Go,GA=Math.floor,FA=Math.ceil,WA=Math.pow,HA=Math.log,ZA=xl.extend({type:"log",base:10,$constructor:function(){xl.apply(this,arguments),this._originalScale=new TA},getTicks:function(){var t=this._originalScale,e=this._extent,i=t.getExtent();return f(zA.getTicks.call(this),function(n){var o=Go(WA(this.base,n));return o=n===e[0]&&t.__fixMin?Vl(o,i[0]):o,o=n===e[1]&&t.__fixMax?Vl(o,i[1]):o},this)},getLabel:zA.getLabel,scale:function(t){return t=RA.scale.call(this,t),WA(this.base,t)},setExtent:function(t,e){var i=this.base;t=HA(t)/HA(i),e=HA(e)/HA(i),zA.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=RA.getExtent.call(this);e[0]=WA(t,e[0]),e[1]=WA(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=Vl(e[0],n[0])),i.__fixMax&&(e[1]=Vl(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=HA(t[0])/HA(e),t[1]=HA(t[1])/HA(e),RA.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=qo(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[Go(FA(e[0]/n)*n),Go(GA(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t){zA.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});d(["contain","normalize"],function(t){ZA.prototype[t]=function(e){return e=HA(e)/HA(this.base),RA[t].call(this,e)}}),ZA.create=function(){return new ZA};var UA={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!I(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!I(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:B,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},XA=Un({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+o,n+a),t.lineTo(i-o,n+a),t.closePath()}}),jA=Un({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,o=e.width/2,a=e.height/2;t.moveTo(i,n-a),t.lineTo(i+o,n),t.lineTo(i,n+a),t.lineTo(i-o,n),t.closePath()}}),YA=Un({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width/5*3,a=Math.max(o,e.height),r=o/2,s=r*r/(a-r),l=n-a+r+s,u=Math.asin(s/r),h=Math.cos(u)*r,c=Math.sin(u),d=Math.cos(u),f=.6*r,p=.7*r;t.moveTo(i-h,l+s),t.arc(i,l,r,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-h+c*f,l+s+d*f,i-h,l+s),t.closePath()}}),qA=Un({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,o=e.x,a=e.y,r=n/3*2;t.moveTo(o,a),t.lineTo(o+r,a+i),t.lineTo(o,a+i/4*3),t.lineTo(o-r,a+i),t.lineTo(o,a),t.closePath()}}),KA={line:function(t,e,i,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+i,o.y2=e+n/2},rect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n},roundRect:function(t,e,i,n,o){o.x=t,o.y=e,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(t,e,i,n,o){var a=Math.min(i,n);o.x=t,o.y=e,o.width=a,o.height=a},circle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.r=Math.min(i,n)/2},diamond:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n},pin:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},arrow:function(t,e,i,n,o){o.x=t+i/2,o.y=e+n/2,o.width=i,o.height=n},triangle:function(t,e,i,n,o){o.cx=t+i/2,o.cy=e+n/2,o.width=i,o.height=n}},$A={};d({line:_M,rect:yM,roundRect:yM,square:yM,circle:sM,diamond:jA,pin:YA,arrow:qA,triangle:XA},function(t,e){$A[e]=new t});var JA=Un({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,o=$A[n];"none"!==e.symbolType&&(o||(o=$A[n="rect"]),KA[n](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,i))}}),QA={isDimensionStacked:pl,enableDataStack:fl,getStackedDimension:gl},tD=(Object.freeze||Object)({createList:function(t){return ml(t.getSource(),t)},getLayoutRect:ca,dataStack:QA,createScale:function(t,e){var i=e;No.isInstance(e)||h(i=new No(e),UA);var n=Hl(i);return n.setExtent(t[0],t[1]),Wl(n,i),n},mixinAxisModelCommonMethods:function(t){h(t,UA)},completeDimensions:hl,createDimensions:_A,createSymbol:Jl}),eD=1e-8;eu.prototype={constructor:eu,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],o=[],a=[],r=this.geometries,s=0;s0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,o=[];"Polygon"===i.type&&o.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&d(n,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new eu(e.name,o,e.cp);return a.properties=e,a})},nD=Bi(),oD=[0,1],aD=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};aD.prototype={constructor:aD,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Zo(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&yu(i=i.slice(),n.count()),Bo(t,oD,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&yu(i=i.slice(),n.count());var o=Bo(t,i,oD,e);return this.scale.scale(o)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=au(this,e),n=f(i.ticks,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),o=e.get("alignWithLabel");return xu(this,n,i.tickCategoryInterval,o,t.clamp),n},getViewLabels:function(){return ou(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return pu(this)}};var rD=iD,sD={};d(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){sD[t]=aw[t]});var lD={};d(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){lD[t]=zM[t]}),YI.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return ml(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});var uD=wu.prototype,hD=wu.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};uD._createSymbol=function(t,e,i,n,o){this.removeAll();var a=Jl(t,-1,-1,2,2,e.getItemVisual(i,"color"),o);a.attr({z2:100,culling:!0,scale:bu(n)}),a.drift=Su,this._symbolType=t,this.add(a)},uD.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},uD.getSymbolPath=function(){return this.childAt(0)},uD.getScale=function(){return this.childAt(0).scale},uD.highlight=function(){this.childAt(0).trigger("emphasis")},uD.downplay=function(){this.childAt(0).trigger("normal")},uD.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},uD.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},uD.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",o=t.hostModel,a=hD(t,e),r=n!==this._symbolType;if(r){var s=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,a,s)}else(l=this.childAt(0)).silent=!1,Io(l,{scale:bu(a)},o,e);if(this._updateCommon(t,e,a,i),r){var l=this.childAt(0),u=i&&i.fadeIn,h={scale:l.scale.slice()};u&&(h.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),To(l,h,o,e)}this._seriesModel=o};var cD=["itemStyle"],dD=["emphasis","itemStyle"],fD=["label"],pD=["emphasis","label"];uD._updateCommon=function(t,e,i,n){var o=this.childAt(0),r=t.hostModel,s=t.getItemVisual(e,"color");"image"!==o.type&&o.useStyle({strokeNoScale:!0});var l=n&&n.itemStyle,u=n&&n.hoverItemStyle,h=n&&n.symbolRotate,c=n&&n.symbolOffset,d=n&&n.labelModel,f=n&&n.hoverLabelModel,p=n&&n.hoverAnimation,g=n&&n.cursorStyle;if(!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e);l=m.getModel(cD).getItemStyle(["color"]),u=m.getModel(dD).getItemStyle(),h=m.getShallow("symbolRotate"),c=m.getShallow("symbolOffset"),d=m.getModel(fD),f=m.getModel(pD),p=m.getShallow("hoverAnimation"),g=m.getShallow("cursor")}else u=a({},u);var v=o.style;o.attr("rotation",(h||0)*Math.PI/180||0),c&&o.attr("position",[Vo(c[0],i[0]),Vo(c[1],i[1])]),g&&o.attr("cursor",g),o.setColor(s,n&&n.symbolInnerColor),o.setStyle(l);var y=t.getItemVisual(e,"opacity");null!=y&&(v.opacity=y);var x=t.getItemVisual(e,"liftZ"),_=o.__z2Origin;null!=x?null==_&&(o.__z2Origin=o.z2,o.z2+=x):null!=_&&(o.z2=_,o.__z2Origin=null);var w=n&&n.useNameLabel;go(v,u,d,f,{labelFetcher:r,labelDataIndex:e,defaultText:function(e,i){return w?t.getName(e):_u(t,e)},isRectText:!0,autoColor:s}),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.hoverStyle=u,fo(o),o.__symbolOriginalScale=bu(i),p&&r.isAnimationEnabled()&&o.on("mouseover",Mu).on("mouseout",Iu).on("emphasis",Tu).on("normal",Au)},uD.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,!(e&&e.keepLabel)&&(i.style.text=null),Io(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},u(wu,tb);var gD=Du.prototype;gD.updateData=function(t,e){e=Lu(e);var i=this.group,n=t.hostModel,o=this._data,a=this._symbolCtor,r=ku(t);o||i.removeAll(),t.diff(o).add(function(n){var o=t.getItemLayout(n);if(Cu(t,o,n,e)){var s=new a(t,n,r);s.attr("position",o),t.setItemGraphicEl(n,s),i.add(s)}}).update(function(s,l){var u=o.getItemGraphicEl(l),h=t.getItemLayout(s);Cu(t,h,s,e)?(u?(u.updateData(t,s,r),Io(u,{position:h},n)):(u=new a(t,s)).attr("position",h),i.add(u),t.setItemGraphicEl(s,u)):i.remove(u)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._data=t},gD.isPersistent=function(){return!0},gD.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr("position",n)})},gD.incrementalPrepareUpdate=function(t){this._seriesScope=ku(t),this._data=null,this.group.removeAll()},gD.incrementalUpdate=function(t,e,i){i=Lu(i);for(var n=t.start;n0&&Ru(i[o-1]);o--);for(;n0&&Ru(i[a-1]);a--);for(;o=0){var r=o.getItemGraphicEl(a);if(!r){var s=o.getItemLayout(a);if(!s)return;(r=new wu(o,a)).position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,o.setItemGraphicEl(a,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else Ar.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var o=t.getData(),a=zi(o,n);if(null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else Ar.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new MD({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new ID({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,o,a){var r=this._polyline,s=this._polygon,l=t.hostModel,u=mD(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,a),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;o&&(h=Yu(u.current,i,o),c=Yu(u.stackedOnCurrent,i,o),d=Yu(u.next,i,o),f=Yu(u.stackedOnNext,i,o)),r.shape.__points=u.current,r.shape.points=h,Io(r,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),Io(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;me&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;ie[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},u(kD,aD);var PD={show:!0,zlevel: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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},ND={};ND.categoryAxis=n({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},PD),ND.valueAxis=n({boundaryGap:[0,0],splitNumber:5},PD),ND.timeAxis=r({scale:!0,min:"dataMin",max:"dataMax"},ND.valueAxis),ND.logAxis=r({scale:!0,logBase:10},ND.valueAxis);var OD=["value","category","time","log"],ED=function(t,e,i,a){d(OD,function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,o){var a=this.layoutMode,s=a?ga(e):{};n(e,o.getTheme().get(r+"Axis")),n(e,this.getDefaultOption()),e.type=i(t,e),a&&pa(e,s,a)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=_l.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:o([{},ND[r+"Axis"],a],!0)})}),lI.registerSubTypeDefaulter(t+"Axis",v(i,t))},RD=lI.extend({type:"cartesian2dAxis",axis:null,init:function(){RD.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){RD.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){RD.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});n(RD.prototype,UA);var zD={offset:0};ED("x",RD,th,zD),ED("y",RD,th,zD),lI.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var BD=ih.prototype;BD.type="grid",BD.axisPointerEnabled=!0,BD.getRect=function(){return this._rect},BD.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),d(i.x,function(t){Wl(t.scale,t.model)}),d(i.y,function(t){Wl(t.scale,t.model)});var n={};d(i.x,function(t){nh(i,"y",t,n)}),d(i.y,function(t){nh(i,"x",t,n)}),this.resize(this.model,e)},BD.resize=function(t,e,i){function n(){d(a,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),ah(t,e?o.x:o.y)})}var o=ca(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;n(),!i&&t.get("containLabel")&&(d(a,function(t){if(!t.model.get("axisLabel.inside")){var e=jl(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.x+=e.width+n)}}}),n())},BD.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},BD.getAxes=function(){return this._axesList.slice()},BD.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}w(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,o=this._coordsList;nu[1]?-1:1,c=["start"===o?u[0]-h*l:"end"===o?u[1]+h*l:(u[0]+u[1])/2,ph(o)?t.labelOffset+r*l:0],d=e.get("nameRotate");null!=d&&(d=d*GD/180);var f;ph(o)?n=HD(t.rotation,null!=d?d:t.rotation,r):(n=uh(t,o,d||0,u),null!=(f=t.axisNameAvailableWidth)&&(f=Math.abs(f/Math.sin(n.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,v=T(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=m&&null!=v?tI(i,v,p,m,{minChar:2,placeholder:g.placeholder}):i,x=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:i,$vars:["name"]};w[_+"Index"]=e.componentIndex;var b=new rM({anid:"name",__fullText:i,__truncatedText:y,position:c,rotation:n.rotation,silent:hh(e),z2:1,tooltip:x&&x.show?a({content:i,formatter:function(){return i},formatterParams:w},x):null});mo(b.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=lh(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},HD=FD.innerTextLayout=function(t,e,i){var n,o,a=Xo(e-t);return jo(a)?(o=i>0?"top":"bottom",n="center"):jo(a-GD)?(o=i>0?"bottom":"top",n="center"):(o="middle",n=a>0&&a0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},ZD=d,UD=v,XD=Ws({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&Sh(t),XD.superApply(this,"render",arguments),Dh(this,t,0,i,0,!0)},updateAxisPointer:function(t,e,i,n,o){Dh(this,t,0,i,0,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),XD.superApply(this,"remove",arguments)},dispose:function(t,e){Ch(this,e),XD.superApply(this,"dispose",arguments)}}),jD=[];XD.registerAxisPointerClass=function(t,e){jD[t]=e},XD.getAxisPointerClass=function(t){return t&&jD[t]};var YD=["axisLine","axisTickLabel","axisName"],qD=["splitArea","splitLine"],KD=XD.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new tb,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),r=Lh(a,t),s=new FD(t,r);d(YD,s.add,s),this._axisGroup.add(s.getGroup()),d(qD,function(e){t.get(e+".show")&&this["_"+e](t,a)},this),Lo(o,this._axisGroup,t),KD.superCall(this,"render",t,e,i,n)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),o=n.getModel("lineStyle"),a=o.get("color");a=y(a)?a:[a];for(var s=e.coordinateSystem.getRect(),l=i.isHorizontal(),u=0,h=i.getTicksCoords({tickModel:n}),c=[],d=[],f=o.getLineStyle(),p=0;p1){var c;"string"==typeof o?c=DD[o]:"function"==typeof o&&(c=o),c&&t.setData(n.downSample(n.mapDimension(s.dim),1/h,c,CD))}}}}}("line"));var $D=YI.extend({type:"series.__base_bar__",getInitialData:function(t,e){return ml(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),o=n.getLayout("offset"),a=n.getLayout("size");return i[e.getBaseAxis().isHorizontal()?0:1]+=o+a/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});$D.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});var JD=Qb([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),QD={getBarItemStyle:function(t){var e=JD(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},tC=["itemStyle","barBorderWidth"];a(No.prototype,QD),Zs({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,o=this.group,a=t.getData(),r=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?n=l.isHorizontal():"polar"===s.type&&(n="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;a.diff(r).add(function(e){if(a.hasValue(e)){var i=a.getItemModel(e),r=iC[s.type](a,e,i),l=eC[s.type](a,e,i,r,n,u);a.setItemGraphicEl(e,l),o.add(l),Eh(l,a,e,i,r,t,n,"polar"===s.type)}}).update(function(e,i){var l=r.getItemGraphicEl(i);if(a.hasValue(e)){var h=a.getItemModel(e),c=iC[s.type](a,e,h);l?Io(l,{shape:c},u,e):l=eC[s.type](a,e,h,c,n,u,!0),a.setItemGraphicEl(e,l),o.add(l),Eh(l,a,e,h,c,t,n,"polar"===s.type)}else o.remove(l)}).remove(function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===s.type?e&&Nh(t,u,e):e&&Oh(t,u,e)}).execute(),this._data=a},_renderLarge:function(t,e,i){this._clear(),zh(t,this.group)},_incrementalRenderLarge:function(t,e){zh(e,this.group,!0)},dispose:B,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl(function(e){"sector"===e.type?Oh(e.dataIndex,t,e):Nh(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var eC={cartesian2d:function(t,e,i,n,o,r,s){var l=new yM({shape:a({},n)});if(r){var u=l.shape,h=o?"height":"width",c={};u[h]=0,c[h]=n[h],zM[s?"updateProps":"initProps"](l,{shape:c},r,e)}return l},polar:function(t,e,i,n,o,a,s){var l=n.startAngle0?1:-1,r=n.height>0?1:-1;return{x:n.x+a*o/2,y:n.y+r*o/2,width:n.width-a*o,height:n.height-r*o}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},nC=Pn.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,o=this.__valueIdx,a=0;a0&&"scale"!==u){var d=o.getItemLayout(0),f=Math.max(i.getWidth(),i.getHeight())/2,p=m(r.removeClipPath,r);r.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else r.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(t,e,i,n,o,a,r){var s=new hM({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:o}});return To(s,{shape:{endAngle:n+(o?1:-1)*Math.PI*2}},r,a),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(n*n+o*o);return a<=i.r&&a>=i.r0}}});var lC=function(t,e){d(e,function(e){e.update="updateView",Es(e,function(i,n){var o={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);o[i]=t.isSelected(i)||!1})}),{name:i.name,selected:o}})})},uC=function(t){return{getTargetSeries:function(e){var i={},n=R();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t,e){var i=t.getRawData(),n={},o=t.getData();o.each(function(t){var e=o.getRawIndex(t);n[e]=t}),i.each(function(e){var a=n[e],r=null!=a&&o.getItemVisual(a,"color",!0);if(r)i.setItemVisual(e,"color",r);else{var s=i.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",s),null!=a&&o.setItemVisual(a,"color",s)}})}}},hC=function(t,e,i,n){var o,a,r=t.getData(),s=[],l=!1;r.each(function(i){var n,u,h,c,d=r.getItemLayout(i),f=r.getItemModel(i),p=f.getModel("label"),g=p.get("position")||f.get("emphasis.label.position"),m=f.getModel("labelLine"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),w=Math.sin(x);o=d.cx,a=d.cy;var b="inside"===g||"inner"===g;if("center"===g)n=d.cx,u=d.cy,c="center";else{var S=(b?(d.r+d.r0)/2*_:d.r*_)+o,M=(b?(d.r+d.r0)/2*w:d.r*w)+a;if(n=S+3*_,u=M+3*w,!b){var I=S+_*(v+e-d.r),T=M+w*(v+e-d.r),A=I+(_<0?-1:1)*y,D=T;n=A+(_<0?-5:5),u=D,h=[[S,M],[I,T],[A,D]]}c=b?"center":_>0?"left":"right"}var C=p.getFont(),L=p.get("rotate")?_<0?-x+Math.PI:-x:0,k=ke(t.getFormattedLabel(i,"normal")||r.getName(i),C,c,"top");l=!!L,d.label={x:n,y:u,position:g,height:k.height,len:v,len2:y,linePoints:h,textAlign:c,verticalAlign:"middle",rotation:L,inside:b},b||s.push(d.label)}),!l&&t.get("avoidLabelOverlap")&&Hh(s,o,a,e,i,n)},cC=2*Math.PI,dC=Math.PI/180,fC=function(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf(function(t){for(var e=n.getName(t),o=0;o=0;s--){var l=2*s,u=n[l]-a/2,h=n[l+1]-r/2;if(t>=u&&e>=h&&t<=u+a&&e<=h+r)return s}return-1}}),gC=Uh.prototype;gC.isPersistent=function(){return!this._incremental},gC.updateData=function(t){this.group.removeAll();var e=new pC({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},gC.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)})}},gC.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new Zn({silent:!0})),this.group.add(this._incremental)):this._incremental=null},gC.incrementalUpdate=function(t,e){var i;this._incremental?(i=new pC,this._incremental.addDisplayable(i,!0)):((i=new pC({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},gC._setCommon=function(t,e,i){var n=e.hostModel,o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.symbolProxy=Jl(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<4;t.useStyle(n.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var r=e.getVisual("color");r&&t.setColor(r),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))}))},gC.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},gC._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},Zs({type:"scatter",render:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=AD().reset(t);o.progress&&o.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new Uh:new Du,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),Bs(TD("scatter","circle")),zs(AD("scatter")),u(Xh,aD),jh.prototype.getIndicatorAxes=function(){return this._indicatorAxes},jh.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},jh.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},jh.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var o,a=Math.atan2(-i,e),r=1/0,s=-1,l=0;ln[0]&&isFinite(c)&&isFinite(n[0]))}else{r.getTicks().length-1>a&&(u=i(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(a/2);r.setExtent(Go(d-f*u),Go(d+(a-f)*u)),r.setInterval(u)}})},jh.dimensions=[],jh.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var o=new jh(n,t,e);i.push(o),n.coordinateSystem=o}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},Fa.register("radar",jh);var mC=ND.valueAxis,vC=(Fs({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),o=this.get("scale"),s=this.get("axisLine"),l=this.get("axisTick"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),g=this.get("triggerEvent"),m=f(this.get("indicator")||[],function(f){null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var m=h;if(null!=f.color&&(m=r({color:f.color},h)),f=n(i(f),{boundaryGap:t,splitNumber:e,scale:o,axisLine:s,axisTick:l,axisLabel:u,name:f.text,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:g},!1),c||(f.name=""),"string"==typeof d){var v=f.name;f.name=d.replace("{value}",null!=v?v:"")}else"function"==typeof d&&(f.name=d(f.name,f));var y=a(new No(f,null,this.ecModel),UA);return y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this.getIndicatorModels=function(){return m}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:n({lineStyle:{color:"#bbb"}},mC.axisLine),axisLabel:Yh(mC.axisLabel,!1),axisTick:Yh(mC.axisTick,!1),splitLine:Yh(mC.splitLine,!0),splitArea:Yh(mC.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]);Ws({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;d(f(e.getIndicatorAxes(),function(t){return new FD(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){d(vC,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var o=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),p=l.get("color"),g=u.get("color");p=y(p)?p:[p],g=y(g)?g:[g];var m=[],v=[];if("circle"===o)for(var x=n[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b"+f(i,function(i,n){var o=e.get(e.mapDimension(i.dim),t);return ia(i.name+" : "+o)}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});Zs({type:"radar",render:function(t,e,n){function o(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var o=qh(t.getItemVisual(e,"symbolSize")),a=Jl(i,-1,-1,2,2,n);return a.attr({style:{strokeNoScale:!0},z2:100,scale:[o[0]/2,o[1]/2]}),a}}function a(e,i,n,a,r,s){n.removeAll();for(var l=0;l"+ia(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}}),aC);var EC="\0_ec_interaction_mutex";Es({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),h(oc,fw);var RC={axisPointer:1,tooltip:1,brush:1};xc.prototype={constructor:xc,draw:function(t,e,i,n,o){var a="geo"===t.mainType,r=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},function(e){r||e.getHostGeoModel()!==t||(r=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,h=s.scale,c={position:s.position,scale:h};!l.childAt(0)||o?u.attr(c):Io(u,c,t),l.removeAll();var f=["itemStyle"],p=["emphasis","itemStyle"],g=["label"],m=["emphasis","label"],v=R();d(s.regions,function(e){var i=v.get(e.name)||v.set(e.name,new tb),n=new MM({shape:{paths:[]}});i.add(n);var o,s=(C=t.getRegionModel(e.name)||t).getModel(f),u=C.getModel(p),c=mc(s),y=mc(u),x=C.getModel(g),_=C.getModel(m);if(r){o=r.indexOfName(e.name);var w=r.getItemVisual(o,"color",!0);w&&(c.fill=w)}d(e.geometries,function(t){if("polygon"===t.type){n.shape.paths.push(new pM({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new pM({shape:{points:t.interiors[e]}}))}}),n.setStyle(c),n.style.strokeNoScale=!0,n.culling=!0;var b=x.get("show"),S=_.get("show"),M=r&&isNaN(r.get(r.mapDimension("value"),o)),I=r&&r.getItemLayout(o);if(a||M&&(b||S)||I&&I.showLabel){var T,A=a?e.name:o;(!r||o>=0)&&(T=t);var D=new rM({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});go(D.style,D.hoverStyle={},x,_,{labelFetcher:T,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(D)}if(r)r.setItemGraphicEl(o,i);else{var C=t.getRegionModel(e.name);n.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:C&&C.option||{}}}(i.__regions||(i.__regions=[])).push(e),fo(i,y,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)}),this._updateController(t,e,i),vc(this,t,l,i,n),yc(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&OC.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&d(OC.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}var o=t.coordinateSystem,r=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=o.getZoom(),r.enable(t.get("roam")||!1);var l=t.mainType;r.off("pan").on("pan",function(t){this._mouseDownFlag=!1,fc(s,t.dx,t.dy),i.dispatchAction(a(n(),{dx:t.dx,dy:t.dy}))},this),r.off("zoom").on("zoom",function(t){if(this._mouseDownFlag=!1,pc(s,t.scale,t.originX,t.originY),i.dispatchAction(a(n(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])})}},this),r.setPointerChecker(function(e,n,a){return o.getViewRectAfterRoam().contain(n,a)&&!gc(e,i,t)})}};var zC="__seriesMapHighDown",BC="__seriesMapCallKey";Zs({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(a=this._mapDraw)&&o.add(a.group);else if(t.needsDrawMap){var a=this._mapDraw||new xc(i,!0);o.add(a.group),a.draw(t,e,i,this,n),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(e,i){if(!isNaN(e)){var r=n.getItemLayout(i);if(r&&r.point){var s=r.point,l=r.offset,u=new sM({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:8+(l?0:NM+1)});if(!l){var h=t.mainSeries.getData(),c=n.getName(i),d=h.indexOfName(c),f=n.getItemModel(i),p=f.getModel("label"),g=f.getModel("emphasis.label"),m=h.getItemGraphicEl(d),y=A(t.getFormattedLabel(d,"normal"),c),x=A(t.getFormattedLabel(d,"emphasis"),y),_=m[zC],w=Math.random();if(!_){_=m[zC]={};var b=v(_c,!0),S=v(_c,!1);m.on("mouseover",b).on("mouseout",S).on("emphasis",b).on("normal",S)}m[BC]=w,a(_,{recordVersion:w,circle:u,labelModel:p,hoverLabelModel:g,emphasisText:x,normalText:y}),wc(_,!1)}o.add(u)}}})}}),Es({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var o=bc(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&d(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})});var VC=Q;h(Sc,Tw),Mc.prototype={constructor:Mc,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new de(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new de(t,e,i,n)},transformTo:function(t,e,i,n){var o=this.getBoundingRect(),a=this._rawTransformable;a.transform=o.calculateTransform(new de(t,e,i,n)),a.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=Q([],n,t),i=Q([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),wt(this.transform||(this.transform=[]),e.transform||xt()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Tt(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?VC(i,t,n):G(i,t)},pointToData:function(t){var e=this.invTransform;return e?VC([],t,e):[t[0],t[1]]},convertToPixel:v(Ic,"dataToPoint"),convertFromPixel:v(Ic,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},h(Mc,Tw),Tc.prototype={constructor:Tc,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;ie&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),o=this.getLevelModel();return o||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(o||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Vc.prototype={constructor:Vc,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;ia&&(a=t.depth)});var r=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=r}),o.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),o=n.getValue(),a=n.name;n&&n!==i;)a=n.parentNode.name+"."+a,n=n.parentNode;return ia(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),Zs({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new tb,this._controller=new oc(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,i,n){var o=t.getData(),a=t.layoutInfo,r=this._mainGroup,s=t.get("layout");"radial"===s?r.attr("position",[a.x+a.width/2,a.y+a.height/2]):r.attr("position",[a.x,a.y]),this._updateViewCoordSys(t),this._updateController(t,e,i);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};o.diff(l).add(function(e){td(o,e)&&id(o,e,null,r,t,u)}).update(function(e,i){var n=l.getItemGraphicEl(i);td(o,e)?id(o,e,n,r,t,u):n&&nd(l,i,n,r,t,u)}).remove(function(e){var i=l.getItemGraphicEl(e);i&&nd(l,e,i,r,t,u)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&o.eachItemGraphicEl(function(e,n){e.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})})}),this._data=o},_updateViewCoordSys:function(t){var e=t.getData(),i=[];e.each(function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])});var n=[],o=[];fn(i,n,o),o[0]-n[0]==0&&(o[0]+=1,n[0]-=1),o[1]-n[1]==0&&(o[1]+=1,n[1]-=1);var a=t.coordinateSystem=new Mc;a.zoomLimit=t.get("scaleLimit"),a.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1]),a.setCenter(t.get("center")),a.setZoom(t.get("zoom")),this.group.attr({position:a.position,scale:a.scale}),this._viewCoordSys=a},_updateController:function(t,e,i){var n=this._controller,o=this._controllerHost,a=this.group;n.setPointerChecker(function(e,n,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(n,o)&&!gc(e,i,t)}),n.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(e){fc(o,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})},this).on("zoom",function(e){pc(o,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl(function(t,e){t.attr("scale",n)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,o=n&&n[0]||1;return((e.getZoom()-1)*i+1)/o},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),Es({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand})}),Es({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=bc(e.coordinateSystem,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})});Bs(TD("tree","circle")),zs(function(t,e){t.eachSeriesByType("tree",function(t){sd(t,e)})}),YI.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};dd(i);var n=t.levels||[];n=t.levels=fd(n,e);var o={};return o.levels=n,Vc.createTree(i,this,o).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=ta(y(i)?i[0]:i);return ia(e.getName(t)+": "+n)},getDataParams:function(t){var e=YI.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=cd(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},a(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=R(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var UC=5;pd.prototype={constructor:pd,render:function(t,e,i,n){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&i){var r=o.getModel("itemStyle"),s=r.getModel("textStyle"),l={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,r,s,n),da(a,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var o=n.getModel().get("name"),a=i.getTextRect(o),r=Math.max(a.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:n,text:o,width:r})}},_renderContent:function(t,e,i,n,o){for(var a=0,s=e.emptyItemWidth,l=t.get("breadcrumb.height"),u=ha(e.pos,e.box),h=e.totalWidth,c=e.renderList,d=c.length-1;d>=0;d--){var f=c[d],p=f.node,g=f.width,m=f.text;h>u.width&&(h-=g-s,g=s,m=null);var y=new pM({shape:{points:gd(a,0,g,l,d===c.length-1,0===d)},style:r(i.getItemStyle(),{lineJoin:"bevel",text:m,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:v(o,p)});this.group.add(y),md(y,t,p),a+=g+8}},remove:function(){this.group.removeAll()}};var XC=m,jC=tb,YC=yM,qC=d,KC=["label"],$C=["emphasis","label"],JC=["upperLabel"],QC=["emphasis","upperLabel"],tL=10,eL=1,iL=2,nL=Qb([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),oL=function(t){var e=nL(t);return e.stroke=e.fill=e.lineWidth=null,e};Zs({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){if(!(l(e.findComponents({mainType:"series",subType:"treemap",query:n}),t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var o=ld(n,["treemapZoomToNode","treemapRootToNode"],t),a=n&&n.type,r=t.layoutInfo,s=!this._oldTree,u=this._storage,h="treemapRootToNode"===a&&o&&u?{rootNodeGroup:u.nodeGroup[o.node.getRawIndex()],direction:n.direction}:null,c=this._giveContainerGroup(r),d=this._doRender(c,t,h);s||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?d.renderFinally():this._doAnimation(c,d,t,h),this._resetController(i),this._renderBreadcrumb(t,i,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new jC,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){function n(t,e,i,o,a){function r(t){return t.getId()}function s(r,s){var l=null!=r?t[r]:null,u=null!=s?e[s]:null,c=h(l,u,i,a);c&&n(l&&l.viewChildren||[],u&&u.viewChildren||[],c,o,a+1)}o?(e=t,qC(t,function(t,e){!t.isRemoved()&&s(e,e)})):new Xs(e,t,r,r).add(s).update(s).remove(v(s,null)).execute()}var o=e.getData().tree,a=this._oldTree,r={nodeGroup:[],background:[],content:[]},s={nodeGroup:[],background:[],content:[]},l=this._storage,u=[],h=v(yd,e,s,l,i,r,u);n(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&qC(t,function(t,i){var n=e[i];qC(t,function(t){t&&(n.push(t),t.__tmWillDelete=1)})}),e}(l);return this._oldTree=o,this._storage=s,{lastsForAnimation:r,willDeleteEls:c,renderFinally:function(){qC(c,function(t){qC(t,function(t){t.parent&&t.parent.remove(t)})}),qC(u,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var o=i.get("animationDurationUpdate"),r=i.get("animationEasing"),s=vd();qC(e.willDeleteEls,function(t,e){qC(t,function(t,i){if(!t.invisible){var a,l=t.parent;if(n&&"drillDown"===n.direction)a=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,h=l.__tmNodeHeight/2),a="nodeGroup"===e?{position:[u,h],style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}a&&s.add(t,a,o,r)}})}),qC(this._storage,function(t,i){qC(t,function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=a({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,r))})},this),this._state="animating",s.done(XC(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new oc(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",XC(this._onPan,this)),e.on("zoom",XC(this._onZoom,this)));var i=new de(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var a=new de(o.x,o.y,o.width,o.height),r=this.seriesModel.layoutInfo;e-=r.x,i-=r.y;var s=xt();St(s,s,[-e,-i]),It(s,s,[t.scale,t.scale]),St(s,s,[e,i]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var o=n.hostTree.data.getItemModel(n.dataIndex),a=o.get("link",!0),r=o.get("target",!0)||"blank";a&&window.open(a,r)}}}}},this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new pd(this.group))).render(t,e,i.node,XC(function(e){"animating"!==this._state&&(hd(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(n){var o=this._storage.background[n.getRawIndex()];if(o){var a=o.transformCoordToLocal(t,e),r=o.shape;if(!(r.x<=a[0]&&a[0]<=r.x+r.width&&r.y<=a[1]&&a[1]<=r.y+r.height))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}},this),i}});for(var aL=["treemapZoomToNode","treemapRender","treemapMove"],rL=0;rL=0&&t.call(e,i[o],o)},TL.eachEdge=function(t,e){for(var i=this.edges,n=i.length,o=0;o=0&&i[o].node1.dataIndex>=0&&i[o].node2.dataIndex>=0&&t.call(e,i[o],o)},TL.breadthFirstTraverse=function(t,e,i,n){if(Jd.isInstance(e)||(e=this._nodesMap[$d(e)]),e){for(var o="out"===i?"outEdges":"in"===i?"inEdges":"edges",a=0;a=0&&i.node2.dataIndex>=0});for(var o=0,a=n.length;o=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};h(Jd,AL("hostGraph","data")),h(Qd,AL("hostGraph","edgeData")),IL.Node=Jd,IL.Edge=Qd,Yi(Jd),Yi(Qd);var DL=function(t,e,i,n,o){for(var a=new IL(n),r=0;r "+f)),h++)}var p,g=i.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=ml(t,i);else{var m=Fa.get(g),v=m&&"view"!==m.type?m.dimensions||[]:[];l(v,"value")<0&&v.concat(["value"]);var y=_A(t,{coordDimensions:v});(p=new vA(y,i)).initData(t)}var x=new vA(["value"],i);return x.initData(u,s),o&&o(p,x),kc({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a},CL=Hs({type:"series.graph",init:function(t){CL.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){CL.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){CL.superApply(this,"mergeDefaultAndTheme",arguments),Ci(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i)return DL(n,i,this,!0,function(t,i){function n(t){return(t=this.parsePath(t))&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var a=o.getModel("edgeLabel"),r=new No({label:a.option},a.parentModel,e),s=o.getModel("emphasis.edgeLabel"),l=new No({emphasis:{label:s.option}},s.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(n),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),o=this.getDataParams(t,i),a=n.graph.getEdgeByIndex(t),r=n.getName(a.node1.dataIndex),s=n.getName(a.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),l=ia(l.join(" > ")),o.value&&(l+=" : "+ia(o.value)),l}return CL.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=f(this.option.categories||[],function(t){return null!=t.value?t:a({value:0},t)}),e=new vA(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return CL.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),LL=_M.prototype,kL=bM.prototype,PL=Un({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(tf(e)?LL:kL).buildPath(t,e)},pointAt:function(t){return tf(this.shape)?LL.pointAt.call(this,t):kL.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=tf(e)?[e.x2-e.x1,e.y2-e.y1]:kL.tangentAt.call(this,t);return q(i,i)}}),NL=["fromSymbol","toSymbol"],OL=rf.prototype;OL.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var o=1,a=this.parent;a;)a.scale&&(o/=a.scale[0]),a=a.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),u=r.pointAt(s),h=U([],u,l);if(q(h,h),e&&(e.attr("position",l),c=r.tangentAt(0),e.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),e.attr("scale",[o*s,o*s])),i){i.attr("position",u);var c=r.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),i.attr("scale",[o*s,o*s])}if(!n.ignore){n.attr("position",u);var d,f,p,g=5*o;if("end"===n.__position)d=[h[0]*g+u[0],h[1]*g+u[1]],f=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var m=s/2,v=[(c=r.tangentAt(m))[1],-c[0]],y=r.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),d=[y[0]+v[0]*g,y[1]+v[1]*g],f="center",p="bottom";var x=-Math.atan2(c[1],c[0]);u[0].8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||p,textAlign:n.__textAlign||f},position:d,scale:[o,o]})}}}},OL._createLine=function(t,e,i){var n=t.hostModel,o=of(t.getItemLayout(e));o.shape.percent=0,To(o,{shape:{percent:1}},n,e),this.add(o);var a=new rM({name:"label",lineLabelOriginalOpacity:1});this.add(a),d(NL,function(i){var n=nf(i,t,e);this.add(n),this[ef(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},OL.updateData=function(t,e,i){var n=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),r={shape:{}};af(r.shape,a),Io(o,r,n,e),d(NL,function(i){var n=t.getItemVisual(e,i),o=ef(i);if(this[o]!==n){this.remove(this.childOfName(i));var a=nf(i,t,e);this.add(a)}this[o]=n},this),this._updateCommonStl(t,e,i)},OL._updateCommonStl=function(t,e,i){var n=t.hostModel,o=this.childOfName("line"),a=i&&i.lineStyle,s=i&&i.hoverLineStyle,l=i&&i.labelModel,u=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);a=h.getModel("lineStyle").getLineStyle(),s=h.getModel("emphasis.lineStyle").getLineStyle(),l=h.getModel("label"),u=h.getModel("emphasis.label")}var c=t.getItemVisual(e,"color"),f=D(t.getItemVisual(e,"opacity"),a.opacity,1);o.useStyle(r({strokeNoScale:!0,fill:"none",stroke:c,opacity:f},a)),o.hoverStyle=s,d(NL,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:f}))},this);var p,g,m=l.getShallow("show"),v=u.getShallow("show"),y=this.childOfName("label");if((m||v)&&(p=c||"#000",null==(g=n.getFormattedLabel(e,"normal",t.dataType)))){var x=n.getRawValue(e);g=null==x?t.getName(e):isFinite(x)?Go(x):x}var _=m?g:null,w=v?A(n.getFormattedLabel(e,"emphasis",t.dataType),g):null,b=y.style;null==_&&null==w||(mo(y.style,l,{text:_},{autoColor:p}),y.__textAlign=b.textAlign,y.__verticalAlign=b.textVerticalAlign,y.__position=l.get("position")||"middle"),y.hoverStyle=null!=w?{text:w,textFill:u.getTextColor(!0),fontStyle:u.getShallow("fontStyle"),fontWeight:u.getShallow("fontWeight"),fontSize:u.getShallow("fontSize"),fontFamily:u.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,fo(this)},OL.highlight=function(){this.trigger("emphasis")},OL.downplay=function(){this.trigger("normal")},OL.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},OL.setLinePoints=function(t){var e=this.childOfName("line");af(e.shape,t),e.dirty()},u(rf,tb);var EL=sf.prototype;EL.isPersistent=function(){return!0},EL.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var o=hf(t);t.diff(n).add(function(i){lf(e,t,i,o)}).update(function(i,a){uf(e,n,t,a,i,o)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},EL.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},EL.incrementalPrepareUpdate=function(t){this._seriesScope=hf(t),this._lineData=null,this.group.removeAll()},EL.incrementalUpdate=function(t,e){for(var i=t.start;i=o/3?1:2),l=e.y-n(r)*a*(a>=o/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(r)*a,e.y+n(r)*a),t.lineTo(e.x+i(e.angle)*o,e.y+n(e.angle)*o),t.lineTo(e.x-i(r)*a,e.y-n(r)*a),t.lineTo(s,l)}}),YL=2*Math.PI,qL=(Ar.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),o=Sf(t,i);this._renderMain(t,e,i,n,o)},dispose:function(){},_renderMain:function(t,e,i,n,o){for(var a=this.group,r=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,h=(u-l)%YL,c=l,d=r.get("width"),f=0;f=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:A<-.4?"left":A>.4?"right":"center"},{autoColor:P}),silent:!0}))}if(g.get("show")&&T!==v){for(var N=0;N<=y;N++){var A=Math.cos(w),D=Math.sin(w),O=new _M({shape:{x1:A*c+u,y1:D*c+h,x2:A*(c-_)+u,y2:D*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&O.setStyle({stroke:n((T+N/y)/v)}),l.add(O),w+=S}w-=S}else w+=b}},_renderPointer:function(t,e,i,n,o,a,r,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var h=[+t.get("min"),+t.get("max")],c=[a,r],d=t.getData(),f=d.mapDimension("value");d.diff(u).add(function(e){var i=new jL({shape:{angle:a}});To(i,{shape:{angle:Bo(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).update(function(e,i){var n=u.getItemGraphicEl(i);Io(n,{shape:{angle:Bo(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var i=d.getItemModel(e),a=i.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:Vo(a.get("width"),o.r),r:Vo(a.get("length"),o.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(Bo(d.get(f,e),h,[0,1],!0))),fo(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,i,n,o){var a=t.getData(),r=a.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=o.cx+Vo(l[0],o.r),h=o.cy+Vo(l[1],o.r),c=+t.get("min"),d=+t.get("max"),f=n(Bo(t.getData().get(r,0),[c,d],[0,1],!0));this.group.add(new rM({silent:!0,style:mo({},s,{x:u,y:h,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,o){var a=t.getModel("detail"),r=+t.get("min"),s=+t.get("max");if(a.get("show")){var l=a.get("offsetCenter"),u=o.cx+Vo(l[0],o.r),h=o.cy+Vo(l[1],o.r),c=Vo(a.get("width"),o.r),d=Vo(a.get("height"),o.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=n(Bo(p,[r,s],[0,1],!0));this.group.add(new rM({silent:!0,style:mo({},a,{x:u,y:h,text:Mf(p,a.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),Hs({type:"series.funnel",init:function(t){qL.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return oC(this,["value"])},_defaultLabelLine:function(t){Ci(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=qL.superCall(this,"getDataParams",t),n=e.mapDimension("value"),o=e.getSum(n);return i.percent=o?+(e.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}})),KL=If.prototype,$L=["itemStyle","opacity"];KL.updateData=function(t,e,i){var n=this.childAt(0),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=t.getItemModel(e).get($L);l=null==l?1:l,n.useStyle({}),i?(n.setShape({points:s.points}),n.setStyle({opacity:0}),To(n,{style:{opacity:l}},o,e)):Io(n,{style:{opacity:l},shape:{points:s.points}},o,e);var u=a.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.setStyle(r({lineJoin:"round",fill:h},u.getItemStyle(["opacity"]))),n.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),fo(this)},KL._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");Io(i,{shape:{points:r.linePoints||r.linePoints}},o,e),Io(n,{style:{x:r.x,y:r.y}},o,e),n.attr({rotation:r.rotation,origin:[r.x,r.y],z2:10});var l=a.getModel("label"),u=a.getModel("emphasis.label"),h=a.getModel("labelLine"),c=a.getModel("emphasis.labelLine"),s=t.getItemVisual(e,"color");go(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!r.inside},{textAlign:r.textAlign,textVerticalAlign:r.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s}),i.setStyle(h.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle()},u(If,tb);Ar.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),o=this._data,a=this.group;n.diff(o).add(function(t){var e=new If(n,t);n.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var i=o.getItemGraphicEl(e);i.updateData(n,t),a.add(i),n.setItemGraphicEl(t,i)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});Bs(uC("funnel")),zs(function(t,e,i){t.eachSeriesByType("funnel",function(t){var i=t.getData(),n=i.mapDimension("value"),o=t.get("sort"),a=Tf(t,e),r=Af(i,o),s=[Vo(t.get("minSize"),a.width),Vo(t.get("maxSize"),a.width)],l=i.getDataExtent(n),u=t.get("min"),h=t.get("max");null==u&&(u=Math.min(l[0],0)),null==h&&(h=l[1]);var c=t.get("funnelAlign"),d=t.get("gap"),f=(a.height-d*(i.count()-1))/i.count(),p=a.y,g=function(t,e){var o,r=Bo(i.get(n,t)||0,[u,h],s,!0);switch(c){case"left":o=a.x;break;case"center":o=a.x+(a.width-r)/2;break;case"right":o=a.x+a.width-r}return[[o,e],[o+r,e]]};"ascending"===o&&(f=-f,d=-d,p+=a.height,r=r.reverse());for(var m=0;ma&&(e[1-n]=e[n]+h.sign*a),e},tk=d,ek=Math.min,ik=Math.max,nk=Math.floor,ok=Math.ceil,ak=Go,rk=Math.PI;Nf.prototype={type:"parallel",constructor:Nf,_init:function(t,e,i){var n=t.dimensions,o=t.parallelAxisIndex;tk(n,function(t,i){var n=o[i],a=e.getComponent("parallelAxis",n),r=this._axesMap.set(t,new JL(t,Hl(a),[0,0],a.get("type"),n)),s="category"===r.type;r.onBand=s&&a.get("boundaryGap"),r.inverse=a.get("inverse"),a.axis=r,r.model=a,r.coordinateSystem=a.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],r=t[o];return a>=i&&a<=i+e.axisLength&&r>=n&&r<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();tk(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),Wl(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=ca(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],o=["width","height"],a=e.get("layout"),r="horizontal"===a?0:1,s=i[o[r]],l=[0,s],u=this.dimensions.length,h=Of(e.get("axisExpandWidth"),l),c=Of(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");f?(t=Of(f[1]-f[0],l),f[1]=f[0]+t):(t=Of(h*(c-1),l),(f=[h*(e.get("axisExpandCenter")||nk(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-c);p<3&&(p=0);var g=[nk(ak(f[0]/h,1))+1,ok(ak(f[1]/h,1))-1],m=p/h*f[0];return{layout:a,pixelDimIndex:r,layoutBase:i[n[r]],layoutLength:s,axisBase:i[n[1-r]],axisLength:i[o[1-r]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),o=n.layout;e.each(function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),tk(i,function(e,i){var a=(n.axisExpandable?Rf:Ef)(i,n),r={horizontal:{x:a.position,y:n.axisLength},vertical:{x:0,y:a.position}},s={horizontal:rk/2,vertical:0},l=[r[o].x+t.x,r[o].y+t.y],u=s[o],h=xt();Mt(h,h,u),St(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var o=this._axesMap,a=this.dimensions,r=[],s=[];d(a,function(e){r.push(t.mapDimension(e)),s.push(o.get(e).model)});for(var l=this.hasAxisBrushed(),u=i;uo*(1-h[0])?(l="jump",r=s-o*(1-h[2])):(r=s-o*h[1])>=0&&(r=s-o*(1-h[1]))<=0&&(r=0),(r*=e.axisExpandWidth/u)?QL(r,n,a,"all"):l="none";else{o=n[1]-n[0];(n=[ik(0,a[1]*s/o-o/2)])[1]=ek(a[1],n[0]+o),n[0]=n[1]-o}return{axisExpandWindow:n,behavior:l}}},Fa.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",function(n,o){var a=new Nf(n,t,e);a.name="parallel_"+o,a.resize(n,e),n.coordinateSystem=a,a.model=n,i.push(a)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}});var sk=lI.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return Qb([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i(t);if(e)for(var n=e.length-1;n>=0;n--)Fo(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=e.length;n5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Ip(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};Ns(function(t){Cf(t),Lf(t)}),YI.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return Tp(i,this),ml(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,o){t===e&&n.push(i.getRawIndex(o))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});var Dk=.3,Ck=(Ar.extend({type:"parallel",init:function(){this._dataGroup=new tb,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,n){var o=this._dataGroup,a=t.getData(),r=this._data,s=t.coordinateSystem,l=s.dimensions,u=kp(t);if(a.diff(r).add(function(t){Pp(Lp(a,o,t,l,s),a,t,u)}).update(function(e,i){var o=r.getItemGraphicEl(i),h=Cp(a,e,l,s);a.setItemGraphicEl(e,o),Io(o,{shape:{points:h}},n&&!1===n.animation?null:t,e),Pp(o,a,e,u)}).remove(function(t){var e=r.getItemGraphicEl(t);o.remove(e)}).execute(),!this._initialized){this._initialized=!0;var h=Dp(s,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(h)}this._data=a},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),o=e.coordinateSystem,a=o.dimensions,r=kp(e),s=t.start;sn&&(n=e)}),d(e,function(e){var o=new hL({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",o);var a=e.getModel().get("itemStyle.color");null!=a&&e.setVisual("color",a)})}})});var Ok={_baseAxisDim:null,getInitialData:function(t,e){var i,n,o=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),r=o.get("type"),s=a.get("type");"category"===r?(t.layout="horizontal",i=o.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",i=a.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],f=[o,a],p=f[u].get("type"),g=f[1-u].get("type"),m=t.data;if(m&&n){var v=[];d(m,function(t,e){var i;t.value&&y(t.value)?(i=t.value.slice(),t.value.unshift(e)):y(t)?(i=t.slice(),t.unshift(e)):i=t,v.push(i)}),t.data=v}var x=this.defaultValueDimensions;return oC(this,{coordDimensions:[{name:h,type:qs(p),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:qs(g),dimsDef:x.slice()}],dimensionsCount:x.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};h(YI.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}}),Ok,!0);var Ek=["itemStyle"],Rk=["emphasis","itemStyle"],zk=(Ar.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),o=this.group,a=this._data;this._data||o.removeAll();var r="horizontal"===t.get("layout")?1:0;n.diff(a).add(function(t){if(n.hasValue(t)){var e=ig(n.getItemLayout(t),n,t,r,!0);n.setItemGraphicEl(t,e),o.add(e)}}).update(function(t,e){var i=a.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?ng(s,i,n,t):i=ig(s,n,t,r),o.add(i),n.setItemGraphicEl(t,i)}else o.remove(i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&o.remove(e)}).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:B}),Pn.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n0?jk:Yk)}function n(t,e){return e.get(t>0?Uk:Xk)}var o=t.getData(),a=t.pipelineContext.large;if(o.setVisual({legendSymbol:"roundRect",colorP:i(1,t),colorN:i(-1,t),borderColorP:n(1,t),borderColorN:n(-1,t)}),!e.isSeriesFiltered(t))return!a&&{progress:function(t,e){for(var o;null!=(o=t.next());){var a=e.getItemModel(o),r=e.getItemLayout(o).sign;e.setItemVisual(o,{color:i(r,a),borderColor:n(r,a)})}}}}},Kk="undefined"!=typeof Float32Array?Float32Array:Array,$k={seriesType:"candlestick",plan:$I(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=pg(t,i),o=0,a=1,r=["x","y"],s=i.mapDimension(r[o]),l=i.mapDimension(r[a],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,i){for(var n,r,l=new Kk(5*t.count),f=0,p=[],g=[];null!=(r=t.next());){var m=i.get(s,r),v=i.get(u,r),y=i.get(h,r),x=i.get(c,r),_=i.get(d,r);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=fg(i,r,v,y,h),p[o]=m,p[a]=x,n=e.dataToPoint(p,null,g),l[f++]=n?n[0]:NaN,l[f++]=n?n[1]:NaN,p[a]=_,n=e.dataToPoint(p,null,g),l[f++]=n?n[1]:NaN)}i.setLayout("largePoints",l)}:function(t,i){function r(t,i){var n=[];return n[o]=i,n[a]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function l(t,e,i){var a=e.slice(),r=e.slice();a[o]=Jn(a[o]+n/2,1,!1),r[o]=Jn(r[o]-n/2,1,!0),i?t.push(a,r):t.push(r,a)}function f(t){return t[o]=Jn(t[o],1),t}for(var p;null!=(p=t.next());){var g=i.get(s,p),m=i.get(u,p),v=i.get(h,p),y=i.get(c,p),x=i.get(d,p),_=Math.min(m,v),w=Math.max(m,v),b=r(_,g),S=r(w,g),M=r(y,g),I=r(x,g),T=[];l(T,S,0),l(T,b,1),T.push(f(I),f(S),f(M),f(b)),i.setItemLayout(p,{sign:fg(i,p,m,v,h),initBaseline:m>v?S[a]:b[a],ends:T,brushRect:function(t,e,i){var s=r(t,i),l=r(e,i);return s[o]-=n/2,l[o]-=n/2,{x:s[0],y:s[1],width:a?n:l[0]-s[0],height:a?l[1]-s[1]:n}}(y,x,g)})}}}}};Ns(function(t){t&&y(t.series)&&d(t.series,function(t){w(t)&&"k"===t.type&&(t.type="candlestick")})}),Bs(qk),zs($k),YI.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return ml(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var Jk=vg.prototype;Jk.stopEffectAnimation=function(){this.childAt(1).removeAll()},Jk.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),o=0;o<3;o++){var a=Jl(e,-1,-1,2,2,i);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var r=-o/3*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(r).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(r).start(),n.add(a)}mg(n,t)},Jk.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],o=0;o "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),iP=xg.prototype;iP.createLine=function(t,e,i){return new rf(t,e,i)},iP._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),o=i.get("symbol");y(n)||(n=[n,n]);var a=i.get("color")||t.getItemVisual(e,"color"),r=this.childAt(1);this._symbolType!==o&&(this.remove(r),(r=Jl(o,-.5,-.5,1,1,a)).z2=100,r.culling=!0,this.add(r)),r&&(r.setStyle("shadowColor",a),r.setStyle(i.getItemStyle(["color"])),r.attr("scale",n),r.setColor(a),r.attr("scale",n),this._symbolType=o,this._updateEffectAnimation(t,i,e))},iP._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var o=this,a=t.getItemLayout(i),r=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=T(e.get("delay"),function(e){return e/t.count()*r/3}),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,a),l>0&&(r=this.getLineLength(n)/l*1e3),r!==this._period||s!==this._loop){n.stopAnimation();var c=u;h&&(c=u(i)),n.__t>0&&(c=-r*n.__t),n.__t=0;var d=n.animate("",s).when(r,{__t:1}).delay(c).during(function(){o.updateSymbolPosition(n)});s||d.done(function(){o.remove(n)}),d.start()}this._period=r,this._loop=s}},iP.getLineLength=function(t){return uw(t.__p1,t.__cp1)+uw(t.__cp1,t.__p2)},iP.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},iP.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},iP.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t,a=t.position,r=sn,s=ln;a[0]=r(e[0],n[0],i[0],o),a[1]=r(e[1],n[1],i[1],o);var l=s(e[0],n[0],i[0],o),u=s(e[1],n[1],i[1],o);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},iP.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},u(xg,tb);var nP=_g.prototype;nP._createPolyline=function(t,e,i){var n=t.getItemLayout(e),o=new gM({shape:{points:n}});this.add(o),this._updateCommonStl(t,e,i)},nP.updateData=function(t,e,i){var n=t.hostModel;Io(this.childAt(0),{shape:{points:t.getItemLayout(e)}},n,e),this._updateCommonStl(t,e,i)},nP._updateCommonStl=function(t,e,i){var n=this.childAt(0),o=t.getItemModel(e),a=t.getItemVisual(e,"color"),s=i&&i.lineStyle,l=i&&i.hoverLineStyle;i&&!t.hasItemOption||(s=o.getModel("lineStyle").getLineStyle(),l=o.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(r({strokeNoScale:!0,fill:"none",stroke:a},s)),n.hoverStyle=l,fo(this)},nP.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},u(_g,tb);var oP=wg.prototype;oP.createLine=function(t,e,i){return new _g(t,e,i)},oP.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,o=1;o=0&&!(n[r]<=e);r--);r=Math.min(r,o-2)}else{for(var r=a;re);r++);r=Math.min(r-1,o-2)}J(t.position,i[r],i[r+1],(e-n[r])/(n[r+1]-n[r]));var s=i[r+1][0]-i[r][0],l=i[r+1][1]-i[r][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},u(wg,xg);var aP=Un({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(r=0;r0){t.moveTo(i[r++],i[r++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,o=i.curveness;if(i.polyline)for(var a=0,r=0;r0)for(var l=n[r++],u=n[r++],h=1;h0){if(_n(l,u,(l+c)/2-(u-d)*o,(u+d)/2-(c-l)*o,c,d))return a}else if(yn(l,u,c,d))return a;a++}return-1}}),rP=bg.prototype;rP.isPersistent=function(){return!this._incremental},rP.updateData=function(t){this.group.removeAll();var e=new aP({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},rP.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new Zn({silent:!0})),this.group.add(this._incremental)):this._incremental=null},rP.incrementalUpdate=function(t,e){var i=new aP;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},rP.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},rP._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=e.getVisual("color");o&&t.setStyle("stroke",o),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},rP._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var sP={seriesType:"lines",plan:$I(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(o,a){var r=[];if(n){var s,l=o.end-o.start;if(i){for(var u=0,h=o.start;h0){var I=a(v)?s:l;v>0&&(v=v*S+b),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=iw()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,o=n[i]||(n[i]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,s=0;s<256;s++)e[i](s/255,!0,a),o[r++]=a[0],o[r++]=a[1],o[r++]=a[2],o[r++]=a[3];return o}},Zs({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):Ag(o)&&this._renderOnGeo(o,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,o){var r,s,l=t.coordinateSystem;if("cartesian2d"===l.type){var u=l.getAxis("x"),h=l.getAxis("y");r=u.getBandWidth(),s=h.getBandWidth()}for(var c=this.group,d=t.getData(),f=t.getModel("itemStyle").getItemStyle(["color"]),p=t.getModel("emphasis.itemStyle").getItemStyle(),g=t.getModel("label"),m=t.getModel("emphasis.label"),v=l.type,y="cartesian2d"===v?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],x=i;x=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[o]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-o]=0===o?i.y+i.height/2:i.x+i.width/2,n}},Fa.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",function(n,o){var a=new $g(n,t,e);a.name="single_"+o,a.resize(n,e),n.coordinateSystem=a,i.push(a)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i},dimensions:$g.prototype.dimensions});var gP=["axisLine","axisTickLabel","axisName"],mP=XD.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var o=this.group;o.removeAll();var a=Jg(t),r=new FD(t,a);d(gP,r.add,r),o.add(r.getGroup()),t.get("splitLine.show")&&this._splitLine(t),mP.superCall(this,"render",t,e,i,n)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),o=n.get("width"),a=n.get("color");a=a instanceof Array?a:[a];for(var r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:i}),c=[],d=[],f=0;f=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){gm(e.getZr(),"axisPointer"),IP.superApply(this._model,"remove",arguments)},dispose:function(t,e){gm("axisPointer",e),IP.superApply(this._model,"dispose",arguments)}}),TP=Bi(),AP=i,DP=m;(mm.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var r=this._group,s=this._handle;if(!a||"hide"===a)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeElOption(l,o,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(r){var c=v(vm,e,h);this.updatePointerEl(r,l,c,e),this.updateLabelEl(r,l,c,e)}else r=this._group=new tb,this.createPointerEl(r,l,t,e),this.createLabelEl(r,l,t,e),i.getZr().add(r);wm(r,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,o="category"===n.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===i||null==i){var r=this.animationThreshold;if(o&&n.getBandWidth()>r)return!0;if(a){var s=Mh(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return!0===i},makeElOption:function(t,e,i,n,o){},createPointerEl:function(t,e,i,n){var o=e.pointer;if(o){var a=TP(t).pointerEl=new zM[o.type](AP(e.pointer));t.add(a)}},createLabelEl:function(t,e,i,n){if(e.label){var o=TP(t).labelEl=new yM(AP(e.label));t.add(o),xm(o,n)}},updatePointerEl:function(t,e,i){var n=TP(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var o=TP(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{shape:e.label.shape,position:e.label.position}),xm(o,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status");if(!o.get("show")||!a||"hide"===a)return n&&i.remove(n),void(this._handle=null);var r;this._handle||(r=!0,n=this._handle=Po(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){mw(t.event)},onmousedown:DP(this._onHandleDragMove,this,0,0),drift:DP(this._onHandleDragMove,this),ondragend:DP(this._onHandleDragEnd,this)}),i.add(n)),wm(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(o.getItemStyle(null,s));var l=o.get("size");y(l)||(l=[l,l]),n.attr("scale",[l[0]/2,l[1]/2]),Nr(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)}},_moveHandleToValue:function(t,e){vm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,_m(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(_m(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(_m(n)),TP(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=mm,ji(mm);var CP=mm.extend({makeElOption:function(t,e,i,n,o){var a=i.axis,r=a.grid,s=n.get("type"),l=km(r,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var h=bm(n),c=LP[s](a,u,l,h);c.style=h,t.graphicKey=c.type,t.pointer=c}Am(e,t,Lh(r.model,i),i,n,o)},getHandleTransform:function(t,e,i){var n=Lh(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Tm(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var o=i.axis,a=o.grid,r=o.getGlobalExtent(!0),s=km(a,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(r[1],u[l]),u[l]=Math.max(r[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:d[l]}}}),LP={line:function(t,e,i,n){var o=Dm([e,i[0]],[e,i[1]],Pm(t));return Kn({shape:o,style:n}),{type:"Line",shape:o}},shadow:function(t,e,i,n){var o=Math.max(1,t.getBandWidth()),a=i[1]-i[0];return{type:"Rect",shape:Cm([e-o/2,i[0]],[o,a],Pm(t))}}};XD.registerAxisPointerClass("CartesianAxisPointer",CP),Ns(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!y(e)&&(t.axisPointer.link=[e])}}),Os(VT.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=vh(t,e)}),Es({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,i){var n=t.currTrigger,o=[t.x,t.y],a=t,r=t.dispatchAction||m(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){lm(o)&&(o=xP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=lm(o),u=a.axesInfo,h=s.axesInfo,c="leave"===n||lm(o),d={},f={},p={list:[],map:{}},g={showPointer:wP(em,f),showTooltip:wP(im,p)};_P(s.coordSysMap,function(t,e){var i=l||t.containPoint(o);_P(s.coordSysAxesInfo[e],function(t,e){var n=t.axis,a=rm(u,t);if(!c&&i&&(!u||a)){var r=a&&a.value;null!=r||l||(r=n.pointToData(o)),null!=r&&Qg(t,r,g,!1,d)}})});var v={};return _P(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&_P(i.axesInfo,function(e,n){var o=f[n];if(e!==t&&o){var a=o.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,sm(e),sm(t)))),v[t.key]=a}})}),_P(v,function(t,e){Qg(h[e],t,g,!0,d)}),nm(f,h,d),om(p,o,t,r),am(h,0,i),d}});var kP=["x","y"],PP=["width","height"],NP=mm.extend({makeElOption:function(t,e,i,n,o){var a=i.axis,r=a.coordinateSystem,s=Om(r,1-Nm(a)),l=r.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=bm(n),c=OP[u](a,l,s,h);c.style=h,t.graphicKey=c.type,t.pointer=c}Am(e,t,Jg(i),i,n,o)},getHandleTransform:function(t,e,i){var n=Jg(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Tm(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var o=i.axis,a=o.coordinateSystem,r=Nm(o),s=Om(a,r),l=t.position;l[r]+=e[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var u=Om(a,1-r),h=(u[1]+u[0])/2,c=[h,h];return c[r]=l[r],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),OP={line:function(t,e,i,n){var o=Dm([e,i[0]],[e,i[1]],Nm(t));return Kn({shape:o,style:n}),{type:"Line",shape:o}},shadow:function(t,e,i,n){var o=t.getBandWidth(),a=i[1]-i[0];return{type:"Rect",shape:Cm([e-o/2,i[0]],[o,a],Nm(t))}}};XD.registerAxisPointerClass("SingleAxisPointer",NP),Ws({type:"single"});var EP=YI.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){EP.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){var e=t.length,i=[];Zi(t,function(t){return t[2]}).buckets.each(function(t,e){i.push({name:e,dataList:t})});for(var n=i.length,o=-1,a=-1,r=0;ro&&(o=s,a=r)}for(var l=0;lMath.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(f=u.r0+y,p>Math.PI/2&&(x="right")):"right"===x&&(f=u.r-y,p>Math.PI/2&&(x="left")):(f=(u.r+u.r0)/2,x="center"),d.attr("style",{text:l,textAlign:x,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var _=f*g+u.cx,w=f*m+u.cy;d.attr("position",[_,w]);var b=n("rotate"),S=0;"radial"===b?(S=-p)<-Math.PI/2&&(S+=Math.PI):"tangential"===b?(S=Math.PI/2-p)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"==typeof b&&(S=b*Math.PI/180),d.attr("rotation",S)},VP._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var o=this,a=function(){o.onEmphasis(n)},r=function(){o.onNormal()};i.isAnimationEnabled()&&t.on("mouseover",a).on("mouseout",r).on("emphasis",a).on("normal",r).on("downplay",function(){o.onDownplay()}).on("highlight",function(){o.onHighlight()})},u(Vm,tb);Ar.extend({type:"sunburst",init:function(){},render:function(t,e,i,n){function o(i,n){if(c||!i||i.getValue()||(i=null),i!==l&&n!==l)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),s.setItemGraphicEl(i.dataIndex,n.piece)):a(n);else if(i){var o=new Vm(i,t,e);h.add(o),s.setItemGraphicEl(i.dataIndex,o)}}function a(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}var r=this;this.seriesModel=t,this.api=i,this.ecModel=e;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),h=this.group,c=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(t){d.push(t)});var f=this._oldChildren||[];if(function(t,e){function i(t){return t.getId()}function n(i,n){o(null==i?null:t[i],null==n?null:e[n])}0===t.length&&0===e.length||new Xs(e,t,i,i).add(n).update(n).remove(v(n,null)).execute()}(d,f),function(i,n){if(n.depth>0){r.virtualPiece?r.virtualPiece.updateData(!1,i,"normal",t,e):(r.virtualPiece=new Vm(i,t,e),h.add(r.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var o=function(t){r._rootToNode(n.parentNode)};n.piece._onclickEvent=o,r.virtualPiece.on("click",o)}else r.virtualPiece&&(h.remove(r.virtualPiece),r.virtualPiece=null)}(l,u),n&&n.highlight&&n.highlight.piece){var p=t.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(p)}else if(n&&n.unhighlight){var g=this.virtualPiece;!g&&l.children.length&&(g=l.children[0].piece),g&&g.onNormal()}this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1;t.seriesModel.getViewRoot().eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var o=n.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(n);else if("link"===o){var a=n.getModel(),r=a.get("link");if(r){var s=a.get("target",!0)||"_blank";window.open(r,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(n*n+o*o);return a<=i.r&&a>=i.r0}}});var GP="sunburstRootToNode";Es({type:GP,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=ld(t,[GP],e);if(n){var o=e.getViewRoot();o&&(t.direction=hd(o,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}})});var FP="sunburstHighlight";Es({type:FP,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=ld(t,[FP],e);n&&(t.highlight=n.node)})});Es({type:"sunburstUnhighlight",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){t.unhighlight=!0})});var WP=Math.PI/180;Bs(v(uC,"sunburst")),zs(v(function(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");y(n)||(n=[0,n]),y(e)||(e=[e,e]);var o=i.getWidth(),a=i.getHeight(),r=Math.min(o,a),s=Vo(e[0],o),l=Vo(e[1],a),u=Vo(n[0],r/2),h=Vo(n[1],r/2),c=-t.get("startAngle")*WP,f=t.get("minAngle")*WP,p=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,v=t.get("sort");null!=v&&Zm(g,v);var x=0;d(g.children,function(t){!isNaN(t.getValue())&&x++});var _=g.getValue(),w=Math.PI/(_||x)*2,b=g.depth>0,S=g.height-(b?-1:1),M=(h-u)/(S||1),I=t.get("clockwise"),T=t.get("stillShowZeroSum"),A=I?1:-1,D=function(t,e){if(t){var i=e;if(t!==p){var n=t.getValue(),o=0===_&&T?w:n*w;on[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:m(function(n){var o=e.dataToRadius(n[0]),a=i.dataToAngle(n[1]),r=t.coordToPoint([o,a]);return r.push(o,a*Math.PI/180),r}),size:m(qm,t)}}},calendar:function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}};YI.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0},getInitialData:function(t,e){return ml(this.getSource(),this)},getDataParams:function(t,e,i){var n=YI.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),Ar.extend({type:"custom",_data:null,render:function(t,e,i,n){var o=this._data,a=t.getData(),r=this.group,s=Qm(t,a,e,i);a.diff(o).add(function(e){ev(null,e,s(e,n),t,r,a)}).update(function(e,i){ev(o.getItemGraphicEl(i),e,s(e,n),t,r,a)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=a},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n,o){for(var a=e.getData(),r=Qm(e,a,i,n),s=t.start;s=0;l--)null==o[l]?o.splice(l,1):delete o[l].$action},_flatten:function(t,e,i){d(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});Ws({type:"graphic",init:function(t,e){this._elMap=R(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;d(e,function(e){var o=e.$action,a=e.id,r=i.get(a),s=e.parentId,l=null!=s?i.get(s):n,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var h=fv(e);o&&"merge"!==o?"replace"===o?(dv(r,i),cv(a,l,h,i)):"remove"===o&&dv(r,i):r?r.attr(h):cv(a,l,h,i);var c=i.get(a);c&&(c.__ecGraphicWidth=e.width,c.__ecGraphicHeight=e.height,yv(c,t))})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,o=this._elMap,a=i.length-1;a>=0;a--){var r=i[a],s=o.get(r.id);if(s){var l=s.parent;da(s,r,l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:r.hv,boundingMode:r.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){dv(e,t)}),this._elMap=R()},dispose:function(){this._clear()}});var KP=Fs({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){KP.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,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,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});Es("legendToggleSelect","legendselectchanged",v(xv,"toggleSelected")),Es("legendSelect","legendselected",v(xv,"select")),Es("legendUnSelect","legendunselected",v(xv,"unSelect"));var $P=v,JP=d,QP=tb,tN=Ws({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new QP),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(o,t,e,i);var a=t.getBoxLayoutParams(),s={width:i.getWidth(),height:i.getHeight()},l=t.get("padding"),u=ca(a,s,l),h=this.layoutInner(t,o,u,n),c=ca(r({width:h.width,height:h.height},a),s,l);this.group.attr("position",[c.x-h.x,c.y-h.y]),this.group.add(this._backgroundEl=wv(h,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var o=this.getContentGroup(),a=R(),r=e.get("selectedMode"),s=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&s.push(t.id)}),JP(e.getData(),function(l,u){var h=l.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var c=i.getSeriesByName(h)[0];if(!a.get(h))if(c){var d=c.getData(),f=d.getVisual("color");"function"==typeof f&&(f=f(c.getDataParams(0)));var p=d.getVisual("legendSymbol")||"roundRect",g=d.getVisual("symbol");this._createItem(h,u,l,e,p,g,t,f,r).on("click",$P(bv,h,n)).on("mouseover",$P(Sv,c.name,null,n,s)).on("mouseout",$P(Mv,c.name,null,n,s)),a.set(h,!0)}else i.eachRawSeries(function(i){if(!a.get(h)&&i.legendDataProvider){var o=i.legendDataProvider(),c=o.indexOfName(h);if(c<0)return;var d=o.getItemVisual(c,"color");this._createItem(h,u,l,e,"roundRect",null,t,d,r).on("click",$P(bv,h,n)).on("mouseover",$P(Sv,null,h,n,s)).on("mouseout",$P(Mv,null,h,n,s)),a.set(h,!0)}},this)}else o.add(new QP({newline:!0}))},this)},_createItem:function(t,e,i,n,o,r,s,l,u){var h=n.get("itemWidth"),c=n.get("itemHeight"),d=n.get("inactiveColor"),f=n.get("symbolKeepAspect"),p=n.isSelected(t),g=new QP,m=i.getModel("textStyle"),v=i.get("icon"),y=i.getModel("tooltip"),x=y.parentModel;if(o=v||o,g.add(Jl(o,0,0,h,c,p?l:d,null==f||f)),!v&&r&&(r!==o||"none"===r)){var _=.8*c;"none"===r&&(r="circle"),g.add(Jl(r,(h-_)/2,(c-_)/2,_,_,p?l:d,null==f||f))}var w="left"===s?h+5:-5,b=s,S=n.get("formatter"),M=t;"string"==typeof S&&S?M=S.replace("{name}",null!=t?t:""):"function"==typeof S&&(M=S(t)),g.add(new rM({style:mo({},m,{text:M,x:w,y:c/2,textFill:p?m.getTextColor():d,textAlign:b,textVerticalAlign:"middle"})}));var I=new yM({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?a({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(I),g.eachChild(function(t){t.silent=!0}),I.silent=!u,this.getContentGroup().add(g),fo(g),g.__legendDataIndex=e,g},layoutInner:function(t,e,i){var n=this.getContentGroup();aI(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var o=n.getBoundingRect();return n.attr("position",[-o.x,-o.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});Os(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;ii[l],p=[-c.x,-c.y];n||(p[s]=o.position[s]);var g=[0,0],m=[-d.x,-d.y],v=A(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[s]+=i[l]-d[l]:g[s]+=d[l]+v),m[1-s]+=c[u]/2-d[u]/2,o.attr("position",p),a.attr("position",g),r.attr("position",m);var y=this.group.getBoundingRect();if((y={x:0,y:0})[l]=f?i[l]:c[l],y[u]=Math.max(c[u],d[u]),y[h]=Math.min(0,d[h]+m[1-s]),a.__rectSize=i[l],f){var x={x:0,y:0};x[l]=Math.max(i[l]-d[l]-v,0),x[u]=y[u],a.setClipPath(new yM({shape:x})),a.__rectSize=x[l]}else r.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&Io(o,{position:_.contentPosition},!!f&&t),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;d(["pagePrev","pageNext"],function(n){var o=null!=e[n+"DataIndex"],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var n=i.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,r=null!=a?a+1:0,s=e.pageCount;n&&o&&n.setStyle("text",_(o)?o.replace("{current}",r).replace("{total}",s):o({current:r,total:s}))},_getPageInfo:function(t){function e(t){if(t){var e=t.getBoundingRect(),i=e[l]+t.position[r];return{s:i,e:i+e[s],i:t.__legendDataIndex}}}function i(t,e){return t.e>=e&&t.s<=e+a}var n=t.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,r=t.getOrient().index,s=nN[r],l=oN[r],u=this._findTargetItemIndex(n),h=o.children(),c=h[u],d=h.length,f=d?1:0,p={contentPosition:o.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var g=e(c);p.contentPosition[r]=-g.s;for(var m=u+1,v=g,y=g,x=null;m<=d;++m)(!(x=e(h[m]))&&y.e>v.s+a||x&&!i(x,v.s))&&(v=y.i>v.i?y:x)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount),y=x;for(var m=u-1,v=g,y=g,x=null;m>=-1;--m)(x=e(h[m]))&&i(y,x.s)||!(v.i=0;){var r=o.indexOf("|}"),s=o.substr(a+"{marker".length,r-a-"{marker".length);s.indexOf("sub")>-1?n["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:n["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},a=(o=o.substr(r+1)).indexOf("{marker")}this.el=new rM({style:{rich:n,text:t,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el?this.el.hide():true,this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(m(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}};var uN=m,hN=d,cN=Vo,dN=new yM({shape:{x:-1,y:-1,width:2,height:2}});Ws({type:"tooltip",init:function(t,e){if(!U_.node){var i=t.getComponent("tooltip").get("renderMode");this._renderMode=Hi(i);var n;"html"===this._renderMode?(n=new Cv(e.getDom(),e),this._newLine="
"):(n=new Lv(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,i){if(!U_.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");um("itemTooltip",this._api,uN(function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!U_.node){var o=Pv(n,i);this._ticket="";var a=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var r=dN;r.position=[n.x,n.y],r.update(),r.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:r},o)}else if(a)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},o);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=xP(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el,event:{}},o)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},o))}},manuallyHideTip:function(t,e,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(Pv(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var o=n.seriesIndex,a=n.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=r){var s=e.getSeriesByIndex(o);if(s&&"axis"===(t=kv([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=m(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,o=this._tooltipModel,a=[e.offsetX,e.offsetY],r=[],s=[],l=kv([e.tooltipOption,o]),u=this._renderMode,h=this._newLine,c={};hN(t,function(t){hN(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value,a=[];if(e&&null!=o){var l=Im(o,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);d(t.seriesDataIndices,function(r){var h=i.getSeriesByIndex(r.seriesIndex),d=r.dataIndexInside,f=h&&h.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Xl(e.axis,o),f.axisValueLabel=l,f){s.push(f);var p,g=h.formatTooltip(d,!0,null,u);if(w(g)){p=g.html;var m=g.markers;n(c,m)}else p=g;a.push(p)}});var f=l;"html"!==u?r.push(a.join(h)):r.push((f?ia(f)+h:"")+a.join(h))}})},this),r.reverse(),r=r.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,f,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(l,r,s,Math.random(),a[0],a[1],f,void 0,c)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,o=e.seriesIndex,a=n.getSeriesByIndex(o),r=e.dataModel||a,s=e.dataIndex,l=e.dataType,u=r.getData(),h=kv([u.getItemModel(s),r,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=r.getDataParams(s,l),g=r.formatTooltip(s,!1,l,this._renderMode);w(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+r.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var o=n;n={content:o,formatter:o}}var a=new No(n,this._tooltipModel,this._ecModel),r=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,o,a,r,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");r=r||t.get("position");var c=e;if(h&&"string"==typeof h)c=na(h,i,!0);else if("function"==typeof h){var d=uN(function(e,n){e===this._ticket&&(u.setContent(n,l,t),this._updatePosition(t,r,o,a,u,i,s))},this);this._ticket=n,c=h(i,n,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,r,o,a,u,i,s)}},_updatePosition:function(t,e,i,n,o,a,r){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=o.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=r&&r.getBoundingRect().clone();if(r&&d.applyTransform(r.transform),"function"==typeof e&&(e=e([i,n],a,o.el,d,{viewSize:[s,l],contentSize:u.slice()})),y(e))i=cN(e[0],s),n=cN(e[1],l);else if(w(e)){e.width=u[0],e.height=u[1];var f=ca(e,{width:s,height:l});i=f.x,n=f.y,h=null,c=null}else"string"==typeof e&&r?(i=(p=Ev(e,d,u))[0],n=p[1]):(i=(p=Nv(i,n,o,s,l,h?null:20,c?null:20))[0],n=p[1]);if(h&&(i-=Rv(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=Rv(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=Ov(i,n,o,s,l);i=p[0],n=p[1]}o.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&hN(e,function(e,n){var o=e.dataByAxis||{},a=(t[n]||{}).dataByAxis||[];(i&=o.length===a.length)&&hN(o,function(t,e){var n=a[e]||{},o=t.seriesDataIndices||[],r=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&o.length===r.length)&&hN(o,function(t,e){var n=r[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){U_.node||(this._tooltipContent.hide(),gm("itemTooltip",e))}}),Es({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),Es({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){}),Gv.prototype={constructor:Gv,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:aD.prototype.dataToCoord,radiusToData:aD.prototype.coordToData},u(Gv,aD);var fN=Bi();Fv.prototype={constructor:Fv,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:aD.prototype.dataToCoord,angleToData:aD.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var a=n[0],r=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(r),l=ke(a,e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=fN(t.model),d=c.lastAutoInterval,f=c.lastTickCount;return null!=d&&null!=f&&Math.abs(d-h)<=1&&Math.abs(f-o)<=1&&d>h?h=d:(c.lastTickCount=o,c.lastAutoInterval=h),h}},u(Fv,aD);var pN=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new Gv,this._angleAxis=new Fv,this._radiusAxis.polar=this._angleAxis.polar=this};pN.prototype={type:"polar",axisPointerEnabled:!0,constructor:pN,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),o=n.getExtent(),a=Math.min(o[0],o[1]),r=Math.max(o[0],o[1]);n.inverse?a=r-360:r=a+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=lr;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var gN=lI.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n(gN.prototype,UA);var mN={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};ED("angle",gN,Wv,mN.angle),ED("radius",gN,Wv,mN.radius),Fs({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var vN={dimensions:pN.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,n){var o=new pN(n);o.update=Zv;var a=o.getRadiusAxis(),r=o.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Uv(a,s),Uv(r,l),Hv(o,t,e),i.push(o),t.coordinateSystem=o,o.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}};Fa.register("polar",vN);var yN=["axisLine","axisLabel","axisTick","splitLine","splitArea"];XD.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,o=n.polar,a=o.getRadiusAxis().getExtent(),r=n.getTicksCoords(),s=f(n.getViewLabels(),function(t){return(t=i(t)).coord=n.dataToCoord(t.tickValue),t});Yv(s),Yv(r),d(yN,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,o,r,a,s)},this)}},_axisLine:function(t,e,i,n){var o=t.getModel("axisLine.lineStyle"),a=new sM({shape:{cx:e.cx,cy:e.cy,r:n[jv(e)]},style:o.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,i,n){var o=t.getModel("axisTick"),a=(o.get("inside")?-1:1)*o.get("length"),s=n[jv(e)],l=f(i,function(t){return new _M({shape:Xv(e,[s,s+a],t.coord)})});this.group.add(OM(l,{style:r(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n,o){var a=t.getCategories(!0),r=t.getModel("axisLabel"),s=r.get("margin");d(o,function(i,o){var l=r,u=i.tickValue,h=n[jv(e)],c=e.coordToPoint([h+s,i.coord]),d=e.cx,f=e.cy,p=Math.abs(c[0]-d)/h<.3?"center":c[0]>d?"left":"right",g=Math.abs(c[1]-f)/h<.3?"middle":c[1]>f?"top":"bottom";a&&a[u]&&a[u].textStyle&&(l=new No(a[u].textStyle,r,r.ecModel));var m=new rM({silent:!0});this.group.add(m),mo(m.style,l,{x:c[0],y:c[1],textFill:l.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g})},this)},_splitLine:function(t,e,i,n){var o=t.getModel("splitLine").getModel("lineStyle"),a=o.get("color"),s=0;a=a instanceof Array?a:[a];for(var l=[],u=0;u=0?"p":"n",M=y;v&&(n[r][b]||(n[r][b]={p:y,n:y}),M=n[r][b][S]);var I,T,A,D;if("radius"===h.dim){var C=h.dataToRadius(w)-y,L=a.dataToAngle(b);Math.abs(C)=0},kN.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=dy(e,t),o=0;o=0||AN(n,t.getAxis("y").model)>=0)&&a.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:ON.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){TN(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:ON.geo})})}},NN=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,o=t.gridModel;return!o&&i&&(o=i.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],ON={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Ao(t)),e}},EN={lineX:DN(fy,0),lineY:DN(fy,1),rect:function(t,e,i){var n=e[CN[t]]([i[0][0],i[1][0]]),o=e[CN[t]]([i[0][1],i[1][1]]),a=[cy([n[0],o[0]]),cy([n[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:f(i,function(i){var o=e[CN[t]](i);return n[0][0]=Math.min(n[0][0],o[0]),n[1][0]=Math.min(n[1][0],o[1]),n[0][1]=Math.max(n[0][1],o[0]),n[1][1]=Math.max(n[1][1],o[1]),o}),xyMinMax:n}}},RN={lineX:DN(py,0),lineY:DN(py,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return f(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},zN=["inBrush","outOfBrush"],BN="__ecBrushSelect",VN="__ecInBrushSelectEvent",GN=VT.VISUAL.BRUSH;zs(GN,function(t,e,i){t.eachComponent({mainType:"brush"},function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1}),(e.brushTargetManager=new hy(e.option,t)).setInputRanges(e.areas,t)})}),Bs(GN,function(t,e,n){var o,a,s=[];t.eachComponent({mainType:"brush"},function(e,n){function l(t){return"all"===m||v[t]}function u(t){return!!t.length}function h(t,e){var i=t.coordinateSystem;w|=i.hasAxisBrushed(),l(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(x[e]=1)})}function c(i,n,o){var a=_y(i);if(a&&!wy(e,n)&&(d(b,function(n){a[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&o.push(n),w|=u(o)}),l(n)&&u(o))){var r=i.getData();r.each(function(t){xy(a,o,r,t)&&(x[t]=1)})}}var p={brushId:e.id,brushIndex:n,brushName:e.name,areas:i(e.areas),selected:[]};s.push(p);var g=e.option,m=g.brushLink,v=[],x=[],_=[],w=0;n||(o=g.throttleType,a=g.throttleDelay);var b=f(e.areas,function(t){return by(r({boundingRect:FN[t.brushType](t)},t))}),S=ty(e.option,zN,function(t){t.mappingMethod="fixed"});y(m)&&d(m,function(t){v[t]=1}),t.eachSeries(function(t,e){var i=_[e]=[];"parallel"===t.subType?h(t,e):c(t,e,i)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};p.selected.push(i);var n=_y(t),o=_[e],a=t.getData(),r=l(e)?function(t){return x[t]?(i.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return xy(n,o,a,t)?(i.dataIndex.push(a.getRawIndex(t)),"inBrush"):"outOfBrush"};(l(e)?w:u(o))&&iy(zN,S,a,r)})}),vy(e,o,a,s,n)});var FN={lineX:B,lineY:B,rect:function(t){return Sy(t.range)},polygon:function(t){for(var e,i=t.range,n=0,o=i.length;ne[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&Sy(e)}},WN=["#ddd"];Fs({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&ey(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:WN},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=f(t,function(t){return My(this.option,t)},this))},setBrushOption:function(t){this.brushOption=My(this.option,t),this.brushType=this.brushOption.brushType}});Ws({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new zf(e.getZr())).on("brush",m(this._onBrush,this)).mount()},render:function(t){return this.model=t,Iy.apply(this,arguments)},updateTransform:Iy,updateView:Iy,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:i(t),$from:n})}}),Es({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),Es({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var HN={},ZN=rT.toolbox.brush;Dy.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i(ZN.title)};var UN=Dy.prototype;UN.render=UN.updateView=function(t,e,i){var n,o,a;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=n,this._brushMode=o,d(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===n)?"emphasis":"normal")})},UN.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return d(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},UN.onclick=function(t,e,i){var n=this._brushType,o=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===o?"single":"multiple":o}})},Ty("brush",Dy),Ns(function(t,e){var i=t&&t.brush;if(y(i)||(i=i?[i]:[]),i.length){var n=[];d(i,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))});var o=t&&t.toolbox;y(o)&&(o=o[0]),o||(o={feature:{}},t.toolbox=[o]);var a=o.feature||(o.feature={}),r=a.brush||(a.brush={}),s=r.type||(r.type=[]);s.push.apply(s,n),Jv(s),e&&!s.length&&s.push.apply(s,SN)}});Cy.prototype={constructor:Cy,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=Yo(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:o,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),r=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];d([0,1],function(t){i(a,t)&&(r[o[t]]=a[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ca(r,l);d([0,1],function(t){i(a,t)||(a[t]=u[o[t]]/s[t])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){y(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,o=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.timea.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),o=n.getDate(),a=t[1].date.getDate();if(n.setDate(o+i-1),n.getDate()!==a)for(var r=n.getTime()-t[1].time>0?1:-1;n.getDate()!==a&&(n.getTime()-t[1].time)*r>0;)i-=r,n.setDate(o+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var o=7*(t-1)-n.fweek+e,a=new Date(n.start.time);return a.setDate(n.start.d+o),this.getDateInfo(a)}},Cy.dimensions=Cy.prototype.dimensions,Cy.getDimensionsInfo=Cy.prototype.getDimensionsInfo,Cy.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var o=new Cy(n,t,e);i.push(o),n.coordinateSystem=o}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},Fa.register("calendar",Cy);var XN=lI.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var o=ga(t);XN.superApply(this,"init",arguments),ky(t,o)},mergeOption:function(t,e){XN.superApply(this,"mergeOption",arguments),ky(this.option,t)}}),jN={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},YN={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};Ws({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,a=o.getRangeInfo(),r=o.getOrient();this._renderDayRect(t,a,n),this._renderLines(t,a,r,n),this._renderYearText(t,a,r,n),this._renderMonthText(t,r,n),this._renderWeekText(t,a,r,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=n.getCellWidth(),r=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new yM({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});i.add(u)}},_renderLines:function(t,e,i,n){function o(e){a._firstDayOfMonth.push(r.getDateInfo(e)),a._firstDayPoints.push(r.dataToRect([e],!1).tl);var o=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(o[0]),a._blpoints.push(o[o.length-1]),l&&a._drawSplitline(o,s,n)}var a=this,r=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){o(h.formatedDate),0===c&&(h=r.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=r.getDateInfo(d)}o(r.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,u,i),s,n),l&&this._drawSplitline(a._getEdgesPoints(a._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===i?0:1;return n[0][o]=n[0][o]-e/2,n[1][o]=n[1][o]+e/2,n},_drawSplitline:function(t,e,i){var n=new gM({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var o=[],a=0;a<7;a++){var r=n.getNextNDay(e.time,a),s=n.dataToRect([r.time],!1);o[2*r.day]=s.tl,o[2*r.day+1]=s["horizontal"===i?"bl":"tr"]}return o},_formatterLabel:function(t,e){return"string"==typeof t&&t?oa(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,o){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=o,a=["center","top"]):"left"===n?e[0]-=o:"right"===n?(e[0]+=o,a=["center","top"]):e[1]-=o;var r=0;return"left"!==n&&"right"!==n||(r=Math.PI/2),{rotation:r,position:e,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,i,n){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),r=o.get("position");r||(r="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=o.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new rM({z2:30});mo(m.style,o,{text:g}),m.attr(this._yearTextPositionControl(m,c[r],i,r,a)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,o){var a="left",r="top",s=t[0],l=t[1];return"horizontal"===i?(l+=o,e&&(a="center"),"start"===n&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===n&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:r}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),r=n.get("margin"),s=n.get("position"),l=n.get("align"),u=[this._tlpoints,this._blpoints];_(o)&&(o=jN[o.toUpperCase()]||[]);var h="start"===s?0:1,c="horizontal"===e?0:1;r="start"===s?-r:r;for(var d="center"===l,f=0;f=r[0]&&t<=r[1]}if(t===this._dataZoomModel){var n=this._dimName,o=this.getTargetSeriesModels(),a=t.get("filterMode"),r=this._valueWindow;"none"!==a&&$N(o,function(t){var e=t.getData(),o=e.mapDimension(n,!0);o.length&&("weakFilter"===a?e.filterSelf(function(t){for(var i,n,a,s=0;sr[1];if(u&&!h&&!c)return!0;u&&(a=!0),h&&(i=!0),c&&(n=!0)}return a&&i&&n}):$N(o,function(n){if("empty"===a)t.setData(e.map(n,function(t){return i(t)?t:NaN}));else{var o={};o[n]=r,e.selectRange(o)}}),$N(o,function(t){e.setApproximateExtent(r,t)}))})}}};var tO=d,eO=KN,iO=Fs({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=By(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=By(t);n(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;U_.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Vy(this,t),tO([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,o){var a=this.dependentModels[e.axis][i],r=a.__dzAxisProxy||(a.__dzAxisProxy=new QN(e.name,i,this,o));t[e.name+"_"+i]=r},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();eO(function(e){var i=e.axisIndex;t[i]=Di(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;eO(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var o="vertical"===e?"y":"x";n[o+"Axis"].length?(i[o+"AxisIndex"]=[0],t=!1):tO(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&eO(function(e){if(t){var n=[],o=this.dependentModels[e.axis];if(o.length&&!n.length)for(var a=0,r=o.length;a0?100:20}},getFirstTargetAxisModel:function(){var t;return eO(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;eO(function(n){tO(this.get(n.axisIndex),function(o){t.call(e,n,o,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;tO([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])},this),!e&&Vy(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),nO=qI.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var o,a=0;a0&&e%g)p+=f;else{var i=null==t||isNaN(t)||""===t,n=i?0:aO(t,a,u,!0);i&&!l&&e?(c.push([c[c.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(c.push([p,0]),d.push([p,0])),c.push([p,n]),d.push([p,n]),p+=f,l=i}});var m=this.dataZoomModel;this._displayables.barGroup.add(new pM({shape:{points:c},style:r({fill:m.get("dataBackgroundColor")},m.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new gM({shape:{points:d},style:m.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis(function(o,a){d(t.getAxisProxy(o.name,a).getTargetSeriesModels(),function(t){if(!(i||!0!==e&&l(cO,t.get("type"))<0)){var r,s=n.getComponent(o.axis,a).axis,u=Gy(o.name),h=t.coordinateSystem;null!=u&&h.getOtherAxis&&(r=h.getOtherAxis(s).inverse),u=t.getData().mapDimension(u),i={thisAxis:s,series:t,thisDim:o.name,otherDim:u,otherAxisInverse:r}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,o=this._size,a=this.dataZoomModel;n.add(t.filler=new oO({draggable:!0,cursor:Fy(this._orient),drift:sO(this._onDragMove,this,"all"),onmousemove:function(t){mw(t.event)},ondragstart:sO(this._showDataInfo,this,!0),ondragend:sO(this._onDragEnd,this),onmouseover:sO(this._showDataInfo,this,!0),onmouseout:sO(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),n.add(new oO($n({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),lO([0,1],function(t){var o=Po(a.get("handleIcon"),{cursor:Fy(this._orient),draggable:!0,drift:sO(this._onDragMove,this,t),onmousemove:function(t){mw(t.event)},ondragend:sO(this._onDragEnd,this),onmouseover:sO(this._showDataInfo,this,!0),onmouseout:sO(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),r=o.getBoundingRect();this._handleHeight=Vo(a.get("handleSize"),this._size[1]),this._handleWidth=r.width/r.height*this._handleHeight,o.setStyle(a.getModel("handleStyle").getItemStyle());var s=a.get("handleColor");null!=s&&(o.style.fill=s),n.add(e[t]=o);var l=a.textStyleModel;this.group.add(i[t]=new rM({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[aO(t[0],[0,100],e,!0),aO(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),a=i.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];QL(e,n,o,i.get("zoomLock")?"all":t,null!=a.minSpan?aO(a.minSpan,r,o,!0):null,null!=a.maxSpan?aO(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=rO([aO(n[0],o,r,!0),aO(n[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=rO(i.slice()),o=this._size;lO([0,1],function(t){var n=e.handles[t],a=this._handleHeight;n.attr({scale:[a/2,a/2],position:[i[t],o[1]/2-a/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=Ao(n.handles[t].parent,this.group),i=Co(0===t?"right":"left",e),s=this._handleWidth/2+hO,l=Do([c[t]+(0===t?-s:s),this._size[1]/2],e);o[t].setStyle({x:l[0],y:l[1],textVerticalAlign:a===uO?"middle":i,textAlign:a===uO?i:"center",text:r[t]})}var i=this.dataZoomModel,n=this._displayables,o=n.handleLabels,a=this._orient,r=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();r=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=rO(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return x(n)?n(t,a):_(n)?n.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=Do([e,i],this._displayables.barGroup.getLocalTransform(),!0),o=this._updateInterval(t,n[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-o);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(lO(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});iO.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var fO="\0_ec_dataZoom_roams",pO=m,gO=nO.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){gO.superApply(this,"render",arguments),this._range=t.getPercentRange(),d(this.getTargetCoordInfo(),function(e,n){var o=f(e,function(t){return Zy(t.model)});d(e,function(e){var a=e.model,r={};d(["pan","zoom","scrollMove"],function(t){r[t]=pO(mO[t],this,e,n)},this),Wy(i,{coordId:Zy(a),allCoordIds:o,containsPoint:function(t,e,i){return a.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,dataZoomModel:t,getRange:r})},this)},this)},dispose:function(){Hy(this.api,this.dataZoomModel.id),gO.superApply(this,"dispose",arguments),this._range=null}}),mO={zoom:function(t,e,i,n){var o=this._range,a=o.slice(),r=t.axisModels[0];if(r){var s=vO[e](null,[n.originX,n.originY],r,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return QL(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:Ky(function(t,e,i,n,o,a){var r=vO[n]([a.oldX,a.oldY],[a.newX,a.newY],e,o,i);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength}),scrollMove:Ky(function(t,e,i,n,o,a){return vO[n]([0,0],[a.scrollDelta,a.scrollDelta],e,o,i).signal*(t[1]-t[0])*a.scrollDelta})},vO={grid:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=u[1]-u[0],r.pixelStart=u[0],r.signal=a.inverse?-1:1),r},singleAxis:function(t,e,i,n,o){var a=i.axis,r=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}};Os({getTargetSeries:function(t){var e=R();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){d(n.getAxisProxy(t.name,i).getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})}}),Es("dataZoom",function(t,e){var i=Ny(m(e.eachComponent,e,"dataZoom"),KN,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){n.push.apply(n,i(t).nodes)}),d(n,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})});var yO=d,xO=function(t){var e=t&&t.visualMap;y(e)||(e=e?[e]:[]),yO(e,function(t){if(t){$y(t,"splitList")&&!$y(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&y(e)&&yO(e,function(t){w(t)&&($y(t,"start")&&!$y(t,"min")&&(t.min=t.start),$y(t,"end")&&!$y(t,"max")&&(t.max=t.end))})}})};lI.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var _O=VT.VISUAL.COMPONENT;Bs(_O,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(ny(e.stateList,e.targetVisuals,m(e.getValueState,e),e.getDataDimension(t.getData())))}),i}}),Bs(_O,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(m(Jy,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimension(i),r=i.getDimensionInfo(a);null!=r&&(o.dimension=r.index,n.push(o))}}),t.getData().setVisual("visualMeta",n)}});var wO={get:function(t,e,n){var o=i((bO[t]||{})[e]);return n&&y(o)?o[o.length-1]:o}},bO={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},SO=hL.mapVisual,MO=hL.eachVisual,IO=y,TO=d,AO=Fo,DO=Bo,CO=B,LO=Fs({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;U_.canvasSupported||(i.realtime=!1),!e&&ey(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=m(t,this),this.controllerVisuals=ty(this.option.controller,e,t),this.targetVisuals=ty(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,i){e.push(i)}):e=Di(t),e},eachTargetSeries:function(t,e){d(this.getTargetSeriesIndices(),function(i){t.call(e,this.ecModel.getSeriesByIndex(i))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(i){i===t&&(e=!0)}),e},formatValueText:function(t,e,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}var o,a,r=this.option,s=r.precision,l=this.dataBound,u=r.formatter;return i=i||["<",">"],y(t)&&(t=t.slice(),o=!0),a=e?t:o?[n(t[0]),n(t[1])]:n(t),_(u)?u.replace("{value}",o?a[0]:a).replace("{value2}",o?a[1]:a):x(u)?o?u(t[0],t[1]):u(t):o?t[0]===l[0]?i[0]+" "+a[1]:t[1]===l[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetExtent:function(){var t=this.option,e=AO([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,o=n.length-1;o>=0;o--){var a=n[o];if(!t.getDimensionInfo(a).isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){IO(o.color)&&!t.inRange&&(t.inRange={color:o.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")},TO(this.stateList,function(e){var i=t[e];if(_(i)){var n=wO.get(i,"active",l);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}var e=this.ecModel,o=this.option,a={inRange:o.inRange,outOfRange:o.outOfRange},r=o.target||(o.target={}),s=o.controller||(o.controller={});n(r,a),n(s,a);var l=this.isCategory();t.call(this,r),t.call(this,s),function(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},TO(n,function(t,e){if(hL.isValidType(e)){var i=wO.get(e,"inactive",l);null!=i&&(o[e]=i,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,o=this.get("inactiveColor");TO(this.stateList,function(a){var r=this.itemSize,s=t[a];s||(s=t[a]={color:l?o:[o]}),null==s.symbol&&(s.symbol=e&&i(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&i(n)||(l?r[0]:[r[0],r[0]])),s.symbol=SO(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var u=s.symbolSize;if(null!=u){var h=-1/0;MO(u,function(t){t>h&&(h=t)}),s.symbolSize=SO(u,function(t){return DO(t,[0,h],[0,r[0]],!0)})}},this)}.call(this,s)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:CO,getValueState:CO,getVisualMeta:CO}),kO=[20,140],PO=LO.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){PO.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){PO.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=kO[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=kO[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){LO.prototype.completeVisualOption.apply(this,arguments),d(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Fo((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){o.push({value:e,color:t(e,i)})}for(var i=Qy(0,0,this.getExtent()),n=Qy(0,0,this.option.range.slice()),o=[],a=0,r=0,s=n.length,l=i.length;rt[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new tb("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,a=i.handleLabels;EO([0,1],function(r){var s=o[r];s.setStyle("fill",e.handlesColor[r]),s.position[1]=t[r];var l=Do(i.handleLabelPoints[r],Ao(s,this.group));a[r].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[r]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===r?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[1]],l=OO(t,a,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",ox(!!i,n,l,r[1]));var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",c);h.setStyle("fill",d);var f=Do(u.indicatorLabelPoint,Ao(h,this.group)),p=u.indicatorLabel;p.attr("invisible",!1);var g=this._applyTransform("left",u.barGroup),m=this._orient;p.setStyle({text:(i||"")+o.formatValueText(e),textVerticalAlign:"horizontal"===m?g:"middle",textAlign:"horizontal"===m?"center":g,x:f[0],y:f[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=RO(zO(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n[1]],a=i.getExtent();t=RO(zO(o[0],t),o[1]);var r=ax(i,a,o),s=[t-r,t+r],l=OO(t,o,a,!0),u=[OO(s[0],o,a,!0),OO(s[1],o,a,!0)];s[0]o[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",r):u[1]===1/0?this._showIndicator(l,u[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var h=this._hoverLinkDataIndices,c=[];(e||rx(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=Ri(h,c);this._dispatchHighDown("downplay",ex(d[0])),this._dispatchHighDown("highlight",ex(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var o=n.getData(e.dataType),a=o.get(i.getDataDimension(o),e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var o=Ao(e,n?null:this.group);return zM[y(t)?"applyTransform":"transformDirection"](t,o,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});Es({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})}),Ns(xO);var FO=LO.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){FO.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();WO[this._mode].call(this),this._resetSelected(t,e);var o=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=i(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=f(this._pieceList,function(t){var t=i(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(w(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=hL.listVisualTypes(),o=this.isCategory();d(e.pieces,function(t){d(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),d(i,function(i,n){var a=0;d(this.stateList,function(i){a|=t(e,i,n)||t(e.target,i,n)},this),!a&&d(this.stateList,function(t){(e[t]||(e[t]={}))[n]=wO.get(n,"inRange"===t?"active":"inactive",o)})},this),LO.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,o=(e?i:t).selected||{};if(i.selected=o,d(n,function(t,e){var i=this.getSelectedMapKey(t);o.hasOwnProperty(i)||(o[i]=!0)},this),"single"===i.selectedMode){var a=!1;d(n,function(t,e){var i=this.getSelectedMapKey(t);o[i]&&(a?o[i]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=i(t)},getValueState:function(t){var e=hL.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){hL.findPieceIndex(e,this._pieceList)===t&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,a){var r=o.getRepresentValue({interval:e});a||(a=o.getValueState(r));var s=t(r,a);e[0]===-1/0?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],o=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),(r=a[a.length-1].interval[1])!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return d(a,function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outOfRange"),e(i.slice()),s=i[1])},this),{stops:i,outerColors:n}}}}),WO={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(n[1]-n[0])/o;+a.toFixed(i)!==a&&i<5;)i++;t.precision=i,a=+a.toFixed(i);var r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=r+o;r","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};NO.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,o=n.getFont(),a=n.getTextColor(),r=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=T(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,r),d(l.viewPieceList,function(n){var l=n.piece,u=new tb;u.onclick=m(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new rM({style:{x:"right"===r?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:r,textFont:o,textFill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,r),aI(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:ex(i.findTargetDataIndices(e))})}t.on("mouseover",m(i,this,"highlight")).on("mouseout",m(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return tx(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,o){if(e){var a=new tb,r=this.visualMapModel.textStyleModel;a.add(new rM({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?o:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=f(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return("horizontal"===n?o:!o)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(Jl(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,o=i(n.selected),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(o[a]=!0,d(o,function(t,e){o[e]=e===a})):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}});Ns(xO);var HO=ta,ZO=ia,UO=Fs({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(U_.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var o=this.constructor,r=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),s=t[r];i&&i.data?(s?s.mergeOption(i,e,!0):(n&&ux(i),d(i.data,function(t){t instanceof Array?(ux(t[0]),ux(t[1])):ux(t)}),a(s=new o(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[r]=s):t[r]=null},this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=y(i)?f(i,HO).join(", "):HO(i),o=e.getName(t),a=ZO(this.name);return(null!=i||o)&&(a+="
"),o&&(a+=ZO(o),null!=i&&(a+=" : ")),null!=i&&(a+=ZO(n)),a},getData:function(){return this._data},setData:function(t){this._data=t}});h(UO,ZI),UO.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var XO=l,jO=v,YO={min:jO(dx,"min"),max:jO(dx,"max"),average:jO(dx,"average")},qO=Ws({type:"marker",init:function(){this.markerGroupMap=R()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var o=this.type+"Model";e.eachSeries(function(t){var n=t[o];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});qO.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(xx(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,n){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Du),u=_x(o,t,e);e.setData(u),xx(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),u.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||r.getVisual("color"),symbol:i.getShallow("symbol")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),Ns(function(t){t.markPoint=t.markPoint||{}}),UO.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var KO=function(t,e,o,r){var s=t.getData(),l=r.type;if(!y(r)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=r.xAxis||null!=r.yAxis)){var u,h;if(null!=r.yAxis||null!=r.xAxis)u=null!=r.yAxis?"y":"x",e.getAxis(u),h=T(r.yAxis,r.xAxis);else{var c=px(r,s,e,t);u=c.valueDataDim,c.valueAxis,h=yx(s,u,l)}var d="x"===u?0:1,f=1-d,p=i(r),g={};p.type=null,p.coord=[],g.coord=[],p.coord[f]=-1/0,g.coord[f]=1/0;var m=o.get("precision");m>=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),p.coord[d]=g.coord[d]=h,r=[p,g,{type:l,valueIndex:r.valueIndex,value:h}]}return r=[fx(t,r[0]),fx(t,r[1]),a({},r[2])],r[2].type=r[2].type||"",n(r[2],r[0]),n(r[2],r[1]),r};qO.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),o=e.__from,a=e.__to;o.each(function(e){Ix(o,e,!0,t,i),Ix(a,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[o.getItemLayout(t),a.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function o(e,i,o){var a=e.getItemModel(i);Ix(e,i,o,t,n),e.setItemVisual(i,{symbolSize:a.get("symbolSize")||g[o?0:1],symbol:a.get("symbol",!0)||p[o?0:1],color:a.get("itemStyle.color")||s.getVisual("color")})}var a=t.coordinateSystem,r=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,new sf);this.group.add(u.group);var h=Tx(a,t,e),c=h.from,d=h.to,f=h.line;e.__from=c,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");y(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),h.from.each(function(t){o(c,t,!0),o(d,t,!1)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})}),u.updateData(f),h.line.eachItemGraphicEl(function(t,i){t.traverse(function(t){t.dataModel=e})}),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}}),Ns(function(t){t.markLine=t.markLine||{}}),UO.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var $O=function(t,e,i,n){var a=fx(t,n[0]),r=fx(t,n[1]),s=T,l=a.coord,u=r.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=o([{},a,r]);return h.coord=[a.coord,r.coord],h.x0=a.x,h.y0=a.y,h.x1=r.x,h.y1=r.y,h},JO=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];qO.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var o=f(JO,function(o){return Lx(n,e,o,t,i)});n.setItemLayout(e,o),n.getItemGraphicEl(e).setShape("points",o)})}},this)},renderSeries:function(t,e,i,n){var o=t.coordinateSystem,a=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,{group:new tb});this.group.add(u.group),u.__keep=!0;var h=kx(o,t,e);e.setData(h),h.each(function(e){h.setItemLayout(e,f(JO,function(i){return Lx(h,e,i,t,n)})),h.setItemVisual(e,{color:s.getVisual("color")})}),h.diff(u.__data).add(function(t){var e=new pM({shape:{points:h.getItemLayout(t)}});h.setItemGraphicEl(t,e),u.group.add(e)}).update(function(t,i){var n=u.__data.getItemGraphicEl(i);Io(n,{shape:{points:h.getItemLayout(t)}},e,t),u.group.add(n),h.setItemGraphicEl(t,n)}).remove(function(t){var e=u.__data.getItemGraphicEl(t);u.group.remove(e)}).execute(),h.eachItemGraphicEl(function(t,i){var n=h.getItemModel(i),o=n.getModel("label"),a=n.getModel("emphasis.label"),s=h.getItemVisual(i,"color");t.useStyle(r(n.getModel("itemStyle").getItemStyle(),{fill:Yt(s,.4),stroke:s})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),go(t.style,t.hoverStyle,o,a,{labelFetcher:e,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:s}),fo(t,{}),t.dataModel=e}),u.__data=h,u.group.silent=e.get("silent")||t.get("silent")}}),Ns(function(t){t.markArea=t.markArea||{}});lI.registerSubTypeDefaulter("timeline",function(){return"slider"}),Es({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),r({currentIndex:i.option.currentIndex},t)}),Es({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)});var QO=lI.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){QO.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,o=this._names=[];if("category"===n){var a=[];d(e,function(t,e){var n,r=Li(t);w(t)?(n=i(t)).value=e:n=e,a.push(n),_(r)||null!=r&&!isNaN(r)||(r=""),o.push(r+"")}),e=a}var r={category:"ordinal",time:"time"}[n]||"number";(this._data=new vA([{name:"value",type:r}],this)).initData(e,o)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});h(QO.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}}),ZI);var tE=qI.extend({type:"timeline"}),eE=function(t,e,i,n){aD.call(this,t,e,i),this.type=n||"value",this.model=null};eE.prototype={constructor:eE,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},u(eE,aD);var iE=m,nE=d,oE=Math.PI;tE.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,i),a=this._createGroup("mainGroup"),r=this._createGroup("labelGroup"),s=this._axis=this._createAxis(o,t);t.formatTooltip=function(t){return ia(s.scale.getLabel(t))},nE(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](o,a,s,t)},this),this._renderAxisLabel(o,r,s,t),this._position(o,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),o=Ex(t,e);null==i||"auto"===i?i="horizontal"===n?o.y+o.height/2=0||"+"===i?"left":"right"},r={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:oE/2},l="vertical"===n?o.height:o.width,u=t.getModel("controlStyle"),h=u.get("show",!0),c=h?u.get("itemSize"):0,d=h?u.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*oE/180;var g,m,v,y,x=u.get("position",!0),_=h&&u.get("showPlayBtn",!0),w=h&&u.get("showPrevBtn",!0),b=h&&u.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),w&&(m=[S,0],S+=f),b&&(v=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),w&&(m=[0,0],S+=f),b&&(v=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:o,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||a[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||r[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t,e){function i(t){var e=t.position;t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function o(t,e,i,n,o){t[n]+=i[n][o]-e[n][o]}var a=this._mainGroup,r=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=xt(),u=s.x,h=s.y+s.height;St(l,l,[-u,-h]),Mt(l,l,-oE/2),St(l,l,[u,h]),(s=s.clone()).applyTransform(l)}var c=n(s),d=n(a.getBoundingRect()),f=n(r.getBoundingRect()),p=a.position,g=r.position;g[0]=p[0]=c[0][0];var m=t.labelPosOpt;if(isNaN(m))o(p,d,c,1,v="+"===m?0:1),o(g,f,c,1,1-v);else{var v=m>=0?0:1;o(p,d,c,1,v),g[1]=p[1]+m}a.attr("position",p),r.attr("position",g),a.rotation=r.rotation=t.rotation,i(a),i(r)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),o=Hl(e,n);o.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var a=i.getDataExtent("value");o.setExtent(a[0],a[1]),o.niceTicks();var r=new eE("value",o,t.axisExtent,n);return r.model=e,r},_createGroup:function(t){var e=this["_"+t]=new tb;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var o=i.getExtent();n.get("lineStyle.show")&&e.add(new _M({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:a({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var o=n.getData(),a=i.scale.getTicks();nE(a,function(t){var a=i.dataToCoord(t),r=o.getItemModel(t),s=r.getModel("itemStyle"),l=r.getModel("emphasis.itemStyle"),u={position:[a,0],onclick:iE(this._changeTimeline,this,t)},h=zx(r,s,e,u);fo(h,l.getItemStyle()),r.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){if(i.getLabelModel().get("show")){var o=n.getData(),a=i.getViewLabels();nE(a,function(n){var a=n.tickValue,r=o.getItemModel(a),s=r.getModel("label"),l=r.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),h=new rM({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:iE(this._changeTimeline,this,a),silent:!1});mo(h.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),fo(h,mo({},l))},this)}},_renderControl:function(t,e,i,n){function o(t,i,o,h){if(t){var c=Rx(n,i,u,{position:t,origin:[a/2,0],rotation:h?-r:0,rectHover:!0,style:s,onclick:o});e.add(c),fo(c,l)}}var a=t.controlSize,r=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-a/2,a,a],h=n.getPlayState(),c=n.get("inverse",!0);o(t.nextBtnPosition,"controlStyle.nextIcon",iE(this._changeTimeline,this,c?"-":"+")),o(t.prevBtnPosition,"controlStyle.prevIcon",iE(this._changeTimeline,this,c?"+":"-")),o(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),iE(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var o=n.getData(),a=n.getCurrentIndex(),r=o.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=iE(s._handlePointerDrag,s),t.ondragend=iE(s._handlePointerDragend,s),Bx(t,a,i,n,!0)},onUpdate:function(t){Bx(t,a,i,n)}};this._currentPointer=zx(r,r,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=Fo(this._axis.getExtent().slice());i>n[1]&&(i=n[1]),ii.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-o.height:s+8;a+o.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):a-o.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}})}},updateView:function(t,e,i,n){d(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},remove:function(t,e){d(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){d(this._features,function(i){i.dispose&&i.dispose(t,e)})}});var rE=rT.toolbox.saveAsImage;Gx.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:rE.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:rE.lang.slice()},Gx.prototype.unusable=!U_.canvasSupported,Gx.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),a=i.get("type",!0)||"png";o.download=n+"."+a,o.target="_blank";var r=e.getConnectedDataURL({type:a,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(o.href=r,"function"!=typeof MouseEvent||U_.browser.ie||U_.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(r.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,n+"."+a)}else{var c=i.get("lang"),d='';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(f)}},Ty("saveAsImage",Gx);var sE=rT.toolbox.magicType;Fx.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:i(sE.title),option:{},seriesIndex:{}};var lE=Fx.prototype;lE.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return d(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var uE={line:function(t,e,i,o){if("bar"===t)return n({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get("option.line")||{},!0)},bar:function(t,e,i,o){if("line"===t)return n({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},o.get("option.bar")||{},!0)},stack:function(t,e,i,o){if("line"===t||"bar"===t)return n({id:e,stack:"__ec_magicType_stack__"},o.get("option.stack")||{},!0)},tiled:function(t,e,i,o){if("line"===t||"bar"===t)return n({id:e,stack:""},o.get("option.tiled")||{},!0)}},hE=[["line","bar"],["stack","tiled"]];lE.onclick=function(t,e,i){var n=this.model,o=n.get("seriesIndex."+i);if(uE[i]){var a={series:[]};d(hE,function(t){l(t,i)>=0&&d(t,function(t){n.setIconStatus(t,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(e){var o=e.subType,s=e.id,l=uE[i](o,s,e,n);l&&(r(l,e.option),a.series.push(l));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var c=h.dim+"Axis",d=t.queryComponents({mainType:c,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;a[c]=a[c]||[];for(var f=0;f<=d;f++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===i}}}),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:a})}},Es({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),Ty("magicType",Fx);var cE=rT.toolbox.dataView,dE=new Array(60).join("-"),fE="\t",pE=new RegExp("["+fE+"]+","g");$x.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i(cE.title),lang:i(cE.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},$x.prototype.onclick=function(t,e){function i(){n.removeChild(a),x._dom=null}var n=e.getDom(),o=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var r=document.createElement("h4"),s=o.get("lang")||[];r.innerHTML=s[0]||o.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=o.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var h=o.get("optionToContent"),c=o.get("contentToOption"),d=Ux(t);if("function"==typeof h){var f=h(e.getOption());"string"==typeof f?l.innerHTML=f:M(f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=o.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=o.get("textColor"),u.style.borderColor=o.get("textareaBorderColor"),u.style.backgroundColor=o.get("textareaColor"),u.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+o.get("buttonColor"),m+=";color:"+o.get("buttonTextColor");var x=this;ht(v,"click",i),ht(y,"click",function(){var t;try{t="function"==typeof c?c(l,e.getOption()):Kx(u.value,p)}catch(t){throw i(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()}),v.innerHTML=s[1],y.innerHTML=s[2],y.style.cssText=m,v.style.cssText=m,!o.get("readOnly")&&g.appendChild(y),g.appendChild(v),ht(u,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+fE+e.substring(n),this.selectionStart=this.selectionEnd=i+1,mw(t)}}),a.appendChild(r),a.appendChild(l),a.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},$x.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},$x.prototype.dispose=function(t,e){this.remove(t,e)},Ty("dataView",$x),Es({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];d(t.newOption.series,function(t){var n=e.getSeriesByName(t.name)[0];if(n){var o=n.get("data");i.push({name:t.name,data:Jx(t.data,o)})}else i.push(a({type:"scatter"},t))}),e.mergeOption(r({series:i},t.newOption))});var gE=d,mE="\0_ec_hist_store";iO.extend({type:"dataZoom.select"}),nO.extend({type:"dataZoom.select"});var vE=rT.toolbox.dataZoom,yE=d,xE="\0_ec_\0toolbox-dataZoom_";o_.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:i(vE.title)};var _E=o_.prototype;_E.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,s_(t,e,this,n,i),r_(t,e)},_E.onclick=function(t,e,i){wE[i].call(this)},_E.remove=function(t,e){this._brushController.unmount()},_E.dispose=function(t,e){this._brushController.dispose()};var wE={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(t_(this.ecModel))}};_E._onBrush=function(t,e){function i(t,e,i){var r=e.getAxis(t),s=r.model,l=n(t,s,a),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=QL(0,i.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(o[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)}),n}if(e.isEnd&&t.length){var o={},a=this.ecModel;this._brushController.updateCovers([]),new hy(a_(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,function(t,e,n){if("cartesian2d"===n.type){var o=t.brushType;"rect"===o?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[o],n,e)}}),Qx(a,o),this._dispatchZoomAction(o)}},_E._dispatchZoomAction=function(t){var e=[];yE(t,function(t,n){e.push(i(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},Ty("dataZoom",o_),Ns(function(t){function e(t,e){if(e){var o=t+"Index",a=e[o];null==a||"all"===a||y(a)||(a=!1===a||"none"===a?[]:[a]),i(t,function(e,i){if(null==a||"all"===a||-1!==l(a,i)){var r={type:"select",$fromToolbox:!0,id:xE+t+i};r[o]=i,n.push(r)}})}}function i(e,i){var n=t[e];y(n)||(n=n?[n]:[]),yE(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);y(n)||(t.dataZoom=n=[n]);var o=t.toolbox;if(o&&(y(o)&&(o=o[0]),o&&o.feature)){var a=o.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}});var bE=rT.toolbox.restore;l_.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:bE.title},l_.prototype.onclick=function(t,e,i){e_(t),e.dispatchAction({type:"restore",from:this.uid})},Ty("restore",l_),Es({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var SE,ME="urn:schemas-microsoft-com:vml",IE="undefined"==typeof window?null:window,TE=!1,AE=IE&&IE.document;if(AE&&!U_.canvasSupported)try{!AE.namespaces.zrvml&&AE.namespaces.add("zrvml",ME),SE=function(t){return AE.createElement("')}}catch(t){SE=function(t){return AE.createElement("<"+t+' xmlns="'+ME+'" class="zrvml">')}}var DE=ES.CMD,CE=Math.round,LE=Math.sqrt,kE=Math.abs,PE=Math.cos,NE=Math.sin,OE=Math.max;if(!U_.canvasSupported){var EE=21600,RE=EE/2,zE=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=EE+","+EE,t.coordorigin="0,0"},BE=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},VE=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},GE=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},FE=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},WE=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},HE=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},ZE=function(t,e,i){var n=Gt(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=VE(n[0],n[1],n[2]),t.opacity=i*n[3])},UE=function(t){var e=Gt(t);return[VE(e[0],e[1],e[2]),e[3]]},XE=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof IM){var o,a=0,r=[0,0],s=0,l=1,u=i.getBoundingRect(),h=u.width,c=u.height;if("linear"===n.type){o="gradient";var d=i.transform,f=[n.x*h,n.y*c],p=[n.x2*h,n.y2*c];d&&(Q(f,f,d),Q(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(a=180*Math.atan2(g,m)/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial";var f=[n.x*h,n.y*c],d=i.transform,v=i.scale,y=h,x=c;r=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Q(f,f,d),y/=v[0]*EE,x/=v[1]*EE;var _=OE(y,x);s=0/_,l=2*n.r/_-s}var w=n.colorStops.slice();w.sort(function(t,e){return t.offset-e.offset});for(var b=w.length,S=[],M=[],I=0;I=2){var D=S[0][0],C=S[1][0],L=S[0][1]*e.opacity,k=S[1][1]*e.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=D,t.color2=C,t.colors=M.join(","),t.opacity=k,t.opacity2=L}"radial"===o&&(t.focusposition=r.join(","))}else ZE(t,n,e.opacity)},jE=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof IM||ZE(t,e.stroke,e.opacity)},YE=function(t,e,i,n){var o="fill"===e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(o||!o&&i.lineWidth)?(t[o?"filled":"stroked"]="true",i[e]instanceof IM&&FE(t,a),a||(a=u_(e)),o?XE(a,i,n):jE(a,i),GE(t,a)):(t[o?"filled":"stroked"]="false",FE(t,a))},qE=[[],[],[]],KE=function(t,e){var i,n,o,a,r,s,l=DE.M,u=DE.C,h=DE.L,c=DE.A,d=DE.Q,f=[],p=t.data,g=t.len();for(a=0;a.01?N&&(O+=.0125):Math.abs(E-D)<1e-4?N&&OA?x-=.0125:x+=.0125:N&&ED?y+=.0125:y-=.0125),f.push(R,CE(((A-C)*M+b)*EE-RE),",",CE(((D-L)*I+S)*EE-RE),",",CE(((A+C)*M+b)*EE-RE),",",CE(((D+L)*I+S)*EE-RE),",",CE((O*M+b)*EE-RE),",",CE((E*I+S)*EE-RE),",",CE((y*M+b)*EE-RE),",",CE((x*I+S)*EE-RE)),r=y,s=x;break;case DE.R:var z=qE[0],B=qE[1];z[0]=p[a++],z[1]=p[a++],B[0]=z[0]+p[a++],B[1]=z[1]+p[a++],e&&(Q(z,z,e),Q(B,B,e)),z[0]=CE(z[0]*EE-RE),B[0]=CE(B[0]*EE-RE),z[1]=CE(z[1]*EE-RE),B[1]=CE(B[1]*EE-RE),f.push(" m ",z[0],",",z[1]," l ",B[0],",",z[1]," l ",B[0],",",B[1]," l ",z[0],",",B[1]);break;case DE.Z:f.push(" x ")}if(i>0){f.push(n);for(var V=0;V100&&(tR=0,QE={});var i,n=eR.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},QE[t]=e,tR++}return e};!function(t,e){bb[t]=e}("measureText",function(t,e){var i=AE;JE||((JE=i.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",AE.body.appendChild(JE));try{JE.style.font=e}catch(t){}return JE.innerHTML="",JE.appendChild(i.createTextNode(t)),{width:JE.offsetWidth}});for(var nR=new de,oR=[Db,di,fi,Pn,rM],aR=0;aR=o&&u+1>=a){for(var h=[],c=0;c=o&&c+1>=a)return T_(0,s.components);l[i]=s}else l[i]=void 0}r++}();if(d)return d}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var o=e.length,a=i.length,r=t.newPos,s=r-n,l=0;r+1=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},D_.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},D_.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},D_.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},D_.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return d(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},D_.prototype.markAllUnused=function(){var t=this;d(this.getDoms(),function(e){e[t._markLabel]="0"})},D_.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},D_.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this;d(this.getDoms(),function(i){"1"!==i[e._markLabel]&&t.removeChild(i)})}},D_.prototype.getSvgProxy=function(t){return t instanceof Pn?yR:t instanceof fi?xR:t instanceof rM?_R:yR},D_.prototype.getTextSvgElement=function(t){return t.__textSvgEl},D_.prototype.getSvgElement=function(t){return t.__svgEl},u(C_,D_),C_.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;d(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var o,a=e.style[n],r=i.getDefs(!0);a._dom?(o=a._dom,r.contains(a._dom)||i.addDom(o)):o=i.add(a),i.markUsed(e);var s=o.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},C_.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return Yw("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},C_.prototype.update=function(t){var e=this;D_.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},C_.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void Yw("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,o=i.length;n0){var n,o,a=this.getDefs(!0),r=e[0],s=i?"_textDom":"_dom";r[s]?(o=r[s].getAttribute("id"),n=r[s],a.contains(n)||a.appendChild(n)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",o),a.appendChild(n),r[s]=n);var l=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!i){var u=Array.prototype.slice.call(r.transform);bt(r.transform,r.parent.invTransform,r.transform),l.brush(r),r.transform=u}else l.brush(r);var h=this.getSvgElement(r);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},L_.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&d(t.__clipPaths,function(t){t._dom&&D_.prototype.markUsed.call(e,t._dom),t._textDom&&D_.prototype.markUsed.call(e,t._textDom)})},u(k_,D_),k_.prototype.addWithoutUpdate=function(t,e){if(e&&P_(e.style)){var i,n=e.style;n._shadowDom?(i=n._shadowDom,this.getDefs(!0).contains(n._shadowDom)||this.addDom(i)):i=this.add(e),this.markUsed(e);var o=i.getAttribute("id");t.style.filter="url(#"+o+")"}},k_.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},k_.prototype.update=function(t,e){var i=e.style;if(P_(i)){var n=this;D_.prototype.update.call(this,e,function(t){n.updateDom(e,t._shadowDom)})}else this.remove(t,i)},k_.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},k_.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,o,a,r,s=t.style,l=t.scale?t.scale[0]||1:1,u=t.scale?t.scale[1]||1:1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,o=s.shadowOffsetY||0,a=s.shadowBlur,r=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,o=s.textShadowOffsetY||0,a=s.textShadowBlur,r=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",o/u),i.setAttribute("flood-color",r);var h=a/2/l+" "+a/2/u;i.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(a/2*200)+"%"),e.setAttribute("height",Math.ceil(a/2*200)+"%"),e.appendChild(i),s._shadowDom=e},k_.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&D_.prototype.markUsed.call(this,e._shadowDom)};var IR=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=a({},i||{});var o=p_("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new C_(n,o),this.clipPathManager=new L_(n,o),this.shadowManager=new k_(n,o);var r=document.createElement("div");r.style.cssText="overflow:hidden;position:relative",this._svgRoot=o,this._viewport=r,t.appendChild(r),r.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]};IR.prototype={constructor:IR,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,o=t.length,a=[];for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var o=i.style;o.width=t+"px",o.height=e+"px";var a=this._svgRoot;a.setAttribute("width",t),a.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var r=this.root,s=document.defaultView.getComputedStyle(r);return(r[n]||N_(s[i])||N_(r.style[i]))-(N_(s[o])||0)-(N_(s[a])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},d(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){IR.prototype[t]=F_(t)}),Ti("svg",IR),t.version="4.2.1",t.dependencies=ET,t.PRIORITY=VT,t.init=function(t,e,i){var n=ks(t);if(n)return n;var o=new us(t,e,i);return o.id="ec_"+iA++,tA[o.id]=o,Fi(t,oA,o.id),Cs(o),o},t.connect=function(t){if(y(t)){var e=t;t=null,kT(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+nA++,kT(e,function(e){e.group=t})}return eA[t]=!0,t},t.disConnect=Ls,t.disconnect=aA,t.dispose=function(t){"string"==typeof t?t=tA[t]:t instanceof us||(t=ks(t)),t instanceof us&&!t.isDisposed()&&t.dispose()},t.getInstanceByDom=ks,t.getInstanceById=function(t){return tA[t]},t.registerTheme=Ps,t.registerPreprocessor=Ns,t.registerProcessor=Os,t.registerPostUpdate=function(t){KT.push(t)},t.registerAction=Es,t.registerCoordinateSystem=Rs,t.getCoordinateSystemDimensions=function(t){var e=Fa.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.registerLayout=zs,t.registerVisual=Bs,t.registerLoading=Gs,t.extendComponentModel=Fs,t.extendComponentView=Ws,t.extendSeriesModel=Hs,t.extendChartView=Zs,t.setCanvasCreator=function(t){e("createCanvas",t)},t.registerMap=function(t,e,i){DT.registerMap(t,e,i)},t.getMap=function(t){var e=DT.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},t.dataTool=rA,t.zrender=Hb,t.number=YM,t.format=eI,t.throttle=Pr,t.helper=tD,t.matrix=Sw,t.vector=cw,t.color=Ww,t.parseGeoJSON=iD,t.parseGeoJson=rD,t.util=sD,t.graphic=lD,t.List=vA,t.Model=No,t.Axis=aD,t.env=U_}); \ No newline at end of file diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/limeClipper/photo.svg b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/limeClipper/photo.svg new file mode 100644 index 0000000000000000000000000000000000000000..7b4b59058376794d6e6a78035f627678102f96ad --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/limeClipper/photo.svg @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/limeClipper/rotate.svg b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/limeClipper/rotate.svg new file mode 100644 index 0000000000000000000000000000000000000000..0143706ca7adea484ed38339980c2cc23559595e --- /dev/null +++ b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/limeClipper/rotate.svg @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/apple.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/apple.png new file mode 100644 index 0000000000000000000000000000000000000000..04a3579cbd143037161da2779fb695f731818d81 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/apple.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/sms.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/sms.png new file mode 100644 index 0000000000000000000000000000000000000000..5533743a21e39f8a89ae2faee1d89ab9581bf29a Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/sms.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/user.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/user.png new file mode 100644 index 0000000000000000000000000000000000000000..268420b7343d9b2c7c58233e024927363928dc5f Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/user.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/weixin.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/weixin.png new file mode 100644 index 0000000000000000000000000000000000000000..af7175b6fed8670ce6e6d1a7a64a4812a4db8cfe Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/uni-fab-login/weixin.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/weixin.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/weixin.png new file mode 100644 index 0000000000000000000000000000000000000000..df70aac5092588d7ccb87d75f024d0c9dc804607 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/login/weixin.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/defaultAvatarUrl.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/defaultAvatarUrl.png new file mode 100644 index 0000000000000000000000000000000000000000..c3d33188b94e4843e0311836ffb0fd843195ae4e Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/defaultAvatarUrl.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/grey.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/grey.png new file mode 100644 index 0000000000000000000000000000000000000000..2aae15a5d0b9eea8451df6395d53775bcc676f78 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/grey.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/headers.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/headers.png new file mode 100644 index 0000000000000000000000000000000000000000..4233e82cf1ef1d850dc9c3772ecde21836f78bfc Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-center/headers.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/alipay.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/alipay.png new file mode 100644 index 0000000000000000000000000000000000000000..adc0417f86720d9a0702186412ec1a735865ac86 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/alipay.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/apple.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/apple.png new file mode 100644 index 0000000000000000000000000000000000000000..4f0840fe2ccb9873bd986dc046813ae7d50cb22d Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/apple.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/douyin.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/douyin.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9f299aa5490d42ca36278b42db6364202b75ce Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/douyin.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/facebook.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/facebook.png new file mode 100644 index 0000000000000000000000000000000000000000..ec418a52d0afe44f547a1c173e9e7a5932e13f3e Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/facebook.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/google.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/google.png new file mode 100644 index 0000000000000000000000000000000000000000..2262f87d7e5421c92115b8a42b6e73f61aa5182b Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/google.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/qq.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/qq.png new file mode 100644 index 0000000000000000000000000000000000000000..33c8505db6102e3f269a2bfc187ff2c41a0f912c Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/qq.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/sinaweibo.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/sinaweibo.png new file mode 100644 index 0000000000000000000000000000000000000000..4424c7e124f8c901888540ff56e01fcbd858ee51 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/sinaweibo.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/sms.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/sms.png new file mode 100644 index 0000000000000000000000000000000000000000..4488c564b2d5a0107e6874c1136a3c30322d5b4e Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/sms.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/taobao.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/taobao.png new file mode 100644 index 0000000000000000000000000000000000000000..8f0944092327135b88686f39f6b247814e9a825a Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/taobao.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/univerify.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/univerify.png new file mode 100644 index 0000000000000000000000000000000000000000..75778d36dd63ed6038e8d1afec1e572485dd0f19 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/univerify.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/user.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/user.png new file mode 100644 index 0000000000000000000000000000000000000000..5f330e7b72484c8e00e24c0f890e849717d73aa1 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/user.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/weixin.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/weixin.png new file mode 100644 index 0000000000000000000000000000000000000000..26e85c16080a366931bd1fa2e3316266be09265f Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-id-pages/static/uni-fab-login/weixin.png differ diff --git a/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-sign-in/static/background.png b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-sign-in/static/background.png new file mode 100644 index 0000000000000000000000000000000000000000..2d7ba0999a55dea2553a7319e93c8904b51d7810 Binary files /dev/null and b/alpha/admin/unpackage/dist/build/h5/uni_modules/uni-sign-in/static/background.png differ