diff --git a/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMain.java b/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMain.java index 7e0ce79..24a6db1 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMain.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMain.java @@ -40,7 +40,7 @@ public class SaAgentMain extends BaseMainEntity { private String level;//代理商资质 @Column(length = 32) - private String senum;//流程号 + private String senum;//流水号 @ApiModelProperty("备注") private String notes; diff --git a/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMainApi.java b/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMainApi.java index 6aa0780..b84728f 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMainApi.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/agent/main/SaAgentMainApi.java @@ -6,11 +6,9 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; -import vboot.app.module.te.allot.check.Zcheck; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; -import vboot.core.module.ass.addr.main.AssAddrMainHand; import vboot.core.module.ass.num.main.AssNumMainService; import vboot.core.xutil.file.ExcelUtil; import vboot.core.xutil.file.excel.ExcelResult; @@ -29,7 +27,7 @@ import java.util.Map; public class SaAgentMainApi { @GetMapping - public RestResult get(String name, String catid) { + public R get(String name, String catid) { CompiledScript script = ScriptUtil.compile("var map={};var a=1;var b=2;map.xx=" + XnumberUtil.getRandom6() +"+a+b;map"); try { @@ -42,19 +40,18 @@ public class SaAgentMainApi { Sqler sqler = new Sqler("sa_agent_main"); sqler.addLike("t.name", name); sqler.addSelect("t.addre,t.senum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @PostMapping("imp") - public RestResult postImp(@RequestPart("file") MultipartFile file) throws Exception { + public R postImp(@RequestPart("file") MultipartFile file) throws Exception { ExcelResult result = ExcelUtil.importExcel(file.getInputStream(), Student.class, new StudentImportListener()); System.out.println(result); - return RestResult.ok(result); -// return RestResult.error(result); + return R.ok(result); +// return R.error(result); } - @GetMapping("exp") public void getExp(HttpServletResponse response) throws Exception { Sqler sqler=new Sqler("t.id,t.name,t.crtim,t.uptim","sa_agent_main"); @@ -90,32 +87,27 @@ public class SaAgentMainApi { return students; } - - @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SaAgentMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SaAgentMain main) { - String num = numService.getNum("AGENT"); - main.setSenum(num); - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SaAgentMain main) { + main.setSenum(numService.getNum("AGENT")); + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SaAgentMain main) { - - return RestResult.ok(service.update(main)); + public R put(@RequestBody SaAgentMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/sa/cust/main/SaCustMainApi.java b/vboot-application/src/main/java/vboot/app/module/sa/cust/main/SaCustMainApi.java index b220b18..697b5c7 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/cust/main/SaCustMainApi.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/cust/main/SaCustMainApi.java @@ -2,7 +2,7 @@ package vboot.app.module.sa.cust.main; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; @@ -12,44 +12,44 @@ public class SaCustMainApi { //分页查询项目清单 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sa_cust_main"); sqler.addLike("t.name", name); sqler.addSelect("t.notes"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } //查询单个项目 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SaCustMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } //新增项目 @PostMapping - public RestResult post(@RequestBody SaCustMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SaCustMain main) { + return R.ok(service.insert(main)); } //修改项目 @PutMapping - public RestResult put(@RequestBody SaCustMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SaCustMain main) { + return R.ok(service.update(main)); } //删除项目 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } //同时使用JPA与mybatis-plus的事务测试 @PostMapping("test") - public RestResult postTest() { + public R postTest() { service.test(); - return RestResult.ok(); + return R.ok(); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/sa/draw/main/SaDrawMainApi.java b/vboot-application/src/main/java/vboot/app/module/sa/draw/main/SaDrawMainApi.java index 90ba911..1b0ad4c 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/draw/main/SaDrawMainApi.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/draw/main/SaDrawMainApi.java @@ -1,6 +1,6 @@ package vboot.app.module.sa.draw.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,33 +10,33 @@ import org.springframework.web.bind.annotation.*; public class SaDrawMainApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name,String catid) { Sqler sqler = new Sqler("sa_draw_main"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SaDrawMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SaDrawMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SaDrawMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SaDrawMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SaDrawMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/sa/prod/group/SaProdGroupApi.java b/vboot-application/src/main/java/vboot/app/module/sa/prod/group/SaProdGroupApi.java index c24f009..66a186b 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/prod/group/SaProdGroupApi.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/prod/group/SaProdGroupApi.java @@ -1,6 +1,6 @@ package vboot.app.module.sa.prod.group; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,44 +11,44 @@ public class SaProdGroupApi { //分页查询项目清单 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sa_prod_group"); sqler.addLike("t.name", name); sqler.addSelect("t.addre,t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } //查询单个项目 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SaProdGroup main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } // //查询单个项目 // @GetMapping("proj/{id}") -// public RestResult getOneByProj(@PathVariable String id) { +// public R getOneByProj(@PathVariable String id) { // List groups = service.findAllByProjid(id); -// return RestResult.ok(groups); +// return R.ok(groups); // } //新增项目 @PostMapping - public RestResult post(@RequestBody SaProdGroup main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SaProdGroup main) { + return R.ok(service.insert(main).getId()); } //修改项目 @PutMapping - public RestResult put(@RequestBody SaProdGroup main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SaProdGroup main) { + return R.ok(service.update(main).getId()); } //删除项目 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/sa/prod/tem/SaProdTemApi.java b/vboot-application/src/main/java/vboot/app/module/sa/prod/tem/SaProdTemApi.java index 49def0c..7ecb8d7 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/prod/tem/SaProdTemApi.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/prod/tem/SaProdTemApi.java @@ -1,6 +1,6 @@ package vboot.app.module.sa.prod.tem; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,33 +10,33 @@ import org.springframework.web.bind.annotation.*; public class SaProdTemApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sa_prod_tem"); sqler.addLike("t.name", name); sqler.addLeftJoin("m.name as modna", "te_prod_model m", "m.id=t.modid"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SaProdTem main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SaProdTem main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SaProdTem main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SaProdTem main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SaProdTem main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/sa/proj/main/SaProjMainApi.java b/vboot-application/src/main/java/vboot/app/module/sa/proj/main/SaProjMainApi.java index 578b1e2..ff45737 100644 --- a/vboot-application/src/main/java/vboot/app/module/sa/proj/main/SaProjMainApi.java +++ b/vboot-application/src/main/java/vboot/app/module/sa/proj/main/SaProjMainApi.java @@ -2,7 +2,7 @@ package vboot.app.module.sa.proj.main; import vboot.app.module.sa.prod.group.SaProdGroup; import vboot.app.module.sa.prod.group.SaProdGroupService; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Zinp; import org.springframework.beans.factory.annotation.Autowired; @@ -17,7 +17,7 @@ import java.util.List; public class SaProjMainApi { @GetMapping("tree") - public RestResult getTree(String name) { + public R getTree(String name) { List list = new ArrayList<>(); Zinp zinp = new Zinp(); zinp.setId("11"); @@ -28,45 +28,45 @@ public class SaProjMainApi { zinp2.setName("测试2"); list.add(zinp); list.add(zinp2); - return RestResult.ok(list); + return R.ok(list); } //分页查询项目清单 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sa_proj_main"); sqler.addLike("t.name", name); sqler.addSelect("t.addre,t.notes"); System.out.println(new Date()); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } //查询单个项目 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SaProjMain main = service.findOne(id); List groups = groupService.findAllByProjid(id); main.setGroups(groups); - return RestResult.ok(main); + return R.ok(main); } //新增项目 @PostMapping - public RestResult post(@RequestBody SaProjMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SaProjMain main) { + return R.ok(service.insert(main).getId()); } //修改项目 @PutMapping - public RestResult put(@RequestBody SaProjMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SaProjMain main) { + return R.ok(service.update(main).getId()); } //删除项目 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/allot/check/TeAllotCheckApi.java b/vboot-application/src/main/java/vboot/app/module/te/allot/check/TeAllotCheckApi.java index 88cfa13..241344d 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/allot/check/TeAllotCheckApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/allot/check/TeAllotCheckApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.allot.check; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,39 +10,37 @@ import org.springframework.web.bind.annotation.*; public class TeAllotCheckApi { @GetMapping - public RestResult get(String name,String modid) { + public R get(String name,String modid) { Sqler sqler = new Sqler("te_allot_check"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeAllotCheck main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("checks") - public RestResult checks(String id) { - return RestResult.ok(service.findData(id)); + public R checks(String id) { + return R.ok(service.findData(id)); } - - @PostMapping - public RestResult post(@RequestBody TeAllotCheck main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeAllotCheck main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeAllotCheck main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeAllotCheck main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/allot/drive/TeAllotDriveApi.java b/vboot-application/src/main/java/vboot/app/module/te/allot/drive/TeAllotDriveApi.java index 6f75192..bdd7c99 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/allot/drive/TeAllotDriveApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/allot/drive/TeAllotDriveApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.allot.drive; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,38 +10,38 @@ import org.springframework.web.bind.annotation.*; public class TeAllotDriveApi { @GetMapping - public RestResult get(String name,String modid) { + public R get(String name, String modid) { Sqler sqler = new Sqler("te_allot_drive"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeAllotDrive main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("drives") - public RestResult drives(String id) { - return RestResult.ok(service.findData(id)); + public R drives(String id) { + return R.ok(service.findData(id)); } @PostMapping - public RestResult post(@RequestBody TeAllotDrive main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeAllotDrive main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeAllotDrive main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeAllotDrive main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/allot/link/TeAllotLinkApi.java b/vboot-application/src/main/java/vboot/app/module/te/allot/link/TeAllotLinkApi.java index 5db7c90..6e2997f 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/allot/link/TeAllotLinkApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/allot/link/TeAllotLinkApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.allot.link; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,36 +10,36 @@ import org.springframework.web.bind.annotation.*; public class TeAllotLinkApi { @GetMapping - public RestResult get(String name,String modid) { + public R get(String name,String modid) { Sqler sqler = new Sqler("te_allot_link"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeAllotLink main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("links") - public RestResult links(String id) { - return RestResult.ok(service.findData(id)); + public R links(String id) { + return R.ok(service.findData(id)); } @PostMapping - public RestResult post(@RequestBody TeAllotLink main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeAllotLink main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeAllotLink main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeAllotLink main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/allot/param/TeAllotParamApi.java b/vboot-application/src/main/java/vboot/app/module/te/allot/param/TeAllotParamApi.java index 1116ef6..4362de6 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/allot/param/TeAllotParamApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/allot/param/TeAllotParamApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.allot.param; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,36 +10,36 @@ import org.springframework.web.bind.annotation.*; public class TeAllotParamApi { @GetMapping - public RestResult get(String name,String modid) { + public R get(String name, String modid) { Sqler sqler = new Sqler("te_allot_param"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeAllotParam main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("screens") - public RestResult screens(String id) { - return RestResult.ok(service.findData(id)); + public R screens(String id) { + return R.ok(service.findData(id)); } @PostMapping - public RestResult post(@RequestBody TeAllotParam main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeAllotParam main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeAllotParam main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeAllotParam main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/feat/check/TeFeatCheckApi.java b/vboot-application/src/main/java/vboot/app/module/te/feat/check/TeFeatCheckApi.java index 0e7bcac..97f2fff 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/feat/check/TeFeatCheckApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/feat/check/TeFeatCheckApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.feat.check; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,33 +11,33 @@ import org.springframework.web.bind.annotation.*; public class TeFeatCheckApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name, String catid) { Sqler sqler = new Sqler("te_feat_check"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addLeftJoin("c.name as catna", "te_prod_cate c", "c.id=t.catid"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeFeatCheck main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeFeatCheck main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeFeatCheck main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeFeatCheck main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeFeatCheck main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/feat/comp/TeFeatCompApi.java b/vboot-application/src/main/java/vboot/app/module/te/feat/comp/TeFeatCompApi.java index 50f6b4e..d31faa1 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/feat/comp/TeFeatCompApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/feat/comp/TeFeatCompApi.java @@ -1,7 +1,7 @@ package vboot.app.module.te.feat.comp; import vboot.app.module.te.allot.param.TeAllotParamService; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; @@ -13,34 +13,34 @@ import org.springframework.web.bind.annotation.*; public class TeFeatCompApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("te_feat_comp"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeFeatComp main = service.findOne(id); if (XstrUtil.isNotBlank(main.getPatid())) { main.setPatem(apService.findOne(main.getPatid())); } - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeFeatComp main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeFeatComp main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeFeatComp main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeFeatComp main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/feat/drive/TeFeatDriveApi.java b/vboot-application/src/main/java/vboot/app/module/te/feat/drive/TeFeatDriveApi.java index 6b25d7a..9f690e2 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/feat/drive/TeFeatDriveApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/feat/drive/TeFeatDriveApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.feat.drive; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,33 +11,33 @@ import org.springframework.web.bind.annotation.*; public class TeFeatDriveApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name,String catid) { Sqler sqler = new Sqler("te_feat_drive"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addLeftJoin("c.name as catna", "te_prod_cate c", "c.id=t.catid"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeFeatDrive main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeFeatDrive main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeFeatDrive main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeFeatDrive main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeFeatDrive main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/feat/link/TeFeatLinkApi.java b/vboot-application/src/main/java/vboot/app/module/te/feat/link/TeFeatLinkApi.java index 48fad03..c6c8736 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/feat/link/TeFeatLinkApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/feat/link/TeFeatLinkApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.feat.link; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,34 +11,34 @@ import org.springframework.web.bind.annotation.*; public class TeFeatLinkApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name,String catid) { Sqler sqler = new Sqler("te_feat_link"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addLeftJoin("c.name as catna", "te_prod_cate c", "c.id=t.catid"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeFeatLink main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeFeatLink main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeFeatLink main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeFeatLink main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeFeatLink main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/feat/param/TeFeatParamApi.java b/vboot-application/src/main/java/vboot/app/module/te/feat/param/TeFeatParamApi.java index d0b1452..0944748 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/feat/param/TeFeatParamApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/feat/param/TeFeatParamApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.feat.param; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.ZidName; @@ -15,56 +15,56 @@ import java.util.Map; public class TeFeatParamApi { @GetMapping - public RestResult get(String name,String scrid) { + public R get(String name, String scrid) { Sqler sqler = new Sqler("te_feat_param"); sqler.addLike("t.name", name); sqler.addEqual("t.scrid", scrid); sqler.addLeftJoin("s.name as scrna", "te_feat_screen s", "s.id=t.scrid"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeFeatParam main = service.findOne(id); String sql = "select name from te_feat_screen where id=?"; String scrna = jdbcDao.findOneString(sql, main.getScrid()); main.setScrna(scrna); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("options") - public RestResult getOptions(String id) { + public R getOptions(String id) { String sql = "select id,name,code from te_feat_param_option where parid=?"; List> mapList = jdbcDao.findMapList(sql, id); - return RestResult.ok(mapList); + return R.ok(mapList); } @GetMapping("list") - public RestResult getListByCate(String catid) { + public R getListByCate(String catid) { String sql = "select t.id,t.name from te_feat_param t inner join te_feat_screen s on s.id=t.scrid " + "inner join te_prod_cate c on c.id=s.catid where s.catid=?"; List idNameList = jdbcDao.findIdNameList(sql, catid); - return RestResult.ok(idNameList); + return R.ok(idNameList); } @GetMapping("mallot") - public RestResult mallot(String id) { - return RestResult.ok(service.findData(id)); + public R mallot(String id) { + return R.ok(service.findData(id)); } @PostMapping - public RestResult post(@RequestBody TeFeatParam main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeFeatParam main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeFeatParam main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeFeatParam main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/feat/screen/TeFeatScreenApi.java b/vboot-application/src/main/java/vboot/app/module/te/feat/screen/TeFeatScreenApi.java index 3e77dc4..80c3282 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/feat/screen/TeFeatScreenApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/feat/screen/TeFeatScreenApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.feat.screen; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Zinp; import org.springframework.beans.factory.annotation.Autowired; @@ -13,39 +13,39 @@ import java.util.List; public class TeFeatScreenApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name,String catid) { Sqler sqler = new Sqler("te_feat_screen"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addLeftJoin("c.name as catna", "te_prod_cate c", "c.id=t.catid"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("tree") - public RestResult getTree(String name) { + public R getTree(String name) { List list = service.findTreeList(name); - return RestResult.ok(list); + return R.ok(list); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeFeatScreen main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeFeatScreen main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeFeatScreen main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeFeatScreen main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeFeatScreen main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/prod/cate/TeProdCateApi.java b/vboot-application/src/main/java/vboot/app/module/te/prod/cate/TeProdCateApi.java index 64a4133..d432636 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/prod/cate/TeProdCateApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/prod/cate/TeProdCateApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.prod.cate; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,42 +11,42 @@ public class TeProdCateApi { //分页特性分类 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("te_prod_cate"); sqler.addLike("t.name", name); sqler.addSelect("t.notes"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList() { - return RestResult.ok(service.findAll()); + public R getList() { + return R.ok(service.findAll()); } //查询单个分类 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeProdCate cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } //新增分类 @PostMapping - public RestResult post(@RequestBody TeProdCate cate) { - return RestResult.ok(service.insert(cate)); + public R post(@RequestBody TeProdCate cate) { + return R.ok(service.insert(cate)); } //修改分类 @PutMapping - public RestResult put(@RequestBody TeProdCate cate) { - return RestResult.ok(service.update(cate)); + public R put(@RequestBody TeProdCate cate) { + return R.ok(service.update(cate)); } //删除分类 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/prod/model/TeProdModelApi.java b/vboot-application/src/main/java/vboot/app/module/te/prod/model/TeProdModelApi.java index 131cea8..a8c14b5 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/prod/model/TeProdModelApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/prod/model/TeProdModelApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.prod.model; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Zinp; @@ -16,60 +16,60 @@ import java.util.Map; public class TeProdModelApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name, String catid) { Sqler sqler = new Sqler("te_prod_model"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addLeftJoin("c.name as catna", "te_prod_cate c", "c.id=t.catid"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeProdModel main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("list") - public RestResult getList(String serid,String catid) { + public R getList(String serid, String catid) { if(XstrUtil.isNotBlank(catid)){ String sql = "select m.id,m.name from te_prod_model m where m.catid=?"; List> mapList = jdbcDao.findMapList(sql, catid); - return RestResult.ok(mapList); + return R.ok(mapList); }else if(XstrUtil.isNotBlank(serid)){ String sql = "select m.id,m.name from te_prod_model m where m.serid=?"; List> mapList = jdbcDao.findMapList(sql, serid); - return RestResult.ok(mapList); + return R.ok(mapList); }else{ return null; } } @GetMapping("zmodel") - public RestResult getFeat(String id) { + public R getFeat(String id) { Zmodel zmodel = service.getZmodel(id); - return RestResult.ok(zmodel); + return R.ok(zmodel); } @GetMapping("tree") - public RestResult getTree(String name) { + public R getTree(String name) { List list = service.findTreeList(name); - return RestResult.ok(list); + return R.ok(list); } @PostMapping - public RestResult post(@RequestBody TeProdModel main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeProdModel main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeProdModel main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeProdModel main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/prod/serie/TeProdSerieApi.java b/vboot-application/src/main/java/vboot/app/module/te/prod/serie/TeProdSerieApi.java index 838fd85..f1acb88 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/prod/serie/TeProdSerieApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/prod/serie/TeProdSerieApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.prod.serie; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,39 +10,39 @@ import org.springframework.web.bind.annotation.*; public class TeProdSerieApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name,String catid) { Sqler sqler = new Sqler("te_prod_serie"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addLeftJoin("c.name as catna", "te_prod_cate c", "c.id=t.catid"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList(String catid) { - return RestResult.ok(service.findAllByCatid(catid)); + public R getList(String catid) { + return R.ok(service.findAllByCatid(catid)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeProdSerie main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeProdSerie main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeProdSerie main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeProdSerie main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeProdSerie main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/prod/test/TeProdTestApi.java b/vboot-application/src/main/java/vboot/app/module/te/prod/test/TeProdTestApi.java index bc4f4a4..42c99f9 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/prod/test/TeProdTestApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/prod/test/TeProdTestApi.java @@ -2,7 +2,7 @@ package vboot.app.module.te.prod.test; import vboot.app.module.te.prod.cate.TeProdCate; import vboot.app.module.te.prod.cate.TeProdCateService; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -13,41 +13,41 @@ public class TeProdTestApi { //分页特性分类 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("te_prod_test"); sqler.addLike("t.name", name); sqler.addSelect("t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList() { - return RestResult.ok(service.findAll()); + public R getList() { + return R.ok(service.findAll()); } //查询单个分类 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeProdCate cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } //新增分类 @PostMapping - public RestResult post(@RequestBody TeProdCate cate) { - return RestResult.ok(service.insert(cate)); + public R post(@RequestBody TeProdCate cate) { + return R.ok(service.insert(cate)); } //修改分类 @PutMapping - public RestResult put(@RequestBody TeProdCate cate) { - return RestResult.ok(service.update(cate)); + public R put(@RequestBody TeProdCate cate) { + return R.ok(service.update(cate)); } //删除分类 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/prod/version/TeProdVersionApi.java b/vboot-application/src/main/java/vboot/app/module/te/prod/version/TeProdVersionApi.java index 31196af..eb84a98 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/prod/version/TeProdVersionApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/prod/version/TeProdVersionApi.java @@ -1,7 +1,7 @@ package vboot.app.module.te.prod.version; import vboot.app.module.te.allot.param.TeAllotParamService; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; @@ -13,38 +13,38 @@ import org.springframework.web.bind.annotation.*; public class TeProdVersionApi { @GetMapping - public RestResult get(String name, String modid) { + public R get(String name, String modid) { Sqler sqler = new Sqler("te_prod_version"); - sqler.addLike("t.name", name); - sqler.addEqual("t.modid", modid); + sqler.addLike("t.name" , name); + sqler.addEqual("t.modid" , modid); sqler.addSelect("t.detag"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeProdVersion main = service.findOne(id); - String modna = jdbcDao.findOneString("select name from te_prod_model where id=?", main.getModid()); + String modna = jdbcDao.findOneString("select name from te_prod_model where id=?" , main.getModid()); main.setModna(modna); if (XstrUtil.isNotBlank(main.getPatid())) { main.setPatem(apService.findOne(main.getPatid())); } - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody TeProdVersion main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody TeProdVersion main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody TeProdVersion main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody TeProdVersion main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/tran/cate/TeTranCateApi.java b/vboot-application/src/main/java/vboot/app/module/te/tran/cate/TeTranCateApi.java index f8ee488..357ae30 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/tran/cate/TeTranCateApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/tran/cate/TeTranCateApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.tran.cate; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,42 +11,42 @@ public class TeTranCateApi { //分页特性分类 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("te_tran_cate"); sqler.addLike("t.name", name); sqler.addSelect("t.notes"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList() { - return RestResult.ok(service.findAll()); + public R getList() { + return R.ok(service.findAll()); } //查询单个分类 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeTranCate cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } //新增分类 @PostMapping - public RestResult post(@RequestBody TeTranCate cate) { - return RestResult.ok(service.insert(cate)); + public R post(@RequestBody TeTranCate cate) { + return R.ok(service.insert(cate)); } //修改分类 @PutMapping - public RestResult put(@RequestBody TeTranCate cate) { - return RestResult.ok(service.update(cate)); + public R put(@RequestBody TeTranCate cate) { + return R.ok(service.update(cate)); } //删除分类 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-application/src/main/java/vboot/app/module/te/tran/main/TeTranMainApi.java b/vboot-application/src/main/java/vboot/app/module/te/tran/main/TeTranMainApi.java index 562aa49..f9bb9be 100644 --- a/vboot-application/src/main/java/vboot/app/module/te/tran/main/TeTranMainApi.java +++ b/vboot-application/src/main/java/vboot/app/module/te/tran/main/TeTranMainApi.java @@ -1,6 +1,6 @@ package vboot.app.module.te.tran.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -11,42 +11,42 @@ public class TeTranMainApi { //分页特性分类 @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("te_tran_main"); sqler.addLike("t.name", name); sqler.addSelect("t.notes"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList() { - return RestResult.ok(service.findAll()); + public R getList() { + return R.ok(service.findAll()); } //查询单个分类 @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { TeTranMain cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } //新增分类 @PostMapping - public RestResult post(@RequestBody TeTranMain cate) { - return RestResult.ok(service.insert(cate)); + public R post(@RequestBody TeTranMain cate) { + return R.ok(service.insert(cate)); } //修改分类 @PutMapping - public RestResult put(@RequestBody TeTranMain cate) { - return RestResult.ok(service.update(cate)); + public R put(@RequestBody TeTranMain cate) { + return R.ok(service.update(cate)); } //删除分类 @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/pom.xml b/vboot-core/pom.xml index e87d3b1..90d0724 100644 --- a/vboot-core/pom.xml +++ b/vboot-core/pom.xml @@ -200,16 +200,23 @@ + + + + + + + - ch.ethz.ganymed - ganymed-ssh2 - 262 + com.github.oshi + oshi-core + 6.1.6 org.snmp4j snmp4j - 2.6.2 + 2.6.3 @@ -301,6 +308,26 @@ 5.23 + + + commons-io + commons-io + 2.11.0 + + + + + org.apache.velocity + velocity-engine-core + 2.3 + + + + + com.alibaba.fastjson2 + fastjson2 + 2.0.4 + com.baomidou diff --git a/vboot-core/src/main/java/vboot/core/common/api/R.java b/vboot-core/src/main/java/vboot/core/common/api/R.java new file mode 100644 index 0000000..109d3a7 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/common/api/R.java @@ -0,0 +1,61 @@ +package vboot.core.common.api; + +import java.util.ArrayList; +import java.util.HashMap; + +public class R extends HashMap { + private static final long serialVersionUID = 1L; + + public static final String CODE_TAG = "code"; + + public static final String MSG_TAG = "message"; + + public static final String DATA_TAG = "result"; + + public R() { + + } + + public R(int code, String msg) { + super.put(CODE_TAG, code); + super.put(MSG_TAG, msg); + } + + public R(int code, String msg, Object data) { + super.put(CODE_TAG, code); + super.put(MSG_TAG, msg); + super.put(DATA_TAG, data); + } + + public static R ok() { + return R.ok("操作成功"); + } + + public static R ok(Object data) { + return R.ok("操作成功", data); + } + + public static R empty() { + return R.ok("操作成功", new ArrayList<>()); + } + + public static R ok(String msg, Object data) { + return new R(0, msg, data); + } + + public static R error(Object data) { + return R.error("操作失败", data); + } + + public static R error(String msg, Object data) { + return new R(500, msg, data); + } + + public static R build(int code, String msg) { + return new R(code, msg, null); + } + + public static R build(int code, String msg, Object data) { + return new R(code, msg, data); + } +} diff --git a/vboot-core/src/main/java/vboot/core/common/api/RestResult.java b/vboot-core/src/main/java/vboot/core/common/api/RestResult.java deleted file mode 100644 index 83840e0..0000000 --- a/vboot-core/src/main/java/vboot/core/common/api/RestResult.java +++ /dev/null @@ -1,62 +0,0 @@ -package vboot.core.common.api; - - -import java.util.ArrayList; -import java.util.HashMap; - -public class RestResult extends HashMap { - private static final long serialVersionUID = 1L; - - public static final String CODE_TAG = "code"; - - public static final String MSG_TAG = "message"; - - public static final String DATA_TAG = "result"; - - public RestResult() { - - } - - public RestResult(int code, String msg) { - super.put(CODE_TAG, code); - super.put(MSG_TAG, msg); - } - - public RestResult(int code, String msg, Object data) { - super.put(CODE_TAG, code); - super.put(MSG_TAG, msg); - super.put(DATA_TAG, data); - } - - public static RestResult ok() { - return RestResult.ok("操作成功"); - } - - public static RestResult ok(Object data) { - return RestResult.ok("操作成功", data); - } - - public static RestResult empty() { - return RestResult.ok("操作成功", new ArrayList<>()); - } - - public static RestResult ok(String msg, Object data) { - return new RestResult(0, msg, data); - } - - public static RestResult error(Object data) { - return RestResult.error("操作失败", data); - } - - public static RestResult error(String msg, Object data) { - return new RestResult(500, msg, data); - } - - public static RestResult build(int code, String msg) { - return new RestResult(code, msg, null); - } - - public static RestResult build(int code, String msg, Object data) { - return new RestResult(code, msg, data); - } -} diff --git a/vboot-core/src/main/java/vboot/core/common/init/SysPortalInit.java b/vboot-core/src/main/java/vboot/core/common/init/SysPortalInit.java index 7266ab2..2d7798e 100644 --- a/vboot-core/src/main/java/vboot/core/common/init/SysPortalInit.java +++ b/vboot-core/src/main/java/vboot/core/common/init/SysPortalInit.java @@ -359,7 +359,6 @@ public class SysPortalInit { menu132a.setPorid("sys"); menuService.insert(menu132a); - SysPortalMenu menu133 = new SysPortalMenu(); menu133.setId("SysPortalRole"); menu133.setName("门户角色"); @@ -392,112 +391,16 @@ public class SysPortalInit { menu133a.setPorid("sys"); menuService.insert(menu133a); - SysPortalMenu menu14 = new SysPortalMenu(); - menu14.setId("SysJob"); - menu14.setName("定时任务"); - menu14.setCode("SysJob"); - menu14.setComp("LAYOUT"); - menu14.setPath("/sys/job"); - menu14.setRedirect("/sys/job/main"); - menu14.setOrnum(4); - menu14.setIcon("ele-AlarmClock"); - menu14.setPid("Sys"); - menu14.setAvtag(true); - menu14.setShtag(true); - menu14.setType("D"); - menu14.setPorid("sys"); - menuService.insert(menu14); - - SysPortalMenu menu141 = new SysPortalMenu(); - menu141.setId("SysJobMain"); - menu141.setName("任务清单"); - menu141.setCode("SysJobMain"); - menu141.setPath("/sys/job/main"); - menu141.setComp("/sys/job/main/index"); - menu141.setOrnum(1); - menu141.setIcon("ele-Tickets"); - menu141.setPid("SysJob"); - menu141.setCatag(true); - menu141.setAvtag(true); - menu141.setShtag(true); - menu141.setType("M"); - menu141.setPorid("sys"); - menuService.insert(menu141); - - SysPortalMenu menu141a = new SysPortalMenu(); - menu141a.setId("SysJobMainEdit"); - menu141a.setName("任务编辑"); - menu141a.setCode("SysJobMainEdit"); - menu141a.setPath("/sys/job/main/edit"); - menu141a.setComp("/sys/job/main/edit"); - menu141a.setOrnum(2); - menu141a.setIcon("ele-Tickets"); - menu141a.setPid("SysJob"); - menu141a.setCatag(true); - menu141a.setAvtag(true); - menu141a.setShtag(false); - menu141a.setType("M"); - menu141a.setPorid("sys"); - menuService.insert(menu141a); - - SysPortalMenu menu142 = new SysPortalMenu(); - menu142.setId("SysJobLog"); - menu142.setName("任务日志"); - menu142.setCode("SysJobLog"); - menu142.setPath("/sys/job/log"); - menu142.setComp("/sys/job/log/index"); - menu142.setOrnum(3); - menu142.setIcon("ele-Tickets"); - menu142.setPid("SysJob"); - menu142.setCatag(true); - menu142.setAvtag(true); - menu142.setShtag(true); - menu142.setType("M"); - menu142.setPorid("sys"); - menuService.insert(menu142); - - SysPortalMenu menu15 = new SysPortalMenu(); - menu15.setId("SysLog"); - menu15.setName("系统日志"); - menu15.setCode("SysLog"); - menu15.setComp("LAYOUT"); - menu15.setPath("/sys/log"); - menu15.setRedirect("/sys/log/login"); - menu15.setOrnum(5); - menu15.setIcon("ele-Notification"); - menu15.setPid("Sys"); - menu15.setAvtag(true); - menu15.setShtag(true); - menu15.setType("D"); - menu15.setPorid("sys"); - menuService.insert(menu15); - - SysPortalMenu menu151 = new SysPortalMenu(); - menu151.setId("SysLogLogin"); - menu151.setName("登录日志"); - menu151.setCode("SysLogLogin"); - menu151.setPath("/sys/log/login"); - menu151.setComp("/sys/log/login/index"); - menu151.setOrnum(1); - menu151.setIcon("ele-Tickets"); - menu151.setPid("SysLog"); - menu151.setCatag(true); - menu151.setAvtag(true); - menu151.setShtag(true); - menu151.setType("M"); - menu151.setPorid("sys"); - menuService.insert(menu151); - - //-----------------辅助工具-------------------- + //-----------------监控中心-------------------- SysPortalMenu menu2 = new SysPortalMenu(); - menu2.setId("Ass"); - menu2.setName("辅助工具"); - menu2.setCode("Ass"); + menu2.setId("Mon"); + menu2.setName("监控中心"); + menu2.setCode("Mon"); menu2.setComp("LAYOUT"); - menu2.setPath("/ass"); - menu2.setRedirect("/ass/dict/main"); + menu2.setPath("/mon"); + menu2.setRedirect("/mon/server/main"); menu2.setOrnum(2); - menu2.setIcon("ele-Help"); + menu2.setIcon("ele-DataLine"); menu2.setAvtag(true); menu2.setShtag(true); menu2.setType("D"); @@ -505,215 +408,374 @@ public class SysPortalInit { menuService.insert(menu2); SysPortalMenu menu211 = new SysPortalMenu(); - menu211.setId("AssDictMain"); - menu211.setName("数据字典"); - menu211.setCode("AssDictMain"); - menu211.setPath("/ass/dict/main"); - menu211.setComp("/ass/dict/main/index"); + menu211.setId("MonLogLogin"); + menu211.setName("登录日志"); + menu211.setCode("MonLogLogin"); + menu211.setPath("/mon/log/login"); + menu211.setComp("/mon/log/login/index"); menu211.setOrnum(211); menu211.setIcon("ele-Tickets"); - menu211.setPid("Ass"); - menu211.setCatag(false); + menu211.setPid("Mon"); + menu211.setCatag(true); menu211.setAvtag(true); menu211.setShtag(true); menu211.setType("M"); menu211.setPorid("sys"); menuService.insert(menu211); - SysPortalMenu menu211b = new SysPortalMenu(); - menu211b.setId("AssDictData"); - menu211b.setName("数据字典"); - menu211b.setCode("AssDictData"); - menu211b.setPath("/ass/dict/data"); - menu211b.setComp("/ass/dict/data/index"); - menu211b.setOrnum(211); - menu211b.setIcon("ele-Tickets"); - menu211b.setPid("Ass"); - menu211b.setCatag(false); - menu211b.setAvtag(true); - menu211b.setShtag(false); - menu211b.setType("M"); - menu211b.setPorid("sys"); - menuService.insert(menu211b); + SysPortalMenu menu261 = new SysPortalMenu(); + menu261.setId("MonJobMain"); + menu261.setName("定时任务"); + menu261.setCode("MonJobMain"); + menu261.setPath("/mon/job/main"); + menu261.setComp("/mon/job/main/index"); + menu261.setOrnum(261); + menu261.setIcon("ele-Tickets"); + menu261.setPid("Mon"); + menu261.setCatag(true); + menu261.setAvtag(true); + menu261.setShtag(true); + menu261.setType("M"); + menu261.setPorid("sys"); + menuService.insert(menu261); - SysPortalMenu menu212 = new SysPortalMenu(); - menu212.setId("AssNumMain"); - menu212.setName("编号策略"); - menu212.setCode("AssNumMain"); - menu212.setPath("/ass/num/main"); - menu212.setComp("/ass/num/main/index"); - menu212.setOrnum(212); - menu212.setIcon("ele-Tickets"); - menu212.setPid("Ass"); - menu212.setCatag(false); - menu212.setAvtag(true); - menu212.setShtag(true); - menu212.setType("M"); - menu212.setPorid("sys"); - menuService.insert(menu212); + SysPortalMenu menu262 = new SysPortalMenu(); + menu262.setId("MonJobMainEdit"); + menu262.setName("任务编辑"); + menu262.setCode("MonJobMainEdit"); + menu262.setPath("/mon/job/main/edit"); + menu262.setComp("/mon/job/main/edit"); + menu262.setOrnum(262); + menu262.setIcon("ele-Tickets"); + menu262.setPid("Mon"); + menu262.setCatag(true); + menu262.setAvtag(true); + menu262.setShtag(false); + menu262.setType("M"); + menu262.setPorid("sys"); + menuService.insert(menu262); - SysPortalMenu menu213 = new SysPortalMenu(); - menu213.setId("AssAddrMain"); - menu213.setName("省市区县"); - menu213.setCode("AssAddrMain"); - menu213.setPath("/ass/addr/main"); - menu213.setComp("/ass/addr/main/index"); - menu213.setOrnum(213); - menu213.setIcon("ele-Tickets"); - menu213.setPid("Ass"); - menu213.setCatag(false); - menu213.setAvtag(true); - menu213.setShtag(true); - menu213.setType("M"); - menu213.setPorid("sys"); - menuService.insert(menu213); + SysPortalMenu menu263 = new SysPortalMenu(); + menu263.setId("MonJobLog"); + menu263.setName("任务日志"); + menu263.setCode("MonJobLog"); + menu263.setPath("/mon/job/log"); + menu263.setComp("/mon/job/log/index"); + menu263.setOrnum(263); + menu263.setIcon("ele-Tickets"); + menu263.setPid("Mon"); + menu263.setCatag(true); + menu263.setAvtag(true); + menu263.setShtag(false); + menu263.setType("M"); + menu263.setPorid("sys"); + menuService.insert(menu263); + SysPortalMenu menu271 = new SysPortalMenu(); + menu271.setId("MonServerMain"); + menu271.setName("服务监控"); + menu271.setCode("MonServerMain"); + menu271.setPath("/mon/server/main"); + menu271.setComp("/mon/server/main/show"); + menu271.setOrnum(271); + menu271.setIcon("ele-Tickets"); + menu271.setPid("Mon"); + menu271.setCatag(false); + menu271.setAvtag(true); + menu271.setShtag(true); + menu271.setType("M"); + menu271.setPorid("sys"); + menuService.insert(menu271); - //-----------------OA办公-------------------- + //-----------------辅助工具-------------------- SysPortalMenu menu3 = new SysPortalMenu(); - menu3.setId("Oa"); - menu3.setName("应用中心"); - menu3.setCode("Oa"); + menu3.setId("Ass"); + menu3.setName("辅助工具"); + menu3.setCode("Ass"); menu3.setComp("LAYOUT"); - menu3.setPath("/oa"); - menu3.setRedirect("/oa/flow/temp"); + menu3.setPath("/ass"); + menu3.setRedirect("/ass/dict/main"); menu3.setOrnum(3); - menu3.setIcon("ele-Menu"); + menu3.setIcon("ele-Suitcase"); menu3.setAvtag(true); menu3.setShtag(true); menu3.setType("D"); menu3.setPorid("sys"); menuService.insert(menu3); - SysPortalMenu menu31 = new SysPortalMenu(); - menu31.setId("OaFlow"); - menu31.setName("流程管理"); - menu31.setCode("OaFlow"); - menu31.setComp("LAYOUT"); - menu31.setPath("/oa/flow"); - menu31.setRedirect("/oa/flow/temp"); - menu31.setOrnum(31); - menu31.setIcon("ele-Connection"); - menu31.setPid("Oa"); - menu31.setAvtag(true); - menu31.setShtag(true); - menu31.setType("D"); - menu31.setPorid("sys"); - menuService.insert(menu31); - SysPortalMenu menu311 = new SysPortalMenu(); - menu311.setId("OaFlowCate"); - menu311.setName("流程分类"); - menu311.setCode("OaFlowCate"); - menu311.setPath("/oa/flow/cate"); - menu311.setComp("/oa/flow/cate/index"); + menu311.setId("AssCogeForm"); + menu311.setName("表单设计"); + menu311.setCode("AssCogeForm"); + menu311.setPath("/ass/coge/form"); + menu311.setComp("/ass/coge/form/index"); menu311.setOrnum(311); menu311.setIcon("ele-Tickets"); - menu311.setPid("OaFlow"); - menu311.setCatag(true); + menu311.setPid("Ass"); + menu311.setCatag(false); menu311.setAvtag(true); menu311.setShtag(true); menu311.setType("M"); menu311.setPorid("sys"); menuService.insert(menu311); - SysPortalMenu menu311a = new SysPortalMenu(); - menu311a.setId("OaFlowCateEdit"); - menu311a.setName("流程分类编辑"); - menu311a.setCode("OaFlowCateEdit"); - menu311a.setPath("/oa/flow/cate/edit"); - menu311a.setComp("/oa/flow/cate/edit"); - menu311a.setOrnum(3111); - menu311a.setIcon("ele-Tickets"); - menu311a.setPid("OaFlow"); - menu311a.setCatag(true); - menu311a.setAvtag(true); - menu311a.setShtag(false); - menu311a.setType("M"); - menu311a.setPorid("sys"); - menuService.insert(menu311a); - SysPortalMenu menu312 = new SysPortalMenu(); - menu312.setId("OaFlowTemp"); - menu312.setName("流程模板"); - menu312.setCode("OaFlowTemp"); - menu312.setPath("/oa/flow/temp"); - menu312.setComp("/oa/flow/temp/index"); + menu312.setId("AssCogeFormEdit"); + menu312.setName("表单设计编辑"); + menu312.setCode("AssCogeFormEdit"); + menu312.setPath("/ass/coge/form/edit"); + menu312.setComp("/ass/coge/form/edit"); menu312.setOrnum(312); menu312.setIcon("ele-Tickets"); - menu312.setPid("OaFlow"); - menu312.setCatag(true); + menu312.setPid("Ass"); + menu312.setCatag(false); menu312.setAvtag(true); - menu312.setShtag(true); + menu312.setShtag(false); menu312.setType("M"); menu312.setPorid("sys"); menuService.insert(menu312); - SysPortalMenu menu312a = new SysPortalMenu(); - menu312a.setId("OaFlowTempEdit"); - menu312a.setName("流程模板编辑"); - menu312a.setCode("OaFlowTempEdit"); - menu312a.setPath("/oa/flow/temp/edit"); - menu312a.setComp("/oa/flow/temp/edit"); - menu312a.setOrnum(3121); - menu312a.setIcon("ele-Tickets"); - menu312a.setPid("OaFlow"); - menu312a.setCatag(true); - menu312a.setAvtag(true); - menu312a.setShtag(false); - menu312a.setType("M"); - menu312a.setPorid("sys"); - menuService.insert(menu312a); + SysPortalMenu menu341 = new SysPortalMenu(); + menu341.setId("AssCogeTable"); + menu341.setName("代码生成"); + menu341.setCode("AssCogeTable"); + menu341.setPath("/ass/coge/table"); + menu341.setComp("/ass/coge/table/index"); + menu341.setOrnum(341); + menu341.setIcon("ele-Tickets"); + menu341.setPid("Ass"); + menu341.setCatag(false); + menu341.setAvtag(true); + menu341.setShtag(true); + menu341.setType("M"); + menu341.setPorid("sys"); + menuService.insert(menu341); - SysPortalMenu menu313 = new SysPortalMenu(); - menu313.setId("OaFlowMain"); - menu313.setName("流程实例"); - menu313.setCode("OaFlowMain"); - menu313.setPath("/oa/flow/main"); - menu313.setComp("/oa/flow/main/index"); - menu313.setOrnum(313); - menu313.setIcon("ele-Tickets"); - menu313.setPid("OaFlow"); - menu313.setCatag(true); - menu313.setAvtag(true); - menu313.setShtag(true); - menu313.setType("M"); - menu313.setPorid("sys"); - menuService.insert(menu313); + SysPortalMenu menu342 = new SysPortalMenu(); + menu342.setId("AssCogeTableEdit"); + menu342.setName("代码生成"); + menu342.setCode("AssCogeTableEdit"); + menu342.setPath("/ass/coge/table/edit"); + menu342.setComp("/ass/coge/table/edit"); + menu342.setOrnum(342); + menu342.setIcon("ele-Tickets"); + menu342.setPid("Ass"); + menu342.setCatag(false); + menu342.setAvtag(true); + menu342.setShtag(false); + menu342.setType("M"); + menu342.setPorid("sys"); + menuService.insert(menu342); - SysPortalMenu menu313a = new SysPortalMenu(); - menu313a.setId("OaFlowMainEdit"); - menu313a.setName("流程实例编辑"); - menu313a.setCode("OaFlowMainEdit"); - menu313a.setPath("/oa/flow/main/edit"); - menu313a.setComp("/oa/flow/main/edit"); - menu313a.setOrnum(3131); - menu313a.setIcon("ele-Tickets"); - menu313a.setPid("OaFlow"); - menu313a.setCatag(true); - menu313a.setAvtag(true); - menu313a.setShtag(false); - menu313a.setType("M"); - menu313a.setPorid("sys"); - menuService.insert(menu313a); + SysPortalMenu menu351 = new SysPortalMenu(); + menu351.setId("AssDictMain"); + menu351.setName("数据字典"); + menu351.setCode("AssDictMain"); + menu351.setPath("/ass/dict/main"); + menu351.setComp("/ass/dict/main/index"); + menu351.setOrnum(351); + menu351.setIcon("ele-Tickets"); + menu351.setPid("Ass"); + menu351.setCatag(false); + menu351.setAvtag(true); + menu351.setShtag(true); + menu351.setType("M"); + menu351.setPorid("sys"); + menuService.insert(menu351); - SysPortalMenu menu313b = new SysPortalMenu(); - menu313b.setId("OaFlowMainView"); - menu313b.setName("流程实例查看"); - menu313b.setCode("OaFlowMainView"); - menu313b.setPath("/oa/flow/main/view"); - menu313b.setComp("/oa/flow/main/view"); - menu313b.setOrnum(3132); - menu313b.setIcon("ele-Tickets"); - menu313b.setPid("OaFlow"); - menu313b.setCatag(true); - menu313b.setAvtag(true); - menu313b.setShtag(false); - menu313b.setType("M"); - menu313b.setPorid("sys"); - menuService.insert(menu313b); + SysPortalMenu menu352 = new SysPortalMenu(); + menu352.setId("AssDictData"); + menu352.setName("字典数据"); + menu352.setCode("AssDictData"); + menu352.setPath("/ass/dict/data"); + menu352.setComp("/ass/dict/data/index"); + menu352.setOrnum(352); + menu352.setIcon("ele-Tickets"); + menu352.setPid("Ass"); + menu352.setCatag(false); + menu352.setAvtag(true); + menu352.setShtag(false); + menu352.setType("M"); + menu352.setPorid("sys"); + menuService.insert(menu352); + SysPortalMenu menu361 = new SysPortalMenu(); + menu361.setId("AssNumMain"); + menu361.setName("编号策略"); + menu361.setCode("AssNumMain"); + menu361.setPath("/ass/num/main"); + menu361.setComp("/ass/num/main/index"); + menu361.setOrnum(361); + menu361.setIcon("ele-Tickets"); + menu361.setPid("Ass"); + menu361.setCatag(false); + menu361.setAvtag(true); + menu361.setShtag(true); + menu361.setType("M"); + menu361.setPorid("sys"); + menuService.insert(menu361); + SysPortalMenu menu371 = new SysPortalMenu(); + menu371.setId("AssAddrMain"); + menu371.setName("省市区县"); + menu371.setCode("AssAddrMain"); + menu371.setPath("/ass/addr/main"); + menu371.setComp("/ass/addr/main/index"); + menu371.setOrnum(371); + menu371.setIcon("ele-Tickets"); + menu371.setPid("Ass"); + menu371.setCatag(false); + menu371.setAvtag(true); + menu371.setShtag(true); + menu371.setType("M"); + menu371.setPorid("sys"); + menuService.insert(menu371); + + //-----------------OA办公-------------------- + SysPortalMenu menu4 = new SysPortalMenu(); + menu4.setId("Oa"); + menu4.setName("应用中心"); + menu4.setCode("Oa"); + menu4.setComp("LAYOUT"); + menu4.setPath("/oa"); + menu4.setRedirect("/oa/flow/temp"); + menu4.setOrnum(4); + menu4.setIcon("ele-Menu"); + menu4.setAvtag(true); + menu4.setShtag(true); + menu4.setType("D"); + menu4.setPorid("sys"); + menuService.insert(menu4); + + SysPortalMenu menu41 = new SysPortalMenu(); + menu41.setId("OaFlow"); + menu41.setName("流程管理"); + menu41.setCode("OaFlow"); + menu41.setComp("LAYOUT"); + menu41.setPath("/oa/flow"); + menu41.setRedirect("/oa/flow/temp"); + menu41.setOrnum(41); + menu41.setIcon("ele-Connection"); + menu41.setPid("Oa"); + menu41.setAvtag(true); + menu41.setShtag(true); + menu41.setType("D"); + menu41.setPorid("sys"); + menuService.insert(menu41); + + SysPortalMenu menu411 = new SysPortalMenu(); + menu411.setId("OaFlowCate"); + menu411.setName("流程分类"); + menu411.setCode("OaFlowCate"); + menu411.setPath("/oa/flow/cate"); + menu411.setComp("/oa/flow/cate/index"); + menu411.setOrnum(411); + menu411.setIcon("ele-Tickets"); + menu411.setPid("OaFlow"); + menu411.setCatag(true); + menu411.setAvtag(true); + menu411.setShtag(true); + menu411.setType("M"); + menu411.setPorid("sys"); + menuService.insert(menu411); + + SysPortalMenu menu411a = new SysPortalMenu(); + menu411a.setId("OaFlowCateEdit"); + menu411a.setName("流程分类编辑"); + menu411a.setCode("OaFlowCateEdit"); + menu411a.setPath("/oa/flow/cate/edit"); + menu411a.setComp("/oa/flow/cate/edit"); + menu411a.setOrnum(4111); + menu411a.setIcon("ele-Tickets"); + menu411a.setPid("OaFlow"); + menu411a.setCatag(true); + menu411a.setAvtag(true); + menu411a.setShtag(false); + menu411a.setType("M"); + menu411a.setPorid("sys"); + menuService.insert(menu411a); + + SysPortalMenu menu412 = new SysPortalMenu(); + menu412.setId("OaFlowTemp"); + menu412.setName("流程模板"); + menu412.setCode("OaFlowTemp"); + menu412.setPath("/oa/flow/temp"); + menu412.setComp("/oa/flow/temp/index"); + menu412.setOrnum(412); + menu412.setIcon("ele-Tickets"); + menu412.setPid("OaFlow"); + menu412.setCatag(true); + menu412.setAvtag(true); + menu412.setShtag(true); + menu412.setType("M"); + menu412.setPorid("sys"); + menuService.insert(menu412); + + SysPortalMenu menu412a = new SysPortalMenu(); + menu412a.setId("OaFlowTempEdit"); + menu412a.setName("流程模板编辑"); + menu412a.setCode("OaFlowTempEdit"); + menu412a.setPath("/oa/flow/temp/edit"); + menu412a.setComp("/oa/flow/temp/edit"); + menu412a.setOrnum(4121); + menu412a.setIcon("ele-Tickets"); + menu412a.setPid("OaFlow"); + menu412a.setCatag(true); + menu412a.setAvtag(true); + menu412a.setShtag(false); + menu412a.setType("M"); + menu412a.setPorid("sys"); + menuService.insert(menu412a); + + SysPortalMenu menu413 = new SysPortalMenu(); + menu413.setId("OaFlowMain"); + menu413.setName("流程实例"); + menu413.setCode("OaFlowMain"); + menu413.setPath("/oa/flow/main"); + menu413.setComp("/oa/flow/main/index"); + menu413.setOrnum(413); + menu413.setIcon("ele-Tickets"); + menu413.setPid("OaFlow"); + menu413.setCatag(true); + menu413.setAvtag(true); + menu413.setShtag(true); + menu413.setType("M"); + menu413.setPorid("sys"); + menuService.insert(menu413); + + SysPortalMenu menu413a = new SysPortalMenu(); + menu413a.setId("OaFlowMainEdit"); + menu413a.setName("流程实例编辑"); + menu413a.setCode("OaFlowMainEdit"); + menu413a.setPath("/oa/flow/main/edit"); + menu413a.setComp("/oa/flow/main/edit"); + menu413a.setOrnum(4131); + menu413a.setIcon("ele-Tickets"); + menu413a.setPid("OaFlow"); + menu413a.setCatag(true); + menu413a.setAvtag(true); + menu413a.setShtag(false); + menu413a.setType("M"); + menu413a.setPorid("sys"); + menuService.insert(menu413a); + + SysPortalMenu menu413b = new SysPortalMenu(); + menu413b.setId("OaFlowMainView"); + menu413b.setName("流程实例查看"); + menu413b.setCode("OaFlowMainView"); + menu413b.setPath("/oa/flow/main/view"); + menu413b.setComp("/oa/flow/main/view"); + menu413b.setOrnum(4132); + menu413b.setIcon("ele-Tickets"); + menu413b.setPid("OaFlow"); + menu413b.setCatag(true); + menu413b.setAvtag(true); + menu413b.setShtag(false); + menu413b.setType("M"); + menu413b.setPorid("sys"); + menuService.insert(menu413b); + + //DEMO SysPortalMenu menu8 = new SysPortalMenu(); menu8.setId("Demo"); menu8.setName("Demo"); diff --git a/vboot-core/src/main/java/vboot/core/common/service/BaseCateService.java b/vboot-core/src/main/java/vboot/core/common/service/BaseCateService.java index 3850350..9a67e06 100644 --- a/vboot-core/src/main/java/vboot/core/common/service/BaseCateService.java +++ b/vboot-core/src/main/java/vboot/core/common/service/BaseCateService.java @@ -1,7 +1,7 @@ package vboot.core.common.service; import vboot.core.common.api.PageData; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.common.entity.BaseCateEntity; @@ -80,22 +80,22 @@ public abstract class BaseCateService { @Transactional(readOnly = true) - public RestResult inpFind(String table){ + public R inpFind(String table){ Sqler sqlHelper = new Sqler(table); sqlHelper.addSelect("pid"); sqlHelper.addWhere("t.avtag = 1"); sqlHelper.addOrder("t.ornum"); - return RestResult.ok(jdbcDao.findInpList(sqlHelper)); + return R.ok(jdbcDao.findInpList(sqlHelper)); } - public RestResult inpDele(String table, String id){ + public R inpDele(String table, String id){ String sql = "select id from " + table + " where tier like ? order by tier"; List stringList = jdbcDao.findStringList(sql, "%;" + id + ";%"); for (String sid : stringList) { repo.deleteById(sid); } repo.deleteById(id); - return RestResult.ok(); + return R.ok(); } public String insert(T cate) { diff --git a/vboot-core/src/main/java/vboot/core/module/ass/addr/main/AssAddrMainApi.java b/vboot-core/src/main/java/vboot/core/module/ass/addr/main/AssAddrMainApi.java index 693a3a5..aa8dc2b 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/addr/main/AssAddrMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/addr/main/AssAddrMainApi.java @@ -2,7 +2,7 @@ package vboot.core.module.ass.addr.main; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.file.ExcelUtil; @@ -14,7 +14,7 @@ import java.util.List; @RequestMapping("ass/addr/main") public class AssAddrMainApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("ass_addr_main"); sqler.addLike("t.name", name); sqler.addLeftJoin("t2.name as p2name","ass_addr_main t2","t2.id=t.pid"); @@ -22,19 +22,19 @@ public class AssAddrMainApi { sqler.addLeftJoin("t4.name as p4name","ass_addr_main t4","t4.id=t3.pid"); sqler.addSelect("t.type,t.crtim,t.uptim,t.cecoo"); sqler.addOrder("t.id"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { AssAddrMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PutMapping("addrupdate") - public RestResult addrupdate() { + public R addrupdate() { addrHandle.addrInit(); - return RestResult.ok(); + return R.ok(); } @GetMapping("exp") @@ -45,18 +45,18 @@ public class AssAddrMainApi { @PostMapping - public RestResult post(@RequestBody AssAddrMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody AssAddrMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody AssAddrMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody AssAddrMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeForm.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeForm.java new file mode 100644 index 0000000..38cde21 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeForm.java @@ -0,0 +1,20 @@ +package vboot.core.module.ass.coge.form; + +import lombok.Getter; +import lombok.Setter; +import vboot.core.common.entity.BaseMainEntity; + +import javax.persistence.*; +import java.util.ArrayList; +import java.util.List; + +@Entity +@Getter +@Setter +public class AssCogeForm extends BaseMainEntity { + + private String notes; + + @Lob + private String vform; +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormApi.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormApi.java new file mode 100644 index 0000000..b41afdf --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormApi.java @@ -0,0 +1,44 @@ +package vboot.core.module.ass.coge.form; + +import vboot.core.common.api.R; +import vboot.core.common.dao.Sqler; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("ass/coge/form") +public class AssCogeFormApi { + + @GetMapping + public R get(String name) { + Sqler sqler = new Sqler("ass_coge_form"); + sqler.addLike("t.name", name); + return R.ok(service.findPageData(sqler)); + } + + + @GetMapping("one/{id}") + public R getOne(@PathVariable String id) { + AssCogeForm main = service.findOne(id); + return R.ok(main); + } + + @PostMapping + public R post(@RequestBody AssCogeForm main) { + return R.ok(service.insert(main).getId()); + } + + @PutMapping + public R put(@RequestBody AssCogeForm main) { + return R.ok(service.update(main).getId()); + } + + @DeleteMapping("{ids}") + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); + } + + @Autowired + private AssCogeFormService service; + +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormRepo.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormRepo.java new file mode 100644 index 0000000..231d3e4 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormRepo.java @@ -0,0 +1,9 @@ +package vboot.core.module.ass.coge.form; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface AssCogeFormRepo extends JpaRepository { + + +} + diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormService.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormService.java new file mode 100644 index 0000000..eeaea42 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/form/AssCogeFormService.java @@ -0,0 +1,21 @@ +package vboot.core.module.ass.coge.form; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import vboot.core.common.service.BaseMainService; + +import javax.annotation.PostConstruct; + +@Service +public class AssCogeFormService extends BaseMainService { + + @Autowired + private AssCogeFormRepo repo; + + @PostConstruct + public void initDao() { + super.setRepo(repo); + } + +} + diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeField.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeField.java new file mode 100644 index 0000000..89c5386 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeField.java @@ -0,0 +1,124 @@ +package vboot.core.module.ass.coge.table; + +import lombok.Getter; +import lombok.Setter; +import org.hibernate.annotations.GenericGenerator; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; + +@Entity +@Getter +@Setter +public class AssCogeField { + + @Id + @Column(length = 32) + @GeneratedValue(generator = "jpa-uuid") + @GenericGenerator(name = "jpa-uuid", strategy = "uuid") + private String id;//ID + + private Integer ornum;//排序号 + + @Column(length = 32) + private String name;//字段名称 + + @Column(length = 32) + private String remark;//字段描述 + + @Column(length = 128) + private String notes;//备注 + + @Column(length = 32) + private String type;//字段类型 + + @Column(length = 32) + private String length;//字段长度 + + + + + +// +// /** 编号 */ +// private Long columnId; +// +// /** 归属表编号 */ +// private Long tableId; +// +// /** 列名称 */ +// private String columnName; +// +// /** 列描述 */ +// private String columnComment; +// +// /** 列类型 */ +// private String columnType; +// +// /** JAVA类型 */ +// private String javaType; +// +// /** JAVA字段名 */ +// @NotBlank(message = "Java属性不能为空") +// private String javaField; +// +// /** 是否主键(1是) */ +// private String isPk; +// +// /** 是否自增(1是) */ +// private String isIncrement; +// +// /** 是否必填(1是) */ +// private String isRequired; +// +// /** 是否为插入字段(1是) */ +// private String isInsert; +// +// /** 是否编辑字段(1是) */ +// private String isEdit; +// +// /** 是否列表字段(1是) */ +// private String isList; +// +// /** 是否查询字段(1是) */ +// private String isQuery; +// +// /** 查询方式(EQ等于、NE不等于、GT大于、LT小于、LIKE模糊、BETWEEN范围) */ +// private String queryType; +// +// /** 显示类型(input文本框、textarea文本域、select下拉框、checkbox复选框、radio单选框、datetime日期控件、image图片上传控件、upload文件上传控件、editor富文本控件) */ +// private String htmlType; +// +// /** 字典类型 */ +// private String dictType; +// +// /** 排序 */ +// private Integer sort; +// +// public boolean isSuperColumn() +// { +// return isSuperColumn(this.javaField); +// } +// +// public static boolean isSuperColumn(String javaField) +// { +// return StringUtils.equalsAnyIgnoreCase(javaField, +// // BaseEntity +// "createBy", "createTime", "updateBy", "updateTime", "remark", +// // TreeEntity +// "parentName", "parentId", "orderNum", "ancestors"); +// } +// +// public boolean isPk() +// { +// return isPk(this.isPk); +// } +// +// public boolean isPk(String isPk) +// { +// return isPk != null && StringUtils.equals("1", isPk); +// } + +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTable.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTable.java new file mode 100644 index 0000000..fba4107 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTable.java @@ -0,0 +1,117 @@ +package vboot.core.module.ass.coge.table; + +import lombok.Getter; +import lombok.Setter; +import vboot.core.common.entity.BaseMainEntity; + +import javax.persistence.*; +import javax.validation.constraints.NotBlank; +import java.util.ArrayList; +import java.util.List; + +@Entity +@Getter +@Setter +public class AssCogeTable extends BaseMainEntity { + + @Column(length = 64) + private String bunam;//业务名 + + private Integer ornum;//排序号 + + @Column(length = 64) + private String remark;//表描述 + + private String notes;//备注 + + @Column(length = 64) + private String mode;//生成模式 + + @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) + @JoinColumn(name = "tabid") + @OrderBy("ornum ASC") + private List fields = new ArrayList<>(); + + + + + + + + + + + +// +// /** 编号 */ +// private Long tableId; +// +// /** 表名称 */ +// @NotBlank(message = "表名称不能为空") +// private String tableName="aaa"; +// +// /** 表描述 */ +// @NotBlank(message = "表描述不能为空") +// private String tableComment="aaa"; +// +// /** 关联父表的表名 */ +// private String subTableName; +// +// /** 本表关联父表的外键名 */ +// private String subTableFkName; +// +// /** 实体类名称(首字母大写) */ +// @NotBlank(message = "实体类名称不能为空") +// private String className="aaa"; +// +// /** 使用的模板(crud单表操作 tree树表操作 sub主子表操作) */ +// private String tplCategory; +// +// /** 生成包路径 */ +// @NotBlank(message = "生成包路径不能为空") +// private String packageName="aaa"; +// +// /** 生成模块名 */ +// @NotBlank(message = "生成模块名不能为空") +// private String moduleName="aaa"; +// +// /** 生成业务名 */ +// @NotBlank(message = "生成业务名不能为空") +// private String businessName="aaa"; +// +// /** 生成功能名 */ +// @NotBlank(message = "生成功能名不能为空") +// private String functionName="aaa"; +// +// /** 生成作者 */ +// @NotBlank(message = "作者不能为空") +// private String functionAuthor="aaa"; +// +// /** 生成代码方式(0zip压缩包 1自定义路径) */ +// private String genType; +// +// /** 生成路径(不填默认项目路径) */ +// private String genPath; +// +// +// /** 其它生成选项 */ +// private String options; +// +// /** 树编码字段 */ +// private String treeCode; +// +// /** 树父编码字段 */ +// private String treeParentCode; +// +// /** 树名称字段 */ +// private String treeName; +// +// /** 上级菜单ID字段 */ +// private String parentMenuId; +// +// /** 上级菜单名称字段 */ +// private String parentMenuName; + + + +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableApi.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableApi.java new file mode 100644 index 0000000..381a8d0 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableApi.java @@ -0,0 +1,90 @@ +package vboot.core.module.ass.coge.table; + +import org.apache.commons.io.IOUtils; +import org.dom4j.DocumentException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import vboot.core.common.api.R; +import vboot.core.common.dao.Sqler; +import vboot.core.module.ass.coge.velocity.GenCode; + +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + + +@RestController +@RequestMapping("ass/coge/table") +public class AssCogeTableApi { + + private String table = "ass_coge_table"; + + @GetMapping + public R get(String name) { + Sqler sqler = new Sqler(table); + sqler.addLike("t.name" , name); + return R.ok(service.findPageData(sqler)); + } + + @GetMapping("/zip") + public void getZip(HttpServletResponse response, String id) throws IOException { + byte[] data = service.downloadCode(id); + genCode(response, data); + } + + @GetMapping("/show") + public R getShow(String id) throws IOException { + List genCodes = service.previewCode(id); + return R.ok(genCodes); + } + + + @GetMapping("one/{id}") + public R getOne(@PathVariable String id) { + AssCogeTable main = service.findOne(id); + return R.ok(main); + } + + @GetMapping("list") + public R getList() { + return R.ok(service.findAll()); + } + + @PostMapping + public R post(@RequestBody AssCogeTable main) throws DocumentException { + return R.ok(service.insert(main).getId()); + } + + @PutMapping + public R put(@RequestBody AssCogeTable main) { + return R.ok(service.update(main).getId()); + } + + @DeleteMapping("{ids}") + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); + } + + @Autowired + private AssCogeTableService service; + + /** + * 生成zip文件 + */ + private void genCode(HttpServletResponse response, byte[] data) throws IOException { + response.reset(); + SimpleDateFormat sdf = new SimpleDateFormat("MMddHHmmss"); + String time= sdf.format(new Date()); + String fileName="vboot-"+time+".zip"; + response.addHeader("Access-Control-Allow-Origin" , "*"); + response.addHeader("Access-Control-Expose-Headers" , "Content-Disposition,download-filename"); + response.setHeader("Content-Disposition" , "attachment; filename="+fileName); + response.setHeader("download-filename" , fileName); + response.addHeader("Content-Length" , "" + data.length); + response.setContentType("application/octet-stream; charset=UTF-8"); + IOUtils.write(data, response.getOutputStream()); + } + +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableRepo.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableRepo.java new file mode 100644 index 0000000..870d270 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableRepo.java @@ -0,0 +1,14 @@ +package vboot.core.module.ass.coge.table; + +import org.springframework.data.jpa.repository.JpaRepository; +import vboot.core.module.sys.org.group.SysOrgGroup; + +import java.util.List; + + +public interface AssCogeTableRepo extends JpaRepository { + + AssCogeTable findByName(String name); + +} + diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableService.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableService.java new file mode 100644 index 0000000..f6d277f --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/table/AssCogeTableService.java @@ -0,0 +1,123 @@ +package vboot.core.module.ass.coge.table; + +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.io.IOUtils; +import org.apache.velocity.Template; +import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.Velocity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import vboot.core.common.service.BaseMainService; +import vboot.core.module.ass.coge.velocity.GenCode; +import vboot.core.module.ass.coge.velocity.VelocityInitializer; +import vboot.core.module.ass.coge.velocity.VelocityUtils; + +import javax.annotation.PostConstruct; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.StringWriter; +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + + +@Service +@Slf4j +public class AssCogeTableService extends BaseMainService { + + public List previewCode(String id) + { + AssCogeTable table = repo.findById(id).get(); + List genCodes=new ArrayList<>(); +// Map dataMap = new LinkedHashMap<>(); + // 查询表信息 + // 设置主子表信息 +// setSubTable(table); +// // 设置主键列信息 +// setPkColumn(table); + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList("crud"); + for (String template : templates) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, "UTF-8"); + tpl.merge(context, sw); + GenCode genCode=new GenCode(); + String[] arr=template.split("/"); + genCode.setTitle(arr[arr.length-1].replace(".vm","")); + genCode.setContent( sw.toString()); + genCodes.add(genCode); + } + return genCodes; + } + + public byte[] downloadCode(String id) + { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + ZipOutputStream zip = new ZipOutputStream(outputStream); + generatorCode(id, zip); + IOUtils.closeQuietly(zip); + return outputStream.toByteArray(); + } + + /** + * 查询表信息并生成代码 + */ + private void generatorCode(String id, ZipOutputStream zip) + { + // 查询表信息 + AssCogeTable table = repo.findById(id).get(); + // 设置主子表信息 +// setPkColumn(table); + + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 +// List templates = VelocityUtils.getTemplateList(table.getTplCategory()); + List templates = VelocityUtils.getTemplateList("crud"); + for (String template : templates) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, "UTF-8"); + tpl.merge(context, sw); + try + { + // 添加到zip + zip.putNextEntry(new ZipEntry(VelocityUtils.getFileName(template, table))); + IOUtils.write(sw.toString(), zip, "UTF-8"); + IOUtils.closeQuietly(sw); + zip.flush(); + zip.closeEntry(); + } + catch (IOException e) + { + log.error("渲染模板失败,表名:" + table.getName(), e); + } + } + } + + + + //----------bean注入------------ + @Autowired + private AssCogeTableRepo repo; + + @PostConstruct + public void initDao() { + super.setRepo(repo); + } + + +} + diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenCode.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenCode.java new file mode 100644 index 0000000..f0cb9dc --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenCode.java @@ -0,0 +1,15 @@ +package vboot.core.module.ass.coge.velocity; + +import lombok.Data; + +@Data +public class GenCode { + + private String type; + + private String title; + + private String path; + + private String content; +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenConfig.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenConfig.java new file mode 100644 index 0000000..358c4f7 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenConfig.java @@ -0,0 +1,73 @@ +package vboot.core.module.ass.coge.velocity; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.PropertySource; +import org.springframework.stereotype.Component; + +/** + * 读取代码生成相关配置 + * + * @author ruoyi + */ +@Component +@ConfigurationProperties(prefix = "gen") +@PropertySource(value = { "classpath:generator.yml" }) +public class GenConfig +{ + /** 作者 */ + public static String author; + + /** 生成包路径 */ + public static String packageName; + + /** 自动去除表前缀,默认是false */ + public static boolean autoRemovePre; + + /** 表前缀(类名不会包含表前缀) */ + public static String tablePrefix; + + public static String getAuthor() + { + return author; + } + + @Value("${author}") + public void setAuthor(String author) + { + GenConfig.author = author; + } + + public static String getPackageName() + { + return packageName; + } + + @Value("${packageName}") + public void setPackageName(String packageName) + { + GenConfig.packageName = packageName; + } + + public static boolean getAutoRemovePre() + { + return autoRemovePre; + } + + @Value("${autoRemovePre}") + public void setAutoRemovePre(boolean autoRemovePre) + { + GenConfig.autoRemovePre = autoRemovePre; + } + + public static String getTablePrefix() + { + return tablePrefix; + } + + @Value("${tablePrefix}") + public void setTablePrefix(String tablePrefix) + { + GenConfig.tablePrefix = tablePrefix; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenConstants.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenConstants.java new file mode 100644 index 0000000..509880e --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenConstants.java @@ -0,0 +1,117 @@ +package vboot.core.module.ass.coge.velocity; + +/** + * 代码生成通用常量 + * + * @author ruoyi + */ +public class GenConstants +{ + /** 单表(增删改查) */ + public static final String TPL_CRUD = "crud"; + + /** 树表(增删改查) */ + public static final String TPL_TREE = "tree"; + + /** 主子表(增删改查) */ + public static final String TPL_SUB = "sub"; + + /** 树编码字段 */ + public static final String TREE_CODE = "treeCode"; + + /** 树父编码字段 */ + public static final String TREE_PARENT_CODE = "treeParentCode"; + + /** 树名称字段 */ + public static final String TREE_NAME = "treeName"; + + /** 上级菜单ID字段 */ + public static final String PARENT_MENU_ID = "parentMenuId"; + + /** 上级菜单名称字段 */ + public static final String PARENT_MENU_NAME = "parentMenuName"; + + /** 数据库字符串类型 */ + public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2" }; + + /** 数据库文本类型 */ + public static final String[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" }; + + /** 数据库时间类型 */ + public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" }; + + /** 数据库数字类型 */ + public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer", + "bit", "bigint", "float", "double", "decimal" }; + + /** 页面不需要编辑字段 */ + public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" }; + + /** 页面不需要显示的列表字段 */ + public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by", + "update_time" }; + + /** 页面不需要查询字段 */ + public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by", + "update_time", "remark" }; + + /** Entity基类字段 */ + public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" }; + + /** Tree基类字段 */ + public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors", "children" }; + + /** 文本框 */ + public static final String HTML_INPUT = "input"; + + /** 文本域 */ + public static final String HTML_TEXTAREA = "textarea"; + + /** 下拉框 */ + public static final String HTML_SELECT = "select"; + + /** 单选框 */ + public static final String HTML_RADIO = "radio"; + + /** 复选框 */ + public static final String HTML_CHECKBOX = "checkbox"; + + /** 日期控件 */ + public static final String HTML_DATETIME = "datetime"; + + /** 图片上传控件 */ + public static final String HTML_IMAGE_UPLOAD = "imageUpload"; + + /** 文件上传控件 */ + public static final String HTML_FILE_UPLOAD = "fileUpload"; + + /** 富文本控件 */ + public static final String HTML_EDITOR = "editor"; + + /** 字符串类型 */ + public static final String TYPE_STRING = "String"; + + /** 整型 */ + public static final String TYPE_INTEGER = "Integer"; + + /** 长整型 */ + public static final String TYPE_LONG = "Long"; + + /** 浮点型 */ + public static final String TYPE_DOUBLE = "Double"; + + /** 高精度计算类型 */ + public static final String TYPE_BIGDECIMAL = "BigDecimal"; + + /** 时间类型 */ + public static final String TYPE_DATE = "Date"; + + /** 模糊查询 */ + public static final String QUERY_LIKE = "LIKE"; + + /** 相等查询 */ + public static final String QUERY_EQ = "EQ"; + + /** 需要 */ + public static final String REQUIRE = "1"; +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenUtils.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenUtils.java new file mode 100644 index 0000000..2cace97 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/GenUtils.java @@ -0,0 +1,254 @@ +package vboot.core.module.ass.coge.velocity; + +import org.apache.commons.lang3.RegExUtils; +import vboot.core.xutil.ruoyi.StringUtils; + +import java.util.Arrays; + +/** + * 代码生成器 工具类 + * + * @author ruoyi + */ +public class GenUtils +{ + /** + * 初始化表信息 + */ +// public static void initTable(AssCogeTable genTable, String operName) +// { +// genTable.setClassName(convertClassName(genTable.getTableName())); +// genTable.setPackageName(GenConfig.getPackageName()); +// genTable.setModuleName(getModuleName(GenConfig.getPackageName())); +// genTable.setBusinessName(getBusinessName(genTable.getTableName())); +// genTable.setFunctionName(replaceText(genTable.getTableComment())); +// genTable.setFunctionAuthor(GenConfig.getAuthor()); +//// genTable.setCreateBy(operName); +// } + + /** + * 初始化列属性字段 + */ +// public static void initColumnField(AssCogeField column, AssCogeTable table) +// { +// String dataType = getDbType(column.getColumnType()); +// String columnName = column.getColumnName(); +// column.setTableId(table.getTableId()); +//// column.setCreateBy(table.getCreateBy()); +// // 设置java字段名 +// column.setJavaField(StringUtils.toCamelCase(columnName)); +// // 设置默认类型 +// column.setJavaType(GenConstants.TYPE_STRING); +// column.setQueryType(GenConstants.QUERY_EQ); +// +// if (arraysContains(GenConstants.COLUMNTYPE_STR, dataType) || arraysContains(GenConstants.COLUMNTYPE_TEXT, dataType)) +// { +// // 字符串长度超过500设置为文本域 +// Integer columnLength = getColumnLength(column.getColumnType()); +// String htmlType = columnLength >= 500 || arraysContains(GenConstants.COLUMNTYPE_TEXT, dataType) ? GenConstants.HTML_TEXTAREA : GenConstants.HTML_INPUT; +// column.setHtmlType(htmlType); +// } +// else if (arraysContains(GenConstants.COLUMNTYPE_TIME, dataType)) +// { +// column.setJavaType(GenConstants.TYPE_DATE); +// column.setHtmlType(GenConstants.HTML_DATETIME); +// } +// else if (arraysContains(GenConstants.COLUMNTYPE_NUMBER, dataType)) +// { +// column.setHtmlType(GenConstants.HTML_INPUT); +// +// // 如果是浮点型 统一用BigDecimal +// String[] str = StringUtils.split(StringUtils.substringBetween(column.getColumnType(), "(", ")"), ","); +// if (str != null && str.length == 2 && Integer.parseInt(str[1]) > 0) +// { +// column.setJavaType(GenConstants.TYPE_BIGDECIMAL); +// } +// // 如果是整形 +// else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10) +// { +// column.setJavaType(GenConstants.TYPE_INTEGER); +// } +// // 长整形 +// else +// { +// column.setJavaType(GenConstants.TYPE_LONG); +// } +// } +// +// // 插入字段(默认所有字段都需要插入) +// column.setIsInsert(GenConstants.REQUIRE); +// +// // 编辑字段 +// if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName) && !column.isPk()) +// { +// column.setIsEdit(GenConstants.REQUIRE); +// } +// // 列表字段 +// if (!arraysContains(GenConstants.COLUMNNAME_NOT_LIST, columnName) && !column.isPk()) +// { +// column.setIsList(GenConstants.REQUIRE); +// } +// // 查询字段 +// if (!arraysContains(GenConstants.COLUMNNAME_NOT_QUERY, columnName) && !column.isPk()) +// { +// column.setIsQuery(GenConstants.REQUIRE); +// } +// +// // 查询字段类型 +// if (StringUtils.endsWithIgnoreCase(columnName, "name")) +// { +// column.setQueryType(GenConstants.QUERY_LIKE); +// } +// // 状态字段设置单选框 +// if (StringUtils.endsWithIgnoreCase(columnName, "status")) +// { +// column.setHtmlType(GenConstants.HTML_RADIO); +// } +// // 类型&性别字段设置下拉框 +// else if (StringUtils.endsWithIgnoreCase(columnName, "type") +// || StringUtils.endsWithIgnoreCase(columnName, "sex")) +// { +// column.setHtmlType(GenConstants.HTML_SELECT); +// } +// // 图片字段设置图片上传控件 +// else if (StringUtils.endsWithIgnoreCase(columnName, "image")) +// { +// column.setHtmlType(GenConstants.HTML_IMAGE_UPLOAD); +// } +// // 文件字段设置文件上传控件 +// else if (StringUtils.endsWithIgnoreCase(columnName, "file")) +// { +// column.setHtmlType(GenConstants.HTML_FILE_UPLOAD); +// } +// // 内容字段设置富文本控件 +// else if (StringUtils.endsWithIgnoreCase(columnName, "content")) +// { +// column.setHtmlType(GenConstants.HTML_EDITOR); +// } +// } + + /** + * 校验数组是否包含指定值 + * + * @param arr 数组 + * @param targetValue 值 + * @return 是否包含 + */ + public static boolean arraysContains(String[] arr, String targetValue) + { + return Arrays.asList(arr).contains(targetValue); + } + + /** + * 获取模块名 + * + * @param packageName 包名 + * @return 模块名 + */ + public static String getModuleName(String packageName) + { + int lastIndex = packageName.lastIndexOf("."); + int nameLength = packageName.length(); + return StringUtils.substring(packageName, lastIndex + 1, nameLength); + } + + /** + * 获取业务名 + * + * @param tableName 表名 + * @return 业务名 + */ + public static String getBusinessName(String tableName) + { + int lastIndex = tableName.lastIndexOf("_"); + int nameLength = tableName.length(); + return StringUtils.substring(tableName, lastIndex + 1, nameLength); + } + + /** + * 表名转换成Java类名 + * + * @param tableName 表名称 + * @return 类名 + */ + public static String convertClassName(String tableName) + { + boolean autoRemovePre = GenConfig.getAutoRemovePre(); + String tablePrefix = GenConfig.getTablePrefix(); + if (autoRemovePre && StringUtils.isNotEmpty(tablePrefix)) + { + String[] searchList = StringUtils.split(tablePrefix, ","); + tableName = replaceFirst(tableName, searchList); + } + return StringUtils.convertToCamelCase(tableName); + } + + /** + * 批量替换前缀 + * + * @param replacementm 替换值 + * @param searchList 替换列表 + * @return + */ + public static String replaceFirst(String replacementm, String[] searchList) + { + String text = replacementm; + for (String searchString : searchList) + { + if (replacementm.startsWith(searchString)) + { + text = replacementm.replaceFirst(searchString, ""); + break; + } + } + return text; + } + + /** + * 关键字替换 + * + * @param text 需要被替换的名字 + * @return 替换后的名字 + */ + public static String replaceText(String text) + { + return RegExUtils.replaceAll(text, "(?:表|若依)", ""); + } + + /** + * 获取数据库类型字段 + * + * @param columnType 列类型 + * @return 截取后的列类型 + */ + public static String getDbType(String columnType) + { + if (StringUtils.indexOf(columnType, "(") > 0) + { + return StringUtils.substringBefore(columnType, "("); + } + else + { + return columnType; + } + } + + /** + * 获取字段长度 + * + * @param columnType 列类型 + * @return 截取后的列类型 + */ + public static Integer getColumnLength(String columnType) + { + if (StringUtils.indexOf(columnType, "(") > 0) + { + String length = StringUtils.substringBetween(columnType, "(", ")"); + return Integer.valueOf(length); + } + else + { + return 0; + } + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/VelocityInitializer.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/VelocityInitializer.java new file mode 100644 index 0000000..bb10530 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/VelocityInitializer.java @@ -0,0 +1,34 @@ +package vboot.core.module.ass.coge.velocity; + +import org.apache.velocity.app.Velocity; + +import java.util.Properties; + +/** + * VelocityEngine工厂 + * + * @author ruoyi + */ +public class VelocityInitializer +{ + /** + * 初始化vm方法 + */ + public static void initVelocity() + { + Properties p = new Properties(); + try + { + // 加载classpath目录下的vm文件 + p.setProperty("resource.loader.file.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); + // 定义字符集 + p.setProperty(Velocity.INPUT_ENCODING, "UTF-8"); + // 初始化Velocity引擎,指定配置Properties + Velocity.init(p); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/VelocityUtils.java b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/VelocityUtils.java new file mode 100644 index 0000000..6dfb636 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/ass/coge/velocity/VelocityUtils.java @@ -0,0 +1,448 @@ +package vboot.core.module.ass.coge.velocity; + +import com.alibaba.fastjson2.JSONObject; +//import com.ruoyi.common.constant.GenConstants; +//import com.ruoyi.common.utils.DateUtils; +//import com.ruoyi.common.utils.StringUtils; +//import com.ruoyi.generator.domain.GenTable; +//import com.ruoyi.generator.domain.GenTableColumn; +import org.apache.velocity.VelocityContext; +import vboot.core.module.ass.coge.table.AssCogeField; +import vboot.core.module.ass.coge.table.AssCogeTable; +import vboot.core.xutil.ruoyi.DateUtils; +import vboot.core.xutil.ruoyi.StringUtils; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; + +/** + * 模板处理工具类 + * + * @author ruoyi + */ +public class VelocityUtils +{ + /** 项目空间路径 */ + private static final String PROJECT_PATH = "main/java"; + + /** mybatis空间路径 */ + private static final String MYBATIS_PATH = "main/resources/mapper"; + + /** 默认上级菜单,系统工具 */ + private static final String DEFAULT_PARENT_MENU_ID = "3"; + + /** + * 设置模板变量信息 + * + * @return 模板列表 + */ + public static VelocityContext prepareContext(AssCogeTable genTable) + { + String basePackageName="vboot.app.module."; + String[] arr= genTable.getName().split("_"); + String modulePackageName=""; + for (String str : arr) { + modulePackageName+= str+"."; + } + modulePackageName = modulePackageName.substring(0, modulePackageName.length() - 1); + String packageName = basePackageName+modulePackageName; + +// String moduleName = genTable.getModuleName(); +// String businessName = genTable.getBusinessName(); +// +// String tplCategory = genTable.getTplCategory(); +// String functionName = genTable.getFunctionName(); + + VelocityContext velocityContext = new VelocityContext(); +// velocityContext.put("tplCategory", genTable.getTplCategory()); +// velocityContext.put("tableName", genTable.getTableName()); +// velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【请填写功能名称】"); +// velocityContext.put("ClassName", genTable.getClassName()); +// velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName())); +// velocityContext.put("moduleName", genTable.getModuleName()); +// velocityContext.put("BusinessName", StringUtils.capitalize(genTable.getBusinessName())); +// velocityContext.put("businessName", genTable.getBusinessName()); +// velocityContext.put("basePackage", getPackagePrefix(packageName)); + velocityContext.put("packageName", packageName); + velocityContext.put("fields", genTable.getFields()); + +// velocityContext.put("author", genTable.getFunctionAuthor()); + velocityContext.put("datetime", DateUtils.getDate()); +// velocityContext.put("pkColumn", genTable.getPkColumn()); + velocityContext.put("importList", getImportList(genTable)); +// velocityContext.put("permissionPrefix", getPermissionPrefix(moduleName, businessName)); +// velocityContext.put("columns", genTable.getColumns()); + velocityContext.put("table", genTable); +// velocityContext.put("dicts", getDicts(genTable)); +// setMenuVelocityContext(velocityContext, genTable); +// if (GenConstants.TPL_TREE.equals(tplCategory)) +// { +// setTreeVelocityContext(velocityContext, genTable); +// } +// if (GenConstants.TPL_SUB.equals(tplCategory)) +// { +// setSubVelocityContext(velocityContext, genTable); +// } + return velocityContext; + } + +// public static void setMenuVelocityContext(VelocityContext context, GenTable genTable) +// { +// String options = genTable.getOptions(); +// JSONObject paramsObj = JSON.parseObject(options); +// String parentMenuId = getParentMenuId(paramsObj); +// context.put("parentMenuId", parentMenuId); +// } + +// public static void setTreeVelocityContext(VelocityContext context, GenTable genTable) +// { +// String options = genTable.getOptions(); +// JSONObject paramsObj = JSON.parseObject(options); +// String treeCode = getTreecode(paramsObj); +// String treeParentCode = getTreeParentCode(paramsObj); +// String treeName = getTreeName(paramsObj); +// +// context.put("treeCode", treeCode); +// context.put("treeParentCode", treeParentCode); +// context.put("treeName", treeName); +// context.put("expandColumn", getExpandColumn(genTable)); +// if (paramsObj.containsKey(GenConstants.TREE_PARENT_CODE)) +// { +// context.put("tree_parent_code", paramsObj.getString(GenConstants.TREE_PARENT_CODE)); +// } +// if (paramsObj.containsKey(GenConstants.TREE_NAME)) +// { +// context.put("tree_name", paramsObj.getString(GenConstants.TREE_NAME)); +// } +// } + + public static void setSubVelocityContext(VelocityContext context, AssCogeTable genTable) + { +// AssCogeTable subTable = genTable.getSubTable(); +// String subTableName = genTable.getSubTableName(); +// String subTableFkName = genTable.getSubTableFkName(); +// String subClassName = genTable.getSubTable().getClassName(); +// String subTableFkClassName = StringUtils.convertToCamelCase(subTableFkName); +// +// context.put("subTable", subTable); +// context.put("subTableName", subTableName); +// context.put("subTableFkName", subTableFkName); +// context.put("subTableFkClassName", subTableFkClassName); +// context.put("subTableFkclassName", StringUtils.uncapitalize(subTableFkClassName)); +// context.put("subClassName", subClassName); +// context.put("subclassName", StringUtils.uncapitalize(subClassName)); +// context.put("subImportList", getImportList(genTable.getSubTable())); + } + + /** + * 获取模板信息 + * + * @return 模板列表 + */ + public static List getTemplateList(String tplCategory) + { + List templates = new ArrayList(); + templates.add("vms/main/entity.java.vm"); + templates.add("vms/main/repo.java.vm"); + templates.add("vms/main/service.java.vm"); + templates.add("vms/main/api.java.vm"); + templates.add("vms/main/index.vue.vm"); + templates.add("vms/main/edit.vue.vm"); +// templates.add("vms/java/domain.java.vm"); +// templates.add("vms/java/mapper.java.vm"); +// templates.add("vms/java/service.java.vm"); +// templates.add("vms/java/serviceImpl.java.vm"); +// templates.add("vms/java/controller.java.vm"); +// templates.add("vms/xml/mapper.xml.vm"); +// templates.add("vms/sql/sql.vm"); +// templates.add("vms/js/api.js.vm"); +// if (GenConstants.TPL_CRUD.equals(tplCategory)) +// { +// templates.add("vms/vue/index.vue.vm"); +// } +// else if (GenConstants.TPL_TREE.equals(tplCategory)) +// { +// templates.add("vms/vue/index-tree.vue.vm"); +// } +// else if (GenConstants.TPL_SUB.equals(tplCategory)) +// { +// templates.add("vms/vue/index.vue.vm"); +// templates.add("vms/java/sub-domain.java.vm"); +// } + return templates; + } + + /** + * 获取文件名 + */ + public static String getFileName(String template, AssCogeTable genTable) + { + System.out.println(111111111); + // 文件名称 + String fileName = ""; + // 包路径 +// String packageName = genTable.getPackageName(); + String packageName = "fdsafdsa"; + // 模块名 +// String moduleName = genTable.getModuleName(); + // 大写类名 +// String className = genTable.getClassName(); + String className = genTable.getBunam(); + // 业务名称 +// String businessName = genTable.getBusinessName(); + String businessName = genTable.getBunam(); + + String javaPath = PROJECT_PATH + "/" + StringUtils.replace(packageName, ".", "/"); +// String mybatisPath = MYBATIS_PATH + "/" + moduleName; + String vuePath = "vue"; + if (template.contains("entity.java.vm")) + { + fileName = StringUtils.format("java/{}/{}.java", + genTable.getName().replace("_","/"), className); + } + else if (template.contains("repo.java.vm")) + { + fileName = StringUtils.format("java/{}/{}Repo.java", + genTable.getName().replace("_","/"), className); + } + else if (template.contains("service.java.vm")) + { + fileName = StringUtils.format("java/{}/{}Service.java", + genTable.getName().replace("_","/"), className); + }else if (template.contains("api.java.vm")) + { + fileName = StringUtils.format("java/{}/{}Api.java", + genTable.getName().replace("_","/"), className); + }else if (template.contains("index.vue.vm")) + { + fileName = StringUtils.format("vue/{}/index.vue", + genTable.getName().replace("_","/")); + }else if (template.contains("edit.vue.vm")) + { + fileName = StringUtils.format("vue/{}/edit.vue", + genTable.getName().replace("_","/")); + } +// else if (template.contains("domain.java.vm")) +// { +// fileName = StringUtils.format("{}/domain/{}.java", javaPath, className); +// } +// else if (template.contains("mapper.java.vm")) +// { +// fileName = StringUtils.format("{}/mapper/{}Mapper.java", javaPath, className); +// } +//// else if (template.contains("service.java.vm")) +//// { +//// fileName = StringUtils.format("{}/service/I{}Service.java", javaPath, className); +//// } +// else if (template.contains("serviceImpl.java.vm")) +// { +// fileName = StringUtils.format("{}/service/impl/{}ServiceImpl.java", javaPath, className); +// } +// else if (template.contains("controller.java.vm")) +// { +// fileName = StringUtils.format("{}/controller/{}Controller.java", javaPath, className); +// } +// else if (template.contains("mapper.xml.vm")) +// { +// fileName = StringUtils.format("{}/{}Mapper.xml", mybatisPath, className); +// } +// else if (template.contains("sql.vm")) +// { +// fileName = businessName + "Menu.sql"; +// } +// else if (template.contains("api.js.vm")) +// { +// fileName = StringUtils.format("{}/api/{}/{}.js", vuePath, moduleName, businessName); +// } +// else if (template.contains("index.vue.vm")) +// { +// fileName = StringUtils.format("{}/views/{}/{}/index.vue", vuePath, moduleName, businessName); +// } +// else if (template.contains("index-tree.vue.vm")) +// { +// fileName = StringUtils.format("{}/views/{}/{}/index.vue", vuePath, moduleName, businessName); +// } + return fileName; + } + + /** + * 获取包前缀 + * + * @param packageName 包名称 + * @return 包前缀名称 + */ + public static String getPackagePrefix(String packageName) + { + int lastIndex = packageName.lastIndexOf("."); + return StringUtils.substring(packageName, 0, lastIndex); + } + + /** + * 根据列类型获取导入包 + * + * @param genTable 业务表对象 + * @return 返回需要导入的包列表 + */ + public static HashSet getImportList(AssCogeTable genTable) + { + List columns = genTable.getFields(); +// AssCogeTable subGenTable = genTable.getSubTable(); + HashSet importList = new HashSet(); +// if (StringUtils.isNotNull(subGenTable)) +// { +// importList.add("java.util.List"); +// } +// for (GenTableColumn column : columns) +// { +// if (!column.isSuperColumn() && GenConstants.TYPE_DATE.equals(column.getJavaType())) +// { +// importList.add("java.util.Date"); +// importList.add("com.fasterxml.jackson.annotation.JsonFormat"); +// } +// else if (!column.isSuperColumn() && GenConstants.TYPE_BIGDECIMAL.equals(column.getJavaType())) +// { +// importList.add("java.math.BigDecimal"); +// } +// } + return importList; + } + + /** + * 根据列类型获取字典组 + * + * @param genTable 业务表对象 + * @return 返回字典组 + */ +// public static String getDicts(GenTable genTable) +// { +// List columns = genTable.getColumns(); +// Set dicts = new HashSet(); +// addDicts(dicts, columns); +// if (StringUtils.isNotNull(genTable.getSubTable())) +// { +// List subColumns = genTable.getSubTable().getColumns(); +// addDicts(dicts, subColumns); +// } +// return StringUtils.join(dicts, ", "); +// } + + /** + * 添加字典列表 + * + * @param dicts 字典列表 + * @param columns 列集合 + */ +// public static void addDicts(Set dicts, List columns) +// { +// for (AssCogeField column : columns) +// { +// if (!column.isSuperColumn() && StringUtils.isNotEmpty(column.getDictType()) && StringUtils.equalsAny( +// column.getHtmlType(), +// new String[] { GenConstants.HTML_SELECT, GenConstants.HTML_RADIO, GenConstants.HTML_CHECKBOX })) +// { +// dicts.add("'" + column.getDictType() + "'"); +// } +// } +// } + + /** + * 获取权限前缀 + * + * @param moduleName 模块名称 + * @param businessName 业务名称 + * @return 返回权限前缀 + */ + public static String getPermissionPrefix(String moduleName, String businessName) + { + return StringUtils.format("{}:{}", moduleName, businessName); + } + + /** + * 获取上级菜单ID字段 + * + * @param paramsObj 生成其他选项 + * @return 上级菜单ID字段 + */ +// public static String getParentMenuId(JSONObject paramsObj) +// { +// if (StringUtils.isNotEmpty(paramsObj) && paramsObj.containsKey(GenConstants.PARENT_MENU_ID) +// && StringUtils.isNotEmpty(paramsObj.getString(GenConstants.PARENT_MENU_ID))) +// { +// return paramsObj.getString(GenConstants.PARENT_MENU_ID); +// } +// return DEFAULT_PARENT_MENU_ID; +// } + + /** + * 获取树编码 + * + * @param paramsObj 生成其他选项 + * @return 树编码 + */ + public static String getTreecode(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_CODE)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_CODE)); + } + return StringUtils.EMPTY; + } + + /** + * 获取树父编码 + * + * @param paramsObj 生成其他选项 + * @return 树父编码 + */ + public static String getTreeParentCode(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_PARENT_CODE)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_PARENT_CODE)); + } + return StringUtils.EMPTY; + } + + /** + * 获取树名称 + * + * @param paramsObj 生成其他选项 + * @return 树名称 + */ + public static String getTreeName(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_NAME)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_NAME)); + } + return StringUtils.EMPTY; + } + + /** + * 获取需要在哪一列上面显示展开按钮 + * + * @param genTable 业务表对象 + * @return 展开按钮列序号 + */ +// public static int getExpandColumn(AssCogeTable genTable) +// { +// String options = genTable.getOptions(); +// JSONObject paramsObj = JSON.parseObject(options); +// String treeName = paramsObj.getString(GenConstants.TREE_NAME); +// int num = 0; +// for (AssCogeField column : genTable.getFields()) +// { +//// if (column.isList()) +//// { +//// num++; +//// String columnName = column.getColumnName(); +//// if (columnName.equals(treeName)) +//// { +//// break; +//// } +//// } +// } +// return num; +// } +} diff --git a/vboot-core/src/main/java/vboot/core/module/ass/dict/cate/AssDictCateApi.java b/vboot-core/src/main/java/vboot/core/module/ass/dict/cate/AssDictCateApi.java index 014536a..178825b 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/dict/cate/AssDictCateApi.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/dict/cate/AssDictCateApi.java @@ -1,6 +1,6 @@ package vboot.core.module.ass.dict.cate; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -12,32 +12,32 @@ public class AssDictCateApi { private String table = "ass_dict_cate"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); sqler.addLike("t.name", name); sqler.addSelect("t.notes,t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { AssDictCate cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } @PostMapping - public RestResult post(@RequestBody AssDictCate main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody AssDictCate cate) { + return R.ok(service.insert(cate)); } @PutMapping - public RestResult put(@RequestBody AssDictCate main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody AssDictCate cate) { + return R.ok(service.update(cate)); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/ass/dict/data/AssDictDataApi.java b/vboot-core/src/main/java/vboot/core/module/ass/dict/data/AssDictDataApi.java index da0e230..93cff16 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/dict/data/AssDictDataApi.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/dict/data/AssDictDataApi.java @@ -1,6 +1,6 @@ package vboot.core.module.ass.dict.data; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; @@ -15,7 +15,7 @@ public class AssDictDataApi { private String table = "ass_dict_data"; @GetMapping - public RestResult get(String name,String maiid) { + public R get(String name, String maiid) { Sqler sqler = new Sqler(table); if(XstrUtil.isNotBlank(name)){ sqler.addWhere("(t.name like ? or t.id like ?)","%"+name+"%","%"+name+"%"); @@ -23,36 +23,36 @@ public class AssDictDataApi { sqler.addEqual("t.maiid", maiid); sqler.addSelect("t.notes,t.ornum,t.code"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList(String maiid) { + public R getList(String maiid) { Sqler sqler = new Sqler(table); sqler.addEqual("t.maiid",maiid); sqler.addOrder("t.ornum"); - return RestResult.ok( jdbcDao.findIdNameList(sqler)); + return R.ok( jdbcDao.findIdNameList(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { AssDictData main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody AssDictData main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody AssDictData main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody AssDictData main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody AssDictData main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/ass/dict/main/AssDictMainApi.java b/vboot-core/src/main/java/vboot/core/module/ass/dict/main/AssDictMainApi.java index e3620c8..5284be1 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/dict/main/AssDictMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/dict/main/AssDictMainApi.java @@ -1,6 +1,6 @@ package vboot.core.module.ass.dict.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.dom4j.DocumentException; import org.springframework.beans.factory.annotation.Autowired; @@ -15,40 +15,40 @@ public class AssDictMainApi { private String table = "ass_dict_main"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); if(XstrUtil.isNotBlank(name)){ sqler.addWhere("(t.name like ? or t.id like ?)","%"+name+"%","%"+name+"%"); } sqler.addSelect("t.notes,t.ornum,t.code"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { AssDictMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("list") - public RestResult getList() { - return RestResult.ok(service.findAll()); + public R getList() { + return R.ok(service.findAll()); } @PostMapping - public RestResult post(@RequestBody AssDictMain main) throws DocumentException { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody AssDictMain main) throws DocumentException { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody AssDictMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody AssDictMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainApi.java b/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainApi.java index 179ff83..4717e8d 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainApi.java @@ -1,6 +1,6 @@ package vboot.core.module.ass.num.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; import org.springframework.beans.factory.annotation.Autowired; @@ -13,45 +13,45 @@ import java.util.Date; public class AssNumMainApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("t.*","ass_num_main"); sqler.addLike("t.name",name); sqler.addSelect("t.nupre,t.nunex,t.numod"); - return RestResult.ok(service.findPageData(sqler)) ; + return R.ok(service.findPageData(sqler)) ; } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { AssNumMain main=repo.findById(id).get(); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public synchronized RestResult post(@RequestBody AssNumMain main) { + public synchronized R post(@RequestBody AssNumMain main) { if(repo.existsById(main.getId())){ - return RestResult.build(201,"编号已存在,请修改编号"); + return R.build(201,"编号已存在,请修改编号"); } main.setNflag(true); repo.save(main); - return RestResult.ok(); + return R.ok(); } @PutMapping - public RestResult pust(@RequestBody AssNumMain main) { + public R pust(@RequestBody AssNumMain main) { if(XstrUtil.isBlank(main.getNunex())){ main.setNflag(true); } main.setUptim(new Date()); repo.save(main); - return RestResult.ok(); + return R.ok(); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { + public R delete(@PathVariable String[] ids) { for (String id : ids) { repo.deleteById(id); } - return RestResult.ok(); + return R.ok(); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainService.java b/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainService.java index 4e65dff..c578583 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainService.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/num/main/AssNumMainService.java @@ -27,7 +27,7 @@ public class AssNumMainService { //生成客户编码 //编码前缀+"-"+利用日期位格式生成当前的日期[yyyyMMdd ]+"-"+0001 c-20220914-0001 - String back = (num.getNupre() == null ? "" : num.getNupre()) + DateFormatUtils.format(new Date(), dateType) + firstSerialNum; + String back = (num.getNupre() == null ? "" : num.getNupre()) + curDate + firstSerialNum; //修改代码规则表 //下一个流水号="0002" num.setNunex(nextSerialNum); @@ -51,7 +51,7 @@ public class AssNumMainService { String nextSerialNum = NumUtil.getNextSerialNum(nextseq); //生成客户编码 //编码前缀+"-"+利用日期位格式生成当前的日期[yyyyMMdd ]+"-"+0001 - String back = (num.getNupre() == null ? "" : num.getNupre()) + DateFormatUtils.format(new Date(), dateType) + nextseq; + String back = (num.getNupre() == null ? "" : num.getNupre()) + sysCurDate + nextseq; //修改代码规则表 //下一个流水号="0003" num.setNunex(nextSerialNum); @@ -67,7 +67,7 @@ public class AssNumMainService { String nextSerialNum = NumUtil.getNextSerialNum(firstSerialNum); //生成客户编码 //编码前缀+"-"+利用日期位格式生成当前的日期[yyyyMMdd ]+"-"+0001 - String back = (num.getNupre() == null ? "" : num.getNupre()) + DateFormatUtils.format(new Date(), dateType) + firstSerialNum; + String back = (num.getNupre() == null ? "" : num.getNupre()) + sysCurDate + firstSerialNum; //修改代码规则表 //下一个流水号="0002" num.setNunex(nextSerialNum); diff --git a/vboot-core/src/main/java/vboot/core/module/ass/num/main/NumUtil.java b/vboot-core/src/main/java/vboot/core/module/ass/num/main/NumUtil.java index fd12496..2ccb001 100644 --- a/vboot-core/src/main/java/vboot/core/module/ass/num/main/NumUtil.java +++ b/vboot-core/src/main/java/vboot/core/module/ass/num/main/NumUtil.java @@ -27,15 +27,16 @@ public class NumUtil { public static String getNum(String numNow, String hintType) { String numNext = ""; + String todayYYYYMM=XdateUtil.getYYYYMM(); if("yyyymmxx".equals(hintType)){ if(numNow==null){ - numNext= XdateUtil.getYYYYMM()+getFirstSerialNum(2); + numNext=todayYYYYMM +getFirstSerialNum(2); }else{ String yyyymm=numNow.substring(0,6); - if(XdateUtil.getYYYYMM().equals(yyyymm)){ + if(todayYYYYMM.equals(yyyymm)){ numNext= yyyymm+getNextSerialNum(numNow.substring(numNow.length() -2)); }else{ - numNext= XdateUtil.getYYYYMM()+getFirstSerialNum(2); + numNext= todayYYYYMM+getFirstSerialNum(2); } } }else if("xxxxxx".equals(hintType)){ diff --git a/vboot-core/src/main/java/vboot/core/module/bpm/audit/main/BpmAuditMainApi.java b/vboot-core/src/main/java/vboot/core/module/bpm/audit/main/BpmAuditMainApi.java index deec442..458b64a 100644 --- a/vboot-core/src/main/java/vboot/core/module/bpm/audit/main/BpmAuditMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/bpm/audit/main/BpmAuditMainApi.java @@ -1,6 +1,5 @@ package vboot.core.module.bpm.audit.main; -import vboot.core.common.api.RestResult; import vboot.core.common.dao.JdbcDao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,11 +9,11 @@ import org.springframework.web.bind.annotation.*; public class BpmAuditMainApi { // @GetMapping("list") -// public RestResult list(String proid) { +// public R list(String proid) { // String sql = "select t.id,t.crtim,t.facna,t.facno,t.opnot,t.opinf,o.name as haman from bpm_audit_main t " + // "inner join sys_org o on o.id=t.haman " + // "where t.proid=? order by t.crtim"; -// return RestResult.ok(jdbcDao.findMapList(sql,proid)); +// return R.ok(jdbcDao.findMapList(sql,proid)); // } // diff --git a/vboot-core/src/main/java/vboot/core/module/bpm/proc/main/BpmProcMainApi.java b/vboot-core/src/main/java/vboot/core/module/bpm/proc/main/BpmProcMainApi.java index 1abe4c4..219ef48 100644 --- a/vboot-core/src/main/java/vboot/core/module/bpm/proc/main/BpmProcMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/bpm/proc/main/BpmProcMainApi.java @@ -1,6 +1,6 @@ package vboot.core.module.bpm.proc.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Zinp; @@ -16,20 +16,20 @@ import java.util.*; public class BpmProcMainApi { @GetMapping - public RestResult get(String name, String catid) { + public R get(String name, String catid) { Sqler sqler = new Sqler("bpm_proc_main"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { BpmProcMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @GetMapping("zbpm") - public RestResult zbpm(String proid) { + public R zbpm(String proid) { Map map = new HashMap<>(); //审批记录 String sql = "select t.id,t.crtim,t.facna,t.facno,t.opnot,t.opinf,o.name as haman from bpm_audit_main t " + @@ -80,11 +80,11 @@ public class BpmProcMainApi { map.put("cuExmen", cuExmen); map.put("cutag", cutag); map.put("zbpm", zbpm); - return RestResult.ok(map); + return R.ok(map); } @GetMapping("target") - public RestResult target(String proid, String facno) { + public R target(String proid, String facno) { Map map = new HashMap<>(); Znode nextNode; //如果是之前被驳回的节点则,通过后要判断是否直接返回驳回的节点 @@ -107,13 +107,13 @@ public class BpmProcMainApi { if (bacMap != null) { map.put("bacid", bacMap.get("id")); } - return RestResult.ok(map); + return R.ok(map); } //返回当前节点之前的已走过的节点 @GetMapping("refnodes") - public RestResult refNodes(String proid, String facno) { + public R refNodes(String proid, String facno) { String sql = "select distinct t.facno id,t.facna name,t.haman exman from bpm_audit_main t " + "where proid=? and opkey in('dsubmit','pass') order by t.crtim"; List> mapList = jdbcDao.findMapList(sql, proid); @@ -124,11 +124,11 @@ public class BpmProcMainApi { } list.add(map); } - return RestResult.ok(list); + return R.ok(list); } @GetMapping("xml") - public RestResult xml(String proid) { + public R xml(String proid) { Map map = new HashMap<>(); String xmlSql = "select t.orxml id from bpm_proc_temp t " + "inner join bpm_proc_main m on m.temid=t.id where m.id=?"; @@ -156,11 +156,11 @@ public class BpmProcMainApi { map.put("xml", orxml); map.put("nodeList", nodeList); map.put("lineList", lineSet); - return RestResult.ok(map); + return R.ok(map); } @GetMapping("texml") - public RestResult texml(String temid) { + public R texml(String temid) { Map map = new HashMap<>(); String sql = "select t.orxml from bpm_proc_temp t where t.id=?"; String orxml = jdbcDao.findOneString(sql, temid); @@ -171,37 +171,37 @@ public class BpmProcMainApi { map.put("tarna", nextNode.getFacna()); map.put("tamen", tamen); map.put("xml", orxml); - return RestResult.ok(map); + return R.ok(map); } // @PostMapping("hpass") -// public RestResult hpass(@RequestBody Zbpm zbpm) { +// public R hpass(@RequestBody Zbpm zbpm) { // // // service.handlerPass(zbpm); -// return RestResult.ok(); +// return R.ok(); // } // @PostMapping("hrefuse") -// public RestResult hrefuse(@RequestBody Zbpm zbpm) { +// public R hrefuse(@RequestBody Zbpm zbpm) { // // service.handlerRefuse(zbpm); -// return RestResult.ok(); +// return R.ok(); // } @PostMapping - public RestResult post(@RequestBody BpmProcMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BpmProcMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BpmProcMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BpmProcMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/gen/num/GenNumApi.java b/vboot-core/src/main/java/vboot/core/module/gen/num/GenNumApi.java index 1a2e026..5ffbbee 100644 --- a/vboot-core/src/main/java/vboot/core/module/gen/num/GenNumApi.java +++ b/vboot-core/src/main/java/vboot/core/module/gen/num/GenNumApi.java @@ -1,6 +1,6 @@ package vboot.core.module.gen.num; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.xutil.lang.XstrUtil; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -11,8 +11,8 @@ import org.springframework.web.bind.annotation.RestController; public class GenNumApi { @GetMapping("uuid") - public RestResult uuid() { - return RestResult.ok(XstrUtil.getUUID()); + public R uuid() { + return R.ok(XstrUtil.getUUID()); } } diff --git a/vboot-core/src/main/java/vboot/core/module/gen/org/rece/GenOrgReceApi.java b/vboot-core/src/main/java/vboot/core/module/gen/org/rece/GenOrgReceApi.java index ee60b9a..eb1d4d8 100644 --- a/vboot-core/src/main/java/vboot/core/module/gen/org/rece/GenOrgReceApi.java +++ b/vboot-core/src/main/java/vboot/core/module/gen/org/rece/GenOrgReceApi.java @@ -1,6 +1,6 @@ package vboot.core.module.gen.org.rece; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.web.XuserUtil; @@ -17,7 +17,7 @@ import java.util.Map; public class GenOrgReceApi { @GetMapping - public RestResult get(Integer type) { + public R get(Integer type) { List> mapList = new ArrayList<>(); String userId = XuserUtil.getUserId(); if ((type & 8) != 0) {//用户 @@ -41,15 +41,15 @@ public class GenOrgReceApi { mapList.addAll(jdbcDao.findMapList(postSqler)); } // sqler.addDescOrder("t.uptim"); - return RestResult.ok(mapList); + return R.ok(mapList); } @PostMapping - public RestResult post(@RequestBody List reces) { + public R post(@RequestBody List reces) { if(reces!=null&&reces.size()>0){ service.update(reces); } - return RestResult.ok(); + return R.ok(); } diff --git a/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgDeptApi.java b/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgDeptApi.java index 6519b21..ae45205 100644 --- a/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgDeptApi.java +++ b/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgDeptApi.java @@ -1,6 +1,6 @@ package vboot.core.module.gen.org.root; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Ztree; @@ -17,25 +17,25 @@ public class GenOrgDeptApi { //查询部门树 @GetMapping("tree") - public RestResult getTree(String name) { + public R getTree(String name) { Sqler sqler = new Sqler("sys_org_dept"); sqler.addSelect("t.pid"); sqler.addLike("t.name", name); sqler.addOrder("t.ornum"); sqler.addWhere("t.avtag=1"); List list = jdbcDao.findTreeList(sqler); - return RestResult.ok(list); + return R.ok(list); } //查询部门树 @GetMapping("list") - public RestResult getList(String name) { + public R getList(String name) { Sqler sqler = new Sqler("sys_org_dept"); sqler.addLike("t.name", name); sqler.addOrder("t.ornum"); sqler.addWhere("t.avtag=1"); sqler.addSelect("t.pid"); - return RestResult.ok(jdbcDao.findMapList(sqler)); + return R.ok(jdbcDao.findMapList(sqler)); } diff --git a/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgMainApi.java b/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgMainApi.java index 87f2d86..49e178b 100644 --- a/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/gen/org/root/GenOrgMainApi.java @@ -1,6 +1,6 @@ package vboot.core.module.gen.org.root; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; @@ -19,10 +19,10 @@ public class GenOrgMainApi { //根据部门ID,查询下级所有的部门,岗位,用户 @GetMapping() - public RestResult get(String deptid, Integer type, String name) { + public R get(String deptid, Integer type, String name) { List> mapList = new ArrayList<>(); if(XstrUtil.isBlank(name)&& XstrUtil.isBlank(deptid)){ - return RestResult.ok(mapList); + return R.ok(mapList); } if ((type & 2) != 0) {//部门 Sqler deptSqler = new Sqler("sys_org_dept"); @@ -51,7 +51,7 @@ public class GenOrgMainApi { } mapList.addAll(jdbcDao.findMapList(userSqler)); } - return RestResult.ok(mapList); + return R.ok(mapList); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/gen/sys/auth/GenAuthApi.java b/vboot-core/src/main/java/vboot/core/module/gen/sys/auth/GenAuthApi.java index bad880c..e790339 100644 --- a/vboot-core/src/main/java/vboot/core/module/gen/sys/auth/GenAuthApi.java +++ b/vboot-core/src/main/java/vboot/core/module/gen/sys/auth/GenAuthApi.java @@ -1,6 +1,6 @@ package vboot.core.module.gen.sys.auth; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.security.pojo.Zuser; import org.springframework.beans.factory.annotation.Autowired; @@ -16,7 +16,7 @@ import java.util.Map; public class GenAuthApi { @PostMapping(value="btns") - public RestResult getBtns(HttpServletRequest request, @RequestBody Map btns) { + public R getBtns(HttpServletRequest request, @RequestBody Map btns) { Zuser zuser = null; Map backMap = new HashMap<>(); for (String str : btns.keySet()) { @@ -35,12 +35,12 @@ public class GenAuthApi { } } - return RestResult.ok(backMap); + return R.ok(backMap); } //获取用户信息,如果没有登录到不了这里 @GetMapping("user") - public RestResult getUser(HttpServletRequest request,String id) { + public R getUser(HttpServletRequest request,String id) { Map map = new HashMap<>(); Zuser zuser= null; if("sa".equals(id)){ @@ -60,7 +60,7 @@ public class GenAuthApi { } map.put("zuser", zuser); - return RestResult.build(200, "已登录",map); + return R.build(200, "已登录",map); } diff --git a/vboot-core/src/main/java/vboot/core/module/gen/sys/org/GenOrgApi.java b/vboot-core/src/main/java/vboot/core/module/gen/sys/org/GenOrgApi.java index fa6a4d0..040e390 100644 --- a/vboot-core/src/main/java/vboot/core/module/gen/sys/org/GenOrgApi.java +++ b/vboot-core/src/main/java/vboot/core/module/gen/sys/org/GenOrgApi.java @@ -1,6 +1,6 @@ package vboot.core.module.gen.sys.org; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; @@ -17,43 +17,43 @@ import javax.servlet.http.HttpServletRequest; @RequestMapping("gen/org") public class GenOrgApi { @GetMapping(value="watag") - public RestResult getWatag(HttpServletRequest request) { + public R getWatag(HttpServletRequest request) { Zuser zuser = null; String sql = "update sys_org_user set watag=0 where id=?"; jdbcDao.update(sql, zuser.getId()); zuser.setWatag(false); - return RestResult.ok(); + return R.ok(); } @GetMapping(value="choose") - public RestResult getChoose(String name, String type) { + public R getChoose(String name, String type) { Sqler sqlHelper = new Sqler("id,pid,name","sys_org_main"); sqlHelper.addWhere("t.avtag = 1"); sqlHelper.addWhere(XstrUtil.isNotBlank(type),"type in ("+type+")"); sqlHelper.addLike("name",name); sqlHelper.addEqual("t.label", "ekp"); - return RestResult.ok(jdbcDao.findInpList(sqlHelper)); + return R.ok(jdbcDao.findInpList(sqlHelper)); } @GetMapping("search") - public RestResult getSearch(String name, String type) { + public R getSearch(String name, String type) { Sqler sqlHelper = new Sqler("t.id,t.name","sys_org_main"); sqlHelper.addLeftJoin("t2.name as pid", "sys_org t2", "t2.id=t.pid"); sqlHelper.addWhere("t.avtag = 1"); sqlHelper.addLike("t.name",name); sqlHelper.addWhere(XstrUtil.isNotBlank(type),"t.type in ("+type+")"); - return RestResult.ok(jdbcDao.findInpList(sqlHelper)); + return R.ok(jdbcDao.findInpList(sqlHelper)); } @GetMapping("dept/{id}") - public RestResult getDept(@PathVariable String id, String type) { + public R getDept(@PathVariable String id, String type) { Sqler sqlHelper = new Sqler("t.id,t.name","sys_org_main"); sqlHelper.addLeftJoin("t2.name as pid", "sys_org t2", "t2.id=t.pid"); sqlHelper.addWhere("t.avtag = 1"); sqlHelper.addWhere(XstrUtil.isNotBlank(type),"t.type in ("+type+")"); sqlHelper.addWhere("t.pid = ?",id); - return RestResult.ok(jdbcDao.findInpList(sqlHelper)); + return R.ok(jdbcDao.findInpList(sqlHelper)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLog.java b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLog.java similarity index 87% rename from vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLog.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLog.java index 0eb747c..2a95570 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLog.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLog.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.job.log; +package vboot.core.module.mon.job.log; import lombok.Data; @@ -8,7 +8,7 @@ import javax.persistence.Id; @Entity @Data -public class SysJobLog { +public class MonJobLog { @Id @Column(length = 32) diff --git a/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogApi.java b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogApi.java new file mode 100644 index 0000000..14552a4 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogApi.java @@ -0,0 +1,42 @@ +package vboot.core.module.mon.job.log; + +import vboot.core.common.api.R; +import vboot.core.common.dao.Sqler; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mon/job/log") +public class MonJobLogApi { + + private String table = "mon_job_log"; + + @GetMapping + public R get(String name) { + Sqler sqler = new Sqler("t.id,t.name,t.sttim,t.entim,t.ret", table); +// XreqUtil.setPageParam(sqler); + sqler.addLike("t.name", name); + sqler.addOrder("t.entim desc"); + System.out.println(sqler.getSql()); + return R.ok(service.findPageData(sqler)); + } + + @GetMapping("one/{id}") + public R getOne(@PathVariable String id) { + return R.ok(service.findOne(id)); + } + + @DeleteMapping("all") + public R deleteAll() { + service.deleteAll(); + return R.ok(); + } + + @DeleteMapping("{ids}") + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); + } + + @Autowired + private MonJobLogService service; +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogRepo.java b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogRepo.java new file mode 100644 index 0000000..5f9ec1d --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogRepo.java @@ -0,0 +1,8 @@ +package vboot.core.module.mon.job.log; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MonJobLogRepo extends JpaRepository { + +} + diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogService.java b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogService.java similarity index 85% rename from vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogService.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogService.java index df39dbe..ebb4a3b 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogService.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/log/MonJobLogService.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.job.log; +package vboot.core.module.mon.job.log; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; @@ -11,7 +11,7 @@ import org.springframework.transaction.annotation.Transactional; @Service @Transactional(rollbackFor = Exception.class) @Slf4j -public class SysJobLogService { +public class MonJobLogService { @Transactional(readOnly = true) public PageData findPageData(Sqler sqler) { @@ -31,12 +31,12 @@ public class SysJobLogService { } @Transactional(readOnly = true) - public SysJobLog findOne(String id) { + public MonJobLog findOne(String id) { return repo.findById(id).get(); } @Autowired - private SysJobLogRepo repo; + private MonJobLogRepo repo; @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobDemo.java b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobDemo.java similarity index 82% rename from vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobDemo.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobDemo.java index 02638ed..a50d9d7 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobDemo.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobDemo.java @@ -1,13 +1,13 @@ -package vboot.core.module.sys.job.main; +package vboot.core.module.mon.job.main; -import vboot.core.module.sys.job.root.IJob; -import vboot.core.module.sys.job.root.IJobGroup; +import vboot.core.module.mon.job.root.IJob; +import vboot.core.module.mon.job.root.IJobGroup; import vboot.core.xutil.lang.XtimeUtil; import org.springframework.stereotype.Component; @IJobGroup @Component -public class SysJobDemo +public class MonJobDemo { private static boolean usingFlag = false; diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMain.java b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMain.java similarity index 93% rename from vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMain.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMain.java index ce41008..fb72dde 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMain.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMain.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.job.main; +package vboot.core.module.mon.job.main; import lombok.Data; @@ -11,7 +11,7 @@ import java.util.Date; @Data @Entity -public class SysJobMain +public class MonJobMain { @Id @Column(length = 32) diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainApi.java b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainApi.java similarity index 58% rename from vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainApi.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainApi.java index a02c478..62d164f 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainApi.java @@ -1,35 +1,35 @@ -package vboot.core.module.sys.job.main; +package vboot.core.module.mon.job.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; -import vboot.core.module.sys.job.root.SysJobHandler; +import vboot.core.module.mon.job.root.MonJobHandler; import org.quartz.SchedulerException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController -@RequestMapping("sys/job/main") -public class SysJobMainApi { +@RequestMapping("mon/job/main") +public class MonJobMainApi { - private String table = "sys_job_main"; + private String table = "mon_job_main"; @GetMapping - public RestResult get(String id, String name) { + public R get(String id, String name) { Sqler sqler = new Sqler("t.id,t.name,t.reurl,t.cron,t.avtag,t.code,t.crtim,t.notes", table); sqler.addLike("t.name", name); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { - SysJobMain main=repo.findById(id).get(); - return RestResult.ok(main); + public R getOne(@PathVariable String id) { + MonJobMain main=repo.findById(id).get(); + return R.ok(main); } @PutMapping - public RestResult put(@RequestBody SysJobMain main) throws SchedulerException { - SysJobMain dbJob = repo.findById(main.getId()).get(); + public R put(@RequestBody MonJobMain main) throws SchedulerException { + MonJobMain dbJob = repo.findById(main.getId()).get(); if(dbJob.getAvtag()){ String[] arr= dbJob.getReurl().split("/"); dbJob.setJgroup(arr[0]); @@ -43,53 +43,53 @@ public class SysJobMainApi { main.setJid(arr2[1]); handler.startJob(main); } - return RestResult.ok(); + return R.ok(); } @PostMapping("start") - public RestResult startJob(String ids) throws SchedulerException { + public R startJob(String ids) throws SchedulerException { String[] idArr = ids.split(","); for (int i = 0; i < idArr.length; i++) { - SysJobMain job = repo.findById(idArr[i]).get(); + MonJobMain job = repo.findById(idArr[i]).get(); String[] arr= job.getReurl().split("/"); job.setJgroup(arr[0]); job.setJid(arr[1]); handler.startJob(job); } - return RestResult.ok(); + return R.ok(); } @PostMapping("stop") - public RestResult stopJob(String ids) throws SchedulerException { + public R stopJob(String ids) throws SchedulerException { String[] idArr = ids.split(","); for (int i = 0; i < idArr.length; i++) { - SysJobMain job = repo.findById(idArr[i]).get(); + MonJobMain job = repo.findById(idArr[i]).get(); String[] arr= job.getReurl().split("/"); job.setJgroup(arr[0]); job.setJid(arr[1]); handler.stopJob(job); } - return RestResult.ok(); + return R.ok(); } @PostMapping("once") - public RestResult startOnce(String id) throws InterruptedException, SchedulerException { - SysJobMain main=repo.findById(id).get(); + public R startOnce(String id) throws InterruptedException, SchedulerException { + MonJobMain main=repo.findById(id).get(); String[] arr= main.getReurl().split("/"); main.setJgroup(arr[0]); main.setJid(arr[1]); handler.onceJob(main); - return RestResult.ok(); + return R.ok(); } @Autowired - private SysJobHandler handler; + private MonJobHandler handler; @Autowired - private SysJobMainRepo repo; + private MonJobMainRepo repo; @Autowired private JdbcDao jdbcDao; diff --git a/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainRepo.java b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainRepo.java new file mode 100644 index 0000000..d28f315 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainRepo.java @@ -0,0 +1,8 @@ +package vboot.core.module.mon.job.main; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MonJobMainRepo extends JpaRepository { + +} + diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainService.java b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainService.java similarity index 86% rename from vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainService.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainService.java index 464e6f0..77ac0a9 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainService.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/main/MonJobMainService.java @@ -1,10 +1,10 @@ -package vboot.core.module.sys.job.main; +package vboot.core.module.mon.job.main; import cn.hutool.core.lang.ClassScanner; import vboot.core.xutil.lang.XstrUtil; -import vboot.core.module.sys.job.root.IJobGroup; +import vboot.core.module.mon.job.root.IJobGroup; import lombok.extern.slf4j.Slf4j; -import vboot.core.module.sys.job.root.IJob; +import vboot.core.module.mon.job.root.IJob; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -17,11 +17,11 @@ import java.util.Set; @Service @Transactional(rollbackFor = Exception.class) @Slf4j -public class SysJobMainService { +public class MonJobMainService { - public List getJobList(){ - List scanJobList = getScanJobList(); - List dbJobList = repo.findAll(); + public List getJobList(){ + List scanJobList = getScanJobList(); + List dbJobList = repo.findAll(); for (int j = 0; j < dbJobList.size(); j++) { boolean flag = false; for (int i = 0; i < scanJobList.size(); i++) { @@ -51,9 +51,9 @@ public class SysJobMainService { return scanJobList; } - private List getScanJobList() + private List getScanJobList() { - List list = new ArrayList(); + List list = new ArrayList(); Set> classes = ClassScanner.scanPackage("vboot"); for (Class clazz : classes) { @@ -66,7 +66,7 @@ public class SysJobMainService { IJob xjob = method.getAnnotation(IJob.class); if (xjob != null) { - SysJobMain job = new SysJobMain(); + MonJobMain job = new MonJobMain(); job.setId(XstrUtil.getUUID()); job.setCron(xjob.cron()); job.setJgroup(XstrUtil.toLowerfirst(clazz.getSimpleName())); @@ -100,5 +100,5 @@ public class SysJobMainService { } @Autowired - private SysJobMainRepo repo; + private MonJobMainRepo repo; } diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/root/IJob.java b/vboot-core/src/main/java/vboot/core/module/mon/job/root/IJob.java similarity index 90% rename from vboot-core/src/main/java/vboot/core/module/sys/job/root/IJob.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/root/IJob.java index e070195..b6b7bdf 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/root/IJob.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/root/IJob.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.job.root; +package vboot.core.module.mon.job.root; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/root/IJobGroup.java b/vboot-core/src/main/java/vboot/core/module/mon/job/root/IJobGroup.java similarity index 86% rename from vboot-core/src/main/java/vboot/core/module/sys/job/root/IJobGroup.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/root/IJobGroup.java index beb9fdf..ee0a963 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/root/IJobGroup.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/root/IJobGroup.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.job.root; +package vboot.core.module.mon.job.root; @java.lang.annotation.Documented @java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE}) diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/root/JobConfig.java b/vboot-core/src/main/java/vboot/core/module/mon/job/root/JobConfig.java similarity index 93% rename from vboot-core/src/main/java/vboot/core/module/sys/job/root/JobConfig.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/root/JobConfig.java index 661117a..b8d2b21 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/root/JobConfig.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/root/JobConfig.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.job.root; +package vboot.core.module.mon.job.root; import org.quartz.Scheduler; import org.quartz.SchedulerException; diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobFactory.java b/vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobFactory.java similarity index 78% rename from vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobFactory.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobFactory.java index 49d635a..5894b8c 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobFactory.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobFactory.java @@ -1,8 +1,8 @@ -package vboot.core.module.sys.job.root; +package vboot.core.module.mon.job.root; -import vboot.core.module.sys.job.log.SysJobLog; -import vboot.core.module.sys.job.log.SysJobLogRepo; -import vboot.core.module.sys.job.main.SysJobMain; +import vboot.core.module.mon.job.log.MonJobLog; +import vboot.core.module.mon.job.log.MonJobLogRepo; +import vboot.core.module.mon.job.main.MonJobMain; import vboot.core.xutil.lang.XstrUtil; import vboot.core.xutil.lang.XtimeUtil; import vboot.core.xutil.web.XspringUtil; @@ -14,14 +14,14 @@ import java.io.PrintWriter; import java.io.StringWriter; import java.lang.reflect.Method; -public class SysJobFactory implements Job { +public class MonJobFactory implements Job { @Override public void execute(JobExecutionContext context) { - SysJobMain job = (SysJobMain) context.getMergedJobDataMap().get("job"); + MonJobMain job = (MonJobMain) context.getMergedJobDataMap().get("job"); Method method = ReflectionUtils.findMethod(XspringUtil.getBean(job.getJgroup()).getClass(), job.getJid()); - SysJobLog log = new SysJobLog(); + MonJobLog log = new MonJobLog(); log.setId(XstrUtil.getUUID()); - SysJobLogRepo syJobMlogDao= (SysJobLogRepo) XspringUtil.getBean("sysJobLogRepo"); + MonJobLogRepo syJobMlogDao= (MonJobLogRepo) XspringUtil.getBean("monJobLogRepo"); log.setName(job.getName()); long start = System.currentTimeMillis(); try { diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobHandler.java b/vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobHandler.java similarity index 89% rename from vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobHandler.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobHandler.java index 2de5295..7b5e703 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobHandler.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobHandler.java @@ -1,8 +1,8 @@ -package vboot.core.module.sys.job.root; +package vboot.core.module.mon.job.root; -import vboot.core.module.sys.job.main.SysJobMain; -import vboot.core.module.sys.job.main.SysJobMainRepo; +import vboot.core.module.mon.job.main.MonJobMain; +import vboot.core.module.mon.job.main.MonJobMainRepo; import org.quartz.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -12,13 +12,13 @@ import java.util.List; //任务调度处理 @Component -public class SysJobHandler { +public class MonJobHandler { // 任务调度 @Autowired private Scheduler scheduler; //开始执行所有任务 - public void startAllJobs(List jobList) throws SchedulerException { + public void startAllJobs(List jobList) throws SchedulerException { for (int i = 0; i < jobList.size(); i++) { if (jobList.get(i).getAvtag()) { String[] arr= jobList.get(i).getReurl().split("/"); @@ -30,10 +30,10 @@ public class SysJobHandler { scheduler.start(); } - private void initJob(Scheduler scheduler, SysJobMain job) throws SchedulerException { + private void initJob(Scheduler scheduler, MonJobMain job) throws SchedulerException { // 通过JobBuilder构建JobDetail实例,JobDetail规定只能是实现Job接口的实例 // JobDetail 是具体Job实例 - JobDetail jobDetail = JobBuilder.newJob(SysJobFactory.class).withIdentity(job.getJid(), job.getJgroup()).build(); + JobDetail jobDetail = JobBuilder.newJob(MonJobFactory.class).withIdentity(job.getJid(), job.getJgroup()).build(); // 基于表达式构建触发器 jobDetail.getJobDataMap().put("job", job); CronScheduleBuilder cronScheduleBuilder = CronScheduleBuilder.cronSchedule(job.getCron()); @@ -45,7 +45,7 @@ public class SysJobHandler { } //禁用任务 - public void stopJob(SysJobMain job) throws SchedulerException { + public void stopJob(MonJobMain job) throws SchedulerException { JobKey jobKey = JobKey.jobKey(job.getJid(), job.getJgroup()); scheduler.deleteJob(jobKey); job.setAvtag(false); @@ -53,11 +53,11 @@ public class SysJobHandler { } //启用任务 - public void startJob(SysJobMain job) throws SchedulerException { + public void startJob(MonJobMain job) throws SchedulerException { TriggerKey triggerKey = TriggerKey.triggerKey(job.getJid(), job.getJgroup()); CronTrigger trigger = (CronTrigger) scheduler.getTrigger(triggerKey); if (null == trigger) { - JobDetail jobDetail = JobBuilder.newJob(SysJobFactory.class) + JobDetail jobDetail = JobBuilder.newJob(MonJobFactory.class) .withIdentity(job.getJid(), job.getJgroup()).build(); jobDetail.getJobDataMap().put("job", job); CronScheduleBuilder scheduleBuilder = CronScheduleBuilder.cronSchedule(job.getCron()); @@ -74,12 +74,12 @@ public class SysJobHandler { } //立即执行一次 - public void onceJob(SysJobMain job) throws SchedulerException, InterruptedException { + public void onceJob(MonJobMain job) throws SchedulerException, InterruptedException { if (job.getAvtag()) { JobKey jobKey = JobKey.jobKey(job.getJid(), job.getJgroup()); scheduler.triggerJob(jobKey); } else { - JobDetail jobDetail = JobBuilder.newJob(SysJobFactory.class) + JobDetail jobDetail = JobBuilder.newJob(MonJobFactory.class) .withIdentity(job.getJid(), job.getJgroup()).build(); jobDetail.getJobDataMap().put("job", job); CronScheduleBuilder scheduleBuilder = CronScheduleBuilder.cronSchedule(job.getCron()); @@ -156,7 +156,7 @@ public class SysJobHandler { } @Autowired - private SysJobMainRepo repo; + private MonJobMainRepo repo; } \ No newline at end of file diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobListener.java b/vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobListener.java similarity index 67% rename from vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobListener.java rename to vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobListener.java index 862d825..eb9c25a 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/root/SysJobListener.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/job/root/MonJobListener.java @@ -1,7 +1,7 @@ -package vboot.core.module.sys.job.root; +package vboot.core.module.mon.job.root; -import vboot.core.module.sys.job.main.SysJobMain; -import vboot.core.module.sys.job.main.SysJobMainService; +import vboot.core.module.mon.job.main.MonJobMain; +import vboot.core.module.mon.job.main.MonJobMainService; import lombok.extern.slf4j.Slf4j; import org.quartz.SchedulerException; import org.springframework.beans.factory.annotation.Autowired; @@ -13,18 +13,18 @@ import java.util.List; @Configuration @Slf4j -public class SysJobListener implements ApplicationListener { +public class MonJobListener implements ApplicationListener { @Autowired - private SysJobHandler handler; + private MonJobHandler handler; @Autowired - private SysJobMainService sysJobMainService; + private MonJobMainService monJobMainService; //初始启动quartz @Override public void onApplicationEvent(ContextRefreshedEvent event) { - List dbJobList = sysJobMainService.getJobList(); + List dbJobList = monJobMainService.getJobList(); try { handler.startAllJobs(dbJobList); // log.info("----SYS定时调度任务开启----"); diff --git a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLogin.java b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLogin.java similarity index 92% rename from vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLogin.java rename to vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLogin.java index 93de730..72d0da2 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLogin.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLogin.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.log.login; +package vboot.core.module.mon.log.login; import lombok.Data; @@ -9,7 +9,7 @@ import java.util.Date; @Entity @Data -public class SysLogLogin { +public class MonLogLogin { @Id @Column(length = 32) private String id; diff --git a/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginApi.java b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginApi.java new file mode 100644 index 0000000..8303ee4 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginApi.java @@ -0,0 +1,45 @@ +package vboot.core.module.mon.log.login; + +import vboot.core.common.dao.JdbcDao; +import vboot.core.common.dao.Sqler; +import vboot.core.common.api.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mon/log/login") +public class MonLogLoginApi { + + @GetMapping + public R get(String name) { + Sqler sqlHelper = new Sqler("t.*", "mon_log_login"); + sqlHelper.addLike("t.name", name); + sqlHelper.addOrder("t.crtim desc"); + return R.ok(jdbcDao.findPageData(sqlHelper)); + } + + @GetMapping("one/{id}") + public R getOne(@PathVariable String id) { + return R.ok(repo.findById(id).get()); + } + + @DeleteMapping("{ids}") + public R delete(@PathVariable String[] ids) { + for (String id : ids) { + repo.deleteById(id); + } + return R.ok(); + } + + @DeleteMapping("all") + public R deleteAll() { + repo.deleteAll(); + return R.ok(); + } + + @Autowired + private JdbcDao jdbcDao; + + @Autowired + private MonLogLoginRepo repo; +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginRepo.java b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginRepo.java new file mode 100644 index 0000000..f4c4ba3 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginRepo.java @@ -0,0 +1,7 @@ +package vboot.core.module.mon.log.login; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MonLogLoginRepo extends JpaRepository { + +} diff --git a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginService.java b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginService.java similarity index 96% rename from vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginService.java rename to vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginService.java index e8a8af2..871c655 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginService.java +++ b/vboot-core/src/main/java/vboot/core/module/mon/log/login/MonLogLoginService.java @@ -1,4 +1,4 @@ -package vboot.core.module.sys.log.login; +package vboot.core.module.mon.log.login; import cn.hutool.extra.servlet.ServletUtil; import vboot.core.xutil.lang.XstrUtil; @@ -16,15 +16,15 @@ import javax.servlet.http.HttpServletRequest; @Service @Slf4j -public class SysLogLoginService { +public class MonLogLoginService { @Autowired - private SysLogLoginRepo repo; + private MonLogLoginRepo repo; @Async public void save(Zuser zuser, HttpServletRequest request){ - SysLogLogin logLogin = new SysLogLogin(); + MonLogLogin logLogin = new MonLogLogin(); logLogin.setId(XstrUtil.getUUID()); try { String agent = request.getHeader("User-Agent"); diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/main/CloseUtil.java b/vboot-core/src/main/java/vboot/core/module/mon/server/main/CloseUtil.java new file mode 100644 index 0000000..1d51f4c --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/main/CloseUtil.java @@ -0,0 +1,47 @@ +/* + * Copyright 2019-2020 Zheng Jie + * + * Licensed 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. + */ +package vboot.core.module.mon.server.main; + +import java.io.Closeable; + +/** + * @author Zheng Jie + * @website https://el-admin.vip + * @description 用于关闭各种连接,缺啥补啥 + * @date 2021-03-05 + **/ +public class CloseUtil { + + public static void close(Closeable closeable) { + if (null != closeable) { + try { + closeable.close(); + } catch (Exception e) { + // 静默关闭 + } + } + } + + public static void close(AutoCloseable closeable) { + if (null != closeable) { + try { + closeable.close(); + } catch (Exception e) { + // 静默关闭 + } + } + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/main/ElAdminConstant.java b/vboot-core/src/main/java/vboot/core/module/mon/server/main/ElAdminConstant.java new file mode 100644 index 0000000..937b326 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/main/ElAdminConstant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2019-2020 Zheng Jie + * + * Licensed 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. + */ +package vboot.core.module.mon.server.main; + +/** + * 常用静态常量 + * + * @author Zheng Jie + * @date 2018-12-26 + */ +public class ElAdminConstant { + + /** + * 用于IP定位转换 + */ + public static final String REGION = "内网IP|内网IP"; + /** + * win 系统 + */ + public static final String WIN = "win"; + + /** + * mac 系统 + */ + public static final String MAC = "mac"; + + /** + * 常用接口 + */ + public static class Url { + // IP归属地查询 + public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true"; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/main/FileUtil.java b/vboot-core/src/main/java/vboot/core/module/mon/server/main/FileUtil.java new file mode 100644 index 0000000..b50ec7f --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/main/FileUtil.java @@ -0,0 +1,357 @@ +/* + * Copyright 2019-2020 Zheng Jie + * + * Licensed 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. + */ +package vboot.core.module.mon.server.main; + +import cn.hutool.core.io.IoUtil; +import cn.hutool.core.util.IdUtil; +import cn.hutool.poi.excel.BigExcelWriter; +import cn.hutool.poi.excel.ExcelUtil; +import org.apache.poi.util.IOUtils; +import org.apache.poi.xssf.streaming.SXSSFSheet; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.web.multipart.MultipartFile; +import vboot.core.common.exception.BadRequestException; + +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.*; +import java.security.MessageDigest; +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; +import java.util.Map; + +/** + * File工具类,扩展 hutool 工具包 + * + * @author Zheng Jie + * @date 2018-12-27 + */ +public class FileUtil extends cn.hutool.core.io.FileUtil { + + private static final Logger log = LoggerFactory.getLogger(FileUtil.class); + + /** + * 系统临时目录 + *
+ * windows 包含路径分割符,但Linux 不包含, + * 在windows \\==\ 前提下, + * 为安全起见 同意拼装 路径分割符, + *
+     *       java.io.tmpdir
+     *       windows : C:\Users/xxx\AppData\Local\Temp\
+     *       linux: /temp
+     * 
+ */ + public static final String SYS_TEM_DIR = System.getProperty("java.io.tmpdir") + File.separator; + /** + * 定义GB的计算常量 + */ + private static final int GB = 1024 * 1024 * 1024; + /** + * 定义MB的计算常量 + */ + private static final int MB = 1024 * 1024; + /** + * 定义KB的计算常量 + */ + private static final int KB = 1024; + + /** + * 格式化小数 + */ + private static final DecimalFormat DF = new DecimalFormat("0.00"); + + public static final String IMAGE = "图片"; + public static final String TXT = "文档"; + public static final String MUSIC = "音乐"; + public static final String VIDEO = "视频"; + public static final String OTHER = "其他"; + + + /** + * MultipartFile转File + */ + public static File toFile(MultipartFile multipartFile) { + // 获取文件名 + String fileName = multipartFile.getOriginalFilename(); + // 获取文件后缀 + String prefix = "." + getExtensionName(fileName); + File file = null; + try { + // 用uuid作为文件名,防止生成的临时文件重复 + file = new File(SYS_TEM_DIR + IdUtil.simpleUUID() + prefix); + // MultipartFile to File + multipartFile.transferTo(file); + } catch (IOException e) { + log.error(e.getMessage(), e); + } + return file; + } + + /** + * 获取文件扩展名,不带 . + */ + public static String getExtensionName(String filename) { + if ((filename != null) && (filename.length() > 0)) { + int dot = filename.lastIndexOf('.'); + if ((dot > -1) && (dot < (filename.length() - 1))) { + return filename.substring(dot + 1); + } + } + return filename; + } + + /** + * Java文件操作 获取不带扩展名的文件名 + */ + public static String getFileNameNoEx(String filename) { + if ((filename != null) && (filename.length() > 0)) { + int dot = filename.lastIndexOf('.'); + if ((dot > -1) && (dot < (filename.length()))) { + return filename.substring(0, dot); + } + } + return filename; + } + + /** + * 文件大小转换 + */ + public static String getSize(long size) { + String resultSize; + if (size / GB >= 1) { + //如果当前Byte的值大于等于1GB + resultSize = DF.format(size / (float) GB) + "GB "; + } else if (size / MB >= 1) { + //如果当前Byte的值大于等于1MB + resultSize = DF.format(size / (float) MB) + "MB "; + } else if (size / KB >= 1) { + //如果当前Byte的值大于等于1KB + resultSize = DF.format(size / (float) KB) + "KB "; + } else { + resultSize = size + "B "; + } + return resultSize; + } + + /** + * inputStream 转 File + */ + static File inputStreamToFile(InputStream ins, String name){ + File file = new File(SYS_TEM_DIR + name); + if (file.exists()) { + return file; + } + OutputStream os = null; + try { + os = new FileOutputStream(file); + int bytesRead; + int len = 8192; + byte[] buffer = new byte[len]; + while ((bytesRead = ins.read(buffer, 0, len)) != -1) { + os.write(buffer, 0, bytesRead); + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + CloseUtil.close(os); + CloseUtil.close(ins); + } + return file; + } + + /** + * 将文件名解析成文件的上传路径 + */ + public static File upload(MultipartFile file, String filePath) { + Date date = new Date(); + SimpleDateFormat format = new SimpleDateFormat("yyyyMMddhhmmssS"); + String name = getFileNameNoEx(file.getOriginalFilename()); + String suffix = getExtensionName(file.getOriginalFilename()); + String nowStr = "-" + format.format(date); + try { + String fileName = name + nowStr + "." + suffix; + String path = filePath + fileName; + // getCanonicalFile 可解析正确各种路径 + File dest = new File(path).getCanonicalFile(); + // 检测是否存在目录 + if (!dest.getParentFile().exists()) { + if (!dest.getParentFile().mkdirs()) { + System.out.println("was not successful."); + } + } + // 文件写入 + file.transferTo(dest); + return dest; + } catch (Exception e) { + log.error(e.getMessage(), e); + } + return null; + } + + /** + * 导出excel + */ + public static void downloadExcel(List> list, HttpServletResponse response) throws IOException { + String tempPath = SYS_TEM_DIR + IdUtil.fastSimpleUUID() + ".xlsx"; + File file = new File(tempPath); + BigExcelWriter writer = ExcelUtil.getBigWriter(file); + // 一次性写出内容,使用默认样式,强制输出标题 + writer.write(list, true); + SXSSFSheet sheet = (SXSSFSheet)writer.getSheet(); + //上面需要强转SXSSFSheet 不然没有trackAllColumnsForAutoSizing方法 + sheet.trackAllColumnsForAutoSizing(); + //列宽自适应 + writer.autoSizeColumnAll(); + //response为HttpServletResponse对象 + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"); + //test.xls是弹出下载对话框的文件名,不能为中文,中文请自行编码 + response.setHeader("Content-Disposition", "attachment;filename=file.xlsx"); + ServletOutputStream out = response.getOutputStream(); + // 终止后删除临时文件 + file.deleteOnExit(); + writer.flush(out, true); + //此处记得关闭输出Servlet流 + IoUtil.close(out); + } + + public static String getFileType(String type) { + String documents = "txt doc pdf ppt pps xlsx xls docx"; + String music = "mp3 wav wma mpa ram ra aac aif m4a"; + String video = "avi mpg mpe mpeg asf wmv mov qt rm mp4 flv m4v webm ogv ogg"; + String image = "bmp dib pcp dif wmf gif jpg tif eps psd cdr iff tga pcd mpt png jpeg"; + if (image.contains(type)) { + return IMAGE; + } else if (documents.contains(type)) { + return TXT; + } else if (music.contains(type)) { + return MUSIC; + } else if (video.contains(type)) { + return VIDEO; + } else { + return OTHER; + } + } + + public static void checkSize(long maxSize, long size) { + // 1M + int len = 1024 * 1024; + if (size > (maxSize * len)) { + throw new BadRequestException("文件超出规定大小:" + maxSize + "MB"); + } + } + + /** + * 判断两个文件是否相同 + */ + public static boolean check(File file1, File file2) { + String img1Md5 = getMd5(file1); + String img2Md5 = getMd5(file2); + if(img1Md5 != null){ + return img1Md5.equals(img2Md5); + } + return false; + } + + /** + * 判断两个文件是否相同 + */ + public static boolean check(String file1Md5, String file2Md5) { + return file1Md5.equals(file2Md5); + } + + private static byte[] getByte(File file) { + // 得到文件长度 + byte[] b = new byte[(int) file.length()]; + InputStream in = null; + try { + in = new FileInputStream(file); + try { + System.out.println(in.read(b)); + } catch (IOException e) { + log.error(e.getMessage(), e); + } + } catch (Exception e) { + log.error(e.getMessage(), e); + return null; + } finally { + CloseUtil.close(in); + } + return b; + } + + private static String getMd5(byte[] bytes) { + // 16进制字符 + char[] hexDigits = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + try { + MessageDigest mdTemp = MessageDigest.getInstance("MD5"); + mdTemp.update(bytes); + byte[] md = mdTemp.digest(); + int j = md.length; + char[] str = new char[j * 2]; + int k = 0; + // 移位 输出字符串 + for (byte byte0 : md) { + str[k++] = hexDigits[byte0 >>> 4 & 0xf]; + str[k++] = hexDigits[byte0 & 0xf]; + } + return new String(str); + } catch (Exception e) { + log.error(e.getMessage(), e); + } + return null; + } + + /** + * 下载文件 + * + * @param request / + * @param response / + * @param file / + */ + public static void downloadFile(HttpServletRequest request, HttpServletResponse response, File file, boolean deleteOnExit) { + response.setCharacterEncoding(request.getCharacterEncoding()); + response.setContentType("application/octet-stream"); + FileInputStream fis = null; + try { + fis = new FileInputStream(file); + response.setHeader("Content-Disposition", "attachment; filename=" + file.getName()); + IOUtils.copy(fis, response.getOutputStream()); + response.flushBuffer(); + } catch (Exception e) { + log.error(e.getMessage(), e); + } finally { + if (fis != null) { + try { + fis.close(); + if (deleteOnExit) { + file.deleteOnExit(); + } + } catch (IOException e) { + log.error(e.getMessage(), e); + } + } + } + } + + public static String getMd5(File file) { + return getMd5(getByte(file)); + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonServerMain.java b/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonServerMain.java new file mode 100644 index 0000000..91ebb2f --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonServerMain.java @@ -0,0 +1,233 @@ +package vboot.core.module.mon.server.main; + + +import oshi.SystemInfo; +import oshi.hardware.CentralProcessor; +import oshi.hardware.CentralProcessor.TickType; +import oshi.hardware.GlobalMemory; +import oshi.hardware.HardwareAbstractionLayer; +import oshi.software.os.FileSystem; +import oshi.software.os.OSFileStore; +import oshi.software.os.OperatingSystem; +import oshi.util.Util; +import vboot.core.module.mon.server.pojo.*; +import vboot.core.xutil.ruoyi.Arith; +import vboot.core.xutil.ruoyi.IpUtils; + +import java.util.LinkedList; +import java.util.List; +import java.util.Properties; + +//服务器相关信息 +public class MonServerMain +{ + private static final int OSHI_WAIT_SECOND = 1000; + + /** + * CPU相关信息 + */ + private Cpu cpu = new Cpu(); + + /** + * 內存相关信息 + */ + private Mem mem = new Mem(); + + /** + * JVM相关信息 + */ + private Jvm jvm = new Jvm(); + + /** + * 服务器相关信息 + */ + private Sys sys = new Sys(); + + /** + * 磁盘相关信息 + */ + private List sysFiles = new LinkedList(); + + public Cpu getCpu() + { + return cpu; + } + + public void setCpu(Cpu cpu) + { + this.cpu = cpu; + } + + public Mem getMem() + { + return mem; + } + + public void setMem(Mem mem) + { + this.mem = mem; + } + + public Jvm getJvm() + { + return jvm; + } + + public void setJvm(Jvm jvm) + { + this.jvm = jvm; + } + + public Sys getSys() + { + return sys; + } + + public void setSys(Sys sys) + { + this.sys = sys; + } + + public List getSysFiles() + { + return sysFiles; + } + + public void setSysFiles(List sysFiles) + { + this.sysFiles = sysFiles; + } + + public void copyTo() throws Exception + { + SystemInfo si = new SystemInfo(); + HardwareAbstractionLayer hal = si.getHardware(); + + setCpuInfo(hal.getProcessor()); + + setMemInfo(hal.getMemory()); + + setSysInfo(); + + setJvmInfo(); + + setSysFiles(si.getOperatingSystem()); + } + + /** + * 设置CPU信息 + */ + private void setCpuInfo(CentralProcessor processor) + { + // CPU信息 + long[] prevTicks = processor.getSystemCpuLoadTicks(); + Util.sleep(OSHI_WAIT_SECOND); + long[] ticks = processor.getSystemCpuLoadTicks(); + long nice = ticks[TickType.NICE.getIndex()] - prevTicks[CentralProcessor.TickType.NICE.getIndex()]; + long irq = ticks[TickType.IRQ.getIndex()] - prevTicks[TickType.IRQ.getIndex()]; + long softirq = ticks[TickType.SOFTIRQ.getIndex()] - prevTicks[TickType.SOFTIRQ.getIndex()]; + long steal = ticks[TickType.STEAL.getIndex()] - prevTicks[TickType.STEAL.getIndex()]; + long cSys = ticks[TickType.SYSTEM.getIndex()] - prevTicks[TickType.SYSTEM.getIndex()]; + long user = ticks[TickType.USER.getIndex()] - prevTicks[TickType.USER.getIndex()]; + long iowait = ticks[TickType.IOWAIT.getIndex()] - prevTicks[TickType.IOWAIT.getIndex()]; + long idle = ticks[TickType.IDLE.getIndex()] - prevTicks[TickType.IDLE.getIndex()]; + long totalCpu = user + nice + cSys + idle + iowait + irq + softirq + steal; + cpu.setCpuNum(processor.getLogicalProcessorCount()); + cpu.setTotal(totalCpu); + cpu.setSys(cSys); + cpu.setUsed(user); + cpu.setWait(iowait); + cpu.setFree(idle); + } + + /** + * 设置内存信息 + */ + private void setMemInfo(GlobalMemory memory) + { + mem.setTotal(memory.getTotal()); + mem.setUsed(memory.getTotal() - memory.getAvailable()); + mem.setFree(memory.getAvailable()); + } + + /** + * 设置服务器信息 + */ + private void setSysInfo() + { + Properties props = System.getProperties(); + sys.setComputerName(IpUtils.getHostName()); + sys.setComputerIp(IpUtils.getHostIp()); + sys.setOsName(props.getProperty("os.name")); + sys.setOsArch(props.getProperty("os.arch")); + sys.setUserDir(props.getProperty("user.dir")); + } + + /** + * 设置Java虚拟机 + */ + private void setJvmInfo() + { + Properties props = System.getProperties(); + jvm.setTotal(Runtime.getRuntime().totalMemory()); + jvm.setMax(Runtime.getRuntime().maxMemory()); + jvm.setFree(Runtime.getRuntime().freeMemory()); + jvm.setVersion(props.getProperty("java.version")); + jvm.setHome(props.getProperty("java.home")); + } + + /** + * 设置磁盘信息 + */ + private void setSysFiles(OperatingSystem os) + { + FileSystem fileSystem = os.getFileSystem(); + List fsArray = fileSystem.getFileStores(); + for (OSFileStore fs : fsArray) + { + long free = fs.getUsableSpace(); + long total = fs.getTotalSpace(); + long used = total - free; + SysFile sysFile = new SysFile(); + sysFile.setDirName(fs.getMount()); + sysFile.setSysTypeName(fs.getType()); + sysFile.setTypeName(fs.getName()); + sysFile.setTotal(convertFileSize(total)); + sysFile.setFree(convertFileSize(free)); + sysFile.setUsed(convertFileSize(used)); + sysFile.setUsage(Arith.mul(Arith.div(used, total, 4), 100)); + sysFiles.add(sysFile); + } + } + + /** + * 字节转换 + * + * @param size 字节大小 + * @return 转换后值 + */ + public String convertFileSize(long size) + { + long kb = 1024; + long mb = kb * 1024; + long gb = mb * 1024; + if (size >= gb) + { + return String.format("%.1f GB", (float) size / gb); + } + else if (size >= mb) + { + float f = (float) size / mb; + return String.format(f > 100 ? "%.0f MB" : "%.1f MB", f); + } + else if (size >= kb) + { + float f = (float) size / kb; + return String.format(f > 100 ? "%.0f KB" : "%.1f KB", f); + } + else + { + return String.format("%d B", size); + } + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonServerMainApi.java b/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonServerMainApi.java new file mode 100644 index 0000000..e91ce15 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonServerMainApi.java @@ -0,0 +1,28 @@ +package vboot.core.module.mon.server.main; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import oshi.software.os.windows.WindowsOperatingSystem; +import vboot.core.common.api.R; + + +@RestController +@RequestMapping("mon/server/main") +public class MonServerMainApi { + + @Autowired + private MonitorServiceImpl monitorService; + + @GetMapping + public R get() throws Exception { + MonServerMain server = new MonServerMain(); + server.copyTo(); +// return R.ok(monitorService.getServers()); + return R.ok(server); + } + + + +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonitorServiceImpl.java b/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonitorServiceImpl.java new file mode 100644 index 0000000..66a9b32 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/main/MonitorServiceImpl.java @@ -0,0 +1,185 @@ +/* + * Copyright 2019-2020 Zheng Jie + * + * Licensed 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. + */ +package vboot.core.module.mon.server.main; + +import cn.hutool.core.date.BetweenFormatter.Level; +import cn.hutool.core.date.DateUtil; +import org.springframework.stereotype.Service; +import oshi.SystemInfo; +import oshi.hardware.CentralProcessor; +import oshi.hardware.GlobalMemory; +import oshi.hardware.HardwareAbstractionLayer; +import oshi.hardware.VirtualMemory; +import oshi.software.os.FileSystem; +import oshi.software.os.OSFileStore; +import oshi.software.os.OperatingSystem; +import oshi.util.FormatUtil; +import oshi.util.Util; + +import java.lang.management.ManagementFactory; +import java.text.DecimalFormat; +import java.util.Date; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +@Service +public class MonitorServiceImpl { + + private final DecimalFormat df = new DecimalFormat("0.00"); + + public Map getServers(){ + Map resultMap = new LinkedHashMap<>(8); + try { + SystemInfo si = new SystemInfo(); + OperatingSystem os = si.getOperatingSystem(); + HardwareAbstractionLayer hal = si.getHardware(); + // 系统信息 + resultMap.put("sys", getSystemInfo(os)); + // cpu 信息 + resultMap.put("cpu", getCpuInfo(hal.getProcessor())); + // 内存信息 + resultMap.put("memory", getMemoryInfo(hal.getMemory())); + // 交换区信息 + resultMap.put("swap", getSwapInfo(hal.getMemory())); + // 磁盘 + resultMap.put("disk", getDiskInfo(os)); + resultMap.put("time", DateUtil.format(new Date(), "HH:mm:ss")); + } catch (Exception e) { + e.printStackTrace(); + } + return resultMap; + } + + /** + * 获取磁盘信息 + * @return / + */ + private Map getDiskInfo(OperatingSystem os) { + Map diskInfo = new LinkedHashMap<>(); + FileSystem fileSystem = os.getFileSystem(); + List fsArray = fileSystem.getFileStores(); + String osName = System.getProperty("os.name"); + long available = 0, total = 0; + for (OSFileStore fs : fsArray){ + // windows 需要将所有磁盘分区累加,linux 和 mac 直接累加会出现磁盘重复的问题,待修复 + if(osName.toLowerCase().startsWith(ElAdminConstant.WIN)) { + available += fs.getUsableSpace(); + total += fs.getTotalSpace(); + } else { + available = fs.getUsableSpace(); + total = fs.getTotalSpace(); + break; + } + } + long used = total - available; + diskInfo.put("total", total > 0 ? FileUtil.getSize(total) : "?"); + diskInfo.put("available", FileUtil.getSize(available)); + diskInfo.put("used", FileUtil.getSize(used)); + if(total != 0){ + diskInfo.put("usageRate", df.format(used/(double)total * 100)); + } else { + diskInfo.put("usageRate", 0); + } + return diskInfo; + } + + /** + * 获取交换区信息 + * @param memory / + * @return / + */ + private Map getSwapInfo(GlobalMemory memory) { + Map swapInfo = new LinkedHashMap<>(); + VirtualMemory virtualMemory = memory.getVirtualMemory(); + long total = virtualMemory.getSwapTotal(); + long used = virtualMemory.getSwapUsed(); + swapInfo.put("total", FormatUtil.formatBytes(total)); + swapInfo.put("used", FormatUtil.formatBytes(used)); + swapInfo.put("available", FormatUtil.formatBytes(total - used)); + if(used == 0){ + swapInfo.put("usageRate", 0); + } else { + swapInfo.put("usageRate", df.format(used/(double)total * 100)); + } + return swapInfo; + } + + /** + * 获取内存信息 + * @param memory / + * @return / + */ + private Map getMemoryInfo(GlobalMemory memory) { + Map memoryInfo = new LinkedHashMap<>(); + memoryInfo.put("total", FormatUtil.formatBytes(memory.getTotal())); + memoryInfo.put("available", FormatUtil.formatBytes(memory.getAvailable())); + memoryInfo.put("used", FormatUtil.formatBytes(memory.getTotal() - memory.getAvailable())); + memoryInfo.put("usageRate", df.format((memory.getTotal() - memory.getAvailable())/(double)memory.getTotal() * 100)); + return memoryInfo; + } + + /** + * 获取Cpu相关信息 + * @param processor / + * @return / + */ + private Map getCpuInfo(CentralProcessor processor) { + Map cpuInfo = new LinkedHashMap<>(); + cpuInfo.put("name", processor.getProcessorIdentifier().getName()); + cpuInfo.put("package", processor.getPhysicalPackageCount() + "个物理CPU"); + cpuInfo.put("core", processor.getPhysicalProcessorCount() + "个物理核心"); + cpuInfo.put("coreNumber", processor.getPhysicalProcessorCount()); + cpuInfo.put("logic", processor.getLogicalProcessorCount() + "个逻辑CPU"); + // CPU信息 + long[] prevTicks = processor.getSystemCpuLoadTicks(); + // 等待1秒... + Util.sleep(1000); + long[] ticks = processor.getSystemCpuLoadTicks(); + long user = ticks[CentralProcessor.TickType.USER.getIndex()] - prevTicks[CentralProcessor.TickType.USER.getIndex()]; + long nice = ticks[CentralProcessor.TickType.NICE.getIndex()] - prevTicks[CentralProcessor.TickType.NICE.getIndex()]; + long sys = ticks[CentralProcessor.TickType.SYSTEM.getIndex()] - prevTicks[CentralProcessor.TickType.SYSTEM.getIndex()]; + long idle = ticks[CentralProcessor.TickType.IDLE.getIndex()] - prevTicks[CentralProcessor.TickType.IDLE.getIndex()]; + long iowait = ticks[CentralProcessor.TickType.IOWAIT.getIndex()] - prevTicks[CentralProcessor.TickType.IOWAIT.getIndex()]; + long irq = ticks[CentralProcessor.TickType.IRQ.getIndex()] - prevTicks[CentralProcessor.TickType.IRQ.getIndex()]; + long softirq = ticks[CentralProcessor.TickType.SOFTIRQ.getIndex()] - prevTicks[CentralProcessor.TickType.SOFTIRQ.getIndex()]; + long steal = ticks[CentralProcessor.TickType.STEAL.getIndex()] - prevTicks[CentralProcessor.TickType.STEAL.getIndex()]; + long totalCpu = user + nice + sys + idle + iowait + irq + softirq + steal; + cpuInfo.put("used", df.format(100d * user / totalCpu + 100d * sys / totalCpu)); + cpuInfo.put("idle", df.format(100d * idle / totalCpu)); + return cpuInfo; + } + + /** + * 获取系统相关信息,系统、运行天数、系统IP + * @param os / + * @return / + */ + private Map getSystemInfo(OperatingSystem os){ + Map systemInfo = new LinkedHashMap<>(); + // jvm 运行时间 + long time = ManagementFactory.getRuntimeMXBean().getStartTime(); + Date date = new Date(time); + // 计算项目运行时间 + String formatBetween = DateUtil.formatBetween(date, new Date(), Level.HOUR); + // 系统信息 + systemInfo.put("os", os.toString()); + systemInfo.put("day", formatBetween); +// systemInfo.put("ip", StringUtils.getLocalIp()); + systemInfo.put("ip", "10.0.0.111"); + return systemInfo; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Cpu.java b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Cpu.java new file mode 100644 index 0000000..e23c2d1 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Cpu.java @@ -0,0 +1,102 @@ +package vboot.core.module.mon.server.pojo; + + +import vboot.core.xutil.ruoyi.Arith; + +/** + * CPU相关信息 + * + * @author ruoyi + */ +public class Cpu +{ + /** + * 核心数 + */ + private int cpuNum; + + /** + * CPU总的使用率 + */ + private double total; + + /** + * CPU系统使用率 + */ + private double sys; + + /** + * CPU用户使用率 + */ + private double used; + + /** + * CPU当前等待率 + */ + private double wait; + + /** + * CPU当前空闲率 + */ + private double free; + + public int getCpuNum() + { + return cpuNum; + } + + public void setCpuNum(int cpuNum) + { + this.cpuNum = cpuNum; + } + + public double getTotal() + { + return Arith.round(Arith.mul(total, 100), 2); + } + + public void setTotal(double total) + { + this.total = total; + } + + public double getSys() + { + return Arith.round(Arith.mul(sys / total, 100), 2); + } + + public void setSys(double sys) + { + this.sys = sys; + } + + public double getUsed() + { + return Arith.round(Arith.mul(used / total, 100), 2); + } + + public void setUsed(double used) + { + this.used = used; + } + + public double getWait() + { + return Arith.round(Arith.mul(wait / total, 100), 2); + } + + public void setWait(double wait) + { + this.wait = wait; + } + + public double getFree() + { + return Arith.round(Arith.mul(free / total, 100), 2); + } + + public void setFree(double free) + { + this.free = free; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Jvm.java b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Jvm.java new file mode 100644 index 0000000..455f99e --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Jvm.java @@ -0,0 +1,132 @@ +package vboot.core.module.mon.server.pojo; + + +import vboot.core.xutil.ruoyi.Arith; +import vboot.core.xutil.ruoyi.DateUtils; + +import java.lang.management.ManagementFactory; + +/** + * JVM相关信息 + * + * @author ruoyi + */ +public class Jvm +{ + /** + * 当前JVM占用的内存总数(M) + */ + private double total; + + /** + * JVM最大可用内存总数(M) + */ + private double max; + + /** + * JVM空闲内存(M) + */ + private double free; + + /** + * JDK版本 + */ + private String version; + + /** + * JDK路径 + */ + private String home; + + public double getTotal() + { + return Arith.div(total, (1024 * 1024), 2); + } + + public void setTotal(double total) + { + this.total = total; + } + + public double getMax() + { + return Arith.div(max, (1024 * 1024), 2); + } + + public void setMax(double max) + { + this.max = max; + } + + public double getFree() + { + return Arith.div(free, (1024 * 1024), 2); + } + + public void setFree(double free) + { + this.free = free; + } + + public double getUsed() + { + return Arith.div(total - free, (1024 * 1024), 2); + } + + public double getUsage() + { + return Arith.mul(Arith.div(total - free, total, 4), 100); + } + + /** + * 获取JDK名称 + */ + public String getName() + { + return ManagementFactory.getRuntimeMXBean().getVmName(); + } + + public String getVersion() + { + return version; + } + + public void setVersion(String version) + { + this.version = version; + } + + public String getHome() + { + return home; + } + + public void setHome(String home) + { + this.home = home; + } + + /** + * JDK启动时间 + */ + public String getStartTime() + { + return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.getServerStartDate()); + } + + /** + * JDK运行时间 + */ + public String getRunTime() + { + return DateUtils.getDatePoor(DateUtils.getNowDate(), DateUtils.getServerStartDate()); + } + + /** + * 运行参数 + */ + public String getInputArgs() + { + return ManagementFactory.getRuntimeMXBean().getInputArguments().toString(); + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Mem.java b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Mem.java new file mode 100644 index 0000000..1cdc81b --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Mem.java @@ -0,0 +1,62 @@ +package vboot.core.module.mon.server.pojo; + + +import vboot.core.xutil.ruoyi.Arith; + +/** + * 內存相关信息 + * + * @author ruoyi + */ +public class Mem +{ + /** + * 内存总量 + */ + private double total; + + /** + * 已用内存 + */ + private double used; + + /** + * 剩余内存 + */ + private double free; + + public double getTotal() + { + return Arith.div(total, (1024 * 1024 * 1024), 2); + } + + public void setTotal(long total) + { + this.total = total; + } + + public double getUsed() + { + return Arith.div(used, (1024 * 1024 * 1024), 2); + } + + public void setUsed(long used) + { + this.used = used; + } + + public double getFree() + { + return Arith.div(free, (1024 * 1024 * 1024), 2); + } + + public void setFree(long free) + { + this.free = free; + } + + public double getUsage() + { + return Arith.mul(Arith.div(used, total, 4), 100); + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Sys.java b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Sys.java new file mode 100644 index 0000000..ba06f1e --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/Sys.java @@ -0,0 +1,84 @@ +package vboot.core.module.mon.server.pojo; + +/** + * 系统相关信息 + * + * @author ruoyi + */ +public class Sys +{ + /** + * 服务器名称 + */ + private String computerName; + + /** + * 服务器Ip + */ + private String computerIp; + + /** + * 项目路径 + */ + private String userDir; + + /** + * 操作系统 + */ + private String osName; + + /** + * 系统架构 + */ + private String osArch; + + public String getComputerName() + { + return computerName; + } + + public void setComputerName(String computerName) + { + this.computerName = computerName; + } + + public String getComputerIp() + { + return computerIp; + } + + public void setComputerIp(String computerIp) + { + this.computerIp = computerIp; + } + + public String getUserDir() + { + return userDir; + } + + public void setUserDir(String userDir) + { + this.userDir = userDir; + } + + public String getOsName() + { + return osName; + } + + public void setOsName(String osName) + { + this.osName = osName; + } + + public String getOsArch() + { + return osArch; + } + + public void setOsArch(String osArch) + { + this.osArch = osArch; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/SysFile.java b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/SysFile.java new file mode 100644 index 0000000..cdfe716 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/pojo/SysFile.java @@ -0,0 +1,114 @@ +package vboot.core.module.mon.server.pojo; + +/** + * 系统文件相关信息 + * + * @author ruoyi + */ +public class SysFile +{ + /** + * 盘符路径 + */ + private String dirName; + + /** + * 盘符类型 + */ + private String sysTypeName; + + /** + * 文件类型 + */ + private String typeName; + + /** + * 总大小 + */ + private String total; + + /** + * 剩余大小 + */ + private String free; + + /** + * 已经使用量 + */ + private String used; + + /** + * 资源的使用率 + */ + private double usage; + + public String getDirName() + { + return dirName; + } + + public void setDirName(String dirName) + { + this.dirName = dirName; + } + + public String getSysTypeName() + { + return sysTypeName; + } + + public void setSysTypeName(String sysTypeName) + { + this.sysTypeName = sysTypeName; + } + + public String getTypeName() + { + return typeName; + } + + public void setTypeName(String typeName) + { + this.typeName = typeName; + } + + public String getTotal() + { + return total; + } + + public void setTotal(String total) + { + this.total = total; + } + + public String getFree() + { + return free; + } + + public void setFree(String free) + { + this.free = free; + } + + public String getUsed() + { + return used; + } + + public void setUsed(String used) + { + this.used = used; + } + + public double getUsage() + { + return usage; + } + + public void setUsage(double usage) + { + this.usage = usage; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/MemoryData.java b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/MemoryData.java new file mode 100644 index 0000000..267f4bd --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/MemoryData.java @@ -0,0 +1,11 @@ +package vboot.core.module.mon.server.snmp; + +import lombok.Data; + +@Data +public class MemoryData { + private String address; + private String totalSize; + private String userdSize; + private String unit; +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpConfig.java b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpConfig.java new file mode 100644 index 0000000..c606778 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpConfig.java @@ -0,0 +1,129 @@ +package vboot.core.module.mon.server.snmp; + +import java.math.BigDecimal; + +/** + * snmp协议工具类配置文件 + */ +public class SnmpConfig +{ + private SnmpConfig(){} + + /** + * get cpu描述信息 + */ + public static final String SNMPGET_CPUDESC=".1.3.6.1.2.1.1.1.0.255.1"; + + /** + * walk 网络接口描述 + */ + public static final String SNMPWALK_IFDESCR=".1.3.6.1.2.1.2.2.1.2"; + + /** + * walk 接口物理地址 + */ + public static final String SNMPWALK_IFPHYSADDRESS=".1.3.6.1.2.1.2.2.1.6"; + + /** + * get IO负载 + */ + public static final String SNMPGET_IOLOAD=".1.3.6.1.2.1.1.1.0.255.0"; + + /** + * 硬盘大小 + */ + public static final String SNMPGET_DSKTOTAL=".1.3.6.1.4.1.2021.9.1.6"; + + /** + * walk cpu 负载 + */ + public static final String SNMPWALK_HRPROCESSLOAD=".1.3.6.1.2.1.25.3.3.1.2"; + + /** + * walk cpu 空闲率 + */ + public static final String SNMPWALK_SSCPUIDLE=".1.3.6.1.4.1.2021.11.11.0"; + + /** + * walk 存储设备描述 + */ + public static final String SNMPWALK_HRSTORAGEDESCR=".1.3.6.1.2.1.25.2.3.1.3"; + /** + * walk 存储设备描述 + */ + public static final String SNMPWALK_AHU=".1.3.6.1.2.1.25.2.3.1.4"; + /** + * walk 存储设备描述 + */ + public static final String SNMPWALK_AUR=".1.3.6.1.2.1.25.2.3.1.5"; + + /** + *walk 存储设备使用大小 + * 内存使用多少,跟总容量相除就是占用率 + */ + public static final String SNMPWALK_HRSTORAGEUSED=".1.3.6.1.2.1.25.2.3.1.6"; + /** + *walk 内存占用 + * 各个进程占用的内存 + */ + public static final String SNMPWALK_MEMORY_WIN=".1.3.6.1.2.1.25.5.1.1.2"; + + /** + *walk 存储设备使用率 + * + */ + public static final String SNMPWALK_DSKPERCENT=".1.3.6.1.4.1.2021.9.1.9"; + + /** + * get 获取内存大小 + */ + public static final String SNMPGET_HRMEMORYSIZE=".1.3.6.1.2.1.25.2.2.0"; + + /** + * 获取机器名 + */ + public static final String SNMPWALK_SYSNAME=".1.3.6.1.2.1.1.5"; + + /** + * 性能参数ID-cpu使用率 + */ + public static final Integer PERFORMANCE_PARAM_CPUUSAGE=1; + + /** + * 性能参数ID-内存使用率 + */ + public static final Integer PERFORMANCE_PARAM_MEMORYUSAGE=2; + + /** + * 性能参数ID-io带宽占用率 + */ + public static final Integer PERFORMANCE_PARAM_IOUSAGE=3; + + /** + * decimal 类型1024,用于除法计算 + */ + public static final BigDecimal DEVIDE_NUM=new BigDecimal("1024"); + + /** + * get方式获取内存大小 + */ + public static final String GET_MEMORY="1.3.6.1.2.1.25.2.2.0"; + + /** + * 获取系统描述 + */ + public static final String SYS_DSC="1.3.6.1.2.1.1.1.0"; + + /** + * 获取网络接口数量 + */ + public static final String IF_NUM="1.3.6.1.2.1.2.1.0"; + + /** + * 获取cpu核数 + */ + public static final String CPU_NUM="1.3.6.1.2.1.25.3.3.1.2"; + +} + + diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpDisk.java b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpDisk.java new file mode 100644 index 0000000..51f528b --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpDisk.java @@ -0,0 +1,283 @@ +package vboot.core.module.mon.server.snmp; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import lombok.extern.slf4j.Slf4j; +import org.snmp4j.*; +import org.snmp4j.mp.MessageProcessingModel; +import org.snmp4j.mp.SnmpConstants; +import org.snmp4j.smi.GenericAddress; +import org.snmp4j.smi.OID; +import org.snmp4j.smi.OctetString; +import org.snmp4j.smi.VariableBinding; +import org.snmp4j.transport.DefaultUdpTransportMapping; +import org.snmp4j.util.PDUFactory; +import org.snmp4j.util.TableEvent; +import org.snmp4j.util.TableUtils; +import vboot.core.xutil.ruoyi.StringUtils; + +import java.io.IOException; +import java.math.BigDecimal; +import java.text.DecimalFormat; +import java.util.List; + +@Slf4j +public class SnmpDisk { + + public static void main(String[] args) { + try { + String ip = "localhost"; + String community = "public"; + String system = "windows"; + JSONArray array = new JSONArray(); + JSONObject obj = new JSONObject(); + obj.put("name", "D:"); + array.add(obj); + MemoryData memoryData = collectDisk(ip, community, array, system); + System.out.println(memoryData); + } catch (Exception e) { + e.printStackTrace(); + } + } + + //获取磁盘相关信息 + public static MemoryData collectDisk(String ip, String community, JSONArray array, String system) throws Exception { + //system: windows, linux + String name; //磁盘名称 + BigDecimal totalSize = new BigDecimal("0"); + BigDecimal usedSize = new BigDecimal("0"); + BigDecimal unit1024 = new BigDecimal("1024"); + String binaryVal; + TransportMapping transport = null; + Snmp snmp = null; + CommunityTarget target; + String DISK_OID = "1.3.6.1.2.1.25.2.1.4"; + String[] oids = { + "1.3.6.1.2.1.25.2.3.1.2", // type 存储单元类型 + "1.3.6.1.2.1.25.2.3.1.3", // descr + "1.3.6.1.2.1.25.2.3.1.4", // unit 存储单元大小 + "1.3.6.1.2.1.25.2.3.1.5", // size 总存储单元数 + "1.3.6.1.2.1.25.2.3.1.6" // used 使用存储单元数; + }; + try { + target = new CommunityTarget(); + target.setCommunity(new OctetString(community)); //设置snmp共同体(社区名称) + target.setRetries(2); //设置超时重试次数 + target.setAddress(GenericAddress.parse("udp:"+ ip +"/161")); //设定主机的地址 + target.setTimeout(1000*5); //设置超时的时间 + target.setVersion(SnmpConstants.version2c); //设置使用的snmp版本 + + transport = new DefaultUdpTransportMapping(); //设定采取的协议 + snmp = new Snmp(transport); //创建SNMP对象 + snmp.listen();// 监听消息 + + TableUtils tableUtils = new TableUtils(snmp, new PDUFactory() { + @Override + public PDU createPDU(Target arg0) { + PDU request = new PDU(); + request.setType(PDU.GET); + return request; + } + + @Override + public PDU createPDU(MessageProcessingModel messageProcessingModel) { + // TODO Auto-generated method stub + return null; + } + }); + + OID[] columns = new OID[oids.length]; + for (int i = 0; i < oids.length; i++) { + columns[i] = new OID(oids[i]); + } + + @SuppressWarnings("unchecked") + List list = tableUtils.getTable(target, columns, null, null); + if (list.size() == 1 && list.get(0).getColumns() == null) { + log.info(ip + ":未取到数据"); + System.out.println(JSONArray.toJSON(list).toString()); + } else { + for (TableEvent event : list) { + VariableBinding[] values = event.getColumns(); + if (values == null || !DISK_OID.equals(values[0].getVariable().toString())) { + continue; + } + // unit 存储单元大小 + String unit = StringUtils.changeValBinary(values[2].getVariable().toString()); + // size 总存储单元数 + String totalSizeCell = StringUtils.changeValBinary(values[3].getVariable().toString()); + // used 使用存储单元数 + String usedSizeCell = StringUtils.changeValBinary(values[4].getVariable().toString()); + + //磁盘名称 + name = getChinese(values[1].getVariable().toString()); + if(name==null || "".equals(name)) { + name = values[1].getVariable().toString(); + } + //System.out.println(name); + boolean check = checkDiskName(array, name, system); //是否统计 + if(check) { + BigDecimal unitBig = new BigDecimal(unit +""); + totalSize = totalSize.add( + new BigDecimal(totalSizeCell +"").multiply(unitBig) + .divide(unit1024, 2, BigDecimal.ROUND_HALF_UP) + .divide(unit1024, 2, BigDecimal.ROUND_HALF_UP) + .divide(unit1024, 2, BigDecimal.ROUND_HALF_UP)); + usedSize = usedSize.add( + new BigDecimal(usedSizeCell +"").multiply(unitBig) + .divide(unit1024, 2, BigDecimal.ROUND_HALF_UP) + .divide(unit1024, 2, BigDecimal.ROUND_HALF_UP) + .divide(unit1024, 2, BigDecimal.ROUND_HALF_UP)); + } + + + //System.out.println("totalSize:" + (long)totalSizeCell*unit/(1024*1024*1024)+"G"); + //System.out.println("usedSize" + (long)usedSizeCell*unit/(1024*1024*1024)+"G"); + //System.out.println("%%:" + (long)usedSizeCell*100/totalSizeCell+"%"); + // System.out.println(getChinese(values[1].getVariable().toString())+" + // 磁盘大小:"+(long)totalSize*unit/(1024*1024*1024)+"G + // 磁盘使用率为:"+(long)usedSize*100/totalSize+"%"); + } + } + } catch (Exception e) { + e.printStackTrace(); + log.error(e.getMessage()); + log.error("未能连接到snmp服务:" + ip); + } finally { + try { + if (transport != null) + transport.close(); + if (snmp != null) + snmp.close(); + } catch (IOException e) { + e.printStackTrace(); + log.error(e.getMessage()); + } + } + + DecimalFormat setDouble_1 = new DecimalFormat("0.0"); //保留1位小数 + MemoryData memoryData = new MemoryData(); + memoryData.setTotalSize(setDouble_1.format(totalSize)); + memoryData.setUserdSize(setDouble_1.format(usedSize)); + memoryData.setAddress(ip); + memoryData.setUnit("G"); + + //System.out.println("totalSize:" + setDouble_1.format(totalSize) + "G"); + //System.out.println("usedSize:" + setDouble_1.format(usedSize) + "G"); + //System.out.println("usedSize" + (long)usedSize*100/totalSize+"%"); + + return memoryData; + } + + /** + * 判断是否需要统计 + * @param array + * @param name + * @param system + * @return + */ + public static boolean checkDiskName(JSONArray array, String name, String system) { + boolean check = false; //是否统计 + //不维护则取全部 + if(array.size() == 0) { + return true; + } + JSONObject obj = new JSONObject(); + String setName; + for(int i=0; i= 0; index--) { + format_str[index] = (char) (48 + (temp - temp / 10 * 10)); + temp /= 10; + } + format_str[4] = '-'; + index = 6; + temp = month; + for (; index >= 5; index--) { + format_str[index] = (char) (48 + (temp - temp / 10 * 10)); + temp /= 10; + } + format_str[7] = '-'; + index = 9; + temp = day; + for (; index >= 8; index--) { + format_str[index] = (char) (48 + (temp - temp / 10 * 10)); + temp /= 10; + } + format_str[10] = ' '; + index = 12; + temp = hour; + for (; index >= 11; index--) { + format_str[index] = (char) (48 + (temp - temp / 10 * 10)); + temp /= 10; + } + format_str[13] = ':'; + index = 15; + temp = minute; + for (; index >= 14; index--) { + format_str[index] = (char) (48 + (temp - temp / 10 * 10)); + temp /= 10; + } + dateTime = new String(format_str, 0, format_str.length).substring(0, 16); + } catch (Exception e) { + // LogFactory.getLog(getClass()).error(e); + } + return dateTime; + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpUtil.java b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpUtil.java new file mode 100644 index 0000000..fd95429 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/module/mon/server/snmp/SnmpUtil.java @@ -0,0 +1,510 @@ +package vboot.core.module.mon.server.snmp; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.snmp4j.CommunityTarget; +import org.snmp4j.PDU; +import org.snmp4j.Snmp; +import org.snmp4j.event.ResponseEvent; +import org.snmp4j.mp.SnmpConstants; +import org.snmp4j.smi.OID; +import org.snmp4j.smi.OctetString; +import org.snmp4j.smi.UdpAddress; +import org.snmp4j.smi.VariableBinding; +import org.snmp4j.transport.DefaultUdpTransportMapping; +import org.snmp4j.util.DefaultPDUFactory; +import org.snmp4j.util.TableEvent; +import org.snmp4j.util.TableUtils; + +import java.io.IOException; +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.text.DecimalFormat; +import java.util.List; + +/** + * snmp协议工具类 + * 获取服务器cpu,内存,及硬盘占用 + */ +public class SnmpUtil +{ + private static Logger logger = LogManager.getLogger(SnmpUtil.class); + private static Snmp snmp = null; + private CommunityTarget target; + + @SuppressWarnings("squid:S3010") + public SnmpUtil(String intranetDeviceIp, Integer snmpPort) throws IOException + { + if (snmp == null) + { + snmp = new Snmp(new DefaultUdpTransportMapping()); + snmp.listen(); + } + //初始化CommunityTarget + target = new CommunityTarget(); + target.setCommunity(new OctetString("public")); + target.setVersion(SnmpConstants.version2c); + target.setAddress(new UdpAddress(intranetDeviceIp + "/" + snmpPort)); + target.setTimeout(1000); + target.setRetries(1); + } + + private ResponseEvent snmpGet(String oid) + { + PDU pdu = new PDU(); + pdu.addOID(new VariableBinding(new OID(oid))); + ResponseEvent re=null; + try + { + re = snmp.get(pdu, target); + }catch (Exception e){ + logger.info("snmpGet 异常"+e.getMessage()); + } + return re; + } + + private List snmpWalk(String oid) + { + TableUtils utils = new TableUtils(snmp, new DefaultPDUFactory(PDU.GETBULK)); + OID[] columnOid = new OID[]{new OID(oid)}; + return utils.getTable(target, columnOid, null, null); + } + + /** + * 获取cpu负载 + * @return + */ + public BigDecimal getCpuUsage() + { + List list = snmpWalk(SnmpConfig.SNMPWALK_HRPROCESSLOAD); + BigDecimal usage = new BigDecimal("0"); + for (TableEvent tableEvent : list) + { + try + { + String s=tableEvent.toString().split("=")[3].split("]")[0].trim(); + if (!"-4,exception".equals(s)){ + usage=usage.add(new BigDecimal(tableEvent.toString().split("=")[3].split("]")[0].trim())); + }else { + return new BigDecimal("-1"); + } + } + catch (Exception e) + { + logger.info("获取cpu负载失败"+e.getMessage()); + return new BigDecimal("-1"); + } + } + usage = usage.divide(new BigDecimal(list.size()),2,BigDecimal.ROUND_HALF_UP); + return usage; + } + + /** + * 获取cpu使用率 + * @return + */ + public BigDecimal getCpu() + { + BigDecimal totalSize; + ResponseEvent responseEvent = snmpGet(SnmpConfig.SNMPWALK_SSCPUIDLE); + if(responseEvent!=null&&responseEvent.getResponse()!=null){ + totalSize=new BigDecimal(responseEvent.getResponse().toString().split("=")[4].split("]")[0].trim()); + }else { + return new BigDecimal("-1"); + } + return new BigDecimal("100").subtract(totalSize); + } + + /** + * 获取磁盘占用率 + * @return + */ + public BigDecimal getDiskUsageForWindows() + { + BigDecimal multiply=new BigDecimal("-1"); + try + { + BigDecimal diskSize = getDiskSize(); + BigDecimal diskUsed = getDiskUsed(); + if (BigDecimal.ZERO.compareTo(diskSize)<0&&BigDecimal.ZERO.compareTo(diskUsed)<0){ + multiply = getDiskUsed().divide(getDiskSize(), 3, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)); + } + }catch (Exception e){ + logger.info("获取windows磁盘占用异常"+e.getMessage()); + } + + return multiply; + } + /** + * 获取磁盘占用率 + * @return + */ + public BigDecimal getDiskUsage() + { + BigDecimal totalSize=null; + //org.snmp4j.util.TableEvent[index=null,vbs=null,status=-1,exception=null,report=null] + List tableEvents = snmpWalk(SnmpConfig.SNMPWALK_DSKPERCENT); + if(tableEvents.isEmpty()){ + totalSize = getDiskUsageForWindows(); + return totalSize; + } + for(int i=0;i list=snmpWalk(SnmpConfig.SNMPWALK_HRSTORAGEDESCR); + int index=0; + for(int i=0;i usedList=snmpWalk(SnmpConfig.SNMPWALK_HRSTORAGEUSED); + return new BigDecimal(usedList.get(index).toString().split("=")[3].split("]")[0].trim()); + }else if (trim.contains("Physical Memory")){ + //windows系统 + List list1=snmpWalk(SnmpConfig.SNMPWALK_MEMORY_WIN); + BigDecimal re=new BigDecimal("0"); + for (int j=0;j list=snmpWalk(SnmpConfig.SNMPWALK_HRSTORAGEDESCR); + BigDecimal diskSize=new BigDecimal(-1); + if (!list.isEmpty()){ + diskSize=new BigDecimal("0"); + List usedList1=snmpWalk(SnmpConfig.SNMPWALK_AHU); + List usedList2=snmpWalk(SnmpConfig.SNMPWALK_AUR); + for(int i=0;i list=snmpWalk(SnmpConfig.SNMPWALK_HRSTORAGEDESCR); + BigDecimal diskSize=new BigDecimal(-1); + if (!list.isEmpty()){ + diskSize=new BigDecimal("0"); + List usedList1=snmpWalk(SnmpConfig.SNMPWALK_AHU); + List usedList2=snmpWalk(SnmpConfig.SNMPWALK_HRSTORAGEUSED); + for(int i=0;i1){ + return usage; + }else{ + return usage*100; + } + } + return null; + } + + /** + * 获取性某性能参数数据 + * @param parameterId + * @return + */ + public Object getData(Integer parameterId) { + Object data=null; + try{ + if(parameterId.equals(SnmpConfig.PERFORMANCE_PARAM_CPUUSAGE)){ + data=getCpuUsage(); + }else if(parameterId.equals(SnmpConfig.PERFORMANCE_PARAM_MEMORYUSAGE)){ + data=getMemoryUsage(); + }else if(parameterId.equals(SnmpConfig.PERFORMANCE_PARAM_IOUSAGE)){ + data=getIOUsage(); + } + }catch(Exception e){ + logger.info("获取性能参数异常"+e.getMessage()); + } + return data; + } + + /** + * 获取设备物理地址 + * @return + */ + public String getMacAddress(){ + try + { + List list = snmpWalk(SnmpConfig.SNMPWALK_IFDESCR); + int index = 0; + for (int i = 0; i < list.size(); i++) + { + if (list.get(i).toString().split("=")[3].split("]")[0].trim().contains("eth")) + { + index = i; + } + } + List ifAddressList = snmpWalk(SnmpConfig.SNMPWALK_IFPHYSADDRESS); + return ifAddressList.get(index).toString().split("=")[3].split("]")[0].trim(); + }catch (Exception e){ + logger.info("获取物理地址失败"+e.getMessage()); + return "failure"; + } + } + + /** + * 获取设备内存大小 单位为GB + * @return + */ + public String getMemoryDesc() { + ResponseEvent event =snmpGet(SnmpConfig.SNMPGET_HRMEMORYSIZE); + Long bytes =Long.parseLong(event==null?"0":event.getResponse().toString().split("=")[4].split("]")[0].trim()); + float gb =bytes/1024.0f/1024.0f; + DecimalFormat decimalFormat =new DecimalFormat(".00"); + return decimalFormat.format(gb)+"GB"; + } + + /** + * @throws IOException + * 获取cpu描述信息 + * @return + */ + public String getCpuDesc() throws IOException { + ResponseEvent event=snmpGet(SnmpConfig.SNMPGET_CPUDESC); + return event==null? "":event.getResponse().toString().split("=")[4].split("]")[0].trim().split(":")[1].trim(); + } + + /** + * 获取存储设备大小 (空盘空间不足百分百) + * @param deviceCode + * @return + */ + public BigDecimal getDiskSize(String deviceCode){ + + List list = snmpWalk(SnmpConfig.SNMPGET_DSKTOTAL); + BigDecimal diskSize=new BigDecimal(-1); + if (list!=null){ + try + { + for (TableEvent tableEvent:list){ + diskSize=new BigDecimal(tableEvent.toString().split("=")[3].split("]")[0].trim()).divide(SnmpConfig.DEVIDE_NUM).divide(SnmpConfig.DEVIDE_NUM,2,RoundingMode.HALF_UP); + } + }catch (Exception e){ + logger.info("获取磁盘大小失败"+e.getMessage()); + } + } + if (BigDecimal.ZERO.compareTo(diskSize)>0){ + diskSize = getDiskSize(); + } + return diskSize; + } + + + + /** + * 获取磁盘描述 + * @param deviceCode + * @return + * @throws IOException + */ + public BigDecimal getDiskDesc(String deviceCode) { + return getDiskSize(deviceCode).divide(SnmpConfig.DEVIDE_NUM,2,RoundingMode.HALF_UP).divide(SnmpConfig.DEVIDE_NUM,2,RoundingMode.HALF_UP); + } + + /** + * snmp协议检测 + */ + public boolean snmpCheck() { + ResponseEvent re=snmpGet(".1.3.6.1.4.1.2021.255.1"); + return re == null || re.getResponse() != null; + } + + /** + * 获取机器名 + * @return + */ + public String getSysName(){ + String name=null; + try{ + List list = snmpWalk(SnmpConfig.SNMPWALK_SYSNAME); + if (list!=null){ + for (TableEvent tableEvent:list){ + name=(tableEvent.toString().split("=")[3].split("]")[0].trim()); + } + } + }catch (Exception e){ + logger.info("获取机器名失败"+e.getMessage()); + } + return name; + } + + /** + * 获取内存总大小(实际值) + * @return + */ + public BigDecimal getMemoryTotalSize(){ + try + { + ResponseEvent event = snmpGet(SnmpConfig.GET_MEMORY); + if (event!=null&&event.getResponse()!=null){ + String trim = event.getResponse().toString().split("=")[4].split("]")[0].trim(); + return new BigDecimal(trim).divide(SnmpConfig.DEVIDE_NUM,2, RoundingMode.HALF_UP).divide(SnmpConfig.DEVIDE_NUM,2, RoundingMode.HALF_UP); + }else { + throw new RuntimeException("获取内存信息失败"); + } + } + catch (Exception e) + { + logger.info("获取内存总大小失败"+e.getMessage()); + } + return new BigDecimal("-1"); + } + + /** + * 获取系统描述 + * @return + */ + public String getSysDsc(){ + try + { + ResponseEvent event = snmpGet(SnmpConfig.SYS_DSC); + if (event!=null&&event.getResponse()!=null){ + return event.getResponse().toString().split("=")[4].split("]")[0].trim(); + }else { + throw new RuntimeException("获取系统描述信息失败"); + } + } + catch (Exception e) + { + logger.info("获取系统描述信息失败"+e.getMessage()); + } + return "failure"; + } + /** + * 获取接口数 + * @return + */ + public Integer getIfNumber(){ + try + { + ResponseEvent event = snmpGet(SnmpConfig.IF_NUM); + if (event!=null&&event.getResponse()!=null){ + String trim = event.getResponse().toString().split("=")[4].split("]")[0].trim(); + return Integer.parseInt(trim); + }else { + throw new RuntimeException("获取接口信息失败"); + } + } + catch (Exception e) + { + logger.info("获取接口数量失败"+e.getMessage()); + } + return -1; + } + + /** + * 获取cpu核数(n个cpu有n条数据) + * @return + */ + public Integer getCpuNum(){ + List list = snmpWalk(SnmpConfig.CPU_NUM); + Integer num=-1; + if (list!=null){ + num=list.size(); + } + return num; + } + + + public static void main(String[] args) throws IOException + { + String snmpIp = "localhost"; + Integer snmpPort = 161; + SnmpUtil snmpUtil = new SnmpUtil(snmpIp, snmpPort); + + + System.out.println("机器名称"+snmpUtil.getSysName()); + System.out.println("磁盘大小 "+ snmpUtil.getDiskSize("devide")); + System.out.println("物理地址"+snmpUtil.getMacAddress()); + System.out.println("cpu "+snmpUtil.getCpuUsage()); + System.out.println("内存 "+snmpUtil.getMemoryUsage()); + System.out.println("磁盘 "+snmpUtil.getDiskUsage()); + System.out.println("系统基本描述信息"+snmpUtil.getSysDsc()); + System.out.println("网络接口数量 "+snmpUtil.getIfNumber()); + System.out.println("cpu核数 "+snmpUtil.getCpuNum()); + + //System.out.println("windows磁盘:" + snmpUtil.getDiskUsageForWindows()); + } +} diff --git a/vboot-core/src/main/java/vboot/core/module/sys/api/main/SysApiMainApi.java b/vboot-core/src/main/java/vboot/core/module/sys/api/main/SysApiMainApi.java index 2e6c918..9f70841 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/api/main/SysApiMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/api/main/SysApiMainApi.java @@ -1,7 +1,7 @@ package vboot.core.module.sys.api.main; import vboot.core.common.dao.JdbcDao; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Zinp; import vboot.core.xutil.lang.XstrUtil; @@ -16,67 +16,67 @@ import java.util.List; public class SysApiMainApi { @GetMapping("tree") - public RestResult getTree(String id) { + public R getTree(String id) { Sqler sqler = new Sqler("t.id,t.id as name,t.pid","sys_api_main"); sqler.addLike("t.id", id); sqler.addWhere("t.avtag=1"); List list = service.findTree(sqler); - return RestResult.ok(list); + return R.ok(list); } @GetMapping - public RestResult get(String id) { + public R get(String id) { Sqler sqler = new Sqler("t.id,t.url,t.type", "sys_api_main"); sqler.addLike("t.id", id); sqler.addOrder("t.crtim"); sqler.addSelect("t.notes,t.crtim"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } @GetMapping("list") - public RestResult list(String name) { + public R list(String name) { String sql="select * from sys_api_main where avtag=1"; - return RestResult.ok( jdbcDao.findMapList(sql)); + return R.ok( jdbcDao.findMapList(sql)); } @GetMapping("type") - public RestResult type(String type) { + public R type(String type) { if(XstrUtil.isNotBlank(type)){ List stores=jdbcDao.findInpList("select id,pid from sys_api_main where pid like ?",type+"%"); - return RestResult.ok(stores); + return R.ok(stores); }else{ List stores=jdbcDao.findInpList("select id,pid from sys_api_main"); - return RestResult.ok(stores); + return R.ok(stores); } } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysApiMain main=repo.findById(id).get(); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysApiMain main) { + public R post(@RequestBody SysApiMain main) { main.setAvtag(true); // main.setType(""); repo.save(main); - return RestResult.ok(); + return R.ok(); } @PutMapping - public RestResult put(@RequestBody SysApiMain main) { + public R put(@RequestBody SysApiMain main) { main.setUptim(new Date()); repo.save(main); - return RestResult.ok(); + return R.ok(); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { + public R delete(@PathVariable String[] ids) { for (String id : ids) { repo.deleteById(id); } - return RestResult.ok(); + return R.ok(); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/api/role/SysApiRoleApi.java b/vboot-core/src/main/java/vboot/core/module/sys/api/role/SysApiRoleApi.java index 09d9502..ae50381 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/api/role/SysApiRoleApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/api/role/SysApiRoleApi.java @@ -2,7 +2,7 @@ package vboot.core.module.sys.api.role; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -12,57 +12,57 @@ public class SysApiRoleApi { private String table = "sys_api_role"; @GetMapping - public RestResult get(String id, String name) { + public R get(String id, String name) { Sqler sqler = new Sqler("t.id,t.crtim,t.name", table); sqler.addLeftJoin("o.name as crman", "sys_org o", "o.id=t.crman"); sqler.addLike("t.name", name); sqler.addLike("t.id", id); sqler.addOrder("t.crtim desc"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } @GetMapping("perms") - public RestResult getPerms(String id, String type) { + public R getPerms(String id, String type) { String allSql = "SELECT r.id as \"id\",r.pid as \"pid\",r.name as \"name\",case when rr.id is null then null else 'true' end as \"checked\" FROM sys_api_main r LEFT JOIN sys_api_role_api rr ON rr.pid=r.id AND rr.id=? where r.cotag = 0 "; if ("all".equals(type)) { - return RestResult.ok(jdbcDao.findMapList(allSql, id)); + return R.ok(jdbcDao.findMapList(allSql, id)); } else { allSql += " and r.pid like ?"; - return RestResult.ok(jdbcDao.findMapList(allSql, id, type + "%")); + return R.ok(jdbcDao.findMapList(allSql, id, type + "%")); } } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysApiRole main = service.findOne(id); // main.setPerms(null); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysApiRole main) { + public R post(@RequestBody SysApiRole main) { service.insert(main); jdbcDao.update("update sys_org_user set retag = 0"); - return RestResult.ok(); + return R.ok(); } @PutMapping - public RestResult put(@RequestBody SysApiRole main) { + public R put(@RequestBody SysApiRole main) { service.update(main); jdbcDao.update("update sys_org_user set retag = 0"); - return RestResult.ok(); + return R.ok(); } @PostMapping("flush") - public RestResult flush() { + public R flush() { jdbcDao.update("update sys_org_user set retag = 0"); - return RestResult.ok(); + return R.ok(); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogApi.java b/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogApi.java deleted file mode 100644 index 9e76ad8..0000000 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogApi.java +++ /dev/null @@ -1,42 +0,0 @@ -package vboot.core.module.sys.job.log; - -import vboot.core.common.api.RestResult; -import vboot.core.common.dao.Sqler; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -@RestController -@RequestMapping("sys/job/log") -public class SysJobLogApi { - - private String table = "sys_job_log"; - - @GetMapping - public RestResult get(String name) { - Sqler sqler = new Sqler("t.id,t.name,t.sttim,t.entim,t.ret", table); -// XreqUtil.setPageParam(sqler); - sqler.addLike("t.name", name); - sqler.addOrder("t.entim desc"); - System.out.println(sqler.getSql()); - return RestResult.ok(service.findPageData(sqler)); - } - - @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { - return RestResult.ok(service.findOne(id)); - } - - @DeleteMapping("all") - public RestResult deleteAll() { - service.deleteAll(); - return RestResult.ok(); - } - - @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); - } - - @Autowired - private SysJobLogService service; -} diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogRepo.java b/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogRepo.java deleted file mode 100644 index 2e5c4b5..0000000 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/log/SysJobLogRepo.java +++ /dev/null @@ -1,8 +0,0 @@ -package vboot.core.module.sys.job.log; - -import org.springframework.data.jpa.repository.JpaRepository; - -public interface SysJobLogRepo extends JpaRepository { - -} - diff --git a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainRepo.java b/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainRepo.java deleted file mode 100644 index db5a29c..0000000 --- a/vboot-core/src/main/java/vboot/core/module/sys/job/main/SysJobMainRepo.java +++ /dev/null @@ -1,8 +0,0 @@ -package vboot.core.module.sys.job.main; - -import org.springframework.data.jpa.repository.JpaRepository; - -public interface SysJobMainRepo extends JpaRepository { - -} - diff --git a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginApi.java b/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginApi.java deleted file mode 100644 index d9c8791..0000000 --- a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginApi.java +++ /dev/null @@ -1,45 +0,0 @@ -package vboot.core.module.sys.log.login; - -import vboot.core.common.dao.JdbcDao; -import vboot.core.common.dao.Sqler; -import vboot.core.common.api.RestResult; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -@RestController -@RequestMapping("sys/log/login") -public class SysLogLoginApi { - - @GetMapping - public RestResult get(String name) { - Sqler sqlHelper = new Sqler("t.*", "sys_log_login"); - sqlHelper.addLike("t.name", name); - sqlHelper.addOrder("t.crtim desc"); - return RestResult.ok(jdbcDao.findPageData(sqlHelper)); - } - - @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { - return RestResult.ok(repo.findById(id).get()); - } - - @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - for (String id : ids) { - repo.deleteById(id); - } - return RestResult.ok(); - } - - @DeleteMapping("all") - public RestResult deleteAll() { - repo.deleteAll(); - return RestResult.ok(); - } - - @Autowired - private JdbcDao jdbcDao; - - @Autowired - private SysLogLoginRepo repo; -} diff --git a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginRepo.java b/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginRepo.java deleted file mode 100644 index 7f59050..0000000 --- a/vboot-core/src/main/java/vboot/core/module/sys/log/login/SysLogLoginRepo.java +++ /dev/null @@ -1,7 +0,0 @@ -package vboot.core.module.sys.log.login; - -import org.springframework.data.jpa.repository.JpaRepository; - -public interface SysLogLoginRepo extends JpaRepository { - -} diff --git a/vboot-core/src/main/java/vboot/core/module/sys/org/dept/SysOrgDeptApi.java b/vboot-core/src/main/java/vboot/core/module/sys/org/dept/SysOrgDeptApi.java index 488407a..9f08026 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/org/dept/SysOrgDeptApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/org/dept/SysOrgDeptApi.java @@ -1,6 +1,6 @@ package vboot.core.module.sys.org.dept; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; @@ -16,58 +16,58 @@ public class SysOrgDeptApi { private String table = "sys_org_dept"; @GetMapping - public RestResult get(String name, String pid,String notes) { + public R get(String name, String pid, String notes) { Sqler sqler = new Sqler(table); if (XstrUtil.isNotBlank(name)) { - sqler.addLike("t.name", name); + sqler.addLike("t.name" , name); } else { - if("".equals(pid)){ + if ("".equals(pid)) { sqler.addWhere("t.pid is null"); - } - else if (XstrUtil.isNotBlank(pid)) { - sqler.addEqual("t.pid", pid); + } else if (XstrUtil.isNotBlank(pid)) { + sqler.addEqual("t.pid" , pid); } } - sqler.addLike("t.notes",notes); + sqler.addLike("t.notes" , notes); sqler.addWhere("t.avtag=1"); sqler.addOrder("t.ornum"); sqler.addSelect("t.ornum,t.notes,t.pid,t.crtim,t.uptim"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } //排除了自己 // @GetMapping("listn") -// public RestResult listn(String name, String id) { +// public R listn(String name, String id) { // Sqler sqler = new Sqler(table); // sqler.addLike("t.name", name); // sqler.addWhere("t.avtag=1"); // sqler.addOrder("t.ornum"); // sqler.addSelect("t.pid"); -// return RestResult.ok(service.findWithoutItself(sqler, id)); +// return R.ok(service.findWithoutItself(sqler, id)); // } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id, HttpServletRequest request) { + public R getOne(@PathVariable String id, HttpServletRequest request) { SysOrgDept main = service.findById(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysOrgDept main) { -// Thread.sleep(3000); - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SysOrgDept main) { + service.insert(main); + return R.ok(main.getId()); } @PutMapping - public RestResult put(@RequestBody SysOrgDept main) throws Exception { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SysOrgDept main) throws Exception { + service.update(main); + return R.ok(main.getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/org/group/SysOrgGroupApi.java b/vboot-core/src/main/java/vboot/core/module/sys/org/group/SysOrgGroupApi.java index 404de0d..b122012 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/org/group/SysOrgGroupApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/org/group/SysOrgGroupApi.java @@ -1,6 +1,6 @@ package vboot.core.module.sys.org.group; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -10,32 +10,32 @@ import org.springframework.web.bind.annotation.*; public class SysOrgGroupApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sys_org_group"); sqler.addLike("t.name", name); sqler.addSelect("t.ornum,t.notes,t.crtim,t.uptim"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysOrgGroup main = service.findById(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysOrgGroup main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SysOrgGroup main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SysOrgGroup main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SysOrgGroup main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/org/post/SysOrgPostApi.java b/vboot-core/src/main/java/vboot/core/module/sys/org/post/SysOrgPostApi.java index b99fae6..396f0ad 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/org/post/SysOrgPostApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/org/post/SysOrgPostApi.java @@ -1,7 +1,7 @@ package vboot.core.module.sys.org.post; import vboot.core.common.dao.Sqler; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -12,34 +12,34 @@ public class SysOrgPostApi { private String table = "sys_org_post"; @GetMapping - public RestResult get(String deptid, String name) { + public R get(String deptid, String name) { Sqler sqler = new Sqler(table); sqler.addEqual("t.deptid", deptid); sqler.addLike("t.name", name); sqler.addDescOrder("t.crtim"); sqler.addSelect("t.crtim,t.uptim,t.deptid,t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysOrgPost main = service.findById(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysOrgPost main) throws InterruptedException { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SysOrgPost main) throws InterruptedException { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SysOrgPost main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SysOrgPost main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/org/user/SysOrgUserApi.java b/vboot-core/src/main/java/vboot/core/module/sys/org/user/SysOrgUserApi.java index 160f46f..2f6cc86 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/org/user/SysOrgUserApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/org/user/SysOrgUserApi.java @@ -1,6 +1,6 @@ package vboot.core.module.sys.org.user; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; import org.springframework.beans.factory.annotation.Autowired; @@ -15,7 +15,7 @@ public class SysOrgUserApi { private String table = "sys_org_user"; @GetMapping - public RestResult get(String deptid, String name, String usnam, String ninam, String monum) { + public R get(String deptid, String name, String usnam, String ninam, String monum) { Sqler sqler = new Sqler(table); if (XstrUtil.isNotBlank(name)|| XstrUtil.isNotBlank(usnam)|| XstrUtil.isNotBlank(ninam)|| XstrUtil.isNotBlank(monum)) { sqler.addLike("t.name", name); @@ -26,28 +26,28 @@ public class SysOrgUserApi { sqler.addEqual("t.deptid", deptid); } sqler.addSelect("t.crtim,t.uptim,t.deptid,t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id, HttpServletRequest request) { + public R getOne(@PathVariable String id, HttpServletRequest request) { SysOrgUser main = service.findById(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysOrgUser main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SysOrgUser main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SysOrgUser main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SysOrgUser main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } diff --git a/vboot-core/src/main/java/vboot/core/module/sys/portal/main/SysPortalMainApi.java b/vboot-core/src/main/java/vboot/core/module/sys/portal/main/SysPortalMainApi.java index 74dae31..712441b 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/portal/main/SysPortalMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/portal/main/SysPortalMainApi.java @@ -2,7 +2,7 @@ package vboot.core.module.sys.portal.main; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; @RestController @@ -10,38 +10,38 @@ import vboot.core.common.dao.Sqler; public class SysPortalMainApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sys_portal_main"); - sqler.addLike("t.name", name); + sqler.addLike("t.name" , name); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("list") - public RestResult getList() { - return RestResult.ok(service.findAll()); + public R getList() { + return R.ok(service.findAll()); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysPortalMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysPortalMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SysPortalMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SysPortalMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SysPortalMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/portal/menu/SysPortalMenuApi.java b/vboot-core/src/main/java/vboot/core/module/sys/portal/menu/SysPortalMenuApi.java index 26252b0..9a61731 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/portal/menu/SysPortalMenuApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/portal/menu/SysPortalMenuApi.java @@ -2,7 +2,7 @@ package vboot.core.module.sys.portal.menu; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; @@ -14,7 +14,7 @@ import java.util.List; public class SysPortalMenuApi { @GetMapping("tree") - public RestResult getTree(String name, String porid) { + public R getTree(String name, String porid) { Sqler sqler = new Sqler("sys_portal_menu"); sqler.addLike("t.name", name); sqler.addOrder("t.ornum"); @@ -22,43 +22,43 @@ public class SysPortalMenuApi { sqler.addSelect("t.type,t.crtim,t.uptim,t.pid,t.shtag,t.path,t.comp"); sqler.addEqual("t.porid", porid); List list = service.findTree(sqler); - return RestResult.ok(list); + return R.ok(list); } //排除了自己 @GetMapping("listn") - public RestResult getListn( String id) { + public R getListn( String id) { List list = service.findWithoutItself(id); - return RestResult.ok(list); + return R.ok(list); } @GetMapping("one/{id}") - public RestResult id(@PathVariable String id, HttpServletRequest request) { + public R id(@PathVariable String id, HttpServletRequest request) { SysPortalMenu main = service.findById(id); if(main.getPid()!=null){ SysPortalMenu parent = service.findById(main.getPid()); main.setPname(parent.getName()); } - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysPortalMenu main) { + public R post(@RequestBody SysPortalMenu main) { System.out.println("插入"); - return RestResult.ok(service.insert(main)); + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SysPortalMenu main) { + public R put(@RequestBody SysPortalMenu main) { System.out.println("修改"); - return RestResult.ok(service.update(main)); + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { + public R delete(@PathVariable String[] ids) { System.out.println(ids); - return RestResult.ok(service.delete(ids)); + return R.ok(service.delete(ids)); } diff --git a/vboot-core/src/main/java/vboot/core/module/sys/portal/role/SysPortalRoleApi.java b/vboot-core/src/main/java/vboot/core/module/sys/portal/role/SysPortalRoleApi.java index a56a866..b3d20f9 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/portal/role/SysPortalRoleApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/portal/role/SysPortalRoleApi.java @@ -2,7 +2,7 @@ package vboot.core.module.sys.portal.role; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; @@ -12,57 +12,57 @@ public class SysPortalRoleApi { private String table = "sys_portal_role"; @GetMapping - public RestResult get(String id, String name) { + public R get(String id, String name) { Sqler sqler = new Sqler("t.id,t.crtim,t.name", table); sqler.addLeftJoin("o.name as crman", "sys_org o", "o.id=t.crman"); sqler.addLike("t.name", name); sqler.addLike("t.id", id); sqler.addOrder("t.crtim desc"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } // @GetMapping("perms") -// public RestResult getPerms(String id, String type) { +// public R getPerms(String id, String type) { // String allSql = "SELECT r.id as \"id\",r.pid as \"pid\",r.name as \"name\",case when rr.id is null then null else 'true' end as \"checked\" FROM sys_api_main r LEFT JOIN sys_api_role_api rr ON rr.pid=r.id AND rr.id=? where r.cotag = 0 "; // if ("all".equals(type)) { -// return RestResult.ok(jdbcDao.findMapList(allSql, id)); +// return R.ok(jdbcDao.findMapList(allSql, id)); // } else { // allSql += " and r.pid like ?"; -// return RestResult.ok(jdbcDao.findMapList(allSql, id, type + "%")); +// return R.ok(jdbcDao.findMapList(allSql, id, type + "%")); // } // } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysPortalRole main = service.findOne(id); // main.setPerms(null); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysPortalRole main) { + public R post(@RequestBody SysPortalRole main) { service.insert(main); jdbcDao.update("update sys_org_user set retag = 0"); - return RestResult.ok(); + return R.ok(); } @PutMapping - public RestResult put(@RequestBody SysPortalRole main) { + public R put(@RequestBody SysPortalRole main) { service.update(main); jdbcDao.update("update sys_org_user set retag = 0"); - return RestResult.ok(); + return R.ok(); } @PostMapping("flush") - public RestResult flush() { + public R flush() { jdbcDao.update("update sys_org_user set retag = 0"); - return RestResult.ok(); + return R.ok(); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/module/sys/todo/main/SysTodoMainApi.java b/vboot-core/src/main/java/vboot/core/module/sys/todo/main/SysTodoMainApi.java index 7c73166..b8bf48a 100644 --- a/vboot-core/src/main/java/vboot/core/module/sys/todo/main/SysTodoMainApi.java +++ b/vboot-core/src/main/java/vboot/core/module/sys/todo/main/SysTodoMainApi.java @@ -1,6 +1,6 @@ package vboot.core.module.sys.todo.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import org.dom4j.DocumentException; @@ -12,36 +12,36 @@ import org.springframework.web.bind.annotation.*; public class SysTodoMainApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("sys_todo_main"); sqler.addLike("t.name", name); sqler.addOrder("t.crtim desc"); sqler.addSelect("t.link"); sqler.addInnerJoin("","sys_todo_user t2", "t2.tid=t.id"); sqler.addInnerJoin("o.name as exman","sys_org o", "o.id=t2.uid"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { SysTodoMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody SysTodoMain main) throws DocumentException { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody SysTodoMain main) throws DocumentException { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody SysTodoMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody SysTodoMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-core/src/main/java/vboot/core/security/SecurityConfig.java b/vboot-core/src/main/java/vboot/core/security/SecurityConfig.java index a2a586f..febba54 100644 --- a/vboot-core/src/main/java/vboot/core/security/SecurityConfig.java +++ b/vboot-core/src/main/java/vboot/core/security/SecurityConfig.java @@ -97,7 +97,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { //配置security忽略的请求与资源 @Override public void configure(WebSecurity web) { - web.ignoring().antMatchers("/","/assets/**","/ass/**","/druid/**","/login", "/index.html","/vben.html","/vue.html","/favicon.ico","/resource/**","/_app.config.js"); + web.ignoring().antMatchers("/","/assets/**","/druid/**","/login", "/index.html","/vben.html","/vue.html","/favicon.ico","/resource/**","/_app.config.js"); // web.ignoring().antMatchers("/","/login","/getMenuList","/getUserInfo","/assets/**","/druid/**", "/index.html","/vben.html","/vue.html","/favicon.ico","/resource/**","/_app.config.js"); // web.ignoring().antMatchers("/assets/**","/**"); } diff --git a/vboot-core/src/main/java/vboot/core/security/authc/AuthcApi.java b/vboot-core/src/main/java/vboot/core/security/authc/AuthcApi.java index 9588252..406ba35 100644 --- a/vboot-core/src/main/java/vboot/core/security/authc/AuthcApi.java +++ b/vboot-core/src/main/java/vboot/core/security/authc/AuthcApi.java @@ -1,14 +1,14 @@ package vboot.core.security.authc; import cn.hutool.core.util.IdUtil; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.config.AppConfig; import vboot.core.config.dbx.ldap.LdapHandler; import vboot.core.config.dbx.redis.RedisHandler; import vboot.core.security.authz.JwtHandler; import vboot.core.security.pojo.*; -import vboot.core.module.sys.log.login.SysLogLoginService; +import vboot.core.module.mon.log.login.MonLogLoginService; import vboot.core.module.sys.org.user.SysOrgUserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessException; @@ -33,7 +33,7 @@ import java.util.Map; public class AuthcApi { @PostMapping("/login") - public RestResult login(@Valid @RequestBody LoginVo loginVo, HttpServletRequest request) throws IOException, ClassNotFoundException { + public R login(@Valid @RequestBody LoginVo loginVo, HttpServletRequest request) throws IOException, ClassNotFoundException { // System.out.println("开始登录"); //1.登录验证 UserDo userDo = null; @@ -54,7 +54,7 @@ public class AuthcApi { } } if (!passFlag) { - return RestResult.build(402, "账号不存在或密码错误"); + return R.build(402, "账号不存在或密码错误"); } //2.初始化用户信息,获取菜单与权限 @@ -73,13 +73,13 @@ public class AuthcApi { redisHandler.set(atokenUUID, zuser, appConfig.getJwt().getAtime());//默认8小时过期 //3.异步方式记录登录日志 - sysLogLoginService.save(zuser,request); - return RestResult.ok(backMap); + monLogLoginService.save(zuser,request); + return R.ok(backMap); } @GetMapping("/rtoken") - public RestResult rtoken(@PathParam("token2") String token2) { + public R rtoken(@PathParam("token2") String token2) { System.out.println("token2=" + token2); String username = jwtHandler.getClaims(token2).getId(); System.out.println("username=" + username); @@ -89,25 +89,25 @@ public class AuthcApi { redisHandler.set(uuid, zuser, 10000 / 1000); Map backMap = new HashMap<>(); backMap.put("token", token); - return RestResult.ok(backMap); + return R.ok(backMap); } @GetMapping("/logout") - public RestResult logout(Authentication auth) { - return RestResult.ok(); + public R logout(Authentication auth) { + return R.ok(); } @GetMapping("/getUserInfo") - public RestResult getUserInfo(Authentication auth, HttpServletRequest request) { + public R getUserInfo(Authentication auth, HttpServletRequest request) { Zuser zuser = (Zuser) auth.getPrincipal(); - sysLogLoginService.save(zuser,request); - return RestResult.ok(zuser); + monLogLoginService.save(zuser,request); + return R.ok(zuser); } @GetMapping("/getMenuList") - public RestResult getMenuList(String porid,Authentication auth, HttpServletRequest request) { + public R getMenuList(String porid, Authentication auth, HttpServletRequest request) { if(auth==null){ - return RestResult.ok(409); + return R.ok(409); } Map backMap = new HashMap<>(); Zuser zuser = (Zuser) auth.getPrincipal(); @@ -119,9 +119,9 @@ public class AuthcApi { }else{ authcService.initZuser2(zuser, backMap,porid); } - sysLogLoginService.save(zuser,request); + monLogLoginService.save(zuser,request); - return RestResult.ok(backMap); + return R.ok(backMap); } @@ -144,7 +144,7 @@ public class AuthcApi { private JdbcDao jdbcDao; @Autowired - private SysLogLoginService sysLogLoginService; + private MonLogLoginService monLogLoginService; @Autowired private SysOrgUserService userService; diff --git a/vboot-core/src/main/java/vboot/core/xutil/file/ExcelUtil.java b/vboot-core/src/main/java/vboot/core/xutil/file/ExcelUtil.java index ea4df34..f531990 100644 --- a/vboot-core/src/main/java/vboot/core/xutil/file/ExcelUtil.java +++ b/vboot-core/src/main/java/vboot/core/xutil/file/ExcelUtil.java @@ -8,7 +8,7 @@ import vboot.core.xutil.file.excel.DefaultExcelListener; import vboot.core.xutil.file.excel.ExcelBigNumberConvert; import vboot.core.xutil.file.excel.ExcelListener; import vboot.core.xutil.file.excel.ExcelResult; -import vboot.core.xutil.lang.StringUtils; +import vboot.core.xutil.ruoyi.StringUtils; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; diff --git a/vboot-core/src/main/java/vboot/core/xutil/file/excel/ExcelDictConvert.java b/vboot-core/src/main/java/vboot/core/xutil/file/excel/ExcelDictConvert.java index 520e962..18dc910 100644 --- a/vboot-core/src/main/java/vboot/core/xutil/file/excel/ExcelDictConvert.java +++ b/vboot-core/src/main/java/vboot/core/xutil/file/excel/ExcelDictConvert.java @@ -1,17 +1,9 @@ package vboot.core.xutil.file.excel; import cn.hutool.core.annotation.AnnotationUtil; -import cn.hutool.core.convert.Convert; -import cn.hutool.core.util.ObjectUtil; import com.alibaba.excel.converters.Converter; import com.alibaba.excel.enums.CellDataTypeEnum; -import com.alibaba.excel.metadata.GlobalConfiguration; -import com.alibaba.excel.metadata.data.ReadCellData; -import com.alibaba.excel.metadata.data.WriteCellData; -import com.alibaba.excel.metadata.property.ExcelContentProperty; import lombok.extern.slf4j.Slf4j; -import vboot.core.xutil.file.ExcelUtil; -import vboot.core.xutil.lang.StringUtils; import java.lang.reflect.Field; diff --git a/vboot-core/src/main/java/vboot/core/xutil/ruoyi/Arith.java b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/Arith.java new file mode 100644 index 0000000..f6141a0 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/Arith.java @@ -0,0 +1,114 @@ +package vboot.core.xutil.ruoyi; + +import java.math.BigDecimal; +import java.math.RoundingMode; + +/** + * 精确的浮点数运算 + * + * @author ruoyi + */ +public class Arith +{ + + /** 默认除法运算精度 */ + private static final int DEF_DIV_SCALE = 10; + + /** 这个类不能实例化 */ + private Arith() + { + } + + /** + * 提供精确的加法运算。 + * @param v1 被加数 + * @param v2 加数 + * @return 两个参数的和 + */ + public static double add(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.add(b2).doubleValue(); + } + + /** + * 提供精确的减法运算。 + * @param v1 被减数 + * @param v2 减数 + * @return 两个参数的差 + */ + public static double sub(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.subtract(b2).doubleValue(); + } + + /** + * 提供精确的乘法运算。 + * @param v1 被乘数 + * @param v2 乘数 + * @return 两个参数的积 + */ + public static double mul(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.multiply(b2).doubleValue(); + } + + /** + * 提供(相对)精确的除法运算,当发生除不尽的情况时,精确到 + * 小数点以后10位,以后的数字四舍五入。 + * @param v1 被除数 + * @param v2 除数 + * @return 两个参数的商 + */ + public static double div(double v1, double v2) + { + return div(v1, v2, DEF_DIV_SCALE); + } + + /** + * 提供(相对)精确的除法运算。当发生除不尽的情况时,由scale参数指 + * 定精度,以后的数字四舍五入。 + * @param v1 被除数 + * @param v2 除数 + * @param scale 表示表示需要精确到小数点以后几位。 + * @return 两个参数的商 + */ + public static double div(double v1, double v2, int scale) + { + if (scale < 0) + { + throw new IllegalArgumentException( + "The scale must be a positive integer or zero"); + } + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + if (b1.compareTo(BigDecimal.ZERO) == 0) + { + return BigDecimal.ZERO.doubleValue(); + } + return b1.divide(b2, scale, RoundingMode.HALF_UP).doubleValue(); + } + + /** + * 提供精确的小数位四舍五入处理。 + * @param v 需要四舍五入的数字 + * @param scale 小数点后保留几位 + * @return 四舍五入后的结果 + */ + public static double round(double v, int scale) + { + if (scale < 0) + { + throw new IllegalArgumentException( + "The scale must be a positive integer or zero"); + } + BigDecimal b = new BigDecimal(Double.toString(v)); + BigDecimal one = BigDecimal.ONE; + return b.divide(one, scale, RoundingMode.HALF_UP).doubleValue(); + } +} diff --git a/vboot-core/src/main/java/vboot/core/xutil/ruoyi/DateUtils.java b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/DateUtils.java new file mode 100644 index 0000000..8179867 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/DateUtils.java @@ -0,0 +1,184 @@ +package vboot.core.xutil.ruoyi; + +import org.apache.commons.lang3.time.DateFormatUtils; + +import java.lang.management.ManagementFactory; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.*; +import java.util.Date; + +/** + * 时间工具类 + * + * @author ruoyi + */ +public class DateUtils extends org.apache.commons.lang3.time.DateUtils +{ + public static String YYYY = "yyyy"; + + public static String YYYY_MM = "yyyy-MM"; + + public static String YYYY_MM_DD = "yyyy-MM-dd"; + + public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; + + public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; + + private static String[] parsePatterns = { + "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", + "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM", + "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"}; + + /** + * 获取当前Date型日期 + * + * @return Date() 当前日期 + */ + public static Date getNowDate() + { + return new Date(); + } + + /** + * 获取当前日期, 默认格式为yyyy-MM-dd + * + * @return String + */ + public static String getDate() + { + return dateTimeNow(YYYY_MM_DD); + } + + public static final String getTime() + { + return dateTimeNow(YYYY_MM_DD_HH_MM_SS); + } + + public static final String dateTimeNow() + { + return dateTimeNow(YYYYMMDDHHMMSS); + } + + public static final String dateTimeNow(final String format) + { + return parseDateToStr(format, new Date()); + } + + public static final String dateTime(final Date date) + { + return parseDateToStr(YYYY_MM_DD, date); + } + + public static final String parseDateToStr(final String format, final Date date) + { + return new SimpleDateFormat(format).format(date); + } + + public static final Date dateTime(final String format, final String ts) + { + try + { + return new SimpleDateFormat(format).parse(ts); + } + catch (ParseException e) + { + throw new RuntimeException(e); + } + } + + /** + * 日期路径 即年/月/日 如2018/08/08 + */ + public static final String datePath() + { + Date now = new Date(); + return DateFormatUtils.format(now, "yyyy/MM/dd"); + } + + /** + * 日期路径 即年/月/日 如20180808 + */ + public static final String dateTime() + { + Date now = new Date(); + return DateFormatUtils.format(now, "yyyyMMdd"); + } + + /** + * 日期型字符串转化为日期 格式 + */ + public static Date parseDate(Object str) + { + if (str == null) + { + return null; + } + try + { + return parseDate(str.toString(), parsePatterns); + } + catch (ParseException e) + { + return null; + } + } + + /** + * 获取服务器启动时间 + */ + public static Date getServerStartDate() + { + long time = ManagementFactory.getRuntimeMXBean().getStartTime(); + return new Date(time); + } + + /** + * 计算相差天数 + */ + public static int differentDaysByMillisecond(Date date1, Date date2) + { + return Math.abs((int) ((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24))); + } + + /** + * 计算两个时间差 + */ + public static String getDatePoor(Date endDate, Date nowDate) + { + long nd = 1000 * 24 * 60 * 60; + long nh = 1000 * 60 * 60; + long nm = 1000 * 60; + // long ns = 1000; + // 获得两个时间的毫秒时间差异 + long diff = endDate.getTime() - nowDate.getTime(); + // 计算差多少天 + long day = diff / nd; + // 计算差多少小时 + long hour = diff % nd / nh; + // 计算差多少分钟 + long min = diff % nd % nh / nm; + // 计算差多少秒//输出结果 + // long sec = diff % nd % nh % nm / ns; + return day + "天" + hour + "小时" + min + "分钟"; + } + + /** + * 增加 LocalDateTime ==> Date + */ + public static Date toDate(LocalDateTime temporalAccessor) + { + ZonedDateTime zdt = temporalAccessor.atZone(ZoneId.systemDefault()); + return Date.from(zdt.toInstant()); + } + + /** + * 增加 LocalDate ==> Date + */ + public static Date toDate(LocalDate temporalAccessor) + { + LocalDateTime localDateTime = LocalDateTime.of(temporalAccessor, LocalTime.of(0, 0, 0)); + ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault()); + return Date.from(zdt.toInstant()); + } +} diff --git a/vboot-core/src/main/java/vboot/core/xutil/ruoyi/IpUtils.java b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/IpUtils.java new file mode 100644 index 0000000..b832ab8 --- /dev/null +++ b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/IpUtils.java @@ -0,0 +1,264 @@ +package vboot.core.xutil.ruoyi; + + +import javax.servlet.http.HttpServletRequest; +import java.net.InetAddress; +import java.net.UnknownHostException; + +/** + * 获取IP方法 + * + * @author ruoyi + */ +public class IpUtils +{ + /** + * 获取客户端IP + * + * @param request 请求对象 + * @return IP地址 + */ + public static String getIpAddr(HttpServletRequest request) + { + if (request == null) + { + return "unknown"; + } + String ip = request.getHeader("x-forwarded-for"); + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("Proxy-Client-IP"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("X-Forwarded-For"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("WL-Proxy-Client-IP"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("X-Real-IP"); + } + + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getRemoteAddr(); + } + + return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip); + } + + /** + * 检查是否为内部IP地址 + * + * @param ip IP地址 + * @return 结果 + */ + public static boolean internalIp(String ip) + { + byte[] addr = textToNumericFormatV4(ip); + return internalIp(addr) || "127.0.0.1".equals(ip); + } + + /** + * 检查是否为内部IP地址 + * + * @param addr byte地址 + * @return 结果 + */ + private static boolean internalIp(byte[] addr) + { + if ( addr==null || addr.length < 2) + { + return true; + } + final byte b0 = addr[0]; + final byte b1 = addr[1]; + // 10.x.x.x/8 + final byte SECTION_1 = 0x0A; + // 172.16.x.x/12 + final byte SECTION_2 = (byte) 0xAC; + final byte SECTION_3 = (byte) 0x10; + final byte SECTION_4 = (byte) 0x1F; + // 192.168.x.x/16 + final byte SECTION_5 = (byte) 0xC0; + final byte SECTION_6 = (byte) 0xA8; + switch (b0) + { + case SECTION_1: + return true; + case SECTION_2: + if (b1 >= SECTION_3 && b1 <= SECTION_4) + { + return true; + } + case SECTION_5: + switch (b1) + { + case SECTION_6: + return true; + } + default: + return false; + } + } + + /** + * 将IPv4地址转换成字节 + * + * @param text IPv4地址 + * @return byte 字节 + */ + public static byte[] textToNumericFormatV4(String text) + { + if (text.length() == 0) + { + return null; + } + + byte[] bytes = new byte[4]; + String[] elements = text.split("\\.", -1); + try + { + long l; + int i; + switch (elements.length) + { + case 1: + l = Long.parseLong(elements[0]); + if ((l < 0L) || (l > 4294967295L)) + { + return null; + } + bytes[0] = (byte) (int) (l >> 24 & 0xFF); + bytes[1] = (byte) (int) ((l & 0xFFFFFF) >> 16 & 0xFF); + bytes[2] = (byte) (int) ((l & 0xFFFF) >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 2: + l = Integer.parseInt(elements[0]); + if ((l < 0L) || (l > 255L)) + { + return null; + } + bytes[0] = (byte) (int) (l & 0xFF); + l = Integer.parseInt(elements[1]); + if ((l < 0L) || (l > 16777215L)) + { + return null; + } + bytes[1] = (byte) (int) (l >> 16 & 0xFF); + bytes[2] = (byte) (int) ((l & 0xFFFF) >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 3: + for (i = 0; i < 2; ++i) + { + l = Integer.parseInt(elements[i]); + if ((l < 0L) || (l > 255L)) + { + return null; + } + bytes[i] = (byte) (int) (l & 0xFF); + } + l = Integer.parseInt(elements[2]); + if ((l < 0L) || (l > 65535L)) + { + return null; + } + bytes[2] = (byte) (int) (l >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 4: + for (i = 0; i < 4; ++i) + { + l = Integer.parseInt(elements[i]); + if ((l < 0L) || (l > 255L)) + { + return null; + } + bytes[i] = (byte) (int) (l & 0xFF); + } + break; + default: + return null; + } + } + catch (NumberFormatException e) + { + return null; + } + return bytes; + } + + /** + * 获取IP地址 + * + * @return 本地IP地址 + */ + public static String getHostIp() + { + try + { + return InetAddress.getLocalHost().getHostAddress(); + } + catch (UnknownHostException e) + { + } + return "127.0.0.1"; + } + + /** + * 获取主机名 + * + * @return 本地主机名 + */ + public static String getHostName() + { + try + { + return InetAddress.getLocalHost().getHostName(); + } + catch (UnknownHostException e) + { + } + return "未知"; + } + + /** + * 从多级反向代理中获得第一个非unknown IP地址 + * + * @param ip 获得的IP地址 + * @return 第一个非unknown IP地址 + */ + public static String getMultistageReverseProxyIp(String ip) + { + // 多级反向代理检测 + if (ip != null && ip.indexOf(",") > 0) + { + final String[] ips = ip.trim().split(","); + for (String subIp : ips) + { + if (false == isUnknown(subIp)) + { + ip = subIp; + break; + } + } + } + return ip; + } + + /** + * 检测给定字符串是否为未知,多用于检测HTTP请求相关 + * + * @param checkString 被检测的字符串 + * @return 是否未知 + */ + public static boolean isUnknown(String checkString) + { + return StringUtils.isBlank(checkString) || "unknown".equalsIgnoreCase(checkString); + } +} \ No newline at end of file diff --git a/vboot-core/src/main/java/vboot/core/xutil/lang/StringUtils.java b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/StringUtils.java similarity index 91% rename from vboot-core/src/main/java/vboot/core/xutil/lang/StringUtils.java rename to vboot-core/src/main/java/vboot/core/xutil/ruoyi/StringUtils.java index 0bc54d9..02e0d9d 100644 --- a/vboot-core/src/main/java/vboot/core/xutil/lang/StringUtils.java +++ b/vboot-core/src/main/java/vboot/core/xutil/ruoyi/StringUtils.java @@ -1,4 +1,4 @@ -package vboot.core.xutil.lang; +package vboot.core.xutil.ruoyi; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.lang.Validator; @@ -7,6 +7,7 @@ import lombok.AccessLevel; import lombok.NoArgsConstructor; import org.springframework.util.AntPathMatcher; +import java.math.BigInteger; import java.util.ArrayList; import java.util.HashSet; import java.util.List; @@ -270,4 +271,31 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils { return sb.toString(); } + /* + 溢出的int负数取补码 + */ + public static String getComplementBinaryCode(int a) + { + String val = ""; + for (int i = 0; i < 32; i++) + { + // 0x80000000 是一个首位为1,其余位数为0的整数 + int t = (a & 0x80000000 >>> i) >>> (31 - i); + val += t; + } + return val; + } + + /* + 如果包含负值,则需要转换 + */ + public static String changeValBinary(String val) { + if(val.indexOf("-") < 0) { + return val; + } + String binaryVal = getComplementBinaryCode(Integer.parseInt(val)); + return new BigInteger(binaryVal, 2).toString(); + } + + } diff --git a/vboot-core/src/main/resources/generator.yml b/vboot-core/src/main/resources/generator.yml new file mode 100644 index 0000000..5bd3dd6 --- /dev/null +++ b/vboot-core/src/main/resources/generator.yml @@ -0,0 +1,10 @@ +# 代码生成 +gen: + # 作者 + author: ruoyi + # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool + packageName: com.ruoyi.system + # 自动去除表前缀,默认是false + autoRemovePre: false + # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) + tablePrefix: sys_ \ No newline at end of file diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/conn/main/BiConnMainApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/conn/main/BiConnMainApi.java index 7366a06..12bc1cf 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/conn/main/BiConnMainApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/conn/main/BiConnMainApi.java @@ -2,7 +2,7 @@ package vboot.extend.module.bi.conn.main; import vboot.extend.module.bi.table.main.BiTableMain; import vboot.extend.module.bi.table.main.BiTableMainService; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -14,32 +14,32 @@ public class BiConnMainApi { private String table = "bi_conn_main"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); sqler.addLike("t.name", name); sqler.addSelect("t.comet,t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { BiTableMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody BiTableMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BiTableMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiTableMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BiTableMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/demo/boy/BiDemoBoyApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/demo/boy/BiDemoBoyApi.java index 5246cac..8b70ea4 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/demo/boy/BiDemoBoyApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/demo/boy/BiDemoBoyApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.demo.boy; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.xutil.lang.XstrUtil; import org.springframework.beans.factory.annotation.Autowired; @@ -17,7 +17,7 @@ public class BiDemoBoyApi { private String table = "bi_demo_boy"; @GetMapping - public RestResult get(String name) { + public R get(String name) { List boys = new ArrayList<>(); for (int i = 1; i <= 100; i++) { BiDemoBoy boy=new BiDemoBoy(); @@ -28,28 +28,28 @@ public class BiDemoBoyApi { repo.saveAll(boys); Sqler sqler = new Sqler(table); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { BiDemoBoy main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody BiDemoBoy main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BiDemoBoy main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiDemoBoy main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BiDemoBoy main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/demo/girl/BiDemoGirlApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/demo/girl/BiDemoGirlApi.java index 69873d9..b76e938 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/demo/girl/BiDemoGirlApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/demo/girl/BiDemoGirlApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.demo.girl; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -13,31 +13,31 @@ public class BiDemoGirlApi { private String table = "bi_demo_girl"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { BiDemoGirl main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody BiDemoGirl main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BiDemoGirl main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiDemoGirl main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BiDemoGirl main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/demo/student/BiDemoStudentApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/demo/student/BiDemoStudentApi.java index 453e4d9..a73cf03 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/demo/student/BiDemoStudentApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/demo/student/BiDemoStudentApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.demo.student; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -13,31 +13,31 @@ public class BiDemoStudentApi { private String table = "bi_demo_student"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { BiDemoStudent main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody BiDemoStudent main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BiDemoStudent main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiDemoStudent main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BiDemoStudent main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/etl/log/BiEtlLogApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/etl/log/BiEtlLogApi.java index b185812..180ff11 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/etl/log/BiEtlLogApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/etl/log/BiEtlLogApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.etl.log; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; @@ -13,30 +13,30 @@ public class BiEtlLogApi { @GetMapping - public RestResult list(Integer panum, Integer pasiz, String name, String id) { + public R list(Integer panum, Integer pasiz, String name, String id) { Sqler sqler = new Sqler("t.ID_BATCH as id,t.TRANSNAME as name,t.STARTDATE as sttim,t.ENDDATE as entim," + "t.STATUS as state,t.LOGDATE as lotim,t.DEPDATE as detim,t.REPLAYDATE as retim", table,panum,pasiz); sqler.addLike("t.TRANSNAME", name); sqler.addEqual("t.ID_BATCH", id); sqler.addOrder("t.LOGDATE desc"); - return RestResult.ok(jdbcDao.findPageData(sqler)); + return R.ok(jdbcDao.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult get(@PathVariable String id) { + public R get(@PathVariable String id) { String sql = "select t.ID_BATCH as id,t.STARTDATE sttim,t.ENDDATE entim,t.LOGDATE lotim,t.log_field msg,t.status state," + "t.transname name from "+table+" t where t.ID_BATCH=?"; - return RestResult.ok(jdbcDao.findMap(sql, id)); + return R.ok(jdbcDao.findMap(sql, id)); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { + public R delete(@PathVariable String[] ids) { String sql = "delete from "+table+" where ID_BATCH=?"; for (String id : ids) { jdbcDao.update(sql, id); } - return RestResult.ok(); + return R.ok(); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/etl/main/BiEtlMainApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/etl/main/BiEtlMainApi.java index f5dd966..f11b793 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/etl/main/BiEtlMainApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/etl/main/BiEtlMainApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.etl.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.quartz.SchedulerException; import org.springframework.beans.factory.annotation.Autowired; @@ -17,67 +17,67 @@ public class BiEtlMainApi { private String table = "bi_etl_main"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("t.id,t.name,t.code,t.cron,t.avtag", table); sqler.addLeftJoin("o.name as crman", "sys_org o", "o.id=t.crman"); sqler.addLike("t.name", name); sqler.addOrder("t.crtim desc"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { - return RestResult.ok(service.findOne(id)); + public R getOne(@PathVariable String id) { + return R.ok(service.findOne(id)); } @PostMapping("once") - public RestResult edit_startOnce(String id) throws Exception { + public R edit_startOnce(String id) throws Exception { BiEtlMain kettle = service.findOne(id); KetUtil.runTran(ATT_PATH + "/" + kettle.getZpath(), null, true); - return RestResult.ok(); + return R.ok(); } @PostMapping - public RestResult post(@RequestBody BiEtlMain main) { + public R post(@RequestBody BiEtlMain main) { main.setAvtag(false); - return RestResult.ok(service.insert(main)); + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiEtlMain main) throws SchedulerException { + public R put(@RequestBody BiEtlMain main) throws SchedulerException { if (main.getAvtag()) { handler.startEtlJob(main); } - return RestResult.ok(service.update(main)); + return R.ok(service.update(main).getId()); } @PostMapping("start") - public RestResult startJob(String ids) throws SchedulerException { + public R startJob(String ids) throws SchedulerException { String[] idArr = ids.split(","); for (int i = 0; i < idArr.length; i++) { BiEtlMain kettle =service.findOne(idArr[i]); handler.startEtlJob(kettle); } - return RestResult.ok(); + return R.ok(); } @PostMapping("stop") - public RestResult stopJob(String ids) throws SchedulerException { + public R stopJob(String ids) throws SchedulerException { String[] idArr = ids.split(","); for (int i = 0; i < idArr.length; i++) { BiEtlMain kettle = service.findOne(idArr[i]); handler.stopEtlJob(kettle); } - return RestResult.ok(); + return R.ok(); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) throws SchedulerException { + public R delete(@PathVariable String[] ids) throws SchedulerException { for (int i = 0; i < ids.length; i++) { BiEtlMain kettle = service.findOne(ids[i]); handler.stopEtlJob(kettle); } - return RestResult.ok(service.delete(ids)); + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/field/main/BiFieldMainApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/field/main/BiFieldMainApi.java index 6cfd18f..3dabc1a 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/field/main/BiFieldMainApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/field/main/BiFieldMainApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.field.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -12,32 +12,31 @@ public class BiFieldMainApi { private String table = "bi_field_main"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); - sqler.addLike("t.name", name); + sqler.addLike("t.name" , name); sqler.addSelect("t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { - BiFieldMain main = service.findOne(id); - return RestResult.ok(main); + public R getOne(@PathVariable String id) { + return R.ok(service.findOne(id)); } @PostMapping - public RestResult post(@RequestBody BiFieldMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BiFieldMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiFieldMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BiFieldMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/bi/table/main/BiTableMainApi.java b/vboot-extend/src/main/java/vboot/extend/module/bi/table/main/BiTableMainApi.java index b146be3..a77de95 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/bi/table/main/BiTableMainApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/bi/table/main/BiTableMainApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.bi.table.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -12,32 +12,31 @@ public class BiTableMainApi { private String table = "bi_table_main"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); - sqler.addLike("t.name", name); + sqler.addLike("t.name" , name); sqler.addSelect("t.comet,t.notes"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { - BiTableMain main = service.findOne(id); - return RestResult.ok(main); + public R getOne(@PathVariable String id) { + return R.ok(service.findOne(id)); } @PostMapping - public RestResult post(@RequestBody BiTableMain main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody BiTableMain main) { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody BiTableMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody BiTableMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/oa/doc/cate/OaDocCateApi.java b/vboot-extend/src/main/java/vboot/extend/module/oa/doc/cate/OaDocCateApi.java index 3db2732..8d28571 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/oa/doc/cate/OaDocCateApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/oa/doc/cate/OaDocCateApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.oa.doc.cate; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Ztree; import org.springframework.beans.factory.annotation.Autowired; @@ -15,39 +15,39 @@ public class OaDocCateApi { private String table = "oa_doc_cate"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); sqler.addSelect("t.pid,t.crtim,t.uptim"); sqler.addLike("t.name", name); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findTree(sqler)); + return R.ok(service.findTree(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { OaDocCate cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } @GetMapping("tree") - public RestResult getTree(String name) { + public R getTree(String name) { List list = service.findTreeList(table,name); - return RestResult.ok(list); + return R.ok(list); } @PostMapping - public RestResult post(@RequestBody OaDocCate main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody OaDocCate cate) { + return R.ok(service.insert(cate)); } @PutMapping - public RestResult put(@RequestBody OaDocCate main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody OaDocCate cate) { + return R.ok(service.update(cate)); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/oa/doc/main/OaDocMainApi.java b/vboot-extend/src/main/java/vboot/extend/module/oa/doc/main/OaDocMainApi.java index 09c9fe1..e72e0bc 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/oa/doc/main/OaDocMainApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/oa/doc/main/OaDocMainApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.oa.doc.main; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.dom4j.DocumentException; import org.springframework.beans.factory.annotation.Autowired; @@ -11,32 +11,32 @@ import org.springframework.web.bind.annotation.*; public class OaDocMainApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("oa_doc_main"); sqler.addLike("t.name", name); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { OaDocMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody OaDocMain main) throws DocumentException { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody OaDocMain main) throws DocumentException { + return R.ok(service.insert(main).getId()); } @PutMapping - public RestResult put(@RequestBody OaDocMain main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody OaDocMain main) { + return R.ok(service.update(main).getId()); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/cate/OaFlowCateApi.java b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/cate/OaFlowCateApi.java index 53c7e82..8598b10 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/cate/OaFlowCateApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/cate/OaFlowCateApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.oa.flow.cate; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Ztree; import org.springframework.beans.factory.annotation.Autowired; @@ -15,40 +15,40 @@ public class OaFlowCateApi { private String table = "oa_flow_cate"; @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler(table); sqler.addLike("t.name", name); sqler.addSelect("t.notes"); sqler.addLeftJoin("c.name panam","oa_flow_cate c","c.id=t.pid"); sqler.addOrder("t.ornum"); - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { OaFlowCate cate = service.findOne(id); - return RestResult.ok(cate); + return R.ok(cate); } @GetMapping("tree") - public RestResult getTree(String name) { + public R getTree(String name) { List list = service.findTreeList(table,name); - return RestResult.ok(list); + return R.ok(list); } @PostMapping - public RestResult post(@RequestBody OaFlowCate main) { - return RestResult.ok(service.insert(main)); + public R post(@RequestBody OaFlowCate cate) { + return R.ok(service.insert(cate)); } @PutMapping - public RestResult put(@RequestBody OaFlowCate main) { - return RestResult.ok(service.update(main)); + public R put(@RequestBody OaFlowCate cate) { + return R.ok(service.update(cate)); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/main/OaFlowMainApi.java b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/main/OaFlowMainApi.java index c9b8a1d..eb27114 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/main/OaFlowMainApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/main/OaFlowMainApi.java @@ -1,7 +1,7 @@ package vboot.extend.module.oa.flow.main; import vboot.core.common.api.PageData; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.Sqler; import org.dom4j.DocumentException; import org.springframework.beans.factory.annotation.Autowired; @@ -13,38 +13,38 @@ import vboot.core.module.bpm.task.main.BpmTaskMainService; public class OaFlowMainApi { @GetMapping - public RestResult get(String name) { + public R get(String name) { Sqler sqler = new Sqler("oa_flow_main"); sqler.addInnerJoin("p.name temna","oa_flow_temp p", "p.id=t.temid"); sqler.addLike("t.name", name); sqler.addSelect("t.state"); PageData pageData = service.findPageData(sqler); taskMainService.findCurrentExmen(pageData.getItems()); - return RestResult.ok(pageData); + return R.ok(pageData); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { OaFlowMain main = service.findOne(id); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody OaFlowMain main) throws DocumentException { + public R post(@RequestBody OaFlowMain main) throws DocumentException { service.insertx(main); - return RestResult.ok(); + return R.ok(); } @PutMapping - public RestResult put(@RequestBody OaFlowMain main) { + public R put(@RequestBody OaFlowMain main) { service.updatex(main); - return RestResult.ok(); + return R.ok(); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/rece/OaFlowReceApi.java b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/rece/OaFlowReceApi.java index 30f6f0f..ce782f8 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/rece/OaFlowReceApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/rece/OaFlowReceApi.java @@ -2,7 +2,7 @@ package vboot.extend.module.oa.flow.rece; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.xutil.web.XuserUtil; @@ -17,7 +17,7 @@ import java.util.Map; public class OaFlowReceApi { @GetMapping("list") - public RestResult getList(Integer type) { + public R getList(Integer type) { List> mapList = new ArrayList<>(); String userId = XuserUtil.getUserId(); Sqler sqler = new Sqler("t.flowid as id", "oa_flow_rece"); @@ -26,15 +26,15 @@ public class OaFlowReceApi { sqler.addEqual("t.userid", userId); sqler.addOrder("t.uptim desc"); mapList.addAll(jdbcDao.findMapList(sqler)); - return RestResult.ok(mapList); + return R.ok(mapList); } @PostMapping - public RestResult post(@RequestBody List reces) throws SQLException { + public R post(@RequestBody List reces) throws SQLException { if (reces != null && reces.size() > 0) { service.update(reces); } - return RestResult.ok(); + return R.ok(); } diff --git a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/temp/OaFlowTempApi.java b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/temp/OaFlowTempApi.java index 9ed98ad..4b03946 100644 --- a/vboot-extend/src/main/java/vboot/extend/module/oa/flow/temp/OaFlowTempApi.java +++ b/vboot-extend/src/main/java/vboot/extend/module/oa/flow/temp/OaFlowTempApi.java @@ -1,6 +1,6 @@ package vboot.extend.module.oa.flow.temp; -import vboot.core.common.api.RestResult; +import vboot.core.common.api.R; import vboot.core.common.dao.JdbcDao; import vboot.core.common.dao.Sqler; import vboot.core.common.pojo.Zinp; @@ -17,7 +17,7 @@ import java.util.Map; public class OaFlowTempApi { @GetMapping - public RestResult get(String name,String catid) { + public R get(String name,String catid) { Sqler sqler = new Sqler("oa_flow_temp"); sqler.addInnerJoin("c.name catna", "oa_flow_cate c", "c.id=t.catid"); if(XstrUtil.isNotBlank(name)){ @@ -25,47 +25,47 @@ public class OaFlowTempApi { }else if(XstrUtil.isNotBlank(catid)){ sqler.addEqual("t.catid", catid); } - return RestResult.ok(service.findPageData(sqler)); + return R.ok(service.findPageData(sqler)); } @GetMapping("tree") - public RestResult getTree() { + public R getTree() { List list = service.findTreeList(); - return RestResult.ok(list); + return R.ok(list); } @GetMapping("list") - public RestResult getList(String catid, String name) { + public R getList(String catid, String name) { Sqler sqler = new Sqler("oa_flow_temp"); sqler.addInnerJoin("c.name catna", "oa_flow_cate c", "c.id=t.catid"); sqler.addLike("t.name", name); sqler.addEqual("t.catid", catid); sqler.addOrder("t.ornum"); - return RestResult.ok(jdbcDao.findMapList(sqler)); + return R.ok(jdbcDao.findMapList(sqler)); } @GetMapping("one/{id}") - public RestResult getOne(@PathVariable String id) { + public R getOne(@PathVariable String id) { OaFlowTemp main = service.findOne(id); String sql = "select orxml from bpm_proc_temp where id=?"; Map map = jdbcDao.findMap(sql, main.getProtd()); main.setPrxml("" + map.get("orxml")); - return RestResult.ok(main); + return R.ok(main); } @PostMapping - public RestResult post(@RequestBody OaFlowTemp main) throws DocumentException { - return RestResult.ok(service.insertx(main)); + public R post(@RequestBody OaFlowTemp main) throws DocumentException { + return R.ok(service.insertx(main)); } @PutMapping - public RestResult put(@RequestBody OaFlowTemp main) { - return RestResult.ok(service.updatex(main)); + public R put(@RequestBody OaFlowTemp main) { + return R.ok(service.updatex(main)); } @DeleteMapping("{ids}") - public RestResult delete(@PathVariable String[] ids) { - return RestResult.ok(service.delete(ids)); + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); } @Autowired diff --git a/vboot-web/pom.xml b/vboot-web/pom.xml index 7ca6488..3165c36 100644 --- a/vboot-web/pom.xml +++ b/vboot-web/pom.xml @@ -25,6 +25,19 @@
+ + net.java.dev.jna + jna + 5.5.0 + + + + net.java.dev.jna + jna-platform + 5.5.0 + + + org.springframework.boot spring-boot-starter-test diff --git a/vboot-web/src/main/java/vboot/Application.java b/vboot-web/src/main/java/vboot/Application.java index 7feba87..f69f1ce 100644 --- a/vboot-web/src/main/java/vboot/Application.java +++ b/vboot-web/src/main/java/vboot/Application.java @@ -23,7 +23,6 @@ import java.net.UnknownHostException; public class Application { public static void main(String[] args) { - ApplicationContext app = SpringApplication.run(Application.class, args); String[] beanDefinitionNames = app.getBeanDefinitionNames(); for (int i = 0; i < beanDefinitionNames.length; i++) { diff --git a/vboot-web/src/main/resources/static/ass/amap.css b/vboot-web/src/main/resources/static/ass/amap.css deleted file mode 100644 index 68e2b75..0000000 --- a/vboot-web/src/main/resources/static/ass/amap.css +++ /dev/null @@ -1,432 +0,0 @@ -html { - font-size: 12px; -} -.amap-copyright{ - box-sizing: content-box -} -* { - box-sizing: border-box -} -.input-textarea{ - color:grey; - height:8em; - overflow:auto; - border-radius:0.4rem; - border:1px solid #ced4da; - margin-bottom:1rem; -} -body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - line-height: 1.5; - font-weight: 300; - color: #111213; -} - -hr { - margin: 0.5rem 0; - box-sizing: content-box; - height: 0; - overflow: visible; - border: 0; - border-top: 1px solid rgba(0, 0, 0, .1) -} - -p { - margin-top: 0; - margin-bottom: 0; -} - -label { - display: inline-block; - margin-bottom: 0.4rem; -} - -label, .btn { - margin-left: 0; - font-size: 1rem; -} - -button, input, select { - margin: 0; - font-family: inherit; - font-size: inherit; - line-height: inherit; - overflow: visible; - text-transform: none -} - -[type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner, button::-moz-focus-inner { - padding: 0; - border-style: none; -} - -input[type=checkbox], input[type=radio] { - box-sizing: border-box; - padding: 0; - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 0; - margin: 0 0.5rem 0 0; -} - -h4 { - font-family: inherit; - line-height: 1.8; - font-weight: 300; - color: inherit; - font-size: 1.1rem; - margin-top: 0; - margin-bottom: .5rem -} - -.btn { - display: inline-block; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - border: 1px solid transparent; - transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; - background-color: transparent; - background-image: none; - color: #25A5F7; - border-color: #25A5F7; - padding: .25rem .5rem; - line-height: 1.5; - border-radius: 1rem; - -webkit-appearance: button; - cursor:pointer; -} - -.btn:hover { - color: #fff; - background-color: #25A5F7; - border-color: #25A5F7 -} - -.btn:hover { - text-decoration: none -} - -.input-item { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - width: 100%; - height: 3rem; -} - -.input-item:last-child { - margin-bottom: 0; -} - -.input-item>select, .input-item>input[type=text], .input-item>input[type=date] { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - width: 1%; - margin-bottom: 0; -} - -.input-item>select:not(:last-child), .input-item>input[type=text]:not(:last-child), .input-item>input[type=date]:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0 -} - -.input-item>select:not(:first-child), .input-item>input[type=text]:not(:first-child), .input-item>input[type=date]:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0 -} - -.input-item-prepend { - margin-right: -1px; -} - -.input-item-text, input[type=text],input[type=date], select { - height: calc(2.2rem + 2px); -} - -.input-item-text { - width: 6rem; - text-align: justify; - padding: 0.4rem 0.7rem; - display: inline-block; - text-justify: distribute-all-lines; - /*ie6-8*/ - text-align-last: justify; - /* ie9*/ - -moz-text-align-last: justify; - /*ff*/ - -webkit-text-align-last: justify; - /*chrome 20+*/ - -ms-flex-align: center; - align-items: center; - margin-bottom: 0; - font-size: 1rem; - font-weight: 400; - line-height: 1.5; - color: #495057; - text-align: center; - white-space: nowrap; - background-color: #e9ecef; - border: 1px solid #ced4da; - border-radius: .25rem; - border-bottom-right-radius: 0; - border-top-right-radius: 0; -} - -.input-item-text input[type=checkbox], .input-item-text input[type=radio] { - margin-top: 0 -} - -.input-card { - display: flex; - flex-direction: column; - min-width: 0; - word-wrap: break-word; - background-color: #fff; - background-clip: border-box; - border-radius: .25rem; - width: 28rem; - border-width: 0; - border-radius: 0.4rem; - box-shadow: 0 2px 6px 0 rgba(114, 124, 245, .5); - position: fixed; - top: 1rem; - right: 1rem; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 0.75rem 1.25rem; -} - -.input-text { - line-height: 2rem; - margin-right: 2rem; -} - -.info hr { - margin-right: 0; - margin-left: 0; - border-top-color: grey; -} - -.info { - padding: .75rem 1.25rem; - margin-bottom: 1rem; - border-radius: .25rem; - position: fixed; - top: 1rem; - background-color: white; - width: auto; - min-width: 22rem; - border-width: 0; - left: 1rem; - box-shadow: 0 2px 6px 0 rgba(114, 124, 245, .5); -} - -.code { - left: 1.5rem; - right: 1.5rem; - top: 1.5rem; - bottom: 1.5rem; - overflow: auto; - margin-bottom: 0rem; -} - -.code .btn { - top: 1rem; - position: absolute; - right: 1rem; -} - -.code .result { - border: 1px solid rgba(0, 0, 0, 0.1); - border-radius: 0.5rem; - padding: 1rem; - bottom: 1rem; - position: absolute; - top: 5.5rem; - right: 1rem; - left: 1rem; - overflow: auto; -} - -.code .status { - color: #80adff; - display: inline-block; - font-size: 14px; -} - -.code h4 { - display: inline-block; - max-width: 20rem; - margin-right: 1rem; - margin-bottom: 1rem; -} - -select, input[type=text], input[type=date] { - display: inline-block; - width: 100%; - padding: .375rem 1.75rem .375rem .75rem; - line-height: 1.5; - color: #495057; - vertical-align: middle; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center; - background-size: 8px 10px; - border: 1px solid #ced4da; - border-radius: .25rem; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none -} - -input[type=text],input[type=date] { - background: #fff; - padding: .375rem .75rem; -} - -select:focus, input[type=text]:focus, input[type=date]:focus { - border-color: #80bdff; - outline: 0; - box-shadow: 0 0 0 .1rem rgba(128, 189, 255, .1) -} - -.btn:focus { - outline: 0; - box-shadow: none; -} - -select:focus::-ms-value, input[type=text]:focus::-ms-value,input[type=date]:focus::-ms-value { - color: #495057; - background-color: #fff -} - - -/* native toastr */ -.native-toast { - position: fixed; - background-color: rgba(50, 50, 50, .8); - border-radius: 33px; - color: white; - left: 50%; - text-align: center; - padding: 6px 12px; - opacity: 0; - z-index: 99999; - transition: transform .25s, opacity .25s, top .25s; - box-sizing: border-box; -} - -.native-toast-bottom { - bottom: 50px; - -ms-transform: translateX(-50%) translateY(50px); - transform: translateX(-50%) translateY(50px) -} - -.native-toast-bottom.native-toast-shown { - opacity: 1; - -ms-transform: translateX(-50%) translateY(0); - transform: translateX(-50%) translateY(0); -} - -.native-toast-bottom.native-toast-edge { - bottom: 0; -} - -.native-toast-top { - top: 50px; - -ms-transform: translateX(-50%) translateY(-50px); - transform: translateX(-50%) translateY(-50px) -} - -.native-toast-top.native-toast-shown { - opacity: 1; - -ms-transform: translateX(-50%) translateY(0); - transform: translateX(-50%) translateY(0); -} - -.native-toast-top.native-toast-edge { - top: 0; -} - -.native-toast-center { - top: 0; - -ms-transform: translateX(-50%) translateY(-50px); - transform: translateX(-50%) translateY(-50px) -} - -.native-toast-center.native-toast-shown { - opacity: 1; - top: 50%; - -ms-transform: translateX(-50%) translateY(-50%); - transform: translateX(-50%) translateY(-50%); -} - -.native-toast-edge { - border-radius: 0; - width: 100%; - text-align: left; -} - -@media screen and (min-width: 40rem) { - .native-toast:not(.native-toast-edge) { - max-width: 18rem; - } -} - -/* - max-width does not seem to work in small screen? -*/ - -/*@media screen and (max-width: 768px) { - .native-toast:not(.native-toast-edge) { - max-width: 400px; - } -} - -@media screen and (max-width: 468px) { - .native-toast:not(.native-toast-edge) { - max-width: 300px; - } -}*/ - -/* types */ - -.native-toast-error { - background-color: #d92727; - color: white; -} - -.native-toast-success { - background-color: #62a465; - color: white; -} - -.native-toast-warning { - background-color: #fdaf17; - color: white; -} - -.native-toast-info { - background-color: #5060ba; - color: white; -} - -[class^="native-toast-icon-"] { - vertical-align: middle; - margin-right: 8px -} - -[class^="native-toast-icon-"] svg { - width: 16px; - height: 16px; -} \ No newline at end of file diff --git a/vboot-web/src/main/resources/static/ass/amap.html b/vboot-web/src/main/resources/static/ass/amap.html deleted file mode 100644 index 0067e87..0000000 --- a/vboot-web/src/main/resources/static/ass/amap.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - 地址选择 - - - - -
-
-
-
- 请输入关键字 -
- -
-
-
- -
-
经纬度
- -
-
-
所在地区
- -
-
-
详细地址
- -
- - - - - -
- - -
-
- - - - - diff --git a/vboot-web/src/main/resources/static/assets/111.1654291592072.png b/vboot-web/src/main/resources/static/assets/111.1654291592072.png deleted file mode 100644 index 8b9123b..0000000 Binary files a/vboot-web/src/main/resources/static/assets/111.1654291592072.png and /dev/null differ diff --git a/vboot-web/src/main/resources/static/assets/401.1654291592072.css b/vboot-web/src/main/resources/static/assets/401.1654291592072.css deleted file mode 100644 index 1b2185c..0000000 --- a/vboot-web/src/main/resources/static/assets/401.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.error[data-v-b8605a40]{height:100%;background-color:var(--el-color-white);display:flex}.error .error-flex[data-v-b8605a40]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-b8605a40]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-b8605a40]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-b8605a40]{color:var(--el-color-info);font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-b8605a40]{font-size:20px;color:var(--el-text-color-primary);margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-b8605a40]{color:var(--el-text-color-secondary);font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-b8605a40]{animation-delay:.2s}.error .error-flex .right[data-v-b8605a40]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-b8605a40]{width:100%;height:100%} diff --git a/vboot-web/src/main/resources/static/assets/401.1654291592072.js b/vboot-web/src/main/resources/static/assets/401.1654291592072.js deleted file mode 100644 index 40a9724..0000000 --- a/vboot-web/src/main/resources/static/assets/401.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as d,s as l,aF as p,B as u,a2 as f,o as g,b as h,e as s,Y as o,Z as v,S as b,X as w,O as T,az as S,aA as y}from"./vue.1654291592072.js";import{_ as C,u as F,b as x,S as A}from"./index.1654291592072.js";const V=d({name:"401",setup(){const e=F(),a=x(),{themeConfig:i}=l(e),{isTagsViewCurrenFull:n}=l(a),c=p(),r=()=>{A.clear(),c.push("/login")},t=u(()=>{let{isTagsview:m}=i.value;return n.value?"30px":m?"114px":"80px"});return{onSetAuth:r,initTagViewHeight:t}}}),_=e=>(S("data-v-b8605a40"),e=e(),y(),e),$={class:"error-flex"},B={class:"left"},k={class:"left-item"},R=_(()=>s("div",{class:"left-item-animation left-item-num"},"401",-1)),I={class:"left-item-animation left-item-title"},N={class:"left-item-animation left-item-msg"},z={class:"left-item-animation left-item-btn"},H=_(()=>s("div",{class:"right"},[s("img",{src:"https://img-blog.csdnimg.cn/3333f265772a4fa89287993500ecbf96.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAbHl0LXRvcA==,size_16,color_FFFFFF,t_70,g_se,x_16"})],-1));function X(e,a,i,n,c,r){const t=f("el-button");return g(),h("div",{class:"error layout-view-bg-white",style:T({height:`calc(100vh - ${e.initTagViewHeight}`})},[s("div",$,[s("div",B,[s("div",k,[R,s("div",I,o(e.$t("message.noAccess.accessTitle")),1),s("div",N,o(e.$t("message.noAccess.accessMsg")),1),s("div",z,[v(t,{type:"primary",round:"",onClick:e.onSetAuth},{default:b(()=>[w(o(e.$t("message.noAccess.accessBtn")),1)]),_:1},8,["onClick"])])])]),H])],4)}var Q=C(V,[["render",X],["__scopeId","data-v-b8605a40"]]);export{Q as default}; diff --git a/vboot-web/src/main/resources/static/assets/404.1654291592072.css b/vboot-web/src/main/resources/static/assets/404.1654291592072.css deleted file mode 100644 index 9192b69..0000000 --- a/vboot-web/src/main/resources/static/assets/404.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.error[data-v-3b19d5ac]{height:100%;background-color:var(--el-color-white);display:flex}.error .error-flex[data-v-3b19d5ac]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-3b19d5ac]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-3b19d5ac]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-3b19d5ac]{color:var(--el-color-info);font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-3b19d5ac]{font-size:20px;color:var(--el-text-color-primary);margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-3b19d5ac]{color:var(--el-text-color-secondary);font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-3b19d5ac]{animation-delay:.2s}.error .error-flex .right[data-v-3b19d5ac]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-3b19d5ac]{width:100%;height:100%} diff --git a/vboot-web/src/main/resources/static/assets/404.1654291592072.js b/vboot-web/src/main/resources/static/assets/404.1654291592072.js deleted file mode 100644 index 31d53a6..0000000 --- a/vboot-web/src/main/resources/static/assets/404.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as m,s as l,aF as u,B as p,a2 as f,o as g,b as h,e as t,Y as o,Z as v,S as b,X as w,O as F,az as T,aA as y}from"./vue.1654291592072.js";import{_ as C,u as x,b as V}from"./index.1654291592072.js";const $=m({name:"404",setup(){const e=x(),a=V(),{themeConfig:i}=l(e),{isTagsViewCurrenFull:n}=l(a),c=u(),r=()=>{c.push("/")},s=p(()=>{let{isTagsview:_}=i.value;return n.value?"30px":_?"114px":"80px"});return{onGoHome:r,initTagViewHeight:s}}}),d=e=>(T("data-v-3b19d5ac"),e=e(),y(),e),B={class:"error-flex"},S={class:"left"},k={class:"left-item"},H=d(()=>t("div",{class:"left-item-animation left-item-num"},"404",-1)),R={class:"left-item-animation left-item-title"},I={class:"left-item-animation left-item-msg"},N={class:"left-item-animation left-item-btn"},z=d(()=>t("div",{class:"right"},[t("img",{src:"https://img-blog.csdnimg.cn/9eb1d85a417f4ed1ba7107f149ce3da1.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAbHl0LXRvcA==,size_16,color_FFFFFF,t_70,g_se,x_16"})],-1));function A(e,a,i,n,c,r){const s=f("el-button");return g(),h("div",{class:"error layout-view-bg-white",style:F({height:`calc(100vh - ${e.initTagViewHeight}`})},[t("div",B,[t("div",S,[t("div",k,[H,t("div",R,o(e.$t("message.notFound.foundTitle")),1),t("div",I,o(e.$t("message.notFound.foundMsg")),1),t("div",N,[v(s,{type:"primary",round:"",onClick:e.onGoHome},{default:b(()=>[w(o(e.$t("message.notFound.foundBtn")),1)]),_:1},8,["onClick"])])])]),z])],4)}var G=C($,[["render",A],["__scopeId","data-v-3b19d5ac"]]);export{G as default}; diff --git a/vboot-web/src/main/resources/static/assets/BpmnActions.1654291592072.css b/vboot-web/src/main/resources/static/assets/BpmnActions.1654291592072.css deleted file mode 100644 index f821581..0000000 --- a/vboot-web/src/main/resources/static/assets/BpmnActions.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.bjs-powered-by{display:none}.bpmn-container{height:100%}#modeler-container{flex:1;height:100%;position:relative;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+) repeat!important}.djs-palette{border:none!important;background-color:#fff!important;box-shadow:0 3px 3px #0003;top:65px!important}.bpmn-panel{position:absolute;top:0;right:0;background-color:#fff!important;box-shadow:0 3px 3px #0003;width:45%;height:100%}.bpmn-panel .dynamic-binder{padding:0 15px}.bpmn-panel .title{font-size:18px;font-weight:700;padding:10px;color:#303133}.group-title-block{font-size:16px;margin-left:10px}.group-title-block i{margin-right:4px}.dynamic-binder>*{padding-top:15px}.bpmn-panel-collapse{max-height:calc(100% - 60px);overflow-y:auto;padding:5px}.bpmn-panel-shrinkage{z-index:99;position:absolute;top:10px;right:10px;font-size:20px;cursor:pointer}.el-collapse{border-bottom:none!important}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.bpmn-actions{position:absolute;bottom:5px;width:100%}.bpmn-actions button{margin:0 20px}.render-icon{cursor:pointer;display:inline-block}.render-icon .icon{margin:0 10px;font-size:30px;padding:3px}.render-icon .icon:hover{position:relative;bottom:6px}.render-icon-tooltip{margin-bottom:5px}.el-drawer__body{height:100%}.CodeMirror{height:100%;font-family:Monaco,Menlo,Consolas,COURIER NEW,monospace;font-size:12px}.CodeMirror-scroll{overflow:auto}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.ant-drawer-body{height:100%;padding:0} diff --git a/vboot-web/src/main/resources/static/assets/BpmnActions.1654291592072.js b/vboot-web/src/main/resources/static/assets/BpmnActions.1654291592072.js deleted file mode 100644 index d2f9e8d..0000000 --- a/vboot-web/src/main/resources/static/assets/BpmnActions.1654291592072.js +++ /dev/null @@ -1,24 +0,0 @@ -var Su=Object.defineProperty,Lu=Object.defineProperties;var ku=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Tu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable;var na=(M,H,x)=>H in M?Su(M,H,{enumerable:!0,configurable:!0,writable:!0,value:x}):M[H]=x,ia=(M,H)=>{for(var x in H||(H={}))Tu.call(H,x)&&na(M,x,H[x]);if(ra)for(var x of ra(H))Mu.call(H,x)&&na(M,x,H[x]);return M},la=(M,H)=>Lu(M,ku(H));import"./Modeler.1654291592072.js";import{g as Nu,a as Du,c as Ou,B as _i}from"./store.1654291592072.js";import{a as Gr,m as Au,Z as V,a3 as Xi,w as Wu,ap as Mn,k as sa,P as Nn,F as oa,a2 as Gi,T as ua,U as Hu,A as Pu,j as Ui,al as Fu,n as Eu}from"./vue.1654291592072.js";import{y as Iu,z as zu,A as Bu,B as Ru,C as Uu,D as Gu,F as Ku}from"./index.1654291592072.js";var nf=Gr({name:"Modeler",emits:["bpmnMounted"],setup(M,{emit:H}){const x=_i;return Au(()=>{x.initModeler({container:"#modeler-container",additionalModules:[{translate:["value",Nu("zh")]}],moddleExtensions:{activiti:Du}});const K="1";x.importXML(Ou(K,K)).then(F=>{F.length&&console.warn("importSuccess warnings",F)}).catch(F=>{console.warn("importFail errors ",F)}),H("bpmnMounted")}),()=>V("div",{id:"modeler-container"},null)}});const _u={execute(M,H){return Function('"use strict";return ('+M+")")()(H)},executeEl(M,H){return Function('"use strict";return (function(){ return '+H+"})")().call(M)}},Xu=(M,H)=>M.split(".").reduce(function(x,K){return x?x[K]:null},H||self);var qu=Gr({name:"DynamicBinder",props:{modelValue:{type:Object,default:()=>Object.assign({}),required:!0},fieldDefine:{type:Object,default:()=>({}),required:!0},bindTransformer:{type:Function,default:void 0}},emits:["update:modelValue","fieldChange"],setup(M,H){const x=Xi({flatFieldDefine:Ki(M.fieldDefine||{},{}),handingModel:Object.assign({})});Wu(()=>{x.handingModel=M.modelValue,x.flatFieldDefine=Ki(M.fieldDefine,{})});const K=M.bindTransformer||Zu,F=function(R,G){return K(x.handingModel,R,G)};return()=>V("div",{class:"dynamic-binder"},[Object.keys(x.flatFieldDefine).map(R=>{const G=x.flatFieldDefine[R];if(G&&Yu(G,Mn(M.modelValue))){const _=F(R,G),T=Mn(G.component);return sa(()=>_.value,()=>{if(H.emit("update:modelValue",x.handingModel),_.setValue){const U=_.setValue(Mn(M.modelValue),_.bindKey,_.value);U&&U()}else H.emit("fieldChange",_.bindKey,_.value)}),V(T,Nn(_,{modelValue:_.value,"onUpdate:modelValue":U=>_.value=U,class:`${T.name}-${R} dynamic-binder-item`}),_.vSlots)}return null})])}});function Ki(M,H,x=""){return Object.keys(M).forEach(K=>{const F=M[K];if(!F||typeof F!="object")return;F.component?H[x+K]=F:Ki(F,H,`${K}.`)}),H}function Yu(M,H){const x=M.predicate;if(x){if(typeof x=="string")return _u.executeEl(H,x);if(typeof x=="function")return x(H)}return!0}function Zu(M,H,x){return Xi(la(ia({bindKey:H},x),{sourceModel:M,value:x.getValue?x.getValue(Mn(M)):Xu(H,M)||""}))}function Qu(M){return typeof M=="function"||Object.prototype.toString.call(M)==="[object Object]"&&!Pu(M)}var lf=Gr({name:"Panel",setup(){const M=_i,H=M.getState();function x(R,G){const _=M.getShape();M.getModeling().updateProperties(_,{[R]:G})}const K=Xi({elCollapses:Object.assign([]),shrinkageOff:!1});sa(()=>H.activeBindDefine,()=>{H.activeBindDefine&&(K.elCollapses=H.activeBindDefine.map(R=>R.name))});function F(R){return{title:()=>V("div",{class:"group-title-block"},[R.icon&&V("i",{class:R.icon},null),R.name]),default:()=>V(qu,Nn({onFieldChange:x},{fieldDefine:R.properties,modelValue:H.businessObject,"onUpdate:modelValue":G=>H.businessObject=G}),null)}}return()=>{let R;return V(oa,null,[H.isActive&&H.businessObject&&H.activeBindDefine&&V(oa,null,[V("div",{class:"bpmn-panel-shrinkage",onClick:()=>K.shrinkageOff=!K.shrinkageOff},[K.shrinkageOff?V(Gi("el-icon"),null,{default:()=>[V(Iu,null,null)]}):V(Gi("el-icon"),null,{default:()=>[V(zu,null,null)]})]),ua(V("div",{class:"bpmn-panel"},[V("div",{class:"title"},[M.getActiveElementName()]),V(Bu,{class:"bpmn-panel-collapse",modelValue:K.elCollapses,"onUpdate:modelValue":G=>K.elCollapses=G},Qu(R=H.activeBindDefine.map(G=>V(Ru,{name:G.name},F(G))))?R:{default:()=>[R]})]),[[Hu,!K.shrinkageOff]])])])}}}),Ju=Gr({name:"ButtonRender",props:{buttons:{type:Array,require:!0,default:()=>[]},buttonClick:{type:Function,default:()=>M=>{console.log(M)}}},setup(M){const H=x=>{M.buttonClick&&M.buttonClick(x)};return()=>V("div",{class:"button-render"},[M.buttons.map(x=>{if(x.icon){const K={effect:"light",content:x.label,placement:"top",offset:10,"show-after":300};return V(Gu,Nn({class:"render-icon-tooltip"},K),{default:()=>[V("div",{class:"render-icon",onClick:()=>x.action?x.action():H(x)},[V("svg",{class:"icon","aria-hidden":"true"},[V("use",{"xlink:href":`#${x.icon}`},null)])])]})}else return V(Uu,Nn({round:!0,type:"info"},{onClick:()=>x.action?x.action():H(x)}),{default:()=>[x.label]})})])}}),Dn={exports:{}};(function(M,H){(function(x,K){M.exports=K()})(Ku,function(){var x=navigator.userAgent,K=navigator.platform,F=/gecko\/\d/i.test(x),R=/MSIE \d/.test(x),G=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(x),_=/Edge\/(\d+)/.exec(x),T=R||G||_,U=T&&(R?document.documentMode||6:+(_||G)[1]),J=!_&&/WebKit\//.test(x),ie=J&&/Qt\/\d+\.\d+/.test(x),O=!_&&/Chrome\//.test(x),X=/Opera\//.test(x),Ne=/Apple Computer/.test(navigator.vendor),at=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(x),ue=/PhantomJS/.test(x),Fe=Ne&&(/Mobile\/\w+/.test(x)||navigator.maxTouchPoints>2),ke=/Android/.test(x),Ye=Fe||ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(x),fe=Fe||/Mac/.test(K),Ee=/\bCrOS\b/.test(x),Ze=/win/i.test(K),Ie=X&&x.match(/Version\/(\d*\.\d*)/);Ie&&(Ie=Number(Ie[1])),Ie&&Ie>=15&&(X=!1,J=!0);var $e=fe&&(ie||X&&(Ie==null||Ie<12.11)),Ue=F||T&&U>=9;function ze(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var le=function(e,t){var n=e.className,r=ze(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function oe(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function re(e,t){return oe(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var l=0;l=t)return o+(t-l);o+=a-l,o+=n-o%n,l=a+1}}var gt=function(){this.id=null,this.f=null,this.time=0,this.handler=Tt(this.onTimeout,this)};gt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},gt.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(o,t-i);if(i+=l-r,i+=n-i%n,r=l+1,i>=t)return r}}var _r=[""];function Wn(e){for(;_r.length<=e;)_r.push(Y(_r)+" ");return _r[e]}function Y(e){return e[e.length-1]}function Xr(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ha.test(e))}function qr(e,t){return t?t.source.indexOf("\\w")>-1&&Hn(e)?!0:t.test(e):Hn(e)}function Zi(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ca=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Pn(e){return e.charCodeAt(0)>=768&&ca.test(e)}function Qi(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,l=r<0?Math.ceil(i):Math.floor(i);if(l==t)return e(l)?t:n;e(l)?n=l:t=l+r}}function da(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,l=0;lt||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),o.level==1?"rtl":"ltr",l),i=!0)}i||r(t,n,"ltr")}var hr=null;function cr(e,t,n){var r;hr=null;for(var i=0;it)return i;l.to==t&&(l.from!=l.to&&n=="before"?r=i:hr=i),l.from==t&&(l.from!=l.to&&n!="before"?r=i:hr=i)}return r!=null?r:hr}var pa=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p-1&&(r[t]=i.slice(0,l).concat(i.slice(l+1)))}}}function he(e,t){var n=Fn(e,t);if(!!n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ut(e){e.prototype.on=function(t,n){E(this,t,n)},e.prototype.off=function(t,n){Ge(this,t,n)}}function De(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Vi(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function En(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function dr(e){De(e),Vi(e)}function In(e){return e.target||e.srcElement}function $i(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),fe&&e.ctrlKey&&t==1&&(t=3),t}var va=function(){if(T&&U<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}(),zn;function ga(e){if(zn==null){var t=N("span","\u200B");re(e,N("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(zn=t.offsetWidth<=1&&t.offsetHeight>2&&!(T&&U<8))}var n=zn?N("span","\u200B"):N("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Bn;function ya(e){if(Bn!=null)return Bn;var t=re(e,document.createTextNode("A\u062EA")),n=L(t,0,1).getBoundingClientRect(),r=L(t,1,2).getBoundingClientRect();return oe(e),!n||n.left==n.right?!1:Bn=r.right-n.right<3}var Rn=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var l=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),o=l.indexOf("\r");o!=-1?(n.push(l.slice(0,o)),t+=o+1):(n.push(l),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ma=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ba=function(){var e=N("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Un=null;function xa(e){if(Un!=null)return Un;var t=re(e,N("span","x")),n=t.getBoundingClientRect(),r=L(t,0,1).getBoundingClientRect();return Un=Math.abs(n.left-r.left)>1}var Gn={},Gt={};function wa(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Gn[e]=t}function Ca(e,t){Gt[e]=t}function Yr(e){if(typeof e=="string"&&Gt.hasOwnProperty(e))e=Gt[e];else if(e&&typeof e.name=="string"&&Gt.hasOwnProperty(e.name)){var t=Gt[e.name];typeof t=="string"&&(t={name:t}),e=Yi(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Yr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Yr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Kn(e,t){t=Yr(t);var n=Gn[t.name];if(!n)return Kn(e,"text/plain");var r=n(e,t);if(Kt.hasOwnProperty(t.name)){var i=Kt[t.name];for(var l in i)!i.hasOwnProperty(l)||(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=i[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var Kt={};function Sa(e,t){var n=Kt.hasOwnProperty(e)?Kt[e]:Kt[e]={};et(t,n)}function Nt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function _n(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function el(e,t,n){return e.startState?e.startState(t,n):!0}var ce=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};ce.prototype.eol=function(){return this.pos>=this.string.length},ce.prototype.sol=function(){return this.pos==this.lineStart},ce.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ce.prototype.next=function(){if(this.post},ce.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ce.prototype.skipToEnd=function(){this.pos=this.string.length},ce.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ce.prototype.backUp=function(e){this.pos-=e},ce.prototype.column=function(){return this.lastColumnPos0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},ce.prototype.current=function(){return this.string.slice(this.start,this.pos)},ce.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ce.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ce.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function D(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],l=i.chunkSize();if(t=e.first&&tn?y(n,D(e,n).text.length):La(t,D(e,t.line).text.length)}function La(e,t){var n=e.ch;return n==null||n>t?y(e.line,t):n<0?y(e.line,0):e}function rl(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},nt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},nt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},nt.fromSaved=function(e,t,n){return t instanceof Jr?new nt(e,Nt(e.mode,t.state),n,t.lookAhead):new nt(e,Nt(e.mode,t),n)},nt.prototype.save=function(e){var t=e!==!1?Nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Jr(t,this.maxLookAhead):t};function nl(e,t,n,r){var i=[e.state.modeGen],l={};ul(e,t.text,e.doc.mode,n,function(u,f){return i.push(u,f)},l,r);for(var o=n.state,a=function(u){n.baseTokens=i;var f=e.state.overlays[u],h=1,d=0;n.state=!0,ul(e,t.text,f.mode,n,function(c,p){for(var g=h;dc&&i.splice(h,1,c,i[h+1],b),h+=2,d=Math.min(c,b)}if(!!p)if(f.opaque)i.splice(g,h-g,c,"overlay "+p),h=g+2;else for(;ge.options.maxHighlightLength&&Nt(e.doc.mode,r.state),l=nl(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vr(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new nt(r,!0,t);var l=ka(e,t,n),o=l>r.first&&D(r,l-1).stateAfter,a=o?nt.fromSaved(r,o,l):new nt(r,el(r.mode),l);return r.iter(l,t,function(s){Qn(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var ol=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function al(e,t,n,r){var i=e.doc,l=i.mode,o;t=z(i,t);var a=D(i,t.line),s=vr(e,t.line,n),u=new ce(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pose.options.maxHighlightLength?(a=!1,o&&Qn(e,t,r,f.pos),f.pos=t.length,h=null):h=sl(Jn(n,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;so;--a){if(a<=l.first)return l.first;var s=D(l,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Jr?u.lookAhead:0)<=l.modeFrontier))return a;var f=Xe(s.text,null,e.options.tabSize);(i==null||r>f)&&(i=a-1,r=f)}return i}function Ta(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=D(e,r).stateAfter;if(i&&(!(i instanceof Jr)||r+i.lookAhead=t:l.to>t);(r||(r=[])).push(new jr(o,l.from,s?null:l.to))}}return r}function Wa(e,t,n){var r;if(e)for(var i=0;i=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!n||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from0&&a)for(var k=0;k0)){var f=[s,1],h=I(u.from,a.from),d=I(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),i.splice.apply(i,f),s+=f.length-3}}return i}function cl(e){var t=e.markedSpans;if(!!t){for(var n=0;nt)&&(!r||Vn(r,l.marker)<0)&&(r=l.marker)}return r}function gl(e,t,n,r,i){var l=D(e,t),o=ut&&l.markedSpans;if(o)for(var a=0;a=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?I(u.to,n)>=0:I(u.to,n)>0)||f>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?I(u.from,r)<=0:I(u.from,r)<0)))return!0}}}function Qe(e){for(var t;t=vl(e);)e=t.find(-1,!0).line;return e}function Fa(e){for(var t;t=en(e);)e=t.find(1,!0).line;return e}function Ea(e){for(var t,n;t=en(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function $n(e,t){var n=D(e,t),r=Qe(n);return n==r?t:Z(r)}function yl(e,t){if(t>e.lastLine())return t;var n=D(e,t),r;if(!yt(e,n))return t;for(;r=en(n);)n=r.find(1,!0).line;return Z(n)+1}function yt(e,t){var n=ut&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var _t=function(e,t,n){this.text=e,dl(this,t),this.height=n?n(this):1};_t.prototype.lineNo=function(){return Z(this)},Ut(_t);function Ia(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),cl(e),dl(e,n);var i=r?r(e):1;i!=e.height&&rt(e,i)}function za(e){e.parent=null,cl(e)}var Ba={},Ra={};function ml(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ra:Ba;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function bl(e,t){var n=v("span",null,null,J?"padding-right: .1px":null),r={pre:v("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var l=i?t.rest[i-1]:t.line,o=void 0;r.pos=0,r.addToken=Ga,ya(e.display.measure)&&(o=st(l,e.doc.direction))&&(r.addToken=_a(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&Z(l);Xa(l,r,il(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=_e(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=_e(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ga(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(J){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=_e(r.pre.className,r.textClass||"")),r}function Ua(e){var t=N("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ga(e,t,n,r,i,l,o){if(!!t){var a=e.splitSpaces?Ka(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),T&&U<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));T&&U<9?f.appendChild(N("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var g=void 0;if(d[0]==" "){var b=e.cm.options.tabSize,w=b-e.col%b;g=f.appendChild(N("span",Wn(w),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text"," "),e.col+=w}else d[0]=="\r"||d[0]==` -`?(g=f.appendChild(N("span",d[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),g.setAttribute("cm-text",d[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(d[0]),g.setAttribute("cm-text",d[0]),T&&U<9?f.appendChild(N("span",[g])):f.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||l||o){var S=n||"";r&&(S+=r),i&&(S+=i);var C=N("span",[f],S,l);if(o)for(var k in o)o.hasOwnProperty(k)&&k!="style"&&k!="class"&&C.setAttribute(k,o[k]);return e.content.appendChild(C)}e.content.appendChild(f)}}function Ka(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&h.from<=u));d++);if(h.to>=f)return e(n,r,i,l,o,a,s);e(n,r.slice(0,h.to-u),i,l,null,a,s),l=null,r=r.slice(h.to-u),u=h.to}}}function xl(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Xa(e,t,n){var r=e.markedSpans,i=e.text,l=0;if(!r){for(var o=1;os||B.collapsed&&A.to==s&&A.from==s)){if(A.to!=null&&A.to!=s&&c>A.to&&(c=A.to,g=""),B.className&&(p+=" "+B.className),B.css&&(d=(d?d+";":"")+B.css),B.startStyle&&A.from==s&&(b+=" "+B.startStyle),B.endStyle&&A.to==c&&(k||(k=[])).push(B.endStyle,A.to),B.title&&((S||(S={})).title=B.title),B.attributes)for(var j in B.attributes)(S||(S={}))[j]=B.attributes[j];B.collapsed&&(!w||Vn(w.marker,B)<0)&&(w=A)}else A.from>s&&c>A.from&&(c=A.from)}if(k)for(var xe=0;xe=a)break;for(var Re=Math.min(a,c);;){if(f){var We=s+f.length;if(!w){var de=We>Re?f.slice(0,Re-s):f;t.addToken(t,de,h?h+p:p,b,s+de.length==c?g:"",d,S)}if(We>=Re){f=f.slice(Re-s),s=Re;break}s=We,b=""}f=i.slice(l,l=n[u++]),h=ml(n[u++],t.cm.options)}}}function wl(e,t,n){this.line=t,this.rest=Ea(t),this.size=this.rest?Z(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=yt(e,t)}function rn(e,t,n){for(var r=[],i,l=t;l2&&l.push((s.bottom+u.top)/2-n.top)}}l.push(n.bottom-n.top)}}function Nl(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function rs(e,t){t=Qe(t);var n=Z(t),r=e.display.externalMeasured=new wl(e.doc,t,n);r.lineN=n;var i=r.built=bl(e,r);return r.text=i.pre,re(e.display.lineMeasure,i.pre),r}function Dl(e,t,n,r){return lt(e,qt(e,t),n,r)}function li(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(l=s-a,i=l-1,t>=s&&(o="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(o=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],o="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function is(e,t,n,r){var i=Al(t.map,n,r),l=i.node,o=i.start,a=i.end,s=i.collapse,u;if(l.nodeType==3){for(var f=0;f<4;f++){for(;o&&Pn(t.line.text.charAt(i.coverStart+o));)--o;for(;i.coverStart+a0&&(s=r="right");var h;e.options.lineWrapping&&(h=l.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=l.getBoundingClientRect()}if(T&&U<9&&!o&&(!u||!u.left&&!u.right)){var d=l.parentNode.getClientRects()[0];d?u={left:d.left,right:d.left+Zt(e.display),top:d.top,bottom:d.bottom}:u=Ol}for(var c=u.top-t.rect.top,p=u.bottom-t.rect.top,g=(c+p)/2,b=t.view.measure.heights,w=0;w=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return o(u=="before"?s-1:s,u=="before");function f(p,g,b){var w=a[g],S=w.level==1;return o(b?p-1:p,S!=b)}var h=cr(a,s,u),d=hr,c=f(s,h,u=="before");return d!=null&&(c.other=f(s,d,u!="before")),c}function Il(e,t){var n=0;t=z(e.doc,t),e.options.lineWrapping||(n=Zt(e.display)*t.ch);var r=D(e.doc,t.line),i=ft(r)+nn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function ai(e,t,n,r,i){var l=y(e,t,n);return l.xRel=i,r&&(l.outside=r),l}function si(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return ai(r.first,0,null,-1,-1);var i=Ot(r,n),l=r.first+r.size-1;if(i>l)return ai(r.first+r.size-1,D(r,l).text.length,null,1,1);t<0&&(t=0);for(var o=D(r,i);;){var a=os(e,o,i,t,n),s=Pa(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;o=D(r,i=u.line)}}function zl(e,t,n,r){r-=oi(t);var i=t.text.length,l=fr(function(o){return lt(e,n,o-1).bottom<=r},i,0);return i=fr(function(o){return lt(e,n,o).top>r},l,i),{begin:l,end:i}}function Bl(e,t,n,r){n||(n=qt(e,t));var i=ln(e,t,lt(e,n,r),"line").top;return zl(e,t,n,i)}function ui(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function os(e,t,n,r,i){i-=ft(t);var l=qt(e,t),o=oi(t),a=0,s=t.text.length,u=!0,f=st(t,e.doc.direction);if(f){var h=(e.options.lineWrapping?ss:as)(e,t,n,l,f,r,i);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var d=null,c=null,p=fr(function(P){var A=lt(e,l,P);return A.top+=o,A.bottom+=o,ui(A,r,i,!1)?(A.top<=i&&A.left<=r&&(d=P,c=A),!0):!1},a,s),g,b,w=!1;if(c){var S=r-c.left=k.bottom?1:0}return p=Qi(t.text,p,1),ai(n,p,b,w,r-g)}function as(e,t,n,r,i,l,o){var a=fr(function(h){var d=i[h],c=d.level!=1;return ui(Je(e,y(n,c?d.to:d.from,c?"before":"after"),"line",t,r),l,o,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,f=Je(e,y(n,u?s.from:s.to,u?"after":"before"),"line",t,r);ui(f,l,o,!0)&&f.top>o&&(s=i[a-1])}return s}function ss(e,t,n,r,i,l,o){var a=zl(e,t,r,o),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var f=null,h=null,d=0;d=u||c.to<=s)){var p=c.level!=1,g=lt(e,r,p?Math.min(u,c.to)-1:Math.max(s,c.from)).right,b=gb)&&(f=c,h=b)}}return f||(f=i[i.length-1]),f.fromu&&(f={from:f.from,to:u,level:f.level}),f}var Wt;function Yt(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Wt==null){Wt=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Wt.appendChild(document.createTextNode("x")),Wt.appendChild(N("br"));Wt.appendChild(document.createTextNode("x"))}re(e.measure,Wt);var n=Wt.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),oe(e.measure),n||1}function Zt(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");re(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function fi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,l=t.gutters.firstChild,o=0;l;l=l.nextSibling,++o){var a=e.display.gutterSpecs[o].className;n[a]=l.offsetLeft+l.clientLeft+i,r[a]=l.clientWidth}return{fixedPos:hi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function hi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Rl(e){var t=Yt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Zt(e.display)-3);return function(i){if(yt(e.doc,i))return 0;var l=0;if(i.widgets)for(var o=0;o0&&(u=D(e.doc,s.line).text).length==s.ch){var f=Xe(u,u.length,e.options.tabSize)-u.length;s=y(s.line,Math.max(0,Math.round((l-Ml(e.display).left)/Zt(e.display))-f))}return s}function Pt(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)ut&&$n(e.doc,t)i.viewFrom?bt(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)bt(e);else if(t<=i.viewFrom){var l=an(e,n,n+r,1);l?(i.view=i.view.slice(l.index),i.viewFrom=l.lineN,i.viewTo+=r):bt(e)}else if(n>=i.viewTo){var o=an(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):bt(e)}else{var a=an(e,t,t,-1),s=an(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(rn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):bt(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var l=r.view[Pt(e,t)];if(l.node!=null){var o=l.changes||(l.changes=[]);ae(o,n)==-1&&o.push(n)}}}function bt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function an(e,t,n,r){var i=Pt(e,t),l,o=e.display.view;if(!ut||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==o.length-1)return null;l=a+o[i].size-t,i++}else l=a-t;t+=l,n+=l}for(;$n(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function us(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=rn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=rn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Pt(e,n)))),r.viewTo=n}function Ul(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?o:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(N("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function sn(e,t){return e.top-t.top||e.left-t.left}function fs(e,t,n){var r=e.display,i=e.doc,l=document.createDocumentFragment(),o=Ml(e.display),a=o.left,s=Math.max(r.sizerWidth,At(e)-r.sizer.offsetLeft)-o.right,u=i.direction=="ltr";function f(C,k,P,A){k<0&&(k=0),k=Math.round(k),A=Math.round(A),l.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+C+`px; - top: `+k+"px; width: "+(P==null?s-C:P)+`px; - height: `+(A-k)+"px"))}function h(C,k,P){var A=D(i,C),B=A.text.length,j,xe;function te(de,He){return on(e,y(C,de),"div",A,He)}function Re(de,He,Ce){var ve=Bl(e,A,null,de),pe=He=="ltr"==(Ce=="after")?"left":"right",ne=Ce=="after"?ve.begin:ve.end-(/\s/.test(A.text.charAt(ve.end-1))?2:1);return te(ne,pe)[pe]}var We=st(A,i.direction);return da(We,k||0,P==null?B:P,function(de,He,Ce,ve){var pe=Ce=="ltr",ne=te(de,pe?"left":"right"),Pe=te(He-1,pe?"right":"left"),ar=k==null&&de==0,kt=P==null&&He==B,Le=ve==0,ot=!We||ve==We.length-1;if(Pe.top-ne.top<=3){var we=(u?ar:kt)&&Le,Bi=(u?kt:ar)&&ot,pt=we?a:(pe?ne:Pe).left,Bt=Bi?s:(pe?Pe:ne).right;f(pt,ne.top,Bt-pt,ne.bottom)}else{var Rt,Me,sr,Ri;pe?(Rt=u&&ar&&Le?a:ne.left,Me=u?s:Re(de,Ce,"before"),sr=u?a:Re(He,Ce,"after"),Ri=u&&kt&&ot?s:Pe.right):(Rt=u?Re(de,Ce,"before"):a,Me=!u&&ar&&Le?s:ne.right,sr=!u&&kt&&ot?a:Pe.left,Ri=u?Re(He,Ce,"after"):s),f(Rt,ne.top,Me-Rt,ne.bottom),ne.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Qt(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||gi(e))}function vi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Qt(e))},100)}function gi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,ee(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),J&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),pi(e))}function Qt(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,le(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function un(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,l=0,o=0;o.005||c<-.005)&&(ie.display.sizerWidth){var g=Math.ceil(f/Zt(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(l)>2&&(t.scroller.scrollTop+=l)}function _l(e){if(e.widgets)for(var t=0;t=o&&(l=Ot(t,ft(D(t,s))-e.wrapper.clientHeight),o=s)}return{from:l,to:Math.max(o,l+1)}}function hs(e,t){if(!ge(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!ue){var l=N("div","\u200B",null,`position: absolute; - top: `+(t.top-n.viewOffset-nn(e.display))+`px; - height: `+(t.bottom-t.top+it(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function cs(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?y(t.line,t.ch+1,"before"):t,t=t.ch?y(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var o=!1,a=Je(e,t),s=!n||n==t?a:Je(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=yi(e,i),f=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(Sr(e,u.scrollTop),Math.abs(e.doc.scrollTop-f)>1&&(o=!0)),u.scrollLeft!=null&&(Ft(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return i}function ds(e,t){var n=yi(e,t);n.scrollTop!=null&&Sr(e,n.scrollTop),n.scrollLeft!=null&&Ft(e,n.scrollLeft)}function yi(e,t){var n=e.display,r=Yt(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,l=ii(e),o={};t.bottom-t.top>l&&(t.bottom=t.top+l);var a=e.doc.height+ni(n),s=t.topa-r;if(t.topi+l){var f=Math.min(t.top,(u?a:t.bottom)-l);f!=i&&(o.scrollTop=f)}var h=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-h,c=At(e)-n.gutters.offsetWidth,p=t.right-t.left>c;return p&&(t.right=t.left+c),t.left<10?o.scrollLeft=0:t.leftc+d-3&&(o.scrollLeft=t.right+(p?0:10)-c),o}function mi(e,t){t!=null&&(hn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Jt(e){hn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Cr(e,t,n){(t!=null||n!=null)&&hn(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ps(e,t){hn(e),e.curOp.scrollToPos=t}function hn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Il(e,t.from),r=Il(e,t.to);Xl(e,n,r,t.margin)}}function Xl(e,t,n,r){var i=yi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Cr(e,i.scrollLeft,i.scrollTop)}function Sr(e,t){Math.abs(e.doc.scrollTop-t)<2||(F||xi(e,{top:t}),ql(e,t,!0),F&&xi(e),Tr(e,100))}function ql(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ft(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,jl(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Lr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+ni(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+it(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Et=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),E(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),E(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&U<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Et.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Et.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Et.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Et.prototype.zeroWidthHack=function(){var e=fe&&!at?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new gt,this.disableVert=new gt},Et.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto";function r(){var i=e.getBoundingClientRect(),l=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);l!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},Et.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var kr=function(){};kr.prototype.update=function(){return{bottom:0,right:0}},kr.prototype.setScrollLeft=function(){},kr.prototype.setScrollTop=function(){},kr.prototype.clear=function(){};function jt(e,t){t||(t=Lr(e));var n=e.display.barWidth,r=e.display.barHeight;Yl(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&un(e),Yl(e,Lr(e)),n=e.display.barWidth,r=e.display.barHeight}function Yl(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var Zl={native:Et,null:kr};function Ql(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&le(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Zl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),E(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Ft(e,t):Sr(e,t)},e),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)}var vs=0;function It(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++vs,markArrays:null},qa(e.curOp)}function zt(e){var t=e.curOp;t&&Za(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new cn(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ms(e){e.updatedDisplay=e.mustUpdate&&bi(e.cm,e.update)}function bs(e){var t=e.cm,n=t.display;e.updatedDisplay&&un(t),e.barMeasure=Lr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dl(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+it(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-At(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function xs(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vr(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var o=l.styles,a=l.text.length>e.options.maxHighlightLength?Nt(t.mode,r.state):null,s=nl(e,l,r,!0);a&&(r.state=a),l.styles=s.styles;var u=l.styleClasses,f=s.classes;f?l.styleClasses=f:u&&(l.styleClasses=null);for(var h=!o||o.length!=l.styles.length||u!=f&&(!u||!f||u.bgClass!=f.bgClass||u.textClass!=f.textClass),d=0;!h&&dn)return Tr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Be(e,function(){for(var l=0;l=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Ul(e)==0)return!1;Vl(e)&&(bt(e),t.dims=fi(e));var i=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),ut&&(l=$n(e.doc,l),o=yl(e.doc,o));var a=l!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;us(e,l,o),n.viewOffset=ft(D(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Ul(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=Ls(e);return s>4&&(n.lineDiv.style.display="none"),Ts(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ks(u),oe(n.cursorDiv),oe(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Tr(e,400)),n.updateLineNumbers=null,!0}function Jl(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==At(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+ni(e.display)-ii(e),n.top)}),t.visible=fn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=fn(e.display,e.doc,n));if(!bi(e,t))break;un(e);var i=Lr(e);wr(e),jt(e,i),Ci(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function xi(e,t){var n=new cn(e,t);if(bi(e,n)){un(e),Jl(e,n);var r=Lr(e);wr(e),jt(e,r),Ci(e,r),n.finish()}}function Ts(e,t,n){var r=e.display,i=e.options.lineNumbers,l=r.lineDiv,o=l.firstChild;function a(p){var g=p.nextSibling;return J&&fe&&e.display.currentWheelTarget==p?p.style.display="none":p.parentNode.removeChild(p),g}for(var s=r.view,u=r.viewFrom,f=0;f-1&&(c=!1),Cl(e,h,u,n)),c&&(oe(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(qn(e.options,u)))),o=h.node.nextSibling}u+=h.size}for(;o;)o=a(o)}function wi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",ye(e,"gutterChanged",e)}function Ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+it(e)+"px"}function jl(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=hi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,l=r+"px",o=0;oa.clientWidth,u=a.scrollHeight>a.clientHeight;if(!!(r&&s||i&&u)){if(i&&fe&&J){e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d=0&&I(e,r.to())<=0)return n}return-1};var q=function(e,t){this.anchor=e,this.head=t};q.prototype.from=function(){return Qr(this.anchor,this.head)},q.prototype.to=function(){return Zr(this.anchor,this.head)},q.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function je(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(d,c){return I(d.from(),c.from())}),n=ae(t,i);for(var l=1;l0:s>=0){var u=Qr(a.from(),o.from()),f=Zr(a.to(),o.to()),h=a.empty()?o.from()==o.head:a.from()==a.head;l<=n&&--n,t.splice(--l,2,new q(h?f:u,h?u:f))}}return new Ke(t,n)}function xt(e,t){return new Ke([new q(e,t||e)],0)}function wt(e){return e.text?y(e.from.line+e.text.length-1,Y(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ro(e,t){if(I(e,t.from)<0)return e;if(I(e,t.to)<=0)return wt(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=wt(t).ch-t.to.ch),y(n,r)}function Li(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,p-1),e.insert(a.line+1,w)}ye(e,"change",e,t)}function Ct(e,t,n){function r(i,l,o){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Y(e.done)}function so(e,t,n,r){var i=e.history;i.undone.length=0;var l=+new Date,o,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(o=As(i,i.lastOp==r)))a=Y(o.changes),I(t.from,t.to)==0&&I(t.from,a.to)==0?a.to=wt(t):o.changes.push(Mi(e,t));else{var s=Y(i.done);for((!s||!s.ranges)&&vn(e.sel,i.done),o={changes:[Mi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Ws(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Hs(e,t,n,r){var i=e.history,l=r&&r.origin;n==i.lastSelOp||l&&i.lastSelOrigin==l&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==l||Ws(e,l,Y(i.done),t))?i.done[i.done.length-1]=t:vn(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=l,i.lastSelOp=n,r&&r.clearRedo!==!1&&ao(i.undone)}function vn(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function uo(e,t,n,r){var i=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(o){o.markedSpans&&((i||(i=t["spans_"+e.id]={}))[l]=o.markedSpans),++l})}function Ps(e){if(!e)return null;for(var t,n=0;n-1&&(Y(a)[h]=u[h],delete u[h])}}return r}function Ni(e,t,n,r){if(r){var i=e.anchor;if(n){var l=I(t,i)<0;l!=I(n,i)<0?(i=t,t=n):l!=I(t,n)<0&&(t=n)}return new q(i,t)}else return new q(n||t,t)}function gn(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Se(e,new Ke([Ni(e.sel.primary(),t,n,i)],0),r)}function ho(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),l=0;l=t.ch:a.to>t.ch))){if(i&&(he(s,"beforeCursorEnter"),s.explicitlyCleared))if(l.markedSpans){--o;continue}else break;if(!s.atomic)continue;if(n){var h=s.find(r<0?1:-1),d=void 0;if((r<0?f:u)&&(h=mo(e,h,-r,h&&h.line==t.line?l:null)),h&&h.line==t.line&&(d=I(h,n))&&(r<0?d<0:d>0))return $t(e,h,t,r,i)}var c=s.find(r<0?-1:1);return(r<0?u:f)&&(c=mo(e,c,r,c.line==t.line?l:null)),c?$t(e,c,t,r,i):null}}return t}function mn(e,t,n,r,i){var l=r||1,o=$t(e,t,n,l,i)||!i&&$t(e,t,n,l,!0)||$t(e,t,n,-l,i)||!i&&$t(e,t,n,-l,!0);return o||(e.cantEdit=!0,y(e.first,0))}function mo(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?z(e,y(t.line-1)):null:n>0&&t.ch==(r||D(e,t.line)).text.length?t.line=0;--i)wo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else wo(e,t)}}function wo(e,t){if(!(t.text.length==1&&t.text[0]==""&&I(t.from,t.to)==0)){var n=Li(e,t);so(e,t,n,e.cm?e.cm.curOp.id:NaN),Dr(e,t,n,jn(e,t));var r=[];Ct(e,function(i,l){!l&&ae(r,i.history)==-1&&(ko(i.history,t),r.push(i.history)),Dr(i,t,null,jn(i,t))})}}function bn(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,l,o=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--c){var p=d(c);if(p)return p.v}}}}function Co(e,t){if(t!=0&&(e.first+=t,e.sel=new Ke(Xr(e.sel.ranges,function(i){return new q(y(i.anchor.line+t,i.anchor.ch),y(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){Oe(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linel&&(t={from:t.from,to:y(l,D(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Dt(e,t.from,t.to),n||(n=Li(e,t)),e.cm?Is(e.cm,t,r):Ti(e,t,r),yn(e,n,tt),e.cantEdit&&mn(e,y(e.firstLine(),0))&&(e.cantEdit=!1)}}function Is(e,t,n){var r=e.doc,i=e.display,l=t.from,o=t.to,a=!1,s=l.line;e.options.lineWrapping||(s=Z(Qe(D(r,l.line))),r.iter(s,o.line+1,function(c){if(c==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&ji(e),Ti(r,t,n,Rl(e)),e.options.lineWrapping||(r.iter(s,l.line+t.text.length,function(c){var p=tn(c);p>i.maxLineLength&&(i.maxLine=c,i.maxLineLength=p,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),Ta(r,l.line),Tr(e,400);var u=t.text.length-(o.line-l.line)-1;t.full?Oe(e):l.line==o.line&&t.text.length==1&&!io(e.doc,t)?mt(e,l.line,"text"):Oe(e,l.line,o.line+1,u);var f=qe(e,"changes"),h=qe(e,"change");if(h||f){var d={from:l,to:o,text:t.text,removed:t.removed,origin:t.origin};h&&ye(e,"change",e,d),f&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function tr(e,t,n,r,i){var l;r||(r=n),I(r,n)<0&&(l=[r,n],n=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),er(e,{from:n,to:r,text:t,origin:i})}function So(e,t,n,r){n1||!(this.children[0]instanceof Ar))){var a=[];this.collapse(a),this.children=[new Ar(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var o=i.lines.length%25+25,a=o;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=f,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Oe(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&go(e.doc)),e&&ye(e,"markerCleared",e,this,r,i),t&&zt(e),this.parent&&this.parent.clear()}},St.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||o==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=v("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(gl(e,t.line,t,n,l)||t.line!=n.line&&gl(e,n.line,t,n,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Na()}l.addToHistory&&so(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(h){s&&l.collapsed&&!s.options.lineWrapping&&Qe(h)==s.display.maxLine&&(u=!0),l.collapsed&&a!=t.line&&rt(h,0),Oa(h,new jr(l,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),l.collapsed&&e.iter(t.line,n.line+1,function(h){yt(e,h)&&rt(h,0)}),l.clearOnEnter&&E(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(Ma(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Mo,l.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),l.collapsed)Oe(s,t.line,n.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var f=t.line;f<=n.line;f++)mt(s,f,"text");l.atomic&&go(s.doc),ye(s,"markerAdded",s,l)}return l}var Pr=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)er(this,r[s]);a?po(this,a):this.cm&&Jt(this.cm)}),undo:be(function(){bn(this,"undo")}),redo:be(function(){bn(this,"redo")}),undoSelection:be(function(){bn(this,"undo",!0)}),redoSelection:be(function(){bn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=z(this,e),t=z(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(l){var o=l.markedSpans;if(o)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=l,++n}),z(this,y(n,t))},indexFromPos:function(e){e=z(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),yn(t.doc,xt(n,n)),h)for(var d=0;d=0;a--)tr(e.doc,"",r[a].from,r[a].to,"+delete");Jt(e)})}function Oi(e,t,n){var r=Qi(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ai(e,t,n){var r=Oi(e,t.ch,n);return r==null?null:new y(t.line,r,n<0?"after":"before")}function Wi(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var l=st(n,t.doc.direction);if(l){var o=i<0?Y(l):l[0],a=i<0==(o.level==1),s=a?"after":"before",u;if(o.level>0||t.doc.direction=="rtl"){var f=qt(t,n);u=i<0?n.text.length-1:0;var h=lt(t,f,u).top;u=fr(function(d){return lt(t,f,d).top==h},i<0==(o.level==1)?o.from:o.to-1,u),s=="before"&&(u=Oi(n,u,1))}else u=i<0?o.to:o.from;return new y(r,u,s)}}return new y(r,i<0?n.text.length:0,i<0?"before":"after")}function js(e,t,n,r){var i=st(t,e.doc.direction);if(!i)return Ai(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var l=cr(i,n.ch,n.sticky),o=i[l];if(e.doc.direction=="ltr"&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&d>=f.begin)){var c=h?"before":"after";return new y(n.line,d,c)}}var p=function(w,S,C){for(var k=function(j,xe){return xe?new y(n.line,a(j,1),"before"):new y(n.line,j,"after")};w>=0&&w0==(P.level!=1),B=A?C.begin:a(C.end,-1);if(P.from<=B&&B0?f.end:a(f.begin,-1);return b!=null&&!(r>0&&b==t.text.length)&&(g=p(r>0?0:i.length-1,r,u(b)),g)?g:null}var Ir={selectAll:bo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),tt)},killLine:function(e){return ir(e,function(t){if(t.empty()){var n=D(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new y(i.line,i.ch+1),e.replaceRange(l.charAt(i.ch-1)+l.charAt(i.ch-2),y(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var o=D(e.doc,i.line-1).text;o&&(i=new y(i.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),y(i.line-1,o.length-1),i,"+transpose"))}}n.push(new q(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Be(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&I(t,this.pos)==0&&n==this.button};var Br,Rr;function iu(e,t){var n=+new Date;return Rr&&Rr.compare(n,e,t)?(Br=Rr=null,"triple"):Br&&Br.compare(n,e,t)?(Rr=new Pi(n,e,t),Br=null,"double"):(Br=new Pi(n,e,t),Rr=null,"single")}function Ko(e){var t=this,n=t.display;if(!(ge(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,ht(n,e)){J||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!Fi(t,e)){var r=Ht(t,e),i=$i(e),l=r?iu(r,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&lu(t,i,r,l,e))&&(i==1?r?au(t,r,l,e):In(e)==n.scroller&&De(e):i==2?(r&&gn(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(Ue?t.display.input.onContextMenu(e):vi(t)))}}}function lu(e,t,n,r,i){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,zr(e,Po(l,i),i,function(o){if(typeof o=="string"&&(o=Ir[o]),!o)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=o(e,n)!=Kr}finally{e.state.suppressEdits=!1}return a})}function ou(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var l=Ee?n.shiftKey&&n.metaKey:n.altKey;i.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=fe?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(fe?n.altKey:n.ctrlKey)),i}function au(e,t,n,r){T?setTimeout(Tt(Kl,e),0):e.curOp.focus=W();var i=ou(e,n,r),l=e.doc.sel,o;e.options.dragDrop&&va&&!e.isReadOnly()&&n=="single"&&(o=l.contains(t))>-1&&(I((o=l.ranges[o]).from(),t)<0||t.xRel>0)&&(I(o.to(),t)>0||t.xRel<0)?su(e,r,t,i):uu(e,r,t,i)}function su(e,t,n,r){var i=e.display,l=!1,o=me(e,function(u){J&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:vi(e)),Ge(i.wrapper.ownerDocument,"mouseup",o),Ge(i.wrapper.ownerDocument,"mousemove",a),Ge(i.scroller,"dragstart",s),Ge(i.scroller,"drop",o),l||(De(u),r.addNew||gn(e.doc,n,null,null,r.extend),J&&!Ne||T&&U==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){l=l||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return l=!0};J&&(i.scroller.draggable=!0),e.state.draggingText=o,o.copy=!r.moveOnDrag,E(i.wrapper.ownerDocument,"mouseup",o),E(i.wrapper.ownerDocument,"mousemove",a),E(i.scroller,"dragstart",s),E(i.scroller,"drop",o),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function _o(e,t,n){if(n=="char")return new q(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new q(y(t.line,0),z(e.doc,y(t.line+1,0)));var r=n(e,t);return new q(r.from,r.to)}function uu(e,t,n,r){T&&vi(e);var i=e.display,l=e.doc;De(t);var o,a,s=l.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=l.sel.contains(n),a>-1?o=u[a]:o=new q(n,n)):(o=l.sel.primary(),a=l.sel.primIndex),r.unit=="rectangle")r.addNew||(o=new q(n,n)),n=Ht(e,t,!0,!0),a=-1;else{var f=_o(e,n,r.unit);r.extend?o=Ni(o,f.anchor,f.head,r.extend):o=f}r.addNew?a==-1?(a=u.length,Se(l,je(e,u.concat([o]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(Se(l,je(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=l.sel):Di(l,a,o,On):(a=0,Se(l,new Ke([o],0),On),s=l.sel);var h=n;function d(C){if(I(h,C)!=0)if(h=C,r.unit=="rectangle"){for(var k=[],P=e.options.tabSize,A=Xe(D(l,n.line).text,n.ch,P),B=Xe(D(l,C.line).text,C.ch,P),j=Math.min(A,B),xe=Math.max(A,B),te=Math.min(n.line,C.line),Re=Math.min(e.lastLine(),Math.max(n.line,C.line));te<=Re;te++){var We=D(l,te).text,de=An(We,j,P);j==xe?k.push(new q(y(te,de),y(te,de))):We.length>de&&k.push(new q(y(te,de),y(te,An(We,xe,P))))}k.length||k.push(new q(n,n)),Se(l,je(e,s.ranges.slice(0,a).concat(k),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(C)}else{var He=o,Ce=_o(e,C,r.unit),ve=He.anchor,pe;I(Ce.anchor,ve)>0?(pe=Ce.head,ve=Qr(He.from(),Ce.anchor)):(pe=Ce.anchor,ve=Zr(He.to(),Ce.head));var ne=s.ranges.slice(0);ne[a]=fu(e,new q(z(l,ve),pe)),Se(l,je(e,ne,a),On)}}var c=i.wrapper.getBoundingClientRect(),p=0;function g(C){var k=++p,P=Ht(e,C,!0,r.unit=="rectangle");if(!!P)if(I(P,h)!=0){e.curOp.focus=W(),d(P);var A=fn(i,l);(P.line>=A.to||P.linec.bottom?20:0;B&&setTimeout(me(e,function(){p==k&&(i.scroller.scrollTop+=B,g(C))}),50)}}function b(C){e.state.selectingText=!1,p=1/0,C&&(De(C),i.input.focus()),Ge(i.wrapper.ownerDocument,"mousemove",w),Ge(i.wrapper.ownerDocument,"mouseup",S),l.history.lastSelOrigin=null}var w=me(e,function(C){C.buttons===0||!$i(C)?b(C):g(C)}),S=me(e,b);e.state.selectingText=S,E(i.wrapper.ownerDocument,"mousemove",w),E(i.wrapper.ownerDocument,"mouseup",S)}function fu(e,t){var n=t.anchor,r=t.head,i=D(e.doc,n.line);if(I(n,r)==0&&n.sticky==r.sticky)return t;var l=st(i);if(!l)return t;var o=cr(l,n.ch,n.sticky),a=l[o];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=o+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==l.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var f=cr(l,r.ch,r.sticky),h=f-o||(r.ch-n.ch)*(a.level==1?-1:1);f==s-1||f==s?u=h<0:u=h>0}var d=l[s+(u?-1:0)],c=u==(d.level==1),p=c?d.from:d.to,g=c?"after":"before";return n.ch==p&&n.sticky==g?t:new q(new y(n.line,p,g),r)}function Xo(e,t,n,r){var i,l;if(t.touches)i=t.touches[0].clientX,l=t.touches[0].clientY;else try{i=t.clientX,l=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&De(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(l>a.bottom||!qe(e,n))return En(t);l-=a.top-o.viewOffset;for(var s=0;s=i){var f=Ot(e.doc,l),h=e.display.gutterSpecs[s];return he(e,n,e,f,h.className,t),En(t)}}}function Fi(e,t){return Xo(e,t,"gutterClick",!0)}function qo(e,t){ht(e.display,t)||hu(e,t)||ge(e,t,"contextmenu")||Ue||e.display.input.onContextMenu(t)}function hu(e,t){return qe(e,"gutterContextMenu")?Xo(e,t,"gutterContextMenu",!1):!1}function Yo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),xr(e)}var lr={toString:function(){return"CodeMirror.Init"}},Zo={},Sn={};function cu(e){var t=e.optionHandlers;function n(r,i,l,o){e.defaults[r]=i,l&&(t[r]=o?function(a,s,u){u!=lr&&l(a,s,u)}:l)}e.defineOption=n,e.Init=lr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,ki(r)},!0),n("indentUnit",2,ki,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Nr(r),xr(r),Oe(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var l=[],o=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var f=s.text.indexOf(i,u);if(f==-1)break;u=f+i.length,l.push(y(o,f))}o++});for(var a=l.length-1;a>=0;a--)tr(r.doc,i,l[a],y(l[a].line,l[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,i,l){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),l!=lr&&r.refresh()}),n("specialCharPlaceholder",Ua,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",Ye?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!Ze),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){Yo(r),Mr(r)},!0),n("keyMap","default",function(r,i,l){var o=wn(i),a=l!=lr&&wn(l);a&&a.detach&&a.detach(r,o),o.attach&&o.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,pu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Si(i,r.options.lineNumbers),Mr(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?hi(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return jt(r)},!0),n("scrollbarStyle","native",function(r){Ql(r),jt(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Si(r.options.gutters,i),Mr(r)},!0),n("firstLineNumber",1,Mr,!0),n("lineNumberFormatter",function(r){return r},Mr,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Qt(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,du),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Nr,!0),n("addModeClass",!1,Nr,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Nr,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function du(e,t,n){var r=n&&n!=lr;if(!t!=!r){var i=e.display.dragFunctions,l=t?E:Ge;l(e.display.scroller,"dragstart",i.start),l(e.display.scroller,"dragenter",i.enter),l(e.display.scroller,"dragover",i.over),l(e.display.scroller,"dragleave",i.leave),l(e.display.scroller,"drop",i.drop)}}function pu(e){e.options.lineWrapping?(ee(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(le(e.display.wrapper,"CodeMirror-wrap"),ti(e)),ci(e),Oe(e),xr(e),setTimeout(function(){return jt(e)},100)}function $(e,t){var n=this;if(!(this instanceof $))return new $(e,t);this.options=t=t?et(t):{},et(Zo,t,!1);var r=t.value;typeof r=="string"?r=new Ae(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new $.inputStyles[t.inputStyle](this),l=this.display=new Ms(e,r,i,t);l.wrapper.CodeMirror=this,Yo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ql(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new gt,keySeq:null,specialChars:null},t.autofocus&&!Ye&&l.input.focus(),T&&U<11&&setTimeout(function(){return n.display.input.reset(!0)},20),vu(this),qs(),It(this),this.curOp.forceUpdate=!0,lo(this,r),t.autofocus&&!Ye||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&gi(n)},20):Qt(this);for(var o in Sn)Sn.hasOwnProperty(o)&&Sn[o](this,t[o],lr);Vl(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}E(t.scroller,"touchstart",function(s){if(!ge(e,s)&&!l(s)&&!Fi(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),E(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),E(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!ht(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var f=e.coordsChar(t.activeTouch,"page"),h;!u.prev||o(u,u.prev)?h=new q(f,f):!u.prev.prev||o(u,u.prev.prev)?h=e.findWordAt(f):h=new q(y(f.line,0),z(e.doc,y(f.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),De(s)}i()}),E(t.scroller,"touchcancel",i),E(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Sr(e,t.scroller.scrollTop),Ft(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))}),E(t.scroller,"mousewheel",function(s){return to(e,s)}),E(t.scroller,"DOMMouseScroll",function(s){return to(e,s)}),E(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){ge(e,s)||dr(s)},over:function(s){ge(e,s)||(Xs(e,s),dr(s))},start:function(s){return _s(e,s)},drop:me(e,Ks),leave:function(s){ge(e,s)||Oo(e)}};var a=t.input.getField();E(a,"keyup",function(s){return Uo.call(e,s)}),E(a,"keydown",me(e,Ro)),E(a,"keypress",me(e,Go)),E(a,"focus",function(s){return gi(e,s)}),E(a,"blur",function(s){return Qt(e,s)})}var Ei=[];$.defineInitHook=function(e){return Ei.push(e)};function Ur(e,t,n,r){var i=e.doc,l;n==null&&(n="add"),n=="smart"&&(i.mode.indent?l=vr(e,t).state:n="prev");var o=e.options.tabSize,a=D(i,t),s=Xe(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],f;if(!r&&!/\S/.test(a.text))f=0,n="not";else if(n=="smart"&&(f=i.mode.indent(l,a.text.slice(u.length),a.text),f==Kr||f>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?f=Xe(D(i,t-1).text,null,o):f=0:n=="add"?f=s+e.options.indentUnit:n=="subtract"?f=s-e.options.indentUnit:typeof n=="number"&&(f=s+n),f=Math.max(0,f);var h="",d=0;if(e.options.indentWithTabs)for(var c=Math.floor(f/o);c;--c)d+=o,h+=" ";if(do,s=Rn(t),u=null;if(a&&r.ranges.length>1)if(Ve&&Ve.text.join(` -`)==t){if(r.ranges.length%Ve.text.length==0){u=[];for(var f=0;f=0;d--){var c=r.ranges[d],p=c.from(),g=c.to();c.empty()&&(n&&n>0?p=y(p.line,p.ch-n):e.state.overwrite&&!a?g=y(g.line,Math.min(D(l,g.line).text.length,g.ch+Y(s).length)):a&&Ve&&Ve.lineWise&&Ve.text.join(` -`)==s.join(` -`)&&(p=g=y(p.line,0)));var b={from:p,to:g,text:u?u[d%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};er(e.doc,b),ye(e,"inputRead",e,b)}t&&!a&&Jo(e,t),Jt(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Qo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Be(t,function(){return Ii(t,n,0,null,"paste")}),!0}function Jo(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var l=e.getModeAt(i.head),o=!1;if(l.electricChars){for(var a=0;a-1){o=Ur(e,i.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(D(e.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Ur(e,i.head.line,"smart"));o&&ye(e,"electricInput",e,i.head.line)}}}function jo(e){for(var t=[],n=[],r=0;rl&&(Ur(this,a.head.line,r,!0),l=a.head.line,o==this.doc.sel.primIndex&&Jt(this));else{var s=a.from(),u=a.to(),f=Math.max(l,s.line);l=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=f;h0&&Di(this.doc,o,new q(s,d[o].to()),tt)}}}),getTokenAt:function(r,i){return al(this,r,i)},getLineTokens:function(r,i){return al(this,y(r),i,!0)},getTokenTypeAt:function(r){r=z(this.doc,r);var i=il(this,D(this.doc,r.line)),l=0,o=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=l+o>>1;if((u?i[u*2-1]:0)>=a)o=u;else if(i[u*2+1]s&&(r=s,o=!0),a=D(this.doc,r)}else a=r;return ln(this,a,{top:0,left:0},i||"page",l||o).top+(o?this.doc.height-ft(a):0)},defaultTextHeight:function(){return Yt(this.display)},defaultCharWidth:function(){return Zt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,l,o,a){var s=this.display;r=Je(this,z(this.doc,r));var u=r.bottom,f=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),o=="over")u=r.top;else if(o=="above"||o=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),d=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(o=="above"||r.bottom+i.offsetHeight>h)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=h&&(u=r.bottom),f+i.offsetWidth>d&&(f=d-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(f=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?f=0:a=="middle"&&(f=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=f+"px"),l&&ds(this,{left:f,top:u,right:f+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:Te(Ro),triggerOnKeyPress:Te(Go),triggerOnKeyUp:Uo,triggerOnMouseDown:Te(Ko),execCommand:function(r){if(Ir.hasOwnProperty(r))return Ir[r].call(null,this)},triggerElectric:Te(function(r){Jo(this,r)}),findPosH:function(r,i,l,o){var a=1;i<0&&(a=-1,i=-i);for(var s=z(this.doc,r),u=0;u0&&f(l.charAt(o-1));)--o;for(;a.5||this.options.lineWrapping)&&ci(this),he(this,"refresh",this)}),swapDoc:Te(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),lo(this,r),xr(this),this.display.input.reset(),Cr(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,ye(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ut(e),e.registerHelper=function(r,i,l){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=l},e.registerGlobalHelper=function(r,i,l,o){e.registerHelper(r,i,o),n[r]._global.push({pred:l,val:o})}}function zi(e,t,n,r,i){var l=t,o=n,a=D(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var S=t.line+s;return S=e.first+e.size?!1:(t=new y(S,t.ch,t.sticky),a=D(e,S))}function f(S){var C;if(r=="codepoint"){var k=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(k))C=null;else{var P=n>0?k>=55296&&k<56320:k>=56320&&k<57343;C=new y(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(P?2:1))),-n)}}else i?C=js(e.cm,a,t,n):C=Ai(a,t,n);if(C==null)if(!S&&u())t=Wi(i,e.cm,a,t.line,s);else return!1;else t=C;return!0}if(r=="char"||r=="codepoint")f();else if(r=="column")f(!0);else if(r=="word"||r=="group")for(var h=null,d=r=="group",c=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0&&!f(!p));p=!1){var g=a.text.charAt(t.ch)||` -`,b=qr(g,c)?"w":d&&g==` -`?"n":!d||/\s/.test(g)?null:"p";if(d&&!p&&!b&&(b="s"),h&&h!=b){n<0&&(n=1,f(),t.sticky="after");break}if(b&&(h=b),n>0&&!f(!p))break}var w=mn(e,t,l,o,!0);return Yn(l,w)&&(w.hitSide=!0),w}function ea(e,t,n,r){var i=e.doc,l=t.left,o;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(a-.5*Yt(e.display),3);o=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(o=n>0?t.bottom+3:t.top-3);for(var u;u=si(e,l,o),!!u.outside;){if(n<0?o<=0:o>=i.height){u.hitSide=!0;break}o+=n*5}return u}var Q=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new gt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Q.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,Vo(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function l(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}E(i,"paste",function(a){!l(a)||ge(r,a)||Qo(a,r)||U<=11&&setTimeout(me(r,function(){return t.updateFromDOM()}),20)}),E(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),E(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),E(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),E(i,"touchstart",function(){return n.forceCompositionEnd()}),E(i,"input",function(){t.composing||t.readFromDOMSoon()});function o(a){if(!(!l(a)||ge(r,a))){if(r.somethingSelected())Ln({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=jo(r);Ln({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,tt),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Ve.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var f=$o(),h=f.firstChild;r.display.lineSpace.insertBefore(f,r.display.lineSpace.firstChild),h.value=Ve.text.join(` -`);var d=W();vt(h),setTimeout(function(){r.display.lineSpace.removeChild(f),d.focus(),d==i&&n.showPrimarySelection()},50)}}E(i,"copy",o),E(i,"cut",o)},Q.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Q.prototype.prepareSelection=function(){var e=Gl(this.cm,!1);return e.focus=W()==this.div,e},Q.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Q.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Q.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&ta(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=y(r.line-1,D(e.doc,r.line-1).length)),i.ch==D(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var l,o,a;r.line==t.viewFrom||(l=Pt(e,r.line))==0?(o=Z(t.view[0].line),a=t.view[0].node):(o=Z(t.view[l].line),a=t.view[l-1].node.nextSibling);var s=Pt(e,i.line),u,f;if(s==t.view.length-1?(u=t.viewTo-1,f=t.lineDiv.lastChild):(u=Z(t.view[s+1].line)-1,f=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(mu(e,a,f,o,u)),d=Dt(e.doc,y(o,0),y(u,D(e.doc,u).text.length));h.length>1&&d.length>1;)if(Y(h)==Y(d))h.pop(),d.pop(),u--;else if(h[0]==d[0])h.shift(),d.shift(),o++;else break;for(var c=0,p=0,g=h[0],b=d[0],w=Math.min(g.length,b.length);cr.ch&&S.charCodeAt(S.length-p-1)==C.charCodeAt(C.length-p-1);)c--,p++;h[h.length-1]=S.slice(0,S.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(c).replace(/\u200b+$/,"");var P=y(o,c),A=y(u,d.length?Y(d).length-p:0);if(h.length>1||h[0]||I(P,A))return tr(e.doc,h,P,A,"+input"),!0},Q.prototype.ensurePolled=function(){this.forceCompositionEnd()},Q.prototype.reset=function(){this.forceCompositionEnd()},Q.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Q.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Q.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Be(this.cm,function(){return Oe(e.cm)})},Q.prototype.setUneditable=function(e){e.contentEditable="false"},Q.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||me(this.cm,Ii)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Q.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Q.prototype.onContextMenu=function(){},Q.prototype.resetPosition=function(){},Q.prototype.needsContentAttribute=!0;function ta(e,t){var n=li(e,t.line);if(!n||n.hidden)return null;var r=D(e.doc,t.line),i=Nl(n,r,t.line),l=st(r,e.doc.direction),o="left";if(l){var a=cr(l,t.ch);o=a%2?"right":"left"}var s=Al(i.map,t.ch,o);return s.offset=s.collapse=="right"?s.end:s.start,s}function yu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function or(e,t){return t&&(e.bad=!0),e}function mu(e,t,n,r,i){var l="",o=!1,a=e.doc.lineSeparator(),s=!1;function u(c){return function(p){return p.id==c}}function f(){o&&(l+=a,s&&(l+=a),o=s=!1)}function h(c){c&&(f(),l+=c)}function d(c){if(c.nodeType==1){var p=c.getAttribute("cm-text");if(p){h(p);return}var g=c.getAttribute("cm-marker"),b;if(g){var w=e.findMarks(y(r,0),y(i+1,0),u(+g));w.length&&(b=w[0].find(0))&&h(Dt(e.doc,b.from,b.to).join(a));return}if(c.getAttribute("contenteditable")=="false")return;var S=/^(pre|div|p|li|table|br)$/i.test(c.nodeName);if(!/^br$/i.test(c.nodeName)&&c.textContent.length==0)return;S&&f();for(var C=0;C=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),E(i,"paste",function(o){ge(r,o)||Qo(o,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function l(o){if(!ge(r,o)){if(r.somethingSelected())Ln({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=jo(r);Ln({lineWise:!0,text:a.text}),o.type=="cut"?r.setSelections(a.ranges,null,tt):(n.prevInput="",i.value=a.text.join(` -`),vt(i))}else return;o.type=="cut"&&(r.state.cutIncoming=+new Date)}}E(i,"cut",l),E(i,"copy",l),E(e.scroller,"paste",function(o){if(!(ht(e,o)||ge(r,o))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=o.clipboardData,i.dispatchEvent(a)}}),E(e.lineSpace,"selectstart",function(o){ht(e,o)||De(o)}),E(i,"compositionstart",function(){var o=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:o,range:r.markText(o,r.getCursor("to"),{className:"CodeMirror-composing"})}}),E(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},se.prototype.createField=function(e){this.wrapper=$o(),this.textarea=this.wrapper.firstChild},se.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},se.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Gl(e);if(e.options.moveInputWithCursor){var i=Je(e,n.sel.primary().head,"div"),l=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+o.top-l.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+o.left-l.left))}return r},se.prototype.showSelection=function(e){var t=this.cm,n=t.display;re(n.cursorDiv,e.cursors),re(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},se.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&vt(this.textarea),T&&U>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",T&&U>=9&&(this.hasSelection=null))}},se.prototype.getField=function(){return this.textarea},se.prototype.supportsTouch=function(){return!1},se.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ye||W()!=this.textarea))try{this.textarea.focus()}catch{}},se.prototype.blur=function(){this.textarea.blur()},se.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},se.prototype.receivedFocus=function(){this.slowPoll()},se.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},se.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},se.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||ma(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(T&&U>=9&&this.hasSelection===i||fe&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var l=i.charCodeAt(0);if(l==8203&&!r&&(r="\u200B"),l==8666)return this.reset(),this.cm.execCommand("undo")}for(var o=0,a=Math.min(r.length,i.length);o1e3||i.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},se.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},se.prototype.onKeyPress=function(){T&&U>=9&&(this.hasSelection=null),this.fastPoll()},se.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var l=Ht(n,e),o=r.scroller.scrollTop;if(!l||X)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(l)==-1&&me(n,Se)(n.doc,xt(l),tt);var s=i.style.cssText,u=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+`px; - z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;J&&(h=window.scrollY),r.input.focus(),J&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=c,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function d(){if(i.selectionStart!=null){var g=n.somethingSelected(),b="\u200B"+(g?i.value:"");i.value="\u21DA",i.value=b,t.prevInput=g?"":"\u200B",i.selectionStart=1,i.selectionEnd=b.length,r.selForContextMenu=n.doc.sel}}function c(){if(t.contextMenuPending==c&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,T&&U<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=o),i.selectionStart!=null)){(!T||T&&U<9)&&d();var g=0,b=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?me(n,bo)(n):g++<10?r.detectingSelectAll=setTimeout(b,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(b,200)}}if(T&&U>=9&&d(),Ue){dr(e);var p=function(){Ge(window,"mouseup",p),setTimeout(c,20)};E(window,"mouseup",p)}else setTimeout(c,50)},se.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},se.prototype.setUneditable=function(){},se.prototype.needsContentAttribute=!1;function xu(e,t){if(t=t?et(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=W();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(E(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;i=l.submit;try{var o=l.submit=function(){r(),l.submit=i,l.submit(),l.submit=o}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Ge(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=$(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function wu(e){e.off=Ge,e.on=E,e.wheelEventPixels=Ns,e.Doc=Ae,e.splitLines=Rn,e.countColumn=Xe,e.findColumn=An,e.isWordChar=Hn,e.Pass=Kr,e.signal=he,e.Line=_t,e.changeEnd=wt,e.scrollbarModel=Zl,e.Pos=y,e.cmpPos=I,e.modes=Gn,e.mimeModes=Gt,e.resolveMode=Yr,e.getMode=Kn,e.modeExtensions=Kt,e.extendMode=Sa,e.copyState=Nt,e.startState=el,e.innerMode=_n,e.commands=Ir,e.keyMap=dt,e.keyName=Fo,e.isModifierKey=Ho,e.lookupKey=nr,e.normalizeKeyMap=Js,e.StringStream=ce,e.SharedTextMarker=Pr,e.TextMarker=St,e.LineWidget=Hr,e.e_preventDefault=De,e.e_stopPropagation=Vi,e.e_stop=dr,e.addClass=ee,e.contains=m,e.rmClass=le,e.keyNames=Lt}cu($),gu($);var Cu="iter insert remove copy getEditor constructor".split(" ");for(var Tn in Ae.prototype)Ae.prototype.hasOwnProperty(Tn)&&ae(Cu,Tn)<0&&($.prototype[Tn]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ae.prototype[Tn]));return Ut(Ae),$.inputStyles={textarea:se,contenteditable:Q},$.defineMode=function(e){!$.defaults.mode&&e!="null"&&($.defaults.mode=e),wa.apply(this,arguments)},$.defineMIME=Ca,$.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),$.defineMIME("text/plain","null"),$.defineExtension=function(e,t){$.prototype[e]=t},$.defineDocExtension=function(e,t){Ae.prototype[e]=t},$.fromTextArea=xu,wu($),$.version="5.65.4",$})})(Dn);var ju=Dn.exports;(function(M,H){(function(x){x(Dn.exports)})(function(x){var K={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},F={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};x.defineMode("xml",function(R,G){var _=R.indentUnit,T={},U=G.htmlMode?K:F;for(var J in U)T[J]=U[J];for(var J in G)T[J]=G[J];var ie,O;function X(v,L){function m(_e){return L.tokenize=_e,_e(v,L)}var W=v.next();if(W=="<")return v.eat("!")?v.eat("[")?v.match("CDATA[")?m(ue("atom","]]>")):null:v.match("--")?m(ue("comment","-->")):v.match("DOCTYPE",!0,!0)?(v.eatWhile(/[\w\._\-]/),m(Fe(1))):null:v.eat("?")?(v.eatWhile(/[\w\._\-]/),L.tokenize=ue("meta","?>"),"meta"):(ie=v.eat("/")?"closeTag":"openTag",L.tokenize=Ne,"tag bracket");if(W=="&"){var ee;return v.eat("#")?v.eat("x")?ee=v.eatWhile(/[a-fA-F\d]/)&&v.eat(";"):ee=v.eatWhile(/[\d]/)&&v.eat(";"):ee=v.eatWhile(/[\w\.\-:]/)&&v.eat(";"),ee?"atom":"error"}else return v.eatWhile(/[^&<]/),null}X.isInText=!0;function Ne(v,L){var m=v.next();if(m==">"||m=="/"&&v.eat(">"))return L.tokenize=X,ie=m==">"?"endTag":"selfcloseTag","tag bracket";if(m=="=")return ie="equals",null;if(m=="<"){L.tokenize=X,L.state=Ze,L.tagName=L.tagStart=null;var W=L.tokenize(v,L);return W?W+" tag error":"tag error"}else return/[\'\"]/.test(m)?(L.tokenize=at(m),L.stringStartCol=v.column(),L.tokenize(v,L)):(v.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function at(v){var L=function(m,W){for(;!m.eol();)if(m.next()==v){W.tokenize=Ne;break}return"string"};return L.isInAttribute=!0,L}function ue(v,L){return function(m,W){for(;!m.eol();){if(m.match(L)){W.tokenize=X;break}m.next()}return v}}function Fe(v){return function(L,m){for(var W;(W=L.next())!=null;){if(W=="<")return m.tokenize=Fe(v+1),m.tokenize(L,m);if(W==">")if(v==1){m.tokenize=X;break}else return m.tokenize=Fe(v-1),m.tokenize(L,m)}return"meta"}}function ke(v){return v&&v.toLowerCase()}function Ye(v,L,m){this.prev=v.context,this.tagName=L||"",this.indent=v.indented,this.startOfLine=m,(T.doNotIndent.hasOwnProperty(L)||v.context&&v.context.noIndent)&&(this.noIndent=!0)}function fe(v){v.context&&(v.context=v.context.prev)}function Ee(v,L){for(var m;;){if(!v.context||(m=v.context.tagName,!T.contextGrabbers.hasOwnProperty(ke(m))||!T.contextGrabbers[ke(m)].hasOwnProperty(ke(L))))return;fe(v)}}function Ze(v,L,m){return v=="openTag"?(m.tagStart=L.column(),Ie):v=="closeTag"?$e:Ze}function Ie(v,L,m){return v=="word"?(m.tagName=L.current(),O="tag",le):T.allowMissingTagName&&v=="endTag"?(O="tag bracket",le(v,L,m)):(O="error",Ie)}function $e(v,L,m){if(v=="word"){var W=L.current();return m.context&&m.context.tagName!=W&&T.implicitlyClosed.hasOwnProperty(ke(m.context.tagName))&&fe(m),m.context&&m.context.tagName==W||T.matchClosing===!1?(O="tag",Ue):(O="tag error",ze)}else return T.allowMissingTagName&&v=="endTag"?(O="tag bracket",Ue(v,L,m)):(O="error",ze)}function Ue(v,L,m){return v!="endTag"?(O="error",Ue):(fe(m),Ze)}function ze(v,L,m){return O="error",Ue(v,L,m)}function le(v,L,m){if(v=="word")return O="attribute",oe;if(v=="endTag"||v=="selfcloseTag"){var W=m.tagName,ee=m.tagStart;return m.tagName=m.tagStart=null,v=="selfcloseTag"||T.autoSelfClosers.hasOwnProperty(ke(W))?Ee(m,W):(Ee(m,W),m.context=new Ye(m,W,ee==m.indented)),Ze}return O="error",le}function oe(v,L,m){return v=="equals"?re:(T.allowMissing||(O="error"),le(v,L,m))}function re(v,L,m){return v=="string"?N:v=="word"&&T.allowUnquoted?(O="string",le):(O="error",le(v,L,m))}function N(v,L,m){return v=="string"?N:le(v,L,m)}return{startState:function(v){var L={tokenize:X,state:Ze,indented:v||0,tagName:null,tagStart:null,context:null};return v!=null&&(L.baseIndent=v),L},token:function(v,L){if(!L.tagName&&v.sol()&&(L.indented=v.indentation()),v.eatSpace())return null;ie=null;var m=L.tokenize(v,L);return(m||ie)&&m!="comment"&&(O=null,L.state=L.state(ie||m,v,L),O&&(m=O=="error"?m+" error":O)),m},indent:function(v,L,m){var W=v.context;if(v.tokenize.isInAttribute)return v.tagStart==v.indented?v.stringStartCol+1:v.indented+_;if(W&&W.noIndent)return x.Pass;if(v.tokenize!=Ne&&v.tokenize!=X)return m?m.match(/^(\s*)/)[0].length:0;if(v.tagName)return T.multilineTagIndentPastTag!==!1?v.tagStart+v.tagName.length+2:v.tagStart+_*(T.multilineTagIndentFactor||1);if(T.alignCDATA&&/$/,blockCommentStart:"",configuration:T.htmlMode?"html":"xml",helperType:T.htmlMode?"html":"xml",skipAttribute:function(v){v.state==re&&(v.state=le)},xmlCurrentTag:function(v){return v.tagName?{name:v.tagName,close:v.type=="closeTag"}:null},xmlCurrentContext:function(v){for(var L=[],m=v.context;m;m=m.prev)L.push(m.tagName);return L.reverse()}}}),x.defineMIME("text/xml","xml"),x.defineMIME("application/xml","xml"),x.mimeModes.hasOwnProperty("text/html")||x.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(M,H){(function(x){x(Dn.exports)})(function(x){var K=x.Pos;function F(G,_,T){return T?G.indexOf(_)>=0:G.lastIndexOf(_,0)==0}function R(G,_){var T=_&&_.schemaInfo,U=_&&_.quoteChar||'"',J=_&&_.matchInMiddle;if(!T)return;var ie=G.getCursor(),O=G.getTokenAt(ie);O.end>ie.ch&&(O.end=ie.ch,O.string=O.string.slice(0,ie.ch-O.start));var X=x.innerMode(G.getMode(),O.state);if(!X.mode.xmlCurrentTag)return;var Ne=[],at=!1,ue,Fe=/\btag\b/.test(O.type)&&!/>$/.test(O.string),ke=Fe&&/^\w/.test(O.string),Ye;if(ke){var fe=G.getLine(ie.line).slice(Math.max(0,O.start-2),O.start),Ee=/<\/$/.test(fe)?"close":/<$/.test(fe)?"open":null;Ee&&(Ye=O.start-(Ee=="close"?2:1))}else Fe&&O.string=="<"?Ee="open":Fe&&O.string=="")}else{var $e=Ze&&T[Ze.name],oe=$e&&$e.attrs,re=T["!attrs"];if(!oe&&!re)return;if(!oe)oe=re;else if(re){var N={};for(var v in re)re.hasOwnProperty(v)&&(N[v]=re[v]);for(var v in oe)oe.hasOwnProperty(v)&&(N[v]=oe[v]);oe=N}if(O.type=="string"||O.string=="="){var fe=G.getRange(K(ie.line,Math.max(0,ie.ch-60)),K(ie.line,O.type=="string"?O.start:O.end)),L=fe.match(/([^\s\u00a0=<>\"\']+)=$/),m;if(!L||!oe.hasOwnProperty(L[1])||!(m=oe[L[1]]))return;if(typeof m=="function"&&(m=m.call(this,G)),O.type=="string"){ue=O.string;var W=0;/['"]/.test(O.string.charAt(0))&&(U=O.string.charAt(0),ue=O.string.slice(1),W++);var ee=O.string.length;if(/['"]/.test(O.string.charAt(ee-1))&&(U=O.string.charAt(ee-1),ue=O.string.substr(W,ee-2)),W){var _e=G.getLine(ie.line);_e.length>O.end&&_e.charAt(O.end)==U&&O.end++}at=!0}var vt=function(ae){if(ae)for(var Mt=0;Mt{var F;(F=document.getElementById("bpmn-upload-element"))==null||F.click()}},{label:"\u5BFC\u51FASVG",icon:"icon-zu920",action:()=>{const F=M.getModeler().get("canvas").getRootElement();M.getSVG().then(R=>{aa(R.svg,F.id||"process","svg")}).catch(R=>{console.warn(R)})}},{label:"\u5BFC\u51FAXML",icon:"icon-zu1359",action:()=>{const F=M.getModeler().get("canvas").getRootElement();M.getXML().then(R=>{aa(R.xml,F.id||"process","bpmn")}).catch(R=>{console.warn(R)})}},{label:"\u653E\u5927",icon:"icon-fangda",action:()=>{this.zoom=Math.floor(this.zoom*100+.1*100)/100,M.getModeler().get("canvas").zoom(this.zoom)}},{label:"\u7F29\u5C0F",icon:"icon-suoxiao",action:()=>{this.zoom=Math.floor(this.zoom*100-.1*100)/100,M.getModeler().get("canvas").zoom(this.zoom)}},{label:"\u8FD8\u539F\u5E76\u5C45\u4E2D",icon:"icon-quxiaoquanping",action:()=>{this.zoom=1,M.getModeler().get("canvas").zoom("fit-viewport","auto")}},{label:"\u9884\u89C8",icon:"icon-xianshi",action:()=>{console.warn(),M.getXML().then(F=>{this.xml=F.xml,this.previewActive=!0,Eu(()=>{H?H.setValue(this.xml):(H=ju.fromTextArea(document.getElementById("xml-highlight-container"),{lineWrapping:!0,mode:"application/xml",theme:"material",lineNumbers:!0,lint:!0}),H.setSize("100%","100%"))})}).catch(F=>{console.warn(F)})}}]},null),V(Gi("el-drawer"),{size:"35%",direction:"ltr",withHeader:!1,modelValue:this.previewActive,"onUpdate:modelValue":F=>this.previewActive=F},{default:()=>[ua(V("textarea",{id:"xml-highlight-container","onUpdate:modelValue":F=>this.xml=F},null),[[Fu,this.xml]])]}),V("input",{type:"file",id:"bpmn-upload-element",ref:"refFile",style:"display: none",accept:".xml, .bpmn",onChange:x},null)])}});const aa=(M,H,x)=>{const K=new Blob([M]),F=document.createElement("a"),R=window.URL.createObjectURL(K),G=`${H}.${x}`;F.href=R,F.target="_blank",F.download=G,document.body.appendChild(F),F.click(),document.body.removeChild(F),window.URL.revokeObjectURL(R)};export{of as B,nf as M,lf as P}; diff --git a/vboot-web/src/main/resources/static/assets/DeptTree.1654291592072.css b/vboot-web/src/main/resources/static/assets/DeptTree.1654291592072.css deleted file mode 100644 index 34353bf..0000000 --- a/vboot-web/src/main/resources/static/assets/DeptTree.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.tree-h-flex[data-v-1f125968]{display:flex}.tree-h-left[data-v-1f125968]{flex:1;width:100%}.tree-h-right[data-v-1f125968]{width:42px;min-width:42px} diff --git a/vboot-web/src/main/resources/static/assets/DeptTree.1654291592072.js b/vboot-web/src/main/resources/static/assets/DeptTree.1654291592072.js deleted file mode 100644 index 043686e..0000000 --- a/vboot-web/src/main/resources/static/assets/DeptTree.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as V,s as E,m as I,g as F}from"./index.1654291592072.js";import{a as R,j as p,k as j,a3 as M,m as P,a2 as l,o as S,R as U,S as o,e as s,Z as n,u as f,X as r}from"./vue.1654291592072.js";const X={class:"card-header"},Z={class:"tree-h-flex"},q={class:"tree-h-left"},z={class:"tree-h-right"},G=r("\u5168\u90E8\u5C55\u5F00"),H=r("\u5168\u90E8\u6298\u53E0"),J=r("\u6839\u8282\u70B9"),K=r("\u5237\u65B0"),L={style:{"margin-bottom":"45px"}},O=R({name:"DeptTree",props:{maInit:Boolean},emits:["node-click"],setup(m,{expose:h,emit:_}){const v=m,c=p(""),a=p(),x={children:"children",label:"name"};j(c,e=>{a.value.filter(e)});const g=(e,t)=>e?t.name.includes(e):!0,u=M({data:[],willInit:!0}),w=async e=>{if(e=="expandAll")for(let t=0;t{u.data=await F({url:"/gen/org/dept/tree",method:"get"})};P(()=>{v.maInit==!1&&i()});const y=e=>{_("node-click",{id:e.id,name:e.name})};return h({init:async()=>{await i()}}),(e,t)=>{const N=l("el-input"),k=l("el-icon"),A=l("el-button"),d=l("el-dropdown-item"),C=l("el-dropdown-menu"),b=l("el-dropdown"),B=l("el-tree"),D=l("el-card");return S(),U(D,{class:"box-card",style:{height:"100%"},"body-style":"height: 100%;overflow: auto"},{header:o(()=>[s("div",X,[s("div",Z,[s("div",q,[n(N,{"prefix-icon":f(E),modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=T=>c.value=T),placeholder:"\u90E8\u95E8\u540D\u79F0"},null,8,["prefix-icon","modelValue"])]),s("div",z,[n(b,{onCommand:w},{dropdown:o(()=>[n(C,null,{default:o(()=>[n(d,{command:"expandAll"},{default:o(()=>[G]),_:1}),n(d,{command:"collapseAll"},{default:o(()=>[H]),_:1}),n(d,{command:"rootNode"},{default:o(()=>[J]),_:1}),n(d,{command:"refresh"},{default:o(()=>[K]),_:1})]),_:1})]),default:o(()=>[n(A,{style:{"margin-left":"8px",width:"34px"}},{default:o(()=>[n(k,{class:"el-icon--center"},{default:o(()=>[n(f(I))]),_:1})]),_:1})]),_:1})])])])]),default:o(()=>[s("div",L,[n(B,{ref_key:"treeRef",ref:a,class:"filter-tree",data:u.data,props:x,"filter-node-method":g,onNodeClick:y},null,8,["data"])])]),_:1})}}});var $=V(O,[["__scopeId","data-v-1f125968"]]);export{$ as D}; diff --git a/vboot-web/src/main/resources/static/assets/Event.1654291592072.js b/vboot-web/src/main/resources/static/assets/Event.1654291592072.js deleted file mode 100644 index 52bdf7d..0000000 --- a/vboot-web/src/main/resources/static/assets/Event.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{C as t,F as p,E as o,D as e}from"./common.1654291592072.js";import"./index.1654291592072.js";import"./vue.1654291592072.js";import"./store.1654291592072.js";import"./Modeler.1654291592072.js";const r=[t,o,e];var E={"bpmn:StartEvent":[t,p,o,e],"bpmn:EndEvent":r,"bpmn:IntermediateThrowEvent":r,"bpmn:IntermediateCatchEvent":r};export{E as default}; diff --git a/vboot-web/src/main/resources/static/assets/Flow.1654291592072.js b/vboot-web/src/main/resources/static/assets/Flow.1654291592072.js deleted file mode 100644 index c31ce23..0000000 --- a/vboot-web/src/main/resources/static/assets/Flow.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var g=Object.defineProperty,E=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var m=(e,o,t)=>o in e?g(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,i=(e,o)=>{for(var t in o||(o={}))F.call(o,t)&&m(e,t,o[t]);if(d)for(var t of d(o))P.call(o,t)&&m(e,t,o[t]);return e},l=(e,o)=>E(e,x(o));import{g as S,E as y,D as v,C as u}from"./common.1654291592072.js";import{P as T}from"./PrefixLabelSelect.1654291592072.js";import{B as s}from"./store.1654291592072.js";import{a1 as V,Z as M}from"./index.1654291592072.js";import{Z as a,F as h,X as k}from"./vue.1654291592072.js";import"./Modeler.1654291592072.js";const w=[{label:"\u666E\u901A\u987A\u5E8F\u6D41",value:"normal"},{label:"\u9ED8\u8BA4\u987A\u5E8F\u6D41",value:"default"},{label:"\u6761\u4EF6\u987A\u5E8F\u6D41",value:"condition"}],c=e=>{var o;return e!=null&&e.conditionExpression?"condition":(o=e==null?void 0:e.sourceRef)!=null&&o.default?"default":"normal"},B=l(i({},u),{properties:l(i({},u.properties),{"sequenceFlow.type":{component:T,prefixTitle:"\u987A\u5E8F\u6D41\u7C7B\u578B",predicate:e=>{var o;return((o=e==null?void 0:e.sourceRef)==null?void 0:o.$type)!=="bpmn:StartEvent"},vSlots:{default:()=>a(h,null,[w.map(e=>a(V,e,null))])},getValue(e){return c(e)},setValue(e,o,t){const r=s,n=r.getShape(),f=r.getModeler().get("elementRegistry").get(n.businessObject.sourceRef.id),p=r.getModeling();(!t||t==="normal")&&(p.updateProperties(n,{conditionExpression:null}),delete n.businessObject.conditionExpression),t==="default"&&(p.updateProperties(f,{default:n}),delete n.businessObject.conditionExpression),t==="condition"&&p.updateProperties(n,{conditionExpression:r.getModeler().get("moddle").create("bpmn:FormalExpression")})}},"conditionExpression.body":{component:M,placeholder:"\u6761\u4EF6\u8868\u8FBE\u5F0F",vSlots:{prepend:()=>a("div",null,[k("\u6761\u4EF6\u8868\u8FBE\u5F0F")])},predicate:e=>c(e)==="condition",getValue(e){var o;return(o=e==null?void 0:e.conditionExpression)==null?void 0:o.body},setValue(e,o,t){const r=s,n=r.getModeler().get("moddle");r.getModeling().updateProperties(r.getShape(),{conditionExpression:n.create("bpmn:FormalExpression",{body:t})})}}})});var I={"bpmn:SequenceFlow":[B,S({name:"\u6761\u4EF6\u76D1\u542C\u5668",eventOptions:[{label:"take",value:"take"}]}),y,v]};export{I as default}; diff --git a/vboot-web/src/main/resources/static/assets/FlowModal.1654291592072.css b/vboot-web/src/main/resources/static/assets/FlowModal.1654291592072.css deleted file mode 100644 index d56fc58..0000000 --- a/vboot-web/src/main/resources/static/assets/FlowModal.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-footer button[data-v-94fb7420]:first-child{margin-right:10px}.layui-elip[data-v-94fb7420]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.f-flow[data-v-94fb7420]:before,.f-flow[data-v-94fb7420]:after{content:" ";display:table}.f-flow[data-v-94fb7420]:after{clear:both}.f-flow input[data-v-94fb7420],.f-flow label[data-v-94fb7420]{float:left;margin-top:10px;margin-right:8px}.f-flow img[data-v-94fb7420]{width:50px;height:50px;float:left;border-radius:100%;margin-right:8px}.f-flow .f-flow-name[data-v-94fb7420],.f-flow .f-flow-cate[data-v-94fb7420]{display:block}.f-flow .f-flow-name[data-v-94fb7420]{margin-top:6px}.f-flow .f-flow-cate[data-v-94fb7420]{color:#a599b2}.z-flow-search li[data-v-94fb7420]{width:50%;float:left;cursor:pointer;padding:2px;list-style-type:none}.z-flow-search li[data-v-94fb7420]:hover{background-color:#f7efec}.z-cate-tree li[data-v-94fb7420]{margin:3px;cursor:pointer;padding:3px;list-style-type:none}.z-cate-tree li[data-v-94fb7420]:hover{background-color:#f7efec} diff --git a/vboot-web/src/main/resources/static/assets/FlowModal.1654291592072.js b/vboot-web/src/main/resources/static/assets/FlowModal.1654291592072.js deleted file mode 100644 index f1902d3..0000000 --- a/vboot-web/src/main/resources/static/assets/FlowModal.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as W,j as B,a3 as L,ag as X,R as Z,S as u,a2 as n,o as _,e as a,Z as o,a9 as q,b as m,a7 as D,Y as k,u as I,F as M,X as p,az as J,aA as O,ap as P}from"./vue.1654291592072.js";import{_ as ee,g as v,E as le}from"./index.1654291592072.js";import{C as te}from"./GenTree.1654291592072.js";const g=f=>(J("data-v-94fb7420"),f=f(),O(),f),oe={style:{height:"440px"}},ae=p("\u67E5 \u8BE2"),ue=g(()=>a("span",{style:{color:"green","margin-left":"10px"}},"\u5FEB\u6377\u9009\u62E9\u8FD9\u91CC\u9ED8\u8BA4\u4F1A\u5C55\u793A\u6700\u8FD1\u4F7F\u7528\u8FC7\u7684\u6D41\u7A0B\u6A21\u677F\uFF0C\u4E5F\u53EF\u6A21\u7CCA\u641C\u7D22\u6240\u6709\u7684\u6A21\u677F",-1)),se={style:{"margin-top":"5px",overflow:"auto",height:"353px",border:"1px solid #ccc"}},ne={class:"z-flow-search",style:{padding:"2px"}},ce=["onClick"],de=g(()=>a("img",{src:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg"},null,-1)),ie={class:"layui-elip f-flow-name"},re={class:"layui-elip f-flow-cate"},_e={style:{height:"390px"}},pe={style:{border:"1px solid #ccc",height:"390px","margin-left":"5px",overflow:"auto"}},fe={class:"z-cate-tree"},he=["onClick"],me=g(()=>a("img",{src:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg"},null,-1)),ke={class:"layui-elip f-flow-name"},ve={class:"layui-elip f-flow-cate"},we=p("\u6682\u4E0D\u652F\u6301\uFF0C\u5F85\u5F00\u53D1"),ye={class:"dialog-footer"},ge=p("\u786E \u8BA4"),Fe=p("\u53D6 \u6D88"),Ce=p("\u6E05\u7A7A\u9009\u62E9"),xe=W({name:"FlowModal",emits:["close"],setup(f,{expose:U,emit:F}){let w=-1,C="k1",x=!1;const E=B(),s=L({isShow:!1,receSearch:"",receItems:[],tierItems:[],seldItem:null}),{receItems:c,tierItems:i,seldItem:d}=X(s),b=B("k1");async function N(e){C=e.paneName,C==="k2"&&(x||(await E.value.init(),x=!0))}async function S(){c.value=await v({url:"/oa/flow/temp/list?type="+w,method:"get",params:{name:s.receSearch}});for(const e of c.value)e.checked=!1}const K=async()=>{c.value=await v({url:"/oa/flow/rece/list?type="+w,method:"get"})};function R(e){if(e.checked=!e.checked,e.checked==!0){for(let t=0;t{await K(),s.isShow=!0}});const j=()=>{if(d.value==null)return le.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u6D41\u7A0B\u6A21\u677F\u518D\u53D1\u8D77\u6D41\u7A0B"),!1;const e=P(d.value);e&&e.id&&v({url:"/oa/flow/rece",method:"post",data:[e]}),s.isShow=!1,F("close",e)},z=()=>{s.isShow=!1,F("close",null)};return(e,t)=>{const Y=n("el-input"),h=n("el-button"),V=n("el-checkbox"),y=n("el-tab-pane"),A=n("el-col"),$=n("el-row"),G=n("el-tabs"),Q=n("el-dialog");return _(),Z(Q,{modelValue:s.isShow,"onUpdate:modelValue":t[3]||(t[3]=l=>s.isShow=l),title:"\u6D41\u7A0B\u6A21\u677F\u9009\u62E9",width:"800px",draggable:""},{footer:u(()=>[a("span",ye,[o(h,{type:"primary",onClick:j},{default:u(()=>[ge]),_:1}),o(h,{onClick:t[2]||(t[2]=l=>s.isShow=!1)},{default:u(()=>[Fe]),_:1}),o(h,{onClick:z,style:{"margin-left":"20px"}},{default:u(()=>[Ce]),_:1})])]),default:u(()=>[a("div",oe,[o(G,{modelValue:b.value,"onUpdate:modelValue":t[1]||(t[1]=l=>b.value=l),type:"card",onTabClick:N},{default:u(()=>[o(y,{label:"\u5FEB\u6377\u9009\u62E9",name:"k1"},{default:u(()=>[a("div",null,[o(Y,{modelValue:s.receSearch,"onUpdate:modelValue":t[0]||(t[0]=l=>s.receSearch=l),placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u67E5\u8BE2",style:{width:"200px"},onKeyup:q(S,["enter"])},null,8,["modelValue","onKeyup"]),o(h,{type:"primary",style:{"margin-left":"10px"},onClick:S},{default:u(()=>[ae]),_:1}),ue]),a("div",se,[a("ul",ne,[(_(!0),m(M,null,D(I(c),l=>(_(),m("li",{key:l.id,class:"f-flow",onClick:r=>R(l)},[o(V,{modelValue:l.checked,"onUpdate:modelValue":r=>l.checked=r},null,8,["modelValue","onUpdate:modelValue"]),de,a("span",ie,k(l.name),1),a("span",re,k(l.catna),1)],8,ce))),128))])])]),_:1}),o(y,{label:"\u6309\u5206\u7C7B\u9009\u62E9",name:"k2"},{default:u(()=>[o($,null,{default:u(()=>[o(A,{span:12},{default:u(()=>[a("div",_e,[o(te,{maInit:!0,onNodeClick:T,url:"/oa/flow/cate/tree",ref_key:"cateTreeRef",ref:E},null,512)])]),_:1}),o(A,{span:12},{default:u(()=>[a("div",pe,[a("ul",fe,[(_(!0),m(M,null,D(I(i),l=>(_(),m("li",{key:l.id,class:"f-flow",title:"444444444",onClick:r=>H(l)},[o(V,{modelValue:l.checked,"onUpdate:modelValue":r=>l.checked=r},null,8,["modelValue","onUpdate:modelValue"]),me,a("span",ke,k(l.name),1),a("span",ve,k(l.catna),1)],8,he))),128))])])]),_:1})]),_:1})]),_:1}),o(y,{label:"\u6211\u7684\u6536\u85CF",name:"k3"},{default:u(()=>[we]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])}}});var Ae=ee(xe,[["__scopeId","data-v-94fb7420"]]);export{Ae as default}; diff --git a/vboot-web/src/main/resources/static/assets/Gateway.1654291592072.js b/vboot-web/src/main/resources/static/assets/Gateway.1654291592072.js deleted file mode 100644 index 8c147e9..0000000 --- a/vboot-web/src/main/resources/static/assets/Gateway.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{C as r,E as e,D as a}from"./common.1654291592072.js";import"./index.1654291592072.js";import"./vue.1654291592072.js";import"./store.1654291592072.js";import"./Modeler.1654291592072.js";const o=[r,e,a];var n={"bpmn:ExclusiveGateway":o,"bpmn:ParallelGateway":o,"bpmn:ComplexGateway":o,"bpmn:EventBasedGateway":o};export{n as default}; diff --git a/vboot-web/src/main/resources/static/assets/GenModal.1654291592072.css b/vboot-web/src/main/resources/static/assets/GenModal.1654291592072.css deleted file mode 100644 index 70ed077..0000000 --- a/vboot-web/src/main/resources/static/assets/GenModal.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.tree-h-flex[data-v-2e5c7464]{display:flex}.tree-h-left[data-v-2e5c7464]{flex:1;width:100%}.tree-h-right[data-v-2e5c7464]{width:42px;min-width:42px} diff --git a/vboot-web/src/main/resources/static/assets/GenModal.1654291592072.js b/vboot-web/src/main/resources/static/assets/GenModal.1654291592072.js deleted file mode 100644 index 2bfea45..0000000 --- a/vboot-web/src/main/resources/static/assets/GenModal.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as T,s as G,m as S,E as U,g as $}from"./index.1654291592072.js";import{a as j,j as f,k as I,a3 as P,m as X,a2 as n,o as Z,R as q,S as t,e as r,Z as l,u as h,X as c}from"./vue.1654291592072.js";const z={class:"card-header"},H={class:"tree-h-flex"},J={class:"tree-h-left"},K={class:"tree-h-right"},L=c("\u5168\u90E8\u5C55\u5F00"),O=c("\u5168\u90E8\u6298\u53E0"),Q=c("\u5237\u65B0"),W={style:{"margin-bottom":"45px"}},Y={class:"dialog-footer"},ee=c("\u786E \u8BA4"),oe=c("\u53D6 \u6D88"),te=c("\u6E05\u7A7A\u9009\u62E9"),le=j({name:"GenModal",props:{url:String},emits:["close"],setup(v,{expose:g,emit:m}){const x=v,_=f(""),s=f(),y={children:"children",label:"name"};I(_,e=>{s.value.filter(e)});const C=(e,o)=>e?o.name.includes(e):!0,a=P({data:[]}),w=e=>{if(e=="expandAll")for(let o=0;o{a.data=await $({url:x.url,method:"get"})},d=f(!1);g({openModal:async e=>{d.value=!0}}),X(()=>{A()});const b=()=>{m("close",{id:a.id,name:a.name,pid:a.pid,type:a.type}),d.value=!1},k=()=>{m("close",null),d.value=!1},V=e=>{a.id=e.id,a.name=e.name,a.pid=e.pid,a.type=e.type};return(e,o)=>{const E=n("el-input"),N=n("el-icon"),i=n("el-button"),p=n("el-dropdown-item"),M=n("el-dropdown-menu"),B=n("el-dropdown"),D=n("el-tree"),F=n("el-card"),R=n("el-dialog");return Z(),q(R,{modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=u=>d.value=u),title:"\u5F39\u6846\u9009\u62E9",draggable:"",width:"500px","before-close":e.handleClose},{footer:t(()=>[r("span",Y,[l(i,{type:"primary",onClick:b},{default:t(()=>[ee]),_:1}),l(i,{onClick:o[1]||(o[1]=u=>d.value=!1)},{default:t(()=>[oe]),_:1}),l(i,{onClick:k},{default:t(()=>[te]),_:1})])]),default:t(()=>[l(F,{class:"box-card",style:{height:"500px"},"body-style":"height: 100%;overflow: auto"},{header:t(()=>[r("div",z,[r("div",H,[r("div",J,[l(E,{"prefix-icon":h(G),modelValue:_.value,"onUpdate:modelValue":o[0]||(o[0]=u=>_.value=u),placeholder:" "},null,8,["prefix-icon","modelValue"])]),r("div",K,[l(B,{onCommand:w},{dropdown:t(()=>[l(M,null,{default:t(()=>[l(p,{command:"expandAll"},{default:t(()=>[L]),_:1}),l(p,{command:"collapseAll"},{default:t(()=>[O]),_:1}),l(p,{command:"refresh"},{default:t(()=>[Q]),_:1})]),_:1})]),default:t(()=>[l(i,{style:{"margin-left":"8px",width:"34px"}},{default:t(()=>[l(N,{class:"el-icon--center"},{default:t(()=>[l(h(S))]),_:1})]),_:1})]),_:1})])])])]),default:t(()=>[r("div",W,[l(D,{onNodeClick:V,ref_key:"treeRef",ref:s,class:"filter-tree",data:a.data,props:y,"filter-node-method":C},null,8,["data"])])]),_:1})]),_:1},8,["modelValue","before-close"])}}});var de=T(le,[["__scopeId","data-v-2e5c7464"]]);export{de as C}; diff --git a/vboot-web/src/main/resources/static/assets/GenTree.1654291592072.css b/vboot-web/src/main/resources/static/assets/GenTree.1654291592072.css deleted file mode 100644 index da89a4f..0000000 --- a/vboot-web/src/main/resources/static/assets/GenTree.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.tree-h-flex[data-v-64a54610]{display:flex}.tree-h-left[data-v-64a54610]{flex:1;width:100%}.tree-h-right[data-v-64a54610]{width:42px;min-width:42px} diff --git a/vboot-web/src/main/resources/static/assets/GenTree.1654291592072.js b/vboot-web/src/main/resources/static/assets/GenTree.1654291592072.js deleted file mode 100644 index 0e01952..0000000 --- a/vboot-web/src/main/resources/static/assets/GenTree.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as E,s as F,m as I,g as R}from"./index.1654291592072.js";import{a as D,j as m,k as G,a3 as S,m as j,a2 as l,o as M,R as P,S as o,e as s,Z as n,u as f,X as r}from"./vue.1654291592072.js";const U={class:"card-header"},X={class:"tree-h-flex"},Z={class:"tree-h-left"},q={class:"tree-h-right"},z=r("\u5168\u90E8\u5C55\u5F00"),H=r("\u5168\u90E8\u6298\u53E0"),J=r("\u6839\u8282\u70B9"),K=r("\u5237\u65B0"),L={style:{"margin-bottom":"45px"}},O=D({name:"GenTree",props:{url:String,maInit:Boolean},emits:["node-click"],setup(h,{expose:v,emit:_}){const u=h,c=m(""),a=m(),x={children:"children",label:"name"};G(c,e=>{a.value.filter(e)});const g=(e,t)=>e?t.name.includes(e):!0,p=S({data:[]}),w=async e=>{if(e=="expandAll")for(let t=0;t{p.data=await R({url:u.url,method:"get"})},y=e=>{_("node-click",{id:e.id,name:e.name})};return j(()=>{u.maInit==!1&&i()}),v({init:async()=>{await i()}}),(e,t)=>{const N=l("el-input"),C=l("el-icon"),k=l("el-button"),d=l("el-dropdown-item"),A=l("el-dropdown-menu"),B=l("el-dropdown"),b=l("el-tree"),T=l("el-card");return M(),P(T,{class:"box-card",style:{height:"100%"},"body-style":"height: 100%;overflow: auto"},{header:o(()=>[s("div",U,[s("div",X,[s("div",Z,[n(N,{"prefix-icon":f(F),modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=V=>c.value=V),placeholder:"\u8F93\u5165\u540D\u79F0\u67E5\u8BE2"},null,8,["prefix-icon","modelValue"])]),s("div",q,[n(B,{onCommand:w},{dropdown:o(()=>[n(A,null,{default:o(()=>[n(d,{command:"expandAll"},{default:o(()=>[z]),_:1}),n(d,{command:"collapseAll"},{default:o(()=>[H]),_:1}),n(d,{command:"rootNode"},{default:o(()=>[J]),_:1}),n(d,{command:"refresh"},{default:o(()=>[K]),_:1})]),_:1})]),default:o(()=>[n(k,{style:{"margin-left":"8px",width:"34px"}},{default:o(()=>[n(C,{class:"el-icon--center"},{default:o(()=>[n(f(I))]),_:1})]),_:1})]),_:1})])])])]),default:o(()=>[s("div",L,[n(b,{ref_key:"treeRef",ref:a,class:"filter-tree",data:p.data,props:x,"filter-node-method":g,onNodeClick:y},null,8,["data"])])]),_:1})}}});var $=E(O,[["__scopeId","data-v-64a54610"]]);export{$ as C}; diff --git a/vboot-web/src/main/resources/static/assets/GenUpload.1654291592072.js b/vboot-web/src/main/resources/static/assets/GenUpload.1654291592072.js deleted file mode 100644 index 303c35c..0000000 --- a/vboot-web/src/main/resources/static/assets/GenUpload.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{S as E,x as v,E as C}from"./index.1654291592072.js";import{a as B,a3 as x,j as r,m as A,a2 as s,o as V,R as b,S as e,e as u,Z as a,u as k,X as n}from"./vue.1654291592072.js";const U=u("div",{class:"el-upload__text"},[n(" \u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904\uFF0C\u6216"),u("em",null,"\u70B9\u51FB\u4E0A\u4F20")],-1),y=u("div",{class:"el-upload__tip"}," \u8BF7\u9009\u62E9.xlsx\u7684\u6587\u4EF6\u4E0A\u4F20 ",-1),D={class:"dialog-footer"},M=n("\u786E \u8BA4"),S=n("\u53D6 \u6D88"),z=B({name:"GenUpload",props:{url:String},emits:["close"],setup(w,{expose:p,emit:c}){const l=x({data:[],uploadUrl:"",headers:{}}),_=r(),o=r(!1);p({openModal:async()=>{l.uploadUrl="http://localhost:5000/sa/agent/main/imp",o.value=!0}}),A(()=>{l.headers={Authorization:E.get("token")}});const m=()=>{C.warning("\u6F14\u793A\u6A21\u5F0F\u4E0D\u652F\u6301\u5BFC\u5165"),c("close",{id:"333"}),o.value=!1};return(f,t)=>{const F=s("el-icon"),h=s("el-upload"),d=s("el-button"),g=s("el-dialog");return V(),b(g,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=i=>o.value=i),title:"\u6587\u4EF6\u4E0A\u4F20",draggable:"",width:"500px","before-close":f.handleClose},{footer:e(()=>[u("span",D,[a(d,{type:"primary",onClick:m},{default:e(()=>[M]),_:1}),a(d,{onClick:t[0]||(t[0]=i=>o.value=!1)},{default:e(()=>[S]),_:1})])]),default:e(()=>[a(h,{class:"upload-demo",drag:"",ref_key:"upload",ref:_,headers:l.headers,action:l.uploadUrl,"auto-upload":!1},{tip:e(()=>[y]),default:e(()=>[a(F,{class:"el-icon--upload"},{default:e(()=>[a(k(v))]),_:1}),U]),_:1},8,["headers","action"])]),_:1},8,["modelValue","before-close"])}}});export{z as _}; diff --git a/vboot-web/src/main/resources/static/assets/Modeler.1654291592072.css b/vboot-web/src/main/resources/static/assets/Modeler.1654291592072.css deleted file mode 100644 index 28c80e4..0000000 --- a/vboot-web/src/main/resources/static/assets/Modeler.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.djs-container{--color-grey-225-10-15: hsl(225, 10%, 15%);--color-grey-225-10-35: hsl(225, 10%, 35%);--color-grey-225-10-55: hsl(225, 10%, 55%);--color-grey-225-10-75: hsl(225, 10%, 75%);--color-grey-225-10-80: hsl(225, 10%, 80%);--color-grey-225-10-85: hsl(225, 10%, 85%);--color-grey-225-10-90: hsl(225, 10%, 90%);--color-grey-225-10-95: hsl(225, 10%, 95%);--color-grey-225-10-97: hsl(225, 10%, 97%);--color-blue-205-100-45: hsl(205, 100%, 45%);--color-blue-205-100-45-opacity-30: hsla(205, 100%, 45%, 30%);--color-blue-205-100-50: hsl(205, 100%, 50%);--color-blue-205-100-95: hsl(205, 100%, 95%);--color-green-150-86-44: hsl(150, 86%, 44%);--color-red-360-100-40: hsl(360, 100%, 40%);--color-red-360-100-45: hsl(360, 100%, 45%);--color-red-360-100-92: hsl(360, 100%, 92%);--color-red-360-100-97: hsl(360, 100%, 97%);--color-white: hsl(0, 0%, 100%);--color-black: hsl(0, 0%, 0%);--color-black-opacity-05: hsla(0, 0%, 0%, 5%);--color-black-opacity-10: hsla(0, 0%, 0%, 10%);--bendpoint-fill-color: var(--color-blue-205-100-45-opacity-30);--bendpoint-stroke-color: var(--color-blue-205-100-50);--context-pad-entry-background-color: var(--color-white);--context-pad-entry-hover-background-color: var(--color-grey-225-10-95);--element-dragger-color: var(--color-blue-205-100-50);--element-hover-outline-fill-color: var(--color-blue-205-100-45);--element-selected-outline-stroke-color: var(--color-blue-205-100-50);--lasso-fill-color: var(--color-black-opacity-05);--lasso-stroke-color: var(--color-black);--palette-entry-color: var(--color-grey-225-10-15);--palette-entry-hover-color: var(--color-blue-205-100-45);--palette-entry-selected-color: var(--color-blue-205-100-50);--palette-separator-color: var(--color-grey-225-10-75);--palette-toggle-hover-background-color: var(--color-grey-225-10-55);--palette-background-color: var(--color-grey-225-10-97);--palette-border-color: var(--color-grey-225-10-75);--popup-body-background-color: var(--color-white);--popup-header-entry-selected-color: var(--color-blue-205-100-50);--popup-header-entry-selected-background-color: var(--color-black-opacity-10);--popup-header-separator-color: var(--color-grey-225-10-75);--popup-background-color: var(--color-grey-225-10-97);--popup-border-color: var(--color-grey-225-10-75);--resizer-fill-color: var(--color-blue-205-100-45-opacity-30);--resizer-stroke-color: var(--color-blue-205-100-50);--search-container-background-color: var(--color-grey-225-10-97);--search-container-border-color: var(--color-blue-205-100-50);--search-container-box-shadow-color: var(--color-blue-205-100-95);--search-container-box-shadow-inset-color: var(--color-grey-225-10-80);--search-input-border-color: var(--color-grey-225-10-75);--search-result-border-color: var(--color-grey-225-10-75);--search-result-highlight-color: var(--color-black);--search-result-selected-color: var(--color-blue-205-100-45-opacity-30);--shape-attach-allowed-stroke-color: var(--color-blue-205-100-50);--shape-connect-allowed-fill-color: var(--color-grey-225-10-97);--shape-drop-allowed-fill-color: var(--color-grey-225-10-97);--shape-drop-not-allowed-fill-color: var(--color-red-360-100-97);--shape-resize-preview-stroke-color: var(--color-blue-205-100-50);--snap-line-stroke-color: var(--color-blue-205-100-45-opacity-30);--space-tool-crosshair-stroke-color: var(--color-black);--tooltip-error-background-color: var(--color-red-360-100-97);--tooltip-error-border-color: var(--color-red-360-100-45);--tooltip-error-color: var(--color-red-360-100-45)}.djs-outline{fill:none;visibility:hidden}.djs-element.hover .djs-outline,.djs-element.selected .djs-outline{visibility:visible;shape-rendering:geometricPrecision;stroke-dasharray:3,3}.djs-element.selected .djs-outline{stroke:var(--element-selected-outline-stroke-color);stroke-width:1px}.djs-element.hover .djs-outline{stroke:var(--element-hover-outline-fill-color);stroke-width:1px}.djs-shape.connect-ok .djs-visual>:nth-child(1){fill:var(--shape-connect-allowed-fill-color)!important}.djs-shape.connect-not-ok .djs-visual>:nth-child(1),.djs-shape.drop-not-ok .djs-visual>:nth-child(1){fill:var(--shape-drop-not-allowed-fill-color)!important}.djs-shape.new-parent .djs-visual>:nth-child(1){fill:var(--shape-drop-allowed-fill-color)!important}svg.drop-not-ok{background:var(--shape-drop-not-allowed-fill-color)!important}svg.new-parent{background:var(--shape-drop-allowed-fill-color)!important}.djs-connection.connect-ok .djs-visual>:nth-child(1),.djs-connection.drop-ok .djs-visual>:nth-child(1){stroke:var(--shape-drop-allowed-fill-color)!important}.djs-connection.connect-not-ok .djs-visual>:nth-child(1),.djs-connection.drop-not-ok .djs-visual>:nth-child(1){stroke:var(--shape-drop-not-allowed-fill-color)!important}.drop-not-ok,.connect-not-ok{cursor:not-allowed}.djs-element.attach-ok .djs-visual>:nth-child(1){stroke-width:5px!important;stroke:var(--shape-attach-allowed-stroke-color)!important}.djs-frame.connect-not-ok .djs-visual>:nth-child(1),.djs-frame.drop-not-ok .djs-visual>:nth-child(1){stroke-width:3px!important;stroke:var(--shape-drop-not-allowed-fill-color)!important;fill:none!important}.djs-lasso-overlay{fill:var(--lasso-fill-color);stroke-dasharray:5 1 3 1;stroke:var(--lasso-stroke-color);shape-rendering:geometricPrecision;pointer-events:none}.djs-resize-overlay{fill:none;stroke-dasharray:5 1 3 1;stroke:var(--shape-resize-preview-stroke-color);pointer-events:none}.djs-resizer-hit{fill:none;pointer-events:all}.djs-resizer-visual{fill:var(--resizer-fill-color);stroke-width:1px;stroke-opacity:.5;stroke:var(--resizer-stroke-color);shape-rendering:geometricprecision}.djs-resizer:hover .djs-resizer-visual{stroke:var(--resizer-stroke-color);stroke-opacity:1}.djs-cursor-resize-ns,.djs-resizer-n,.djs-resizer-s{cursor:ns-resize}.djs-cursor-resize-ew,.djs-resizer-e,.djs-resizer-w{cursor:ew-resize}.djs-cursor-resize-nwse,.djs-resizer-nw,.djs-resizer-se{cursor:nwse-resize}.djs-cursor-resize-nesw,.djs-resizer-ne,.djs-resizer-sw{cursor:nesw-resize}.djs-shape.djs-resizing>.djs-outline{visibility:hidden!important}.djs-shape.djs-resizing>.djs-resizer{visibility:hidden}.djs-dragger>.djs-resizer{visibility:hidden}.djs-dragger *{fill:none!important;stroke:var(--element-dragger-color)!important}.djs-dragger tspan,.djs-dragger text{fill:var(--element-dragger-color)!important;stroke:none!important}marker.djs-dragger circle,marker.djs-dragger path,marker.djs-dragger polygon,marker.djs-dragger polyline,marker.djs-dragger rect{fill:var(--element-dragger-color)!important;stroke:none!important}marker.djs-dragger text,marker.djs-dragger tspan{fill:none!important;stroke:var(--element-dragger-color)!important}.djs-dragging{opacity:.3}.djs-dragging,.djs-dragging>*{pointer-events:none!important}.djs-dragging .djs-context-pad,.djs-dragging .djs-outline{display:none!important}.djs-visual,.djs-outline{pointer-events:none}.djs-element.attach-ok .djs-hit{stroke-width:60px!important}.djs-element>.djs-hit-all{pointer-events:all}.djs-element>.djs-hit-stroke,.djs-element>.djs-hit-click-stroke{pointer-events:stroke}.djs-drag-active .djs-element>.djs-hit-click-stroke{pointer-events:all}.djs-connection .djs-visual{stroke-width:2px;fill:none}.djs-cursor-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.djs-cursor-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.djs-cursor-crosshair{cursor:crosshair}.djs-cursor-move{cursor:move}.djs-cursor-resize-ns{cursor:ns-resize}.djs-cursor-resize-ew{cursor:ew-resize}.djs-snap-line{stroke:var(--snap-line-stroke-color);stroke-linecap:round;stroke-width:2px;pointer-events:none}.djs-crosshair{stroke:var(--space-tool-crosshair-stroke-color);stroke-linecap:round;stroke-width:1px;pointer-events:none;shape-rendering:crispEdges;stroke-dasharray:5,5}.djs-palette{position:absolute;left:20px;top:20px;box-sizing:border-box;width:48px}.djs-palette .separator{margin:0 5px;padding-top:5px;border:none;border-bottom:solid 1px var(--palette-separator-color);clear:both}.djs-palette .entry:before{vertical-align:text-bottom}.djs-palette .djs-palette-toggle{cursor:pointer}.djs-palette .entry,.djs-palette .djs-palette-toggle{color:var(--palette-entry-color);font-size:30px;text-align:center}.djs-palette .entry{float:left}.djs-palette .entry img{max-width:100%}.djs-palette .djs-palette-entries:after{content:"";display:table;clear:both}.djs-palette .djs-palette-toggle:hover{background:var(--palette-toggle-hover-background-color)}.djs-palette .entry:hover{color:var(--palette-entry-hover-color)}.djs-palette .highlighted-entry{color:var(--palette-entry-selected-color)!important}.djs-palette .entry,.djs-palette .djs-palette-toggle{width:46px;height:46px;line-height:46px;cursor:default}.djs-palette.two-column.open{width:94px}.djs-palette:not(.open) .djs-palette-entries{display:none}.djs-palette:not(.open){overflow:hidden}.djs-palette.open .djs-palette-toggle{display:none}.djs-overlay-context-pad{width:72px;z-index:100}.djs-context-pad{position:absolute;display:none;pointer-events:none}.djs-context-pad .entry{width:22px;height:22px;text-align:center;display:inline-block;font-size:22px;margin:0 2px 2px 0;border-radius:3px;cursor:default;background-color:var(--context-pad-entry-background-color);box-shadow:0 0 2px 1px var(--context-pad-entry-background-color);pointer-events:all}.djs-context-pad .entry:before{vertical-align:top}.djs-context-pad .entry:hover{background:var(--context-pad-entry-hover-background-color)}.djs-context-pad.open{display:block}.djs-popup .entry{line-height:20px;white-space:nowrap;cursor:default}.djs-popup .entry:before{vertical-align:middle;font-size:20px}.djs-popup .entry>span{vertical-align:middle;font-size:14px}.djs-popup .entry:hover,.djs-popup .entry.active:hover{background:var(--popup-header-entry-selected-background-color)}.djs-popup .entry.disabled{background:inherit}.djs-popup .djs-popup-header .entry{display:inline-block;padding:2px 3px;border:solid 1px transparent;border-radius:3px}.djs-popup .djs-popup-header .entry.active{color:var(--popup-header-entry-selected-color);border:solid 1px var(--popup-header-entry-selected-color);background-color:var(--popup-header-entry-selected-background-color)}.djs-popup-body .entry{padding:4px 10px 4px 5px}.djs-popup-body .entry>span{margin-left:5px}.djs-popup-body{background-color:var(--popup-body-background-color)}.djs-popup-header{border-bottom:1px solid var(--popup-header-separator-color)}.djs-popup-header .entry{margin:1px 1px 1px 3px}.djs-popup-header .entry:last-child{margin-right:3px}.djs-palette{background:var(--palette-background-color);border:solid 1px var(--palette-border-color);border-radius:2px}.djs-popup{background:var(--popup-background-color);border:solid 1px var(--popup-border-color);border-radius:2px}.djs-shape,.djs-connection{touch-action:none}.djs-segment-dragger,.djs-bendpoint{display:none}.djs-segment-dragger .djs-visual{display:none;fill:var(--bendpoint-fill-color);stroke:var(--bendpoint-stroke-color);stroke-width:1px;stroke-opacity:1}.djs-segment-dragger:hover .djs-visual{display:block}.djs-bendpoint .djs-visual{fill:var(--bendpoint-fill-color);stroke:var(--bendpoint-stroke-color);stroke-width:1px;stroke-opacity:.5}.djs-segment-dragger:hover,.djs-bendpoints.hover .djs-segment-dragger,.djs-bendpoints.selected .djs-segment-dragger,.djs-bendpoint:hover,.djs-bendpoints.hover .djs-bendpoint,.djs-bendpoints.selected .djs-bendpoint{display:block}.djs-drag-active .djs-bendpoints *{display:none}.djs-bendpoints:not(.hover) .floating{display:none}.djs-segment-dragger:hover .djs-visual,.djs-segment-dragger.djs-dragging .djs-visual,.djs-bendpoint:hover .djs-visual,.djs-bendpoint.floating .djs-visual{fill:var(--bendpoint-fill-color);stroke:var(--bendpoint-stroke-color);stroke-opacity:1}.djs-bendpoint.floating .djs-hit{pointer-events:none}.djs-segment-dragger .djs-hit,.djs-bendpoint .djs-hit{fill:none;pointer-events:all}.djs-segment-dragger.horizontal .djs-hit{cursor:ns-resize}.djs-segment-dragger.vertical .djs-hit{cursor:ew-resize}.djs-segment-dragger.djs-dragging .djs-hit{pointer-events:none}.djs-updating,.djs-updating>*{pointer-events:none!important}.djs-updating .djs-context-pad,.djs-updating .djs-outline,.djs-updating .djs-bendpoint,.connect-ok .djs-bendpoint,.connect-not-ok .djs-bendpoint,.drop-ok .djs-bendpoint,.drop-not-ok .djs-bendpoint{display:none!important}.djs-segment-dragger.djs-dragging,.djs-bendpoint.djs-dragging{display:block;opacity:1}.djs-tooltip-error{width:160px;padding:6px;background:var(--tooltip-error-background-color);border:solid 1px var(--tooltip-error-border-color);border-radius:2px;color:var(--tooltip-error-color);font-size:12px;line-height:16px;opacity:.75}.djs-tooltip-error:hover{opacity:1}.djs-search-container{position:absolute;top:20px;left:0;right:0;margin-left:auto;margin-right:auto;width:25%;min-width:300px;max-width:400px;z-index:10;font-size:1.05em;opacity:.9;background:var(--search-container-background-color);border:solid 1px var(--search-container-border-color);border-radius:2px;box-shadow:0 0 0 2px var(--search-container-box-shadow-color),0 0 0 1px var(--search-container-box-shadow-inset-color) inset}.djs-search-container:not(.open){display:none}.djs-search-input input{font-size:1.05em;width:100%;padding:6px 10px;border:1px solid var(--search-input-border-color);box-sizing:border-box}.djs-search-input input:focus{outline:none;border-color:var(--search-input-border-color)}.djs-search-results{position:relative;overflow-y:auto;max-height:200px}.djs-search-results:hover{cursor:pointer}.djs-search-result{width:100%;padding:6px 10px;background:white;border-bottom:solid 1px var(--search-result-border-color);border-radius:1px}.djs-search-highlight{color:var(--search-result-highlight-color)}.djs-search-result-primary{margin:0 0 10px}.djs-search-result-secondary{font-family:monospace;margin:0}.djs-search-result:hover,.djs-search-result-selected,.djs-search-result-selected:hover,.djs-search-overlay{background:var(--search-result-selected-color)}.djs-element-hidden,.djs-element-hidden .djs-hit,.djs-element-hidden .djs-outline,.djs-label-hidden .djs-label{display:none!important}@font-face{font-family:bpmn;src:url(./bpmn.1654291592072.eot?26374340);src:url(./bpmn.1654291592072.eot?26374340#iefix) format("embedded-opentype"),url(./bpmn.1654291592072.woff2?26374340) format("woff2"),url(./bpmn.1654291592072.woff?26374340) format("woff"),url(./bpmn.1654291592072.ttf?26374340) format("truetype"),url(./bpmn.1654291592072.svg?26374340#bpmn) format("svg");font-weight:400;font-style:normal}[class^=bpmn-icon-]:before,[class*=" bpmn-icon-"]:before{font-family:bpmn;font-style:normal;font-weight:400;speak:never;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:bpmn;src:url(./bpmn.1654291592072.eot?68866489);src:url(./bpmn.1654291592072.eot?68866489#iefix) format("embedded-opentype"),url(./bpmn.1654291592072.svg?68866489#bpmn) format("svg");font-weight:400;font-style:normal}@font-face{font-family:bpmn;src:url(data:application/octet-stream;base64,d09GRgABAAAAAD4sAAsAAAAAudgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFY+IEq7Y21hcAAAAYgAAAI5AAAHRN+uG6xnbHlmAAADxAAANBYAAKG8CQmG52hlYWQAADfcAAAAMAAAADYY7KABaGhlYQAAOAwAAAAbAAAAJAc8A79obXR4AAA4KAAAABEAAAGwpeAAAGxvY2EAADg8AAAA2gAAANpyjUcSbWF4cAAAORgAAAAfAAAAIAGWBHduYW1lAAA5OAAAAVIAAAI9ejh1lXBvc3QAADqMAAADnwAACihWzTZJeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGR+wTiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgOvGB4cYQ56H8WQxRzEMM0oDAjSA4AJHkNWQB4nO3VBXLVBxhF8ZMQAsXdXUuwIMXdXYoUb3HJNrsIlnBXAZx/cpdBZn55yWMek0zudx4wG5ilfRqD0UlG/IqRCZ8dmX5+FvOmnx/jh9+P+zjCaL7m/58/Icw8Di/x375PP476mjH/53HmMJc/fP18FrCQRSxmCUtZxnJWsJJVrGYNa1nHejawkU1sZgtb2cZ2drCTXezmT/YwwV5/jv0c4CCTHOIwRzjKXxzjOCc4ySlOc4aznOM8F7jIJS5zhatc4zo3uMktbnOHu9zjPg94yN884jFPeMo/POM5L3jJK17zhn/5j7e84z0f+MgnPvOFr3xjyl9rnN8fC4ZPs1f0u6nh7z9j2ErKvz+pYVupYV+pYXcpd0LKxZByO6RcEalhjymXRWr46VKujZS7I+UCSblFUq6SlPsk5VJJuVlSrpeUOyblokm5bVKunJR7J+XySXkDpLwGUt4FKS+ElLdCyqsh5f2Q8pJIeVOkvC5S3hkpL46Ut0fKKyTlPZLyMkkNDUl5raS8W1JeMClvmZRXTcr7JuWlk/LmSXn9pOwAKYtAyjaQshKk7AUpy0HKhpCyJqTsCikLQ8rWkLI6pOwPKUtEyiaRsk6k7BQpi0XKdpGyYqTsGSnLRsrGkbJ2pOweKQtIyhaSsoqk7CMpS0nKZpKynqTsKCmLSsq2krKypOwtKctLygaTssak7DIpC03KVpOy2qTsNylLTsqmk7LupOw8KYtPyvaT8l2AlO8HvuvNYOoXV5IpPQAAAHic7X0JnCRFlXdG5H1UZl2ZWVXdXdVV2V1VfdZd1cdMd8/d0zM9933BHAww4CC3HIOsAsoheIEuDAyHoKzgqrCuCyyysOuyLup6rLrKt7K66uK1qOO338c3XX4vIqv6mp5hpmGGn/6msvKOjOPFixf/9+JlJIMZ5g9H2Kfwc4yfaWAYlNBxMIoL+XJFTA2ibiQjIYpsOMCH20b7mpv7RtsW7g/eednAvU2rqv9eLYhmh41eaGjBz8GtNRBi9bz06LXtzU7159W/D5ZTCJXtAYZheEjnObYf/wxS6WRyzBAzCqkJCVFHTQg2ViGeLyczqFRMppJOIuXwCcEORBG5XAmUk06cb0NsPJBwdESuD6AU241aE4LIQgZpEPS42ioo4mOKKCr4nbIoyp/iZcH0a0uqP1IMlEceBf2T4sFDSFerP6qOIRax/dVdyxDWDNyJ/ZYHth6kK14Ee9sHZwb+GcKsGZZ7sOHxGLiiRIIsRi8Z6ti/yh5Nwe2qN1cV0WeRX6s+pwLtVDSokDiqf6cGsa6iIc3PEBp/j70D/4oJM02k1KIgWjGyM/AgLlfKFTgrV5CBKuwdq1Y/sdVqjyxtae77Rtv/sLGeuDMaTEezW6rphvsj+Fdt6S0dwY7ISDLRn/iftPF8r9M6GmiLnv149dL7Gx5gEKT1Q5pWw+SUHLMgWnalUHLqqY2ntPWLj1x7nWod/Msb11xYoSmNJ7L9qY7r1OC9HWv3V2gSUI8sxH83+0U2wXiZIDOPcIyIhKCNrHwFlYsplBRl3JowWNOBNcYWyDrIlsiaYR1Y0WFDre5UFHRIjZENnKgGuql6dfVqdA3GHIue52CDWI57nmws7qhLbILEEJsSzQCN4KafjAcy+eNExQhQjjvZZ9kWoFOOWcqczVzF3AKlSYqEZoJlW3YUVQZwpZzqRqlkykmKZZtctQTg1mSqG+5UBpBdC+/egisYwnYjN6xo0XvA0KkkqeUynNkCqQe7XIGLcCmZEgwEbE+uibaYEsQUvYV+d+E5O+fNV7XKnLlrV/71hk03rBSEaOOVK1dtZE3v7u2b++ZI8tyBoUeeHF21p9m0e3sePGvr+tX5EuJaWuYtXDN63+C8RVy0eU722vmrRpZ0dCI0PDC0bMlthXLQDKZSc0camvre2VNu79x/cV80mQ+35kLtneFsazif7O3ZX7zo4tLFLSPFkVa4xSZwubRl+4XbvrB0JJ1WG5uu/MTmrWvX3pRu43GOzWXXbti96bGhBf3ejs47nli/ef7CFR1sNrNyzda1q1aUe7ze1mz+tgeXLs93ZLO4s33xyKplt3ZmRDlXKC2a/8H+uYmOi6J9F5d7Otv3v7OviWQlG+5sD+UgK2xP70XF/ZCVVshKC9xiGB/U20OU/1ioQ5VZwTzCHEGD6KPoN3gOvg4/z/LsNvZR9vfcINSmL+7jC2LFjJdsX84RYTFhNUQzxhUq44s9vgzypQzvpJwSrCnbMfhYeJAjfJsqweJkEPxhnyrVjuCYnJJjuOIG4R0Dm5AIMskeFgPVTugBOXavYTPGFwbDpQwXzzluc+Gm5Scm0CxhJyOTHJGcQcyYxkHiguhpqSBC1jFpKnCZRNsEDS7D8lACi0QLpYBMS2TDObUCkDJBxseLhKGgkHnedGi2ydY2C7CSJSaTOCBManypjC8ZjifZF236IC2zRNu9ADcHRdgUaLiUmwJbixNiJUnEsCskIHp1PHIaJU9iMoBMg7g0iEpAm9IgLgwqpQrchqJhEgkhEy7EUC2n5AiukXgRRE1iJyRshOgkRxxfDI5Qv84BgyrZIJpIiWSERE8CQBw0AYgKoiWUHK8UK+4YcAVOJJJ3GlGJxkGLwqEUurv6d/95ycHqiwdVQeU1nheSgiJxGCQSFjiZ6+BlHn4KH4WVHHAhGYQWxyEEWzHJCzw8KBzmOR4uYixhTZREuAULiBIDy5j1wYksg0jjoKPC7upHMieAvIP+TSIbWCQOYuUkxCljv+E5iYcTjtNglVhE4+NkZJDHWR5D4iw5kjiZF3neK2ABG5CeG06EqEQIiVkSnd+j8KIAJ5LEQSJJiA8iFWEXYSVRZKE8NG+QYcSSYw7KneTIZd7zOCcJcBmyYEIuWMAaGpJllhYDUkdQZHrAczIEgp4B1xaWrvQnsA6mxIFSoRt4KC9EJLDjQUULQURwBXoWyAgvu/mBmBFdYI+QBCvcR1isk1BgIR8sN/YCRAuRkaD0h5FEjlhSSoiLJVHx7PhNknEZ/xoeEtxrUGc0ZotUqQZPCFDBCpbcpEUaBvIjHfkkDxQkzwCxITnIMVYgclaoZxkjfz3HIo0bMsvj14A45CZcgzPCAxo8hl0O4mSJF1moVoEnJRTqz8tu7Y0B/YGmQDpBE4D0UMOkFqDWYCVcA7cpj3AkB8AXwDOsyXKKGIYi1OgPlKKEltBByAkSlUZV9HMqsADhAs5LU0CU9BrvgdzyEp+kEVKOpNwJXAhXMCU7x1cXQigBu8wIQTwy8iCOJ4ekrYSBNkEBWouqyHyN74ErAzwJAv/WKORa1lgP9pN2g4KEDFYnvQlrAydwtJpIsVhoYHBVCCLaAgmjcHyjh2zZOou/Xn0R9eS2DDz11AH0W0J3kWAUShQeyi7X655H47zKsrRi15KaF2VZQfKk1iMGOQ/HNROmotwtQyuflLJEW6aEXMK4rRMJ8Bxcdpu0NrlFk9VjuxHIUAaNq9GEF7UooWpwksSAlaeVSRsAT9iRrfMpMBBmsUt1iZclIgfq7EKCpGr8ZRDCyJqMCPMTdmFVANpyXWppLCeMt0480Qw51iJllYEM/ZT6Hl6dCKU4rMiKnK7CjjQ3aGCYk4AlaozCu9RArJfKNBYpqJY4oY2MSByPUiYjdQ9V4OEaeI9Myoq4BMeTW/UKhduT+DMKKz3k3FbWhUgUHFeTyDKfAp6RFS4PdJUIVwrSZBYU6jLaEoBkLOeF+5Is+OAqSPw4rLwCAI9DYV5BnFAvmITaXG6V+US9D7B5EKu4l9JfhAxFWFWlVRY0gJ0k0nBcnoGmaQLVkeittU4qUnkQfZD/+4nwhg5Bpg1aE3hSbsIcIB+pqOOoIKjJKmAHKt+ghgXWywrj1SW4dSOOQDhW0KAhUhlH43YlImUauS5GUU2QkthBwJHMgsCGHpAIMNoHgJSEihLkuoBlJ8Sg29lArRHZzdXYDnmh32F5mVVI1AYcClqwdgtEpCBztGdh62mDYAbem9wD0u7GldE1/fMu9m9Zh7EA7/cxA8xCgvZ1FnA+BiBP4DlF+hMwny6ppLsAsg9ATdoAJMVU0Ey1wgow/fCmR/5sIRqa2//AZ1evuynVBspo9IoVOy7YsGZVX79t2x2dCxdv2bRh04IFqSTLOtFLPjpYvjDzja98JXQH2ty+IMEm0OLrHnjikYHBpXK06erVazdtXL/2fclMDiVbFyxct/KTwyOZotewrN7yqpUbt6xY+s6BPzDJ0fhH77gDpe84e885e84555xo1mZkKN+DgIubARPbzBrmabQQPYD+C+fxfVBOAHMFswAoDPAjHMApQNxSIdCBauiRgp1BdgogBsRDlDauhoYNwYwpAH4Ioop5KMYhwDEjOBREqhQdi44LMXkCcDkT/nVwSqCqe14Dw5gAQYIaTUMxCSIfpDB1MEl0RMjQBJiculD0Pgi5RS5io7irjjAnL6kajKvBQhfM0cWFhxwpgqeONyFN280DO6EalNwVQCeozpQYFBeyBA0SMmB64ILDQg2JEvBZiIkkDSC17YLBGnrPKA4cg4qBPnPgwG0HDly+48AB+BdEj+DxiCmP7iIKaJEc6ZRtkCzwayMbgY9BF0pEgMAqoCcKHvFVIutZwv4EgRFkISEdEIdABDVtCSyBk6wCHZXsyn0MwLCGowCbIJ5cga6ASH/k4gKRreFIACD82O94EeEJKU4CYNLtkERps8PkedLsSe9B2yoRNrWug8hdnYAMcnsCc9FYatAIwmAKdkixQAIRQcMJEo8/D1K/1jlRcQV3eNLABSIuBBfzUnlKyIURj6BfHA9OuiPpyCMUN9MwVAoqbtFpXkjH7BIEroicC44ISkIguvDnaPeucAbIeIOABBDlAGV42vV7ZEEI8sgviDxyl0akwg7+KpH1VOSSDIz9OxFRtCY4T13usSqIKhCodVKQCiQLdMWsh23CrIdjPTKgJDcSggGC2AdA2odBmkNXgQGo85je9RFYFieMdNsBGxjpuu3oIyAdESkU7elqUJdzCcNDZwkRQfk40gWsnMCxpPSAvbCkQ+8quPVMMQPpj/2KRCoZZLQCuFCT3D6Hgx6IJaoBVAvhGZDshIuwK5BB3msUv7s8QquZRup2RnUeI6KcoD4WE7hBsQWp3Tq4R9B3SHQPGYXSU5BVUwHgCRZrdXRBqAfsAxwoYCL3oQPkUPXLkCTNbgGyJ+BavAIF6VBSBCCEFxSRUsCFY3AXWhriRSMJ8UHBWK72F1md7QRgRPgl4GK9BkEMiJ6AAK035qnzAlkILqPRybIE0QlelUACgc/AMTRrkahM1c8TJZAjeiB0c6QMGqIklwmSIFwj1LA1awgU63CiRiAgwbMUthMswdF+EABRrT0COuWJfjLeLyO3/mVECc9Bj0+LgAAOEkqQI0xQrAsTPAhDX4kYYugbwjcxBWoRRsQelkyJlk0MVmI3IpYv0m+KOk4liX04XykXiK2MdKDYN3D5Br9ppzu3aA+uajZa7MaEHU4kzr0o0zVoaeqiXUWPH5m65NOEuRcskuT48uICfGNpx5x5t1Ukf3+zcf8qkftQ+sIL0u1dbIO97txcYV0WoWAD5A7LwxcM9F9+dmOLa4tkGPxrfAscidDvMQFfYXx5fQ/54VvGPoU31VcI7vaTz7BxeEZiEoAFljDbmIuZG5iPUHtpHABBvBwQHGo6tS2CC2wCCcoEBYhJu2bqs60ywQU8MeIiagCsUBPfIBCn7F4wXUviACoNIIAWvHuRPlsqkthK3Qi5MCNB7tHnSTgaP0EjTjKD0OGzz0bXP7enUP1m4Tytsc0fVaSg1uiTdDlcaNItVWkMmdLPm1UhqvPtiaDJ6X2Lxn7T1OBt0D0qYKImj+VVDK8nzEv4z4NEcgB6bMbeUMAOCNhz5BM2BwJQlTyBhFcC1vbgzwRaokbE9rWynF0pFTtF7Bn7t9aIz1m50ObYVt+qHgHnH3scJZ/csgX9K8heyQ5iBNKQ9ESgzOsa0bFWKqYnovGZAU8grZ7VoWhNvmTAE4oYAcHb0uixDM3SgtVv8EG1ySt55HlzfDoX0PPvKIuynw/rCVvuCiUjfNhoDYqDcyW1+oRs+2WPYHoMVYmEkmJAR3rU9HfKqqGZoRw7yTZoMM1Mnrmc+WfUhi5Dfw34cRs+hP+HHWXvYL/NNXP7CPYDmtegH6nZMrAxte12Y2rYhWrVgcmh+voB3hDG70AnbKQzuBM20Tkna6OjEOTkTXQ8f1xzmnOS9rQmfgZzWumY5jSHdaHmyZhfZ2N9xfxJG18ddKKmS6ARd0KmSyfg0uM41kObP67x0EGHhy6yw6EN1/XNXY24hb0d+eRwQTa6cvFVy3oishVatVsONgGGkYi2u3mzP6kPcvqbscZ9DvDWW2mN49ENVEN7C81x8tg/nrw5jsMfmL2NjB/7jIvh3hojmY4efgMjme+EbGTcJwFIvAmT8n+/lRZlaezwW2ZR5vBfnrTtlAOgz83CeMp99C2xM3pw5C2wM3K4iJb1916/OWqa7xgauDhiplBibmtlf5MpRnpGV8dbO/N+p4wMH2lQ4cRC6Vcnb8ODlvIWGfHm0Eb3lhvx8KffEiseuvJNmtEeIKLurTOjsaNvzo6Gv/b2GZ5BpXpLLc/Vf3iTJlYg/JuzsYLm9eatkq7d5c3bJY/2Q3gHc/Wp9kOwg5MNgvlJFsFT73cQOnTo6kOHdra2HDq09P77T7lvwfYVK649ePDag6F7R+69d4QBPXE6vc8Hil96yik+g+34lJN60TRT8ykm9UMz2aWn+gvNn9lfqJIwuBg0phg3iGN4kMvgQZzhDAxo+jjeQodByhnEu+fmm8nWgFbF3XwzaX8zXD2Oy9Djb/TsxFVqHpnkY+Wb8LFiRAsKNcWzqvqDu1QLPT3Vp6r63Y+pQfTcZH+qu9gvAX0aQGNdRukzmQ/LVEF1OXHq2AThtjK9fyy3ohT6xYW7zx4cUtTeuQPrVjy5duPQglWS2NRw1eq1mz3GymHCNOxQ75zhxR+s9Oa9yfSQs2bJsfyC2ESlvHX7Bdv+eslIKgns09/7wKata9ff2tbOodtxW3rRkpVLb+7OaXpbNve+jw3Mc0xr/7EcexhGgXJ/mP071mEamQqzmtnHXASt8ErmGubdzHsJFZyZ6FAjQ74wiRA6qo3Q0FY55TnLpY/bMPOF/CTqdROTjEs9k3oJ+ZwACERx0op+h/DuHVuH5ltmtDszPPz5zduWjZxnWg07hpdu6Onn+W0b1vX2Gd72Ymlk+ZNr1/fPbWqUle7SF/fz/LqVy/JFWS339C0fvnfR4q5sNGiWC7evZNllixZ0dApSpdSzaOEdVzQncCzel969B3VXf16tRr7i/thEd9eKVTs3PDG6olBq141s94c2bHz8nnIlqOdQV8fy0a1rPrVwcapdaY4PDW5ct3nryMbzOzrah5euW3lv/5yGBk9rcnDooZVr+vsWZFPJoXnLltyaL/qDDesHhu6av6gjlrhKq34QXRuqPolS4fBIKLQ+FBoNhYAfveM2FDKOtIX5PGhjy9D9aAwP41vw11gfex77V9DnLzvOqNIZT6sznlan1dNqymBa5oyz1RlnqzPOVn+MzlbTxjLvPONudcbd6oy71R+juxUjjet9QaaN6Qbdpky9rubXNZwggeJ5ohsXXUxPzoPkToKcF+n7EseE5oev3rd3zsDAnL37DtcPrt6/Y2upUilt3fFy/aBtOqqe8gA9yE15gB7867GwsTLuY+WOL76D+Q46Cz0DJBjFfzOLEUX2jPvV2+V+dfKja/1nfLTO+GjN1kfrZMd20PAZN64zblxv0o3L9Y9im/Gmcf8oM17ia+uLE25ReNOePS/Sv+sn/S322/hVJsKsYy5j3s8cJD22IPYi0mNTdyd4GrrocqkXFYktjnTcMdKxFXL5QWSZpBMn10w4JF1eIplByVKxUiTeUaluBIf5SqEsZnMCte3lqYU8lc1ZNjEg1dZyIKEj0xekrwAPoJKv2I0cPp6Pkos6cuKJbnJxAKHh1jxSBDlhRw2ElqPIMju3lJiGQQQADBIUTQGmE/xYUAgl5WhLVCb0VABgKzqgWywnCPdqyfakRvg4788GD5qZgF7aXII/7ittKRa3lMa+jPtaB1paBlrHvkz3eHfO8Vu6qhnBRnzjjTgXsdudXMbVbqmqqhmWx1D9ICyBP6AuFfgRHzZyjoKslNB9XsS+RxNAW4MfDwdW84XL4XdhAi0rbi5V95c2F2GPPgz7OS1zW6v7W+e2wB59GPaM69cOdXwH/kitjg0mQPzgCGwynUrcjIu1/Wa2fORXhw49j7vHvvl8bY8/MvYxfP43Hn/8cefhhx+u8csa/AzDAX4LEn4hEcV98cmmvrvwM2PvxHvGDiL+nnu23HMPfiY8th0/0wkXXifnW+4h0XA1f/sEYzMFZtC1bB/tbe/Yk42yU9ztbfEY9kX02saH3z2T0720ftWK3j5rJq/7lYsnm4jYxOIDMzndp5LzF66Z5HNfWl3zuUf/MlkxnVw+932C/pN/m4DAwRQLAW2WhKiIKXEWbxMc8SUK119mDzs33SzqCxLRpmvzs3il4FvOovMfqf5FdGv33aAz+Ne3L7jsQ6MzjU3uYc4/9SNlNR/MUz8+tn7Cs/KUD47trvlLMjOO+e5jLj/VdOWP5jdBPPU0RvgoDtXD6ikn9xUzcLTVEpg+3tY/q/G28cHc2Yyvhd1B2VmMpj04Pr5akz+vsZ/GL4G8TzEdTA9I65k7TAuuCR3kVXgnkYSr5QAI9EoTmhCu32tf0g5/3Nu+pK1tSfvYP+LezoGBzsuqn7m0a+7cL6Fg9ZeXjo52j47il+B2dZMbDH0K9tmBzuqmzgFUrL400Ik+1TlQ/fPqL39ll7tJeGaGfGZOMp+Qxe+66eG+WvagH65l77LOWvZa//nEsvaLT2YgA3hSnpzj5wdgBs3LMfIw9mXIwTGTdpOdznNzZs1zbvOdDdN9Z7wRzoLvLp9oSzPJrguYq059n4BFcmCTmTJiKEVvkxunoY8Ijdp2eyp4IJzLaxaoZmG/oCA1aJ36WTHmV383z852mO9bcd/qlqX7R8SmoKgK8QXLSbsSjxo/v4b5AHPotI6c24kpBi/AclMtXjF0lMnrdI6pZwYvnGrj4VoX56cYeTor0608p3zgfefIVEOAM6dlsh0A5aYaAqbhzDnMyMnjzGO1nZNHmyuP3RhOGnO+dGz2nlrmEtN38mWuY8hZlHEyKDzpUj1Xh3niuB7t9nsFaKX9oAcdq7c5Sq21qeoFqrZD1SCqw7Fw+t030EoRer3agL5efdTatWvXu9DG6qNXoK/iV99QmRyu3oCufe95555r7t27F6248ELaT0LndQB0yxHmCdpr9SJhfBWaUNAmSrtVsCq9oMWXiqkCMejnyinodaGKOhC1EZAXmXj3zSj6IlQG5cRs3szbvciiUREhYQbtHJEe/ciqFPLuUEAHMuPk0MyRjtg9hvCESiYNY/aiIEgbR0j1IjJqUErORXTgAPIA/0KxgF7y+Od+MROQMJK8Xel5L/8g0sR7I7pHELSGBl0K6aZgwLb6Ai9wekAwOI/gV3iEiBFPlJo0S8GYF1msLbvrYkHiJJEzfosG4EhUjOrzyBBlMj6jqtXffJUXWEHAgvCDH/RG4x4RYcHX8kJO5BD+iJK+vnkw1Bxo8eQS86IRhJxGw6eroajNxvuDikf3NQVUDUFCuikGuv2KhpGDJDEiK02a6YGIeYHaTHktJgsOxyv+gOYIgsfUZIflJJ9Bxn9Q0CqiaKfS4m8yC+H3NXOobgO6Be+rzZfk2gbifCvf6oufxXaMpfEN1Wert6NL0KVjDXjf2KvYdr79lcOHq70UJ9V5+ARx0s96d/bCH0fc/dhPcaSjr69j7Kewxa/2nNVbvaX3rB7Yoytgv7+3rXpLW29vG7qirde1PU2MGfUxy5kdJzNaNJvu6MTGkfbNqic5ocGmvz3J/mDqPAZlZohZfLLSUQyawAL5gnsnWQmS6bFmISmvI/MbXXKJ0RzymN6hH1dfPDgLgfl/Dh5EPTm50ZINXOS3b3/qgKszEIzpAMYsgOzZeYL4soYZx9EJuWDW4UwdYVLOEYPTECZ67cI9OwePApKXr1i5gW3gd2/d1NMnSPOG5q9b/bnlK7KFZsvq6/skgIFVuTxePn/RmuX3DAwt5GLNc/LXl1YvXdLWzi6dOzRSx5HpuaNAGgIXL5gKF9cAXBRwDhXy6zbu3vTpoXkNjYH2ziVLntiwef7iFd357Kq1W9feU6roRiqbo3CxM5Pr6hgeWT3yvs6ucbQ4EO+a2a5wHnPxafIlr6QAXIinx4X8fT/60cM3g0az94c/POUo/LJ8/tk9L1wdTM+9qnzjUf66c2epy9Uh2aw8dNsmUNhsfHIn4a7avCiPsV9gGxiJ0aiPdoh4dvoAd/gKJSTaFQNNrPhh5Hvllep9y+Ys+xas31xO1+VsQ/jI53Isn69eN2fZnM45y/o7+5fTPW3L+/CD7BqgXJCJglxnWqErR75CvgydNSAFsk06InToACigzxeJtuEe4gern0Dbqp/47PoNq53mZHpdb28s0pzI8qVWr7+xaUHbl9j/GiuvW9N3TcK/uNK4Kt2+pyWdbHP2+4PZgWS8bn+Y8D8nXsYzz1iZM1gzg4kbem3eStcbvTZ7peuUXhjExEPU9U2HIzHbi7LHm87yAMdhtJuM9XiIA8ju2+hwKGa523aTvYcMPe5GmOP8RwckzhnTgt16HCf2L59gtNPT53ZBwMjRqWePol2EiR2DdsAZ8UrKFp3jeeujm8R/WYOUNd99evinw8cpyCv8x8bGrnvfyy+7dpq7a+9zk1GNKQknRJntn5ISie+j6CaSHHrXtMjV6hI3G0fzRJzpPtYspjoCtANYp0j6jSgCfA7onAw5Ha+YvTt7enZeQja9hQ35/Ia9ZHOcAn+zFho2di00bJijZM3I7GRNUiTzN9QfGFfqZyV4yvnMfFn16+nW80s9nd2RMGdZndFls5BCq3EkvLnYUyimW1sFsbkpn7koW2wORaaVuTxL+SrGZ1U+ovrNojC7Hnuc8qprj4lA3zuea0CgR2U6P7nPHYcr6LU9O7bOm28Gm89euuQvN21ZOnK+ZeueXSPLNxdTIwvndUB3ny0Ub/rgnIFEUgSk0b6XTWS6Vq3eteGJe/KFtG5kuj60ftOGLfeVe/zq7a0tAMIW31oodRD4MXT3ouHO5vgUnoowGab3uPSdhg7QxJtMcdDmkhMknjOwbuVUEjfWKdzXfzshsJFKDw1vaFlyIYgAu8O7hE30lLfsADTkUrmxv2+cyh+oEzmTjRAa3zU4z+nYECmuGFv4/lxxYuytziOVWfbCdDoTnmDhWdnxr9uwvueS6o3o7n+aBcfcvWhR97bm225D/oeOaud9s+P5GgybTVG2Ap6aRSEupdCImemdunOgnz3lI1oz6zGnHH2+awa15xSD0HuOVpL4Gd5jPF3vMJ62NxdP4yuLM43pz5/NmL4rG1MWgUOzsj9OCMkPXjsIWGlwFlr1k3VxObKl6+WXu1zdEATNInwnk2ZWMGuYDcwWal2hkxeJxLySo4Ui/j3xSoGiBOK3kyKeO1AiPk6V6UnhYIkTktTDEf8ee7qf7rUcXteWxA3edIvXZrHVMDyCvsKj0UU8ZxuOJ+ENNrWMLq0uRJGUmUK1YAiAaHhR9Scxr8NzIaNFSxgmaowrL//kJwf+17M/wXdilM92d6fTobZWM2pGGp2ODrZrY1c8EWzRE3Y03BRv7+7obopMhPFouhFvs63OzkQi2Ko5FgmUSpjmpZZ1Gd3W6n/CZnsB8+WTsNYmXEPmuGk0R2yj8Ngk02i5kqWm0Uq5mJwwjXagOigTs7nJNlEBKB0jERB9KCgKTiJlWqAlmTli8+xAxARKraHkMJd3jaFQJznCjb0oWcrRiiP/whsZjf9Ckezzw00eYvhUi2033+zzsYrXx7GipHNSIKDzCueVviwHeRmLCvH8ZjGHzTDoEyLGuT0LZczzrLS3sOBGkbycwL/4aVElb7Z8+j0CcVCr/joRsEReUK15wwbxfH1je3RaMIZ9ZsoIarbYGOpox9jyKrLPALLLgtbaqGl+VRDloKA1qTqyeN4QWDMsiPRdEJ63eQFZyKOqEstaXl0ULVETiV+qN9BsRvJms7czryBUs3HfhM+GI+jHAnwrTwyku9GH0IeO/JBNVPfjs3/843XVIfTcKxP+Vp34SiYJ7egm5g7m49CKgqYgpshLuNAHW3ZJLBWor1vFJrtSwSyQOoEWMR6qAvLBhg20kTKESpXJpxmSqUpKhI1YEIlHHfkiAOEA0yDsYBOHDQOZTom0NxGCkt2UhOyEELTyZeKUZwWFRLJYRvdaVnokrQk9PVIwl2MFn5QIJ7RIs96yQ7B8utDgS4+kVKG3V1TTy9oC4fPDgbaRNhpeTS1LWRZa0oKMaKOaCMclv8C6cbREHK0hpjtGrEFtibSQG/k8ueGEHS2U0P3NmcxQJtMcCIdbIxF8ZWOjoKVG0oHQvnB0K2rRYxHNCSckr8Rms6IscZVzKhKknw7a+5Bp0wz39gkaXLGs88P+1EhKEypOtp79hqjuIBqJm3YB0vZLLWGaKYg+2qgl3OhXZeZ1d8/LOJFWkpNa/U0Zl+kmc9ydaCsXqe1cTNkVX/wNx2GwXk2jB7/x2mu/qcZOgN/XVh9GW+2b33vffdV/G/fd9OF7mWZmEx1hJ59KMY/ywqz7Ydb1CuqIaefoaIvrihnDlimM+2GmioNsknZjpSKEEbNmrffPu/PXpUo1L8y464WJXutoSaS8qrc/XYpgPB+Hi+m+dCrRcp7MR7yazEmC4g3rIA0UWYtyjcTNHHkrfRUvHa9oIK6wXsFjCFqRxVi1Es3DzQlLxSy3oXmtU33NWduMD5qBhclEa8QXjDg57mc/47JOJNg2klwYMNeSF1yoezJCEsYoGElZDf5mOSgZHIe9fr8Xc5whBeUEh3nbE4vEwpj/D6T5g6qlqapmKabHh5K9T98Av6d7XZvChF/iSfskzsr38ETdDce7b8TMgO8uOH1eFqdhbor1k42Yp9GT4lj+d6feTn4UNjz1NJ4BSp5iUm+cDjzJfAL3s09De1OYEPSZJWYJyLPzmSvpjJsPMJ9hnmG+xrzM/DeZSeMYngoBQnYLSEjn3LST7pAOHUtOJflaK4V6y7sTaBYSIpGVRHGGJ4opWk0U57omsGKSr0WRp+iVhwBQ4WXiCENuEXBL6p9O2pkUamklK+RMrMcCJ4na0BKtY55Y2UR3gJFyR3La/Xo2yX3XIQcdPpY7hTaS0VBA27FX03kt9xXNYNXlXWLY4EJLu7mx36uKoEr8vDjnC4ltqwXk+QOn+EWPLAflFUsAFs3/uUeXvcrcMO8LC22rJB29W9OxUgyLYS8XWciNvRDm1QYh5McRL9Lxq4aHRVnOGxKbGjisH/mEobM4B8nxGYw8+JcR7MkLRliaqyHP2KdUDUuD6zQfUldWBHRI61ADYSPq03hD27lKQp7qXNXDKpvPJ1nfs1LAIVnmFV0qblaxz1M+p03EHpw8pu8Hugx7hbCPC1soEOa0tSgQ4nu2KkCM/KZmrCCRVyVuYBUUcvsQmQAUc6ZPYoUYByWNpbDEa2I2qwWQOtQtBox+5LeF0jo1oG2fxz6KOzaMqqxPW7VO0btQRD9nh+ZHSvmqAUnxwukFWxQc0LbuldQe3Da4QAuy6sqtsn6/zxKWNrH+kBCdL4yyJitS8BsKIpwVTSMVsPjhAAqGOHM+yyKelVXWsYSwn1VzDuSwjjmmj8udplG50zMYd5pG4QgtPePvYHKTRqzWMs+gRehB9Cou4EPu+NWM742eeePybXvjcvvUd3F3nnmd8szrlLN9nbJxxje0cdeZlybPvDT5Jl+aJGMx32Qd/HPotTU6v1vCgc4kFTQLpE8BXOrgS77zXbzjJ18cO4KuMtsHDuCfH/kvvOvm7dvHjuBnNbNjXn3+gwk7wwrmEuYK5mrmOuY9J2FTFB0dTbfMTra4upZZkQyAmMG66k8ss870UNPtsm9kvHg3AMJOQ7JNGajiCbS2AVm7vUEWe6SgFJA0ry/T9n/vs1Rbly0cpIH01H0BMYCxLplCQFa9Qe6a669ffO2+60/A9rENN5Yzlidkqj7NMCwzjButcMgfUE0pqPk83oDZFIr49EjYsjw2hksQKmB7FTsSgDBiwEPC2EFNG9K0efQ/zZbbfpz3To628tgVYgMU34hI/OuvVz3o8P87gQKe9YEPFKuvIvu2mv1wGD9aG9PfRWf7TLi6g49WYDO1xPiKrtWhNlwsjPs6ptzBrzyt7jzhAHPSTfP415unX0eHD+zIxoj3Q0tzZiOSNmaaHRGJiVh2x4FrNndEfILgC3due21bZ5gcRjo2fwEaZENxx+s7ig0iF6zdC3LHuUqirV1eX11PLuNHg6rXF+GqrZGgTw4GZV+gAf2ARRGfVw06wFCyosi6HAjABo48cvAC4CwtGNR0rk1V3Duqkj3+xd9NXKTffTjE/i3gRlcPLQLttwAOv5q5fTaaZ02jc0dPhNrbEkS1RERhFGZUIFPjn3uoxUq/9kC1RKibQr5cb7HHVgy9qzIq8ms7d3t0Qev4B83g1Pk9csgj9Kzlxl5TVEFVM20g0MJhrrWLszjJgx8H7Y4NhTkjLMYiIvneA6h3fIZok11EvfsMdBeKRypv0CDi/evptx6IBrfgbMEvGR6fvrMfsIdwPJ3tEmyAwkNUIlCD1JVEZ8vsVXhTvaCfVZHEqWr3MkM1fIaxMMP7eCmgV19EDUZ+Txdoakr5wIAo+1HEOG8b0fO2nks+9QA9sqxwLTYoqWx4mGh6fpvvjWA+HEKhHJkbaUY7zjmn3ko22W3glCtXayY5GZzqMeYpLgmT7DYiYzBNTCczwKwECu9nrmFuYT7OPMw8wfwD8y3mp4TeKdGOlyvQbBwQThb7p2muwf+85IPfpeY0LZT96fDgtdde+6dtpkEPFs87OLbw/emRD7/ctWUL2vanZpqZ4HHyLSCLaWUqzDCzmTmXuYx5L/Mh5j7mMeZZ5iXmh1O+DPQnydyTvzK050+brSc+XfTdPzWGntHWeDpmbKg5BJ76EY0PLhl3IDzVIxnnFesOh8o4duQYnQkyCSbLLGY2MHtAp7uFjv4f7Yf2NiHH1FHOadzbBhnR60e5raHX3iaoWPum3VocIN7eAZdvrfpS+2xbxZw83ts9TvK7Ig1OV6IrmQw1eJv7400t8ZAZ89hqY6SlI9mRdhrzcX9TeY7ZEDYavBIaGUgVG4KiEDJMvaFo+hS5IZTwR5seriS6gl5JDAe6Y3qoQQyGWuzuRp2Z9q7oKHM58zjzBeZLJ2EpmOZ/4hzlfwKtfbL7SWG6+wmEEmvuJ2SunUnuJxXTEY/lfuK8gfvJG2nQSz16uDsksU4Lq8dimFV507Akw5Tsfi4icroeyoQltqWFFyOZiGbM9xjhTETiEg4rhTIhxd9pyUBQ02vyKoejUcxqvO21JG9QtuSAT7K8tqDwGGLmFd7yWqIvIKvBpqa2piZT83ptr/cEVPe8z89J4UzIr8z3WL2W7PdDghav8igW5VTsDCXI7bBHn29okDuRb2llyQXdg+YjxR/qDgl8wowhjhZOhLwhG3ItQn4gV7i5GXLNWSTXAblWHIvXWJxvSkej6SaLZNP2TnkXM3XinPFGNXACBKj7ouzAK0HyJUETIGhIdz0HLZsnEqrkCipfMZkQ+TlEeonudy6SqTL63zJQn19822IPMFBJsXX83o8rlo4DIan6S4T9qZ/gzn3XXINX0FlRMzsyiiN+XRCC6qEte8gOPagZ0lNNFzeq+sa76W/p6tVM7VuOrlx2dZQOZh6zmjmLuZi58SS0klMqkI9WGt719snjaXh+y9sli4/GKHtOx6xSp2lCqdMxlRRDZmerfadh8jjoVuYJJKPl6AFUxUvxrfjrrJ89n/0Ch7nlxxsVPfPBhjMfbDitH2yYNhh8zplPNpz5ZMOZTzb8UX6y4Rhj8Zkz32448+2GM99u+KP8doOr7/0Nvn183mgyHE4mZgTwmGFvyY3tum3HDnz72B344uzYL7A59gumGfDor9nH8NcBj8qMDlpqiIkzXUwZdLIVzHpmC+hlZPbY/cylzLuYA8z7mduZjzEPMI8wn2Y+y/wV8xTzJebvmX9ivgY4NV8oOfbMm7JdSXageEK0y8RgXi4leTIeR754x5NP4Fn0E3i8Tib+sfKFfKUI181CspLiSQwnspkUjWXX4iWf9UuRU5IQ6BzHyWHJEYuluC+QL/jilSB5Bw6Un9wuWHfW9vSYE0PQGMzg2K88mszqAnWJ2uX38IqPD4bGCqEAr3pFr64o+DcqrWrF4xeVIw+JOSR0syWI48gLsGHnHveon5cF1ScZvNc68iXBl1Y5/LIPdDm2wY6OZRvCPI8DXlHfPTl7oVB2B+zPgbVU/Uzsllvo/Jr35sZ/CGcxmyXN3+TEubIXuhPR9rCGRaSJX/T6NyBFBeUSRSNSqClgGnfmSrnbc2VYS7k7YN1sQUNV2XADy3saww3+wDyN18KyGEi1+0V/UBY02WybSC+XeOzT1UdRT/UXn7RDGYZw5B++Bvz5W9AkZcbD+BiTCTMxxqnPMGoTkxeZ3HSmFbatsMbJnnj2wNqd8+Z25na5a9aTO3J5jm3LHbkCWP3Id/Kb05OykktvvmUb/G7FxthvsuiJ6qj73uBB9gW2mbYXHXLDIF+BLki0yRSrrYDWiTfu/uQLyeqqT3xi+3a8dseOh9jmI9eyN5C1+h8PPXTR+fsvRPsueoiOa9/HfpSNwtFE+RjE2wiWVt5OTZuWhf1ode9QNRJGPx1AbPWcj905GB782EB44D6yT4aTbPQdZ1X/JomGt/HveGVTR2t7pj3ZUepo7chGyFtRuNbe99L809ZOpmGFln7kYbYd7x17DXurTW5Zic3lk+znIW+ubKjTvpXM7IKAvnyNzjatAb620rm86ZFD7pRQ5tzqA99/4AfvuSY9duBcdDidvvLQ2H2HrnxlDRv9/vf/97nwi6Yvv/e873//0Ojos5elD6J705dfnk6/cd0HanU841rLQ5zsazLtuHWPf7u5LTvp17b5Zlr5hCLZ6ih6AjRv5g+vQ36eBy4IMY0gB1uYNNPJZJki08PMYYbGZ1F3p/EzKecRC23JmSmT/AzXahWhwe/Id3zwm7+rnuWxdeOH+PnvVb34xc7Hcl/IPfoobCZ+P5s4rM8dWs+zazdw880EwojO9+5QZ7dj5HA8NyQv8yclX32yegOkX30lW/0xappEtbrNp+5Xp0IbsZimcd8617XOdlLupMRkKhlCoMl+dgcO/Hjfvg9ctW3bvn01d7unqLfdn10YWrRq2w0bNmyYn6btcHIa5tEpuF7xR8c8LdLtEKf7rth32EvwfzMXMf/pfgUBFlB4kxmUq78VRqzqNSNUrDafqkjf4J0YXogRvz33Tdzxl8wEd4S2VCyVqd3KjdvAmdqcIGJBzOfIJIdRFCM+SYPYNUz2o7zr6CeaMTe6StnuRWSmu/GhZQPFk6nxZQC7eahMvMeGKmU3a+QNY8gVJOrOQfJbPQRymSWf2EYg1FXVF7CbwgA4ea/GSx7B45VTLVbA9jbxOKy3dNmNvSkvj5aD0qMFG9SQ4hUVgQv59EbFbwgy8caVBDNsiR6SOVlgeVEkfQXBQYDq4DJBgfEIcQsVAeQRX1tEdBvUrPi9ku5RNFkCaCt4pGAgFAawXf2hHu+LhbodLQAhfZYRSzQ22U0ery54DADUiCeTIqqaZChBX3NN5RQBT/5a14LxxsH0Ao/N2s1G2BuWVRWp0YBj5ZKBhrytGVJCB5ilN0RDzb7W7sb4pn5T1DzdlR1LGvsbu2KdEcMmUz36HCXkXeZrLdsJn2qosq/ByrVkCs3zo45X01GcE7TeJeGenk50p5ML2jKoB/BYY3godb9oZtr9UY8CqpEccEJJq1CYs99OtfqLm1ubuluNkC5pXsR7onZzg1EezFttXf6IARqnAOSI+tORbIeQ72+PLm4M68L4d7Z+wL4Dv0LbcTv90tZywFq76/watIiJj1S6TV4x5glKKRP2KRRLxVQ3BnZ1EME9ZA3WhsNIiEK5Uko4ApmfBu5Y9D3zfMEihlngWhoe4Y4RlWjleajocvP3RvYgJZO5tb8xxsGVlt6YHJDHnszn8bP5/Nj8LifY4I2HNU4FRIq9sUpDLIXgHsotWuIE2+bOLScgpupd3d34h70dfluv6Iuzq9KJLpxD+VyOa4oOfbyhZ2lrc28L1Gt1SW5Z7tupJT4F133gQSVhxVJ842anBx7hW3ub9SZT/WpuYh7yx/BX6fhJhVlyMu/2C3DFglBlOE8eNeflN9sWptML2/Ci9KI0/MeexotixRj8x56OlWKx0pxkpZLEarJcTo79HquhRCI09vtwIoFfgqeqK9yn0OchlgSEr66gD8XQ52GTKyer7yEPouuSZXiu+h7yNLoulIAi/X8HUxgaAAB4nGNgZGBgAOKdog0R8fw2Xxm4mV8ARRhufVpngKD/ZzG/YA4CcjkYmECiAFedDEV4nGNgZGBgDvqfBSRfMDCASUYGVJADAF1gBAMAeJxjfsHAwDyKhwwGABFkYyUAAAAAAAAAADQAsgDoARgBfAJYB3QH5AsKC14LeAxmEcASeBMwE5oTwBQ8FQgaLBqWHe4eCB7gHwYfLB+cIA4guiF4IdwiMCJ6IrIjGCPcJNAlSiWsJg4m8CcOJ0Yn2ChKKOYpmCoAKjAqcCsOK04reivOLEgspCz4LVotwi4iLtwvhi/0MIYxgDGYMngyzDN4M8w0ejUwNrI3WDqIOqw7bDu4PHQ9Xj4MP35A6EGSQnRCwkPURBJEXkU6RdxLCkskTFpMokzKTQJNGE1YTaBN+k40TmZOjk/gUHRQ3gAAeJxjYGRgYMhhyWZQYAABJiDmAkIGhv9gPgMAIWkCEgB4nF2PvU7DMBSFT9q0QCsxgEBi84AQAin9YUD0AZrOrdQ9P07aKrGjxK3Up2HkCRgZeQokFl6Ek9R0IJbj7373XEcBcIFvODg8V9wHduCyOnALJ7ix3KYXll2uW8sd9HFvuUv/ZLmHRzxb7uMSIW9w3DNWD9hadnCKV8stnOPNcpv+3bJL/rDcwTU+LXfpvyz3sMSP5T7unJcoyLcqDsRClrt1JCvh5+EsLHI1l+k2C8oa672UZbXWSoy8YV36UskyMDIW4V5Uu3RsTCKSUudiqpWRWaZFUeqNjIy3MqaYDAaJ9V6kc0QIkPPnFGKSwAISJXZYsyNR0fjsh5hxFySFOX3KiYz58mj/zmUzX3FesxIYwcPw2PXZVU0igOEZMxFiz3fFb6YY0xokrBNmNGcEps1NdTrj0jRF09vQRPQeVs1UgQkGXMm/vMcUb/oFZv1ifgAAeJyVVvd72zYQ1Us9akmOZMlxkrbOsOOkTcvszrRNR7r33gMizxJiCGABUHL++4IEJVKRqM/hD/qIm+/eHY6qnar5p15b/AicwjNYwSrWsI5nsYE6GmhiE6fRQhtb6KCLbZzBDs7iHM7jOTyPF7CLC7iIS7iMPezjCg5wFdfwIl7CdbyMVxDgBm7iFm7jDu7iHl7Fa3gdb+BNvIX7eBvv4F08wHt4Hx/gQzzER/gYn+BTfIbP8QW+xFf4Gt/gW3yH7/EDfsRP+Bm/4Ff8ht/xB/7EX/gb/+BfMPQQIgLhEH0MwPEIRxAY1pom1DQOxppkOFi1mplBO1Qy4pYryURwKNS4GdEhS4TNDu0+szRmj4OYaSYEiYtcWtJDirhTBDQiaYOQ2XDgfmVI4nalXioZZEqdxJbLfjAkY1ifzhnLtJ2YqmFM0rAUz42yYs57AigYOqw8FtQQSsXBkOkj0p1Cy3PR/tJohvdd/TdPDt7yIenrlfZz6A6qeSuV3JjQfax03TVGUpiK2ySjqU/K8t6SaHk375+8ljmwZ2ZbkkfcW8pgRsi2of8Sp+asxPxGYkgHlpmjzV5iuHRtD3QiqGOSXhBrFaYCb7pbTjEHa6usdZmVrp5G39ALlfrMfafEa6kL2w7YBFeohGCxoahbEtJxzGRE0UpaVKsIkgXdr85pQiayDNW4Mhp3ZgqdenXKYl9gZ4bRjOS1IZMJE+uaQuIj2nTeImBujkbcPp6hMMvVLUvyK3l2ATzXcNqthC24PNouETHF3LJ0bAMmpbLZeb0XD93kqNZk0lPiBR13JucsQI85xpsTUZq6Pjko3S3ypGi4dJrSDfHEnC4EqXunOE6nqSTyZZd80nouVVab2y+603ag1fiJaSoTnCdfc4uYx7bhe5X1bcW49Ovuqox4SM28e16TXqD2E7ePFs2Zz16wf7m6hBzIvZOviSLsojnwqVPeri7dE9N10oiYZYHqPXI7ruHpyKrdSHnI3uqZhbFK07WlMQtki3rmkeU9u/MU36ecolsnd/Gzt4j1HEQe8srScnKomywKBirMV2MznwzPUfqTTUG3PGq56cHy6DmGRbvTo/RV3D152UVP3c62PORuPdrz+XWcX5tbgklyEVxFNuiR+5tRNzFLS1NKtIvPnoe6klrXBTNGZQYz3qynRuQlkVtwEaUlELVmJGPlJ4nLOLH52CXWvW8MWDpqLuhqX6skbrh/RI7KLHmt9j8cpp0SAA==) format("woff"),url(data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI+IEq7AAABjAAAAFZjbWFw364brAAAA5QAAAdEZ2x5ZgkJhucAAAu0AAChvGhlYWQY7KABAAAA4AAAADZoaGVhBzwDvwAAALwAAAAkaG10eKXgAAAAAAHkAAABsGxvY2FyjUcSAAAK2AAAANptYXhwAZYEdwAAARgAAAAgbmFtZXo4dZUAAK1wAAACPXBvc3RWzTZJAACvsAAACigAAQAAA1L/agAAA+gAAAAAA+gAAQAAAAAAAAAAAAAAAAAAAGwAAQAAAAEAALkVgFhfDzz1AAsD6AAAAADa8q4wAAAAANryrjAAAP9qA+gDUgAAAAgAAgAAAAAAAAABAAAAbARrACAAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAED6AGQAAUAAAJ6ArwAAACMAnoCvAAAAeAAMQECAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOgA6MQDUv9qAFoDUgCWAAAAAQAAAAAAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAPoAAAD6AAAA+gAAAAAAAUAAAADAAAALAAAAAQAAAIwAAEAAAAAASoAAwABAAAALAADAAoAAAIwAAQA/gAAAAYABAABAALoaejE//8AAOgA6MT//wAAAAAAAQAGANgAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAEgATABQAFQAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMAJAAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIAMwA0ADUANgA3ADgAOQA6ADsAPAA9AD4APwBAAEEAQgBDAEQARQBGAEcASABJAEoASwBMAE0ATgBPAFAAUQBSAFMAVABVAFYAVwBYAFkAWgBbAFwAXQBeAF8AYABhAGIAYwBkAGUAZgBnAGgAaQBqAGsAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAABRQAAAAAAAAAawAA6AAAAOgAAAAAAQAA6AEAAOgBAAAAAgAA6AIAAOgCAAAAAwAA6AMAAOgDAAAABAAA6AQAAOgEAAAABQAA6AUAAOgFAAAABgAA6AYAAOgGAAAABwAA6AcAAOgHAAAACAAA6AgAAOgIAAAACQAA6AkAAOgJAAAACgAA6AoAAOgKAAAACwAA6AsAAOgLAAAADAAA6AwAAOgMAAAADQAA6A0AAOgNAAAADgAA6A4AAOgOAAAADwAA6A8AAOgPAAAAEAAA6BAAAOgQAAAAEQAA6BEAAOgRAAAAEgAA6BIAAOgSAAAAEwAA6BMAAOgTAAAAFAAA6BQAAOgUAAAAFQAA6BUAAOgVAAAAFgAA6BYAAOgWAAAAFwAA6BcAAOgXAAAAGAAA6BgAAOgYAAAAGQAA6BkAAOgZAAAAGgAA6BoAAOgaAAAAGwAA6BsAAOgbAAAAHAAA6BwAAOgcAAAAHQAA6B0AAOgdAAAAHgAA6B4AAOgeAAAAHwAA6B8AAOgfAAAAIAAA6CAAAOggAAAAIQAA6CEAAOghAAAAIgAA6CIAAOgiAAAAIwAA6CMAAOgjAAAAJAAA6CQAAOgkAAAAJQAA6CUAAOglAAAAJgAA6CYAAOgmAAAAJwAA6CcAAOgnAAAAKAAA6CgAAOgoAAAAKQAA6CkAAOgpAAAAKgAA6CoAAOgqAAAAKwAA6CsAAOgrAAAALAAA6CwAAOgsAAAALQAA6C0AAOgtAAAALgAA6C4AAOguAAAALwAA6C8AAOgvAAAAMAAA6DAAAOgwAAAAMQAA6DEAAOgxAAAAMgAA6DIAAOgyAAAAMwAA6DMAAOgzAAAANAAA6DQAAOg0AAAANQAA6DUAAOg1AAAANgAA6DYAAOg2AAAANwAA6DcAAOg3AAAAOAAA6DgAAOg4AAAAOQAA6DkAAOg5AAAAOgAA6DoAAOg6AAAAOwAA6DsAAOg7AAAAPAAA6DwAAOg8AAAAPQAA6D0AAOg9AAAAPgAA6D4AAOg+AAAAPwAA6D8AAOg/AAAAQAAA6EAAAOhAAAAAQQAA6EEAAOhBAAAAQgAA6EIAAOhCAAAAQwAA6EMAAOhDAAAARAAA6EQAAOhEAAAARQAA6EUAAOhFAAAARgAA6EYAAOhGAAAARwAA6EcAAOhHAAAASAAA6EgAAOhIAAAASQAA6EkAAOhJAAAASgAA6EoAAOhKAAAASwAA6EsAAOhLAAAATAAA6EwAAOhMAAAATQAA6E0AAOhNAAAATgAA6E4AAOhOAAAATwAA6E8AAOhPAAAAUAAA6FAAAOhQAAAAUQAA6FEAAOhRAAAAUgAA6FIAAOhSAAAAUwAA6FMAAOhTAAAAVAAA6FQAAOhUAAAAVQAA6FUAAOhVAAAAVgAA6FYAAOhWAAAAVwAA6FcAAOhXAAAAWAAA6FgAAOhYAAAAWQAA6FkAAOhZAAAAWgAA6FoAAOhaAAAAWwAA6FsAAOhbAAAAXAAA6FwAAOhcAAAAXQAA6F0AAOhdAAAAXgAA6F4AAOheAAAAXwAA6F8AAOhfAAAAYAAA6GAAAOhgAAAAYQAA6GEAAOhhAAAAYgAA6GIAAOhiAAAAYwAA6GMAAOhjAAAAZAAA6GQAAOhkAAAAZQAA6GUAAOhlAAAAZgAA6GYAAOhmAAAAZwAA6GcAAOhnAAAAaAAA6GgAAOhoAAAAaQAA6GkAAOhpAAAAagAA6MQAAOjEAAAAawAAAAAANACyAOgBGAF8AlgHdAfkCwoLXgt4DGYRwBJ4EzATmhPAFDwVCBosGpYd7h4IHuAfBh8sH5wgDiC6IXgh3CIwInoisiMYI9wk0CVKJawmDibwJw4nRifYKEoo5imYKgAqMCpwKw4rTit6K84sSCykLPgtWi3CLiIu3C+GL/QwhjGAMZgyeDLMM3gzzDR6NTA2sjdYOog6rDtsO7g8dD1ePgw/fkDoQZJCdELCQ9REEkReRTpF3EsKSyRMWkyiTMpNAk0YTVhNoE36TjROZk6OT+BQdFDeAAAAAgAA//wDugLAABIAGwAAASIOAhQeAjMyNjcHJz8BLgEJAQYeARcBLgEC9ClNOiAgOk0pRG4UlXQ+nR1Q/t7+MwcVKxcBwxskAsAgOk1STTogUUEoTXwqICP+6v7EFDYnAQE2Fz4AAAAFAAD/wAM7AucAGwAsADEAQABNAAABBiIHDgEdAQcOARYzITI2Ji8BNTQmJyYjIicjBSIGFxMeATMhMjY3EzYmIyEFKQEDIRMiIw4BFxMeAT4BJwMuASUiBgcDBh4BNjcTNiYBrQslBgoHrAoHBwoCcAkHBwmoBQkGFRIMR/7iCg8BMgENCgHJCg0CQAEOC/7i/v0BAwEDO/5iSwECDA8CLAISFg0CLAINAQ4KEAEsAg0XEQIsAg8C5wECAxUZCTgCDw0NDwI3ChoUAwIBzA8L/dUJDQwKAioLEDH+BwGwARIM/sALDgIUCwE/Cg0BDgr+wQsUAg4LAUAMEgACAAD/2AOPAu0AGQAdAAABBgcGBxYfAQYHBg8CPwI2NzY3Fh8BNjcBDwE3A49QUbNbFioaSSQgOtEp9wMfOCEjTRQoHjBa/igboBoC7SkoWisUKxpKJiI7IvcoD8I5IyVNEykeYK3+c6AboQABAAD/3wOPAu0AGwAAAQYHBgcWHwEGByMVMwcWFzczNSM3NjcWHwE2NwOPUFGzWxYqGlu4pnx+Cxacr4VSbDcUKB4wWgLtKShaKxQrGl26K34LFJ0rU243EykeYK0AAAADAAD/mgO4AyIAEAAUAEEAAAEiBwEGFBcBFjI3ATY0JwEmBwkCJSIPAxUjDwMVHwMzFR8DMz8DNTM/AzUvAyM1LwMB9A8L/mEKCgGfCx8KAZ8LC/5hCw8Bhv56/noBewICBAMBwgQEAwEBAwQEwgEDBAQWBAQDAcIEBAMBAQMEBMIBAwQEAyIL/mEKHwv+YQoKAZ8LHwoBnws+/nr+egGG5QEDBATCAQMEBBUFBAMBwgQEAwEBAwQEwgEDBAQWBAQDAcIEBAMBAAYAAP+VA74DJAAbADEASQBgAHkAigAAASYHBgcGBwYWFxYXHgE3PgI3NicuAScmJyMmBzYXFhcWFxYGBw4BJicuAjc2Nz4BFyYHBgcGBwYXFhcWFxY2Nz4CJyYnLgEHNhcWFxYHFgYHBgcGJicmJyY2NzY3NgcGBxcGBxYXNxc2NycmJzc2NyYnBg8BJi8BFhc3FwcXBycGByc2NycmJwHzbGVhQUILDDc8PVNPt1ZYhE8GBh4cd09QVwMVEGNdWTo8CAk9PkCmtE1QZCAVFzk4ol9bVVEyNQEEJCRBRFJNnj9BRQQeIDwwfEJQSkcrLAEBSD5AS0eMMzYUFRQnJz1KGx06cDg2KixucToeJjIZJTEYKiwZMCUZMiY5OG40b3E1cSRKNEolJjIZAyICNjVaXWxctklKKCgLHB13pFlbU1OGKCkFAjEDMTBTVmNYrEBDOxArLI+zVVlCRE4rAzAvT1JbU1BONjgQECUwMoyiSUwyKzAwAiwqRkpQS4ssLwcJMTM1RUKQOz0iK28eOnE2OCwqbnA6HSYyGSUwGSwqGDElGTIDODlvNG5xNXElSjRKJCYyGQAAEQAA/6MDuAMiAAMABgALAE4ApgD8AT8BlAHxAjwCfgLCAwUDXAOpA/UEPwAAAREhEQUzBzcVITUXETEjByMHIxUjByMPBxUfBDM3MzczNzM3MzczFzMXMxczFzMXMz8FNS8FIycjNSMnIycXIw8FHxk/BDUvAyMnNSc1JyMvASMvATUnIyc1LwEjLwE1JzUnIzUnIycjLwE1LwEjJzUnIy8BBSMPAhUHIw8BFQ8CFQcVBxUPASMPARUPAhUPASMPASMPARUHFQ8BIw8CFR8FMz8ZNS8EITEjFSMPAxUfBDM3MzczFzMXMxczFzMXMx8GMz8FNS8CIy8JIycjJyMnIzUHIw8CIw8BFQcjDwEjBxUHIwcjByMHFQ8DIxUPARUPAiMPAR8FMz8dMz8DLwMFDwUfFhUfBDM/BDUnNS8INSc1LwQjJyMnNS8BIyc1JzUvATUjLwE1JyMnNS8CNS8DBSMPBRUjFQcVBxUjFQcVFxUzFRcVFxUXFR8JMz8ENS8CNSc1JzUnNSc1JzU3NTc1NzU3NTc1LwQFIw8DFQcXFQcVBxUHFQcVDwgVHwMzPwY1NzU/BzU3NTM1NzU3NSc1LwMFIw8DFRcVFxUXFRcVHwcVFxUfAjMVHwMzPwQ1Lws1JzUnNSc1JzUvBAUjDwUVBxUPDxUfBT8CNT8BNTczNzU/AjM/CjU3LwQFDwUfAhUXFRczFzMfAjMfATMVFxUXFRczHwEzFzMXFRcVHwEVHwIVHwIzPwU1LxwFIw8IIwcjByMHIwcjByMPBBUfBTM3MzczNzM3Mz8LMzczPwE1PwE1NzU/BDUvBAUPBRUfBTMfARUXMxczHwEVHwEzFxUfBDMXMx8GMz8FNS8WISMPFxUfBjM/CDM/BDU3MzczNzU/ATU/ATM/BDUvBAEnAZr+weRynP7InAsGCwUMBQUGJgYKCAQCAwEBAgYECQQrBQkFBQUFCgUeBQoFBQUFCgQYCQUEAwQEAQEEAwQHJgUGBQsGCwb0BQQFAwQEAgIIAgwHCAcEAwQDBAMHBgcPAgkCAxEEAwQJCQQEAwQBAgMCAQIDAgECEgEJBAYBAwQDAQMIBAMBAwEDAQgEBAQBBAgBBAr98QUECAUEAQQEBAwEBAQIAwEDBAMEAwQJAQ8CAQIDAwUCAQQDAwECAwMIBAkFBwUFEAYCBgIPBwYHAwQDBAMEBwgEBAcCAQICAwQIAQQSDQoFBwYCAgMICAQBCAQmBAgDBAQEBwQIAxoDCAcHAwkFBAQEAwQBBAMHAQMFBAQEBAQJBCYECQUEBAUNrQQIBgcBAwgDARUDAQMDAQkBDAEJCQMDAgECAwMIBAEEAgICAwMIBAUECQMIAwIEAwIDAgMCAwIDAwMCAwMDAwMDAwMGAyMCAwQEAgIFBAgBhAUIBAMDAwEGAwMCAwIDAgMCAwcWAQQBBAEGAwICBAQDBAUJBAQEAwQBAgICAQIBAgECAgIBAQEIAQEBAgIEAQIHAwIBAgMCAQIGAwkDAwME/cMFBAgDAwICAQIBAQEBAQECAQgCAQEBAwMEBAQFCQQDAwQBAgUDAgEBAQEBAQIBAQIDAwkC7gUECAYCAQEBAQECCAIBAgIEARYBAQQDDAUJBAYFBAMKAggBAgECAgIHAQEBAQEEAwQI/KcFCAgEAgEBAQIGAgICAQQBBgIKAwQBAwYEBQkEBAQDBAIBEgECAQIBAgICBwIBAQEBAgcDBQLwBAUEBAMEAgIHAgMFAgQBAgMMCgMEAgQBAQQDBAQJCAUHAw8CAQYFCAEBAQYBAgECAQICAgkBAgIDBAj9rQQIBAMCAgIFBgwGAQwBBgcDAQMDAQcHAwEHBwEDAQMECAQEDAQEBAQJBAQEBQIBAQQEAxUDBAoHGQMKAgMDAwMDAwMCBgMCAwIDAggBnAUEBAEHChwLBxIECwQHBAQHBAgEEAgEAwICAQQEAwQFDAUNBAUEBQgFJgQJBAQEBAQEAQQDAQMBAwQECAQJBAICAQIGAwQF/kQEBQQGAgIBAgMDBQQBBA0JAQ0BBAUFBAEEBQUKBRkBBAEUBgUFBQsKCQUEBAMEAQIDAwQHEwUEBQUEBQUEJR4IBAQJDAMNAhIFBAUDARQEBAkIFiwFBQQFBQUEBRsEBgQBAQIDAwQEBAkDBgULBQUFBhQBHgUKBQUEAQQBBAUcDQQBBAUDAgECAgMECAH6/sgBODFaPrq6fQHyAQEBAQcCAgQDBAQECQQFBgMCCQIBAQEBAQECBQECAwMIBAUECQMDAwcBAQEBUwECAgQHCQkKAQkHBgcDBAMEAwQHCAcUBA0EBCADAwICAgIDAwgJBQYFBQQBBAEEBRwNBAEIBAEEBAQIAQMBAwEDBAgDAQMEAwEGBAcIAQQEAQMEAwEDDAMBAwEDAQgEBAQBBAQEAQQNFwUFBAEEAQkFCgUMBAUEBAMEAQIFBwweCAQJBBQHCAcEAwQDBAMHBgQDBwUEBAkEBAMEAQICBQwFCQQDBgIBAQEBAQICBwICAwICAgECAwMIBQkIAwUCAQIBAgECAgIJAgEBAScCAwUCBAECDwMCAQIJDAkBCQQDAwEDAwEDCwcHCQkEAwQEAQEEAwwDBAYDAwIDAwMDAwMCAwMCAwIDAgMCAwQDFgMDCAkJBwMEOwECAwMEDQULAgMDAwMDAwIDAwojAwcDBwQOCwMHAwgDAwIBAQMCBAgJBAIECQQEBAQEBQMBAwEDBAEDEAQDAQMIAwEKAQMDAQMDAQMDAQYECQEDAgMDqQEEBAMECAQECQUECQ0EGwUNCQQECQQBBCIEBQEEBAMDAgECAgMECAkFBBIECwQHBAQHBAgEHgQIBAcEBAcEBAkEBAQDBC0BBAgEBAQEHgUKBQUFBQkFJwUEBQkKBDIEBQQIBAYCAgYICgUZAQQBFAYFBQULBiYFBgULBgsGFgYJCAMDBBACBggICQYRBQYFBgsFIQYLBQUKBg8BBAEZBQoBBAYCAQEDAgQICQgBKQQFBQQFBQkFIgUJBQUFBQoFFwUEBwICOQECAwMIBwQHBBoDCwsHBgQDBxQPAwcBCAUEBQgDAwICAgIHAQMVAQMLAQcQBAQMBAQEBAQECQQmBQUIBAQDBKABBAMDBAkJCQYBDAEGDAYFAwMCAQQBBAECBQQCAgEBAQQBAQEGAQEBAgEBAgMHBQQFBAgDAwkCAQYDEAMGAwIDAgMCAwIDBgIDAwMDAwdKAQIBAwYMAwMFAwIBAQEEAwMECQUECAMDAgEBAQECCQICAgECAQIBAQECAgIBAQEEAQEBBQQDBQQFCAgDAgEnAQEDBgQJBQQEBAIFAwQJAQYJAwIBAgMCAQIDBAMKAggBAgECAgMBAgMDCAUECQQDAwMEAgECAQIBAgEQEAYCAwUJAwoBAgICDwIDBQYMFAECAQIBAgECBgIGCQQFBAQEAwMCAQEBAgICAQIBCAwDBAMCAQIDAgECEgEJBAMFBAQEBQkEAwMEAAAABQAA/5YDvQMjABYAMQA6AD4ARAAAASYOAxYXHgI3PgE3Njc2Jy4BJyYHNhcWFxYXFgYHBgcGBwYnJicmJyYnJjc+AhMGDwEXNRcRBycUFSclFBUnJicB9FimgUQBQD07obBRVIYnKQMGHh52Tl5rVlJQOjsXFxcrLERGWlhWWENDJyYDAyMecpQ/Nmwv0crKGI8BWSpDIgMiAUZ+obOmPj9JCR4delFTWFdVU4cmLzEBJiVDRFRPp0hKLzQQDxYWOTZQT1daTklwPv8AJk0hlI+PASiPYGRlZGVlZR4wFwAJAAD/ogO4AyAACwAXAFIAuwFEAaEB6AIyAp4AAAEVIxUzFTM1MzUjNQczFTMVIxUjNSM1MxMrAQcjByMHFQ8FFR8FMz8DMzczNzM3MxczFzMXMx8BMz8DNS8EIzUjJyMnFw8GFR8KMx8GFR8CMx8NMz8ENS8BNScjLwYjLwE1Iy8LIy8BIy8HIzUnNS8EIwUPASMPBBUPBBUHIwcVDwMjFQcVByMVDwQVByMPARUPAhUPAiMPAxUPAxUHFQ8KFQcVHwQ/BDM/BDU/JjUvAwEPBRUXFQcVBxUHFQcVBxUHFQcVBxUHFQcVBxUPBxUfBD8FMz8BMz8BNT8BMzczNzU3NTM1NzU3NTc1NzU3NTc1NzU3NSc1LwQFDwUVFxUXFRczHwUzHwEVFxUXFRcVMxcVFxUfBD8ENS8NNSc1JzUnNS8DAQ8XHwQ/BDM/AzM3MzczNzM3Mzc1NzM3NTczPwIzNzM1PwM1LwQFDwUVHwMVHwEzHwIzHwIVHwEzHwEVHwEzFzMXMxczHwIzFzMXFTMfBzMXFRczFTMXMz8ENS8EIycjJyMnIy8KIy8EIy8FIwGufX2MfX11Xn19Xn19MwcNBg0NBycNDgQDAwQBAgMDCQQFBgwGFwYLBgYGBikGBgYGBgUfBAUMAwMCAgYDCicGBwYNB+kFBAQDAwECAgIGAgIDBgUEAwgBDgIIAgYCBAECAgECAwIDBQQDBAMKBQYDCQQJBAQDBAIEBgEEAwIDAgMCAQIIAQUDBAIEAgIFAgcCAgECCQECAgMHAwIDAgECAwIGAgoF/fMFBwECAwIDAgMCAwIDBAECAgMCBAEEBAECAgICAgIBAgICBAICBAEBAQIDAgIKAQICAgEEAQIBAgECAQICAQQEAw4ECAQDAQECAwECAgIBAgECAQIBAgIDAgECCAIBAgICAQQCBAEGAgoCBgMKAwYDBQMCAQQGCAUCsgQFAwYCAQEBAQEBAQECAQMFAwUDBAMCBgMBAgMGBAkJBAQDAgEBAwIBAgMDAgEFAQwDAQIBAQEBAQEBAQQDBAQI/KYEBQMEBAEBAwIBAwIBBAEKAQQDAgMCAQIDAQIEBwkJBAQDBAIEAgMCBwQBBgECAQIIAQEBAQUICAKxBAQJBAUKBA8FBQsPBgULBSEGCxAIBAUCAgQDBA0JBgYUBQESBgcFAQUBBQEFARwBCwUBBQUBBQsPAQQBAwMCAQQDBAQI/d4EBAQDAgIBAgMEDQIBAgMCAQIDAwsCAQgDAwUBAgECAQIBAgMDAQIBAgECBAMGAw0DHQIDDQQDDQkFCAUCAQQDBAQDBAgDFAIRAwkFEQIGBQMFBQUCAQ8CBQICAQQDBBEEBAUCIX2MfX2MfRd9Xn1+XQGTAQIGAQIEAgMECAkFBAQDBAECAgIEAgEBAQEBBQEGBAMJBQgIAgQGAQEBTwEBAwMEBAQFCQQGAQIBBgMEAggOAwgDBgMEAQICAwQDBAMHBwMIAxIKCAIEAgIDAwgKBwcBDAgEBAQEBAQECwEHAwYCBgIDBQMHAwIDCQMCAgcCAgICAQEBAgIEAgUMAQQCAgICAgECAgICAgEEAgECAgMEAQQBBAECAwIDAgECAwIBAgYCAQIGAwMCBQIBAg8DAgECAQIDBgMDAwMDAwMDAQQJBQgDAwMBBAMDBAYFAwIFAQIDAgMCAwIDAwIFAgMCDAIDAgMCAwQDBAMGAwoDBgIKAQYCBQQEBAkJBgQB/sYBAgIIBAQEBDMDCQMGAgYDAwMDAwMGAgMDCQIOAwgBDQULBQYKBwQFCQQGAgICAgMDAwMGBgYFAQUHDyYDCgMDBwMDBAMDBAMDBAMHAw4DLAUJCAQCAwITAQIDAwgEGwYHEwcNEwYHDQYfDQUBBQEFAQUBBQEFAQEEBAQCAgIDAwkJCAYGBQYQCwYRBQYGBS8GBQYGDAYHBQcGAv6yAQIGBAQGBAkEAwUJAgMEAwwBBAMEAwcJCQgDAwMCAgEGAgYDAgMCAwMPBgEDAwEDBAcMBAEDBAQECQgEAwICAgEDAgQECQQFBAQDAQoCAgICAgIBAQcCBQEBAQMCAgECAQIBAQEBAQICAgQCCQEBBAEEAQQHBQQJCAQCAwEDBwYDAwYCAgMBAwIDAgkCAwIBBAEEDQECAAAAAQAAAAADQAKGADMAAAEiDgEHBhYXJicHFhc2NyYnBy4BNjc+ARYXHgIHDgInJgYeARcyNzYzPgI3Ni4BJyYCET51VhIVFygsWgyiUCAPJBccIhcZIiJnby8tPxYMC0ViNA0SARUOCBEMBj1rRQgJIUw0QwKFNV48QYw3CBI7IA+gUAcEkShsaygqLQMbF1RnMTNUMAEBFBsNAQICCUhrPjt1YBwkAAAAAwAAAAAC7gKKAAMABwALAAATETMRMxEzETMRMxH6ZGRkZGQCiv2oAlj9qAJY/agCWAAAAAkAAP+iA7wDIQADAAgAIgAxAEcAXABxAIQAkwAAAQYHIQMWFyE2EwYjBgcGBxYXFjc2NzYXNhcWFzYnJicmByYXBhcWFxYXFhcWNiYnJicFBgcGDwEGBwYXFjc2NzY3Nj8BNjc2AQYHBhcWFQYHBgcGFj4BNT4BJy4BBQYHBhcWFRYXFhcWNTQnJicmNS4BAQYHBgcGByIGBwYXNjc2NzYuAQUGFxYXFhc2Jy4BIyYvAQH0YGABgMBkM/7SM2gMHCkSHgoIFAwcEQgOCRkzHQ4WCwocGBUI6iALBh4OBSoiFBUEDjpF/fEdGxAbDg0LDAMEHQ0WEAoPEA0ZBQgCmRQFAgIBAQMLIAIQGBMXEwYCDfykFwQCBwQLCA0TIhAIAhMBDQKuEyQeDxoXESUDBBc3NTQsBwIN/dklGhEjT0QXBAMlEVA4BgIyrK0BJrRaWgHVAgEFCBcUAgEHBQECAgIGAwEVDgwGBAEBTwoVDRoMBS8+DRMoC18rCgwdESYTDRgaDxMGECQcDRYPDBYMFP7RBRQLHRAIDQlBPBEOBBMOMm02BwkSBRkOIhcJLRgmGgUZDyUUBz89CAv+swkXEgkNBhUNDwsKGhgmBxMOAQ4eFRIsCQsPDBUYMQMAEQAA/6MDuAMiAA8AIAAyAHUAywEpAXQBtwIPAlwCnwL3A00DjwPUBCAEagAAASYGBwYeAjc+ATc2JicmBzYeARcWBgcOAS4CNjc+ARcGDwEOARYXFj4BOwE1IzY3JicrARUjDwMVHwQzNzM3MxczFzMXMxczFzMfBjM/BTUvAiMvCSMnIycjJyM1DwQjDwEVByMPASMHFQcjByMHIwcVDwMjFQ8BFQ8CIw8BHwUzPx0zPwMvAyMFDwUfFhUfBDM/BDUnNS8INSc1LwQjJyMnNS8BIyc1JzUvATUjLwE1JyMnNS8CNS8EBQ8FFSMVBxUHFSMVBxUXFTMVFxUXFRcVHwkzPwQ1LwI1JzUnNSc1JzUnNTc1NzU3NTc1NzUvBQUPBRUHFQ8PFR8FPwI1PwE1NzM3NT8CMz8KNTcvBCMFDwUfAhUXFRczFzMfAjMfATMVFxUXFRczHwEzFzMXFRcVHwEVHwIVHwIzPwU1Lx0FDwgjByMHIwcjByMHIw8EFR8FMzUzNzM3MzczPwszNzM/ATU/ATU3NT8ENS8EIwMrAQcjByMVIwcjDwcVHwQzNzM3MzczNzM3MxczFzMXMxczFzM/BTUvBSMnIzUjJyMnFw8FHxk/BDUvAyMnNSc1JyMvASMvATUnIyc1LwEjLwE1JzUnIzUnIycjLwE1LwEjJzUnIy8CBQ8CFQcjDwEVDwIVBxUHFQ8BIw8BFQ8CFQ8BIw8BIw8BFQcVDwEjDwIVHwUzPxk1LwQjAQ8DFQcXFQcVBxUHFQcVDwgVHwMzPwY1NzU/BzU3NTM1NzU3NSc1LwMjBQ8EFRcVFxUXFRcVHwcVFxUfAjMVHwMzPwQ1Lws1JzUnNSc1JzUvBCMTDwQVHwUzHwEVFzMXMx8BFR8BMxcVHwQzFzMfBjM/BTUvFwUPFxUfBjM/CDM/BDU3MzczNzU/ATU/ATM/BDUvBCMB9EBvFxkYVn46PVEBBEQ5KzImSDMJDy0xIVBLOBoJFhhQYwkUHQkJBAgECQ0EWVkSJg4/BA4NCgUHBgICAwgIBAEIBCYECAMEBAQHBAgDGgMIBwcDCQUEBAQDBAEEAwcBAwUEBAQEBAkEJgQJBQQEBQ2xBQMGBwEDCAMBFQMBAwMBCQEMAQkJAwMCAQIDAwgEAQQCAgIDAwgEBQQJAwgDAgQDAgMCAwIDAgMDAwIDAwMDAwMDAwYDIwIDBAQCAgUECAUBhAQEBAMDAwEGAwMCAwIDAgMCAwcWAQQBBAEGAwICBAQDBAUJBAQEAwQBAgICAQIBAgECAgIBAQEIAQEBAgIEAQIHAwIBAgMCAQIGAwkDAwMECf3HBAgDAwICAQIBAQEBAQECAQgCAQEBAwMEBAQFCQQDAwQBAgUDAgEBAQEBAQIBAQIDAwkEAo0FBAQDBAICBwIDBQIEAQIDDAoDBAIEAQEEAwQECQgFBwMPAgEGBQgBAQEGAQIBAgECAgIJAQICAwQIBf2uBAQEAwICAgUGDAYBDAEGBwMBAwMBBwcDAQcHAQMBAwQIBAQMBAQEBAkEBAQFAgEBBAQDFQMECgcZAwoCAwMDAwMDAwIGAwIDAgMCCA4BpQQEAQcKHAsHEgQLBAcEBAcECAQQCAQDAgIBBAQDBAURDQQFBAUIBSYECQQEBAQEBAEEAwEDAQMEBAgECQQCAgECBgMEBQSnBQYGCwUMBQUGJgYKCAQCAwEBAgYECQQrBQkFBQUFCgUeBQoFBQUFCgQYCQUEAwQEAQEEAwQHJgUGBQsGCwbvBAUDBAQCAggCDAcIBwQDBAMEAwcGBw8CCQIDEQQDBAkJBAQDBAECAwIBAgMCAQISAQkEBgEDBAMBAwgEAwEDAQMBCAQEBAEECAEECgj99AQIBQQBBAQEDAQEBAgDAQMEAwQDBAkBDwIBAgMDBQIBBAMDAQIDAwgECQUHBQUQBgIGAg8HBgcDBAMEAwQHCAQEBwIBAgIDBAgEAq8ECAYCAQEBAQECCAIBAgIEARYBAQQDDAUJBAYFBAMKAggBAgECAgIHAQEBAQEEAwQIBPymBAQIBAIBAQECBgICAgEEAQYCCgMEAQMGBAUJBAQEAwQCARIBAgECAQICAgcCAQEBAQIHAwUElAUEBgICAQIDAwUEAQQNCQENAQQFBQQBBAUFCgUZAQQBFAYFBQULCgkFBAQDBAECAwMEBxMFBAUFBAUFBCUeCAQECQwDDQ0CGgQFAwEUBAQJCBYsBQUEBQUFBAUbBAYEAQECAwMEBAQJAwYFCwUFBQYUAR4FCgUFBAEEAQQFHA0EAQQFAwIBAgIDBAgEAjQBSzs5gFkeFRVtQD5xGhUnASI9JTduHRUHGjhNUSElLDISIzYBDxEDAwEGGSJECO0BAgIFDAUJBAMGAgEBAQEBAgIHAgIDAgICAQIDAwgFCQgDBQIBAgECAQICAgkCAQEBJwEBAwUCBAECDwMCAQIJDAkBCQQDAwEDAwEDCwcHCQkEAwQEAQEEAwwDBAYDAwIDAwMDAwMCAwMCAwIDAgMCAwQDFgMDCAkJBwMEPAEBAwMEDQULAgMDAwMDAwIDAwojAwcDBwQOCwMHAwgDAwIBAQMCBAgJBAIECQQEBAQEBQMBAwEDBAEDEAQDAQMIAwEKAQMDAQMDAQMDAQYECQEDAgMDAqsBBAQDBAgEBAkFBAkNBBsFDQkEBAkEAQQiBAUBBAQDAwIBAgIDBAgJBQQSBAsEBwQEBwQIBB4ECAQHBAQHBAQJBAQEAwQBdwECAwMIBwQHBBoDCwsHBgQDBxQPAwcBCAUEBQgDAwICAgIHAQMVAQMLAQcQBAQMBAQEBAQECQQmBQUIBAQDBKECAgMDBAkJCQYBDAEGDAYFAwMCAQQBBAECBQQCAgEBAQQBAQEGAQEBAgEBAgMHBQQFBAgDAwkCAQYDEAMGAwIDAgMCAwIDBgIDAwMDAwcDTQECAQMGDAMDBQMCAQEBBAMDBAkFBAgDAwIBAQEBAgkCAgIBAgECAQEBAgICAQEBBAEBAQUEAwUEBQgIAwIBAs4BAQEBBwICBAMEBAQJBAUGAwIJAgEBAQEBAQIFAQIDAwgEBQQJAwMDBwEBAQFTAQICBAcJCQoBCQcGBwMEAwQDBAcIBxQEDQQEIAMDAgICAgMDCAkFBgUFBAEEAQQFHA0EAQgEAQQEBAgBAwEDAQMECAMBAwQDAQYEBwIKAQQEAQMEAwEDDAMBAwEDAQgEBAQBBAQEAQQNFwUFBAEEAQkFCgUMBAUEBAMEAQIFBwweCAQJBBQHCAcEAwQDBAMHBgQDBwUEBAkEBAME/sUBBAgEBAQEHgUKBQUFBQkFJwUEBQkKBDIEBQQIBAYCAgYICgUZAQQBFAYFBQULBiYFBgULBgsGFgYJCAMDBBABAQYICAkGEQUGBQYLBSEGCwUFCgYPAQQBGQUKAQQGAgEBAwIECAkIASkEBQUEBQUJBSIFCQUFBQUKBRcFBAcCAv6yAQMGBAkFBAQEAgUDBAkBBgkDAgECAwIBAgMEAwoCCAECAQICAwECAwMIBQQJBAMDAwQCAQIBAgECARAQBgIDBQkDCgMDAQICAg8CAwUGDBQBAgECAQIBAgYCBgkEBQQEBAMDAgEBAQICAgECAQgMAwQDAgECAwIBAhIBCQQDBQQEBAUJBAMDBAAAAAYAAP+VA74DJAAbADEASQBgAG0AegAAASYHBgcGBwYWFxYXHgE3PgI3NicuAScmJyMmBzYXFhcWFxYGBw4BJicuAjc2Nz4BFyYHBgcGBwYXFhcWFxY2Nz4CJyYnLgEHNhcWFxYHFgYHBgcGJicmJyY2NzY3NhcUFSMVMxUzNTM1IzUHMjMVMxUjFSM1IzUzAfNsZWFBQgsMNzw9U0+3VliETwYGHhx3T1BXAxUQY11ZOjwICT0+QKa0TVBkIBUXOTiiX1tVUTI1AQQkJEFEUk2eP0FFBB4gPDB8QlBKRyssAQFIPkBLR4wzNhQVFCcnPUoYn596n59hJSSfn0mgoAMiAjY1Wl1sXLZJSigoCxwdd6RZW1NThigpBQIxAzEwU1ZjWKxAQzsQKyyPs1VZQkROKwMwL09SW1NQTjY4EBAlMDKMoklMMiswMAIsKkZKUEuLLC8HCTEzNUVCkDs9IitdTk58nJx8nBidSp2dSgAABwAA/5UDvgMkABsAMQBJAGAAaQBtAHMAAAEmBwYHBgcGFhcWFx4BNz4CNzYnLgEnJicjJgc2FxYXFhcWBgcOASYnLgI3Njc+ARcmBwYHBgcGFxYXFhcWNjc+AicmJy4BBzYXFhcWBxYGBwYHBiYnJicmNjc2NzYXBg8BFzUXEQcnFBUnJRQVJyYnAfNsZWFBQgsMNzw9U0+3VliETwYGHhx3T1BXAxUQY11ZOjwICT0+QKa0TVBkIBUXOTiiX1tVUTI1AQQkJEFEUk2eP0FFBB4gPDB8QlBKRyssAQFIPkBLR4wzNhQVFCcnPUpFNmwv0crKGI8BWSpDIgMiAjY1Wl1sXLZJSigoCxwdd6RZW1NThigpBQIxAzEwU1ZjWKxAQzsQKyyPs1VZQkROKwMwL09SW1NQTjY4EBAlMDKMoklMMiswMAIsKkZKUEuLLC8HCTEzNUVCkDs9IiujJk0hlI+PASiPYGRlZGVlZR4wFwADAAD/mgO4AyIAEAAUAEIAAAEiBwEGFBcBFjI3ATY0JwEmBwkCNyIPBB8CDwIfBD8CHwI/BC8CPwIvBA8CJzUnAfQPC/5hCgoBnwsfCgGfCwv+YQsPAYb+ev569AICBA8DAQEDiYkDAQEDDwQEBQSJiQQFBAQPAwEBA4mJAwEBAw8EBAUEiYkEAyIL/mEKHwv+YQoKAZ8LHwoBnws+/nr+egGGrQEDDwQEBQSJiQQFBAQPAwEBA4mJAwEBAw8EBAUEiYkEBQQEDwMBAQOJiQECAAAAAAEAAP/fA48C7QARAAABBgcGBxYfAQAHFhcBFh8BNjcDj1BRs1sWKhr+25YLFgG7FCgeMFoC7SkoWisUKxr+15cLFAHAEykeYK0AAAADAAD/lgO/AyIAGwAyAEsAAAEiBwYHBgcGFhcWFx4BNzY3PgE3NicuAScmJyYHNhcWFxYXFgYHBgcGJicuATY3Njc+AQcGBxcGBxYXNxc2NycmJzc2NyYnBg8BJicB62xjYD9ACgs5PT5UTrRTV0BDUAgHHRt5UVNZDQ9PSEcrLAEDQDk8SEaQNzkyECYoQCNSRx06cDg2KixucToeJjIZJTEYKiwZMCUZMgMiNzZbXWtct0dKJyYLHB07OaFYW1NViykqBAGOAikoRUdPSYkuMQwOKTAxh5c+QSMVFm4eOnE2OCwqbnA6HSYyGSUwGSwqGDElGTIAAAoAAP+SA8EDIwAcADcAUQBqAG8AcwB3AHsAfwCDAAABIiMiBwYHBgcGFhcWFx4BNzY3PgE3Ni4BJyYnJgcyMzYXFhcWFxYGBwYHDgEnJicmJyY3Njc+ARciIyIHBgcGBwYWFxYXFjY3Njc+AScmJy4BBzIzMhcWFxYXFgYHBgcGLgEnLgE3Njc+AQcVESERBTMRIxMVMzUHFTM1BxUzNQcVMzUB8wECY15bQEIWFR4uL0hIsllcS0poFRYbXkhJVjg7BQVcVlQ5Og8QKjQ1Sky0U1U7PR0cCQouNbhuBQVUT0syNAkLNjg6TEidRUYtMB4UFTYzjk8DA0tFQyssBgg3NThFRI92ICICHyE6KGNkAS7+6v7+GsrKysrKysoDIi4tTlBhVrNNTjM1Kg4PMC6RVletmzY3FA4xAS0rTE1bUqhERicqCiAhQD9XVFlbSldpKysqSElUT507PBsbDSUmP0CjT1I7OkMwJyZAQUtHizI0EhQbVT5AlkJFKx8ieQz+kAF8GP60AScZGUoYGFUYGE0YGAAAABAAAP+jA7gDIgALABcAWgCyAQgBSwGgAf0CSAKKAs4DEQNoA7UEAQRLAAABFSMVMxUzNTM1IzUHMxUzFSMVIzUjNTMTMSMHIwcjFSMHIw8HFR8EMzczNzM3MzczNzMXMxczFzMXMxczPwU1LwUjJyM1IycjJxcjDwUfGT8ENS8DIyc1JzUnIy8BIy8BNScjJzUvASMvATUnNScjNScjJyMvATUvASMnNScjLwEFIw8CFQcjDwEVDwIVBxUHFQ8BIw8BFQ8CFQ8BIw8BIw8BFQcVDwEjDwIVHwUzPxk1LwQhMSMVIw8DFR8EMzczNzMXMxczFzMXMxczHwYzPwU1LwIjLwkjJyMnIycjNQcjDwIjDwEVByMPASMHFQcjByMHIwcVDwMjFQ8BFQ8CIw8BHwUzPx0zPwMvAwUPBR8WFR8EMz8ENSc1Lwg1JzUvBCMnIyc1LwEjJzUnNS8BNSMvATUnIyc1LwI1LwMFIw8FFSMVBxUHFSMVBxUXFTMVFxUXFRcVHwkzPwQ1LwI1JzUnNSc1JzUnNTc1NzU3NTc1NzUvBAUjDwMVBxcVBxUHFQcVBxUPCBUfAzM/BjU3NT8HNTc1MzU3NTc1JzUvAwUjDwMVFxUXFRcVFxUfBxUXFR8CMxUfAzM/BDUvCzUnNSc1JzUnNS8EBSMPBRUHFQ8PFR8FPwI1PwE1NzM3NT8CMz8KNTcvBAUPBR8CFRcVFzMXMx8CMx8BMxUXFRcVFzMfATMXMxcVFxUfARUfAhUfAjM/BTUvHAUjDwgjByMHIwcjByMHIw8EFR8FMzczNzM3MzczPwszNzM/ATU/ATU3NT8ENS8EBQ8FFR8FMx8BFRczFzMfARUfATMXFR8EMxczHwYzPwU1LxYhIw8XFR8GMz8IMz8ENTczNzM3NT8BNT8BMz8ENS8EAa59fYx9fXVefX1efX0vCwYLBQwFBQYmBgoIBAIDAQECBgQJBCsFCQUFBQUKBR4FCgUFBQUKBBgJBQQDBAQBAQQDBAcmBQYFCwYLBvQFBAUDBAQCAggCDAcIBwQDBAMEAwcGBw8CCQIDEQQDBAkJBAQDBAECAwIBAgMCAQISAQkEBgEDBAMBAwgEAwEDAQMBCAQEBAEECAEECv3xBQQIBQQBBAQEDAQEBAgDAQMEAwQDBAkBDwIBAgMDBQIBBAMDAQIDAwgECQUHBQUQBgIGAg8HBgcDBAMEAwQHCAQEBwIBAgIDBAgBBBINCgUHBgICAwgIBAEIBCYECAMEBAQHBAgDGgMIBwcDCQUEBAQDBAEEAwcBAwUEBAQEBAkEJgQJBQQEBQ2tBAgGBwEDCAMBFQMBAwMBCQEMAQkJAwMCAQIDAwgEAQQCAgIDAwgEBQQJAwgDAgQDAgMCAwIDAgMDAwIDAwMDAwMDAwYDIwIDBAQCAgUECAGEBQgEAwMDAQYDAwIDAgMCAwIDBxYBBAEEAQYDAgIEBAMEBQkEBAQDBAECAgIBAgECAQICAgEBAQgBAQECAgQBAgcDAgECAwIBAgYDCQMDAwT9wwUECAMDAgIBAgEBAQEBAQIBCAIBAQEDAwQEBAUJBAMDBAECBQMCAQEBAQEBAgEBAgMDCQLuBQQIBgIBAQEBAQIIAgECAgQBFgEBBAMMBQkEBgUEAwoCCAECAQICAgcBAQEBAQQDBAj8pwUICAQCAQEBAgYCAgIBBAEGAgoDBAEDBgQFCQQEBAMEAgESAQIBAgECAgIHAgEBAQECBwMFAvAEBQQEAwQCAgcCAwUCBAECAwwKAwQCBAEBBAMEBAkIBQcDDwIBBgUIAQEBBgECAQIBAgICCQECAgMECP2tBAgEAwICAgUGDAYBDAEGBwMBAwMBBwcDAQcHAQMBAwQIBAQMBAQEBAkEBAQFAgEBBAQDFQMECgcZAwoCAwMDAwMDAwIGAwIDAgMCCAGcBQQEAQcKHAsHEgQLBAcEBAcECAQQCAQDAgIBBAQDBAUMBQ0EBQQFCAUmBAkEBAQEBAQBBAMBAwEDBAQIBAkEAgIBAgYDBAX+RAQFBAYCAgECAwMFBAEEDQkBDQEEBQUEAQQFBQoFGQEEARQGBQUFCwoJBQQEAwQBAgMDBAcTBQQFBQQFBQQlHggEBAkMAw0CEgUEBQMBFAQECQgWLAUFBAUFBQQFGwQGBAEBAgMDBAQECQMGBQsFBQUGFAEeBQoFBQQBBAEEBRwNBAEEBQMCAQICAwQIAiF9jH19jH0XfV59fl0BlQEBAQEHAgIEAwQEBAkEBQYDAgkCAQEBAQEBAgUBAgMDCAQFBAkDAwMHAQEBAVMBAgIEBwkJCgEJBwYHAwQDBAMEBwgHFAQNBAQgAwMCAgICAwMICQUGBQUEAQQBBAUcDQQBCAQBBAQECAEDAQMBAwQIAwEDBAMBBgQHCAEEBAEDBAMBAwwDAQMBAwEIBAQEAQQEBAEEDRcFBQQBBAEJBQoFDAQFBAQDBAECBQcMHggECQQUBwgHBAMEAwQDBwYEAwcFBAQJBAQDBAECAgUMBQkEAwYCAQEBAQECAgcCAgMCAgIBAgMDCAUJCAMFAgECAQIBAgICCQIBAQEnAgMFAgQBAg8DAgECCQwJAQkEAwMBAwMBAwsHBwkJBAMEBAEBBAMMAwQGAwMCAwMDAwMDAgMDAgMCAwIDAgMEAxYDAwgJCQcDBDsBAgMDBA0FCwIDAwMDAwMCAwMKIwMHAwcEDgsDBwMIAwMCAQEDAgQICQQCBAkEBAQEBAUDAQMBAwQBAxAEAwEDCAMBCgEDAwEDAwEDAwEGBAkBAwIDA6kBBAQDBAgEBAkFBAkNBBsFDQkEBAkEAQQiBAUBBAQDAwIBAgIDBAgJBQQSBAsEBwQEBwQIBB4ECAQHBAQHBAQJBAQEAwQtAQQIBAQEBB4FCgUFBQUJBScFBAUJCgQyBAUECAQGAgIGCAoFGQEEARQGBQUFCwYmBQYFCwYLBhYGCQgDAwQQAgYICAkGEQUGBQYLBSEGCwUFCgYPAQQBGQUKAQQGAgEBAwIECAkIASkEBQUEBQUJBSIFCQUFBQUKBRcFBAcCAjkBAgMDCAcEBwQaAwsLBwYEAwcUDwMHAQgFBAUIAwMCAgICBwEDFQEDCwEHEAQEDAQEBAQEBAkEJgUFCAQEAwSgAQQDAwQJCQkGAQwBBgwGBQMDAgEEAQQBAgUEAgIBAQEEAQEBBgEBAQIBAQIDBwUEBQQIAwMJAgEGAxADBgMCAwIDAgMCAwYCAwMDAwMHSgECAQMGDAMDBQMCAQEBBAMDBAkFBAgDAwIBAQEBAgkCAgIBAgECAQEBAgICAQEBBAEBAQUEAwUEBQgIAwIBJwEBAwYECQUEBAQCBQMECQEGCQMCAQIDAgECAwQDCgIIAQIBAgIDAQIDAwgFBAkEAwMDBAIBAgECAQIBEBAGAgMFCQMKAQICAg8CAwUGDBQBAgECAQIBAgYCBgkEBQQEBAMDAgEBAQICAgECAQgMAwQDAgECAwIBAhIBCQQDBQQEBAUJBAMDBAAAAAAIAAD/mgO4AyIAFAApAC4AMgA2ADoAPgBCAAABIgcGBwYUFxYXFjI3Njc2NCcmJyYHMhcWFxYUBwYHBiInJicmNDc2NzYHFREhEQUzESMTFTM1BxUzNQcVMzUHFTM1AfR6amY8Pj48Zmr0amY8Pj48Zmp6bl5bNTc3NVte3F5bNTc3NVteKQEu/ur+/hrKysrKysrKAyI+PGZq9GpmPD4+PGZq9GpmPD4xNzVbXtxeWzU3NzVbXtxeWzU31Qz+kAF8GP60AScZGUoYGFUYGE0YGAAAAAoAAP+iA7gDIAAPACAAMgBtANYBXwG8AgMCTQK5AAABJgYHBh4CNz4BNzYmJyYHNh4BFxYGBw4BLgI2Nz4BFwYPAQ4BFhcWPgE7ATUjNjcmAysBByMHIwcVDwUVHwUzPwMzNzM3MzczFzMXMxczHwEzPwM1LwQjNSMnIycXDwYVHwozHwYVHwIzHw0zPwQ1LwE1JyMvBiMvATUjLwsjLwEjLwcjNSc1LwQjBQ8BIw8EFQ8EFQcjBxUPAyMVBxUHIxUPBBUHIw8BFQ8CFQ8CIw8DFQ8DFQcVDwoVBxUfBD8EMz8ENT8mNS8DAQ8FFRcVBxUHFQcVBxUHFQcVBxUHFQcVBxUHFQ8HFR8EPwUzPwEzPwE1PwEzNzM3NTc1MzU3NTc1NzU3NTc1NzU3NTc1JzUvBAUPBRUXFRcVFzMfBTMfARUXFRcVFxUzFxUXFR8EPwQ1Lw01JzUnNSc1LwMBDxcfBD8EMz8DMzczNzM3MzczNzU3Mzc1NzM/AjM3MzU/AzUvBAUPBRUfAxUfATMfAjMfAhUfATMfARUfATMXMxczFzMfAjMXMxcVMx8HMxcVFzMVMxczPwQ1LwQjJyMnIycjLwojLwQjLwUjAfRAbxcZGFZ+Oj1RAQREOSsyJkgzCQ8tMSFQSzgaCRYYUGMJFB0JCQQIBAkNBFlZEiYOOwcNBg0NBycNDgQDAwQBAgMDCQQFBgwGFwYLBgYGBikGBgYGBgUfBAUMAwMCAgYDCicGBwYNB+kFBAQDAwECAgIGAgIDBgUEAwgBDgIIAgYCBAECAgECAwIDBQQDBAMKBQYDCQQJBAQDBAIEBgEEAwIDAgMCAQIIAQUDBAIEAgIFAgcCAgECCQECAgMHAwIDAgECAwIGAgoF/fMFBwECAwIDAgMCAwIDBAECAgMCBAEEBAECAgICAgIBAgICBAICBAEBAQIDAgIKAQICAgEEAQIBAgECAQICAQQEAw4ECAQDAQECAwECAgIBAgECAQIBAgIDAgECCAIBAgICAQQCBAEGAgoCBgMKAwYDBQMCAQQGCAUCsgQFAwYCAQEBAQEBAQECAQMFAwUDBAMCBgMBAgMGBAkJBAQDAgEBAwIBAgMDAgEFAQwDAQIBAQEBAQEBAQQDBAQI/KYEBQMEBAEBAwIBAwIBBAEKAQQDAgMCAQIDAQIEBwkJBAQDBAIEAgMCBwQBBgECAQIIAQEBAQUICAKxBAQJBAUKBA8FBQsPBgULBSEGCxAIBAUCAgQDBA0JBgYUBQESBgcFAQUBBQEFARwBCwUBBQUBBQsPAQQBAwMCAQQDBAQI/d4EBAQDAgIBAgMEDQIBAgMCAQIDAwsCAQgDAwUBAgECAQIBAgMDAQIBAgECBAMGAw0DHQIDDQQDDQkFCAUCAQQDBAQDBAgDFAIRAwkFEQIGBQMFBQUCAQ8CBQICAQQDBBEEBAUCNAFLOzmAWR4VFW1APnEaFScBIj0lN24dFQcaOE1RISUsMhIjNgEPEQMDAQYZIkQIAUgBAgYBAgQCAwQICQUEBAMEAQICAgQCAQEBAQEFAQYEAwkFCAgCBAYBAQFPAQEDAwQEBAUJBAYBAgEGAwQCCA4DCAMGAwQBAgIDBAMEAwcHAwgDEgoIAgQCAgMDCAoHBwEMCAQEBAQEBAQLAQcDBgIGAgMFAwcDAgMJAwICBwICAgIBAQECAgQCBQwBBAICAgICAQICAgICAQQCAQICAwQBBAEEAQIDAgMCAQIDAgECBgIBAgYDAwIFAgECDwMCAQIBAgMGAwMDAwMDAwMBBAkFCAMDAwEEAwMEBgUDAgUBAgMCAwIDAgMDAgUCAwIMAgMCAwIDBAMEAwYDCgMGAgoBBgIFBAQECQkGBAH+xgECAggEBAQEMwMJAwYCBgMDAwMDAwYCAwMJAg4DCAENBQsFBgoHBAUJBAYCAgICAwMDAwYGBgUBBQcPJgMKAwMHAwMEAwMEAwMEAwcDDgMsBQkIBAIDAhMBAgMDCAQbBgcTBw0TBgcNBh8NBQEFAQUBBQEFAQUBAQQEBAICAgMDCQkIBgYFBhALBhEFBgYFLwYFBgYMBgcFBwYC/rIBAgYEBAYECQQDBQkCAwQDDAEEAwQDBwkJCAMDAwICAQYCBgMCAwIDAw8GAQMDAQMEBwwEAQMEBAQJCAQDAgICAQMCBAQJBAUEBAMBCgICAgICAgEBBwIFAQEBAwICAQIBAgEBAQEBAgICBAIJAQEEAQQBBAcFBAkIBAIDAQMHBgMDBgICAwEDAgMCCQIDAgEEAQQNAQIAAAAAAwAAAAADIAJYAAMABwALAAATFSE1BRUhNQUVITXIAlj9qAJY/agCWAJYZGTIZGTIZGQAAAUAAP/TA9QC6QAaAFQAdACIAJwAAAEiBgc5ARQXFhcGBwYPARUhNScmJzY1OQE0JgcyMxcWFxYfARYXFjMxMj8BFhUUBwYHFxYXFhUWFRQPAQ4BIiYvASY1NDc0NzY/AScuATU0NzI3MzYHMDEGFxYXHgEyNjc2NzYnMDEWFxUjNSMVIzUjFSM1NhMiDgEVERQeATMhMj4BNRE0LgEjBSEyHgEVERQOASMhIi4BNRE0PgEBSCUyAQoGCSIXHg8BAUwBGksXMUkCAgQPCQYGAgUDBgoMCgQGBQYSAgYKAgEBAQkeJB4JAQEBAgoFAgQKDggDAQIJIgIBAgYMJiomDAYCAQIyEjAUnBUvEw41WTU1WTUCOjVaNDRaNf3GAjolPiQkPiX9xiU+JCQ+AmMxIxIWDgsMDxQcAoWFAjEaFyojMS8BAQICBAEEAQIFAwwPFg0PCxIBBAYGBAkCAgEKCgoKAQICCQQGBgQBFAMIIg4REAEDggwGDAUNDQ0NBQwGDBYgbExMTExsIgFLNFk1/m41WTQ0WTUBkjVZNDwkPSX+biU9JCQ9JQGSJT0kAAAAAAUAAAAAA48CkwADAAcACwAPABMAABMRIREFMxUjNyEVIQczFSM3IRUhWQM2/O2fn8ICLv3Swp+fwgIu/dICk/2XAmnRra2tI6WlpQADAAAAAANSArwABAAIABQAABMVESERBSERIQEVIxUzFTM1MzUjNZYCvP1wAmT9nAEFm5tam5sCvBn9XQK8LP2cAfqbWpubWpsAAAAABAAA/5YDvQMiABcAMwA/AEsAAAEiDgMWFx4CNz4BNzY3NicuAScmIxcyFxYXFhcWBgcGBwYHBicmJyYnJicmNz4CFwcVIxUzFTM1MzUjNQczFTMVIxUjNSM1MwHwV6V/RAFAPTuhsFFUhicpAwYeHnZOXmsIVVBOOToWFxcrLERGWlhWWENDJyYDAyMecpRPRn19jH19dV59fV59fQMiRn2hs6Y+P0kJHh16UVNYV1VThyYvMScmQkRST6dISi80EA8WFjk1UU9XWk5JcD4B0H2MfX2MfRd9Xn1+XQAAAAAEAAD/lgO9AyMAFgAxADsARAAAASYOAxYXHgI3PgE3Njc2Jy4BJyYHNhcWFxYXFgYHBgcGBwYnJicmJyYnJjc+AhcGDwEnAzc2NxcDFhcWFzcHJwcB9FimgUQBQD07obBRVIYnKQMGHh52Tl5rVlJQOjsXFxcrLERGWlhWWENDJyYDAyMecpT8ESIzgHQXSCOGiQcOQyIeHXwyAyIBRn6hs6Y+P0kJHh16UVNYV1VThyYvMQEmJUNEVE+nSEovNBAPFhY5NlBPV1pOSXA+0yNFaab+qh5bLpoBBgkSVSpDdJFNAAAGAAD/lQO+AyQAGwAxAEkAYABkAGkAAAEmBwYHBgcGFhcWFx4BNz4CNzYnLgEnJicjJgc2FxYXFhcWBgcOASYnLgI3Njc+ARcmBwYHBgcGFxYXFhcWNjc+AicmJy4BBzYXFhcWBxYGBwYHBiYnJicmNjc2NzYXBgchAxYXITYB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9SlVgYAGAwGQz/tIzAyICNjVaXWxctklKKCgLHB13pFlbU1OGKCkFAjEDMTBTVmNYrEBDOxArLI+zVVlCRE4rAzAvT1JbU1BONjgQECUwMoyiSUwyKzAwAiwqRkpQS4ssLwcJMTM1RUKQOz0iK2OsrQEmtFpaAAAAAAYAAP+VA74DJAAbADEASQBgAGoAdQAAASYHBgcGBwYWFxYXHgE3PgI3NicuAScmJyMmBzYXFhcWFxYGBw4BJicuAjc2Nz4BFyYHBgcGBwYXFhcWFxY2Nz4CJyYnLgEHNhcWFxYHFgYHBgcGJicmJyY2NzY3NgUGDwEnAzc2NxcDFhcWFzcHJwcGBwHzbGVhQUILDDc8PVNPt1ZYhE8GBh4cd09QVwMVEGNdWTo8CAk9PkCmtE1QZCAVFzk4ol9bVVEyNQEEJCRBRFJNnj9BRQQeIDwwfEJQSkcrLAEBSD5AS0eMMzYUFRQnJz1KAQIRIjOAdBdII4aJBw5DIh4dfA4ZCwMiAjY1Wl1sXLZJSigoCxwdd6RZW1NThigpBQIxAzEwU1ZjWKxAQzsQKyyPs1VZQkROKwMwL09SW1NQTjY4EBAlMDKMoklMMiswMAIsKkZKUEuLLC8HCTEzNUVCkDs9Iit2I0Vppv6qHlsumgEGCRJVKkN0kRYkEwAAAwAA/5YDvwMiABsAMgA7AAABIgcGBwYHBhYXFhceATc2Nz4BNzYnLgEnJicmBzYXFhcWFxYGBwYHBiYnLgE2NzY3PgEXBg8BFzUXEQcB62xjYD9ACgs5PT5UTrRTV0BDUAgHHRt5UVNZDQ9PSEcrLAEDQDk8SEaQNzkyECYoQCNSGTZsL9HKygMiNzZbXWtct0dKJyYLHB07OaFYW1NViykqBAGOAikoRUdPSYkuMQwOKTAxh5c+QSMVFqImTSGUj48BKI8AAAAEAAD/8AOrAswAEwAnACsAOAAAEyIOARURFB4BMyEyPgE1ETQuASMFITIWFREUBisBESERIyImNRE0NhMhESE3HQEjFTMVMzUzNSM12CpHKipHKgI5KkcpKUcq/ccCOSw+Pix0/q5zLT09vwEU/uxzTU0uTU0CzClHKv5YKkcpKUcqAagqRykwPiz+WCw+ATT+zD4sAagsPv6Z/uztFzYuTU0uTQAAAAAEAAD/8AOrAswAEwAnACsALwAAEyIOARURFB4BMyEyPgE1ETQuASMFITIWFREUBisBESERIyImNRE0NhMhESE3FTM11ypHKSlHKgI6KkcpKUcq/cYCOiw+Pix0/q50LD09vwEU/uwlywLMKUcq/lgqRykpRyoBqCpHKTA+LP5YLD4BNP7MPiwBqCw+/pn+66cvLwAAAgAA//ADqwLMABMAIwAAEyIOARURFB4BMyEyPgE1ETQuASMFITIWFREUBiMhIiY1ETQ21ypHKSlHKgI6KkcpKUcq/cYCOiw+Piz9xiw9PQLMKUcq/lgqRykpRyoBqCpHKTA+LP5YLD4+LAGoLD4AAAMAAP+WA78DIgAbADIAPAAAASIHBgcGBwYWFxYXHgE3Njc+ATc2Jy4BJyYnJgc2FxYXFhcWBgcGBwYmJy4BNjc2Nz4BFwYPAScDNzY3FwHrbGNgP0AKCzk9PlROtFNXQENQCAcdG3lRU1kND09IRyssAQNAOTxIRpA3OTIQJihAI1LWESIzgHQXSCOGAyI3Nltda1y3R0onJgscHTs5oVhbU1WLKSoEAY4CKShFR09JiS4xDA4pMDGHlz5BIxUWdSNFaab+qh5bLpoAAAYAAP+VA74DJAAbADEASQBgAGsAeQAAASYHBgcGBwYWFxYXHgE3PgI3NicuAScmJyMmBzYXFhcWFxYGBw4BJicuAjc2Nz4BFyYHBgcGBwYXFhcWFxY2Nz4CJyYnLgEHNhcWFxYHFgYHBgcGJicmJyY2NzY3NhcGAgc2NzY3FyYvARYfAScGBwYHBjc2NzYB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9SlUYTRcXKicUfRkxMgwWIkQIGRIGCgELFBYDIgI2NVpdbFy2SUooKAscHXekWVtTU4YoKQUCMQMxMFNWY1isQEM7ECssj7NVWUJETisDMC9PUltTUE42OBAQJTAyjKJJTDIrMDACLCpGSlBLiywvBwkxMzVFQpA7PSIrb0L+80EXMCsVh06eUSRJbkoHHRQHCwYhQ0wAAAAABwAA/5IDwQMjABwANwBRAGoAewCNAJ8AAAEiIyIHBgcGBwYWFxYXHgE3Njc+ATc2LgEnJicmBzIzNhcWFxYXFgYHBgcOAScmJyYnJjc2Nz4BFyIjIgcGBwYHBhYXFhcWNjc2Nz4BJyYnLgEHMjMyFxYXFhcWBgcGBwYuAScuATc2Nz4BFyIGBwYeAjc+ATc2JicmIxcyHgEXFgYHDgEuAjY3PgEfAQYPAQ4BFhcWPgE7ATUjNjcmAfMBAmNeW0BCFhUeLi9ISLJZXEtKaBUWG15ISVY4OwUFXFZUOToPECo0NUpMtFNVOz0dHAkKLjW4bgUFVE9LMjQJCzY4OkxInUVGLTAeFBU2M45PAwNLRUMrLAYINzU4RUSPdiAiAh8hOihjLz9sFxkYVn46PVEBBEQ5KzIEJUYyCQ8tMSFQSzgaCRYYUCw3CRQdCQkECAQJDQRZWRImDgMiLi1OUGFWs01OMzUqDg8wLpFWV62bNjcUDjEBLStMTVtSqERGJyoKICFAP1dUWVtKV2krKypISVRPnTs8GxsNJSY/QKNPUjs6QzAnJkBBS0eLMjQSFBtVPkCWQkUrHyJhSjs5gFkeFRVtQD5xGhUnIzwkN24dFQcaOE1RISUsATESIzYBDxEDAwEGGSJECAAEAAD/lgO9AyMAFgAxADwASgAAASYOAxYXHgI3PgE3Njc2Jy4BJyYHNhcWFxYXFgYHBgcGBwYnJicmJyYnJjc+AhcGAgc2NzY3FyYvARYfAScGBwYHBjc2NzYB9FimgUQBQD07obBRVIYnKQMGHh52Tl5rVlJQOjsXFxcrLERGWlhWWENDJyYDAyMecpRPGE0XFyonFH0ZMTIMFiJECBkSBgoBCxQWAyIBRn6hs6Y+P0kJHh16UVNYV1VThyYvMQEmJUNEVE+nSEovNBAPFhY5NlBPV1pOSXA+zEL+80EXMCsVh06eUSRJbkoHHRQHCwYhQ0wABAAA/5YDvQMjABYAMQA1ADoAAAEmDgMWFx4CNz4BNzY3NicuAScmBzYXFhcWFxYGBwYHBgcGJyYnJicmJyY3PgIXBgchAxYXITYB9FimgUQBQD07obBRVIYnKQMGHh52Tl5rVlJQOjsXFxcrLERGWlhWWENDJyYDAyMecpRPYGABgMBkM/7SMwMiAUZ+obOmPj9JCR4delFTWFdVU4cmLzEBJiVDRFRPp0hKLzQQDxYWOTZQT1daTklwPsCsrQEmtFpaAAcAAP/TA9QC6QATACcAKwAzADcAOwA/AAATIg4BFREUHgEzITI+ATURNC4BIwUhMh4BFREUDgEjISIuATURND4BFxEhEQUhFSE1IxUjFTMVIzchFSEDFSE11zVZNTVZNQI6NVo0NFo1/cYCOiU+JCQ+Jf3GJT4kJD4BAfr+GwHP/qkWYmJieAFX/ql2Ac0C6TRZNf5uNVk0NFk1AZI1WTQ8JD0l/m4lPSQkPSUBkiU9JEj+hAF8g2hnZxVmZmYBTmxsAAACAAAAAAN9ApMASgCzAAABIgc5AQYHOQEGBzkBBgcGHQEUFzAxFhcWMxY3OQEyNjU0JzMyNzY3MTYnPgE0Jy4BKwE2NTkBNCcuASMFNzY/ATY3PgEnLgEvATEHMDIVMhc5ARYGBzkBBg8BDgEVFBcxHgEXFjsBFjczMhYXFhQHBisBFSEyFhcWFTEUBiMhFSEyFhcWBzkBDgEjIRUzMhYXFhU5ARQHDgEjBic5ASInJic1Jj0BNDc2NzY3MTY3MTYzNDMBzA0SPbgvEwgCAQgQLShB3NsaHQUQGg4NBgYMGxsOCBgOFQYPCBgO/sMFBgQOEwYPBA0GEgoFAQEFBQUCBwgdDBYKAgIFBwMCDEuWcQYIBAgHBA/yAT4GCAQHCg/+wgEPBwkECAMDCwv+8c0FBgMGBgIGBtvbOR4hDQcBAgYRJMMxBwQBApMKKIAgPxggEyQNMSJBHhoBASMcDxEOCxgeFwMhOxQKDQ4RHRMLDAEFBwMOFQcTLhIKDAIBIwEIBxoJCh0MFQ0GAwYFBgEBAQEEBQwfCQYjBAUKEhMMIwYGDRUMCSMDBAgRDwgDAgEBFBY0AR4sCiQSHRUzGYcgBAEAAAMAAAAAA4oCagADAAYACwAAExEhEQUhBSUFJREhXwMr/SgChP6+/o4BcgFz/RsCav3pAhcj1Mr09P45AAIAAP/TA9QC6QATACMAABMiDgEVERQeATMhMj4BNRE0LgEjBSEyFhURFAYjISImNRE0Nuc5YTk5YTkCGjlhOTlhOf3mAhorOjor/eYrOjoC6ThfOf6KOV84OF85AXY5XzhuOSn+iik5OSkBdik5AAAFAAD/mgO4AyIAFAApADoATABeAAABIgcGBwYUFxYXFjI3Njc2NCcmJyYHMhcWFxYUBwYHBiInJicmNDc2NzYXIgYHBh4CNz4BNzYmJyYjFzIeARcWBgcOAS4CNjc+AR8BBg8BDgEWFxY+ATsBNSM2NyYB9HpqZjw+PjxmavRqZjw+PjxmanpuXls1Nzc1W17cXls1Nzc1W15qP2wXGRhWfjo9UQEERDkrMgQlRjIJDy0xIVBLOBoJFhhQLDcJFB0JCQQIBAkNBFlZEiYOAyI+PGZq9GpmPD4+PGZq9GpmPD4xNzVbXtxeWzU3NzVbXtxeWzU3vUo7OYBZHhUVbUA+cRoVJyM8JDduHRUHGjhNUSElLAExEiM2AQ8RAwMBBhkiRAgABQAA/5YDvQMjABYAMQA2AEAARgAAASYOAxYXHgI3PgE3Njc2Jy4BJyYHNhcWFxYXFgYHBgcGBwYnJicmJyYnJjc+AgcUFSERBTIzBgcGBwYHJjcUFSE1FwH0WKaBRAFAPTuhsFFUhicpAwYeHnZOXmtWUlA6OxcXFyssREZaWFZYQ0MnJgMDIx5ylH4Bmv7BcnIPIBgNFRBA4/7InAMiAUZ+obOmPj9JCR4delFTWFdVU4cmLzEBJiVDRFRPp0hKLzQQDxYWOTZQT1daTklwPvicnAE4MQkcFgkPAjQFXV26fQAABAAA/5UDvgMjABsAMwBKAGEAAAEmBwYHBgcGFhcWFx4BNz4CNzYnLgEnJicjJgc2FxYXFhcWBgcGBwYmJyYnLgE3Njc+ARciBwYHBhUGFhcWFxY2Nz4CJyYnLgEHMhcWFxYHFAYHBgcGJicmJyY2NzY3NgHwbGRhP0ILDDc8PVNPt1ZYhE8GBh4cdU5PVgMbBWNbWDg6BghBQEJUUbFMTjAzIBYWOjqnTVtSUDEyAkxCRVJMmz5ARAQfIDwygDVRSUcpKgNJPUBKR4wzNhQVFCcoPU0DIgE2NVpda1y2SUooKAscHXekWVtTUoYoKQYCMQEzMlRXY1irQEEbHBMqLEdHs1ZZQkZOLjIwUFNbU5s1Nw4PJzAxjKJJTDIsLzEtK0hKUUqHLC0HCTEzNUVCkDs+IS0AAAAABgAA/5UDvgMkABsAMQBJAGAAaABxAAABJgcGBwYHBhYXFhceATc+Ajc2Jy4BJyYnIyYHNhcWFxYXFgYHDgEmJy4CNzY3PgEXJgcGBwYHBhcWFxYXFjY3PgInJicuAQc2FxYXFgcWBgcGBwYmJyYnJjY3Njc2FxQVIxUzFTcnFh8BBzUjNTMB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9Sofi4qWJESIzZt/fAyICNjVaXWxctklKKCgLHB13pFlbU1OGKCkFAjEDMTBTVmNYrEBDOxArLI+zVVlCRE4rAzAvT1JbU1BONjgQECUwMoyiSUwyKzAwAiwqRkpQS4ssLwcJMTM1RUKQOz0iK3QyMr5kw3oUKD15NoUAAAADAAD/lgO/AyIAGwAyAD0AAAEiBwYHBgcGFhcWFx4BNzY3PgE3NicuAScmJyYHNhcWFxYXFgYHBgcGJicuATY3Njc+ARcGAgc2NzY3FyYnAetsY2A/QAoLOT0+VE60U1dAQ1AIBx0beVFTWQ0PT0hHKywBA0A5PEhGkDc5MhAmKEAjUikYTRcXKicUfRkxAyI3Nltda1y3R0onJgscHTs5oVhbU1WLKSoEAY4CKShFR09JiS4xDA4pMDGHlz5BIxUWbkL+80EXMCsVh06eAAAABQAA/6wDtgMbAAgADAAQABQAGAAAARURITUjETM1AQcXNw8BFzcPARc3DwEXNwKlARHg4P6eSzxL00s8S9JMPEvSTDxMAxsZ/LExAwUy/n48SzwsPEs7LDtMPCw8SzsABAAA/2oCogNSAAMAFAAeACkAACUhFSEBETMyNj0BNCc+AT0BNCcmIwczMhYdARQGKwEHMzIXFh0BFAYrAQKi/qQBXP6ksFVWUSMgJihUOTkfGiAiMAU1JRASHB1DKb8D6P02VFI6eyISRjccUCgqZCQoJikjbhIUMD4mIQAAAAAEAAD/mgO4AyIAEAAUAGoAbwAAASIHAQYUFwEWMjcBNjQnASYHCQIlMQ8DFS8CDwQfAiMPAxUfAzMPAh8EPwIVHwMzPwM1HwI/BC8CMz8CNS8CIz8CLwQPAjUvAgcwOQEwAfQPC/5hCgoBnwsfCgGfCwv+YQsPAYb+ev56AX0EBAIBYwMEBAQNAgEBAmOMBAMCAQECAwSMYwIBAQINBAQEA2MBAgQEEgQEAgFjAwQEBA0CAQECY4wEAwMDAwSMYwIBAQINBAQEA2MBAgSLAyIL/mEKHwv+YQoKAZ8LHwoBnws+/nr+egGGxgECAwSMYwIBAQINBAQEA2MBAgQEEgQEAgFjAwQEBA0CAQECY4wEAwIBAQIDBIxjAgEBAg0EBAQEYgECBBoEAgFjAwQEBA0CAQECY4wEAwMwAAAABAAA/5oDuAMiABAAFAAaAB8AAAEiBwEGFBcBFjI3ATY0JwEmBwkCJQ8BFyE3JxcHIycB9A8L/mEKCgGfCx8KAZ8LC/5hCw8Bhv56/noBhgfQUgEKUte7SOZIAyIL/mEKHwv+YQoKAZ8LHwoBnws+/nr+egGG4AWX/f1+h9zcAAACAAD/mgO4AyIADwATAAATBhQXARYyNwE2NCcBJiIHCQM7CgoBnwsfCgGfCwv+YQofC/6UAYYBhv56AXgKHwv+YQoKAZ8LHwoBnwsL/kcBhv56/noAAAAABAAA/5oDuAMiABAAFAAhAC4AAAEiBwEGFBcBFjI3ATY0JwEmBwkCJSIOARQeATI+ATQuAQcyHgEUDgEiLgE0PgEB9A8L/mEKCgGfCx8KAZ8LC/5hCw8Bhv56/noBhjlhODhhcmE4OGE5M1YyMlZmVjIyVgMiC/5hCh8L/mEKCgGfCx8KAZ8LPv56/noBhtI4YXJhODhhcmE4FzJWZlYyMlZmVjIAAAAAAwAA/5YDvwMiABsAMgBKAAABIgcGBwYHBhYXFhceATc2Nz4BNzYnLgEnJicmBzYXFhcWFxYGBwYHBiYnLgE2NzY3PgEXJgcOAQcGFxYXHgE3Njc2Nz4BJyYnLgEB62xjYD9ACgs5PT5UTrRTV0BDUAgHHRt5UVNZDQ9PSEcrLAEDQDk8SEaQNzkyECYoQCNSKTYyL0IJCxIOKCVpNTgsLhoZBBYWLB5LAyI3Nltda1y3R0onJgscHTs5oVhbU1WLKSoEAY4CKShFR09JiS4xDA4pMDGHlz5BIxUWUQIaGVk0ODM0KCUlBgcgHTIvbzA0IBgaAAMAAP+WA78DIgAbADIANgAAASIHBgcGBwYWFxYXHgE3Njc+ATc2Jy4BJyYnJgc2FxYXFhcWBgcGBwYmJy4BNjc2Nz4BFwYHIQHrbGNgP0AKCzk9PlROtFNXQENQCAcdG3lRU1kND09IRyssAQNAOTxIRpA3OTIQJihAI1IpYGABgAMiNzZbXWtct0dKJyYLHB07OaFYW1NViykqBAGOAikoRUdPSYkuMQwOKTAxh5c+QSMVFmKsrQACAAD/kgPBAyMAGgAxAAABIgcGBwYHBh4BFx4BNzY3PgE3NicuAScmJyYHMhcWFxYXFgYHDgEmJyYnLgE3Njc+AQHwZF5bQUIVFCBgSUevWFpJSmkWFw4NYkpMWTQnSkRBKy0HCTAzNIaQPD4iJgcfIDwqZgMiLy1QUWJWs5syMygODy8tkVVYVlqeNjgSC44lJD4/SUaLMzUrFCcoPUCaRUgsICEAAAADAAD/lgO/AyIAGgAvADkAAAEiBwYHBgcGFhcWFx4BNzY3PgE3NicuAScmJwc2FxYXFhcWBgcOASYnLgE2NzY3NhcGDwEXITY/ASYB62xjYD9ACgs5PD5UT7RTV0BDUAgHHRt5UVNZHE9IRyssAQNAOjuOkDc5Mg8nKEBIViRHbFIBChcrEEcDIjg2Wl5rXLZHSicmCxwcOzqhWFtTVYspKgSNAikoRUdPSYkvMBopMDGHlj9BIytWGjRO/USIMTQAAAAABAAA/5YDvwMiABsAMgA3AD0AAAEiBwYHBgcGFhcWFx4BNzY3PgE3NicuAScmJyYHNhcWFxYXFgYHBgcGJicuATY3Njc+AQcWFzY3BRQVIREHAetsY2A/QAoLOT0+VE60U1dAQ1AIBx0beVFTWQ0PT0hHKywBA0A5PEhGkDc5MhAmKEAjUn5WVThy/oUBmskDIjc2W11rXLdHSicmCxwdOzmhWFtTVYspKgQBjgIpKEVHT0mJLjEMDikwMYeXPkEjFRaaRUUuXCCMjAESowAAAAMAAP+WA78DIgAbADIAOgAAASIHBgcGBwYWFxYXHgE3Njc+ATc2Jy4BJyYnJgc2FxYXFhcWBgcGBwYmJy4BNjc2Nz4BFxQVIxUzFTcB62xjYD9ACgs5PT5UTrRTV0BDUAgHHRt5UVNZDQ9PSEcrLAEDQDk8SEaQNzkyECYoQCNSW+LipQMiNzZbXWtct0dKJyYLHB07OaFYW1NViykqBAGOAikoRUdPSYkuMQwOKTAxh5c+QSMVFnMyMr5kwwAAAAcAAP+VA74DJAAbADEASQBgAGUAbwB1AAABJgcGBwYHBhYXFhceATc+Ajc2Jy4BJyYnIyYHNhcWFxYXFgYHDgEmJy4CNzY3PgEXJgcGBwYHBhcWFxYXFjY3PgInJicuAQc2FxYXFgcWBgcGBwYmJyYnJjY3Njc2BxQVIREFMjMGBwYHBgcmNxQVITUXAfNsZWFBQgsMNzw9U0+3VliETwYGHhx3T1BXAxUQY11ZOjwICT0+QKa0TVBkIBUXOTiiX1tVUTI1AQQkJEFEUk2eP0FFBB4gPDB8QlBKRyssAQFIPkBLR4wzNhQVFCcnPUp4AZr+wXJyDyAYDRUQQOP+yJwDIgI2NVpdbFy2SUooKAscHXekWVtTU4YoKQUCMQMxMFNWY1isQEM7ECssj7NVWUJETisDMC9PUltTUE42OBAQJTAyjKJJTDIrMDACLCpGSlBLiywvBwkxMzVFQpA7PSIrm5ycATgxCRwWCQ8CNAVdXbp9AAUAAP+VA74DJAAbADEASQBgAGkAAAEmBwYHBgcGFhcWFx4BNz4CNzYnLgEnJicjJgc2FxYXFhcWBgcOASYnLgI3Njc+ARcmBwYHBgcGFxYXFhcWNjc+AicmJy4BBzYXFhcWBxYGBwYHBiYnJicmNjc2NzYXBg8BFzUXEQcB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9SkU2bC/RysoDIgI2NVpdbFy2SUooKAscHXekWVtTU4YoKQUCMQMxMFNWY1isQEM7ECssj7NVWUJETisDMC9PUltTUE42OBAQJTAyjKJJTDIrMDACLCpGSlBLiywvBwkxMzVFQpA7PSIroyZNIZSPjwEojwAAAAAEAAD/lgO9AyMAFgAxADsAQgAAASYOAxYXHgI3PgE3Njc2Jy4BJyYHNhcWFxYXFgYHBgcGBwYnJicmJyYnJjc+AhcGDwEXITY/ASYnFhcHIyc2AfRYpoFEAUA9O6GwUVSGJykDBh4edk5ea1ZSUDo7FxcXKyxERlpYVlhDQycmAwMjHnKUTyRHbFIBChcrEEeQfD9I5kg/AyIBRn6hs6Y+P0kJHh16UVNYV1VThyYvMQEmJUNEVE+nSEovNBAPFhY5NlBPV1pOSXA+tBo0Tv1EiDE0Slot3NwtAAAABgAAAAADRQKVACgATgBSAFYAWgBeAAABDwEGBwYHFBcWFzEWFxYXFgcGDwEhNzM+AScmJyYvASYnJjU0NzY/AQUhBgcGFQYXFhcxFhcWFxYHBgcGByE2NzYnJicmLwEmJyY3NDc2FxUzNQcVMzUHFTM1BxUzNQF8BAJUKSYCGxAoJBAXAwIWG0hKAcoFAU1FBQQXDyMNIhAUHSRNSf5EARonFScBGxAoJBAXAwEEBA0ZRf7lHxAjBQQYDyQMIg8VARwhCtzl5X3dvuUClQIBMjAuLigoGCklFR4VGhwjKysDLVctISIUJA4iFx4ZHSEqLisuHRouLigoGCklFR4VDQwODyEpFxYsLCIiFCUMIxYeGR0hJyIVFXMWFnQVFXMWFgAAAAQAAP/TA9QC6QATACcAawDGAAATIg4BFREUHgEzITI+ATURNC4BIwUhMh4BFREUDgEjISIuATURND4BFyIHOQEGDwEGBzkBBgcGHQExFBcwMR4BMxY3OQEyNjU0JzMyNjcwMTYnPgE3NjQmKwE2NTkBNCcuASsBNzY3PgEnJicHMDEyFzkBFgYHOQEGDwEGFzEWHwEzFjczMhcWFAcGIyInFRYzMhYVMRQHDgErARUzMhYHOQEOASsBFTMxMhYVOQEUBwYHITEmJyYnOQEmNTE0NzY/ATY/ATYz1zVZNTVZNQI6NVo0NFo1/cYCOiU+JCQ+Jf3GJT4kJD6qCggXaRkdDQUBAQULNCmJiRERAwoQEQQDBwgOBAgTEw4FCgQQCMYJFAUJAgcKDAMEAwMCBAIVGQQDAgcCAjFkRAkCBQUDCGYzQ4UHCQQDBAXIqwcLAwEHB6uCBgYDAwb+7iITFgcFBgsWQUgPAgQBAuk0WTX+bjVZNDRZNQGSNVk0PCQ9Jf5uJT0kJD0lAZIlPSQoBg9IERUnDxQMFwccGCsqAgIWEAoJEQ8UDgEJBgwlHAwMEgsGBwkUBgwdCw4BFgUFDwYDFRkGBwcBAQEBBQUXBQYBFgENCwsIAwMWEA4HBxYHDAcGAwECEBMgFRoyFSAQLDIKAQEAAgAAAAADhgJgAAIABwAAEwUlBREhEQVjAZEBkfzfAyL+bgJg4+NU/kABwOAAAAAABQAAAAADLAJ3ACYATgCGAI8AmAAAARQVBgcnBxcGByMVMxYXNQc1Mzc2PwEnNxc3Nj8BNTMVMyYnJic1BxUGBycHFwYHIxU3FhcHFzcWFxUzNTY3FzcnNjczNSMmJzcnByYnNwczBxcWHwE3FwcXFh8BMxUPAQYPARcHJwcGDwEVIzUnJi8BByc3JyYvAQc1Mzc2PwEnNxc3Nj8BFyIGFBYyNjQmBzIWFAYiJjQ2AZ0WFihKKAwGODgIFDExAwYRCCIZIgwaIA4kXgYWEQ4GGxEoSicLBjk5BwsoSykTGWkZEylKKQwGODgICydLJxYWAUckAQ8eHAsiGSEIEgYDMTEDBhEIJBojDBsfDiMPHxsLJBokCBIGAzIyAwYRCCMZIwwYIg4SIC8vQC8vIBMZGSUaGgJ3HBwGDCdKKBMYahkeWwEkDh8aDCMZIggQCAMwMAcJCAQ3ZTcICyhLKBQXagEVFyhKKAwGOToGDChLKBYWaRkSJ0onDAY3IzADBhEIIhkiDBseDiMBDh8aDCMaJAgSBgMzMgMGEggkGSMMGx8OASQOHhwMIhkiCBAIA1AvQS4uQS8jGiUZGSUaAAAAAAUAAP/TA9QC6QATACcAKwAuADMAABMiDgEVERQeATMhMj4BNRE0LgEjBSEyHgEVERQOASMhIi4BNRE0PgEHESERBSEHJxc3ESHXNVk1NVk1Ajo1WjQ0WjX9xgI6JT4kJD4l/cYlPiQkPgECDv4oAaLR8PDx/h8C6TRZNf5uNVk0NFk1AZI1WTQ8JD0l/m4lPSQkPSUBkiU9JFP+pQFbF4mDnp7+2QAAAAMAAAAAAxECnQAgAFgAeQAAASIHDgEVOQEUFxYXBgcGDwEVITUnJicmJzY1OQE0JicmBzIXFhcWHwEWFxYXMTY/ATY3FhUUBwYHHwIWFQYPAQ4BIiYvASYnND8DJicuAScmNTQ/ATYHMBUGFxYXFhcWMjc2NzY3Nic1FhcVIzUjFSE1IxUjNTYB8CskIicQCxA7KDUaAgJCAhk0KDooJyIkaAkFGhAMCQQIBgoQGQ4CBAIKCQweBBwEAQEBARA3OjcQAQEBAQQbAwQDBxAGDQ8GDDQDAgILFiIgSCAiFgsCAwRWIFMj/vAjUyACnBUTRCYiJRoRFBojMQTn5wQwIxoUKUomRBMVUwEBBQQGAgYCAwEBCAICARQaJxYbEiAJFAgPBAQCEBISEAIEBA8IFAkiBAIFFw0fGh8ZAgXhAQwSFAsWDAsLDBYKFQ0RASY5u4SEhIS7OQAAAgAA/5YDvQMiABcAMwAAASIOAxYXHgI3PgE3Njc2Jy4BJyYjFzIXFhcWFxYGBwYHBgcGJyYnJicmJyY3PgIXAfBXpX9EAUA9O6GwUVSGJykDBh4edk5eawhVUE45OhYXFyssREZaWFZYQ0MnJgMDIx5ylE8DIkZ9obOmPj9JCR4delFTWFdVU4cmLzEnJkJEUk+nSEovNBAPFhY5NlBPV1pOSXA+AQAABQAA/5UDvgMkABsAMQBJAGAAawAAASYHBgcGBwYWFxYXHgE3PgI3NicuAScmJyMmBzYXFhcWFxYGBw4BJicuAjc2Nz4BFyYHBgcGBwYXFhcWFxY2Nz4CJyYnLgEHNhcWFxYHFgYHBgcGJicmJyY2NzY3NhcGAgc2NzY3FyYnAfNsZWFBQgsMNzw9U0+3VliETwYGHhx3T1BXAxUQY11ZOjwICT0+QKa0TVBkIBUXOTiiX1tVUTI1AQQkJEFEUk2eP0FFBB4gPDB8QlBKRyssAQFIPkBLR4wzNhQVFCcnPUpVGE0XFyonFH0ZMQMiAjY1Wl1sXLZJSigoCxwdd6RZW1NThigpBQIxAzEwU1ZjWKxAQzsQKyyPs1VZQkROKwMwL09SW1NQTjY4EBAlMDKMoklMMiswMAIsKkZKUEuLLC8HCTEzNUVCkDs9IitvQv7zQRcwKxWHTp4AAAAABgAA/5UDvgMkABsAMQBJAGAAagBxAAABJgcGBwYHBhYXFhceATc+Ajc2Jy4BJyYnIyYHNhcWFxYXFgYHDgEmJy4CNzY3PgEXJgcGBwYHBhcWFxYXFjY3PgInJicuAQc2FxYXFgcWBgcGBwYmJyYnJjY3Njc2FwYPARchNj8BJicWFwcjJzYB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9SlUkR2xSAQoXKxBHkHw/SOZIPwMiAjY1Wl1sXLZJSigoCxwdd6RZW1NThigpBQIxAzEwU1ZjWKxAQzsQKyyPs1VZQkROKwMwL09SW1NQTjY4EBAlMDKMoklMMiswMAIsKkZKUEuLLC8HCTEzNUVCkDs9IitXGjRO/USIMTRKWi3c3C0AABAAAP+gA7sDIgAKABgAJgA1AEcAWABpAHcAhACTAKEArgC8AM4A3ADvAAABBgIHNjc2NxcmLwEWHwEnBgcGBwY3Njc2EwYHDgEWNzYXFjYmJyYXJgYWFxYXFj4BJy4BJyYFBgcGBwYHBgcGFjI3Njc2LgEzIgciBw4BHgE3NhcWNjQnJgcGBwYPAQYHBh4BNzY3NjQmBSYGFhcWFxYyNicmJyYFJgcGFx4BNicmNzYmBSYGFxYHBh4BNz4BJy4BBSYGFxYXFj4BJyY3LgEFJgcGBwYeATc2Ny4BBSIGFhcWFxY2JicmJyYFDgEHBgcGDwEOARY3Njc+ASYFIgYWFxYXFjYmJyYnJgUGBwYHBgcGBw4BFjc+ATc2LgEB9BhNFxcqJxR9GTEyDBYiRAgZEgYKAQsUFgxKLwwBEwxeZgwOBQwxygwPAwtMLQcZDwQYSS4E/fULCgYLCAVBIQQRGAcpUQYBDf8EChIHDQkJFAlORwwSC0LqDQ4JEAo9GQURGQYpUAgOAX8MDgIKNBkHGRAEGkQE/cMZBQsbBhgSAhoQAQ4C6Q8NAwEwBBAYBx0bBAIO/KQPDgMCMQcZDwUvAgENAuwaAg0yBg8ZCD0MAQ39qAsMAgg/VAwRAQtPNwYBnwwrCxMZDx4RDAUPDGFQCAEN/j0LDQMKWWkMDgUMZE8GAhgJCQUKDgg0WQsCEQ02ZSkHAg0CJkL+80EXMCsVh06eUSRJbkoHHRQHCwYhQ0wBdAIQBhkRBBkWARMZBAxTARMYBThbCgETDDJYIAIKAQcFCwgEPlAMEgtdQAcTDgECBBURCAMGHwQRGQYfJwIIBQwHMDAMEwELQC4HEw87ARIXBjVUCxMMXUEDqQIrVk0LAxEMUFQKDi0BGg5lXgwSAQo2eT4IChABGg5rWgoCEwxbZggLOAIpP0MMFAMLT1sJDqARFgZJHQMSGAYeQgZNAxUDBwQDAwIEGBQBAjAHFQ8nExYFSBMBFBgEFUIDAwEFAwkLAyMWBhkSAwsxIwcTDgAAAAAFAAD/lQO+AyQAGwAxAEkAYABoAAABJgcGBwYHBhYXFhceATc+Ajc2Jy4BJyYnIyYHNhcWFxYXFgYHDgEmJy4CNzY3PgEXJgcGBwYHBhcWFxYXFjY3PgInJicuAQc2FxYXFgcWBgcGBwYmJyYnJjY3Njc2FxQVIxUzFTcB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9Sofi4qUDIgI2NVpdbFy2SUooKAscHXekWVtTU4YoKQUCMQMxMFNWY1isQEM7ECssj7NVWUJETisDMC9PUltTUE42OBAQJTAyjKJJTDIrMDACLCpGSlBLiywvBwkxMzVFQpA7PSIrdDIyvmTDAAAAAA0AAP+iA7gDIAAEAAgADAAQABQAGABTALwBRQGiAekCMwKfAAABFREhEQUzESMTFTM1BxUzNQcVMzUHFTM1AysBByMHIwcVDwUVHwUzPwMzNzM3MzczFzMXMxczHwEzPwM1LwQjNSMnIycXDwYVHwozHwYVHwIzHw0zPwQ1LwE1JyMvBiMvATUjLwsjLwEjLwcjNSc1LwQjBQ8BIw8EFQ8EFQcjBxUPAyMVBxUHIxUPBBUHIw8BFQ8CFQ8CIw8DFQ8DFQcVDwoVBxUfBD8EMz8ENT8mNS8DAQ8FFRcVBxUHFQcVBxUHFQcVBxUHFQcVBxUHFQ8HFR8EPwUzPwEzPwE1PwEzNzM3NTc1MzU3NTc1NzU3NTc1NzU3NTc1JzUvBAUPBRUXFRcVFzMfBTMfARUXFRcVFxUzFxUXFR8EPwQ1Lw01JzUnNSc1LwMBDxcfBD8EMz8DMzczNzM3MzczNzU3Mzc1NzM/AjM3MzU/AzUvBAUPBRUfAxUfATMfAjMfAhUfATMfARUfATMXMxczFzMfAjMXMxcVMx8HMxcVFzMVMxczPwQ1LwQjJyMnIycjLwojLwQjLwUjAV0BLv7q/v4aysrKysrKymEHDQYNDQcnDQ4EAwMEAQIDAwkEBQYMBhcGCwYGBgYpBgYGBgYFHwQFDAMDAgIGAwonBgcGDQfpBQQEAwMBAgICBgICAwYFBAMIAQ4CCAIGAgQBAgIBAgMCAwUEAwQDCgUGAwkECQQEAwQCBAYBBAMCAwIDAgECCAEFAwQCBAICBQIHAgIBAgkBAgIDBwMCAwIBAgMCBgIKBf3zBQcBAgMCAwIDAgMCAwQBAgIDAgQBBAQBAgICAgICAQICAgQCAgQBAQECAwICCgECAgIBBAECAQIBAgECAgEEBAMOBAgEAwEBAgMBAgICAQIBAgECAQICAwIBAggCAQICAgEEAgQBBgIKAgYDCgMGAwUDAgEEBggFArIEBQMGAgEBAQEBAQEBAgEDBQMFAwQDAgYDAQIDBgQJCQQEAwIBAQMCAQIDAwIBBQEMAwECAQEBAQEBAQEEAwQECPymBAUDBAQBAQMCAQMCAQQBCgEEAwIDAgECAwECBAcJCQQEAwQCBAIDAgcEAQYBAgECCAEBAQEFCAgCsQQECQQFCgQPBQULDwYFCwUhBgsQCAQFAgIEAwQNCQYGFAUBEgYHBQEFAQUBBQEcAQsFAQUFAQULDwEEAQMDAgEEAwQECP3eBAQEAwICAQIDBA0CAQIDAgECAwMLAgEIAwMFAQIBAgECAQIDAwECAQIBAgQDBgMNAx0CAw0EAw0JBQgFAgEEAwQEAwQIAxQCEQMJBRECBgUDBQUFAgEPAgUCAgEEAwQRBAQFAhwM/pABfBj+tAEnGRlKGBhVGBhNGBgCLQECBgECBAIDBAgJBQQEAwQBAgICBAIBAQEBAQUBBgQDCQUICAIEBgEBAU8BAQMDBAQEBQkEBgECAQYDBAIIDgMIAwYDBAECAgMEAwQDBwcDCAMSCggCBAICAwMICgcHAQwIBAQEBAQEBAsBBwMGAgYCAwUDBwMCAwkDAgIHAgICAgEBAQICBAIFDAEEAgICAgIBAgICAgIBBAIBAgIDBAEEAQQBAgMCAwIBAgMCAQIGAgECBgMDAgUCAQIPAwIBAgECAwYDAwMDAwMDAwEECQUIAwMDAQQDAwQGBQMCBQECAwIDAgMCAwMCBQIDAgwCAwIDAgMEAwQDBgMKAwYCCgEGAgUEBAQJCQYEAf7GAQICCAQEBAQzAwkDBgIGAwMDAwMDBgIDAwkCDgMIAQ0FCwUGCgcEBQkEBgICAgIDAwMDBgYGBQEFBw8mAwoDAwcDAwQDAwQDAwQDBwMOAywFCQgEAgMCEwECAwMIBBsGBxMHDRMGBw0GHw0FAQUBBQEFAQUBBQEBBAQEAgICAwMJCQgGBgUGEAsGEQUGBgUvBgUGBgwGBwUHBgL+sgECBgQEBgQJBAMFCQIDBAMMAQQDBAMHCQkIAwMDAgIBBgIGAwIDAgMDDwYBAwMBAwQHDAQBAwQEBAkIBAMCAgIBAwIEBAkEBQQEAwEKAgICAgICAQEHAgUBAQEDAgIBAgECAQEBAQECAgIEAgkBAQQBBAEEBwUECQgEAgMBAwcGAwMGAgIDAQMCAwIJAgMCAQQBBA0BAgAAAAMAAP/SAyMC6gAFAAwAEQAAASIjESERJxQVMxEhEQUWHwEjAnLW1wJe5bj9/AF5FSo+fQLq/OgCYoldXf38Ar4MFStBAAAAAAgAAP/TA9QC6QATACcATgByAHYAegB+AIIAABMiDgEVERQeATMhMj4BNRE0LgEjBSEyHgEVERQOASMhIi4BNRE0PgEXByMOARQXFhcxFhcWFxYHBg8BITc2NzYnJicmLwEmJyY1NDc2PwEHMwYHBhUUFxYfARYXFhcWBwYHIzY3NicmJyYvASYnJjU0NzYXFTM1BxUzNQcVMzUHFTM11zVZNTVZNQI6NVo0NFo1/cYCOiU+JCQ+Jf3GJT4kJD5/AwEwLA8IFxUJDQECDRMlKQEBAy4QFAMCDQgUCBMIDBARLyn5nhYLFw4JFgIUCQ0BAg0OJ54TBxMCAg4IFQYTCQsQFAR7gIBGfGqAAuk0WTX+bjVZNDRZNQGSNVk0PCQ9Jf5uJT0kJD0lAZIlPSRcAhw2LxYNGBULEQwPDxYVGQIcFhkYEhMLFQgUDBENEBMVHRgaEQ4aGRYWDRcCFAwRDA8PExcQChcaExMLFQcTDRENEBMXFAwMQAwMQQwMQQwMAAQAAP/TA9QC6QATACcAKgAvAAATIg4BFREUHgEzITI+ATURNC4BIwUhMh4BFREUDgEjISIuATURND4BBxc3BREhEQfXNVk1NVk1Ajo1WjQ0WjX9xgI6JT4kJD4l/cYlPiQkPgX6+v4NAfT7Auk0WTX+bjVZNDRZNQGSNVk0PCQ9Jf5uJT0kJD0lAZIlPSRfjY00/ukBF4wABQAAAAADSAKpABsAMgBKAGIAegAAASIHBgcGDwERFhcWFxYgNzY3NjcRNCcmJyYnJgcyFxYXFhcGBwYHBiInJicmJzY3Njc2BzIfARYXFjI3Nj8BFQYHBgcGIicmJyYnFTIfARYXFjI3Nj8BFQYHBgcGIicmJyYnFTIfARYXFiA3Nj8BFQYHBgcGIicmJyYnAfR9XjAfIgcBBiQgL1cBCFcvICMHAQciHzBefXtZKxoRBgYRGSxc8FwsGREGBhEaK1m2AQMDGzRe+l40GwcEFBksXPBcLBkUBAEDAxs0XvpeNBsHBBQZLFzwXCwZFAQBAwMbNFcBCFc0GwcEFBksVf5VLBkUBAKpFAsQERoE/iUaFBEJFBQJERMbAdsDARoREAsUIxQJDQkKCgkOCRMTCQ4JCgoJDQkUawICDgwUFAwOBCkLCg4JExMJDgsKMAICDgwUFAwOBCkLCg4JExMJDgsKMAICDgwUFAwOBPMLCg4JExMJDgsKAAkAAP+fA70DIAAKABgAJgA0AEoAWgBoAHoAjgAAAQYCBzY3NjcXJi8BFh8BJwYHBgcGNzY3NhMGBw4BFjc2FxY2JicmFyYGFhcWFxY+AScmJyYFBgcGDwEGBwYHBhY2NzY3PgE3NjQmASYGFxYGBwYeATc+AScuAQUmBhcWFxY+AScmJy4BAQYHBgcGBwYHDgEWNzY3Ni4BBSIGFhcWHwEWMzI2JicmLwEmJyYB9BhNFxcqJxR9GTEyDBYiRAgZEgYKAQsUFhBQLwsBEgxhYw0OBgwrxQwPBAtCOAkYDQY4UwT98AoLBgsLLykJAgMZGQQlLQQWBAgNAq0PDQMDGBkEDxkHHxoHAg38pA8OAwUvBxkPBC0CAQ0CrgkJBgoNCDZWDAESDG5VBwIN/dkLDQMKQ2AGEggPDREOYTsDBgQGAiZC/vNBFzArFYdOnlEkSW5KBx0UBwsGIUNMAXICDwYZEgQYFAEUGAQLTwETGAUvZgoFFQtrOwMLAQgECwsuSw8LDxEPD0QvBREFCBMO/sgBGw8yZC0MEwEKNn0+BwkSARoPaFwKARMMW2cIC/6zAQYDCQoEJBcGGBIDGUgHEw4BEhcFORoCBRkYARgxAwUCBAAAAAYAAP+VA74DJAAbADEASQBgAGUAawAAASYHBgcGBwYWFxYXHgE3PgI3NicuAScmJyMmBzYXFhcWFxYGBw4BJicuAjc2Nz4BFyYHBgcGBwYXFhcWFxY2Nz4CJyYnLgEHNhcWFxYHFgYHBgcGJicmJyY2NzY3NgcWFzY3BRQVIREHAfNsZWFBQgsMNzw9U0+3VliETwYGHhx3T1BXAxUQY11ZOjwICT0+QKa0TVBkIBUXOTiiX1tVUTI1AQQkJEFEUk2eP0FFBB4gPDB8QlBKRyssAQFIPkBLR4wzNhQVFCcnPUpSVlU4cv6FAZrJAyICNjVaXWxctklKKCgLHB13pFlbU1OGKCkFAjEDMTBTVmNYrEBDOxArLI+zVVlCRE4rAzAvT1JbU1BONjgQECUwMoyiSUwyKzAwAiwqRkpQS4ssLwcJMTM1RUKQOz0iK5tFRS5cIIyMARKjAAAAABAAAP+gA7sDIgAHAA8AHQAsAD4ATwBgAG4AewCKAJgApQCzAMUA0wDmAAABJicHFyE2NycGByMnNjcWAwYHDgEWNzYXFjYmJyYXJgYWFxYXFj4BJy4BJyYFBgcGBwYHBgcGFjI3Njc2LgEzIgciBw4BHgE3NhcWNjQnJgcGBwYPAQYHBh4BNzY3NjQmBSYGFhcWFxYyNicmJyYFJgcGFx4BNicmNzYmBSYGFxYHBh4BNz4BJy4BBSYGFxYXFj4BJyY3LgEFJgcGBwYeATc2Ny4BBSIGFhcWFxY2JicmJyYFDgEHBgcGDwEOARY3Njc+ASYFIgYWFxYXFjYmJyYnJgUGBwYHBgcGBw4BFjc+ATc2LgECy0eQ11IBChcrDBgw5kg/fHx8Si8MARMMXmYMDgUMMcoMDwMLTC0HGQ8EGEkuBP31CwoGCwgFQSEEERgHKVEGAQ3/BAoSBw0JCRQJTkcMEgtC6g0OCRAKPRkFERkGKVAIDgF/DA4CCjQZBxkQBBpEBP3DGQULGwYYEgIaEAEOAukPDQMBMAQQGAcdGwQCDvykDw4DAjEHGQ8FLwIBDQLsGgINMgYPGQg9DAEN/agLDAIIP1QMEQELTzcGAZ8MKwsTGQ8eEQwFDwxhUAgBDf49Cw0DCllpDA4FDGRPBgIYCQkFCg4INFkLAhENNmUpBwINAaI0aJz9RIgoSpLcLVpaAVwCEAYZEQQZFgETGQQMUwETGAU4WwoBEwwyWCACCgEHBQsIBD5QDBILXUAHEw4BAgQVEQgDBh8EERkGHycCCAUMBzAwDBMBC0AuBxMPOwESFwY1VAsTDF1BA6kCK1ZNCwMRDFBUCg4tARoOZV4MEgEKNnk+CAoQARoOa1oKAhMMW2YICzgCKT9DDBQDC09bCQ6gERYGSR0DEhgGHkIGTQMVAwcEAwMCBBgUAQIwBxUPJxMWBUgTARQYBBVCAwMBBQMJCwMjFgYZEgMLMSMHEw4AEAAA/6ADuwMiAAMACAAWACUANwBIAFkAZwB0AIMAkQCeAKwAvgDMAN8AAAEGByEDFhchNhMGBw4BFjc2FxY2JicmFyYGFhcWFxY+AScuAScmBQYHBgcGBwYHBhYyNzY3Ni4BMyIHIgcOAR4BNzYXFjY0JyYHBgcGDwEGBwYeATc2NzY0JgUmBhYXFhcWMjYnJicmBSYHBhceATYnJjc2JgUmBhcWBwYeATc+AScuAQUmBhcWFxY+AScmNy4BBSYHBgcGHgE3NjcuAQUiBhYXFhcWNiYnJicmBQ4BBwYHBg8BDgEWNzY3PgEmBSIGFhcWFxY2JicmJyYFBgcGBwYHBgcOARY3PgE3Ni4BAfRgYAGAwGQz/tIzZEovDAETDF5mDA4FDDHKDA8DC0wtBxkPBBhJLgT99QsKBgsIBUEhBBEYBylRBgEN/wQKEgcNCQkUCU5HDBILQuoNDgkQCj0ZBREZBilQCA4BfwwOAgo0GQcZEAQaRAT9wxkFCxsGGBICGhABDgLpDw0DATAEEBgHHRsEAg78pA8OAwIxBxkPBS8CAQ0C7BoCDTIGDxkIPQwBDf2oCwwCCD9UDBEBC083BgGfDCsLExkPHhEMBQ8MYVAIAQ3+PQsNAwpZaQwOBQxkTwYCGAkJBQoOCDRZCwIRDTZlKQcCDQIyrK0BJrRaWgHXAhAGGREEGRYBExkEDFMBExgFOFsKARMMMlggAgoBBwULCAQ+UAwSC11ABxMOAQIEFREIAwYfBBEZBh8nAggFDAcwMAwTAQtALgcTDzsBEhcGNVQLEwxdQQOpAitWTQsDEQxQVAoOLQEaDmVeDBIBCjZ5PggKEAEaDmtaCgITDFtmCAs4Aik/QwwUAwtPWwkOoBEWBkkdAxIYBh5CBk0DFQMHBAMDAgQYFAECMAcVDycTFgVIEwEUGAQVQgMDAQUDCQsDIxYGGRIDCzEjBxMOAAAAAAUAAP+VA74DJAAbADEASQBgAGkAAAEmBwYHBgcGFhcWFx4BNz4CNzYnLgEnJicjJgc2FxYXFhcWBgcOASYnLgI3Njc+ARcmBwYHBgcGFxYXFhcWNjc+AicmJy4BBzYXFhcWBxYGBwYHBiYnJicmNjc2NzYXBgcXITY/ASYB82xlYUFCCww3PD1TT7dWWIRPBgYeHHdPUFcDFRBjXVk6PAgJPT5AprRNUGQgFRc5OKJfW1VRMjUBBCQkQURSTZ4/QUUEHiA8MHxCUEpHKywBAUg+QEtHjDM2FBUUJyc9SlWQR1IBChcrEEcDIgI2NVpdbFy2SUooKAscHXekWVtTU4YoKQUCMQMxMFNWY1isQEM7ECssj7NVWUJETisDMC9PUltTUE42OBAQJTAyjKJJTDIrMDACLCpGSlBLiywvBwkxMzVFQpA7PSIrV2g0/USIMTQAAAAKAAD/nwO9AyAABAAOABQAIgAwAEYAVgBkAHYAigAAARQVIREFMjMGBwYHBgcmNxQVITUXEwYHDgEWNzYXFjYmJyYXJgYWFxYXFj4BJyYnJgUGBwYPAQYHBgcGFjY3Njc+ATc2NCYBJgYXFgYHBh4BNz4BJy4BBSYGFxYXFj4BJyYnLgEBBgcGBwYHBgcOARY3Njc2LgEFIgYWFxYfARYzMjYmJyYvASYnJgEnAZr+wXJyDyAYDRUQQOP+yJwEUC8LARIMYWMNDgYMK8UMDwQLQjgJGA0GOFME/fAKCwYLCy8pCQIDGRkEJS0EFgQIDQKtDw0DAxgZBA8ZBx8aBwIN/KQPDgMFLwcZDwQtAgENAq4JCQYKDQg2VgwBEgxuVQcCDf3ZCw0DCkNgBhIIDw0RDmE7AwYEBgH6nJwBODEJHBYJDwI0BV1dun0B8AIPBhkSBBgUARQYBAtPARMYBS9mCgUVC2s7AwsBCAQLCy5LDwsPEQ8PRC8FEQUIEw7+yAEbDzJkLQwTAQo2fT4HCRIBGg9oXAoBEwxbZwgL/rMBBgMJCgQkFwYYEgMZSAcTDgESFwU5GgIFGRgBGDEDBQIEAAAAAAEAAAAAA1MCEwAuAAATNjc2NzYXFhcWFxYXFhcWNzY/ATY3NjcVBgcGBwYnJicmJyYnLgEGBwYHBgcGB5YaGyMtIi0mJhgbECA7IR0kIRgVHw0XCxwaJCsmKygjHDIhEh02PBUbGQ8bEAgBSj4nNBsUBwYYDxUOGzQVEQoJGxgiEh4dpTciLRQQCAcZEy4fDhgbBxQYJBcuHA4AAAcAAP/TA9QC6QATACcATQB1AK0AtgC/AAATIg4BFREUHgEzITI+ATURNC4BIwUhMh4BFREUDgEjISIuATURND4BFxQVBgcnBxcGByMVMxYXNSM1Mzc2PwEnNxc3Nj8BNTMVMy4BJzUHFQYHJwcXBgcjFTMWFwcXNxYXFTM1NjcXNyc2PwE1ByYnNycHJic1BzMVFxYfATcXBxcWHwE3FSMHBg8BFwcnBwYPARUjNScmLwEHJzcnJi8BIzUzNzY/ASc3Fzc2PwEXIgYUFjI2NCYHMhYUBiImNDbXNVk1NVk1Ajo1WjQ0WjX9xgI6JT4kJD4l/cYlPiQkPkkNDhkuGAgDIyQDDh8fAgMLBRUPFggPFQgXOwQaBwQODhgvGQgDJCQFBxovGgwPQg0PGS8aCAQiIwMIGC8YChIsFgkUEAgVEBUFCwQCHh4CAwwFFxAWCBAUCRYJExEIFhAXBgoFAh8fAgUKBRYQFgcREwkLFB0dKR0dFQwQEBcQEALpNFk1/m41WTQ0WTUBkjVZNDwkPSX+biU9JCQ9JQGSJT0kMhESBAgZLxgSCkINFjkWCRISCBUQFgULBQEfHgQLAiNAIgQIGS8ZDQ5CDwwZLxoHBSQlAwgZLxkODQFCAQoSGC4YBgUiFR8BBAsFFQ8WBxAUCQEXCRQQBxYQFgUKBQIgIAIDDAQWEBYIEBMJFgkUEAgVEBYFDAMCMh0oHh4oHRYQFxAQFxAAAgAA/9MD1ALpABMAJwAAEyIOARURFB4BMyEyPgE1ETQuASMFITIeARURFA4BIyEiLgE1ETQ+Adc1WTU1WTUCOjVaNDRaNf3GAjolPiQkPiX9xiU+JCQ+Auk0WTX+bjVZNDRZNQGSNVk0PCQ9Jf5uJT0kJD0lAZIlPSQAAAMAAAAAA14CTwAiACYALAAAAQYHDgEPAQYHBhYXBRY+ASc1FhcWPgEnETQmIgcFPAEnLgEHFBUnJRQVJic2AfYJCgUWBUaMRg0GDwE1ChcOAoOYChYOAhMYCP7sAQISJ+UCLGp7ewJOAQYDEAMvXi8KIwfPBgYUC59aZAYGFAsBogwPCLodcRwLDleampqamppJUVEAAAAACQAA/58DvQMgAAcADwAdACsAQQBRAF8AcQCFAAABJicHFyE2NycGByMnNjcWAwYHDgEWNzYXFjYmJyYXJgYWFxYXFj4BJyYnJgUGBwYPAQYHBgcGFjY3Njc+ATc2NCYBJgYXFgYHBh4BNz4BJy4BBSYGFxYXFj4BJyYnLgEBBgcGBwYHBgcOARY3Njc2LgEFIgYWFxYfARYzMjYmJyYvASYnJgLLR5DXUgEKFysMGDDmSD98fHhQLwsBEgxhYw0OBgwrxQwPBAtCOAkYDQY4UwT98AoLBgsLLykJAgMZGQQlLQQWBAgNAq0PDQMDGBkEDxkHHxoHAg38pA8OAwUvBxkPBC0CAQ0CrgkJBgoNCDZWDAESDG5VBwIN/dkLDQMKQ2AGEggPDREOYTsDBgQGAaI0aJz9RIgoSpLcLVpaAVoCDwYZEgQYFAEUGAQLTwETGAUvZgoFFQtrOwMLAQgECwsuSw8LDxEPD0QvBREFCBMO/sgBGw8yZC0MEwEKNn0+BwkSARoPaFwKARMMW2cIC/6zAQYDCQoEJBcGGBIDGUgHEw4BEhcFORoCBRkYARgxAwUCBAAAAAAFAAD/lQO+AyQAGwAxAEkAYABkAAABJgcGBwYHBhYXFhceATc+Ajc2Jy4BJyYnIyYHNhcWFxYXFgYHDgEmJy4CNzY3PgEXJgcGBwYHBhcWFxYXFjY3PgInJicuAQc2FxYXFgcWBgcGBwYmJyYnJjY3Njc2FwYHIQHzbGVhQUILDDc8PVNPt1ZYhE8GBh4cd09QVwMVEGNdWTo8CAk9PkCmtE1QZCAVFzk4ol9bVVEyNQEEJCRBRFJNnj9BRQQeIDwwfEJQSkcrLAEBSD5AS0eMMzYUFRQnJz1KVWBgAYADIgI2NVpdbFy2SUooKAscHXekWVtTU4YoKQUCMQMxMFNWY1isQEM7ECssj7NVWUJETisDMC9PUltTUE42OBAQJTAyjKJJTDIrMDACLCpGSlBLiywvBwkxMzVFQpA7PSIrY6ytAAAUAAD/owO4AyIABAAIAAwAEAAUABgAWwCzAQkBTAGhAf4CSQKLAs8DEgNpA7YEAgRMAAABFREhEQUzESMTFTM1BxUzNQcVMzUHFTM1AzEjByMHIxUjByMPBxUfBDM3MzczNzM3MzczFzMXMxczFzMXMz8FNS8FIycjNSMnIycXIw8FHxk/BDUvAyMnNSc1JyMvASMvATUnIyc1LwEjLwE1JzUnIzUnIycjLwE1LwEjJzUnIy8BBSMPAhUHIw8BFQ8CFQcVBxUPASMPARUPAhUPASMPASMPARUHFQ8BIw8CFR8FMz8ZNS8EITEjFSMPAxUfBDM3MzczFzMXMxczFzMXMx8GMz8FNS8CIy8JIycjJyMnIzUHIw8CIw8BFQcjDwEjBxUHIwcjByMHFQ8DIxUPARUPAiMPAR8FMz8dMz8DLwMFDwUfFhUfBDM/BDUnNS8INSc1LwQjJyMnNS8BIyc1JzUvATUjLwE1JyMnNS8CNS8DBSMPBRUjFQcVBxUjFQcVFxUzFRcVFxUXFR8JMz8ENS8CNSc1JzUnNSc1JzU3NTc1NzU3NTc1LwQFIw8DFQcXFQcVBxUHFQcVDwgVHwMzPwY1NzU/BzU3NTM1NzU3NSc1LwMFIw8DFRcVFxUXFRcVHwcVFxUfAjMVHwMzPwQ1Lws1JzUnNSc1JzUvBAUjDwUVBxUPDxUfBT8CNT8BNTczNzU/AjM/CjU3LwQFDwUfAhUXFRczFzMfAjMfATMVFxUXFRczHwEzFzMXFRcVHwEVHwIVHwIzPwU1LxwFIw8IIwcjByMHIwcjByMPBBUfBTM3MzczNzM3Mz8LMzczPwE1PwE1NzU/BDUvBAUPBRUfBTMfARUXMxczHwEVHwEzFxUfBDMXMx8GMz8FNS8WISMPFxUfBjM/CDM/BDU3MzczNzU/ATU/ATM/BDUvBAFdAS7+6v7+GsrKysrKysplCwYLBQwFBQYmBgoIBAIDAQECBgQJBCsFCQUFBQUKBR4FCgUFBQUKBBgJBQQDBAQBAQQDBAcmBQYFCwYLBvQFBAUDBAQCAggCDAcIBwQDBAMEAwcGBw8CCQIDEQQDBAkJBAQDBAECAwIBAgMCAQISAQkEBgEDBAMBAwgEAwEDAQMBCAQEBAEECAEECv3xBQQIBQQBBAQEDAQEBAgDAQMEAwQDBAkBDwIBAgMDBQIBBAMDAQIDAwgECQUHBQUQBgIGAg8HBgcDBAMEAwQHCAQEBwIBAgIDBAgBBBINCgUHBgICAwgIBAEIBCYECAMEBAQHBAgDGgMIBwcDCQUEBAQDBAEEAwcBAwUEBAQEBAkEJgQJBQQEBQ2tBAgGBwEDCAMBFQMBAwMBCQEMAQkJAwMCAQIDAwgEAQQCAgIDAwgEBQQJAwgDAgQDAgMCAwIDAgMDAwIDAwMDAwMDAwYDIwIDBAQCAgUECAGEBQgEAwMDAQYDAwIDAgMCAwIDBxYBBAEEAQYDAgIEBAMEBQkEBAQDBAECAgIBAgECAQICAgEBAQgBAQECAgQBAgcDAgECAwIBAgYDCQMDAwT9wwUECAMDAgIBAgEBAQEBAQIBCAIBAQEDAwQEBAUJBAMDBAECBQMCAQEBAQEBAgEBAgMDCQLuBQQIBgIBAQEBAQIIAgECAgQBFgEBBAMMBQkEBgUEAwoCCAECAQICAgcBAQEBAQQDBAj8pwUICAQCAQEBAgYCAgIBBAEGAgoDBAEDBgQFCQQEBAMEAgESAQIBAgECAgIHAgEBAQECBwMFAvAEBQQEAwQCAgcCAwUCBAECAwwKAwQCBAEBBAMEBAkIBQcDDwIBBgUIAQEBBgECAQIBAgICCQECAgMECP2tBAgEAwICAgUGDAYBDAEGBwMBAwMBBwcDAQcHAQMBAwQIBAQMBAQEBAkEBAQFAgEBBAQDFQMECgcZAwoCAwMDAwMDAwIGAwIDAgMCCAGcBQQEAQcKHAsHEgQLBAcEBAcECAQQCAQDAgIBBAQDBAUMBQ0EBQQFCAUmBAkEBAQEBAQBBAMBAwEDBAQIBAkEAgIBAgYDBAX+RAQFBAYCAgECAwMFBAEEDQkBDQEEBQUEAQQFBQoFGQEEARQGBQUFCwoJBQQEAwQBAgMDBAcTBQQFBQQFBQQlHggEBAkMAw0CEgUEBQMBFAQECQgWLAUFBAUFBQQFGwQGBAEBAgMDBAQECQMGBQsFBQUGFAEeBQoFBQQBBAEEBRwNBAEEBQMCAQICAwQIAhwM/pABfBj+tAEnGRlKGBhVGBhNGBgCLwEBAQEHAgIEAwQEBAkEBQYDAgkCAQEBAQEBAgUBAgMDCAQFBAkDAwMHAQEBAVMBAgIEBwkJCgEJBwYHAwQDBAMEBwgHFAQNBAQgAwMCAgICAwMICQUGBQUEAQQBBAUcDQQBCAQBBAQECAEDAQMBAwQIAwEDBAMBBgQHCAEEBAEDBAMBAwwDAQMBAwEIBAQEAQQEBAEEDRcFBQQBBAEJBQoFDAQFBAQDBAECBQcMHggECQQUBwgHBAMEAwQDBwYEAwcFBAQJBAQDBAECAgUMBQkEAwYCAQEBAQECAgcCAgMCAgIBAgMDCAUJCAMFAgECAQIBAgICCQIBAQEnAgMFAgQBAg8DAgECCQwJAQkEAwMBAwMBAwsHBwkJBAMEBAEBBAMMAwQGAwMCAwMDAwMDAgMDAgMCAwIDAgMEAxYDAwgJCQcDBDsBAgMDBA0FCwIDAwMDAwMCAwMKIwMHAwcEDgsDBwMIAwMCAQEDAgQICQQCBAkEBAQEBAUDAQMBAwQBAxAEAwEDCAMBCgEDAwEDAwEDAwEGBAkBAwIDA6kBBAQDBAgEBAkFBAkNBBsFDQkEBAkEAQQiBAUBBAQDAwIBAgIDBAgJBQQSBAsEBwQEBwQIBB4ECAQHBAQHBAQJBAQEAwQtAQQIBAQEBB4FCgUFBQUJBScFBAUJCgQyBAUECAQGAgIGCAoFGQEEARQGBQUFCwYmBQYFCwYLBhYGCQgDAwQQAgYICAkGEQUGBQYLBSEGCwUFCgYPAQQBGQUKAQQGAgEBAwIECAkIASkEBQUEBQUJBSIFCQUFBQUKBRcFBAcCAjkBAgMDCAcEBwQaAwsLBwYEAwcUDwMHAQgFBAUIAwMCAgICBwEDFQEDCwEHEAQEDAQEBAQEBAkEJgUFCAQEAwSgAQQDAwQJCQkGAQwBBgwGBQMDAgEEAQQBAgUEAgIBAQEEAQEBBgEBAQIBAQIDBwUEBQQIAwMJAgEGAxADBgMCAwIDAgMCAwYCAwMDAwMHSgECAQMGDAMDBQMCAQEBBAMDBAkFBAgDAwIBAQEBAgkCAgIBAgECAQEBAgICAQEBBAEBAQUEAwUEBQgIAwIBJwEBAwYECQUEBAQCBQMECQEGCQMCAQIDAgECAwQDCgIIAQIBAgIDAQIDAwgFBAkEAwMDBAIBAgECAQIBEBAGAgMFCQMKAQICAg8CAwUGDBQBAgECAQIBAgYCBgkEBQQEBAMDAgEBAQICAgECAQgMAwQDAgECAwIBAhIBCQQDBQQEBAUJBAMDBAAAAAADAAAAAAO5Ao4AAwAHAAsAABMRIREHESERIzMRIy8DijH9YoxeXgKO/Y8CcTD96wIV/esAIAAA/+4DrALPAAQACQAOABMAGAAhAC0ANgBBAE4AVQBaAF8AZABpAG4AcwB4AH0AiACOAJcAoQCmAKsAsAC1ALoAvwDEAMkAzgAAATIzNSMXMjM1IxcyMzUjFzIzNSMXMjM1IxcyMzYXNyYrASEiBxc2MjYnJjY1JgUWFzY3NjcmJwUGBxYXFhc2NycmBQ4BFxYGFjIzMjc0JwUGFTMmNycFMjM1IwUyMzUjBTIzNSMFMjM1IwUyMzUjBTIzNSMFMjM1IwUyMzUjBQYHFhcWFzY3JyYFFhc3JicFBgcWHwE2NycFFhc3NjcmJwcGFzIzNSMXMjM1IxcyMzUjFzIzNSMXMjM1IxcyMzUjBzQ1IRETMjMRITcUFTM1AQUZGDFiGRgxYRkYMWIZGDFiGRgxYQQHGAsGCxUU/e0NDAkDDgYDAQIBAmISDQUKEQUUGP0zGBMFCxAHEA4KCgLxCwMEAgECCg0SBwr8owcxAQYuAzUZGDH8wxkYMQM9GRgx/MMZGDEDPRkYMfzDGRgxAz0ZGDH8wxkYMQM7BQkGCxEIDwUQFvy/BhEoCwQC3BERBQgDGxce/TAbGQUFAhMQBw5jGRgxYRkYMWIZGDFiGBgwXhkYMWUZGDE1/q4fior+7CXLAp0xMTExMTExMTExAQIwAgMwAQQIBBUEBz0JEAQJDAcXDQMPFgQJDQQSBxASVgEKCwIPBgEeGggYHRMVD5UxNTGOMTYxjjE1MY8xNTFZFg8DBwsDGRsDBQ0cGRsSE0EMBQwZCQcTJyoSBxIUCQYMCRUpMTExMTExMTExMTEirKv+qQE4/uunFxgvAAALAAD/zgO5AvIABQAJAA0AEQAVABkAHwAjACcAKwAvAAAXNTMVMxUzNTMVMzUzFTM1MxUzNTMVMzUzFTM1MzUzFSU1MxUhNTMVJREhEScRIREuMRAxYTFiMWExYjFhMA0x/HUxAykx/HYDijH81jJZKDExMTExMTExMTExMShZilxcXFyLAg/98TABs/5NAAAEAAD/nAPDAyAAAwAHAA4AFQAAAREzETMRMxEBBxc1MzUjJRUHFTMVNwFuJsMm/lCkpF1dAlNeXqMDIPx8A4T8fAOE/uGjo29pbmwBam+jAAYAAP+eA5QDHgAGAAkADQARABUAGQAAAQUXARcBFyUFFycHFzcPARc3DwEXNw8BFzcDlP5mQP4aGQHmPgED/mWXlT8ZP5c+GT6ePxk/lyYZJgMebV/+uSYBSFwFbeBYKyUqLyomKzUrJSswGiUaAAACAAAAAAO5AmYAAwAHAAATESERAREhES8DivylAyoCZv3wAhD+HQGz/k0AAAkAAP+nA7IDHgADAAcACwARABUAGQAfACUAKQAAARUzNQUVMzUzFTM1FxUzFTM1BRUzNQUVMzUHFSMVMzUFFTM1IzUXFTM1AS9n/qHaoduCeyj9fWcB9Cgod5/9np934FIDHtra9mdnZ2ceKHWdaNran01NvnQonAGdKHV1KCgACwAA/84DuQLyAAUACQANABEAFQAZAB8AIwAnACsALwAAExUzNTM1MxUzNTMVMzUzFTM1MxUzNTMVMzUzFTMVMzUFFTM1IRUzNQURIREHESERLjEQMWExYjFhMWIxYTANMfx1MQMpMfx2A4ox/NYC8lkpMDAwMDAwMDAwMDAwKVmJXFxcXIv98AIQMP5NAbMADAAA//oDuQLCAAQAGAAcACAAJAAoACwAMAA0ADgAPABAAAATFREhEQUhFSMVMxUjFTMVITUzNSM1MzUjMxUzNTMVMzUzFTM1MxUzNTMVMzUFFTM1MxUzNTMVMzUzFTM1MxUzNS8DivylAyoMDAwM/NYRERERQmIxYTFiMWExYv1UYjFhMWIxYTFiAsLY/hACyCysMbYxqakxtjExMTExMTExMTEx5zExMTExMTExMTEAAAAABwAA//oDuQLCAAQAEAAUABgAHAAgACQAABMZASERBSERIxUzESERMzUjMxUzNTMVMzUzFTM1MxUzNTMVMzUvA4r8pQMqDAz81hERQmIxYTFiMWExYgLC/rT+hALILP7gMP7jAR0wMDAwMDAwMDAwMAAAAAAFAAD/0gMjAuoABQALAA4AFgAdAAABIiMRIREnFTMRIREFFyMnHQEjFTMVNycXBzUjNTMCctbXAl7luP38AXl9feNqao15XFxqagLq/OgCYom6/fwCvgyBbBhFUFyEVlZWQigABAAA/9IDIwLqAAUACwAOABUAAAEiIxEhEScVMxEhEQUXIycVIxUzFTcCctbXAl7luP38AXl9feNqao0C6vzoAmKJuv38Ar4MgWxdUFyEAAACAAD/1gNyAu8AbwDkAAABIgYHBgcGHwEVJi8BMScmJyYnJicmBxUGBwYXFhcWFxYfAScmJyYnJgcGBzkBBhcWFxYXFhcWFxYfASE3Nj8BNj8BNjc2NzYnLgEnJgYHBgcGDwE1NDU2JyYnLgEiBgcGBwYPAi8BJicmJy4BBzMHMjEzMhYXHgEfARYfAT8CNjc2Nz4BOwEyFh8BFhcWBxUfATY3Njc2NzYXOQEeARcWBwYHBg8BBgcGDwEhJicmJyYnJicmJyY+AhcWFxYfATcnJicmJyYnJjc+ATc2FhcWFxYXMRYfAT8BNi8BJjc2Nz4BAfIOGAcLAwMBAQYIAQkMBwsLERMXHRkHAwcFEAwFCA0GDRAJJyQWExcQHQUCGQ4kLRccOScQBQFMAwQKDBQbCxgKEAcKBgQYEQ4cChIPBgkGAQIECAYVGRYHDQcGBwYJBgMFBwcMBxcNAQIBAQUFBAcNBwIGCAghGgYHBQcHBAUFAgQCAgEGAgIBASAKEhAIDg0KDAkIAgQJBg0IFBMYGQUJCP7fDiE6HxguIwwTAgEGERYPHyIcHRcdDRAOBg0PBAYDAQUGDRUMCwwIDwoUESABAgEBAgMDBwQGAu4ODBQhHD8oQw0XAxcgDxkQGQkLCwELHhMjFjEmExsyFwwPCCIOCAECDhseGCARJS4cIVg7FQcMDS43XkccOxwtHywaDxcDAwsLESMKGBBLESU2FyIRCw8LCREbFjEkLzMgQh4jEAwOASEEBgw5Rxk4OCwBlSMxFBcJBQIBAwMLHBlAJ6AHFS8qEh4NCgEBBwkTIxgmFjMzPG4XJyUSNFklHS4lDxgOCAwQAQUNHhcgGw82PzIWKS0SGg8HBwMGChIQHhIoGjArBjI7Kh5GHBkOBgQAAAAACAAA/9sDbQLgABQAGAAqAC4AMgBMAF8AYwAAASIGBwYHFBYHFTM1Jjc+ARczNSMmBTM1Ixc2FxYHFTM0NTQnLgInJgcjATM1IwUzNSMFFBYXFhcWNzYXNhcWMzY3NSIjBicuATc1IwUWDgErARUyMxY+Ajc2NTQ1IwUzNSMBAitKCwQCAQEyAQIENiDYSmQBCi8vizscHwQyAQIkOR8JEwn9tDIyAr4yMv1CLSMUGxAhGQwECwkEBQIQHzcbHycBMgK+ATFFRyMUKT09NiIBATL+li4uAt85KxIXDjcORjBQKCItAjEBMjExBB0eQJgbOEklIDkkAQIB/kcxSzHUJ0cRCgICAQEBAQEBAQQtAQMHNSFXWSM4AjEBBSU5IA4dFQvNMQAAAAAEAAD/8AOsAs0AEwAnADcARwAAEyIOARURFB4BMyEyPgE1ETQuASMFITIeARURFA4BIyEiLgE1ETQ+ARciBhURFBYzITI2NRE0JiMFITIWFREUBiMhIiY1ETQ20ilEKChEKQJFKEUoKEUo/bsCRR80Hx80H/27HzUfHzU8Jjc3JgILJjY2Jv31AgsYIiIY/fUZIiICzChEKf5OKEUoKEUoAbIpRCgiHzUf/k4fNR8fNR8Bsh81HzE2Jv6CJjY2JgF+JjYiIhj+ghgiIhgBfhgiAAAAAAAAEgDeAAEAAAAAAAAAFQAAAAEAAAAAAAEABAAVAAEAAAAAAAIABwAZAAEAAAAAAAMABAAgAAEAAAAAAAQABAAkAAEAAAAAAAUACwAoAAEAAAAAAAYABAAzAAEAAAAAAAoAKwA3AAEAAAAAAAsAEwBiAAMAAQQJAAAAKgB1AAMAAQQJAAEACACfAAMAAQQJAAIADgCnAAMAAQQJAAMACAC1AAMAAQQJAAQACAC9AAMAAQQJAAUAFgDFAAMAAQQJAAYACADbAAMAAQQJAAoAVgDjAAMAAQQJAAsAJgE5Y2FtdW5kYSBTZXJ2aWNlcyBHbWJIYnBtblJlZ3VsYXJicG1uYnBtblZlcnNpb24gMS4wYnBtbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAGMAYQBtAHUAbgBkAGEAIABTAGUAcgB2AGkAYwBlAHMAIABHAG0AYgBIAGIAcABtAG4AUgBlAGcAdQBsAGEAcgBiAHAAbQBuAGIAcABtAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAGIAcABtAG4ARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbAECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQEOAQ8BEAERARIBEwEUARUBFgEXARgBGQEaARsBHAEdAR4BHwEgASEBIgEjASQBJQEmAScBKAEpASoBKwEsAS0BLgEvATABMQEyATMBNAE1ATYBNwE4ATkBOgE7ATwBPQE+AT8BQAFBAUIBQwFEAUUBRgFHAUgBSQFKAUsBTAFNAU4BTwFQAVEBUgFTAVQBVQFWAVcBWAFZAVoBWwFcAV0BXgFfAWABYQFiAWMBZAFlAWYBZwFoAWkBagFrAWwBbQAMc2NyZXctd3JlbmNoBXRyYXNoEGNvbmRpdGlvbmFsLWZsb3cMZGVmYXVsdC1mbG93EGdhdGV3YXktcGFyYWxsZWwfaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLWNhbmNlbDFpbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtbm9uLWludGVycnVwdGluZy1tZXNzYWdlGHN0YXJ0LWV2ZW50LWNvbXBlbnNhdGlvbi5zdGFydC1ldmVudC1ub24taW50ZXJydXB0aW5nLXBhcmFsbGVsLW11bHRpcGxlC2xvb3AtbWFya2VyEnBhcmFsbGVsLW1pLW1hcmtlciNzdGFydC1ldmVudC1ub24taW50ZXJydXB0aW5nLXNpZ25hbC9pbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtbm9uLWludGVycnVwdGluZy10aW1lcippbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtcGFyYWxsZWwtbXVsdGlwbGUlaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLWNvbXBlbnNhdGlvbgtnYXRld2F5LXhvcgpjb25uZWN0aW9uEGVuZC1ldmVudC1jYW5jZWwiaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLWNvbmRpdGlvbjtpbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtbm9uLWludGVycnVwdGluZy1wYXJhbGxlbC1tdWx0aXBsZRVzdGFydC1ldmVudC1jb25kaXRpb24ic3RhcnQtZXZlbnQtbm9uLWludGVycnVwdGluZy10aW1lchRzZXF1ZW50aWFsLW1pLW1hcmtlcgl1c2VyLXRhc2sNYnVzaW5lc3MtcnVsZRJzdWItcHJvY2Vzcy1tYXJrZXIdc3RhcnQtZXZlbnQtcGFyYWxsZWwtbXVsdGlwbGURc3RhcnQtZXZlbnQtZXJyb3IfaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLXNpZ25hbB5pbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtZXJyb3IWZW5kLWV2ZW50LWNvbXBlbnNhdGlvbhRzdWJwcm9jZXNzLWNvbGxhcHNlZBNzdWJwcm9jZXNzLWV4cGFuZGVkBHRhc2sPZW5kLWV2ZW50LWVycm9yI2ludGVybWVkaWF0ZS1ldmVudC1jYXRjaC1lc2NhbGF0aW9uHmludGVybWVkaWF0ZS1ldmVudC1jYXRjaC10aW1lchZzdGFydC1ldmVudC1lc2NhbGF0aW9uEnN0YXJ0LWV2ZW50LXNpZ25hbBJidXNpbmVzcy1ydWxlLXRhc2sGbWFudWFsB3JlY2VpdmUNY2FsbC1hY3Rpdml0eRFzdGFydC1ldmVudC10aW1lchNzdGFydC1ldmVudC1tZXNzYWdlF2ludGVybWVkaWF0ZS1ldmVudC1ub25lHWludGVybWVkaWF0ZS1ldmVudC1jYXRjaC1saW5rFGVuZC1ldmVudC1lc2NhbGF0aW9uD3RleHQtYW5ub3RhdGlvbgdicG1uLWlvD2dhdGV3YXktY29tcGxleBJnYXRld2F5LWV2ZW50YmFzZWQMZ2F0ZXdheS1ub25lCmdhdGV3YXktb3ITZW5kLWV2ZW50LXRlcm1pbmF0ZRBlbmQtZXZlbnQtc2lnbmFsDmVuZC1ldmVudC1ub25lEmVuZC1ldmVudC1tdWx0aXBsZRFlbmQtZXZlbnQtbWVzc2FnZQ5lbmQtZXZlbnQtbGluayBpbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtbWVzc2FnZSVpbnRlcm1lZGlhdGUtZXZlbnQtdGhyb3ctY29tcGVuc2F0aW9uFHN0YXJ0LWV2ZW50LW11bHRpcGxlBnNjcmlwdAttYW51YWwtdGFzawRzZW5kB3NlcnZpY2UMcmVjZWl2ZS10YXNrBHVzZXIQc3RhcnQtZXZlbnQtbm9uZSNpbnRlcm1lZGlhdGUtZXZlbnQtdGhyb3ctZXNjYWxhdGlvbiFpbnRlcm1lZGlhdGUtZXZlbnQtY2F0Y2gtbXVsdGlwbGU0aW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLW5vbi1pbnRlcnJ1cHRpbmctZXNjYWxhdGlvbh1pbnRlcm1lZGlhdGUtZXZlbnQtdGhyb3ctbGluayZzdGFydC1ldmVudC1ub24taW50ZXJydXB0aW5nLWNvbmRpdGlvbgtkYXRhLW9iamVjdAtzY3JpcHQtdGFzawlzZW5kLXRhc2sKZGF0YS1zdG9yZSdzdGFydC1ldmVudC1ub24taW50ZXJydXB0aW5nLWVzY2FsYXRpb24gaW50ZXJtZWRpYXRlLWV2ZW50LXRocm93LW1lc3NhZ2UyaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLW5vbi1pbnRlcnJ1cHRpbmctbXVsdGlwbGUwaW50ZXJtZWRpYXRlLWV2ZW50LWNhdGNoLW5vbi1pbnRlcnJ1cHRpbmctc2lnbmFsIWludGVybWVkaWF0ZS1ldmVudC10aHJvdy1tdWx0aXBsZSRzdGFydC1ldmVudC1ub24taW50ZXJydXB0aW5nLW1lc3NhZ2UNYWQtaG9jLW1hcmtlcgxzZXJ2aWNlLXRhc2sJdGFzay1ub25lE2NvbXBlbnNhdGlvbi1tYXJrZXIlc3RhcnQtZXZlbnQtbm9uLWludGVycnVwdGluZy1tdWx0aXBsZR9pbnRlcm1lZGlhdGUtZXZlbnQtdGhyb3ctc2lnbmFsM2ludGVybWVkaWF0ZS1ldmVudC1jYXRjaC1ub24taW50ZXJydXB0aW5nLWNvbmRpdGlvbgtwYXJ0aWNpcGFudBlldmVudC1zdWJwcm9jZXNzLWV4cGFuZGVkEWxhbmUtaW5zZXJ0LWJlbG93CnNwYWNlLXRvb2wQY29ubmVjdGlvbi1tdWx0aQRsYW5lCmxhc3NvLXRvb2wRbGFuZS1pbnNlcnQtYWJvdmURbGFuZS1kaXZpZGUtdGhyZWUPbGFuZS1kaXZpZGUtdHdvCmRhdGEtaW5wdXQLZGF0YS1vdXRwdXQJaGFuZC10b29sBWdyb3VwC3RyYW5zYWN0aW9uAAA=) format("truetype")}[class^=bpmn-icon-]:before,[class*=" bpmn-icon-"]:before{font-family:bpmn;font-style:normal;font-weight:400;speak:never;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.bpmn-icon-screw-wrench:before{content:"\e800"}.bpmn-icon-trash:before{content:"\e801"}.bpmn-icon-conditional-flow:before{content:"\e802"}.bpmn-icon-default-flow:before{content:"\e803"}.bpmn-icon-gateway-parallel:before{content:"\e804"}.bpmn-icon-intermediate-event-catch-cancel:before{content:"\e805"}.bpmn-icon-intermediate-event-catch-non-interrupting-message:before{content:"\e806"}.bpmn-icon-start-event-compensation:before{content:"\e807"}.bpmn-icon-start-event-non-interrupting-parallel-multiple:before{content:"\e808"}.bpmn-icon-loop-marker:before{content:"\e809"}.bpmn-icon-parallel-mi-marker:before{content:"\e80a"}.bpmn-icon-start-event-non-interrupting-signal:before{content:"\e80b"}.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before{content:"\e80c"}.bpmn-icon-intermediate-event-catch-parallel-multiple:before{content:"\e80d"}.bpmn-icon-intermediate-event-catch-compensation:before{content:"\e80e"}.bpmn-icon-gateway-xor:before{content:"\e80f"}.bpmn-icon-connection:before{content:"\e810"}.bpmn-icon-end-event-cancel:before{content:"\e811"}.bpmn-icon-intermediate-event-catch-condition:before{content:"\e812"}.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before{content:"\e813"}.bpmn-icon-start-event-condition:before{content:"\e814"}.bpmn-icon-start-event-non-interrupting-timer:before{content:"\e815"}.bpmn-icon-sequential-mi-marker:before{content:"\e816"}.bpmn-icon-user-task:before{content:"\e817"}.bpmn-icon-business-rule:before{content:"\e818"}.bpmn-icon-sub-process-marker:before{content:"\e819"}.bpmn-icon-start-event-parallel-multiple:before{content:"\e81a"}.bpmn-icon-start-event-error:before{content:"\e81b"}.bpmn-icon-intermediate-event-catch-signal:before{content:"\e81c"}.bpmn-icon-intermediate-event-catch-error:before{content:"\e81d"}.bpmn-icon-end-event-compensation:before{content:"\e81e"}.bpmn-icon-subprocess-collapsed:before{content:"\e81f"}.bpmn-icon-subprocess-expanded:before{content:"\e820"}.bpmn-icon-task:before{content:"\e821"}.bpmn-icon-end-event-error:before{content:"\e822"}.bpmn-icon-intermediate-event-catch-escalation:before{content:"\e823"}.bpmn-icon-intermediate-event-catch-timer:before{content:"\e824"}.bpmn-icon-start-event-escalation:before{content:"\e825"}.bpmn-icon-start-event-signal:before{content:"\e826"}.bpmn-icon-business-rule-task:before{content:"\e827"}.bpmn-icon-manual:before{content:"\e828"}.bpmn-icon-receive:before{content:"\e829"}.bpmn-icon-call-activity:before{content:"\e82a"}.bpmn-icon-start-event-timer:before{content:"\e82b"}.bpmn-icon-start-event-message:before{content:"\e82c"}.bpmn-icon-intermediate-event-none:before{content:"\e82d"}.bpmn-icon-intermediate-event-catch-link:before{content:"\e82e"}.bpmn-icon-end-event-escalation:before{content:"\e82f"}.bpmn-icon-text-annotation:before{content:"\e830"}.bpmn-icon-bpmn-io:before{content:"\e831"}.bpmn-icon-gateway-complex:before{content:"\e832"}.bpmn-icon-gateway-eventbased:before{content:"\e833"}.bpmn-icon-gateway-none:before{content:"\e834"}.bpmn-icon-gateway-or:before{content:"\e835"}.bpmn-icon-end-event-terminate:before{content:"\e836"}.bpmn-icon-end-event-signal:before{content:"\e837"}.bpmn-icon-end-event-none:before{content:"\e838"}.bpmn-icon-end-event-multiple:before{content:"\e839"}.bpmn-icon-end-event-message:before{content:"\e83a"}.bpmn-icon-end-event-link:before{content:"\e83b"}.bpmn-icon-intermediate-event-catch-message:before{content:"\e83c"}.bpmn-icon-intermediate-event-throw-compensation:before{content:"\e83d"}.bpmn-icon-start-event-multiple:before{content:"\e83e"}.bpmn-icon-script:before{content:"\e83f"}.bpmn-icon-manual-task:before{content:"\e840"}.bpmn-icon-send:before{content:"\e841"}.bpmn-icon-service:before{content:"\e842"}.bpmn-icon-receive-task:before{content:"\e843"}.bpmn-icon-user:before{content:"\e844"}.bpmn-icon-start-event-none:before{content:"\e845"}.bpmn-icon-intermediate-event-throw-escalation:before{content:"\e846"}.bpmn-icon-intermediate-event-catch-multiple:before{content:"\e847"}.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before{content:"\e848"}.bpmn-icon-intermediate-event-throw-link:before{content:"\e849"}.bpmn-icon-start-event-non-interrupting-condition:before{content:"\e84a"}.bpmn-icon-data-object:before{content:"\e84b"}.bpmn-icon-script-task:before{content:"\e84c"}.bpmn-icon-send-task:before{content:"\e84d"}.bpmn-icon-data-store:before{content:"\e84e"}.bpmn-icon-start-event-non-interrupting-escalation:before{content:"\e84f"}.bpmn-icon-intermediate-event-throw-message:before{content:"\e850"}.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before{content:"\e851"}.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before{content:"\e852"}.bpmn-icon-intermediate-event-throw-multiple:before{content:"\e853"}.bpmn-icon-start-event-non-interrupting-message:before{content:"\e854"}.bpmn-icon-ad-hoc-marker:before{content:"\e855"}.bpmn-icon-service-task:before{content:"\e856"}.bpmn-icon-task-none:before{content:"\e857"}.bpmn-icon-compensation-marker:before{content:"\e858"}.bpmn-icon-start-event-non-interrupting-multiple:before{content:"\e859"}.bpmn-icon-intermediate-event-throw-signal:before{content:"\e85a"}.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before{content:"\e85b"}.bpmn-icon-participant:before{content:"\e85c"}.bpmn-icon-event-subprocess-expanded:before{content:"\e85d"}.bpmn-icon-lane-insert-below:before{content:"\e85e"}.bpmn-icon-space-tool:before{content:"\e85f"}.bpmn-icon-connection-multi:before{content:"\e860"}.bpmn-icon-lane:before{content:"\e861"}.bpmn-icon-lasso-tool:before{content:"\e862"}.bpmn-icon-lane-insert-above:before{content:"\e863"}.bpmn-icon-lane-divide-three:before{content:"\e864"}.bpmn-icon-lane-divide-two:before{content:"\e865"}.bpmn-icon-data-input:before{content:"\e866"}.bpmn-icon-data-output:before{content:"\e867"}.bpmn-icon-hand-tool:before{content:"\e868"}.bpmn-icon-group:before{content:"\e869"}.bpmn-icon-transaction:before{content:"\e8c4"} diff --git a/vboot-web/src/main/resources/static/assets/Modeler.1654291592072.js b/vboot-web/src/main/resources/static/assets/Modeler.1654291592072.js deleted file mode 100644 index f0bde9e..0000000 --- a/vboot-web/src/main/resources/static/assets/Modeler.1654291592072.js +++ /dev/null @@ -1,16 +0,0 @@ -import{F as hs}from"./index.1654291592072.js";var ks={exports:{}};typeof Object.create=="function"?ks.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ks.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}};var Z=ks.exports;function Um(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Ym=Um(function(e){var t=e.exports=function(n,i){if(i||(i=16),n===void 0&&(n=128),n<=0)return"0";for(var r=Math.log(Math.pow(2,n))/Math.log(i),a=2;r===1/0;a*=2)r=Math.log(Math.pow(2,n/a))/Math.log(i)*a;for(var o=r-Math.floor(r),s="",a=0;a=Math.pow(2,n)?t(n,i):s};t.rack=function(n,i,r){var a=function(s){var c=0;do{if(c++>10)if(r)n+=r;else throw new Error("too many ID collisions, use more bits");var u=t(n,i)}while(Object.hasOwnProperty.call(o,u));return o[u]=s,u},o=a.hats={};return a.get=function(s){return a.hats[s]},a.set=function(s,c){return a.hats[s]=c,a},a.bits=n||128,a.base=i||16,a}});function nn(e){if(!(this instanceof nn))return new nn(e);e=e||[128,36,1],this._seed=e.length?Ym.rack(e[0],e[1],e[2]):e}nn.prototype.next=function(e){return this._seed(e||!0)};nn.prototype.nextPrefixed=function(e,t){var n;do n=e+this.next(!0);while(this.assigned(n));return this.claim(n,t),n};nn.prototype.claim=function(e,t){this._seed.set(e,t||!0)};nn.prototype.assigned=function(e){return this._seed.get(e)||!1};nn.prototype.unclaim=function(e){delete this._seed.hats[e]};nn.prototype.clear=function(){var e=this._seed.hats,t;for(t in e)this.unclaim(t)};function Va(e){return Array.prototype.concat.apply([],e)}var Rr=Object.prototype.toString,Km=Object.prototype.hasOwnProperty;function Cr(e){return e===void 0}function en(e){return e!==void 0}function gl(e){return e==null}function he(e){return Rr.call(e)==="[object Array]"}function Je(e){return Rr.call(e)==="[object Object]"}function ae(e){return Rr.call(e)==="[object Number]"}function ot(e){var t=Rr.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function Mt(e){return Rr.call(e)==="[object String]"}function qm(e){if(!he(e))throw new Error("must supply array")}function hn(e,t){return Km.call(e,t)}function _e(e,t){t=_c(t);var n;return C(e,function(i,r){if(t(i,r))return n=i,!1}),n}function Xm(e,t){t=_c(t);var n=he(e)?-1:void 0;return C(e,function(i,r){if(t(i,r))return n=r,!1}),n}function se(e,t){var n=[];return C(e,function(i,r){t(i,r)&&n.push(i)}),n}function C(e,t){var n,i;if(!Cr(e)){var r=he(e)?eg:Jm;for(var a in e)if(hn(e,a)&&(n=e[a],i=t(n,r(a)),i===!1))return n}}function Zm(e,t){return Cr(e)?[]:(qm(e),t=_c(t),e.filter(function(n,i){return!t(n,i)}))}function wt(e,t,n){return C(e,function(i,r){n=t(n,i,r)}),n}function Oi(e,t){return!!wt(e,function(n,i,r){return n&&t(i,r)},!0)}function si(e,t){return!!_e(e,t)}function Ye(e,t){var n=[];return C(e,function(i,r){n.push(t(i,r))}),n}function Wa(e){return e&&Object.keys(e)||[]}function Er(e){return Wa(e).length}function bc(e){return Ye(e,function(t){return t})}function Ii(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=xc(t),C(e,function(i){var r=t(i)||"_",a=n[r];a||(a=n[r]=[]),a.push(i)}),n}function ih(e){e=xc(e);for(var t={},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0)return s(f);e.apply(r,i),c()}function s(p){n=setTimeout(o,p)}function c(){n&&clearTimeout(n),n=a=i=r=void 0}function u(){n&&o(!0),c()}function l(){a=Date.now();for(var p=arguments.length,h=new Array(p),f=0;f1?t-1:0),i=1;i
a',ch=!la.getElementsByTagName("link").length,la=void 0);var He={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:ch?[1,"X
","
"]:[0,"",""]};He.td=He.th=[3,"","
"];He.option=He.optgroup=[1,'"];He.thead=He.tbody=He.colgroup=He.caption=He.tfoot=[1,"","
"];He.polyline=He.ellipse=He.polygon=He.circle=He.text=He.line=He.path=He.rect=He.g=[1,'',""];function lg(e,t){if(typeof e!="string")throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if(i=="body"){var c=t.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var r=He[i]||He._default,a=r[0],o=r[1],s=r[2],c=t.createElement("div");for(c.innerHTML=o+e+s;a--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var u=t.createDocumentFragment();c.firstChild;)u.appendChild(c.removeChild(c.firstChild));return u}function Oe(e,t){return t=t||document,t.querySelector(e)}function Bs(e,t){return t=t||document,t.querySelectorAll(e)}function rn(e){e.parentNode&&e.parentNode.removeChild(e)}function pg(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch{}return e}function uh(e,t){return t.appendChild(pg(e,t))}function ne(e,t){return uh(t,e),e}var $s=2,lh={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":$s,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":$s,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function fg(e,t){return lh[t]?e.style[t]:e.getAttributeNS(null,t)}function ph(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=lh[i];r?(r===$s&&typeof n=="number"&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function hg(e,t){var n=Object.keys(t),i,r;for(i=0,r;r=n[i];i++)ph(e,r,t[r])}function j(e,t,n){if(typeof t=="string")if(n!==void 0)ph(e,t,n);else return fg(e,t);else hg(e,t);return e}function Sc(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n"+e+"",t=!0);var n=mg(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function mg(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}function Q(e,t){var n;return e.charAt(0)==="<"?(n=hh(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(Rc.svg,e),t&&j(n,t),n}var Hs=Q("svg");function bl(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function gg(e,t,n,i,r,a){var o=Hs.createSVGMatrix();switch(arguments.length){case 0:return o;case 1:return bl(o,e);case 6:return bl(o,{a:e,b:t,c:n,d:i,e:r,f:a})}}function pr(e){return e?Hs.createSVGTransformFromMatrix(e):Hs.createSVGTransform()}var xl=/([&<>]{1})/g,yg=/([\n\r"]{1})/g,Eg={"&":"&","<":"<",">":">",'"':"'"};function ds(e,t){function n(i,r){return Eg[r]||r}return e.replace(t,n)}function dh(e,t){var n,i,r,a,o;switch(e.nodeType){case 3:t.push(ds(e.textContent,xl));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(r=e.attributes,n=0,i=r.length;n"),o=e.childNodes,n=0,i=o.length;n")}else t.push("/>");break;case 8:t.push("");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function bg(e,t){var n=hh(t);if(Tc(e),!!t){_g(n)||(n=n.documentElement);for(var i=wg(n.childNodes),r=0;r ");return n.length=0,new Error(y?d+" (Resolving: "+y+")":d)},s=function(d,y){if(!i[d]&&d.indexOf(".")!==-1){for(var x=d.split("."),D=s(x.shift());x.length;)D=D[x.shift()];return D}if(vs(r,d))return r[d];if(vs(i,d)){if(n.indexOf(d)!==-1)throw n.push(d),o("Cannot resolve circular dependency!");return n.push(d),r[d]=i[d][0](i[d][1]),n.pop(),r[d]}return t.get(d,y)},c=function(d,y){if(typeof y=="undefined"&&(y={}),typeof d!="function")if(js(d))d=pa(d.slice());else throw new Error('Cannot invoke "'+d+'". Expected a function!');var x=d.$inject||Dg(d),D=x.map(function(A){return vs(y,A)?y[A]:s(A)});return{fn:d,dependencies:D}},u=function(d){var y=c(d),x=y.fn,D=y.dependencies,A=Function.prototype.bind.apply(x,[null].concat(D));return new A},l=function(d,y,x){var D=c(d,x),A=D.fn,w=D.dependencies;return A.apply(y,w)},p=function(d){return pa(function(y){return d.get(y)})},h=function(d,y){if(y&&y.length){var x=Object.create(null),D=Object.create(null),A=[],w=[],b=[],_,M,N,P;for(var $ in i)_=i[$],y.indexOf($)!==-1&&(_[2]==="private"?(M=A.indexOf(_[3]),M===-1?(N=_[3].createChild([],y),P=p(N),A.push(_[3]),w.push(N),b.push(P),x[$]=[P,$,"private",N]):x[$]=[b[M],$,"private",w[M]]):x[$]=[_[2],_[1]],D[$]=!0),(_[2]==="factory"||_[2]==="type")&&_[1].$scope&&y.forEach(function(z){_[1].$scope.indexOf(z)!==-1&&(x[$]=[_[2],_[1]],D[z]=!0)});y.forEach(function(z){if(!D[z])throw new Error('No provider for "'+z+'". Cannot use provider from the parent!')}),d.unshift(x)}return new zs(d,a)},f={factory:l,type:u,value:function(d){return d}};e.forEach(function(d){function y(w,b){return w!=="value"&&js(b)&&(b=pa(b.slice())),b}if(d instanceof Ng)d.forEach(function(w){var b=w[0],_=w[1],M=w[2];i[b]=[f[_],y(_,M),_]});else if(typeof d=="object")if(d.__exports__){var x=Object.keys(d).reduce(function(w,b){return b.substring(0,2)!=="__"&&(w[b]=d[b]),w},Object.create(null)),D=new zs((d.__modules__||[]).concat([x]),a),A=pa(function(w){return D.get(w)});d.__exports__.forEach(function(w){i[w]=[A,w,"private",D]})}else Object.keys(d).forEach(function(w){if(d[w][2]==="private"){i[w]=d[w];return}var b=d[w][0],_=d[w][1];i[w]=[f[b],y(b,_),b]})}),this.get=s,this.invoke=l,this.instantiate=u,this.createChild=h}var Og=1e3;function yn(e,t){var n=this;t=t||Og,e.on(["render.shape","render.connection"],t,function(i,r){var a=i.type,o=r.element,s=r.gfx,c=r.attrs;if(n.canRender(o))return a==="render.shape"?n.drawShape(s,o,c):n.drawConnection(s,o,c)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(i,r){if(n.canRender(r))return i.type==="render.getShapePath"?n.getShapePath(r):n.getConnectionPath(r)})}yn.prototype.canRender=function(){};yn.prototype.drawShape=function(){};yn.prototype.drawConnection=function(){};yn.prototype.getShapePath=function(){};yn.prototype.getConnectionPath=function(){};function ki(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")}function vh(e){for(var t="",n=0,i;i=e[n];n++)t+=i.x+","+i.y+" ";return t}function Cc(e,t){var n=Q("polyline");return j(n,{points:vh(e)}),t&&j(n,t),n}function Ig(e,t){return j(e,{points:vh(t)}),e}function mh(e){return se(e,function(t){return!_e(e,function(n){return n!==t&&gh(t,n)})})}function gh(e,t){if(!!t){if(e===t)return t;if(!!e.parent)return gh(e.parent,t)}}function wl(e,t,n){var i=!n||e.indexOf(t)===-1;return i&&e.push(t),i}function ui(e,t,n){n=n||0,he(e)||(e=[e]),C(e,function(i,r){var a=t(i,r,n);he(a)&&a.length&&ui(a,t,n+1)})}function kg(e,t,n){var i=[],r=[];return ui(e,function(a,o,s){wl(i,a,t);var c=a.children;if((n===-1||sr||r===void 0)&&(r=c+p),(u+l>a||a===void 0)&&(a=u+l)}),{x:n,y:i,height:a-i,width:r-n}}function Bg(e,t){var n={};return C(e,function(i){var r=i;r.waypoints&&(r=et(r)),!ae(t.y)&&r.x>t.x&&(n[i.id]=i),!ae(t.x)&&r.y>t.y&&(n[i.id]=i),r.x>t.x&&r.y>t.y&&(ae(t.width)&&ae(t.height)&&r.width+r.xt.x-n&&e.y>t.y-n&&e.x=1e3&&delete r[a.shift()],a.push(i),r[i]=e.apply(0,n),r[i])}return t}function Kg(e){if(!e)return null;var t=Ti(e);if(t.arr)return fr(t.arr);var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return Ya(e)&&Ya(e[0])&&(i=fr(e)),i.length||String(e).replace(Vg,function(r,a,o){var s=[],c=a.toLowerCase();for(o.replace(Wg,function(u,l){l&&s.push(+l)}),c=="m"&&s.length>2&&(i.push([a].concat(s.splice(0,2))),c="l",a=a=="m"?"l":"L");s.length>=n[c]&&(i.push([a].concat(s.splice(0,n[c]))),!!n[c]););}),i.toString=Ti.toString,t.arr=fr(i),i}function Ti(e){var t=Ti.ps=Ti.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var n in t)Mc(t,n)&&n!=e&&(t[n].sleep--,!t[n].sleep&&delete t[n])}),t[e]}function Vs(e,t,n,i){return arguments.length===1&&(t=e.y,n=e.width,i=e.height,e=e.x),{x:e,y:t,width:n,height:i,x2:e+n,y2:t+i}}function xh(){return this.join(",").replace(Gg,"$1")}function Ka(e){var t=fr(e);return t.toString=xh,t}function Cl(e,t,n,i,r,a,o,s,c){var u=1-c,l=Rl(u,3),p=Rl(u,2),h=c*c,f=h*c,d=l*e+p*3*c*n+u*3*c*c*r+f*o,y=l*t+p*3*c*i+u*3*c*c*a+f*s;return{x:qa(d),y:qa(y)}}function Pl(e){var t=ey.apply(null,e);return Vs(t.x0,t.y0,t.x1-t.x0,t.y1-t.y0)}function An(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function qg(e,t){return e=Vs(e),t=Vs(t),An(t,e.x,e.y)||An(t,e.x2,e.y)||An(t,e.x,e.y2)||An(t,e.x2,e.y2)||An(e,t.x,t.y)||An(e,t.x2,t.y)||An(e,t.x,t.y2)||An(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}function Al(e,t,n,i,r){var a=-3*t+9*n-9*i+3*r,o=e*a+6*t-12*n+6*i;return e*o-3*t+3*n}function Ml(e,t,n,i,r,a,o,s,c){c==null&&(c=1),c=c>1?1:c<0?0:c;for(var u=c/2,l=12,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;dQt(r,o)||Qt(t,i)Qt(a,s))){var c=(e*i-t*n)*(r-o)-(e-n)*(r*s-a*o),u=(e*i-t*n)*(a-s)-(t-i)*(r*s-a*o),l=(e-n)*(a-s)-(t-i)*(r-o);if(!!l){var p=qa(c/l),h=qa(u/l),f=+p.toFixed(2),d=+h.toFixed(2);if(!(f<+Zt(e,n).toFixed(2)||f>+Qt(e,n).toFixed(2)||f<+Zt(r,o).toFixed(2)||f>+Qt(r,o).toFixed(2)||d<+Zt(t,i).toFixed(2)||d>+Qt(t,i).toFixed(2)||d<+Zt(a,s).toFixed(2)||d>+Qt(a,s).toFixed(2)))return{x:p,y:h}}}}function qa(e){return Math.round(e*1e11)/1e11}function Zg(e,t,n){var i=Pl(e),r=Pl(t);if(!qg(i,r))return n?0:[];for(var a=Ml.apply(0,e),o=Ml.apply(0,t),s=Dl(e)?1:~~(a/5)||1,c=Dl(t)?1:~~(o/5)||1,u=[],l=[],p={},h=n?0:[],f=0;f=0&&P<=1&&$>=0&&$<=1&&(n?h++:h.push({x:M.x,y:M.y,t1:P,t2:$}))}}return h}function Qg(e,t,n){e=Ol(e),t=Ol(t);for(var i,r,a,o,s,c,u,l,p,h,f=n?0:[],d=0,y=e.length;d1&&(D=Ie.sqrt(D),n=D*n,i=D*i);var A=n*n,w=i*i,b=(a==o?-1:1)*Ie.sqrt(Dn((A*w-A*x*x-w*y*y)/(A*x*x+w*y*y))),_=b*n*x/i+(e+s)/2,M=b*-i*y/n+(t+c)/2,N=Ie.asin(((t-M)/i).toFixed(9)),P=Ie.asin(((c-M)/i).toFixed(9));N=e<_?Pn-N:N,P=s<_?Pn-P:P,N<0&&(N=Pn*2+N),P<0&&(P=Pn*2+P),o&&N>P&&(N=N-Pn*2),!o&&P>N&&(P=P-Pn*2)}var $=P-N;if(Dn($)>l){var z=P,K=s,W=c;P=N+l*(o&&P>N?1:-1),s=_+n*Ie.cos(P),c=M+i*Ie.sin(P),h=_h(s,c,n,i,r,0,o,K,W,[P,z,_,M])}$=P-N;var X=Ie.cos(N),ge=Ie.sin(N),$t=Ie.cos(P),be=Ie.sin(P),le=Ie.tan($/4),S=4/3*n*le,v=4/3*i*le,R=[e,t],O=[e+S*ge,t-v*X],F=[s+S*be,c-v*$t],k=[s,c];if(O[0]=2*R[0]-O[0],O[1]=2*R[1]-O[1],u)return[O,F,k].concat(h);h=[O,F,k].concat(h).join().split(",");for(var B=[],G=0,re=h.length;G7){f[d].shift();for(var y=f[d];y.length;)o[d]="A",f.splice(d++,0,["C"].concat(y.splice(0,6)));f.splice(d,1),l=n.length}},o=[],s="",c="",u=0,l=n.length;u=r.right,s=i.top-n.y>=r.bottom,c=i.right+n.x<=r.left,u=a?"top":s?"bottom":null,l=c?"left":o?"right":null;return l&&u?u+"-"+l:l||u||"intersect"}function Ws(e,t,n){var i=ny(e,t);return i.length===1||i.length===2&&Pr(i[0],i[1])<1?Nn(i[0]):i.length>1?(i=Gt(i,function(r){var a=Math.floor(r.t2*100)||1;return a=100-a,a=(a<10?"0":"")+a,r.segment2+"#"+a}),Nn(i[n?0:i.length-1])):null}function ny(e,t){return wh(e,t)}function iy(e){e=e.slice();for(var t=0,n,i,r;e[t];)n=e[t],i=e[t-1],r=e[t+1],Pr(n,r)===0||Ac(i,r,n)?e.splice(t,1):t++;return e}function La(e,t){return Math.round(e*t)/t}function Il(e){return ae(e)?e+"px":e}function ry(e){for(;e.parent;)e=e.parent;return e}function ay(e){e=I({},{width:"100%",height:"100%"},e);var t=e.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),I(n.style,{position:"relative",overflow:"hidden",width:Il(e.width),height:Il(e.height)}),t.appendChild(n),n}function Th(e,t,n){var i=Q("g");fe(i).add(t);var r=n!==void 0?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}var Xa="base",Us="djs-element-hidden",Rh=0,oy=1,sy={shape:["x","y","width","height"],connection:["waypoints"]};function ue(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._init(e||{})}ue.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"];ue.prototype._init=function(e){var t=this._eventBus,n=this._container=ay(e),i=this._svg=Q("svg");j(i,{width:"100%",height:"100%"}),ne(n,i);var r=this._viewport=Th(i,"viewport");this._layers={},this._planes={},e.deferUpdate!==!1&&(this._viewboxChanged=rh(ft(this._viewboxChanged,this),300)),t.on("diagram.init",function(){t.fire("canvas.init",{svg:i,viewport:r})},this),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","plane.set"],function(){delete this._cachedViewbox},this),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)};ue.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._activePlane,delete this._viewport};ue.prototype._clear=function(){var e=this,t=this._elementRegistry.getAll();t.forEach(function(n){var i=yh(n);i==="root"?e.setRootElementForPlane(null,e.findPlane(n),!0):e._removeElement(n,i)}),this._activePlane=null,this._planes={},delete this._cachedViewbox};ue.prototype.getDefaultLayer=function(){return this.getLayer(Xa,Rh)};ue.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");var n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),typeof t!="undefined"&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group};ue.prototype._createLayer=function(e,t){typeof t=="undefined"&&(t=oy);var n=wt(this._layers,function(i,r){return t>=r.index&&i++,i},0);return{group:Th(this._viewport,"layer-"+e,n),index:t}};ue.prototype.getPlane=function(e){if(!e)throw new Error("must specify a name");return this._planes[e]};ue.prototype.createPlane=function(e,t){if(!e)throw new Error("must specify a name");if(this._planes[e])throw new Error("plane "+e+" already exists");t||(t={id:"__implicitroot"+e,children:[],isImplicit:!0});var n=this.getLayer(e,Rh);fe(n).add(Us);var i=this._planes[e]={layer:n,name:e,rootElement:null};return this.setRootElementForPlane(t,i),i};ue.prototype.setActivePlane=function(e){if(!e)throw new Error("must specify a plane");return typeof e=="string"&&(e=this.getPlane(e)),this._activePlane&&fe(this._activePlane.layer).add(Us),this._activePlane=e,fe(e.layer).remove(Us),e.rootElement&&this._elementRegistry.updateGraphics(e.rootElement,this._svg,!0),this._eventBus.fire("plane.set",{plane:e}),e};ue.prototype.getActiveLayer=function(){return this.getActivePlane().layer};ue.prototype.getActivePlane=function(){var e=this._activePlane;return e||(e=this.createPlane(Xa),this.setActivePlane(Xa)),e};ue.prototype.findPlane=function(e){typeof e=="string"&&(e=this._elementRegistry.get(e));var t=ry(e);return _e(this._planes,function(n){return n.rootElement===t})};ue.prototype.getContainer=function(){return this._container};ue.prototype._updateMarker=function(e,t,n){var i;e.id||(e=this._elementRegistry.get(e)),i=this._elementRegistry._elements[e.id],i&&(C([i.gfx,i.secondaryGfx],function(r){r&&(n?fe(r).add(t):fe(r).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))};ue.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)};ue.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)};ue.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));var n=this.getGraphics(e);return fe(n).has(t)};ue.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)};ue.prototype.getRootElement=function(){var e=this.getActivePlane();return e.rootElement};ue.prototype.setRootElement=function(e,t){var n=this._activePlane;if(n)return this.setRootElementForPlane(e,n,t);var i=this.createPlane(Xa,e);return this.setActivePlane(i),i.rootElement};ue.prototype.setRootElementForPlane=function(e,t,n){typeof t=="string"&&(t=this.getPlane(t)),e&&this._ensureValid("root",e);var i=t.rootElement,r=this._elementRegistry,a=this._eventBus;if(i){if(!n)throw new Error("rootElement already set, need to specify override");a.fire("root.remove",{element:i}),a.fire("root.removed",{element:i}),r.remove(i)}if(e){var o=t.layer;a.fire("root.add",{element:e}),r.add(e,o),a.fire("root.added",{element:e,gfx:o}),t===this._activePlane&&this._elementRegistry.updateGraphics(e,this._svg,!0)}return t.rootElement=e,e};ue.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element with id "+t.id+" already exists");var n=sy[e],i=Oi(n,function(r){return typeof t[r]!="undefined"});if(!i)throw new Error("must supply { "+n.join(", ")+" } with "+e)};ue.prototype._setParent=function(e,t,n){Le(t.children,e,n),e.parent=t};ue.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();var r=this._eventBus,a=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);var o=a.create(e,t,i);return this._elementRegistry.add(t,o),a.update(e,t,o),r.fire(e+".added",{element:t,gfx:o}),t};ue.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)};ue.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)};ue.prototype._removeElement=function(e,t){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e),!!e)return r.fire(t+".remove",{element:e}),i.remove(e),ke(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e};ue.prototype.removeShape=function(e){return this._removeElement(e,"shape")};ue.prototype.removeConnection=function(e){return this._removeElement(e,"connection")};ue.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)};ue.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()};ue.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})};ue.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return this._cachedViewbox;var t=this._viewport,n,i=this.getSize(),r,a,o,s,c;if(e)this._changeViewbox(function(){o=Math.min(i.width/e.width,i.height/e.height);var u=this._svg.createSVGMatrix().scale(o).translate(-e.x,-e.y);br(t,u)});else return n=this._activePlane&&this._activePlane.layer.getBBox()||{},a=br(t),r=a?a.matrix:gg(),o=La(r.a,1e3),s=La(-r.e||0,1e3),c=La(-r.f||0,1e3),e=this._cachedViewbox={x:s?s/o:0,y:c?c/o:0,width:i.width/o,height:i.height/o,scale:o,inner:{width:n.width||0,height:n.height||0,x:n.x||0,y:n.y||0},outer:i},e;return e};ue.prototype.scroll=function(e){var t=this._viewport,n=t.getCTM();return e&&this._changeViewbox(function(){e=I({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),Ch(t,n)}),{x:n.e,y:n.f}};ue.prototype.scrollToElement=function(e,t){var n=100;typeof e=="string"&&(e=this._elementRegistry.get(e));var i=this.findPlane(e);i!==this._activePlane&&this.setActivePlane(i),t||(t={}),typeof t=="number"&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};var r=et(e),a=ee(r),o=this.viewbox(),s=this.zoom(),c,u;o.y+=t.top/s,o.x+=t.left/s,o.width-=(t.right+t.left)/s,o.height-=(t.bottom+t.top)/s;var l=ee(o),p=r.width=0&&i.y>=0&&i.x+i.width<=n.width&&i.y+i.height<=n.height&&!e?a={x:0,y:0,width:Math.max(i.width+i.x,n.width),height:Math.max(i.height+i.y,n.height)}:(r=Math.min(1,n.width/i.width,n.height/i.height),a={x:i.x+(e?i.width/2-n.width/r/2:0),y:i.y+(e?i.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(a),this.viewbox(!1).scale};ue.prototype._setZoom=function(e,t){var n=this._svg,i=this._viewport,r=n.createSVGMatrix(),a=n.createSVGPoint(),o,s,c,u,l;c=i.getCTM();var p=c.a;return t?(o=I(a,t),s=o.matrixTransform(c.inverse()),u=r.translate(s.x,s.y).scale(1/p*e).translate(-s.x,-s.y),l=c.multiply(u)):l=r.scale(e),Ch(this._viewport,l),l};ue.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}};ue.prototype.getAbsoluteBBox=function(e){var t=this.viewbox(),n;if(e.waypoints){var i=this.getGraphics(e);n=i.getBBox()}else n=e;var r=n.x*t.scale-t.x*t.scale,a=n.y*t.scale-t.y*t.scale,o=n.width*t.scale,s=n.height*t.scale;return{x:r,y:a,width:o,height:s}};ue.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Ri="data-element-id";function Tt(e){this._elements={},this._eventBus=e}Tt.$inject=["eventBus"];Tt.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),j(t,Ri,i),n&&j(n,Ri,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}};Tt.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(j(i.gfx,Ri,""),i.secondaryGfx&&j(i.secondaryGfx,Ri,""),delete t[n])};Tt.prototype.updateId=function(e,t){this._validateId(t),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)};Tt.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,j(t,Ri,i),t};Tt.prototype.get=function(e){var t;typeof e=="string"?t=e:t=e&&j(e,Ri);var n=this._elements[t];return n&&n.element};Tt.prototype.filter=function(e){var t=[];return this.forEach(function(n,i){e(n,i)&&t.push(n)}),t};Tt.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i in ref");t=this.props[t]}t.collection?Ah(this,t,e):py(this,t,e)};kn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return Ph.isExtended(n)||Ah(this,t,e),n};kn.prototype.ensureBound=function(e,t){ly(e,t)||this.bind(e,t)};kn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)};kn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var fy=kn;Nc.exports=fy;Nc.exports.Collection=po;var Li=Nc.exports,Mh=new Li({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Dh=new Li({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),kl=new Li({name:"attachers",collection:!0},{name:"host"}),Nh=new Li({name:"outgoing",collection:!0},{name:"source"}),Oh=new Li({name:"incoming",collection:!0},{name:"target"});function Ar(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),Mh.bind(this,"parent"),Dh.bind(this,"labels"),Nh.bind(this,"outgoing"),Oh.bind(this,"incoming")}function Bi(){Ar.call(this),Mh.bind(this,"children"),kl.bind(this,"host"),kl.bind(this,"attachers")}Z(Bi,Ar);function Ih(){Bi.call(this)}Z(Ih,Bi);function fo(){Bi.call(this),Dh.bind(this,"labelTarget")}Z(fo,Bi);function kh(){Ar.call(this),Nh.bind(this,"source"),Oh.bind(this,"target")}Z(kh,Ar);var hy={connection:kh,shape:Bi,label:fo,root:Ih};function dy(e,t){var n=hy[e];if(!n)throw new Error("unknown type: <"+e+">");return I(new n,t)}function En(){this._uid=12}En.prototype.createRoot=function(e){return this.create("root",e)};En.prototype.createLabel=function(e){return this.create("label",e)};En.prototype.createShape=function(e){return this.create("shape",e)};En.prototype.createConnection=function(e){return this.create("connection",e)};En.prototype.create=function(e,t){return t=I({},t||{}),t.id||(t.id=e+"_"+this._uid++),dy(e,t)};var Za="__fn",Lh=1e3,vy=Array.prototype.slice;function mt(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}mt.prototype.on=function(e,t,n,i){if(e=he(e)?e:[e],ot(t)&&(i=n,n=t,t=Lh),!ae(t))throw new Error("priority must be a number");var r=n;i&&(r=ft(n,i),r[Za]=n[Za]||n);var a=this;e.forEach(function(o){a._addListener(o,{priority:t,callback:r,next:null})})};mt.prototype.once=function(e,t,n,i){var r=this;if(ot(t)&&(i=n,n=t,t=Lh),!ae(t))throw new Error("priority must be a number");function a(){a.__isTomb=!0;var o=n.apply(i,arguments);return r.off(e,a),o}a[Za]=n,this.on(e,t,a)};mt.prototype.off=function(e,t){e=he(e)?e:[e];var n=this;e.forEach(function(i){n._removeListener(i,t)})};mt.prototype.createEvent=function(e){var t=new Mr;return t.init(e),t};mt.prototype.fire=function(e,t){var n,i,r,a;if(a=vy.call(arguments),typeof e=="object"&&(t=e,e=t.type),!e)throw new Error("no event type specified");if(i=this._listeners[e],!!i){t instanceof Mr?n=t:n=this.createEvent(t),a[0]=n;var o=n.type;e!==o&&(n.type=e);try{r=this._invokeListeners(n,a,i)}finally{e!==o&&(n.type=o)}return r===void 0&&n.defaultPrevented&&(r=!1),r}};mt.prototype.handleError=function(e){return this.fire("error",{error:e})===!1};mt.prototype._destroy=function(){this._listeners={}};mt.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i};mt.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{i=my(n.callback,t),i!==void 0&&(e.returnValue=i,e.stopPropagation()),i===!1&&e.preventDefault()}catch(r){if(!this.handleError(r))throw console.error("unhandled error in event listener",r),r}return i};mt.prototype._addListener=function(e,t){var n=this._getListeners(e),i;if(!n){this._setListeners(e,t);return}for(;n;){if(n.priority=0}function r(s){t.push(s)}function a(s){i(s)||((s.__depends__||[]).forEach(a),!i(s)&&(r(s),(s.__init__||[]).forEach(function(c){n.push(c)})))}e.forEach(a);var o=new zs(t);return n.forEach(function(s){try{o[typeof s=="string"?"get":"invoke"](s)}catch(c){throw console.error("Failed to instantiate component"),console.error(c.stack),c}}),o}function by(e){e=e||{};var t={config:["value",e]},n=[t,yy].concat(e.modules||[]);return Ey(n)}function $i(e,t){this.injector=t=t||by(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}$i.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")};$i.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function Oc(){}Oc.prototype.get=function(e){return this.$model.properties.get(this,e)};Oc.prototype.set=function(e,t){this.$model.properties.set(this,e,t)};function Fh(e,t){this.model=e,this.properties=t}Fh.prototype.createType=function(e){var t=this.model,n=this.properties,i=Object.create(Oc.prototype);C(e.properties,function(o){!o.isMany&&o.default!==void 0&&(i[o.name]=o.default)}),n.defineModel(i,t),n.defineDescriptor(i,e);var r=e.ns.name;function a(o){n.define(this,"$type",{value:r,enumerable:!0}),n.define(this,"$attrs",{value:{}}),n.define(this,"$parent",{writable:!0}),C(o,ft(function(s,c){this.set(c,s)},this))}return a.prototype=i,a.hasType=i.$instanceOf=this.model.hasType,n.defineModel(a,t),n.defineDescriptor(a,e),a};var xy={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},Hh={String:function(e){return e},Boolean:function(e){return e==="true"},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e)}};function Ic(e,t){var n=Hh[e];return n?n(t):t}function Ks(e){return!!xy[e]}function jh(e){return!!Hh[e]}function pt(e,t){var n=e.split(/:/),i,r;if(n.length===1)i=e,r=t;else if(n.length===2)i=n[1],r=n[0];else throw new Error("expected or , got "+e);return e=(r?r+":":"")+i,{name:e,prefix:r,localName:i}}function Dt(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Dt.prototype.build=function(){return Vt(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])};Dt.prototype.addProperty=function(e,t,n){typeof t=="boolean"&&(n=t,t=void 0),this.addNamedProperty(e,n!==!1);var i=this.properties;t!==void 0?i.splice(t,0,e):i.push(e)};Dt.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,a=this.propertiesByName,o=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(s===-1)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,o),a[i.name]=a[i.localName]=t};Dt.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),a=pt(r[0],i),o=pt(r[1],a.prefix).name,s=this.propertiesByName[o];if(s)this.replaceProperty(s,e,n);else throw new Error("refined property <"+o+"> not found");delete e.redefines};Dt.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e};Dt.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]};Dt.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e};Dt.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e};Dt.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")};Dt.prototype.hasProperty=function(e){return this.propertiesByName[e]};Dt.prototype.addTrait=function(e,t){var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(C(e.properties,ft(function(a){a=I({},a,{name:a.ns.localName,inherited:t}),Object.defineProperty(a,"definedBy",{value:e});var o=a.replaces,s=a.redefines;o||s?this.redefineProperty(a,o||s,o):(a.isBody&&this.setBodyProperty(a),a.isId&&this.setIdProperty(a),this.addProperty(a))},this)),i.push(e),n[r]=e)};function Hn(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,C(e,ft(this.registerPackage,this))}Hn.prototype.getPackage=function(e){return this.packageMap[e]};Hn.prototype.getPackages=function(){return this.packages};Hn.prototype.registerPackage=function(e){e=I({},e);var t=this.packageMap;Ll(t,e,"prefix"),Ll(t,e,"uri"),C(e.types,ft(function(n){this.registerType(n,e)},this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)};Hn.prototype.registerType=function(e,t){e=I({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:I(e.meta||{})});var n=pt(e.name,t.prefix),i=n.name,r={};C(e.properties,ft(function(a){var o=pt(a.name,n.prefix),s=o.name;Ks(a.type)||(a.type=pt(a.type,o.prefix).name),I(a,{ns:o,name:s}),r[s]=a},this)),I(e,{ns:n,name:i,propertiesByName:r}),C(e.extends,ft(function(a){var o=this.typeMap[a];o.traits=o.traits||[],o.traits.push(i)},this)),this.definePackage(e,t),this.typeMap[i]=e};Hn.prototype.mapTypes=function(e,t,n){var i=Ks(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function a(s){return o(s,!0)}function o(s,c){var u=pt(s,Ks(s)?"":e.prefix);r.mapTypes(u,t,c)}if(!i)throw new Error("unknown type <"+e.name+">");C(i.superClass,n?a:o),t(i,!n),C(i.traits,a)};Hn.prototype.getEffectiveDescriptor=function(e){var t=pt(e),n=new Dt(t);this.mapTypes(t,function(r,a){n.addTrait(r,a)});var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i};Hn.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})};function Ll(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function Fi(e){this.model=e}Fi.prototype.set=function(e,t,n){var i=this.model.getPropertyDescriptor(e,t),r=i&&i.name;_y(n)?i?delete e[r]:delete e.$attrs[t]:i?r in e?e[r]=n:zh(e,i,n):e.$attrs[t]=n};Fi.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&zh(e,n,[]),e[i]};Fi.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;n=I({},n,{get:function(){return i}}),delete n.value}Object.defineProperty(e,t,n)};Fi.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})};Fi.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})};function _y(e){return typeof e=="undefined"}function zh(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function Nt(e){this.properties=new Fi(this),this.factory=new Fh(this,this.properties),this.registry=new Hn(e,this.properties),this.typeCache={}}Nt.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)};Nt.prototype.getType=function(e){var t=this.typeCache,n=Mt(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i};Nt.prototype.createAny=function(e,t,n){var i=pt(e),r={$type:e,$instanceOf:function(o){return o===this.$type}},a={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,a),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),this.properties.define(r,"$instanceOf",{enumerable:!1,writable:!0}),C(n,function(o,s){Je(o)&&o.value!==void 0?r[o.name]=o.value:r[s]=o}),r};Nt.prototype.getPackage=function(e){return this.registry.getPackage(e)};Nt.prototype.getPackages=function(){return this.registry.getPackages()};Nt.prototype.getElementDescriptor=function(e){return e.$descriptor};Nt.prototype.hasType=function(e,t){t===void 0&&(t=e,e=this);var n=e.$model.getElementDescriptor(e);return t in n.allTypesByName};Nt.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]};Nt.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var Bl=String.fromCharCode,wy=Object.prototype.hasOwnProperty,Sy=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,hr={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(hr).forEach(function(e){hr[e.toUpperCase()]=hr[e]});function Ty(e,t,n,i){return i?wy.call(hr,i)?hr[i]:"&"+i+";":Bl(t||parseInt(n,16))}function Jn(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(Sy,Ty):e}var Ry="http://www.w3.org/2001/XMLSchema-instance",Cy="xsi",$l="xsi:type",Fl="non-whitespace outside of root node";function Ei(e){return new Error(e)}function Hl(e){return"missing namespace for prefix <"+e+">"}function ha(e){return{get:e,enumerable:!0}}function Py(e){var t={},n;for(n in e)t[n]=e[n];return t}function qs(e){return e+"$uri"}function Ay(e){var t={},n,i;for(n in e)i=e[n],t[i]=i,t[qs(i)]=n;return t}function jl(){return{line:0,column:0}}function My(e){throw e}function Gh(e){if(!this)return new Gh(e);var t=e&&e.proxy,n,i,r,a,o=My,s,c,u,l,p=jl,h=!1,f=!1,d=null,y=!1,x;function D(b){b instanceof Error||(b=Ei(b)),d=b,o(b,p)}function A(b){!s||(b instanceof Error||(b=Ei(b)),s(b,p))}this.on=function(b,_){if(typeof _!="function")throw Ei("required args ");switch(b){case"openTag":i=_;break;case"text":n=_;break;case"closeTag":r=_;break;case"error":o=_;break;case"warn":s=_;break;case"cdata":a=_;break;case"attention":l=_;break;case"question":u=_;break;case"comment":c=_;break;default:throw Ei("unsupported event: "+b)}return this},this.ns=function(b){if(typeof b=="undefined"&&(b={}),typeof b!="object")throw Ei("required args ");var _={},M;for(M in b)_[M]=b[M];return _[Ry]=Cy,f=!0,x=_,this},this.parse=function(b){if(typeof b!="string")throw Ei("required args ");return d=null,w(b),p=jl,y=!1,d},this.stop=function(){y=!0};function w(b){var _=f?[]:null,M=f?Ay(x):null,N,P=[],$=0,z=!1,K=!1,W=0,X=0,ge,$t,be,le,S,v,R,O,F,k="",B=0,G;function re(){if(G!==null)return G;var Re,pe,de,Ve=f&&M.xmlns,We=f&&h?[]:null,we=B,Pe=k,ct=Pe.length,ut,rt,Ne,yt,Ee,Ge={},ta={},Et,J,xe;e:for(;we8)){for((J<65||J>122||J>90&&J<97)&&J!==95&&J!==58&&(A("illegal first char attribute name"),Et=!0),xe=we+1;xe96&&J<123||J>64&&J<91||J>47&&J<59||J===46||J===45||J===95)){if(J===32||J<14&&J>8){A("missing attribute value"),we=xe;continue e}if(J===61)break;A("illegal attribute name char"),Et=!0}if(Ee=Pe.substring(we,xe),Ee==="xmlns:xmlns"&&(A("illegal declaration of xmlns"),Et=!0),J=Pe.charCodeAt(xe+1),J===34)xe=Pe.indexOf('"',we=xe+2),xe===-1&&(xe=Pe.indexOf("'",we),xe!==-1&&(A("attribute value quote missmatch"),Et=!0));else if(J===39)xe=Pe.indexOf("'",we=xe+2),xe===-1&&(xe=Pe.indexOf('"',we),xe!==-1&&(A("attribute value quote missmatch"),Et=!0));else for(A("missing attribute value quotes"),Et=!0,xe=xe+1;xe8));xe++);for(xe===-1&&(A("missing closing quotes"),xe=ct,Et=!0),Et||(Ne=Pe.substring(we,xe)),we=xe;xe+18));xe++)we===xe&&(A("illegal character after attribute end"),Et=!0);if(we=xe+1,Et)continue e;if(Ee in ta){A("attribute <"+Ee+"> already defined");continue}if(ta[Ee]=!0,!f){Ge[Ee]=Ne;continue}if(h){if(rt=Ee==="xmlns"?"xmlns":Ee.charCodeAt(0)===120&&Ee.substr(0,6)==="xmlns:"?Ee.substr(6):null,rt!==null){if(Re=Jn(Ne),pe=qs(rt),yt=x[Re],!yt){if(rt==="xmlns"||pe in M&&M[pe]!==Re)do yt="ns"+$++;while(typeof M[yt]!="undefined");else yt=rt;x[Re]=yt}M[rt]!==yt&&(ut||(M=Py(M),ut=!0),M[rt]=yt,rt==="xmlns"&&(M[qs(yt)]=Re,Ve=yt),M[pe]=Re),Ge[Ee]=Ne;continue}We.push(Ee,Ne);continue}if(J=Ee.indexOf(":"),J===-1){Ge[Ee]=Ne;continue}if(!(de=M[Ee.substring(0,J)])){A(Hl(Ee.substring(0,J)));continue}Ee=Ve===de?Ee.substr(J+1):de+Ee.substr(J),Ee===$l&&(J=Ne.indexOf(":"),J!==-1?(de=Ne.substring(0,J),de=M[de]||de,Ne=de+Ne.substring(J)):Ne=Ve+":"+Ne),Ge[Ee]=Ne}if(h)for(we=0,ct=We.length;we=Ve&&(we=Re.exec(b),!(!we||(We=we[0].length+we.index,We>W)));)pe+=1,Ve=We;return W==-1?(de=We,Pe=b.substring(X)):X===0?Pe=b.substring(X,W):(de=W-Ve,Pe=X==-1?b.substring(W):b.substring(W,X+1)),{data:Pe,line:pe,column:de}}for(p=oe,t&&(F=Object.create({},{name:ha(function(){return R}),originalName:ha(function(){return O}),attrs:ha(re),ns:ha(function(){return M})}));X!==-1;){if(b.charCodeAt(X)===60?W=X:W=b.indexOf("<",X),W===-1){if(P.length)return D("unexpected end of file");if(X===0)return D("missing start tag");X",W),X===-1)return D("unclosed cdata");if(a&&(a(b.substring(W+9,X),p),y))return;X+=3;continue}if(be===45&&b.charCodeAt(W+3)===45){if(X=b.indexOf("-->",W),X===-1)return D("unclosed comment");if(c&&(c(b.substring(W+4,X),Jn,p),y))return;X+=3;continue}}if(le===63){if(X=b.indexOf("?>",W),X===-1)return D("unclosed question");if(u&&(u(b.substring(W,X+2),p),y))return;X+=2;continue}for(ge=W+1;;ge++){if(S=b.charCodeAt(ge),isNaN(S))return X=-1,D("unclosed tag");if(S===34)be=b.indexOf('"',ge+1),ge=be!==-1?be:ge;else if(S===39)be=b.indexOf("'",ge+1),ge=be!==-1?be:ge;else if(S===62){X=ge;break}}if(le===33){if(l&&(l(b.substring(W,X+1),Jn,p),y))return;X+=1;continue}if(G={},le===47){if(z=!1,K=!0,!P.length)return D("missing open tag");if(ge=R=P.pop(),be=W+2+ge.length,b.substring(W+2,be)!==ge)return D("closing tag mismatch");for(;be8&&le<14))return D("close tag")}else{if(b.charCodeAt(X-1)===47?(ge=R=b.substring(W+1,X-1),z=!0,K=!0):(ge=R=b.substring(W+1,X),z=!0,K=!1),!(le>96&&le<123||le>64&&le<91||le===95||le===58))return D("illegal first char nodeName");for(be=1,$t=ge.length;be<$t;be++)if(le=ge.charCodeAt(be),!(le>96&&le<123||le>64&&le<91||le>47&&le<59||le===45||le===95||le==46)){if(le===32||le<14&&le>8){R=ge.substring(0,be),G=null;break}return D("invalid nodeName")}K||P.push(R)}if(f){if(N=M,z&&(K||_.push(N),G===null&&(h=ge.indexOf("xmlns",be)!==-1)&&(B=be,k=ge,re(),h=!1)),O=R,le=R.indexOf(":"),le!==-1){if(v=M[R.substring(0,le)],!v)return D("missing namespace on <"+O+">");R=R.substr(le+1)}else v=M.xmlns;v&&(R=v+":"+R)}if(z&&(B=be,k=ge,i&&(t?i(F,Jn,K,p):i(R,re,Jn,K,p),y)))return;if(K){if(r&&(r(t?F:R,Jn,z,p),y))return;f&&(z?M=N:M=_.pop())}X+=1}}}function Vh(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var Dy={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},ho="xsi:type";function Wh(e){return e.xml&&e.xml.serialize}function Uh(e){return Wh(e)===ho}function Ny(e){return Wh(e)==="property"}function Oy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yh(e,t){return Vh(t)?e.prefix+":"+Oy(e.localName):e.name}function Iy(e,t){var n=e.name,i=e.localName,r=t.xml&&t.xml.typePrefix;return r&&i.indexOf(r)===0?e.prefix+":"+i.slice(r.length):n}function ky(e,t){var n=pt(e),i=t.getPackage(n.prefix);return Iy(n,i)}function Ln(e){return new Error(e)}function vn(e){return e.$descriptor}function Ly(e){I(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(t){this.references.push(t)},this.addElement=function(t){if(!t)throw Ln("expected element");var n=this.elementsById,i=vn(t),r=i.idProperty,a;if(r&&(a=t.get(r.name),a)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(a))throw new Error("illegal ID <"+a+">");if(n[a])throw Ln("duplicate ID <"+a+">");n[a]=t}},this.addWarning=function(t){this.warnings.push(t)}}function Dr(){}Dr.prototype.handleEnd=function(){};Dr.prototype.handleText=function(){};Dr.prototype.handleNode=function(){};function kc(){}kc.prototype=Object.create(Dr.prototype);kc.prototype.handleNode=function(){return this};function Hi(){}Hi.prototype=Object.create(Dr.prototype);Hi.prototype.handleText=function(e){this.body=(this.body||"")+e};function Nr(e,t){this.property=e,this.context=t}Nr.prototype=Object.create(Hi.prototype);Nr.prototype.handleNode=function(e){if(this.element)throw Ln("expected no sub nodes");return this.element=this.createReference(e),this};Nr.prototype.handleEnd=function(){this.element.id=this.body};Nr.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Lc(e,t){this.element=t,this.propertyDesc=e}Lc.prototype=Object.create(Hi.prototype);Lc.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=Ic(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)};function vo(){}vo.prototype=Object.create(Hi.prototype);vo.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t};function st(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}st.prototype=Object.create(vo.prototype);st.prototype.addReference=function(e){this.context.addReference(e)};st.prototype.handleText=function(e){var t=this.element,n=vn(t),i=n.bodyProperty;if(!i)throw Ln("unexpected body text <"+e+">");Hi.prototype.handleText.call(this,e)};st.prototype.handleEnd=function(){var e=this.body,t=this.element,n=vn(t),i=n.bodyProperty;i&&e!==void 0&&(e=Ic(i.type,e),t.set(i.name,e))};st.prototype.createElement=function(e){var t=e.attributes,n=this.type,i=vn(n),r=this.context,a=new n({}),o=this.model,s;return C(t,function(c,u){var l=i.propertiesByName[u],p;l&&l.isReference?l.isMany?(p=c.split(" "),C(p,function(h){r.addReference({element:a,property:l.ns.name,id:h})})):r.addReference({element:a,property:l.ns.name,id:c}):(l?c=Ic(l.type,c):u!=="xmlns"&&(s=pt(u,i.ns.prefix),o.getPackage(s.prefix)&&r.addWarning({message:"unknown attribute <"+u+">",element:a,property:u,value:c})),a.set(u,c))}),a};st.prototype.getPropertyForNode=function(e){var t=e.name,n=pt(t),i=this.type,r=this.model,a=vn(i),o=n.name,s=a.propertiesByName[o],c,u;if(s&&!s.isAttr)return Uh(s)&&(c=e.attributes[ho],c)?(c=ky(c,r),u=r.getType(c),I({},s,{effectiveType:vn(u).name})):s;var l=r.getPackage(n.prefix);if(l){if(c=Yh(n,l),u=r.getType(c),s=_e(a.properties,function(p){return!p.isVirtual&&!p.isReference&&!p.isAttribute&&u.hasType(p.type)}),s)return I({},s,{effectiveType:vn(u).name})}else if(s=_e(a.properties,function(p){return!p.isReference&&!p.isAttribute&&p.type==="Element"}),s)return s;throw Ln("unrecognized element <"+n.name+">")};st.prototype.toString=function(){return"ElementDescriptor["+vn(this.type).name+"]"};st.prototype.valueHandler=function(e,t){return new Lc(e,t)};st.prototype.referenceHandler=function(e){return new Nr(e,this.context)};st.prototype.handler=function(e){return e==="Element"?new Ci(this.model,e,this.context):new st(this.model,e,this.context)};st.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,n=t.effectiveType||t.type,jh(n))return this.valueHandler(t,i);t.isReference?r=this.referenceHandler(t).handleNode(e):r=this.handler(n).handleNode(e);var a=r.element;return a!==void 0&&(t.isMany?i.get(t.name).push(a):i.set(t.name,a),t.isReference?(I(a,{element:i}),this.context.addReference(a)):a.$parent=i),r};function Bc(e,t,n){st.call(this,e,t,n)}Bc.prototype=Object.create(st.prototype);Bc.prototype.createElement=function(e){var t=e.name,n=pt(t),i=this.model,r=this.type,a=i.getPackage(n.prefix),o=a&&Yh(n,a)||t;if(!r.hasType(o))throw Ln("unexpected element <"+e.originalName+">");return st.prototype.createElement.call(this,e)};function Ci(e,t,n){this.model=e,this.context=n}Ci.prototype=Object.create(vo.prototype);Ci.prototype.createElement=function(e){var t=e.name,n=pt(t),i=n.prefix,r=e.ns[i+"$uri"],a=e.attributes;return this.model.createAny(t,r,a)};Ci.prototype.handleChild=function(e){var t=new Ci(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element,r;return i!==void 0&&(r=n.$children=n.$children||[],r.push(i),i.$parent=n),t};Ci.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function $c(e){e instanceof Nt&&(e={model:e}),I(this,{lax:!1},e)}$c.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof st?(i=t,t={}):typeof t=="string"?(i=this.handler(t),t={}):typeof i=="string"&&(i=this.handler(i));var r=this.model,a=this.lax,o=new Ly(I({},t,{rootHandler:i})),s=new Gh({proxy:!0}),c=By();i.context=o,c.push(i);function u(_,M,N){var P=M(),$=P.line,z=P.column,K=P.data;K.charAt(0)==="<"&&K.indexOf(" ")!==-1&&(K=K.slice(0,K.indexOf(" "))+">");var W="unparsable content "+(K?K+" ":"")+`detected - line: `+$+` - column: `+z+` - nested error: `+_.message;if(N)return o.addWarning({message:W,error:_}),!0;throw Ln(W)}function l(_,M){return u(_,M,!0)}function p(){var _=o.elementsById,M=o.references,N,P;for(N=0;P=M[N];N++){var $=P.element,z=_[P.id],K=vn($).propertiesByName[P.property];if(z||o.addWarning({message:"unresolved reference <"+P.id+">",element:P.element,property:P.property,value:P.id}),K.isMany){var W=$.get(K.name),X=W.indexOf(P);X===-1&&(X=W.length),z?W[X]=z:W.splice(X,1)}else $.set(K.name,z)}}function h(){c.pop().handleEnd()}var f=/^<\?xml /i,d=/ encoding="([^"]+)"/i,y=/^utf-8$/i;function x(_){if(!!f.test(_)){var M=d.exec(_),N=M&&M[1];!N||y.test(N)||o.addWarning({message:"unsupported document encoding <"+N+">, falling back to UTF-8"})}}function D(_,M){var N=c.peek();try{c.push(N.handleNode(_))}catch(P){u(P,M,a)&&c.push(new kc)}}function A(_,M){try{c.peek().handleText(_)}catch(N){l(N,M)}}function w(_,M){!_.trim()||A(_,M)}var b=r.getPackages().reduce(function(_,M){return _[M.uri]=M.prefix,_},{"http://www.w3.org/XML/1998/namespace":"xml"});return s.ns(b).on("openTag",function(_,M,N,P){var $=_.attrs||{},z=Object.keys($).reduce(function(W,X){var ge=M($[X]);return W[X]=ge,W},{}),K={name:_.name,originalName:_.originalName,attributes:z,ns:_.ns};D(K,P)}).on("question",x).on("closeTag",h).on("cdata",A).on("text",function(_,M,N){w(M(_),N)}).on("error",u).on("warn",l),new Promise(function(_,M){var N;try{s.parse(e),p()}catch(W){N=W}var P=i.element;!N&&!P&&(N=Ln("failed to parse document as <"+i.type.$descriptor.name+">"));var $=o.warnings,z=o.references,K=o.elementsById;return N?(N.warnings=$,M(N)):_({rootElement:P,elementsById:K,references:z,warnings:$})})};$c.prototype.handler=function(e){return new Bc(this.model,e)};function By(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var $y=` -`,Fy=/<|>|'|"|&|\n\r|\n/g,Kh=/<|>|&/g;function Hy(e){var t={},n={},i={},r=[],a=[];this.byUri=function(o){return n[o]||e&&e.byUri(o)},this.add=function(o,s){n[o.uri]=o,s?r.push(o):a.push(o),this.mapPrefix(o.prefix,o.uri)},this.uriByPrefix=function(o){return t[o||"xmlns"]},this.mapPrefix=function(o,s){t[o||"xmlns"]=s},this.getNSKey=function(o){return o.prefix!==void 0?o.uri+"|"+o.prefix:o.uri},this.logUsed=function(o){var s=o.uri,c=this.getNSKey(o);i[c]=this.byUri(s),e&&e.logUsed(o)},this.getUsed=function(o){function s(l){var p=c.getNSKey(l);return i[p]}var c=this,u=[].concat(r,a);return u.filter(s)}}function jy(e){return e.charAt(0).toLowerCase()+e.slice(1)}function zy(e,t){return Vh(t)?jy(e):e}function qh(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Xh(e){return Mt(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function Gy(e){return e.getUsed().filter(function(t){return t.prefix!=="xml"}).map(function(t){var n="xmlns"+(t.prefix?":"+t.prefix:"");return{name:n,value:t.uri}})}function Vy(e,t){return t.isGeneric?I({localName:t.ns.localName},e):I({localName:zy(t.ns.localName,t.$pkg)},e)}function Wy(e,t){return I({localName:t.ns.localName},e)}function Uy(e){var t=e.$descriptor;return se(t.properties,function(n){var i=n.name;if(n.isVirtual||!hn(e,i))return!1;var r=e[i];return r===n.default||r===null?!1:n.isMany?r.length:!0})}var Yy={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},Ky={"<":"lt",">":"gt","&":"amp"};function Zh(e,t,n){return e=Mt(e)?e:""+e,e.replace(t,function(i){return"&"+n[i]+";"})}function qy(e){return Zh(e,Fy,Yy)}function Xy(e){return Zh(e,Kh,Ky)}function Zy(e){return se(e,function(t){return t.isAttr})}function Qy(e){return se(e,function(t){return!t.isAttr})}function Fc(e){this.tagName=e}Fc.prototype.build=function(e){return this.element=e,this};Fc.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"").appendNewLine()};function oi(){}oi.prototype.serializeValue=oi.prototype.serializeTo=function(e){e.append(this.escape?Xy(this.value):this.value)};oi.prototype.build=function(e,t){return this.value=t,e.type==="String"&&t.search(Kh)!==-1&&(this.escape=!0),this};function Hc(e){this.tagName=e}qh(Hc,oi);Hc.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("").appendNewLine()};function Ae(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}Ae.prototype.build=function(e){this.element=e;var t=e.$descriptor,n=this.propertyDescriptor,i,r,a=t.isGeneric;return a?i=this.parseGeneric(e):i=this.parseNsAttributes(e),n?this.ns=this.nsPropertyTagName(n):this.ns=this.nsTagName(t),this.tagName=this.addTagName(this.ns),a||(r=Uy(e),this.parseAttributes(Zy(r)),this.parseContainments(Qy(r))),this.parseGenericAttributes(e,i),this};Ae.prototype.nsTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Vy(t,e)};Ae.prototype.nsPropertyTagName=function(e){var t=this.logNamespaceUsed(e.ns);return Wy(t,e)};Ae.prototype.isLocalNs=function(e){return e.uri===this.ns.uri};Ae.prototype.nsAttributeName=function(e){var t;if(Mt(e)?t=pt(e):t=e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:I({localName:t.localName},n)};Ae.prototype.parseGeneric=function(e){var t=this,n=this.body,i=[];return C(e,function(r,a){var o;a==="$body"?n.push(new oi().build({type:"String"},r)):a==="$children"?C(r,function(s){n.push(new Ae(t).build(s))}):a.indexOf("$")!==0&&(o=t.parseNsAttribute(e,a,r),o&&i.push({name:a,value:r}))}),i};Ae.prototype.parseNsAttribute=function(e,t,n){var i=e.$model,r=pt(t),a;if(r.prefix==="xmlns"&&(a={prefix:r.localName,uri:n}),!r.prefix&&r.localName==="xmlns"&&(a={uri:n}),!a)return{name:t,value:n};if(i&&i.getPackage(n))this.logNamespace(a,!0,!0);else{var o=this.logNamespaceUsed(a,!0);this.getNamespaces().logUsed(o)}};Ae.prototype.parseNsAttributes=function(e,t){var n=this,i=e.$attrs,r=[];return C(i,function(a,o){var s=n.parseNsAttribute(e,o,a);s&&r.push(s)}),r};Ae.prototype.parseGenericAttributes=function(e,t){var n=this;C(t,function(i){if(i.name!==ho)try{n.addAttribute(n.nsAttributeName(i.name),i.value)}catch(r){console.warn("missing namespace information for ",i.name,"=",i.value,"on",e,r)}})};Ae.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;C(e,function(r){var a=i.get(r.name),o=r.isReference,s=r.isMany;if(s||(a=[a]),r.isBody)n.push(new oi().build(r,a[0]));else if(jh(r.type))C(a,function(l){n.push(new Hc(t.addTagName(t.nsPropertyTagName(r))).build(r,l))});else if(o)C(a,function(l){n.push(new Fc(t.addTagName(t.nsPropertyTagName(r))).build(l))});else{var c=Uh(r),u=Ny(r);C(a,function(l){var p;c?p=new mo(t,r):u?p=new Ae(t,r):p=new Ae(t),n.push(p.build(l))})}})};Ae.prototype.getNamespaces=function(e){var t=this.namespaces,n=this.parent,i;return t||(i=n&&n.getNamespaces(),e||!i?this.namespaces=t=new Hy(i):t=i),t};Ae.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,a=e.prefix,o=i.byUri(r);return(!o||n)&&i.add(e,t),i.mapPrefix(a,r),e};Ae.prototype.logNamespaceUsed=function(e,t){var n=this.element,i=n.$model,r=this.getNamespaces(t),a=e.prefix,o=e.uri,s,c,u;if(!a&&!o)return{localName:e.localName};if(u=Dy[a]||i&&(i.getPackage(a)||{}).uri,o=o||u||r.uriByPrefix(a),!o)throw new Error("no namespace uri given for prefix <"+a+">");if(e=r.byUri(o),!e){for(s=a,c=1;r.uriByPrefix(s);)s=a+"_"+c++;e=this.logNamespace({prefix:s,uri:o},u===o)}return a&&r.mapPrefix(a,o),e};Ae.prototype.parseAttributes=function(e){var t=this,n=this.element;C(e,function(i){var r=n.get(i.name);if(i.isReference)if(!i.isMany)r=r.id;else{var a=[];C(r,function(o){a.push(o.id)}),r=a.join(" ")}t.addAttribute(t.nsAttributeName(i),r)})};Ae.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),Xh(e)};Ae.prototype.addAttribute=function(e,t){var n=this.attrs;Mt(t)&&(t=qy(t)),n.push({name:e,value:t})};Ae.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=Gy(n).concat(t)),C(t,function(i){e.append(" ").append(Xh(i.name)).append('="').append(i.value).append('"')})};Ae.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==oi;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),C(this.body,function(i){i.serializeTo(e)}),n&&e.unindent().appendIndent(),e.append("")),e.appendNewLine()};function mo(e,t){Ae.call(this,e,t)}qh(mo,Ae);mo.prototype.parseNsAttributes=function(e){var t=Ae.prototype.parseNsAttributes.call(this,e),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),a=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(ho),(i.prefix?i.prefix+":":"")+a+n.ns.localName),t};mo.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Jy(){this.value="",this.write=function(e){this.value+=e}}function eE(e,t){var n=[""];this.append=function(i){return e.write(i),this},this.appendNewLine=function(){return t&&e.write(` -`),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function tE(e){e=I({format:!1,preamble:!0},e||{});function t(n,i){var r=i||new Jy,a=new eE(r,e.format);if(e.preamble&&a.append($y),new Ae().build(n).serializeTo(a),!i)return r.value}return{toXML:t}}function go(e,t){Nt.call(this,e,t)}go.prototype=Object.create(Nt.prototype);go.prototype.fromXML=function(e,t,n){Mt(t)||(n=t,t="bpmn:Definitions");var i=new $c(I({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)};go.prototype.toXML=function(e,t){var n=new tE(t);return new Promise(function(i,r){try{var a=n.toXML(e);return i({xml:a})}catch(o){return r(o)}})};var nE="BPMN20",iE="http://www.omg.org/spec/BPMN/20100524/MODEL",rE="bpmn",aE=[],oE=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],sE=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],cE={tagAlias:"lowerCase",typePrefix:"t"},uE={name:nE,uri:iE,prefix:rE,associations:aE,types:oE,enumerations:sE,xml:cE},lE="BPMNDI",pE="http://www.omg.org/spec/BPMN/20100524/DI",fE="bpmndi",hE=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],dE=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],vE=[],mE={name:lE,uri:pE,prefix:fE,types:hE,enumerations:dE,associations:vE},gE="DC",yE="http://www.omg.org/spec/DD/20100524/DC",EE="dc",bE=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],xE=[],_E={name:gE,uri:yE,prefix:EE,types:bE,associations:xE},wE="DI",SE="http://www.omg.org/spec/DD/20100524/DI",TE="di",RE=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],CE=[],PE={tagAlias:"lowerCase"},AE={name:wE,uri:SE,prefix:TE,types:RE,associations:CE,xml:PE},ME="bpmn.io colors for BPMN",DE="http://bpmn.io/schema/bpmn/biocolor/1.0",NE="bioc",OE=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],IE=[],kE=[],LE={name:ME,uri:DE,prefix:NE,types:OE,enumerations:IE,associations:kE},BE="BPMN in Color",$E="http://www.omg.org/spec/BPMN/non-normative/color/1.0",FE="color",HE=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],jE=[],zE=[],GE={name:BE,uri:$E,prefix:FE,types:HE,enumerations:jE,associations:zE},VE={bpmn:uE,bpmndi:mE,dc:_E,di:AE,bioc:LE,color:GE};function WE(e,t){var n=I({},VE,e);return new go(n,t)}function Ze(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':""}var UE=new Li({name:"bpmnElement",enumerable:!0},{name:"di",configurable:!0});function dt(e,t){return e.$instanceOf(t)}function YE(e){return _e(e.rootElements,function(t){return dt(t,"bpmn:Process")||dt(t,"bpmn:Collaboration")})}function KE(e,t){var n={},i=[];function r(k,B){return function(G){k(G,B)}}function a(k){n[k.id]=k}function o(k){return n[k.id]}function s(k,B){var G=k.gfx;if(G)throw new Error(t("already rendered {element}",{element:Ze(k)}));return e.element(k,B)}function c(k,B){return e.root(k,B)}function u(k,B){try{var G=k.di&&s(k,B);return a(k),G}catch(re){l(re.message,{element:k,error:re}),console.error(t("failed to import {element}",{element:Ze(k)})),console.error(re)}}function l(k,B){e.error(k,B)}function p(k){var B=k.bpmnElement;B?B.di?l(t("multiple DI elements defined for {element}",{element:Ze(B)}),{element:B}):(UE.bind(B,"di"),B.di=k):l(t("no bpmnElement referenced in {element}",{element:Ze(k)}),{element:k})}function h(k){f(k.plane)}function f(k){p(k),C(k.planeElement,d)}function d(k){p(k)}function y(k,B){var G=k.diagrams;if(B&&G.indexOf(B)===-1)throw new Error(t("diagram not part of bpmn:Definitions"));if(!B&&G&&G.length&&(B=G[0]),!B)throw new Error(t("no diagram to display"));h(B);var re=B.plane;if(!re)throw new Error(t("no plane for {element}",{element:Ze(B)}));var oe=re.bpmnElement;if(!oe)if(oe=YE(k),oe)l(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:Ze(re),rootElement:Ze(oe)})),re.bpmnElement=oe,p(re);else throw new Error(t("no process or collaboration to display"));var Re=c(oe,re);if(dt(oe,"bpmn:Process"))D(oe,Re);else if(dt(oe,"bpmn:Collaboration"))O(oe),A(k.rootElements,Re);else throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:Ze(re),rootElement:Ze(oe)}));x()}function x(){for(var k;i.length;)k=i.shift(),k()}function D(k,B){S(k,B),z(k.ioSpecification,B),$(k.artifacts,B),a(k)}function A(k,B){var G=se(k,function(re){return!o(re)&&dt(re,"bpmn:Process")&&re.laneSets});G.forEach(r(D,B))}function w(k,B){u(k,B)}function b(k,B){C(k,r(w,B))}function _(k,B){u(k,B)}function M(k,B){u(k,B)}function N(k,B){u(k,B)}function P(k,B){u(k,B)}function $(k,B){C(k,function(G){dt(G,"bpmn:Association")?i.push(function(){P(G,B)}):P(G,B)})}function z(k,B){!k||(C(k.dataInputs,r(M,B)),C(k.dataOutputs,r(N,B)))}function K(k,B){S(k,B),$(k.artifacts,B)}function W(k,B){var G=u(k,B);dt(k,"bpmn:SubProcess")&&K(k,G||B),dt(k,"bpmn:Activity")&&z(k.ioSpecification,B),i.push(function(){C(k.dataInputAssociations,r(_,B)),C(k.dataOutputAssociations,r(_,B))})}function X(k,B){u(k,B)}function ge(k,B){u(k,B)}function $t(k,B){i.push(function(){var G=u(k,B);k.childLaneSet&&be(k.childLaneSet,G||B),F(k)})}function be(k,B){C(k.lanes,r($t,B))}function le(k,B){C(k,r(be,B))}function S(k,B){v(k.flowElements,B),k.laneSets&&le(k.laneSets,B)}function v(k,B){C(k,function(G){dt(G,"bpmn:SequenceFlow")?i.push(function(){X(G,B)}):dt(G,"bpmn:BoundaryEvent")?i.unshift(function(){W(G,B)}):dt(G,"bpmn:FlowNode")?W(G,B):dt(G,"bpmn:DataObject")||(dt(G,"bpmn:DataStoreReference")||dt(G,"bpmn:DataObjectReference")?ge(G,B):l(t("unrecognized flowElement {element} in context {context}",{element:Ze(G),context:B?Ze(B.businessObject):"null"}),{element:G,context:B}))})}function R(k,B){var G=u(k,B),re=k.processRef;re&&D(re,G||B)}function O(k){C(k.participants,r(R)),$(k.artifacts),i.push(function(){b(k.messageFlows)})}function F(k){C(k.flowNodeRef,function(B){var G=B.get("lanes");G&&G.push(k)})}return{handleDeferred:x,handleDefinitions:y,handleSubProcess:K,registerDi:p}}function qE(e,t,n){var i,r,a,o,s=[];function c(u,l){var p={root:function(f){return i.add(f)},element:function(f,d){return i.add(f,d)},error:function(f,d){s.push({message:f,context:d})}},h=new KE(p,a);h.handleDefinitions(u,l)}return new Promise(function(u,l){try{return i=e.get("bpmnImporter"),r=e.get("eventBus"),a=e.get("translate"),r.fire("import.render.start",{definitions:t}),c(t,n),r.fire("import.render.complete",{error:o,warnings:s}),u({warnings:s})}catch(p){return p.warnings=s,l(p)}})}function ji(e){return function(){if(!window.Promise)throw new Error("Promises is not supported in this environment. Please polyfill Promise.");var t=arguments.length;if(t>=1&&ot(arguments[t-1])){var n=arguments[t-1];console.warn(new Error("Passing callbacks to "+e.name+" is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html"));var i=Array.prototype.slice.call(arguments,0,-1);e.apply(this,i).then(function(r){var a=Object.keys(r)[0];return n(null,r[a])},function(r){return n(r,r.warnings)})}else return e.apply(this,arguments)}}var XE='',Qh=XE;function yo(e){return e.join(";")}var Jh=yo(["color: #404040"]),ZE=yo(["z-index: 1001","position: fixed","top: 0","left: 0","right: 0","bottom: 0"]),QE=yo(["width: 100%","height: 100%","background: rgba(40,40,40,0.2)"]),JE=yo(["position: absolute","left: 50%","top: 40%","transform: translate(-50%)","width: 260px","padding: 10px","background: white","box-shadow: 0 1px 4px rgba(0,0,0,0.3)","font-family: Helvetica, Arial, sans-serif","font-size: 14px","display: flex","line-height: 1.3"]),eb='
'+Qh+'Web-based tooling for BPMN, DMN and CMMN diagrams powered by bpmn.io.
',tr;function tb(){tr||(tr=Ce(eb),xt.bind(tr,".backdrop","click",function(e){document.body.removeChild(tr)})),document.body.appendChild(tr)}function Me(e){e=I({},ib,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),ab(this._container),this._init(this._container,this._moddle,e)}Z(Me,$i);Me.prototype.importXML=ji(function(t,n){var i=this;function r(a){var o=i.get("eventBus").createEvent(a);return Object.defineProperty(o,"context",{enumerable:!0,get:function(){return console.warn(new Error("import.parse.complete is deprecated and will be removed in future library versions")),{warnings:a.warnings,references:a.references,elementsById:a.elementsById}}}),o}return new Promise(function(a,o){t=i._emit("import.parse.start",{xml:t})||t,i._moddle.fromXML(t,"bpmn:Definitions").then(function(s){var c=s.rootElement,u=s.references,l=s.warnings,p=s.elementsById;c=i._emit("import.parse.complete",r({error:null,definitions:c,elementsById:p,references:u,warnings:l}))||c,i.importDefinitions(c,n).then(function(h){var f=[].concat(l,h.warnings||[]);return i._emit("import.done",{error:null,warnings:f}),a({warnings:f})}).catch(function(h){var f=[].concat(l,h.warnings||[]);return i._emit("import.done",{error:h,warnings:f}),o(Ba(h,f))})}).catch(function(s){return i._emit("import.parse.complete",{error:s}),s=nb(s),i._emit("import.done",{error:s,warnings:s.warnings}),o(s)})})});Me.prototype.importDefinitions=ji(function(t,n){var i=this;return new Promise(function(r,a){i._setDefinitions(t),i.open(n).then(function(o){var s=o.warnings;return r({warnings:s})}).catch(function(o){return a(o)})})});Me.prototype.open=ji(function(t){var n=this._definitions,i=t,r=this;return new Promise(function(a,o){if(!n){var s=new Error("no XML imported");return o(Ba(s,[]))}if(typeof t=="string"&&(i=rb(n,t),!i)){var c=new Error("BPMNDiagram <"+t+"> not found");return o(Ba(c,[]))}try{r.clear()}catch(u){return o(Ba(u,[]))}qE(r,n,i).then(function(u){var l=u.warnings;return a({warnings:l})}).catch(function(u){return o(u)})})});Me.prototype.saveXML=ji(function(t){t=t||{};var n=this,i=this._definitions;return new Promise(function(r){if(!i)return r({error:new Error("no definitions loaded")});i=n._emit("saveXML.start",{definitions:i})||i,n._moddle.toXML(i,t).then(function(a){var o=a.xml;return o=n._emit("saveXML.serialized",{xml:o})||o,r({xml:o})})}).catch(function(r){return{error:r}}).then(function(r){n._emit("saveXML.done",r);var a=r.error;return a?Promise.reject(a):r})});Me.prototype.saveSVG=ji(function(t){var n=this;return new Promise(function(i,r){n._emit("saveSVG.start");var a,o;try{var s=n.get("canvas"),c=s.getDefaultLayer(),u=Oe("defs",s._svg),l=_l(c),p=u?""+_l(u)+"":"",h=c.getBBox();a=` - - -'+p+l+""}catch(f){o=f}return n._emit("saveSVG.done",{error:o,svg:a}),o?r(o):i({svg:a})})});Me.prototype._setDefinitions=function(e){this._definitions=e};Me.prototype.getModules=function(){return this._modules};Me.prototype.clear=function(){!this.getDefinitions()||(this.get("elementRegistry").forEach(function(e){var t=e.businessObject;t&&t.di&&delete t.di}),$i.prototype.clear.call(this))};Me.prototype.destroy=function(){$i.prototype.destroy.call(this),rn(this._container)};Me.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)};Me.prototype.off=function(e,t){this.get("eventBus").off(e,t)};Me.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=Oe(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()};Me.prototype.getDefinitions=function(){return this._definitions};Me.prototype.detach=function(){var e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))};Me.prototype._init=function(e,t,n){var i=n.modules||this.getModules(),r=n.additionalModules||[],a=[{bpmnjs:["value",this],moddle:["value",t]}],o=[].concat(a,i,r),s=I($n(n,["additionalModules"]),{canvas:I({},n.canvas,{container:e}),modules:o});$i.call(this,s),n&&n.container&&this.attachTo(n.container)};Me.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)};Me.prototype._createContainer=function(e){var t=Ce('
');return I(t.style,{width:zl(e.width),height:zl(e.height),position:e.position}),t};Me.prototype._createModdle=function(e){var t=I({},this._moddleExtensions,e.moddleExtensions);return new WE(t)};Me.prototype._modules=[];function Ba(e,t){return e.warnings=t,e}function nb(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/,n=t.exec(e.message);return n&&(e.message="unparsable content <"+n[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+n[2]),e}var ib={width:"100%",height:"100%",position:"relative"};function zl(e){return e+(ae(e)?"px":"")}function rb(e,t){return t&&_e(e.diagrams,function(n){return n.id===t})||null}function ab(e){var t=Qh,n=''+t+"",i=Ce(n);e.appendChild(i),te.bind(i,"click",function(r){tb(),r.preventDefault()})}function Or(e){Me.call(this,e),this.on("import.parse.complete",function(t){t.error||this._collectIds(t.definitions,t.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}Z(Or,Me);Or.prototype._createModdle=function(e){var t=Me.prototype._createModdle.call(this,e);return t.ids=new nn([32,36,1]),t};Or.prototype._collectIds=function(e,t){var n=e.$model,i=n.ids,r;i.clear();for(r in t)i.claim(r,t[r])};function m(e,t){var n=Y(e);return n&&typeof n.$instanceOf=="function"&&n.$instanceOf(t)}function ye(e,t){return si(t,function(n){return m(e,n)})}function Y(e){return e&&e.businessObject||e}function Se(e){return m(e,"bpmn:CallActivity")?!1:m(e,"bpmn:SubProcess")?Y(e).di&&!!Y(e).di.isExpanded:m(e,"bpmn:Participant")?!!Y(e).processRef:!0}function ob(e){return e&&Y(e).isInterrupting!==!1}function _t(e){return e&&!!Y(e).triggeredByEvent}function Eo(e,t){var n=Y(e),i=!1;return n.eventDefinitions&&C(n.eventDefinitions,function(r){m(r,t)&&(i=!0)}),i}function sb(e){return Eo(e,"bpmn:ErrorEventDefinition")}function cb(e){return Eo(e,"bpmn:EscalationEventDefinition")}function ub(e){return Eo(e,"bpmn:CompensateEventDefinition")}function ed(e){if(m(e,"bpmn:FlowElement")||m(e,"bpmn:Participant")||m(e,"bpmn:Lane")||m(e,"bpmn:SequenceFlow")||m(e,"bpmn:MessageFlow")||m(e,"bpmn:DataInput")||m(e,"bpmn:DataOutput"))return"name";if(m(e,"bpmn:TextAnnotation"))return"text";if(m(e,"bpmn:Group"))return"categoryValueRef"}function lb(e){var t=e.categoryValueRef;return t&&t.value||""}function Wt(e){var t=e.businessObject,n=ed(t);if(n)return n==="categoryValueRef"?lb(t):t[n]||""}function pb(e,t,n){var i=e.businessObject,r=ed(i);return r&&(r==="categoryValueRef"?i.categoryValueRef.value=t:i[r]=t),e}function Xt(e,t,n){function i(r,a){return Oi(a,function(o,s){return r[s]==o})}return si(e.eventDefinitions,function(r){return r.$type===t&&i(e,n)})}function fb(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function hb(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function Pi(e){return e.businessObject.di}function at(e){return e.businessObject}function ve(e,t){var n=Pi(e);return n.get("color:background-color")||n.get("bioc:fill")||t||"white"}function V(e,t){var n=Pi(e);return n.get("color:border-color")||n.get("bioc:stroke")||t||"black"}function nr(e,t,n){var i=Pi(e),r=i.get("label");return r&&r.get("color:color")||t||V(e,n)}function db(e){var t=e.x+e.width/2,n=e.y+e.height/2,i=e.width/2,r=[["M",t,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return ki(r)}function vb(e,t){var n=e.x,i=e.y,r=e.width,a=e.height,o=[["M",n+t,i],["l",r-t*2,0],["a",t,t,0,0,1,t,t],["l",0,a-t*2],["a",t,t,0,0,1,-t,t],["l",t*2-r,0],["a",t,t,0,0,1,-t,-t],["l",0,t*2-a],["a",t,t,0,0,1,t,-t],["z"]];return ki(o)}function mb(e){var t=e.width,n=e.height,i=e.x,r=e.y,a=t/2,o=n/2,s=[["M",i+a,r],["l",a,o],["l",-a,o],["l",-a,-o],["z"]];return ki(s)}function gb(e){var t=e.x,n=e.y,i=e.width,r=e.height,a=[["M",t,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return ki(a)}var yb=new nn,$a=10,ms=3,bi=.95,Eb=.35,bb=10;function li(e,t,n,i,r,a,o){yn.call(this,t,o);var s=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,u=e&&e.defaultLabelColor,l=yb.next(),p={},h=n.computeStyle;function f(S,v){var R=I({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},v.attrs),O=v.ref||{x:0,y:0},F=v.scale||1;R.strokeDasharray==="none"&&(R.strokeDasharray=[1e4,1]);var k=Q("marker");j(v.element,R),ne(k,v.element),j(k,{id:S,viewBox:"0 0 20 20",refX:O.x,refY:O.y,markerWidth:20*F,markerHeight:20*F,orient:"auto"});var B=Oe("defs",r._svg);B||(B=Q("defs"),ne(r._svg,B)),ne(B,k),p[S]=k}function d(S){return S.replace(/[^0-9a-zA-z]+/g,"_")}function y(S,v,R){var O=S+"-"+d(v)+"-"+d(R)+"-"+l;return p[O]||x(O,S,v,R),"url(#"+O+")"}function x(S,v,R,O){if(v==="sequenceflow-end"){var F=Q("path");j(F,{d:"M 1 5 L 11 10 L 1 15 Z"}),f(S,{element:F,ref:{x:11,y:10},scale:.5,attrs:{fill:O,stroke:O}})}if(v==="messageflow-start"){var k=Q("circle");j(k,{cx:6,cy:6,r:3.5}),f(S,{element:k,attrs:{fill:R,stroke:O},ref:{x:6,y:6}})}if(v==="messageflow-end"){var B=Q("path");j(B,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),f(S,{element:B,attrs:{fill:R,stroke:O,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if(v==="association-start"){var G=Q("path");j(G,{d:"M 11 5 L 1 10 L 11 15"}),f(S,{element:G,attrs:{fill:"none",stroke:O,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if(v==="association-end"){var re=Q("path");j(re,{d:"M 1 5 L 11 10 L 1 15"}),f(S,{element:re,attrs:{fill:"none",stroke:O,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if(v==="conditional-flow-marker"){var oe=Q("path");j(oe,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),f(S,{element:oe,attrs:{fill:R,stroke:O},ref:{x:-1,y:10},scale:.5})}if(v==="conditional-default-flow-marker"){var Re=Q("path");j(Re,{d:"M 6 4 L 10 16"}),f(S,{element:Re,attrs:{stroke:O},ref:{x:0,y:10},scale:.5})}}function D(S,v,R,O,F){Je(O)&&(F=O,O=0),O=O||0,F=h(F,{stroke:"black",strokeWidth:2,fill:"white"}),F.fill==="none"&&delete F.fillOpacity;var k=v/2,B=R/2,G=Q("circle");return j(G,{cx:k,cy:B,r:Math.round((v+R)/4-O)}),j(G,F),ne(S,G),G}function A(S,v,R,O,F,k){Je(F)&&(k=F,F=0),F=F||0,k=h(k,{stroke:"black",strokeWidth:2,fill:"white"});var B=Q("rect");return j(B,{x:F,y:F,width:v-F*2,height:R-F*2,rx:O,ry:O}),j(B,k),ne(S,B),B}function w(S,v,R,O){var F=v/2,k=R/2,B=[{x:F,y:0},{x:v,y:k},{x:F,y:R},{x:0,y:k}],G=B.map(function(oe){return oe.x+","+oe.y}).join(" ");O=h(O,{stroke:"black",strokeWidth:2,fill:"white"});var re=Q("polygon");return j(re,{points:G}),j(re,O),ne(S,re),re}function b(S,v,R){R=h(R,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"});var O=Cc(v,R);return ne(S,O),O}function _(S,v,R){R=h(R,["no-fill"],{strokeWidth:2,stroke:"black"});var O=Q("path");return j(O,{d:v}),j(O,R),ne(S,O),O}function M(S,v,R,O){return _(v,R,I({"data-marker":S},O))}function N(S){return function(v,R){return $t[S](v,R)}}function P(S){return $t[S]}function $(S,v){var R=at(S),O=fb(R);return R.eventDefinitions&&R.eventDefinitions.length>1?R.parallelMultiple?P("bpmn:ParallelMultipleEventDefinition")(v,S,O):P("bpmn:MultipleEventDefinition")(v,S,O):Xt(R,"bpmn:MessageEventDefinition")?P("bpmn:MessageEventDefinition")(v,S,O):Xt(R,"bpmn:TimerEventDefinition")?P("bpmn:TimerEventDefinition")(v,S,O):Xt(R,"bpmn:ConditionalEventDefinition")?P("bpmn:ConditionalEventDefinition")(v,S):Xt(R,"bpmn:SignalEventDefinition")?P("bpmn:SignalEventDefinition")(v,S,O):Xt(R,"bpmn:EscalationEventDefinition")?P("bpmn:EscalationEventDefinition")(v,S,O):Xt(R,"bpmn:LinkEventDefinition")?P("bpmn:LinkEventDefinition")(v,S,O):Xt(R,"bpmn:ErrorEventDefinition")?P("bpmn:ErrorEventDefinition")(v,S,O):Xt(R,"bpmn:CancelEventDefinition")?P("bpmn:CancelEventDefinition")(v,S,O):Xt(R,"bpmn:CompensateEventDefinition")?P("bpmn:CompensateEventDefinition")(v,S,O):Xt(R,"bpmn:TerminateEventDefinition")?P("bpmn:TerminateEventDefinition")(v,S,O):null}function z(S,v,R){R=I({size:{width:100}},R);var O=a.createText(v||"",R);return fe(O).add("djs-label"),ne(S,O),O}function K(S,v,R){var O=at(v);return z(S,O.name,{box:v,align:R,padding:5,style:{fill:nr(v,u,c)}})}function W(S,v){var R={width:90,height:30,x:v.width/2+v.x,y:v.height/2+v.y};return z(S,Wt(v),{box:R,fitBox:!0,style:I({},a.getExternalStyle(),{fill:nr(v,u,c)})})}function X(S,v,R){var O=z(S,v,{box:{height:30,width:R.height},align:"center-middle",style:{fill:nr(R,u,c)}}),F=-1*R.height;Ys(O,0,-F,270)}function ge(S){for(var v=S.waypoints,R="m "+v[0].x+","+v[0].y,O=1;O1)for(;i=n.shift();)if(i.length+aA?w.width:A},0),y=a.top;r.vertical==="middle"&&(y+=(n.height-f)/2),y-=(s||u[0].height)/4;var x=Q("text");j(x,i),C(u,function(A){var w;switch(y+=s||A.height,r.horizontal){case"left":w=a.left;break;case"right":w=(o?d:l)-a.right-A.width;break;default:w=Math.max(((o?d:l)-A.width)/2+a.left,0)}var b=Q("tspan");j(b,{x:w,y}),b.textContent=A.text,ne(x,b)}),Be(p);var D={width:d,height:f};return{dimensions:D,element:x}};function Db(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var Nb=12,Ob=1.2,Ib=30;function td(e){var t=I({fontFamily:"Arial, sans-serif",fontSize:Nb,fontWeight:"normal",lineHeight:Ob},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=I({},t,{fontSize:n},e&&e.externalStyle||{}),r=new bo({style:t});this.getExternalLabelBounds=function(a,o){var s=r.getDimensions(o,{box:{width:90,height:30,x:a.width/2+a.x,y:a.height/2+a.y},style:i});return{x:Math.round(a.x+a.width/2-s.width/2),y:Math.round(a.y),width:Math.ceil(s.width),height:Math.ceil(s.height)}},this.getTextAnnotationBounds=function(a,o){var s=r.getDimensions(o,{box:a,style:t,align:"left-top",padding:5});return{x:a.x,y:a.y,width:a.width,height:Math.max(Ib,Math.round(s.height))}},this.createText=function(a,o){return r.createText(a,o||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}td.$inject=["config.textRenderer"];function kb(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(t){return this.pathMap[t].d},this.getScaledPath=function(t,n){var i=this.pathMap[t],r,a;n.abspos?(r=n.abspos.x,a=n.abspos.y):(r=n.containerWidth*n.position.mx,a=n.containerHeight*n.position.my);var o={};if(n.position){for(var s=n.containerHeight/i.height*n.yScaleFactor,c=n.containerWidth/i.width*n.xScaleFactor,u=0;u=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function Yb(e){return m(e,"bpmn:Group")}var Kb={__depends__:[xo],bpmnImporter:["type",bn]},qb={__depends__:[Hb,Kb]};function Wl(e){!e||typeof e.stopPropagation!="function"||e.stopPropagation()}function zi(e){return e.originalEvent||e.srcEvent}function gs(e,t){Wl(e),Wl(zi(e))}function Bn(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}function Xb(){return/mac/i.test(navigator.platform)}function id(e,t){return(zi(e)||e).button===t}function jn(e){return id(e,0)}function Zb(e){return id(e,1)}function Mi(e){var t=zi(e)||e;return jn(e)?Xb()?t.metaKey:t.ctrlKey:!1}function rd(e){var t=zi(e)||e;return jn(e)&&t.shiftKey}function Qb(e){return!0}function da(e){return jn(e)||Zb(e)}var Ul=500;function ad(e,t,n){var i=this;function r(N,P,$){if(!s(N,P)){var z,K,W;$?K=t.getGraphics($):(z=P.delegateTarget||P.target,z&&(K=z,$=t.get(K))),!(!K||!$)&&(W=e.fire(N,{element:$,gfx:K,originalEvent:P}),W===!1&&(P.stopPropagation(),P.preventDefault()))}}var a={};function o(N){return a[N]}function s(N,P){var $=u[N]||jn;return!$(P)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},u={"element.contextmenu":Qb,"element.mousedown":da,"element.mouseup":da,"element.click":da,"element.dblclick":da};function l(N,P,$){var z=c[N];if(!z)throw new Error("unmapped DOM event name <"+N+">");return r(z,P,$)}var p="svg, .djs-element";function h(N,P,$,z){var K=a[$]=function(W){r($,W)};z&&(u[$]=z),K.$delegate=xt.bind(N,p,P,K)}function f(N,P,$){var z=o($);!z||xt.unbind(N,P,z.$delegate)}function d(N){C(c,function(P,$){h(N,$,P)})}function y(N){C(c,function(P,$){f(N,$,P)})}e.on("canvas.destroy",function(N){y(N.svg)}),e.on("canvas.init",function(N){d(N.svg)}),e.on(["shape.added","connection.added"],function(N){var P=N.element,$=N.gfx;e.fire("interactionEvents.createHit",{element:P,gfx:$})}),e.on(["shape.changed","connection.changed"],Ul,function(N){var P=N.element,$=N.gfx;e.fire("interactionEvents.updateHit",{element:P,gfx:$})}),e.on("interactionEvents.createHit",Ul,function(N){var P=N.element,$=N.gfx;i.createDefaultHit(P,$)}),e.on("interactionEvents.updateHit",function(N){var P=N.element,$=N.gfx;i.updateDefaultHit(P,$)});var x=b("djs-hit djs-hit-stroke"),D=b("djs-hit djs-hit-click-stroke"),A=b("djs-hit djs-hit-all"),w={all:A,"click-stroke":D,stroke:x};function b(N,P){return P=I({stroke:"white",strokeWidth:15},P||{}),n.cls(N,["no-fill","no-border"],P)}function _(N,P){var $=w[P];if(!$)throw new Error("invalid hit type <"+P+">");return j(N,$),N}function M(N,P){ne(N,P)}this.removeHits=function(N){var P=Bs(".djs-hit",N);C(P,Be)},this.createDefaultHit=function(N,P){var $=N.waypoints,z=N.isFrame,K;return $?this.createWaypointsHit(P,$):(K=z?"stroke":"all",this.createBoxHit(P,K,{width:N.width,height:N.height}))},this.createWaypointsHit=function(N,P){var $=Cc(P);return _($,"stroke"),M(N,$),$},this.createBoxHit=function(N,P,$){$=I({x:0,y:0},$);var z=Q("rect");return _(z,P),j(z,$),M(N,z),z},this.updateDefaultHit=function(N,P){var $=Oe(".djs-hit",P);if(!!$)return N.waypoints?Ig($,N.waypoints):j($,{width:N.width,height:N.height}),$},this.fire=r,this.triggerMouseEvent=l,this.mouseHandler=o,this.registerEvent=h,this.unregisterEvent=f}ad.$inject=["eventBus","elementRegistry","styles"];var Ir={__init__:["interactionEvents"],interactionEvents:["type",ad]},Jb=500;function So(e,t,n){this.offset=6;var i=t.cls("djs-outline",["no-fill"]),r=this;function a(o,s){var c=Q("rect");return j(c,I({x:10,y:10,width:100,height:100},i)),ne(o,c),c}e.on(["shape.added","shape.changed"],Jb,function(o){var s=o.element,c=o.gfx,u=Oe(".djs-outline",c);u||(u=a(c)),r.updateShapeOutline(u,s)}),e.on(["connection.added","connection.changed"],function(o){var s=o.element,c=o.gfx,u=Oe(".djs-outline",c);u||(u=a(c)),r.updateConnectionOutline(u,s)})}So.prototype.updateShapeOutline=function(e,t){j(e,{x:-this.offset,y:-this.offset,width:t.width+this.offset*2,height:t.height+this.offset*2})};So.prototype.updateConnectionOutline=function(e,t){var n=et(t);j(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+this.offset*2,height:n.height+this.offset*2})};So.$inject=["eventBus","styles","elementRegistry"];var od={__init__:["outline"],outline:["type",So]};function Gi(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],function(i){var r=i.element;n.deselect(r)}),e.on(["diagram.clear","plane.set"],function(i){n.select(null)})}Gi.$inject=["eventBus","canvas"];Gi.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(n!==-1){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}};Gi.prototype.get=function(){return this._selectedElements};Gi.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1};Gi.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();he(e)||(e=e?[e]:[]);var r=this._canvas;e=e.filter(function(a){var o=r.findPlane(a);return o===r.getActivePlane()}),t?C(e,function(a){n.indexOf(a)===-1&&n.push(a)}):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var Yl="hover",Kl="selected";function sd(e,t,n,i){this._multiSelectionBox=null;function r(o,s){t.addMarker(o,s)}function a(o,s){t.removeMarker(o,s)}e.on("element.hover",function(o){r(o.element,Yl)}),e.on("element.out",function(o){a(o.element,Yl)}),e.on("selection.changed",function(o){function s(p){a(p,Kl)}function c(p){r(p,Kl)}var u=o.oldSelection,l=o.newSelection;C(u,function(p){l.indexOf(p)===-1&&s(p)}),C(l,function(p){u.indexOf(p)===-1&&c(p)})})}sd.$inject=["eventBus","canvas","selection","styles"];function cd(e,t,n,i){e.on("create.end",500,function(r){var a=r.context,o=a.canExecute,s=a.elements,c=a.hints||{},u=c.autoSelect;if(o){if(u===!1)return;he(u)?t.select(u):t.select(s.filter(ex))}}),e.on("connect.end",500,function(r){var a=r.context,o=a.canExecute,s=a.hover;o&&s&&t.select(s)}),e.on("shape.move.end",500,function(r){var a=r.previousSelection||[],o=i.get(r.context.shape.id),s=_e(a,function(c){return o.id===c.id});s||t.select(o)}),e.on("element.click",function(r){if(!!jn(r)){var a=r.element;a===n.getRootElement()&&(a=null);var o=t.isSelected(a),s=t.get().length>1,c=Mi(r)||rd(r);if(o&&s)return c?t.deselect(a):t.select(a);o?t.deselect(a):t.select(a,c)}})}cd.$inject=["eventBus","selection","canvas","elementRegistry"];function ex(e){return!e.hidden}var an={__init__:["selectionVisuals","selectionBehavior"],__depends__:[Ir,od],selection:["type",Gi],selectionVisuals:["type",sd],selectionBehavior:["type",cd]};function jc(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}jc.prototype.next=function(){return this._prefix+ ++this._counter};var tx=new jc("ov"),nx=500;function Ke(e,t,n,i){this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=tx,this._overlayDefaults=I({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=ix(n.getContainer()),this._init()}Ke.$inject=["config.overlays","eventBus","canvas","elementRegistry"];Ke.prototype.get=function(e){if(Mt(e)&&(e={id:e}),Mt(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?se(t.overlays,zt({type:e.type})):t.overlays.slice():[]}else return e.type?se(this._overlays,zt({type:e.type})):e.id?this._overlays[e.id]:null};Ke.prototype.add=function(e,t,n){if(Je(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=I({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i};Ke.prototype.remove=function(e){var t=this.get(e)||[];he(t)||(t=[t]);var n=this;C(t,function(i){var r=n._getOverlayContainer(i.element,!0);if(i&&(rn(i.html),rn(i.htmlContainer),delete i.htmlContainer,delete i.element,delete n._overlays[i.id]),r){var a=r.overlays.indexOf(i);a!==-1&&r.overlays.splice(a,1)}})};Ke.prototype.show=function(){kr(this._overlayRoot)};Ke.prototype.hide=function(){kr(this._overlayRoot,!1)};Ke.prototype.clear=function(){this._overlays={},this._overlayContainers=[],uo(this._overlayRoot)};Ke.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var a=et(t);i=a.x,r=a.y}ud(n,i,r),St(e.html,"data-container-id",t.id)};Ke.prototype._updateOverlay=function(e){var t=e.position,n=e.htmlContainer,i=e.element,r=t.left,a=t.top;if(t.right!==void 0){var o;i.waypoints?o=et(i).width:o=i.width,r=t.right*-1+o}if(t.bottom!==void 0){var s;i.waypoints?s=et(i).height:s=i.height,a=t.bottom*-1+s}ud(n,r||0,a||0)};Ke.prototype._createOverlayContainer=function(e){var t=Ce('
');this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n};Ke.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";ld(this._overlayRoot,n)};Ke.prototype._getOverlayContainer=function(e,t){var n=_e(this._overlayContainers,function(i){return i.element===e});return!n&&!t?this._createOverlayContainer(e):n};Ke.prototype._addOverlay=function(e){var t=e.id,n=e.element,i=e.html,r,a;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Mt(i)&&(i=Ce(i)),a=this._getOverlayContainer(n),r=Ce('
'),r.appendChild(i),e.type&&ze(r).add("djs-overlay-"+e.type);var o=this._canvas.findPlane(n),s=this._canvas.getActivePlane();e.plane=o,o!==s&&kr(r,!1),e.htmlContainer=r,a.overlays.push(e),a.html.appendChild(r),this._overlays[t]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ke.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=e.plane,r=n&&n.minZoom,a=n&&n.maxZoom,o=e.htmlContainer,s=this._canvas.getActivePlane(),c=!0;(i!==s||n&&(en(r)&&r>t.scale||en(a)&&ar&&(o=(1/t.scale||1)*r)),en(o)&&(s="scale("+o+","+o+")"),ld(a,s)};Ke.prototype._updateOverlaysVisibilty=function(e){var t=this;C(this._overlays,function(n){t._updateOverlayVisibilty(n,e)})};Ke.prototype._init=function(){var e=this._eventBus,t=this;function n(i){t._updateRoot(i),t._updateOverlaysVisibilty(i),t.show()}e.on("canvas.viewbox.changing",function(i){t.hide()}),e.on("canvas.viewbox.changed",function(i){n(i.viewbox)}),e.on(["shape.remove","connection.remove"],function(i){var r=i.element,a=t.get({element:r});C(a,function(c){t.remove(c.id)});var o=t._getOverlayContainer(r);if(o){rn(o.html);var s=t._overlayContainers.indexOf(o);s!==-1&&t._overlayContainers.splice(s,1)}}),e.on("element.changed",nx,function(i){var r=i.element,a=t._getOverlayContainer(r,!0);a&&(C(a.overlays,function(o){t._updateOverlay(o)}),t._updateOverlayContainer(a))}),e.on("element.marker.update",function(i){var r=t._getOverlayContainer(i.element,!0);r&&ze(r.html)[i.add?"add":"remove"](i.marker)}),e.on("plane.set",function(i){C(t._overlays,function(r){kr(r.htmlContainer,r.plane===i.plane)})}),e.on("diagram.clear",this.clear,this)};function ix(e){var t=Ce('
');return e.insertBefore(t,e.firstChild),t}function ud(e,t,n){I(e.style,{left:t+"px",top:n+"px"})}function kr(e,t){e.style.display=t===!1?"none":""}function ld(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(n){e.style[n+"transform"]=t})}var zc={__init__:["overlays"],overlays:["type",Ke]};function zn(e){Me.call(this,e)}Z(zn,Me);zn.prototype._modules=[qb,xo,an,zc];zn.prototype._moddleExtensions={};function rx(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function bt(e){return e.altKey?!1:e.ctrlKey||e.metaKey}function Ht(e,t){return e=he(e)?e:[e],e.indexOf(t.key)!==-1||e.indexOf(t.keyCode)!==-1}function Xs(e){return e.shiftKey}var To="keyboard.keydown",ax="keyboard.keyup",ql="input-handle-modified-keys",ox=1e3;function qe(e,t){var n=this;this._config=e||{},this._eventBus=t,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),t.on("diagram.destroy",function(){n._fire("destroy"),n.unbind()}),t.on("diagram.init",function(){n._fire("init")}),t.on("attach",function(){e&&e.bindTo&&n.bind(e.bindTo)}),t.on("detach",function(){n.unbind()})}qe.$inject=["config.keyboard","eventBus"];qe.prototype._keydownHandler=function(e){this._keyHandler(e,To)};qe.prototype._keyupHandler=function(e){this._keyHandler(e,ax)};qe.prototype._keyHandler=function(e,t){var n;if(!this._isEventIgnored(e)){var i={keyEvent:e};n=this._eventBus.fire(t||To,i),n&&e.preventDefault()}};qe.prototype._isEventIgnored=function(e){return sx(e.target)&&this._isModifiedKeyIgnored(e)};qe.prototype._isModifiedKeyIgnored=function(e){if(!bt(e))return!0;var t=this._getAllowedModifiers(e.target);return!t.includes(e.key)};qe.prototype._getAllowedModifiers=function(e){var t=ci(e,"["+ql+"]",!0);return!t||this._node&&!this._node.contains(t)?[]:t.getAttribute(ql).split(",")};qe.prototype.bind=function(e){this.unbind(),this._node=e,te.bind(e,"keydown",this._keydownHandler,!0),te.bind(e,"keyup",this._keyupHandler,!0),this._fire("bind")};qe.prototype.getBinding=function(){return this._node};qe.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),te.unbind(e,"keydown",this._keydownHandler,!0),te.unbind(e,"keyup",this._keyupHandler,!0)),this._node=null};qe.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})};qe.prototype.addListener=function(e,t,n){ot(e)&&(n=t,t=e,e=ox),this._eventBus.on(n||To,e,t)};qe.prototype.removeListener=function(e,t){this._eventBus.off(t||To,e)};qe.prototype.hasModifier=rx;qe.prototype.isCmd=bt;qe.prototype.isShift=Xs;qe.prototype.isKey=Ht;function sx(e){return e&&(Ua(e,"input, textarea")||e.contentEditable==="true")}var cx=500,ux=67,lx=86,px=89,fx=90,hx=["c","C",ux],dx=["v","V",lx],vx=["y","Y",px],Xl=["z","Z",fx];function Vi(e,t){var n=this;e.on("editorActions.init",cx,function(i){var r=i.editorActions;n.registerBindings(t,r)})}Vi.$inject=["eventBus","keyboard"];Vi.prototype.registerBindings=function(e,t){function n(i,r){t.isRegistered(i)&&e.addListener(r)}n("undo",function(i){var r=i.keyEvent;if(bt(r)&&!Xs(r)&&Ht(Xl,r))return t.trigger("undo"),!0}),n("redo",function(i){var r=i.keyEvent;if(bt(r)&&(Ht(vx,r)||Ht(Xl,r)&&Xs(r)))return t.trigger("redo"),!0}),n("copy",function(i){var r=i.keyEvent;if(bt(r)&&Ht(hx,r))return t.trigger("copy"),!0}),n("paste",function(i){var r=i.keyEvent;if(bt(r)&&Ht(dx,r))return t.trigger("paste"),!0}),n("stepZoom",function(i){var r=i.keyEvent;if(Ht(["+","Add","="],r)&&bt(r))return t.trigger("stepZoom",{value:1}),!0}),n("stepZoom",function(i){var r=i.keyEvent;if(Ht(["-","Subtract"],r)&&bt(r))return t.trigger("stepZoom",{value:-1}),!0}),n("zoom",function(i){var r=i.keyEvent;if(Ht("0",r)&&bt(r))return t.trigger("zoom",{value:1}),!0}),n("removeSelection",function(i){var r=i.keyEvent;if(Ht(["Backspace","Delete","Del"],r))return t.trigger("removeSelection"),!0})};var Gc={__init__:["keyboard","keyboardBindings"],keyboard:["type",qe],keyboardBindings:["type",Vi]},mx={moveSpeed:50,moveSpeedAccelerated:200};function pd(e,t,n){var i=this;this._config=I({},mx,e||{}),t.addListener(r);function r(a){var o=a.keyEvent,s=i._config;if(!!t.isCmd(o)&&t.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],o)){var c=t.isShift(o)?s.moveSpeedAccelerated:s.moveSpeed,u;switch(o.key){case"ArrowLeft":case"Left":u="left";break;case"ArrowUp":case"Up":u="up";break;case"ArrowRight":case"Right":u="right";break;case"ArrowDown":case"Down":u="down";break}return i.moveCanvas({speed:c,direction:u}),!0}}this.moveCanvas=function(a){var o=0,s=0,c=a.speed,u=c/Math.min(Math.sqrt(n.viewbox().scale),1);switch(a.direction){case"left":o=u;break;case"up":s=u;break;case"right":o=-u;break;case"down":s=-u;break}n.scroll({dx:o,dy:s})}}pd.$inject=["config.keyboardMove","keyboard","canvas"];var fd={__depends__:[Gc],__init__:["keyboardMove"],keyboardMove:["type",pd]},gx=/^djs-cursor-.*$/;function Ro(e){var t=ze(document.body);t.removeMatching(gx),e&&t.add("djs-cursor-"+e)}function hd(){Ro(null)}var yx=5e3;function dd(e,t){t=t||"element.click";function n(){return!1}return e.once(t,yx,n),function(){e.off(t,n)}}function dr(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function tn(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Ex=15;function vd(e,t){var n;e.on("element.mousedown",500,function(o){return a(o.originalEvent)});function i(o){var s=n.start,c=n.button,u=Bn(o),l=tn(u,s);if(!n.dragging&&bx(l)>Ex&&(n.dragging=!0,c===0&&dd(e),Ro("grab")),n.dragging){var p=n.last||n.start;l=tn(u,p),t.scroll({dx:l.x,dy:l.y}),n.last=u}o.preventDefault()}function r(o){te.unbind(document,"mousemove",i),te.unbind(document,"mouseup",r),n=null,hd()}function a(o){if(!ci(o.target,".djs-draggable")){var s=o.button;if(!(s>=2||o.ctrlKey||o.shiftKey||o.altKey))return n={button:s,start:Bn(o)},te.bind(document,"mousemove",i),te.bind(document,"mouseup",r),!0}}this.isActive=function(){return!!n}}vd.$inject=["eventBus","canvas"];function bx(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}var md={__init__:["moveCanvas"],moveCanvas:["type",vd]};function Zs(e){return Math.log(e)/Math.log(10)}function gd(e,t){var n=Zs(e.min),i=Zs(e.max),r=Math.abs(n)+Math.abs(i);return r/t}function xx(e,t){return Math.max(e.min,Math.min(e.max,t))}var _x=Math.sign||function(e){return e>=0?1:-1},Vc={min:.2,max:4},yd=10,wx=.1,Sx=.75;function on(e,t,n){e=e||{},this._enabled=!1,this._canvas=n,this._container=n._container,this._handleWheel=ft(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||Sx;var i=this;t.on("canvas.init",function(r){i._init(e.enabled!==!1)})}on.$inject=["config.zoomScroll","eventBus","canvas"];on.prototype.scroll=function(t){this._canvas.scroll(t)};on.prototype.reset=function(){this._canvas.zoom("fit-viewport")};on.prototype.zoom=function(t,n){var i=gd(Vc,yd*2);this._totalDelta+=t,Math.abs(this._totalDelta)>wx&&(this._zoom(t,n,i),this._totalDelta=0)};on.prototype._handleWheel=function(t){if(!ci(t.target,".djs-scrollable",!0)){var n=this._container;t.preventDefault();var i=t.ctrlKey,r=t.shiftKey,a=-1*this._scale,o;if(i?a*=t.deltaMode===0?.02:.32:a*=t.deltaMode===0?1:16,i){var s=n.getBoundingClientRect(),c={x:t.clientX-s.left,y:t.clientY-s.top};o=Math.sqrt(Math.pow(t.deltaY,2)+Math.pow(t.deltaX,2))*_x(t.deltaY)*a,this.zoom(o,c)}else r?o={dx:a*t.deltaY,dy:0}:o={dx:a*t.deltaX,dy:a*t.deltaY},this.scroll(o)}};on.prototype.stepZoom=function(t,n){var i=gd(Vc,yd);this._zoom(t,n,i)};on.prototype._zoom=function(e,t,n){var i=this._canvas,r=e>0?1:-1,a=Zs(i.zoom()),o=Math.round(a/n)*n;o+=n*r;var s=Math.pow(10,o);i.zoom(xx(Vc,s),t)};on.prototype.toggle=function(t){var n=this._container,i=this._handleWheel,r=this._enabled;return typeof t=="undefined"&&(t=!r),r!==t&&te[t?"bind":"unbind"](n,"wheel",i,!1),this._enabled=t,t};on.prototype._init=function(e){this.toggle(e)};var Ed={__init__:["zoomScroll"],zoomScroll:["type",on]};function _r(e){zn.call(this,e)}Z(_r,zn);_r.prototype._navigationModules=[fd,md,Ed];_r.prototype._modules=[].concat(zn.prototype._modules,_r.prototype._navigationModules);var bd={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 -* http://hammerjs.github.io/ -* -* Copyright (c) 2016 Jorik Tangelder; -* Licensed under the MIT license */(function(e){(function(t,n,i,r){var a=["","webkit","Moz","MS","ms","o"],o=n.createElement("div"),s="function",c=Math.round,u=Math.abs,l=Date.now;function p(g,E,T){return setTimeout(w(g,T),E)}function h(g,E,T){return Array.isArray(g)?(f(g,T[E],T),!0):!1}function f(g,E,T){var L;if(!!g)if(g.forEach)g.forEach(E,T);else if(g.length!==r)for(L=0;L\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",me=t.console&&(t.console.warn||t.console.log);return me&&me.call(t.console,L,q),g.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(E){if(E===r||E===null)throw new TypeError("Cannot convert undefined or null to object");for(var T=Object(E),L=1;L-1}function z(g){return g.trim().split(/\s+/g)}function K(g,E,T){if(g.indexOf&&!T)return g.indexOf(E);for(var L=0;Llt[E]}):L=L.sort()),L}function ge(g,E){for(var T,L,H=E[0].toUpperCase()+E.slice(1),q=0;q1&&!T.firstMultiple?T.firstMultiple=el(E):H===1&&(T.firstMultiple=!1);var q=T.firstInput,me=T.firstMultiple,Ue=me?me.center:q.center,Xe=E.center=tl(L);E.timeStamp=l(),E.deltaTime=E.timeStamp-q.timeStamp,E.angle=is(Ue,Xe),E.distance=na(Ue,Xe),xe(T,E),E.offsetDirection=il(E.deltaX,E.deltaY);var lt=nl(E.deltaTime,E.deltaX,E.deltaY);E.overallVelocityX=lt.x,E.overallVelocityY=lt.y,E.overallVelocity=u(lt.x)>u(lt.y)?lt.x:lt.y,E.scale=me?Tm(me.pointers,L):1,E.rotation=me?Sm(me.pointers,L):0,E.maxPointers=T.prevInput?E.pointers.length>T.prevInput.maxPointers?E.pointers.length:T.prevInput.maxPointers:E.pointers.length,wm(T,E);var qt=g.element;P(E.srcEvent.target,qt)&&(qt=E.srcEvent.target),E.target=qt}function xe(g,E){var T=E.center,L=g.offsetDelta||{},H=g.prevDelta||{},q=g.prevInput||{};(E.eventType===oe||q.eventType===pe)&&(H=g.prevDelta={x:q.deltaX||0,y:q.deltaY||0},L=g.offsetDelta={x:T.x,y:T.y}),E.deltaX=H.x+(T.x-L.x),E.deltaY=H.y+(T.y-L.y)}function wm(g,E){var T=g.lastInterval||E,L=E.timeStamp-T.timeStamp,H,q,me,Ue;if(E.eventType!=de&&(L>re||T.velocity===r)){var Xe=E.deltaX-T.deltaX,lt=E.deltaY-T.deltaY,qt=nl(L,Xe,lt);q=qt.x,me=qt.y,H=u(qt.x)>u(qt.y)?qt.x:qt.y,Ue=il(Xe,lt),g.lastInterval=E}else H=T.velocity,q=T.velocityX,me=T.velocityY,Ue=T.direction;E.velocity=H,E.velocityX=q,E.velocityY=me,E.direction=Ue}function el(g){for(var E=[],T=0;T=u(E)?g<0?We:we:E<0?Pe:ct}function na(g,E,T){T||(T=yt);var L=E[T[0]]-g[T[0]],H=E[T[1]]-g[T[1]];return Math.sqrt(L*L+H*H)}function is(g,E,T){T||(T=yt);var L=E[T[0]]-g[T[0]],H=E[T[1]]-g[T[1]];return Math.atan2(H,L)*180/Math.PI}function Sm(g,E){return is(E[1],E[0],Ee)+is(g[1],g[0],Ee)}function Tm(g,E){return na(E[0],E[1],Ee)/na(g[0],g[1],Ee)}var Rm={mousedown:oe,mousemove:Re,mouseup:pe},Cm="mousedown",Pm="mousemove mouseup";function ia(){this.evEl=Cm,this.evWin=Pm,this.pressed=!1,Ge.apply(this,arguments)}A(ia,Ge,{handler:function(E){var T=Rm[E.type];T&oe&&E.button===0&&(this.pressed=!0),T&Re&&E.which!==1&&(T=pe),this.pressed&&(T&pe&&(this.pressed=!1),this.callback(this.manager,T,{pointers:[E],changedPointers:[E],pointerType:B,srcEvent:E}))}});var Am={pointerdown:oe,pointermove:Re,pointerup:pe,pointercancel:de,pointerout:de},Mm={2:F,3:k,4:B,5:G},rl="pointerdown",al="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(rl="MSPointerDown",al="MSPointerMove MSPointerUp MSPointerCancel");function rs(){this.evEl=rl,this.evWin=al,Ge.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}A(rs,Ge,{handler:function(E){var T=this.store,L=!1,H=E.type.toLowerCase().replace("ms",""),q=Am[H],me=Mm[E.pointerType]||E.pointerType,Ue=me==F,Xe=K(T,E.pointerId,"pointerId");q&oe&&(E.button===0||Ue)?Xe<0&&(T.push(E),Xe=T.length-1):q&(pe|de)&&(L=!0),!(Xe<0)&&(T[Xe]=E,this.callback(this.manager,q,{pointers:T,changedPointers:[E],pointerType:me,srcEvent:E}),L&&T.splice(Xe,1))}});var Dm={touchstart:oe,touchmove:Re,touchend:pe,touchcancel:de},Nm="touchstart",Om="touchstart touchmove touchend touchcancel";function ol(){this.evTarget=Nm,this.evWin=Om,this.started=!1,Ge.apply(this,arguments)}A(ol,Ge,{handler:function(E){var T=Dm[E.type];if(T===oe&&(this.started=!0),!!this.started){var L=Im.call(this,E,T);T&(pe|de)&&L[0].length-L[1].length===0&&(this.started=!1),this.callback(this.manager,T,{pointers:L[0],changedPointers:L[1],pointerType:F,srcEvent:E})}}});function Im(g,E){var T=W(g.touches),L=W(g.changedTouches);return E&(pe|de)&&(T=X(T.concat(L),"identifier",!0)),[T,L]}var km={touchstart:oe,touchmove:Re,touchend:pe,touchcancel:de},Lm="touchstart touchmove touchend touchcancel";function ra(){this.evTarget=Lm,this.targetIds={},Ge.apply(this,arguments)}A(ra,Ge,{handler:function(E){var T=km[E.type],L=Bm.call(this,E,T);!L||this.callback(this.manager,T,{pointers:L[0],changedPointers:L[1],pointerType:F,srcEvent:E})}});function Bm(g,E){var T=W(g.touches),L=this.targetIds;if(E&(oe|Re)&&T.length===1)return L[T[0].identifier]=!0,[T,T];var H,q,me=W(g.changedTouches),Ue=[],Xe=this.target;if(q=T.filter(function(lt){return P(lt.target,Xe)}),E===oe)for(H=0;H-1&&L.splice(q,1)};setTimeout(H,$m)}}function Hm(g){for(var E=g.srcEvent.clientX,T=g.srcEvent.clientY,L=0;L-1&&this.requireFail.splice(E,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(g){return!!this.simultaneous[g.id]},emit:function(g){var E=this,T=this.state;function L(H){E.manager.emit(H,g)}T=Cn&&L(E.options.event+hl(T))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=Kt},canEmit:function(){for(var g=0;gE.threshold&&H&E.direction},attrTest:function(g){return Ft.prototype.attrTest.call(this,g)&&(this.state&Ct||!(this.state&Ct)&&this.directionTest(g))},emit:function(g){this.pX=g.deltaX,this.pY=g.deltaY;var E=dl(g.direction);E&&(g.additionalEvent=this.options.event+E),this._super.emit.call(this,g)}});function cs(){Ft.apply(this,arguments)}A(cs,Ft,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Qn]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.scale-1)>this.options.threshold||this.state&Ct)},emit:function(g){if(g.scale!==1){var E=g.scale<1?"in":"out";g.additionalEvent=this.options.event+E}this._super.emit.call(this,g)}});function us(){ln.apply(this,arguments),this._timer=null,this._input=null}A(us,ln,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fl]},process:function(g){var E=this.options,T=g.pointers.length===E.pointers,L=g.distanceE.time;if(this._input=g,!L||!T||g.eventType&(pe|de)&&!H)this.reset();else if(g.eventType&oe)this.reset(),this._timer=p(function(){this.state=un,this.tryEmit()},E.time,this);else if(g.eventType&pe)return un;return Kt},reset:function(){clearTimeout(this._timer)},emit:function(g){this.state===un&&(g&&g.eventType&pe?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}});function ls(){Ft.apply(this,arguments)}A(ls,Ft,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Qn]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.rotation)>this.options.threshold||this.state&Ct)}});function ps(){Ft.apply(this,arguments)}A(ps,Ft,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ut|rt,pointers:1},getTouchAction:function(){return ca.prototype.getTouchAction.call(this)},attrTest:function(g){var E=this.options.direction,T;return E&(ut|rt)?T=g.overallVelocity:E&ut?T=g.overallVelocityX:E&rt&&(T=g.overallVelocityY),this._super.attrTest.call(this,g)&&E&g.offsetDirection&&g.distance>this.options.threshold&&g.maxPointers==this.options.pointers&&u(T)>this.options.velocity&&g.eventType&pe},emit:function(g){var E=dl(g.offsetDirection);E&&this.manager.emit(this.options.event+E,g),this.manager.emit(this.options.event,g)}});function ua(){ln.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}A(ua,ln,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[os]},process:function(g){var E=this.options,T=g.pointers.length===E.pointers,L=g.distance1&&(s=!0),h.elements.length}),s)return a[e]=Es(c).center,a;u=t[0],t=Gt(t,function(h){return h[i]+h[r]}),l=Es(t),a[e]=p(u,l)}return a};Wi.prototype.trigger=function(e,t){var n=this._modeling,i=se(e,function(s){return!(s.waypoints||s.host||s.labelTarget)});if(!(i.length<2)){var r=Ax[t],a=Gt(i,r),o=this._alignmentPosition(t,a);n.alignElements(a,o)}};var Mx={__init__:["alignElements"],alignElements:["type",Wi]},Dx=10,_d=50,Nx=250;function Uc(e,t,n,i){for(var r;r=Ox(e,n,t);)n=i(t,n,r);return n}function Yc(e){return function(t,n,i){var r={x:n.x,y:n.y};return["x","y"].forEach(function(a){var o=e[a];if(!!o){var s=a==="x"?"width":"height",c=o.margin,u=o.minDistance;c<0?r[a]=Math.min(i[a]+c-t[s]/2,n[a]-u+c):r[a]=Math.max(i[a]+i[s]+c+t[s]/2,n[a]+u+c)}}),r}}function Ox(e,t,n){var i={x:t.x-n.width/2,y:t.y-n.height/2,width:n.width,height:n.height},r=kx(e);return _e(r,function(a){if(a===n)return!1;var o=tt(a,i,Dx);return o==="intersect"})}function Ix(e,t){t||(t={});function n(d){return d.source===e?1:-1}var i=t.defaultDistance||_d,r=t.direction||"e",a=t.filter,o=t.getWeight||n,s=t.maxDistance||Nx,c=t.reference||"start";a||(a=$x);function u(d,y){return r==="n"?c==="start"?ee(d).top-ee(y).bottom:c==="center"?ee(d).top-ce(y).y:ee(d).top-ee(y).top:r==="w"?c==="start"?ee(d).left-ee(y).right:c==="center"?ee(d).left-ce(y).x:ee(d).left-ee(y).left:r==="s"?c==="start"?ee(y).top-ee(d).bottom:c==="center"?ce(y).y-ee(d).bottom:ee(y).bottom-ee(d).bottom:c==="start"?ee(y).left-ee(d).right:c==="center"?ce(y).x-ee(d).right:ee(y).right-ee(d).right}var l=e.incoming.filter(a).map(function(d){var y=o(d),x=y<0?u(d.source,e):u(e,d.source);return{id:d.source.id,distance:x,weight:y}}),p=e.outgoing.filter(a).map(function(d){var y=o(d),x=y>0?u(e,d.target):u(d.target,e);return{id:d.target.id,distance:x,weight:y}}),h=l.concat(p).reduce(function(d,y){return d[y.id+"__weight_"+y.weight]=y,d},{}),f=wt(h,function(d,y){var x=y.distance,D=y.weight;return x<0||x>s||(d[String(x)]||(d[String(x)]=0),d[String(x)]+=1*D,(!d.distance||d[d.distance]t.top&&(n=n.concat("n")),e.rightt.left&&(n=n.concat("e")),n}function Co(e){e.invoke(xn,this)}Co.$inject=["injector"];Z(Co,xn);Co.prototype.resize=function(e,t,n){m(e,"bpmn:Participant")?this._modeling.resizeLane(e,t,null,n):this._modeling.resizeShape(e,t,null,n)};function Gn(e){U.call(this,e),this.init()}Gn.$inject=["eventBus"];Z(Gn,U);Gn.prototype.addRule=function(e,t,n){var i=this;typeof e=="string"&&(e=[e]),e.forEach(function(r){i.canExecute(r,t,function(a,o,s){return n(a)},!0)})};Gn.prototype.init=function(){};function Lr(e){Gn.call(this,e);var t=this;this.addRule("element.autoResize",function(n){return t.canResize(n.elements,n.target)})}Lr.$inject=["eventBus"];Z(Lr,Gn);Lr.prototype.canResize=function(e,t){return!1};function Po(e,t){Lr.call(this,e),this._modeling=t}Z(Po,Lr);Po.$inject=["eventBus","modeling"];Po.prototype.canResize=function(e,t){if(!m(t,"bpmn:Participant")&&!m(t,"bpmn:Lane")&&!m(t,"bpmn:SubProcess"))return!1;var n=!0;return C(e,function(i){if(m(i,"bpmn:Lane")||i.labelTarget){n=!1;return}}),n};var Qx={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Co],bpmnAutoResizeProvider:["type",Po]},ep=1500;function Cd(e,t,n){var i=this,r=n.get("dragging",!1);function a(o){if(!o.hover){var s=o.originalEvent,c=i._findTargetGfx(s),u=c&&e.get(c);c&&u&&(o.stopPropagation(),r.hover({element:u,gfx:c}),r.move(s))}}r&&t.on("drag.start",function(o){t.once("drag.move",ep,function(s){a(s)})}),function(){var o,s;t.on("element.hover",function(c){o=c.gfx,s=c.element}),t.on("element.hover",ep,function(c){s&&t.fire("element.out",{element:s,gfx:o})}),t.on("element.out",function(){o=null,s=null})}(),this._findTargetGfx=function(o){var s,c;if(o instanceof MouseEvent)return s=Bn(o),c=document.elementFromPoint(s.x,s.y),Jx(c)}}Cd.$inject=["elementRegistry","eventBus","injector"];function Jx(e){return ci(e,"svg, .djs-element",!0)}var e_={__init__:["hoverFix"],hoverFix:["type",Cd]},xi=Math.round,tp="djs-drag-active";function ti(e){e.preventDefault()}function t_(e){return typeof TouchEvent!="undefined"&&e instanceof TouchEvent}function n_(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function Pd(e,t,n,i){var r={threshold:5,trapClick:!0},a;function o(w){var b=t.viewbox(),_=t._container.getBoundingClientRect();return{x:b.x+(w.x-_.left)/b.scale,y:b.y+(w.y-_.top)/b.scale}}function s(w,b){b=b||a;var _=e.createEvent(I({},b.payload,b.data,{isTouch:b.isTouch}));return e.fire("drag."+w,_)===!1?!1:e.fire(b.prefix+"."+w,_)}function c(w){var b=w.filter(function(_){return i.get(_.id)});b.length&&n.select(b)}function u(w,b){var _=a.payload,M=a.displacement,N=a.globalStart,P=Bn(w),$=tn(P,N),z=a.localStart,K=o(P),W=tn(K,z);if(!a.active&&(b||n_($)>a.threshold)){if(I(_,{x:xi(z.x+M.x),y:xi(z.y+M.y),dx:0,dy:0},{originalEvent:w}),s("start")===!1)return x();a.active=!0,a.keepSelection||(_.previousSelection=n.get(),n.select(null)),a.cursor&&Ro(a.cursor),t.addMarker(t.getRootElement(),tp)}gs(w),a.active&&(I(_,{x:xi(K.x+M.x),y:xi(K.y+M.y),dx:xi(W.x),dy:xi(W.y)},{originalEvent:w}),s("move"))}function l(w){var b,_=!0;a.active&&(w&&(a.payload.originalEvent=w,gs(w)),_=s("end")),_===!1&&s("rejected"),b=D(_!==!0),s("ended",b)}function p(w){w.which===27&&(ti(w),x())}function h(w){var b;a.active&&(b=dd(e),setTimeout(b,400),ti(w)),l(w)}function f(w){u(w)}function d(w){var b=a.payload;b.hoverGfx=w.gfx,b.hover=w.element,s("hover")}function y(w){s("out");var b=a.payload;b.hoverGfx=null,b.hover=null}function x(w){var b;if(!!a){var _=a.active;_&&s("cancel"),b=D(w),_&&s("canceled",b)}}function D(w){var b,_;s("cleanup"),hd(),a.trapClick?_=h:_=l,te.unbind(document,"mousemove",u),te.unbind(document,"dragstart",ti),te.unbind(document,"selectstart",ti),te.unbind(document,"mousedown",_,!0),te.unbind(document,"mouseup",_,!0),te.unbind(document,"keyup",p),te.unbind(document,"touchstart",f,!0),te.unbind(document,"touchcancel",x,!0),te.unbind(document,"touchmove",u,!0),te.unbind(document,"touchend",l,!0),e.off("element.hover",d),e.off("element.out",y),t.removeMarker(t.getRootElement(),tp);var M=a.payload.previousSelection;return w!==!1&&M&&!n.get().length&&c(M),b=a,a=null,b}function A(w,b,_,M){a&&x(!1),typeof b=="string"&&(M=_,_=b,b=null),M=I({},r,M||{});var N=M.data||{},P,$,z,K,W;M.trapClick?K=h:K=l,w?(P=zi(w)||w,$=Bn(w),gs(w),P.type==="dragstart"&&ti(P)):(P=null,$={x:0,y:0}),z=o($),b||(b=z),W=t_(P),a=I({prefix:_,data:N,payload:{},globalStart:$,displacement:tn(b,z),localStart:z,isTouch:W},M),M.manual||(W?(te.bind(document,"touchstart",f,!0),te.bind(document,"touchcancel",x,!0),te.bind(document,"touchmove",u,!0),te.bind(document,"touchend",l,!0)):(te.bind(document,"mousemove",u),te.bind(document,"dragstart",ti),te.bind(document,"selectstart",ti),te.bind(document,"mousedown",K,!0),te.bind(document,"mouseup",K,!0)),te.bind(document,"keyup",p),e.on("element.hover",d),e.on("element.out",y)),s("init"),M.autoActivate&&u(w,!0)}e.on("diagram.destroy",x),this.init=A,this.move=u,this.hover=d,this.out=y,this.end=l,this.cancel=x,this.context=function(){return a},this.setOptions=function(w){I(r,w)}}Pd.$inject=["eventBus","canvas","selection","elementRegistry"];var _n={__depends__:[e_,an],dragging:["type",Pd]};function Ui(e,t,n){this._canvas=n,this._opts=I({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;t.on("drag.move",function(r){var a=i._toBorderPoint(r);i.startScroll(a)}),t.on(["drag.cleanup"],function(){i.stopScroll()})}Ui.$inject=["config.autoScroll","eventBus","canvas"];Ui.prototype.startScroll=function(e){var t=this._canvas,n=this._opts,i=this,r=t.getContainer().getBoundingClientRect(),a=[e.x,e.y,r.width-e.x,r.height-e.y];this.stopScroll();for(var o=0,s=0,c=0;c<4;c++)i_(a[c],n.scrollThresholdOut[c],n.scrollThresholdIn[c])&&(c===0?o=n.scrollStep:c==1?s=n.scrollStep:c==2?o=-n.scrollStep:c==3&&(s=-n.scrollStep));(o!==0||s!==0)&&(t.scroll({dx:o,dy:s}),this._scrolling=setTimeout(function(){i.startScroll(e)},n.scrollRepeatTimeout))};function i_(e,t,n){return t=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&l==45){u+="\\"+c.toString(16)+" ";continue}if(s==0&&o==1&&c==45){u+="\\"+a.charAt(s);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){u+=a.charAt(s);continue}u+="\\"+a.charAt(s)}return u};return n.CSS||(n.CSS={}),n.CSS.escape=i,i})})(Od);var ic=Od.exports,h_={"&":"&","<":"<",">":">",'"':""","'":"'"};function np(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(t){return h_[t]})}function Id(e,t,n,i,r){function a(w,b,_){var M=w.index,N=w.point,P,$,z,K,W,X;return M<=0||w.bendpoint?!1:(P=b[M-1],$=b[M],z=Gs(P,$),K=dn(P,$),W=Math.abs(N.x-z.x),X=Math.abs(N.y-z.y),K&&W<=_&&X<=_)}function o(w,b){var _=w.waypoints,M,N,P,$;return b.index<=0||b.bendpoint||(M={start:_[b.index-1],end:_[b.index]},N=dn(M.start,M.end),!N)?null:(N==="h"?P=M.end.x-M.start.x:P=M.end.y-M.start.y,$=nc(P)/2,$)}function s(w,b){var _=b.waypoints,M=ec(t,_,w),N;if(!!M)return N=o(b,M),a(M,_,N)?r.start(w,b,M.index):i.start(w,b,M.index,!M.bendpoint),!0}function c(w,b,_){te.bind(w,b,function(M){n.triggerMouseEvent(b,M,_),M.stopPropagation()})}function u(w,b){var _=t.getLayer("overlays"),M=Oe('.djs-bendpoints[data-element-id="'+ic(w.id)+'"]',_);return!M&&b&&(M=Q("g"),j(M,{"data-element-id":w.id}),fe(M).add("djs-bendpoints"),ne(_,M),c(M,"mousedown",w),c(M,"click",w),c(M,"dblclick",w)),M}function l(w,b){return Oe('.djs-segment-dragger[data-segment-idx="'+w+'"]',b)}function p(w,b){b.waypoints.forEach(function(_,M){var N=tc(w);ne(w,N),vt(N,_.x,_.y)}),tc(w,"floating")}function h(w,b){for(var _=b.waypoints,M,N,P,$=1;$<_.length;$++)M=_[$-1],N=_[$],dn(M,N)&&(P=Nd(w,M,N),j(P,{"data-segment-idx":$}),c(P,"mousemove",b))}function f(w){C(Bs("."+Md,w),function(b){Be(b)})}function d(w){C(Bs("."+Dd,w),function(b){Be(b)})}function y(w){var b=u(w);return b||(b=u(w,!0),p(b,w),h(b,w)),b}function x(w){var b=u(w);b&&(d(b),f(b),h(b,w),p(b,w))}function D(w,b){var _=Oe(".floating",w),M=b.point;!_||vt(_,M.x,M.y)}function A(w,b,_){var M=l(b.index,w),N=_[b.index-1],P=_[b.index],$=b.point,z=Gs(N,P),K=dn(N,P),W,X;!M||(W=d_(M),X={x:$.x-z.x,y:$.y-z.y},K==="v"&&(X={x:X.y,y:X.x}),vt(W,X.x,X.y))}e.on("connection.changed",function(w){x(w.element)}),e.on("connection.remove",function(w){var b=u(w.element);b&&Be(b)}),e.on("element.marker.update",function(w){var b=w.element,_;!b.waypoints||(_=y(b),w.add?fe(_).add(w.marker):fe(_).remove(w.marker))}),e.on("element.mousemove",function(w){var b=w.element,_=b.waypoints,M,N;if(_){if(M=u(b,!0),N=ec(t,_,w.originalEvent),!N)return;D(M,N),N.bendpoint||A(M,N,_)}}),e.on("element.mousedown",function(w){if(!!jn(w)){var b=w.originalEvent,_=w.element;if(!!_.waypoints)return s(b,_)}}),e.on("selection.changed",function(w){var b=w.newSelection,_=b[0];_&&_.waypoints&&y(_)}),e.on("element.hover",function(w){var b=w.element;b.waypoints&&(y(b),n.registerEvent(w.gfx,"mousemove","element.mousemove"))}),e.on("element.out",function(w){n.unregisterEvent(w.gfx,"mousemove","element.mousemove")}),e.on("element.updateId",function(w){var b=w.element,_=w.newId;if(b.waypoints){var M=u(b);M&&j(M,{"data-element-id":_})}}),this.addHandles=y,this.updateHandles=x,this.getBendpointsContainer=u,this.getSegmentDragger=l}Id.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];function d_(e){return Oe(".djs-visual",e)}var ip=Math.round,ni="reconnectStart",ii="reconnectEnd",ir="updateWaypoints";function qc(e,t,n,i,r,a){this._injector=e,this.start=function(o,s,c,u){var l=n.getGraphics(s),p=s.source,h=s.target,f=s.waypoints,d;!u&&c===0?d=ni:!u&&c===f.length-1?d=ii:d=ir;var y=d===ir?"connection.updateWaypoints":"connection.reconnect",x=r.allowed(y,{connection:s,source:p,target:h});x===!1&&(x=r.allowed(y,{connection:s,source:h,target:p})),x!==!1&&i.init(o,"bendpoint.move",{data:{connection:s,connectionGfx:l,context:{allowed:x,bendpointIndex:c,connection:s,source:p,target:h,insert:u,type:d}}})},t.on("bendpoint.move.hover",function(o){var s=o.context,c=s.connection,u=c.source,l=c.target,p=o.hover,h=s.type;s.hover=p;var f;if(!!p){var d=h===ir?"connection.updateWaypoints":"connection.reconnect";if(f=s.allowed=r.allowed(d,{connection:c,source:h===ni?p:u,target:h===ii?p:l}),f){s.source=h===ni?p:u,s.target=h===ii?p:l;return}f===!1&&(f=s.allowed=r.allowed(d,{connection:c,source:h===ii?p:l,target:h===ni?p:u})),f&&(s.source=h===ii?p:l,s.target=h===ni?p:u)}}),t.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(o){var s=o.context,c=s.type;s.hover=null,s.source=null,s.target=null,c!==ir&&(s.allowed=!1)}),t.on("bendpoint.move.end",function(o){var s=o.context,c=s.allowed,u=s.bendpointIndex,l=s.connection,p=s.insert,h=l.waypoints.slice(),f=s.source,d=s.target,y=s.type,x=s.hints||{},D={x:ip(o.x),y:ip(o.y)};if(!c)return!1;y===ir?(p?h.splice(u,0,D):h[u]=D,x.bendpointMove={insert:p,bendpointIndex:u},h=this.cropWaypoints(l,h),a.updateWaypoints(l,iy(h),x)):(y===ni?(x.docking="source",eo(s)&&(x.docking="target",x.newWaypoints=h.reverse())):y===ii&&(x.docking="target",eo(s)&&(x.docking="source",x.newWaypoints=h.reverse())),a.reconnect(l,f,d,D,x))},this)}qc.$inject=["injector","eventBus","canvas","dragging","rules","modeling"];qc.prototype.cropWaypoints=function(e,t){var n=this._injector.get("connectionDocking",!1);if(!n)return t;var i=e.waypoints;return e.waypoints=t,e.waypoints=n.getCroppedWaypoints(e),t=e.waypoints,e.waypoints=i,t};function eo(e){var t=e.hover,n=e.source,i=e.target,r=e.type;if(r===ni)return t&&i&&t===i&&n!==i;if(r===ii)return t&&n&&t===n&&n!==i}var v_="reconnectStart",m_="reconnectEnd",rp="updateWaypoints",rr="connect-ok",ga="connect-not-ok",ap="connect-hover",op="djs-updating",sp="djs-element-hidden",cp=1100;function kd(e,t,n,i){this._injector=t;var r=t.get("connectionPreview",!1);n.on("bendpoint.move.start",function(a){var o=a.context,s=o.bendpointIndex,c=o.connection,u=o.insert,l=c.waypoints,p=l.slice();o.waypoints=l,u&&p.splice(s,0,{x:a.x,y:a.y}),c.waypoints=p;var h=o.draggerGfx=tc(i.getLayer("overlays"));fe(h).add("djs-dragging"),i.addMarker(c,sp),i.addMarker(c,op)}),n.on("bendpoint.move.hover",function(a){var o=a.context,s=o.allowed,c=o.hover,u=o.type;if(c){if(i.addMarker(c,ap),u===rp)return;s?(i.removeMarker(c,ga),i.addMarker(c,rr)):s===!1&&(i.removeMarker(c,rr),i.addMarker(c,ga))}}),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],cp,function(a){var o=a.context,s=o.hover,c=o.target;s&&(i.removeMarker(s,ap),i.removeMarker(s,c?rr:ga))}),n.on("bendpoint.move.move",function(a){var o=a.context,s=o.allowed,c=o.bendpointIndex,u=o.draggerGfx,l=o.hover,p=o.type,h=o.connection,f=h.source,d=h.target,y=h.waypoints.slice(),x={x:a.x,y:a.y},D=o.hints||{},A={};r&&(D.connectionStart&&(A.connectionStart=D.connectionStart),D.connectionEnd&&(A.connectionEnd=D.connectionEnd),p===v_?eo(o)?(A.connectionEnd=A.connectionEnd||x,A.source=d,A.target=l||f,y=y.reverse()):(A.connectionStart=A.connectionStart||x,A.source=l||f,A.target=d):p===m_?eo(o)?(A.connectionStart=A.connectionStart||x,A.source=l||d,A.target=f,y=y.reverse()):(A.connectionEnd=A.connectionEnd||x,A.source=f,A.target=l||d):(A.noCropping=!0,A.noLayout=!0,y[c]=x),p===rp&&(y=e.cropWaypoints(h,y)),A.waypoints=y,r.drawPreview(o,s,A)),vt(u,a.x,a.y)},this),n.on(["bendpoint.move.end","bendpoint.move.cancel"],cp,function(a){var o=a.context,s=o.connection,c=o.draggerGfx,u=o.hover,l=o.target,p=o.waypoints;s.waypoints=p,Be(c),i.removeMarker(s,op),i.removeMarker(s,sp),u&&(i.removeMarker(u,rr),i.removeMarker(u,l?rr:ga)),r&&r.cleanUp(o)})}kd.$inject=["bendpointMove","injector","eventBus","canvas"];var up="connect-hover",lp="djs-updating";function pp(e,t,n){return Xc(e,t,e[t]+n)}function Xc(e,t,n){return{x:t==="x"?n:e.x,y:t==="y"?n:e.y}}function g_(e,t,n,i){var r=Math.max(t[i],n[i]),a=Math.min(t[i],n[i]),o=20,s=Math.min(Math.max(a+o,e[i]),r-o);return Xc(t,i,s)}function Ld(e){return e==="x"?"y":"x"}function fp(e,t,n){var i,r;return e.original?e.original:(i=ce(t),r=Ld(n),Xc(e,r,i[r]))}function Bd(e,t,n,i,r,a){var o=e.get("connectionDocking",!1);this.start=function(p,h,f){var d,y=n.getGraphics(h),x=f-1,D=f,A=h.waypoints,w=A[x],b=A[D],_=ec(n,A,p),M,N,P;M=dn(w,b),M&&(N=M==="v"?"x":"y",x===0&&(w=fp(w,h.source,N)),D===A.length-1&&(b=fp(b,h.target,N)),_?P=_.point:P={x:(w.x+b.x)/2,y:(w.y+b.y)/2},d={connection:h,segmentStartIndex:x,segmentEndIndex:D,segmentStart:w,segmentEnd:b,axis:N,dragPosition:P},i.init(p,P,"connectionSegment.move",{cursor:N==="x"?"resize-ew":"resize-ns",data:{connection:h,connectionGfx:y,context:d}}))};function s(p,h){if(!o)return h;var f=p.waypoints,d;return p.waypoints=h,d=o.getCroppedWaypoints(p),p.waypoints=f,d}function c(p){r.update("connection",p.connection,p.connectionGfx)}function u(p,h,f){var d=p.newWaypoints,y=p.segmentStartIndex+h,x=d[y],D=p.segmentEndIndex+h,A=d[D],w=Ld(p.axis),b=g_(f,x,A,w);vt(p.draggerGfx,b.x,b.y)}function l(p,h){var f=0,d=p.filter(function(y,x){return Ac(p[x-1],p[x+1],y)?(f=x<=h?f-1:f,!1):!0});return{waypoints:d,segmentOffset:f}}t.on("connectionSegment.move.start",function(p){var h=p.context,f=p.connection,d=n.getLayer("overlays");h.originalWaypoints=f.waypoints.slice(),h.draggerGfx=Nd(d,h.segmentStart,h.segmentEnd),fe(h.draggerGfx).add("djs-dragging"),n.addMarker(f,lp)}),t.on("connectionSegment.move.move",function(p){var h=p.context,f=h.connection,d=h.segmentStartIndex,y=h.segmentEndIndex,x=h.segmentStart,D=h.segmentEnd,A=h.axis,w=h.originalWaypoints.slice(),b=pp(x,A,p["d"+A]),_=pp(D,A,p["d"+A]),M=w.length,N=0;w[d]=b,w[y]=_;var P,$;d<2&&(P=tt(f.source,b),d===1?P==="intersect"&&(w.shift(),w[0]=b,N--):P!=="intersect"&&(w.unshift(x),N++)),y>M-3&&($=tt(f.target,_),y===M-2?$==="intersect"&&(w.pop(),w[w.length-1]=_):$!=="intersect"&&w.push(D)),h.newWaypoints=f.waypoints=s(f,w),u(h,N,p),h.newSegmentStartIndex=d+N,c(p)}),t.on("connectionSegment.move.hover",function(p){p.context.hover=p.hover,n.addMarker(p.hover,up)}),t.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(p){var h=p.context.hover;h&&n.removeMarker(h,up)}),t.on("connectionSegment.move.cleanup",function(p){var h=p.context,f=h.connection;h.draggerGfx&&Be(h.draggerGfx),n.removeMarker(f,lp)}),t.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(p){var h=p.context,f=h.connection;f.waypoints=h.originalWaypoints,c(p)}),t.on("connectionSegment.move.end",function(p){var h=p.context,f=h.connection,d=h.newWaypoints,y=h.newSegmentStartIndex;d=d.map(function(_){return{original:_.original,x:Math.round(_.x),y:Math.round(_.y)}});var x=l(d,y),D=x.waypoints,A=s(f,D),w=x.segmentOffset,b={segmentMove:{segmentStartIndex:h.segmentStartIndex,newSegmentStartIndex:y+w}};a.updateWaypoints(f,A,b)})}Bd.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var y_=Math.abs,hp=Math.round;function E_(e,t,n){n=n===void 0?10:n;var i,r;for(i=0;ia-xs)return o-c+a}return o}function n(a){if(a.width)return{x:dp(a.width/2+a.x),y:dp(a.height/2+a.y)}}function i(a){var o=a.snapPoints,s=a.connection,c=s.waypoints,u=a.segmentStart,l=a.segmentStartIndex,p=a.segmentEnd,h=a.segmentEndIndex,f=a.axis;if(o)return o;var d=[c[l-1],u,p,c[h+1]];return l<2&&d.unshift(n(s.source)),h>c.length-3&&d.unshift(n(s.target)),a.snapPoints=o={horizontal:[],vertical:[]},C(d,function(y){y&&(y=y.original||y,f==="y"&&o.horizontal.push(y.y),f==="x"&&o.vertical.push(y.x))}),o}e.on("connectionSegment.move.move",1500,function(a){var o=a.context,s=i(o),c=a.x,u=a.y,l,p;if(!!s){l=t(s.vertical,c),p=t(s.horizontal,u);var h=c-l,f=u-p;I(a,{dx:a.dx-h,dy:a.dy-f,x:l,y:p}),(h||s.vertical.indexOf(c)!==-1)&&je(a,"x",l),(f||s.horizontal.indexOf(u)!==-1)&&je(a,"y",p)}});function r(a){var o=a.snapPoints,s=a.connection.waypoints,c=a.bendpointIndex;if(o)return o;var u=[s[c-1],s[c+1]];return a.snapPoints=o={horizontal:[],vertical:[]},C(u,function(l){l&&(l=l.original||l,o.horizontal.push(l.y),o.vertical.push(l.x))}),o}e.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(a){var o=a.context,s=r(o),c=o.hover,u=c&&n(c),l=a.x,p=a.y,h,f;if(!!s){h=t(u?s.vertical.concat([u.x]):s.vertical,l),f=t(u?s.horizontal.concat([u.y]):s.horizontal,p);var d=l-h,y=p-f;I(a,{dx:a.dx-d,dy:a.dy-y,x:a.x-d,y:a.y-y}),(d||s.vertical.indexOf(l)!==-1)&&je(a,"x",h),(y||s.horizontal.indexOf(p)!==-1)&&je(a,"y",f)}})}jd.$inject=["eventBus"];var x_={__depends__:[_n,sn],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",Id],bendpointMove:["type",qc],bendpointMovePreview:["type",kd],connectionSegmentMove:["type",Bd],bendpointSnapping:["type",jd]};function zd(e,t,n,i){function r(o,s){return i.allowed("connection.create",{source:o,target:s})}function a(o,s){return r(s,o)}e.on("connect.hover",function(o){var s=o.context,c=s.start,u=o.hover,l;if(s.hover=u,l=s.canExecute=r(c,u),!gl(l)){if(l!==!1){s.source=c,s.target=u;return}l=s.canExecute=a(c,u),!gl(l)&&l!==!1&&(s.source=u,s.target=c)}}),e.on(["connect.out","connect.cleanup"],function(o){var s=o.context;s.hover=null,s.source=null,s.target=null,s.canExecute=!1}),e.on("connect.end",function(o){var s=o.context,c=s.canExecute,u=s.connectionStart,l={x:o.x,y:o.y},p=s.source,h=s.target;if(!c)return!1;var f=null,d={connectionStart:rc(s)?l:u,connectionEnd:rc(s)?u:l};Je(c)&&(f=c),n.connect(p,h,f,d)}),this.start=function(o,s,c,u){Je(c)||(u=c,c=ce(s)),t.init(o,"connect",{autoActivate:u,data:{shape:s,context:{start:s,connectionStart:c}}})}}zd.$inject=["eventBus","dragging","modeling","rules"];function rc(e){var t=e.hover,n=e.source,i=e.target;return t&&n&&t===n&&n!==i}var __=1100,w_=900,vp="connect-ok",mp="connect-not-ok";function Gd(e,t,n){var i=e.get("connectionPreview",!1);i&&t.on("connect.move",function(r){var a=r.context,o=a.canExecute,s=a.hover,c=a.source,u=a.start,l=a.startPosition,p=a.target,h=a.connectionStart||l,f=a.connectionEnd||{x:r.x,y:r.y},d=h,y=f;rc(a)&&(d=f,y=h),i.drawPreview(a,o,{source:c||u,target:p||s,connectionStart:d,connectionEnd:y})}),t.on("connect.hover",w_,function(r){var a=r.context,o=r.hover,s=a.canExecute;s!==null&&n.addMarker(o,s?vp:mp)}),t.on(["connect.out","connect.cleanup"],__,function(r){var a=r.hover;a&&(n.removeMarker(a,vp),n.removeMarker(a,mp))}),i&&t.on("connect.cleanup",function(r){i.cleanUp(r.context)})}Gd.$inject=["injector","eventBus","canvas"];var Zc={__depends__:[an,sn,_n],__init__:["connectPreview"],connect:["type",zd],connectPreview:["type",Gd]},S_="djs-connection-preview";function wn(e,t,n,i){this._canvas=t,this._graphicsFactory=n,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}wn.$inject=["injector","canvas","graphicsFactory","elementFactory"];wn.prototype.drawPreview=function(e,t,n){n=n||{};var i=e.connectionPreviewGfx,r=e.getConnection,a=n.source,o=n.target,s=n.waypoints,c=n.connectionStart,u=n.connectionEnd,l=n.noLayout,p=n.noCropping,h=n.noNoop,f,d=this;if(i||(i=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),Tc(i),r||(r=e.getConnection=T_(function(y,x,D){return d.getConnection(y,x,D)})),t&&(f=r(t,a,o)),!f){!h&&this.drawNoopPreview(i,n);return}f.waypoints=s||[],this._layouter&&!l&&(f.waypoints=this._layouter.layoutConnection(f,{source:a,target:o,connectionStart:c,connectionEnd:u,waypoints:n.waypoints||f.waypoints})),(!f.waypoints||!f.waypoints.length)&&(f.waypoints=[a?ce(a):c,o?ce(o):u]),this._connectionDocking&&(a||o)&&!p&&(f.waypoints=this._connectionDocking.getCroppedWaypoints(f,a,o)),this._graphicsFactory.drawConnection(i,f)};wn.prototype.drawNoopPreview=function(e,t){var n=t.source,i=t.target,r=t.connectionStart||ce(n),a=t.connectionEnd||ce(i),o=this.cropWaypoints(r,a,n,i),s=this.createNoopConnection(o[0],o[1]);ne(e,s)};wn.prototype.cropWaypoints=function(e,t,n,i){var r=this._graphicsFactory,a=n&&r.getShapePath(n),o=i&&r.getShapePath(i),s=r.getConnectionPath({waypoints:[e,t]});return e=n&&Ws(a,s,!0)||e,t=i&&Ws(o,s,!1)||t,[e,t]};wn.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Be(e.connectionPreviewGfx)};wn.prototype.getConnection=function(e){var t=R_(e);return this._elementFactory.createConnection(t)};wn.prototype.createConnectionPreviewGfx=function(){var e=Q("g");return j(e,{pointerEvents:"none"}),fe(e).add(S_),ne(this._canvas.getActiveLayer(),e),e};wn.prototype.createNoopConnection=function(e,t){var n=Q("polyline");return j(n,{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"}),j(n,{points:[e.x,e.y,t.x,t.y]}),n};function T_(e){var t={};return function(n){var i=JSON.stringify(n),r=t[i];return r||(r=t[i]=e.apply(null,arguments)),r}}function R_(e){return Je(e)?e:{}}var C_={__init__:["connectionPreview"],connectionPreview:["type",wn]},gp=Math.min,yp=Math.max;function _s(e){e.preventDefault()}function vr(e){e.stopPropagation()}function P_(e){return e.nodeType===Node.TEXT_NODE}function A_(e){return[].slice.call(e)}function Ut(e){this.container=e.container,this.parent=Ce('
'),this.content=Oe("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=ft(this.autoResize,this),this.handlePaste=ft(this.handlePaste,this)}Ut.prototype.create=function(e,t,n,i){var r=this,a=this.parent,o=this.content,s=this.container;i=this.options=i||{},t=this.style=t||{};var c=Vt(t,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);I(a.style,{width:e.width+"px",height:e.height+"px",maxWidth:e.maxWidth+"px",maxHeight:e.maxHeight+"px",minWidth:e.minWidth+"px",minHeight:e.minHeight+"px",left:e.x+"px",top:e.y+"px",backgroundColor:"#ffffff",position:"absolute",overflow:"visible",border:"1px solid #ccc",boxSizing:"border-box",wordWrap:"normal",textAlign:"center",outline:"none"},c);var u=Vt(t,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return I(o.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},u),i.centerVertically&&I(o.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},u),o.innerText=n,te.bind(o,"keydown",this.keyHandler),te.bind(o,"mousedown",vr),te.bind(o,"paste",r.handlePaste),i.autoResize&&te.bind(o,"input",this.autoResize),i.resizable&&this.resizable(t),s.appendChild(a),this.setSelection(o.lastChild,o.lastChild&&o.lastChild.length),a};Ut.prototype.handlePaste=function(e){var t=this.options,n=this.style;e.preventDefault();var i;if(e.clipboardData?i=e.clipboardData.getData("text/plain"):i=window.clipboardData.getData("Text"),this.insertText(i),t.autoResize){var r=this.autoResize(n);r&&this.resizeHandler(r)}};Ut.prototype.insertText=function(e){e=M_(e);var t=document.execCommand("insertText",!1,e);t||this._insertTextIE(e)};Ut.prototype._insertTextIE=function(e){var t=this.getSelection(),n=t.startContainer,i=t.endContainer,r=t.startOffset,a=t.endOffset,o=t.commonAncestorContainer,s=A_(o.childNodes),c,u;if(P_(o)){var l=n.textContent;n.textContent=l.substring(0,r)+e+l.substring(a),c=n,u=r+e.length}else if(n===this.content&&i===this.content){var p=document.createTextNode(e);this.content.insertBefore(p,s[r]),c=p,u=p.textContent.length}else{var h=s.indexOf(n),f=s.indexOf(i);s.forEach(function(d,y){y===h?d.textContent=n.textContent.substring(0,r)+e+i.textContent.substring(a):y>h&&y<=f&&rn(d)}),c=n,u=r+e.length}c&&u!==void 0&&setTimeout(function(){self.setSelection(c,u)})};Ut.prototype.autoResize=function(){var e=this.parent,t=this.content,n=parseInt(this.style.fontSize)||12;if(t.scrollHeight>e.offsetHeight||t.scrollHeight
');var s,c,u,l,p=function(d){_s(d),vr(d),s=d.clientX,c=d.clientY;var y=t.getBoundingClientRect();u=y.width,l=y.height,te.bind(document,"mousemove",h),te.bind(document,"mouseup",f)},h=function(d){_s(d),vr(d);var y=gp(yp(u+d.clientX-s,i),a),x=gp(yp(l+d.clientY-c,r),o);t.style.width=y+"px",t.style.height=x+"px",e.resizeHandler({width:u,height:l,dx:d.clientX-s,dy:d.clientY-c})},f=function(d){_s(d),vr(d),te.unbind(document,"mousemove",h,!1),te.unbind(document,"mouseup",f,!1)};te.bind(n,"mousedown",p)}I(n.style,{position:"absolute",bottom:"0px",right:"0px",cursor:"nwse-resize",width:"0",height:"0",borderTop:(parseInt(this.style.fontSize)/4||3)+"px solid transparent",borderRight:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderBottom:(parseInt(this.style.fontSize)/4||3)+"px solid #ccc",borderLeft:(parseInt(this.style.fontSize)/4||3)+"px solid transparent"}),t.appendChild(n)};Ut.prototype.destroy=function(){var e=this.parent,t=this.content,n=this.resizeHandle;t.innerText="",e.removeAttribute("style"),t.removeAttribute("style"),te.unbind(t,"keydown",this.keyHandler),te.unbind(t,"mousedown",vr),te.unbind(t,"input",this.autoResize),te.unbind(t,"paste",this.handlePaste),n&&(n.removeAttribute("style"),rn(n)),rn(e)};Ut.prototype.getValue=function(){return this.content.innerText.trim()};Ut.prototype.getSelection=function(){var e=window.getSelection(),t=e.getRangeAt(0);return t};Ut.prototype.setSelection=function(e,t){var n=document.createRange();e===null?n.selectNodeContents(this.content):(n.setStart(e,t),n.setEnd(e,t));var i=window.getSelection();i.removeAllRanges(),i.addRange(n)};function M_(e){return e.replace(/\r\n|\r|\n/g,` -`)}function Ot(e,t){this._eventBus=e,this._providers=[],this._textbox=new Ut({container:t.getContainer(),keyHandler:ft(this._handleKey,this),resizeHandler:ft(this._handleResize,this)})}Ot.$inject=["eventBus","canvas"];Ot.prototype.registerProvider=function(e){this._providers.push(e)};Ot.prototype.isActive=function(){return!!this._active};Ot.prototype.cancel=function(){!this._active||(this._fire("cancel"),this.close())};Ot.prototype._fire=function(e,t){this._eventBus.fire("directEditing."+e,t||{active:this._active})};Ot.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0};Ot.prototype.complete=function(){var e=this._active;if(!!e){var t,n=e.context.bounds,i=this.$textbox.getBoundingClientRect(),r=this.getValue(),a=e.context.text;(r!==a||i.height!==n.height||i.width!==n.width)&&(t=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,r,e.context.text,{x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}};Ot.prototype.getValue=function(){return this._textbox.getValue()};Ot.prototype._handleKey=function(e){e.stopPropagation();var t=e.keyCode||e.charCode;if(t===27)return e.preventDefault(),this.cancel();if(t===13&&!e.shiftKey)return e.preventDefault(),this.complete()};Ot.prototype._handleResize=function(e){this._fire("resize",e)};Ot.prototype.activate=function(e){this.isActive()&&this.cancel();var t,n=_e(this._providers,function(i){return(t=i.activate(e))?i:null});return t&&(this.$textbox=this._textbox.create(t.bounds,t.style,t.text,t.options),this._active={element:e,context:t,provider:n},t.options&&t.options.resizable&&(this.resizable=!0),this._fire("activate")),!!t};var Vd={__depends__:[Ir],__init__:["directEditing"],directEditing:["type",Ot]},Ep=".entry",D_=1e3;function It(e,t,n){this._eventBus=t,this._overlays=n;var i=en(e&&e.scale)?e.scale:{min:1,max:1.5};this._overlaysConfig={position:{right:-9,top:-6},scale:i},this._current=null,this._init()}It.$inject=["config.contextPad","eventBus","overlays"];It.prototype._init=function(){var e=this._eventBus,t=this;e.on("selection.changed",function(n){var i=n.newSelection;i.length===1?t.open(i[0]):t.close()}),e.on("elements.delete",function(n){var i=n.elements;C(i,function(r){t.isOpen(r)&&t.close()})}),e.on("element.changed",function(n){var i=n.element,r=t._current;r&&r.element===i&&t.open(i,!0)})};It.prototype.registerProvider=function(e,t){t||(t=e,e=D_),this._eventBus.on("contextPad.getProviders",e,function(n){n.providers.push(t)})};It.prototype.getEntries=function(e){var t=this._getProviders(),n={};return C(t,function(i){var r=i.getContextPadEntries(e);ot(r)?n=r(n):C(r,function(a,o){n[o]=a})}),n};It.prototype.trigger=function(e,t,n){var i=this._current.element,r=this._current.entries,a,o,s,c=t.delegateTarget||t.target;if(!c)return t.preventDefault();if(a=r[St(c,"data-action")],o=a.action,s=t.originalEvent||t,ot(o)){if(e==="click")return o(s,i,n)}else if(o[e])return o[e](s,i,n);t.preventDefault()};It.prototype.open=function(e,t){!t&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))};It.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};It.prototype._updateAndOpen=function(e){var t=this.getEntries(e),n=this.getPad(e),i=n.html;C(t,function(r,a){var o=r.group||"default",s=Ce(r.html||'
'),c;St(s,"data-action",a),c=Oe("[data-group="+o+"]",i),c||(c=Ce('
'),i.appendChild(c)),c.appendChild(s),r.className&&N_(s,r.className),r.title&&St(s,"title",r.title),r.imageUrl&&s.appendChild(Ce(''))}),ze(i).add("open"),this._current={element:e,pad:n,entries:t},this._eventBus.fire("contextPad.open",{current:this._current})};It.prototype.getPad=function(e){if(this.isOpen())return this._current.pad;var t=this,n=this._overlays,i=Ce('
'),r=I({html:i},this._overlaysConfig);xt.bind(i,Ep,"click",function(o){t.trigger("click",o)}),xt.bind(i,Ep,"dragstart",function(o){t.trigger("dragstart",o)}),te.bind(i,"mousedown",function(o){o.stopPropagation()}),this._overlayId=n.add(e,"context-pad",r);var a=n.get(this._overlayId);return this._eventBus.fire("contextPad.create",{element:e,pad:a}),a};It.prototype.close=function(){!this.isOpen()||(this._overlays.remove(this._overlayId),this._overlayId=null,this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)};It.prototype.isOpen=function(e){return!!this._current&&(e?this._current.element===e:!0)};function N_(e,t){var n=ze(e),i=he(t)?t:t.split(/\s+/g);i.forEach(function(r){n.add(r)})}var O_={__depends__:[Ir,zc],contextPad:["type",It]},I_=["marker-start","marker-mid","marker-end"],k_=["circle","ellipse","line","path","polygon","polyline","rect"];function pi(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._styles=i,this._clonedMarkers={};var r=this;t.on("drag.cleanup",function(){C(r._clonedMarkers,function(a){Be(a)}),r._clonedMarkers={}})}pi.$inject=["elementRegistry","eventBus","canvas","styles"];pi.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)};pi.prototype.addDragger=function(e,t,n){n=n||this.getGfx(e);var i=fh(n),r=n.getBoundingClientRect();return this._cloneMarkers(Qa(i)),j(i,this._styles.cls("djs-dragger",[],{x:r.top,y:r.left})),ne(t,i),i};pi.prototype.addFrame=function(e,t){var n=Q("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return ne(t,n),n};pi.prototype._cloneMarkers=function(e){var t=this;if(e.childNodes)for(var n=0;n0,o=r&&Er(r)>0;return!a&&!o};Fe.prototype.open=function(e,t,n){var i=this._getProviders(t);if(!e)throw new Error("Element is missing");if(!i||!i.length)throw new Error("No registered providers for: "+t);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var r=this._current={className:t,element:e,position:n},a=this._getEntries(e,i),o=this._getHeaderEntries(e,i);r.entries=I({},a,o),r.container=this._createContainer(),Er(o)&&r.container.appendChild(this._createEntries(o,"djs-popup-header")),Er(a)&&r.container.appendChild(this._createEntries(a,"djs-popup-body"));var s=this._canvas,c=s.getContainer();this._attachContainer(r.container,c,n.cursor),this._bindAutoClose()};Fe.prototype.close=function(){!this.isOpen()||(this._emit("close"),this._unbindAutoClose(),rn(this._current.container),this._current.container=null)};Fe.prototype.isOpen=function(){return!!this._current.container};Fe.prototype.trigger=function(e){e.preventDefault();var t=e.delegateTarget||e.target,n=St(t,Yd),i=this._getEntry(n);if(i.action)return i.action.call(null,e,i)};Fe.prototype._getProviders=function(e){var t=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(t),t.providers};Fe.prototype._getEntries=function(e,t){var n={};return C(t,function(i){if(!i.getPopupMenuEntries){C(i.getEntries(e),function(a){var o=a.id;if(!o)throw new Error("every entry must have the id property set");n[o]=$n(a,["id"])});return}var r=i.getPopupMenuEntries(e);ot(r)?n=r(n):C(r,function(a,o){n[o]=a})}),n};Fe.prototype._getHeaderEntries=function(e,t){var n={};return C(t,function(i){if(!i.getPopupMenuHeaderEntries){if(!i.getHeaderEntries)return;C(i.getHeaderEntries(e),function(a){var o=a.id;if(!o)throw new Error("every entry must have the id property set");n[o]=$n(a,["id"])});return}var r=i.getPopupMenuHeaderEntries(e);ot(r)?n=r(n):C(r,function(a,o){n[o]=a})}),n};Fe.prototype._getEntry=function(e){var t=this._current.entries[e];if(!t)throw new Error("entry not found");return t};Fe.prototype._emit=function(e){this._eventBus.fire("popupMenu."+e)};Fe.prototype._createContainer=function(){var e=Ce('
'),t=this._current.position,n=this._current.className;return I(e.style,{position:"absolute",left:t.x+"px",top:t.y+"px",visibility:"hidden"}),ze(e).add(n),e};Fe.prototype._attachContainer=function(e,t,n){var i=this;xt.bind(e,".entry","click",function(r){i.trigger(r)}),this._updateScale(e),t.appendChild(e),n&&this._assureIsInbounds(e,n)};Fe.prototype._updateScale=function(e){var t=this._canvas.zoom(),n=this._config.scale,i,r,a=t;n!==!0&&(n===!1?(i=1,r=1):(i=n.min,r=n.max),en(i)&&tr&&(a=r)),W_(e,"scale("+a+")")};Fe.prototype._assureIsInbounds=function(e,t){var n=this._canvas,i=n._container.getBoundingClientRect(),r=e.offsetLeft,a=e.offsetTop,o=e.scrollWidth,s=e.scrollHeight,c={},u,l,p={x:t.x-i.left,y:t.y-i.top};r+o>i.width&&(c.x=!0),a+s>i.height&&(c.y=!0),c.x&&c.y?(u=p.x-o+"px",l=p.y-s+"px"):c.x?(u=p.x-o+"px",l=p.y+"px"):c.y&&p.y"),i=this;return ze(n).add(t),C(e,function(r,a){var o=i._createEntry(r,a);n.appendChild(o)}),n};Fe.prototype._createEntry=function(e,t){var n=Ce("
"),i=ze(n);if(i.add("entry"),e.className&&e.className.split(" ").forEach(function(a){i.add(a)}),St(n,Yd,t),e.label){var r=Ce("");r.textContent=e.label,n.appendChild(r)}return e.imageUrl&&n.appendChild(Ce('')),e.active===!0&&i.add("active"),e.disabled===!0&&i.add("disabled"),e.title&&(n.title=e.title),n};Fe.prototype._bindAutoClose=function(){this._eventBus.once(Kd,this.close,this)};Fe.prototype._unbindAutoClose=function(){this._eventBus.off(Kd,this.close,this)};function W_(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(n){e.style[n+"transform"]=t})}var U_={__init__:["popupMenu"],popupMenu:["type",Fe]};function $r(){}$r.prototype.get=function(){return this._data};$r.prototype.set=function(e){this._data=e};$r.prototype.clear=function(){var e=this._data;return delete this._data,e};$r.prototype.isEmpty=function(){return!this._data};var Y_={clipboard:["type",$r]};function Qc(e){var t=this;this._lastMoveEvent=null;function n(i){t._lastMoveEvent=i}e.on("canvas.init",function(i){var r=t._svg=i.svg;r.addEventListener("mousemove",n)}),e.on("canvas.destroy",function(){t._lastMouseEvent=null,t._svg.removeEventListener("mousemove",n)})}Qc.$inject=["eventBus"];Qc.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||K_(0,0)};function K_(e,t){var n=document.createEvent("MouseEvent"),i=e,r=t,a=e,o=t;return n.initMouseEvent&&n.initMouseEvent("mousemove",!0,!0,window,0,i,r,a,o,!1,!1,!1,!1,0,null),n}var Fr={__init__:["mouse"],mouse:["type",Qc]};function Yt(e,t,n,i,r,a,o,s){this._canvas=e,this._create=t,this._clipboard=n,this._elementFactory=i,this._eventBus=r,this._modeling=a,this._mouse=o,this._rules=s,r.on("copyPaste.copyElement",function(c){var u=c.descriptor,l=c.element,p=c.elements;u.priority=1,u.id=l.id;var h=_e(p,function(f){return f===l.parent});h&&(u.parent=l.parent.id),q_(l)&&(u.priority=2,u.host=l.host.id),Mo(l)&&(u.priority=3,u.source=l.source.id,u.target=l.target.id,u.waypoints=X_(l)),Do(l)&&(u.priority=4,u.labelTarget=l.labelTarget.id),C(["x","y","width","height"],function(f){ae(l[f])&&(u[f]=l[f])}),u.hidden=l.hidden,u.collapsed=l.collapsed}),r.on("copyPaste.pasteElements",function(c){var u=c.hints;I(u,{createElementsBehavior:!1})})}Yt.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"];Yt.prototype.copy=function(e){var t,n;return he(e)||(e=e?[e]:[]),t=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}),t===!1?n={}:n=this.createTree(he(t)?t:e),this._clipboard.set(n),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:n}),n};Yt.prototype.paste=function(e){var t=this._clipboard.get();if(!this._clipboard.isEmpty()){var n=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:n});var i=this._createElements(t);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,n);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:n||{}})}};Yt.prototype._paste=function(e,t,n,i){C(e,function(a){ae(a.x)||(a.x=0),ae(a.y)||(a.y=0)});var r=et(e);return C(e,function(a){Mo(a)&&(a.waypoints=Ye(a.waypoints,function(o){return{x:o.x-r.x-r.width/2,y:o.y-r.y-r.height/2}})),I(a,{x:a.x-r.x-r.width/2,y:a.y-r.y-r.height/2})}),this._modeling.createElements(e,n,t,I({},i))};Yt.prototype._createElements=function(e){var t=this,n=this._eventBus,i={},r=[];return C(e,function(a,o){a=Gt(a,"priority"),C(a,function(s){var c=I({},$n(s,["priority"]));i[s.parent]?c.parent=i[s.parent]:delete c.parent,n.fire("copyPaste.pasteElement",{cache:i,descriptor:c});var u;if(Mo(c)){c.source=i[s.source],c.target=i[s.target],u=i[s.id]=t.createConnection(c),r.push(u);return}if(Do(c)){c.labelTarget=i[c.labelTarget],u=i[s.id]=t.createLabel(c),r.push(u);return}c.host&&(c.host=i[c.host]),u=i[s.id]=t.createShape(c),r.push(u)})}),r};Yt.prototype.createConnection=function(e){var t=this._elementFactory.createConnection($n(e,["id"]));return t};Yt.prototype.createLabel=function(e){var t=this._elementFactory.createLabel($n(e,["id"]));return t};Yt.prototype.createShape=function(e){var t=this._elementFactory.createShape($n(e,["id"]));return t};Yt.prototype.hasRelations=function(e,t){var n,i,r;return!(Mo(e)&&(i=_e(t,zt({id:e.source.id})),r=_e(t,zt({id:e.target.id})),!i||!r)||Do(e)&&(n=_e(t,zt({id:e.labelTarget.id})),!n))};Yt.prototype.createTree=function(e){var t=this._rules,n=this,i={},r=[],a=mh(e);function o(u,l){return t.allowed("element.copy",{element:u,elements:l})}function s(u,l){var p=_e(r,function(h){return u===h.element});if(!p){r.push({element:u,depth:l});return}p.depth=120&&I(p,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:l("Divide into two Lanes"),action:{click:D(2)}}}),e.height>=180&&I(p,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:l("Divide into three Lanes"),action:{click:D(3)}}})),I(p,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:l("Add Lane below"),action:{click:function(b,_){n.addLane(_,"bottom")}}}})}m(h,"bpmn:FlowNode")&&(m(h,"bpmn:EventBasedGateway")?I(p,{"append.receive-task":x("bpmn:ReceiveTask","bpmn-icon-receive-task",l("Append ReceiveTask")),"append.message-intermediate-event":x("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",l("Append MessageIntermediateCatchEvent"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":x("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",l("Append TimerIntermediateCatchEvent"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":x("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",l("Append ConditionIntermediateCatchEvent"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":x("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",l("Append SignalIntermediateCatchEvent"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):Op(h,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?I(p,{"append.compensation-activity":x("bpmn:Task","bpmn-icon-task",l("Append compensation activity"),{isForCompensation:!0})}):!m(h,"bpmn:EndEvent")&&!h.isForCompensation&&!Op(h,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!_t(h)&&I(p,{"append.end-event":x("bpmn:EndEvent","bpmn-icon-end-event-none",l("Append EndEvent")),"append.gateway":x("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",l("Append Gateway")),"append.append-task":x("bpmn:Task","bpmn-icon-task",l("Append Task")),"append.intermediate-event":x("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",l("Append Intermediate/Boundary Event"))})),o.isEmpty(e,"bpmn-replace")||I(p,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:l("Change type"),action:{click:function(b,_){var M=I(y(_),{cursor:{x:b.x,y:b.y}});o.open(_,"bpmn-replace",M)}}}}),ye(h,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(p,{"append.text-annotation":x("bpmn:TextAnnotation","bpmn-icon-text-annotation"),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:l("Connect using "+(h.isForCompensation?"":"Sequence/MessageFlow or ")+"Association"),action:{click:f,dragstart:f}}}),m(h,"bpmn:TextAnnotation")&&I(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:l("Connect using Association"),action:{click:f,dragstart:f}}}),ye(h,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&I(p,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:l("Connect using DataInputAssociation"),action:{click:f,dragstart:f}}}),m(h,"bpmn:Group")&&I(p,{"append.text-annotation":x("bpmn:TextAnnotation","bpmn-icon-text-annotation")});var w=c.allowed("elements.delete",{elements:[e]});return he(w)&&(w=w[0]===e),w&&I(p,{delete:{group:"edit",className:"bpmn-icon-trash",title:l("Remove"),action:{click:d}}}),p};function Op(e,t,n){var i=e.$instanceOf(t),r=!1,a=e.eventDefinitions||[];return C(a,function(o){o.$type===n&&(r=!0)}),i&&r}var N0={__depends__:[Vd,O_,an,Zc,Ao,x0],__init__:["contextPadProvider"],contextPadProvider:["type",eu]},O0={horizontal:["x","width"],vertical:["y","height"]},Ip=5;function Sn(e){this._modeling=e,this._filters=[],this.registerFilter(function(t,n,i){var r=0,a=0,o;return C(t,function(s){s.waypoints||s.labelTarget||(r+=s[i],a+=1)}),o=Math.round(r/a),se(t,function(s){return s[i]=Math.min(t.min,t.max)&&Math.min(e.min,e.max)<=Math.max(t.min,t.max)};Sn.prototype._findRange=function(e){var t=e[this._axis],n=e[this._dimension];return{min:t+Ip,max:t+n-Ip}};var I0={__init__:["distributeElements"],distributeElements:["type",Sn]};function tv(e){e.registerFilter(function(t){return se(t,function(n){var i=ye(n,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:Participant","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(n.labelTarget||i)})})}tv.$inject=["distributeElements"];var k0={__depends__:[I0],__init__:["bpmnDistributeElements"],bpmnDistributeElements:["type",tv]},nv="is not a registered action",L0="is already registered";function Lt(e,t){this._actions={};var n=this;e.on("diagram.init",function(){n._registerDefaultActions(t),e.fire("editorActions.init",{editorActions:n})})}Lt.$inject=["eventBus","injector"];Lt.prototype._registerDefaultActions=function(e){var t=e.get("commandStack",!1),n=e.get("modeling",!1),i=e.get("selection",!1),r=e.get("zoomScroll",!1),a=e.get("copyPaste",!1),o=e.get("canvas",!1),s=e.get("rules",!1),c=e.get("keyboardMove",!1),u=e.get("keyboardMoveSelection",!1);t&&(this.register("undo",function(){t.undo()}),this.register("redo",function(){t.redo()})),a&&i&&this.register("copy",function(){var l=i.get();a.copy(l)}),a&&this.register("paste",function(){a.paste()}),r&&this.register("stepZoom",function(l){r.stepZoom(l.value)}),o&&this.register("zoom",function(l){o.zoom(l.value)}),n&&i&&s&&this.register("removeSelection",function(){var l=i.get();if(!!l.length){var p=s.allowed("elements.delete",{elements:l}),h;p!==!1&&(he(p)?h=p:h=l,h.length&&n.removeElements(h.slice()))}}),c&&this.register("moveCanvas",function(l){c.moveCanvas(l)}),u&&this.register("moveSelection",function(l){u.moveSelection(l.direction,l.accelerated)})};Lt.prototype.trigger=function(e,t){if(!this._actions[e])throw tu(e,nv);return this._actions[e](t)};Lt.prototype.register=function(e,t){var n=this;if(typeof e=="string")return this._registerAction(e,t);C(e,function(i,r){n._registerAction(r,i)})};Lt.prototype._registerAction=function(e,t){if(this.isRegistered(e))throw tu(e,L0);this._actions[e]=t};Lt.prototype.unregister=function(e){if(!this.isRegistered(e))throw tu(e,nv);this._actions[e]=void 0};Lt.prototype.getActions=function(){return Object.keys(this._actions)};Lt.prototype.isRegistered=function(e){return!!this._actions[e]};function tu(e,t){return new Error(e+" "+t)}var B0={__init__:["editorActions"],editorActions:["type",Lt]};function Oo(e){e.invoke(Lt,this)}Z(Oo,Lt);Oo.$inject=["injector"];Oo.prototype._registerDefaultActions=function(e){Lt.prototype._registerDefaultActions.call(this,e);var t=e.get("canvas",!1),n=e.get("elementRegistry",!1),i=e.get("selection",!1),r=e.get("spaceTool",!1),a=e.get("lassoTool",!1),o=e.get("handTool",!1),s=e.get("globalConnect",!1),c=e.get("distributeElements",!1),u=e.get("alignElements",!1),l=e.get("directEditing",!1),p=e.get("searchPad",!1),h=e.get("modeling",!1);t&&n&&i&&this._registerAction("selectElements",function(){var f=t.getRootElement(),d=n.filter(function(y){return y!==f});return i.select(d),d}),r&&this._registerAction("spaceTool",function(){r.toggle()}),a&&this._registerAction("lassoTool",function(){a.toggle()}),o&&this._registerAction("handTool",function(){o.toggle()}),s&&this._registerAction("globalConnectTool",function(){s.toggle()}),i&&c&&this._registerAction("distributeElements",function(f){var d=i.get(),y=f.type;d.length&&c.trigger(d,y)}),i&&u&&this._registerAction("alignElements",function(f){var d=i.get(),y=[],x=f.type;d.length&&(y=se(d,function(D){return!m(D,"bpmn:Lane")}),u.trigger(y,x))}),i&&h&&this._registerAction("setColor",function(f){var d=i.get();d.length&&h.setColor(d,f)}),i&&l&&this._registerAction("directEditing",function(){var f=i.get();f.length&&l.activate(f[0])}),p&&this._registerAction("find",function(){p.toggle()}),t&&h&&this._registerAction("moveToOrigin",function(){var f=t.getRootElement(),d,y;m(f,"bpmn:Collaboration")?y=n.filter(function(x){return m(x.parent,"bpmn:Collaboration")}):y=n.filter(function(x){return x!==f&&!m(x.parent,"bpmn:SubProcess")}),d=et(y),h.moveElements(y,{x:-d.x,y:-d.y},f)})};var $0={__depends__:[B0],editorActions:["type",Oo]};function iv(e){e.on(["create.init","shape.move.init"],function(t){var n=t.context,i=t.shape;ye(i,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(n.gridSnappingContext||(n.gridSnappingContext={}),n.gridSnappingContext.snapLocation="top-left")})}iv.$inject=["eventBus"];var Ha=10;function ws(e,t,n){return n||(n="round"),Math[n](e/t)*t}var F0=1200,H0=800;function Vn(e,t,n){var i=!n||n.active!==!1;this._eventBus=t;var r=this;t.on("diagram.init",H0,function(){r.setActive(i)}),t.on(["create.move","create.end","bendpoint.move.move","bendpoint.move.end","connect.move","connect.end","connectionSegment.move.move","connectionSegment.move.end","resize.move","resize.end","shape.move.move","shape.move.end"],F0,function(a){var o=a.originalEvent;if(!(!r.active||o&&bt(o))){var s=a.context,c=s.gridSnappingContext;c||(c=s.gridSnappingContext={}),["x","y"].forEach(function(u){var l={},p=z0(a,u,e);p&&(l.offset=p);var h=j0(a,u);h&&I(l,h),Di(a,u)||r.snapEvent(a,u,l)})}})}Vn.prototype.snapEvent=function(e,t,n){var i=this.snapValue(e[t],n);je(e,t,i)};Vn.prototype.getGridSpacing=function(){return Ha};Vn.prototype.snapValue=function(e,t){var n=0;t&&t.offset&&(n=t.offset),e+=n,e=ws(e,Ha);var i,r;return t&&t.min&&(i=t.min,ae(i)&&(i=ws(i+n,Ha,"ceil"),e=Math.max(e,i))),t&&t.max&&(r=t.max,ae(r)&&(r=ws(r+n,Ha,"floor"),e=Math.min(e,r))),e-=n,e};Vn.prototype.isActive=function(){return this.active};Vn.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})};Vn.prototype.toggleActive=function(){this.setActive(!this.active)};Vn.$inject=["elementRegistry","eventBus","config.gridSnapping"];function j0(e,t){var n=e.context,i=n.createConstraints,r=n.resizeConstraints||{},a=n.gridSnappingContext,o=a.snapConstraints;if(o&&o[t])return o[t];o||(o=a.snapConstraints={}),o[t]||(o[t]={});var s=n.direction;i&&(ja(t)?(o.x.min=i.left,o.x.max=i.right):(o.y.min=i.top,o.y.max=i.bottom));var c=r.min,u=r.max;return c&&(ja(t)?Lp(s)?o.x.max=c.left:o.x.min=c.right:kp(s)?o.y.max=c.top:o.y.min=c.bottom),u&&(ja(t)?Lp(s)?o.x.min=u.left:o.x.max=u.right:kp(s)?o.y.min=u.top:o.y.max=u.bottom),o[t]}function z0(e,t,n){var i=e.context,r=e.shape,a=i.gridSnappingContext,o=a.snapLocation,s=a.snapOffset;return s&&ae(s[t])||(s||(s=a.snapOffset={}),ae(s[t])||(s[t]=0),!r)||(n.get(r.id)||(ja(t)?s[t]+=r[t]+r.width/2:s[t]+=r[t]+r.height/2),!o)||(t==="x"?/left/.test(o)?s[t]-=r.width/2:/right/.test(o)&&(s[t]+=r.width/2):/top/.test(o)?s[t]-=r.height/2:/bottom/.test(o)&&(s[t]+=r.height/2)),s[t]}function ja(e){return e==="x"}function kp(e){return e.indexOf("n")!==-1}function Lp(e){return e.indexOf("w")!==-1}function hi(e,t){U.call(this,e),this._gridSnapping=t;var n=this;this.preExecute("shape.resize",function(i){var r=i.context,a=r.hints||{},o=a.autoResize;if(!!o){var s=r.shape,c=r.newBounds;Mt(o)?r.newBounds=n.snapComplex(c,o):r.newBounds=n.snapSimple(s,c)}})}hi.$inject=["eventBus","gridSnapping","modeling"];Z(hi,U);hi.prototype.snapSimple=function(e,t){var n=this._gridSnapping;return t.width=n.snapValue(t.width,{min:t.width}),t.height=n.snapValue(t.height,{min:t.height}),t.x=e.x+e.width/2-t.width/2,t.y=e.y+e.height/2-t.height/2,t};hi.prototype.snapComplex=function(e,t){return/w|e/.test(t)&&(e=this.snapHorizontally(e,t)),/n|s/.test(t)&&(e=this.snapVertically(e,t)),e};hi.prototype.snapHorizontally=function(e,t){var n=this._gridSnapping,i=/w/.test(t),r=/e/.test(t),a={};return a.width=n.snapValue(e.width,{min:e.width}),r&&(i?(a.x=n.snapValue(e.x,{max:e.x}),a.width+=n.snapValue(e.x-a.x,{min:e.x-a.x})):e.x=e.x+e.width-a.width),I(e,a),e};hi.prototype.snapVertically=function(e,t){var n=this._gridSnapping,i=/n/.test(t),r=/s/.test(t),a={};return a.height=n.snapValue(e.height,{min:e.height}),i&&(r?(a.y=n.snapValue(e.y,{max:e.y}),a.height+=n.snapValue(e.y-a.y,{min:e.y-a.y})):e.y=e.y+e.height-a.height),I(e,a),e};var G0=2e3;function rv(e,t){e.on(["spaceTool.move","spaceTool.end"],G0,function(n){var i=n.context;if(!!i.initialized){var r=i.axis,a;r==="x"?(a=t.snapValue(n.dx),n.x=n.x+a-n.dx,n.dx=a):(a=t.snapValue(n.dy),n.y=n.y+a-n.dy,n.dy=a)}})}rv.$inject=["eventBus","gridSnapping"];var V0={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",hi],gridSnappingSpaceToolBehavior:["type",rv]},W0={__depends__:[V0],__init__:["gridSnapping"],gridSnapping:["type",Vn]},U0=2e3;function av(e,t){e.on("autoPlace",U0,function(n){var i=n.source,r=ce(i),a=n.shape,o=Td(i,a);return["x","y"].forEach(function(s){var c={};o[s]!==r[s]&&(o[s]>r[s]?c.min=o[s]:c.max=o[s],m(a,"bpmn:TextAnnotation")&&(Y0(s)?c.offset=-a.width/2:c.offset=-a.height/2),o[s]=t.snapValue(o[s],c))}),o})}av.$inject=["eventBus","gridSnapping"];function Y0(e){return e==="x"}var K0=1750;function ov(e,t,n){t.on(["create.start","shape.move.start"],K0,function(i){var r=i.context,a=r.shape,o=e.getRootElement();if(!(!m(a,"bpmn:Participant")||!m(o,"bpmn:Process")||!o.children.length)){var s=r.createConstraints;!s||(a.width=n.snapValue(a.width,{min:a.width}),a.height=n.snapValue(a.height,{min:a.height}))}})}ov.$inject=["canvas","eventBus","gridSnapping"];var q0=3e3;function Io(e,t,n){U.call(this,e),this._gridSnapping=t;var i=this;this.postExecuted(["connection.create","connection.layout"],q0,function(r){var a=r.context,o=a.connection,s=a.hints||{},c=o.waypoints;s.connectionStart||s.connectionEnd||s.createElementsBehavior===!1||!X0(c)||n.updateWaypoints(o,i.snapMiddleSegments(c))})}Io.$inject=["eventBus","gridSnapping","modeling"];Z(Io,U);Io.prototype.snapMiddleSegments=function(e){var t=this._gridSnapping,n;e=e.slice();for(var i=1;i3}function Z0(e){return e==="h"}function Q0(e){return e==="v"}function J0(e,t,n){var i=dn(t,n),r={};return Z0(i)&&(r.y=e.snapValue(t.y)),Q0(i)&&(r.x=e.snapValue(t.x)),("x"in r||"y"in r)&&(t=I({},t,r),n=I({},n,r)),[t,n]}var ew={__init__:["gridSnappingAutoPlaceBehavior","gridSnappingCreateParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",av],gridSnappingCreateParticipantBehavior:["type",ov],gridSnappingLayoutConnectionBehavior:["type",Io]},tw={__depends__:[W0,ew],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",iv]},nw=30,iw=30;function jr(e,t){this._interactionEvents=t;var n=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],function(i){var r=i.element,a=i.gfx;if(m(r,"bpmn:Lane"))return n.createParticipantHit(r,a);if(m(r,"bpmn:Participant"))return Se(r)?n.createParticipantHit(r,a):n.createDefaultHit(r,a);if(m(r,"bpmn:SubProcess"))return Se(r)?n.createSubProcessHit(r,a):n.createDefaultHit(r,a)})}jr.$inject=["eventBus","interactionEvents"];jr.prototype.createDefaultHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createDefaultHit(e,t),!0};jr.prototype.createParticipantHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:nw,height:e.height}),!0};jr.prototype.createSubProcessHit=function(e,t){return this._interactionEvents.removeHits(t),this._interactionEvents.createBoxHit(t,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(t,"all",{width:e.width,height:iw}),!0};var rw={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",jr]};function ko(e){e.invoke(Vi,this)}Z(ko,Vi);ko.$inject=["injector"];ko.prototype.registerBindings=function(e,t){Vi.prototype.registerBindings.call(this,e,t);function n(i,r){t.isRegistered(i)&&e.addListener(r)}n("selectElements",function(i){var r=i.keyEvent;if(e.isKey(["a","A"],r)&&e.isCmd(r))return t.trigger("selectElements"),!0}),n("find",function(i){var r=i.keyEvent;if(e.isKey(["f","F"],r)&&e.isCmd(r))return t.trigger("find"),!0}),n("spaceTool",function(i){var r=i.keyEvent;if(!e.hasModifier(r)&&e.isKey(["s","S"],r))return t.trigger("spaceTool"),!0}),n("lassoTool",function(i){var r=i.keyEvent;if(!e.hasModifier(r)&&e.isKey(["l","L"],r))return t.trigger("lassoTool"),!0}),n("handTool",function(i){var r=i.keyEvent;if(!e.hasModifier(r)&&e.isKey(["h","H"],r))return t.trigger("handTool"),!0}),n("globalConnectTool",function(i){var r=i.keyEvent;if(!e.hasModifier(r)&&e.isKey(["c","C"],r))return t.trigger("globalConnectTool"),!0}),n("directEditing",function(i){var r=i.keyEvent;if(!e.hasModifier(r)&&e.isKey(["e","E"],r))return t.trigger("directEditing"),!0})};var aw={__depends__:[Gc],__init__:["keyboardBindings"],keyboardBindings:["type",ko]},ow={moveSpeed:1,moveSpeedAccelerated:10},sw=1500,Bp="left",$p="up",Fp="right",Hp="down",cw={ArrowLeft:Bp,Left:Bp,ArrowUp:$p,Up:$p,ArrowRight:Fp,Right:Fp,ArrowDown:Hp,Down:Hp},uw={left:function(e){return{x:-e,y:0}},up:function(e){return{x:0,y:-e}},right:function(e){return{x:e,y:0}},down:function(e){return{x:0,y:e}}};function sv(e,t,n,i,r){var a=this;this._config=I({},ow,e||{}),t.addListener(sw,function(o){var s=o.keyEvent,c=cw[s.key];if(!!c&&!t.isCmd(s)){var u=t.isShift(s);return a.moveSelection(c,u),!0}}),this.moveSelection=function(o,s){var c=r.get();if(!!c.length){var u=this._config[s?"moveSpeedAccelerated":"moveSpeed"],l=uw[o](u),p=i.allowed("elements.move",{shapes:c});p&&n.moveElements(c,l)}}}sv.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];var lw={__depends__:[Gc,an],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",sv]};function cv(e,t,n,i){e.on("element.changed",function(r){var a=r.element;(a.parent||a===t.getRootElement())&&(r.gfx=n.getGraphics(a)),r.gfx&&e.fire(yh(a)+".changed",r)}),e.on("elements.changed",function(r){var a=r.elements;a.forEach(function(o){e.fire("element.changed",{element:o})}),i.updateContainments(a)}),e.on("shape.changed",function(r){i.update("shape",r.element,r.gfx)}),e.on("connection.changed",function(r){i.update("connection",r.element,r.gfx)})}cv.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var uv={__init__:["changeSupport"],changeSupport:["type",cv]},jp=10;function zr(e,t,n,i){this._dragging=i,this._rules=t;var r=this;function a(c,u){var l=c.shape,p=c.direction,h=c.resizeConstraints,f;c.delta=u,f=w0(l,p,u),c.newBounds=T0(f,h),c.canExecute=r.canResize(c)}function o(c){var u=c.resizeConstraints,l=c.minBounds;u===void 0&&(l===void 0&&(l=r.computeMinResizeBox(c)),c.resizeConstraints={min:ee(l)})}function s(c){var u=c.shape,l=c.canExecute,p=c.newBounds;if(l){if(p=Sh(p),!pw(u,p))return;n.resizeShape(u,p)}}e.on("resize.start",function(c){o(c.context)}),e.on("resize.move",function(c){var u={x:c.dx,y:c.dy};a(c.context,u)}),e.on("resize.end",function(c){s(c.context)})}zr.prototype.canResize=function(e){var t=this._rules,n=Vt(e,["newBounds","shape","delta","direction"]);return t.allowed("shape.resize",n)};zr.prototype.activate=function(e,t,n){var i=this._dragging,r,a;if(typeof n=="string"&&(n={direction:n}),r=I({shape:t},n),a=r.direction,!a)throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");i.init(e,lv(t,a),"resize",{autoActivate:!0,cursor:fw(a),data:{shape:t,context:r}})};zr.prototype.computeMinResizeBox=function(e){var t=e.shape,n=e.direction,i,r;return i=e.minDimensions||{width:jp,height:jp},r=ev(t,e.childrenBoxPadding),R0(n,t,i,r)};zr.$inject=["eventBus","rules","modeling","dragging"];function pw(e,t){return e.x!==t.x||e.y!==t.y||e.width!==t.width||e.height!==t.height}function lv(e,t){var n=ce(e),i=ee(e),r={x:n.x,y:n.y};return t.indexOf("n")!==-1?r.y=i.top:t.indexOf("s")!==-1&&(r.y=i.bottom),t.indexOf("e")!==-1?r.x=i.right:t.indexOf("w")!==-1&&(r.x=i.left),r}function fw(e){var t="resize-";return e==="n"||e==="s"?t+"ns":e==="e"||e==="w"?t+"ew":e==="nw"||e==="se"?t+"nwse":t+"nesw"}var zp="djs-resizing",Gp="resize-not-ok",hw=500;function pv(e,t,n){function i(a){var o=a.shape,s=a.newBounds,c=a.frame;c||(c=a.frame=n.addFrame(o,t.getActiveLayer()),t.addMarker(o,zp)),s.width>5&&j(c,{x:s.x,width:s.width}),s.height>5&&j(c,{y:s.y,height:s.height}),a.canExecute?fe(c).remove(Gp):fe(c).add(Gp)}function r(a){var o=a.shape,s=a.frame;s&&Be(a.frame),t.removeMarker(o,zp)}e.on("resize.move",hw,function(a){i(a.context)}),e.on("resize.cleanup",function(a){r(a.context)})}pv.$inject=["eventBus","canvas","previewSupport"];var _a=-6,wa=4,Sa=20,or="djs-resizer",dw=["n","w","s","e","nw","ne","se","sw"];function Wn(e,t,n,i){this._resize=i,this._canvas=t;var r=this;e.on("selection.changed",function(a){var o=a.newSelection;r.removeResizers(),o.length===1&&C(o,ft(r.addResizer,r))}),e.on("shape.changed",function(a){var o=a.element;n.isSelected(o)&&(r.removeResizers(),r.addResizer(o))})}Wn.prototype.makeDraggable=function(e,t,n){var i=this._resize;function r(a){jn(a)&&i.activate(a,e,n)}te.bind(t,"mousedown",r),te.bind(t,"touchstart",r)};Wn.prototype._createResizer=function(e,t,n,i){var r=this._getResizersParent(),a=vw(i),o=Q("g");fe(o).add(or),fe(o).add(or+"-"+e.id),fe(o).add(or+"-"+i),ne(r,o);var s=Q("rect");j(s,{x:-wa/2+a.x,y:-wa/2+a.y,width:wa,height:wa}),fe(s).add(or+"-visual"),ne(o,s);var c=Q("rect");return j(c,{x:-Sa/2+a.x,y:-Sa/2+a.y,width:Sa,height:Sa}),fe(c).add(or+"-hit"),ne(o,c),Ys(o,t,n),o};Wn.prototype.createResizer=function(e,t){var n=lv(e,t),i=this._createResizer(e,n.x,n.y,t);this.makeDraggable(e,i,t)};Wn.prototype.addResizer=function(e){var t=this,n=this._resize;!n.canResize({shape:e})||C(dw,function(i){t.createResizer(e,i)})};Wn.prototype.removeResizers=function(){var e=this._getResizersParent();Tc(e)};Wn.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")};Wn.$inject=["eventBus","canvas","selection","resize"];function vw(e){var t={x:0,y:0};return e.indexOf("e")!==-1?t.x=-_a:e.indexOf("w")!==-1&&(t.x=_a),e.indexOf("s")!==-1?t.y=-_a:e.indexOf("n")!==-1&&(t.y=_a),t}var fv={__depends__:[sn,_n,Br],__init__:["resize","resizePreview","resizeHandles"],resize:["type",zr],resizePreview:["type",pv],resizeHandles:["type",Wn]};function oc(e,t){var n=t.create("bpmn:CategoryValue"),i=t.create("bpmn:Category",{categoryValue:[n]});return Le(e.get("rootElements"),i),Y(i).$parent=e,Y(n).$parent=i,n}function Gr(e,t,n,i,r,a,o){this._bpmnFactory=t,this._canvas=n,this._modeling=r,this._textRenderer=o,i.registerProvider(this),e.on("element.dblclick",function(c){s(c.element,!0)}),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open"],function(c){i.isActive()&&i.complete()}),e.on(["commandStack.changed"],function(c){i.isActive()&&i.cancel()}),e.on("directEditing.activate",function(c){a.removeResizers()}),e.on("create.end",500,function(c){var u=c.context,l=u.shape,p=c.context.canExecute,h=c.isTouch;h||!p||u.hints&&u.hints.createElementsBehavior===!1||s(l)}),e.on("autoPlace.end",500,function(c){s(c.shape)});function s(c,u){(u||ye(c,["bpmn:Task","bpmn:TextAnnotation"])||nu(c))&&i.activate(c)}}Gr.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"];Gr.prototype.activate=function(e){var t=Wt(e);if(t!==void 0){var n={text:t},i=this.getEditingBBox(e);I(n,i);var r={};return(ye(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||nu(e))&&I(r,{centerVertically:!0}),Ai(e)&&I(r,{autoResize:!0}),m(e,"bpmn:TextAnnotation")&&I(r,{resizable:!0,autoResize:!0}),I(n,{options:r}),n}};Gr.prototype.getEditingBBox=function(e){var t=this._canvas,n=e.label||e,i=t.getAbsoluteBBox(n),r={x:i.x+i.width/2,y:i.y+i.height/2},a={x:i.x,y:i.y},o=t.zoom(),s=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),u=c.fontSize*o,l=c.lineHeight,p=s.fontSize*o,h=s.lineHeight,f={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};(m(e,"bpmn:Lane")||yw(e))&&(I(a,{width:i.height,height:30*o,x:i.x-i.height/2+15*o,y:r.y-30*o/2}),I(f,{fontSize:p+"px",lineHeight:h,paddingTop:7*o+"px",paddingBottom:7*o+"px",paddingLeft:5*o+"px",paddingRight:5*o+"px",transform:"rotate(-90deg)"})),(ye(e,["bpmn:Task","bpmn:CallActivity"])||gw(e)||nu(e))&&(I(a,{width:i.width,height:i.height}),I(f,{fontSize:p+"px",lineHeight:h,paddingTop:7*o+"px",paddingBottom:7*o+"px",paddingLeft:5*o+"px",paddingRight:5*o+"px"})),mw(e)&&(I(a,{width:i.width,x:i.x}),I(f,{fontSize:p+"px",lineHeight:h,paddingTop:7*o+"px",paddingBottom:7*o+"px",paddingLeft:5*o+"px",paddingRight:5*o+"px"}));var d=90*o,y=7*o,x=4*o;if(n.labelTarget&&(I(a,{width:d,height:i.height+y+x,x:r.x-d/2,y:i.y-y}),I(f,{fontSize:u+"px",lineHeight:l,paddingTop:y+"px",paddingBottom:x+"px"})),Ai(n)&&!_o(n)&&!Qe(n)){var D=wo(e),A=t.getAbsoluteBBox({x:D.x,y:D.y,width:0,height:0}),w=u+y+x;I(a,{width:d,height:w,x:A.x-d/2,y:A.y-w/2}),I(f,{fontSize:u+"px",lineHeight:l,paddingTop:y+"px",paddingBottom:x+"px"})}return m(e,"bpmn:TextAnnotation")&&(I(a,{width:i.width,height:i.height,minWidth:30*o,minHeight:10*o}),I(f,{textAlign:"left",paddingTop:5*o+"px",paddingBottom:7*o+"px",paddingLeft:7*o+"px",paddingRight:5*o+"px",fontSize:p+"px",lineHeight:h})),{bounds:a,style:f}};Gr.prototype.update=function(e,t,n,i){var r,a;if(m(e,"bpmn:TextAnnotation")&&(a=this._canvas.getAbsoluteBBox(e),r={x:e.x,y:e.y,width:e.width/a.width*i.width,height:e.height/a.height*i.height}),m(e,"bpmn:Group")){var o=Y(e);if(!o.categoryValueRef){var s=this._canvas.getRootElement(),c=Y(s).$parent,u=oc(c,this._bpmnFactory);Y(e).categoryValueRef=u}}Ew(t)&&(t=null),this._modeling.updateLabel(e,t,r)};function nu(e){return m(e,"bpmn:SubProcess")&&!Se(e)}function mw(e){return m(e,"bpmn:SubProcess")&&Se(e)}function gw(e){return m(e,"bpmn:Participant")&&!Se(e)}function yw(e){return m(e,"bpmn:Participant")&&Se(e)}function Ew(e){return!e||!e.trim()}var Vp="djs-element-hidden",Wp="djs-label-hidden";function hv(e,t,n,i){var r=this,a=t.getDefaultLayer(),o,s,c;e.on("directEditing.activate",function(u){var l=u.active;if(o=l.element.label||l.element,m(o,"bpmn:TextAnnotation")){s=t.getAbsoluteBBox(o),c=Q("g");var p=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:o.height,position:{mx:0,my:0}}),h=r.path=Q("path");j(h,{d:p,strokeWidth:2,stroke:bw(o)}),ne(c,h),ne(a,c),vt(c,o.x,o.y)}m(o,"bpmn:TextAnnotation")||o.labelTarget?t.addMarker(o,Vp):(m(o,"bpmn:Task")||m(o,"bpmn:CallActivity")||m(o,"bpmn:SubProcess")||m(o,"bpmn:Participant"))&&t.addMarker(o,Wp)}),e.on("directEditing.resize",function(u){if(m(o,"bpmn:TextAnnotation")){var l=u.height,p=u.dy,h=Math.max(o.height/s.height*(l+p),0),f=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:o.width,containerHeight:h,position:{mx:0,my:0}});j(r.path,{d:f})}}),e.on(["directEditing.complete","directEditing.cancel"],function(u){var l=u.active;l&&(t.removeMarker(l.element.label||l.element,Vp),t.removeMarker(o,Wp)),o=void 0,s=void 0,c&&(Be(c),c=void 0)})}hv.$inject=["eventBus","canvas","elementRegistry","pathMap"];function bw(e,t){var n=Y(e);return n.di.get("stroke")||t||"black"}var xw={__depends__:[uv,fv,Vd],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",Gr],labelEditingPreview:["type",hv]},iu=["top","bottom","left","right"],Ta=10;function ru(e,t){U.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(r){var a=r.context,o=a.connection,s=o.source,c=o.target,u=a.hints||{};u.createElementsBehavior!==!1&&(n(s),n(c))}),this.postExecuted(["label.create"],function(r){var a=r.context,o=a.shape,s=a.hints||{};s.createElementsBehavior!==!1&&n(o.labelTarget)}),this.postExecuted(["elements.create"],function(r){var a=r.context,o=a.elements,s=a.hints||{};s.createElementsBehavior!==!1&&o.forEach(function(c){n(c)})});function n(r){if(!!_o(r)){var a=Sw(r);!a||i(r,a)}}function i(r,a){var o=ce(r),s=r.label,c=ce(s);if(!!s.parent){var u=ee(r),l;switch(a){case"top":l={x:o.x,y:u.top-Ta-s.height/2};break;case"left":l={x:u.left-Ta-s.width/2,y:o.y};break;case"bottom":l={x:o.x,y:u.bottom+Ta+s.height/2};break;case"right":l={x:u.right+Ta+s.width/2,y:o.y};break}var p=tn(l,c);t.moveShape(s,p)}}}Z(ru,U);ru.$inject=["eventBus","modeling"];function _w(e){var t=e.host,n=ce(e),i=tt(n,t),r;i.indexOf("-")>=0?r=i.split("-"):r=[i];var a=iu.filter(function(o){return r.indexOf(o)===-1});return a}function ww(e){var t=ce(e),n=[].concat(e.incoming.map(function(i){return i.waypoints[i.waypoints.length-2]}),e.outgoing.map(function(i){return i.waypoints[1]})).map(function(i){return dv(t,i)});return n}function Sw(e){var t=ce(e.label),n=ce(e),i=dv(n,t);if(!!Tw(i)){var r=ww(e);if(e.host){var a=_w(e);r=r.concat(a)}var o=iu.filter(function(s){return r.indexOf(s)===-1});if(o.indexOf(i)===-1)return o[0]}}function dv(e,t){return tt(t,e,5)}function Tw(e){return iu.indexOf(e)!==-1}function au(e,t,n){U.call(this,e),this.preExecute("shape.append",function(i){var r=i.source,a=i.shape;i.position||(m(a,"bpmn:TextAnnotation")?i.position={x:r.x+r.width/2+75,y:r.y-50-a.height/2}:i.position={x:r.x+r.width+80+a.width/2,y:r.y+r.height/2})},!0)}Z(au,U);au.$inject=["eventBus","elementFactory","bpmnRules"];function ou(e,t){e.invoke(U,this),this.postExecute("shape.move",function(n){var i=n.newParent,r=n.shape,a=se(r.incoming.concat(r.outgoing),function(o){return m(o,"bpmn:Association")});C(a,function(o){t.moveConnection(o,{x:0,y:0},i)})},!0)}Z(ou,U);ou.$inject=["injector","modeling"];var Up=500;function Lo(e,t){t.invoke(U,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",Up,function(i){var r=i.elements;r=r.filter(function(a){var o=a.host;return Yp(a,o)}),r.length===1&&r.map(function(a){return r.indexOf(a)}).forEach(function(a){var o=r[a];i.elements[a]=n.replaceShape(r[a],o)})},!0),this.preExecute("elements.move",Up,function(i){var r=i.shapes,a=i.newHost;if(r.length===1){var o=r[0];Yp(o,a)&&(i.shapes=[n.replaceShape(o,a)])}},!0)}Lo.$inject=["bpmnReplace","injector"];Z(Lo,U);Lo.prototype.replaceShape=function(e,t){var n=Rw(e),i={type:"bpmn:BoundaryEvent",host:t};return n&&(i.eventDefinitionType=n.$type),this._bpmnReplace.replaceElement(e,i,{layoutConnection:!1})};function Rw(e){var t=Y(e),n=t.eventDefinitions;return n&&n[0]}function Yp(e,t){return!Qe(e)&&ye(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!t}var Cw=2e3;function su(e,t,n){U.call(this,e);function i(r){return se(r.attachers,function(a){return m(a,"bpmn:BoundaryEvent")})}this.postExecute("connection.create",function(r){var a=r.context.source,o=r.context.target,s=i(o);m(a,"bpmn:EventBasedGateway")&&m(o,"bpmn:ReceiveTask")&&s.length>0&&n.removeElements(s)}),this.postExecute("connection.reconnect",function(r){var a=r.context.oldSource,o=r.context.newSource;m(a,"bpmn:Gateway")&&m(o,"bpmn:EventBasedGateway")&&C(o.outgoing,function(s){var c=s.target,u=i(c);m(c,"bpmn:ReceiveTask")&&u.length>0&&n.removeElements(u)})}),e.on("moddleCopy.canCopyProperty",Cw,function(r){var a=r.parent,o=r.property,s=r.propertyName,c=t.getPropertyDescriptor(a,s);c&&c.isReference&&m(o,"bpmn:RootElement")&&a.set(s,o)})}su.$inject=["eventBus","moddle","modeling"];Z(su,U);var Pw=500;function cu(e,t,n,i,r){n.invoke(U,this);function a(l){return ye(l,["bpmn:ReceiveTask","bpmn:SendTask"])||Aw(l,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function o(l){var p=e.getDefinitions(),h=p.get("rootElements");return!!_e(h,zt({id:l.id}))}function s(l){if(m(l,"bpmn:ErrorEventDefinition"))return"errorRef";if(m(l,"bpmn:EscalationEventDefinition"))return"escalationRef";if(m(l,"bpmn:MessageEventDefinition"))return"messageRef";if(m(l,"bpmn:SignalEventDefinition"))return"signalRef"}function c(l){if(ye(l,["bpmn:ReceiveTask","bpmn:SendTask"]))return l.get("messageRef");var p=l.get("eventDefinitions"),h=p[0];return h.get(s(h))}function u(l,p){if(ye(l,["bpmn:ReceiveTask","bpmn:SendTask"]))return l.set("messageRef",p);var h=l.get("eventDefinitions"),f=h[0];return f.set(s(f),p)}this.executed("shape.create",function(l){var p=l.shape;if(!!a(p)){var h=Y(p),f=c(h),d;f&&!o(f)&&(d=e.getDefinitions().get("rootElements"),Le(d,f),l.addedRootElement=f)}},!0),this.reverted("shape.create",function(l){var p=l.addedRootElement;if(!!p){var h=e.getDefinitions().get("rootElements");ke(h,p)}},!0),t.on("copyPaste.copyElement",function(l){var p=l.descriptor,h=l.element;if(!!a(h)){var f=Y(h),d=c(f);d&&(p.referencedRootElement=d)}}),t.on("copyPaste.pasteElement",Pw,function(l){var p=l.descriptor,h=p.businessObject;if(!!a(h)){var f=p.referencedRootElement;!f||(o(f)||(f=i.copyElement(f,r.create(f.$type))),u(h,f))}})}cu.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"];Z(cu,U);function Aw(e,t){return he(t)||(t=[t]),si(t,function(n){return Eo(e,n)})}function uu(e){e.invoke(U,this),this.preExecute("shape.create",1500,function(t){var n=t.context,i=n.parent,r=n.shape;m(i,"bpmn:Lane")&&!m(r,"bpmn:Lane")&&(n.parent=Ja(i,"bpmn:Participant"))})}uu.$inject=["injector"];Z(uu,U);var Ra=1500,Mw=2e3;function vv(e,t,n){t.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],Ra,function(i){var r=i.context,a=r.shape||i.shape,o=i.hover;m(o,"bpmn:Lane")&&!ye(a,["bpmn:Lane","bpmn:Participant"])&&(i.hover=jt(o),i.hoverGfx=e.getGraphics(i.hover));var s=n.getRootElement();o!==s&&(a.labelTarget||m(a,"bpmn:Group"))&&(i.hover=s,i.hoverGfx=e.getGraphics(i.hover))}),t.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],Ra,function(i){var r=i.hover;m(r,"bpmn:Lane")&&(i.hover=jt(r)||r,i.hoverGfx=e.getGraphics(i.hover))}),t.on(["bendpoint.move.hover"],Ra,function(i){var r=i.context,a=i.hover,o=r.type;m(a,"bpmn:Lane")&&/reconnect/.test(o)&&(i.hover=jt(a)||a,i.hoverGfx=e.getGraphics(i.hover))}),t.on(["connect.start"],Ra,function(i){var r=i.context,a=r.start;m(a,"bpmn:Lane")&&(r.start=jt(a)||a)}),t.on("shape.move.start",Mw,function(i){var r=i.shape;m(r,"bpmn:Lane")&&(i.shape=jt(r)||r)})}vv.$inject=["elementRegistry","eventBus","canvas"];function lu(e,t,n){U.call(this,e),this.preExecute("shape.create",function(i){var r=i.context,a=r.shape;if(m(a,"bpmn:DataObjectReference")&&a.type!=="label"){var o=t.create("bpmn:DataObject");a.businessObject.dataObjectRef=o}})}lu.$inject=["eventBus","bpmnFactory","moddle"];Z(lu,U);var sc=20,cc=20,mv=30,Ca=2e3;function pu(e,t,n){U.call(this,t),t.on(["create.start","shape.move.start"],Ca,function(r){var a=r.context,o=a.shape,s=e.getRootElement();if(!(!m(o,"bpmn:Participant")||!m(s,"bpmn:Process")||!s.children.length)){var c=s.children.filter(function(p){return!m(p,"bpmn:Group")&&!Qe(p)&&!Ow(p)});if(!!c.length){var u=et(c),l=Dw(o,u);I(o,l),a.createConstraints=Nw(o,u)}}}),t.on("create.start",Ca,function(r){var a=r.context,o=a.shape,s=e.getRootElement(),c=e.getGraphics(s);function u(l){l.element=s,l.gfx=c}m(o,"bpmn:Participant")&&m(s,"bpmn:Process")&&(t.on("element.hover",Ca,u),t.once("create.cleanup",function(){t.off("element.hover",u)}))});function i(){var r=e.getRootElement();return m(r,"bpmn:Collaboration")?r:n.makeCollaboration()}this.preExecute("elements.create",Ca,function(r){var a=r.elements,o=r.parent,s=Iw(a),c;s&&m(o,"bpmn:Process")&&(r.parent=i(),c=r.hints=r.hints||{},c.participant=s,c.process=o,c.processRef=Y(s).get("processRef"))},!0),this.preExecute("shape.create",function(r){var a=r.parent,o=r.shape;m(o,"bpmn:Participant")&&m(a,"bpmn:Process")&&(r.parent=i(),r.process=a,r.processRef=Y(o).get("processRef"))},!0),this.execute("shape.create",function(r){var a=r.hints||{},o=r.process||a.process,s=r.shape,c=a.participant;o&&(!c||s===c)&&Y(s).set("processRef",Y(o))},!0),this.revert("shape.create",function(r){var a=r.hints||{},o=r.process||a.process,s=r.processRef||a.processRef,c=r.shape,u=a.participant;o&&(!u||c===u)&&Y(c).set("processRef",s)},!0),this.postExecute("shape.create",function(r){var a=r.hints||{},o=r.process||r.hints.process,s=r.shape,c=a.participant;if(o){var u=o.children.slice();c?s===c&&n.moveElements(u,{x:0,y:0},c):n.moveElements(u,{x:0,y:0},s)}},!0)}pu.$inject=["canvas","eventBus","modeling"];Z(pu,U);function Dw(e,t){t={width:t.width+sc*2+mv,height:t.height+cc*2};var n=Math.max(e.width,t.width),i=Math.max(e.height,t.height);return{x:-n/2,y:-i/2,width:n,height:i}}function Nw(e,t){return t=ee(t),{bottom:t.top+e.height/2-cc,left:t.right-e.width/2+sc,top:t.bottom-e.height/2+cc,right:t.left+e.width/2-sc-mv}}function Ow(e){return!!e.waypoints}function Iw(e){return _e(e,function(t){return m(t,"bpmn:Participant")})}var Kp="__targetRef_placeholder";function fu(e,t){U.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],qp(a)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],qp(a));function n(o,s,c){var u=o.get("dataInputAssociations");return _e(u,function(l){return l!==c&&l.targetRef===s})}function i(o,s){var c=o.get("properties"),u=_e(c,function(l){return l.name===Kp});return!u&&s&&(u=t.create("bpmn:Property",{name:Kp}),Le(c,u)),u}function r(o,s){var c=i(o);!c||n(o,c,s)||ke(o.get("properties"),c)}function a(o){var s=o.context,c=s.connection,u=c.businessObject,l=c.target,p=l&&l.businessObject,h=s.newTarget,f=h&&h.businessObject,d=s.oldTarget||s.target,y=d&&d.businessObject,x=c.businessObject,D;y&&y!==p&&r(y,u),f&&f!==p&&r(f,u),p?(D=i(p,!0),x.targetRef=D):x.targetRef=null}}fu.$inject=["eventBus","bpmnFactory"];Z(fu,U);function qp(e){return function(t){var n=t.context,i=n.connection;if(m(i,"bpmn:DataInputAssociation"))return e(t)}}function Bo(e){this._bpmnUpdater=e}Bo.$inject=["bpmnUpdater"];Bo.prototype.execute=function(e){var t=e.dataStoreBo,n=e.newSemanticParent,i=e.newDiParent;e.oldSemanticParent=t.$parent,e.oldDiParent=t.di.$parent,this._bpmnUpdater.updateSemanticParent(t,n),this._bpmnUpdater.updateDiParent(t.di,i)};Bo.prototype.revert=function(e){var t=e.dataStoreBo,n=e.oldSemanticParent,i=e.oldDiParent;this._bpmnUpdater.updateSemanticParent(t,n),this._bpmnUpdater.updateDiParent(t.di,i)};function hu(e,t,n,i){U.call(this,i),t.registerHandler("dataStore.updateContainment",Bo);function r(){return n.filter(function(s){return m(s,"bpmn:Participant")&&Y(s).processRef})[0]}function a(s){return s.children.filter(function(c){return m(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function o(s,c){var u=s.businessObject||s;if(c=c||r(),c){var l=c.businessObject||c;t.execute("dataStore.updateContainment",{dataStoreBo:u,newSemanticParent:l.processRef||l,newDiParent:l.di})}}this.preExecute("shape.create",function(s){var c=s.context,u=c.shape;m(u,"bpmn:DataStoreReference")&&u.type!=="label"&&(c.hints||(c.hints={}),c.hints.autoResize=!1)}),this.preExecute("elements.move",function(s){var c=s.context,u=c.shapes,l=u.filter(function(p){return m(p,"bpmn:DataStoreReference")});l.length&&(c.hints||(c.hints={}),c.hints.autoResize=u.filter(function(p){return!m(p,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(s){var c=s.context,u=c.shape,l=u.parent;m(u,"bpmn:DataStoreReference")&&u.type!=="label"&&m(l,"bpmn:Collaboration")&&o(u)}),this.postExecute("shape.move",function(s){var c=s.context,u=c.shape,l=c.oldParent,p=u.parent;if(!m(l,"bpmn:Collaboration")&&m(u,"bpmn:DataStoreReference")&&u.type!=="label"&&m(p,"bpmn:Collaboration")){var h=m(l,"bpmn:Participant")?l:Lw(l,"bpmn:Participant");o(u,h)}}),this.postExecute("shape.delete",function(s){var c=s.context,u=c.shape,l=e.getRootElement();ye(u,["bpmn:Participant","bpmn:SubProcess"])&&m(l,"bpmn:Collaboration")&&a(l).filter(function(p){return kw(p,u)}).forEach(function(p){o(p)})}),this.postExecute("canvas.updateRoot",function(s){var c=s.context,u=c.oldRoot,l=c.newRoot,p=a(u);p.forEach(function(h){m(l,"bpmn:Process")&&o(h,l)})})}hu.$inject=["canvas","commandStack","elementRegistry","eventBus"];Z(hu,U);function kw(e,t){for(var n=e.businessObject||e,i=t.businessObject||t;n.$parent;){if(n.$parent===i.processRef||i)return!0;n=n.$parent}return!1}function Lw(e,t){for(;e.parent;){if(m(e.parent,t))return e.parent;e=e.parent}}var Bw=500;function du(e,t,n){U.call(this,e);function i(r,a){var o=fi(a),s=[],c=[];if(ui(o,function(h){return h.y>r.y?c.push(h):s.push(h),h.children}),!!o.length){var u;c.length&&s.length?u=r.height/2:u=r.height;var l,p;s.length&&(l=n.calculateAdjustments(s,"y",u,r.y-10),n.makeSpace(l.movingShapes,l.resizingShapes,{x:0,y:u},"s")),c.length&&(p=n.calculateAdjustments(c,"y",-u,r.y+r.height+10),n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:-u},"n"))}}this.postExecuted("shape.delete",Bw,function(r){var a=r.context,o=a.hints,s=a.shape,c=a.oldParent;!m(s,"bpmn:Lane")||o&&o.nested||i(s,c)})}du.$inject=["eventBus","modeling","spaceTool"];Z(du,U);var Xp=500;function $o(e,t){t.invoke(U,this),this._bpmnReplace=e;var n=this;this.postExecuted("elements.create",Xp,function(i){var r=i.elements;r.filter(function(a){var o=a.host;return Zp(a,o)}).map(function(a){return r.indexOf(a)}).forEach(function(a){i.elements[a]=n.replaceShape(r[a])})},!0),this.preExecute("elements.move",Xp,function(i){var r=i.shapes,a=i.newHost;r.forEach(function(o,s){var c=o.host;Zp(o,Fw(r,c)?c:a)&&(r[s]=n.replaceShape(o))})},!0)}$o.$inject=["bpmnReplace","injector"];Z($o,U);$o.prototype.replaceShape=function(e){var t=$w(e),n;return t?n={type:"bpmn:IntermediateCatchEvent",eventDefinitionType:t.$type}:n={type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,n,{layoutConnection:!1})};function $w(e){var t=Y(e),n=t.eventDefinitions;return n&&n[0]}function Zp(e,t){return!Qe(e)&&m(e,"bpmn:BoundaryEvent")&&!t}function Fw(e,t){return e.indexOf(t)!==-1}function vu(e,t,n){U.call(this,e);function i(r,a,o){var s=a.waypoints,c,u,l,p,h,f,d,y=r.outgoing.slice(),x=r.incoming.slice(),D;ae(o.width)?D=ce(o):D=o;var A=Js(s,D);if(A){if(c=s.slice(0,A.index),u=s.slice(A.index+(A.bendpoint?1:0)),!c.length||!u.length)return;l=A.bendpoint?s[A.index]:D,(c.length===1||!Qp(r,c[c.length-1]))&&c.push(Jp(l)),(u.length===1||!Qp(r,u[0]))&&u.unshift(Jp(l))}p=a.source,h=a.target,t.canConnect(p,r,a)&&(n.reconnectEnd(a,r,c||D),f=a),t.canConnect(r,h,a)&&(f?d=n.connect(r,h,{type:a.type,waypoints:u}):(n.reconnectStart(a,r,u||D),d=a));var w=[].concat(f&&se(x,function(b){return b.source===f.source})||[],d&&se(y,function(b){return b.target===d.target})||[]);w.length&&n.removeElements(w)}this.preExecute("elements.move",function(r){var a=r.newParent,o=r.shapes,s=r.delta,c=o[0];if(!(!c||!a)){a&&a.waypoints&&(r.newParent=a=a.parent);var u=ce(c),l={x:u.x+s.x,y:u.y+s.y},p=_e(a.children,function(h){var f=t.canInsert(o,h);return f&&Js(h.waypoints,l)});p&&(r.targetFlow=p,r.position=l)}},!0),this.postExecuted("elements.move",function(r){var a=r.shapes,o=r.targetFlow,s=r.position;o&&i(a[0],o,s)},!0),this.preExecute("shape.create",function(r){var a=r.parent,o=r.shape;t.canInsert(o,a)&&(r.targetFlow=a,r.parent=a.parent)},!0),this.postExecuted("shape.create",function(r){var a=r.shape,o=r.targetFlow,s=r.position;o&&i(a,o,s)},!0)}Z(vu,U);vu.$inject=["eventBus","bpmnRules","modeling"];function Qp(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function Jp(e){return I({},e)}function mu(e,t){U.call(this,e),this.preExecuted("connection.create",function(n){var i=n.context,r=i.source,a=i.target,o=a.incoming.slice();i.hints&&i.hints.createElementsBehavior===!1||m(r,"bpmn:EventBasedGateway")&&a.incoming.length&&o.filter(Ss).forEach(function(s){t.removeConnection(s)})}),this.preExecuted("shape.replace",function(n){var i=n.context.newShape,r,a;!m(i,"bpmn:EventBasedGateway")||(r=i.outgoing.filter(Ss).map(function(o){return o.target}),a=r.reduce(function(o,s){var c=s.incoming.filter(Ss);return o.concat(c)},[]),a.forEach(function(o){o.source!==i&&t.removeConnection(o)}))})}mu.$inject=["eventBus","modeling"];Z(mu,U);function Ss(e){return m(e,"bpmn:SequenceFlow")}var Hw=2e3;function gu(e,t,n,i,r,a){r.invoke(U,this);function o(){var p=t.getRootElement(),h=Y(p);return h.$parent}function s(p){var h=Y(p),f=h.categoryValueRef;if(!!f){var d=f.$parent;!f||(ke(d.categoryValue,f),d&&!d.categoryValue.length&&c(d))}}function c(p){var h=o();ke(h.get("rootElements"),p)}function u(){return n.filter(function(p){return m(p,"bpmn:Group")})}function l(p,h){return p.some(function(f){var d=Y(f);return d.categoryValueRef&&d.categoryValueRef===h})}this.executed("shape.delete",function(p){var h=p.context,f=h.shape;if(m(f,"bpmn:Group")){var d=Y(f),y=d.categoryValueRef,x=u();l(x,y)||s(f)}}),this.reverted("shape.delete",function(p){var h=p.context,f=h.shape;if(m(f,"bpmn:Group")){var d=Y(f),y=d.categoryValueRef,x=o(),D=y?y.$parent:null;Le(D.get("categoryValue"),y),Le(x.get("rootElements"),D)}}),this.execute("shape.create",function(p){var h=p.context,f=h.shape,d=Y(f);if(m(d,"bpmn:Group")&&!d.categoryValueRef){var y=o(),x=oc(y,e);d.categoryValueRef=x}}),this.revert("shape.create",function(p){var h=p.context,f=h.shape;m(f,"bpmn:Group")&&(s(f),delete Y(f).categoryValueRef)}),i.on("moddleCopy.canCopyProperty",Hw,function(p){var h=p.property,f;if(m(h,"bpmn:CategoryValue"))return f=oc(o(),e),a.copyElement(h,f)})}gu.$inject=["bpmnFactory","canvas","elementRegistry","eventBus","injector","moddleCopy"];Z(gu,U);function uc(e,t,n,i){var r,a,o,s,c;return r=(i.y-n.y)*(t.x-e.x)-(i.x-n.x)*(t.y-e.y),r==0?null:(a=e.y-n.y,o=e.x-n.x,c=(i.x-n.x)*a-(i.y-n.y)*o,s=c/r,{x:Math.round(e.x+s*(t.x-e.x)),y:Math.round(e.y+s*(t.y-e.y))})}function gv(e){function t(i,r,a){var o={x:a.x,y:a.y-50},s={x:a.x-50,y:a.y},c=uc(i,r,a,o),u=uc(i,r,a,s),l;c&&u?ef(c,a)>ef(u,a)?l=u:l=c:l=c||u,i.original=l}function n(i){var r=i.waypoints;t(r[0],r[1],ce(i.source)),t(r[r.length-1],r[r.length-2],ce(i.target))}e.on("bpmnElement.added",function(i){var r=i.element;r.waypoints&&n(r)})}gv.$inject=["eventBus"];function ef(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function yu(e){U.call(this,e);var t=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(n){var i=Y(n.context.shape);ye(i,t)&&!i.di.get("isHorizontal")&&i.di.set("isHorizontal",!0)})}yu.$inject=["eventBus"];Z(yu,U);function yv(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function tf(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function jw(e,t){return t?{x:Math.cos(t)*e.x-Math.sin(t)*e.y,y:Math.sin(t)*e.x+Math.cos(t)*e.y}:e}function zw(e,t,n){var i=[{n:e[0]-n[0],lambda:t[0]},{n:e[1]-n[1],lambda:t[1]}],r=i[0].n*t[0]+i[1].n*t[1],a=i[0].lambda*t[0]+i[1].lambda*t[1];return-r/a}function Ev(e,t){var n=t[0],i=t[1],r={x:i.x-n.x,y:i.y-n.y},a=zw([n.x,n.y],[r.x,r.y],[e.x,e.y]);return{x:n.x+a*r.x,y:n.y+a*r.y}}function Gw(e,t){var n=Ev(e,t),i={x:n.x-e.x,y:n.y-e.y};return yv(i)}function io(e,t){return yv({x:e.x-t.x,y:e.y-t.y})}var bv=Math.sqrt,xv=Math.min,Vw=Math.max,nf=Math.abs;function rf(e){return Math.pow(e,2)}function sr(e,t){return bv(rf(e.x-t.x)+rf(e.y-t.y))}function Ww(e,t){var n=0,i,r,a,o,s,c,u,l,p,h,f;for(n=0;n line intersections");u.length===1&&(l={type:"bendpoint",position:u[0],segmentIndex:n,bendpointIndex:of(i,u[0])?n:n+1}),u.length===2&&(s=Kw(u[0],u[1]),l={type:"segment",position:s,segmentIndex:n,relativeLocation:sr(i,s)/sr(i,r)}),p=sr(l.position,e),(!f||h>p)&&(f=l,h=p)}return f}function Uw(e,t,n,i){var r=t.x-e.x,a=t.y-e.y,o=n.x-e.x,s=n.y-e.y,c=r*r+a*a,u=r*o+a*s,l=o*o+s*s-i*i,p=u/c,h=l/c,f=p*p-h;if(f<0&&f>-1e-6&&(f=0),f<0)return[];var d=bv(f),y=-p+d,x=-p-d,D={x:e.x-r*y,y:e.y-a*y};if(f===0)return[D];var A={x:e.x-r*x,y:e.y-a*x};return[D,A].filter(function(w){return Yw(w,e,t)})}function Yw(e,t,n){return af(e.x,t.x,n.x)&&af(e.y,t.y,n.y)}function af(e,t,n){return e>=xv(t,n)-ro&&e<=Vw(t,n)+ro}function Kw(e,t){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}var ro=.1;function of(e,t){return nf(e.x-t.x)<=ro&&nf(e.y-t.y)<=ro}function qw(e,t,n,i){var r=n.segmentIndex,a=t.length-e.length;if(i.segmentMove){var o=i.segmentMove.segmentStartIndex,s=i.segmentMove.newSegmentStartIndex;return r===o?s:r>=s?r+a=u&&(l=c?r+1:r-1),rt.length-2)return{x:r,y:a};var l=sf(n,c),p=sf(t,u),h=s.position,f=Jw(l,h),d=Qw(l,p);if(s.type==="bendpoint"){var y=t.length-n.length,x=s.bendpointIndex,D=n[x];if(t.indexOf(D)!==-1)return{x:r,y:a};if(y===0){var A=t[x];return{x:A.x-s.position.x,y:A.y-s.position.y}}y<0&&x!==0&&x"+a+"
"})}e.on(["shape.move.rejected","create.rejected"],function(r){var a=r.context,o=a.shape,s=a.target;m(s,"bpmn:Collaboration")&&m(o,"bpmn:FlowNode")&&i(r,n(hS))})}Tv.$inject=["eventBus","tooltips","translate"];function wu(e,t,n,i){U.call(this,e);var r=i.get("dragging",!1);function a(c){var u=c.source,l=c.target,p=c.parent;if(!!p){var h,f;m(c,"bpmn:SequenceFlow")&&(n.canConnectSequenceFlow(u,l)||(f=!0),n.canConnectMessageFlow(u,l)&&(h="bpmn:MessageFlow")),m(c,"bpmn:MessageFlow")&&(n.canConnectMessageFlow(u,l)||(f=!0),n.canConnectSequenceFlow(u,l)&&(h="bpmn:SequenceFlow")),m(c,"bpmn:Association")&&!n.canConnectAssociation(u,l)&&(f=!0),f&&t.removeConnection(c),h&&t.connect(u,l,{type:h,waypoints:c.waypoints.slice()})}}function o(c){var u=c.context,l=u.connection,p=u.newSource||l.source,h=u.newTarget||l.target,f,d;f=n.canConnect(p,h),!(!f||f.type===l.type)&&(d=t.connect(p,h,{type:f.type,waypoints:l.waypoints.slice()}),t.removeConnection(l),u.connection=d,r&&s(l,d))}function s(c,u){var l=r.context(),p=l&&l.payload.previousSelection,h;!p||!p.length||(h=p.indexOf(c),h!==-1&&p.splice(h,1,u))}this.postExecuted("elements.move",function(c){var u=c.closure,l=u.allConnections;C(l,a)},!0),this.preExecute("connection.reconnect",o),this.postExecuted("element.updateProperties",function(c){var u=c.context,l=u.properties,p=u.element,h=p.businessObject,f;l.default&&(f=_e(p.outgoing,zt({id:p.businessObject.default.id})),f&&t.updateProperties(f,{conditionExpression:void 0})),l.conditionExpression&&h.sourceRef.default===h&&t.updateProperties(p.source,{default:void 0})})}Z(wu,U);wu.$inject=["eventBus","modeling","bpmnRules","injector"];function Su(e,t){U.call(this,e),this.preExecute("shape.delete",function(n){var i=n.shape,r=i.parent;m(i,"bpmn:Participant")&&(n.collaborationRoot=r)},!0),this.postExecute("shape.delete",function(n){var i=n.collaborationRoot;i&&!i.businessObject.participants.length&&t.makeProcess()},!0)}Su.$inject=["eventBus","modeling"];Z(Su,U);function zo(e,t,n,i,r,a){i.invoke(U,this),this._bpmnReplace=e,this._elementRegistry=n,this._selection=a,this.postExecuted(["elements.create"],500,function(o){var s=o.context,c=s.parent,u=s.elements,l=t.canReplace(u,c);l&&this.replaceElements(u,l.replacements)},this),this.postExecuted(["elements.move"],500,function(o){var s=o.context,c=s.newParent,u=s.newHost,l=[];C(s.closure.topLevel,function(h){_t(h)?l=l.concat(h.children):l=l.concat(h)}),l.length===1&&u&&(c=u);var p=t.canReplace(l,c);p&&this.replaceElements(l,p.replacements,u)},this),this.postExecute(["shape.replace"],1500,function(o){var s=o.context,c=s.oldShape,u=s.newShape,l=c.attachers,p;l&&l.length&&(p=t.canReplace(l,u),this.replaceElements(l,p.replacements))},this),this.postExecuted(["shape.replace"],1500,function(o){var s=o.context,c=s.oldShape,u=s.newShape;r.unclaimId(c.businessObject.id,c.businessObject),r.updateProperties(u,{id:c.id})})}Z(zo,U);zo.prototype.replaceElements=function(e,t){var n=this._elementRegistry,i=this._bpmnReplace,r=this._selection;C(t,function(a){var o={type:a.newElementType},s=n.get(a.oldElementId),c=e.indexOf(s);e[c]=i.replaceElement(s,o,{select:!1})}),t&&r.select(e)};zo.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var dS=1500,ri={width:300,height:60},wr={width:300,height:150},Rv={width:140,height:120},Cv={width:50,height:30};function Pv(e){e.on("resize.start",dS,function(t){var n=t.context,i=n.shape,r=n.direction,a=n.balanced;(m(i,"bpmn:Lane")||m(i,"bpmn:Participant"))&&(n.resizeConstraints=xS(i,r,a)),m(i,"bpmn:Participant")&&(n.minDimensions=wr),m(i,"bpmn:SubProcess")&&Se(i)&&(n.minDimensions=Rv),m(i,"bpmn:TextAnnotation")&&(n.minDimensions=Cv)})}Pv.$inject=["eventBus"];var Pa=Math.abs,vS=Math.min,mS=Math.max;function Av(e,t,n,i){var r=e[t];e[t]=r===void 0?n:i(n,r)}function Aa(e,t,n){return Av(e,t,n,vS)}function Ma(e,t,n){return Av(e,t,n,mS)}var gS=20,yS=50,ES=20,bS=20;function xS(e,t,n){var i=jt(e),r=!0,a=!0,o=No(i,[i]),s=ee(e),c={},u={};/e/.test(t)?u.right=s.left+ri.width:/w/.test(t)&&(u.left=s.right-ri.width),o.forEach(function(p){var h=ee(p);/n/.test(t)&&(h.tops.bottom+10&&(a=!1),n&&Pa(s.bottom-h.top)<10&&Aa(c,"bottom",h.bottom-ri.height),Pa(s.bottom-h.bottom)<5&&Ma(u,"bottom",h.top+ri.height))});var l=i.children.filter(function(p){return!p.hidden&&!p.waypoints&&(m(p,"bpmn:FlowElement")||m(p,"bpmn:Artifact"))});return l.forEach(function(p){var h=ee(p);r&&/n/.test(t)&&Aa(u,"top",h.top-ES),/e/.test(t)&&Ma(u,"right",h.right+gS),a&&/s/.test(t)&&Ma(u,"bottom",h.bottom+bS),/w/.test(t)&&Aa(u,"left",h.left-yS)}),{min:u,max:c}}var pf=1001;function Mv(e,t){e.on("resize.start",pf+500,function(n){var i=n.context,r=i.shape;(m(r,"bpmn:Lane")||m(r,"bpmn:Participant"))&&(i.balanced=!Mi(n))}),e.on("resize.end",pf,function(n){var i=n.context,r=i.shape,a=i.canExecute,o=i.newBounds;if(m(r,"bpmn:Lane")||m(r,"bpmn:Participant"))return a&&(o=Sh(o),t.resizeLane(r,o,i.balanced)),!1})}Mv.$inject=["eventBus","modeling"];function Tu(e,t,n){U.call(this,e),this.preExecute("shape.delete",function(i){var r=i.context.shape;if(!(r.incoming.length!==1||r.outgoing.length!==1)){var a=r.incoming[0],o=r.outgoing[0];if(!(!m(a,"bpmn:SequenceFlow")||!m(o,"bpmn:SequenceFlow"))&&t.canConnect(a.source,o.target,a)){var s=_S(a.waypoints,o.waypoints);n.reconnectEnd(a,o.target,s)}}})}Z(Tu,U);Tu.$inject=["eventBus","bpmnRules","modeling"];function _i(e){return e.original||e}function _S(e,t){var n=uc(_i(e[e.length-2]),_i(e[e.length-1]),_i(t[1]),_i(t[0]));return n?[].concat(e.slice(0,e.length-1),[n],t.slice(1)):[_i(e[0]),_i(t[t.length-1])]}var wS=Math.max;function Dv(e){e.on("spaceTool.getMinDimensions",function(t){var n=t.shapes,i=t.axis,r=t.start,a={};return C(n,function(o){var s=o.id;m(o,"bpmn:Participant")&&(SS(i)?a[s]=wr:a[s]={width:wr.width,height:TS(o,r)}),m(o,"bpmn:SubProcess")&&Se(o)&&(a[s]=Rv),m(o,"bpmn:TextAnnotation")&&(a[s]=Cv)}),a})}Dv.$inject=["eventBus"];function SS(e){return e==="x"}function TS(e,t){var n;return RS(e)?(n=CS(e,t),wS(wr.height,n)):wr.height}function RS(e){return!!fi(e).length}function CS(e,t){var n=fi(e),i;return i=Nv(n,t),e.height-i.height+ri.height}function Nv(e,t){var n,i,r;for(n=0;n=i.y&&t<=i.y+i.height)return r=fi(i),r.length?Nv(r,t):i}function Ru(e,t){e.invoke(U,this),this.postExecuted("shape.replace",function(n){var i=n.context.oldShape,r=n.context.newShape;if(!(!m(r,"bpmn:SubProcess")||!m(i,"bpmn:Task")||!Se(r))){var a=PS(r);t.createShape({type:"bpmn:StartEvent"},a,r)}})}Ru.$inject=["injector","modeling"];Z(Ru,U);function PS(e){return{x:e.x+e.width/6,y:e.y+e.height/2}}var Ts=500;function Cu(e,t,n,i){U.call(this,e);function r(s){s.length&&s.forEach(function(c){c.type==="label"&&!c.businessObject.name&&(c.hidden=!0)})}function a(s,c){var u=s.children,l=c,p,h;return p=AS(u).concat([s]),h=ev(p),h?(l.width=Math.max(h.width,l.width),l.height=Math.max(h.height,l.height),l.x=h.x+(h.width-l.width)/2,l.y=h.y+(h.height-l.height)/2):(l.x=s.x+(s.width-l.width)/2,l.y=s.y+(s.height-l.height)/2),l}function o(s,c){return{x:s.x+(s.width-c.width)/2,y:s.y+(s.height-c.height)/2,width:c.width,height:c.height}}this.executed(["shape.toggleCollapse"],Ts,function(s){var c=s.context,u=c.shape;!m(u,"bpmn:SubProcess")||(u.collapsed?Y(u).di.isExpanded=!1:(r(u.children),Y(u).di.isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],Ts,function(s){var c=s.context,u=c.shape;u.collapsed?Y(u).di.isExpanded=!1:Y(u).di.isExpanded=!0}),this.postExecuted(["shape.toggleCollapse"],Ts,function(s){var c=s.context.shape,u=t._getDefaultSize(c),l;c.collapsed?l=o(c,u):l=a(c,u),n.resizeShape(c,l,null,{autoResize:c.collapsed?!1:"nwse"})})}Z(Cu,U);Cu.$inject=["eventBus","elementFactory","modeling"];function AS(e){return e.filter(function(t){return!t.hidden})}function Pu(e,t,n,i){t.invoke(U,this),this.preExecute("shape.delete",function(r){var a=r.context,o=a.shape,s=o.businessObject;Qe(o)||(m(o,"bpmn:Participant")&&Se(o)&&n.ids.unclaim(s.processRef.id),i.unclaimId(s.id,s))}),this.preExecute("connection.delete",function(r){var a=r.context,o=a.connection,s=o.businessObject;i.unclaimId(s.id,s)}),this.preExecute("canvas.updateRoot",function(){var r=e.getRootElement(),a=r.businessObject;m(r,"bpmn:Collaboration")&&n.ids.unclaim(a.id)})}Z(Pu,U);Pu.$inject=["canvas","injector","moddle","modeling"];var MS=500,DS=5e3;function Au(e,t,n){U.call(this,e);var i;function r(){return i=i||new NS,i.enter(),i}function a(){if(!i)throw new Error(n("out of bounds release"));return i}function o(){if(!i)throw new Error(n("out of bounds release"));var c=i.leave();return c&&(t.updateLaneRefs(i.flowNodes,i.lanes),i=null),c}var s=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(s,DS,function(c){r()}),this.postExecuted(s,MS,function(c){o()}),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],function(c){var u=c.context,l=u.shape,p=a();l.labelTarget||(m(l,"bpmn:Lane")&&p.addLane(l),m(l,"bpmn:FlowNode")&&p.addFlowNode(l))})}Au.$inject=["eventBus","modeling","translate"];Z(Au,U);function NS(){this.flowNodes=[],this.lanes=[],this.counter=0,this.addLane=function(e){this.lanes.push(e)},this.addFlowNode=function(e){this.flowNodes.push(e)},this.enter=function(){this.counter++},this.leave=function(){return this.counter--,!this.counter}}function Mu(e,t){U.call(this,e),this.preExecute("connection.delete",function(n){var i=n.context,r=i.connection,a=r.source;OS(r,a)&&t.updateProperties(a,{default:null})})}Z(Mu,U);Mu.$inject=["eventBus","modeling"];function OS(e,t){if(!m(e,"bpmn:SequenceFlow"))return!1;var n=Y(t),i=Y(e);return n.get("default")===i}var IS={__init__:["adaptiveLabelPositioningBehavior","appendBehavior","associationBehavior","attachEventBehavior","boundaryEventBehavior","rootElementReferenceBehavior","createBehavior","fixHoverBehavior","createDataObjectBehavior","createParticipantBehavior","dataStoreBehavior","dataInputAssociationBehavior","deleteLaneBehavior","detachEventBehavior","dropOnFlowBehavior","eventBasedGatewayBehavior","groupBehavior","importDockingFix","isHorizontalFix","labelBehavior","messageFlowBehavior","modelingFeedback","removeElementBehavior","removeParticipantBehavior","replaceConnectionBehavior","replaceElementBehaviour","resizeBehavior","resizeLaneBehavior","toggleElementCollapseBehaviour","spaceToolBehavior","subProcessStartEventBehavior","unclaimIdBehavior","unsetDefaultFlowBehavior","updateFlowNodeRefsBehavior"],adaptiveLabelPositioningBehavior:["type",ru],appendBehavior:["type",au],associationBehavior:["type",ou],attachEventBehavior:["type",Lo],boundaryEventBehavior:["type",su],rootElementReferenceBehavior:["type",cu],createBehavior:["type",uu],fixHoverBehavior:["type",vv],createDataObjectBehavior:["type",lu],createParticipantBehavior:["type",pu],dataInputAssociationBehavior:["type",fu],dataStoreBehavior:["type",hu],deleteLaneBehavior:["type",du],detachEventBehavior:["type",$o],dropOnFlowBehavior:["type",vu],eventBasedGatewayBehavior:["type",mu],groupBehavior:["type",gu],importDockingFix:["type",gv],isHorizontalFix:["type",yu],labelBehavior:["type",Eu],messageFlowBehavior:["type",_u],modelingFeedback:["type",Tv],replaceConnectionBehavior:["type",wu],removeParticipantBehavior:["type",Su],replaceElementBehaviour:["type",zo],resizeBehavior:["type",Pv],resizeLaneBehavior:["type",Mv],removeElementBehavior:["type",Tu],toggleElementCollapseBehaviour:["type",Cu],spaceToolBehavior:["type",Dv],subProcessStartEventBehavior:["type",Ru],unclaimIdBehavior:["type",Pu],updateFlowNodeRefsBehavior:["type",Au],unsetDefaultFlowBehavior:["type",Mu]};function Ov(e,t){var n=tt(e,t,-15);return n!=="intersect"?n:null}function nt(e){Gn.call(this,e)}Z(nt,Gn);nt.$inject=["eventBus"];nt.prototype.init=function(){this.addRule("connection.start",function(e){var t=e.source;return kS(t)}),this.addRule("connection.create",function(e){var t=e.source,n=e.target,i=e.hints||{},r=i.targetParent,a=i.targetAttach;if(a)return!1;r&&(n.parent=r);try{return za(t,n)}finally{r&&(n.parent=null)}}),this.addRule("connection.reconnect",function(e){var t=e.connection,n=e.source,i=e.target;return za(n,i,t)}),this.addRule("connection.updateWaypoints",function(e){return{type:e.connection.type}}),this.addRule("shape.resize",function(e){var t=e.shape,n=e.newBounds;return Hv(t,n)}),this.addRule("elements.create",function(e){var t=e.elements,n=e.position,i=e.target;return ao(i)&&!oo(t,i)?!1:Oi(t,function(r){return ao(r)?za(r.source,r.target,r):r.host?mr(r,r.host,null,n):hc(r,i,null)})}),this.addRule("elements.move",function(e){var t=e.target,n=e.shapes,i=e.position;return mr(n,t,null,i)||$v(n,t,i)||Fv(n,t)||oo(n,t)}),this.addRule("shape.create",function(e){return hc(e.shape,e.target,e.source,e.position)}),this.addRule("shape.attach",function(e){return mr(e.shape,e.target,null,e.position)}),this.addRule("element.copy",function(e){var t=e.element,n=e.elements;return Vv(n,t)})};nt.prototype.canConnectMessageFlow=zv;nt.prototype.canConnectSequenceFlow=Gv;nt.prototype.canConnectDataAssociation=Ou;nt.prototype.canConnectAssociation=jv;nt.prototype.canMove=Fv;nt.prototype.canAttach=mr;nt.prototype.canReplace=$v;nt.prototype.canDrop=Ni;nt.prototype.canInsert=oo;nt.prototype.canCreate=hc;nt.prototype.canConnect=za;nt.prototype.canResize=Hv;nt.prototype.canCopy=Vv;function kS(e){return lc(e)?null:ye(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function lc(e){return!e||Qe(e)}function LS(e,t){return e===t}function ff(e){do{if(m(e,"bpmn:Process"))return Y(e);if(m(e,"bpmn:Participant"))return Y(e).processRef||Y(e)}while(e=e.parent)}function pc(e){return m(e,"bpmn:TextAnnotation")}function Du(e){return m(e,"bpmn:Group")&&!e.labelTarget}function Nu(e){return m(e,"bpmn:BoundaryEvent")&&Jt(e,"bpmn:CompensateEventDefinition")}function Yi(e){return Y(e).isForCompensation}function BS(e,t){var n=ff(e),i=ff(t);return n===i}function $S(e){return m(e,"bpmn:InteractionNode")&&!m(e,"bpmn:BoundaryEvent")&&(!m(e,"bpmn:Event")||m(e,"bpmn:ThrowEvent")&&Iv(e,"bpmn:MessageEventDefinition"))}function FS(e){return m(e,"bpmn:InteractionNode")&&!Yi(e)&&(!m(e,"bpmn:Event")||m(e,"bpmn:CatchEvent")&&Iv(e,"bpmn:MessageEventDefinition"))&&!(m(e,"bpmn:BoundaryEvent")&&!Jt(e,"bpmn:MessageEventDefinition"))}function hf(e){for(var t=e;t=t.parent;){if(m(t,"bpmn:FlowElementsContainer"))return Y(t);if(m(t,"bpmn:Participant"))return Y(t).processRef}return null}function HS(e,t){var n=hf(e),i=hf(t);return n===i}function Jt(e,t){var n=Y(e);return!!_e(n.eventDefinitions||[],function(i){return m(i,t)})}function Iv(e,t){var n=Y(e);return(n.eventDefinitions||[]).every(function(i){return m(i,t)})}function jS(e){return m(e,"bpmn:FlowNode")&&!m(e,"bpmn:EndEvent")&&!_t(e)&&!(m(e,"bpmn:IntermediateThrowEvent")&&Jt(e,"bpmn:LinkEventDefinition"))&&!Nu(e)&&!Yi(e)}function zS(e){return m(e,"bpmn:FlowNode")&&!m(e,"bpmn:StartEvent")&&!m(e,"bpmn:BoundaryEvent")&&!_t(e)&&!(m(e,"bpmn:IntermediateCatchEvent")&&Jt(e,"bpmn:LinkEventDefinition"))&&!Yi(e)}function df(e){return m(e,"bpmn:ReceiveTask")||m(e,"bpmn:IntermediateCatchEvent")&&(Jt(e,"bpmn:MessageEventDefinition")||Jt(e,"bpmn:TimerEventDefinition")||Jt(e,"bpmn:ConditionalEventDefinition")||Jt(e,"bpmn:SignalEventDefinition"))}function ao(e){return e.waypoints}function GS(e){for(var t=[];e;)e=e.parent,e&&t.push(e);return t}function fc(e,t){var n=GS(t);return n.indexOf(e)!==-1}function za(e,t,n){if(lc(e)||lc(t))return null;if(!m(n,"bpmn:DataAssociation")){if(zv(e,t))return{type:"bpmn:MessageFlow"};if(Gv(e,t))return{type:"bpmn:SequenceFlow"}}var i=Ou(e,t);return i||(Nu(e)&&Yi(t)?{type:"bpmn:Association",associationDirection:"One"}:jv(e,t)?{type:"bpmn:Association"}:!1)}function Ni(e,t,n){return Qe(e)||Du(e)?!0:m(t,"bpmn:Participant")&&!Se(t)?!1:m(e,"bpmn:Participant")?m(t,"bpmn:Process")||m(t,"bpmn:Collaboration"):ye(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?t===e.parent:m(e,"bpmn:Lane")?m(t,"bpmn:Participant")||m(t,"bpmn:Lane"):m(e,"bpmn:BoundaryEvent")&&!VS(e)?!1:m(e,"bpmn:FlowElement")&&!m(e,"bpmn:DataStoreReference")?m(t,"bpmn:FlowElementsContainer")?Se(t):ye(t,["bpmn:Participant","bpmn:Lane"]):m(e,"bpmn:DataStoreReference")&&m(t,"bpmn:Collaboration")?si(Y(t).get("participants"),function(i){return!!i.get("processRef")}):ye(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?ye(t,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):m(e,"bpmn:MessageFlow")?m(t,"bpmn:Collaboration")||e.source.parent==t||e.target.parent==t:!1}function VS(e){return Y(e).cancelActivity&&(kv(e)||Lv(e))}function WS(e){return!Qe(e)&&m(e,"bpmn:BoundaryEvent")}function US(e){return m(e,"bpmn:Lane")}function YS(e){return WS(e)||m(e,"bpmn:IntermediateThrowEvent")&&kv(e)?!0:m(e,"bpmn:IntermediateCatchEvent")&&Lv(e)}function kv(e){var t=Y(e);return t&&!(t.eventDefinitions&&t.eventDefinitions.length)}function Lv(e){return Bv(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function Bv(e,t){return t.some(function(n){return Jt(e,n)})}function KS(e){return m(e,"bpmn:ReceiveTask")&&_e(e.incoming,function(t){return m(t.source,"bpmn:EventBasedGateway")})}function mr(e,t,n,i){if(Array.isArray(e)||(e=[e]),e.length!==1)return!1;var r=e[0];return Qe(r)||!YS(r)||_t(t)||!m(t,"bpmn:Activity")||Yi(t)||i&&!Ov(i,t)||KS(t)?!1:"attach"}function $v(e,t,n){if(!t)return!1;var i={replacements:[]};return C(e,function(r){_t(t)||m(r,"bpmn:StartEvent")&&r.type!=="label"&&Ni(r,t)&&(ob(r)||i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),(sb(r)||cb(r)||ub(r))&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"}),Bv(r,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&m(t,"bpmn:SubProcess")&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:StartEvent"})),m(t,"bpmn:Transaction")||Jt(r,"bpmn:CancelEventDefinition")&&r.type!=="label"&&(m(r,"bpmn:EndEvent")&&Ni(r,t)&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:EndEvent"}),m(r,"bpmn:BoundaryEvent")&&mr(r,t,null,n)&&i.replacements.push({oldElementId:r.id,newElementType:"bpmn:BoundaryEvent"}))}),i.replacements.length?i:!1}function Fv(e,t){return si(e,US)?!1:t?e.every(function(n){return Ni(n,t)}):!0}function hc(e,t,n,i){return t?Qe(e)||Du(e)?!0:LS(n,t)||n&&fc(n,t)?!1:Ni(e,t)||oo(e,t):!1}function Hv(e,t){return m(e,"bpmn:SubProcess")?Se(e)&&(!t||t.width>=100&&t.height>=80):m(e,"bpmn:Lane")?!t||t.width>=130&&t.height>=60:m(e,"bpmn:Participant")?!t||t.width>=250&&t.height>=50:!!(pc(e)||Du(e))}function qS(e,t){var n=pc(e),i=pc(t);return(n||i)&&n!==i}function jv(e,t){return ao(e)||ao(t)?!1:Nu(e)&&Yi(t)?!0:fc(t,e)||fc(e,t)?!1:qS(e,t)?!0:!!Ou(e,t)}function zv(e,t){return vf(e)&&!vf(t)?!1:$S(e)&&FS(t)&&!BS(e,t)}function Gv(e,t){return df(t)&&t.incoming.length>0&&QS(t.incoming)&&!m(e,"bpmn:EventBasedGateway")?!1:jS(e)&&zS(t)&&HS(e,t)&&!(m(e,"bpmn:EventBasedGateway")&&!df(t))}function Ou(e,t){return ye(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&ye(t,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:ye(t,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&ye(e,["bpmn:Activity","bpmn:CatchEvent"])?{type:"bpmn:DataOutputAssociation"}:!1}function oo(e,t,n){if(!t)return!1;if(Array.isArray(e)){if(e.length!==1)return!1;e=e[0]}return t.source===e||t.target===e?!1:ye(t,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Qe(t)&&m(e,"bpmn:FlowNode")&&!m(e,"bpmn:BoundaryEvent")&&Ni(e,t.parent)}function XS(e,t){return e&&t&&e.indexOf(t)!==-1}function Vv(e,t){return Qe(t)?!0:!(m(t,"bpmn:Lane")&&!XS(e,t.parent))}function ZS(e){if(e&&e.source)return m(e.source,"bpmn:EventBasedGateway")}function QS(e){return e=e||[],e.some(ZS)}function vf(e){return Ja(e,"bpmn:Process")||Ja(e,"bpmn:Collaboration")}var JS={__depends__:[sn],__init__:["bpmnRules"],bpmnRules:["type",nt]},e1=2e3;function Wv(e,t){e.on("saveXML.start",e1,n);function n(){var i=t.getRootElement(),r=Y(i).di,a,o;a=lo([i],!1),a=se(a,function(s){return s!==i&&!s.labelTarget}),o=Ye(a,Pi),r.set("planeElement",o)}}Wv.$inject=["eventBus","canvas"];var t1={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",Wv]};function Go(e){U.call(this,e);var t=this;this.preExecute(["shape.create","connection.create"],function(n){var i=n.context,r=i.shape||i.connection,a=i.parent,o=t.getOrdering(r,a);o&&(o.parent!==void 0&&(i.parent=o.parent),i.parentIndex=o.index)}),this.preExecute(["shape.move","connection.move"],function(n){var i=n.context,r=i.shape||i.connection,a=i.newParent||r.parent,o=t.getOrdering(r,a);o&&(o.parent!==void 0&&(i.newParent=o.parent),i.newParentIndex=o.index)})}Go.prototype.getOrdering=function(e,t){return null};Z(Go,U);function Iu(e,t,n){Go.call(this,e);var i=[{type:"bpmn:SubProcess",order:{level:6}},{type:"bpmn:SequenceFlow",order:{level:3,containers:["bpmn:Participant","bpmn:FlowElementsContainer"]}},{type:"bpmn:DataAssociation",order:{level:9,containers:["bpmn:Collaboration","bpmn:Process"]}},{type:"bpmn:MessageFlow",order:{level:9,containers:["bpmn:Collaboration"]}},{type:"bpmn:Association",order:{level:6,containers:["bpmn:Participant","bpmn:FlowElementsContainer","bpmn:Collaboration"]}},{type:"bpmn:BoundaryEvent",order:{level:8}},{type:"bpmn:Group",order:{level:10,containers:["bpmn:Collaboration","bpmn:Process"]}},{type:"bpmn:FlowElement",order:{level:5}},{type:"bpmn:Participant",order:{level:-2}},{type:"bpmn:Lane",order:{level:-1}}];function r(s){if(s.labelTarget)return{level:10};var c=_e(i,function(u){return ye(s,[u.type])});return c&&c.order||{level:1}}function a(s){var c=s.order;if(c||(s.order=c=r(s)),!c)throw new Error("no order for <"+s.id+">");return c}function o(s,c,u){for(var l=c;l&&!ye(l,u);)l=l.parent;if(!l)throw new Error("no parent for <"+s.id+"> in <"+(c&&c.id)+">");return l}this.getOrdering=function(s,c){if(s.labelTarget)return{parent:t.getRootElement(),index:-1};var u=a(s);u.containers&&(c=o(s,c,u.containers));var l=c.children.indexOf(s),p=Xm(c.children,function(h){return!s.labelTarget&&h.labelTarget?!1:u.level");this._pushAction(e),t||(this._fire(i,"preExecute",e),a.preExecute&&a.preExecute(r),this._fire(i,"preExecuted",e)),this._atomicDo(function(){n._fire(i,"execute",e),a.execute&&n._markDirty(a.execute(r)),n._executedAction(e,t),n._fire(i,"executed",e)}),t||(this._fire(i,"postExecute",e),a.postExecute&&a.postExecute(r),this._fire(i,"postExecuted",e)),this._popAction(e)};De.prototype._pushAction=function(e){var t=this._currentExecution,n=t.actions,i=n[0];if(t.atomic)throw new Error("illegal invocation in or phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),n.push(e)};De.prototype._popAction=function(){var e=this._currentExecution,t=e.trigger,n=e.actions,i=e.dirty;n.pop(),n.length||(this._eventBus.fire("elements.changed",{elements:ih("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:t}),e.trigger=null)};De.prototype._markDirty=function(e){var t=this._currentExecution;!e||(e=he(e)?e:[e],t.dirty=t.dirty.concat(e))};De.prototype._executedAction=function(e,t){var n=++this._stackIdx;t||this._stack.splice(n,this._stack.length,e)};De.prototype._revertedAction=function(e){this._stackIdx--};De.prototype._getHandler=function(e){return this._handlerMap[e]};De.prototype._setHandler=function(e,t){if(!e||!t)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=t};var i1={commandStack:["type",De]},r1=new jc("tt");function a1(e){var t=Ce('
');return e.insertBefore(t,e.firstChild),t}function o1(e,t,n){I(e.style,{left:t+"px",top:n+"px"})}function ku(e,t){e.style.display=t===!1?"none":""}var Uv="djs-tooltip",Rs="."+Uv;function ht(e,t){this._eventBus=e,this._canvas=t,this._ids=r1,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=a1(t.getContainer());var n=this;xt.bind(this._tooltipRoot,Rs,"mousedown",function(i){i.stopPropagation()}),xt.bind(this._tooltipRoot,Rs,"mouseover",function(i){n.trigger("mouseover",i)}),xt.bind(this._tooltipRoot,Rs,"mouseout",function(i){n.trigger("mouseout",i)}),this._init()}ht.$inject=["eventBus","canvas"];ht.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=I({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t};ht.prototype.trigger=function(e,t){var n=t.delegateTarget||t.target,i=this.get(St(n,"data-tooltip-id"));!i||(e==="mouseover"&&i.timeout&&this.clearTimeout(i),e==="mouseout"&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))};ht.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]};ht.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}};ht.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}};ht.prototype.remove=function(e){var t=this.get(e);t&&(rn(t.html),rn(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])};ht.prototype.show=function(){ku(this._tooltipRoot)};ht.prototype.hide=function(){ku(this._tooltipRoot,!1)};ht.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,i="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i};ht.prototype._addTooltip=function(e){var t=e.id,n=e.html,i,r=this._tooltipRoot;n.get&&n.constructor.prototype.jquery&&(n=n.get(0)),Mt(n)&&(n=Ce(n)),i=Ce('
'),i.appendChild(n),e.type&&ze(i).add("djs-tooltip-"+e.type),e.className&&ze(i).add(e.className),e.htmlContainer=i,r.appendChild(i),this._tooltips[t]=e,this._updateTooltip(e)};ht.prototype._updateTooltip=function(e){var t=e.position,n=e.htmlContainer;o1(n,t.x,t.y)};ht.prototype._updateTooltipVisibilty=function(e){C(this._tooltips,function(t){var n=t.show,i=t.htmlContainer,r=!0;n&&((n.minZoom>e.scale||n.maxZoom0)return"e";if(t<0)return"w"}if(e==="y"){if(t>0)return"s";if(t<0)return"n"}return null}function E1(e,t){var n=[];return C(e.concat(t),function(i){var r=i.incoming,a=i.outgoing;C(r.concat(a),function(o){var s=o.source,c=o.target;(cr(e,s)||cr(e,c)||cr(t,s)||cr(t,c))&&(cr(n,o)||n.push(o))})}),n}function cr(e,t){return e.indexOf(t)!==-1}function b1(e,t,n){var i=e.x,r=e.y,a=e.width,o=e.height,s=n.x,c=n.y;switch(t){case"n":return{x:i,y:r+c,width:a,height:o-c};case"s":return{x:i,y:r,width:a,height:o+c};case"w":return{x:i+s,y:r,width:a-s,height:o};case"e":return{x:i,y:r,width:a+s,height:o};default:throw new Error("unknown direction: "+t)}}var Cs=Math.abs,x1=Math.round,fn={x:"width",y:"height"},Yv="crosshair",Da={n:"top",w:"left",s:"bottom",e:"right"},_1=1500,bf={n:"s",w:"e",s:"n",e:"w"},Na=20;function Tn(e,t,n,i,r,a,o){this._canvas=e,this._dragging=t,this._eventBus=n,this._modeling=i,this._rules=r,this._toolManager=a,this._mouse=o;var s=this;a.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),n.on("spaceTool.selection.end",function(c){n.once("spaceTool.selection.ended",function(){s.activateMakeSpace(c.originalEvent)})}),n.on("spaceTool.move",_1,function(c){var u=c.context,l=u.initialized;l||(l=u.initialized=s.init(c,u)),l&&_f(c)}),n.on("spaceTool.end",function(c){var u=c.context,l=u.axis,p=u.direction,h=u.movingShapes,f=u.resizingShapes,d=u.start;if(!!u.initialized){_f(c);var y={x:0,y:0};y[l]=x1(c["d"+l]),s.makeSpace(h,f,y,p,d),n.once("spaceTool.ended",function(x){s.activateSelection(x.originalEvent,!0,!0)})}})}Tn.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"];Tn.prototype.activateSelection=function(e,t,n){this._dragging.init(e,"spaceTool.selection",{autoActivate:t,cursor:Yv,data:{context:{reactivate:n}},trapClick:!1})};Tn.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:Yv,data:{context:{}}})};Tn.prototype.makeSpace=function(e,t,n,i,r){return this._modeling.createSpace(e,t,n,i,r)};Tn.prototype.init=function(e,t){var n=Cs(e.dx)>Cs(e.dy)?"x":"y",i=e["d"+n],r=e[n]-i;if(Cs(i)<5)return!1;i<0&&(i*=-1),Mi(e)&&(i*=-1);var a=y1(n,i),o=this._canvas.getRootElement(),s=lo(o,!0),c=this.calculateAdjustments(s,n,i,r),u=this._eventBus.fire("spaceTool.getMinDimensions",{axis:n,direction:a,shapes:c.resizingShapes,start:r}),l=w1(c,n,a,r,u);return I(t,c,{axis:n,direction:a,spaceToolConstraints:l,start:r}),Ro("resize-"+(n==="x"?"ew":"ns")),!0};Tn.prototype.calculateAdjustments=function(e,t,n,i){var r=this._rules,a=[],o=[];return C(e,function(s){if(!(!s.parent||vc(s))){var c=s[t],u=c+s[fn[t]];if(n>0&&c>i||n<0&&ui&&r.allowed("shape.resize",{shape:s}))return o.push(s)}}),{movingShapes:a,resizingShapes:o}};Tn.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};Tn.prototype.isActive=function(){var e=this._dragging.context();return e&&/^spaceTool/.test(e.prefix)};function xf(e){return{top:e.top-Na,right:e.right+Na,bottom:e.bottom+Na,left:e.left-Na}}function _f(e){var t=e.context,n=t.spaceToolConstraints;if(!!n){var i,r;ae(n.left)&&(i=Math.max(e.x,n.left),e.dx=e.dx+i-e.x,e.x=i),ae(n.right)&&(i=Math.min(e.x,n.right),e.dx=e.dx+i-e.x,e.x=i),ae(n.top)&&(r=Math.max(e.y,n.top),e.dy=e.dy+r-e.y,e.y=r),ae(n.bottom)&&(r=Math.min(e.y,n.bottom),e.dy=e.dy+r-e.y,e.y=r)}}function w1(e,t,n,i,r){var a=e.movingShapes,o=e.resizingShapes;if(!!o.length){var s={},c,u;return C(o,function(l){var p=ee(l),h=se(l.children,function(A){return!vc(A)&&!wf(A)&&!Ps(a,A)&&!Ps(o,A)}),f=se(l.children,function(A){return!vc(A)&&!wf(A)&&Ps(a,A)}),d,y,x;h.length&&(y=xf(ee(et(h))),d=i-p[Da[n]]+y[Da[n]],n==="n"?s.bottom=u=ae(u)?Math.min(u,d):d:n==="w"?s.right=u=ae(u)?Math.min(u,d):d:n==="s"?s.top=c=ae(c)?Math.max(c,d):d:n==="e"&&(s.left=c=ae(c)?Math.max(c,d):d)),f.length&&(x=xf(ee(et(f))),d=i-x[Da[bf[n]]]+p[Da[bf[n]]],n==="n"?s.bottom=u=ae(u)?Math.min(u,d):d:n==="w"?s.right=u=ae(u)?Math.min(u,d):d:n==="s"?s.top=c=ae(c)?Math.max(c,d):d:n==="e"&&(s.left=c=ae(c)?Math.max(c,d):d));var D=r&&r[l.id];D&&(n==="n"?(d=i+l[fn[t]]-D[fn[t]],s.bottom=u=ae(u)?Math.min(u,d):d):n==="w"?(d=i+l[fn[t]]-D[fn[t]],s.right=u=ae(u)?Math.min(u,d):d):n==="s"?(d=i-l[fn[t]]+D[fn[t]],s.top=c=ae(c)?Math.max(c,d):d):n==="e"&&(d=i-l[fn[t]]+D[fn[t]],s.left=c=ae(c)?Math.max(c,d):d))}),s}}function Ps(e,t){return e.indexOf(t)!==-1}function vc(e){return!!e.waypoints}function wf(e){return!!e.labelTarget}var As="djs-dragging",Sf="djs-resizing",S1=250,Oa=Math.max;function Kv(e,t,n,i,r){function a(o,s){C(o,function(c){r.addDragger(c,s),n.addMarker(c,As)})}e.on("spaceTool.selection.start",function(o){var s=n.getLayer("space"),c=o.context,u={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},l=Q("g");j(l,i.cls("djs-crosshair-group",["no-events"])),ne(s,l);var p=Q("path");j(p,"d",u.x),fe(p).add("djs-crosshair"),ne(l,p);var h=Q("path");j(h,"d",u.y),fe(h).add("djs-crosshair"),ne(l,h),c.crosshairGroup=l}),e.on("spaceTool.selection.move",function(o){var s=o.context.crosshairGroup;vt(s,o.x,o.y)}),e.on("spaceTool.selection.cleanup",function(o){var s=o.context,c=s.crosshairGroup;c&&Be(c)}),e.on("spaceTool.move",S1,function(o){var s=o.context,c=s.line,u=s.axis,l=s.movingShapes,p=s.resizingShapes;if(!!s.initialized){if(!s.dragGroup){var h=n.getLayer("space");c=Q("path"),j(c,"d","M0,0 L0,0"),fe(c).add("djs-crosshair"),ne(h,c),s.line=c;var f=Q("g");j(f,i.cls("djs-drag-group",["no-events"])),ne(n.getActiveLayer(),f),a(l,f);var d=s.movingConnections=t.filter(function(b){var _=!1;C(l,function($){C($.outgoing,function(z){b===z&&(_=!0)})});var M=!1;C(l,function($){C($.incoming,function(z){b===z&&(M=!0)})});var N=!1;C(p,function($){C($.outgoing,function(z){b===z&&(N=!0)})});var P=!1;return C(p,function($){C($.incoming,function(z){b===z&&(P=!0)})}),T1(b)&&(_||N)&&(M||P)});a(d,f),s.dragGroup=f}if(!s.frameGroup){var y=Q("g");j(y,i.cls("djs-frame-group",["no-events"])),ne(n.getActiveLayer(),y);var x=[];C(p,function(b){var _=r.addFrame(b,y),M=_.getBBox();x.push({element:_,initialBounds:M}),n.addMarker(b,Sf)}),s.frameGroup=y,s.frames=x}var D={x:"M"+o.x+", -10000 L"+o.x+", 10000",y:"M -10000, "+o.y+" L 10000, "+o.y};j(c,{d:D[u]});var A={x:"y",y:"x"},w={x:o.dx,y:o.dy};w[A[s.axis]]=0,vt(s.dragGroup,w.x,w.y),C(s.frames,function(b){var _=b.element,M=b.initialBounds,N,P;s.direction==="e"?j(_,{width:Oa(M.width+w.x,5)}):(N=Oa(M.width-w.x,5),j(_,{width:N,x:M.x+M.width-N})),s.direction==="s"?j(_,{height:Oa(M.height+w.y,5)}):(P=Oa(M.height-w.y,5),j(_,{height:P,y:M.y+M.height-P}))})}}),e.on("spaceTool.cleanup",function(o){var s=o.context,c=s.movingShapes,u=s.movingConnections,l=s.resizingShapes,p=s.line,h=s.dragGroup,f=s.frameGroup;C(c,function(d){n.removeMarker(d,As)}),C(u,function(d){n.removeMarker(d,As)}),h&&(Be(p),Be(h)),C(l,function(d){n.removeMarker(d,Sf)}),f&&Be(f)})}Kv.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];function T1(e){return e.waypoints}var qv={__init__:["spaceToolPreview"],__depends__:[_n,sn,Vo,Br,Fr],spaceTool:["type",Tn],spaceToolPreview:["type",Kv]};function Bt(e){this._model=e}Bt.$inject=["moddle"];Bt.prototype._needsId=function(e){return ye(e,["bpmn:RootElement","bpmn:FlowElement","bpmn:MessageFlow","bpmn:DataAssociation","bpmn:Artifact","bpmn:Participant","bpmn:Lane","bpmn:LaneSet","bpmn:Process","bpmn:Collaboration","bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane","bpmn:Property","bpmn:CategoryValue"])};Bt.prototype._ensureId=function(e){if(e.id){this._model.ids.claim(e.id,e);return}var t;m(e,"bpmn:Activity")?t="Activity":m(e,"bpmn:Event")?t="Event":m(e,"bpmn:Gateway")?t="Gateway":ye(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?t="Flow":t=(e.$type||"").replace(/^[^:]*:/g,""),t+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(t,e))};Bt.prototype.create=function(e,t){var n=this._model.create(e,t||{});return this._ensureId(n),n};Bt.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})};Bt.prototype.createDiShape=function(e,t,n){return this.create("bpmndi:BPMNShape",I({bpmnElement:e,bounds:this.createDiBounds(t)},n))};Bt.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)};Bt.prototype.createDiWaypoints=function(e){var t=this;return Ye(e,function(n){return t.createDiWaypoint(n)})};Bt.prototype.createDiWaypoint=function(e){return this.create("dc:Point",Vt(e,["x","y"]))};Bt.prototype.createDiEdge=function(e,t,n){return this.create("bpmndi:BPMNEdge",I({bpmnElement:e,waypoint:this.createDiWaypoints(t)},n))};Bt.prototype.createDiPlane=function(e){return this.create("bpmndi:BPMNPlane",{bpmnElement:e})};function gt(e,t,n,i){U.call(this,e),this._bpmnFactory=t,this._translate=i;var r=this;function a(f){var d=f.context,y=d.hints||{},x;!d.cropped&&y.createElementsBehavior!==!1&&(x=d.connection,x.waypoints=n.getCroppedWaypoints(x),d.cropped=!0)}this.executed(["connection.layout","connection.create"],a),this.reverted(["connection.layout"],function(f){delete f.context.cropped});function o(f){var d=f.context;r.updateParent(d.shape||d.connection,d.oldParent)}function s(f){var d=f.context,y=d.shape||d.connection,x=d.parent||d.newParent;r.updateParent(y,x)}this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Pt(o)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Pt(s));function c(f){var d=f.context,y=d.oldRoot,x=y.children;C(x,function(D){m(D,"bpmn:BaseElement")&&r.updateParent(D)})}this.executed(["canvas.updateRoot"],c),this.reverted(["canvas.updateRoot"],c);function u(f){var d=f.context.shape;!m(d,"bpmn:BaseElement")||r.updateBounds(d)}this.executed(["shape.move","shape.create","shape.resize"],Pt(function(f){f.context.shape.type!=="label"&&u(f)})),this.reverted(["shape.move","shape.create","shape.resize"],Pt(function(f){f.context.shape.type!=="label"&&u(f)})),e.on("shape.changed",function(f){f.element.type==="label"&&u({context:{shape:f.element}})});function l(f){r.updateConnection(f.context)}this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Pt(l)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Pt(l));function p(f){r.updateConnectionWaypoints(f.context.connection)}this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Pt(p)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Pt(p)),this.executed("connection.reconnect",Pt(function(f){var d=f.context,y=d.connection,x=d.oldSource,D=d.newSource,A=Y(y),w=Y(x),b=Y(D);A.conditionExpression&&!ye(b,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(d.oldConditionExpression=A.conditionExpression,delete A.conditionExpression),x!==D&&w.default===A&&(d.oldDefault=w.default,delete w.default)})),this.reverted("connection.reconnect",Pt(function(f){var d=f.context,y=d.connection,x=d.oldSource,D=d.newSource,A=Y(y),w=Y(x),b=Y(D);d.oldConditionExpression&&(A.conditionExpression=d.oldConditionExpression),d.oldDefault&&(w.default=d.oldDefault,delete b.default)}));function h(f){r.updateAttachment(f.context)}this.executed(["element.updateAttachment"],Pt(h)),this.reverted(["element.updateAttachment"],Pt(h))}Z(gt,U);gt.$inject=["eventBus","bpmnFactory","connectionDocking","translate"];gt.prototype.updateAttachment=function(e){var t=e.shape,n=t.businessObject,i=t.host;n.attachedToRef=i&&i.businessObject};gt.prototype.updateParent=function(e,t){if(!(e instanceof fo)&&!(m(e,"bpmn:DataStoreReference")&&e.parent&&m(e.parent,"bpmn:Collaboration"))){var n=e.parent,i=e.businessObject,r=n&&n.businessObject,a=r&&r.di;m(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,r,t&&t.businessObject),m(e,"bpmn:DataOutputAssociation")&&(e.source?r=e.source.businessObject:r=null),m(e,"bpmn:DataInputAssociation")&&(e.target?r=e.target.businessObject:r=null),this.updateSemanticParent(i,r),m(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,r),this.updateDiParent(i.di,a)}};gt.prototype.updateBounds=function(e){var t=e.businessObject.di,n=e instanceof fo?this._getLabel(t):t,i=n.bounds;i||(i=this._bpmnFactory.createDiBounds(),n.set("bounds",i)),I(i,{x:e.x,y:e.y,width:e.width,height:e.height})};gt.prototype.updateFlowNodeRefs=function(e,t,n){if(n!==t){var i,r;m(n,"bpmn:Lane")&&(i=n.get("flowNodeRef"),ke(i,e)),m(t,"bpmn:Lane")&&(r=t.get("flowNodeRef"),Le(r,e))}};gt.prototype.updateDiConnection=function(e,t,n){e.sourceElement&&e.sourceElement.bpmnElement!==t&&(e.sourceElement=t&&t.di),e.targetElement&&e.targetElement.bpmnElement!==n&&(e.targetElement=n&&n.di)};gt.prototype.updateDiParent=function(e,t){if(t&&!m(t,"bpmndi:BPMNPlane")&&(t=t.$parent),e.$parent!==t){var n=(t||e.$parent).get("planeElement");t?(n.push(e),e.$parent=t):(ke(n,e),e.$parent=null)}};function R1(e){for(;e&&!m(e,"bpmn:Definitions");)e=e.$parent;return e}gt.prototype.getLaneSet=function(e){var t,n;return m(e,"bpmn:Lane")?(t=e.childLaneSet,t||(t=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=t,t.$parent=e),t):(m(e,"bpmn:Participant")&&(e=e.processRef),n=e.get("laneSets"),t=n[0],t||(t=this._bpmnFactory.create("bpmn:LaneSet"),t.$parent=e,n.push(t)),t)};gt.prototype.updateSemanticParent=function(e,t,n){var i,r=this._translate;if(e.$parent!==t&&!((m(e,"bpmn:DataInput")||m(e,"bpmn:DataOutput"))&&(m(t,"bpmn:Participant")&&"processRef"in t&&(t=t.processRef),"ioSpecification"in t&&t.ioSpecification===e.$parent))){if(m(e,"bpmn:Lane"))t&&(t=this.getLaneSet(t)),i="lanes";else if(m(e,"bpmn:FlowElement")){if(t){if(m(t,"bpmn:Participant"))t=t.processRef;else if(m(t,"bpmn:Lane"))do t=t.$parent.$parent;while(m(t,"bpmn:Lane"))}i="flowElements"}else if(m(e,"bpmn:Artifact")){for(;t&&!m(t,"bpmn:Process")&&!m(t,"bpmn:SubProcess")&&!m(t,"bpmn:Collaboration");)if(m(t,"bpmn:Participant")){t=t.processRef;break}else t=t.$parent;i="artifacts"}else if(m(e,"bpmn:MessageFlow"))i="messageFlows";else if(m(e,"bpmn:Participant")){i="participants";var a=e.processRef,o;a&&(o=R1(e.$parent||t),e.$parent&&(ke(o.get("rootElements"),a),a.$parent=null),t&&(Le(o.get("rootElements"),a),a.$parent=o))}else m(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":m(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(r("no parent for {element} in {parent}",{element:e.id,parent:t.id}));var s;if(e.$parent&&(s=e.$parent.get(i),ke(s,e)),t?(s=t.get(i),s.push(e),e.$parent=t):e.$parent=null,n){var c=n.get(i);ke(s,e),t&&(c||(c=[],t.set(i,c)),c.push(e))}}};gt.prototype.updateConnectionWaypoints=function(e){e.businessObject.di.set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))};gt.prototype.updateConnection=function(e){var t=e.connection,n=Y(t),i=Y(t.source),r=Y(t.target),a;if(m(n,"bpmn:DataAssociation"))m(n,"bpmn:DataInputAssociation")?(n.get("sourceRef")[0]=i,a=e.parent||e.newParent||r,this.updateSemanticParent(n,r,a)):m(n,"bpmn:DataOutputAssociation")&&(a=e.parent||e.newParent||i,this.updateSemanticParent(n,i,a),n.targetRef=r);else{var o=m(n,"bpmn:SequenceFlow");n.sourceRef!==i&&(o&&(ke(n.sourceRef&&n.sourceRef.get("outgoing"),n),i&&i.get("outgoing")&&i.get("outgoing").push(n)),n.sourceRef=i),n.targetRef!==r&&(o&&(ke(n.targetRef&&n.targetRef.get("incoming"),n),r&&r.get("incoming")&&r.get("incoming").push(n)),n.targetRef=r)}this.updateConnectionWaypoints(t),this.updateDiConnection(n.di,i,r)};gt.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label};function Pt(e){return function(t){var n=t.context,i=n.shape||n.connection;m(i,"bpmn:BaseElement")&&e(t)}}function Un(e,t,n){En.call(this),this._bpmnFactory=e,this._moddle=t,this._translate=n}Z(Un,En);Un.$inject=["bpmnFactory","moddle","translate"];Un.prototype.baseCreate=En.prototype.create;Un.prototype.create=function(e,t){return e==="label"?this.baseCreate(e,I({type:"label"},xr,t)):this.createBpmnElement(e,t)};Un.prototype.createBpmnElement=function(e,t){var n,i=this._translate;t=t||{};var r=t.businessObject;if(!r){if(!t.type)throw new Error(i("no shape type specified"));r=this._bpmnFactory.create(t.type)}r.di||(e==="root"?r.di=this._bpmnFactory.createDiPlane(r,[],{id:r.id+"_di"}):e==="connection"?r.di=this._bpmnFactory.createDiEdge(r,[],{id:r.id+"_di"}):r.di=this._bpmnFactory.createDiShape(r,{},{id:r.id+"_di"})),m(r,"bpmn:Group")&&(t=I({isFrame:!0},t)),t.di&&(I(r.di,t.di),delete t.di),C1(r,t,["processRef","isInterrupting","associationDirection","isForCompensation"]),t.isExpanded&&Xv(r.di,t,"isExpanded"),m(r,"bpmn:ExclusiveGateway")&&(r.di.isMarkerVisible=!0);var a,o;return t.eventDefinitionType&&(a=r.get("eventDefinitions")||[],o=this._bpmnFactory.create(t.eventDefinitionType,t.eventDefinitionAttrs),t.eventDefinitionType==="bpmn:ConditionalEventDefinition"&&(o.condition=this._bpmnFactory.create("bpmn:FormalExpression")),a.push(o),o.$parent=r,r.eventDefinitions=a,delete t.eventDefinitionType),n=this._getDefaultSize(r),t=I({businessObject:r,id:r.id},n,t),this.baseCreate(e,t)};Un.prototype._getDefaultSize=function(e){return m(e,"bpmn:SubProcess")?Se(e)?{width:350,height:200}:{width:100,height:80}:m(e,"bpmn:Task")?{width:100,height:80}:m(e,"bpmn:Gateway")?{width:50,height:50}:m(e,"bpmn:Event")?{width:36,height:36}:m(e,"bpmn:Participant")?Se(e)?{width:600,height:250}:{width:400,height:60}:m(e,"bpmn:Lane")?{width:400,height:100}:m(e,"bpmn:DataObjectReference")?{width:36,height:50}:m(e,"bpmn:DataStoreReference")?{width:50,height:50}:m(e,"bpmn:TextAnnotation")?{width:100,height:30}:m(e,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}};Un.prototype.createParticipantShape=function(e){return Je(e)||(e={isExpanded:e}),e=I({type:"bpmn:Participant"},e||{}),e.isExpanded!==!1&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)};function C1(e,t,n){C(n,function(i){t[i]!==void 0&&Xv(e,t,i)})}function Xv(e,t,n){e[n]=t[n],delete t[n]}function Wo(e,t){this._modeling=e,this._canvas=t}Wo.$inject=["modeling","canvas"];Wo.prototype.preExecute=function(e){var t=this._modeling,n=e.elements,i=e.alignment;C(n,function(r){var a={x:0,y:0};i.left?a.x=i.left-r.x:i.right?a.x=i.right-r.width-r.x:i.center?a.x=i.center-Math.round(r.width/2)-r.x:i.top?a.y=i.top-r.y:i.bottom?a.y=i.bottom-r.height-r.y:i.middle&&(a.y=i.middle-Math.round(r.height/2)-r.y),t.moveElements([r],a,r.parent)})};Wo.prototype.postExecute=function(e){};function Uo(e){this._modeling=e}Uo.$inject=["modeling"];Uo.prototype.preExecute=function(e){var t=e.source;if(!t)throw new Error("source required");var n=e.target||t.parent,i=e.shape,r=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,n,{attach:r.attach}),e.shape=i};Uo.prototype.postExecute=function(e){var t=e.hints||{};P1(e.source,e.shape)||(t.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))};function P1(e,t){return si(e.outgoing,function(n){return n.target===t})}function Yo(e,t){this._canvas=e,this._layouter=t}Yo.$inject=["canvas","layouter"];Yo.prototype.execute=function(e){var t=e.connection,n=e.source,i=e.target,r=e.parent,a=e.parentIndex,o=e.hints;if(!n||!i)throw new Error("source and target required");if(!r)throw new Error("parent required");return t.source=n,t.target=i,t.waypoints||(t.waypoints=this._layouter.layoutConnection(t,o)),this._canvas.addConnection(t,r,a),t};Yo.prototype.revert=function(e){var t=e.connection;return this._canvas.removeConnection(t),t.source=null,t.target=null,t};var Ia=Math.round;function $u(e){this._modeling=e}$u.$inject=["modeling"];$u.prototype.preExecute=function(e){var t=e.elements,n=e.parent,i=e.parentIndex,r=e.position,a=e.hints,o=this._modeling;C(t,function(l){ae(l.x)||(l.x=0),ae(l.y)||(l.y=0)});var s=et(t);C(t,function(l){Tf(l)&&(l.waypoints=Ye(l.waypoints,function(p){return{x:Ia(p.x-s.x-s.width/2+r.x),y:Ia(p.y-s.y-s.height/2+r.y)}})),I(l,{x:Ia(l.x-s.x-s.width/2+r.x),y:Ia(l.y-s.y-s.height/2+r.y)})});var c=mh(t),u={};C(t,function(l){if(Tf(l)){u[l.id]=ae(i)?o.createConnection(u[l.source.id],u[l.target.id],i,l,l.parent||n,a):o.createConnection(u[l.source.id],u[l.target.id],l,l.parent||n,a);return}var p=I({},a);c.indexOf(l)===-1&&(p.autoResize=!1),u[l.id]=ae(i)?o.createShape(l,Vt(l,["x","y","width","height"]),l.parent||n,i,p):o.createShape(l,Vt(l,["x","y","width","height"]),l.parent||n,p)}),e.elements=bc(u)};function Tf(e){return!!e.waypoints}var Rf=Math.round;function Yn(e){this._canvas=e}Yn.$inject=["canvas"];Yn.prototype.execute=function(e){var t=e.shape,n=e.position,i=e.parent,r=e.parentIndex;if(!i)throw new Error("parent required");if(!n)throw new Error("position required");return n.width!==void 0?I(t,n):I(t,{x:n.x-Rf(t.width/2),y:n.y-Rf(t.height/2)}),this._canvas.addShape(t,i,r),t};Yn.prototype.revert=function(e){var t=e.shape;return this._canvas.removeShape(t),t};function Wr(e){Yn.call(this,e)}Z(Wr,Yn);Wr.$inject=["canvas"];var A1=Yn.prototype.execute;Wr.prototype.execute=function(e){var t=e.shape;return D1(t),t.labelTarget=e.labelTarget,A1.call(this,e)};var M1=Yn.prototype.revert;Wr.prototype.revert=function(e){return e.shape.labelTarget=null,M1.call(this,e)};function D1(e){["width","height"].forEach(function(t){typeof e[t]=="undefined"&&(e[t]=0)})}function Ko(e,t){this._canvas=e,this._modeling=t}Ko.$inject=["canvas","modeling"];Ko.prototype.execute=function(e){var t=e.connection,n=t.parent;return e.parent=n,e.parentIndex=Pc(n.children,t),e.source=t.source,e.target=t.target,this._canvas.removeConnection(t),t.source=null,t.target=null,t};Ko.prototype.revert=function(e){var t=e.connection,n=e.parent,i=e.parentIndex;return t.source=e.source,t.target=e.target,Le(n.children,t,i),this._canvas.addConnection(t,n),t};function Fu(e,t){this._modeling=e,this._elementRegistry=t}Fu.$inject=["modeling","elementRegistry"];Fu.prototype.postExecute=function(e){var t=this._modeling,n=this._elementRegistry,i=e.elements;C(i,function(r){!n.get(r.id)||(r.waypoints?t.removeConnection(r):t.removeShape(r))})};function Ur(e,t){this._canvas=e,this._modeling=t}Ur.$inject=["canvas","modeling"];Ur.prototype.preExecute=function(e){var t=this._modeling,n=e.shape;Si(n.incoming,function(i){t.removeConnection(i,{nested:!0})}),Si(n.outgoing,function(i){t.removeConnection(i,{nested:!0})}),Si(n.children,function(i){N1(i)?t.removeConnection(i,{nested:!0}):t.removeShape(i,{nested:!0})})};Ur.prototype.execute=function(e){var t=this._canvas,n=e.shape,i=n.parent;return e.oldParent=i,e.oldParentIndex=Pc(i.children,n),t.removeShape(n),n};Ur.prototype.revert=function(e){var t=this._canvas,n=e.shape,i=e.oldParent,r=e.oldParentIndex;return Le(i.children,n,r),t.addShape(n,i),n};function N1(e){return e.waypoints}function qo(e){this._modeling=e}qo.$inject=["modeling"];var Cf={x:"y",y:"x"};qo.prototype.preExecute=function(e){var t=this._modeling,n=e.groups,i=e.axis,r=e.dimension;function a(x,D){x.range.min=Math.min(D[i],x.range.min),x.range.max=Math.max(D[i]+D[r],x.range.max)}function o(x){return x[i]+x[r]/2}function s(x){return x.length-1}function c(x){return x.max-x.min}function u(x,D){var A={y:0};A[i]=x-o(D),A[i]&&(A[Cf[i]]=0,t.moveElements([D],A,D.parent))}var l=n[0],p=s(n),h=n[p],f,d,y=0;C(n,function(x,D){var A,w,b;if(x.elements.length<2){D&&D!==n.length-1&&(a(x,x.elements[0]),y+=c(x.range));return}A=Gt(x.elements,i),w=A[0],D===p&&(w=A[s(A)]),b=o(w),x.range=null,C(A,function(_){if(u(b,_),x.range===null){x.range={min:_[i],max:_[i]+_[r]};return}a(x,_)}),D&&D!==n.length-1&&(y+=c(x.range))}),d=Math.abs(h.range.min-l.range.max),f=Math.round((d-y)/(n.length-1)),!(ft;if(/n|w/.test(n))return e[i] required");var r=e.changed||this.getVisualReferences(n).concat(t),a=e.oldProperties||k1(n,Wa(i));return im(n,i),e.oldProperties=a,e.changed=r,r};Xr.prototype.revert=function(e){var t=e.oldProperties,n=e.moddleElement,i=e.changed;return im(n,t),i};Xr.prototype.getVisualReferences=function(e){var t=this._elementRegistry;return m(e,"bpmn:DataObject")?L1(e,t):[]};function k1(e,t){return wt(t,function(n,i){return n[i]=e.get(i),n},{})}function im(e,t){C(t,function(n,i){e.set(i,n)})}function L1(e,t){return t.filter(function(n){return m(n,"bpmn:DataObjectReference")&&Y(n).dataObjectRef===e})}var ur="default",mn="id",rm="di",B1={width:0,height:0};function Zr(e,t,n,i,r){this._elementRegistry=e,this._moddle=t,this._translate=n,this._modeling=i,this._textRenderer=r}Zr.$inject=["elementRegistry","moddle","translate","modeling","textRenderer"];Zr.prototype.execute=function(e){var t=e.element,n=[t],i=this._translate;if(!t)throw new Error(i("element required"));var r=this._elementRegistry,a=this._moddle.ids,o=t.businessObject,s=z1(e.properties),c=e.oldProperties||$1(o,s);return am(s,o)&&(a.unclaim(o[mn]),r.updateId(t,s[mn]),a.claim(s[mn],o)),ur in s&&(s[ur]&&n.push(r.get(s[ur].id)),o[ur]&&n.push(r.get(o[ur].id))),om(o,s),e.oldProperties=c,e.changed=n,n};Zr.prototype.postExecute=function(e){var t=e.element,n=t.label,i=n&&Y(n).name;if(!!i){var r=this._textRenderer.getExternalLabelBounds(n,i);this._modeling.resizeShape(n,r,B1)}};Zr.prototype.revert=function(e){var t=e.element,n=e.properties,i=e.oldProperties,r=t.businessObject,a=this._elementRegistry,o=this._moddle.ids;return om(r,i),am(n,r)&&(o.unclaim(n[mn]),a.updateId(t,i[mn]),o.claim(i[mn],r)),e.changed};function am(e,t){return mn in e&&e[mn]!==t[mn]}function $1(e,t){var n=Wa(t);return wt(n,function(i,r){return r!==rm?i[r]=e.get(r):i[r]=F1(e.di,Wa(t.di)),i},{})}function F1(e,t){return wt(t,function(n,i){return n[i]=e.get(i),n},{})}function om(e,t){C(t,function(n,i){i!==rm?e.set(i,n):e.di&&H1(e.di,n)})}function H1(e,t){C(t,function(n,i){e.set(i,n)})}var j1=["default"];function z1(e){var t=I({},e);return j1.forEach(function(n){n in e&&(t[n]=Y(t[n]))}),t}function es(e,t){this._canvas=e,this._modeling=t}es.$inject=["canvas","modeling"];es.prototype.execute=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=t.getRootElement(),a=r.businessObject,o=a.$parent,s=a.di;t.setRootElement(n,!0),Le(o.rootElements,i),i.$parent=o,ke(o.rootElements,a),a.$parent=null,a.di=null,s.bpmnElement=i,i.di=s,e.oldRoot=r};es.prototype.revert=function(e){var t=this._canvas,n=e.newRoot,i=n.businessObject,r=e.oldRoot,a=r.businessObject,o=i.$parent,s=i.di;t.setRootElement(r,!0),ke(o.rootElements,i),i.$parent=null,Le(o.rootElements,a),a.$parent=o,i.di=null,s.bpmnElement=a,a.di=s};function Gu(e,t){this._modeling=e,this._spaceTool=t}Gu.$inject=["modeling","spaceTool"];Gu.prototype.preExecute=function(e){var t=this._spaceTool,n=this._modeling,i=e.shape,r=e.location,a=jt(i),o=a===i,s=o?i:i.parent,c=fi(s);c.length||n.createShape({type:"bpmn:Lane"},{x:i.x+wi,y:i.y,width:i.width-wi,height:i.height},s);var u=[];ui(a,function(y){return u.push(y),y.label&&u.push(y.label),y===i?[]:se(y.children,function(x){return x!==i})});var l=r==="top"?-120:120,p=r==="top"?i.y:i.y+i.height,h=p+(r==="top"?10:-10),f=r==="top"?"n":"s",d=t.calculateAdjustments(u,"y",l,h);t.makeSpace(d.movingShapes,d.resizingShapes,{x:0,y:l},f,h),e.newLane=n.createShape({type:"bpmn:Lane"},{x:i.x+(o?wi:0),y:p-(r==="top"?120:0),width:i.width-(o?wi:0),height:120},s)};function Vu(e,t){this._modeling=e,this._translate=t}Vu.$inject=["modeling","translate"];Vu.prototype.preExecute=function(e){var t=this._modeling,n=this._translate,i=e.shape,r=e.count,a=fi(i),o=a.length;if(o>r)throw new Error(n("more than {count} child lanes",{count:r}));var s=Math.round(i.height/r),c,u,l,p,h;for(h=0;h0||a.bottom<0?-u:u,f=n.calculateAdjustments(s,"y",h,l),n.makeSpace(f.movingShapes,f.resizingShapes,{x:0,y:u},p)),(a.left||a.right)&&(u=a.right||a.left,l=e.x+(a.right?e.width:0)+(a.right?-10:100),p=a.right?"e":"w",h=a.left>0||a.right<0?-u:u,f=n.calculateAdjustments(c,"x",h,l),n.makeSpace(f.movingShapes,f.resizingShapes,{x:u,y:0},p))};var Sr="flowNodeRef",Wu="lanes";function Jr(e){this._elementRegistry=e}Jr.$inject=["elementRegistry"];Jr.prototype.computeUpdates=function(e,t){var n=[],i=[],r={},a=[];function o(l,p){var h=ee(p),f={x:l.x+l.width/2,y:l.y+l.height/2};return f.x>h.left&&f.xh.top&&f.y: must be specified as : with start/end in { h,v,t,r,b,l }");if(lm(n)){var i=Q1(e,t,n),r=J1(e,t,n),a=eT(i,r);return[].concat(i.waypoints,a.waypoints,r.waypoints)}return tT(e,t,n)}function nT(e,t,n){var i=Yu(e,t,n);return i.unshift(e),i.push(t),pm(i)}function iT(e,t,n,i,r){var a=r&&r.preferredLayouts||[],o=Zm(a,"straight")[0]||"h:h",s=q1[o]||0,c=tt(e,t,s),u=uT(c,o);n=n||ce(e),i=i||ce(t);var l=u.split(":"),p=kf(n,e,l[0],pT(c)),h=kf(i,t,l[1],c);return nT(p,h,u)}function rT(e,t,n,i,r,a){he(n)&&(r=n,a=i,n=ce(e),i=ce(t)),a=I({preferredLayouts:[]},a),r=r||[];var o=a.preferredLayouts,s=o.indexOf("straight")!==-1,c;return c=s&&oT(e,t,n,i,a),c||(c=a.connectionEnd&&cT(t,e,i,r),c)||(c=a.connectionStart&&sT(e,t,n,r),c)?c:!a.connectionStart&&!a.connectionEnd&&r&&r.length?r:iT(e,t,n,i,a)}function aT(e,t,n){return e>=t&&e<=n}function If(e,t,n){var i={x:"width",y:"height"};return aT(t[e],n[e],n[e]+n[i[e]])}function oT(e,t,n,i,r){var a={},o,s;return s=tt(e,t),/^(top|bottom|left|right)$/.test(s)?(/top|bottom/.test(s)&&(o="x"),/left|right/.test(s)&&(o="y"),r.preserveDocking==="target"?If(o,i,e)?(a[o]=i[o],[{x:a.x!==void 0?a.x:n.x,y:a.y!==void 0?a.y:n.y,original:{x:a.x!==void 0?a.x:n.x,y:a.y!==void 0?a.y:n.y}},{x:i.x,y:i.y}]):null:If(o,n,t)?(a[o]=n[o],[{x:n.x,y:n.y},{x:a.x!==void 0?a.x:i.x,y:a.y!==void 0?a.y:i.y,original:{x:a.x!==void 0?a.x:i.x,y:a.y!==void 0?a.y:i.y}}]):null):null}function sT(e,t,n,i){return Ku(e,t,n,i)}function cT(e,t,n,i){var r=i.slice().reverse();return r=Ku(e,t,n,r),r?r.reverse():null}function Ku(e,t,n,i){function r(l){return l.length<3?!0:l.length>4?!1:!!_e(l,function(p,h){var f=l[h-1];return f&&Pr(p,f)<3})}function a(l,p,h){var f=dn(p,l);switch(f){case"v":return{x:h.x,y:l.y};case"h":return{x:l.x,y:h.y}}return{x:l.x,y:l.y}}function o(l,p,h){var f;for(f=l.length-2;f!==0;f--)if(Sl(l[f],p,Nf)||Sl(l[f],h,Nf))return l.slice(f);return l}if(r(i))return null;var s=i[0],c=i.slice(),u;return c[0]=n,c[1]=a(c[1],s,n),u=o(c,e,t),u!==c&&(c=Ku(e,t,n,u)),c&&dn(c)?null:c}function uT(e,t){if(lm(t))return t;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return t}}function lT(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}function lm(e){return e&&/t|r|b|l/.test(e)}function pT(e){return{top:"bottom",bottom:"top",left:"right",right:"left","top-left":"bottom-right","bottom-right":"top-left","top-right":"bottom-left","bottom-left":"top-right"}[e]}function kf(e,t,n,i){if(n==="h"&&(n=/left/.test(i)?"l":"r"),n==="v"&&(n=/top/.test(i)?"t":"b"),n==="t")return{original:e,x:e.x,y:t.y};if(n==="r")return{original:e,x:t.x+t.width,y:e.y};if(n==="b")return{original:e,x:e.x,y:t.y+t.height};if(n==="l")return{original:e,x:t.x,y:e.y};throw new Error("unexpected dockingDirection: <"+n+">")}function pm(e){return e.reduce(function(t,n,i){var r=t[t.length-1],a=e[i+1];return Ac(r,a,n,0)||t.push(n),t},[])}var fT=-10,hT=40,qu={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},Ga={top:"t",right:"r",bottom:"b",left:"l"};function Xu(){}Z(Xu,cm);Xu.prototype.layoutConnection=function(e,t){t||(t={});var n=t.source||e.source,i=t.target||e.target,r=t.waypoints||e.waypoints,a=t.connectionStart,o=t.connectionEnd,s,c;return a||(a=Lf(r&&r[0],n)),o||(o=Lf(r&&r[r.length-1],i)),(m(e,"bpmn:Association")||m(e,"bpmn:DataAssociation"))&&r&&!Bf(n,i)?[].concat([a],r.slice(1,-1),[o]):(m(e,"bpmn:MessageFlow")?s=vT(n,i):(m(e,"bpmn:SequenceFlow")||Bf(n,i))&&(n===i?s={preferredLayouts:wT(n,e)}:m(n,"bpmn:BoundaryEvent")?s={preferredLayouts:ST(n,i,o)}:Tr(n)||Tr(i)?s=gT(n):m(n,"bpmn:Gateway")?s={preferredLayouts:["v:h"]}:m(i,"bpmn:Gateway")?s={preferredLayouts:["h:v"]}:s={preferredLayouts:["h:h"]}),s&&(s=I(s,t),c=pm(rT(n,i,a,o,r,s))),c||[a,o])};function dT(e){var t=e.host;return tt(ce(e),t,fT)}function vT(e,t){return{preferredLayouts:["straight","v:v"],preserveDocking:mT(e,t)}}function mT(e,t){return m(t,"bpmn:Participant")?"source":m(e,"bpmn:Participant")?"target":Tr(t)?"source":Tr(e)||m(t,"bpmn:Event")?"target":m(e,"bpmn:Event")?"source":null}function gT(e){return{preferredLayouts:["straight","h:h"],preserveDocking:yT(e)}}function yT(e){return Tr(e)?"target":"source"}function Lf(e,t){return e?e.original||e:ce(t)}function Bf(e,t){return m(t,"bpmn:Activity")&&m(e,"bpmn:BoundaryEvent")&&t.businessObject.isForCompensation}function Tr(e){return m(e,"bpmn:SubProcess")&&Se(e)}function gr(e,t){return e===t}function ET(e,t){return t.indexOf(e)!==-1}function yr(e){var t=/right|left/.exec(e);return t&&t[0]}function ai(e){var t=/top|bottom/.exec(e);return t&&t[0]}function bT(e,t){return qu[e]===t}function xT(e,t){var n=yr(e),i=qu[n];return t.indexOf(i)!==-1}function _T(e,t){var n=ai(e),i=qu[n];return t.indexOf(i)!==-1}function mc(e){return e==="right"||e==="left"}function wT(e,t){var n=t.waypoints,i=n&&n.length&&tt(n[0],e);return i==="top"?["t:r"]:i==="right"?["r:b"]:i==="left"?["l:t"]:["b:l"]}function ST(e,t,n){var i=ce(e),r=ce(t),a=dT(e),o,s,c=gr(e.host,t),u=ET(a,["top","right","bottom","left"]),l=tt(r,i,{x:e.width/2+t.width/2,y:e.height/2+t.height/2});return c?TT(a,u,e,t,n):(o=RT(a,l,u),s=CT(a,l,u),[o+":"+s])}function TT(e,t,n,i,r){var a=t?e:ai(e),o=Ga[a],s;return t?mc(e)?s=$f("y",n,i,r)?"h":"b":s=$f("x",n,i,r)?"v":"l":s="v",[o+":"+s]}function $f(e,t,n,i){var r=hT;return!(Ms(e,i,n,r)||Ms(e,i,{x:n.x+n.width,y:n.y+n.height},r)||Ms(e,i,ce(t),r))}function Ms(e,t,n,i){return Math.abs(t[e]-n[e])
'),e.appendChild(a));var o=n.html||(n.separator?'
':'
'),s=Ce(o);a.appendChild(s),n.separator||(St(s,"data-action",i),n.title&&St(s,"title",n.title),n.className&&jT(s,n.className),n.imageUrl&&s.appendChild(Ce('')))}),this.open()};$e.prototype.trigger=function(e,t,n){var i=this._entries,r,a,o,s=t.delegateTarget||t.target;if(!s)return t.preventDefault();r=i[St(s,"data-action")],r&&(a=r.action,o=t.originalEvent||t,ot(a)?e==="click"&&a(o,n):a[e]&&a[e](o,n),t.preventDefault())};$e.prototype._layoutChanged=function(){this._toggleState({})};$e.prototype._needsCollapse=function(e,t){var n=50,i=Object.keys(t).length*46;return e=n.x&&t.yn.x&&t.y<=n.y?i={x:n.x,y:t.y,width:t.x-n.x,height:n.y-t.y}:t.x<=n.x&&t.y>n.y||t.x=n.y?i={x:t.x,y:n.y,width:n.x-t.x,height:t.y-n.y}:t.x>=n.x&&t.y>n.y||t.x>n.x&&t.y>=n.y?i={x:n.x,y:n.y,width:t.x-n.x,height:t.y-n.y}:i={x:n.x,y:n.y,width:0,height:0},i}var VT={__depends__:[Vo,Fr],__init__:["lassoTool"],lassoTool:["type",mi]},Os=1500,gm="grab";function Ki(e,t,n,i,r,a){this._dragging=n,this._mouse=a;var o=this,s=i.get("keyboard",!1);r.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",Os,function(c){if(!!Mi(c))return o.activateMove(c.originalEvent,!0),!1}),s&&s.addListener(Os,function(c){if(!(!Uf(c.keyEvent)||o.isActive())){var u=o._mouse.getLastMoveEvent();o.activateMove(u,!!u)}},"keyboard.keydown"),s&&s.addListener(Os,function(c){!Uf(c.keyEvent)||!o.isActive()||o.toggle()},"keyboard.keyup"),e.on("hand.end",function(c){var u=c.originalEvent.target;if(!c.hover&&!(u instanceof SVGElement))return!1;e.once("hand.ended",function(){o.activateMove(c.originalEvent,{reactivate:!0})})}),e.on("hand.move.move",function(c){var u=t.viewbox().scale;t.scroll({dx:c.dx*u,dy:c.dy*u})}),e.on("hand.move.end",function(c){var u=c.context,l=u.reactivate;return!Mi(c)&&l&&e.once("hand.move.ended",function(p){o.activateHand(p.originalEvent,!0,!0)}),!1})}Ki.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"];Ki.prototype.activateMove=function(e,t,n){typeof t=="object"&&(n=t,t=!1),this._dragging.init(e,"hand.move",{autoActivate:t,cursor:gm,data:{context:n||{}}})};Ki.prototype.activateHand=function(e,t,n){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:t,cursor:gm,data:{context:{reactivate:n}}})};Ki.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)};Ki.prototype.isActive=function(){var e=this._dragging.context();return e?/^(hand|hand\.move)$/.test(e.prefix):!1};function Uf(e){return Ht(" ",e)}var WT={__depends__:[Vo,Fr],__init__:["handTool"],handTool:["type",Ki]},Yf="connect-ok",Kf="connect-not-ok";function qi(e,t,n,i,r,a,o){var s=this;this._dragging=t,this._rules=a,this._mouse=o,r.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",function(c){var u=c.context,l=c.hover,p=u.canStartConnect=s.canStartConnect(l);p!==null&&(u.startTarget=l,i.addMarker(l,p?Yf:Kf))}),e.on(["global-connect.out","global-connect.cleanup"],function(c){var u=c.context.startTarget,l=c.context.canStartConnect;u&&i.removeMarker(u,l?Yf:Kf)}),e.on(["global-connect.ended"],function(c){var u=c.context,l=u.startTarget,p={x:c.x,y:c.y},h=s.canStartConnect(l);if(!!h)return e.once("element.out",function(){e.once(["connect.ended","connect.canceled"],function(){e.fire("global-connect.drag.ended")}),n.start(null,l,p)}),!1})}qi.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"];qi.prototype.start=function(e,t){this._dragging.init(e,"global-connect",{autoActivate:t,trapClick:!1,data:{context:{}}})};qi.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)};qi.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)};qi.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};var UT={__depends__:[Zc,sn,_n,Vo,Fr],globalConnect:["type",qi]};function Zu(e,t,n,i,r,a,o,s){this._palette=e,this._create=t,this._elementFactory=n,this._spaceTool=i,this._lassoTool=r,this._handTool=a,this._globalConnect=o,this._translate=s,e.registerProvider(this)}Zu.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"];Zu.prototype.getPaletteEntries=function(e){var t={},n=this._create,i=this._elementFactory,r=this._spaceTool,a=this._lassoTool,o=this._handTool,s=this._globalConnect,c=this._translate;function u(h,f,d,y,x){function D(w){var b=i.createShape(I({type:h},x));x&&(b.businessObject.di.isExpanded=x.isExpanded),n.start(w,b)}var A=h.replace(/^bpmn:/,"");return{group:f,className:d,title:y||c("Create {type}",{type:A}),action:{dragstart:D,click:D}}}function l(h){var f=i.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),d=i.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:f});n.start(h,[f,d],{hints:{autoSelect:[f]}})}function p(h){n.start(h,i.createParticipantShape())}return I(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:c("Activate the hand tool"),action:{click:function(h){o.activateHand(h)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:c("Activate the lasso tool"),action:{click:function(h){a.activateSelection(h)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:c("Activate the create/remove space tool"),action:{click:function(h){r.activateSelection(h)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:c("Activate the global connect tool"),action:{click:function(h){s.start(h)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":u("bpmn:StartEvent","event","bpmn-icon-start-event-none",c("Create StartEvent")),"create.intermediate-event":u("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",c("Create Intermediate/Boundary Event")),"create.end-event":u("bpmn:EndEvent","event","bpmn-icon-end-event-none",c("Create EndEvent")),"create.exclusive-gateway":u("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",c("Create Gateway")),"create.task":u("bpmn:Task","activity","bpmn-icon-task",c("Create Task")),"create.data-object":u("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",c("Create DataObjectReference")),"create.data-store":u("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",c("Create DataStoreReference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:c("Create expanded SubProcess"),action:{dragstart:l,click:l}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:c("Create Pool/Participant"),action:{dragstart:p,click:p}},"create.group":u("bpmn:Group","artifact","bpmn-icon-group",c("Create Group"))}),t};var YT={__depends__:[GT,Ao,qv,VT,WT,UT,xo],__init__:["paletteProvider"],paletteProvider:["type",Zu]},KT=250;function Qu(e,t,n,i,r){U.call(this,e);function a(s){var c=s.canExecute.replacements;C(c,function(u){var l=u.oldElementId,p={type:u.newElementType};if(!s.visualReplacements[l]){var h=t.get(l);I(p,{x:h.x,y:h.y});var f=n.createShape(p);i.addShape(f,h.parent);var d=Oe('[data-element-id="'+ic(h.id)+'"]',s.dragGroup);d&&j(d,{display:"none"});var y=r.addDragger(f,s.dragGroup);s.visualReplacements[l]=y,i.removeShape(f)}})}function o(s){var c=s.visualReplacements;C(c,function(u,l){var p=Oe('[data-element-id="'+ic(l)+'"]',s.dragGroup);p&&j(p,{display:"inline"}),u.remove(),c[l]&&delete c[l]})}e.on("shape.move.move",KT,function(s){var c=s.context,u=c.canExecute;c.visualReplacements||(c.visualReplacements={}),u&&u.replacements?a(c):o(c)})}Qu.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"];Z(Qu,U);var qT={__depends__:[Br],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",Qu]},XT=1250,Is=40,ZT=20,QT=10,qf=20,ym=["x","y"],JT=Math.abs;function Em(e){e.on(["connect.hover","connect.move","connect.end"],XT,function(t){var n=t.context,i=n.canExecute,r=n.start,a=n.hover,o=n.source,s=n.target;t.originalEvent&&bt(t.originalEvent)||(n.initialConnectionStart||(n.initialConnectionStart=n.connectionStart),i&&a&&eR(t,a,rR(a)),a&&iR(i,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(n.connectionStart=At(r),ye(a,["bpmn:Event","bpmn:Gateway"])&&Xf(t,At(a)),ye(a,["bpmn:Task","bpmn:SubProcess"])&&tR(t,a),m(o,"bpmn:BoundaryEvent")&&s===o.host&&nR(t)):bm(i,"bpmn:MessageFlow")?(m(r,"bpmn:Event")&&(n.connectionStart=At(r)),m(a,"bpmn:Event")&&Xf(t,At(a))):n.connectionStart=n.initialConnectionStart)})}Em.$inject=["eventBus"];function eR(e,t,n){ym.forEach(function(i){var r=xm(i,t);e[i]t[i]+r-n&&je(e,i,t[i]+r-n)})}function tR(e,t){var n=At(t);ym.forEach(function(i){aR(e,t,i)&&je(e,i,n[i])})}function nR(e){var t=e.context,n=t.source,i=t.target;if(!oR(t)){var r=At(n),a=tt(r,i,-10),o=[];/top|bottom/.test(a)&&o.push("x"),/left|right/.test(a)&&o.push("y"),o.forEach(function(s){var c=e[s],u;JT(c-r[s])r[s]?u=r[s]+Is:u=r[s]-Is,je(e,s,u))})}}function Xf(e,t){je(e,"x",t.x),je(e,"y",t.y)}function bm(e,t){return e&&e.type===t}function iR(e,t){return si(t,function(n){return bm(e,n)})}function xm(e,t){return e==="x"?t.width:t.height}function rR(e){return m(e,"bpmn:Task")?QT:ZT}function aR(e,t,n){return e[n]>t[n]+qf&&e[n]=e.x||r&&r<=e.x)&&je(e,"x",e.x),(i&&i>=e.y||a&&a<=e.y)&&je(e,"y",e.y)}}function Qf(e,t){return e.indexOf(t)!==-1}function Jf(e,t,n){return t?{x:e.x-n.x,y:e.y-n.y}:{x:e.x,y:e.y}}var dR=1250;function ea(e,t){var n=this;e.on(["resize.start"],function(i){n.initSnap(i)}),e.on(["resize.move","resize.end"],dR,function(i){var r=i.context,a=r.shape,o=a.parent,s=r.direction,c=r.snapContext;if(!(i.originalEvent&&bt(i.originalEvent))&&!Di(i)){var u=c.pointsForTarget(o);u.initialized||(u=n.addSnapTargetPoints(u,a,o,s),u.initialized=!0),ER(s)&&je(i,"x",i.x),bR(s)&&je(i,"y",i.y),t.snap(i,u)}}),e.on(["resize.cleanup"],function(){t.hide()})}ea.prototype.initSnap=function(e){var t=e.context,n=t.shape,i=t.direction,r=t.snapContext;r||(r=t.snapContext=new Xn);var a=_m(n,i);return r.setSnapOrigin("corner",{x:a.x-e.x,y:a.y-e.y}),r};ea.prototype.addSnapTargetPoints=function(e,t,n,i){var r=this.getSnapTargets(t,n);return C(r,function(a){e.add("corner",Fd(a)),e.add("corner",$d(a))}),e.add("corner",_m(t,i)),e};ea.$inject=["eventBus","snapping"];ea.prototype.getSnapTargets=function(e,t){return Hd(t).filter(function(n){return!vR(n,e)&&!mR(n)&&!gR(n)&&!yR(n)})};function _m(e,t){var n=ce(e),i=ee(e),r={x:n.x,y:n.y};return t.indexOf("n")!==-1?r.y=i.top:t.indexOf("s")!==-1&&(r.y=i.bottom),t.indexOf("e")!==-1?r.x=i.right:t.indexOf("w")!==-1&&(r.x=i.left),r}function vR(e,t){return e.host===t}function mR(e){return!!e.waypoints}function gR(e){return!!e.hidden}function yR(e){return!!e.labelTarget}function ER(e){return e==="n"||e==="s"}function bR(e){return e==="e"||e==="w"}var xR=7,_R=1e3;function Zn(e){this._canvas=e,this._asyncHide=rh(ft(this.hide,this),_R)}Zn.$inject=["canvas"];Zn.prototype.snap=function(e,t){var n=e.context,i=n.snapContext,r=i.getSnapLocations(),a={x:Di(e,"x"),y:Di(e,"y")};C(r,function(o){var s=i.getSnapOrigin(o),c={x:e.x+s.x,y:e.y+s.y};if(C(["x","y"],function(u){var l;a[u]||(l=t.snap(c,o,u,xR),l!==void 0&&(a[u]={value:l,originValue:l-s[u]}))}),a.x&&a.y)return!1}),this.showSnapLine("vertical",a.x&&a.x.value),this.showSnapLine("horizontal",a.y&&a.y.value),C(["x","y"],function(o){var s=a[o];Je(s)&&je(e,o,s.originValue)})};Zn.prototype._createLine=function(e){var t=this._canvas.getLayer("snap"),n=Q("path");return j(n,{d:"M0,0 L0,0"}),fe(n).add("djs-snap-line"),ne(t,n),{update:function(i){ae(i)?e==="horizontal"?j(n,{d:"M-100000,"+i+" L+100000,"+i,display:""}):j(n,{d:"M "+i+",-100000 L "+i+", +100000",display:""}):j(n,{display:"none"})}}};Zn.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}};Zn.prototype.showSnapLine=function(e,t){var n=this.getSnapLine(e);n&&n.update(t),this._asyncHide()};Zn.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]};Zn.prototype.hide=function(){C(this._snapLines,function(e){e.update()})};var wR={__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",cn],resizeSnapping:["type",ea],snapping:["type",Zn]},SR={__depends__:[wR],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Em],createMoveSnapping:["type",Xi]};function ie(e,t,n,i){this._open=!1,this._results=[],this._eventMaps=[],this._canvas=e,this._eventBus=t,this._overlays=n,this._selection=i,this._container=Ce(ie.BOX_HTML),this._searchInput=Oe(ie.INPUT_SELECTOR,this._container),this._resultsContainer=Oe(ie.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),t.on(["canvas.destroy","diagram.destroy"],this.close,this)}ie.$inject=["canvas","eventBus","overlays","selection"];ie.prototype._bindEvents=function(){var e=this;function t(n,i,r,a){e._eventMaps.push({el:n,type:r,listener:xt.bind(n,i,r,a)})}t(document,"html","click",function(n){e.close()}),t(this._container,ie.INPUT_SELECTOR,"click",function(n){n.stopPropagation(),n.delegateTarget.focus()}),t(this._container,ie.RESULT_SELECTOR,"mouseover",function(n){n.stopPropagation(),e._scrollToNode(n.delegateTarget),e._preselect(n.delegateTarget)}),t(this._container,ie.RESULT_SELECTOR,"click",function(n){n.stopPropagation(),e._select(n.delegateTarget)}),t(this._container,ie.INPUT_SELECTOR,"keydown",function(n){n.keyCode===38&&n.preventDefault(),n.keyCode===40&&n.preventDefault()}),t(this._container,ie.INPUT_SELECTOR,"keyup",function(n){if(n.keyCode===27)return e.close();if(n.keyCode===13){var i=e._getCurrentResult();return i?e._select(i):e.close()}if(n.keyCode===38)return e._scrollToDirection(!0);if(n.keyCode===40)return e._scrollToDirection();n.keyCode===37||n.keyCode===39||e._search(n.delegateTarget.value)})};ie.prototype._unbindEvents=function(){this._eventMaps.forEach(function(e){xt.unbind(e.el,e.type,e.listener)})};ie.prototype._search=function(e){var t=this;if(this._clearResults(),!(!e||e==="")){var n=this._searchProvider.find(e);if(!!n.length){n.forEach(function(r){var a=r.element.id,o=t._createResultNode(r,a);t._results[a]={element:r.element,node:o}});var i=Oe(ie.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}}};ie.prototype._scrollToDirection=function(e){var t=this._getCurrentResult();if(!!t){var n=e?t.previousElementSibling:t.nextElementSibling;n&&(this._scrollToNode(n),this._preselect(n))}};ie.prototype._scrollToNode=function(e){if(!(!e||e===this._getCurrentResult())){var t=e.offsetTop,n=this._resultsContainer.scrollTop,i=t-this._resultsContainer.clientHeight+e.clientHeight;t0&&eh(n,e.primaryTokens,ie.RESULT_PRIMARY_HTML),eh(n,e.secondaryTokens,ie.RESULT_SECONDARY_HTML),St(n,ie.RESULT_ID_ATTRIBUTE,t),this._resultsContainer.appendChild(n),n};ie.prototype.registerProvider=function(e){this._searchProvider=e};ie.prototype.open=function(){if(!this._searchProvider)throw new Error("no search provider registered");this.isOpen()||(this._bindEvents(),this._open=!0,ze(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))};ie.prototype.close=function(){!this.isOpen()||(this._unbindEvents(),this._open=!1,ze(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._resetOverlay(),this._eventBus.fire("searchPad.closed"))};ie.prototype.toggle=function(){this.isOpen()?this.close():this.open()};ie.prototype.isOpen=function(){return this._open};ie.prototype._preselect=function(e){var t=this._getCurrentResult();if(e!==t){t&&ze(t).remove(ie.RESULT_SELECTED_CLASS);var n=St(e,ie.RESULT_ID_ATTRIBUTE),i=this._results[n].element;ze(e).add(ie.RESULT_SELECTED_CLASS),this._resetOverlay(i),this._canvas.scrollToElement(i,{top:400}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}};ie.prototype._select=function(e){var t=St(e,ie.RESULT_ID_ATTRIBUTE),n=this._results[t].element;this.close(),this._resetOverlay(),this._canvas.scrollToElement(n,{top:400}),this._selection.select(n),this._eventBus.fire("searchPad.selected",n)};ie.prototype._resetOverlay=function(e){if(this._overlayId&&this._overlays.remove(this._overlayId),e){var t=et(e),n=TR(t);this._overlayId=this._overlays.add(e,n)}};function TR(e){var t=6,n=e.width+t*2,i=e.height+t*2,r=["width: "+n+"px","height: "+i+"px"].join("; ");return{position:{bottom:i-t,right:n-t},show:!0,html:'
'}}function eh(e,t,n){var i=RR(t),r=Ce(n);r.innerHTML=i,e.appendChild(r)}function RR(e){var t="";return e.forEach(function(n){n.matched?t+=''+np(n.matched)+"":t+=np(n.normal)}),t!==""?t:null}ie.CONTAINER_SELECTOR=".djs-search-container";ie.INPUT_SELECTOR=".djs-search-input input";ie.RESULTS_CONTAINER_SELECTOR=".djs-search-results";ie.RESULT_SELECTOR=".djs-search-result";ie.RESULT_SELECTED_CLASS="djs-search-result-selected";ie.RESULT_SELECTED_SELECTOR="."+ie.RESULT_SELECTED_CLASS;ie.RESULT_ID_ATTRIBUTE="data-result-id";ie.RESULT_HIGHLIGHT_CLASS="djs-search-highlight";ie.OVERLAY_CLASS="djs-search-overlay";ie.BOX_HTML='
';ie.RESULT_HTML='
';ie.RESULT_PRIMARY_HTML='
';ie.RESULT_SECONDARY_HTML='

';var CR={__depends__:[zc,an],searchPad:["type",ie]};function Ju(e,t,n){this._elementRegistry=e,this._canvas=n,t.registerProvider(this)}Ju.$inject=["elementRegistry","searchPad","canvas"];Ju.prototype.find=function(e){var t=this._canvas.getRootElement(),n=this._elementRegistry.filter(function(i){return!i.labelTarget});return n=se(n,function(i){return i!==t}),n=Ye(n,function(i){return{primaryTokens:nh(Wt(i),e),secondaryTokens:nh(i.id,e),element:i}}),n=se(n,function(i){return th(i.primaryTokens)||th(i.secondaryTokens)}),n=Gt(n,function(i){return Wt(i.element)+i.element.id}),n};function th(e){var t=se(e,function(n){return!!n.matched});return t.length>0}function nh(e,t){var n=[],i=e;if(!e)return n;e=e.toLowerCase(),t=t.toLowerCase();var r=e.indexOf(t);return r>-1?(r!==0&&n.push({normal:i.substr(0,r)}),n.push({matched:i.substr(r,t.length)}),t.length+r';function gn(e){Or.call(this,e)}Z(gn,Or);gn.Viewer=zn;gn.NavigatedViewer=_r;gn.prototype.createDiagram=ji(function(){return this.importXML(AR)});gn.prototype._interactionModules=[fd,md,Px,Ed];gn.prototype._modelingModules=[Mx,Ux,r_,Qx,x_,Zc,C_,N0,Xd,Ao,k0,$0,tw,rw,aw,lw,xw,PT,BT,YT,qT,fv,SR,PR];gn.prototype._modules=[].concat(zn.prototype._modules,gn.prototype._interactionModules,gn.prototype._modelingModules);export{gn as M}; diff --git a/vboot-web/src/main/resources/static/assets/Modeler2.1654291592072.css b/vboot-web/src/main/resources/static/assets/Modeler2.1654291592072.css deleted file mode 100644 index 0fd389d..0000000 --- a/vboot-web/src/main/resources/static/assets/Modeler2.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.bjs-powered-by{display:none}.bpmn-container{height:100%}#modeler-container{flex:1;height:100%;position:relative;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+) repeat!important}.djs-palette{border:none!important;background-color:#fff!important;box-shadow:0 3px 3px #0003;top:65px!important} diff --git a/vboot-web/src/main/resources/static/assets/Modeler2.1654291592072.js b/vboot-web/src/main/resources/static/assets/Modeler2.1654291592072.js deleted file mode 100644 index f6f4e5a..0000000 --- a/vboot-web/src/main/resources/static/assets/Modeler2.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import"./Modeler.1654291592072.js";import{g as n,a as r,c as i,B as l}from"./store.1654291592072.js";import{a as d,m as s,Z as m}from"./vue.1654291592072.js";var M=d({name:"Modeler2",emits:["bpmnMounted"],setup(c,{emit:a}){const o=l;return s(()=>{o.initModeler({container:"#modeler-container",additionalModules:[{translate:["value",n("zh")],paletteProvider:["value",""],labelEditingProvider:["value",""],contextPadProvider:["value",""],bendpoints:["value",{}],zoomScroll:["value",""],move:["value",""]}],moddleExtensions:{activiti:r}});const t="1";o.importXML(i(t,t)).then(e=>{e.length&&console.warn("importSuccess warnings",e)}).catch(e=>{console.warn("importFail errors ",e)}),a("bpmnMounted")}),()=>m("div",{id:"modeler-container"},null)}});export{M}; diff --git a/vboot-web/src/main/resources/static/assets/OrgModal.1654291592072.css b/vboot-web/src/main/resources/static/assets/OrgModal.1654291592072.css deleted file mode 100644 index 9e490b8..0000000 --- a/vboot-web/src/main/resources/static/assets/OrgModal.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-footer button[data-v-6fd9718f]:first-child{margin-right:10px}.layui-elip[data-v-6fd9718f]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.f-user[data-v-6fd9718f]:before,.f-user[data-v-6fd9718f]:after{content:" ";display:table}.f-user[data-v-6fd9718f]:after{clear:both}.f-user input[data-v-6fd9718f],.f-user label[data-v-6fd9718f]{float:left;margin-top:10px;margin-right:8px}.f-user img[data-v-6fd9718f]{width:50px;height:50px;float:left;border-radius:100%;margin-right:8px}.f-user .f-user-name[data-v-6fd9718f],.f-user .f-user-dept[data-v-6fd9718f]{display:block}.f-user .f-user-name[data-v-6fd9718f]{margin-top:6px}.f-user .f-user-dept[data-v-6fd9718f]{color:#a599b2}.z-org-search li[data-v-6fd9718f]{width:50%;float:left;cursor:pointer;padding:2px;list-style-type:none}.z-org-search li[data-v-6fd9718f]:hover{background-color:#f7efec}/*!*组织架构树*!*/.z-org-tree li[data-v-6fd9718f]{margin:3px;cursor:pointer;padding:3px;list-style-type:none}.z-org-tree li[data-v-6fd9718f]:hover{background-color:#f7efec}.z-org-selected li[data-v-6fd9718f]{margin:3px;cursor:pointer;padding:3px;list-style-type:none}.z-org-selected li[data-v-6fd9718f]:hover{background-color:#f7efec}.z-org-selected .f-user .el-icon[data-v-6fd9718f]{position:absolute;color:#f26b96;font-size:20px;display:none;margin-left:42px}.z-org-selected li:hover .el-icon[data-v-6fd9718f],.z-org-selected .f-user img[data-v-6fd9718f]{display:inline}.z-org-selected .f-user-name2[data-v-6fd9718f]{display:block;margin-top:14px} diff --git a/vboot-web/src/main/resources/static/assets/OrgModal.1654291592072.js b/vboot-web/src/main/resources/static/assets/OrgModal.1654291592072.js deleted file mode 100644 index 83fb914..0000000 --- a/vboot-web/src/main/resources/static/assets/OrgModal.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as q,j as H,a3 as J,ag as P,a2 as f,o as _,R as ee,S as c,e as a,Z as s,a9 as le,b as v,a7 as E,Y as m,u as x,F as V,X as g,az as te,aA as oe,ap as K}from"./vue.1654291592072.js";import{D as se}from"./DeptTree.1654291592072.js";import{_ as ae,j as ue,g as C}from"./index.1654291592072.js";const F=y=>(te("data-v-6fd9718f"),y=y(),oe(),y),ce={style:{height:"440px"}},ne=g("\u67E5\u8BE2"),ie={style:{"margin-top":"5px",overflow:"auto",height:"353px",border:"1px solid #ccc"}},de={class:"z-org-search",id:"zOrgSearch",style:{padding:"2px"}},re=["onClick"],fe=F(()=>a("img",{src:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg"},null,-1)),pe={class:"layui-elip f-user-name"},_e={class:"layui-elip f-user-dept"},he={style:{height:"390px"}},ve={style:{border:"1px solid #ccc",height:"390px","margin-left":"5px",overflow:"auto"}},ge={class:"z-org-tree"},ke=["onClick"],me=F(()=>a("img",{src:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg"},null,-1)),ye={class:"layui-elip f-user-name"},be={class:"layui-elip f-user-dept"},Ie=g("\u6682\u4E0D\u652F\u6301\uFF0C\u5F85\u5F00\u53D1"),xe=g("\u8FD9\u4E2A\u4E5F\u6682\u4E0D\u652F\u6301\uFF0C\u5F85\u5F00\u53D1"),Ce={style:{"margin-left":"5px"}},Fe=F(()=>a("div",{style:{height:"36px"}},[a("div",{style:{"margin-top":"20px"}},"\u5DF2 \u9009")],-1)),we={style:{border:"1px solid #ccc",height:"390px",overflow:"auto"}},Se={class:"z-org-selected",style:{position:"relative"}},Ee=F(()=>a("img",{src:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg"},null,-1)),Ve={class:"layui-elip f-user-name2"},Be={class:"dialog-footer"},De=g("\u786E\u8BA4"),Me=g("\u53D6\u6D88"),Te=g("\u6E05\u7A7A\u9009\u62E9"),Ae=q({name:"OrgModal",emits:["close"],setup(y,{expose:N,emit:B}){let k=-1,p="k1",w=1,S=null,D=!1;const M=H(),r=J({isShow:!1,receSearch:"",receItems:[],tierItems:[],seldItems:[]}),{receItems:d,tierItems:i,seldItems:t}=P(r),T=H("k1");async function z(l){if(p=l.paneName,p==="k1")for(const e of d.value){let u=!1;for(const n of t.value)if(n.id==e.id){e.checked=!0,u=!0;break}u||(e.checked=!1)}else if(p==="k2"){D||(await M.value.init(),D=!0);for(const e of i.value){let u=!1;for(const n of t.value)if(n.id==e.id){e.checked=!0,u=!0;break}u||(e.checked=!1)}}}async function A(){d.value=await C({url:"/gen/org/main?type="+k,method:"get",params:{name:r.receSearch}});for(const l of d.value){let e=!1;for(const u of t.value)if(u.id==l.id){l.checked=!0,e=!0;break}e||(l.checked=!1)}}const O=async()=>{d.value=await C({url:"/gen/org/rece?type="+k,method:"get"})};function R(l){if(l.checked=!l.checked,w==1){t.value.length>0&&t.value.splice(0,1),t.value.push(l);for(let e=0;e0&&t.value.splice(0,1),t.value.push(l);for(let e=0;e{if(l.orgType||(l.orgType=8),l.selectMode||(l.selectMode=1),k!=l.orgType&&(k=l.orgType,await O(),i.value.splice(0,i.value.length)),w=l.selectMode,S=l.opener,t.value=l.orgs?l.orgs:[],p==="k1")for(const e of d.value)for(const u of t.value){let n=!1;if(u.id==e.id){e.checked=!0,n=!0;break}n||(e.checked=!1)}else if(p==="k2")for(const e of i.value)for(const u of t.value){let n=!1;if(u.id==e.id){e.checked=!0,n=!0;break}n||(e.checked=!1)}r.isShow=!0}});const Q=()=>{const l=K(t.value);l&&l.length>0&&C({url:"/gen/org/rece",method:"post",data:l}),B("close",{opener:S,orgs:K(l)}),r.isShow=!1},W=()=>{B("close",{opener:S,orgs:null}),r.isShow=!1};return(l,e)=>{const u=f("el-input"),n=f("el-button"),U=f("el-checkbox"),b=f("el-tab-pane"),I=f("el-col"),j=f("el-row"),L=f("el-tabs"),X=f("el-icon"),Z=f("el-dialog");return _(),ee(Z,{modelValue:r.isShow,"onUpdate:modelValue":e[3]||(e[3]=o=>r.isShow=o),title:"\u7EC4\u7EC7\u67B6\u6784\u9009\u62E9",width:"1000px",draggable:""},{footer:c(()=>[a("span",Be,[s(n,{type:"primary",onClick:Q},{default:c(()=>[De]),_:1}),s(n,{onClick:e[2]||(e[2]=o=>r.isShow=!1)},{default:c(()=>[Me]),_:1}),s(n,{onClick:W,style:{"margin-left":"20px"}},{default:c(()=>[Te]),_:1})])]),default:c(()=>[a("div",ce,[s(j,null,{default:c(()=>[s(I,{span:16},{default:c(()=>[s(L,{modelValue:T.value,"onUpdate:modelValue":e[1]||(e[1]=o=>T.value=o),type:"card",onTabClick:z},{default:c(()=>[s(b,{label:"\u5FEB\u6377\u9009\u62E9",name:"k1"},{default:c(()=>[a("div",null,[s(u,{modelValue:r.receSearch,"onUpdate:modelValue":e[0]||(e[0]=o=>r.receSearch=o),placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u67E5\u8BE2",style:{width:"200px"},onKeyup:le(A,["enter"])},null,8,["modelValue","onKeyup"]),s(n,{type:"primary",style:{"margin-left":"10px"},onClick:A},{default:c(()=>[ne]),_:1})]),a("div",ie,[a("ul",de,[(_(!0),v(V,null,E(x(d),o=>(_(),v("li",{key:o.id,class:"f-user",onClick:h=>R(o)},[s(U,{modelValue:o.checked,"onUpdate:modelValue":h=>o.checked=h},null,8,["modelValue","onUpdate:modelValue"]),fe,a("span",pe,m(o.name),1),a("span",_e,m(o.dept),1)],8,re))),128))])])]),_:1}),s(b,{label:"\u5C42\u7EA7\u67B6\u6784",name:"k2"},{default:c(()=>[s(j,null,{default:c(()=>[s(I,{span:12},{default:c(()=>[a("div",he,[s(se,{onNodeClick:Y,maInit:!0,ref_key:"deptTreeRef",ref:M},null,512)])]),_:1}),s(I,{span:12},{default:c(()=>[a("div",ve,[a("ul",ge,[(_(!0),v(V,null,E(x(i),o=>(_(),v("li",{key:o.id,class:"f-user",title:"444444444",onClick:h=>$(o)},[s(U,{modelValue:o.checked,"onUpdate:modelValue":h=>o.checked=h},null,8,["modelValue","onUpdate:modelValue"]),me,a("span",ye,m(o.name),1),a("span",be,m(o.dept),1)],8,ke))),128))])])]),_:1})]),_:1})]),_:1}),s(b,{label:"\u5E38\u7528\u7FA4\u7EC4",name:"k3"},{default:c(()=>[Ie]),_:1}),s(b,{label:"\u6211\u7684\u6536\u85CF",name:"k4"},{default:c(()=>[xe]),_:1})]),_:1},8,["modelValue"])]),_:1}),s(I,{span:8},{default:c(()=>[a("div",Ce,[Fe,a("div",we,[a("ul",Se,[(_(!0),v(V,null,E(x(t),o=>(_(),v("li",{key:o.id,class:"f-user",style:{overflow:"hidden"}},[s(X,{onClick:h=>G(o)},{default:c(()=>[s(x(ue))]),_:2},1032,["onClick"]),Ee,a("span",Ve,m(o.name),1)]))),128))])])])]),_:1})]),_:1})])]),_:1},8,["modelValue"])}}});var Ne=ae(Ae,[["__scopeId","data-v-6fd9718f"]]);export{Ne as O}; diff --git a/vboot-web/src/main/resources/static/assets/Other.1654291592072.js b/vboot-web/src/main/resources/static/assets/Other.1654291592072.js deleted file mode 100644 index 3f10208..0000000 --- a/vboot-web/src/main/resources/static/assets/Other.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{E as a,D as m,C as u}from"./common.1654291592072.js";import{Z as t}from"./index.1654291592072.js";import{Z as p,X as n}from"./vue.1654291592072.js";import"./store.1654291592072.js";import"./Modeler.1654291592072.js";const r=[u,a,m],i={name:"\u57FA\u7840\u4FE1\u606F",icon:"el-icon-info",properties:{id:{component:t,placeholder:"\u8282\u70B9ID",vSlots:{prepend:()=>p("div",null,[n("\u8282\u70B9ID")])}},name:{component:t,placeholder:"\u8282\u70B9\u540D\u79F0",vSlots:{prepend:()=>p("div",null,[n("\u8282\u70B9\u540D\u79F0")])},getValue:e=>{var o;return(o=e==null?void 0:e.categoryValueRef)==null?void 0:o.value}}}};var D={"bpmn:Participant":r,"bpmn:Group":[i,a,m],"bpmn:DataStoreReference":r,"bpmn:DataObjectReference":r};export{D as default}; diff --git a/vboot-web/src/main/resources/static/assets/PrefixLabelSelect.1654291592072.css b/vboot-web/src/main/resources/static/assets/PrefixLabelSelect.1654291592072.css deleted file mode 100644 index 8853305..0000000 --- a/vboot-web/src/main/resources/static/assets/PrefixLabelSelect.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.prefix-label-select-container{display:inline-table;width:100%}.prefix-title{display:table-cell;padding:0 20px;border:1px solid #DCDFE6;border-right:0;border-radius:4px 0 0 4px;color:#909399;background-color:#f5f7fa;width:1px;white-space:nowrap}.prefix-label-select{display:table-cell}.prefix-label-select .el-input,.el-select{line-height:normal}.prefix-label-select .el-input__inner{border-radius:0 4px 4px 0!important;line-height:normal} diff --git a/vboot-web/src/main/resources/static/assets/PrefixLabelSelect.1654291592072.js b/vboot-web/src/main/resources/static/assets/PrefixLabelSelect.1654291592072.js deleted file mode 100644 index 40d6718..0000000 --- a/vboot-web/src/main/resources/static/assets/PrefixLabelSelect.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var c=Object.defineProperty,m=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var s=(e,l,t)=>l in e?c(e,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[l]=t,p=(e,l)=>{for(var t in l||(l={}))n.call(l,t)&&s(e,t,l[t]);if(o)for(var t of o(l))x.call(l,t)&&s(e,t,l[t]);return e},d=(e,l)=>m(e,f(l));import{a0 as u}from"./index.1654291592072.js";import{a as v,B as V,Z as i,P as b}from"./vue.1654291592072.js";const T=v({props:d(p({},u.props),{prefixTitle:{type:String,default:()=>""}}),emits:["update:modelValue"],setup(e,{emit:l,slots:t}){const r=V({get:()=>e.value,set:a=>l("update:modelValue",a)});return()=>i("div",{class:"prefix-label-select-container"},[e.prefixTitle&&i("div",{class:"prefix-title "},[e.prefixTitle]),i(u,b({class:"prefix-label-select",modelValue:r.value,"onUpdate:modelValue":a=>r.value=a},e),t)])}});export{T as P}; diff --git a/vboot-web/src/main/resources/static/assets/Process.1654291592072.js b/vboot-web/src/main/resources/static/assets/Process.1654291592072.js deleted file mode 100644 index a0f7f80..0000000 --- a/vboot-web/src/main/resources/static/assets/Process.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e,g as o,E as s,D as p}from"./common.1654291592072.js";import"./index.1654291592072.js";import"./vue.1654291592072.js";import"./store.1654291592072.js";import"./Modeler.1654291592072.js";const r=[e,o({name:"\u5168\u5C40\u76D1\u542C\u5668"}),s,p];var P={"bpmn:Process":r,"bpmn:SubProcess":r};export{P as default}; diff --git a/vboot-web/src/main/resources/static/assets/ProdModal.1654291592072.css b/vboot-web/src/main/resources/static/assets/ProdModal.1654291592072.css deleted file mode 100644 index 7989907..0000000 --- a/vboot-web/src/main/resources/static/assets/ProdModal.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-footer button[data-v-f429c70a]:first-child{margin-right:10px}.layui-elip[data-v-f429c70a]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.f-user[data-v-f429c70a]:before,.f-user[data-v-f429c70a]:after{content:" ";display:table}.f-user[data-v-f429c70a]:after{clear:both}.f-user input[data-v-f429c70a],.f-user label[data-v-f429c70a]{float:left;margin-top:14px;margin-right:8px}.f-user img[data-v-f429c70a]{width:50px;height:50px;float:left;margin-right:8px}.f-user .f-user-name[data-v-f429c70a],.f-user .f-user-dept[data-v-f429c70a]{display:block}.f-user .f-user-name[data-v-f429c70a]{margin-top:6px}.f-user .f-user-dept[data-v-f429c70a]{color:#a599b2}.z-org-recently li[data-v-f429c70a]{width:33%;float:left;cursor:pointer;padding:5px}.z-org-recently li[data-v-f429c70a]:hover{background-color:#f7efec}.z-org-search li[data-v-f429c70a]{width:50%;float:left;cursor:pointer;padding:2px;//margin: 3px}.z-org-search li[data-v-f429c70a]:hover{background-color:#f7efec}/*!*组织架构树*!*/.z-org-tree li[data-v-f429c70a]{margin:3px;cursor:pointer;padding:3px}.z-org-tree li[data-v-f429c70a]:hover{background-color:#f7efec}.z-org-selected li[data-v-f429c70a]{margin:3px;cursor:pointer;padding:3px}.z-org-selected li[data-v-f429c70a]:hover{background-color:#f7efec}.z-org-selected .f-user .anticon-close-circle[data-v-f429c70a]{//float: left;//position:relative;position:absolute;//position:fixed;color:#f26b96;font-size:20px;display:none;margin-left:42px}.z-org-selected li:hover .anticon-close-circle[data-v-f429c70a]{display:inline}.z-org-selected .f-user img[data-v-f429c70a]{display:inline;//float: none}.z-org-selected .f-user-name2[data-v-f429c70a]{display:block;margin-top:14px}.tree-h-flex[data-v-f429c70a]{display:flex}.tree-h-left[data-v-f429c70a]{flex:1;width:100%}.tree-h-right[data-v-f429c70a]{width:40px;min-width:40px} diff --git a/vboot-web/src/main/resources/static/assets/ProdModal.1654291592072.js b/vboot-web/src/main/resources/static/assets/ProdModal.1654291592072.js deleted file mode 100644 index c0f8bba..0000000 --- a/vboot-web/src/main/resources/static/assets/ProdModal.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as L,g as O,s as X,m as Y,O as Z,E as G}from"./index.1654291592072.js";import{a as H,j as r,k as J,a3 as K,m as Q,R as W,S as e,a2 as s,o as v,e as n,Z as o,u as g,b,a7 as ee,Y as y,F as oe,X as c,az as te,aA as le}from"./vue.1654291592072.js";const ae=_=>(te("data-v-f429c70a"),_=_(),le(),_),se={style:{height:"600px"}},ne=c("\u9884\u8BBE\u7684\u5E38\u7528\u578B\u53F7 "),de={style:{height:"390px"}},ce={class:"card-header"},ue={class:"tree-h-flex"},ie={class:"tree-h-left"},_e={class:"tree-h-right"},re=c("\u5168\u90E8\u5C55\u5F00"),pe=c("\u5168\u90E8\u6298\u53E0"),me=c("\u5237\u65B0"),fe={style:{"margin-bottom":"45px"}},he={style:{border:"1px solid #ccc",height:"390px","margin-left":"5px",overflow:"auto"}},ve={class:"z-org-tree"},ge=["onClick"],ke=ae(()=>n("img",{class:"vben-header-user-dropdown__header",src:"https://q1.qlogo.cn/g?b=qq&nk=190848757&s=640"},null,-1)),xe={class:"layui-elip f-user-name"},Ce={class:"layui-elip f-user-dept"},be=c("\u901A\u8FC7\u8BBE\u7F6E\u7684\u504F\u597D\u6A21\u677F\u9009\u62E9"),ye={class:"dialog-footer"},we=c("\u53D6\u6D88"),Ee=c("\u786E\u8BA4"),Ae=H({name:"ProdModal",emits:["close"],setup(_,{expose:w,emit:E}){const p=r(""),u=r(),A={children:"children",label:"name"};J(p,l=>{u.value.filter(l)});const B=(l,t)=>l?t.name.includes(l):!0,d=K({data:[],id:"",name:"",pid:""}),F=l=>{if(l=="expandAll")for(let t=0;t{d.data=await O({url:"/te/prod/model/tree",method:"get"})};Q(()=>{V()});const k=r("k2"),N=(l,t)=>{console.log(l,t)},i=r(!1),D=async l=>{i.value=!0},I=()=>{E("close",{id:d.id,name:d.name,pid:d.pid}),i.value=!1};w({openModal:D});const M=l=>{d.id=l.id,d.name=l.name,d.pid=l.pid};return(l,t)=>{const m=s("el-tab-pane"),S=s("el-input"),T=s("el-icon"),f=s("el-button"),h=s("el-dropdown-item"),U=s("el-dropdown-menu"),q=s("el-dropdown"),P=s("el-card"),x=s("el-col"),R=s("Checkbox"),$=s("el-row"),z=s("el-tabs"),j=s("el-dialog");return v(),W(j,{modelValue:i.value,"onUpdate:modelValue":t[3]||(t[3]=a=>i.value=a),title:"\u4EA7\u54C1\u9009\u62E9",width:"600px"},{footer:e(()=>[n("span",ye,[o(f,{onClick:t[2]||(t[2]=a=>i.value=!1)},{default:e(()=>[we]),_:1}),o(f,{type:"primary",onClick:I},{default:e(()=>[Ee]),_:1})])]),default:e(()=>[n("div",se,[o(z,{modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=a=>k.value=a),type:"card",onTabClick:N},{default:e(()=>[o(m,{label:"\u5E38\u7528\u578B\u53F7",name:"k1"},{default:e(()=>[ne]),_:1}),o(m,{label:"\u5C42\u6B21\u9009\u62E9",name:"k2"},{default:e(()=>[o($,null,{default:e(()=>[o(x,{span:12},{default:e(()=>[n("div",de,[o(P,{class:"box-card",style:{height:"100%"},"body-style":"height: 100%;overflow: auto"},{header:e(()=>[n("div",ce,[n("div",ue,[n("div",ie,[o(S,{"prefix-icon":g(X),modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=a=>p.value=a),placeholder:"\u4EA7\u54C1\u540D\u79F0"},null,8,["prefix-icon","modelValue"])]),n("div",_e,[o(q,{onCommand:F},{dropdown:e(()=>[o(U,null,{default:e(()=>[o(h,{command:"expandAll"},{default:e(()=>[re]),_:1}),o(h,{command:"collapseAll"},{default:e(()=>[pe]),_:1}),o(h,{command:"refresh"},{default:e(()=>[me]),_:1})]),_:1})]),default:e(()=>[o(f,{style:{"margin-left":"10px",width:"30px"}},{default:e(()=>[o(T,{class:"el-icon--right"},{default:e(()=>[o(g(Y))]),_:1})]),_:1})]),_:1})])])])]),default:e(()=>[n("div",fe,[o(g(Z),{onNodeClick:M,ref_key:"treeRef",ref:u,class:"filter-tree",data:d.data,props:A,"filter-node-method":B},null,8,["data"])])]),_:1})])]),_:1}),o(x,{span:12},{default:e(()=>[n("div",he,[n("ul",ve,[(v(!0),b(oe,null,ee(l.tierItems,a=>(v(),b("li",{key:a.id,class:"f-user",title:"444444444",onClick:C=>l.tierItemClick(a)},[o(R,{checked:a.checked,"onUpdate:checked":C=>a.checked=C},null,8,["checked","onUpdate:checked"]),ke,n("span",xe,y(a.name),1),n("span",Ce,y(a.dept),1)],8,ge))),128))])])]),_:1})]),_:1})]),_:1}),o(m,{label:"\u504F\u597D\u6A21\u677F",name:"k3"},{default:e(()=>[be]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])}}});var Ve=L(Ae,[["__scopeId","data-v-f429c70a"]]);export{Ve as default}; diff --git a/vboot-web/src/main/resources/static/assets/Task.1654291592072.js b/vboot-web/src/main/resources/static/assets/Task.1654291592072.js deleted file mode 100644 index 68f0c66..0000000 --- a/vboot-web/src/main/resources/static/assets/Task.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var E=Object.defineProperty,O=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var m=(e,t,a)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,p=(e,t)=>{for(var a in t||(t={}))L.call(t,a)&&m(e,a,t[a]);if(d)for(var a of d(t))F.call(t,a)&&m(e,a,t[a]);return e},c=(e,t)=>O(e,x(t));import{F as f,E as g,D as v,g as V,C as b}from"./common.1654291592072.js";import{P as u}from"./PrefixLabelSelect.1654291592072.js";import{B as l}from"./store.1654291592072.js";import{a1 as T,Z as C}from"./index.1654291592072.js";import{Z as s,F as P,X as h}from"./vue.1654291592072.js";import"./Modeler.1654291592072.js";const N=[{label:"\u901A\u8FC7",value:"pass"},{label:"\u9A73\u56DE",value:"refuse"},{label:"\u8F6C\u529E",value:"zhuanhuan"},{label:"\u6C9F\u901A",value:"goutong"},{label:"\u5E9F\u5F03",value:"feiqi"}],k=V({name:"\u4EFB\u52A1\u76D1\u542C\u5668",eventOptions:N}),I=[{label:"\u5F20\u4E09",value:"z3"},{label:"\u674E\u56DB",value:"l4"},{label:"\u738B\u4E94",value:"w5"},{label:"\u8D75\u516D",value:"zhao6"},{label:"\u5B59\u4E03",value:"s7"}],S=s(P,null,[I.map(e=>s(T,e,null))]),M={name:"\u4EBA\u5458\u8BBE\u7F6E",icon:"el-icon-user-solid",properties:{assignee:{component:u,prefixTitle:"\u5904\u7406\u4EBA",allowCreate:!0,filterable:!0,vSlots:{default:()=>S}},candidateUsers:{component:u,prefixTitle:"\u5019\u9009\u4EBA",filterable:!0,multiple:!0,allowCreate:!0,vSlots:{default:()=>S},getValue(e){return console.warn("businessObject",e),typeof e.candidateUsers=="string"?e.candidateUsers.split(","):e.candidateUsers}},loopCardinality:{component:C,placeholder:"\u5FAA\u73AF\u57FA\u6570",type:"number",vSlots:{prepend:()=>s("div",null,[h("\u5FAA\u73AF\u57FA\u6570")])},predicate(e){return e.loopCharacteristics},getValue(e){var a;const t=e.loopCharacteristics;return t?(a=t.loopCardinality)==null?void 0:a.body:""},setValue(e,t,a){const o=l,n=o.getModeler().get("moddle"),i=e.loopCharacteristics;i.loopCardinality=n.create("bpmn:FormalExpression",{body:a}),o.getModeling().updateProperties(o.getShape(),{loopCharacteristics:i})}},completionCondition:{component:C,placeholder:"\u5982\uFF1A${nrOfCompletedInstances/nrOfInstances >= 0.25} \u8868\u793A\u5B8C\u6210\u6570\u5927\u4E8E\u7B49\u4E8E4\u52061\u65F6\u4EFB\u52A1\u5B8C\u6210",vSlots:{prepend:()=>s("div",null,[h("\u5B8C\u6210\u6761\u4EF6")])},predicate(e){return e.loopCharacteristics},getValue(e){var a;const t=e.loopCharacteristics;return t?(a=t.completionCondition)==null?void 0:a.body:""},setValue(e,t,a){const o=l,n=o.getModeler().get("moddle"),i=e.loopCharacteristics;i.completionCondition=n.create("bpmn:FormalExpression",{body:a}),o.getModeling().updateProperties(o.getShape(),{loopCharacteristics:i})}}}},U=[{label:"\u65E0",value:"Null"},{label:"\u5E76\u884C\u591A\u91CD\u4E8B\u4EF6",value:"Parallel"},{label:"\u65F6\u5E8F\u591A\u91CD\u4E8B\u4EF6",value:"Sequential"},{label:"\u5FAA\u73AF\u4E8B\u4EF6",value:"StandardLoop"}],A=s(P,null,[U.map(e=>s(T,e,null))]),y=c(p({},b),{properties:c(p({},b.properties),{loopCharacteristics:{component:u,prefixTitle:"\u56DE\u8DEF\u7279\u6027",vSlots:{default:()=>A},getValue(e){const t=e.loopCharacteristics;return t?t.$type==="bpmn:MultiInstanceLoopCharacteristics"?t.isSequential?"Sequential":"Parallel":"StandardLoop":"Null"},setValue(e,t,a){const o=l.getShape(),n=l.getModeling();switch(a){case"Null":n.updateProperties(o,{loopCharacteristics:null});break;case"StandardLoop":l.createElement("bpmn:StandardLoopCharacteristics","loopCharacteristics");break;default:l.createElement("bpmn:MultiInstanceLoopCharacteristics","loopCharacteristics",{isSequential:a==="Sequential"})}return()=>l.refresh()}}})}),r=[y,k,f,g,v];var D={"bpmn:Task":r,"bpmn:UserTask":[y,M,k,f,g,v],"bpmn:ReceiveTask":r,"bpmn:SendTask":r,"bpmn:ManualTask":r,"bpmn:BusinessRuleTask":r,"bpmn:ServiceTask":r,"bpmn:ScriptTask":r,"bpmn:CallActivity":r};export{M as BpmnUserGroupProperties,D as default}; diff --git a/vboot-web/src/main/resources/static/assets/Wrap.1654291592072.js b/vboot-web/src/main/resources/static/assets/Wrap.1654291592072.js deleted file mode 100644 index 9a0c4f9..0000000 --- a/vboot-web/src/main/resources/static/assets/Wrap.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as i,B as l,s as t,o as u,b as c,L as p,O as f,u as m}from"./vue.1654291592072.js";import{b as g,u as h}from"./index.1654291592072.js";const v=i({name:"Wrap",setup(T){const o=l(()=>{const e=g(),s=h(),{themeConfig:a}=t(s),{isTagsViewCurrenFull:r}=t(e);let{isTagsview:n}=a.value;return r.value?"13px":n?"97px":"63px"});return(e,s)=>(u(),c("div",{class:"p-flex",style:f({height:`calc(100vh - ${m(o)}`})},[p(e.$slots,"default")],4))}});export{v as _}; diff --git a/vboot-web/src/main/resources/static/assets/amap.1654291592072.js b/vboot-web/src/main/resources/static/assets/amap.1654291592072.js deleted file mode 100644 index 8cbced5..0000000 --- a/vboot-web/src/main/resources/static/assets/amap.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as r,a3 as i,j as m,m as p,a2 as u,o as _,b as h,Z as f,S as g,e as t}from"./vue.1654291592072.js";const v={class:"amap-dialog"},w={style:{height:"700px",overflow:"hidden"}},V=["src"],B=r({name:"amap",emits:["close"],setup(S,{expose:d,emit:l}){const o=i({data:[],amapSrc:""}),a=m(!1);return d({openModal:async e=>{e&&e.adcoo?o.amapSrc="ass/amap.html?adcoo="+e.adcoo+"&adreg="+e.adreg+"&addet="+e.addet+"&adzoo="+e.adzoo+"&v=":o.amapSrc="ass/amap.html?adcoo=&adreg=&addet=&adzoo=&v=",a.value=!0}}),p(()=>{}),window.addressChooseBack=function(e){l("close",e),a.value=!1},(e,s)=>{const n=u("el-dialog");return _(),h("div",v,[f(n,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),title:"\u5730\u5740\u9009\u62E9",draggable:"",width:"90%"},{default:g(()=>[t("div",w,[t("iframe",{src:o.amapSrc,frameborder:"0",height:"100%",width:"100%"},null,8,V)])]),_:1},8,["modelValue"])])}}});export{B as _}; diff --git a/vboot-web/src/main/resources/static/assets/aside.1654291592072.js b/vboot-web/src/main/resources/static/assets/aside.1654291592072.js deleted file mode 100644 index 1073892..0000000 --- a/vboot-web/src/main/resources/static/assets/aside.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var P=Object.defineProperty;var k=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var M=(e,o,i)=>o in e?P(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i,A=(e,o)=>{for(var i in o||(o={}))U.call(o,i)&&M(e,i,o[i]);if(k)for(var i of k(o))j.call(o,i)&&M(e,i,o[i]);return e};import{a as V,s as L,aB as z,a3 as D,B as S,k as $,m as O,aG as G,ag as I,a2 as m,o as g,R as _,S as y,b as w,a7 as K,F as W,Z as b,e as B,Y as F,a8 as Q,K as Y,l as Z,T as x,U as J,W as X,M as ee}from"./vue.1654291592072.js";import{u as E,_ as q,P as te,b as se,Q as ne}from"./index.1654291592072.js";import{S as oe,L as ie}from"./main.1654291592072.js";const ae=V({name:"navMenuVertical",components:{SubItem:oe},props:{menuList:{type:Array,default:()=>[]}},setup(e){const o=E(),{themeConfig:i}=L(o),f=z(),r=D({defaultActive:f.meta.isDynamic?f.meta.isDynamicPath:f.path,isCollapse:!1}),l=S(()=>e.menuList),p=S(()=>i.value),a=c=>{const{path:u,meta:d}=c,s=d.isDynamic?d.isDynamicPath.split("/"):u.split("/");return s.length>=4&&d.isHide?s.splice(0,3).join("/"):u};return $(i.value,()=>{document.body.clientWidth<=1e3?r.isCollapse=!1:r.isCollapse=i.value.isCollapse},{immediate:!0}),O(()=>{r.defaultActive=a(f)}),G(c=>{r.defaultActive=a(c),document.body.clientWidth<1e3&&(i.value.isCollapse=!1)}),A({menuLists:l,getThemeConfig:p},I(r))}});function le(e,o,i,f,r,l){const p=m("SvgIcon"),a=m("SubItem"),c=m("el-sub-menu"),u=m("el-menu-item"),d=m("el-menu");return g(),_(d,{router:"","default-active":e.defaultActive,"background-color":"transparent",collapse:e.isCollapse,"unique-opened":e.getThemeConfig.isUniqueOpened,"collapse-transition":!1},{default:y(()=>[(g(!0),w(W,null,K(e.menuLists,s=>(g(),w(W,null,[s.children&&s.children.length>0?(g(),_(c,{index:s.path,key:s.path},{title:y(()=>[b(p,{name:s.meta.icon},null,8,["name"]),B("span",null,F(e.$t(s.meta.title)),1)]),default:y(()=>[b(a,{chil:s.children},null,8,["chil"])]),_:2},1032,["index"])):(g(),_(u,{index:s.path,key:s.path},Q({default:y(()=>[b(p,{name:s.meta.icon},null,8,["name"])]),_:2},[!s.meta.isLink||s.meta.isLink&&s.meta.isIframe?{name:"title",fn:y(()=>[B("span",null,F(e.$t(s.meta.title)),1)])}:{name:"title",fn:y(()=>[B("a",{href:s.meta.isLink,target:"_blank",rel:"opener",class:"w100"},F(e.$t(s.meta.title)),9,["href"])])}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}var ue=q(ae,[["render",le]]);const re=V({name:"layoutAside",components:{Logo:ie,Vertical:ue},setup(){const{proxy:e}=Z(),o=te(),i=E(),f=se(),{routesList:r}=L(o),{themeConfig:l}=L(i),{isTagsViewCurrenFull:p}=L(f),a=D({menuList:[],clientWidth:0}),c=S(()=>{const{layout:t,isCollapse:n,menuBar:h}=l.value,C=["#FFFFFF","#FFF","#fff","#ffffff"].includes(h)?"layout-el-aside-br-color":"";if(a.clientWidth<=1e3)if(n){document.body.setAttribute("class","el-popup-parent--hidden");const N=document.querySelector(".layout-container"),v=document.createElement("div");return v.setAttribute("class","layout-aside-mobile-mode"),N.appendChild(v),v.addEventListener("click",u),[C,"layout-aside-mobile","layout-aside-mobile-open"]}else return u(),[C,"layout-aside-mobile","layout-aside-mobile-close"];else return t==="columns"?n?[C,"layout-aside-pc-1"]:[C,"layout-aside-pc-220"]:n?[C,"layout-aside-pc-64"]:[C,"layout-aside-pc-220"]}),u=()=>{const t=document.querySelector(".layout-aside-mobile-mode");t==null||t.setAttribute("style","animation: error-img-two 0.3s"),setTimeout(()=>{var h;(h=t==null?void 0:t.parentNode)==null||h.removeChild(t)},300),document.body.clientWidth<1e3&&(l.value.isCollapse=!1),document.body.setAttribute("class","")},d=S(()=>{let{layout:t,isShowLogo:n}=l.value;return n&&t==="defaults"||n&&t==="columns"}),s=()=>{if(l.value.layout==="columns")return!1;a.menuList=R(r.value)},R=t=>t.filter(n=>!n.meta.isHide).map(n=>(n=Object.assign({},n),n.children&&(n.children=R(n.children)),n)),T=t=>{a.clientWidth=t},H=t=>{let{layout:n}=l.value;if(n!=="columns")return!1;t||e.mittBus.emit("restoreDefault"),o.setColumnsMenuHover(t)};return $(l.value,t=>{if(t.isShowLogoChange!==t.isShowLogo){if(!e.$refs.layoutAsideScrollbarRef)return!1;e.$refs.layoutAsideScrollbarRef.update()}}),$(ne.state,t=>{let{layout:n,isClassicSplitMenu:h}=t.themeConfig.themeConfig;if(n==="classic"&&h)return!1;s()},{deep:!0}),Y(()=>{T(document.body.clientWidth),s(),e.mittBus.on("setSendColumnsChildren",t=>{a.menuList=t.children}),e.mittBus.on("setSendClassicChildren",t=>{let{layout:n,isClassicSplitMenu:h}=l.value;n==="classic"&&h&&(a.menuList=[],a.menuList=t.children)}),e.mittBus.on("getBreadcrumbIndexSetFilterRoutes",()=>{s()}),e.mittBus.on("layoutMobileResize",t=>{T(t.clientWidth),u()})}),A({setCollapseStyle:c,setShowLogo:d,isTagsViewCurrenFull:p,onAsideEnterLeave:H},I(a))}}),ce={class:"h100"};function de(e,o,i,f,r,l){const p=m("Logo"),a=m("Vertical"),c=m("el-scrollbar"),u=m("el-aside");return x((g(),w("div",ce,[b(u,{class:ee(["layout-aside",e.setCollapseStyle])},{default:y(()=>[e.setShowLogo?(g(),_(p,{key:0})):X("",!0),b(c,{class:"flex-auto",ref:"layoutAsideScrollbarRef",onMouseenter:o[0]||(o[0]=d=>e.onAsideEnterLeave(!0)),onMouseleave:o[1]||(o[1]=d=>e.onAsideEnterLeave(!1))},{default:y(()=>[b(a,{menuList:e.menuList},null,8,["menuList"])]),_:1},512)]),_:1},8,["class"])],512)),[[J,!e.isTagsViewCurrenFull]])}var ge=q(re,[["render",de]]);export{ge as A}; diff --git a/vboot-web/src/main/resources/static/assets/bathymetry.1654291592072.jpg b/vboot-web/src/main/resources/static/assets/bathymetry.1654291592072.jpg deleted file mode 100644 index 5f9eebe..0000000 Binary files a/vboot-web/src/main/resources/static/assets/bathymetry.1654291592072.jpg and /dev/null differ diff --git a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.eot b/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.eot deleted file mode 100644 index 8f3a3dd..0000000 Binary files a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.eot and /dev/null differ diff --git a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.svg b/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.svg deleted file mode 100644 index 00a3162..0000000 --- a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.svg +++ /dev/null @@ -1,224 +0,0 @@ - - - -camunda Services GmbH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.ttf b/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.ttf deleted file mode 100644 index f5f0b99..0000000 Binary files a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.ttf and /dev/null differ diff --git a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.woff b/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.woff deleted file mode 100644 index c4132a6..0000000 Binary files a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.woff and /dev/null differ diff --git a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.woff2 b/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.woff2 deleted file mode 100644 index 79929b2..0000000 Binary files a/vboot-web/src/main/resources/static/assets/bpmn.1654291592072.woff2 and /dev/null differ diff --git a/vboot-web/src/main/resources/static/assets/classic.1654291592072.js b/vboot-web/src/main/resources/static/assets/classic.1654291592072.js deleted file mode 100644 index fdad647..0000000 --- a/vboot-web/src/main/resources/static/assets/classic.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as f,s as d,a2 as e,o as n,R as c,S as r,Z as o,e as u,W as g}from"./vue.1654291592072.js";import{_ as h,u as C}from"./index.1654291592072.js";import{A as T}from"./aside.1654291592072.js";import{H as k,M as w,T as y}from"./main.1654291592072.js";import"./logo-mini.1654291592072.js";import"./parent.1654291592072.js";const V=f({name:"layoutClassic",components:{Aside:T,Header:k,Main:w,TagsView:y},setup(){const t=C(),{themeConfig:a}=d(t);return{themeConfig:a}}}),b={class:"flex-center layout-backtop"};function x(t,a,v,A,H,M){const i=e("Header"),m=e("Aside"),p=e("TagsView"),_=e("Main"),s=e("el-container"),l=e("el-backtop");return n(),c(s,{class:"layout-container flex-center"},{default:r(()=>[o(i),o(s,{class:"layout-mian-height-50"},{default:r(()=>[o(m),u("div",b,[t.themeConfig.isTagsview?(n(),c(p,{key:0})):g("",!0),o(_)])]),_:1}),o(l,{target:".layout-backtop .el-main .el-scrollbar__wrap"})]),_:1})}var Z=h(V,[["render",x]]);export{Z as default}; diff --git a/vboot-web/src/main/resources/static/assets/columns.1654291592072.css b/vboot-web/src/main/resources/static/assets/columns.1654291592072.css deleted file mode 100644 index 4b58d6d..0000000 --- a/vboot-web/src/main/resources/static/assets/columns.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.layout-columns-aside[data-v-07532e16]{width:70px;height:100%;background:var(--next-bg-columnsMenuBar)}.layout-columns-aside ul[data-v-07532e16]{position:relative}.layout-columns-aside ul li[data-v-07532e16]{color:var(--next-bg-columnsMenuBarColor);width:100%;height:50px;text-align:center;display:flex;cursor:pointer;position:relative;z-index:1}.layout-columns-aside ul li .columns-vertical[data-v-07532e16]{margin:auto}.layout-columns-aside ul li .columns-vertical .columns-vertical-title[data-v-07532e16]{padding-top:1px}.layout-columns-aside ul li .columns-horizontal[data-v-07532e16]{display:flex;height:50px;width:100%;align-items:center;padding:0 5px}.layout-columns-aside ul li .columns-horizontal i[data-v-07532e16]{margin-right:3px}.layout-columns-aside ul li .columns-horizontal a[data-v-07532e16]{display:flex}.layout-columns-aside ul li .columns-horizontal a .columns-horizontal-title[data-v-07532e16]{padding-top:1px}.layout-columns-aside ul li a[data-v-07532e16]{text-decoration:none;color:var(--next-bg-columnsMenuBarColor)}.layout-columns-aside ul .layout-columns-active[data-v-07532e16]{color:var(--next-bg-columnsMenuBarColor)!important;transition:.3s ease-in-out}.layout-columns-aside ul .layout-columns-hover[data-v-07532e16],.layout-columns-aside ul .layout-columns-hover a[data-v-07532e16]{color:var(--el-color-primary)}.layout-columns-aside ul .columns-round[data-v-07532e16],.layout-columns-aside ul .columns-card[data-v-07532e16]{background:var(--el-color-primary);color:var(--el-color-white);position:absolute;left:50%;top:2px;height:44px;width:65px;transform:translate(-50%);z-index:0;transition:.3s ease-in-out;border-radius:5px}.layout-columns-aside ul .columns-card[data-v-07532e16]{top:0;height:50px;width:100%;border-radius:0} diff --git a/vboot-web/src/main/resources/static/assets/columns.1654291592072.js b/vboot-web/src/main/resources/static/assets/columns.1654291592072.js deleted file mode 100644 index 1f36bb8..0000000 --- a/vboot-web/src/main/resources/static/assets/columns.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var E=Object.defineProperty;var B=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var R=(e,l,o)=>l in e?E(e,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[l]=o,$=(e,l)=>{for(var o in l||(l={}))G.call(l,o)&&R(e,o,l[o]);if(B)for(var o of B(l))Q.call(l,o)&&R(e,o,l[o]);return e};import{a as D,j as F,s as b,aB as W,aF as Y,a3 as Z,k as q,m as J,I as K,aG as X,ag as ee,l as te,n as se,a2 as d,o as f,b as y,Z as m,S as H,e as C,F as ne,a7 as oe,M as _,Y as O,B as le,R as S,W as T}from"./vue.1654291592072.js";import{P as ie,u as N,Q as ae,_ as P}from"./index.1654291592072.js";import{A as re}from"./aside.1654291592072.js";import{H as ue,M as ce}from"./main.1654291592072.js";import"./logo-mini.1654291592072.js";import"./parent.1654291592072.js";const de=D({name:"layoutColumnsAside",setup(){const e=F([]),l=F(),{proxy:o}=te(),p=ie(),M=N(),{routesList:k,isColumnsMenuHover:h,isColumnsNavHover:A}=b(p),{themeConfig:n}=b(M),r=W(),c=Y(),s=Z({columnsAsideList:[],liIndex:0,liOldIndex:null,liHoverIndex:null,liOldPath:null,difference:0,routeSplit:[]}),g=t=>{s.liIndex=t,l.value.style.top=`${e.value[t].offsetTop+s.difference}px`},w=(t,i)=>{g(i);let{path:a,redirect:u}=t;u?c.push(u):c.push(a)},x=(t,i)=>{let{path:a}=t;s.liOldPath=a,s.liOldIndex=i,s.liHoverIndex=i,o.mittBus.emit("setSendColumnsChildren",v(a)),p.setColumnsMenuHover(!1),p.setColumnsNavHover(!0)},j=async()=>{await p.setColumnsNavHover(!1),setTimeout(()=>{!h&&!A&&o.mittBus.emit("restoreDefault")},100)},I=t=>{se(()=>{g(t)})},V=()=>{s.columnsAsideList=L(k.value);const t=v(r.path);if(Object.keys(t).length<=0)return!1;I(t.item[0].k),o.mittBus.emit("setSendColumnsChildren",t)},v=t=>{const i=t.split("/");let a={};return s.columnsAsideList.map((u,z)=>{u.path===`/${i[1]}`&&(u.k=z,a.item=[$({},u)],a.children=[$({},u)],u.children&&(a.children=u.children))}),a},L=t=>t.filter(i=>!i.meta.isHide).map(i=>(i=Object.assign({},i),i.children&&(i.children=L(i.children)),i)),U=t=>{s.routeSplit=t.split("/"),s.routeSplit.shift();const i=`/${s.routeSplit[0]}`,a=s.columnsAsideList.find(u=>u.path===i);if(!a)return!1;setTimeout(()=>{I(a.k)},0)};return q(ae.state,t=>{if(t.themeConfig.themeConfig.columnsAsideStyle==="columnsRound"?s.difference=3:s.difference=0,!t.routesList.isColumnsMenuHover&&!t.routesList.isColumnsNavHover)s.liHoverIndex=null,o.mittBus.emit("setSendColumnsChildren",v(r.path));else{if(s.liHoverIndex=s.liOldIndex,!s.liOldPath)return!1;o.mittBus.emit("setSendColumnsChildren",v(s.liOldPath))}},{deep:!0}),J(()=>{V(),o.mittBus.on("restoreDefault",()=>{s.liOldIndex=null,s.liOldPath=null})}),K(()=>{o.mittBus.off("restoreDefault",()=>{})}),X(t=>{U(t.path),o.mittBus.emit("setSendColumnsChildren",v(t.path))}),$({themeConfig:n,columnsAsideOffsetTopRefs:e,columnsAsideActiveRef:l,onColumnsAsideDown:I,onColumnsAsideMenuClick:w,onColumnsAsideMenuMouseenter:x,onColumnsAsideMenuMouseleave:j},ee(s))}}),me={class:"layout-columns-aside"},fe=["onClick","onMouseenter","title"],pe={class:"columns-vertical-title font12"},he=["href"],Ce={class:"columns-vertical-title font12"};function _e(e,l,o,p,M,k){const h=d("SvgIcon"),A=d("el-scrollbar");return f(),y("div",me,[m(A,null,{default:H(()=>[C("ul",{onMouseleave:l[0]||(l[0]=n=>e.onColumnsAsideMenuMouseleave())},[(f(!0),y(ne,null,oe(e.columnsAsideList,(n,r)=>(f(),y("li",{key:r,onClick:c=>e.onColumnsAsideMenuClick(n,r),onMouseenter:c=>e.onColumnsAsideMenuMouseenter(n,r),ref_for:!0,ref:c=>{c&&(e.columnsAsideOffsetTopRefs[r]=c)},class:_({"layout-columns-active":e.liIndex===r,"layout-columns-hover":e.liHoverIndex===r}),title:e.$t(n.meta.title)},[!n.meta.isLink||n.meta.isLink&&n.meta.isIframe?(f(),y("div",{key:0,class:_(e.themeConfig.columnsAsideLayout)},[m(h,{name:n.meta.icon},null,8,["name"]),C("div",pe,O(e.$t(n.meta.title)&&e.$t(n.meta.title).length>=4?e.$t(n.meta.title).substr(0,e.themeConfig.columnsAsideLayout==="columns-vertical"?4:3):e.$t(n.meta.title)),1)],2)):(f(),y("div",{key:1,class:_(e.themeConfig.columnsAsideLayout)},[C("a",{href:n.meta.isLink,target:"_blank"},[m(h,{name:n.meta.icon},null,8,["name"]),C("div",Ce,O(e.$t(n.meta.title)&&e.$t(n.meta.title).length>=4?e.$t(n.meta.title).substr(0,e.themeConfig.columnsAsideLayout==="columns-vertical"?4:3):e.$t(n.meta.title)),1)],8,he)],2))],42,fe))),128)),C("div",{ref:"columnsAsideActiveRef",class:_(e.themeConfig.columnsAsideStyle)},null,2)],32)]),_:1})])}var Ae=P(de,[["render",_e],["__scopeId","data-v-07532e16"]]);const ve=D({name:"layoutColumns",components:{Aside:re,Header:ue,Main:ce,ColumnsAside:Ae},setup(){const e=N(),{themeConfig:l}=b(e);return{isFixedHeader:le(()=>l.value.isFixedHeader)}}}),ye={class:"layout-columns-warp"};function ge(e,l,o,p,M,k){const h=d("ColumnsAside"),A=d("Aside"),n=d("Header"),r=d("Main"),c=d("el-scrollbar"),s=d("el-container"),g=d("el-backtop");return f(),S(s,{class:"layout-container"},{default:H(()=>[m(h),C("div",ye,[m(A),m(s,{class:_(["flex-center layout-backtop",{"layout-backtop":!e.isFixedHeader}])},{default:H(()=>[e.isFixedHeader?(f(),S(n,{key:0})):T("",!0),m(c,{class:_({"layout-backtop":e.isFixedHeader})},{default:H(()=>[e.isFixedHeader?T("",!0):(f(),S(n,{key:0})),m(r)]),_:1},8,["class"])]),_:1},8,["class"])]),m(g,{target:".layout-backtop .el-scrollbar__wrap"})]),_:1})}var Le=P(ve,[["render",ge]]);export{Le as default}; diff --git a/vboot-web/src/main/resources/static/assets/common.1654291592072.css b/vboot-web/src/main/resources/static/assets/common.1654291592072.css deleted file mode 100644 index 7ae5003..0000000 --- a/vboot-web/src/main/resources/static/assets/common.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.sublist-add{margin-top:8px;border:1px solid #409eff;text-align:center;cursor:pointer;color:#fff;font-weight:700;border-radius:4px;background-color:#409eff}.sublist-add:hover{border-color:#66b1ff;background-color:#66b1ff}.sublist-actions .sublist-btn{margin:0 5px}.sublist-edit,.sublist-confirm{color:#409eff}.sublist-split{color:#bbbec3}.sublist-btn{cursor:pointer}.sublist-btn:hover{border-bottom:2px solid}.sublist-edit :hover,.sublist-confirm:hover{color:#66b1ff}.sublist-delete{color:#fa3b3b}.sublist-delete:hover{color:#f78989}.sublist-actions .readonly{color:#bbbec3;cursor:default}.sublist-actions .readonly:hover{border-bottom:none}.sublist-form-item{width:100%;margin-right:0!important;margin-bottom:0!important}.sublist-form-item .el-form-item__content{width:100%} diff --git a/vboot-web/src/main/resources/static/assets/common.1654291592072.js b/vboot-web/src/main/resources/static/assets/common.1654291592072.js deleted file mode 100644 index 163b5e8..0000000 --- a/vboot-web/src/main/resources/static/assets/common.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var $=Object.defineProperty;var b=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var x=(e,n,t)=>n in e?$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,E=(e,n)=>{for(var t in n||(n={}))h.call(n,t)&&x(e,t,n[t]);if(b)for(var t of b(n))w.call(n,t)&&x(e,t,n[t]);return e};import{W as F,X as D,Y as g,Z as c,$ as f,a0 as V,a1 as I}from"./index.1654291592072.js";import{a as O,a3 as q,j as B,m as J,k as L,Z as o,P,ap as k,X as d,A as M}from"./vue.1654291592072.js";import{B as p,T as A}from"./store.1654291592072.js";const m=e=>JSON.parse(JSON.stringify(e));var v=O({props:{modelValue:{type:Array,default:()=>[],required:!0},columns:{type:Array,required:!0},model:{type:Object,default:()=>Object.assign({})},rules:{type:Object,default:()=>null},tableProps:{type:Object,default:()=>({stripe:!0,border:!0,size:"small","empty-text":"\u6CA1\u6709\u6570\u636E"})},addTitle:{type:String,default:()=>"+ \u6DFB\u52A0"}},emits:["update:modelValue"],setup(e,n){const t=q({data:e.modelValue?JSON.parse(JSON.stringify(e.modelValue)):[],editing:!1,editItem:{},editIndex:void 0,isNew:!1,sublistForm:null}),l=B();J(()=>{t.sublistForm=l.value});const r=()=>{t.data=e.modelValue?JSON.parse(JSON.stringify(e.modelValue)):[],t.editing=!1,t.editItem=void 0,t.editIndex=void 0,t.isNew=!1};L(()=>e.modelValue,()=>{r()});const i=()=>{t.data.push(m(e.model)),t.editIndex=t.data.length-1,t.editing=!0,t.editItem=m(m(e.model)),t.isNew=!0},u=_(t,n);return{sublistState:t,addData:i,form:l,actionColumnProps:u}},render(){const e=this.$props,n=this.sublistState,t=m(e.tableProps),l={size:"default",inline:!0,"inline-message":!0,"show-message":!0,rules:e.rules,model:n.editItem};return o("div",{class:"sublist-div"},[n.data&&o(F,P({ref:"form"},l),{default:()=>[o(D,P(t,{data:n.data}),{default:()=>[e.columns.map(r=>{const i=k(r);if(n.editing&&i.type!=="index"){const u=i.editComponent||G();return o(f,i,{default:s=>{const y=s.row[s.column.property],T=()=>s.column.formatter?s.column.formatter(s.row,s.column,y,s.$index):y;return n.editIndex===s.$index?u(s,n):T()}})}else return o(f,i,null)}),o(f,this.actionColumnProps,this.actionColumnProps.vSlots)]})]}),!n.editing&&o("div",{class:"sublist-add",onClick:()=>this.addData()},[e.addTitle])])}});const _=(e,n)=>{function t(a){e.editIndex=a.$index,e.editing=!0,e.editItem=m(a.row)}function l(a){var s;(s=e==null?void 0:e.data)==null||s.splice(a,1),n.emit("update:modelValue",e.data)}function r(){e.sublistForm.validate(a=>{if(a)typeof(e==null?void 0:e.editIndex)=="number"&&e.data.splice(e==null?void 0:e.editIndex,1,m(k(e.editItem))),e.editIndex=void 0,e.editItem=void 0,e.editing=!1,n.emit("update:modelValue",e.data);else return!1})}function i(){e.isNew&&e.data.splice(e.data.length-1,1),e.editItem=void 0,e.editing=!1,e.editIndex=void 0}function u(){return e.editing?"readonly":""}return{align:"center",label:"\u64CD\u4F5C",vSlots:{default:a=>o("div",{class:"sublist-actions"},[e.editing&&a.$index===e.editIndex?o("div",null,[o("span",{class:"sublist-confirm sublist-btn",onClick:()=>r()},[d("\u786E\u8BA4")]),o("span",{class:"sublist-split"},[d("|")]),o("span",{class:"sublist-cancel sublist-btn",onClick:()=>i()},[d("\u53D6\u6D88")])]):o("div",null,[o("span",{class:`${u()} sublist-edit sublist-btn`,onClick:()=>{e.editing||t(a)}},[d("\u7F16\u8F91")]),o("span",{class:`${u()} `},[d("|")]),o("span",{class:`${u()} sublist-delete sublist-btn`,onClick:()=>{e.editing||l(a.$index)}},[d("\u5220\u9664")])])])}}};function G(){return function(e,n){return o(g,{class:"sublist-form-item",label:e.column.name,prop:e.column.property},{default:()=>[o(c,{label:e.column.label,modelValue:n.editItem[e.column.property],"onUpdate:modelValue":t=>n.editItem[e.column.property]=t},null)]})}}const R={id:{component:c,placeholder:"\u8282\u70B9ID",vSlots:{prepend:()=>o("div",null,[d("\u8282\u70B9ID")])},setValue(e,n,t){const l=t,r=t||" ",i=p.getShape();p.getModeling().updateProperties(i,{[n]:l?r.trim():r})}},name:{component:c,placeholder:"\u8282\u70B9\u540D\u79F0",vSlots:{prepend:()=>o("div",null,[d("\u8282\u70B9\u540D\u79F0")])}}},j={name:"\u57FA\u7840\u4FE1\u606F",icon:"el-icon-info",properties:E({},R)},K={name:"\u5143\u7D20\u6587\u6863",icon:"el-icon-document",properties:{"documentation.text":{component:c,type:"textarea",getValue:e=>{var n,t;return(t=(n=e.documentation)==null?void 0:n[0])==null?void 0:t.text},setValue(e,n,t){p.createElement("bpmn:Documentation","documentation",{text:t},!0)}}}},U=[{label:"\u5F00\u59CB",value:"start"},{label:"\u7ED3\u675F",value:"end"}],C=[{label:"java\u7C7B",value:"class"},{label:"\u8C03\u7528\u8868\u8FBE\u5F0F",value:"expression"},{label:"\u6CE8\u5165\u8868\u8FBE\u5F0F",value:"delegateExpression"}];function S(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!M(e)}const N=Object.keys(A),W=function(e){const n=e.eventOptions||U;return{name:e.name||"\u76D1\u542C\u5668",icon:e.icon||"el-icon-bell",properties:{"extensionElements.listeners":{component:v,columns:[{type:"index",label:"\u5E8F\u53F7",align:"center"},{prop:"event",label:"\u4E8B\u4EF6",align:"center",formatter:(t,l)=>n.filter(r=>r.value===t[l.property])[0].label,editComponent:function(t,l){let r;return o(g,{class:"sublist-form-item",label:t.column.name,prop:t.column.property},{default:()=>[o(V,{modelValue:l.editItem.event,"onUpdate:modelValue":i=>l.editItem.event=i},S(r=n.map(i=>o(I,{key:i.value,label:i.label,value:i.value},null)))?r:{default:()=>[r]})]})}},{prop:"type",label:"\u6267\u884C\u7C7B\u578B",align:"center",formatter:(t,l)=>C.filter(r=>r.value===t[l.property])[0].label,editComponent:function(t,l){let r;return o(g,{class:"sublist-form-item",label:t.column.name,prop:t.column.property},{default:()=>[o(V,{modelValue:l.editItem.type,"onUpdate:modelValue":i=>l.editItem.type=i},S(r=C.map(i=>o(I,{key:i.value,label:i.label,value:i.value},null)))?r:{default:()=>[r]})]})}},{prop:"content",label:"\u6267\u884C\u5185\u5BB9",align:"center"}],rules:{event:[{required:!0,message:"\u4E8B\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"}],type:[{required:!0,message:"\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A"}],content:[{required:!0,message:"\u6267\u884C\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"}]},getValue:t=>{var r,i,u;const l=N.includes(t.$type)?"activiti:TaskListener":"activiti:ExecutionListener";return(u=(i=(r=t==null?void 0:t.extensionElements)==null?void 0:r.values)==null?void 0:i.filter(a=>a.$type===l))==null?void 0:u.map(a=>{const s=a.expression?"expression":a.delegateExpression?"delegateExpression":"class";return{event:a.event,type:s,content:a[s]}})},setValue(t,l,r){const i=p;console.warn("activeBusinessObject",t);const u=i.getModeler().get("moddle"),a=N.includes(t.$type)?"activiti:TaskListener":"activiti:ExecutionListener";i.updateExtensionElements(a,r.map(s=>u.create(a,{event:s.event,[s.type]:s.content})))}}}}},H={name:"\u6269\u5C55\u5C5E\u6027",icon:"el-icon-document-add",properties:{"extensionElements.properties":{component:v,columns:[{type:"index",label:"\u5E8F\u53F7",align:"center"},{prop:"name",label:"\u5C5E\u6027\u540D",align:"center"},{prop:"value",label:"\u5C5E\u6027\u503C",align:"center"}],rules:{name:[{required:!0,message:"\u5C5E\u6027\u540D\u4E0D\u80FD\u4E3A\u7A7A"}],value:[{required:!0,message:"\u5C5E\u6027\u503C\u4E0D\u80FD\u4E3A\u7A7A"}]},getValue:e=>{var n,t,l;return(l=(t=(n=e==null?void 0:e.extensionElements)==null?void 0:n.values)==null?void 0:t.filter(r=>r.$type==="activiti:Properties")[0])==null?void 0:l.values.map(r=>({name:r.name,value:r.value}))},setValue(e,n,t){const l=p,r=l.getModeler().get("moddle"),i=r.create("activiti:Properties",{values:t.map(u=>r.create("activiti:Property",{name:u.name,value:u.value}))});l.updateExtensionElements("activiti:Properties",i)}}}},Q={name:"\u8868\u5355\u4FE1\u606F",icon:"el-icon-edit",properties:{formKey:{component:c,placeholder:"\u8868\u5355key",vSlots:{prepend:()=>o("div",null,[d("\u8868\u5355key")])}},"extensionElements.formProperty":{component:v,columns:[{prop:"id",label:"\u7F16\u7801",align:"center"},{prop:"type",label:"\u7C7B\u578B",align:"center"},{prop:"name",label:"\u540D\u79F0",align:"center"}],rules:{id:[{required:!0,message:"\u7F16\u7801\u4E0D\u80FD\u4E3A\u7A7A"}],type:[{required:!0,message:"\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A"}],name:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},getValue:e=>{var n,t;return(t=(n=e==null?void 0:e.extensionElements)==null?void 0:n.values)==null?void 0:t.filter(l=>l.$type==="activiti:FormProperty").map(l=>{var r;return console.warn("elem",l),{id:l==null?void 0:l.id,type:l.type,name:(r=l==null?void 0:l.$attrs)==null?void 0:r.name}})},setValue(e,n,t){const l=p,r=l.getModeler().get("moddle"),i=t.map(u=>r.create("activiti:FormProperty",{id:u.id,name:u.name,type:u.type}));l.updateExtensionElements("activiti:FormProperty",i)}}}};export{j as C,K as D,H as E,Q as F,W as g}; diff --git a/vboot-web/src/main/resources/static/assets/defaults.1654291592072.js b/vboot-web/src/main/resources/static/assets/defaults.1654291592072.js deleted file mode 100644 index ea143d7..0000000 --- a/vboot-web/src/main/resources/static/assets/defaults.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -import{a as y,aB as H,s as C,B as x,k as h,a2 as o,o as t,R as s,S as r,Z as a,W as d,M as m,l as F}from"./vue.1654291592072.js";import{_ as $,u as g}from"./index.1654291592072.js";import{A as M}from"./aside.1654291592072.js";import{H as R,M as w}from"./main.1654291592072.js";import"./logo-mini.1654291592072.js";import"./parent.1654291592072.js";const A=y({name:"layoutDefaults",components:{Aside:M,Header:R,Main:w},setup(){const{proxy:e}=F(),n=H(),c=g(),{themeConfig:l}=C(c),i=x(()=>l.value.isFixedHeader);return h(()=>n.path,()=>{e.$refs.layoutDefaultsScrollbarRef.wrap$.scrollTop=0}),{isFixedHeader:i}}});function B(e,n,c,l,i,T){const f=o("Aside"),p=o("Header"),_=o("Main"),b=o("el-scrollbar"),u=o("el-container"),k=o("el-backtop");return t(),s(u,{class:"layout-container"},{default:r(()=>[a(f),a(u,{class:m(["flex-center",{"layout-backtop":!e.isFixedHeader}])},{default:r(()=>[e.isFixedHeader?(t(),s(p,{key:0})):d("",!0),a(b,{ref:"layoutDefaultsScrollbarRef",class:m({"layout-backtop":e.isFixedHeader})},{default:r(()=>[e.isFixedHeader?d("",!0):(t(),s(p,{key:0})),a(_)]),_:1},8,["class"])]),_:1},8,["class"]),a(k,{target:".layout-backtop .el-scrollbar__wrap"})]),_:1})}var I=$(A,[["render",B]]);export{I as default}; diff --git a/vboot-web/src/main/resources/static/assets/demo1.1654291592072.css b/vboot-web/src/main/resources/static/assets/demo1.1654291592072.css deleted file mode 100644 index 7c3ebc4..0000000 --- a/vboot-web/src/main/resources/static/assets/demo1.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.visualizing-demo1[data-v-9a8a98b4]{height:100%;width:100%;position:relative}.visualizing-demo1[data-v-9a8a98b4] .BMap_cpyCtrl,.visualizing-demo1[data-v-9a8a98b4] .anchorBL{display:none}.visualizing-demo1 .visualizing-container .visualizing-container-head[data-v-9a8a98b4]{height:60px;width:100%;position:absolute;top:0;left:0;display:flex;align-items:center;color:#fff;background:linear-gradient(to bottom,rgba(0,0,0,.9),rgba(0,0,0,.3),rgba(0,0,0,.02));z-index:3}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left[data-v-9a8a98b4]{flex:1;position:relative;height:60px}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left .visualizing-container-head-left-text[data-v-9a8a98b4]{position:relative;z-index:1;font-size:12px;opacity:.6;width:93%;padding-left:15px;top:50%;transform:translateY(-100%)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left .visualizing-container-head-left-text .visualizing-container-head-left-text-box[data-v-9a8a98b4]{width:100%;position:relative;padding-left:15px}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left .visualizing-container-head-left-text .visualizing-container-head-left-text-box[data-v-9a8a98b4]:after{content:"";height:20px;width:100%;position:absolute;background:linear-gradient(to right,rgba(22,207,208,.1),rgba(22,207,208,.3));top:-1px;left:0;transform:skew(30deg)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left[data-v-9a8a98b4]:before,.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left[data-v-9a8a98b4]:after{content:"";height:3px;background:linear-gradient(-90deg,#16cfd0,transparent);position:absolute;width:100%}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left[data-v-9a8a98b4]:before{top:1px;right:33px;opacity:.8}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-left[data-v-9a8a98b4]:after{top:41px;right:-2px}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center[data-v-9a8a98b4]{height:60px;font-size:18px;text-align:center;display:flex;flex-direction:column;position:relative;padding:0 60px;background:radial-gradient(rgba(0,0,0,.7) 5%,rgba(0,0,0,.5) 15%,rgba(0,0,0,.02) 70%)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box[data-v-9a8a98b4]{margin:auto;position:relative;z-index:1}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-maintitle[data-v-9a8a98b4]{position:relative}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-maintitle[data-v-9a8a98b4]:before,.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-maintitle[data-v-9a8a98b4]:after{content:"";position:absolute;min-width:21%;height:29px;top:2px;opacity:.3;border-top:1px solid #16cfd0}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-maintitle[data-v-9a8a98b4]:before{left:-70px;border-right:2px solid #16cfd0;transform:skew(50deg)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-maintitle[data-v-9a8a98b4]:after{right:-70px;border-left:2px solid #16cfd0;transform:skew(-50deg)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-subtitle[data-v-9a8a98b4]{font-size:14px;opacity:.8;position:relative}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-subtitle[data-v-9a8a98b4]:before,.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-subtitle[data-v-9a8a98b4]:after{content:"";position:absolute;min-width:35%;height:23px;bottom:8px;border-bottom:2px solid #16cfd0}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-subtitle[data-v-9a8a98b4]:before{transform:skew(50deg);left:-33px;border-left:3px solid #16cfd0;border-image:linear-gradient(to right,#16cfd0,rgba(22,207,208,.02)) 1 10}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box .visualizing-container-head-center-subtitle[data-v-9a8a98b4]:after{transform:skew(-50deg);right:-33px;border-right:3px solid #16cfd0;border-image:linear-gradient(to left,rgb(22,207,208),rgba(22,207,208,.02)) 1 10}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box[data-v-9a8a98b4]:before,.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box[data-v-9a8a98b4]:after{content:"";position:absolute;width:36px;height:17px;top:-8px;border-bottom:2px solid rgba(22,207,208,.7)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box[data-v-9a8a98b4]:before{transform:skew(32deg);left:-89px;border-left:3px solid rgba(22,207,208,.7)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center .visualizing-container-head-center-box[data-v-9a8a98b4]:after{transform:skew(-32deg);right:-89px;border-right:3px solid rgba(22,207,208,.7)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center[data-v-9a8a98b4]:before,.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center[data-v-9a8a98b4]:after{content:"";position:absolute;min-width:50%;height:15px;bottom:0px;border-bottom:4px solid #16cfd0}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center[data-v-9a8a98b4]:before{transform:skew(60deg);left:13px;border-left:5px solid #16cfd0}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-center[data-v-9a8a98b4]:after{transform:skew(-60deg);right:13px;border-right:5px solid #16cfd0}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right[data-v-9a8a98b4]{flex:1;position:relative;height:60px}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right .visualizing-container-head-right-text[data-v-9a8a98b4]{position:relative;z-index:1;font-size:12px;opacity:.6;width:93%;float:right;text-align:right;padding-right:15px;top:50%;transform:translateY(-100%)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right .visualizing-container-head-right-text .visualizing-container-head-right-text-box[data-v-9a8a98b4]{width:100%;position:relative;padding-right:15px}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right .visualizing-container-head-right-text .visualizing-container-head-right-text-box[data-v-9a8a98b4]:after{content:"";height:20px;width:100%;position:absolute;background:linear-gradient(to left,rgba(22,207,208,.1),rgba(22,207,208,.3));top:-1px;right:0;transform:skew(-30deg)}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right[data-v-9a8a98b4]:before,.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right[data-v-9a8a98b4]:after{content:"";height:3px;background:linear-gradient(90deg,#16cfd0,transparent);position:absolute;width:100%}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right[data-v-9a8a98b4]:before{top:1px;left:33px;opacity:.8}.visualizing-demo1 .visualizing-container .visualizing-container-head .visualizing-container-head-right[data-v-9a8a98b4]:after{top:41px;left:-2px}.visualizing-demo1 .visualizing-container .visualizing-container-title[data-v-9a8a98b4]{max-width:240px;font-size:14px;color:#fff;opacity:.8;padding:0 5px;border-bottom:1px solid #ffffff;border-image:linear-gradient(to right,#ffffff,rgba(22,207,208,.02)) 1 10;position:relative}.visualizing-demo1 .visualizing-container .visualizing-container-title i[data-v-9a8a98b4]{padding-right:5px;color:orange}.visualizing-demo1 .visualizing-container .visualizing-container-title[data-v-9a8a98b4]:after{content:"";position:absolute;left:0;bottom:0;width:1px;height:10px;background:linear-gradient(to top,#ffffff,rgba(255,255,255,.5))}.visualizing-demo1 .visualizing-container .visualizing-container-title-colorful[data-v-9a8a98b4]{max-width:240px;border:0;padding:1px;background:linear-gradient(135deg,red,orange,green,#16cfd0,purple);--mask-image: repeating-linear-gradient(135deg, #000 0px, #000 1px, transparent 1px, transparent 4px);-webkit-mask-image:var(--mask-image);mask-image:var(--mask-image)}.visualizing-demo1 .visualizing-container .visualizing-container-content-left[data-v-9a8a98b4]{width:288px;height:100%;position:absolute;top:0;left:0;background:linear-gradient(to right,rgba(0,0,0,.9),rgba(0,0,0,.5),rgba(0,0,0,.01));padding-top:60px;z-index:2}.visualizing-demo1 .visualizing-container .visualizing-container-content-left .visualizing-container-content-left-flex[data-v-9a8a98b4]{height:50%;display:flex;flex-direction:column;padding-left:15px}.visualizing-demo1 .visualizing-container .visualizing-container-content-center[data-v-9a8a98b4]{width:100%;height:240px;position:absolute;bottom:0;left:0;background:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,.5),rgba(0,0,0,.01));z-index:1}.visualizing-demo1 .visualizing-container .visualizing-container-content-center .visualizing-container-content-center-bottom[data-v-9a8a98b4]{width:calc(100% - 576px);height:240px;left:288px;bottom:0;position:absolute;display:flex;padding:0 15px}.visualizing-demo1 .visualizing-container .visualizing-container-content-center .visualizing-container-content-center-bottom .visualizing-container-content-center-bottom-flex[data-v-9a8a98b4]{width:50%;padding:0 15px}.visualizing-demo1 .visualizing-container .visualizing-container-content-right[data-v-9a8a98b4]{width:288px;height:100%;position:absolute;top:0;right:0;padding-top:60px;background:linear-gradient(to left,rgba(0,0,0,.9),rgba(0,0,0,.5),rgba(0,0,0,.01));z-index:2}.visualizing-demo1 .visualizing-container .visualizing-container-content-right .visualizing-container-content-right-flex[data-v-9a8a98b4]{height:50%;display:flex;flex-direction:column;padding-right:15px} diff --git a/vboot-web/src/main/resources/static/assets/demo1.1654291592072.js b/vboot-web/src/main/resources/static/assets/demo1.1654291592072.js deleted file mode 100644 index ee9fb06..0000000 --- a/vboot-web/src/main/resources/static/assets/demo1.1654291592072.js +++ /dev/null @@ -1,27 +0,0 @@ -var Z=Object.defineProperty;var z=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var L=(t,e,i)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,T=(t,e)=>{for(var i in e||(e={}))M.call(e,i)&&L(t,i,e[i]);if(z)for(var i of z(e))V.call(e,i)&&L(t,i,e[i]);return t};import{B as R,c as N,b as O,m as W,a as w,e as $,d as H,r as Y,f as j,i as _,L as b}from"./echarts.1654291592072.js";import{_ as Q,N as J,M as k}from"./index.1654291592072.js";import{a as I,a3 as G,m as q,I as U,ag as K,b as X,e as o,Y as tt,az as et,aA as ot,f as it,o as ut,l as at}from"./vue.1654291592072.js";function p(t,e){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=e,this._projection=new BMap.MercatorProjection}p.prototype.dimensions=["lng","lat"];p.prototype.setZoom=function(t){this._zoom=t};p.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))};p.prototype.setMapOffset=function(t){this._mapOffset=t};p.prototype.getBMap=function(){return this._bmap};p.prototype.dataToPoint=function(t){var e=new BMap.Point(t[0],t[1]),i=this._bmap.pointToOverlayPixel(e),s=this._mapOffset;return[i.x-s[0],i.y-s[1]]};p.prototype.pointToData=function(t){var e=this._mapOffset;return t=this._bmap.overlayPixelToPoint({x:t[0]+e[0],y:t[1]+e[1]}),[t.lng,t.lat]};p.prototype.getViewRect=function(){var t=this._api;return new R(0,0,t.getWidth(),t.getHeight())};p.prototype.getRoamTransform=function(){return N()};p.prototype.prepareCustoms=function(){var t=this.getViewRect();return{coordSys:{type:"bmap",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:O(this.dataToPoint,this),size:O(nt,this)}}};function nt(t,e){return e=e||[0,0],W([0,1],function(i){var s=e[i],u=t[i]/2,h=[],v=[];return h[i]=s-u,v[i]=s+u,h[1-i]=v[1-i]=e[1-i],Math.abs(this.dataToPoint(h)[i]-this.dataToPoint(v)[i])},this)}var B;p.dimensions=p.prototype.dimensions;function st(){function t(e){this._root=e}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(e){return e.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}p.create=function(t,e){var i,s=e.getDom();t.eachComponent("bmap",function(u){var h=e.getZr().painter,v=h.getViewportRoot();if(typeof BMap=="undefined")throw new Error("BMap api is not loaded");if(B=B||st(),i)throw new Error("Only one bmap component can exist");var d;if(!u.__bmap){var m=s.querySelector(".ec-extension-bmap");m&&(v.style.left="0px",v.style.top="0px",s.removeChild(m)),m=document.createElement("div"),m.className="ec-extension-bmap",m.style.cssText="position:absolute;width:100%;height:100%",s.appendChild(m);var g=u.get("mapOptions");g&&(g=w(g),delete g.mapType),d=u.__bmap=new BMap.Map(m,g);var x=new B(v);d.addOverlay(x),h.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}d=u.__bmap;var y=u.get("center"),a=u.get("zoom");if(y&&a){var n=d.getCenter(),r=d.getZoom(),E=u.centerOrZoomChanged([n.lng,n.lat],r);if(E){var l=new BMap.Point(y[0],y[1]);d.centerAndZoom(l,a)}}i=new p(d,e),i.setMapOffset(u.__mapOffset||[0,0]),i.setZoom(a),i.setCenter(y),u.coordinateSystem=i}),t.eachSeries(function(u){u.get("coordinateSystem")==="bmap"&&(u.coordinateSystem=i)})};function rt(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}$({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged:function(t,e){var i=this.option;return!(rt(t,i.center)&&e===i.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}});function P(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}H({type:"bmap",render:function(t,e,i){var s=!0,u=t.getBMap(),h=i.getZr().painter.getViewportRoot(),v=t.coordinateSystem,d=function(l,c){if(!s){var F=h.parentNode.parentNode.parentNode,C=[-parseInt(F.style.left,10)||0,-parseInt(F.style.top,10)||0],A=h.style,S=C[0]+"px",D=C[1]+"px";A.left!==S&&(A.left=S),A.top!==D&&(A.top=D),v.setMapOffset(C),t.__mapOffset=C,i.dispatchAction({type:"bmapRoam",animation:{duration:0}})}};function m(){s||i.dispatchAction({type:"bmapRoam",animation:{duration:0}})}u.removeEventListener("moving",this._oldMoveHandler),u.removeEventListener("moveend",this._oldMoveHandler),u.removeEventListener("zoomend",this._oldZoomEndHandler),u.addEventListener("moving",d),u.addEventListener("moveend",d),u.addEventListener("zoomend",m),this._oldMoveHandler=d,this._oldZoomEndHandler=m;var g=t.get("roam");g&&g!=="scale"?u.enableDragging():u.disableDragging(),g&&g!=="move"?(u.enableScrollWheelZoom(),u.enableDoubleClickZoom(),u.enablePinchToZoom()):(u.disableScrollWheelZoom(),u.disableDoubleClickZoom(),u.disablePinchToZoom());var x=t.__mapStyle,y=t.get("mapStyle")||{},a=JSON.stringify(y);JSON.stringify(x)!==a&&(P(y)||u.setMapStyle(w(y)),t.__mapStyle=JSON.parse(a));var n=t.__mapStyle2,r=t.get("mapStyleV2")||{},E=JSON.stringify(r);JSON.stringify(n)!==E&&(P(r)||u.setMapStyleV2(w(r)),t.__mapStyle2=JSON.parse(E)),s=!1}});Y("bmap",p);j({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},function(t,e){e.eachComponent("bmap",function(i){var s=i.getBMap(),u=s.getCenter();i.setCenterAndZoom([u.lng,u.lat],s.getZoom())})});const lt=[{name:"\u6DF1\u5733\u5E02\u4EBA\u6C11\u653F\u5E9C",value:"100"},{name:"\u83B2\u82B1\u5C71\u516C\u56ED",value:"100"},{name:"\u4E16\u754C\u4E4B\u7A97",value:"100"},{name:"\u534E\u4FA8\u57CE\u6B22\u4E50\u8C37",value:"100"},{name:"\u5B9D\u5B89\u533A\u897F\u4E61",value:"100"}],ct={\u6DF1\u5733\u5E02\u4EBA\u6C11\u653F\u5E9C:[114.064524,22.549225],\u83B2\u82B1\u5C71\u516C\u56ED:[114.0658,22.560072],\u4E16\u754C\u4E4B\u7A97:[113.979419,22.540579],\u534E\u4FA8\u57CE\u6B22\u4E50\u8C37:[113.986066,22.548056],\u5B9D\u5B89\u533A\u897F\u4E61:[113.869053,22.581714]},pt=[{url:"https://img1.baidu.com/it/u=4244861097,3561366422&fm=11&fmt=auto&gp=0.jpg",name:"\u6DF1\u5733\u5E02\u4EBA\u6C11\u653F\u5E9C",add:"\u6DF1\u5733\u5E02\u798F\u7530\u533A\u798F\u4E2D\u4E09\u8DEF\u5E02\u6C11\u4E2D\u5FC3C\u533A",dec:"\u6DF1\u5733\u5E02\u4EBA\u6C11\u653F\u5E9C\u662F\u6839\u636E\u300A\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD\u5730\u65B9\u5404\u7EA7\u4EBA\u6C11\u4EE3\u8868\u5927\u4F1A\u548C\u5730\u65B9\u5404\u7EA7\u4EBA\u6C11\u653F\u5E9C\u7EC4\u7EC7\u6CD5\u300B\u8BBE\u7ACB\u7684\uFF0C\u662F\u6DF1\u5733\u5E02\u4EBA\u6C11\u4EE3\u8868\u5927\u4F1A\u7684\u6267\u884C\u673A\u5173\uFF0C\u662F\u6DF1\u5733\u5E02\u7684\u56FD\u5BB6\u884C\u653F\u673A\u5173\u3002"},{url:"https://img1.baidu.com/it/u=3793608028,4006842751&fm=26&fmt=auto&gp=0.jpg",name:"\u83B2\u82B1\u5C71\u516C\u56ED",add:"\u5E7F\u4E1C\u7701\u6DF1\u5733\u5E02\u798F\u7530\u533A\u83B2\u82B1\u8857\u9053\u83B2\u82B1\u5317\u793E\u533A\u7EA2\u8354\u8DEF6030\u53F7",dec:"\u83B2\u82B1\u5C71\u516C\u56ED\u7B79\u5EFA\u4E8E1992\u5E7410\u670810\u65E5 \uFF0C1997\u5E746\u670823\u65E5\u6B63\u5F0F\u5BF9\u5916\u5C40\u90E8\u5F00\u653E\u3002"},{url:"https://img0.baidu.com/it/u=1406340112,1927292660&fm=26&fmt=auto&gp=0.jpg",name:"\u4E16\u754C\u4E4B\u7A97",add:"\u6DF1\u5733\u5E02\u5357\u5C71\u533A\u6DF1\u5357\u5927\u90539037\u53F7",dec:"\u8FD9\u91CC\uFF0C\u4E16\u754C\u9996\u5EA7\u5B9E\u666F\u62CD\u6444\u60AC\u7A7A\u5F0F\u7403\u5E55\u5F71\u9662\u201C\u98DE\u8DC3\u7F8E\u5229\u575A\u201D\u201D\uFF0C\u4E3A\u6E38\u5BA2\u63D0\u4F9B\u96C6\u4F11\u95F2\u653E\u677E\u4E8E\u4E00\u4F53\u7684\u90FD\u5E02\u65F6\u5C1A\u751F\u6D3B\u7A7A\u95F4\u3002"},{url:"https://img0.baidu.com/it/u=3042342330,902556630&fm=26&fmt=auto&gp=0.jpg",name:"\u534E\u4FA8\u57CE\u6B22\u4E50\u8C37",add:"\u5E7F\u4E1C\u7701\u6DF1\u5733\u5E02\u5357\u5C71\u533A\u6C99\u6CB3\u8857\u9053\u661F\u6CB3\u8857\u793E\u533A\u4FA8\u57CE\u897F\u88571\u53F7",dec:"\u6DF1\u5733\u6B22\u4E50\u8C37\u6CE8\u91CD\u6EE1\u8DB3\u4EBA\u4EEC\u53C2\u4E0E\u3001\u4F53\u9A8C\u7684\u65B0\u578B\u8BF1\u6E38\u9700\u6C42\uFF0C\u8425\u9020\u51FA\u81EA\u7136\u3001\u6E05\u65B0\u3001\u6D3B\u6CFC\u3001\u60CA\u5947\u3001\u70ED\u70C8\u3001\u523A\u6FC0\u7684\u4F11\u95F2\u65C5\u6E38\u6C1B\u56F4\u3002"},{url:"https://img2.baidu.com/it/u=1075072079,1229283519&fm=11&fmt=auto&gp=0.jpg",name:"\u5B9D\u5B89\u533A\u897F\u4E61",add:"\u897F\u4E61\u8857\u9053\u4E0B\u8F9625\u4E2A\u793E\u533A",dec:"\u897F\u4E61\u8857\u9053\uFF0C\u96B6\u5C5E\u4E8E\u5E7F\u4E1C\u7701\u6DF1\u5733\u5E02\u5B9D\u5B89\u533A\uFF0C\u4F4D\u4E8E\u5B9D\u5B89\u533A\u897F\u5357\u90E8\uFF0C\u4E1C\u63A5\u77F3\u5CA9\u8857\u9053\uFF0C\u5357\u63A5\u65B0\u5B89\u8857\u9053\uFF0C\u897F\u81F3\u73E0\u6C5F\u53E3\u5CB8\u8FB9\uFF0C\u5317\u63A5\u822A\u57CE\u8857\u9053\u3002"}];const dt=I({name:"visualizingLinkDemo1",setup(){const{proxy:t}=at(),e=G({echartsMapList:lt,echartsMapData:ct,echartsMapImgs:pt,time:{txt:"",fun:0},myCharts:[]}),i=()=>{e.time.txt=k(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"),e.time.fun=window.setInterval(()=>{e.time.txt=k(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ")},1e3)},s=a=>{let n=[];for(let r=0;r{const a=_(document.getElementById("visualizingDemo1")),n={tooltip:{trigger:"item",formatter(l){let c=e.echartsMapImgs.find(C=>C.name===l.name);return`
-
- -
- ${c==null?void 0:c.name} -
-
-
-
\u5730\u5740\uFF1A
-
${c==null?void 0:c.add}
-
-
-
\u6982\u62EC\uFF1A
-
${c==null?void 0:c.dec}
-
-
`}},color:["#ea7ccc"],bmap:{center:[114.064524,22.549225],zoom:11,roam:!0,mapStyle:{}},series:[{name:"\u95E8\u7968\u6536\u5165",type:"scatter",coordinateSystem:"bmap",data:s(e.echartsMapList),symbolSize:function(l){return l[2]/10},encode:{value:2},label:{formatter:"{b}",position:"right",show:!1},emphasis:{label:{show:!0}}},{name:"\u95E8\u7968\u6536\u5165",type:"effectScatter",coordinateSystem:"bmap",data:s(e.echartsMapList.sort(function(l,c){return c.value-l.value}).slice(0,6)),symbolSize:function(l){return l[2]/10},encode:{value:2},showEffectOn:"render",rippleEffect:{brushType:"stroke"},hoverAnimation:!0,label:{formatter:"{b}",position:"right",show:!0},itemStyle:{shadowBlur:100,shadowColor:"#333"},zlevel:1}]};a.setOption(n),e.myCharts.push(a);const r=a.getModel().getComponent("bmap").getBMap();r.setMapType(BMAP_SATELLITE_MAP),new BMap.Boundary().get("\u6DF1\u5733",function(l){let c=l.boundaries.length;for(let F=0;F{const a=_(t.$refs.visualizingContentLeftTop),n={grid:{top:50,right:0,bottom:50,left:30},tooltip:{trigger:"axis"},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{color:"#16cfd0"}},yAxis:[{type:"value",name:"\u4EF7\u683C",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u9884\u8D2D\u961F\u5217",type:"line",data:[200,85,112,275,305,415],itemStyle:{color:"#16cfd0"}},{name:"\u6700\u65B0\u6210\u4EA4\u4EF7",type:"line",data:[50,85,22,155,170,25],itemStyle:{color:"#febb50"}}]};a.setOption(n),e.myCharts.push(a)},v=()=>{const a=_(t.$refs.visualizingContentLeftBottom),n={grid:{top:50,right:10,bottom:40,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{interval:0,color:"#16cfd0",textStyle:{fontSize:10}}},yAxis:[{type:"value",name:"\u9500\u91CF",axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u5BA2\u6D41",type:"line",stack:"\u603B\u91CF",smooth:!0,lineStyle:{width:0},areaStyle:{opacity:.8,color:new b(0,0,0,1,[{offset:0,color:"rgba(128, 255, 165)"},{offset:1,color:"rgba(1, 191, 236)"}])},emphasis:{focus:"series"},data:[140,232,101,264,90]},{name:"\u5929\u6570",type:"line",stack:"\u603B\u91CF",smooth:!0,lineStyle:{width:0},areaStyle:{opacity:.8,color:new b(0,0,0,1,[{offset:0,color:"rgba(0, 221, 255)"},{offset:1,color:"rgba(77, 119, 255)"}])},emphasis:{focus:"series"},data:[120,282,111,234,220]}]};a.setOption(n),e.myCharts.push(a)},d=()=>{const a=_(t.$refs.visualizingContentCenterTop),n=100,r=1e3,E={grid:{top:50,right:10,bottom:66,left:38},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:[{type:"category",data:["\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A","\u5730\u533A"],axisLabel:{color:"#16cfd0",textStyle:{fontSize:9},interval:0,rotate:-45},axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1}}],yAxis:[{type:"value",name:"\u5929\u6570",nameGap:25,axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{type:"bar",barWidth:15,itemStyle:{normal:{color:new b(0,0,0,1,[{offset:0,color:"#de682e"},{offset:1,color:"#ecc232"}])}},label:{normal:{show:!0,position:"top",formatter:function(l){return l.value==r||l.value==n?"":l.value},textStyle:{color:"rgba(22, 207, 208, 0.8)",fontSize:10}}},markPoint:{symbolSize:30,label:{normal:{textStyle:{color:"#ffffff",fontSize:10}}},data:[{name:"\u5E74\u6700\u4F4E",value:n,xAxis:0,yAxis:100},{name:"\u5E74\u6700\u9AD8",value:r,xAxis:9,yAxis:1e3}]},data:[100,200,300,400,500,600,700,800,900,1e3]}]};a.setOption(E),e.myCharts.push(a)},m=()=>{const a=_(t.$refs.visualizingContentCenterBottom),n={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:26,right:10,bottom:66,left:45},xAxis:{type:"value",axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}}},yAxis:{type:"category",axisLabel:{color:"#16cfd0"}},series:[{name:"\u5DF2\u5B8C\u6210",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!0},labelLine:{show:!1},color:new b(0,0,1,0,[{offset:0,color:"rgba(7,165,255,0.2)"},{offset:1,color:"rgba(7,165,255,1)"}])}},{name:"\u8FDB\u884C\u4E2D",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:12,itemStyle:{label:{show:!0},labelLine:{show:!1},color:new b(0,0,1,0,[{offset:0,color:"rgba(41,244,236,0)"},{offset:1,color:"rgba(41,244,236,1)"}])}}],dataset:{source:[{status:"\u5DF2\u7B7E\u6536",value1:33,value2:93},{status:"\u914D\u9001\u4E2D",value1:53,value2:32},{status:"\u5DF2\u51FA\u5E93",value1:78,value2:65},{status:"\u91C7\u8D2D\u4E2D",value1:12,value2:35},{status:"\u63A5\u5355\u4E2D",value1:90,value2:52}]}};a.setOption(n),e.myCharts.push(a)},g=()=>{const a=_(t.$refs.visualizingContentRightTop),n={grid:{top:50,right:30,bottom:50,left:20},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.5)",width:1}},axisTick:{show:!1},axisLabel:{color:"#16cfd0"}},yAxis:[{type:"value",name:"\u4EBF\u5143",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}},{type:"value",name:"\u540C\u6BD4",position:"right",axisLine:{show:!1},axisLabel:{show:!0,formatter:"{value}%",textStyle:{color:"#16cfd0"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u9500\u552E\u6C34\u91CF",type:"line",yAxisIndex:1,smooth:!0,showAllSymbol:!0,symbol:"circle",itemStyle:{color:"#058cff"},lineStyle:{color:"#058cff"},areaStyle:{color:"rgba(5,140,255, 0.2)"},data:[4.2,3.8,4.8,3.5,2.9,2.8]},{name:"\u4E3B\u8425\u4E1A\u52A1",type:"bar",barWidth:15,itemStyle:{normal:{color:new b(0,0,0,1,[{offset:0,color:"#00FFE3"},{offset:1,color:"#4693EC"}])}},data:[4.2,3.8,4.8,3.5,2.9,2.8]}]};a.setOption(n),e.myCharts.push(a)},x=()=>{const a=_(t.$refs.visualizingContentRightBottom),n={grid:{top:50,right:10,bottom:40,left:30},tooltip:{trigger:"axis"},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{color:"#16cfd0"}},yAxis:[{type:"value",name:"\u4EBA\u6570(\u4E07)",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#16cfd0"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u9884\u8D2D\u961F\u5217",type:"line",data:[20,15,40,55,65,85],smooth:!0,itemStyle:{color:"#EA7CCC"}},{name:"\u6700\u65B0\u6210\u4EA4\u4EF7",type:"line",data:[30,45,65,85,60,105],smooth:!0,itemStyle:{color:"#FAC958"}}]};a.setOption(n),e.myCharts.push(a)},y=()=>{window.addEventListener("resize",()=>{for(let a=0;a{J.done(),i(),await u(),await h(),await v(),await d(),await m(),await g(),await x(),await y()}),U(()=>{window.clearInterval(e.time.fun)}),T({},K(e))}}),f=t=>(et("data-v-9a8a98b4"),t=t(),ot(),t),ft={class:"visualizing-demo1"},ht=f(()=>o("div",{id:"visualizingDemo1",style:{height:"100%"}},null,-1)),mt={class:"visualizing-container"},gt={class:"visualizing-container-head"},vt={class:"visualizing-container-head-left"},yt={class:"visualizing-container-head-left-text"},Et={class:"visualizing-container-head-left-text-box"},Ct=it('
\u6DF1\u5733\u5E02xxx\u8F6F\u4EF6\u79D1\u6280\u6709\u9650\u516C\u53F8
\u65C5\u6E38\u7ECF\u6D4E
\u{1F324} \u591A\u4E91\u8F6C\u6674\u4E1C\u5357\u98CE 26~30\u2103
',2),Ft={class:"visualizing-container-content-left"},_t={class:"visualizing-container-content-left-flex"},bt=f(()=>o("div",{class:"visualizing-container-title"},[o("i",{class:"el-icon-s-shop"}),o("span",null,"\u4EA7\u4E1A\u6982\u51B5")],-1)),xt=f(()=>o("hr",{class:"visualizing-container-title-colorful"},null,-1)),At={ref:"visualizingContentLeftTop",style:{height:"100%"}},Bt={class:"visualizing-container-content-left-flex"},wt=f(()=>o("div",{class:"visualizing-container-title"},[o("i",{class:"el-icon-s-promotion"}),o("span",null,"A\u7EA7\u98CE\u666F\u533A\u5BF9\u6BD4")],-1)),St=f(()=>o("hr",{class:"visualizing-container-title-colorful"},null,-1)),Dt={ref:"visualizingContentLeftBottom",style:{height:"100%"}},zt={class:"visualizing-container-content-center"},Lt={class:"visualizing-container-content-center-bottom"},Tt={class:"visualizing-container-content-center-bottom-flex"},Ot=f(()=>o("div",{class:"visualizing-container-title"},[o("i",{class:"el-icon-s-custom"}),o("span",null,"\u6E38\u5BA2\u8FC7\u591C\u60C5\u51B5")],-1)),kt=f(()=>o("hr",{class:"visualizing-container-title-colorful"},null,-1)),Pt={ref:"visualizingContentCenterTop",style:{height:"100%"}},Zt={class:"visualizing-container-content-center-bottom-flex"},Mt=f(()=>o("div",{class:"visualizing-container-title"},[o("i",{class:"el-icon-s-flag"}),o("span",null,"\u6E38\u5BA2\u9A7B\u7559\u65F6\u957F")],-1)),Vt=f(()=>o("hr",{class:"visualizing-container-title-colorful"},null,-1)),Rt={ref:"visualizingContentCenterBottom",style:{height:"100%"}},Nt={class:"visualizing-container-content-right"},Wt={class:"visualizing-container-content-right-flex"},$t=f(()=>o("div",{class:"visualizing-container-title"},[o("i",{class:"el-icon-s-marketing"}),o("span",null,"\u5F53\u65E5\u6E38\u5BA2\u8D8B\u52BF\u5206\u6790")],-1)),Ht=f(()=>o("hr",{class:"visualizing-container-title-colorful"},null,-1)),Yt={ref:"visualizingContentRightTop",style:{height:"100%"}},jt={class:"visualizing-container-content-right-flex"},Qt=f(()=>o("div",{class:"visualizing-container-title"},[o("i",{class:"el-icon-s-data"}),o("span",null,"\u5F53\u6708\u6E38\u5BA2\u8D8B\u52BF\u5206\u6790")],-1)),Jt=f(()=>o("hr",{class:"visualizing-container-title-colorful"},null,-1)),It={ref:"visualizingContentRightBottom",style:{height:"100%"}};function Gt(t,e,i,s,u,h){return ut(),X("div",ft,[ht,o("div",mt,[o("div",gt,[o("div",vt,[o("div",yt,[o("div",Et,tt(t.time.txt),1)])]),Ct]),o("div",Ft,[o("div",_t,[bt,xt,o("div",At,null,512)]),o("div",Bt,[wt,St,o("div",Dt,null,512)])]),o("div",zt,[o("div",Lt,[o("div",Tt,[Ot,kt,o("div",Pt,null,512)]),o("div",Zt,[Mt,Vt,o("div",Rt,null,512)])])]),o("div",Nt,[o("div",Wt,[$t,Ht,o("div",Yt,null,512)]),o("div",jt,[Qt,Jt,o("div",It,null,512)])])])])}var te=Q(dt,[["render",Gt],["__scopeId","data-v-9a8a98b4"]]);export{te as default}; diff --git a/vboot-web/src/main/resources/static/assets/demo2.1654291592072.css b/vboot-web/src/main/resources/static/assets/demo2.1654291592072.css deleted file mode 100644 index 0568c0c..0000000 --- a/vboot-web/src/main/resources/static/assets/demo2.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.visualizing-demo2[data-v-43ab277e]{height:100%;width:100%;overflow:hidden;background:url(https://img-blog.csdnimg.cn/6267533849444025811bf0840f9366e3.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAbHl0LXRvcA==,size_20,color_FFFFFF,t_70,g_se,x_16);background-size:100% 100%;display:flex;flex-direction:column;font-size:13px}.visualizing-demo2 .big-data-up[data-v-43ab277e]{height:70px;width:100%;display:flex;align-items:center;padding:0 15px;color:#43bdf0;overflow:hidden}.visualizing-demo2 .big-data-up .up-left[data-v-43ab277e]{width:30%;font-style:italic}.visualizing-demo2 .big-data-up .up-center[data-v-43ab277e]{width:40%;display:flex;justify-content:center;font-size:20px;letter-spacing:5px;background-image:-webkit-linear-gradient(left,#43bdf0,#c0d1f2 25%,#43bdf0 50%,#c0d1f2 75%,#43bdf0);-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text;background-size:200% 100%;animation:masked-animation-43ab277e 4s infinite linear;-webkit-box-reflect:below -2px -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,0)),to(rgba(255,255,255,.1)));position:relative}@keyframes masked-animation-43ab277e{0%{background-position:0 0}to{background-position:-100% 0}}.visualizing-demo2 .big-data-up .up-center[data-v-43ab277e]:after{content:"";width:50%;position:absolute;bottom:-15px;left:50%;transform:translate(-50%);border:1px transparent solid;border-image:linear-gradient(to right,rgba(0,0,0,.1),#43bdf0) 1 10}.visualizing-demo2 .big-data-up .up-center span[data-v-43ab277e]{cursor:pointer}.visualizing-demo2 .big-data-up .up-right[data-v-43ab277e]{width:30%;justify-content:flex-end;display:flex;align-items:center}.visualizing-demo2 .big-data-up .up-right .ml15[data-v-43ab277e]:hover{cursor:pointer}.visualizing-demo2 .big-data-up .up-right[data-v-43ab277e] .el-dropdown{font-size:13px!important;color:#43bdf0;cursor:pointer}.visualizing-demo2 .big-data-down[data-v-43ab277e]{flex:1;overflow:hidden;display:flex}.visualizing-demo2 .big-data-down .big-data-down-left[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right[data-v-43ab277e]{width:30%;display:flex;flex-direction:column}.visualizing-demo2 .big-data-down .big-data-down-left .flex-warp-item[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item[data-v-43ab277e]{padding:0 7.5px 15px 15px;width:100%;height:33.33%}.visualizing-demo2 .big-data-down .big-data-down-left .flex-warp-item .flex-warp-item-box[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-warp-item-box[data-v-43ab277e]{width:100%;height:100%;background:rgba(22,34,58,.4);display:flex;flex-direction:column;padding:15px}.visualizing-demo2 .big-data-down .big-data-down-left .flex-warp-item .flex-warp-item-box .flex-title[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-warp-item-box .flex-title[data-v-43ab277e]{margin-bottom:15px;color:#c0d1f2;display:flex;justify-content:space-between}.visualizing-demo2 .big-data-down .big-data-down-left .flex-warp-item .flex-warp-item-box .flex-title .flex-title-small[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-warp-item-box .flex-title .flex-title-small[data-v-43ab277e]{font-size:12px}.visualizing-demo2 .big-data-down .big-data-down-left .flex-warp-item .flex-warp-item-box .flex-content[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-warp-item-box .flex-content[data-v-43ab277e]{flex:1;font-size:12px}.visualizing-demo2 .big-data-down .big-data-down-left .flex-warp-item .flex-warp-item-box .flex-content-overflow[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-warp-item-box .flex-content-overflow[data-v-43ab277e]{overflow:hidden}.visualizing-demo2 .big-data-down .big-data-down-left[data-v-43ab277e]{color:#c0d1f2}.visualizing-demo2 .big-data-down .big-data-down-left .sky[data-v-43ab277e]{display:flex;align-items:center}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-left[data-v-43ab277e]{font-size:30px}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-center[data-v-43ab277e]{flex:1;overflow:hidden;padding:0 10px}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-center .font[data-v-43ab277e]{margin-right:15px;background:unset!important;border-radius:unset!important;padding:unset!important}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-center span[data-v-43ab277e]{background:#22bc76;border-radius:2px;padding:0 5px}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-center .sky-tip[data-v-43ab277e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-right span[data-v-43ab277e]{font-size:30px}.visualizing-demo2 .big-data-down .big-data-down-left .sky .sky-right font[data-v-43ab277e]{font-size:20px}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl[data-v-43ab277e]{display:flex;align-items:center;height:28px;overflow:hidden}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl div[data-v-43ab277e]{flex:1;overflow:hidden}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl div i[data-v-43ab277e]{font-size:14px}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl .tip[data-v-43ab277e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl[data-v-43ab277e]:hover{background:rgba(0,0,0,.05);cursor:default;border-radius:4px}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl[data-v-43ab277e]:first-child:hover{background:unset}.visualizing-demo2 .big-data-down .big-data-down-left .sky-dd .sky-dl-first[data-v-43ab277e]{color:#43bdf0}.visualizing-demo2 .big-data-down .big-data-down-left .d-states[data-v-43ab277e]{display:flex}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item[data-v-43ab277e]{flex:1;display:flex;align-items:center;overflow:hidden}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item i[data-v-43ab277e]{font-size:20px;height:33px;width:33px;line-height:33px;text-align:center;border-radius:100%;flex-shrink:1;display:flex;align-items:center;justify-content:center}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item .i-bg1[data-v-43ab277e]{background:#22bc76}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item .i-bg2[data-v-43ab277e]{background:#e2356d}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item .i-bg3[data-v-43ab277e]{background:#43bbef}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item .d-states-flex[data-v-43ab277e]{overflow:hidden;padding:0 10px}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item .d-states-flex .d-states-item-label[data-v-43ab277e]{color:#43bdf0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.visualizing-demo2 .big-data-down .big-data-down-left .d-states .d-states-item .d-states-flex .d-states-item-value[data-v-43ab277e]{font-size:20px;text-align:center}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn[data-v-43ab277e]{margin-top:15px}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn .d-btn-item[data-v-43ab277e]{border:1px solid #c0d1f2;display:flex;width:100%;height:35px;border-radius:35px;align-items:center;padding:0 4px;margin-top:15px;cursor:pointer;transition:all ease .3s}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn .d-btn-item .d-btn-item-left[data-v-43ab277e]{font-size:20px;border:1px solid #c0d1f2;width:25px;height:25px;line-height:25px;border-radius:100%;text-align:center;font-size:14px}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn .d-btn-item .d-btn-item-center[data-v-43ab277e]{padding:0 10px;flex:1}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn .d-btn-item .d-btn-item-eight[data-v-43ab277e]{text-align:right;padding-right:10px}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn .d-btn-active[data-v-43ab277e]{transition:all ease .3s;border:1px solid #43bdf0;color:#43bdf0}.visualizing-demo2 .big-data-down .big-data-down-left .d-btn .d-btn-active .d-btn-item-left[data-v-43ab277e]{border:1px solid #43bdf0}.visualizing-demo2 .big-data-down .big-data-down-center[data-v-43ab277e]{width:40%;display:flex;flex-direction:column}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one[data-v-43ab277e]{height:66.67%;padding:0 7.5px 15px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content[data-v-43ab277e]{height:100%;position:relative}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-top[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-right[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-bottom[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-left[data-v-43ab277e]{position:absolute;width:100px;height:100px;display:flex;cursor:pointer}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-top .circle[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-right .circle[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-bottom .circle[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-left .circle[data-v-43ab277e]{position:absolute;border-radius:50%;background:rgba(0,0,0,.01);z-index:10}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-top .text-box[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-right .text-box[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-bottom .text-box[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-left .text-box[data-v-43ab277e]{position:relative;z-index:11;color:#c0d1f2;margin:auto;text-align:center;font-size:12px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-top .text-box i[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-right .text-box i[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-bottom .text-box i[data-v-43ab277e],.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-left .text-box i[data-v-43ab277e]{font-size:28px;margin-bottom:10px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-top[data-v-43ab277e]{left:20px;top:20px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-right[data-v-43ab277e]{right:20px;top:20px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-bottom[data-v-43ab277e]{right:20px;bottom:20px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .fixed-left[data-v-43ab277e]{left:20px;bottom:20px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .circle[data-v-43ab277e]:nth-of-type(1){width:100px;height:95px;animation:turnAround-43ab277e 6s infinite linear;box-shadow:0 0 1px #869fe4,inset 0 0 10px #869fe4}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .circle[data-v-43ab277e]:nth-of-type(2){width:95px;height:100px;animation:turnAround-43ab277e 10s infinite linear;box-shadow:0 0 1px #3397f2,inset 0 0 10px #3397f2}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .circle[data-v-43ab277e]:nth-of-type(3){width:110px;height:100px;animation:turnAround-43ab277e 5s infinite linear;box-shadow:0 0 1px #3eaadc,inset 0 0 10px #3eaadc}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-one .big-data-down-center-one-content .circle[data-v-43ab277e]:nth-of-type(4){width:100px;height:110px;animation:turnAround-43ab277e 15s infinite linear;box-shadow:0 0 1px #09f,inset 0 0 10px #09f}@keyframes turnAround-43ab277e{to{transform:rotate(360deg)}}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two[data-v-43ab277e]{padding:0 7.5px 15px;height:33.33%}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box[data-v-43ab277e]{width:100%;height:100%;background:rgba(22,34,58,.4);display:flex;flex-direction:column;padding:15px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-title[data-v-43ab277e]{margin-bottom:15px;color:#c0d1f2;display:flex;justify-content:space-between}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-title .flex-title-small[data-v-43ab277e]{font-size:12px}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content[data-v-43ab277e]{flex:1;font-size:12px;display:flex;height:calc(100% - 30px)}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left[data-v-43ab277e]{display:flex;flex-wrap:wrap;width:120px;height:100%}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item[data-v-43ab277e]{width:50%;display:flex;align-items:center}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-wave[data-v-43ab277e]{cursor:pointer;width:40px;height:40px;position:relative;background-color:#43bdf0;border-radius:50%;overflow:hidden;text-align:center}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-wave[data-v-43ab277e]:before,.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-wave[data-v-43ab277e]:after{content:"";position:absolute;left:50%;width:40px;height:40px;background:#f4f4f4;animation:roateOne-43ab277e 10s linear infinite;transform:translate(-50%);z-index:1}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-wave[data-v-43ab277e]:before{bottom:10px;border-radius:60%}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-wave[data-v-43ab277e]:after{bottom:8px;opacity:.7;border-radius:37%}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-wave .monitor-z-index[data-v-43ab277e]{position:relative;z-index:2;color:#4eb8ff;display:flex;align-items:center;height:100%;justify-content:center;font-weight:700}@keyframes roateOne-43ab277e{0%{transform:translate(-50%) rotate(0)}50%{transform:translate(-50%,-2%) rotate(180deg)}to{transform:translate(-50%) rotate(360deg)}}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-active[data-v-43ab277e]{background-color:#22bc76}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-left .monitor-item .monitor-active .monitor-z-index[data-v-43ab277e]{color:#22bc76}.visualizing-demo2 .big-data-down .big-data-down-center .big-data-down-center-two .flex-warp-item-box .flex-content .flex-content-right[data-v-43ab277e]{flex:1}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item[data-v-43ab277e]{padding:0 15px 15px 7.5px}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content[data-v-43ab277e]{display:flex;flex-direction:column}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task[data-v-43ab277e]{display:flex;height:45px}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item[data-v-43ab277e]{flex:1;color:#c0d1f2;display:flex;justify-content:center}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task-item-box[data-v-43ab277e]{position:relative;width:45px;height:45px;overflow:hidden;border-radius:100%;z-index:0;display:flex;align-items:center;flex-direction:column;justify-content:center;box-shadow:0 10px 12px #0000004d}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task-item-box[data-v-43ab277e]:before{content:"";position:absolute;z-index:-2;left:-50%;top:-50%;width:200%;height:200%;background-repeat:no-repeat;background-size:50% 50%,50% 50%;background-position:0 0,100% 0,100% 100%,0 100%;background-image:linear-gradient(#19d4ae,#19d4ae),linear-gradient(#5ab1ef,#5ab1ef),linear-gradient(#fa6e86,#fa6e86),linear-gradient(#ffb980,#ffb980);animation:rotate 2s linear infinite}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task-item-box[data-v-43ab277e]:after{content:"";position:absolute;z-index:-1;left:1px;top:1px;width:calc(100% - 2px);height:calc(100% - 2px);border-radius:100%}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task-item-box .task-item-value[data-v-43ab277e]{text-align:center;font-size:14px;font-weight:700}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task-item-box .task-item-label[data-v-43ab277e]{text-align:center}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task1[data-v-43ab277e]:after{background:#5492be}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task2[data-v-43ab277e]:after{background:#43a177}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task3[data-v-43ab277e]:after{background:#a76077}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task4[data-v-43ab277e]:after{background:#b4825a}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-item .task5[data-v-43ab277e]:after{background:#74568f}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-first-item[data-v-43ab277e]{flex-direction:column;text-align:center}.visualizing-demo2 .big-data-down .big-data-down-right .flex-warp-item .flex-content .task .task-first-item .task-first[data-v-43ab277e]{font-size:20px}.visualizing-demo2 .big-data-down .big-data-down-right .progress[data-v-43ab277e]{flex:1} diff --git a/vboot-web/src/main/resources/static/assets/demo2.1654291592072.js b/vboot-web/src/main/resources/static/assets/demo2.1654291592072.js deleted file mode 100644 index 0cc6adc..0000000 --- a/vboot-web/src/main/resources/static/assets/demo2.1654291592072.js +++ /dev/null @@ -1,4282 +0,0 @@ -var ql=Object.defineProperty;var Ja=Object.getOwnPropertySymbols;var $l=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable;var eo=(e,t,r)=>t in e?ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,to=(e,t)=>{for(var r in t||(t={}))$l.call(t,r)&&eo(e,r,t[r]);if(Ja)for(var r of Ja(t))Kl.call(t,r)&&eo(e,r,t[r]);return e};import{u as $e,g as Ql,h as Jl,j as eu,k as Ot,m as ro,A as tu,l as ru,p as Ss,R as bs,n as iu,o as ca,q as Bt,s as nu,t as au,v as ou,w as su,Z as lu,C as qr,x as ce,y as rr,z as uu,D as As,M as En,E as un,F as hn,G as Pi,H as Cs,I as Ls,J as Ds,K as Sn,N as bn,O as Da,P as hu,Q as fu,a as cu,S as du,T as da,U as Ri,V as Ft,W as Ma,B as vu,X as pu,Y as io,_ as mu,$ as _u,a0 as Pa,a1 as gu,a2 as Fr,a3 as no,a4 as yu,a5 as xu,a6 as Tu,a7 as Ms,a8 as Dt,a9 as Mt,aa as wu,ab as Eu,ac as Fi,ad as Su,c as bu,ae as Au,af as Ps,ag as Cu,ah as Lu,ai as ao,aj as oo,ak as so,i as br,L as Fn}from"./echarts.1654291592072.js";import{_ as Du,N as Mu,M as lo}from"./index.1654291592072.js";import{a as Pu,a3 as Ru,m as Nu,I as Iu,ag as Ou,b as pt,e as O,Z as ut,Y as et,S as Ui,F as Ar,a7 as Cr,az as Bu,aA as Fu,f as Rs,a2 as Gi,o as ht,R as Uu,X as uo,M as zi,l as Gu}from"./vue.1654291592072.js";$e([Ql,Jl]);$e(eu);function ho(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?fo(this,e.call(this,l)):zu(this,e,n),this.constructor===o)for(var u=o.__initializers__,h=0;h=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}var qu={get:Yu},Un,st={};st.supportWebGL=function(){if(Un==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch{Un=!1}return Un};st.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;st.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;st.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;st.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;st.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;st.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;st.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var dr={};typeof window!="undefined"?dr=window:typeof global!="undefined"&&(dr=global);st.requestAnimationFrame=dr.requestAnimationFrame||dr.msRequestAnimationFrame||dr.mozRequestAnimationFrame||dr.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};st.createCanvas=function(){return document.createElement("canvas")};st.createImage=function(){return new dr.Image};st.request={get:qu.get};st.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};st.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var Re=st,Xe=function(){this.head=null,this.tail=null,this._length=0};Xe.prototype.insert=function(e){var t=new Xe.Entry(e);return this.insertEntry(t),t};Xe.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new Xe.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};Xe.prototype.insertBeforeEntry=function(e,t){var r=new Xe.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};Xe.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};Xe.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};Xe.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};Xe.prototype.getHead=function(){if(this.head)return this.head.value};Xe.prototype.getTail=function(){if(this.tail)return this.tail.value};Xe.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};Xe.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};Xe.prototype.length=function(){return this._length};Xe.prototype.isEmpty=function(){return this._length===0};Xe.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};Xe.prototype.clear=function(){this.tail=this.head=null,this._length=0};Xe.Entry=function(e){this.value=e,this.next=null,this.prev=null};var $u=Xe,$r=function(e){this._list=new $u,this._map={},this._maxSize=e||10};$r.prototype.setMaxSize=function(e){this._maxSize=e};$r.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};$r.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};$r.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};$r.prototype.clear=function(){this._list.clear(),this._map={}};var Ns=$r,Ee={},po={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]};function Ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ku(e){return e=Math.round(e),e<0?0:e>360?360:e}function xi(e){return e<0?0:e>1?1:e}function Gn(e){return e.length&&e.charAt(e.length-1)==="%"?Ct(parseFloat(e)/100*255):Ct(parseInt(e,10))}function Hr(e){return e.length&&e.charAt(e.length-1)==="%"?xi(parseFloat(e)/100):xi(parseFloat(e))}function zn(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Qt(e,t,r){return e+(t-e)*r}function At(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function va(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Is=new Ns(20),Hi=null;function Lr(e,t){Hi&&va(Hi,t),Hi=Is.put(e,Hi||t.slice())}Ee.parse=function(e,t){if(!!e){t=t||[];var r=Is.get(e);if(r)return va(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in po)return va(t,po[i]),Lr(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){At(t,0,0,0,1);return}return At(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),Lr(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){At(t,0,0,0,1);return}return At(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),Lr(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4){At(t,0,0,0,1);return}u=Hr(l.pop());case"rgb":if(l.length!==3){At(t,0,0,0,1);return}return At(t,Gn(l[0]),Gn(l[1]),Gn(l[2]),u),Lr(e,t),t;case"hsla":if(l.length!==4){At(t,0,0,0,1);return}return l[3]=Hr(l[3]),pa(l,t),Lr(e,t),t;case"hsl":if(l.length!==3){At(t,0,0,0,1);return}return pa(l,t),Lr(e,t),t;default:return}}At(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function pa(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Hr(e[1]),n=Hr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],At(t,Ct(zn(o,a,r+1/3)*255),Ct(zn(o,a,r)*255),Ct(zn(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qu(e){if(!!e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var h=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-f:r===a?l=1/3+h-c:i===a&&(l=2/3+f-h),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}Ee.lift=function(e,t){var r=Ee.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=Ct(Qt(o[0],s[0],l)),r[1]=Ct(Qt(o[1],s[1],l)),r[2]=Ct(Qt(o[2],s[2],l)),r[3]=xi(Qt(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,u=Ee.stringify([Ct(Qt(o[0],s[0],l)),Ct(Qt(o[1],s[1],l)),Ct(Qt(o[2],s[2],l)),xi(Qt(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Qu(e),t!=null&&(e[0]=Ku(t)),r!=null&&(e[1]=Hr(r)),i!=null&&(e[2]=Hr(i)),Ee.stringify(pa(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=xi(t),Ee.stringify(e,"rgba")};Ee.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var Ju=Ee,eh=Ju.parseToFloat,Hn={};function mo(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if(typeof e=="object")for(var r in e){var i=e[r];this.setUniform(r,i)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(u){var h=this.uniforms[u].type;return h==="t"||h==="tv"},this);var n=this.vertexDefines,a=this.fragmentDefines;if(this.vertexDefines=Ye.clone(e.vertexDefines),this.fragmentDefines=Ye.clone(e.fragmentDefines),t){for(var o in r)i[o]&&(i[o].value=r[o].value);Ye.defaults(this.vertexDefines,n),Ye.defaults(this.fragmentDefines,a)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:t&&this._textureStatus[l]?this._textureStatus[l].enabled:!1};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=Ye.clone(this.vertexDefines),e.fragmentDefines=Ye.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var i=this.vertexDefines,n=this.fragmentDefines;e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<3&&(r=t,t=e,e="both"),r=r!=null?r:null,(e==="vertex"||e==="both")&&i[t]!==r&&(i[t]=r,this._programKey=""),(e==="fragment"||e==="both")&&n[t]!==r&&(n[t]=r,e!=="both"&&(this._programKey=""))},undefine:function(e,t){e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<2&&(t=e,e="both"),(e==="vertex"||e==="both")&&this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),(e==="fragment"||e==="both")&&this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],e!=="both"&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return this.vertexDefines[t]!==void 0;case"fragment":return this.fragmentDefines[t]!==void 0}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e)){for(var t=0;t0&&(n=1/Math.sqrt(n),e[0]=t[0]*n,e[1]=t[1]*n),e};K.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]};K.cross=function(e,t,r){var i=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=i,e};K.lerp=function(e,t,r,i){var n=t[0],a=t[1];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e};K.random=function(e,t){t=t||1;var r=GLMAT_RANDOM()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e};K.transformMat2=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n,e[1]=r[1]*i+r[3]*n,e};K.transformMat2d=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e};K.transformMat3=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[3]*n+r[6],e[1]=r[1]*i+r[4]*n+r[7],e};K.transformMat4=function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[4]*n+r[12],e[1]=r[1]*i+r[5]*n+r[13],e};K.forEach=function(){var e=K.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s0&&i.push("#define "+n.toUpperCase()+"_COUNT "+a)}if(r)for(var o=0;ol.getMaxJointNumber()&&(c.USE_SKIN_MATRICES_TEXTURE=null),f+=` -`+kn(c)+` -`}a&&(f+=` -#define INSTANCING -`);var d=f+kn(t.vertexDefines,s,h),v=f+kn(t.fragmentDefines,s,h),p=d+` -`+t.shader.vertex,m=["OES_standard_derivatives","EXT_shader_texture_lod"].filter(function(E){return l.getGLExtension(E)!=null});m.indexOf("EXT_shader_texture_lod")>=0&&(v+=` -#define SUPPORT_TEXTURE_LOD`),m.indexOf("OES_standard_derivatives")>=0&&(v+=` -#define SUPPORT_STANDARD_DERIVATIVES`);var _=sh(m)+` -`+lh(t.precision)+` -`+v+` -`+t.shader.fragment,x=Eo(p,t.vertexDefines,s),y=Eo(_,t.fragmentDefines,s),g=new ah;g.uniformSemantics=t.shader.uniformSemantics,g.attributes=t.shader.attributes;var w=g.buildProgram(u,t.shader,x,y);return g.__error=w,i[o]=g,g};var So=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,uh=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,bo=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,hh={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function Ut(e){for(var t=[],r=0;r=0){if(c!==s&&c!==h){Dr();break}c=l,v=[];continue}else if(c===s){e==="bool"?d[p].value=_==="true":d[p].value=parseFloat(_),v=null;continue}else if(c===h){var x=_;ma.indexOf(x)>=0||Bs.indexOf(x)>=0||Fs.indexOf(x)>=0?d[p].semantic=x:x==="ignore"||x==="unconfigurable"?d[p].ignore=!0:e==="bool"?d[p].value=x==="true":d[p].value=parseFloat(x);continue}m(_),c=o}}return d}function N(e,t){typeof e=="object"&&(t=e.fragment,e=e.vertex),e=Co(e),t=Co(t),this._shaderID=ch(e,t),this._vertexCode=N.parseImport(e),this._fragmentCode=N.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}N.prototype={constructor:N,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=N.parseImport(this.vertex),this._fragmentCode=N.parseImport(this.fragment)},_addSemanticUniform:function(e,t,r){if(ma.indexOf(r)>=0)this.attributeSemantics[r]={symbol:e,type:t};else if(Fs.indexOf(r)>=0){var i=!1,n=r;r.match(/TRANSPOSE$/)&&(i=!0,n=r.slice(0,-9)),this.matrixSemantics[r]={symbol:e,type:t,isTranspose:i,semanticNoTranspose:n}}else Bs.indexOf(r)>=0&&(this.uniformSemantics[r]={symbol:e,type:t})},_addMaterialUniform:function(e,t,r,i,n,a){a[e]={type:r,value:n?Ao.array:i||Ao[t],semantic:null}},_parseUniforms:function(){var e={},t=this,r="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(So,n),r="fragment",this._fragmentCode=this._fragmentCode.replace(So,n),t.matrixSemanticKeys=Object.keys(this.matrixSemantics);function i(a){return a!=null?function(){return a}:null}function n(a,o,s){var l=Lo(o,s),u=[];for(var h in l){var f=l[h],c=f.semantic,d=h,v=hh[o],p=i(l[h].value);l[h].isArray&&(d+="["+l[h].arraySize+"]",v+="v"),u.push(d),t._uniformList.push(h),f.ignore||((o==="sampler2D"||o==="samplerCube")&&(t.textures[h]={shaderType:r,type:o}),c?t._addSemanticUniform(h,v,c):t._addMaterialUniform(h,o,v,p,l[h].isArray,e))}return u.length>0?"uniform "+o+" "+u.join(",")+`; -`:""}this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(uh,r);function r(i,n,a){var o=Lo(n,a),s=fh[n]||1,l=[];for(var u in o){var h=o[u].semantic;if(e[u]={type:"float",size:s,semantic:h||null},h){if(ma.indexOf(h)<0)throw new Error('Unkown semantic "'+h+'"');t.attributeSemantics[h]={symbol:u,type:n}}l.push(u)}return"attribute "+n+" "+l.join(",")+`; -`}this.attributes=e},_parseDefines:function(){var e=this,t="vertex";this._vertexCode=this._vertexCode.replace(bo,r),t="fragment",this._fragmentCode=this._fragmentCode.replace(bo,r);function r(i,n,a){var o=t==="vertex"?e.vertexDefines:e.fragmentDefines;return o[n]||(a==="false"?o[n]=!1:a==="true"?o[n]=!0:o[n]=a?isNaN(parseFloat(a))?a.trim():parseFloat(a):null),""}},clone:function(){var e=Us[this._shaderID],t=new N(e.vertex,e.fragment);return t}};Object.defineProperty&&(Object.defineProperty(N.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(N.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(N.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(N.prototype,"uniforms",{get:function(){return this._uniformList}}));var dh=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;N.parseImport=function(e){return e=e.replace(dh,function(n,r,i){var n=N.source(i);return n?N.parseImport(n):(console.error('Shader chunk "'+i+'" not existed in library'),"")}),e};var vh=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;N.import=function(e){e.replace(vh,function(t,r,i,a){var a=a.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(a){for(var o=i.split("."),s=N.codes,l=0,u;l 0.0) { - if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) { - discard; - } - } - gl_FragColor = vec4(0.0,0.0,0.0,1.0); -} -@end`,me={};me.create=function(){var e=new Ke(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};me.clone=function(e){var t=new Ke(16);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[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t};me.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};me.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};me.transpose=function(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=a,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e};me.invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],h=t[8],f=t[9],c=t[10],d=t[11],v=t[12],p=t[13],m=t[14],_=t[15],x=r*s-i*o,y=r*l-n*o,g=r*u-a*o,w=i*l-n*s,E=i*u-a*s,A=n*u-a*l,S=h*p-f*v,C=h*m-c*v,P=h*_-d*v,L=f*m-c*p,R=f*_-d*p,I=c*_-d*m,M=x*I-y*R+g*L+w*P-E*C+A*S;return M?(M=1/M,e[0]=(s*I-l*R+u*L)*M,e[1]=(n*R-i*I-a*L)*M,e[2]=(p*A-m*E+_*w)*M,e[3]=(c*E-f*A-d*w)*M,e[4]=(l*P-o*I-u*C)*M,e[5]=(r*I-n*P+a*C)*M,e[6]=(m*g-v*A-_*y)*M,e[7]=(h*A-c*g+d*y)*M,e[8]=(o*R-s*P+u*S)*M,e[9]=(i*P-r*R-a*S)*M,e[10]=(v*E-p*g+_*x)*M,e[11]=(f*g-h*E-d*x)*M,e[12]=(s*C-o*L-l*S)*M,e[13]=(r*L-i*C+n*S)*M,e[14]=(p*y-v*w-m*x)*M,e[15]=(h*w-f*y+c*x)*M,e):null};me.adjoint=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],h=t[8],f=t[9],c=t[10],d=t[11],v=t[12],p=t[13],m=t[14],_=t[15];return e[0]=s*(c*_-d*m)-f*(l*_-u*m)+p*(l*d-u*c),e[1]=-(i*(c*_-d*m)-f*(n*_-a*m)+p*(n*d-a*c)),e[2]=i*(l*_-u*m)-s*(n*_-a*m)+p*(n*u-a*l),e[3]=-(i*(l*d-u*c)-s*(n*d-a*c)+f*(n*u-a*l)),e[4]=-(o*(c*_-d*m)-h*(l*_-u*m)+v*(l*d-u*c)),e[5]=r*(c*_-d*m)-h*(n*_-a*m)+v*(n*d-a*c),e[6]=-(r*(l*_-u*m)-o*(n*_-a*m)+v*(n*u-a*l)),e[7]=r*(l*d-u*c)-o*(n*d-a*c)+h*(n*u-a*l),e[8]=o*(f*_-d*p)-h*(s*_-u*p)+v*(s*d-u*f),e[9]=-(r*(f*_-d*p)-h*(i*_-a*p)+v*(i*d-a*f)),e[10]=r*(s*_-u*p)-o*(i*_-a*p)+v*(i*u-a*s),e[11]=-(r*(s*d-u*f)-o*(i*d-a*f)+h*(i*u-a*s)),e[12]=-(o*(f*m-c*p)-h*(s*m-l*p)+v*(s*c-l*f)),e[13]=r*(f*m-c*p)-h*(i*m-n*p)+v*(i*c-n*f),e[14]=-(r*(s*m-l*p)-o*(i*m-n*p)+v*(i*l-n*s)),e[15]=r*(s*c-l*f)-o*(i*c-n*f)+h*(i*l-n*s),e};me.determinant=function(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],h=e[9],f=e[10],c=e[11],d=e[12],v=e[13],p=e[14],m=e[15],_=t*o-r*a,x=t*s-i*a,y=t*l-n*a,g=r*s-i*o,w=r*l-n*o,E=i*l-n*s,A=u*v-h*d,S=u*p-f*d,C=u*m-c*d,P=h*p-f*v,L=h*m-c*v,R=f*m-c*p;return _*R-x*L+y*P+g*C-w*S+E*A};me.multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],h=t[7],f=t[8],c=t[9],d=t[10],v=t[11],p=t[12],m=t[13],_=t[14],x=t[15],y=r[0],g=r[1],w=r[2],E=r[3];return e[0]=y*i+g*s+w*f+E*p,e[1]=y*n+g*l+w*c+E*m,e[2]=y*a+g*u+w*d+E*_,e[3]=y*o+g*h+w*v+E*x,y=r[4],g=r[5],w=r[6],E=r[7],e[4]=y*i+g*s+w*f+E*p,e[5]=y*n+g*l+w*c+E*m,e[6]=y*a+g*u+w*d+E*_,e[7]=y*o+g*h+w*v+E*x,y=r[8],g=r[9],w=r[10],E=r[11],e[8]=y*i+g*s+w*f+E*p,e[9]=y*n+g*l+w*c+E*m,e[10]=y*a+g*u+w*d+E*_,e[11]=y*o+g*h+w*v+E*x,y=r[12],g=r[13],w=r[14],E=r[15],e[12]=y*i+g*s+w*f+E*p,e[13]=y*n+g*l+w*c+E*m,e[14]=y*a+g*u+w*d+E*_,e[15]=y*o+g*h+w*v+E*x,e};me.multiplyAffine=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[4],s=t[5],l=t[6],u=t[8],h=t[9],f=t[10],c=t[12],d=t[13],v=t[14],p=r[0],m=r[1],_=r[2];return e[0]=p*i+m*o+_*u,e[1]=p*n+m*s+_*h,e[2]=p*a+m*l+_*f,p=r[4],m=r[5],_=r[6],e[4]=p*i+m*o+_*u,e[5]=p*n+m*s+_*h,e[6]=p*a+m*l+_*f,p=r[8],m=r[9],_=r[10],e[8]=p*i+m*o+_*u,e[9]=p*n+m*s+_*h,e[10]=p*a+m*l+_*f,p=r[12],m=r[13],_=r[14],e[12]=p*i+m*o+_*u+c,e[13]=p*n+m*s+_*h+d,e[14]=p*a+m*l+_*f+v,e};me.mul=me.multiply;me.mulAffine=me.multiplyAffine;me.translate=function(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,h,f,c,d,v,p,m,_;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],h=t[4],f=t[5],c=t[6],d=t[7],v=t[8],p=t[9],m=t[10],_=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=h,e[5]=f,e[6]=c,e[7]=d,e[8]=v,e[9]=p,e[10]=m,e[11]=_,e[12]=o*i+h*n+v*a+t[12],e[13]=s*i+f*n+p*a+t[13],e[14]=l*i+c*n+m*a+t[14],e[15]=u*i+d*n+_*a+t[15]),e};me.scale=function(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};me.rotate=function(e,t,r,i){var n=i[0],a=i[1],o=i[2],s=Math.sqrt(n*n+a*a+o*o),l,u,h,f,c,d,v,p,m,_,x,y,g,w,E,A,S,C,P,L,R,I,M,B;return Math.abs(s)0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e};Y.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]};Y.cross=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e};Y.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e};Y.random=function(e,t){t=t||1;var r=Ur()*2*Math.PI,i=Ur()*2-1,n=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(r)*n,e[1]=Math.sin(r)*n,e[2]=i*t,e};Y.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o=o||1,e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e};Y.transformMat3=function(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e};Y.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],u=r[3],h=u*i+s*a-l*n,f=u*n+l*i-o*a,c=u*a+o*n-s*i,d=-o*i-s*n-l*a;return e[0]=h*u+d*-o+f*-l-c*-s,e[1]=f*u+d*-s+c*-o-h*-l,e[2]=c*u+d*-l+h*-s-f*-o,e};Y.rotateX=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};Y.rotateY=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};Y.rotateZ=function(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e};Y.forEach=function(){var e=Y.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s1?0:Math.acos(n)};var b=Y;N.import(Gs);var we=F.create,Do={};function Mo(e){return e.material}function ph(e,t,r){return t.uniforms[r].value}function mh(e,t,r,i){return r!==i}function _h(e){return!0}function Po(){}var Ro={float:D.FLOAT,byte:D.BYTE,ubyte:D.UNSIGNED_BYTE,short:D.SHORT,ushort:D.UNSIGNED_SHORT};function gh(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}function yh(e){var t,r;this.bind=function(i){t||(t=Re.createCanvas(),t.width=t.height=1,t.getContext("2d"));var n=i.gl,a=!r;a&&(r=n.createTexture()),n.bindTexture(n.TEXTURE_2D,r),a&&n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t)},this.unbind=function(i){i.gl.bindTexture(i.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var er=ot.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=Re.createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new ju(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(r){throw"Error creating WebGL Context "+r}this._programMgr=new Os(this),this._placeholderTexture=new yh(this)},{resize:function(e,t){var r=this.canvas,i=this.devicePixelRatio;e!=null?(r.style&&(r.style.width=e+"px",r.style.height=t+"px"),r.width=e*i,r.height=t*i,this._width=e,this._height=t):(this._width=r.width/i,this._height=r.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,i,n){if(typeof e=="object"){var a=e;e=a.x,t=a.y,r=a.width,i=a.height,n=a.devicePixelRatio}n=n||this.devicePixelRatio,this.gl.viewport(e*n,t*n,r*n,i*n),this.viewport={x:e,y:t,width:r,height:i,devicePixelRatio:n}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,i){var n=this.gl,a=this.clearColor;if(this.clearBit){n.colorMask(!0,!0,!0,!0),n.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,n.enable(n.SCISSOR_TEST),n.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),n.clearColor(a[0],a[1],a[2],a[3]),n.clear(this.clearBit),s&&n.disable(n.SCISSOR_TEST)}if(r||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),!t){console.error("Can't find camera in the scene.");return}t.update();var u=e.updateRenderList(t,!0);this._sceneRendering=e;var h=u.opaque,f=u.transparent,c=e.material;e.trigger("beforerender",this,e,t,u),i?(this.renderPreZ(h,e,t),n.depthFunc(n.LEQUAL)):n.depthFunc(n.LESS);for(var d=we(),v=b.create(),p=0;p0){var s=e[n-1],l=s.joints?s.joints.length:0,u=a.joints?a.joints.length:0;if(u===l&&a.material===s.material&&a.lightGroup===s.lightGroup){a.__program=s.__program;continue}}var h=this._programMgr.getProgram(a,o,t);this.validateProgram(h),a.__program=h}},renderPass:function(e,t,r){this.trigger("beforerenderpass",this,e,t,r),r=r||{},r.getMaterial=r.getMaterial||Mo,r.getUniform=r.getUniform||ph,r.isMaterialChanged=r.isMaterialChanged||mh,r.beforeRender=r.beforeRender||Po,r.afterRender=r.afterRender||Po;var i=r.ifRender||_h;this.updatePrograms(e,this._sceneRendering,r),r.sortCompare&&e.sort(r.sortCompare);var n=this.viewport,a=n.devicePixelRatio,o=[n.x*a,n.y*a,n.width*a,n.height*a],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],u=[o[2],o[3]],h=Date.now();t?(F.copy(Te.VIEW,t.viewMatrix.array),F.copy(Te.PROJECTION,t.projectionMatrix.array),F.copy(Te.VIEWINVERSE,t.worldTransform.array)):(F.identity(Te.VIEW),F.identity(Te.PROJECTION),F.identity(Te.VIEWINVERSE)),F.multiply(Te.VIEWPROJECTION,Te.PROJECTION,Te.VIEW),F.invert(Te.PROJECTIONINVERSE,Te.PROJECTION),F.invert(Te.VIEWPROJECTIONINVERSE,Te.VIEWPROJECTION);for(var f=this.gl,c=this._sceneRendering,d,v,p,m,_,x,y,g,w,E,A,S,C=null,P=0;Pthis.getMaxJointNumber()){var a=n.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,a,r),t.setUniform(i,"1i","skinMatricesTexture",r),t.setUniform(i,"1f","skinMatricesTextureSize",a.width)}else{var o=n.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(i,"SKIN_MATRIX",o)}},_renderObject:function(e,t,r){var i=this.gl,n=e.geometry,a=e.mode;a==null&&(a=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(s&&(o=this.getGLExtension("ANGLE_instanced_arrays"),!o)){console.warn("Device not support ANGLE_instanced_arrays extension");return}var l;if(s&&(l=this._bindInstancedAttributes(e,r,o)),t.indicesBuffer){var u=this.getGLExtension("OES_element_index_uint"),h=u&&n.indices instanceof Uint32Array,f=h?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(a,t.indicesBuffer.count,f,0,e.getInstanceCount()):i.drawElements(a,t.indicesBuffer.count,f,0)}else s?o.drawArraysInstancedANGLE(a,0,n.vertexCount,e.getInstanceCount()):i.drawArrays(a,0,n.vertexCount);if(s)for(var c=0;cr?r:e}var pe=Math.atan2,wt=Math.asin,Mr=Math.abs;j.eulerFromQuat=function(e,t,c){e._dirty=!0,t=t.array;var i=e.array,n=t[0],a=t[1],o=t[2],s=t[3],l=n*n,u=a*a,h=o*o,f=s*s,c=(c||"XYZ").toUpperCase();switch(c){case"XYZ":i[0]=pe(2*(n*s-a*o),f-l-u+h),i[1]=wt(Tt(2*(n*o+a*s),-1,1)),i[2]=pe(2*(o*s-n*a),f+l-u-h);break;case"YXZ":i[0]=wt(Tt(2*(n*s-a*o),-1,1)),i[1]=pe(2*(n*o+a*s),f-l-u+h),i[2]=pe(2*(n*a+o*s),f-l+u-h);break;case"ZXY":i[0]=wt(Tt(2*(n*s+a*o),-1,1)),i[1]=pe(2*(a*s-o*n),f-l-u+h),i[2]=pe(2*(o*s-n*a),f-l+u-h);break;case"ZYX":i[0]=pe(2*(n*s+o*a),f-l-u+h),i[1]=wt(Tt(2*(a*s-n*o),-1,1)),i[2]=pe(2*(n*a+o*s),f+l-u-h);break;case"YZX":i[0]=pe(2*(n*s-o*a),f-l+u-h),i[1]=pe(2*(a*s-n*o),f+l-u-h),i[2]=wt(Tt(2*(n*a+o*s),-1,1));break;case"XZY":i[0]=pe(2*(n*s+a*o),f-l+u-h),i[1]=pe(2*(n*o+a*s),f+l-u-h),i[2]=wt(Tt(2*(o*s-n*a),-1,1));break;default:console.warn("Unkown order: "+c)}return e};j.eulerFromMat3=function(e,t,v){var i=t.array,n=i[0],a=i[3],o=i[6],s=i[1],l=i[4],u=i[7],h=i[2],f=i[5],c=i[8],d=e.array,v=(v||"XYZ").toUpperCase();switch(v){case"XYZ":d[1]=wt(Tt(o,-1,1)),Mr(o)<.99999?(d[0]=pe(-u,c),d[2]=pe(-a,n)):(d[0]=pe(f,l),d[2]=0);break;case"YXZ":d[0]=wt(-Tt(u,-1,1)),Mr(u)<.99999?(d[1]=pe(o,c),d[2]=pe(s,l)):(d[1]=pe(-h,n),d[2]=0);break;case"ZXY":d[0]=wt(Tt(f,-1,1)),Mr(f)<.99999?(d[1]=pe(-h,c),d[2]=pe(-a,l)):(d[1]=0,d[2]=pe(s,n));break;case"ZYX":d[1]=wt(-Tt(h,-1,1)),Mr(h)<.99999?(d[0]=pe(f,c),d[2]=pe(s,n)):(d[0]=0,d[2]=pe(-a,l));break;case"YZX":d[2]=wt(Tt(s,-1,1)),Mr(s)<.99999?(d[0]=pe(-u,l),d[1]=pe(-h,n)):(d[0]=0,d[1]=pe(o,c));break;case"XZY":d[2]=wt(-Tt(a,-1,1)),Mr(a)<.99999?(d[0]=pe(f,l),d[1]=pe(o,n)):(d[0]=pe(-u,c),d[1]=0);break;default:console.warn("Unkown order: "+v)}return e._dirty=!0,e};Object.defineProperties(j,{POSITIVE_X:{get:function(){return new j(1,0,0)}},NEGATIVE_X:{get:function(){return new j(-1,0,0)}},POSITIVE_Y:{get:function(){return new j(0,1,0)}},NEGATIVE_Y:{get:function(){return new j(0,-1,0)}},POSITIVE_Z:{get:function(){return new j(0,0,1)}},NEGATIVE_Z:{get:function(){return new j(0,0,-1)}},UP:{get:function(){return new j(0,1,0)}},ZERO:{get:function(){return new j}}});var G=j,Zn=1e-5,rn=function(e,t){this.origin=e||new G,this.direction=t||new G};rn.prototype={constructor:rn,intersectPlane:function(e,t){var r=e.normal.array,i=e.distance,n=this.origin.array,a=this.direction.array,o=b.dot(r,a);if(o===0)return null;t||(t=new G);var s=(b.dot(r,n)-i)/o;return b.scaleAndAdd(t.array,n,a,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=b.dot(e.normal.array,this.direction.array);b.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,-t*2),this.direction._dirty=!0},distanceToPoint:function(){var e=b.create();return function(t){b.sub(e,t,this.origin.array);var r=b.dot(e,this.direction.array);if(r<0)return b.distance(this.origin.array,t);var i=b.lenSquared(e);return Math.sqrt(i-r*r)}}(),intersectSphere:function(){var e=b.create();return function(t,r,i){var n=this.origin.array,a=this.direction.array;t=t.array,b.sub(e,t,n);var o=b.dot(e,a),s=b.squaredLength(e),l=s-o*o,u=r*r;if(!(l>u)){var h=Math.sqrt(u-l),f=o-h,c=o+h;return i||(i=new G),f<0?c<0?null:(b.scaleAndAdd(i.array,n,a,c),i):(b.scaleAndAdd(i.array,n,a,f),i)}}}(),intersectBoundingBox:function(e,t){var r=this.direction.array,i=this.origin.array,n=e.min.array,a=e.max.array,o=1/r[0],s=1/r[1],l=1/r[2],u,h,f,c,d,v;if(o>=0?(u=(n[0]-i[0])*o,h=(a[0]-i[0])*o):(h=(n[0]-i[0])*o,u=(a[0]-i[0])*o),s>=0?(f=(n[1]-i[1])*s,c=(a[1]-i[1])*s):(c=(n[1]-i[1])*s,f=(a[1]-i[1])*s),u>c||f>h||((f>u||u!==u)&&(u=f),(c=0?(d=(n[2]-i[2])*l,v=(a[2]-i[2])*l):(v=(n[2]-i[2])*l,d=(a[2]-i[2])*l),u>v||d>h)||((d>u||u!==u)&&(u=d),(v=0?u:h;return t||(t=new G),b.scaleAndAdd(t.array,i,r,p),t},intersectTriangle:function(){var e=b.create(),t=b.create(),r=b.create(),i=b.create();return function(n,a,o,s,l,u){var h=this.direction.array,f=this.origin.array;n=n.array,a=a.array,o=o.array,b.sub(e,a,n),b.sub(t,o,n),b.cross(i,t,h);var c=b.dot(e,i);if(s){if(c>-Zn)return null}else if(c>-Zn&&c1)return null;b.cross(i,e,r);var v=b.dot(h,i)/c;if(v<0||v>1||d+v>1)return null;b.cross(i,e,t);var p=-b.dot(r,i)/c;return p<0?null:(l||(l=new G),u&&G.set(u,1-d-v,d,v),b.scaleAndAdd(l.array,f,h,p),l)}}(),applyTransform:function(e){G.add(this.direction,this.direction,this.origin),G.transformMat4(this.origin,this.origin,e),G.transformMat4(this.direction,this.direction,e),G.sub(this.direction,this.direction,this.origin),G.normalize(this.direction,this.direction)},copy:function(e){G.copy(this.origin,e.origin),G.copy(this.direction,e.direction)},clone:function(){var e=new rn;return e.copy(this),e}};var fn=rn,J={};J.create=function(){var e=new Ke(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};J.clone=function(e){var t=new Ke(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};J.fromValues=function(e,t,r,i){var n=new Ke(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n};J.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};J.set=function(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e};J.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e};J.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e};J.sub=J.subtract;J.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e};J.mul=J.multiply;J.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e};J.div=J.divide;J.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e};J.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e};J.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e};J.scaleAndAdd=function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e};J.distance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(r*r+i*i+n*n+a*a)};J.dist=J.distance;J.squaredDistance=function(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2],a=t[3]-e[3];return r*r+i*i+n*n+a*a};J.sqrDist=J.squaredDistance;J.length=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return Math.sqrt(t*t+r*r+i*i+n*n)};J.len=J.length;J.squaredLength=function(e){var t=e[0],r=e[1],i=e[2],n=e[3];return t*t+r*r+i*i+n*n};J.sqrLen=J.squaredLength;J.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e};J.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e};J.normalize=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e};J.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]};J.lerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3];return e[0]=n+i*(r[0]-n),e[1]=a+i*(r[1]-a),e[2]=o+i*(r[2]-o),e[3]=s+i*(r[3]-s),e};J.random=function(e,t){return t=t||1,e[0]=Ur(),e[1]=Ur(),e[2]=Ur(),e[3]=Ur(),J.normalize(e,e),J.scale(e,e,t),e};J.transformMat4=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e};J.transformQuat=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2],u=r[3],h=u*i+s*a-l*n,f=u*n+l*i-o*a,c=u*a+o*n-s*i,d=-o*i-s*n-l*a;return e[0]=h*u+d*-o+f*-l-c*-s,e[1]=f*u+d*-s+c*-o-h*-l,e[2]=c*u+d*-l+h*-s-f*-o,e};J.forEach=function(){var e=J.create();return function(t,r,i,n,a,o){var s,l;for(r||(r=4),i||(i=0),n?l=Math.min(n*r+i,t.length):l=t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(b.cross(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,le.normalize(i,i))}}();le.setAxes=function(){var e=ne.create();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],le.normalize(t,le.fromMat3(t,e))}}();le.clone=z.clone;le.fromValues=z.fromValues;le.copy=z.copy;le.set=z.set;le.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};le.setAxisAngle=function(e,t,r){r=r*.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e};le.add=z.add;le.multiply=function(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],h=r[3];return e[0]=i*h+o*s+n*u-a*l,e[1]=n*h+o*l+a*s-i*u,e[2]=a*h+o*u+i*l-n*s,e[3]=o*h-i*s-n*l-a*u,e};le.mul=le.multiply;le.scale=z.scale;le.rotateX=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+o*s,e[1]=n*l+a*s,e[2]=a*l-n*s,e[3]=o*l-i*s,e};le.rotateY=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l-a*s,e[1]=n*l+o*s,e[2]=a*l+i*s,e[3]=o*l-n*s,e};le.rotateZ=function(e,t,r){r*=.5;var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*s,e[1]=n*l-i*s,e[2]=a*l+o*s,e[3]=o*l-a*s,e};le.calculateW=function(e,t){var r=t[0],i=t[1],n=t[2];return e[0]=r,e[1]=i,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-n*n)),e};le.dot=z.dot;le.lerp=z.lerp;le.slerp=function(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],u=r[1],h=r[2],f=r[3],c,d,v,p,m;return d=n*l+a*u+o*h+s*f,d<0&&(d=-d,l=-l,u=-u,h=-h,f=-f),1-d>1e-6?(c=Math.acos(d),v=Math.sin(c),p=Math.sin((1-i)*c)/v,m=Math.sin(i*c)/v):(p=1-i,m=i),e[0]=p*n+m*l,e[1]=p*a+m*u,e[2]=p*o+m*h,e[3]=p*s+m*f,e};le.invert=function(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a,s=o?1/o:0;return e[0]=-r*s,e[1]=-i*s,e[2]=-n*s,e[3]=a*s,e};le.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e};le.length=z.length;le.len=le.length;le.squaredLength=z.squaredLength;le.sqrLen=le.squaredLength;le.normalize=z.normalize;le.fromMat3=function(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e};var $=le,xe=function(){this._axisX=new G,this._axisY=new G,this._axisZ=new G,this.array=F.create(),this._dirty=!0};xe.prototype={constructor:xe,setArray:function(e){for(var t=0;t0){var t=this.min,r=this.max,i=t.array,n=r.array;Xi(i,e[0]),Xi(n,e[0]);for(var a=1;an[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1]),o[2]>n[2]&&(n[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return b.min(t.array,t.array,e.min.array),b.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return b.max(t.array,t.array,e.min.array),b.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,i=e.min.array,n=e.max.array;return!(t[0]>n[0]||t[1]>n[1]||t[2]>n[2]||r[0]=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,i=e.array;return t[0]<=i[0]&&t[1]<=i[1]&&t[2]<=i[2]&&r[0]>=i[0]&&r[1]>=i[1]&&r[2]>=i[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=b.create(),t=b.create(),r=b.create(),i=b.create(),n=b.create(),a=b.create();return function(o,s){var l=o.min.array,u=o.max.array,h=s.array;return e[0]=h[0]*l[0],e[1]=h[1]*l[0],e[2]=h[2]*l[0],t[0]=h[0]*u[0],t[1]=h[1]*u[0],t[2]=h[2]*u[0],r[0]=h[4]*l[1],r[1]=h[5]*l[1],r[2]=h[6]*l[1],i[0]=h[4]*u[1],i[1]=h[5]*u[1],i[2]=h[6]*u[1],n[0]=h[8]*l[2],n[1]=h[9]*l[2],n[2]=h[10]*l[2],a[0]=h[8]*u[2],a[1]=h[9]*u[2],a[2]=h[10]*u[2],l=this.min.array,u=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(r[0],i[0])+Math.min(n[0],a[0])+h[12],l[1]=Math.min(e[1],t[1])+Math.min(r[1],i[1])+Math.min(n[1],a[1])+h[13],l[2]=Math.min(e[2],t[2])+Math.min(r[2],i[2])+Math.min(n[2],a[2])+h[14],u[0]=Math.max(e[0],t[0])+Math.max(r[0],i[0])+Math.max(n[0],a[0])+h[12],u[1]=Math.max(e[1],t[1])+Math.max(r[1],i[1])+Math.max(n[1],a[1])+h[13],u[2]=Math.max(e[2],t[2])+Math.max(r[2],i[2])+Math.max(n[2],a[2])+h[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,r=this.max.array,i=e.array,n=t[0],a=t[1],o=t[2],s=r[0],l=r[1],u=t[2],h=r[0],f=r[1],c=r[2];if(i[15]===1)t[0]=i[0]*n+i[12],t[1]=i[5]*a+i[13],r[2]=i[10]*o+i[14],r[0]=i[0]*h+i[12],r[1]=i[5]*f+i[13],t[2]=i[10]*c+i[14];else{var d=-1/o;t[0]=i[0]*n*d,t[1]=i[5]*a*d,r[2]=(i[10]*o+i[14])*d,d=-1/u,r[0]=i[0]*s*d,r[1]=i[5]*l*d,d=-1/c,t[2]=(i[10]*c+i[14])*d}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=b.fromValues(0,0,0);this.vertices=e}var r=this.min.array,i=this.max.array;return jt(e[0],r[0],r[1],r[2]),jt(e[1],r[0],i[1],r[2]),jt(e[2],i[0],r[1],r[2]),jt(e[3],i[0],i[1],r[2]),jt(e[4],r[0],r[1],i[2]),jt(e[5],r[0],i[1],i[2]),jt(e[6],i[0],r[1],i[2]),jt(e[7],i[0],i[1],i[2]),this},copy:function(e){var t=this.min,r=this.max;return Xi(t.array,e.min.array),Xi(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new nn;return e.copy(this),e}};var it=nn,xh=0,Th=ot.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+xh++),this.position||(this.position=new G),this.rotation||(this.rotation=new zs),this.scale||(this.scale=new G(1,1,1)),this.worldTransform=new k,this.localTransform=new k,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var r=t._nodeRepository;delete r[this.name],r[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var r=this._scene;r&&r!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,r=t.indexOf(e);r<0||(t.splice(r,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=It.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=It.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var r=0;r=0&&w[y]>1e-4&&(b.transformMat4(S,g,_[E[y]]),b.scaleAndAdd(A,A,S,w[y]));C.set(x,A)}}for(var x=0;x>t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(ae.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}});Object.defineProperty(ae.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}});ae.BYTE=D.BYTE;ae.UNSIGNED_BYTE=D.UNSIGNED_BYTE;ae.SHORT=D.SHORT;ae.UNSIGNED_SHORT=D.UNSIGNED_SHORT;ae.INT=D.INT;ae.UNSIGNED_INT=D.UNSIGNED_INT;ae.FLOAT=D.FLOAT;ae.HALF_FLOAT=36193;ae.UNSIGNED_INT_24_8_WEBGL=34042;ae.DEPTH_COMPONENT=D.DEPTH_COMPONENT;ae.DEPTH_STENCIL=D.DEPTH_STENCIL;ae.ALPHA=D.ALPHA;ae.RGB=D.RGB;ae.RGBA=D.RGBA;ae.LUMINANCE=D.LUMINANCE;ae.LUMINANCE_ALPHA=D.LUMINANCE_ALPHA;ae.SRGB=35904;ae.SRGB_ALPHA=35906;ae.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;ae.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;ae.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;ae.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;ae.NEAREST=D.NEAREST;ae.LINEAR=D.LINEAR;ae.NEAREST_MIPMAP_NEAREST=D.NEAREST_MIPMAP_NEAREST;ae.LINEAR_MIPMAP_NEAREST=D.LINEAR_MIPMAP_NEAREST;ae.NEAREST_MIPMAP_LINEAR=D.NEAREST_MIPMAP_LINEAR;ae.LINEAR_MIPMAP_LINEAR=D.LINEAR_MIPMAP_LINEAR;ae.REPEAT=D.REPEAT;ae.CLAMP_TO_EDGE=D.CLAMP_TO_EDGE;ae.MIRRORED_REPEAT=D.MIRRORED_REPEAT;var X=ae,gt=_a.extend({skeleton:null,joints:null},function(){this.joints||(this.joints=[])},{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=_a.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});gt.POINTS=D.POINTS;gt.LINES=D.LINES;gt.LINE_LOOP=D.LINE_LOOP;gt.LINE_STRIP=D.LINE_STRIP;gt.TRIANGLES=D.TRIANGLES;gt.TRIANGLE_STRIP=D.TRIANGLE_STRIP;gt.TRIANGLE_FAN=D.TRIANGLE_FAN;gt.BACK=D.BACK;gt.FRONT=D.FRONT;gt.FRONT_AND_BACK=D.FRONT_AND_BACK;gt.CW=D.CW;gt.CCW=D.CCW;var vr=gt,Cn={};Cn.isPowerOfTwo=function(e){return(e&e-1)===0};Cn.nextPowerOfTwo=function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e};Cn.nearestPowerOfTwo=function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))};var Hs=Cn,No=Hs.isPowerOfTwo;function Io(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function Eh(e,t){var r=Io(e.width),i=Io(e.height);t=t||document.createElement("canvas"),t.width=r,t.height=i;var n=t.getContext("2d");return n.drawImage(e.image,0,0,r,i),t}var Oa=X.extend(function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}},{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,i=this.type,n=!!(this.convertToPOT&&!this.mipmaps.length&&this.image&&(this.wrapS===X.REPEAT||this.wrapT===X.REPEAT)&&this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,n?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,n?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n?this.minFilter:this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var o=e.getGLExtension("OES_texture_half_float");o||(i=D.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,u=0;u=X.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,a,i,n,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,a,i,n,0,a,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return No(this.width)&&No(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!!(this.width&&this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=Re.createImage();t&&(r.crossOrigin=t);var i=this;return r.onload=function(){i.dirty(),i.trigger("success",i)},r.onerror=function(){i.trigger("error",i)},r.src=e,this.image=r,this}});Object.defineProperty(Oa.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(Oa.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});var Q=Oa;function Vs(e){return{byte:Re.Int8Array,ubyte:Re.Uint8Array,short:Re.Int16Array,ushort:Re.Uint16Array}[e]||Re.Float32Array}function Yn(e){return"attr_"+e}function Vr(e,t,r,i){switch(this.name=e,this.type=t,this.size=r,this.semantic=i||"",this.value=null,r){case 1:this.get=function(n){return this.value[n]},this.set=function(n,a){this.value[n]=a},this.copy=function(n,a){this.value[n]=this.value[n]};break;case 2:this.get=function(n,a){var o=this.value;return a[0]=o[n*2],a[1]=o[n*2+1],a},this.set=function(n,a){var o=this.value;o[n*2]=a[0],o[n*2+1]=a[1]},this.copy=function(n,a){var o=this.value;a*=2,n*=2,o[n]=o[a],o[n+1]=o[a+1]};break;case 3:this.get=function(n,a){var o=n*3,s=this.value;return a[0]=s[o],a[1]=s[o+1],a[2]=s[o+2],a},this.set=function(n,a){var o=n*3,s=this.value;s[o]=a[0],s[o+1]=a[1],s[o+2]=a[2]},this.copy=function(n,a){var o=this.value;a*=3,n*=3,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2]};break;case 4:this.get=function(n,a){var o=this.value,s=n*4;return a[0]=o[s],a[1]=o[s+1],a[2]=o[s+2],a[3]=o[s+3],a},this.set=function(n,a){var o=this.value,s=n*4;o[s]=a[0],o[s+1]=a[1],o[s+2]=a[2],o[s+3]=a[3]},this.copy=function(n,a){var o=this.value;a*=4,n*=4,o[n]=o[a],o[n+1]=o[a+1],o[n+2]=o[a+2],o[n+3]=o[a+3]}}}Vr.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=Vs(this.type);this.value=new t(e*this.size)}};Vr.prototype.fromArray=function(e){var t=Vs(this.type),r;if(e[0]&&e[0].length){var i=0,n=this.size;r=new t(e.length*n);for(var a=0;a=0){t||(t=[]);var r=this.indices;return t[0]=r[e*3],t[1]=r[e*3+1],t[2]=r[e*3+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[e*3]=t[0],r[e*3+1]=t[1],r[e*3+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?Re.Uint32Array:Re.Uint16Array;if(e[0]&&e[0].length){var i=0,n=3;t=new r(e.length*n);for(var a=0;a=0?(t.splice(r,1),delete this.attributes[e],!0):!1},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],i=this.vertexCount,n=0;na[0]&&(a[0]=s),l>a[1]&&(a[1]=l),u>a[2]&&(a[2]=u)}r._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(!!this.vertexCount){var e=this.indices,t=this.attributes,r=t.position.value,i=t.normal.value;if(!i||i.length!==r.length)i=t.normal.value=new Re.Float32Array(r.length);else for(var n=0;n65535&&(this.indices=new Re.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),i={},n=0;nthis.distance,n=1;n<8;n++)if(b.dot(t[n].array,r)>this.distance!=i)return!0},intersectLine:function(){var e=b.create();return function(t,r,i){var n=this.distanceToPoint(t),a=this.distanceToPoint(r);if(n>0&&a>0||n<0&&a<0)return null;var o=this.normal.array,s=this.distance,l=t.array;b.sub(e,r.array,t.array),b.normalize(e,e);var u=b.dot(o,e);if(u===0)return null;i||(i=new G);var h=(b.dot(o,l)-s)/u;return b.scaleAndAdd(i.array,l,e,-h),i._dirty=!0,i}}(),applyTransform:function(){var e=F.create(),t=z.create(),r=z.create();return r[3]=1,function(i){i=i.array,b.scale(r,this.normal.array,this.distance),z.transformMat4(r,r,i),this.distance=b.dot(r,this.normal.array),F.invert(e,i),F.transpose(e,e),t[3]=0,b.copy(t,this.normal.array),z.transformMat4(t,t,e),b.copy(this.normal.array,t)}}(),copy:function(e){b.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new an;return e.copy(this),e}};var Xs=an,De=b.set,Oo=b.copy,Bo=b.transformMat4,qn=Math.min,$n=Math.max,Zs=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new Xs);this.boundingBox=new it,this.vertices=[];for(var e=0;e<8;e++)this.vertices[e]=b.fromValues(0,0,0)};Zs.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],l=r[5],u=r[6],h=r[7],f=r[8],c=r[9],d=r[10],v=r[11],p=r[12],m=r[13],_=r[14],x=r[15];De(t[0].normal.array,o-i,h-s,v-f),t[0].distance=-(x-p),t[0].normalize(),De(t[1].normal.array,o+i,h+s,v+f),t[1].distance=-(x+p),t[1].normalize(),De(t[2].normal.array,o+n,h+l,v+c),t[2].distance=-(x+m),t[2].normalize(),De(t[3].normal.array,o-n,h-l,v-c),t[3].distance=-(x-m),t[3].normalize(),De(t[4].normal.array,o-a,h-u,v-d),t[4].distance=-(x-_),t[4].normalize(),De(t[5].normal.array,o+a,h+u,v+d),t[5].distance=-(x+_),t[5].normalize();var y=this.boundingBox,g=this.vertices;if(x===0){var w=l/i,E=-_/(d-1),A=-_/(d+1),S=-A/l,C=-E/l;y.min.set(-S*w,-S,A),y.max.set(S*w,S,E),De(g[0],-S*w,-S,A),De(g[1],-S*w,S,A),De(g[2],S*w,-S,A),De(g[3],S*w,S,A),De(g[4],-C*w,-C,E),De(g[5],-C*w,C,E),De(g[6],C*w,-C,E),De(g[7],C*w,C,E)}else{var P=(-1-p)/i,L=(1-p)/i,R=(1-m)/l,I=(-1-m)/l,M=(-1-_)/d,B=(1-_)/d;y.min.set(Math.min(P,L),Math.min(I,R),Math.min(B,M)),y.max.set(Math.max(L,P),Math.max(R,I),Math.max(M,B));var H=y.min.array,W=y.max.array;De(g[0],H[0],H[1],H[2]),De(g[1],H[0],W[1],H[2]),De(g[2],W[0],H[1],H[2]),De(g[3],W[0],W[1],H[2]),De(g[4],H[0],H[1],W[2]),De(g[5],H[0],W[1],W[2]),De(g[6],W[0],H[1],W[2]),De(g[7],W[0],W[1],W[2])}},getTransformedBoundingBox:function(){var e=b.create();return function(t,r){var i=this.vertices,n=r.array,a=t.min,o=t.max,s=a.array,l=o.array,u=i[0];Bo(e,u,n),Oo(s,e),Oo(l,e);for(var h=1;h<8;h++)u=i[h],Bo(e,u,n),s[0]=qn(e[0],s[0]),s[1]=qn(e[1],s[1]),s[2]=qn(e[2],s[2]),l[0]=$n(e[0],l[0]),l[1]=$n(e[1],l[1]),l[2]=$n(e[2],l[2]);return a._dirty=!0,o._dirty=!0,t}}()};var Ba=Zs,Ch=It.extend(function(){return{projectionMatrix:new k,invProjectionMatrix:new k,viewMatrix:new k,frustum:new Ba}},function(){this.update(!0)},{update:function(e){It.prototype.update.call(this,e),k.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),k.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){k.copy(this.viewMatrix,e),k.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){k.copy(this.projectionMatrix,e),k.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=z.create();return function(t,r){var i=r!==void 0?r:new fn,n=t.array[0],a=t.array[1];return z.set(e,n,a,-1,1),z.transformMat4(e,e,this.invProjectionMatrix.array),z.transformMat4(e,e,this.worldTransform.array),b.scale(i.origin.array,e,1/e[3]),z.set(e,n,a,1,1),z.transformMat4(e,e,this.invProjectionMatrix.array),z.transformMat4(e,e,this.worldTransform.array),b.scale(e,e,1/e[3]),b.sub(i.direction.array,e,i.origin.array),b.normalize(i.direction.array,i.direction.array),i.direction._dirty=!0,i.origin._dirty=!0,i}}()}),kr=Ch,Lh=F.create(),Fo=F.create(),Kn={};function Dh(e){var t=[],r=Object.keys(e);r.sort();for(var i=0;i0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof Lt&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof kr?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof Lt&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},r=0;r0&&this._doUpdateRenderList(o,t,r,i,n)}},isFrustumCulled:function(){var e=new it,t=new k;return function(r,i,n){var a=r.boundingBox;if(a||(r.skeleton&&r.skeleton.boundingBox?a=r.skeleton.boundingBox:a=r.geometry.boundingBox),!a)return!1;if(t.array=n,e.transformFrom(a,t),r.castShadow&&this.viewBoundingBoxLastFrame.union(e),r.frustumCulling){if(!e.intersectBoundingBox(i.frustum.boundingBox))return!0;t.array=i.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(Ph);var t=this._lightUniforms;for(var r in t)for(var i in t[r])t[r][i].value.length=0;for(var n=0;n1&&t.texParameterf(t.TEXTURE_CUBE_MAP,n.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),i===36193){var a=e.getGLExtension("OES_texture_half_float");a||(i=D.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l0&&e.height>0}var Ti=Fa,Nh=kr.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=Math.atan(1/e[5])*2;this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=kr.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}}),Ve=Nh,ji="framebuffer",zt="renderbuffer",Uo=zt+"_width",Go=zt+"_height",Qn=zt+"_attached",Jn="depthtexture_attached",sr=D.FRAMEBUFFER,li=D.RENDERBUFFER,vi=D.DEPTH_ATTACHMENT,js=D.COLOR_ATTACHMENT0,Ni=ot.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new Ia,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(sr,this._getFrameBufferGL(e)),this._boundRenderer=e;var r=this._cache;r.put("viewport",e.viewport);var i=!1,n,a;for(var o in this._textures){i=!0;var s=this._textures[o];s&&(n=s.texture.width,a=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=n,this._height=a,!i&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,n,a,1);var l=r.get("attached_textures");if(l){for(var o in l)if(!this._textures[o]){var u=l[o];this._doDetach(t,o,u)}}if(!r.get(Jn)&&this.depthBuffer){r.miss(zt)&&r.put(zt,t.createRenderbuffer());var h=r.get(zt);(n!==r.get(Uo)||a!==r.get(Go))&&(t.bindRenderbuffer(li,h),t.renderbufferStorage(li,t.DEPTH_COMPONENT16,n,a),r.put(Uo,n),r.put(Go,a),t.bindRenderbuffer(li,null)),r.get(Qn)||(t.framebufferRenderbuffer(sr,vi,li,h),r.put(Qn,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(sr,null),this._boundRenderer=null,this._cache.use(e.__uid__);var r=this._cache.get("viewport");r&&e.setViewport(r),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var r in this._textures){var i=this._textures[r];if(i){var n=i.texture;if(!n.NPOT&&n.useMipmap&&n.minFilter===X.LINEAR_MIPMAP_LINEAR){var a=n.textureType==="textureCube"?D.TEXTURE_CUBE_MAP:D.TEXTURE_2D;t.bindTexture(a,n.getWebGLTexture(e)),t.generateMipmap(a),t.bindTexture(a,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(sr)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(ji)&&t.put(ji,e.gl.createFramebuffer()),t.get(ji)},attach:function(e,t,r){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||js,r=r||D.TEXTURE_2D;var i=this._boundRenderer,n=i&&i.gl,a;if(n){var o=this._cache;o.use(i.__uid__),a=o.get("attached_textures")}var s=this._textures[t];if(!(s&&s.target===r&&s.texture===e&&a&&a[t]!=null)){var l=!0;i&&(l=this._doAttach(i,e,t,r),this.viewport||i.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=r)}},_doAttach:function(e,t,r,i){var n=e.gl,a=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[r]){var s=o[r];if(s.texture===t&&s.target===i)return}r=+r;var l=!0;if(r===vi||r===D.DEPTH_STENCIL_ATTACHMENT){var u=e.getGLExtension("WEBGL_depth_texture");if(u||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==D.DEPTH_COMPONENT&&t.format!==D.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var h=this._cache.get(zt);h&&(n.framebufferRenderbuffer(sr,vi,li,null),n.deleteRenderbuffer(h),this._cache.put(zt,!1)),this._cache.put(Qn,!1),this._cache.put(Jn,!0)}}return n.framebufferTexture2D(sr,r,i,a,0),o||(o={},this._cache.put("attached_textures",o)),o[r]=o[r]||{},o[r].texture=t,o[r].target=i,l},_doDetach:function(e,t,r){e.framebufferTexture2D(sr,t,r,null,0);var i=this._cache.get("attached_textures");i&&i[t]&&(i[t]=null),(t===vi||t===D.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(Jn,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var r=this._cache;r.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,r=this._cache;r.use(e.__uid__);var i=r.get(zt);i&&t.deleteRenderbuffer(i);var n=r.get(ji);n&&t.deleteFramebuffer(n),r.deleteContext(e.__uid__),this._textures={}}});Ni.DEPTH_ATTACHMENT=vi;Ni.COLOR_ATTACHMENT0=js;Ni.STENCIL_ATTACHMENT=D.STENCIL_ATTACHMENT;Ni.DEPTH_STENCIL_ATTACHMENT=D.DEPTH_STENCIL_ATTACHMENT;var qe=Ni,Ih=["px","nx","py","ny","pz","nz"],Oh=ot.extend(function(){var e={position:new G,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new Ve({fov:90}),nx:new Ve({fov:90}),py:new Ve({fov:90}),ny:new Ve({fov:90}),pz:new Ve({fov:90}),nz:new Ve({fov:90})};return t.px.lookAt(G.POSITIVE_X,G.NEGATIVE_Y),t.nx.lookAt(G.NEGATIVE_X,G.NEGATIVE_Y),t.py.lookAt(G.POSITIVE_Y,G.POSITIVE_Z),t.ny.lookAt(G.NEGATIVE_Y,G.NEGATIVE_Z),t.pz.lookAt(G.POSITIVE_Z,G.NEGATIVE_Y),t.nz.lookAt(G.NEGATIVE_Z,G.NEGATIVE_Y),e._frameBuffer=new qe,e},{getCamera:function(e){return this._cameras[e]},render:function(e,t,r){var i=e.gl;r||t.update();for(var n=this.texture.width,a=2*Math.atan(n/(n-.5))/Math.PI*180,o=0;o<6;o++){var s=Ih[o],l=this._cameras[s];if(G.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=a,this.shadowMapPass){l.update();var u=t.getBoundingBox();u.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(u),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}}),Ua=Oh,Bh=se.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,i=[],n=[],a=[],o=[],s=0;s<=e;s++)for(var l=s/e,u=0;u<=t;u++){var h=u/t;if(i.push([2*h-1,2*l-1,0]),n&&n.push([h,l]),a&&a.push([0,0,1]),u0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],r)}}),wi=Gh,zh=542327876,Hh=131072,Vh=512,kh=4;function Ga(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var Wh=31,Xh=Ga("DXT1"),Zh=Ga("DXT3"),jh=Ga("DXT5"),Yh=0,qh=1,$h=2,Kh=3,Qh=4,Jh=7,ef=20,tf=21,rf=28,nf={parse:function(e,t){var r=new Int32Array(e,0,Wh);if(r[Yh]!==zh||!r(ef)&kh)return null;var i=r(tf),n=r[Qh],a=r[Kh],o=r[rf]&Vh,s=r[$h]&Hh,l,u;switch(i){case Xh:l=8,u=X.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Zh:l=16,u=X.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case jh:l=16,u=X.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var h=r[qh]+4,f=o?6:1,c=1;s&&(c=Math.max(1,r[Jh]));for(var d=[],v=0;v0){var n=Math.pow(2,e[3]-128-8+i);t[r+0]=e[0]*n,t[r+1]=e[1]*n,t[r+2]=e[2]*n}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function uf(e,t,r){for(var i="",n=t;n0;)if(e[a][0]=t[r++],e[a][1]=t[r++],e[a][2]=t[r++],e[a][3]=t[r++],e[a][0]===1&&e[a][1]===1&&e[a][2]===1){for(var s=e[a][3]<>>0;s>0;s--)hf(e[a-1],e[a]),a++,o--;n+=8}else a++,o--,n=0;return r}function ff(e,t,r,i){if(isf)return zo(e,t,r,i);var n=t[r++];if(n!=2)return zo(e,t,r-1,i);if(e[0][1]=t[r++],e[0][2]=t[r++],n=t[r++],(e[0][2]<<8>>>0|n)>>>0!==i)return null;for(var n=0;n<4;n++)for(var a=0;a128){o=(o&127)>>>0;for(var s=t[r++];o--;)e[a++][n]=s}else for(;o--;)e[a++][n]=t[r++]}return r}var cf={parseRGBE:function(e,t,r){r==null&&(r=0);var i=new Uint8Array(e),n=i.length;if(uf(i,0,2)==="#?"){for(var a=2;a=n)){a+=2;for(var o="";a20)return console.warn("Given image is not a height map"),e}var d,v,p,m;l%(i*4)===0?(d=o.data[l],p=o.data[l+4]):l%(i*4)===(i-1)*4?(d=o.data[l-4],p=o.data[l]):(d=o.data[l-4],p=o.data[l+4]),li*(n-1)*4?(v=o.data[l-i*4],m=o.data[l]):(v=o.data[l-i*4],m=o.data[l+i*4]),s.data[l]=d-p+127,s.data[l+1]=v-m+127,s.data[l+2]=255,s.data[l+3]=255}return a.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var i=document.createElement("canvas"),n=i.getContext("2d"),a=t||32;r=r||20,i.width=i.height=a,n.drawImage(e,0,0,a,a);for(var o=n.getImageData(0,0,a,a),s=0;sr)return!1}return!0},_fetchTexture:function(e,t,r){Re.request.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,i){e=e||512,t=t||64,r=r||"black",i=i||"white";var n=Math.ceil(e/t),a=document.createElement("canvas");a.width=e,a.height=e;var o=a.getContext("2d");o.fillStyle=i,o.fillRect(0,0,e,e),o.fillStyle=r;for(var s=0;s=0||(ga.forEach(function(t){e.on(t,this[ya(t)],this)},this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),ga.forEach(function(r){e.off(r,this[ya(r)])},this)},dispose:function(){this._meshes.forEach(function(e){this.detachFromMesh(e)},this)}};var vf=xa,pf=kr.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=kr.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}}),Wr=pf,mf=` -@export clay.compositor.vertex -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -attribute vec3 position : POSITION; -attribute vec2 texcoord : TEXCOORD_0; -varying vec2 v_Texcoord; -void main() -{ - v_Texcoord = texcoord; - gl_Position = worldViewProjection * vec4(position, 1.0); -} -@end`;N.import(mf);var _f=new Dn,Ho=new vr({geometry:_f,frustumCulling:!1}),gf=new Wr,yf=ot.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var e=new N(N.source("clay.compositor.vertex"),this.fragment),t=new Et({shader:e});t.enableTexturesAll(),this.material=t},{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||D.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var r in this.outputs){var i=this.outputs[r];i&&t.attach(i,r)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var r=e.gl;if(t){this.bind(e,t);var i=e.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var n=[];for(var a in this.outputs)a=+a,a>=r.COLOR_ATTACHMENT0&&a<=r.COLOR_ATTACHMENT0+8&&n.push(a);i.drawBuffersEXT(n)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o=o|r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){Ho.material=this.material,e.renderPass([Ho],gf)},dispose:function(e){}}),Ne=yf,xf=`#define SAMPLE_NUMBER 1024 -#define PI 3.14159265358979 -uniform sampler2D normalDistribution; -uniform vec2 viewportSize : [512, 256]; -const vec3 N = vec3(0.0, 0.0, 1.0); -const float fSampleNumber = float(SAMPLE_NUMBER); -vec3 importanceSampleNormal(float i, float roughness, vec3 N) { - vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; - vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); - vec3 tangentX = normalize(cross(N, upVector)); - vec3 tangentZ = cross(N, tangentX); - return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); -} -float G_Smith(float roughness, float NoV, float NoL) { - float k = roughness * roughness / 2.0; - float G1V = NoV / (NoV * (1.0 - k) + k); - float G1L = NoL / (NoL * (1.0 - k) + k); - return G1L * G1V; -} -void main() { - vec2 uv = gl_FragCoord.xy / viewportSize; - float NoV = uv.x; - float roughness = uv.y; - vec3 V; - V.x = sqrt(1.0 - NoV * NoV); - V.y = 0.0; - V.z = NoV; - float A = 0.0; - float B = 0.0; - for (int i = 0; i < SAMPLE_NUMBER; i++) { - vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N); - vec3 L = reflect(-V, H); - float NoL = clamp(L.z, 0.0, 1.0); - float NoH = clamp(H.z, 0.0, 1.0); - float VoH = clamp(dot(V, H), 0.0, 1.0); - if (NoL > 0.0) { - float G = G_Smith(roughness, NoV, NoL); - float G_Vis = G * VoH / (NoH * NoV); - float Fc = pow(1.0 - VoH, 5.0); - A += (1.0 - Fc) * G_Vis; - B += Fc * G_Vis; - } - } - gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0); -} -`,Tf=`#define SHADER_NAME prefilter -#define SAMPLE_NUMBER 1024 -#define PI 3.14159265358979 -uniform mat4 viewInverse : VIEWINVERSE; -uniform samplerCube environmentMap; -uniform sampler2D normalDistribution; -uniform float roughness : 0.5; -varying vec2 v_Texcoord; -varying vec3 v_WorldPosition; -@import clay.util.rgbm -vec3 importanceSampleNormal(float i, float roughness, vec3 N) { - vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; - vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); - vec3 tangentX = normalize(cross(N, upVector)); - vec3 tangentZ = cross(N, tangentX); - return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); -} -void main() { - vec3 eyePos = viewInverse[3].xyz; - vec3 V = normalize(v_WorldPosition - eyePos); - vec3 N = V; - vec3 prefilteredColor = vec3(0.0); - float totalWeight = 0.0; - float fMaxSampleNumber = float(SAMPLE_NUMBER); - for (int i = 0; i < SAMPLE_NUMBER; i++) { - vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N); - vec3 L = reflect(-V, H); - float NoL = clamp(dot(N, L), 0.0, 1.0); - if (NoL > 0.0) { - prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL; - totalWeight += NoL; - } - } - gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0)); -} -`,gr={},ea=["px","nx","py","ny","pz","nz"];gr.prefilterEnvironmentMap=function(e,t,r,i,n){(!n||!i)&&(i=gr.generateNormalDistribution(),n=gr.integrateBRDF(e,i)),r=r||{};var a=r.width||64,o=r.height||64,s=r.type||t.type,l=new Ti({width:a,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var u=Math.min(a,o),h=Math.log(u)/Math.log(2)+1,f=new Et({shader:new N({vertex:N.source("clay.skybox.vertex"),fragment:Tf})});f.set("normalDistribution",i),r.encodeRGBM&&f.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&f.define("fragment","RGBM_DECODE");var c=new ir,d;if(t.textureType==="texture2D"){var v=new Ti({width:a,height:o,type:s===X.FLOAT?X.HALF_FLOAT:s});_r.panoramaToCubeMap(e,t,v,{encodeRGBM:r.decodeRGBM}),t=v}d=new wi({scene:c,material:f}),d.material.set("environmentMap",t);var p=new Ua({texture:l});r.encodeRGBM&&(s=l.type=X.UNSIGNED_BYTE);for(var m=new Q({width:a,height:o,type:s}),_=new qe({depthBuffer:!1}),x=Re[s===X.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],y=0;y>>16)>>>0;f=((f&1431655765)<<1|(f&2863311530)>>>1)>>>0,f=((f&858993459)<<2|(f&3435973836)>>>2)>>>0,f=((f&252645135)<<4|(f&4042322160)>>>4)>>>0,f=(((f&16711935)<<8|(f&4278255360)>>>8)>>>0)/4294967296;var c=Math.sqrt((1-f)/(1+(u*u-1)*f));o[h]=c}for(var h=0;h65535?Uint32Array:Uint16Array,s=this.indices=new o(t*e*6),l,u,h,f,c,d,v,y=this.radius,p=this.phiStart,m=this.phiLength,_=this.thetaStart,x=this.thetaLength,y=this.radius,g=[],w=[],E=0,A=1/y;for(v=0;v<=e;v++)for(d=0;d<=t;d++)f=d/t,c=v/e,l=-y*Math.cos(p+f*m)*Math.sin(_+c*x),u=y*Math.cos(_+c*x),h=y*Math.sin(p+f*m)*Math.sin(_+c*x),g[0]=l,g[1]=u,g[2]=h,w[0]=f,w[1]=c,r.set(E,g),i.set(E,w),g[0]*=A,g[1]*=A,g[2]*=A,n.set(E,g),E++;var S,C,P,L,R=t+1,I=0;for(v=0;v=0&&l.splice(f,1)}),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,i=0;i 1e-4) -{ - skinMatrixWS += getSkinMatrix(joint.y) * weight.y; -} -if (weight.z > 1e-4) -{ - skinMatrixWS += getSkinMatrix(joint.z) * weight.z; -} -float weightW = 1.0-weight.x-weight.y-weight.z; -if (weightW > 1e-4) -{ - skinMatrixWS += getSkinMatrix(joint.w) * weightW; -} -@end -@export clay.chunk.instancing_header -#ifdef INSTANCING -attribute vec4 instanceMat1; -attribute vec4 instanceMat2; -attribute vec4 instanceMat3; -#endif -@end -@export clay.chunk.instancing_matrix -mat4 instanceMat = mat4( - vec4(instanceMat1.xyz, 0.0), - vec4(instanceMat2.xyz, 0.0), - vec4(instanceMat3.xyz, 0.0), - vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0) -); -@end -@export clay.util.parallax_correct -vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) { - vec3 first = (boxMax - pos) / dir; - vec3 second = (boxMin - pos) / dir; - vec3 further = max(first, second); - float dist = min(further.x, min(further.y, further.z)); - vec3 fixedPos = pos + dir * dist; - vec3 boxCenter = (boxMax + boxMin) * 0.5; - return normalize(fixedPos - boxCenter); -} -@end -@export clay.util.clamp_sample -vec4 clampSample(const in sampler2D texture, const in vec2 coord) -{ -#ifdef STEREO - float eye = step(0.5, coord.x) * 0.5; - vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0)); -#else - vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0)); -#endif - return texture2D(texture, coordClamped); -} -@end -@export clay.util.ACES -vec3 ACESToneMapping(vec3 color) -{ - const float A = 2.51; - const float B = 0.03; - const float C = 2.43; - const float D = 0.59; - const float E = 0.14; - return (color * (A * color + B)) / (color * (C * color + D) + E); -} -@end`,jf=` -@export ecgl.common.transformUniforms -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; -uniform mat4 world : WORLD; -@end - -@export ecgl.common.attributes -attribute vec3 position : POSITION; -attribute vec2 texcoord : TEXCOORD_0; -attribute vec3 normal : NORMAL; -@end - -@export ecgl.common.uv.header -uniform vec2 uvRepeat : [1.0, 1.0]; -uniform vec2 uvOffset : [0.0, 0.0]; -uniform vec2 detailUvRepeat : [1.0, 1.0]; -uniform vec2 detailUvOffset : [0.0, 0.0]; - -varying vec2 v_Texcoord; -varying vec2 v_DetailTexcoord; -@end - -@export ecgl.common.uv.main -v_Texcoord = texcoord * uvRepeat + uvOffset; -v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset; -@end - -@export ecgl.common.uv.fragmentHeader -varying vec2 v_Texcoord; -varying vec2 v_DetailTexcoord; -@end - - -@export ecgl.common.albedo.main - - vec4 albedoTexel = vec4(1.0); -#ifdef DIFFUSEMAP_ENABLED - albedoTexel = texture2D(diffuseMap, v_Texcoord); - #ifdef SRGB_DECODE - albedoTexel = sRGBToLinear(albedoTexel); - #endif -#endif - -#ifdef DETAILMAP_ENABLED - vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord); - #ifdef SRGB_DECODE - detailTexel = sRGBToLinear(detailTexel); - #endif - albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a); - albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a; -#endif - -@end - -@export ecgl.common.wireframe.vertexHeader - -#ifdef WIREFRAME_QUAD -attribute vec4 barycentric; -varying vec4 v_Barycentric; -#elif defined(WIREFRAME_TRIANGLE) -attribute vec3 barycentric; -varying vec3 v_Barycentric; -#endif - -@end - -@export ecgl.common.wireframe.vertexMain - -#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) - v_Barycentric = barycentric; -#endif - -@end - - -@export ecgl.common.wireframe.fragmentHeader - -uniform float wireframeLineWidth : 1; -uniform vec4 wireframeLineColor: [0, 0, 0, 0.5]; - -#ifdef WIREFRAME_QUAD -varying vec4 v_Barycentric; -float edgeFactor () { - vec4 d = fwidth(v_Barycentric); - vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric); - return min(min(min(a4.x, a4.y), a4.z), a4.w); -} -#elif defined(WIREFRAME_TRIANGLE) -varying vec3 v_Barycentric; -float edgeFactor () { - vec3 d = fwidth(v_Barycentric); - vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric); - return min(min(a3.x, a3.y), a3.z); -} -#endif - -@end - - -@export ecgl.common.wireframe.fragmentMain - -#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) - if (wireframeLineWidth > 0.) { - vec4 lineColor = wireframeLineColor; -#ifdef SRGB_DECODE - lineColor = sRGBToLinear(lineColor); -#endif - - gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a); - } -#endif -@end - - - - -@export ecgl.common.bumpMap.header - -#ifdef BUMPMAP_ENABLED -uniform sampler2D bumpMap; -uniform float bumpScale : 1.0; - - -vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal) -{ - vec2 dSTdx = dFdx(v_Texcoord); - vec2 dSTdy = dFdy(v_Texcoord); - - float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x; - float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll; - float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll; - - vec3 vSigmaX = dFdx(surfPos); - vec3 vSigmaY = dFdy(surfPos); - vec3 vN = surfNormal; - - vec3 R1 = cross(vSigmaY, vN); - vec3 R2 = cross(vN, vSigmaX); - - float fDet = dot(vSigmaX, R1); - - vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2); - return normalize(abs(fDet) * baseNormal - vGrad); - -} -#endif - -@end - -@export ecgl.common.normalMap.vertexHeader - -#ifdef NORMALMAP_ENABLED -attribute vec4 tangent : TANGENT; -varying vec3 v_Tangent; -varying vec3 v_Bitangent; -#endif - -@end - -@export ecgl.common.normalMap.vertexMain - -#ifdef NORMALMAP_ENABLED - if (dot(tangent, tangent) > 0.0) { - v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); - v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); - } -#endif - -@end - - -@export ecgl.common.normalMap.fragmentHeader - -#ifdef NORMALMAP_ENABLED -uniform sampler2D normalMap; -varying vec3 v_Tangent; -varying vec3 v_Bitangent; -#endif - -@end - -@export ecgl.common.normalMap.fragmentMain -#ifdef NORMALMAP_ENABLED - if (dot(v_Tangent, v_Tangent) > 0.0) { - vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz; - if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0; - mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal); - N = normalize(tbn * N); - } - } -#endif -@end - - - -@export ecgl.common.vertexAnimation.header - -#ifdef VERTEX_ANIMATION -attribute vec3 prevPosition; -attribute vec3 prevNormal; -uniform float percent; -#endif - -@end - -@export ecgl.common.vertexAnimation.main - -#ifdef VERTEX_ANIMATION - vec3 pos = mix(prevPosition, position, percent); - vec3 norm = mix(prevNormal, normal, percent); -#else - vec3 pos = position; - vec3 norm = normal; -#endif - -@end - - -@export ecgl.common.ssaoMap.header -#ifdef SSAOMAP_ENABLED -uniform sampler2D ssaoMap; -uniform vec4 viewport : VIEWPORT; -#endif -@end - -@export ecgl.common.ssaoMap.main - float ao = 1.0; -#ifdef SSAOMAP_ENABLED - ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r; -#endif -@end - - - - -@export ecgl.common.diffuseLayer.header - -#if (LAYER_DIFFUSEMAP_COUNT > 0) -uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT]; -uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT]; -#endif - -@end - -@export ecgl.common.emissiveLayer.header - -#if (LAYER_EMISSIVEMAP_COUNT > 0) -uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT]; -uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT]; -#endif - -@end - -@export ecgl.common.layers.header -@import ecgl.common.diffuseLayer.header -@import ecgl.common.emissiveLayer.header -@end - -@export ecgl.common.diffuseLayer.main - -#if (LAYER_DIFFUSEMAP_COUNT > 0) - for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{ - float intensity = layerDiffuseIntensity[_idx_]; - vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord); - #ifdef SRGB_DECODE - texel2 = sRGBToLinear(texel2); - #endif - albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a); - albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a; - }} -#endif - -@end - -@export ecgl.common.emissiveLayer.main - -#if (LAYER_EMISSIVEMAP_COUNT > 0) - for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++) - {{ - vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_]; - #ifdef SRGB_DECODE - texel2 = sRGBToLinear(texel2); - #endif - float intensity = layerEmissionIntensity[_idx_]; - gl_FragColor.rgb += texel2.rgb * texel2.a * intensity; - }} -#endif - -@end -`,Yf=`@export ecgl.color.vertex - -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; - -@import ecgl.common.uv.header - -attribute vec2 texcoord : TEXCOORD_0; -attribute vec3 position: POSITION; - -@import ecgl.common.wireframe.vertexHeader - -#ifdef VERTEX_COLOR -attribute vec4 a_Color : COLOR; -varying vec4 v_Color; -#endif - -#ifdef VERTEX_ANIMATION -attribute vec3 prevPosition; -uniform float percent : 1.0; -#endif - -#ifdef ATMOSPHERE_ENABLED -attribute vec3 normal: NORMAL; -uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; -varying vec3 v_Normal; -#endif - -void main() -{ -#ifdef VERTEX_ANIMATION - vec3 pos = mix(prevPosition, position, percent); -#else - vec3 pos = position; -#endif - - gl_Position = worldViewProjection * vec4(pos, 1.0); - - @import ecgl.common.uv.main - -#ifdef VERTEX_COLOR - v_Color = a_Color; -#endif - -#ifdef ATMOSPHERE_ENABLED - v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); -#endif - - @import ecgl.common.wireframe.vertexMain - -} - -@end - -@export ecgl.color.fragment - -#define LAYER_DIFFUSEMAP_COUNT 0 -#define LAYER_EMISSIVEMAP_COUNT 0 - -uniform sampler2D diffuseMap; -uniform sampler2D detailMap; - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; - -#ifdef ATMOSPHERE_ENABLED -uniform mat4 viewTranspose: VIEWTRANSPOSE; -uniform vec3 glowColor; -uniform float glowPower; -varying vec3 v_Normal; -#endif - -#ifdef VERTEX_COLOR -varying vec4 v_Color; -#endif - -@import ecgl.common.layers.header - -@import ecgl.common.uv.fragmentHeader - -@import ecgl.common.wireframe.fragmentHeader - -@import clay.util.srgb - -void main() -{ -#ifdef SRGB_DECODE - gl_FragColor = sRGBToLinear(color); -#else - gl_FragColor = color; -#endif - -#ifdef VERTEX_COLOR - gl_FragColor *= v_Color; -#endif - - @import ecgl.common.albedo.main - - @import ecgl.common.diffuseLayer.main - - gl_FragColor *= albedoTexel; - -#ifdef ATMOSPHERE_ENABLED - float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); - gl_FragColor.rgb += glowColor * atmoIntensity; -#endif - - @import ecgl.common.emissiveLayer.main - - @import ecgl.common.wireframe.fragmentMain - -} -@end`,qf=`/** - * http: */ - -@export ecgl.lambert.vertex - -@import ecgl.common.transformUniforms - -@import ecgl.common.uv.header - - -@import ecgl.common.attributes - -@import ecgl.common.wireframe.vertexHeader - -#ifdef VERTEX_COLOR -attribute vec4 a_Color : COLOR; -varying vec4 v_Color; -#endif - - -@import ecgl.common.vertexAnimation.header - - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -void main() -{ - @import ecgl.common.uv.main - - @import ecgl.common.vertexAnimation.main - - - gl_Position = worldViewProjection * vec4(pos, 1.0); - - v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); - v_WorldPosition = (world * vec4(pos, 1.0)).xyz; - -#ifdef VERTEX_COLOR - v_Color = a_Color; -#endif - - @import ecgl.common.wireframe.vertexMain -} - -@end - - -@export ecgl.lambert.fragment - -#define LAYER_DIFFUSEMAP_COUNT 0 -#define LAYER_EMISSIVEMAP_COUNT 0 - -#define NORMAL_UP_AXIS 1 -#define NORMAL_FRONT_AXIS 2 - -@import ecgl.common.uv.fragmentHeader - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -uniform sampler2D diffuseMap; -uniform sampler2D detailMap; - -@import ecgl.common.layers.header - -uniform float emissionIntensity: 1.0; - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; - -uniform mat4 viewInverse : VIEWINVERSE; - -#ifdef ATMOSPHERE_ENABLED -uniform mat4 viewTranspose: VIEWTRANSPOSE; -uniform vec3 glowColor; -uniform float glowPower; -#endif - -#ifdef AMBIENT_LIGHT_COUNT -@import clay.header.ambient_light -#endif -#ifdef AMBIENT_SH_LIGHT_COUNT -@import clay.header.ambient_sh_light -#endif - -#ifdef DIRECTIONAL_LIGHT_COUNT -@import clay.header.directional_light -#endif - -#ifdef VERTEX_COLOR -varying vec4 v_Color; -#endif - - -@import ecgl.common.ssaoMap.header - -@import ecgl.common.bumpMap.header - -@import clay.util.srgb - -@import ecgl.common.wireframe.fragmentHeader - -@import clay.plugin.compute_shadow_map - -void main() -{ -#ifdef SRGB_DECODE - gl_FragColor = sRGBToLinear(color); -#else - gl_FragColor = color; -#endif - -#ifdef VERTEX_COLOR - #ifdef SRGB_DECODE - gl_FragColor *= sRGBToLinear(v_Color); - #else - gl_FragColor *= v_Color; - #endif -#endif - - @import ecgl.common.albedo.main - - @import ecgl.common.diffuseLayer.main - - gl_FragColor *= albedoTexel; - - vec3 N = v_Normal; -#ifdef DOUBLE_SIDED - vec3 eyePos = viewInverse[3].xyz; - vec3 V = normalize(eyePos - v_WorldPosition); - - if (dot(N, V) < 0.0) { - N = -N; - } -#endif - - float ambientFactor = 1.0; - -#ifdef BUMPMAP_ENABLED - N = bumpNormal(v_WorldPosition, v_Normal, N); - ambientFactor = dot(v_Normal, N); -#endif - - vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); - - vec3 diffuseColor = vec3(0.0, 0.0, 0.0); - - @import ecgl.common.ssaoMap.main - -#ifdef AMBIENT_LIGHT_COUNT - for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) - { - diffuseColor += ambientLightColor[i] * ambientFactor * ao; - } -#endif -#ifdef AMBIENT_SH_LIGHT_COUNT - for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) - {{ - diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; - }} -#endif -#ifdef DIRECTIONAL_LIGHT_COUNT -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) - float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; - if(shadowEnabled) - { - computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); - } -#endif - for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) - { - vec3 lightDirection = -directionalLightDirection[i]; - vec3 lightColor = directionalLightColor[i]; - - float shadowContrib = 1.0; -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) - if (shadowEnabled) - { - shadowContrib = shadowContribsDir[i]; - } -#endif - - float ndl = dot(N, normalize(lightDirection)) * shadowContrib; - - diffuseColor += lightColor * clamp(ndl, 0.0, 1.0); - } -#endif - - gl_FragColor.rgb *= diffuseColor; - -#ifdef ATMOSPHERE_ENABLED - float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); - gl_FragColor.rgb += glowColor * atmoIntensity; -#endif - - @import ecgl.common.emissiveLayer.main - - @import ecgl.common.wireframe.fragmentMain -} - -@end`,$f=`@export ecgl.realistic.vertex - -@import ecgl.common.transformUniforms - -@import ecgl.common.uv.header - -@import ecgl.common.attributes - - -@import ecgl.common.wireframe.vertexHeader - -#ifdef VERTEX_COLOR -attribute vec4 a_Color : COLOR; -varying vec4 v_Color; -#endif - -#ifdef NORMALMAP_ENABLED -attribute vec4 tangent : TANGENT; -varying vec3 v_Tangent; -varying vec3 v_Bitangent; -#endif - -@import ecgl.common.vertexAnimation.header - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -void main() -{ - - @import ecgl.common.uv.main - - @import ecgl.common.vertexAnimation.main - - gl_Position = worldViewProjection * vec4(pos, 1.0); - - v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); - v_WorldPosition = (world * vec4(pos, 1.0)).xyz; - -#ifdef VERTEX_COLOR - v_Color = a_Color; -#endif - -#ifdef NORMALMAP_ENABLED - v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); - v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); -#endif - - @import ecgl.common.wireframe.vertexMain - -} - -@end - - - -@export ecgl.realistic.fragment - -#define LAYER_DIFFUSEMAP_COUNT 0 -#define LAYER_EMISSIVEMAP_COUNT 0 -#define PI 3.14159265358979 -#define ROUGHNESS_CHANEL 0 -#define METALNESS_CHANEL 1 - -#define NORMAL_UP_AXIS 1 -#define NORMAL_FRONT_AXIS 2 - -#ifdef VERTEX_COLOR -varying vec4 v_Color; -#endif - -@import ecgl.common.uv.fragmentHeader - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -uniform sampler2D diffuseMap; - -uniform sampler2D detailMap; -uniform sampler2D metalnessMap; -uniform sampler2D roughnessMap; - -@import ecgl.common.layers.header - -uniform float emissionIntensity: 1.0; - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; - -uniform float metalness : 0.0; -uniform float roughness : 0.5; - -uniform mat4 viewInverse : VIEWINVERSE; - -#ifdef ATMOSPHERE_ENABLED -uniform mat4 viewTranspose: VIEWTRANSPOSE; -uniform vec3 glowColor; -uniform float glowPower; -#endif - -#ifdef AMBIENT_LIGHT_COUNT -@import clay.header.ambient_light -#endif - -#ifdef AMBIENT_SH_LIGHT_COUNT -@import clay.header.ambient_sh_light -#endif - -#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT -@import clay.header.ambient_cubemap_light -#endif - -#ifdef DIRECTIONAL_LIGHT_COUNT -@import clay.header.directional_light -#endif - -@import ecgl.common.normalMap.fragmentHeader - -@import ecgl.common.ssaoMap.header - -@import ecgl.common.bumpMap.header - -@import clay.util.srgb - -@import clay.util.rgbm - -@import ecgl.common.wireframe.fragmentHeader - -@import clay.plugin.compute_shadow_map - -vec3 F_Schlick(float ndv, vec3 spec) { - return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); -} - -float D_Phong(float g, float ndh) { - float a = pow(8192.0, g); - return (a + 2.0) / 8.0 * pow(ndh, a); -} - -void main() -{ - vec4 albedoColor = color; - - vec3 eyePos = viewInverse[3].xyz; - vec3 V = normalize(eyePos - v_WorldPosition); -#ifdef VERTEX_COLOR - #ifdef SRGB_DECODE - albedoColor *= sRGBToLinear(v_Color); - #else - albedoColor *= v_Color; - #endif -#endif - - @import ecgl.common.albedo.main - - @import ecgl.common.diffuseLayer.main - - albedoColor *= albedoTexel; - - float m = metalness; - -#ifdef METALNESSMAP_ENABLED - float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL]; - m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0); -#endif - - vec3 baseColor = albedoColor.rgb; - albedoColor.rgb = baseColor * (1.0 - m); - vec3 specFactor = mix(vec3(0.04), baseColor, m); - - float g = 1.0 - roughness; - -#ifdef ROUGHNESSMAP_ENABLED - float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; - g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); -#endif - - vec3 N = v_Normal; - -#ifdef DOUBLE_SIDED - if (dot(N, V) < 0.0) { - N = -N; - } -#endif - - float ambientFactor = 1.0; - -#ifdef BUMPMAP_ENABLED - N = bumpNormal(v_WorldPosition, v_Normal, N); - ambientFactor = dot(v_Normal, N); -#endif - -@import ecgl.common.normalMap.fragmentMain - - vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); - - vec3 diffuseTerm = vec3(0.0); - vec3 specularTerm = vec3(0.0); - - float ndv = clamp(dot(N, V), 0.0, 1.0); - vec3 fresnelTerm = F_Schlick(ndv, specFactor); - - @import ecgl.common.ssaoMap.main - -#ifdef AMBIENT_LIGHT_COUNT - for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++) - {{ - diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao; - }} -#endif - -#ifdef AMBIENT_SH_LIGHT_COUNT - for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) - {{ - diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; - }} -#endif - -#ifdef DIRECTIONAL_LIGHT_COUNT -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) - float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; - if(shadowEnabled) - { - computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); - } -#endif - for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) - {{ - vec3 L = -directionalLightDirection[_idx_]; - vec3 lc = directionalLightColor[_idx_]; - - vec3 H = normalize(L + V); - float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0); - float ndh = clamp(dot(N, H), 0.0, 1.0); - - float shadowContrib = 1.0; -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) - if (shadowEnabled) - { - shadowContrib = shadowContribsDir[_idx_]; - } -#endif - - vec3 li = lc * ndl * shadowContrib; - - diffuseTerm += li; - specularTerm += li * fresnelTerm * D_Phong(g, ndh); - }} -#endif - - -#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT - vec3 L = reflect(-V, N); - L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]); - float rough2 = clamp(1.0 - g, 0.0, 1.0); - float bias2 = rough2 * 5.0; - vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy; - vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y; - vec3 envTexel2; - for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++) - {{ - envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12); - specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao; - }} -#endif - - gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm; - gl_FragColor.a = albedoColor.a; - -#ifdef ATMOSPHERE_ENABLED - float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); - gl_FragColor.rgb += glowColor * atmoIntensity; -#endif - -#ifdef SRGB_ENCODE - gl_FragColor = linearTosRGB(gl_FragColor); -#endif - - @import ecgl.common.emissiveLayer.main - - @import ecgl.common.wireframe.fragmentMain -} - -@end`,Kf=`@export ecgl.hatching.vertex - -@import ecgl.realistic.vertex - -@end - - -@export ecgl.hatching.fragment - -#define NORMAL_UP_AXIS 1 -#define NORMAL_FRONT_AXIS 2 - -@import ecgl.common.uv.fragmentHeader - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -uniform vec4 color : [0.0, 0.0, 0.0, 1.0]; -uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0]; - -uniform mat4 viewInverse : VIEWINVERSE; - -#ifdef AMBIENT_LIGHT_COUNT -@import clay.header.ambient_light -#endif -#ifdef AMBIENT_SH_LIGHT_COUNT -@import clay.header.ambient_sh_light -#endif - -#ifdef DIRECTIONAL_LIGHT_COUNT -@import clay.header.directional_light -#endif - -#ifdef VERTEX_COLOR -varying vec4 v_Color; -#endif - - -@import ecgl.common.ssaoMap.header - -@import ecgl.common.bumpMap.header - -@import clay.util.srgb - -@import ecgl.common.wireframe.fragmentHeader - -@import clay.plugin.compute_shadow_map - -uniform sampler2D hatch1; -uniform sampler2D hatch2; -uniform sampler2D hatch3; -uniform sampler2D hatch4; -uniform sampler2D hatch5; -uniform sampler2D hatch6; - -float shade(in float tone) { - vec4 c = vec4(1. ,1., 1., 1.); - float step = 1. / 6.; - vec2 uv = v_DetailTexcoord; - if (tone <= step / 2.0) { - c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone); - } - else if (tone <= step) { - c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone); - } - if(tone > step && tone <= 2. * step){ - c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step)); - } - if(tone > 2. * step && tone <= 3. * step){ - c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step)); - } - if(tone > 3. * step && tone <= 4. * step){ - c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step)); - } - if(tone > 4. * step && tone <= 5. * step){ - c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step)); - } - if(tone > 5. * step){ - c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step)); - } - - return c.r; -} - -const vec3 w = vec3(0.2125, 0.7154, 0.0721); - -void main() -{ -#ifdef SRGB_DECODE - vec4 inkColor = sRGBToLinear(color); -#else - vec4 inkColor = color; -#endif - -#ifdef VERTEX_COLOR - #ifdef SRGB_DECODE - inkColor *= sRGBToLinear(v_Color); - #else - inkColor *= v_Color; - #endif -#endif - - vec3 N = v_Normal; -#ifdef DOUBLE_SIDED - vec3 eyePos = viewInverse[3].xyz; - vec3 V = normalize(eyePos - v_WorldPosition); - - if (dot(N, V) < 0.0) { - N = -N; - } -#endif - - float tone = 0.0; - - float ambientFactor = 1.0; - -#ifdef BUMPMAP_ENABLED - N = bumpNormal(v_WorldPosition, v_Normal, N); - ambientFactor = dot(v_Normal, N); -#endif - - vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); - - @import ecgl.common.ssaoMap.main - -#ifdef AMBIENT_LIGHT_COUNT - for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) - { - tone += dot(ambientLightColor[i], w) * ambientFactor * ao; - } -#endif -#ifdef AMBIENT_SH_LIGHT_COUNT - for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) - {{ - tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao; - }} -#endif -#ifdef DIRECTIONAL_LIGHT_COUNT -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) - float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; - if(shadowEnabled) - { - computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); - } -#endif - for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) - { - vec3 lightDirection = -directionalLightDirection[i]; - float lightTone = dot(directionalLightColor[i], w); - - float shadowContrib = 1.0; -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) - if (shadowEnabled) - { - shadowContrib = shadowContribsDir[i]; - } -#endif - - float ndl = dot(N, normalize(lightDirection)) * shadowContrib; - - tone += lightTone * clamp(ndl, 0.0, 1.0); - } -#endif - - gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0))); - } -@end -`,Qf=`@export ecgl.sm.depth.vertex - -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; - -attribute vec3 position : POSITION; -attribute vec2 texcoord : TEXCOORD_0; - -#ifdef VERTEX_ANIMATION -attribute vec3 prevPosition; -uniform float percent : 1.0; -#endif - -varying vec4 v_ViewPosition; -varying vec2 v_Texcoord; - -void main(){ - -#ifdef VERTEX_ANIMATION - vec3 pos = mix(prevPosition, position, percent); -#else - vec3 pos = position; -#endif - - v_ViewPosition = worldViewProjection * vec4(pos, 1.0); - gl_Position = v_ViewPosition; - - v_Texcoord = texcoord; - -} -@end - - - -@export ecgl.sm.depth.fragment - -@import clay.sm.depth.fragment - -@end`;Object.assign(It.prototype,Zf);N.import($s);N.import(Gs);N.import(jf);N.import(Yf);N.import(qf);N.import($f);N.import(Kf);N.import(Qf);function Jf(e){return!e||e==="none"}function Ks(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}function ec(e){return e.getZr&&e.setOption}var tc=ir.prototype.addToScene,rc=ir.prototype.removeFromScene;ir.prototype.addToScene=function(e){if(tc.call(this,e),this.__zr){var t=this.__zr;e.traverse(function(r){r.__zr=t,r.addAnimatorsToZr&&r.addAnimatorsToZr(t)})}};ir.prototype.removeFromScene=function(e){rc.call(this,e),e.traverse(function(t){var r=t.__zr;t.__zr=null,r&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(r)})};Et.prototype.setTextureImage=function(e,t,r,i){if(!!this.shader){var n=r.getZr(),a=this,o;return a.autoUpdateTextureStatus=!1,a.disableTexture(e),Jf(t)||(o=q.loadTexture(t,r,i,function(s){a.enableTexture(e),n&&n.refresh()}),a.set(e,o)),o}};var q={};q.Renderer=gi;q.Node=It;q.Mesh=vr;q.Shader=N;q.Material=Et;q.Texture=X;q.Texture2D=Q;q.Geometry=se;q.SphereGeometry=Rf;q.PlaneGeometry=Dn;q.CubeGeometry=Ys;q.AmbientLight=If;q.DirectionalLight=Bf;q.PointLight=Uf;q.SpotLight=zf;q.PerspectiveCamera=Ve;q.OrthographicCamera=Wr;q.Vector2=mt;q.Vector3=G;q.Vector4=Hf;q.Quaternion=zs;q.Matrix2=Vf;q.Matrix2d=kf;q.Matrix3=Wf;q.Matrix4=k;q.Plane=Xs;q.Ray=fn;q.BoundingBox=it;q.Frustum=Ba;var qi=null;function ic(){return qi!==null||(qi=_r.createBlank("rgba(255,255,255,0)").image),qi}function Vo(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function ko(e){if((e.wrapS===X.REPEAT||e.wrapT===X.REPEAT)&&e.image){var t=Vo(e.width),r=Vo(e.height);if(t!==e.width||r!==e.height){var i=document.createElement("canvas");i.width=t,i.height=r;var n=i.getContext("2d");n.drawImage(e.image,0,0,t,r),e.image=i}}}q.loadTexture=function(e,t,r,i){typeof r=="function"&&(i=r,r={}),r=r||{};for(var n=Object.keys(r).sort(),a="",o=0;o3?t[3]=e[3]:t[3]=1,t):(t=Ss(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)};q.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,i=-t/180*Math.PI+Math.PI/2,n=[],a=Math.sin(r);return n[0]=a*Math.cos(i),n[1]=-Math.cos(r),n[2]=a*Math.sin(i),n};q.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t};q.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"];q.createShader=function(e){e==="ecgl.shadow"&&(e="ecgl.displayShadow");var t=N.source(e+".vertex"),r=N.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var i=new N(t,r);return i.name=e,i};q.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=q.createShader(e),i=new Et({shader:r});return t.forEach(function(n){typeof n=="string"&&i.define(n)}),i};q.setMaterialFromModel=function(e,t,r,i){t.autoUpdateTextureStatus=!1;var n=r.getModel(e+"Material"),a=n.get("detailTexture"),o=ee.firstNotNull(n.get("textureTiling"),1),s=ee.firstNotNull(n.get("textureOffset"),0);typeof o=="number"&&(o=[o,o]),typeof s=="number"&&(s=[s,s]);var l=o[0]>1||o[1]>1?q.Texture.REPEAT:q.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if(e==="realistic"){var h=n.get("roughness"),f=n.get("metalness");f!=null?isNaN(f)&&(t.setTextureImage("metalnessMap",f,i,u),f=ee.firstNotNull(n.get("metalnessAdjust"),.5)):f=0,h!=null?isNaN(h)&&(t.setTextureImage("roughnessMap",h,i,u),h=ee.firstNotNull(n.get("roughnessAdjust"),.5)):h=.5;var c=n.get("normalTexture");t.setTextureImage("detailMap",a,i,u),t.setTextureImage("normalMap",c,i,u),t.set({roughness:h,metalness:f,detailUvRepeat:o,detailUvOffset:s})}else if(e==="lambert")t.setTextureImage("detailMap",a,i,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="color")t.setTextureImage("detailMap",a,i,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="hatching"){var d=n.get("hatchingTextures")||[];d.length<6;for(var v=0;v<6;v++)t.setTextureImage("hatch"+(v+1),d[v],i,{anisotropic:8,wrapS:q.Texture.REPEAT,wrapT:q.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}};q.updateVertexAnimation=function(e,t,r,i){var n=i.get("animation"),a=i.get("animationDurationUpdate"),o=i.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(n&&t&&a>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l=0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse(function(i){i.__zr=r,i.addAnimatorsToZr&&i.addAnimatorsToZr(r)})}};function Qs(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}_e.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(Qs,this),e.layer=null,this._viewsToDispose.push(e))}};_e.prototype.removeViewsAll=function(){this.views.forEach(function(e){e.scene.traverse(Qs,this),e.layer=null,this._viewsToDispose.push(e)},this),this.views.length=0};_e.prototype.resize=function(e,t){var r=this.renderer;r.resize(e,t)};_e.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)};_e.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)};_e.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)};_e.prototype.needsRefresh=function(){this.zr.refresh()};_e.prototype.refresh=function(e){this._backgroundColor=e?T.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t20)){e=e.event;var i=this.pickObject(e.offsetX,e.offsetY);i&&(this._dispatchEvent(e.type,e,i),this._dispatchDataEvent(e.type,e,i));var n=this._clickToSetFocusPoint(e);if(n){var a=n.view.setDOFFocusOnPoint(n.distance);a&&this.zr.refresh()}}}};_e.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,i=this.views.length-1;i>=0;i--){var n=this.views[i];if(n.hasDOF()&&n.containPoint(e.offsetX,e.offsetY)){this._picking.scene=n.scene,this._picking.camera=n.camera,t.viewport=n.viewport;var a=this._picking.pick(e.offsetX,e.offsetY,!0);if(a)return a.view=n,a}}t.viewport=r};_e.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})};_e.prototype.pickObject=function(e,t){for(var r=[],i=this.renderer,n=i.viewport,a=0;a=0&&(h.dataIndex=this._lastDataIndex,h.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0):o!=null&&o!==this._lastEventData&&(this._lastEventData!=null&&(h.eventData=this._lastEventData,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=n,this._lastSeriesIndex=a),h.eventData=o,h.dataIndex=n,h.seriesIndex=a,(o!=null||parseInt(n,10)>=0&&parseInt(a,10)>=0)&&(this.zr.handler.dispatchToElement(u,e,t),s&&this.zr.handler.dispatchToElement(u,"mouseover",t))};_e.prototype._dispatchToView=function(e,t){for(var r=0;r=0&&(sc(t),t.coordinateSystem==="mapbox"&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))}),Ki(e.xAxis3D),Ki(e.yAxis3D),Ki(e.zAxis3D),Ki(e.grid3D),pi(e.geo3D)}function el(e){this._layers={},this._zr=e}el.prototype.update=function(e,t){var r=this,i=t.getZr();if(!i.getWidth()||!i.getHeight()){console.warn("Dom has no width or height");return}function n(s){i.setSleepAfterStill(0);var l;s.coordinateSystem&&s.coordinateSystem.model,l=s.get("zlevel");var u=r._layers,h=u[l];if(!h){if(h=u[l]=new Js("gl-"+l,i),i.painter.isSingleCanvas()){h.virtual=!0;var f=new lu({z:1e4,style:{image:h.renderer.canvas},silent:!0});h.__hostImage=f,i.add(f)}i.painter.insertLayer(l,h)}return h.__hostImage&&h.__hostImage.setStyle({width:h.renderer.getWidth(),height:h.renderer.getHeight()}),h}function a(s,l){s&&s.traverse(function(u){u.isRenderable&&u.isRenderable()&&(u.ignorePicking=u.$ignorePicking!=null?u.$ignorePicking:l)})}for(var o in this._layers)this._layers[o].removeViewsAll();e.eachComponent(function(s,l){if(s!=="series"){var u=t.getViewOfComponentModel(l),h=l.coordinateSystem;if(u.__ecgl__){var f;if(h){if(!h.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+l.id);return}f=h.viewGL}else{if(!l.viewGL){console.error("Can't find viewGL of component "+l.id);return}f=h.viewGL}var f=h.viewGL,c=n(l);c.addView(f),u.afterRender&&u.afterRender(l,e,t,c),a(u.groupGL,l.get("silent"))}}}),e.eachSeries(function(s){var l=t.getViewOfSeriesModel(s),u=s.coordinateSystem;if(l.__ecgl__){if(u&&!u.viewGL&&!l.viewGL){console.error("Can't find viewGL of series "+l.id);return}var h=u&&u.viewGL||l.viewGL,f=n(s);f.addView(h),l.afterRender&&l.afterRender(s,e,t,f),a(l.groupGL,s.get("silent"))}})};au(function(e){var t=e.getZr(),r=t.painter.dispose;t.painter.dispose=function(){typeof this.eachOtherLayer=="function"&&this.eachOtherLayer(function(i){i instanceof Js&&i.dispose()}),r.call(this)},t.painter.getRenderedCanvas=function(i){if(i=i||{},this._singleCanvas)return this._layers[0].dom;var n=document.createElement("canvas"),a=i.pixelRatio||this.dpr;n.width=this.getWidth()*a,n.height=this.getHeight()*a;var o=n.getContext("2d");o.dpr=a,o.clearRect(0,0,n.width,n.height),i.backgroundColor&&(o.fillStyle=i.backgroundColor,o.fillRect(0,0,n.width,n.height));var s=this.storage.getDisplayList(!0),l={},u,h=this;function f(p,m){var _=h._zlevelList;p==null&&(p=-1/0);for(var x,y=0;y<_.length;y++){var g=_[y],w=h._layers[g];if(!w.__builtin__&&g>p&&g0&&this._notFirst?this.animateTo({alpha:u,beta:h,center:f,distance:a,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(a),this.setAlpha(u),this.setBeta(h),this.setCenter(f),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){},animateTo:function(e){var t=this.zr,r=this,i={},n={};return e.distance!=null&&(i.distance=this.getDistance(),n.distance=e.distance),e.orthographicSize!=null&&(i.orthographicSize=this.getOrthographicSize(),n.orthographicSize=e.orthographicSize),e.alpha!=null&&(i.alpha=this.getAlpha(),n.alpha=e.alpha),e.beta!=null&&(i.beta=this.getBeta(),n.beta=e.beta),e.center!=null&&(i.center=this.getCenter(),n.center=e.center),this._addAnimator(t.animation.animate(i).when(e.duration||1e3,n).during(function(){i.alpha!=null&&r.setAlpha(i.alpha),i.beta!=null&&r.setBeta(i.beta),i.distance!=null&&r.setDistance(i.distance),i.center!=null&&r.setCenter(i.center),i.orthographicSize!=null&&r.setOrthographicSize(i.orthographicSize),r._needsUpdate=!0})).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e0},_update:function(e){if(this._rotating){var t=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,i=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-i/2,t.right=i/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,i=this.getCamera(),n=i.worldTransform.y,a=i.worldTransform.x;this._center.scaleAndAdd(a,-t.x*r/200).scaleAndAdd(n,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new G,r=this._theta+Math.PI/2,i=this._phi+Math.PI/2,n=Math.sin(r);t.x=n*Math.cos(i),t.y=-Math.cos(r),t.z=n*Math.sin(i),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout(function(){t._rotating=!0},e*1e3))},_vectorDamping:function(e,t){var r=e.len();r=r*t,r<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(!!this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?e.event.targetTouches.length===1&&(this._mode="rotate"):e.event.button===Wo[this.rotateMouseButton]?this._mode="rotate":e.event.button===Wo[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=Xo(this.panSensitivity),r=Xo(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):this._mode==="pan"&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(t!==0){var r=e.offsetX,i=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,i))){var n;this._projection==="perspective"?n=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):n=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),e.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done(function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}),e}});Object.defineProperty(tl.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});var Rn=tl,Ii={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var r in t)e||!t[r].value?t[r].value=[]:t[r].value=Array.prototype.slice.call(t[r].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Me={vec2:Z,vec3:b,vec4:z,mat2:Ce,mat2d:Pe,mat3:ne,mat4:F,quat:$},ta=Me.vec3,Zo=[[0,0],[1,1]],rl=se.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new se.Attribute("position","float",3,"POSITION"),positionPrev:new se.Attribute("positionPrev","float",3),positionNext:new se.Attribute("positionNext","float",3),prevPositionPrev:new se.Attribute("prevPositionPrev","float",3),prevPosition:new se.Attribute("prevPosition","float",3),prevPositionNext:new se.Attribute("prevPositionNext","float",3),offset:new se.Attribute("offset","float",1),color:new se.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,i){var n=ta.dist(e,t)+ta.dist(r,t)+ta.dist(i,r),a=1/(n+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?a*2:a*2+2},getCubicCurveTriangleCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?0:a*2},getLineVertexCount:function(){return this.getPolylineVertexCount(Zo)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Zo)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?0:Math.max(t-1,0)*2},addCubicCurve:function(e,t,r,i,n,a){a==null&&(a=1);for(var o=e[0],s=e[1],l=e[2],u=t[0],h=t[1],f=t[2],c=r[0],d=r[1],v=r[2],p=i[0],m=i[1],_=i[2],x=this._getCubicCurveApproxStep(e,t,r,i),y=x*x,g=y*x,w=3*x,E=3*y,A=6*y,S=6*g,C=o-u*2+c,P=s-h*2+d,L=l-f*2+v,R=(u-c)*3-o+p,I=(h-d)*3-s+m,M=(f-v)*3-l+_,B=o,H=s,W=l,U=(u-o)*w+C*E+R*g,ue=(h-s)*w+P*E+I*g,V=(f-l)*w+L*E+M*g,ve=C*A+R*S,he=P*A+I*S,ge=L*A+M*S,ye=R*S,re=I*S,Ie=M*S,Se=0,Le=0,Qe=Math.ceil(1/x),Ze=new Float32Array((Qe+1)*3),Ze=[],He=0,Le=0;Le1&&(B=U>0?Math.min(B,p):Math.max(B,p),H=ue>0?Math.min(H,m):Math.max(H,m),W=V>0?Math.min(W,_):Math.max(W,_));return this.addPolyline(Ze,n,a)},addLine:function(e,t,r,i){return this.addPolyline([e,t],r,i)},addPolyline:function(e,t,r,i,n){if(!!e.length){var a=typeof e[0]!="number";if(n==null&&(n=a?e.length:e.length/3),!(n<2)){i==null&&(i=0),r==null&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var a=typeof e[0]!="number",o=a?typeof t[0]!="number":t.length/4===n,s=this.attributes.position,l=this.attributes.positionPrev,u=this.attributes.positionNext,h=this.attributes.color,f=this.attributes.offset,c=this.indices,d=this._vertexOffset,v,p;r=Math.max(r,.01);for(var m=i;m1&&(s.copy(d,d-1),h.copy(d,d-1),d++):(m0&&(u.set(d-2,v),u.set(d-1,v)),s.set(d,v),s.set(d+1,v),h.set(d,p),h.set(d+1,p),f.set(d,r/2),f.set(d+1,-r/2),d+=2),this.useNativeLine)h.set(d,p),s.set(d,v),d++;else if(m>0){var y=this._triangleOffset*3,c=this.indices;c[y]=d-4,c[y+1]=d-3,c[y+2]=d-2,c[y+3]=d-3,c[y+4]=d-1,c[y+5]=d-2,this._triangleOffset+=2}}if(!this.useNativeLine){var g=this._vertexOffset,w=this._vertexOffset+n*2;l.copy(g,g+2),l.copy(g+1,g+3),u.copy(w-1,w-3),u.copy(w-2,w-4)}return this._vertexOffset=d,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],i=eo&&(n=this._x=0,a+=this._rowHeight+l,this._y=a,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),a+r+l>s)return null;e.x+=this.offsetX*this.dpr+n,e.y+=this.offsetY*this.dpr+a,this._zr.add(e);var u=[this.offsetX/this.width,this.offsetY/this.height],h=[[n/o+u[0],a/s+u[1]],[(n+t)/o+u[0],(a+r)/s+u[1]]];return h},_fitElement:function(e,t,r){var i=e.getBoundingRect(),n=t/i.width,a=r/i.height;e.x=-i.x*n,e.y=-i.y*a,e.scaleX=n,e.scaleY=a,e.update()}};function mn(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=e.gap==null?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new Q({image:t,flipY:!1});var r=this;this._zr=uu(t);var i=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){i.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new pn(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}mn.prototype={clear:function(){for(var e=0;e=e)){var a=(i+this._nodeWidth)*this._dpr,o=(n+this._nodeHeight)*this._dpr;try{this._zr.resize({width:a,height:o})}catch{this._canvas.width=a,this._canvas.height=o}var s=new pn(this._zr,i,n,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}},add:function(e,t,r){if(this._coords[e.id])return this._coords[e.id];var i=this._getCurrentNode().add(e,t,r);if(!i){var n=this._expand();if(!n)return;i=n.add(e,t,r)}return this._coords[e.id]=i,i},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]},dispose:function(){this._zr.dispose()}};function tr(){}tr.prototype={constructor:tr,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new T.DirectionalLight({shadowBias:.005}),this.ambientLight=new T.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,i=e.getModel("light"),n=i.getModel("main"),a=i.getModel("ambient");t.intensity=n.get("intensity"),r.intensity=a.get("intensity"),t.color=T.parseColor(n.get("color")).slice(0,3),r.color=T.parseColor(a.get("color")).slice(0,3);var o=n.get("alpha")||0,s=n.get("beta")||0;t.position.setArray(T.directionFromAlphaBeta(o,s)),t.lookAt(T.Vector3.ZERO),t.castShadow=n.get("shadow"),t.shadowResolution=T.getShadowResolution(n.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var i=t.getModel("light.ambientCubemap"),n=i.get("texture");if(n){this._cubemapLightsCache=this._cubemapLightsCache||{};var a=this._cubemapLightsCache[n];if(!a){var o=this;a=this._cubemapLightsCache[n]=T.createAmbientCubemap(i.option,e,r,function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(a.specular.cubemap),r.getZr().refresh()})}this._lightRoot.add(a.diffuse),this._lightRoot.add(a.specular),this._currentCubemapLights=a}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var i=t.get("environment"),n=this;function a(){return n._skybox=n._skybox||new wi,n._skybox}var o=a();if(i&&i!=="none")if(i==="auto")if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(s),this._scene&&o.attachScene(this._scene),o.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if(typeof i=="object"&&i.colorStops||typeof i=="string"&&Ss(i)){this._isSkyboxFromAmbientCubemap=!1;var l=new T.Texture2D({anisotropic:8,flipY:!1});o.setEnvironmentMap(l);var u=l.image=document.createElement("canvas");u.width=u.height=16;var h=u.getContext("2d"),f=new bs({shape:{x:0,y:0,width:16,height:16},style:{fill:i}});As(h,f),o.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;var l=T.loadTexture(i,r,{anisotropic:8,flipY:!1});o.setEnvironmentMap(l),o.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var c=t.coordinateSystem;if(this._skybox)if(c&&c.viewGL&&i!=="auto"&&!(i.match&&i.match(/.hdr$/))){var d=c.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[d]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}};var lr=Me.vec3,il=se.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new se.Attribute("position","float",3,"POSITION"),normal:new se.Attribute("normal","float",3,"NORMAL"),color:new se.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,r=this.getQuadVertexCount()*e,i=this.getQuadTriangleCount()*e;this.vertexCount!==r&&(t.position.init(r),t.normal.init(r),t.color.init(r)),this.triangleCount!==i&&(this.indices=r>65535?new Uint32Array(i*3):new Uint16Array(i*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=lr.create(),t=lr.create(),r=lr.create(),i=[0,3,1,3,2,1];return function(n,a){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;lr.sub(e,n[1],n[0]),lr.sub(t,n[2],n[1]),lr.cross(r,e,t),lr.normalize(r,r);for(var u=0;u<4;u++)o.set(this._vertexOffset+u,n[u]),l.set(this._vertexOffset+u,a),s.set(this._vertexOffset+u,r);for(var h=this._faceOffset*3,u=0;u<6;u++)this.indices[h+u]=i[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});rr(il.prototype,Ii);var hc=il,Ta=ee.firstNotNull,fc={x:0,y:2,z:1};function cc(e,t,r,i){var n=[0,0,0],a=i<0?r.getExtentMin():r.getExtentMax();n[fc[r.dim]]=a,e.position.setArray(n),e.rotation.identity(),t.distance=-Math.abs(a),t.normal.set(0,0,0),r.dim==="x"?(e.rotation.rotateY(i*Math.PI/2),t.normal.x=-i):r.dim==="z"?(e.rotation.rotateX(-i*Math.PI/2),t.normal.y=-i):(i>0&&e.rotation.rotateY(Math.PI),t.normal.z=-i)}function Nn(e,t,r){this.rootNode=new T.Node;var i=new T.Mesh({geometry:new Sr({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),n=new T.Mesh({geometry:new hc,material:r,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(n),this.rootNode.add(i),this.faceInfo=e,this.plane=new T.Plane,this.linesMesh=i,this.quadsMesh=n}Nn.prototype.update=function(e,t,r){var i=e.coordinateSystem,n=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],a=this.linesMesh.geometry,o=this.quadsMesh.geometry;a.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(a,n,e,r),this._udpateSplitAreas(o,n,e,r),a.convertToTypedArray(),o.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);cc(this.rootNode,this.plane,s,this.faceInfo[3])};Nn.prototype._updateSplitLines=function(e,t,r,i){var n=i.getDevicePixelRatio();t.forEach(function(a,o){var s=a.model,l=t[1-o].getExtent();if(!a.scale.isBlank()){var u=s.getModel("splitLine",r.getModel("splitLine"));if(u.get("show")){var h=u.getModel("lineStyle"),f=h.get("color"),c=Ta(h.get("opacity"),1),d=Ta(h.get("width"),1);f=Ot(f)?f:[f];for(var v=a.getTicksCoords({tickModel:u}),p=0,m=0;m65535?new Uint32Array(r*3):new Uint16Array(r*3))},setSpriteAlign:function(e,t,r,i,n){r==null&&(r="left"),i==null&&(i="top");var a,o,s,l;switch(n=n||0,r){case"left":a=n,s=t[0]+n;break;case"center":case"middle":a=-t[0]/2,s=t[0]/2;break;case"right":a=-t[0]-n,s=-n;break}switch(i){case"bottom":o=n,l=t[1]+n;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-n,l=-n;break}var u=e*4,h=this.attributes.offset;h.set(u,[a,l]),h.set(u+1,[s,l]),h.set(u+2,[s,o]),h.set(u+3,[a,o])},addSprite:function(e,t,r,i,n,a){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,i,n,a);for(var s=0;s 0.0) { - currProj = clipNear(currProj, nextProj); - } - else if (prevProj.w > 0.0) { - currProj = clipNear(currProj, prevProj); - } - } - - vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw; - vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw; - vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw; - - vec2 dir; - float len = offset; - if (position == positionPrev) { - dir = normalize(nextScreen - currScreen); - } - else if (position == positionNext) { - dir = normalize(currScreen - prevScreen); - } - else { - vec2 dirA = normalize(currScreen - prevScreen); - vec2 dirB = normalize(nextScreen - currScreen); - - vec2 tanget = normalize(dirA + dirB); - - float miter = 1.0 / max(dot(tanget, dirA), 0.5); - len *= miter; - dir = tanget; - } - - dir = vec2(-dir.y, dir.x) * len; - currScreen += dir; - - currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w); -@end - - -@export ecgl.meshLines3D.vertex - -attribute vec3 position: POSITION; -attribute vec3 positionPrev; -attribute vec3 positionNext; -attribute float offset; -attribute vec4 a_Color : COLOR; - -#ifdef VERTEX_ANIMATION -attribute vec3 prevPosition; -attribute vec3 prevPositionPrev; -attribute vec3 prevPositionNext; -uniform float percent : 1.0; -#endif - -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -uniform vec4 viewport : VIEWPORT; -uniform float near : NEAR; - -varying vec4 v_Color; - -@import ecgl.common.wireframe.vertexHeader - -@import ecgl.lines3D.clipNear - -void main() -{ - @import ecgl.lines3D.expandLine - - gl_Position = currProj; - - v_Color = a_Color; - - @import ecgl.common.wireframe.vertexMain -} -@end - - -@export ecgl.meshLines3D.fragment - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; - -varying vec4 v_Color; - -@import ecgl.common.wireframe.fragmentHeader - -@import clay.util.srgb - -void main() -{ -#ifdef SRGB_DECODE - gl_FragColor = sRGBToLinear(color * v_Color); -#else - gl_FragColor = color * v_Color; -#endif - - @import ecgl.common.wireframe.fragmentMain -} - -@end`,Yo=ee.firstNotNull;T.Shader.import(In);var fr={x:0,y:2,z:1},pc=Pi.extend({type:"grid3D",__ecgl__:!0,init:function(e,t){var r=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],i=["x","y","z"],n=new T.Material({shader:T.createShader("ecgl.color"),depthMask:!1,transparent:!0}),a=new T.Material({shader:T.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});n.define("fragment","DOUBLE_SIDED"),n.define("both","VERTEX_COLOR"),this.groupGL=new T.Node,this._control=new Rn({zr:t.getZr()}),this._control.init(),this._faces=r.map(function(s){var l=new Nn(s,a,n);return this.groupGL.add(l.rootNode),l},this),this._axes=i.map(function(s){var l=new Ha(s,a);return this.groupGL.add(l.rootNode),l},this);var o=t.getDevicePixelRatio();this._axisLabelSurface=new mn({width:256,height:256,devicePixelRatio:o}),this._axisLabelSurface.onupdate=function(){t.getZr().refresh()},this._axisPointerLineMesh=new T.Mesh({geometry:new Sr({useNativeLine:!1}),material:a,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new mn({width:128,height:128,devicePixelRatio:o}),this._axisPointerLabelsMesh=new za({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new T.Node,this._sceneHelper=new tr,this._sceneHelper.initLight(this._lightRoot)},render:function(e,t,r){this._model=e,this._api=r;var i=e.coordinateSystem;i.viewGL.add(this._lightRoot),e.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var n=this._control;n.setViewGL(i.viewGL);var a=e.getModel("viewControl");n.setFromViewControlModel(a,0),this._axisLabelSurface.clear(),n.off("update"),e.get("show")&&(this._faces.forEach(function(o){o.update(e,t,r)},this),this._axes.forEach(function(o){o.update(e,this._axisLabelSurface,r)},this)),n.on("update",this._onCameraChange.bind(this,e,r),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(e),i.viewGL.setPostEffect(e.getModel("postEffect"),r),i.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._initMouseHandler(e)},afterRender:function(e,t,r,i){var n=i.renderer;this._sceneHelper.updateAmbientCubemap(n,e,r),this._sceneHelper.updateSkybox(n,e,r)},showAxisPointer:function(e,t,r,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(e,t,r,i){this._doHideAxisPointer()},_initMouseHandler:function(e){var t=e.coordinateSystem,r=t.viewGL;e.get("show")&&e.get("axisPointer.show")?r.on("mousemove",this._updateAxisPointerOnMousePosition,this):r.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(e){if(!e.target){for(var t=this._model,r=t.coordinateSystem,i=r.viewGL,n=i.castRay(e.offsetX,e.offsetY,new T.Ray),a,o=0;oi[1]?0:1,s=this._faces[r*2+o],l=this._faces[r*2+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),i=e.getAxis("z"),n=i.getExtentMax(),a=i.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),u=r.getExtentMin(),h=this._axes[0].rootNode,f=this._axes[1].rootNode,c=this._axes[2].rootNode,d=this._faces,v=d[4].rootNode.invisible?u:l,p=d[2].rootNode.invisible?n:a,m=d[0].rootNode.invisible?o:s,_=d[2].rootNode.invisible?n:a,x=d[0].rootNode.invisible?s:o,y=d[4].rootNode.invisible?u:l;h.rotation.identity(),f.rotation.identity(),c.rotation.identity(),d[4].rootNode.invisible&&(this._axes[0].flipped=!0,h.rotation.rotateX(Math.PI)),d[0].rootNode.invisible&&(this._axes[1].flipped=!0,f.rotation.rotateZ(Math.PI)),d[4].rootNode.invisible&&(this._axes[2].flipped=!0,c.rotation.rotateY(Math.PI)),h.position.set(0,p,v),f.position.set(m,_,0),c.position.set(x,0,y),h.update(),f.update(),c.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new T.Vector4,new T.Vector4],r=new T.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach(function(i){var n=i.axisLineCoords;i.labelsMesh.geometry;for(var a=0;ar.y?"bottom":"top"):(f="middle",h=l>r.x?"left":"right"),i.setSpriteAlign(h,f,this._api)},this)},_doShowAxisPointer:function(){!this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),i=this._axisPointerLineMesh,n=i.geometry,a=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();n.convertToDynamicArray(!0);function s(S){return ee.firstNotNull(S.model.get("axisPointer.show"),a.get("show"))}function l(S){var C=S.model.getModel("axisPointer",a),P=C.getModel("lineStyle"),L=T.parseColor(P.get("color")),R=Yo(P.get("width"),1),I=Yo(P.get("opacity"),1);return L[3]*=I,{color:L,lineWidth:R}}for(var u=0;u 0.0) { - if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) { - discard; - } - } -#ifdef USE_VSM - depth = depth * 0.5 + 0.5; - float moment1 = depth; - float moment2 = depth * depth; - #ifdef SUPPORT_STANDARD_DERIVATIVES - float dx = dFdx(depth); - float dy = dFdy(depth); - moment2 += 0.25*(dx*dx+dy*dy); - #endif - gl_FragColor = vec4(moment1, moment2, 0.0, 1.0); -#else - #ifdef SUPPORT_STANDARD_DERIVATIVES - float dx = dFdx(depth); - float dy = dFdy(depth); - depth += sqrt(dx*dx + dy*dy) * slopeScale + bias; - #else - depth += bias; - #endif - gl_FragColor = encodeFloat(depth * 0.5 + 0.5); -#endif -} -@end -@export clay.sm.debug_depth -uniform sampler2D depthMap; -varying vec2 v_Texcoord; -@import clay.util.decode_float -void main() { - vec4 tex = texture2D(depthMap, v_Texcoord); -#ifdef USE_VSM - gl_FragColor = vec4(tex.rgb, 1.0); -#else - float depth = decodeFloat(tex); - gl_FragColor = vec4(depth, depth, depth, 1.0); -#endif -} -@end -@export clay.sm.distance.vertex -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -uniform mat4 world : WORLD; -attribute vec3 position : POSITION; -@import clay.chunk.skinning_header -varying vec3 v_WorldPosition; -void main (){ - vec4 P = vec4(position, 1.0); -#ifdef SKINNING - @import clay.chunk.skin_matrix - P = skinMatrixWS * P; -#endif -#ifdef INSTANCING - @import clay.chunk.instancing_matrix - P = instanceMat * P; -#endif - gl_Position = worldViewProjection * P; - v_WorldPosition = (world * P).xyz; -} -@end -@export clay.sm.distance.fragment -uniform vec3 lightPosition; -uniform float range : 100; -varying vec3 v_WorldPosition; -@import clay.util.encode_float -void main(){ - float dist = distance(lightPosition, v_WorldPosition); -#ifdef USE_VSM - gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0); -#else - dist = dist / range; - gl_FragColor = encodeFloat(dist); -#endif -} -@end -@export clay.plugin.shadow_map_common -@import clay.util.decode_float -float tapShadowMap(sampler2D map, vec2 uv, float z){ - vec4 tex = texture2D(map, uv); - return step(z, decodeFloat(tex) * 2.0 - 1.0); -} -float pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) { - float shadowContrib = tapShadowMap(map, uv, z); - vec2 offset = vec2(1.0 / textureSize) * scale; -#ifdef PCF_KERNEL_SIZE - for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{ - shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z); - }} - return shadowContrib / float(PCF_KERNEL_SIZE + 1); -#else - shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z); - shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z); - shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z); - shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z); - shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z); - shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z); - shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z); - shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z); - return shadowContrib / 9.0; -#endif -} -float pcf(sampler2D map, vec2 uv, float z, float textureSize) { - return pcf(map, uv, z, textureSize, vec2(1.0)); -} -float chebyshevUpperBound(vec2 moments, float z){ - float p = 0.0; - z = z * 0.5 + 0.5; - if (z <= moments.x) { - p = 1.0; - } - float variance = moments.y - moments.x * moments.x; - variance = max(variance, 0.0000001); - float mD = moments.x - z; - float pMax = variance / (variance + mD * mD); - pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0); - return max(p, pMax); -} -float computeShadowContrib( - sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset -) { - vec4 posInLightSpace = lightVPM * vec4(position, 1.0); - posInLightSpace.xyz /= posInLightSpace.w; - float z = posInLightSpace.z; - if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) && - all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){ - vec2 uv = (posInLightSpace.xy+1.0) / 2.0; - #ifdef USE_VSM - vec2 moments = texture2D(map, uv * scale + offset).xy; - return chebyshevUpperBound(moments, z); - #else - return pcf(map, uv * scale + offset, z, textureSize, scale); - #endif - } - return 1.0; -} -float computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) { - return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0)); -} -float computeShadowContribOmni(samplerCube map, vec3 direction, float range) -{ - float dist = length(direction); - vec4 shadowTex = textureCube(map, direction); -#ifdef USE_VSM - vec2 moments = shadowTex.xy; - float variance = moments.y - moments.x * moments.x; - float mD = moments.x - dist; - float p = variance / (variance + mD * mD); - if(moments.x + 0.001 < dist){ - return clamp(p, 0.0, 1.0); - }else{ - return 1.0; - } -#else - return step(dist, (decodeFloat(shadowTex) + 0.0002) * range); -#endif -} -@end -@export clay.plugin.compute_shadow_map -#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT) -#ifdef SPOT_LIGHT_SHADOWMAP_COUNT -uniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -uniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -uniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -#endif -#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT -#if defined(SHADOW_CASCADE) -uniform sampler2D directionalLightShadowMaps[1]:unconfigurable; -uniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable; -uniform float directionalLightShadowMapSizes[1]:unconfigurable; -uniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable; -uniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable; -#else -uniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -uniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -uniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -#endif -#endif -#ifdef POINT_LIGHT_SHADOWMAP_COUNT -uniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable; -#endif -uniform bool shadowEnabled : true; -#ifdef PCF_KERNEL_SIZE -uniform vec2 pcfKernel[PCF_KERNEL_SIZE]; -#endif -@import clay.plugin.shadow_map_common -#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) -void computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) { - float shadowContrib; - for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ - shadowContrib = computeShadowContrib( - spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position, - spotLightShadowMapSizes[_idx_] - ); - shadowContribs[_idx_] = shadowContrib; - }} - for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{ - shadowContribs[_idx_] = 1.0; - }} -} -#endif -#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) -#ifdef SHADOW_CASCADE -void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ - float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far) - / (gl_DepthRange.far - gl_DepthRange.near); - float shadowContrib; - shadowContribs[0] = 1.0; - for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{ - if ( - depth >= shadowCascadeClipsNear[_idx_] && - depth <= shadowCascadeClipsFar[_idx_] - ) { - shadowContrib = computeShadowContrib( - directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position, - directionalLightShadowMapSizes[0], - vec2(1.0 / float(SHADOW_CASCADE), 1.0), - vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0) - ); - shadowContribs[0] = shadowContrib; - } - }} - for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ - shadowContribs[_idx_] = 1.0; - }} -} -#else -void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ - float shadowContrib; - for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ - shadowContrib = computeShadowContrib( - directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position, - directionalLightShadowMapSizes[_idx_] - ); - shadowContribs[_idx_] = shadowContrib; - }} - for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ - shadowContribs[_idx_] = 1.0; - }} -} -#endif -#endif -#if defined(POINT_LIGHT_SHADOWMAP_COUNT) -void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){ - vec3 lightPosition; - vec3 direction; - for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ - lightPosition = pointLightPosition[_idx_]; - direction = position - lightPosition; - shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]); - }} - for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{ - shadowContribs[_idx_] = 1.0; - }} -} -#endif -#endif -@end`,Yt=["px","nx","py","ny","pz","nz"];N.import(gc);function na(e,t,r){if(r==="alphaMap")return e.material.get("diffuseMap");if(r==="alphaCutoff"){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var i=e.material.get("alphaCutoff");return i||0}return 0}else return r==="uvRepeat"?e.material.get("uvRepeat"):r==="uvOffset"?e.material.get("uvOffset"):t.get(r)}function $o(e,t){var r=e.material,i=t.material;return r.get("diffuseMap")!==i.get("diffuseMap")||(r.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)}var Nt=ot.extend(function(){return{softShadow:Nt.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new qe,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new ol}},function(){this._gaussianPassH=new Ne({fragment:N.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new Ne({fragment:N.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new Ne({fragment:N.source("clay.sm.debug_depth")})},{render:function(e,t,r,i){r||(r=t.getMainCamera()),this.trigger("beforerender",this,e,t,r),this._renderShadowPass(e,t,r,i),this.trigger("afterrender",this,e,t,r)},renderDebug:function(e,t){e.saveClear();var r=e.viewport,i=0,n=0,a=t||r.width/4,o=a;this.softShadow===Nt.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM");for(var s in this._textures){var l=this._textures[s];e.setViewport(i,n,a*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(e),i+=a*l.width/l.height}e.setViewport(r),e.restoreClear()},_updateReceivers:function(e,t){if(t.receiveShadow?(this._receivers.push(t),t.material.set("shadowEnabled",1),t.material.set("pcfKernel",this.kernelPCF)):t.material.set("shadowEnabled",0),this.softShadow===Nt.VSM)t.material.define("fragment","USE_VSM"),t.material.undefine("fragment","PCF_KERNEL_SIZE");else{t.material.undefine("fragment","USE_VSM");var r=this.kernelPCF;r&&r.length?t.material.define("fragment","PCF_KERNEL_SIZE",r.length/2):t.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(e,t){var r=this;t.traverse(function(a){a.isRenderable()&&r._updateReceivers(e,a)});for(var i=0;i4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(c=v),this.renderDirectionalLightShadow(e,t,r,v,h,u,l)}else v.type==="SPOT_LIGHT"?this.renderSpotLightShadow(e,t,v,s,o):v.type==="POINT_LIGHT"&&this.renderPointLightShadow(e,t,v,f);this._shadowMapNumber[v.type]++}for(var p in this._shadowMapNumber)for(var m=this._shadowMapNumber[p],_=p+"_SHADOWMAP_COUNT",d=0;d0?y.define("fragment",_,m):y.isDefined("fragment",_)&&y.undefine("fragment",_))}for(var d=0;d0){var E=l.map(w);if(g.directionalLightShadowMaps={value:l,type:"tv"},g.directionalLightMatrices={value:u,type:"m4v"},g.directionalLightShadowMapSizes={value:E,type:"1fv"},c){var A=h.slice(),S=h.slice();A.pop(),S.shift(),A.reverse(),S.reverse(),u.reverse(),g.shadowCascadeClipsNear={value:A,type:"1fv"},g.shadowCascadeClipsFar={value:S,type:"1fv"}}}if(o.length>0){var C=o.map(w),g=t.shadowUniforms;g.spotLightShadowMaps={value:o,type:"tv"},g.spotLightMatrices={value:s,type:"m4v"},g.spotLightShadowMapSizes={value:C,type:"1fv"}}f.length>0&&(g.pointLightShadowMaps={value:f,type:"tv"})},renderDirectionalLightShadow:function(){var e=new Ba,t=new k,r=new it,i=new k,n=new k,a=new k,o=new k;return function(s,l,u,h,f,c,d){var v=this._getDepthMaterial(h),p={getMaterial:function(ge){return ge.shadowDepthMaterial||v},isMaterialChanged:$o,getUniform:na,ifRender:function(ge){return ge.castShadow},sortCompare:gi.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var m=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(m).applyTransform(u.viewMatrix)}var _=Math.min(-l.viewBoundingBoxLastFrame.min.z,u.far),x=Math.max(-l.viewBoundingBoxLastFrame.max.z,u.near),y=this._getDirectionalLightCamera(h,l,u),g=a.array;o.copy(y.projectionMatrix),F.invert(n.array,y.worldTransform.array),F.multiply(n.array,n.array,u.worldTransform.array),F.multiply(g,o.array,n.array);for(var w=[],E=u instanceof Ve,A=(u.near+u.far)/(u.near-u.far),S=2*u.near*u.far/(u.near-u.far),C=0;C<=h.shadowCascade;C++){var P=x*Math.pow(_/x,C/h.shadowCascade),L=x+(_-x)*C/h.shadowCascade,R=P*h.cascadeSplitLogFactor+L*(1-h.cascadeSplitLogFactor);w.push(R),f.push(-(-R*A+S)/-R)}var I=this._getTexture(h,h.shadowCascade);d.push(I);var M=s.viewport,B=s.gl;this._frameBuffer.attach(I),this._frameBuffer.bind(s),B.clear(B.COLOR_BUFFER_BIT|B.DEPTH_BUFFER_BIT);for(var C=0;CP?C>L?v[E>0?"px":"nx"]=!0:v[S>0?"pz":"nz"]=!0:P>L?v[A>0?"py":"ny"]=!0:v[S>0?"pz":"nz"]=!0}for(var g=0;g0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}}),Si=xc,Tc=ot.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){typeof e=="string"&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t=t.COLOR_ATTACHMENT0&&l<=t.COLOR_ATTACHMENT0+8&&h.push(l);u.drawBuffersEXT(h)}e.saveClear(),e.clearBit=D.DEPTH_BUFFER_BIT|D.COLOR_BUFFER_BIT,r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),i.unbind(e)}this.trigger("afterrender",r),this._rendering=!1,this._rendered=!0}}),bc=Sc,Ac=Si.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}}),Cc=Ac,Lc=Si.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var e=new Ne({fragment:this.shader});this.pass=e},{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var i in this.inputLinks){var n=this.inputLinks[i],a=n.node.getOutput(e,n.pin);this.pass.setUniform(i,a)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);else{this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var u=this.outputs[s],h=this._compositor.allocateTexture(l);this._outputTextures[s]=h;var f=u.attachment||r.COLOR_ATTACHMENT0;typeof f=="string"&&(f=r[f]),o[f]=h}this._compositor.getFrameBuffer().bind(e);for(var f in o)this._compositor.getFrameBuffer().attach(o[f],f);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}for(var i in this.inputLinks){var n=this.inputLinks[i];n.node.removeReference(n.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r=this.outputs[e],i=r.parameters,n=r._parametersCopy;if(n||(n=r._parametersCopy={}),i)for(var a in i)a!=="width"&&a!=="height"&&(n[a]=i[a]);var o,s;return typeof i.width=="function"?o=i.width.call(this,t):o=i.width,typeof i.height=="function"?s=i.height.call(this,t):s=i.height,o=Math.ceil(o),s=Math.ceil(s),(n.width!==o||n.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t),n.width=o,n.height=s,n},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){Si.prototype.clear.call(this),this.pass.material.disableTexturesAll()}}),Dc=Lc,Mc=`@export clay.compositor.coloradjust -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float brightness : 0.0; -uniform float contrast : 1.0; -uniform float exposure : 0.0; -uniform float gamma : 1.0; -uniform float saturation : 1.0; -const vec3 w = vec3(0.2125, 0.7154, 0.0721); -void main() -{ - vec4 tex = texture2D( texture, v_Texcoord); - vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0); - color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); - color = clamp( color * pow(2.0, exposure), 0.0, 1.0); - color = clamp( pow(color, vec3(gamma)), 0.0, 1.0); - float luminance = dot( color, w ); - color = mix(vec3(luminance), color, saturation); - gl_FragColor = vec4(color, tex.a); -} -@end -@export clay.compositor.brightness -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float brightness : 0.0; -void main() -{ - vec4 tex = texture2D( texture, v_Texcoord); - vec3 color = tex.rgb + vec3(brightness); - gl_FragColor = vec4(color, tex.a); -} -@end -@export clay.compositor.contrast -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float contrast : 1.0; -void main() -{ - vec4 tex = texture2D( texture, v_Texcoord); - vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5); - gl_FragColor = vec4(color, tex.a); -} -@end -@export clay.compositor.exposure -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float exposure : 0.0; -void main() -{ - vec4 tex = texture2D(texture, v_Texcoord); - vec3 color = tex.rgb * pow(2.0, exposure); - gl_FragColor = vec4(color, tex.a); -} -@end -@export clay.compositor.gamma -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float gamma : 1.0; -void main() -{ - vec4 tex = texture2D(texture, v_Texcoord); - vec3 color = pow(tex.rgb, vec3(gamma)); - gl_FragColor = vec4(color, tex.a); -} -@end -@export clay.compositor.saturation -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float saturation : 1.0; -const vec3 w = vec3(0.2125, 0.7154, 0.0721); -void main() -{ - vec4 tex = texture2D(texture, v_Texcoord); - vec3 color = tex.rgb; - float luminance = dot(color, w); - color = mix(vec3(luminance), color, saturation); - gl_FragColor = vec4(color, tex.a); -} -@end`,sl=`@export clay.compositor.kernel.gaussian_9 -float gaussianKernel[9]; -gaussianKernel[0] = 0.07; -gaussianKernel[1] = 0.09; -gaussianKernel[2] = 0.12; -gaussianKernel[3] = 0.14; -gaussianKernel[4] = 0.16; -gaussianKernel[5] = 0.14; -gaussianKernel[6] = 0.12; -gaussianKernel[7] = 0.09; -gaussianKernel[8] = 0.07; -@end -@export clay.compositor.kernel.gaussian_13 -float gaussianKernel[13]; -gaussianKernel[0] = 0.02; -gaussianKernel[1] = 0.03; -gaussianKernel[2] = 0.06; -gaussianKernel[3] = 0.08; -gaussianKernel[4] = 0.11; -gaussianKernel[5] = 0.13; -gaussianKernel[6] = 0.14; -gaussianKernel[7] = 0.13; -gaussianKernel[8] = 0.11; -gaussianKernel[9] = 0.08; -gaussianKernel[10] = 0.06; -gaussianKernel[11] = 0.03; -gaussianKernel[12] = 0.02; -@end -@export clay.compositor.gaussian_blur -#define SHADER_NAME gaussian_blur -uniform sampler2D texture;varying vec2 v_Texcoord; -uniform float blurSize : 2.0; -uniform vec2 textureSize : [512.0, 512.0]; -uniform float blurDir : 0.0; -@import clay.util.rgbm -@import clay.util.clamp_sample -void main (void) -{ - @import clay.compositor.kernel.gaussian_9 - vec2 off = blurSize / textureSize; - off *= vec2(1.0 - blurDir, blurDir); - vec4 sum = vec4(0.0); - float weightAll = 0.0; - for (int i = 0; i < 9; i++) { - float w = gaussianKernel[i]; - vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off)); - sum += texel * w; - weightAll += w; - } - gl_FragColor = encodeHDR(sum / max(weightAll, 0.01)); -} -@end -`,Pc=`@export clay.compositor.hdr.log_lum -varying vec2 v_Texcoord; -uniform sampler2D texture; -const vec3 w = vec3(0.2125, 0.7154, 0.0721); -@import clay.util.rgbm -void main() -{ - vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); - float luminance = dot(tex.rgb, w); - luminance = log(luminance + 0.001); - gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0)); -} -@end -@export clay.compositor.hdr.lum_adaption -varying vec2 v_Texcoord; -uniform sampler2D adaptedLum; -uniform sampler2D currentLum; -uniform float frameTime : 0.02; -@import clay.util.rgbm -void main() -{ - float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r; - float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r); - fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime)); - gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0)); -} -@end -@export clay.compositor.lum -varying vec2 v_Texcoord; -uniform sampler2D texture; -const vec3 w = vec3(0.2125, 0.7154, 0.0721); -void main() -{ - vec4 tex = texture2D( texture, v_Texcoord ); - float luminance = dot(tex.rgb, w); - gl_FragColor = vec4(vec3(luminance), 1.0); -} -@end`,ll=` -@export clay.compositor.lut -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform sampler2D lookup; -void main() -{ - vec4 tex = texture2D(texture, v_Texcoord); - float blueColor = tex.b * 63.0; - vec2 quad1; - quad1.y = floor(floor(blueColor) / 8.0); - quad1.x = floor(blueColor) - (quad1.y * 8.0); - vec2 quad2; - quad2.y = floor(ceil(blueColor) / 8.0); - quad2.x = ceil(blueColor) - (quad2.y * 8.0); - vec2 texPos1; - texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); - texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); - vec2 texPos2; - texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); - texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); - vec4 newColor1 = texture2D(lookup, texPos1); - vec4 newColor2 = texture2D(lookup, texPos2); - vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); - gl_FragColor = vec4(newColor.rgb, tex.w); -} -@end`,Rc=`@export clay.compositor.vignette -#define OUTPUT_ALPHA -varying vec2 v_Texcoord; -uniform sampler2D texture; -uniform float darkness: 1; -uniform float offset: 1; -@import clay.util.rgbm -void main() -{ - vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); - gl_FragColor.rgb = texel.rgb; - vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset); - gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a)); -} -@end`,ul=`@export clay.compositor.output -#define OUTPUT_ALPHA -varying vec2 v_Texcoord; -uniform sampler2D texture; -@import clay.util.rgbm -void main() -{ - vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); - gl_FragColor.rgb = tex.rgb; -#ifdef OUTPUT_ALPHA - gl_FragColor.a = tex.a; -#else - gl_FragColor.a = 1.0; -#endif - gl_FragColor = encodeHDR(gl_FragColor); -#ifdef PREMULTIPLY_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif -} -@end`,hl=`@export clay.compositor.bright -uniform sampler2D texture; -uniform float threshold : 1; -uniform float scale : 1.0; -uniform vec2 textureSize: [512, 512]; -varying vec2 v_Texcoord; -const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721); -@import clay.util.rgbm -vec4 median(vec4 a, vec4 b, vec4 c) -{ - return a + b + c - min(min(a, b), c) - max(max(a, b), c); -} -void main() -{ - vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); -#ifdef ANTI_FLICKER - vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0); - vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz)); - vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz)); - vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy)); - vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy)); - texel = median(median(texel, s1, s2), s3, s4); -#endif - float lum = dot(texel.rgb , lumWeight); - vec4 color; - if (lum > threshold && texel.a > 0.0) - { - color = vec4(texel.rgb * scale, texel.a * scale); - } - else - { - color = vec4(0.0); - } - gl_FragColor = encodeHDR(color); -} -@end -`,fl=`@export clay.compositor.downsample -uniform sampler2D texture; -uniform vec2 textureSize : [512, 512]; -varying vec2 v_Texcoord; -@import clay.util.rgbm -float brightness(vec3 c) -{ - return max(max(c.r, c.g), c.b); -} -@import clay.util.clamp_sample -void main() -{ - vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy; -#ifdef ANTI_FLICKER - vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb; - vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb; - vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb; - vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb; - float s1w = 1.0 / (brightness(s1) + 1.0); - float s2w = 1.0 / (brightness(s2) + 1.0); - float s3w = 1.0 / (brightness(s3) + 1.0); - float s4w = 1.0 / (brightness(s4) + 1.0); - float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w); - vec4 color = vec4( - (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum, - 1.0 - ); -#else - vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); - color += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); - color += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); - color += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); - color *= 0.25; -#endif - gl_FragColor = encodeHDR(color); -} -@end`,cl=` -@export clay.compositor.upsample -#define HIGH_QUALITY -uniform sampler2D texture; -uniform vec2 textureSize : [512, 512]; -uniform float sampleScale: 0.5; -varying vec2 v_Texcoord; -@import clay.util.rgbm -@import clay.util.clamp_sample -void main() -{ -#ifdef HIGH_QUALITY - vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale; - vec4 s; - s = decodeHDR(clampSample(texture, v_Texcoord - d.xy)); - s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0; - s += decodeHDR(clampSample(texture, v_Texcoord - d.zy)); - s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0; - s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0; - s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0; - s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); - s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0; - s += decodeHDR(clampSample(texture, v_Texcoord + d.xy)); - gl_FragColor = encodeHDR(s / 16.0); -#else - vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy; - vec4 s; - s = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); - s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); - s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); - s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); - gl_FragColor = encodeHDR(s / 4.0); -#endif -} -@end`,dl=`@export clay.compositor.hdr.composite -#define TONEMAPPING -uniform sampler2D texture; -#ifdef BLOOM_ENABLED -uniform sampler2D bloom; -#endif -#ifdef LENSFLARE_ENABLED -uniform sampler2D lensflare; -uniform sampler2D lensdirt; -#endif -#ifdef LUM_ENABLED -uniform sampler2D lum; -#endif -#ifdef LUT_ENABLED -uniform sampler2D lut; -#endif -#ifdef COLOR_CORRECTION -uniform float brightness : 0.0; -uniform float contrast : 1.0; -uniform float saturation : 1.0; -#endif -#ifdef VIGNETTE -uniform float vignetteDarkness: 1.0; -uniform float vignetteOffset: 1.0; -#endif -uniform float exposure : 1.0; -uniform float bloomIntensity : 0.25; -uniform float lensflareIntensity : 1; -varying vec2 v_Texcoord; -@import clay.util.srgb -vec3 ACESToneMapping(vec3 color) -{ - const float A = 2.51; - const float B = 0.03; - const float C = 2.43; - const float D = 0.59; - const float E = 0.14; - return (color * (A * color + B)) / (color * (C * color + D) + E); -} -float eyeAdaption(float fLum) -{ - return mix(0.2, fLum, 0.5); -} -#ifdef LUT_ENABLED -vec3 lutTransform(vec3 color) { - float blueColor = color.b * 63.0; - vec2 quad1; - quad1.y = floor(floor(blueColor) / 8.0); - quad1.x = floor(blueColor) - (quad1.y * 8.0); - vec2 quad2; - quad2.y = floor(ceil(blueColor) / 8.0); - quad2.x = ceil(blueColor) - (quad2.y * 8.0); - vec2 texPos1; - texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); - texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); - vec2 texPos2; - texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); - texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); - vec4 newColor1 = texture2D(lut, texPos1); - vec4 newColor2 = texture2D(lut, texPos2); - vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); - return newColor.rgb; -} -#endif -@import clay.util.rgbm -void main() -{ - vec4 texel = vec4(0.0); - vec4 originalTexel = vec4(0.0); -#ifdef TEXTURE_ENABLED - texel = decodeHDR(texture2D(texture, v_Texcoord)); - originalTexel = texel; -#endif -#ifdef BLOOM_ENABLED - vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord)); - texel.rgb += bloomTexel.rgb * bloomIntensity; - texel.a += bloomTexel.a * bloomIntensity; -#endif -#ifdef LENSFLARE_ENABLED - texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity; -#endif - texel.a = min(texel.a, 1.0); -#ifdef LUM_ENABLED - float fLum = texture2D(lum, vec2(0.5, 0.5)).r; - float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum))); - float exposureBias = adaptedLumDest * exposure; -#else - float exposureBias = exposure; -#endif -#ifdef TONEMAPPING - texel.rgb *= exposureBias; - texel.rgb = ACESToneMapping(texel.rgb); -#endif - texel = linearTosRGB(texel); -#ifdef LUT_ENABLED - texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0))); -#endif -#ifdef COLOR_CORRECTION - texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0); - texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); - float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721)); - texel.rgb = mix(vec3(lum), texel.rgb, saturation); -#endif -#ifdef VIGNETTE - vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset); - texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv)); -#endif - gl_FragColor = encodeHDR(texel); -#ifdef DEBUG - #if DEBUG == 1 - gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord))); - #elif DEBUG == 2 - gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity); - #elif DEBUG == 3 - gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity)); - #endif -#endif - if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) { - gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721)); - } -#ifdef PREMULTIPLY_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif -} -@end`,Nc=`@export clay.compositor.lensflare -#define SAMPLE_NUMBER 8 -uniform sampler2D texture; -uniform sampler2D lenscolor; -uniform vec2 textureSize : [512, 512]; -uniform float dispersal : 0.3; -uniform float haloWidth : 0.4; -uniform float distortion : 1.0; -varying vec2 v_Texcoord; -@import clay.util.rgbm -vec4 textureDistorted( - in vec2 texcoord, - in vec2 direction, - in vec3 distortion -) { - return vec4( - decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r, - decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g, - decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b, - 1.0 - ); -} -void main() -{ - vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize; - vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal; - vec2 haloVec = normalize(ghostVec) * haloWidth; - vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion); - vec4 result = vec4(0.0); - for (int i = 0; i < SAMPLE_NUMBER; i++) - { - vec2 offset = fract(texcoord + ghostVec * float(i)); - float weight = length(vec2(0.5) - offset) / length(vec2(0.5)); - weight = pow(1.0 - weight, 10.0); - result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; - } - result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5))); - float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5)); - weight = pow(1.0 - weight, 10.0); - vec2 offset = fract(texcoord + haloVec); - result += textureDistorted(offset, normalize(ghostVec), distortion) * weight; - gl_FragColor = result; -} -@end`,vl=`@export clay.compositor.blend -#define SHADER_NAME blend -#ifdef TEXTURE1_ENABLED -uniform sampler2D texture1; -uniform float weight1 : 1.0; -#endif -#ifdef TEXTURE2_ENABLED -uniform sampler2D texture2; -uniform float weight2 : 1.0; -#endif -#ifdef TEXTURE3_ENABLED -uniform sampler2D texture3; -uniform float weight3 : 1.0; -#endif -#ifdef TEXTURE4_ENABLED -uniform sampler2D texture4; -uniform float weight4 : 1.0; -#endif -#ifdef TEXTURE5_ENABLED -uniform sampler2D texture5; -uniform float weight5 : 1.0; -#endif -#ifdef TEXTURE6_ENABLED -uniform sampler2D texture6; -uniform float weight6 : 1.0; -#endif -varying vec2 v_Texcoord; -@import clay.util.rgbm -void main() -{ - vec4 tex = vec4(0.0); -#ifdef TEXTURE1_ENABLED - tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1; -#endif -#ifdef TEXTURE2_ENABLED - tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2; -#endif -#ifdef TEXTURE3_ENABLED - tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3; -#endif -#ifdef TEXTURE4_ENABLED - tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4; -#endif -#ifdef TEXTURE5_ENABLED - tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5; -#endif -#ifdef TEXTURE6_ENABLED - tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6; -#endif - gl_FragColor = encodeHDR(tex); -} -@end`,pl=`@export clay.compositor.fxaa -uniform sampler2D texture; -uniform vec4 viewport : VIEWPORT; -varying vec2 v_Texcoord; -#define FXAA_REDUCE_MIN (1.0/128.0) -#define FXAA_REDUCE_MUL (1.0/8.0) -#define FXAA_SPAN_MAX 8.0 -@import clay.util.rgbm -void main() -{ - vec2 resolution = 1.0 / viewport.zw; - vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz; - vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz; - vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz; - vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz; - vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) ); - vec3 rgbM = rgbaM.xyz; - float opacity = rgbaM.w; - vec3 luma = vec3( 0.299, 0.587, 0.114 ); - float lumaNW = dot( rgbNW, luma ); - float lumaNE = dot( rgbNE, luma ); - float lumaSW = dot( rgbSW, luma ); - float lumaSE = dot( rgbSE, luma ); - float lumaM = dot( rgbM, luma ); - float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) ); - float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) ); - vec2 dir; - dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); - dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); - float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN ); - float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce ); - dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX), - max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), - dir * rcpDirMin)) * resolution; - vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz; - rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz; - rgbA *= 0.5; - vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz; - rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz; - rgbB *= 0.25; - rgbB += rgbA * 0.5; - float lumaB = dot( rgbB, luma ); - if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) ) - { - gl_FragColor = vec4( rgbA, opacity ); - } - else { - gl_FragColor = vec4( rgbB, opacity ); - } -} -@end`;function Ic(e){e.import(Mc),e.import(sl),e.import(Pc),e.import(ll),e.import(Rc),e.import(ul),e.import(hl),e.import(fl),e.import(cl),e.import(dl),e.import(Nc),e.import(vl),e.import(pl)}Ic(N);var Oc=/^#source\((.*?)\)/;function Bc(e,t){var r=new Ec;t=t||{};var i={textures:{},parameters:{}},n=function(s,l){for(var u=0;u0;)r=r+i*(n%t),n=Math.floor(n/t),i=i/t;return r}var kc=`@export ecgl.ssao.estimate - -uniform sampler2D depthTex; - -uniform sampler2D normalTex; - -uniform sampler2D noiseTex; - -uniform vec2 depthTexSize; - -uniform vec2 noiseTexSize; - -uniform mat4 projection; - -uniform mat4 projectionInv; - -uniform mat4 viewInverseTranspose; - -uniform vec3 kernel[KERNEL_SIZE]; - -uniform float radius : 1; - -uniform float power : 1; - -uniform float bias: 1e-2; - -uniform float intensity: 1.0; - -varying vec2 v_Texcoord; - -float ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) { - float occlusion = 0.0; - - for (int i = 0; i < KERNEL_SIZE; i++) { - vec3 samplePos = kernel[i]; -#ifdef NORMALTEX_ENABLED - samplePos = kernelBasis * samplePos; -#endif - samplePos = samplePos * radius + originPos; - - vec4 texCoord = projection * vec4(samplePos, 1.0); - texCoord.xy /= texCoord.w; - - vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5); - - float sampleDepth = depthTexel.r * 2.0 - 1.0; - if (projection[3][3] == 0.0) { - sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]); - } - else { - sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2]; - } - - float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth)); - occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias); - } -#ifdef NORMALTEX_ENABLED - occlusion = 1.0 - occlusion / float(KERNEL_SIZE); -#else - occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0); -#endif - return pow(occlusion, power); -} - -void main() -{ - - vec4 depthTexel = texture2D(depthTex, v_Texcoord); - -#ifdef NORMALTEX_ENABLED - vec4 tex = texture2D(normalTex, v_Texcoord); - if (dot(tex.rgb, tex.rgb) == 0.0) { - gl_FragColor = vec4(1.0); - return; - } - vec3 N = tex.rgb * 2.0 - 1.0; - N = (viewInverseTranspose * vec4(N, 0.0)).xyz; - - vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord; - vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0; - vec3 T = normalize(rvec - N * dot(rvec, N)); - vec3 BT = normalize(cross(N, T)); - mat3 kernelBasis = mat3(T, BT, N); -#else - if (depthTexel.r > 0.99999) { - gl_FragColor = vec4(1.0); - return; - } - mat3 kernelBasis; -#endif - - float z = depthTexel.r * 2.0 - 1.0; - - vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); - vec4 p4 = projectionInv * projectedPos; - - vec3 position = p4.xyz / p4.w; - - float ao = ssaoEstimator(position, kernelBasis); - ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0); - gl_FragColor = vec4(vec3(ao), 1.0); -} - -@end - - -@export ecgl.ssao.blur -#define SHADER_NAME SSAO_BLUR - -uniform sampler2D ssaoTexture; - -#ifdef NORMALTEX_ENABLED -uniform sampler2D normalTex; -#endif - -varying vec2 v_Texcoord; - -uniform vec2 textureSize; -uniform float blurSize : 1.0; - -uniform int direction: 0.0; - -#ifdef DEPTHTEX_ENABLED -uniform sampler2D depthTex; -uniform mat4 projection; -uniform float depthRange : 0.5; - -float getLinearDepth(vec2 coord) -{ - float depth = texture2D(depthTex, coord).r * 2.0 - 1.0; - return projection[3][2] / (depth * projection[2][3] - projection[2][2]); -} -#endif - -void main() -{ - float kernel[5]; - kernel[0] = 0.122581; - kernel[1] = 0.233062; - kernel[2] = 0.288713; - kernel[3] = 0.233062; - kernel[4] = 0.122581; - - vec2 off = vec2(0.0); - if (direction == 0) { - off[0] = blurSize / textureSize.x; - } - else { - off[1] = blurSize / textureSize.y; - } - - vec2 coord = v_Texcoord; - - float sum = 0.0; - float weightAll = 0.0; - -#ifdef NORMALTEX_ENABLED - vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0; -#endif -#if defined(DEPTHTEX_ENABLED) - float centerDepth = getLinearDepth(v_Texcoord); -#endif - - for (int i = 0; i < 5; i++) { - vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0)); - - float w = kernel[i]; -#ifdef NORMALTEX_ENABLED - vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0; - w *= clamp(dot(normal, centerNormal), 0.0, 1.0); -#endif -#ifdef DEPTHTEX_ENABLED - float d = getLinearDepth(coord); - w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0)); -#endif - - weightAll += w; - sum += texture2D(ssaoTexture, coord).r * w; - } - - gl_FragColor = vec4(vec3(sum / weightAll), 1.0); -} - -@end -`;N.import(kc);function _l(e){for(var t=new Uint8Array(e*e*4),r=0,i=new G,n=0;n 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0); - vec3 tangentX = normalize(cross(N, upVector)); - vec3 tangentZ = cross(N, tangentX); - return normalize(tangentX * H.x + N * H.y + tangentZ * H.z); -} -vec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) { - float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES)); - vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb; - return transformNormal(H, N); -} -float G_Smith(float g, float ndv, float ndl) { - float roughness = 1.0 - g; - float k = roughness * roughness / 2.0; - float G1V = ndv / (ndv * (1.0 - k) + k); - float G1L = ndl / (ndl * (1.0 - k) + k); - return G1L * G1V; -} -vec3 F_Schlick(float ndv, vec3 spec) { - return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); -} -#endif - -float fetchDepth(sampler2D depthTexture, vec2 uv) -{ - vec4 depthTexel = texture2D(depthTexture, uv); - return depthTexel.r * 2.0 - 1.0; -} - -float linearDepth(float depth) -{ - if (projection[3][3] == 0.0) { - return projection[3][2] / (depth * projection[2][3] - projection[2][2]); - } - else { - return (depth - projection[3][2]) / projection[2][2]; - } -} - -bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel) -{ - if (rayZFar > rayZNear) - { - float t = rayZFar; rayZFar = rayZNear; rayZNear = t; - } - float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel)); - return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold; -} - - -bool traceScreenSpaceRay( - vec3 rayOrigin, vec3 rayDir, float jitter, - out vec2 hitPixel, out vec3 hitPoint, out float iterationCount -) -{ - float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ) - ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance; - - vec3 rayEnd = rayOrigin + rayDir * rayLength; - - vec4 H0 = projection * vec4(rayOrigin, 1.0); - vec4 H1 = projection * vec4(rayEnd, 1.0); - - float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w; - - vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1; - - vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize; - vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize; - - P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0; - vec2 delta = P1 - P0; - - bool permute = false; - if (abs(delta.x) < abs(delta.y)) { - permute = true; - delta = delta.yx; - P0 = P0.yx; - P1 = P1.yx; - } - float stepDir = sign(delta.x); - float invdx = stepDir / delta.x; - - vec3 dQ = (Q1 - Q0) * invdx; - float dk = (k1 - k0) * invdx; - - vec2 dP = vec2(stepDir, delta.y * invdx); - - float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff); - float pixStride = 1.0 + strideScaler * pixelStride; - - dP *= pixStride; dQ *= pixStride; dk *= pixStride; - - vec4 pqk = vec4(P0, Q0.z, k0); - vec4 dPQK = vec4(dP, dQ.z, dk); - - pqk += dPQK * jitter; - float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); - float rayZNear; - - bool intersect = false; - - vec2 texelSize = 1.0 / viewportSize; - - iterationCount = 0.0; - - for (int i = 0; i < MAX_ITERATION; i++) - { - pqk += dPQK; - - rayZNear = rayZFar; - rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); - - hitPixel = permute ? pqk.yx : pqk.xy; - hitPixel *= texelSize; - - intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel); - - iterationCount += 1.0; - - dPQK *= 1.2; - - if (intersect) { - break; - } - } - - Q0.xy += dQ.xy * iterationCount; - Q0.z = pqk.z; - hitPoint = Q0 / pqk.w; - - return intersect; -} - -float calculateAlpha( - float iterationCount, float reflectivity, - vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir -) -{ - float alpha = clamp(reflectivity, 0.0, 1.0); - alpha *= 1.0 - (iterationCount / float(MAX_ITERATION)); - vec2 hitPixelNDC = hitPixel * 2.0 - 1.0; - float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y))); - alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart); - - float _eyeFadeStart = eyeFadeStart; - float _eyeFadeEnd = eyeFadeEnd; - if (_eyeFadeStart > _eyeFadeEnd) { - float tmp = _eyeFadeEnd; - _eyeFadeEnd = _eyeFadeStart; - _eyeFadeStart = tmp; - } - - float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd); - alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart); - - alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0); - - return alpha; -} - -@import clay.util.rand - -@import clay.util.rgbm - -void main() -{ - vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord); - - if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) { - discard; - } - - float g = normalAndGloss.a; -#if !defined(PHYSICALLY_CORRECT) - if (g <= minGlossiness) { - discard; - } -#endif - - float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness); - - vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0); - N = normalize((toViewSpace * vec4(N, 0.0)).xyz); - - vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0); - vec4 pos = projectionInv * projectedPos; - vec3 rayOrigin = pos.xyz / pos.w; - vec3 V = -normalize(rayOrigin); - - float ndv = clamp(dot(N, V), 0.0, 1.0); - float iterationCount; - float jitter = rand(fract(v_Texcoord + jitterOffset)); - -#ifdef PHYSICALLY_CORRECT - vec4 color = vec4(vec3(0.0), 1.0); - vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord); - vec3 albedo = albedoMetalness.rgb; - float m = albedoMetalness.a; - vec3 diffuseColor = albedo * (1.0 - m); - vec3 spec = mix(vec3(0.04), albedo, m); - - float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES); - - for (int i = 0; i < SAMPLE_PER_FRAME; i++) { - vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N); - vec3 rayDir = normalize(reflect(-V, H)); -#else - vec3 rayDir = normalize(reflect(-V, N)); -#endif - vec2 hitPixel; - vec3 hitPoint; - - bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount); - - float dist = distance(rayOrigin, hitPoint); - - vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0; - hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz); -#ifdef PHYSICALLY_CORRECT - float ndl = clamp(dot(N, rayDir), 0.0, 1.0); - float vdh = clamp(dot(V, H), 0.0, 1.0); - float ndh = clamp(dot(N, H), 0.0, 1.0); - vec3 litTexel = vec3(0.0); - if (dot(hitNormal, rayDir) < 0.0 && intersect) { - litTexel = texture2D(sourceTexture, hitPixel).rgb; - litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0); - - } - else { - #ifdef SPECULARCUBEMAP_ENABLED - vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb; - litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity; -#endif - } - color.rgb += ndl * litTexel * ( - F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001) - ); - } - color.rgb /= float(SAMPLE_PER_FRAME); -#else - #if !defined(SPECULARCUBEMAP_ENABLED) - if (dot(hitNormal, rayDir) >= 0.0) { - discard; - } - if (!intersect) { - discard; - } -#endif - float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0); - vec4 color = texture2D(sourceTexture, hitPixel); - color.rgb *= alpha; - -#ifdef SPECULARCUBEMAP_ENABLED - vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb; - alpha = alpha * (intersect ? 1.0 : 0.0); - float bias = (1.0 -g) * 5.0; - color.rgb += (1.0 - alpha) - * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb - * specularIntensity; -#endif - -#endif - - gl_FragColor = encodeHDR(color); -} -@end - -@export ecgl.ssr.blur - -uniform sampler2D texture; -uniform sampler2D gBufferTexture1; -uniform sampler2D gBufferTexture2; -uniform mat4 projection; -uniform float depthRange : 0.05; - -varying vec2 v_Texcoord; - -uniform vec2 textureSize; -uniform float blurSize : 1.0; - -#ifdef BLEND - #ifdef SSAOTEX_ENABLED -uniform sampler2D ssaoTex; - #endif -uniform sampler2D sourceTexture; -#endif - -float getLinearDepth(vec2 coord) -{ - float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0; - return projection[3][2] / (depth * projection[2][3] - projection[2][2]); -} - -@import clay.util.rgbm - - -void main() -{ - @import clay.compositor.kernel.gaussian_9 - - vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord); - float g = centerNTexel.a; - float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize; -#ifdef VERTICAL - vec2 off = vec2(0.0, maxBlurSize / textureSize.y); -#else - vec2 off = vec2(maxBlurSize / textureSize.x, 0.0); -#endif - - vec2 coord = v_Texcoord; - - vec4 sum = vec4(0.0); - float weightAll = 0.0; - - vec3 cN = centerNTexel.rgb * 2.0 - 1.0; - float cD = getLinearDepth(v_Texcoord); - for (int i = 0; i < 9; i++) { - vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0)); - float w = gaussianKernel[i] - * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0); - float d = getLinearDepth(coord); - w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0)); - - weightAll += w; - sum += decodeHDR(texture2D(texture, coord)) * w; - } - -#ifdef BLEND - float aoFactor = 1.0; - #ifdef SSAOTEX_ENABLED - aoFactor = texture2D(ssaoTex, v_Texcoord).r; - #endif - gl_FragColor = encodeHDR( - sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord)) - ); -#else - gl_FragColor = encodeHDR(sum / weightAll); -#endif -} - -@end`;N.import(Xc);function Wt(e){e=e||{},this._ssrPass=new Ne({fragment:N.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new Ne({fragment:N.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new Ne({fragment:N.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new Ne({fragment:N.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",e.normalTexture),this._ssrPass.setUniform("gBufferTexture2",e.depthTexture),this._blurPass1.setUniform("gBufferTexture1",e.normalTexture),this._blurPass1.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.setUniform("gBufferTexture1",e.normalTexture),this._blurPass2.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new Q({type:X.HALF_FLOAT}),this._texture2=new Q({type:X.HALF_FLOAT}),this._texture3=new Q({type:X.HALF_FLOAT}),this._prevTexture=new Q({type:X.HALF_FLOAT}),this._currentTexture=new Q({type:X.HALF_FLOAT}),this._frameBuffer=new qe({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}Wt.prototype.setAmbientCubemap=function(e,t){this._ssrPass.material.set("specularCubemap",e),this._ssrPass.material.set("specularIntensity",t);var r=e&&t;this._ssrPass.material[r?"enableTexture":"disableTexture"]("specularCubemap")};Wt.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=n/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=a/this._downScale,s.width=l.width=n,s.height=l.height=a;var u=this._frameBuffer,h=this._ssrPass,f=this._blurPass1,c=this._blurPass2,d=this._blendPass,v=new k,p=new k;k.transpose(v,t.worldTransform),k.transpose(p,t.viewMatrix),h.setUniform("sourceTexture",r),h.setUniform("projection",t.projectionMatrix.array),h.setUniform("projectionInv",t.invProjectionMatrix.array),h.setUniform("toViewSpace",v.array),h.setUniform("toWorldSpace",p.array),h.setUniform("nearZ",t.near);var m=i/this._totalSamples*this._samplePerFrame;if(h.setUniform("jitterOffset",m),h.setUniform("sampleOffset",i*this._samplePerFrame),f.setUniform("textureSize",[o.width,o.height]),c.setUniform("textureSize",[n,a]),c.setUniform("sourceTexture",r),f.setUniform("projection",t.projectionMatrix.array),c.setUniform("projection",t.projectionMatrix.array),u.attach(o),u.bind(e),h.render(e),this._physicallyCorrect&&(u.attach(this._currentTexture),d.setUniform("texture1",this._prevTexture),d.setUniform("texture2",o),d.material.set({weight1:i>=1?.95:0,weight2:i>=1?.05:1}),d.render(e)),u.attach(s),f.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),f.render(e),u.attach(l),c.setUniform("texture",s),c.render(e),u.unbind(e),this._physicallyCorrect){var _=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=_}};Wt.prototype.getTargetTexture=function(){return this._texture3};Wt.prototype.setParameter=function(e,t){e==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)};Wt.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=ln.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e};Wt.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")};Wt.prototype.isFinished=function(e){return this._physicallyCorrect?e>this._totalSamples/this._samplePerFrame:!0};Wt.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};var Jo=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],Zc=`@export ecgl.normal.vertex - -@import ecgl.common.transformUniforms - -@import ecgl.common.uv.header - -@import ecgl.common.attributes - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -@import ecgl.common.normalMap.vertexHeader - -@import ecgl.common.vertexAnimation.header - -void main() -{ - - @import ecgl.common.vertexAnimation.main - - @import ecgl.common.uv.main - - v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); - v_WorldPosition = (world * vec4(pos, 1.0)).xyz; - - @import ecgl.common.normalMap.vertexMain - - gl_Position = worldViewProjection * vec4(pos, 1.0); - -} - - -@end - - -@export ecgl.normal.fragment - -#define ROUGHNESS_CHANEL 0 - -uniform bool useBumpMap; -uniform bool useRoughnessMap; -uniform bool doubleSide; -uniform float roughness; - -@import ecgl.common.uv.fragmentHeader - -varying vec3 v_Normal; -varying vec3 v_WorldPosition; - -uniform mat4 viewInverse : VIEWINVERSE; - -@import ecgl.common.normalMap.fragmentHeader -@import ecgl.common.bumpMap.header - -uniform sampler2D roughnessMap; - -void main() -{ - vec3 N = v_Normal; - - bool flipNormal = false; - if (doubleSide) { - vec3 eyePos = viewInverse[3].xyz; - vec3 V = normalize(eyePos - v_WorldPosition); - - if (dot(N, V) < 0.0) { - flipNormal = true; - } - } - - @import ecgl.common.normalMap.fragmentMain - - if (useBumpMap) { - N = bumpNormal(v_WorldPosition, v_Normal, N); - } - - float g = 1.0 - roughness; - - if (useRoughnessMap) { - float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; - g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); - } - - if (flipNormal) { - N = -N; - } - - gl_FragColor.rgb = (N.xyz + 1.0) * 0.5; - gl_FragColor.a = g; -} -@end`;N.import(Zc);function aa(e,t,r,i,n){var a=e.gl;t.setUniform(a,"1i",r,n),a.activeTexture(a.TEXTURE0+n),i.isRenderable()?i.bind(e):i.unbind(e)}function jc(e,t,r,i,n){var a,o,s,l,u=e.gl;return function(h,f,c){if(!(l&&l.material===h.material)){var d=h.material,v=h.__program,p=d.get("roughness");p==null&&(p=1);var m=d.get("normalMap")||t,_=d.get("roughnessMap"),x=d.get("bumpMap"),y=d.get("uvRepeat"),g=d.get("uvOffset"),w=d.get("detailUvRepeat"),E=d.get("detailUvOffset"),A=!!x&&d.isTextureEnabled("bumpMap"),S=!!_&&d.isTextureEnabled("roughnessMap"),C=d.isDefined("fragment","DOUBLE_SIDED");x=x||r,_=_||i,c!==f?(f.set("normalMap",m),f.set("bumpMap",x),f.set("roughnessMap",_),f.set("useBumpMap",A),f.set("useRoughnessMap",S),f.set("doubleSide",C),y!=null&&f.set("uvRepeat",y),g!=null&&f.set("uvOffset",g),w!=null&&f.set("detailUvRepeat",w),E!=null&&f.set("detailUvOffset",E),f.set("roughness",p)):(v.setUniform(u,"1f","roughness",p),a!==m&&aa(e,v,"normalMap",m,0),o!==x&&x&&aa(e,v,"bumpMap",x,1),s!==_&&_&&aa(e,v,"roughnessMap",_,2),y!=null&&v.setUniform(u,"2f","uvRepeat",y),g!=null&&v.setUniform(u,"2f","uvOffset",g),w!=null&&v.setUniform(u,"2f","detailUvRepeat",w),E!=null&&v.setUniform(u,"2f","detailUvOffset",E),v.setUniform(u,"1i","useBumpMap",+A),v.setUniform(u,"1i","useRoughnessMap",+S),v.setUniform(u,"1i","doubleSide",+C)),a=m,o=x,s=_,l=h}}}function Jr(e){this._depthTex=new Q({format:X.DEPTH_COMPONENT,type:X.UNSIGNED_INT}),this._normalTex=new Q({type:X.HALF_FLOAT}),this._framebuffer=new qe,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,qe.DEPTH_ATTACHMENT),this._normalMaterial=new Et({shader:new N(N.source("ecgl.normal.vertex"),N.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=_r.createBlank("#000"),this._defaultBumpMap=_r.createBlank("#000"),this._defaultRoughessMap=_r.createBlank("#000"),this._debugPass=new Ne({fragment:N.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}Jr.prototype.getDepthTexture=function(){return this._depthTex};Jr.prototype.getNormalTexture=function(){return this._normalTex};Jr.prototype.update=function(e,t,r){var i=e.getWidth(),n=e.getHeight(),a=this._depthTex,o=this._normalTex,s=this._normalMaterial;a.width=i,a.height=n,o.width=i,o.height=n;var l=t.getRenderList(r).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,r,{getMaterial:function(){return s},ifRender:function(u){return u.renderNormal},beforeRender:jc(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)};Jr.prototype.renderDebug=function(e){this._debugPass.render(e)};Jr.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};function Oi(e){e=e||{},this._edgePass=new Ne({fragment:N.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new Q({type:X.HALF_FLOAT}),this._frameBuffer=new qe,this._frameBuffer.attach(this._targetTexture)}Oi.prototype.update=function(e,t,r,i){var n=e.getWidth(),a=e.getHeight(),o=this._targetTexture;o.width=n,o.height=a;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[n,a]),this._edgePass.setUniform("texture",r),this._edgePass.render(e),s.unbind(e)};Oi.prototype.getTargetTexture=function(){return this._targetTexture};Oi.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)};Oi.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};var Yc={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},qc=`@export ecgl.dof.coc - -uniform sampler2D depth; - -uniform float zNear: 0.1; -uniform float zFar: 2000; - -uniform float focalDistance: 3; -uniform float focalRange: 1; -uniform float focalLength: 30; -uniform float fstop: 2.8; - -varying vec2 v_Texcoord; - -@import clay.util.encode_float - -void main() -{ - float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0; - - float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear)); - - float aperture = focalLength / fstop; - - float coc; - - float uppper = focalDistance + focalRange; - float lower = focalDistance - focalRange; - if (dist <= uppper && dist >= lower) { - coc = 0.5; - } - else { - float focalAdjusted = dist > uppper ? uppper : lower; - - coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength))); - coc = clamp(coc, 0.0, 2.0) / 2.00001; - - if (dist < lower) { - coc = -coc; - } - coc = coc * 0.5 + 0.5; - } - - gl_FragColor = encodeFloat(coc); -} -@end - - -@export ecgl.dof.composite - -#define DEBUG 0 - -uniform sampler2D original; -uniform sampler2D blurred; -uniform sampler2D nearfield; -uniform sampler2D coc; -uniform sampler2D nearcoc; -varying vec2 v_Texcoord; - -@import clay.util.rgbm -@import clay.util.float - -void main() -{ - vec4 blurredColor = texture2D(blurred, v_Texcoord); - vec4 originalColor = texture2D(original, v_Texcoord); - - float fCoc = decodeFloat(texture2D(coc, v_Texcoord)); - - fCoc = abs(fCoc * 2.0 - 1.0); - - float weight = smoothstep(0.0, 1.0, fCoc); - -#ifdef NEARFIELD_ENABLED - vec4 nearfieldColor = texture2D(nearfield, v_Texcoord); - float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord)); - fNearCoc = abs(fNearCoc * 2.0 - 1.0); - - gl_FragColor = encodeHDR( - mix( - nearfieldColor, mix(originalColor, blurredColor, weight), - pow(1.0 - fNearCoc, 4.0) - ) - ); -#else - gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight)); -#endif - -} - -@end - - - -@export ecgl.dof.diskBlur - -#define POISSON_KERNEL_SIZE 16; - -uniform sampler2D texture; -uniform sampler2D coc; -varying vec2 v_Texcoord; - -uniform float blurRadius : 10.0; -uniform vec2 textureSize : [512.0, 512.0]; - -uniform vec2 poissonKernel[POISSON_KERNEL_SIZE]; - -uniform float percent; - -float nrand(const in vec2 n) { - return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453); -} - -@import clay.util.rgbm -@import clay.util.float - - -void main() -{ - vec2 offset = blurRadius / textureSize; - - float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent ); - float cosa = cos(rnd); - float sina = sin(rnd); - vec4 basis = vec4(cosa, -sina, sina, cosa); - -#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC) - offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0); -#endif - -#ifdef BLUR_COC - float cocSum = 0.0; -#else - vec4 color = vec4(0.0); -#endif - - - float weightSum = 0.0; - - for (int i = 0; i < POISSON_KERNEL_SIZE; i++) { - vec2 ofs = poissonKernel[i]; - - ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw)); - - vec2 uv = v_Texcoord + ofs * offset; - vec4 texel = texture2D(texture, uv); - - float w = 1.0; -#ifdef BLUR_COC - float fCoc = decodeFloat(texel) * 2.0 - 1.0; - cocSum += clamp(fCoc, -1.0, 0.0) * w; -#else - texel = texel; - #if !defined(BLUR_NEARFIELD) - float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0; - w *= abs(fCoc); - #endif - texel.rgb *= texel.a; - color += texel * w; -#endif - - weightSum += w; - } - -#ifdef BLUR_COC - gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5); -#else - color /= weightSum; - color.rgb /= (color.a + 0.0001); - gl_FragColor = color; -#endif -} - -@end`,$c=`@export ecgl.edge - -uniform sampler2D texture; - -uniform sampler2D normalTexture; -uniform sampler2D depthTexture; - -uniform mat4 projectionInv; - -uniform vec2 textureSize; - -uniform vec4 edgeColor: [0,0,0,0.8]; - -varying vec2 v_Texcoord; - -vec3 packColor(vec2 coord) { - float z = texture2D(depthTexture, coord).r * 2.0 - 1.0; - vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); - vec4 p4 = projectionInv * p; - - return vec3( - texture2D(normalTexture, coord).rg, - -p4.z / p4.w / 5.0 - ); -} - -void main() { - vec2 cc = v_Texcoord; - vec3 center = packColor(cc); - - float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5; - float dx = size / textureSize.x; - float dy = size / textureSize.y; - - vec2 coord; - vec3 topLeft = packColor(cc+vec2(-dx, -dy)); - vec3 top = packColor(cc+vec2(0.0, -dy)); - vec3 topRight = packColor(cc+vec2(dx, -dy)); - vec3 left = packColor(cc+vec2(-dx, 0.0)); - vec3 right = packColor(cc+vec2(dx, 0.0)); - vec3 bottomLeft = packColor(cc+vec2(-dx, dy)); - vec3 bottom = packColor(cc+vec2(0.0, dy)); - vec3 bottomRight = packColor(cc+vec2(dx, dy)); - - vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight; - vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight; - - float edge = sqrt(dot(h, h) + dot(v, v)); - - edge = smoothstep(0.8, 1.0, edge); - - gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge); -} -@end`;N.import(sl);N.import(ll);N.import(ul);N.import(hl);N.import(fl);N.import(cl);N.import(dl);N.import(vl);N.import(pl);N.import(qc);N.import($c);function gl(e,t){return{color:{parameters:{width:e,height:t}}}}var ka=["composite","FXAA"];function ie(){this._width,this._height,this._dpr,this._sourceTexture=new Q({type:X.HALF_FLOAT}),this._depthTexture=new Q({format:X.DEPTH_COMPONENT,type:X.UNSIGNED_INT}),this._framebuffer=new qe,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,qe.DEPTH_ATTACHMENT),this._normalPass=new Jr,this._compositor=Bc(Yc);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(i){return this._compositor.getNodeByName(i)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=ka.map(function(i){return this._compositor.getNodeByName(i)},this);var r={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new kt(r),this._ssrPass=new Wt(r),this._edgePass=new Oi(r)}ie.prototype.resize=function(i,n,r){r=r||1;var i=i*r,n=n*r,a=this._sourceTexture,o=this._depthTexture;a.width=i,a.height=n,o.width=i,o.height=n;var s={getWidth:function(){return i},getHeight:function(){return n},getDevicePixelRatio:function(){return r}};function l(u,h){if(typeof u[h]=="function"){var f=u[h].__original||u[h];u[h]=function(c){return f.call(this,s)},u[h].__original=f}}this._compositor.nodes.forEach(function(u){for(var h in u.outputs){var f=u.outputs[h].parameters;f&&(l(f,"width"),l(f,"height"))}for(var c in u.parameters)l(u.parameters,c)}),this._width=i,this._height=n,this._dpr=r};ie.prototype.getWidth=function(){return this._width};ie.prototype.getHeight=function(){return this._height};ie.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR};ie.prototype._getPrevNode=function(e){for(var t=ka.indexOf(e.name)-1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t-=1,r=this._finalNodesChain[t];return r};ie.prototype._getNextNode=function(e){for(var t=ka.indexOf(e.name)+1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t+=1,r=this._finalNodesChain[t];return r};ie.prototype._addChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(e.inputs.texture=t.name,r?(e.outputs=gl(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))};ie.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);!t||(r?(t.outputs=gl(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))};ie.prototype.updateNormal=function(e,t,r,i){this._ifRenderNormalPass()&&this._normalPass.update(e,t,r)};ie.prototype.updateSSAO=function(e,t,r,i){this._ssaoPass.update(e,r,i)};ie.prototype.enableSSAO=function(){this._enableSSAO=!0};ie.prototype.disableSSAO=function(){this._enableSSAO=!1};ie.prototype.enableSSR=function(){this._enableSSR=!0};ie.prototype.disableSSR=function(){this._enableSSR=!1};ie.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()};ie.prototype.getSourceFrameBuffer=function(){return this._framebuffer};ie.prototype.getSourceTexture=function(){return this._sourceTexture};ie.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)};ie.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)};ie.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()};ie.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()};ie.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()};ie.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()};ie.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0};ie.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1};ie.prototype.enableEdge=function(){this._enableEdge=!0};ie.prototype.disableEdge=function(){this._enableEdge=!1};ie.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)};ie.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var r={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",r);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break}};ie.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var r=0;r=this._haltonSequence.length},render:function(e,t,r){var i=this._blendPass;this._frame===0?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),i.render(e),this._blendFb.unbind(e),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var n=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=n,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}};function de(e){e=e||"perspective",this.layer=null,this.scene=new ir,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(e),this._compositor=new ie,this._temporalSS=new Ea,this._shadowMapPass=new yc;for(var t=[],r=0,i=0;i<30;i++){for(var n=[],a=0;a<6;a++)n.push(Xr(r,2)*4-2),n.push(Xr(r,3)*4-2),r++;t.push(n)}this._pcfKernels=t,this.scene.on("beforerender",function(o,s,l){this.needsTemporalSS()&&this._temporalSS.jitterProjection(o,l)},this)}de.prototype.setProjection=function(e){var t=this.camera;t&&t.update(),e==="perspective"?this.camera instanceof Ve||(this.camera=new Ve,t&&this.camera.setLocalTransform(t.localTransform)):this.camera instanceof Wr||(this.camera=new Wr,t&&this.camera.setLocalTransform(t.localTransform)),this.camera.near=.1,this.camera.far=2e3};de.prototype.setViewport=function(e,t,r,i,n){this.camera instanceof Ve&&(this.camera.aspect=r/i),n=n||1,this.viewport.x=e,this.viewport.y=t,this.viewport.width=r,this.viewport.height=i,this.viewport.devicePixelRatio=n,this._compositor.resize(r*n,i*n),this._temporalSS.resize(r*n,i*n)};de.prototype.containPoint=function(e,t){var r=this.viewport,i=this.layer.renderer.getHeight();return t=i-t,e>=r.x&&t>=r.y&&e<=r.x+r.width&&t<=r.y+r.height};var es=new mt;de.prototype.castRay=function(e,t,r){var i=this.layer.renderer,n=i.viewport;return i.viewport=this.viewport,i.screenToNDC(e,t,es),this.camera.castRay(es,r),i.viewport=n,r};de.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var e=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var t=0;t30};de.prototype._doRender=function(e,t,r){var i=this.scene,n=this.camera;r=r||0,this._updateTransparent(e,i,n,r),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,i,n,!0)),this._updateShadowPCFKernel(r);var a=e.clearColor;if(e.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,n),this._compositor.updateNormal(e,i,n,this._temporalSS.getFrame())),this._updateSSAO(e,i,n,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(i,n,!0,!0),o.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,i,n,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,i,n,null,0))}else if(this.needsTemporalSS()&&t){var o=this._temporalSS.getSourceFrameBuffer();o.bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(i,n,!0,!0),e.restoreClear(),o.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)}else e.setViewport(this.viewport),e.render(i,n,!0,!0)};de.prototype._updateTransparent=function(e,t,r,i){for(var n=new G,a=new k,o=r.getWorldPosition(),s=t.getRenderList(r).transparent,l=0;lthis.camera.far||e80*r){s=u=e[0],l=h=e[1];for(var v=r;vu&&(u=f),c>h&&(h=c);d=Math.max(u-s,h-l)}return Ai(a,o,r,s,l,d),o}function Sl(e,t,r,i,n){var a,o;if(n===Aa(e,t,r,i)>0)for(a=t;a=t;a-=i)o=ts(a,e[a],e[a+1],o);return o&&mr(o,o.next)&&(Li(o),o=o.next),o}function bi(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(mr(r,r.next)||nt(r.prev,r,r.next)===0)){if(Li(r),r=t=r.prev,r===r.next)return null;i=!0}else r=r.next;while(i||r!==t);return t}function Ai(e,t,r,i,n,a,o){if(!!e){!o&&a&&gd(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?fd(e,i,n,a):hd(e)){t.push(l.i/r),t.push(e.i/r),t.push(u.i/r),Li(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=cd(e,t,r),Ai(e,t,r,i,n,a,2)):o===2&&dd(e,t,r,i,n,a):Ai(bi(e),t,r,i,n,a,1);break}}}}function hd(e){var t=e.prev,r=e,i=e.next;if(nt(t,r,i)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(gn(t.x,t.y,r.x,r.y,i.x,i.y,n.x,n.y)&&nt(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function fd(e,t,r,i){var n=e.prev,a=e,o=e.next;if(nt(n,a,o)>=0)return!1;for(var s=n.xa.x?n.x>o.x?n.x:o.x:a.x>o.x?a.x:o.x,h=n.y>a.y?n.y>o.y?n.y:o.y:a.y>o.y?a.y:o.y,f=Sa(s,l,t,r,i),c=Sa(u,h,t,r,i),d=e.nextZ;d&&d.z<=c;){if(d!==e.prev&&d!==e.next&&gn(n.x,n.y,a.x,a.y,o.x,o.y,d.x,d.y)&&nt(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(d=e.prevZ;d&&d.z>=f;){if(d!==e.prev&&d!==e.next&&gn(n.x,n.y,a.x,a.y,o.x,o.y,d.x,d.y)&&nt(d.prev,d,d.next)>=0)return!1;d=d.prevZ}return!0}function cd(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!mr(n,a)&&bl(n,i,i.next,a)&&Ci(n,a)&&Ci(a,n)&&(t.push(n.i/r),t.push(i.i/r),t.push(a.i/r),Li(i),Li(i.next),i=e=a),i=i.next}while(i!==e);return i}function dd(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Td(o,s)){var l=Al(o,s);o=bi(o,o.next),l=bi(l,l.next),Ai(o,t,r,i,n,a),Ai(l,t,r,i,n,a);return}s=s.next}o=o.next}while(o!==e)}function vd(e,t,r,i){var n=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(n===r.y)return r;if(n===r.next.y)return r.next}o=r.x=r.x&&r.x>=u&&i!==r.x&&gn(no.x)&&Ci(r,e)&&(o=r,f=c)),r=r.next;return o}function gd(e,t,r,i){var n=e;do n.z===null&&(n.z=Sa(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,yd(n)}function yd(e){var t,r,i,n,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,u*=2}while(o>1);return e}function Sa(e,t,r,i,n){return e=32767*(e-r)/n,t=32767*(t-i)/n,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function xd(e){var t=e,r=e;do t.x=0&&(e-o)*(i-s)-(r-o)*(t-s)>=0&&(r-o)*(a-s)-(n-o)*(i-s)>=0}function Td(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!wd(e,t)&&Ci(e,t)&&Ci(t,e)&&Ed(e,t)}function nt(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function mr(e,t){return e.x===t.x&&e.y===t.y}function bl(e,t,r,i){return mr(e,t)&&mr(r,i)||mr(e,i)&&mr(r,t)?!0:nt(e,t,r)>0!=nt(e,t,i)>0&&nt(r,i,e)>0!=nt(r,i,t)>0}function wd(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&bl(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Ci(e,t){return nt(e.prev,e,e.next)<0?nt(e,t,e.next)>=0&&nt(e,e.prev,t)>=0:nt(e,t,e.prev)<0||nt(e,e.next,t)<0}function Ed(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function Al(e,t){var r=new ba(e.i,e.x,e.y),i=new ba(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function ts(e,t,r,i){var n=new ba(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function Li(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function ba(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}El.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(Aa(e,0,a,r));if(n)for(var s=0,l=t.length;sl&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u});var l=a[o].pivot+1,u=a[o].right;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u})}a=this._parts=s}else for(var o=0;o=2e4},doSortTriangles:function(e,t){var r=this.indices;if(t===0){var i=this.attributes.position,e=e.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var n=0,a,o=0;o0,r={},i=0;i65535?new Uint32Array(o*3):new Uint16Array(o*3),c.material.shader!==t&&c.material.attachShader(t,!0),T.setMaterialFromModel(t.__shading,c.material,e,r),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(a),this._vertexRangeOfDataIndex=new Uint32Array((n-i)*2)},_updateRegionMesh:function(e,t,r,i){for(var n=e.getData(),a=0,o=0,s=!1,E=this._polygonMesh,l=this._linesMesh,u=r;u0;w&&(g*=t.getDevicePixelRatio(),this._updateLinesGeometry(l.geometry,e,u,_,g,e.coordinateSystem.transform)),l.invisible=!w,l.material.set({color:p})}var E=this._polygonMesh;E.material.transparent=s,E.material.depthMask=!s,E.geometry.updateBoundingBox(),E.frontFace=this.extrudeY?T.Mesh.CCW:T.Mesh.CW,E.material.get("normalMap")&&E.geometry.generateTangents(),E.seriesIndex=e.seriesIndex,E.on("mousemove",this._onmousemove,this),E.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var r=T.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=ee.firstNotNull(t.get("lineStyle.width"),1),n=this._polygonMesh;n.geometry.generateBarycentric(),n.material.define("both","WIREFRAME_TRIANGLE"),n.material.set("wireframeLineColor",r),n.material.set("wireframeLineWidth",i)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];t==null&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t),this._labelsBuilder.updateLabels([t])),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(e,t,r){var i=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var n=e.get("shading"),a=this._groundMaterials[n];a||(a=this._groundMaterials.lambert),T.setMaterialFromModel(n,a,i,r),a.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=a,this._groundMesh.material.set("color",T.parseColor(i.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,r){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],n=[-1/0,-1/0,-1/0],a=e.coordinateSystem,o=t;o1?i:0,B[re][m]=L.points[Se+2],l.set(n+re,B[re]),s?(ue[0]=(L.points[Se]*_[0]-x[0])/g,ue[1]=(L.points[Se+2]*_[m]-x[m])/g):(ue[0]=(Ie?V:V+ye)/g,ue[1]=(B[re][p]*_[p]-x[p])/g),h.set(n+re,ue)}ft.sub(H,B[1],B[0]),ft.sub(W,B[3],B[0]),ft.cross(U,H,W),ft.normalize(U,U);for(var re=0;re<4;re++)u.set(n+re,U),d&&f.set(n+re,o);for(var re=0;re<6;re++)v[a*3+re]=M[re]+n;n+=4,a+=2,V+=ye}}return t.dirty(),{vertexOffset:n,triangleOffset:a}},_getRegionLinesInfo:function(e,t,r){var i=0,n=0,a=t.getRegionModel(e),o=a.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=t.getRegionPolygonCoords(e);l.forEach(function(u){var h=u.exterior,f=u.interiors;i+=r.getPolylineVertexCount(h),n+=r.getPolylineTriangleCount(h);for(var c=0;cthis._endIndex)){t-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[t*2];i0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});ce(yr.prototype,Mn);ce(yr.prototype,Kr);ce(yr.prototype,Qr);ce(yr.prototype,ei);var Nd=yr,Nl=Math.PI,St=Math.sin,Ht=Math.cos,Il=Math.tan,Ol=Math.asin,Bl=Math.atan2,xr=Nl/180,Id=1e3*60*60*24,Od=2440588,Bd=2451545;function Fd(e){return e.valueOf()/Id-.5+Od}function Ud(e){return Fd(e)-Bd}var Tn=xr*23.4397;function Gd(e,t){return Bl(St(e)*Ht(Tn)-Il(t)*St(Tn),Ht(e))}function zd(e,t){return Ol(St(t)*Ht(Tn)+Ht(t)*St(Tn)*St(e))}function Hd(e,t,r){return Bl(St(e),Ht(e)*St(t)-Il(r)*Ht(t))}function Vd(e,t,r){return Ol(St(t)*St(r)+Ht(t)*Ht(r)*Ht(e))}function kd(e,t){return xr*(280.16+360.9856235*e)-t}function Wd(e){return xr*(357.5291+.98560028*e)}function Xd(e){var t=xr*(1.9148*St(e)+.02*St(2*e)+3e-4*St(3*e)),r=xr*102.9372;return e+t+r+Nl}function Zd(e){var t=Wd(e),r=Xd(t);return{dec:zd(r,0),ra:Gd(r,0)}}var Fl={};Fl.getPosition=function(e,t,r){var i=xr*-r,n=xr*t,a=Ud(e),o=Zd(a),s=kd(a,i)-o.ra;return{azimuth:Hd(s,n,o.dec),altitude:Vd(s,n,o.dec)}};var jd=Fl,Yd=`@export ecgl.atmosphere.vertex -attribute vec3 position: POSITION; -attribute vec3 normal : NORMAL; -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -uniform mat4 normalMatrix : WORLDINVERSETRANSPOSE; - -varying vec3 v_Normal; - -void main() { - v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz); - gl_Position = worldViewProjection * vec4(position, 1.0); -} -@end - - -@export ecgl.atmosphere.fragment -uniform mat4 viewTranspose: VIEWTRANSPOSE; -uniform float glowPower; -uniform vec3 glowColor; - -varying vec3 v_Normal; - -void main() { - float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower); - gl_FragColor = vec4(glowColor, intensity * intensity); -} -@end`;T.Shader.import($s);T.Shader.import(Yd);var qd=Pi.extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(e,t){this.groupGL=new T.Node,this._sphereGeometry=new T.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new T.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new T.PlaneGeometry,this._earthMesh=new T.Mesh({renderNormal:!0}),this._atmosphereMesh=new T.Mesh,this._atmosphereGeometry=new T.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new T.Material({shader:new T.Shader(T.Shader.source("ecgl.atmosphere.vertex"),T.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=T.Mesh.CW,this._lightRoot=new T.Node,this._sceneHelper=new tr,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new Rn({zr:t.getZr()}),this._control.init(),this._layerMeshes={}},render:function(e,t,r){var i=e.coordinateSystem,n=e.get("shading");i.viewGL.add(this._lightRoot),e.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL),this._sceneHelper.setScene(i.viewGL.scene),i.viewGL.setPostEffect(e.getModel("postEffect"),r),i.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var a=this._earthMesh;a.geometry=this._sphereGeometry;var o="ecgl."+n;(!a.material||a.material.shader.name!==o)&&(a.material=T.createMaterial(o)),T.setMaterialFromModel(n,a.material,e,r),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(f){var c=a.material.get(f);c&&(c.flipY=!1)}),a.material.set("color",T.parseColor(e.get("baseColor")));var s=i.radius*.99;if(a.scale.set(s,s,s),e.get("atmosphere.show")){a.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:e.get("atmosphere.glowPower")||6,glowColor:e.get("atmosphere.color")||"#ffffff"}),a.material.setUniforms({glowPower:e.get("atmosphere.innerGlowPower")||2,glowColor:e.get("atmosphere.color")||"#ffffff"});var l=e.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else a.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var u=a.material.setTextureImage("diffuseMap",e.get("baseTexture"),r,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(a);var h=a.material.setTextureImage("bumpMap",e.get("heightTexture"),r,{flipY:!1,anisotropic:8});h&&h.surface&&h.surface.attachToMesh(a),a.material[e.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(e,r),this._displaceVertices(e,r),this._updateViewControl(e,r),this._updateLayers(e,r)},afterRender:function(e,t,r,i){var n=i.renderer;this._sceneHelper.updateAmbientCubemap(n,e,r),this._sceneHelper.updateSkybox(n,e,r)},_updateLayers:function(e,t){var r=e.coordinateSystem,i=e.get("layers"),n=r.radius,a=[],o=[],s=[],l=[];Bt(i,function(d){var v=new En(d),p=v.get("type"),m=T.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8});if(m.surface&&m.surface.attachToMesh(this._earthMesh),p==="blend"){var _=v.get("blendTo"),x=ee.firstNotNull(v.get("intensity"),1);_==="emission"?(s.push(m),l.push(x)):(a.push(m),o.push(x))}else{var y=v.get("id"),g=this._layerMeshes[y];g||(g=this._layerMeshes[y]=new T.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var w=v.get("shading");w==="lambert"?(g.material=g.__lambertMaterial||new T.Material({autoUpdateTextureStatus:!1,shader:T.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),g.__lambertMaterial=g.material):(g.material=g.__colorMaterial||new T.Material({autoUpdateTextureStatus:!1,shader:T.createShader("ecgl.color"),transparent:!0,depthMask:!1}),g.__colorMaterial=g.material),g.material.enableTexture("diffuseMap");var E=v.get("distance"),A=n+(E==null?r.radius/100:E);g.scale.set(A,A,A),n=A;var S=this._blankTexture||(this._blankTexture=T.createBlankTexture("rgba(255, 255, 255, 0)"));g.material.set("diffuseMap",S),T.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8},function(C){C.surface&&C.surface.attachToMesh(g),g.material.set("diffuseMap",C),t.getZr().refresh()}),v.get("show")?this.groupGL.add(g):this.groupGL.remove(g)}},this);var u=this._earthMesh.material;u.define("fragment","LAYER_DIFFUSEMAP_COUNT",a.length),u.define("fragment","LAYER_EMISSIVEMAP_COUNT",s.length),u.set("layerDiffuseMap",a),u.set("layerDiffuseIntensity",o),u.set("layerEmissiveMap",s),u.set("layerEmissionIntensity",l);var h=e.getModel("debug.wireframe");if(h.get("show")){u.define("both","WIREFRAME_TRIANGLE");var f=T.parseColor(h.get("lineStyle.color")||"rgba(0,0,0,0.5)"),c=ee.firstNotNull(h.get("lineStyle.width"),1);u.set("wireframeLineWidth",c),u.set("wireframeLineColor",f)}else u.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(e,t){var r=e.coordinateSystem,i=e.getModel("viewControl");r.viewGL.camera;var n=this;function a(){return{type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-r.radius,center:o.getCenter(),from:n.uid,globeId:e.id}}var o=this._control;o.setViewGL(r.viewGL);var s=i.get("targetCoord"),l,u;s!=null&&(u=s[0]+90,l=s[1]),o.setFromViewControlModel(i,{baseDistance:r.radius,alpha:l,beta:u}),o.off("update"),o.on("update",function(){t.dispatchAction(a())})},_displaceVertices:function(e,t){var r=e.get("displacementQuality"),i=e.get("debug.wireframe.show"),n=e.coordinateSystem;if(!(!e.isDisplacementChanged()&&r===this._displacementQuality&&i===this._showDebugWireframe)){this._displacementQuality=r,this._showDebugWireframe=i;var a=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[r]||200,s=o/2;(a.widthSegments!==o||i)&&(a.widthSegments=o,a.heightSegments=s,a.build()),this._doDisplaceVertices(a,n),i&&a.generateBarycentric()}},_doDisplaceVertices:function(e,t){var r=e.attributes.position.value,i=e.attributes.texcoord0.value,n=e.__originalPosition;(!n||n.length!==r.length)&&(n=new Float32Array(r.length),n.set(r),e.__originalPosition=n);for(var a=t.displacementWidth,o=t.displacementHeight,s=t.displacementData,l=0;l50&&(o=1e3);var s=[];qt.perspective(s,sa,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(s),this.viewGL.camera.decomposeProjectionMatrix();var s=qt.identity([]),l=this.dataToPoint(this.center);qt.scale(s,s,[1,-1,1]),qt.translate(s,s,[0,0,-e]),qt.rotateX(s,s,t),qt.rotateZ(s,s,-this.bearing/180*Math.PI),qt.translate(s,s,[-l[0]*this.getScale()*Br,-l[1]*this.getScale()*Br,0]),this.viewGL.camera.viewMatrix.array=s;var u=[];qt.invert(u,s),this.viewGL.camera.worldTransform.array=u,this.viewGL.camera.decomposeWorldTransform();var h=fi*this.getScale(),f;if(this.altitudeExtent&&!isNaN(this.boxHeight)){var c=this.altitudeExtent[1]-this.altitudeExtent[0];f=this.boxHeight/c*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else f=h/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Br;this.viewGL.rootNode.scale.set(this.getScale()*Br,this.getScale()*Br,f)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(e,t){return this.projectOnTileWithScale(e,this.getScale()*fi,t)},projectOnTileWithScale:function(e,t,r){var i=e[0],n=e[1],a=i*ct/180,o=n*ct/180,s=t*(a+ct)/(2*ct),l=t*(ct-Math.log(Math.tan(ct/4+o*.5)))/(2*ct);return r=r||[],r[0]=s,r[1]=l,r},unprojectFromTile:function(e,t){return this.unprojectOnTileWithScale(e,this.getScale()*fi,t)},unprojectOnTileWithScale:function(e,t,r){var i=e[0],n=e[1],a=i/t*(2*ct)-ct,o=2*(Math.atan(Math.exp(ct-n/t*(2*ct)))-ct/4);return r=r||[],r[0]=a*180/ct,r[1]=o*180/ct,r},dataToPoint:function(e,t){return t=this.projectOnTileWithScale(e,fi,t),t[0]-=this._origin[0],t[1]-=this._origin[1],t[2]=isNaN(e[2])?0:e[2],isNaN(e[2])||(t[2]=e[2],this.altitudeExtent&&(t[2]-=this.altitudeExtent[0])),t}};function Di(){Yr.apply(this,arguments)}Di.prototype=new Yr;Di.prototype.constructor=Di;Di.prototype.type="mapbox3D";function zl(e,t,r){function i(a,o){var s=o.getWidth(),l=o.getHeight(),u=o.getDevicePixelRatio();this.viewGL.setViewport(0,0,s,l,u),this.width=s,this.height=l,this.altitudeScale=a.get("altitudeScale"),this.boxHeight=a.get("boxHeight")}function n(a,o){if(this.model.get("boxHeight")!=="auto"){var s=[1/0,-1/0];a.eachSeries(function(l){if(l.coordinateSystem===this){var u=l.getData(),h=l.coordDimToDataDim("alt")[0];if(h){var f=u.getDataExtent(h,!0);s[0]=Math.min(s[0],f[0]),s[1]=Math.max(s[1],f[1])}}},this),s&&isFinite(s[1]-s[0])&&(this.altitudeExtent=s)}}return{dimensions:t.prototype.dimensions,create:function(a,o){var s=[];return a.eachComponent(e,function(l){var u=l.__viewGL;u||(u=l.__viewGL=new de,u.setRootNode(new T.Node));var h=new t;h.viewGL=l.__viewGL,h.resize=i,h.resize(l,o),s.push(h),l.coordinateSystem=h,h.model=l,h.update=n}),a.eachSeries(function(l){if(l.get("coordinateSystem")===e){var u=l.getReferringComponents(e).models[0];if(u||(u=a.getComponent(e)),!u)throw new Error(e+' "'+ee.firstNotNull(l.get(e+"Index"),l.get(e+"Id"),0)+'" not found');l.coordinateSystem=u.coordinateSystem}}),r&&r(s,a,o),s}}}var av=zl("mapbox3D",Di,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMapboxCameraOption())})}),ov=av;function sv(e){e.registerComponentModel(iv),e.registerComponentView(nv),e.registerCoordinateSystem("mapbox3D",ov),e.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},function(t,r){r.eachComponent({mainType:"mapbox3D",query:t},function(i){i.setMapboxCameraOption(t)})})}$e(sv);var ls=["zoom","center","pitch","bearing"],ja=qr.extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© OpenStreetMap contributors, © CARTO',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var e=this;return ls.reduce(function(t,r){return t[r]=e.get(r),t},{})},setMaptalksCameraOption:function(e){e!=null&&ls.forEach(function(t){e[t]!=null&&(this.option[t]=e[t])},this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(e){this._maptalks=e}});ce(ja.prototype,Kr);ce(ja.prototype,Qr);var lv=ja;function ar(e,t,r,i){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:r,zoom:i,doubleClickZoom:!1,fog:!1}),this._initEvents()}ar.prototype.setUnpainted=function(){};ar.prototype.resize=function(){this._maptalks.checkSize()};ar.prototype.getMaptalks=function(){return this._maptalks};ar.prototype.clear=function(){};ar.prototype.refresh=function(){this._maptalks.checkSize()};var Hl=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];ar.prototype._initEvents=function(){var e=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},Hl.forEach(function(t){this._handlers[t]=function(r){var i={};for(var n in r)i[n]=r[n];i.bubbles=!1;var a=new r.constructor(r.type,i);t==="mousewheel"||t==="DOMMouseScroll"?e.dispatchEvent(a):e.firstElementChild.dispatchEvent(a)},this.zr.dom.addEventListener(t,this._handlers[t])},this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)};ar.prototype.dispose=function(){Hl.forEach(function(e){this.zr.dom.removeEventListener(e,this._handlers[e])},this),this._maptalks.remove()};T.Shader.import(Gl);var uv=Pi.extend({type:"maptalks3D",__ecgl__:!0,init:function(e,t){this._groundMesh=new T.Mesh({geometry:new T.PlaneGeometry,material:new T.Material({shader:new T.Shader({vertex:T.Shader.source("ecgl.displayShadow.vertex"),fragment:T.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(e,t){var r=t.getZr();this._zrLayer=new ar("maptalks3D",r,e.get("center"),e.get("zoom")),r.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new T.Node,this._sceneHelper=new tr(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMaptalks(),n=this._dispatchInteractAction.bind(this,t,i);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach(function(a){i.on(a,n)})},render:function(e,t,r){this._zrLayer||this._initMaptalksLayer(e,r);var i=this._zrLayer.getMaptalks(),n=e.get("urlTemplate"),a=i.getBaseLayer();n!==this._oldUrlTemplate&&(a?a.setOptions({urlTemplate:n,attribution:e.get("attribution")}):(a=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:n,subdomains:["a","b","c"],attribution:e.get("attribution")}),i.setBaseLayer(a))),this._oldUrlTemplate=n,i.setCenter(e.get("center")),i.setZoom(e.get("zoom"),{animation:!1}),i.setPitch(e.get("pitch")),i.setBearing(e.get("bearing")),e.setMaptalks(i);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),r),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._maptalks3DModel=e},afterRender:function(e,t,r,i){var n=i.renderer;this._sceneHelper.updateAmbientCubemap(n,e,r),this._sceneHelper.updateSkybox(n,e,r),e.coordinateSystem.viewGL.scene.traverse(function(a){a.material&&(a.material.define("fragment","NORMAL_UP_AXIS",2),a.material.define("fragment","NORMAL_FRONT_AXIS",1))})},updateCamera:function(e,t,r,i){e.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),r.getZr().refresh()},_dispatchInteractAction:function(e,t,r){e.dispatchAction({type:"maptalks3DChangeCamera",pitch:t.getPitch(),zoom:fv(t.getResolution())+1,center:t.getCenter().toArray(),bearing:t.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var e=this._maptalks3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var r=new T.Plane(new T.Vector3(0,0,1),0),i=e.viewGL.camera.castRay(new T.Vector2(-1,-1)),n=e.viewGL.camera.castRay(new T.Vector2(1,1)),a=i.intersectPlane(r),o=n.intersectPlane(r),s=a.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}});const hv=2*6378137*Math.PI/(256*Math.pow(2,20));function fv(e){return 19-Math.log(e/hv)/Math.LN2}function Mi(){Yr.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}Mi.prototype=new Yr;Mi.prototype.constructor=Mi;Mi.prototype.type="maptalks3D";var cv=zl("maptalks3D",Mi,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMaptalksCameraOption())})}),dv=cv;function vv(e){e.registerComponentModel(lv),e.registerComponentView(uv),e.registerCoordinateSystem("maptalks3D",dv),e.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},function(t,r){r.eachComponent({mainType:"maptalks3D",query:t},function(i){i.setMaptalksCameraOption(t)})})}$e(vv);var pv=Me.vec3,mv=Pa.isDimensionStacked;function _v(e){var t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function gv(e,t){var r=e.getData(),i=e.get("barSize");if(i==null){var n=t.size,a,o,s=t.getAxis("x"),l=t.getAxis("y");s.type==="category"?a=s.getBandWidth()*.7:a=Math.round(n[0]/Math.sqrt(r.count()))*.6,l.type==="category"?o=l.getBandWidth()*.7:o=Math.round(n[1]/Math.sqrt(r.count()))*.6,i=[a,o]}else Ot(i)||(i=[i,i]);var u=t.getAxis("z").scale.getExtent(),h=_v(u),f=["x","y","z"].map(function(v){return e.coordDimToDataDim(v)[0]}),c=mv(r,f[2]),d=c?r.getCalculationInfo("stackResultDimension"):f[2];r.each(f,function(v,p,m,_){var x=r.get(d,_),y=c?x-m:h?0:u[0],g=t.dataToPoint([v,p,y]),w=t.dataToPoint([v,p,x]),E=pv.dist(g,w),A=[0,w[1]":"")+d.join(c?"
":", ")}var n=e.getData(),a=e.getRawValue(t),o=Ot(a)?i(a):Fr(no(a)),s=n.getName(t),l=We(n,t);yu(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var u=xu(l),h=e.name;return h==="\0-"&&(h=""),h=h?Fr(h)+(r?": ":"
"):"",r?u+h+o:h+u+(s?Fr(s)+": "+o:o)}function On(e,t,r){r=r||e.getSource();var i=t||Ms(e.get("coordinateSystem"))||["x","y","z"],n=Ri(r,{dimensionsDefine:r.dimensionsDefine||e.get("dimensions"),encodeDefine:r.encodeDefine||e.get("encode"),coordDimensions:i.map(function(s){var l=e.getReferringComponents(s+"Axis3D").models[0];return{type:l&&l.get("type")==="category"?"ordinal":"float",name:s}})});e.get("coordinateSystem")==="cartesian3D"&&n.forEach(function(s){if(i.indexOf(s.coordDim)>=0){var l=e.getReferringComponents(s.coordDim+"Axis3D").models[0];l&&l.get("type")==="category"&&(s.ordinalMeta=l.getOrdinalMeta())}});var a=Pa.enableDataStack(e,n,{byIndex:!0,stackedCoordDimension:"z"}),o=new Ft(n,e);return o.setCalculationInfo(a),o.initData(r),o}var Vl=Dt.extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(e,t){return On(this)},getFormattedLabel:function(e,t,r,i){var n=ri.getFormattedLabel(this,e,t,r,i);return n==null&&(n=this.getData().get("z",e)),n},formatTooltip:function(e){return Bi(this,e)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});ce(Vl.prototype,ei);var bv=Vl,Ae=Me.vec3,Av=Me.mat3,Ka=se.extend(function(){return{attributes:{position:new se.Attribute("position","float",3,"POSITION"),normal:new se.Attribute("normal","float",3,"NORMAL"),color:new se.Attribute("color","float",4,"COLOR"),prevPosition:new se.Attribute("prevPosition","float",3),prevNormal:new se.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(e){var t=this.enableNormal,r=this.getBarVertexCount()*e,i=this.getBarTriangleCount()*e;this.vertexCount!==r&&(this.attributes.position.init(r),t?this.attributes.normal.init(r):this.attributes.normal.value=null,this.attributes.color.init(r)),this.triangleCount!==i&&(this.indices=r>65535?new Uint32Array(i*3):new Uint16Array(i*3),this._dataIndices=new Uint32Array(r))},getBarVertexCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarVertexCount(e):this.enableNormal?24:8},getBarTriangleCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarTriangleCount(e):12},_getBevelBarVertexCount:function(e){return(e+1)*4*(e+1)*2},_getBevelBarTriangleCount:function(e){var t=e*4+3,r=e*2+1;return(t+1)*r*2+4},setColor:function(e,t){for(var r=this.getBarVertexCount(),i=r*e,n=r*(e+1),a=i;a0&&this.bevelSegments>0)this._addBevelBar(y,g,w,E,this.bevelSize,this.bevelSegments,A);else{Ae.copy(n,g),Ae.normalize(n,n),Ae.cross(a,w,n),Ae.normalize(a,a),Ae.cross(i,n,a),Ae.normalize(a,a),Ae.negate(o,i),Ae.negate(s,n),Ae.negate(l,a),t(u[0],y,i,E[0]/2),t(u[0],u[0],a,E[2]/2),t(u[1],y,i,E[0]/2),t(u[1],u[1],l,E[2]/2),t(u[2],y,o,E[0]/2),t(u[2],u[2],l,E[2]/2),t(u[3],y,o,E[0]/2),t(u[3],u[3],a,E[2]/2),t(r,y,n,E[1]),t(u[4],r,i,E[0]/2),t(u[4],u[4],a,E[2]/2),t(u[5],r,i,E[0]/2),t(u[5],u[5],l,E[2]/2),t(u[6],r,o,E[0]/2),t(u[6],u[6],l,E[2]/2),t(u[7],r,o,E[0]/2),t(u[7],u[7],a,E[2]/2);var P=this.attributes;if(this.enableNormal){h[0]=i,h[1]=o,h[2]=n,h[3]=s,h[4]=a,h[5]=l;for(var L=this._vertexOffset,R=0;R0&&(m++,h[3]<.99&&(d=!0))}}),o.geometry.setBarCount(m);var v=r.getLayout("orient"),p=this._barIndexOfData=new Int32Array(r.count()),m=0;r.each(function(x){if(!r.hasValue(x)){p[x]=-1;return}var y=r.getItemLayout(x),g=y[0],w=y[1],E=y[2],A=x*4;h[0]=f[A++],h[1]=f[A++],h[2]=f[A++],h[3]=f[A++],h[3]>0&&(a._barMesh.geometry.addBar(g,w,v,E,h,x),p[x]=m++)}),o.geometry.dirty(),o.geometry.updateBoundingBox();var _=o.material;_.transparent=d,_.depthMask=!d,o.geometry.sortTriangles=d,this._initHandler(e,t)},_initHandler:function(e,t){var r=e.getData(),i=this._barMesh,n=e.coordinateSystem.type==="cartesian3D";i.seriesIndex=e.seriesIndex;var a=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",function(o){var s=i.geometry.getDataIndexOfVertex(o.triangle[0]);s!==a&&(this._downplay(a),this._highlight(s),this._labelsBuilder.updateLabels([s]),n&&t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",s),r.get("y",s),r.get("z",s,!0)]})),a=s,i.dataIndex=s},this),i.on("mouseout",function(o){this._downplay(a),this._labelsBuilder.updateLabels(),a=-1,i.dataIndex=-1,n&&t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(e){var t=this._data;if(!!t){var r=this._barIndexOfData[e];if(!(r<0)){var i=t.getItemModel(e),n=i.getModel("emphasis.itemStyle"),a=n.get("color"),o=n.get("opacity");if(a==null){var s=We(t,e);a=Ma(s,-.4)}o==null&&(o=ke(t,e));var l=T.parseColor(a);l[3]*=o,this._barMesh.geometry.setColor(r,l),this._api.getZr().refresh()}}},_downplay:function(e){var t=this._data;if(!!t){var r=this._barIndexOfData[e];if(!(r<0)){var i=We(t,e),n=ke(t,e),a=T.parseColor(i);a[3]*=n,this._barMesh.geometry.setColor(r,a),this._api.getZr().refresh()}}},highlight:function(e,t,r,i){this._toggleStatus("highlight",e,t,r,i)},downplay:function(e,t,r,i){this._toggleStatus("downplay",e,t,r,i)},_toggleStatus:function(e,t,r,i,n){var a=t.getData(),o=ee.queryDataIndex(a,n),s=this;o!=null?Bt(ri.normalizeToArray(o),function(l){e==="highlight"?this._highlight(l):this._downplay(l)},this):a.each(function(l){e==="highlight"?s._highlight(l):s._downplay(l)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});function Mv(e){e.registerChartView(Dv),e.registerSeriesModel(bv),Ev(e),e.registerProcessor(function(t,r){t.eachSeriesByType("bar3d",function(i){var n=i.getData();n.filterSelf(function(a){return n.hasValue(a)})})})}$e(Mv);var Pv=Dt.extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){return On(this)},formatTooltip:function(e){return Bi(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}}),Rv=Pv,Nv=Me.vec3;T.Shader.import(In);var Iv=Mt.extend({type:"line3D",__ecgl__:!0,init:function(e,t){this.groupGL=new T.Node,this._api=t},render:function(e,t,r){var i=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=i,this._line3DMesh||(this._line3DMesh=new T.Mesh({geometry:new Sr({useNativeLine:!1,sortTriangles:!0}),material:new T.Material({shader:T.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var n=e.coordinateSystem;if(n&&n.viewGL){n.viewGL.add(this.groupGL);var a=n.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[a]("fragment","SRGB_DECODE")}this._doRender(e,r),this._data=e.getData(),this._camera=n.viewGL.camera,this.updateCamera(),this._updateAnimation(e)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(e,t){var r=e.getData(),i=this._line3DMesh;i.geometry.resetOffset();var n=r.getLayout("points"),a=[],o=new Float32Array(n.length/3*4),s=0,l=!1;r.each(function(f){var c=We(r,f),d=ke(r,f);d==null&&(d=1),T.parseColor(c,a),a[3]*=d,o[s++]=a[0],o[s++]=a[1],o[s++]=a[2],o[s++]=a[3],a[3]<.99&&(l=!0)}),i.geometry.setVertexCount(i.geometry.getPolylineVertexCount(n)),i.geometry.setTriangleCount(i.geometry.getPolylineTriangleCount(n)),i.geometry.addPolyline(n,o,ee.firstNotNull(e.get("lineStyle.width"),1)),i.geometry.dirty(),i.geometry.updateBoundingBox();var u=i.material;u.transparent=l,u.depthMask=!l;var h=e.getModel("debug.wireframe");h.get("show")?(i.geometry.createAttribute("barycentric","float",3),i.geometry.generateBarycentric(),i.material.set("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",T.parseColor(h.get("lineStyle.color")||"rgba(0,0,0,0.5)")),i.material.set("wireframeLineWidth",ee.firstNotNull(h.get("lineStyle.width"),1))):i.material.set("both","WIREFRAME_TRIANGLE"),this._points=n,this._initHandler(e,t)},_updateAnimation:function(e){T.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,e)},_initHandler:function(e,t){var r=e.getData(),i=e.coordinateSystem,n=this._line3DMesh,a=-1;n.seriesIndex=e.seriesIndex,n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(o){var s=i.pointToData(o.point.array),l=r.indicesOfNearest("x",s[0])[0];l!==a&&(t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",l),r.get("y",l),r.get("z",l)]}),n.dataIndex=l),a=l},this),n.on("mouseout",function(o){a=-1,n.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateNDCPosition:function(){var e=new k,t=this._camera;k.multiply(e,t.projectionMatrix,t.viewMatrix);var r=this._positionNDC,i=this._points,n=i.length/3;(!r||r.length/2!==n)&&(r=this._positionNDC=new Float32Array(n*2));for(var a=[],o=0;o=0){var w=u*3,E=new G(this._points[w],this._points[w+1],this._points[w+2]);a.push({dataIndex:u,point:E,pointWorld:E.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(E)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function Ov(e){e.registerChartView(Iv),e.registerSeriesModel(Rv),e.registerLayout(function(t,r){t.eachSeriesByType("line3D",function(i){var n=i.getData(),a=i.coordinateSystem;if(a){if(a.type!=="cartesian3D")return;var o=new Float32Array(n.count()*3),s=[],l=[],u=a.dimensions,h=u.map(function(f){return i.coordDimToDataDim(f)[0]});a&&n.each(h,function(f,c,d,v){s[0]=f,s[1]=c,s[2]=d,a.dataToPoint(s,l),o[v*3]=l[0],o[v*3+1]=l[1],o[v*3+2]=l[2]}),n.setLayout("points",o)}})})}$e(Ov);var Bv=Dt.extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(e,t){return On(this)},getFormattedLabel:function(e,t,r,i){var n=ri.getFormattedLabel(this,e,t,r,i);if(n==null){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];n=a.get(o,e)}return n},formatTooltip:function(e){return Bi(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function la(e,i,r){var i=i||document.createElement("canvas");i.width=e,i.height=e;var n=i.getContext("2d");return r&&r(n),i}function Fv(e,t,r,i){Ot(t)||(t=[t,t]);var n=Qa.getMarginByStyle(r,i),a=t[0]+n.left+n.right,o=t[1]+n.top+n.bottom,s=Eu(e,0,0,t[0],t[1]),l=Math.max(a,o);s.x=n.left,s.y=n.top,a>o?s.y+=(l-o)/2:s.x+=(l-a)/2;var u=s.getBoundingRect();return s.x-=u.x,s.y-=u.y,s.setStyle(r),s.update(),s.__size=l,s}function Uv(e,t,r){var i=t.width,n=t.height,a=e.canvas.width,o=e.canvas.height,s=i/a,l=n/o;function u(_){return _<128?1:-1}function h(_,x){var y=1/0;_=Math.floor(_*s),x=Math.floor(x*l);for(var g=x*i+_,w=t.data[g*4],E=u(w),A=Math.max(x-r,0);A=2e4},doSortVertices:function(e,t){var r=this.indices,i=fs.create();if(!r){r=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var n=0;n.05);else for(var n=0;n<3;n++)this._progressiveQuickSort(t*3+n);this.dirtyIndices()},_simpleSort:function(e){var t=this._zList,r=this.indices;function i(n,a){return t[a]-t[n]}e?Array.prototype.sort.call(r,i):Zr.sort(r,i,0,r.length-1)},_progressiveQuickSort:function(e){var t=this._zList,r=this.indices;this._quickSort=this._quickSort||new Zr,this._quickSort.step(r,function(i,n){return t[n]-t[i]},e)}},zv=`@export ecgl.sdfSprite.vertex - -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -uniform float elapsedTime : 0; - -attribute vec3 position : POSITION; - -#ifdef VERTEX_SIZE -attribute float size; -#else -uniform float u_Size; -#endif - -#ifdef VERTEX_COLOR -attribute vec4 a_FillColor: COLOR; -varying vec4 v_Color; -#endif - -#ifdef VERTEX_ANIMATION -attribute vec3 prevPosition; -attribute float prevSize; -uniform float percent : 1.0; -#endif - - -#ifdef POSITIONTEXTURE_ENABLED -uniform sampler2D positionTexture; -#endif - -varying float v_Size; - -void main() -{ - -#ifdef POSITIONTEXTURE_ENABLED - gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0); -#else - - #ifdef VERTEX_ANIMATION - vec3 pos = mix(prevPosition, position, percent); - #else - vec3 pos = position; - #endif - gl_Position = worldViewProjection * vec4(pos, 1.0); -#endif - -#ifdef VERTEX_SIZE -#ifdef VERTEX_ANIMATION - v_Size = mix(prevSize, size, percent); -#else - v_Size = size; -#endif -#else - v_Size = u_Size; -#endif - -#ifdef VERTEX_COLOR - v_Color = a_FillColor; - #endif - - gl_PointSize = v_Size; -} - -@end - -@export ecgl.sdfSprite.fragment - -uniform vec4 color: [1, 1, 1, 1]; -uniform vec4 strokeColor: [1, 1, 1, 1]; -uniform float smoothing: 0.07; - -uniform float lineWidth: 0.0; - -#ifdef VERTEX_COLOR -varying vec4 v_Color; -#endif - -varying float v_Size; - -uniform sampler2D sprite; - -@import clay.util.srgb - -void main() -{ - gl_FragColor = color; - - vec4 _strokeColor = strokeColor; - -#ifdef VERTEX_COLOR - gl_FragColor *= v_Color; - #endif - -#ifdef SPRITE_ENABLED - float d = texture2D(sprite, gl_PointCoord).r; - gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d); - - if (lineWidth > 0.0) { - float sLineWidth = lineWidth / 2.0; - - float outlineMaxValue0 = 0.5 + sLineWidth; - float outlineMaxValue1 = 0.5 + sLineWidth + smoothing; - float outlineMinValue0 = 0.5 - sLineWidth - smoothing; - float outlineMinValue1 = 0.5 - sLineWidth; - - if (d <= outlineMaxValue1 && d >= outlineMinValue0) { - float a = _strokeColor.a; - if (d <= outlineMinValue1) { - a = a * smoothstep(outlineMinValue0, outlineMinValue1, d); - } - else { - a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d); - } - gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a); - gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a; - } - } -#endif - -#ifdef SRGB_DECODE - gl_FragColor = sRGBToLinear(gl_FragColor); -#endif -} -@end`,ua=Me.vec4;T.Shader.import(zv);var Hv=T.Mesh.extend(function(){var e=new T.Geometry({dynamic:!0,attributes:{color:new T.Geometry.Attribute("color","float",4,"COLOR"),position:new T.Geometry.Attribute("position","float",3,"POSITION"),size:new T.Geometry.Attribute("size","float",1),prevPosition:new T.Geometry.Attribute("prevPosition","float",3),prevSize:new T.Geometry.Attribute("prevSize","float",1)}});Object.assign(e,Gv);var t=new T.Material({shader:T.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});t.enableTexture("sprite"),t.define("both","VERTEX_COLOR"),t.define("both","VERTEX_SIZE");var r=new T.Texture2D({image:document.createElement("canvas"),flipY:!1});return t.set("sprite",r),e.pick=this._pick.bind(this),{geometry:e,material:t,mode:T.Mesh.POINTS,sizeScale:1}},{_pick:function(e,t,r,i,n,a){var o=this._positionNDC;if(!!o)for(var s=r.viewport,l=2/s.width,u=2/s.height,h=this.geometry.vertexCount-1;h>=0;h--){var f;this.geometry.indices?f=this.geometry.indices[h]:f=h;var c=o[f*2],d=o[f*2+1],v=this.geometry.attributes.size.get(f)/this.sizeScale,p=v/2;if(e>c-p*l&&ed-p*u&&t2?(v=this._updateSymbolSprite(e,c,h,f),s.enableTexture("sprite")):s.disableTexture("sprite"),u.position.init(n-i);var p=[];if(d){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var m=Sd(o),_=bd(o);T.parseColor(m,p),p[3]*=_,s.set({color:p,u_Size:h.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),u.size.init(n-i),u.color.init(n-i),this._originalOpacity=new Float32Array(n-i);for(var x=o.getLayout("points"),y=u.position.value,g=0;g1?(n[0]=r.maxSize,n[1]=r.maxSize/r.aspect):(n[1]=r.maxSize,n[0]=r.maxSize*r.aspect),n[0]=n[0]||1,n[1]=n[1]||1,(this._symbolType!==r.type||!kv(this._symbolSize,n)||this._lineWidth!==t.lineWidth)&&(hs.createSymbolSprite(r.type,n,{fill:"#fff",lineWidth:t.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(n[0]/2,10)},this._spriteImageCanvas),hs.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),cs,this._mesh.material.get("sprite").image),this._symbolType=r.type,this._symbolSize=n,this._lineWidth=t.lineWidth),this._spriteImageCanvas.width/r.maxSize*i},_updateMaterial:function(e,t){var r=e.get("blendMode")==="lighter"?T.additiveBlend:null,i=this._mesh.material;i.blend=r,i.set("lineWidth",t.lineWidth/cs);var n=T.parseColor(t.stroke);i.set("strokeColor",n),i.transparent=!0,i.depthMask=!1,i.depthTest=!this.is2D,i.sortVertices=!this.is2D},_updateLabelBuilder:function(e,o,r){var i=e.getData(),n=this._mesh.geometry,a=n.attributes.position.value,o=this._startDataIndex,s=this._mesh.sizeScale;this._labelsBuilder.updateData(i,o,r),this._labelsBuilder.getLabelPosition=function(l,u,h){var f=(l-o)*3;return[a[f],a[f+1],a[f+2]]},this._labelsBuilder.getLabelDistance=function(l,u,h){var f=n.attributes.size.get(l-o)/s;return f/2+h},this._labelsBuilder.updateLabels()},_updateAnimation:function(e){T.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,e)},_updateHandler:function(e,t,r){var i=e.getData(),n=this._mesh,a=this,o=-1,s=e.coordinateSystem&&e.coordinateSystem.type==="cartesian3D",l;s&&(l=e.coordinateSystem.model),n.seriesIndex=e.seriesIndex,n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(u){var h=u.vertexIndex+a._startDataIndex;h!==o&&(this.highlightOnMouseover&&(this.downplay(i,o),this.highlight(i,h),this._labelsBuilder.updateLabels([h])),s&&r.dispatchAction({type:"grid3DShowAxisPointer",value:[i.get(e.coordDimToDataDim("x")[0],h),i.get(e.coordDimToDataDim("y")[0],h),i.get(e.coordDimToDataDim("z")[0],h)],grid3DIndex:l.componentIndex})),n.dataIndex=h,o=h},this),n.on("mouseout",function(u){var h=u.vertexIndex+a._startDataIndex;this.highlightOnMouseover&&(this.downplay(i,h),this._labelsBuilder.updateLabels()),o=-1,n.dataIndex=-1,s&&r.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:l.componentIndex})},this)},updateLayout:function(e,t,r){var i=e.getData();if(!!this._mesh){var n=this._mesh.geometry.attributes.position.value,a=i.getLayout("points");if(this.is2D)for(var o=0;othis._endDataIndex||tthis._endDataIndex||t 1.0 || v_Percent < 0.0) { - discard; - } - - float fade = v_Percent; - -#ifdef SRGB_DECODE - gl_FragColor = sRGBToLinear(color * v_Color); -#else - gl_FragColor = color * v_Color; -#endif - - @import ecgl.common.wireframe.fragmentMain - - if (v_Percent > (1.0 - v_SpotPercent)) { - gl_FragColor.rgb *= spotIntensity; - } - - gl_FragColor.a *= fade; -} - -@end`,ys=Me.vec3;function Qv(e){return e>0?1:-1}T.Shader.import(Kv);var Jv=T.Mesh.extend(function(){var e=new T.Material({shader:new T.Shader(T.Shader.source("ecgl.trail2.vertex"),T.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),t=new Sr({dynamic:!0});return t.createAttribute("dist","float",1),t.createAttribute("distAll","float",1),t.createAttribute("start","float",1),{geometry:t,material:e,culling:!1,$ignorePicking:!0}},{updateData:function(e,t,r){var i=e.hostModel,n=this.geometry,a=i.getModel("effect"),o=a.get("trailWidth")*t.getDevicePixelRatio(),s=a.get("trailLength"),l=i.get("effect.constantSpeed"),u=i.get("effect.period")*1e3,h=l!=null;h?this.material.set("speed",l/1e3):this.material.set("period",u),this.material[h?"define":"undefine"]("vertex","CONSTANT_SPEED");var f=i.get("polyline");n.trailLength=s,this.material.set("trailLength",s),n.resetOffset(),["position","positionPrev","positionNext"].forEach(function(A){n.attributes[A].value=r.attributes[A].value});var c=["dist","distAll","start","offset","color"];c.forEach(function(A){n.attributes[A].init(n.vertexCount)}),n.indices=r.indices;var d=[],v=a.get("trailColor"),p=a.get("trailOpacity"),m=v!=null,_=p!=null;this.updateWorldTransform();var x=this.worldTransform.x.len(),y=this.worldTransform.y.len(),g=this.worldTransform.z.len(),w=0,E=0;e.each(function(A){var S=e.getItemLayout(A),C=_?p:ke(e,A),P=We(e,A);C==null&&(C=1),d=T.parseColor(m?v:P,d),d[3]*=C;for(var L=f?r.getPolylineVertexCount(S):r.getCubicCurveVertexCount(S[0],S[1],S[2],S[3]),R=0,I=[],M=[],B=w;Bw&&(R+=ys.dist(I,M)),n.attributes.dist.set(B,R),ys.copy(M,I);E=Math.max(E,R);for(var H=Math.random()*(h?R:u),B=w;B0;this._updateSurfaceMesh(this._surfaceMesh,e,h,d);var v=this._surfaceMesh.material;d?(v.define("WIREFRAME_QUAD"),v.set("wireframeLineWidth",c),v.set("wireframeLineColor",T.parseColor(f.get("lineStyle.color")))):v.undefine("WIREFRAME_QUAD"),this._initHandler(e,r),this._updateAnimation(e)},_updateAnimation:function(e){T.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,e)},_createSurfaceMesh:function(){var e=new T.Mesh({geometry:new T.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new T.Material({shader:new T.Shader(T.Shader.source("ecgl.sm.depth.vertex"),T.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return e.geometry.createAttribute("barycentric","float",4),e.geometry.createAttribute("prevPosition","float",3),e.geometry.createAttribute("prevNormal","float",3),Object.assign(e.geometry,Xa),e},_initHandler:function(e,t){var r=e.getData(),i=this._surfaceMesh,n=e.coordinateSystem;function a(s,l){for(var u=1/0,h=-1,f=[],c=0;c=0){var u=[];i.geometry.attributes.position.get(l,u);for(var h=n.pointToData(u),f=1/0,c=-1,d=[],v=0;v65535?Uint32Array:Uint16Array)((v-1)*(p-1)*6),E=function(Oe,Pt,Je){Je[1]=Oe*p+Pt,Je[0]=Oe*p+Pt+1,Je[3]=(Oe+1)*p+Pt+1,Je[2]=(Oe+1)*p+Pt},A=!1;if(l){var S=[],C=[],P=0;_?h.init(n.vertexCount):h.value=null;for(var L=[[],[],[]],R=[],I=[],M=cr.create(),B=function(Oe,Pt,Je){var Bn=Pt*3;return Je[0]=Oe[Bn],Je[1]=Oe[Bn+1],Je[2]=Oe[Bn+2],Je},H=new Float32Array(o.length),W=new Float32Array(o.length/3*4),U=0;U0;){if(Math.floor(s/h)===s/h)return[h,s/h];h--}return h=Math.floor(Math.sqrt(s)),[h,h]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function up(e){e.registerChartView(lp),e.registerSeriesModel(op),e.registerLayout(function(t,r){t.eachSeriesByType("surface",function(i){var n=i.coordinateSystem;!n||n.type;var a=i.getData(),o=new Float32Array(3*a.count()),s=[NaN,NaN,NaN];if(n&&n.type==="cartesian3D"){var l=n.dimensions,u=l.map(function(h){return i.coordDimToDataDim(h)[0]});a.each(u,function(h,f,c,d){var v;a.hasValue(d)?v=n.dataToPoint([h,f,c]):v=s,o[d*3]=v[0],o[d*3+1]=v[1],o[d*3+2]=v[2]})}a.setLayout("points",o)})})}$e(up);function Ts(e,t){for(var r=[],i=0;i "+c)),u++)}var d,v=Ri(e,{coordDimensions:["value"]});d=new Ft(v,r),d.initData(e);var p=new Ft(["value"],r);return p.initData(l,s),n&&n(d,p),Lu({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var mi=Dt.extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(e){mi.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(e){mi.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(e,t,r,i){var n=ri.getFormattedLabel(this,e,t,r,i);if(n==null){var a=this.getData(),o=a.dimensions[a.dimensions.length-1];n=a.get(o,e)}return n},getInitialData:function(e,t){var r=e.edges||e.links||[],i=e.data||e.nodes||[],n=this;if(i&&r)return mp(i,r,this,!0,a).data;function a(o,s){o.wrapMethod("getItemModel",function(f){const c=n._categoriesModels,d=f.getShallow("category"),v=c[d];return v&&(v.parentModel=f.parentModel,f.parentModel=v),f});const l=t.getModel([]).getModel;function u(f,c){const d=l.call(this,f,c);return d.resolveParentPath=h,d}s.wrapMethod("getItemModel",function(f){return f.resolveParentPath=h,f.getModel=u,f});function h(f){if(f&&(f[0]==="label"||f[1]==="label")){const c=f.slice();return f[0]==="label"?c[0]="edgeLabel":f[1]==="label"&&(c[1]="edgeLabel"),c}return f}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,r){if(r==="edge"){var i=this.getData(),n=this.getDataParams(e,r),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return o!=null&&l.push(o),s!=null&&l.push(s),l=Fr(l.join(" > ")),n.value&&(l+=" : "+Fr(n.value)),l}else return mi.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=(this.option.categories||[]).map(function(r){return r.value!=null?r:Object.assign({value:0},r)}),t=new Ft(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(r){return t.getItemModel(r,!0)})},setView:function(e){e.zoom!=null&&(this.option.zoom=e.zoom),e.offset!=null&&(this.option.offset=e.offset)},setNodePosition:function(e){for(var t=0;t65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,i){var n=Be.dist(e,t)+Be.dist(r,t)+Be.dist(i,r),a=1/(n+1)*this.segmentScale;return a},getCubicCurveVertexCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?a*2:a*2+2},getCubicCurveTriangleCount:function(e,t,r,i){var n=this._getCubicCurveApproxStep(e,t,r,i),a=Math.ceil(1/n);return this.useNativeLine?0:a*2},getLineVertexCount:function(){return this.getPolylineVertexCount(ws)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(ws)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?0:(t-1)*2},addCubicCurve:function(e,t,r,i,n,a){a==null&&(a=1);for(var o=e[0],s=e[1],l=t[0],u=t[1],h=r[0],f=r[1],c=i[0],d=i[1],v=this._getCubicCurveApproxStep(e,t,r,i),p=v*v,m=p*v,_=3*v,x=3*p,y=6*p,g=6*m,w=o-l*2+h,E=s-u*2+f,A=(l-h)*3-o+c,S=(u-f)*3-s+d,C=o,P=s,L=(l-o)*_+w*x+A*m,R=(u-s)*_+E*x+S*m,I=w*y+A*g,M=E*y+S*g,B=A*g,H=S*g,W=0,U=0,ue=Math.ceil(1/v),V=new Float32Array((ue+1)*3),V=[],ve=0,U=0;U1&&(C=L>0?Math.min(C,c):Math.max(C,c),P=R>0?Math.min(P,d):Math.max(P,d));this.addPolyline(V,n,a)},addLine:function(e,t,r,i){this.addPolyline([e,t],r,i)},addPolyline:function(){var e=Be.create(),t=Be.create(),r=Be.create(),i=Be.create(),n=[],a=[],o=[];return function(s,l,u,h,f){if(!!s.length){var c=typeof s[0]!="number";if(f==null&&(f=c?s.length:s.length/2),!(f<2)){h==null&&(h=0),u==null&&(u=1),this._itemVertexOffsets.push(this._vertexOffset);for(var d=c?typeof l[0]!="number":l.length/4===f,v=this.attributes.position,p=this.attributes.color,m=this.attributes.offset,_=this.attributes.normal,x=this.indices,y=this._vertexOffset,g,w=0;w1&&(v.copy(y,y-1),p.copy(y,y-1),y++);else{var S;if(w0){Be.sub(e,n,o),Be.sub(t,a,n),Be.normalize(e,e),Be.normalize(t,t),Be.add(i,e,t),Be.normalize(i,i);var C=u/2*Math.min(1/Be.dot(e,i),2);r[0]=-i[1],r[1]=i[0],S=C}else Be.sub(e,a,n),Be.normalize(e,e),r[0]=-e[1],r[1]=e[0],S=u/2}else Be.sub(e,n,o),Be.normalize(e,e),r[0]=-e[1],r[1]=e[0],S=u/2;_.set(y,r),_.set(y+1,r),m.set(y,S),m.set(y+1,-S),Be.copy(o,n),v.set(y,n),v.set(y+1,n),p.set(y,g),p.set(y+1,g),y+=2}if(this.useNativeLine)p.set(y,g),v.set(y,n),y++;else if(w>0){var P=this._faceOffset*3,x=this.indices;x[P]=y-4,x[P+1]=y-3,x[P+2]=y-2,x[P+3]=y-3,x[P+4]=y-1,x[P+5]=y-2,this._faceOffset+=2}}this._vertexOffset=y}}}}(),setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],i=e 0.0) { - float factor = 0.0; - if (preventOverlap) { - float d = sqrt(d2); - d = d - n0.w - n1.w; - if (d > 0.0) { - factor = scaling * n0.z * n1.z / (d * d); - } - else if (d < 0.0) { - factor = scaling * 100.0 * n0.z * n1.z; - } - } - else { - factor = scaling * n0.z * n1.z / d2; - } - force += dir * factor; - } - } - - vec2 dir = gravityCenter - n0.xy; - float d = 1.0; - if (!strongGravityMode) { - d = length(dir); - } - - force += dir * n0.z * gravity / (d + 1.0); - - gl_FragColor = vec4(force, 0.0, 1.0); -} -@end - -@export ecgl.forceAtlas2.updateEdgeAttraction.vertex - -attribute vec2 node1; -attribute vec2 node2; -attribute float weight; - -uniform sampler2D positionTex; -uniform float edgeWeightInfluence; -uniform bool preventOverlap; -uniform bool linLogMode; - -uniform vec2 windowSize: WINDOW_SIZE; - -varying vec2 v_Force; - -void main() { - - vec4 n0 = texture2D(positionTex, node1); - vec4 n1 = texture2D(positionTex, node2); - - vec2 dir = n1.xy - n0.xy; - float d = length(dir); - float w; - if (edgeWeightInfluence == 0.0) { - w = 1.0; - } - else if (edgeWeightInfluence == 1.0) { - w = weight; - } - else { - w = pow(weight, edgeWeightInfluence); - } - vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y); - vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y); - vec2 pos = node1 * scale * 2.0 - 1.0; - gl_Position = vec4(pos + offset, 0.0, 1.0); - gl_PointSize = 1.0; - - float factor; - if (preventOverlap) { - d = d - n1.w - n0.w; - } - if (d <= 0.0) { - v_Force = vec2(0.0); - return; - } - - if (linLogMode) { - factor = w * log(d) / d; - } - else { - factor = w; - } - v_Force = dir * factor; -} -@end - -@export ecgl.forceAtlas2.updateEdgeAttraction.fragment - -varying vec2 v_Force; - -void main() { - gl_FragColor = vec4(v_Force, 0.0, 0.0); -} -@end - -@export ecgl.forceAtlas2.calcWeightedSum.vertex - -attribute vec2 node; - -varying vec2 v_NodeUv; - -void main() { - - v_NodeUv = node; - gl_Position = vec4(0.0, 0.0, 0.0, 1.0); - gl_PointSize = 1.0; -} -@end - -@export ecgl.forceAtlas2.calcWeightedSum.fragment - -varying vec2 v_NodeUv; - -uniform sampler2D positionTex; -uniform sampler2D forceTex; -uniform sampler2D forcePrevTex; - -void main() { - vec2 force = texture2D(forceTex, v_NodeUv).rg; - vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg; - - float mass = texture2D(positionTex, v_NodeUv).z; - float swing = length(force - forcePrev) * mass; - float traction = length(force + forcePrev) * 0.5 * mass; - - gl_FragColor = vec4(swing, traction, 0.0, 0.0); -} -@end - -@export ecgl.forceAtlas2.calcGlobalSpeed - -uniform sampler2D globalSpeedPrevTex; -uniform sampler2D weightedSumTex; -uniform float jitterTolerence; - -void main() { - vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy; - float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x; - float globalSpeed = jitterTolerence * jitterTolerence - * weightedSum.y / weightedSum.x; - if (prevGlobalSpeed > 0.0) { - globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed; - } - gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0); -} -@end - -@export ecgl.forceAtlas2.updatePosition - -uniform sampler2D forceTex; -uniform sampler2D forcePrevTex; -uniform sampler2D positionTex; -uniform sampler2D globalSpeedTex; - -varying vec2 v_Texcoord; - -void main() { - vec2 force = texture2D(forceTex, v_Texcoord).xy; - vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy; - vec4 node = texture2D(positionTex, v_Texcoord); - - float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r; - float swing = length(force - forcePrev); - float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing)); - - float df = length(force); - if (df > 0.0) { - speed = min(df * speed, 10.0) / df; - - gl_FragColor = vec4(node.xy + speed * force, node.zw); - } - else { - gl_FragColor = node; - } -} -@end - -@export ecgl.forceAtlas2.edges.vertex -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; - -attribute vec2 node; -attribute vec4 a_Color : COLOR; -varying vec4 v_Color; - -uniform sampler2D positionTex; - -void main() -{ - gl_Position = worldViewProjection * vec4( - texture2D(positionTex, node).xy, -10.0, 1.0 - ); - v_Color = a_Color; -} -@end - -@export ecgl.forceAtlas2.edges.fragment -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; -varying vec4 v_Color; -void main() { - gl_FragColor = color * v_Color; -} -@end`;T.Shader.import(gp);var fa={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function Ge(e){var t={type:T.Texture.FLOAT,minFilter:T.Texture.NEAREST,magFilter:T.Texture.NEAREST};this._positionSourceTex=new T.Texture2D(t),this._positionSourceTex.flipY=!1,this._positionTex=new T.Texture2D(t),this._positionPrevTex=new T.Texture2D(t),this._forceTex=new T.Texture2D(t),this._forcePrevTex=new T.Texture2D(t),this._weightedSumTex=new T.Texture2D(t),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new T.Texture2D(t),this._globalSpeedPrevTex=new T.Texture2D(t),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new Ne({fragment:T.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new Ne({fragment:T.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new Ne({fragment:T.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new Ne({fragment:T.Shader.source("clay.compositor.output")});var r=function(i){i.blendEquation(i.FUNC_ADD),i.blendFunc(i.ONE,i.ONE)};this._edgeForceMesh=new T.Mesh({geometry:new T.Geometry({attributes:{node1:new T.Geometry.Attribute("node1","float",2),node2:new T.Geometry.Attribute("node2","float",2),weight:new T.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new T.Material({transparent:!0,shader:T.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:r,depthMask:!1,depthText:!1}),mode:T.Mesh.POINTS}),this._weightedSumMesh=new T.Mesh({geometry:new T.Geometry({attributes:{node:new T.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new T.Material({transparent:!0,shader:T.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:r,depthMask:!1,depthText:!1}),mode:T.Mesh.POINTS}),this._framebuffer=new qe({depthBuffer:!1}),this._dummyCamera=new T.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}Ge.prototype.updateOption=function(e){for(var t in fa)this[t]=fa[t];var r=this._nodes.length;if(r>5e4?this.jitterTolerence=10:r>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,r>100?this.scaling=2:this.scaling=10,e)for(var t in fa)e[t]!=null&&(this[t]=e[t]);if(this.repulsionByDegree)for(var i=this._positionSourceTex.pixels,n=0;ne};Ge.prototype._swapTexture=function(){var e=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=e;var e=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=e;var e=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=e};Ge.prototype._initFromSource=function(e){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(e),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(e),e.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(e)};Ge.prototype._resize=function(e,t){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(r){this[r].width=e,this[r].height=t,this[r].dirty()},this)};Ge.prototype.dispose=function(e){this._framebuffer.dispose(e),this._copyPass.dispose(e),this._nodeRepulsionPass.dispose(e),this._positionPass.dispose(e),this._globalSpeedPass.dispose(e),this._edgeForceMesh.geometry.dispose(e),this._weightedSumMesh.geometry.dispose(e),this._positionSourceTex.dispose(e),this._positionTex.dispose(e),this._positionPrevTex.dispose(e),this._forceTex.dispose(e),this._forcePrevTex.dispose(e),this._weightedSumTex.dispose(e),this._globalSpeedTex.dispose(e),this._globalSpeedPrevTex.dispose(e)};function yp(){var e={create:function(){return new Float32Array(2)},dist:function(l,u){var h=u[0]-l[0],f=u[1]-l[1];return Math.sqrt(h*h+f*f)},len:function(l){var u=l[0],h=l[1];return Math.sqrt(u*u+h*h)},scaleAndAdd:function(l,u,h,f){return l[0]=u[0]+h[0]*f,l[1]=u[1]+h[1]*f,l},scale:function(l,u,h){return l[0]=u[0]*h,l[1]=u[1]*h,l},add:function(l,u,h){return l[0]=u[0]+h[0],l[1]=u[1]+h[1],l},sub:function(l,u,h){return l[0]=u[0]-h[0],l[1]=u[1]-h[1],l},normalize:function(l,u){var h=u[0],f=u[1],c=h*h+f*f;return c>0&&(c=1/Math.sqrt(c),l[0]=u[0]*c,l[1]=u[1]*c),l},negate:function(l,u){return l[0]=-u[0],l[1]=-u[1],l},copy:function(l,u){return l[0]=u[0],l[1]=u[1],l},set:function(l,u,h){return l[0]=u,l[1]=h,l}};function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var r=t.prototype;r.beforeUpdate=function(){for(var l=0;l=l&&this.bbox[1]<=u&&this.bbox[3]>=u},r.setBBox=function(l,u,h,f){this.bbox[0]=l,this.bbox[1]=u,this.bbox[2]=h,this.bbox[3]=f,this.size=(h-l+f-u)/2},r._newSubRegion=function(){var l=this.subRegions[this.nSubRegions];return l||(l=new t,this.subRegions[this.nSubRegions]=l),this.nSubRegions++,l},r._addNodeToSubRegion=function(l){var u=this.findSubRegion(l.position[0],l.position[1]),h=this.bbox;if(!u){var f=(h[0]+h[2])/2,c=(h[1]+h[3])/2,d=(h[2]-h[0])/2,v=(h[3]-h[1])/2,p=l.position[0]>=f?1:0,m=l.position[1]>=c?1:0,u=this._newSubRegion();u.setBBox(p*d+h[0],m*v+h[1],(p+1)*d+h[0],(m+1)*v+h[1])}u.addNode(l)},r._updateCenterOfMass=function(l){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var u=this.centerOfMass[0]*this.mass,h=this.centerOfMass[1]*this.mass;u+=l.position[0]*l.mass,h+=l.position[1]*l.mass,this.mass+=l.mass,this.centerOfMass[0]=u/this.mass,this.centerOfMass[1]=h/this.mass};function i(){this.position=new Float32Array(2),this.force=e.create(),this.forcePrev=e.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function n(l,u){this.source=l,this.target=u,this.weight=1}function a(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new t,this.rootRegion.centerOfMass=e.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var o=a.prototype;o.initNodes=function(l,u,h){var f=u.length;this.nodes.length=0;for(var c=typeof h!="undefined",d=0;d0&&(this.strongGravityMode?this.applyNodeStrongGravity(f):this.applyNodeGravity(f))}for(var u=0;u0&&(y=Math.min(y/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=y;for(var u=0;u0&&(g=Math.min(w*g,10)/w,e.scaleAndAdd(h.position,h.position,h.force,g))}},o.applyRegionToNodeRepulsion=function(){var l=e.create();return function(h,f){if(h.node)this.applyNodeToNodeRepulsion(h.node,f,!0);else{e.sub(l,f.position,h.centerOfMass);var c=l[0]*l[0]+l[1]*l[1];if(c>this.barnesHutTheta*h.size*h.size){var d=this.scaling*f.mass*h.mass/c;e.scaleAndAdd(f.force,f.force,l,d)}else for(var v=0;v0)v=this.scaling*h.mass*f.mass/(p*p);else if(p<0)v=this.scaling*100*h.mass*f.mass;else return}else v=this.scaling*h.mass*f.mass/d;e.scaleAndAdd(h.force,h.force,l,v),e.scaleAndAdd(f.force,f.force,l,-v)}}}}(),o.applyEdgeAttraction=function(){var l=e.create();return function(h){var f=h.source,c=h.target;e.sub(l,f.position,c.position);var d=e.len(l),v;this.edgeWeightInfluence===0?v=1:this.edgeWeightInfluence===1?v=h.weight:v=Math.pow(h.weight,this.edgeWeightInfluence);var p;this.preventOverlap&&(d=d-f.size-c.size,d<=0)||(this.linLogMode?p=-v*Math.log(d+1)/(d+1):p=-v,e.scaleAndAdd(f.force,f.force,l,p),e.scaleAndAdd(c.force,c.force,l,-p))}}(),o.applyNodeGravity=function(){var l=e.create();return function(u){e.sub(l,this.gravityCenter,u.position);var h=e.len(l);e.scaleAndAdd(u.force,u.force,l,this.gravity*u.mass/(h+1))}}(),o.applyNodeStrongGravity=function(){var l=e.create();return function(u){e.sub(l,this.gravityCenter,u.position),e.scaleAndAdd(u.force,u.force,l,this.gravity*u.mass)}}(),o.updateBBox=function(){for(var l=1/0,u=1/0,h=-1/0,f=-1/0,c=0;c5e4?t.jitterTolerence=10:a>5e3?t.jitterTolerence=1:t.jitterTolerence=.1,a>100?t.scaling=2:t.scaling=10,a>1e3?t.barnesHutOptimize=!0:t.barnesHutOptimize=!1,e)for(var r in yi)e[r]!=null&&(t[r]=e[r]);if(!t.gravityCenter){for(var o=[1/0,1/0],s=[-1/0,-1/0],l=0;le};yt.prototype.getNodePosition=function(e,t){if(t||(t=new Float32Array(this._nodes.length*2)),this._positionArr)for(var r=0;r0?1.1:.9,a=Math.max(Math.min(this._zoom*n,this.maxZoom),this.minZoom);n=a/this._zoom;var o=this._convertPos(r,i),s=(o.x-this._dx)*(n-1),l=(o.y-this._dy)*(n-1);this._dx-=s,this._dy-=l,this._zoom=a,this._needsUpdate=!0}}},dispose:function(){var e=this.zr;e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("globalout",this._mouseUpHandler),e.animation.off("frame",this._update)}}),Tp=xp,wp=`@export ecgl.lines2D.vertex - -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; - -attribute vec2 position: POSITION; -attribute vec4 a_Color : COLOR; -varying vec4 v_Color; - -#ifdef POSITIONTEXTURE_ENABLED -uniform sampler2D positionTexture; -#endif - -void main() -{ - gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); - - v_Color = a_Color; -} - -@end - -@export ecgl.lines2D.fragment - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; - -varying vec4 v_Color; - -void main() -{ - gl_FragColor = color * v_Color; -} -@end - - -@export ecgl.meshLines2D.vertex - -attribute vec2 position: POSITION; -attribute vec2 normal; -attribute float offset; -attribute vec4 a_Color : COLOR; - -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; -uniform vec4 viewport : VIEWPORT; - -varying vec4 v_Color; -varying float v_Miter; - -void main() -{ - vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0); - gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); - - p2.xy /= p2.w; - gl_Position.xy /= gl_Position.w; - - vec2 N = normalize(p2.xy - gl_Position.xy); - gl_Position.xy += N * offset / viewport.zw * 2.0; - - gl_Position.xy *= gl_Position.w; - - v_Color = a_Color; -} -@end - - -@export ecgl.meshLines2D.fragment - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; - -varying vec4 v_Color; -varying float v_Miter; - -void main() -{ - gl_FragColor = color * v_Color; -} - -@end`,Ji=Me.vec2;T.Shader.import(wp);var Ep=1,Sp=Mt.extend({type:"graphGL",__ecgl__:!0,init:function(e,t){this.groupGL=new T.Node,this.viewGL=new de("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new Tr(!0,t),this._forceEdgesMesh=new T.Mesh({material:new T.Material({shader:T.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new T.Geometry({attributes:{node:new T.Geometry.Attribute("node","float",2),color:new T.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:T.Mesh.LINES}),this._edgesMesh=new T.Mesh({material:new T.Material({shader:T.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new Yl({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new Tp({zr:t.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(e,t,r){this.groupGL.add(this._pointsBuilder.rootNode),this._model=e,this._api=r,this._initLayout(e,t,r),this._pointsBuilder.update(e,t,r),this._forceLayoutInstance instanceof Ge||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(e,r),this._control.off("update"),this._control.on("update",function(){r.dispatchAction({type:"graphGLRoam",seriesId:e.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(ee.firstNotNull(e.get("zoom"),1)),this._control.setOffset(e.get("offset")||[0,0]);var i=this._pointsBuilder.getPointsMesh();if(i.off("mousemove",this._mousemoveHandler),i.off("mouseout",this._mouseOutHandler,this),r.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,e.get("focusNodeAdjacency")){var n=e.get("focusNodeAdjacencyOn");n==="click"?r.getZr().on("click",this._clickHandler):n==="mouseover"&&(i.on("mousemove",this._mousemoveHandler,this),i.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?t!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._mouseOutHandler(e),this._lastMouseOverDataIndex=t}},_mouseOutHandler:function(e){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(e,t){var r=this._forceEdgesMesh.geometry,i=t.getEdgeData(),n=0,a=this._forceLayoutInstance,o=i.count()*2;r.attributes.node.init(o),r.attributes.color.init(o),i.each(function(s){var l=e[s];r.attributes.node.set(n,a.getNodeUV(l.node1)),r.attributes.node.set(n+1,a.getNodeUV(l.node2));var u=We(i,l.dataIndex),h=T.parseColor(u);h[3]*=ee.firstNotNull(ke(i,l.dataIndex),1),r.attributes.color.set(n,h),r.attributes.color.set(n+1,h),n+=2}),r.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,t=this._model.getEdgeData(),r=this._model.getData().getLayout("points");e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var i=[],n=[],a=["lineStyle","width"];this._originalEdgeColors=new Float32Array(t.count()*4),this._edgeIndicesMap=new Float32Array(t.count()),t.each(function(o){var s=t.graph.getEdgeByIndex(o),l=s.node1.dataIndex*2,u=s.node2.dataIndex*2;i[0]=r[l],i[1]=r[l+1],n[0]=r[u],n[1]=r[u+1];var h=We(t,s.dataIndex),f=T.parseColor(h);f[3]*=ee.firstNotNull(ke(t,s.dataIndex),1);var c=t.getItemModel(s.dataIndex),d=ee.firstNotNull(c.get(a),1)*this._api.getDevicePixelRatio();e.addLine(i,n,f,d);for(var v=0;v<4;v++)this._originalEdgeColors[s.dataIndex*4+v]=f[v];this._edgeIndicesMap[s.dataIndex]=o},this),e.dirty()},_updateForceNodesGeometry:function(e){for(var t=this._pointsBuilder.getPointsMesh(),r=[],i=0;i=v&&(u._syncNodePosition(e),d=0),a.getZr().refresh(),ca(function(){p(m)})})}};ca(function(){u._forceLayoutInstanceToDispose&&(u._forceLayoutInstanceToDispose.dispose(n.layer.renderer),u._forceLayoutInstanceToDispose=null),p(h)}),this._layouting=!0}}},stopLayout:function(e,t,r,i){i&&i.from!=null&&i.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&(!this.viewGL.layer||(i&&i.beforeLayout||(this._syncNodePosition(e),this._updateAfterLayout(e,t,r)),this._api.getZr().refresh(),this._layouting=!1)))},_syncNodePosition:function(e){var t=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);e.getData().setLayout("points",t),e.setNodePosition(t)},_updateAfterLayout:function(e,t,r){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(e,t,r),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(e,t,r,i){var n=this._model.getData();this._downplayAll();var a=i.dataIndex,o=n.graph,s=[],l=o.getNodeByIndex(a);s.push(l),l.edges.forEach(function(h){h.dataIndex<0||(h.node1!==l&&s.push(h.node1),h.node2!==l&&s.push(h.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach(function(h){this._pointsBuilder.highlight(n,h.dataIndex)},this),this._pointsBuilder.updateLabels(s.map(function(h){return h.dataIndex}));var u=[];l.edges.forEach(function(h){h.dataIndex>=0&&(this._highlightEdge(h.dataIndex),u.push(h))},this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(e,t,r,i){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(e){var t=this._model.getEdgeData().getItemModel(e),r=T.parseColor(t.get("emphasis.lineStyle.color")||t.get("lineStyle.color")),i=ee.firstNotNull(t.get("emphasis.lineStyle.opacity"),t.get("lineStyle.opacity"),1);r[3]*=i,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],r)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(e){this._pointsBuilder.downplay(this._model.getData(),e.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(e){this._downplayEdge(e.dataIndex)},this)},_downplayEdge:function(e){var t=this._getColor(e,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)},_setEdgeFade:function(){var e=[];return function(t,r){this._getColor(t,e),e[3]*=r,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)}}(),_getColor:function(e,t){for(var r=0;r<4;r++)t[r]=this._originalEdgeColors[e*4+r];return t},_fadeOutEdgesAll:function(e){var t=this._model.getData().graph;t.eachEdge(function(r){this._setEdgeFade(r.dataIndex,e)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(e,t){this.viewGL.setViewport(0,0,t.getWidth(),t.getHeight(),t.getDevicePixelRatio());for(var r=this.viewGL.camera,i=e.getData(),n=i.getLayout("points"),a=Ji.create(1/0,1/0),o=Ji.create(-1/0,-1/0),s=[],l=0;lr.left&&hr.top)){var f=Math.max(o[0]-a[0],10),c=f/t.getWidth()*t.getHeight();f*=1.4,c*=1.4,a[0]-=f*.2,r.left=a[0],r.top=u-c/2,r.bottom=u+c/2,r.right=f+a[0],r.near=0,r.far=100}},dispose:function(){var e=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(e),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function en(e){return e instanceof Array||(e=[e,e]),e}function bp(e){e.registerChartView(Sp),e.registerSeriesModel(_p),e.registerVisual(function(r){const i={};r.eachSeriesByType("graphGL",function(n){var a=n.getCategoriesData(),o=n.getData(),s={};a.each(function(l){var u=a.getName(l);s["ec-"+u]=l;var h=a.getItemModel(l),f=h.getModel("itemStyle").getItemStyle();f.fill||(f.fill=n.getColorFromPalette(u,i)),a.setItemVisual(l,"style",f);var c=["symbol","symbolSize","symbolKeepAspect"];for(let v=0;v65535?new Uint32Array(i*3):new Uint16Array(i*3))},addLine:function(e){var t=this._vertexOffset;this.attributes.position.set(t,[e[0],e[1],1]),this.attributes.position.set(t+1,[e[0],e[1],-1]),this.attributes.position.set(t+2,[e[0],e[1],2]),this.attributes.position.set(t+3,[e[0],e[1],-2]),this.setTriangleIndices(this._faceOffset++,[t,t+1,t+2]),this.setTriangleIndices(this._faceOffset++,[t+1,t+2,t+3]),this._vertexOffset+=4}}),Lp=Cp,Dp=`@export ecgl.vfParticle.particle.fragment - -uniform sampler2D particleTexture; -uniform sampler2D spawnTexture; -uniform sampler2D velocityTexture; - -uniform float deltaTime; -uniform float elapsedTime; - -uniform float speedScaling : 1.0; - -uniform vec2 textureSize; -uniform vec4 region : [0, 0, 1, 1]; -uniform float firstFrameTime; - -varying vec2 v_Texcoord; - - -void main() -{ - vec4 p = texture2D(particleTexture, v_Texcoord); - bool spawn = false; - if (p.w <= 0.0) { - p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0)); - p.w -= firstFrameTime; - spawn = true; - } - vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy; - v = (v - 0.5) * 2.0; - p.z = length(v); - p.xy += v * deltaTime / 10.0 * speedScaling; - p.w -= deltaTime; - - if (spawn || p.xy != fract(p.xy)) { - p.z = 0.0; - } - p.xy = fract(p.xy); - - gl_FragColor = p; -} -@end - -@export ecgl.vfParticle.renderPoints.vertex - -#define PI 3.1415926 - -attribute vec2 texcoord : TEXCOORD_0; - -uniform sampler2D particleTexture; -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; - -uniform float size : 1.0; - -varying float v_Mag; -varying vec2 v_Uv; - -void main() -{ - vec4 p = texture2D(particleTexture, texcoord); - - if (p.w > 0.0 && p.z > 1e-5) { - gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0); - } - else { - gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); - } - - v_Mag = p.z; - v_Uv = p.xy; - - gl_PointSize = size; -} - -@end - -@export ecgl.vfParticle.renderPoints.fragment - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; -uniform sampler2D gradientTexture; -uniform sampler2D colorTexture; -uniform sampler2D spriteTexture; - -varying float v_Mag; -varying vec2 v_Uv; - -void main() -{ - gl_FragColor = color; -#ifdef SPRITETEXTURE_ENABLED - gl_FragColor *= texture2D(spriteTexture, gl_PointCoord); - if (color.a == 0.0) { - discard; - } -#endif -#ifdef GRADIENTTEXTURE_ENABLED - gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); -#endif -#ifdef COLORTEXTURE_ENABLED - gl_FragColor *= texture2D(colorTexture, v_Uv); -#endif -} - -@end - -@export ecgl.vfParticle.renderLines.vertex - -#define PI 3.1415926 - -attribute vec3 position : POSITION; - -uniform sampler2D particleTexture; -uniform sampler2D prevParticleTexture; - -uniform float size : 1.0; -uniform vec4 vp: VIEWPORT; -uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; - -varying float v_Mag; -varying vec2 v_Uv; - -@import clay.util.rand - -void main() -{ - vec4 p = texture2D(particleTexture, position.xy); - vec4 p2 = texture2D(prevParticleTexture, position.xy); - - p.xy = p.xy * 2.0 - 1.0; - p2.xy = p2.xy * 2.0 - 1.0; - - if (p.w > 0.0 && p.z > 1e-5) { - vec2 dir = normalize(p.xy - p2.xy); - vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size; - if (abs(position.z) == 2.0) { - gl_Position = vec4(p.xy + norm, 0.0, 1.0); - v_Uv = p.xy; - v_Mag = p.z; - } - else { - gl_Position = vec4(p2.xy + norm, 0.0, 1.0); - v_Mag = p2.z; - v_Uv = p2.xy; - } - gl_Position = worldViewProjection * gl_Position; - } - else { - gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); - } -} - -@end - -@export ecgl.vfParticle.renderLines.fragment - -uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; -uniform sampler2D gradientTexture; -uniform sampler2D colorTexture; - -varying float v_Mag; -varying vec2 v_Uv; - -void main() -{ - gl_FragColor = color; - #ifdef GRADIENTTEXTURE_ENABLED - gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); -#endif -#ifdef COLORTEXTURE_ENABLED - gl_FragColor *= texture2D(colorTexture, v_Uv); -#endif -} - -@end -`;N.import(Dp);function Mp(e){var t=document.createElement("canvas");t.width=t.height=e;var r=t.getContext("2d");return r.fillStyle="#fff",r.arc(e/2,e/2,e/2,0,Math.PI*2),r.fill(),t}var Ca=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new Q({type:X.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};Ca.prototype={constructor:Ca,init:function(){var e={type:X.FLOAT,minFilter:X.NEAREST,magFilter:X.NEAREST,useMipmap:!1};this._spawnTexture=new Q(e),this._particleTexture0=new Q(e),this._particleTexture1=new Q(e),this._frameBuffer=new qe({depthBuffer:!1}),this._particlePass=new Ne({fragment:N.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new Ne({fragment:N.source("clay.compositor.downsample")});var t=new vr({renderOrder:10,material:new Et({shader:new N(N.source("ecgl.vfParticle.renderPoints.vertex"),N.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:vr.POINTS,geometry:new se({dynamic:!0,mainAttribute:"texcoord0"})}),r=new vr({renderOrder:10,material:new Et({shader:new N(N.source("ecgl.vfParticle.renderLines.vertex"),N.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new Lp,culling:!1}),i=new vr({material:new Et({shader:new N(N.source("ecgl.color.vertex"),N.source("ecgl.color.fragment"))}),geometry:new Dn});i.material.enableTexture("diffuseMap"),this._particlePointsMesh=t,this._particleLinesMesh=r,this._lastFrameFullQuadMesh=i,this._camera=new Wr,this._thisFrameTexture=new Q,this._lastFrameTexture=new Q},setParticleDensity:function(e,t){for(var r=e*t,i=new Float32Array(r*4),n=0,a=this.particleLife,o=0;o0?e[e.length-1]:this._lastFrameTexture},setRegion:function(e){this._particlePass.setUniform("region",e)},resize:function(e,t){this._lastFrameTexture.width=e*this._supersampling,this._lastFrameTexture.height=t*this._supersampling,this._thisFrameTexture.width=e*this._supersampling,this._thisFrameTexture.height=t*this._supersampling,this._width=e,this._height=t},setParticleSize:function(e){var t=this._getParticleMesh();if(e<=2){t.material.disableTexture("spriteTexture"),t.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new Q),(!this._spriteTexture.image||this._spriteTexture.image.width!==e)&&(this._spriteTexture.image=Mp(e),this._spriteTexture.dirty()),t.material.transparent=!0,t.material.enableTexture("spriteTexture"),t.material.set("spriteTexture",this._spriteTexture),this._particleSize=e},setGradientTexture:function(e){var t=this._getParticleMesh().material;t[e?"enableTexture":"disableTexture"]("gradientTexture"),t.setUniform("gradientTexture",e)},setColorTextureImage:function(e,t){var r=this._getParticleMesh().material;r.setTextureImage("colorTexture",e,t,{flipY:!0})},setParticleType:function(e){this._particleType=e},clearFrame:function(e){var t=this._frameBuffer;t.attach(this._lastFrameTexture),t.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),t.unbind(e)},setSupersampling:function(e){this._supersampling=e,this.resize(this._width,this._height)},_updateDownsampleTextures:function(e,t){for(var r=this._downsampleTextures,i=Math.max(Math.floor(Math.log(this._supersampling/t.getDevicePixelRatio())/Math.log(2)),0),n=2,a=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s=359;s&&(n[0]>0&&(n[0]=0),a[0]1?(t.material.shader!==this._meshLinesShader&&t.material.attachShader(this._meshLinesShader),t.mode=T.Mesh.TRIANGLES):(t.material.shader!==this._nativeLinesShader&&t.material.attachShader(this._nativeLinesShader),t.mode=T.Mesh.LINES),r=r||0,i=i||n.count(),s.resetOffset();var h=0,f=0,c=[],d=[],v=[],p=[],m=[],_=.3,x=.7;function y(){d[0]=c[0]*x+p[0]*_-(c[1]-p[1])*a,d[1]=c[1]*x+p[1]*_-(p[0]-c[0])*a,v[0]=c[0]*_+p[0]*x-(c[1]-p[1])*a,v[1]=c[1]*_+p[1]*x-(p[0]-c[0])*a}if(o||a!==0)for(var g=r;g{t.time.txt=lo(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"),t.time.fun=window.setInterval(()=>{t.time.txt=lo(new Date,"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ")},1e3)},i=()=>{const f=br(e.$refs.rightChartData1),c={tooltip:{trigger:"item"},series:[{name:"\u9762\u79EF\u6A21\u5F0F",type:"pie",radius:[10,60],center:["50%","50%"],roseType:"area",itemStyle:{borderRadius:5},data:[{name:"\u5929\u6C14\u9884\u8B66",value:100},{name:"\u75C5\u866B\u5BB3\u9884\u8B66",value:50},{name:"\u4EFB\u52A1\u9884\u8B66",value:130},{name:"\u76D1\u6D4B\u8BBE\u5907\u9884\u8B66",value:62}],label:{color:"#c0d1f2"}}]};f.setOption(c),t.myCharts.push(f)},n=()=>{const f=br(e.$refs.rightChartData4),c={grid:{top:10,right:10,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{interval:0,color:"#c0d1f2",textStyle:{fontSize:10}}},yAxis:[{type:"value",axisLabel:{color:"#c0d1f2"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u6E29\u5EA6",type:"line",smooth:!0,lineStyle:{width:0},areaStyle:{opacity:.8,color:new Fn(0,0,0,1,[{offset:0,color:"rgba(128, 255, 165)"},{offset:1,color:"rgba(1, 191, 236)"}])},emphasis:{focus:"series"},data:[140,232,101,264,90,70]}]};f.setOption(c),t.myCharts.push(f)},a=()=>{const f=br(e.$refs.rightChartData3),c={grid:{top:10,right:0,bottom:20,left:30},tooltip:{trigger:"axis"},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.1)",width:1}},axisTick:{show:!1},axisLabel:{color:"#c0d1f2"}},yAxis:[{type:"value",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#c0d1f2"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u9884\u8D2D\u961F\u5217",type:"line",data:[200,85,112,275,305,415],itemStyle:{color:"#16cfd0"}},{name:"\u6700\u65B0\u6210\u4EA4\u4EF7",type:"line",data:[50,85,22,155,170,25],itemStyle:{color:"#febb50"}}]};f.setOption(c),t.myCharts.push(f)},o=()=>{const f=br(e.$refs.rightChartData6),c={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:20,right:50,bottom:0,left:80},xAxis:[{splitLine:{show:!1},type:"value",show:!1}],yAxis:[{splitLine:{show:!1},axisLine:{show:!1},type:"category",axisTick:{show:!1},inverse:!0,data:["\u65BD\u80A5\u4EFB\u52A1\u5B8C\u6210\u7387","\u65BD\u836F\u4EFB\u52A1\u5B8C\u6210\u7387","\u519C\u4E8B\u4EFB\u52A1\u5B8C\u6210\u7387"],axisLabel:{color:"#A7D6F4",fontSize:12}}],series:[{name:"\u6807\u51C6\u5316",type:"bar",barWidth:10,label:{show:!0,position:"right",color:"#A7D6F4",fontSize:12,distance:15,formatter:"{c}%"},itemStyle:{barBorderRadius:[0,20,20,0],color:new Fn(1,0,0,0,[{offset:0,color:"#51C5FD"},{offset:1,color:"#005BB1"}],!1)},data:[75,100,60]}]};f.setOption(c),t.myCharts.push(f)},s=()=>{const f=br(e.$refs.rightChartData2),c={grid:{top:10,right:0,bottom:20,left:30},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"],axisLine:{lineStyle:{color:"rgba(22, 207, 208, 0.5)",width:1}},axisTick:{show:!1},axisLabel:{color:"#c0d1f2"}},yAxis:[{type:"value",axisLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.1)"}},axisLabel:{color:"#c0d1f2"},splitLine:{show:!0,lineStyle:{color:"rgba(22, 207, 208, 0.3)"}},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}},{type:"value",position:"right",axisLine:{show:!1},axisLabel:{show:!0,formatter:"{value}%",textStyle:{color:"#16cfd0"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!0,areaStyle:{color:"rgba(22, 207, 208, 0.02)"}},nameTextStyle:{color:"#16cfd0"}}],series:[{name:"\u9500\u552E\u6C34\u91CF",type:"line",yAxisIndex:1,smooth:!0,showAllSymbol:!0,symbol:"circle",itemStyle:{color:"#058cff"},lineStyle:{color:"#058cff"},areaStyle:{color:"rgba(5,140,255, 0.2)"},data:[4.2,3.8,4.8,3.5,2.9,2.8]},{name:"\u4E3B\u8425\u4E1A\u52A1",type:"bar",barWidth:15,itemStyle:{normal:{color:new Fn(0,0,0,1,[{offset:0,color:"#00FFE3"},{offset:1,color:"#4693EC"}])}},data:[4.2,3.8,4.8,3.5,2.9,2.8]}]};f.setOption(c),t.myCharts.push(f)},l=f=>{let c=document.getElementById("3DEarth");c.style.height=`${e.$refs.rightChartData5.offsetHeight}px`;const d=br(c),v={globe:{baseTexture:Vp,heightTexture:kp,shading:"realistic",light:{ambient:{intensity:.4},main:{intensity:.4}},viewControl:{autoRotate:!0},postEffect:{enable:!0,bloom:{enable:!0}},globeRadius:f},series:{type:"lines3D",coordinateSystem:"globe",blendMode:"lighter",lineStyle:{width:1,color:"rgb(50, 50, 150)",opacity:.1},data:[]}};let p=function(){let m=105.18,_=Math.random()*360-180,x=37.51,y=Math.random()*180-90;return{coords:[[_,y],[m,x]],value:(Math.random()*3e3).toFixed(2)}};for(let m=0;m<150;m++)v.series.data=v.series.data.concat(p());d.setOption(v)},u=()=>{let f=document.body.clientWidth,c=0;f>=1920?c=100:f>1200&&f<1920?c=70:f>992&&f<1200?c=60:f>768&&f<992?c=40:f<768&&(c=20),l(c)},h=()=>{u(),window.addEventListener("resize",()=>{for(let f=0;f{Mu.done(),r(),await i(),await n(),await a(),await s(),await o(),await h()}),Iu(()=>{window.clearInterval(t.time.fun)}),to({},Ou(t))}}),lt=e=>(Bu("data-v-43ab277e"),e=e(),Fu(),e),Xp={class:"visualizing-demo2"},Zp={class:"big-data-up"},jp={class:"up-left"},Yp=lt(()=>O("div",{class:"up-center"},[O("span",null,"\u667A\u6167\u519C\u4E1A\u7CFB\u7EDF\u5E73\u53F0")],-1)),qp={class:"up-right"},$p={class:"el-dropdown-link"},Kp={class:"ml15"},Qp=lt(()=>O("span",null,"\u6D88\u606F",-1)),Jp={class:"ml15"},em=lt(()=>O("span",null,"\u4E2A\u4EBA",-1)),tm={class:"ml15"},rm=lt(()=>O("span",null,"\u8FD4\u56DE",-1)),im={class:"big-data-down"},nm={class:"big-data-down-left"},am={class:"flex-warp-item"},om={class:"flex-warp-item-box"},sm=lt(()=>O("div",{class:"flex-title"},"\u5929\u6C14\u9884\u62A5",-1)),lm={class:"flex-content flex-content-overflow"},um={class:"sky"},hm=Rs('
\u591A\u4E91\u8F6C\u6674\u4E1C\u5357\u98CE\u826F
\u6E29\u99A8\u63D0\u793A\uFF1A\u591A\u4E91\u8F6C\u6674\uFF0C\u5357\u98CE\u8F6C\u5317\u98CE\u98CE\u529B3\u7EA7
25\xB0C
',2),fm={class:"sky-dd"},cm={key:0},dm={key:1},vm={class:"tip"},pm={class:"flex-warp-item"},mm={class:"flex-warp-item-box"},_m=lt(()=>O("div",{class:"flex-title"},"\u5F53\u524D\u8BBE\u5907\u72B6\u6001",-1)),gm={class:"flex-content flex-content-overflow"},ym={class:"d-states"},xm={class:"d-states-item"},Tm=lt(()=>O("div",{class:"d-states-flex"},[O("div",{class:"d-states-item-label"},"\u56ED\u533A\u8BBE\u5907\u6570"),O("div",{class:"d-states-item-value"},"99")],-1)),wm={class:"d-states-item"},Em=lt(()=>O("div",{class:"d-states-flex"},[O("div",{class:"d-states-item-label"},"\u9884\u8B66\u8BBE\u5907\u6570"),O("div",{class:"d-states-item-value"},"10")],-1)),Sm={class:"d-states-item"},bm=lt(()=>O("div",{class:"d-states-flex"},[O("div",{class:"d-states-item-label"},"\u8FD0\u884C\u8BBE\u5907\u6570"),O("div",{class:"d-states-item-value"},"20")],-1)),Am={class:"d-btn"},Cm={class:"d-btn-item-center"},Lm={class:"d-btn-item-eight"},Dm={class:"flex-warp-item"},Mm={class:"flex-warp-item-box"},Pm=lt(()=>O("div",{class:"flex-title"},"\u8FD130\u5929\u9884\u8B66\u603B\u6570",-1)),Rm={class:"flex-content",ref:"rightChartData1"},Nm={class:"big-data-down-center"},Im={class:"big-data-down-center-one"},Om={class:"big-data-down-center-one-content",ref:"rightChartData5"},Bm=lt(()=>O("div",{id:"3DEarth"},null,-1)),Fm={class:"text-box"},Um={class:"text"},Gm={class:"big-data-down-center-two"},zm={class:"flex-warp-item-box"},Hm=lt(()=>O("div",{class:"flex-title"},[O("span",null,"\u5F53\u524D\u8BBE\u5907\u76D1\u6D4B"),O("span",{class:"flex-title-small"},"\u5355\u4F4D\uFF1A\u6B21")],-1)),Vm={class:"flex-content"},km={class:"flex-content-left"},Wm={class:"monitor-z-index"},Xm={class:"monitor-item-label"},Zm={class:"flex-content-right",ref:"rightChartData4"},jm={class:"big-data-down-right"},Ym={class:"flex-warp-item"},qm={class:"flex-warp-item-box"},$m=lt(()=>O("div",{class:"flex-title"},[O("span",null,"\u8FD17\u5929\u4EA7\u54C1\u8FFD\u6EAF\u626B\u7801\u7EDF\u8BA1"),O("span",{class:"flex-title-small"},"\u5355\u4F4D\uFF1A\u6B21")],-1)),Km={class:"flex-content",ref:"rightChartData3"},Qm={class:"flex-warp-item"},Jm={class:"flex-warp-item-box"},e_=lt(()=>O("div",{class:"flex-title"},"\u5F53\u524D\u4EFB\u52A1\u7EDF\u8BA1",-1)),t_={class:"flex-content"},r_=Rs('
25
\u5F85\u529E\u4EFB\u52A1
12
\u65BD\u80A5
3
\u65BD\u836F
5
\u519C\u4E8B
3
\u5DE1\u56ED
2
\u91C7\u96C6
',1),i_={ref:"rightChartData6",class:"progress"},n_={class:"flex-warp-item"},a_={class:"flex-warp-item-box"},o_=lt(()=>O("div",{class:"flex-title"},[O("span",null,"\u8FD17\u5929\u6295\u5165\u54C1\u8BB0\u5F55"),O("span",{class:"flex-title-small"},"\u5355\u4F4D\uFF1A\u4EF6")],-1)),s_={class:"flex-content",ref:"rightChartData2"};function l_(e,t,r,i,n,a){const o=Gi("SvgIcon"),s=Gi("el-dropdown-item"),l=Gi("el-dropdown-menu"),u=Gi("el-dropdown");return ht(),pt("div",Xp,[O("div",Zp,[O("div",jp,[ut(o,{name:"ele-Timer",class:"mr5"}),O("span",null,et(e.time.txt),1)]),Yp,O("div",qp,[ut(u,{size:"small"},{dropdown:Ui(()=>[ut(l,null,{default:Ui(()=>[(ht(!0),pt(Ar,null,Cr(e.dropdownList,(h,f)=>(ht(),Uu(s,{key:f},{default:Ui(()=>[uo(et(h.label),1)]),_:2},1024))),128))]),_:1})]),default:Ui(()=>[O("span",$p,[uo(et(e.dropdownActive)+" ",1),ut(o,{name:"ele-ArrowDown",class:"el-icon--right"})])]),_:1}),O("div",Kp,[ut(o,{name:"ele-Bell",class:"mr5"}),Qp]),O("div",Jp,[ut(o,{name:"ele-User",class:"mr5"}),em]),O("div",tm,[ut(o,{name:"ele-SwitchButton",class:"mr5"}),rm])])]),O("div",im,[O("div",nm,[O("div",am,[O("div",om,[sm,O("div",lm,[O("div",um,[ut(o,{name:"ele-Sunny",class:"sky-left"}),hm]),O("div",fm,[(ht(!0),pt(Ar,null,Cr(e.skyList,(h,f)=>(ht(),pt("div",{class:zi(["sky-dl",{"sky-dl-first":f===1}]),key:f},[O("div",null,et(h.v1),1),h.type==="title"?(ht(),pt("div",cm,et(h.v2),1)):(ht(),pt("div",dm,[ut(o,{name:h.v2},null,8,["name"])])),O("div",null,et(h.v3),1),O("div",null,et(h.v4),1),O("div",vm,et(h.v5),1),O("div",null,et(h.v6),1),O("div",null,et(h.v7),1)],2))),128))])])])]),O("div",pm,[O("div",mm,[_m,O("div",gm,[O("div",ym,[O("div",xm,[ut(o,{name:"ele-Odometer",class:"i-bg1"}),Tm]),O("div",wm,[ut(o,{name:"ele-FirstAidKit",class:"i-bg2"}),Em]),O("div",Sm,[ut(o,{name:"ele-VideoPlay",class:"i-bg3"}),bm])]),O("div",Am,[(ht(!0),pt(Ar,null,Cr(e.dBtnList,(h,f)=>(ht(),pt("div",{class:zi(["d-btn-item",{"d-btn-active":e.dBtnActive===f}]),key:f},[ut(o,{name:"ele-Money",class:"d-btn-item-left"}),O("div",Cm,[O("div",null,et(h.v1),1),O("div",null,et(h.v2)+"|"+et(h.v3),1)]),O("div",Lm,et(h.v4),1)],2))),128))])])])]),O("div",Dm,[O("div",Mm,[Pm,O("div",Rm,null,512)])])]),O("div",Nm,[O("div",Im,[O("div",Om,[Bm,(ht(!0),pt(Ar,null,Cr(e.earth3DBtnList,(h,f)=>(ht(),pt("div",{class:zi(h.topLevelClass),key:f},[(ht(),pt(Ar,null,Cr(4,c=>O("div",{class:"circle",key:c})),64)),O("div",Fm,[ut(o,{name:h.icon},null,8,["name"]),O("div",Um,et(h.label),1)])],2))),128))],512)]),O("div",Gm,[O("div",zm,[Hm,O("div",Vm,[O("div",km,[(ht(!0),pt(Ar,null,Cr(e.chartData4List,(h,f)=>(ht(),pt("div",{class:"monitor-item",key:f},[O("div",{class:zi(["monitor-wave",{"monitor-active":f===e.chartData4Index}])},[O("div",Wm,[O("div",Xm,et(h.label),1)])],2)]))),128))]),O("div",Zm,null,512)])])])]),O("div",jm,[O("div",Ym,[O("div",qm,[$m,O("div",Km,null,512)])]),O("div",Qm,[O("div",Jm,[e_,O("div",t_,[r_,O("div",i_,null,512)])])]),O("div",n_,[O("div",a_,[o_,O("div",s_,null,512)])])])])])}var d_=Du(Wp,[["render",l_],["__scopeId","data-v-43ab277e"]]);export{d_ as default}; diff --git a/vboot-web/src/main/resources/static/assets/echarts.1654291592072.js b/vboot-web/src/main/resources/static/assets/echarts.1654291592072.js deleted file mode 100644 index edc9c63..0000000 --- a/vboot-web/src/main/resources/static/assets/echarts.1654291592072.js +++ /dev/null @@ -1,61 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Xc=function(r,e){return Xc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])},Xc(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xc(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var qL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),KL=function(){function r(){this.browser=new qL,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),Ti=new KL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ti.wxa=!0,Ti.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Ti.worker=!0:typeof navigator=="undefined"?(Ti.node=!0,Ti.svgSupported=!0):QL(navigator.userAgent,Ti);function QL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),i&&(t.ie=!0,t.version=i[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Ct=Ti,kd=12,Ww="sans-serif",Wa=kd+"px "+Ww,JL=20,jL=100,tI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function eI(r){var e={};if(typeof JSON=="undefined")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[u]+":0",a[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function wI(r,e,t){for(var a=t?"invTrans":"trans",i=e[a],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&n&&v===n[h]&&c===n[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[a]=t?Uy(s,o):Uy(o,s))}function qw(r){return r.nodeName.toUpperCase()==="CANVAS"}var bI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Lh=[],TI=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function rp(r,e,t,a){return t=t||{},a?Zy(r,e,t):TI&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Zy(r,e,t),t}function Zy(r,e,t){if(Ct.domSupported&&r.getBoundingClientRect){var a=e.clientX,i=e.clientY;if(qw(r)){var n=r.getBoundingClientRect();t.zrX=a-n.left,t.zrY=i-n.top;return}else if(ep(Lh,r,a,i)){t.zrX=Lh[0],t.zrY=Lh[1];return}}t.zrX=t.zrY=0}function Fd(r){return r||window.event}function Xe(r,e,t){if(e=Fd(e),e.zrX!=null)return e;var a=e.type,i=a&&a.indexOf("touch")>=0;if(i){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&rp(r,o,e,t)}else{rp(r,e,e,t);var n=CI(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&bI.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function CI(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var i=Math.abs(a!==0?a:t),n=a>0?-1:a<0?1:t>0?-1:1;return 3*i*n}function ap(r,e,t,a){r.addEventListener(e,t,a)}function AI(r,e,t,a){r.removeEventListener(e,t,a)}var oa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Xy(r){return r.which===2||r.which===3}var MI=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var i=e.touches;if(!!i){for(var n={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&a&&a.length>1){var n=qy(a)/qy(i);!isFinite(n)&&(n=1),e.pinchScale=n;var o=DI(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}},Kw="silent";function LI(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:II}}function II(){oa(this.event)}var PI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(or),wo=function(){function r(e,t){this.x=e,this.y=t}return r}(),RI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qw=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o._hovered=new wo(0,0),o.storage=t,o.painter=a,o.painterRoot=n,i=i||new PI,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new yI(o),o}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(RI,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,i=t.zrY,n=Jw(this,a,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new wo(a,i):this.findHover(a,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new wo(0,0)},e.prototype.dispatch=function(t,a){var i=this[t];i&&i.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,i){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+a,s=LI(a,t,i);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(a,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,i){for(var n=this.storage.getDisplayList(),o=new wo(t,a),s=n.length-1;s>=0;s--){var l=void 0;if(n[s]!==i&&!n[s].ignore&&(l=EI(n[s],t,a))&&(!o.topTarget&&(o.topTarget=n[s]),l!==Kw)){o.target=n[s];break}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new MI);var i=this._gestureMgr;a==="start"&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&i.clear(),n){var o=n.type;t.gestureEvent=o;var s=new wo;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e}(or);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Qw.prototype[r]=function(e){var t=e.zrX,a=e.zrY,i=Jw(this,t,a),n,o;if((r!=="mouseup"||!i)&&(n=this.findHover(t,a),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||La(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function EI(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,i=void 0,n=!1;a;){if(a.ignoreClip&&(n=!0),!n){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(i=!0)}var s=a.__hostTarget;a=s||a.parent}return i?Kw:!0}return!1}function Jw(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var kI=Qw,jw=32,bo=7;function OI(r){for(var e=0;r>=jw;)e|=r&1,r>>=1;return r+e}function Ky(r,e,t,a){var i=e+1;if(i===t)return 1;if(a(r[i++],r[e])<0){for(;i=0;)i++;return i-e}function NI(r,e,t){for(t--;e>>1,i(n,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function Ph(r,e,t,a,i,n){var o=0,s=0,l=1;if(n(r,e[t+i])>0){for(s=a-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function Rh(r,e,t,a,i,n){var o=0,s=0,l=1;if(n(r,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=a-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function VI(r,e){var t=bo,a,i,n=0,o=[];a=[],i=[];function s(c,p){a[n]=c,i[n]=p,n+=1}function l(){for(;n>1;){var c=n-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]i[c+1])break;f(c)}}function u(){for(;n>1;){var c=n-2;c>0&&i[c-1]=bo||b>=bo);if(T)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=t;;){var T=0,C=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)=0;y--)r[x+y]=r[w+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Ph(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,w=_+1,y=0;y=bo||C>=bo);if(M)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,w=m+1,y=p-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;ys&&(l=s),Qy(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),i-=n,t+=n}while(i!==0);o.forceMergeRuns()}}var Be=1,Qo=2,Rn=4,Jy=!1;function Eh(){Jy||(Jy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jy(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var BI=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jy}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Eh(),f.z=0),isNaN(f.z2)&&(Eh(),f.z2=0),isNaN(f.zlevel)&&(Eh(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),zI=BI,tb;tb=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var ip=tb,Du={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Du.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Du.bounceIn(r*2)*.5:Du.bounceOut(r*2-1)*.5+.5}},eb=Du,bl=Math.pow,za=Math.sqrt,Yu=1e-8,rb=1e-4,tm=za(3),Tl=1/3,Pr=an(),Je=an(),Wn=an();function Ra(r){return r>-Yu&&rYu||r<-Yu}function jt(r,e,t,a,i){var n=1-i;return n*n*(n*r+3*i*e)+i*i*(i*a+3*n*t)}function em(r,e,t,a,i){var n=1-i;return 3*(((e-r)*n+2*(t-e)*i)*n+(a-t)*i*i)}function Zu(r,e,t,a,i,n){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Ra(f)&&Ra(h))if(Ra(s))n[0]=0;else{var p=-l/s;p>=0&&p<=1&&(n[c++]=p)}else{var d=h*h-4*f*v;if(Ra(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(n[c++]=p),y>=0&&y<=1&&(n[c++]=y)}else if(d>0){var m=za(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-bl(-_,Tl):_=bl(_,Tl),S<0?S=-bl(-S,Tl):S=bl(S,Tl);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(n[c++]=p)}else{var w=(2*f*s-3*o*h)/(2*za(f*f*f)),x=Math.acos(w)/3,b=za(f),T=Math.cos(x),p=(-s-2*b*T)/(3*o),y=(-s+b*(T+tm*Math.sin(x)))/(3*o),C=(-s+b*(T-tm*Math.sin(x)))/(3*o);p>=0&&p<=1&&(n[c++]=p),y>=0&&y<=1&&(n[c++]=y),C>=0&&C<=1&&(n[c++]=C)}}return c}function ib(r,e,t,a,i){var n=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Ra(o)){if(ab(n)){var u=-s/n;u>=0&&u<=1&&(i[l++]=u)}}else{var f=n*n-4*o*s;if(Ra(f))i[0]=-n/(2*o);else if(f>0){var h=za(f),u=(-n+h)/(2*o),v=(-n-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Ua(r,e,t,a,i,n){var o=(e-r)*i+r,s=(t-e)*i+e,l=(a-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;n[0]=r,n[1]=o,n[2]=u,n[3]=h,n[4]=h,n[5]=f,n[6]=l,n[7]=a}function nb(r,e,t,a,i,n,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Pr[0]=l,Pr[1]=u;for(var m=0;m<1;m+=.05)Je[0]=jt(r,t,i,o,m),Je[1]=jt(e,a,n,s,m),g=Gi(Pr,Je),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*n*s;if(Ra(f)){var u=-o/(2*n);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=za(f),u=(-o+h)/(2*n),v=(-o-h)/(2*n);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function ob(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ms(r,e,t,a,i){var n=(e-r)*a+r,o=(t-e)*a+e,s=(o-n)*a+n;i[0]=r,i[1]=n,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function sb(r,e,t,a,i,n,o,s,l){var u,f=.005,h=1/0;Pr[0]=o,Pr[1]=s;for(var v=0;v<1;v+=.05){Je[0]=re(r,t,i,v),Je[1]=re(e,a,n,v);var c=Gi(Pr,Je);c=0&&c=1?1:Zu(0,a,n,1,l,s)&&jt(0,i,o,1,s[0])}}}var $I=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||qt,this.ondestroy=e.ondestroy||qt,this.onrestart=e.onrestart||qt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,i=e-this._startTime-this._pausedTime,n=i/a;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:eb[e]||Hd(e)},r}(),UI=$I,lb=function(){function r(e){this.value=e}return r}(),YI=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new lb(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),ZI=function(){function r(e){this._list=new YI,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,i=this._map,n=null;if(i[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new lb(t),s.key=e,a.insertEntry(s),i[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),el=ZI,rm={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]};function gr(r){return r=Math.round(r),r<0?0:r>255?255:r}function XI(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ds(r){return r<0?0:r>1?1:r}function kh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?gr(parseFloat(e)/100*255):gr(parseInt(e,10))}function Xn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ds(parseFloat(e)/100):Ds(parseFloat(e))}function Oh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ea(r,e,t){return r+(e-r)*t}function Ze(r,e,t,a,i){return r[0]=e,r[1]=t,r[2]=a,r[3]=i,r}function op(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var ub=new el(20),Cl=null;function vn(r,e){Cl&&op(Cl,e),Cl=ub.put(r,Cl||e.slice())}function ze(r,e){if(!!r){e=e||[];var t=ub.get(r);if(t)return op(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in rm)return op(e,rm[a]),vn(r,e),e;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){Ze(e,0,0,0,1);return}return Ze(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),vn(r,e),e}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){Ze(e,0,0,0,1);return}return Ze(e,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),vn(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ze(e,+u[0],+u[1],+u[2],1):Ze(e,0,0,0,1);f=Xn(u.pop());case"rgb":if(u.length!==3){Ze(e,0,0,0,1);return}return Ze(e,kh(u[0]),kh(u[1]),kh(u[2]),f),vn(r,e),e;case"hsla":if(u.length!==4){Ze(e,0,0,0,1);return}return u[3]=Xn(u[3]),sp(u,e),vn(r,e),e;case"hsl":if(u.length!==3){Ze(e,0,0,0,1);return}return sp(u,e),vn(r,e),e;default:return}}Ze(e,0,0,0,1)}}function sp(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Xn(r[1]),i=Xn(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return e=e||[],Ze(e,gr(Oh(o,n,t+1/3)*255),gr(Oh(o,n,t)*255),gr(Oh(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function qI(r){if(!!r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,i=Math.min(e,t,a),n=Math.max(e,t,a),o=n-i,s=(n+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+i):u=o/(2-n-i);var f=((n-e)/6+o/2)/o,h=((n-t)/6+o/2)/o,v=((n-a)/6+o/2)/o;e===n?l=v-h:t===n?l=1/3+f-v:a===n&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function lp(r,e){var t=ze(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return ra(t,t.length===4?"rgba":"rgb")}}function Nh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),i=Math.floor(a),n=Math.ceil(a),o=e[i],s=e[n],l=a-i;return t[0]=gr(Ea(o[0],s[0],l)),t[1]=gr(Ea(o[1],s[1],l)),t[2]=gr(Ea(o[2],s[2],l)),t[3]=Ds(Ea(o[3],s[3],l)),t}}function KI(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),i=Math.floor(a),n=Math.ceil(a),o=ze(e[i]),s=ze(e[n]),l=a-i,u=ra([gr(Ea(o[0],s[0],l)),gr(Ea(o[1],s[1],l)),gr(Ea(o[2],s[2],l)),Ds(Ea(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:n,value:a}:u}}function fs(r,e,t,a){var i=ze(r);if(r)return i=qI(i),e!=null&&(i[0]=XI(e)),t!=null&&(i[1]=Xn(t)),a!=null&&(i[2]=Xn(a)),ra(sp(i),"rgba")}function Xu(r,e){var t=ze(r);if(t&&e!=null)return t[3]=Ds(e),ra(t,"rgba")}function ra(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function qu(r,e){var t=ze(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Ku=Math.round;function qn(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=ze(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var am=1e-4;function ka(r){return r-am}function Al(r){return Ku(r*1e3)/1e3}function up(r){return Ku(r*1e4)/1e4}function QI(r){return"matrix("+Al(r[0])+","+Al(r[1])+","+Al(r[2])+","+Al(r[3])+","+up(r[4])+","+up(r[5])+")"}var JI={left:"start",right:"end",center:"middle",middle:"middle"};function jI(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function t2(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function e2(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function fb(r){return r&&!!r.image}function r2(r){return r&&!!r.svgElement}function a2(r){return fb(r)||r2(r)}function hb(r){return r.type==="linear"}function vb(r){return r.type==="radial"}function i2(r){return r&&(r.type==="linear"||r.type==="radial")}function $f(r){return"url(#"+r+")"}function cb(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pb(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Cu,i=ut(r.scaleX,1),n=ut(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(i!==1||n!==1)&&l.push("scale("+i+","+n+")"),(o||s)&&l.push("skew("+Ku(o*Cu)+"deg, "+Ku(s*Cu)+"deg)"),l.join(" ")}var n2=function(){return Ct.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),fp=Array.prototype.slice;function Kr(r,e,t){return(e-r)*t+r}function Vh(r,e,t,a){for(var i=e.length,n=0;na?e:r,n=Math.min(t,a),o=i[n-1]||{color:[0,0,0,0],offset:0},s=n;so;if(s)a.length=o;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var i=this.keyframes,n=i.length,o=!1,s=nm,l=t;if(de(t)){var u=u2(t);s=u,(u===1&&!xt(t[0])||u===2&&!xt(t[0][0]))&&(o=!0)}else if(xt(t)&&!As(t))s=Dl;else if($(t))if(!isNaN(+t))s=Dl;else{var f=ze(t);f&&(l=f,s=Jo)}else if(Hf(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:ze(c.color)}}),hb(t)?s=hp:vb(t)&&(s=vp),l=h}n===0?this.valType=s:(s!==this.valType||s===nm)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:eb[a]||Hd(a)),i.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var i=this.valType,n=a.length,o=a[n-1],s=this.discrete,l=Ll(i),u=om(i),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(!!(c&&p)){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?To:e[l];if((Ll(n)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(Ll(n))n===Iu?Vh(m,c[i],p[i],y):o2(m,c[i],p[i],y);else if(om(n)){var _=c[i],S=p[i],w=n===hp;e[l]={type:w?"linear":"radial",x:Kr(_.x,S.x,y),y:Kr(_.y,S.y,y),colorStops:G(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:Kr(b.offset,C.offset,y),color:Lu(Vh([],b.color,C.color,y))}}),global:S.global},w?(e[l].x2=Kr(_.x2,S.x2,y),e[l].y2=Kr(_.y2,S.y2,y)):e[l].r=Kr(_.r,S.r,y)}else if(u)Vh(m,c[i],p[i],y),a||(e[l]=Lu(m));else{var x=Kr(c[i],p[i],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,i=this._additiveValue;t===Dl?e[a]=e[a]+i:t===Jo?(ze(e[a],To),Ml(To,To,i,1),e[a]=Lu(To)):t===Iu?Ml(e[a],e[a],i,1):t===db&&im(e[a],e[a],i,1)},r}(),h2=function(){function r(e,t,a,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){Vd("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,yt(t),a)},r.prototype.whenWithKeys=function(e,t,a,i){for(var n=this._tracks,o=0;o0&&l.addKeyframe(0,hs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,hs(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],i=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,e[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}(),Wd=h2;function Vn(){return new Date().getTime()}var v2=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(!!t.animation){var a=t.prev,i=t.next;a?a.next=i:this._head=i,i?i.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Vn()-this._pausedTime,i=a-this._time,n=this._head;n;){var o=n.next,s=n.step(a,i);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=a,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(ip(a),!t._paused&&t.update())}ip(a)},e.prototype.start=function(){this._running||(this._time=Vn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Vn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Vn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var i=new Wd(t,a.loop);return this.addAnimator(i),i},e}(or),c2=v2,p2=300,Bh=Ct.domSupported,zh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(i){var n=i.replace("mouse","pointer");return t.hasOwnProperty(n)?n:i});return{mouse:r,touch:e,pointer:a}}(),sm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lm=!1;function cp(r){var e=r.pointerType;return e==="pen"||e==="touch"}function d2(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Gh(r){r&&(r.zrByTouch=!0)}function g2(r,e){return Xe(r.dom,new y2(r,e),!0)}function gb(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var y2=function(){function r(e,t){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),hr={mousedown:function(r){r=Xe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Xe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Xe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Xe(this.dom,r);var e=r.toElement||r.relatedTarget;gb(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){lm=!0,r=Xe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){lm||(r=Xe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Xe(this.dom,r),Gh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),hr.mousemove.call(this,r),hr.mousedown.call(this,r)},touchmove:function(r){r=Xe(this.dom,r),Gh(r),this.handler.processGesture(r,"change"),hr.mousemove.call(this,r)},touchend:function(r){r=Xe(this.dom,r),Gh(r),this.handler.processGesture(r,"end"),hr.mouseup.call(this,r),+new Date-+this.__lastTouchMomenthm||r<-hm}var ei=[],cn=[],Hh=ir(),Wh=Math.abs,Jr=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ti(this.rotation)||ti(this.x)||ti(this.y)||ti(this.scaleX-1)||ti(this.scaleY-1)||ti(this.skewX)||ti(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&fm(a);return}a=a||ir(),t?this.getLocalTransform(a):fm(a),e&&(t?aa(a,e,a):$d(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ei);var a=ei[0]<0?-1:1,i=ei[1]<0?-1:1,n=((ei[0]-a)*t+a)/ei[0]||0,o=((ei[1]-i)*t+i)/ei[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ir(),ao(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),n=Math.PI/2+i-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(aa(cn,e.invTransform,t),t=cn);var a=this.originX,i=this.originY;(a||i)&&(Hh[4]=a,Hh[5]=i,aa(cn,t,Hh),cn[4]-=a,cn[5]-=i,t=cn),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],i=this.invTransform;return i&&se(a,a,i),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],i=this.transform;return i&&se(a,a,i),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Wh(e[0]-1)>1e-10&&Wh(e[3]-1)>1e-10?Math.sqrt(Wh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){mb(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,i=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||i||s||l){var p=a+s,d=i+l;t[4]=-p*n-v*d*o,t[5]=-d*o-c*p*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=c*n,t[2]=v*o,u&&nn(t,t,u),t[4]+=a+f,t[5]+=i+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Gr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mb(r,e){for(var t=0;tp&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var i=a[0],n=a[3],o=a[4],s=a[5];e.x=t.x*i+o,e.y=t.y*n+s,e.width=t.width*i,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ri.x=ii.x=t.x,ri.y=ni.y=t.y,ai.x=ni.x=t.x+t.width,ai.y=ii.y=t.y+t.height,ri.transform(a),ni.transform(a),ai.transform(a),ii.transform(a),e.x=Il(ri.x,ai.x,ii.x,ni.x),e.y=Il(ri.y,ai.y,ii.y,ni.y);var l=Pl(ri.x,ai.x,ii.x,ni.x),u=Pl(ri.y,ai.y,ii.y,ni.y);e.width=l-e.x,e.height=u-e.y},r}(),vt=C2,vm={};function Ge(r,e){e=e||Wa;var t=vm[e];t||(t=vm[e]=new el(500));var a=t.get(r);return a==null&&(a=$a.measureText(r,e).width,t.put(r,a)),a}function cm(r,e,t,a){var i=Ge(r,e),n=Yf(e),o=jo(0,i,t),s=En(0,n,a),l=new vt(o,s,i,n);return l}function rl(r,e,t,a){var i=((r||"")+"").split(` -`),n=i.length;if(n===1)return cm(i[0],e,t,a);for(var o=new vt(0,0,0,0),s=0;s=0?parseFloat(r)/100*e:parseFloat(r):r}function Ju(r,e,t){var a=e.position||"inside",i=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=mr(a[0],t.width),u+=mr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=n+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=n-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=n-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=n-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var $h="__zr_normal__",Uh=Gr.concat(["ignore"]),A2=Br(Gr,function(r,e){return r[e]=!0,r},{ignore:!1}),pn={},M2=new vt(0,0,0,0),Yd=function(){function r(e){this.id=Yw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,i=a.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=i?this:null;var u=!1;if(n.copyTransform(t),a.position!=null){var f=M2;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pn,a,f):Ju(pn,a,f),n.x=pn.x,n.y=pn.y,o=pn.align,s=pn.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=mr(h[0],f.width),c=mr(h[1],f.height)),u=!0,n.originX=-n.x+v+(i?0:f.x),n.originY=-n.y+c+(i?0:f.y)}}a.rotation!=null&&(n.rotation=a.rotation);var p=a.offset;p&&(n.x+=p[0],n.y+=p[1],u||(n.originX=-p[0],n.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Be,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?yp:gp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&ze(t);a||(a=[255,255,255,1]);for(var i=a[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*i+(n?0:255)*(1-i);return a[3]=1,ra(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(J(e))for(var a=e,i=yt(a),n=0;n0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState($h,!1,e)},r.prototype.useState=function(e,t,a,i){var n=e===$h,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(ht(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){Vd("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Be),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var i=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Be)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var i=this.currentStates.slice(),n=ht(i,e),o=ht(i,t)>=0;n>=0?o?i.splice(n,1):i[n]=t:a&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,i=0;i=0&&n.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,i=a.length,n=[],o=0;o0&&t.during&&n[0].during(function(p,d){t.during(d)});for(var v=0;v0||i.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=hs(t[y]),L2(t,a,y)}}var w=new Wd(t,!1,!1,h?It(p,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,d),M&&w.whenWithKeys(0,M,d),w.whenWithKeys(u==null?500:u,s?C:a,d).delay(f||0),r.addAnimator(w,e),o.push(w)}}var Sb=Yd,xb=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var i=ht(this._children,t);return i>=0&&this.replaceAt(a,i),this},e.prototype.replaceAt=function(t,a){var i=this._children,n=i[a];if(t&&t!==this&&t.parent!==this&&t!==n){i[a]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,i=this._children,n=ht(i,t);return n<0?this:(i.splice(n,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=i)return o;if(r>=n)return s}else{if(r>=i)return o;if(r<=n)return s}else{if(r===i)return o;if(r===n)return s}return(r-i)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?N2(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Wt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),bb),r=(+r).toFixed(e),t?r:+r}function rr(r){return r.sort(function(e,t){return e-t}),r}function Er(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return V2(r)}function V2(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,i=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:i-1-n;return Math.max(0,o-a)}function Tb(r,e){var t=Math.log,a=Math.LN10,i=Math.floor(t(r[1]-r[0])/a),n=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-i+n,0),20);return isFinite(o)?o:20}function B2(r,e,t){if(!r[e])return 0;var a=Br(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(a===0)return 0;for(var i=Math.pow(10,t),n=G(r,function(p){return(isNaN(p)?0:p)/a*i*100}),o=i*100,s=G(n,function(p){return Math.floor(p)}),l=Br(s,function(p,d){return p+d},0),u=G(n,function(p,d){return p-s[d]});lf&&(f=u[v],h=v);++s[h],u[h]=0,++l}return s[e]/i}function z2(r,e){var t=Math.max(Er(r),Er(e)),a=r+e;return t>bb?a:Wt(a,t)}var gm=9007199254740991;function Cb(r){var e=Math.PI*2;return(r%e+e)%e}function ju(r){return r>-dm&&r=10&&e++,e}function Ab(r,e){var t=Zd(r),a=Math.pow(10,t),i=r/a,n;return e?i<1.5?n=1:i<2.5?n=2:i<4?n=3:i<7?n=5:n=10:i<1?n=1:i<2?n=2:i<3?n=3:i<5?n=5:n=10,r=n*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Xh(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),i=+r[a-1],n=t-a;return n?i+n*(r[a]-i):i}function ym(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||n&&ht(n,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var hP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vP=Qi(hP),cP=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return vP(this,e,t)},r}(),_p=new el(50);function pP(r){if(typeof r=="string"){var e=_p.get(r);return e&&e.image}else return r}function Qd(r,e,t,a,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=_p.get(r),o={hostEl:t,cb:a,cbPayload:i};if(n)e=n.image,!Xf(e)&&n.pending.push(o);else{var s=$a.loadImage(r,xm,xm);s.__zrImageSrc=r,_p.put(r,s.__cachedImgObj={image:s,pending:[o]})}return e}else return r;else return e}function xm(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ge(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function zb(r,e){var t=e.containerWidth,a=e.font,i=e.contentWidth;if(!t)return"";var n=Ge(r,a);if(n<=t)return r;for(var o=0;;o++){if(n<=i||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?gP(r,i,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*i/n):0;r=r.substr(0,s),n=Ge(r,a)}return r===""&&(r=e.placeholder),r}function gP(r,e,t,a){for(var i=0,n=0,o=r.length;nc&&u){var p=Math.floor(c/s);h=h.slice(0,p)}if(r&&n&&f!=null)for(var d=Bb(f,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&Kh(t,r.substring(s,u),e,o),Kh(t,l[2],e,o,l[1]),s=qh.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=b.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=Ge(x.text,M);else{if(I){var P=b.backgroundColor,R=P&&P.image;R&&(R=pP(R),Xf(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=p&&a!=null?a-S:null;E!=null&&E0&&p+a.accumWidth>a.width&&(f=e.split(` -`),u=!0),a.accumWidth=p}else{var d=Gb(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(` -`);for(var g=0;g=33&&e<=383}var wP=Br(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function bP(r){return xP(r)?!!wP[r]:!0}function Gb(r,e,t,a,i){for(var n=[],o=[],s="",l="",u=0,f=0,h=0;ht:i+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=v,f=c)):p?(n.push(l),o.push(u),l=v,u=c):(n.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=i),{accumWidth:f,lines:n,linesWidths:o}}var Sp="__zr_style_"+Math.round(Math.random()*10),Fi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fi[Sp]=!0;var bm=["z","z2","invisible"],TP=["invisible"],CP=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=yt(t),i=0;i1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Rl[0]=tv(i)*t+r,Rl[1]=jh(i)*a+e,El[0]=tv(n)*t+r,El[1]=jh(n)*a+e,u(s,Rl,El),f(l,Rl,El),i=i%si,i<0&&(i=i+si),n=n%si,n<0&&(n=n+si),i>n&&!o?n+=si:ii&&(kl[0]=tv(c)*t+r,kl[1]=jh(c)*a+e,u(s,kl,s),f(l,kl,l))}var Et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},li=[],ui=[],br=[],ya=[],Tr=[],Cr=[],ev=Math.min,rv=Math.max,fi=Math.cos,hi=Math.sin,Zr=Math.abs,xp=Math.PI,Ca=xp*2,av=typeof Float32Array!="undefined",Mo=[];function iv(r){var e=Math.round(r/xp*1e8)/1e8;return e%2*xp}function Fb(r,e){var t=iv(r[0]);t<0&&(t+=Ca);var a=t-r[0],i=r[1];i+=a,!e&&i-t>=Ca?i=t+Ca:e&&t-i>=Ca?i=t-Ca:!e&&t>i?i=t+(Ca-iv(t-i)):e&&t0&&(this._ux=Zr(a/Qu/e)||0,this._uy=Zr(a/Qu/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Et.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=Zr(e-this._xi),i=Zr(t-this._yi),n=a>this._ux||i>this._uy;if(this.addData(Et.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){return this._drawPendingPt(),this.addData(Et.C,e,t,a,i,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,i,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,i){return this._drawPendingPt(),this.addData(Et.Q,e,t,a,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,i),this._xi=a,this._yi=i,this},r.prototype.arc=function(e,t,a,i,n,o){this._drawPendingPt(),Mo[0]=i,Mo[1]=n,Fb(Mo,o),i=Mo[0],n=Mo[1];var s=n-i;return this.addData(Et.A,e,t,a,a,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,i,n,o),this._xi=fi(n)*a+e,this._yi=hi(n)*a+t,this},r.prototype.arcTo=function(e,t,a,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,i,n),this},r.prototype.rect=function(e,t,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,i),this.addData(Et.R,e,t,a,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Et.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&av&&(this.data=new Float32Array(t));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){br[0]=br[1]=Tr[0]=Tr[1]=Number.MAX_VALUE,ya[0]=ya[1]=Cr[0]=Cr[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,i=0,n=0,o;for(o=0;oa||Zr(_)>i||v===t-1)&&(d=Math.sqrt(m*m+_*_),n=g,o=y);break}case Et.C:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++],x=e[v++],b=e[v++];d=GI(n,o,S,w,g,y,x,b,10),n=x,o=b;break}case Et.Q:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++];d=HI(n,o,S,w,g,y,10),n=g,o=y;break}case Et.A:var T=e[v++],C=e[v++],M=e[v++],D=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,e[v++],p&&(s=fi(L)*M+T,l=hi(L)*D+C),d=rv(M,D)*ev(Ca,Math.abs(I)),n=fi(P)*M+T,o=hi(P)*D+C;break;case Et.R:{s=n=e[v++],l=o=e[v++];var R=e[v++],E=e[v++];d=R*2+E*2;break}case Et.Z:{var m=s-n,_=l-o;d=Math.sqrt(m*m+_*_),n=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,i=this._ux,n=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,w;if(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m))return;t:for(var x=0;x0&&(e.lineTo(S,w),_=0),b){case Et.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case Et.L:{h=a[x++],v=a[x++];var C=Zr(h-u),M=Zr(v-f);if(C>i||M>n){if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=D}e.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+M*M;I>_&&(S=h,w=v,_=I)}break}case Et.C:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++],O=a[x++],V=a[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Ua(u,P,E,O,L,li),Ua(f,R,N,V,L,ui),e.bezierCurveTo(li[1],ui[1],li[2],ui[2],li[3],ui[3]);break t}g+=D}e.bezierCurveTo(P,R,E,N,O,V),u=O,f=V;break}case Et.Q:{var P=a[x++],R=a[x++],E=a[x++],N=a[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Ms(u,P,E,L,li),Ms(f,R,N,L,ui),e.quadraticCurveTo(li[1],ui[1],li[2],ui[2]);break t}g+=D}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case Et.A:var F=a[x++],W=a[x++],Z=a[x++],tt=a[x++],ft=a[x++],Dt=a[x++],At=a[x++],pt=!a[x++],et=Z>tt?Z:tt,gt=Zr(Z-tt)>.001,lt=ft+Dt,X=!1;if(c){var D=p[y++];g+D>m&&(lt=ft+Dt*(m-g)/D,X=!0),g+=D}if(gt&&e.ellipse?e.ellipse(F,W,Z,tt,At,ft,lt,pt):e.arc(F,W,et,ft,lt,pt),X)break t;T&&(s=fi(ft)*Z+F,l=hi(ft)*tt+W),u=fi(lt)*Z+F,f=hi(lt)*tt+W;break;case Et.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var nt=a[x++],Nt=a[x++];if(c){var D=p[y++];if(g+D>m){var _t=m-g;e.moveTo(h,v),e.lineTo(h+ev(_t,nt),v),_t-=nt,_t>0&&e.lineTo(h+nt,v+ev(_t,Nt)),_t-=Nt,_t>0&&e.lineTo(h+rv(nt-_t,0),v+Nt),_t-=nt,_t>0&&e.lineTo(h,v+rv(Nt-_t,0));break t}g+=D}e.rect(h,v,nt,Nt);break;case Et.Z:if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Et,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),Fr=IP;function Ma(r,e,t,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>a+s||or+s&&n>t+s||ne+h&&f>a+h&&f>n+h&&f>s+h||fr+h&&u>t+h&&u>i+h&&u>o+h||ue+u&&l>a+u&&l>n+u||lr+u&&s>t+u&&s>i+u||st||f+ui&&(i+=Do);var v=Math.atan2(l,s);return v<0&&(v+=Do),v>=a&&v<=i||v+Do>=a&&v+Do<=i}function Qr(r,e,t,a,i,n){if(n>e&&n>a||ni?s:0}var ma=Fr.CMD,vi=Math.PI*2,EP=1e-4;function kP(r,e){return Math.abs(r-e)e&&u>a&&u>n&&u>s||u1&&OP(),c=jt(e,a,n,s,Ke[0]),v>1&&(p=jt(e,a,n,s,Ke[1]))),v===2?ge&&s>a&&s>n||s=0&&u<=1){for(var f=0,h=re(e,a,n,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Se[0]=-l,Se[1]=l;var u=Math.abs(a-i);if(u<1e-4)return 0;if(u>=vi-1e-4){a=0,i=vi;var f=n?1:-1;return o>=Se[0]+r&&o<=Se[1]+r?f:0}if(a>i){var h=a;a=i,i=h}a<0&&(a+=vi,i+=vi);for(var v=0,c=0;c<2;c++){var p=Se[c];if(p+r>o){var d=Math.atan2(s,p),f=n?1:-1;d<0&&(d=vi+d),(d>=a&&d<=i||d+vi>=a&&d+vi<=i)&&(d>Math.PI/2&&d1&&(t||(s+=Qr(l,u,f,h,a,i))),g&&(l=n[p],u=n[p+1],f=l,h=u),d){case ma.M:f=n[p++],h=n[p++],l=f,u=h;break;case ma.L:if(t){if(Ma(l,u,n[p],n[p+1],e,a,i))return!0}else s+=Qr(l,u,n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case ma.C:if(t){if(PP(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],e,a,i))return!0}else s+=NP(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case ma.Q:if(t){if(Hb(l,u,n[p++],n[p++],n[p],n[p+1],e,a,i))return!0}else s+=VP(l,u,n[p++],n[p++],n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case ma.A:var y=n[p++],m=n[p++],_=n[p++],S=n[p++],w=n[p++],x=n[p++];p+=1;var b=!!(1-n[p++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=Qr(l,u,v,c,a,i);var T=(a-y)*S/_+y;if(t){if(RP(y,m,S,w,w+x,b,e,T,i))return!0}else s+=BP(y,m,S,w,w+x,b,T,i);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case ma.R:f=l=n[p++],h=u=n[p++];var C=n[p++],M=n[p++];if(v=f+C,c=h+M,t){if(Ma(f,h,v,h,e,a,i)||Ma(v,h,v,c,e,a,i)||Ma(v,c,f,c,e,a,i)||Ma(f,c,f,h,e,a,i))return!0}else s+=Qr(v,h,v,c,a,i),s+=Qr(f,c,f,h,a,i);break;case ma.Z:if(t){if(Ma(l,u,f,h,e,a,i))return!0}else s+=Qr(l,u,f,h,a,i);l=f,u=h;break}}return!t&&!kP(u,h)&&(s+=Qr(l,u,f,h,a,i)||0),s!==0}function zP(r,e,t){return Wb(r,0,!1,e,t)}function GP(r,e,t,a){return Wb(r,e,!0,t,a)}var tf=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fi),FP={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qf.style)},nv=Gr.concat(["invisible","culling","z","z2","zlevel","parent"]),HP=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var n=i.style;for(var o in a)n[o]!==a[o]&&(n[o]=a[o]);n.fill=a.fill?a.decal:null,n.decal=null,n.shadowColor=null,a.strokeFirst&&(n.stroke=null);for(var s=0;s.5?gp:a>.2?w2:yp}else if(t)return yp}return gp},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if($(a)){var i=this.__zr,n=!!(i&&i.isDarkMode()),o=qu(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Rn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect(),o=this.style;if(t=i[0],a=i[1],n.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),GP(s,l/u,t,a)))return!0}if(this.hasFill())return zP(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Rn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=a:B(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Rn)},e.prototype.createStyle=function(t){return Wf(tf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=B({},this.shape))},e.prototype._applyStateObj=function(t,a,i,n,o,s){r.prototype._applyStateObj.call(this,t,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.shape?o?n?u=a.shape:(u=B({},i.shape),B(u,a.shape)):(u=B({},n?this.shape:i.shape),B(u,a.shape)):l&&(u=i.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=yt(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Wf(WP,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var i=rl(a,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(nr);$b.prototype.type="tspan";var Is=$b,$P=Q({x:0,y:0},Fi),UP={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qf.style)};function YP(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ub=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Wf($P,t)},e.prototype._getSize=function(t){var a=this.style,i=a[t];if(i!=null)return i;var n=YP(a.image)?a.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return UP},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new vt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(nr);Ub.prototype.type="image";var fe=Ub;function ZP(r,e){var t=e.x,a=e.y,i=e.width,n=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),n<0&&(a=a+n,n=-n),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>n&&(h=l+u,l*=n/h,u*=n/h),s+f>n&&(h=s+f,s*=n/h,f*=n/h),r.moveTo(t+s,a),r.lineTo(t+i-l,a),l!==0&&r.arc(t+i-l,a+l,l,-Math.PI/2,0),r.lineTo(t+i,a+n-u),u!==0&&r.arc(t+i-u,a+n-u,u,0,Math.PI/2),r.lineTo(t+f,a+n),f!==0&&r.arc(t+f,a+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var Bn=Math.round;function Yb(r,e,t){if(!!e){var a=e.x1,i=e.x2,n=e.y1,o=e.y2;r.x1=a,r.x2=i,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(Bn(a*2)===Bn(i*2)&&(r.x1=r.x2=Ni(a,s,!0)),Bn(n*2)===Bn(o*2)&&(r.y1=r.y2=Ni(n,s,!0))),r}}function Zb(r,e,t){if(!!e){var a=e.x,i=e.y,n=e.width,o=e.height;r.x=a,r.y=i,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Ni(a,s,!0),r.y=Ni(i,s,!0),r.width=Math.max(Ni(a+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Ni(i+o,s,!1)-r.y,o===0?0:1)),r}}function Ni(r,e,t){if(!e)return r;var a=Bn(r*2);return(a+Bn(e))%2===0?a/2:(a+(t?1:-1))/2}var XP=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),qP={},Xb=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XP},e.prototype.buildPath=function(t,a){var i,n,o,s;if(this.subPixelOptimize){var l=Zb(qP,a,this.style);i=l.x,n=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else i=a.x,n=a.y,o=a.width,s=a.height;a.r?ZP(t,a):t.rect(i,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(dt);Xb.prototype.type="rect";var St=Xb,Dm={fill:"#000"},Lm=2,KP={style:Q({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},qf.style)},qb=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Dm,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=x[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(n-(D-g)-(m-L)-C)/2;M<=I;)P=x[M],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,i,n,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=n+i/2;f==="top"?h=n+t.height/2:f==="bottom"&&(h=n+i-t.height/2);var v=!t.isLineHolder&&ov(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Om(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(Is),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=km("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),w=Em("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Lm,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Wa,g.opacity=ta(u.opacity,a.opacity,1),Pm(g,u),w&&(g.lineWidth=ta(u.lineWidth,a.lineWidth,_),g.lineDash=ut(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new vt(jo(g.x,b,g.textAlign),En(g.y,T,g.textBaseline),b,T))},e.prototype._renderBackground=function(t,a,i,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(St),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=i,y.y=n,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=ut(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(fe),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=n,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ut(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=ta(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return Qb(t)&&(a=[t.fontStyle,t.fontWeight,Kb(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&pr(a)||t.textFont||t.font},e}(nr),QP={left:!0,right:1,center:1},JP={top:1,bottom:1,middle:1},Im=["fontStyle","fontWeight","fontSize","fontFamily"];function Kb(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?kd+"px":r+"px"}function Pm(r,e){for(var t=0;t=0,n=!1;if(r instanceof dt){var o=Jb(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(dn(s)||dn(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(n=!0,a=B({},a),u=B({},u),u.fill=s):!dn(u.fill)&&dn(s)?(n=!0,a=B({},a),u=B({},u),u.fill=Gm(s)):!dn(u.stroke)&&dn(l)&&(n||(a=B({},a),u=B({},u)),u.stroke=Gm(l)),a.style=u}}if(a&&a.z2==null){n||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f!=null?f:no)}return a}function nR(r,e,t){if(t&&t.z2==null){t=B({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:tR)}return t}function oR(r,e,t){var a=ht(r.currentStates,e)>=0,i=r.style.opacity,n=a?null:aR(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=B({},t),o=B({opacity:a?i:n.opacity*.1},o),t.style=o),t}function sv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return iR(this,r,e,t);if(r==="blur")return oR(this,r,t);if(r==="select")return nR(this,r,t)}return t}function Ji(r){r.stateProxy=sv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=sv),t&&(t.stateProxy=sv)}function Hm(r,e){!nT(r,e)&&!r.__highByOuter&&pa(r,jb)}function Wm(r,e){!nT(r,e)&&!r.__highByOuter&&pa(r,tT)}function la(r,e){r.__highByOuter|=1<<(e||0),pa(r,jb)}function ua(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&pa(r,tT)}function rT(r){pa(r,tg)}function eg(r){pa(r,eT)}function aT(r){pa(r,eR)}function iT(r){pa(r,rR)}function nT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function oT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(i,n){var o=Jd(n),s=i==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){eT(u)}),s&&t.push(n)),o.isBlured=!1}),A(a,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function bp(r,e,t,a){var i=a.getModel();t=t||"coordinateSystem";function n(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:t.seriesIndex};n!=null&&(s.dataType=n),e.push(s)}})}),e}function Wi(r,e,t){Vi(r,!0),pa(r,Ji),Cp(r,e,t)}function vR(r){Vi(r,!1)}function $t(r,e,t,a){a?vR(r):Wi(r,e,t)}function Cp(r,e,t){var a=at(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var Um=["emphasis","blur","select"],cR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ue(r,e,t,a){t=t||"itemStyle";for(var i=0;i1&&(o*=lv(p),s*=lv(p));var d=(i===n?-1:1)*lv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Nl(h)*g-Ol(h)*y,_=(e+a)/2+Ol(h)*g+Nl(h)*y,S=qm([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=qm(w,x);if(Mp(w,x)<=-1&&(b=Lo),Mp(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Lo*1e6)/1e6;b=Lo*2+T%2*Lo}f.addData(u,m,_,o,s,S,b,h,n)}var _R=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xR(r){var e=new Fr;if(!r)return e;var t=0,a=0,i=t,n=a,o,s=Fr.CMD,l=r.match(_R);if(!l)return e;for(var u=0;uP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/w-1),y1:C*(i/w-1)}}function DR(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function LR(r,e){var t,a=ts(e.r,0),i=ts(e.r0||0,0),n=a>0,o=i>0;if(!(!n&&!o)){if(n||(a=i,i=0),i>a){var s=a;a=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=Qm(u-l),p=c>uv&&c%uv;if(p>fr&&(c=p),!(a>fr))r.moveTo(f,h);else if(c>uv-fr)r.moveTo(f+a*yn(l),h+a*ci(l)),r.arc(f,h,a,l,u,!v),i>fr&&(r.moveTo(f+i*yn(u),h+i*ci(u)),r.arc(f,h,i,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=a*yn(l),E=a*ci(l),N=i*yn(u),O=i*ci(u),V=c>fr;if(V){var F=e.cornerRadius;F&&(t=DR(F),d=t[0],g=t[1],y=t[2],m=t[3]);var W=Qm(a-i)/2;if(_=Ar(W,y),S=Ar(W,m),w=Ar(W,d),x=Ar(W,g),C=b=ts(_,S),M=T=ts(w,x),(b>fr||T>fr)&&(D=a*yn(u),L=a*ci(u),I=i*yn(l),P=i*ci(l),cfr){var gt=Ar(y,C),lt=Ar(m,C),X=Vl(I,P,R,E,a,gt,v),nt=Vl(D,L,N,O,a,lt,v);r.moveTo(f+X.cx+X.x0,h+X.cy+X.y0),C0&&r.arc(f+X.cx,h+X.cy,gt,ve(X.y0,X.x0),ve(X.y1,X.x1),!v),r.arc(f,h,a,ve(X.cy+X.y1,X.cx+X.x1),ve(nt.cy+nt.y1,nt.cx+nt.x1),!v),lt>0&&r.arc(f+nt.cx,h+nt.cy,lt,ve(nt.y1,nt.x1),ve(nt.y0,nt.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);if(!(i>fr)||!V)r.lineTo(f+N,h+O);else if(M>fr){var gt=Ar(d,M),lt=Ar(g,M),X=Vl(N,O,D,L,i,-lt,v),nt=Vl(R,E,I,P,i,-gt,v);r.lineTo(f+X.cx+X.x0,h+X.cy+X.y0),M0&&r.arc(f+X.cx,h+X.cy,lt,ve(X.y0,X.x0),ve(X.y1,X.x1),!v),r.arc(f,h,i,ve(X.cy+X.y1,X.cx+X.x1),ve(nt.cy+nt.y1,nt.cx+nt.x1),v),gt>0&&r.arc(f+nt.cx,h+nt.cy,gt,ve(nt.y1,nt.x1),ve(nt.y0,nt.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,i,u,l,v)}r.closePath()}}}var IR=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),dT=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new IR},e.prototype.buildPath=function(t,a){LR(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(dt);dT.prototype.type="sector";var Pe=dT,PR=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),gT=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new PR},e.prototype.buildPath=function(t,a){var i=a.cx,n=a.cy,o=Math.PI*2;t.moveTo(i+a.r,n),t.arc(i,n,a.r,0,o,!1),t.moveTo(i+a.r0,n),t.arc(i,n,a.r0,0,o,!0)},e}(dt);gT.prototype.type="ring";var jf=gT;function RR(r,e,t,a){var i=[],n=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var n=RR(i,a,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sdi[1]){if(s=!1,n)return s;var f=Math.abs(di[0]-pi[1]),h=Math.abs(pi[0]-di[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function wt(r,e,t,a,i,n){sg("update",r,e,t,a,i,n)}function Vt(r,e,t,a,i,n){sg("enter",r,e,t,a,i,n)}function $n(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function t0(r){return!r.isGroup}function jR(r){return r.shape!=null}function ol(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){t0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return jR(o)&&(s.shape=B({},o.shape)),s}var n=a(r);e.traverse(function(o){if(t0(o)&&o.anid){var s=n[o.anid];if(s){var l=i(o);o.attr(i(s)),wt(o,l,t,at(o).dataIndex)}}})}function LT(r,e){return G(r,function(t){var a=t[0];a=af(a,e.x),a=nf(a,e.x+e.width);var i=t[1];return i=af(i,e.y),i=nf(i,e.y+e.height),[a,i]})}function tE(r,e){var t=af(r.x,e.x),a=nf(r.x+r.width,e.x+e.width),i=af(r.y,e.y),n=nf(r.y+r.height,e.y+e.height);if(a>=t&&n>=i)return{x:t,y:i,width:a-t,height:n-i}}function sl(r,e,t){var a=B({rectHover:!0},e),i=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),Q(i,t),new fe(a)):eh(r.replace("path://",""),a,t,"center")}function es(r,e,t,a,i){for(var n=0,o=i[i.length-1];n1)return!1;var g=fv(c,p,f,h)/v;return!(g<0||g>1)}function fv(r,e,t,a){return r*a-t*e}function eE(r){return r<=1e-6&&r>=-1e-6}function so(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,i=$(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:a,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&A(yt(l),function(f){Y(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=at(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:a,option:Q({content:a,formatterParams:s},i)}}function e0(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Ja(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function ja(r,e){return st(st({},r,!0),e,!0)}var pE={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dE={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},sf="ZH",ug="EN",ks=ug,Nu={},fg={},VT=Ct.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(sf)>-1?sf:ks}():ks;function BT(r,e){r=r.toUpperCase(),fg[r]=new Rt(e),Nu[r]=e}function gE(r){if($(r)){var e=Nu[r.toUpperCase()]||{};return r===sf||r===ug?j(e):st(j(e),j(Nu[ks]),!1)}else return st(j(r),j(Nu[ks]),!1)}function Ip(r){return fg[r]}function yE(){return fg[ks]}BT(ug,pE);BT(sf,dE);var hg=1e3,vg=hg*60,ys=vg*60,er=ys*24,o0=er*365,rs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Gl="{yyyy}-{MM}-{dd}",s0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gl,hour:Gl+" "+rs.hour,minute:Gl+" "+rs.minute,second:Gl+" "+rs.second,millisecond:rs.none},cv=["year","month","day","hour","minute","second","millisecond"],zT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ne(r,e){return r+="","0000".substr(0,e-r.length)+r}function Un(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function mE(r){return r===Un(r)}function _E(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ih(r,e,t,a){var i=_r(r),n=i[cg(t)](),o=i[Yn(t)]()+1,s=Math.floor((o-1)/4)+1,l=i[nh(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[Os(t)](),h=(f-1)%12+1,v=i[oh(t)](),c=i[sh(t)](),p=i[lh(t)](),d=a instanceof Rt?a:Ip(a||VT)||yE(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,n%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ne(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ne(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ne(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ne(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ne(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ne(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ne(p,3)).replace(/{S}/g,p+"")}function SE(r,e,t,a,i){var n=null;if($(t))n=t;else if(K(t))n=t(r.value,e,{level:r.level});else{var o=B({},rs);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(z(n)){var h=r.level==null?0:r.level>=0?r.level:n.length+r.level;h=Math.min(h,n.length-1),n=n[h]}}return ih(new Date(r.value),n,i,a)}function GT(r,e){var t=_r(r),a=t[Yn(e)]()+1,i=t[nh(e)](),n=t[Os(e)](),o=t[oh(e)](),s=t[sh(e)](),l=t[lh(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&n===0,c=v&&i===1,p=c&&a===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function l0(r,e,t){var a=xt(r)?_r(r):r;switch(e=e||GT(r,t),e){case"year":return a[cg(t)]();case"half-year":return a[Yn(t)]()>=6?1:0;case"quarter":return Math.floor((a[Yn(t)]()+1)/4);case"month":return a[Yn(t)]();case"day":return a[nh(t)]();case"half-day":return a[Os(t)]()/24;case"hour":return a[Os(t)]();case"minute":return a[oh(t)]();case"second":return a[sh(t)]();case"millisecond":return a[lh(t)]()}}function cg(r){return r?"getUTCFullYear":"getFullYear"}function Yn(r){return r?"getUTCMonth":"getMonth"}function nh(r){return r?"getUTCDate":"getDate"}function Os(r){return r?"getUTCHours":"getHours"}function oh(r){return r?"getUTCMinutes":"getMinutes"}function sh(r){return r?"getUTCSeconds":"getSeconds"}function lh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xE(r){return r?"setUTCFullYear":"setFullYear"}function FT(r){return r?"setUTCMonth":"setMonth"}function HT(r){return r?"setUTCDate":"setDate"}function WT(r){return r?"setUTCHours":"setHours"}function $T(r){return r?"setUTCMinutes":"setMinutes"}function UT(r){return r?"setUTCSeconds":"setSeconds"}function YT(r){return r?"setUTCMilliseconds":"setMilliseconds"}function ZT(r){if(!Mb(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function XT(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var fo=Gd,wE=/([&<>"'])/g,bE={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ve(r){return r==null?"":(r+"").replace(wE,function(e,t){return bE[t]})}function Pp(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&pr(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?_r(r):r;if(isNaN(+l)){if(s)return"-"}else return ih(l,a,t)}if(e==="ordinal")return qc(r)?i(r):xt(r)&&n(r)?r+"":"-";var u=sa(r);return n(u)?ZT(u):qc(r)?i(r):typeof r=="boolean"?r+"":"-"}var u0=["a","b","c","d","e","f","g"],pv=function(r,e){return"{"+r+(e==null?"":e)+"}"};function qT(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var i=e[0].$vars||[],n=0;n':'';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function dZ(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd -yyyy`);var a=_r(e),i=t?"getUTC":"get",n=a[i+"FullYear"](),o=a[i+"Month"]()+1,s=a[i+"Date"](),l=a[i+"Hours"](),u=a[i+"Minutes"](),f=a[i+"Seconds"](),h=a[i+"Milliseconds"]();return r=r.replace("MM",Ne(o,2)).replace("M",o).replace("yyyy",n).replace("yy",n%100+"").replace("dd",Ne(s,2)).replace("d",s).replace("hh",Ne(l,2)).replace("h",l).replace("mm",Ne(u,2)).replace("m",u).replace("ss",Ne(f,2)).replace("s",f).replace("SSS",Ne(h,3)),r}function ji(r,e){return e=e||"transparent",$(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function lf(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Vu=A,KT=["left","right","top","bottom","width","height"],Bi=[["width","left","right"],["height","top","bottom"]];function pg(r,e,t,a,i){var n=0,o=0;a==null&&(a=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=n+d,c>a||l.newline?(n=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>i||l.newline?(n+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=c+t:o=p+t)})}var Ui=pg;it(pg,"vertical");it(pg,"horizontal");function AE(r,e,t){var a=e.width,i=e.height,n=H(r.left,a),o=H(r.top,i),s=H(r.right,a),l=H(r.bottom,i);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),t=fo(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Jt(r,e,t){t=fo(t||0);var a=e.width,i=e.height,n=H(r.left,a),o=H(r.top,i),s=H(r.right,a),l=H(r.bottom,i),u=H(r.width,a),f=H(r.height,i),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-n),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/i?u=a*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(n)&&(n=a-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":n=a/2-u/2-t[3];break;case"right":n=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-h;break}n=n||0,o=o||0,isNaN(u)&&(u=a-v-n-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var p=new vt(n+t[3],o+t[0],u,f);return p.margin=t,p}function uh(r,e,t,a,i,n){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new vt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=Jt(Q({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(n.x=v,n.y=c):(n.x+=v,n.y+=c),n===r&&r.markRedraw(),!0}function ME(r,e){return r[Bi[e][0]]!=null||r[Bi[e][1]]!=null&&r[Bi[e][2]]!=null}function Ns(r){var e=r.layoutMode||r.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function Za(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var i=o(Bi[0],0),n=o(Bi[1],1);u(Bi[0],r,i),u(Bi[1],r,n);function o(f,h){var v={},c=0,p={},d=0,g=2;if(Vu(f,function(_){p[_]=r[_]}),Vu(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=st(s,i[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Index",n=t+"Id";return al(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Rt);Vb(vo,Rt);Zf(vo);vE(vo);cE(vo,LE);function LE(r){var e=[];return A(vo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return kr(t).main}),r!=="dataset"&&ht(e,"dataset")<=0&&e.unshift("dataset"),e}var mt=vo,JT="";typeof navigator!="undefined"&&(JT=navigator.platform||"");var mn="rgba(0, 0, 0, 0.2)",IE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:JT.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},jT=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),sr="original",ge="arrayRows",lr="objectRows",Wr="keyedColumns",Ga="typedArray",tC="unknown",Vr="column",co="row",oe={Must:1,Might:2,Not:3},eC=bt();function PE(r){eC(r).datasetMap=q()}function rC(r,e,t){var a={},i=gg(e);if(!i||!r)return a;var n=[],o=[],s=e.ecModel,l=eC(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),A(r,function(d,g){var y=J(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(n,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function nC(r,e,t,a,i,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!a?t:NE(a,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function VE(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Fl,Io,h0,v0="\0_ec_inner",BE=1,oC=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,i,n,o,s){n=n||{},this.option=null,this._theme=new Rt(n),this._locale=new Rt(o),this._optionManager=s},e.prototype.setOption=function(t,a,i){var n=d0(a);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,a){return this._resetOption(t,d0(a))},e.prototype._resetOption=function(t,a){var i=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?h0(this,o):(this.restoreData(),this._mergeOption(o,a)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,a)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var i=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;PE(this),A(t,function(h,v){h!=null&&(mt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?j(h):st(i[v],h,!0))}),u&&u.each(function(h,v){mt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),mt.topologicalTravel(s,mt.getAllClassMainTypes(),f,this);function f(h){var v=kE(this,h,Pt(t[h])),c=n.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=Rb(c,v,p);K2(d,h,mt),i[h]=null,n.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;A(d,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=mt.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var M=B({componentIndex:w},S.keyInfo);x=new C(b,this,this,M),B(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,n.set(h,y),o.set(h,m),h==="series"&&Fl(this)}this._seriesIndices||Fl(this)},e.prototype.getOption=function(){var t=j(this.option);return A(t,function(a,i){if(mt.hasClass(i)){for(var n=Pt(a),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Ls(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[i]=n}}),delete t[v0],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var i=this._componentsMap.get(t);if(i){var n=i[a||0];if(n)return n;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function qE(r,e){return r.join(",")===e.join(",")}var KE=UE,ur=A,Vs=J,g0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gv(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=g0.length;t=0;d--){var g=r[d];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,v)),c>=0){var y=g.data.getByRawIndex(g.stackResultDimension,c);if(h>=0&&y>0||h<=0&&y<0){h=z2(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var fh=function(){function r(e){this.data=e.data||(e.sourceFormat===Wr?{}:[]),this.sourceFormat=e.sourceFormat||tC,this.seriesLayoutBy=e.seriesLayoutBy||Vr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=_)}c[0]=p,c[1]=d}},i=function(){return this._data?this._data.length/this._dimSize:0};b0=(e={},e[ge+"_"+Vr]={pure:!0,appendData:n},e[ge+"_"+co]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[lr]={pure:!0,appendData:n},e[Wr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[sr]={appendData:n},e[Ga]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Kn(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function M0(r){var e,t;return J(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function ms(r){return new ck(r)}var ck=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!a&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||n==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return n;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},dk=function(){function r(e,t){if(!xt(t)){var a="";Mt(a)}this._opFn=mC[e],this._rvalFloat=sa(t)}return r.prototype.evaluate=function(e){return xt(e)?this._opFn(e,this._rvalFloat):this._opFn(sa(e),this._rvalFloat)},r}(),_C=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=xt(e)?e:sa(e),i=xt(t)?t:sa(t),n=isNaN(a),o=isNaN(i);if(n&&(a=this._incomparable),o&&(i=this._incomparable),n&&o){var s=$(e),l=$(t);s&&(a=l?e:0),l&&(i=s?t:0)}return ai?-this._resultLT:0},r}(),gk=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=sa(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=sa(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function yk(r,e){return r==="eq"||r==="ne"?new gk(r==="eq",e):Y(mC,r)?new dk(r,e):null}var mk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Fa(e,t)},r}();function _k(r,e){var t=new mk,a=r.data,i=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Vr&&Mt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";Y(l,y)&&Mt(_),l[y]=m}});else for(var f=0;f65535?Mk:Dk}function _n(){return[1/0,-1/0]}function Lk(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function I0(r,e,t,a,i){var n=wC[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new n(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var i=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var i=this._chunks,n=i[e],o=[];if(!n)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,i=this._count;if(a===Array){e=new a(i);for(var n=0;n=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(n===2){for(var g=c[i[0]],_=c[i[1]],S=e[i[1]][0],w=e[i[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(n===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;ye[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),i=a._chunks,n=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Ro(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}D>0&&Df-p&&(l=f-p,s.length=l);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return n._count=c,n._indices=v,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(!!this._count)for(var a=e.length,i=this._chunks,n=0,o=this.count();nl&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],i=this._chunks,n=0;n=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,i,n){return Fa(t[n],this._dimensions[n])}_v={arrayRows:e,objectRows:function(t,a,i,n){return Fa(t[a],this._dimensions[n])},keyedColumns:e,original:function(t,a,i,n){var o=t&&(t.value==null?t:t.value);return Fa(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,a,i,n){return t[n]}}}(),r}(),bC=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,i,n;if(Hl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=Fe(s)?Ga:sr,n=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ut(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=ut(h.sourceHeader,v.sourceHeader),d=ut(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;i=g?[kp(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);i=m.sourceList,n=m.upstreamSignList}else{var _=y.get("source",!0);i=[kp(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(i,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var n="";e.length!==1&&R0(n)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&R0(h),s.push(f),l.push(u._getVersionSign())}),a?o=Ck(a,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[ok(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return A(r.blocks,function(i){var n=MC(i);n>=e&&(e=n+ +(a&&(!n||Np(i)&&!i.noHeader)))}),e}return 0}function Rk(r,e,t,a){var i=e.noHeader,n=kk(MC(e)),o=[],s=e.blocks||[];be(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var f=new _C(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,d){var g=e.valueFormatter,y=AC(p)(g?B(B({},r),{valueFormatter:g}):r,p,d>0?n.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(n.richText):Vp(o.join(""),i?t:n.html);if(i)return h;var v=Pp(e.header,"ordinal",r.useUTC),c=CC(a,r.renderMode).nameStyle;return r.renderMode==="richText"?DC(r,v,c)+n.richText+h:Vp('
'+Ve(v)+"
"+h,t)}function Ek(r,e,t,a){var i=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(w,x){return Pp(w,z(c)?c[x]:c,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),v=n?"":Pp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value),d=!s||!n,g=!s&&n,y=CC(a,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(n?"":DC(r,v,m))+(o?"":Vk(r,p,d,g,_)):Vp((s?"":h)+(n?"":Ok(v,!s,m))+(o?"":Nk(p,d,g,_)),t)}}function E0(r,e,t,a,i,n){if(!!r){var o=AC(r),s={useUTC:i,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function kk(r){return{html:Ik[r],richText:Pk[r]}}function Vp(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function Ok(r,e,t){var a=e?"margin-left:2px":"";return''+Ve(r)+""}function Nk(r,e,t,a){var i=t?"10px":"20px",n=e?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],''+G(r,function(o){return Ve(o)}).join("  ")+""}function DC(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Vk(r,e,t,a,i){var n=[i],o=a?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,n)}function LC(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return ji(a)}function IC(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Sv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Db()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var i=a==="richText"?this._generateStyleName():null,n=CE({color:t,type:e,renderMode:a,markerId:i});return $(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?A(t,function(n){return B(a,n)}):B(a,t);var i=this._generateStyleName();return this.richTextStyles[i]=a,"{"+i+"|"+e+"}"},r}();function PC(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,i=e.getData(),n=i.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=z(s),u=LC(e,t),f,h,v,c;if(o>1||l&&!o){var p=Bk(s,e,t,n,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=i.getDimensionInfo(n[0]);c=f=Kn(i,t,n[0]),h=d.type}else c=f=l?s[0]:s;var g=Xd(e),y=g&&e.name||"",m=i.getName(t),_=a?y:m;return ee("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ee("nameValue",{markerType:"item",markerColor:u,name:_,noName:!pr(_),value:f,valueType:h})].concat(v||[])})}function Bk(r,e,t,a,i){var n=e.getData(),o=Br(r,function(h,v,c){var p=n.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(Kn(n,t,h),h)}):A(r,f);function f(h,v){var c=n.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(ee("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var _a=bt();function Wl(r,e){return r.getName(e)||r.getId(e)}var Bu="__universalTransitionEnabled",vh=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,i){this.seriesIndex=this.componentIndex,this.dataTask=ms({count:Gk,reset:Fk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=_a(this).sourceManager=new bC(this);n.prepareSource();var o=this.getInitialData(t,i);O0(o,this),this.dataTask.context.data=o,_a(this).dataBeforeProcessed=o,k0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var i=Ns(this),n=i?ho(t):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),st(t,a.getTheme().get(this.subType)),st(t,this.getDefaultOption()),qi(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Za(t,n,i)},e.prototype.mergeOption=function(t,a){t=st(this.option,t,!0),this.fillDataTextStyle(t.data);var i=Ns(this);i&&Za(this.option,t,i);var n=_a(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,a);O0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,_a(this).dataBeforeProcessed=o,k0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Fe(t))for(var a=["show"],i=0;ithis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,i){var n=this.ecModel,o=yg.prototype.getColorFromPalette.call(this,t,a,i);return o||(o=n.getColorFromPalette(t,a,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var i=this.option.selectedMap;if(!!i){var n=this.option.selectedMode,o=this.getData(a);if(n==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},e.prototype.isSelected=function(t,a){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(a);return(i==="all"||i[Wl(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Bu])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var i,n,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return mt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(mt);Yt(vh,xg);Yt(vh,yg);Vb(vh,mt);function k0(r){var e=r.name;Xd(r)||(r.name=zk(r)||e)}function zk(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(i){var n=e.getDimensionInfo(i);n.displayName&&a.push(n.displayName)}),a.join(" ")}function Gk(r){return r.model.getRawData().count()}function Fk(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),Hk}function Hk(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function O0(r,e){A(Kc(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,it(Wk,e))})}function Wk(r,e){var t=Bp(r);return t&&t.setOutputEnd((e||this).count()),e}function Bp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var i=a.agentStubMap;i&&(a=i.get(r.uid))}return a}}var zt=vh,bg=function(){function r(){this.group=new rt,this.uid=uo("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,i){},r.prototype.updateLayout=function(e,t,a,i){},r.prototype.updateVisual=function(e,t,a,i){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Kd(bg);Zf(bg);var Gt=bg;function go(){var r=bt();return function(e){var t=r(e),a=e.pipelineContext,i=!!t.large,n=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(i!==o||n!==s)&&"reset"}}var RC=bt(),$k=go(),Tg=function(){function r(){this.group=new rt,this.uid=uo("viewChart"),this.renderTask=ms({plan:Uk,reset:Yk}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,i){},r.prototype.highlight=function(e,t,a,i){var n=e.getData(i&&i.dataType);!n||V0(n,i,"emphasis")},r.prototype.downplay=function(e,t,a,i){var n=e.getData(i&&i.dataType);!n||V0(n,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.updateLayout=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.updateVisual=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.eachRendered=function(e){Ja(this.group,e)},r.markUpdateMethod=function(e,t){RC(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function N0(r,e,t){r&&Rs(r)&&(e==="emphasis"?la:ua)(r,t)}function V0(r,e,t){var a=Ki(r,e),i=e&&e.highlightKey!=null?dR(e.highlightKey):null;a!=null?A(Pt(a),function(n){N0(r.getItemGraphicEl(n),t,i)}):r.eachItemGraphicEl(function(n){N0(n,t,i)})}Kd(Tg);Zf(Tg);function Uk(r){return $k(r.model)}function Yk(r){var e=r.model,t=r.ecModel,a=r.api,i=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=i&&RC(i).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,i),Zk[l]}var Zk={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Ot=Tg,uf="\0__throttleOriginMethod",B0="\0__throttleRate",z0="\0__throttleType";function Cg(r,e,t){var a,i=0,n=0,o=null,s,l,u,f;e=e||0;function h(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p=0?h():o=setTimeout(h,-s),i=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function yo(r,e,t,a){var i=r[e];if(!!i){var n=i[uf]||i,o=i[z0],s=i[B0];if(s!==t||o!==a){if(t==null||!a)return r[e]=n;i=r[e]=Cg(n,t,a==="debounce"),i[uf]=n,i[z0]=a,i[B0]=t}return i}}function Bs(r,e){var t=r[e];t&&t[uf]&&(t.clear&&t.clear(),r[e]=t[uf])}var G0=bt(),F0={itemStyle:Qi(NT,!0),lineStyle:Qi(OT,!0)},Xk={lineStyle:"stroke",itemStyle:"fill"};function EC(r,e){var t=r.visualStyleMapper||F0[e];return t||(console.warn("Unkown style type '"+e+"'."),F0.itemStyle)}function kC(r,e){var t=r.visualDrawType||Xk[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var qk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=r.getModel(a),n=EC(r,a),o=n(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=kC(r,a),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=B({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},Eo=new Rt,Kk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=EC(r,a),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Eo.option=l[a];var u=i(Eo),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Eo.option.decal&&(o.setItemVisual(s,"decal",Eo.option.decal),Eo.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Qk={performRawSeries:!0,overallReset:function(r){var e=q();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+a,n=e.get(i);n||(n={},e.set(i,n)),G0(t).scope=n}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),i={},n=t.getData(),o=G0(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=kC(t,s);n.each(function(u){var f=n.getRawIndex(u);i[f]=u}),a.each(function(u){var f=i[u],h=n.getItemVisual(f,"colorFromPalette");if(h){var v=n.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},$l=Math.PI;function Jk(r,e){e=e||{},Q(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new rt,a=new St({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var i=new Tt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new St({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new ng({shape:{startAngle:-$l/2,endAngle:-$l/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:$l*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:$l*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var jk=function(){function r(e,t,a,i){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=a.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var i=a.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),i=a.context,n=!t&&a.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=n?a.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),i=e.getData(),n=i.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&n>=a.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=q();e.eachSeries(function(i){var n=i.getProgressive(),o=i.uid;a.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:n&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(i){var n=e.get(i.uid)||e.set(i.uid,{}),o="";be(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,n,t,a),i.overallReset&&this._createOverallStageTask(i,n,t,a)},this)},r.prototype.prepareView=function(e,t,a,i){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=a,o.api=i,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,i){i=i||{};var n=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,i.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(n=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,i){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=q(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||ms({plan:iO,reset:nO,count:sO}));c.context={model:h,ecModel:a,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,a,i){var n=this,o=t.overallTask=t.overallTask||ms({reset:tO});o.context={ecModel:a,api:i,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=q(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";be(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):f?f(a,i).each(p):(h=!1,A(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,ms({reset:eO,onDirty:aO})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,n._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,i=this._pipelineMap.get(a);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:lO(e)}),e.uid=uo("stageHandler"),t&&(e.visualType=t),e},r}();function tO(r){r.overallReset(r.ecModel,r.api,r.payload)}function eO(r){return r.overallProgress&&rO}function rO(){this.agent.dirty(),this.getDownstream().dirty()}function aO(){this.agent&&this.agent.dirty()}function iO(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function nO(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Pt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return OC(a)}):oO}var oO=OC(0);function OC(r){return function(e,t){var a=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var n=e.start;n0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:i}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var i=a.targetEl,n=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,n));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),zp=["symbol","symbolSize","symbolRotate","symbolOffset"],U0=zp.concat(["symbolKeepAspect"]),vO={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},i={},n=!1,o=0;o0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:xt(r)?[r]:z(r)?r:null}function Mg(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&IO(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=G(t,function(n){return n/i}),a/=i)}return[t,a]}var PO=new Fr(!0);function vf(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Y0(r){return typeof r=="string"&&r!=="none"}function cf(r){var e=r.fill;return e!=null&&e!=="none"}function Z0(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function X0(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Fp(r,e,t){var a=Qd(e.image,e.__image,t);if(Xf(a)){var i=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Cu),n.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(n)}return i}}function RO(r,e,t,a){var i,n=vf(t),o=cf(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||PO,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=n&&!!c.colorStops,g=o&&!!v.image,y=n&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?Gp(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?Gp(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?Fp(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?Fp(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(w?r.strokeStyle=w:n=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var T,C;r.setLineDash&&t.lineDash&&(i=Mg(e),T=i[0],C=i[1]);var M=!0;(u||h&Rn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(t.strokeFirst?(n&&X0(r,t),o&&Z0(r,t)):(o&&Z0(r,t),n&&X0(r,t))),T&&r.setLineDash([])}function EO(r,e,t){var a=e.__image=Qd(t.image,e.__image,e,e.onload);if(!(!a||!Xf(a))){var i=t.x||0,n=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,i,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,i,n,o,s)}else r.drawImage(a,i,n,o,s)}}function kO(r,e,t){var a,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||Wa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=Mg(e),n=a[0],o=a[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(vf(t)&&r.strokeText(i,t.x,t.y),cf(t)&&r.fillText(i,t.x,t.y)):(cf(t)&&r.fillText(i,t.x,t.y),vf(t)&&r.strokeText(i,t.x,t.y)),n&&r.setLineDash([])}}var q0=["shadowBlur","shadowOffsetX","shadowOffsetY"],K0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function HC(r,e,t,a,i){var n=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){Ie(r,i),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Fi.opacity:o}(a||e.blend!==t.blend)&&(n||(Ie(r,i),n=!0),r.globalCompositeOperation=e.blend||Fi.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,i){if(!this[ce]){if(this._disposed){this.id;return}var n,o,s;if(J(a)&&(i=a.lazyUpdate,n=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ce]=!0,!this._model||a){var l=new KE(this._api),u=this._theme,f=this._model=new sC;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Wp);var h={seriesTransition:s,optionChanged:!0};if(i)this[Me]={silent:n,updateParams:h},this[ce]=!1,this.getZr().wakeUp();else{try{xn(this),Sa.update.call(this,null,h)}catch(v){throw this[Me]=null,this[ce]=!1,v}this._ssr||this._zr.flush(),this[Me]=null,this[ce]=!1,ko.call(this,n),Oo.call(this,n)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||UO&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!Ct.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,i=this._model,n=[],o=this;A(a,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",i=this.group,n=Math.min,o=Math.max,s=1/0;if(h_[i]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(Ss,function(_,S){if(_.group===i){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(t)),x=_.getDom().getBoundingClientRect();l=n(x.left,l),u=n(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=$a.createCanvas(),y=pm(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(v,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new St({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),A(v,function(_){var S=new fe({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return Cv(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return Cv(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var i=this._model,n,o=cs(i,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(n=n||h.containPoint(a,u))}},this)},this),!!n},e.prototype.getVisual=function(t,a){var i=this._model,n=cs(i,t,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?Ag(s,l,a):ul(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(oN,function(a){var i=function(n){var o=t.getModel(),s=n.target,l,u=a==="globalout";if(u?l={}:s&&zn(s,function(p){var d=at(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=B({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=n,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)}),A(_s,function(a,i){t._messageCenter.on(i,function(n){this.trigger(i,n)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),pO(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&kb(this.getDom(),Ig,"");var a=this,i=a._api,n=a._model;A(a._componentsViews,function(o){o.dispose(n,i)}),A(a._chartsViews,function(o){o.dispose(n,i)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ss[a.id]},e.prototype.resize=function(t){if(!this[ce]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var i=a.resetOption("media"),n=t&&t.silent;this[Me]&&(n==null&&(n=this[Me].silent),i=!0,this[Me]=null),this[ce]=!0;try{i&&xn(this),Sa.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)})}catch(o){throw this[ce]=!1,o}this[ce]=!1,ko.call(this,n),Oo.call(this,n)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(J(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!$p[t]){var i=$p[t](this._api,a),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=B({},t);return a.type=_s[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(J(a)||(a={silent:!!a}),!!pf[t.type]&&!!this._model){if(this[ce]){this._pendingActions.push(t);return}var i=a.silent;Mv.call(this,t,i);var n=a.flush;n?this._zr.flush():n!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),ko.call(this,i),Oo.call(this,i)}},e.prototype.updateLabelLayout=function(){vr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(a);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){xn=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Tv(h,!0),Tv(h,!1),v.plan()},Tv=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!Ct.node&&!Ct.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-1/0),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if($n(y))return;if(y instanceof dt&&gR(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}u_=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){la(p,d),He(h)},c.prototype.leaveEmphasis=function(p,d){ua(p,d),He(h)},c.prototype.enterBlur=function(p){rT(p),He(h)},c.prototype.leaveBlur=function(p){eg(p),He(h)},c.prototype.enterSelect=function(p){aT(p),He(h)},c.prototype.leaveSelect=function(p){iT(p),He(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(lC))(h)},iA=function(h){function v(c,p){for(var d=0;d=0)){v_.push(t);var n=BC.wrapStageHandler(t,i);n.__prio=e,n.__raw=t,r.push(n)}}function fA(r,e){$p[r]=e}function cN(r,e,t){var a=qC("registerMap");a&&a(r,e,t)}function mZ(r){var e=qC("getMap");return e&&e(r)}var pN=Tk;sn(Dg,qk);sn(ch,Kk);sn(ch,Qk);sn(Dg,vO);sn(ch,cO);sn(JC,HO);lA(fC);uA(XO,ik);fA("default",Jk);$r({type:Hi,event:Hi,update:Hi},qt);$r({type:Eu,event:Eu,update:Eu},qt);$r({type:ps,event:ps,update:ps},qt);$r({type:ku,event:ku,update:ku},qt);$r({type:ds,event:ds,update:ds},qt);sA("light",uO);sA("dark",fO);var c_=[],dN={registerPreprocessor:lA,registerProcessor:uA,registerPostInit:uN,registerPostUpdate:fN,registerUpdateLifecycle:Pg,registerAction:$r,registerCoordinateSystem:hN,registerLayout:vN,registerVisual:sn,registerTransform:pN,registerLoading:fA,registerMap:cN,registerImpl:$O,PRIORITY:aN,ComponentModel:mt,ComponentView:Gt,SeriesModel:zt,ChartView:Ot,registerComponentModel:function(r){mt.registerClass(r)},registerComponentView:function(r){Gt.registerClass(r)},registerSeriesModel:function(r){zt.registerClass(r)},registerChartView:function(r){Ot.registerClass(r)},registerSubTypeDefaulter:function(r,e){mt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){O2(r,e)}};function ct(r){if(z(r)){A(r,function(e){ct(e)});return}ht(c_,r)>=0||(c_.push(r),K(r)&&(r={install:r}),r.install(dN))}function No(r){return r==null?0:r.length||1}function p_(r){return r}var gN=function(){function r(e,t,a,i,n,o){this._old=e,this._new=t,this._oldKeyGetter=a||p_,this._newKeyGetter=i||p_,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},i=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,a,n,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},i={},n=[],o=[];this._initIndexMap(e,a,n,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Vo=J,xa=G,bN=typeof Int32Array=="undefined"?Array:Int32Array,TN="e\0\0",d_=-1,CN=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AN=["_approximateExtent"],g_,ql,Bo,zo,Iv,Kl,Pv,MN=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,i=!1;vA(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,a=e),a=a||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f=t)){var a=this._store,i=a.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===sr;if(l&&!i.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,i=a[e];i||(i=a[e]={});var n=i[t];return n==null&&(n=this.getVisual(t),z(n)?n=n.slice():Vo(n)&&(n=B({},n)),i[t]=n),n},r.prototype.setItemVisual=function(e,t,a){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Vo(t)?B(i,t):i[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Vo(e)?B(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?B(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;wp(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,i){a&&e&&e.call(t,a,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:xa(this.dimensions,this._getDimInfo,this),this.hostModel)),Iv(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!K(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=a.apply(this,arguments);return t.apply(this,[i].concat(zd(arguments)))})},r.internalField=function(){g_=function(e){var t=e._invertedIndicesMap;A(t,function(a,i){var n=e._dimInfos[i],o=n.ordinalMeta,s=e._store;if(o){a=t[i]=new bN(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[t]=l}}}(),r}(),we=MN;function _Z(r,e){return _o(r,e).dimensions}function _o(r,e){mg(r)||(r=_g(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],i=q(),n=[],o=LN(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&dA(o),l=a===r.dimensionsDefine,u=l?pA(r):cA(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=q(f),v=new xC(o),c=0;c0&&(a.name=i+(n-1)),n++,e.set(i,n)}}function LN(r,e,t,a){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(n){var o;J(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function IN(r,e,t){var a=e.data;if(t||a.hasOwnProperty(r)){for(var i=0;a.hasOwnProperty(r+i);)i++;r+=i}return e.set(r,!0),r}var PN=function(){function r(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e}return r}();function RN(r){var e=r.get("coordinateSystem"),t=new PN(e),a=EN[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var EN={cartesian2d:function(r,e,t,a){var i=r.getReferringComponents("xAxis",Xt).models[0],n=r.getReferringComponents("yAxis",Xt).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",n),wn(i)&&(a.set("x",i),e.firstCategoryDimIndex=0),wn(n)&&(a.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var i=r.getReferringComponents("singleAxis",Xt).models[0];e.coordSysDims=["single"],t.set("single",i),wn(i)&&(a.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var i=r.getReferringComponents("polar",Xt).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),wn(n)&&(a.set("radius",n),e.firstCategoryDimIndex=0),wn(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();A(n.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),wn(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function wn(r){return r.get("type")==="category"}function gA(r,e,t){t=t||{};var a=t.byIndex,i=t.stackedCoordDimension,n,o,s;kN(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(A(n,function(m,_){$(m)&&(n[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;A(n,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(n.push(g),n.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function kN(r){return!vA(r.schema)}function ha(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Eg(r,e){return ha(r,e)?r.getCalculationInfo("stackResultDimension"):e}function ON(r,e){var t=r.get("coordinateSystem"),a=po.get(t),i;return e&&e.coordSysDims&&(i=G(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=gf(l)}return o})),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),i}function NN(r,e,t){var a,i;return t&&A(r,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&a!=null&&(r[a].otherDims.itemName=0),a}function Ur(r,e,t){t=t||{};var a=e.getSourceManager(),i,n=!1;r?(n=!0,i=_g(r)):(i=a.getSource(),n=i.sourceFormat===sr);var o=RN(e),s=ON(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?it(rC,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=_o(i,f),v=NN(h.dimensions,t.createInvertedIndices,o),c=n?null:a.getSharedDataStore(h),p=gA(e,{schema:h,store:c}),d=new we(h,e);d.setCalculationInfo(p);var g=v!=null&&VN(i)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(n?i:c,null,g),d}function VN(r){if(r.sourceFormat===sr){var e=BN(r.data||[]);return!z(io(e))}}function BN(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Zf(yA);var da=yA,zN=0,GN=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++zN}return r.createByAxisModel=function(e){var t=e.option,a=t.data,i=a&&G(a,FN);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!$(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function FN(r){return J(r)&&r.value!=null?r.value:r+""}var Up=GN;function Yp(r){return r.type==="interval"||r.type==="log"}function HN(r,e,t,a){var i={},n=r[1]-r[0],o=i.interval=Ab(n/e,!0);t!=null&&oa&&(o=i.interval=a);var s=i.intervalPrecision=mA(o),l=i.niceTickExtent=[Wt(Math.ceil(r[0]/o)*o,s),Wt(Math.floor(r[1]/o)*o,s)];return WN(l,r),i}function Rv(r){var e=Math.pow(10,Zd(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Wt(t*e)}function mA(r){return Er(r)+2}function y_(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function WN(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),y_(r,0,e),y_(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ph(r,e){return r>=e[0]&&r<=e[1]}function dh(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function gh(r,e){return r*(e[1]-e[0])+e[0]}var _A=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var i=a.getSetting("ordinalMeta");return i||(i=new Up({})),z(i)&&(i=new Up({categories:G(i,function(n){return J(n)?n.value:n})})),a._ordinalMeta=i,a._extent=a.getSetting("extent")||[0,i.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ph(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),dh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(gh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,i=a[0];i<=a[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(da);da.registerClass(_A);var kg=_A,_i=Wt,SA=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ph(t,this._extent)},e.prototype.normalize=function(t){return dh(t,this._extent)},e.prototype.scale=function(t){return gh(t,this._extent)},e.prototype.setExtent=function(t,a){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(a)||(i[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mA(t)},e.prototype.getTicks=function(t){var a=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:n[1];return i[1]>f&&(t?s.push({value:_i(f+a,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),i=[],n=this.getExtent(),o=1;on[0]&&c0&&(n=n===null?s:Math.min(n,s))}t[a]=n}}return t}function bA(r){var e=YN(r),t=[];return A(r,function(a){var i=a.coordinateSystem,n=i.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=e[l],f=Math.abs(o[1]-o[0]),h=n.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=H(a.get("barWidth"),s),d=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(DA(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Ng(n),stackId:Og(a)})}),TA(t)}function TA(r){var e={};A(r,function(a,i){var n=a.axisKey,o=a.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return A(e,function(a,i){t[i]={};var n=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=yt(n).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(n,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;A(n,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;A(n,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function ZN(r,e,t){if(r&&e){var a=r[Ng(e)];return a!=null&&t!=null?a[Og(t)]:a}}function CA(r,e){var t=wA(r,e),a=bA(t);A(t,function(i){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Og(i),u=a[Ng(s)][l],f=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function AA(r){return{seriesType:r,plan:go(),reset:function(e){if(!!MA(e)){var t=e.getData(),a=e.coordinateSystem,i=a.getBaseAxis(),n=a.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),h=ha(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=n.isHorizontal(),c=XN(i,n),p=DA(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=p&&Or(w*3),b=p&&l&&Or(w*3),T=p&&Or(w),C=a.master.getRect(),M=v?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(h?g:o,D),R=L.get(s,D),E=c,N=void 0;h&&(N=+P-L.get(o,D));var O=void 0,V=void 0,F=void 0,W=void 0;if(v){var Z=a.dataToPoint([P,R]);if(h){var tt=a.dataToPoint([N,R]);E=tt[0]}O=E,V=Z[1]+m,F=Z[0]-E,W=y,Math.abs(F)>>1;r[i][1]i&&(this._approxInterval=i);var s=Ql.length,l=Math.min(qN(Ql,this._approxInterval,0,s),s-1);this._interval=Ql[l][1],this._minLevelUnit=Ql[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return xt(t)?t:+_r(t)},e.prototype.contain=function(t){return ph(this.parse(t),this._extent)},e.prototype.normalize=function(t){return dh(this.parse(t),this._extent)},e.prototype.scale=function(t){return gh(t,this._extent)},e.type="time",e}(Xa),Ql=[["second",hg],["minute",vg],["hour",ys],["quarter-day",ys*6],["half-day",ys*12],["day",er*1.2],["half-week",er*3.5],["week",er*7],["month",er*31],["quarter",er*95],["half-year",o0/2],["year",o0]];function KN(r,e,t,a){var i=_r(e),n=_r(t),o=function(p){return l0(i,p,a)===l0(n,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function QN(r,e){return r/=er,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function JN(r){var e=30*er;return r/=e,r>6?6:r>3?3:r>2?2:1}function jN(r){return r/=ys,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function m_(r,e){return r/=e?vg:hg,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function tV(r){return Ab(r,!0)}function eV(r,e,t){var a=new Date(r);switch(Un(e)){case"year":case"month":a[FT(t)](0);case"day":a[HT(t)](1);case"hour":a[WT(t)](0);case"minute":a[$T(t)](0);case"second":a[UT(t)](0),a[YT(t)](0)}return a.getTime()}function rV(r,e,t,a){var i=1e4,n=zT,o=0;function s(M,D,L,I,P,R,E){for(var N=new Date(D),O=D,V=N[I]();O1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===n[c]))break}f=[]}}}for(var S=It(G(u,function(M){return It(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),w=[],x=S.length-1,c=0;c0;)n*=10;var s=[Wt(nV(a[0]/n)*n),Wt(iV(a[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){xs.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=We(t)/We(this.base),ph(t,this._extent)},e.prototype.normalize=function(t){return t=We(t)/We(this.base),dh(t,this._extent)},e.prototype.scale=function(t){return t=gh(t,this._extent),Jl(this.base,t)},e.type="log",e}(da),PA=Vg.prototype;PA.getMinorTicks=xs.getMinorTicks;PA.getLabel=xs.getLabel;function jl(r,e){return aV(r,Er(e))}da.registerClass(Vg);var oV=Vg,sV=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[uV[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=lV[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),lV={min:"_determinedMin",max:"_determinedMax"},uV={min:"_dataMin",max:"_dataMax"};function RA(r,e,t){var a=r.rawExtentInfo;return a||(a=new sV(r,e,t),r.rawExtentInfo=a,a)}function tu(r,e){return e==null?null:As(e)?NaN:r.parse(e)}function EA(r,e){var t=r.type,a=RA(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var i=a.min,n=a.max,o=e.ecModel;if(o&&t==="time"){var s=wA("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=bA(s),f=fV(i,n,e,u);i=f.min,n=f.max}}return{extent:[i,n],fixMin:a.minFixed,fixMax:a.maxFixed}}function fV(r,e,t,a){var i=t.axis.getExtent(),n=i[1]-i[0],o=ZN(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/n,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function tn(r,e){var t=e,a=EA(r,t),i=a.extent,n=t.get("splitNumber");r instanceof oV&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:n,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function hl(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new kg({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new IA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(da.getClass(e)||Xa)}}function hV(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function vl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(i,n){return r.scale.getFormattedLabel(i,n,a)}}(e):$(e)?function(a){return function(i){var n=r.scale.getLabel(i),o=a.replace("{value}",n!=null?n:"");return o}}(e):K(e)?function(a){return function(i,n){return t!=null&&(n=i.value-t),a(Bg(r,i),n,i.level!=null?{level:i.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function Bg(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function vV(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,i,n=t.getExtent();t instanceof kg?i=t.count():(a=t.getTicks(),i=a.length);var o=r.getLabelModel(),s=vl(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var So=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function SZ(r){return Ur(null,r)}var xZ={isDimensionStacked:ha,enableDataStack:gA,getStackedDimension:Eg};function wZ(r,e){var t=e;e instanceof Rt||(t=new Rt(e));var a=hl(t);return a.setExtent(r[0],r[1]),tn(a,t),a}function bZ(r){Yt(r,So)}var dV=1e-8;function S_(r,e){return Math.abs(r-e)i&&(a=o,i=l)}if(a)return yV(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var i=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?x_(s.exterior,i,n,t):A(s.points,function(l){x_(l,i,n,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),a=new vt(i[0],i[1],n[0]-i[0],n[1]-i[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),i=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var n=0,o=i.length;n>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,a.push([s/t,l/t])}return a}function SV(r,e){return r=_V(r),G(It(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,i=t.geometry,n=[];switch(i.type){case"Polygon":var o=i.coordinates;n.push(new w_(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&n.push(new w_(l[0],l.slice(1)))});break;case"LineString":n.push(new b_([i.coordinates]));break;case"MultiLineString":n.push(new b_(i.coordinates))}var s=new NA(a[e||"name"],n,a.cp);return s.properties=a,s})}var Hs=bt();function xV(r){return r.type==="category"?bV(r):CV(r)}function wV(r,e){return r.type==="category"?TV(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function bV(r){var e=r.getLabelModel(),t=BA(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function BA(r,e){var t=zA(r,"labels"),a=zg(e),i=GA(t,a);if(i)return i;var n,o;return K(a)?n=WA(r,a):(o=a==="auto"?AV(r):a,n=HA(r,o)),FA(t,a,{labels:n,labelCategoryInterval:o})}function TV(r,e){var t=zA(r,"ticks"),a=zg(e),i=GA(t,a);if(i)return i;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),K(a))n=WA(r,a,!0);else if(a==="auto"){var s=BA(r,r.getLabelModel());o=s.labelCategoryInterval,n=G(s.labels,function(l){return l.tickValue})}else o=a,n=HA(r,o,!0);return FA(t,a,{ticks:n,tickCategoryInterval:o})}function CV(r){var e=r.scale.getTicks(),t=vl(r);return{labels:G(e,function(a,i){return{level:a.level,formattedLabel:t(a,i),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function zA(r,e){return Hs(r)[e]||(Hs(r)[e]=[])}function GA(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=n[1];l+=s){var p=0,d=0,g=rl(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Hs(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function DV(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function HA(r,e,t){var a=vl(r),i=r.scale,n=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=kA(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==n[0]&&d(n[0]);for(var p=u;p<=n[1];p+=l)d(p);c&&p-l!==n[1]&&d(n[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function WA(r,e,t){var a=r.scale,i=vl(r),n=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),n}var T_=[0,1],LV=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=a&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Tb(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(a=a.slice(),C_(a,i.count())),Lt(e,T_,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(a=a.slice(),C_(a,i.count()));var n=Lt(e,a,T_,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=wV(this,t),i=a.ticks,n=G(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return IV(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),i=G(a,function(n){return G(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return xV(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/a},r.prototype.calculateCategoryInterval=function(){return MV(this)},r}();function C_(r,e){var t=r[1]-r[0],a=e,i=t/a/2;r[0]+=i,r[1]-=i}function IV(r,e,t,a){var i=e.length;if(!r.onBand||t||!i)return;var n=r.getExtent(),o,s;if(i===1)e[0].coord=n[0],o=e[1]={coord:n[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var h=n[0]>n[1];v(e[0].coord,n[0])&&(a?e[0].coord=n[0]:e.shift()),a&&v(n[0],e[0].coord)&&e.unshift({coord:n[0]}),v(n[1],o.coord)&&(a?o.coord=n[1]:e.pop()),a&&v(o.coord,n[1])&&e.push({coord:n[1]});function v(c,p){return c=Wt(c),p=Wt(p),h?c>p:ci&&(i+=Go);var c=Math.atan2(s,o);if(c<0&&(c+=Go),c>=a&&c<=i||c+Go>=a&&c+Go<=i)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(i)+r,y=t*Math.sin(i)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function mf(r,e,t,a,i,n,o,s){var l=i-r,u=n-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-i)*(d-i)+(g-n)*(g-n))}function $A(r,e,t,a,i,n,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-i)*(u-i)+(f-n)*(f-n))}var cr=[];function kV(r,e,t){var a=$A(e.x,e.y,e.width,e.height,r.x,r.y,cr);return t.set(cr[0],cr[1]),a}function OV(r,e,t){for(var a=0,i=0,n=0,o=0,s,l,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,dr.fromArray(r[0]),kt.fromArray(r[1]),Ut.fromArray(r[2]),ot.sub(Nr,dr,kt),ot.sub(Rr,Ut,kt);var t=Nr.len(),a=Rr.len();if(!(t<.001||a<.001)){Nr.scale(1/t),Rr.scale(1/a);var i=Nr.dot(Rr),n=Math.cos(e);if(n1&&ot.copy(xe,Ut),xe.toArray(r[1])}}}}function NV(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dr.fromArray(r[0]),kt.fromArray(r[1]),Ut.fromArray(r[2]),ot.sub(Nr,kt,dr),ot.sub(Rr,Ut,kt);var a=Nr.len(),i=Rr.len();if(!(a<.001||i<.001)){Nr.scale(1/a),Rr.scale(1/i);var n=Nr.dot(e),o=Math.cos(t);if(n=l)ot.copy(xe,Ut);else{xe.scaleAndAdd(Rr,s/Math.tan(Math.PI/2-f));var h=Ut.x!==kt.x?(xe.x-kt.x)/(Ut.x-kt.x):(xe.y-kt.y)/(Ut.y-kt.y);if(isNaN(h))return;h<0?ot.copy(xe,kt):h>1&&ot.copy(xe,Ut)}xe.toArray(r[1])}}}}function M_(r,e,t,a){var i=t==="normal",n=i?r:r.ensureState(t);n.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();i?r.useStyle(s):n.style=s}function VV(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var i=La(a[0],a[1]),n=La(a[1],a[2]);if(!i||!n){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(i,n)*t,s=Au([],a[1],a[0],o/i),l=Au([],a[1],a[2],o/n),u=Au([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&n&&w(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=d.rect[e]-a,m=i-g.rect[e]-g.rect[t]}function S(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){w(D*M,0,o);var L=D+T;L<0&&x(-L*M,1)}else x(-T*M,1)}}function w(T,C,M){T!==0&&(u=!0);for(var D=C;D0)for(var L=0;L0;L--){var E=M[L-1]*R;w(-E,L,o)}}}function b(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?w(M,0,D+1):w(-M,o-D-1,o),T-=M,T<=0)return}return u}function BV(r,e,t,a){return ZA(r,"x","width",e,t,a)}function XA(r,e,t,a){return ZA(r,"y","height",e,t,a)}function qA(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new vt(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var i=0;i=0&&a.attr(n.oldLayoutSelect),ht(v,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),wt(a,u,t,l)}else if(a.attr(u),!lo(a).valueAnimation){var h=ut(a.style.opacity,1);a.style.opacity=0,Vt(a,{style:{opacity:h}},t,l)}if(n.oldLayout=u,a.states.select){var c=n.oldLayoutSelect={};eu(c,u,ru),eu(c,a.states.select,ru)}if(a.states.emphasis){var p=n.oldLayoutEmphasis={};eu(p,u,ru),eu(p,a.states.emphasis,ru)}kT(a,l,f,t,t)}if(i&&!i.ignore&&!i.invisible){var n=FV(i),o=n.oldLayout,d={points:i.shape.points};o?(i.attr({shape:o}),wt(i,{shape:d},t)):(i.setShape(d),i.style.strokePercent=0,Vt(i,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}(),WV=HV,Nv=bt();function $V(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var i=Nv(t).labelManager;i||(i=Nv(t).labelManager=new WV),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var i=Nv(t).labelManager;a.updatedSeries.forEach(function(n){i.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()})}var Vv=Math.sin,Bv=Math.cos,KA=Math.PI,xi=Math.PI*2,UV=180/KA,YV=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){this._add("C",e,t,a,i,n,o)},r.prototype.quadraticCurveTo=function(e,t,a,i){this._add("Q",e,t,a,i)},r.prototype.arc=function(e,t,a,i,n,o){this.ellipse(e,t,a,a,0,i,n,o)},r.prototype.ellipse=function(e,t,a,i,n,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=ka(h-xi)||(f?u>=xi:-u>=xi),c=u>0?u%xi:u%xi+xi,p=!1;v?p=!0:ka(h)?p=!1:p=c>=KA==!!f;var d=e+a*Bv(o),g=t+i*Vv(o);this._start&&this._add("M",d,g);var y=Math.round(n*UV);if(v){var m=1/this._p,_=(f?1:-1)*(xi-m);this._add("A",a,i,y,1,+f,e+a*Bv(o+_),t+i*Vv(o+_)),m>.01&&this._add("A",a,i,y,0,+f,d,g)}else{var S=e+a*Bv(s),w=t+i*Vv(s);this._add("A",a,i,y,+p,+f,S,w)}},r.prototype.rect=function(e,t,a,i){this._add("M",e,t),this._add("l",a,0),this._add("l",0,i),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,i,n,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function eB(r){return""}function Hg(r,e){e=e||{};var t=e.newline?` -`:"";function a(i){var n=i.children,o=i.tag,s=i.attrs;return tB(o,s)+(i.text||"")+(n?""+t+G(n,function(l){return a(l)}).join(t)+t:"")+eB(o)}return a(r)}function rB(r,e,t){t=t||{};var a=t.newline?` -`:"",i=" {"+a,n=a+"}",o=G(yt(r),function(l){return l+i+G(yt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+n}).join(a),s=G(yt(e),function(l){return"@keyframes "+l+i+G(yt(e[l]),function(u){return u+i+G(yt(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+n}).join(a)+n}).join(a);return!o&&!s?"":[""].join(a)}function qp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function L_(r,e,t,a){return te("svg","root",{width:r,height:e,xmlns:JA,"xmlns:xlink":jA,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var I_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ci="transform-origin";function aB(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var i=new QA;return i.reset(cb(r)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function iB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Ci]=t+"px "+a+"px")}var nB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function eM(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function oB(r,e,t){var a=r.shape.paths,i={},n,o;if(A(a,function(l){var u=qp(t.zrId);u.animation=!0,yh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=yt(f),c=v.length;if(!!c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];i[d]=i[d]||{d:""},i[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(n=m)}}}),!!n){e.d=!1;var s=eM(i,t);return n.replace(o,s)}}function P_(r){return $(r)?I_[r]?"cubic-bezier("+I_[r]+")":Hd(r)?r:"":""}function yh(r,e,t,a){var i=r.animators,n=i.length,o=[];if(r instanceof og){var s=oB(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var pt=eM(b,t);return pt+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var Ws=Math.round;function rM(r){return r&&$(r.src)}function aM(r){return r&&K(r.toDataURL)}function Wg(r,e,t,a){QV(function(i,n){var o=i==="fill"||i==="stroke";o&&i2(n)?pB(e,r,i,a):o&&a2(n)?dB(t,r,i,a):r[i]=n},e,t,!1),cB(t,r,a)}function R_(r){return ka(r[0]-1)&&ka(r[1])&&ka(r[2])&&ka(r[3]-1)}function sB(r){return ka(r[4])&&ka(r[5])}function $g(r,e,t){if(e&&!(sB(e)&&R_(e))){var a=t?10:1e4;r.transform=R_(e)?"translate("+Ws(e[4]*a)/a+" "+Ws(e[5]*a)/a+")":QI(e)}}function E_(r,e,t){for(var a=r.points,i=[],n=0;nn?(p=t[l+1]==null?null:t[l+1].elm,sM(r,p,t,i,l)):Sf(r,e,a,n))}function kn(r,e){var t=e.elm=r.elm,a=r.children,i=e.children;r!==e&&(Ug(r,e),Kp(e.text)?Ir(a)&&Ir(i)?a!==i&&SB(t,a,i):Ir(i)?(Ir(r.text)&&zv(t,""),sM(t,null,i,0,i.length-1)):Ir(a)?Sf(t,a,0,a.length-1):Ir(r.text)&&zv(t,""):r.text!==e.text&&(Ir(a)&&Sf(t,a,0,a.length-1),zv(t,e.text)))}function xB(r,e){if(is(r,e))kn(r,e);else{var t=r.elm,a=nM(t);$s(e),a!==null&&(Ri(a,e.elm,oM(t)),Sf(a,[r],0,0))}return e}var wB=0,bB=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=G_(),this.configLayer=G_(),this.storage=t,this._opts=a=B({},a),this.root=e,this._id="zr"+wB++,this._oldVNode=L_(a.width,a.height),e&&!a.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=tM("svg");Ug(null,this._oldVNode),i.appendChild(n),e.appendChild(i)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xB(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return O_(e,qp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._backgroundColor,i=this._width,n=this._height,o=qp(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var s=[];if(a&&a!=="none"){var l=qn(a),u=l.color,f=l.opacity;this._bgVNode=te("rect","bg",{width:i,height:n,x:"0",y:"0",id:"0",fill:u,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=te("g","main",{},[]);this._paintList(t,o,h?h.children:s),h&&s.push(h);var v=G(yt(o.defs),function(d){return o.defs[d]});if(v.length&&s.push(te("defs","defs",{},v)),e.animation){var c=rB(o.cssNodes,o.cssAnims,{newline:!0});if(c){var p=te("style","stl",{},[],c);s.push(p)}}return L_(i,n,s,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Hg(this.renderToVNode({animation:ut(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ut(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var a=qn(e),i=a.color,n=a.opacity;t.elm.setAttribute("fill",i),n<1&&t.elm.setAttribute("fill-opacity",n)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var i=e.length,n=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=n[o-1];for(var y=d+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=c.dpr,D=0;D0&&e>i[0]){for(l=0;le);l++);s=a[i[l]]}if(i.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,i=0;i0?au:0),this._needsManuallyCompositing),f.__builtin__||Vd("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),n=f),i.__dirty&Be&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?st(a[e],t,!0):a[e]=t;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(zt),kB=EB;function Qn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var i=Kn(r,e,t[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o=0&&a.push(e[n])}return a.join(" ")}var OB=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o.updateData(t,a,i,n),o}return e.prototype._createSymbol=function(t,a,i,n,o){this.removeAll();var s=Kt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=NB,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){la(this.childAt(0))},e.prototype.downplay=function(){ua(this.childAt(0))},e.prototype.setZ=function(t,a){var i=this.childAt(0);i.zlevel=t,i.z=a},e.prototype.setDraggable=function(t){var a=this.childAt(0);a.draggable=t,a.cursor=t?"move":a.cursor},e.prototype.updateData=function(t,a,i,n){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):wt(v,c,s,a),Sr(v)}if(this._updateCommon(t,a,l,i,n),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Vt(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,i,n,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,h=n.selectItemStyle,v=n.focus,c=n.blurScope,d=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,p=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ne(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=mo(t.getItemVisual(a,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),b=x.fill;if(s instanceof fe){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;ye(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(R){return D?t.getName(R):Qn(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");if(I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f,g){var P=Math.max(xt(g)?g:1.1,3/this._sizeY);I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P}this.setSymbolScale(1),$t(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,i){var n=this.childAt(0),o=at(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Ya(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Ya(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return fl(t.getItemVisual(a,"symbolSize"))},e}(rt);function NB(r,e){this.parent.drift(r,e)}var cl=OB;function Fv(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function W_(r){return r!=null&&!J(r)&&(r={isIgnore:r}),r||{}}function $_(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ne(e),cursorStyle:e.get("cursor")}}var VB=function(){function r(e){this.group=new rt,this._SymbolCtor=e||cl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=W_(t);var a=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=$_(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};n||a.removeAll(),e.diff(n).add(function(h){var v=f(h);if(Fv(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=n.getItemGraphicEl(v),p=f(h);if(!Fv(e,p,h,t)){a.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):wt(c,y,i)}a.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=n.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,i){var n=e._getSymbolPoint(i);a.setPosition(n),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=$_(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=W_(a);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0?t=a[0]:a[1]<0&&(t=a[1]),t}function fM(r,e,t,a){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,a),o[1-n]=i,e.dataToPoint(o)}function zB(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,i){t.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function GB(r,e,t,a,i,n,o,s){for(var l=zB(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=uM(i,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=i||d<0)break;if(Yi(y,m)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=n;continue}if(o>0){for(var w=d+n,x=e[w*2],b=e[w*2+1];x===y&&b===m&&g=a||Yi(x,b))c=y,p=m;else{M=x-u,D=b-f;var P=y-u,R=x-y,E=m-f,N=b-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(R);var F=M>0?1:-1;c=y-F*O*o,p=m,L=y+F*V*o,I=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(N);var W=D>0?1:-1;c=y,p=m-W*O*o,L=y,I=m+W*V*o}else O=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+N*N),C=V/(V+O),c=y-M*o*(1-C),p=m-D*o*(1-C),L=y+M*o*C,I=m+D*o*C,L=wa(L,ba(x,y)),I=wa(I,ba(b,m)),L=ba(L,wa(x,y)),I=ba(I,wa(b,m)),M=L-y,D=I-m,c=y-M*O/V,p=m-D*O/V,c=wa(c,ba(u,y)),p=wa(p,ba(f,m)),c=ba(c,wa(u,y)),p=ba(p,wa(f,m)),M=y-c,D=m-p,L=y+M*V/O,I=m+D*V/O}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=n}return g}var hM=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),FB=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hM},e.prototype.buildPath=function(t,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&Yi(i[o*2-2],i[o*2-1]);o--);for(;n=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=n[h++],p=n[h++],d=n[h++],g=n[h++],y=n[h++],m=n[h++];var w=u?Zu(s,c,d,y,t,f):Zu(l,p,g,m,t,f);if(w>0)for(var x=0;x=0){var S=u?jt(l,p,g,m,b):jt(s,c,d,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(dt),HB=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(hM),vM=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new HB},e.prototype.buildPath=function(t,a){var i=a.points,n=a.stackedOnPoints,o=0,s=i.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Yi(i[s*2-2],i[s*2-1]);s--);for(;oe){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function UB(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var i,n,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=a[o];break}}if(!!n){var l=e.getAxis(i),u=G(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=$B(u,i==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new nl(0,0,0,0,v,!0);return m[i]=d,m[i+"2"]=g,m}}}function YB(r,e,t){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=t.getAxesByScale("ordinal")[0];if(!!n&&!(i&&ZB(n,e))){var o=e.mapDimension(n.dim),s={};return A(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function ZB(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;oa)return!1;return!0}function XB(r,e){return isNaN(r)||isNaN(e)}function qB(r){for(var e=r.length/2;e>0&&XB(r[e*2-2],r[e*2-1]);e--);return e-1}function q_(r,e){return[r[e*2],r[e*2+1]]}function KB(r,e,t){for(var a=r.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function dM(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}at(d).seriesIndex=t.seriesIndex,$t(d,N,O,V);var W=X_(t.get("smooth")),Z=t.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:Z,connectNulls:T}),g){var tt=l.getCalculationInfo("stackedOnSeries"),ft=0;g.useStyle(Q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),tt&&(ft=X_(tt.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:ft,smoothMonotone:Z,connectNulls:T}),ue(g,t,"areaStyle"),at(g).seriesIndex=t.seriesIndex,$t(g,N,O,V)}var Dt=function(At){n._changePolyState(At)};l.eachItemGraphicEl(function(At){At&&(At.onHoverStateChange=Dt)}),this._polyline.onHoverStateChange=Dt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){at(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,i,n){var o=t.getData(),s=Ki(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel"),c=t.get("z");u=new cl(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ot.prototype.highlight.call(this,t,a,i,n)},e.prototype.downplay=function(t,a,i,n){var o=t.getData(),s=Ki(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ot.prototype.downplay.call(this,t,a,i,n)},e.prototype._changePolyState=function(t){var a=this._polygon;ef(this._polyline,t),a&&ef(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new FB({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new vM({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,a,i){var n,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):a.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=a.pointToCoord(g);n?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=i;n?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=K(h)?h(p):f*b+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,i){var n=t.getModel("endLabel");if(dM(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=qB(l);f>=0&&(ye(s,ne(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?lM(o,c):Qn(o,h)},enableTextSetter:!0},QB(n,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,i,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),b=y?"x":"y",T=KB(h,S,b),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=q_(h,C[0]);u.attr({x:L[0]+w,y:L[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+w,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=Ob(i,p,I,P,T.t))}n.lastFrameIndex=C[0]}else{var R=t===1||n.lastFrameIndex>0?C[0]:0,L=q_(h,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+w,y:L[1]+x})}o&&lo(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,i,n,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=GB(this._data,t,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(c=Ta(v.current,i,o,l),p=Ta(v.stackedOnCurrent,i,o,l),d=Ta(v.next,i,o,l),g=Ta(v.stackedOnNext,i,o,l)),Z_(c,d)>3e3||f&&Z_(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),wt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),wt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var p=void 0;$(n)?p=tz[n]:K(n)&&(p=n),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,p,ez))}}}}}function rz(r){r.registerChartView(jB),r.registerSeriesModel(kB),r.registerLayout(dl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gM("line"))}var yM=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ur(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a&&a.clampData){var i=a.dataToPoint(a.clampData(t)),n=this.getData(),o=n.getLayout("offset"),s=n.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return i[l]+=o+s/2,i}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(zt);zt.registerClass(yM);var xf=yM,az=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ur(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,i){return i.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ja(xf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(xf),iz=az,nz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),oz=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new nz},e.prototype.buildPath=function(t,a){var i=a.cx,n=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,p=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var i=a.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,i,n){if(!!this._isOrderChangedWithinSameData(t,a,i)){var o=this._dataSort(t,i,a);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,i){var n=a.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){Es(n,t,at(n).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ot),K_={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,n=r.y+r.height,o=Wv(e.x,r.x),s=$v(e.x+e.width,i),l=Wv(e.y,r.y),u=$v(e.y+e.height,n),f=si?s:o,e.y=h&&l>n?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var i=$v(e.r,r.r),n=Wv(e.r0,r.r0);e.r=i,e.r0=n;var o=i-n<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},Q_={cartesian2d:function(r,e,t,a,i,n,o,s,l){var u=new St({shape:B({},a),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,e,t,a,i,n,o,s,l){var u=!i&&l?wf:Pe,f=new u({shape:a,z2:1});f.name="item";var h=mM(i);if(f.calculateTextPosition=sz(h,{isRoundCap:u===wf}),n){var v=f.shape,c=i?"r":"endAngle",p={};v[c]=i?0:a.startAngle,p[c]=a[c],(s?wt:Vt)(f,{shape:p},n)}return f}};function hz(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function J_(r,e,t,a,i,n,o,s){var l,u;n?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?wt:Vt)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?wt:Vt)(t,{shape:u},f,i)}function j_(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function pz(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mM(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function e1(r,e,t,a,i,n,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=ne(a);ye(r,h,{labelFetcher:n,labelDataIndex:t,defaultText:Qn(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var c=a.get(["label","position"]);r.textConfig.inside=c==="middle"?!0:null,lz(r,c==="outside"?f:c,mM(o),a.get(["label","rotate"]))}ET(v,h,n.getRawValue(t),function(d){return lM(e,d)});var p=a.getModel(["emphasis"]);$t(r,p.get("focus"),p.get("blurScope"),p.get("disabled")),ue(r,a),pz(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(d){d.style&&(d.style.fill=d.style.stroke="none")}))}function dz(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,i,n)}var gz=function(){function r(){}return r}(),r1=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new gz},e.prototype.buildPath=function(t,a){for(var i=a.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function yz(r,e,t){for(var a=r.baseDimIdx,i=1-a,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=n.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function _M(r,e,t){if(ln(t,"cartesian2d")){var a=e,i=t.getArea();return{x:r?a.x:i.x,y:r?i.y:a.y,width:r?a.width:i.width,height:r?i.height:a.height}}else{var i=t.getArea(),n=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function mz(r,e,t){var a=r.type==="polar"?Pe:St;return new a({shape:_M(e,t,r),silent:!0,z2:0})}var _z=fz;function Sz(r){r.registerChartView(_z),r.registerSeriesModel(iz),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(CA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AA("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gM("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var su=Math.PI*2,n1=Math.PI/180;function SM(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function xM(r,e){var t=SM(r,e),a=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]),z(a)||(a=[a,a]);var n=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(n,o),l=H(a[0],n)+t.x,u=H(a[1],o)+t.y,f=H(i[0],s/2),h=H(i[1],s/2);return{cx:l,cy:u,r0:f,r:h}}function xz(r,e,t){e.eachSeriesByType(r,function(a){var i=a.getData(),n=i.mapDimension("value"),o=SM(a,t),s=xM(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*n1,c=a.get("minAngle")*n1,p=0;i.each(n,function(M){!isNaN(M)&&p++});var d=i.getSum(n),g=Math.PI/(d||p)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=i.getDataExtent(n);S[0]=0;var w=su,x=0,b=v,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(n,function(M,D){var L;if(isNaN(M)){i.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?L=d===0&&_?g:M*g:L=su/p,Lt?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*i,b=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",p)}var d=a.getBoundingRect();n.width=d.width;var g=(a.style.margin||0)+2.1;n.height=d.height+g,n.y-=(n.height-h)/2}}}function Uv(r){return r.position==="center"}function Tz(r){var e=r.getData(),t=[],a,i,n=!1,o=(r.get("minShowLabelAngle")||0)*wz,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),T=b.shape,C=b.getTextContent(),M=b.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=H(L.get("edgeDistance"),u),N=L.get("bleedMargin"),O=D.getModel("labelLine"),V=O.get("length");V=H(V,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":Z>0?"left":"right"}var Ht=Math.PI,Ft=0,he=L.get("rotate");if(xt(he))Ft=he*(Ht/180);else if(I==="center")Ft=0;else if(he==="radial"||he===!0){var Yr=Z<0?-W+Ht:-W;Ft=Yr}else if(he==="tangential"&&I!=="outside"&&I!=="outer"){var Ce=Math.atan2(Z,tt);Ce<0&&(Ce=Ht*2+Ce);var xl=tt>0;xl&&(Ce=Ht+Ce),Ft=Ce-Ht}if(n=!!Ft,C.x=ft,C.y=Dt,C.rotation=Ft,C.setStyle({verticalAlign:"middle"}),et){C.setStyle({align:pt});var Ah=C.states.select;Ah&&(Ah.x+=C.x,Ah.y+=C.y)}else{var ga=C.getBoundingRect().clone();ga.applyTransform(C.getComputedTransform());var Fy=(C.style.margin||0)+2.1;ga.y-=Fy/2,ga.height+=Fy,t.push({label:C,labelLine:M,position:I,len:V,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ot(Z,tt),linePoints:At,textAlign:pt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:ga,unconstrainedWidth:ga.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:et})}}),!n&&r.get("avoidLabelOverlap")&&bz(t,a,i,l,u,v,f,h);for(var d=0;d0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=n.r0}},e.type="pie",e}(Ot),Mz=Az;function xo(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),i=_o(a,e).dimensions,n=new we(i,r);return n.initData(a,t),n}var Dz=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),yl=Dz,Lz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yl(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xo(this,{coordDimensions:["value"],encodeDefaulter:it(dg,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),i=r.prototype.getDataParams.call(this,t),n=[];return a.each(a.mapDimension("value"),function(o){n.push(o)}),i.percent=B2(n,t,a.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){qi(t,"labelLine",["show"]);var a=t.labelLine,i=t.emphasis.labelLine;a.show=a.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(zt),Iz=Lz;function Pz(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(i){var n=a.mapDimension("value"),o=a.get(n,i);return!(xt(o)&&!isNaN(o)&&o<0)})}}}function Rz(r){r.registerChartView(Mz),r.registerSeriesModel(Iz),FC("pie",r.registerAction),r.registerLayout(it(xz,"pie")),r.registerProcessor(gl("pie")),r.registerProcessor(Pz("pie"))}var Ez=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Ur(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,a,i){return i.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(zt),kz=Ez,bM=4,Oz=function(){function r(){}return r}(),Nz=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new Oz},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var i=a.points,n=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var f=u*2,h=n[f]-s/2,v=n[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect();if(t=i[0],a=i[1],n.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,i=a.points,n=a.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),Bz=Vz,zz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,i){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=dl("").reset(t,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,i=a&&a.getArea&&a.getArea();return t.get("clip",!0)?i:null},e.prototype._updateSymbolDraw=function(t,a){var i=this._symbolDraw,n=a.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Bz:new pl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Ot),Gz=zz,Fz=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(mt),Hz=Fz,Jp=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xt).models[0]},e.type="cartesian2dAxis",e}(mt);Yt(Jp,So);var TM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Wz=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},TM),Yg=st({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},TM),$z=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Yg),Uz=Q({logBase:10},Yg),CM={category:Wz,value:Yg,time:$z,log:Uz},Yz={value:1,category:1,time:1,log:1};function Jn(r,e,t,a){A(Yz,function(i,n){var o=st(st({},CM[n],!0),a,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Ns(this),c=v?ho(f):{},p=h.getTheme();st(f,p.get(n+"Axis")),st(f,this.getDefaultOption()),f.type=s1(f),v&&Za(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Up.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",s1)}function s1(r){return r.type||(r.data?"category":"value")}var Zz=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),Xz=Zz,jp=["x","y"];function l1(r){return r.type==="interval"||r.type==="time"}var qz=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=jp,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!l1(t)||!l1(a))){var i=t.getExtent(),n=a.getExtent(),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-n[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=ao([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,a,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return se(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},e.prototype.clampData=function(t,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var i=[];if(this._invTransform)return se(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),a),i[1]=o.coordToData(o.toLocalCoord(t[1]),a),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-i,s=Math.max(a[0],a[1])-n;return new vt(i,n,o,s)},e}(Xz),Kz=qz,Qz=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(wr),Jz=Qz;function td(r,e,t){t=t||{};var a=r.coordinateSystem,i=e.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}n.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ae(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-y:y,n.z2=1,n}function u1(r){return r.get("coordinateSystem")==="cartesian2d"}function f1(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,Xt).models[0];e[a]=n}),e}var Yv=Math.log;function AM(r,e,t){var a=Xa.prototype,i=a.getTicks.call(t),n=a.getTicks.call(t,!0),o=i.length-1,s=a.getInterval.call(t),l=EA(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=Yv(r.base);u=[Yv(u[0])/v,Yv(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=Rv(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Rv(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Wt(g-m),d<0&&u[0]>=0?(d=0,g=Wt(m)):g>0&&u[1]<=0&&(g=0,d=-Wt(m))}var _=(i[0].value-n[0].value)/s,S=(i[o].value-n[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var jz=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=yt(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;Yp(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(tn(d,p),Yp(d)&&(s=c))}f.length&&(s||(s=f.pop(),tn(s.scale,s.model)),A(f,function(g){AM(g.scale,g.model,s.scale)}))}}i(a.x),i(a.y);var n={};A(a.x,function(o){h1(a,"y",o,n)}),A(a.y,function(o){h1(a,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var i=e.getBoxLayoutParams(),n=!a&&e.get("containLabel"),o=Jt(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=vV(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),t5(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}J(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i0?"top":"bottom",n="center"):ju(i-Na)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),c1={axisLine:function(r,e,t,a){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var n=e.axis.getExtent(),o=a.transform,s=[n[0],0],l=[n[1],0];o&&(se(s,s,o),se(l,l,o));var u=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ie({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",t.add(f);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);$(h)&&(h=[h,h]),($(v)||xt(v))&&(v=[v,v]);var c=mo(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],d=v[1];A([{rotate:r.rotation+Math.PI/2,offset:c[0],r:0},{rotate:r.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var m=Kt(h[y],-p/2,-d/2,p,d,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(m)}})}}},axisTickLabel:function(r,e,t,a){var i=i5(t,a,e,r),n=o5(t,a,e,r);if(a5(e,n,i),n5(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=YA(G(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));qA(o)}},axisName:function(r,e,t,a){var i=ae(r.axisName,e.get("name"));if(!!i){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,d1(n)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Na/180);var p;d1(n)?v=Zi.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=r5(r.rotation,n,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ae(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Tt({x:h[0],y:h[1],rotation:v.rotation,silent:Zi.isLabelSilent(e),style:Bt(s,{text:i,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(so({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=Zi.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,at(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function r5(r,e,t,a){var i=Cb(t-r),n,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return ju(i-Na/2)?(o=l?"bottom":"top",n="center"):ju(i-Na*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",iNa/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function a5(r,e,t){if(!kA(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];a===!1?($e(n),$e(u)):p1(n,o)&&(a?($e(o),$e(f)):($e(n),$e(u))),i===!1?($e(s),$e(h)):p1(l,s)&&(i?($e(l),$e(v)):($e(s),$e(h)))}}function $e(r){r&&(r.ignore=!0)}function p1(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var i=Uf([]);return nn(i,i,-r.rotation),t.applyTransform(aa([],i,r.getLocalTransform())),a.applyTransform(aa([],i,e.getLocalTransform())),t.intersect(a)}}function d1(r){return r==="middle"||r==="center"}function MM(r,e,t,a,i){for(var n=[],o=[],s=[],l=0;l=0||r===e}function v5(r){var e=Zg(r);if(!!e){var t=e.axisPointerModel,a=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=ed(t);n==null&&(i.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=Q({color:p.color},l));var g=st(j(p),{boundaryGap:t,splitNumber:a,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(u||(g.name=""),$(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else K(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return Yt(m,So.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:st({lineStyle:{color:"#bbb"}},Fo.axisLine),axisLabel:lu(Fo.axisLabel,!1),axisTick:lu(Fo.axisTick,!1),splitLine:lu(Fo.splitLine,!0),splitArea:lu(Fo.splitArea,!0),indicator:[]},e}(mt),D5=M5,L5=["axisLine","axisTickLabel","axisName"],I5=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes(),n=G(i,function(o){var s=o.model.get("showName")?o.name:"",l=new va(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(n,function(o){A(L5,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(n==="circle")for(var _=i[0].getTicksCoords(),S=a.cx,w=a.cy,x=0;x<_.length;x++){if(f){var b=m(g,p,x);g[b].push(new Hr({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,d,x);y[b].push(new jf({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(i,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),G(N,function(O){return a.coordToPoint(O.coord,E)})}),M=[],x=0;x<=T;x++){for(var D=[],L=0;L3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;qv(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(n),v=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);qv(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!x1(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;qv(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(or);function qv(r,e,t,a,i){r.pointerChecker&&r.pointerChecker(a,i.originX,i.originY)&&(oa(a.event),EM(r,e,t,a,i))}function EM(r,e,t,a,i){i.isAvailableBehavior=U(Gu,null,t,a),r.trigger(e,i)}function Gu(r,e,t){var a=t[r];return!r||a&&(!$(a)||e.event[a+"Key"])}var ml=G5;function qg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Kg(r,e,t,a){var i=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(a-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var F5={axisPointer:1,tooltip:1,brush:1};function _h(r,e,t){var a=e.getComponentByElement(r.topTarget),i=a&&a.coordinateSystem;return a&&a!==t&&!F5.hasOwnProperty(a.mainType)&&i&&i.model!==t}function kM(r){if($(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Kv,bf={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-anchor":"textAlign",visibility:"visibility",display:"display"},w1=yt(bf),Tf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},b1=yt(Tf),H5=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=kM(e);this._defsUsePending=[];var i=new rt;this._root=i;var n=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Oe(a,i,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,i,n,null,!1,!1),u=u.nextSibling;U5(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Sh(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=NM(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=i;i=new rt,i.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new St({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:n}},r.prototype._parseNode=function(e,t,a,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=Kv[s];if(f&&Y(Kv,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var c=T1[s];if(c&&Y(T1,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new Is({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),W5(a,t);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){Kv={g:function(e,t){var a=new rt;return Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new St;return Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Hr;return Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new ie;return Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new ig;return Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),i;a&&(i=M1(a));var n=new Re({shape:{points:i||[]},silent:!0});return Ue(t,n),Oe(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var a=e.getAttribute("points"),i;a&&(i=M1(a));var n=new Ee({shape:{points:i||[]},silent:!0});return Ue(t,n),Oe(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var a=new fe;return Ue(t,a),Oe(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new rt;return Ue(t,s),Oe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),i=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new rt;return Ue(t,s),Oe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",i=hT(a);return Ue(t,i),Oe(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),T1={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new nl(e,t,a,i);return C1(r,n),A1(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new TT(e,t,a);return C1(r,i),A1(r,i),i}};function C1(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function A1(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};OM(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Ue(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,r.__inheritedStyle))}function M1(r){for(var e=Sh(r),t=[],a=0;a0;n-=2){var o=a[n],s=a[n-1],l=Sh(o);switch(i=i||ir(),s){case"translate":zr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ud(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":nn(i,i,-parseFloat(l[0])*Qv);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Qv);aa(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Qv);aa(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var L1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function OM(r,e,t){var a=r.getAttribute("style");if(!!a){L1.lastIndex=0;for(var i;(i=L1.exec(a))!=null;){var n=i[1],o=Y(bf,n)?bf[n]:null;o&&(e[o]=i[2]);var s=Y(Tf,n)?Tf[n]:null;s&&(t[s]=i[2])}}}function q5(r,e,t){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=q(),a=q(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*n.scaleX+n.x,c[1]*n.scaleY+n.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ye(e,ne(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(VM(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function k1(r,e,t,a,i,n){r.data?r.data.setItemGraphicEl(n,e):at(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:a&&a.option||{}}}function O1(r,e,t,a,i){r.data||so({el:e,componentModel:i,itemName:t,itemTooltipOption:a.get("tooltip")})}function N1(r,e,t,a,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=a.getModel("emphasis"),o=n.get("focus");return $t(e,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&pR(e,i,t),o}function V1(r,e,t){var a=[],i;function n(){i=[]}function o(){i.length&&(a.push(i),i=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,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)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(zt),yG=gG;function mG(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(i,n){var o="ec-"+a.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(a,i){for(var n="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=Jt(w,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function bG(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var TG=function(){function r(){this.dimensions=zM}return r.prototype.create=function(e,t){var a=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new F1(l+s,l,B({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=H1,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),A(n,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new F1(s,s,B({nameMap:Bd(l)},i(o[0])));u.zoomLimit=ae.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=H1,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,bG(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,i){for(var n=(e||[]).slice(),o=q(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function EG(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,i=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){NG(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+e(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+e(r,i));r.parentNode.hierNode.defaultAncestor=VG(r,i,r.parentNode.hierNode.defaultAncestor||a[0],e)}function kG(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function $1(r){return arguments.length?r:GG}function ns(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function OG(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function NG(r){for(var e=r.children,t=e.length,a=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=a,n.hierNode.modifier+=a,i+=n.hierNode.change,a+=n.hierNode.shift+i}}function VG(r,e,t,a){if(e){for(var i=r,n=r,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Jv(s),n=jv(n),s&&n;){i=Jv(i),o=jv(o),i.hierNode.ancestor=r;var v=s.hierNode.prelim+h-n.hierNode.prelim-u+a(s,n);v>0&&(zG(BG(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,f+=o.hierNode.modifier}s&&!Jv(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),n&&!jv(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function Jv(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function jv(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function BG(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function zG(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function GG(r,e){return r.parentNode===e.parentNode?1:2}var FG=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),HG=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new FG},e.prototype.buildPath=function(t,a){var i=a.childPoints,n=i.length,o=a.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x,w||(S=S-Math.PI));var b=w?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||b,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(at(t).focus=I),$G(i,o,f,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===il||ef(t.__edge,P)}})}function $G(r,e,t,a,i,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new th({shape:id(f,h,v,i,i)})),wt(d,{shape:id(f,h,v,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=i.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,i=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,i=r.targetNode;if($(i)&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=a.getNodeById(n)))return{node:i}}}function YM(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function ey(r,e){var t=YM(r);return ht(t,e)>=0}function xh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var eF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=t.leaves||{},n=new Rt(i,this,this.ecModel),o=ty.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=n),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ee("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=xh(i,this),a.collapsed=!i.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(zt),rF=eF;function aF(r,e,t){for(var a=[r],i=[],n;n=a.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(i[n])}}function iF(r,e){r.eachSeriesByType("tree",function(t){nF(t,e)})}function nF(r,e){var t=OG(r,e);r.layoutInfo=t;var a=r.get("layout"),i=0,n=0,o=null;a==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=$1(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=t.width,n=t.height,o=$1());var s=r.getData().tree.root,l=s.children[0];if(l){RG(s),aF(l,EG,o),s.hierNode.modifier=-l.hierNode.prelim,Wo(l,kG);var u=l,f=l,h=l;Wo(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=i/(f.getLayout().x+v+c),d=n/(h.depth-1||1),Wo(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=ns(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),Wo(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=i/(f.getLayout().x+v+c),d=n/(h.depth-1||1),Wo(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function oF(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");B(s,o)})})}function sF(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=e.dataIndex,n=a.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,n=Jg(i,e);a.setCenter&&a.setCenter(n.center),a.setZoom&&a.setZoom(n.zoom)})})}function lF(r){r.registerChartView(UG),r.registerSeriesModel(rF),r.registerLayout(iF),r.registerVisual(oF),sF(r)}var q1=["treemapZoomToNode","treemapRender","treemapMove"];function uF(r){for(var e=0;e1;)n=n.parentNode;var o=Ep(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var fF=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var i={name:t.name,children:t.data};XM(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);n=t.levels=hF(n,a);var l=G(n||[],function(h){return new Rt(h,s,a)},this),u=ty.createTree(i,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=p?l[p.depth]:null;return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return ee("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=xh(i,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=q(),this._idIndexMapCount=0);var i=a.get(t);return i==null&&a.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){ZM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,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)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(zt);function XM(r){var e=0;A(r.children,function(a){XM(a);var i=a.value;z(i)&&(i=i[0]),e+=i});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function hF(r,e){var t=Pt(e.get("color")),a=Pt(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var i,n;A(r,function(s){var l=new Rt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=t.slice()),!n&&a&&(o.decal=a.slice()),r}}var vF=fF,cF=8,K1=8,tc=5,pF=function(){function r(e){this.group=new rt,e.add(this.group)}return r.prototype.render=function(e,t,a,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!a)){var s=n.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,u,l),this._renderContent(e,u,s,l,i),uh(o,u.pos,u.box)}},r.prototype._prepare=function(e,t,a){for(var i=e;i;i=i.parentNode){var n=Qt(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+cF*2,t.emptyItemWidth);t.totalWidth+=s+K1,t.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(e,t,a,i,n){for(var o=0,s=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=AE(t.pos,t.box),f=t.totalWidth,h=t.renderList,v=h.length-1;v>=0;v--){var c=h[v],p=c.node,d=c.width,g=c.text;f>u.width&&(f-=d-s,d=s,g=null);var y=new Re({shape:{points:dF(o,0,d,l,v===h.length-1,v===0)},style:Q(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Tt({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:no*1e4,onclick:it(n,p)});y.disableLabelAnimation=!0,this.group.add(y),gF(y,e,p),o+=d+K1}},r.prototype.remove=function(){this.group.removeAll()},r}();function dF(r,e,t,a,i,n){var o=[[i?r:r-tc,e],[r+t,e],[r+t,e+a],[i?r:r-tc,e+a]];return!n&&o.splice(2,0,[r+t+tc,e+a/2]),!i&&o.push([r,e+a/2]),o}function gF(r,e,t){at(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&xh(t,e)}}var yF=pF,mF=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:i,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;iJ1||Math.abs(t.dy)>J1)){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.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}})}},e.prototype._onZoom=function(t){var a=t.originX,i=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new vt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,i-=l.y;var u=ir();zr(u,u,[-a,-i]),Ud(u,u,[t.scale,t.scale]),zr(u,u,[a,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(i){if(a._state==="ready"){var n=a.seriesModel.get("nodeClick",!0);if(!!n){var o=a.findTarget(i.offsetX,i.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(n==="zoomToNode")a._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&lf(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new yF(this.group))).render(t,a,i.node,function(o){n._state!=="animating"&&(ey(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$o(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Ot);function $o(){return{nodeGroup:[],background:[],content:[]}}function TF(r,e,t,a,i,n,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,w=_&&_.length,x=v.getModel("itemStyle"),b=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=ft("nodeGroup",nd);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Cf(D).nodeWidth=c,Cf(D).nodeHeight=p,f.isAboveViewRoot)return D;var L=ft("background",Q1,u,xF);L&&V(D,L,w&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(w)Rs(D)&&Vi(D,!1),L&&(Vi(L,!E),h.setItemGraphicEl(o.dataIndex,L),Cp(L,N,R));else{var O=ft("content",Q1,u,wF);O&&F(D,O),L.disableMorphing=!0,L&&Rs(L)&&Vi(L,!1),Vi(D,!E),h.setItemGraphicEl(o.dataIndex,D),Cp(D,N,R)}return D;function V(pt,et,gt){var lt=at(et);if(lt.dataIndex=o.dataIndex,lt.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:c,height:p,r:M}),g)W(et);else{et.invisible=!1;var X=o.getVisual("style"),nt=X.stroke,Nt=eS(x);Nt.fill=nt;var _t=Mi(b);_t.fill=b.get("borderColor");var Ht=Mi(T);Ht.fill=T.get("borderColor");var Ft=Mi(C);if(Ft.fill=C.get("borderColor"),gt){var he=c-2*d;Z(et,nt,X.opacity,{x:d,y:0,width:he,height:S})}else et.removeTextContent();et.setStyle(Nt),et.ensureState("emphasis").style=_t,et.ensureState("blur").style=Ht,et.ensureState("select").style=Ft,Ji(et)}pt.add(et)}function F(pt,et){var gt=at(et);gt.dataIndex=o.dataIndex,gt.seriesIndex=r.seriesIndex;var lt=Math.max(c-2*d,0),X=Math.max(p-2*d,0);if(et.culling=!0,et.setShape({x:d,y:d,width:lt,height:X,r:M}),g)W(et);else{et.invisible=!1;var nt=o.getVisual("style"),Nt=nt.fill,_t=eS(x);_t.fill=Nt,_t.decal=nt.decal;var Ht=Mi(b),Ft=Mi(T),he=Mi(C);Z(et,Nt,nt.opacity,null),et.setStyle(_t),et.ensureState("emphasis").style=Ht,et.ensureState("blur").style=Ft,et.ensureState("select").style=he,Ji(et)}pt.add(et)}function W(pt){!pt.invisible&&n.push(pt)}function Z(pt,et,gt,lt){var X=v.getModel(lt?tS:j1),nt=Qt(v.get("name"),null),Nt=X.getShallow("show");ye(pt,ne(v,lt?tS:j1),{defaultText:Nt?nt:null,inheritColor:et,defaultOpacity:gt,labelFetcher:r,labelDataIndex:o.dataIndex});var _t=pt.getTextContent();if(!!_t){var Ht=_t.style,Ft=Gd(Ht.padding||0);lt&&(pt.setTextConfig({layoutRect:lt}),_t.disableLabelLayout=!0),_t.beforeUpdate=function(){var Yr=Math.max((lt?lt.width:pt.shape.width)-Ft[1]-Ft[3],0),Ce=Math.max((lt?lt.height:pt.shape.height)-Ft[0]-Ft[2],0);(Ht.width!==Yr||Ht.height!==Ce)&&_t.setStyle({width:Yr,height:Ce})},Ht.truncateMinChar=2,Ht.lineOverflow="truncate",tt(Ht,lt,f);var he=_t.getState("emphasis");tt(he?he.style:null,lt,f)}}function tt(pt,et,gt){var lt=pt?pt.text:null;if(!et&>.isLeafRoot&<!=null){var X=r.get("drillDownIcon",!0);pt.text=X?X+" "+lt:lt}}function ft(pt,et,gt,lt){var X=m!=null&&t[pt][m],nt=i[pt];return X?(t[pt][m]=null,Dt(nt,X)):g||(X=new et,X instanceof nr&&(X.z2=CF(gt,lt)),At(nt,X)),e[pt][y]=X}function Dt(pt,et){var gt=pt[y]={};et instanceof nd?(gt.oldX=et.x,gt.oldY=et.y):gt.oldShape=B({},et.shape)}function At(pt,et){var gt=pt[y]={},lt=o.parentNode,X=et instanceof rt;if(lt&&(!a||a.direction==="drillDown")){var nt=0,Nt=0,_t=i.background[lt.getRawIndex()];!a&&_t&&_t.oldShape&&(nt=_t.oldShape.width,Nt=_t.oldShape.height),X?(gt.oldX=0,gt.oldY=Nt):gt.oldShape={x:nt,y:Nt,width:0,height:0}}gt.fadein=!X}}function CF(r,e){return r*SF+e}var AF=bF,Zs=A,MF=J,Af=-1,ry=function(){function r(e){var t=e.mappingMethod,a=e.type,i=this.option=j(e);this.type=a,this.mappingMethod=t,this._normalizeData=IF[t];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(ec(i),DF(i)):t==="category"?i.categories?LF(i):ec(i,!0):(be(t!=="linear"||i.dataExtent),ec(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return yt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){J(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var i,n=z(e)?[]:J(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},a;return e&&Zs(r.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(MF(e)){var t=[];Zs(e,function(a,i){t.push(i)}),e=t}else return[];return e.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var i,n=1/0,o=0,s=t.length;o=0;n--)a[n]==null&&(delete t[e[n]],e.pop())}function ec(r,e){var t=r.visual,a=[];J(t)?Zs(t,function(n){a.push(n)}):t!=null&&a.push(t);var i={color:1,symbol:1};!e&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),qM(r,a)}function fu(r){return{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("color",r(t("color"),i))},_normalizedToVisual:od([0,1])}}function rS(r){var e=this.option.visual;return e[Math.round(Lt(r,[0,1],[0,e.length-1],!0))]||{}}function Uo(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function os(r){var e=this.option.visual;return e[this.option.loop&&r!==Af?r%e.length:r]}function Di(){return this.option.visual[0]}function od(r){return{linear:function(e){return Lt(e,r,this.option.visual,!0)},category:os,piecewise:function(e,t){var a=sd.call(this,t);return a==null&&(a=Lt(e,r,this.option.visual,!0)),a},fixed:Di}}function sd(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=ry.findPieceIndex(r,t),i=t[a];if(i&&i.visual)return i.visual[this.type]}}function qM(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var a=ze(t);return a||[0,0,0,1]})),e}var IF={linear:function(r){return Lt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ry.findPieceIndex(r,e,!0);if(t!=null)return Lt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?Af:e},fixed:qt};function hu(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var y=NF(i,l,d,g,p,a);QM(d,y,t,a)}})}}}function EF(r,e,t){var a=B({},e),i=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=r.get(n);i[n]=null,o!=null&&(a[n]=o)}),a}function aS(r){var e=rc(r,"color");if(e){var t=rc(r,"colorAlpha"),a=rc(r,"colorSaturation");return a&&(e=fs(e,null,null,a)),t&&(e=Xu(e,t)),e}}function kF(r,e){return e!=null?fs(e,null,null,r):null}function rc(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function OF(r,e,t,a,i,n){if(!(!n||!n.length)){var o=ac(e,"color")||i.color!=null&&i.color!=="none"&&(ac(e,"colorAlpha")||ac(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new le(h);return KM(v).drColorMappingBy=f,v}}}function ac(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function NF(r,e,t,a,i,n){var o=B({},e);if(i){var s=i.type,l=s==="color"&&KM(i).drColorMappingBy,u=l==="index"?a:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Xs=Math.max,Mf=Math.min,iS=ae,ay=A,JM=["itemStyle","borderWidth"],VF=["itemStyle","gapWidth"],BF=["upperLabel","show"],zF=["upperLabel","height"],GF={seriesType:"treemap",reset:function(r,e,t,a){var i=t.getWidth(),n=t.getHeight(),o=r.option,s=Jt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(iS(s.width,l[0]),i),f=H(iS(s.height,l[1]),n),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Ys(a,v,r),p=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=YM(d);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?YF(r,c,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),jM(d,_,!1,0),S=d.getLayout(),ay(g,function(x,b){var T=(g[b+1]||d).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var w=r.getData().tree.root;w.setLayout(ZF(s,p,c),!0),r.setLayoutInfo(s),tD(w,new vt(-s.x,-s.y,i,n),g,d,0)}};function jM(r,e,t,a){var i,n;if(!r.isRemoved()){var o=r.getLayout();i=o.width,n=o.height;var s=r.getModel(),l=s.get(JM),u=s.get(VF)/2,f=eD(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),i=Xs(i-2*v,0),n=Xs(n-v-c,0);var p=i*n,d=FF(r,s,p,e,t,a);if(!!d.length){var g={x:v,y:c,width:i,height:n},y=Mf(i,n),m=1/0,_=[];_.area=0;for(var S=0,w=d.length;S=0;l--){var u=i[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function UF(r,e,t){for(var a=0,i=1/0,n=0,o=void 0,s=r.length;na&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Xs(u*a/l,l/(u*i)):1/0}function nS(r,e,t,a,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(i||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;hgm&&(u=gm),n=s}ua&&(a=e);var n=a%2?a+2:a+3;i=[];for(var o=0;o0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":n.x=-v[0]*y+f[0],n.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*b+f[0],n.y=f[1]+C,p=S[0]<0?"right":"left",n.originX=-y*b,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=x[0],n.y=x[1]+C,p="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*b+h[0],n.y=h[1]+C,p=S[0]>=0?"right":"left",n.originX=y*b,n.originY=-C;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||p})}},e}(rt),ny=v3,c3=function(){function r(e){this.group=new rt,this._LineCtor=e||ny}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=e,n||i.removeAll();var o=fS(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=fS(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!p3(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function fS(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ne(e)}}function hS(r){return isNaN(r[0])||isNaN(r[1])}function lc(r){return r&&!hS(r[0])&&!hS(r[1])}var oy=c3,uc=[],fc=[],hc=[],Cn=re,vc=Gi,vS=Math.abs;function cS(r,e,t){for(var a=r[0],i=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){uc[0]=Cn(a[0],i[0],n[0],f),uc[1]=Cn(a[1],i[1],n[1],f);var h=vS(vc(uc,e)-l);h=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function cc(r,e){var t=[],a=Ms,i=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ea(u[0]),ea(u[1])],u[2]&&u.__original.push(ea(u[2])));var v=u.__original;if(u[2]!=null){if(_e(i[0],v[0]),_e(i[1],v[2]),_e(i[2],v[1]),f&&f!=="none"){var c=ls(s.node1),p=cS(i,v[0],c*e);a(i[0][0],i[1][0],i[2][0],p,t),i[0][0]=t[3],i[1][0]=t[4],a(i[0][1],i[1][1],i[2][1],p,t),i[0][1]=t[3],i[1][1]=t[4]}if(h&&h!=="none"){var c=ls(s.node2),p=cS(i,v[1],c*e);a(i[0][0],i[1][0],i[2][0],p,t),i[1][0]=t[1],i[2][0]=t[2],a(i[0][1],i[1][1],i[2][1],p,t),i[1][1]=t[1],i[2][1]=t[2]}_e(u[0],i[0]),_e(u[1],i[2]),_e(u[2],i[1])}else{if(_e(n[0],v[0]),_e(n[1],v[1]),Oi(o,n[1],n[0]),tl(o,o),f&&f!=="none"){var c=ls(s.node1);Qc(n[0],n[0],o,c*e)}if(h&&h!=="none"){var c=ls(s.node2);Qc(n[1],n[1],o,-c*e)}_e(u[0],n[0]),_e(u[1],n[1])}})}function pS(r){return r.type==="view"}var d3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var i=new pl,n=new oy,o=this.group;this._controller=new ml(a.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,a,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(pS(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):wt(u,f,t)}cc(t.getGraph(),ss(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,i),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p),h.graph.eachNode(function(m){var _=m.dataIndex,S=m.getGraphicEl(),w=m.getModel();if(!!S){S.off("drag").off("dragend");var x=w.get("draggable");x&&S.on("drag",function(){c&&(c.warmUp(),!n._layouting&&n._startForceLayoutIteration(c,p),c.setFixed(_),h.setItemLayout(_,[S.x,S.y]))}).on("dragend",function(){c&&c.setUnfixed(_)}),S.setDraggable(x&&!!c);var b=w.get(["emphasis","focus"]);b==="adjacency"&&(at(S).focus=m.getAdjacentDataIndices())}}),h.graph.eachEdge(function(m){var _=m.getGraphicEl(),S=m.getModel().get(["emphasis","focus"]);!_||S==="adjacency"&&(at(_).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var d=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=h.getLayout("cx"),y=h.getLayout("cy");h.eachItemGraphicEl(function(m,_){var S=h.getItemModel(_),w=S.get(["label","rotate"])||0,x=m.getSymbolPath();if(d){var b=h.getItemLayout(_),T=Math.atan2(b[1]-y,b[0]-g);T<0&&(T=Math.PI*2+T);var C=b[0]=0&&e.call(t,a[n],n)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,i=a.length,n=0;n=0&&a[n].node1.dataIndex>=0&&a[n].node2.dataIndex>=0&&e.call(t,a[n],n)},r.prototype.breadthFirstTraverse=function(e,t,a,i){if(t instanceof Li||(t=this._nodesMap[An(t)]),!!t){for(var n=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Yt(Li,uD("hostGraph","data"));Yt(lD,uD("hostGraph","edgeData"));var m3=y3;function fD(r,e,t,a,i){for(var n=new m3(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=Ur(r,t);else{var d=po.get(c),g=d?d.dimensions||[]:[];ht(g,"value")<0&&g.concat(["value"]);var y=_o(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new we(y,t),p.initData(r)}var m=new we(["value"],t);return m.initData(l,s),i&&i(p,m),$M({mainData:p,struct:n,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var _3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function i(){return a._categoriesData}this.legendVisualProvider=new yl(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),qi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){t3(this);var s=fD(n,i,this,!0,l);return A(s.edges,function(u){e3(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Rt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ee("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=PC({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(i){return i.value!=null?i:B({value:0},i)}),a=new we(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(i){return a.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(zt),S3=_3,x3={type:"graphRoam",event:"graphRoam",update:"none"};function w3(r){r.registerChartView(g3),r.registerSeriesModel(S3),r.registerProcessor(qF),r.registerVisual(KF),r.registerVisual(QF),r.registerLayout(r3),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,i3),r.registerLayout(o3),r.registerCoordinateSystem("graphView",{dimensions:_l.dimensions,create:l3}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},qt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},qt),r.registerAction(x3,function(e,t){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,n=Jg(i,e);a.setCenter&&a.setCenter(n.center),a.setZoom&&a.setZoom(n.zoom)})})}var b3=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),T3=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new b3},e.prototype.buildPath=function(t,a){var i=Math.cos,n=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-i(l)*s*(s>=o/3?1:2),f=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+i(l)*s,a.y+n(l)*s),t.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),t.lineTo(a.x-i(l)*s,a.y-n(l)*s),t.lineTo(u,f)},e}(dt),C3=T3;function A3(r,e){var t=r.get("center"),a=e.getWidth(),i=e.getHeight(),n=Math.min(a,i),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function cu(r,e){var t=r==null?"":r+"";return e&&($(e)?t=e.replace("{value}",t):K(e)&&(t=e(r))),t}var M3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=A3(t,i);this._renderMain(t,a,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,i,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),c=v?wf:Pe,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,f];Fb(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=0;p&&S=T&&(C===0?0:n[C-1][0]).8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var W=0;W<=w;W++){P=Math.cos(T),R=Math.sin(T);var Z=new ie({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-b-N)+v,y2:R*(p-b-N)+c},silent:!0,style:L});L.stroke==="auto"&&Z.setStyle({stroke:n((E+W/w)/S)}),h.add(Z),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,i,n,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),w=+t.get("max"),x=[S,w],b=[s,l];function T(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=H(N[0],o.r),V=H(N[1],o.r),F=I.get("keepAspect"),W;return E?W=Kt(E,O-P/2,V-R,P,R,null,F):W=new C3({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:V}}),W.rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var L=g.get("roundCap"),I=L?wf:Pe,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,O=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=w-m.get(_,M)%w),O}(y||d)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(d){var L=T(M,s);Vt(L,{rotation:-((isNaN(+D)?b[0]:Lt(D,x,b,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(M,L)}if(y){var I=C(M,s),P=g.get("clip");Vt(I,{shape:{endAngle:Lt(D,x,b,P)}},t),h.add(I),wp(t.seriesIndex,m.dataType,M,I),p[M]=I}}).update(function(M,D){var L=m.get(_,M);if(d){var I=v.getItemGraphicEl(D),P=I?I.rotation:s,R=T(M,P);R.rotation=P,wt(R,{rotation:-((isNaN(+L)?b[0]:Lt(L,x,b,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(M,R)}if(y){var E=c[D],N=E?E.shape.endAngle:s,O=C(M,N),V=g.get("clip");wt(O,{shape:{endAngle:Lt(L,x,b,V)}},t),h.add(O),wp(t.seriesIndex,m.dataType,M,O),p[M]=O}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var E=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),O=N.fill;if(E instanceof fe){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(O);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",n(Lt(m.get(_,M),x,[0,1],!0))),E.z2EmphasisLift=0,ue(E,D),$t(E,I,P,R)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,ue(F,D),$t(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=Kt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new rt,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new Tt({silent:!0}),p[y]=new Tt({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new rt,w=n(Lt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),T=o.cx+H(b[0],o.r),C=o.cy+H(b[1],o.r),M=c[y];M.attr({z2:g?0:2,style:Bt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(D.get("width"),o.r),E=H(D.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,M=p[y],O=D.get("formatter");M.attr({z2:g?0:2,style:Bt(D,{x:I,y:P,text:cu(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),ET(M,{normal:D},_,function(F){return cu(F,O)}),d&&kT(M,y,l,t,{getFormattedLabel:function(F,W,Z,tt,ft,Dt){return cu(Dt?Dt.interpolatedValue:_,O)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Ot),D3=M3,L3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return xo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(zt),I3=L3;function P3(r){r.registerChartView(D3),r.registerSeriesModel(I3)}var R3=["itemStyle","opacity"],E3=function(r){k(e,r);function e(t,a){var i=r.call(this)||this,n=i,o=new Ee,s=new Tt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,a,!0),i}return e.prototype.updateData=function(t,a,i){var n=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(R3);f=f==null?1:f,i||Sr(n),n.useStyle(t.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Vt(n,{style:{opacity:f}},o,a)):wt(n,{style:{opacity:f},shape:{points:l.points}},o,a),ue(n,s),this._updateLabel(t,a),$t(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,h=t.getItemVisual(a,"style"),v=h.fill;ye(o,ne(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;n.setShape({points:c}),i.textGuideLineConfig={anchor:c?new ot(c[0][0],c[0][1]):null},wt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Gg(i,Fg(l),{stroke:v})},e}(Re),k3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new E3(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Es(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Ot),O3=k3,N3=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yl(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return xo(this,{coordDimensions:["value"],encodeDefaulter:it(dg,this)})},e.prototype._defaultLabelLine=function(t){qi(t,"labelLine",["show"]);var a=t.labelLine,i=t.emphasis.labelLine;a.show=a.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),i=r.prototype.getDataParams.call(this,t),n=a.mapDimension("value"),o=a.getSum(n);return i.percent=o?+(a.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(zt),V3=N3;function B3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function z3(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=r.count();oiH)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!dc(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function dc(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var sH=nH,lH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&st(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var i=t.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],i=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(n){t.push("dim"+n.get("dim")),a.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(mt),uH=lH,fH=function(r){k(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(wr),hH=fH;function fn(r,e,t,a,i,n){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=Mn(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Mn(s,[0,o]),i=n=Mn(s,[i,n]),a=0}e[0]=Mn(e[0],t),e[1]=Mn(e[1],t);var l=gc(e,a);e[a]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Mn(e[a],f);var h;return h=gc(e,a),i!=null&&(h.sign!==l.sign||h.spann&&(e[1-a]=e[a]+h.sign*n),e}function gc(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Mn(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var yc=A,vD=Math.min,cD=Math.max,yS=Math.floor,vH=Math.ceil,mS=Wt,cH=Math.PI,pH=function(){function r(e,t,a){this.type="parallel",this._axesMap=q(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.dimensions,n=e.parallelAxisIndex;yc(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new hH(o,hl(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=a&&o<=a+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(!!e.contains(a,t)){var i=a.getData();yc(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),tn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Jt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,f=pu(e.get("axisExpandWidth"),l),h=pu(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=pu(c[1]-c[0],l),c[1]=c[0]+p;else{p=pu(f*(h-1),l);var d=e.get("axisExpandCenter")||yS(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[yS(mS(c[0]/f,1))+1,vH(mS(c[1]/f,1))-1],m=g/f*c[0];return{layout:n,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),yc(a,function(o,s){var l=(i.axisExpandable?gH:dH)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:cH/2,vertical:0},h=[u[n].x+e.x,u[n].y+e.y],v=f[n],c=ir();nn(c,c,v),zr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,i){a==null&&(a=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fn*(1-h[0])?(u="jump",l=s-n*(1-h[2])):(l=s-n*h[1])>=0&&(l=s-n*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?fn(l,i,o,"all"):u="none";else{var c=i[1]-i[0],p=o[1]*s/c;i=[cD(0,p-c/2)],i[1]=vD(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function pu(r,e){return vD(cD(r,e[0]),e[1])}function dH(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function gH(r,e){var t=e.layoutLength,a=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r=0;i--)rr(a[i])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=a.length;nbH}function SD(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function xD(r,e,t,a){var i=new rt;return i.add(new St({name:"main",style:fy(t),silent:!0,draggable:!0,cursor:"move",drift:it(wS,r,e,i,["n","s","w","e"]),ondragend:it(rn,e,{isEnd:!0})})),A(a,function(n){i.add(new St({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:it(wS,r,e,i,n),ondragend:it(rn,e,{isEnd:!0})}))}),i}function wD(r,e,t,a){var i=a.brushStyle.lineWidth||0,n=jn(i,TH),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],h=t[1][1],v=f-n+i/2,c=h-n+i/2,p=f-o,d=h-s,g=p+i,y=d+i;qr(r,e,"main",o,s,p,d),a.transformable&&(qr(r,e,"w",l,u,n,y),qr(r,e,"e",v,u,n,y),qr(r,e,"n",l,u,g,n),qr(r,e,"s",l,c,g,n),qr(r,e,"nw",l,u,n,n),qr(r,e,"ne",v,u,n,n),qr(r,e,"sw",l,c,n,n),qr(r,e,"se",v,c,n,n))}function vd(r,e){var t=e.__brushOption,a=t.transformable,i=e.childAt(0);i.useStyle(fy(t)),i.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?cd(r,n[0]):PH(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?AH[s]+"-resize":null})})}function qr(r,e,t,a,i,n,o){var s=e.childOfName(t);s&&s.setShape(EH(hy(r,e,[[a,i],[a+n,i+o]])))}function fy(r){return Q({strokeNoScale:!0},r.brushStyle)}function bD(r,e,t,a){var i=[Ks(r,t),Ks(e,a)],n=[jn(r,t),jn(e,a)];return[[i[0],n[0]],[i[1],n[1]]]}function IH(r){return $i(r.group)}function cd(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=rh(t[e],IH(r));return a[i]}function PH(r,e){var t=[cd(r,e[0]),cd(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function wS(r,e,t,a,i,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=TD(e,i,n);A(a,function(u){var f=CH[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(bD(s[0][0],s[1][0],s[0][1],s[1][1])),sy(e,t),rn(e,{isEnd:!1})}function RH(r,e,t,a){var i=e.__brushOption.range,n=TD(r,t,a);A(i,function(o){o[0]+=n[0],o[1]+=n[1]}),sy(r,e),rn(r,{isEnd:!1})}function TD(r,e,t){var a=r.group,i=a.transformCoordToLocal(e,t),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function hy(r,e,t){var a=_D(r,e);return a&&a!==en?a.clipPath(t,r._transform):j(t)}function EH(r){var e=Ks(r[0][0],r[1][0]),t=Ks(r[0][1],r[1][1]),a=jn(r[0][0],r[1][0]),i=jn(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:i-t}}function kH(r,e,t){if(!(!r._brushType||NH(r,e.offsetX,e.offsetY))){var a=r._zr,i=r._covers,n=uy(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var bh={lineX:CS(0),lineY:CS(1),rect:{createCover:function(r,e){function t(a){return a}return xD({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=SD(r);return bD(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){wD(r,e,t,a)},updateCommon:vd,contain:dd},polygon:{createCover:function(r,e){var t=new rt;return t.add(new Ee({name:"main",style:fy(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Re({name:"main",draggable:!0,drift:it(RH,r,e),ondragend:it(rn,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:hy(r,e,t)})},updateCommon:vd,contain:dd}};function CS(r){return{createCover:function(e,t){return xD({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=SD(e),a=Ks(t[0][r],t[1][r]),i=jn(t[0][r],t[1][r]);return[a,i]},updateCoverShape:function(e,t,a,i){var n,o=_D(e,t);if(o!==en&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),wD(e,t,l,i)},updateCommon:vd,contain:dd}}var vy=DH;function AD(r){return r=cy(r),function(e){return LT(e,r)}}function MD(r,e){return r=cy(r),function(t){var a=e!=null?e:t,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function DD(r,e,t){var a=cy(r);return function(i,n){return a.contain(n[0],n[1])&&!_h(i,e,t)}}function cy(r){return vt.create(r)}var VH=["axisLine","axisTickLabel","axisName"],BH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new vy(a.getZr())).on("brush",U(this._onBrush,this))},e.prototype.render=function(t,a,i,n){if(!zH(t,a,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),!!t.get("show")){var s=FH(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),p=new va(t,c);A(VH,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,i),ol(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=vt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:AD(h),isTargetByCursor:DD(h,s,n),getLinearBrushOtherExtent:MD(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(GH(i))},e.prototype._onBrush=function(t){var a=t.areas,i=this.axisModel,n=i.axis,o=G(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Gt);function zH(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function GH(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function FH(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var HH=BH,WH={type:"axisAreaSelect",event:"axisAreaSelected"};function $H(r){r.registerAction(WH,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var UH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function LD(r){r.registerComponentView(sH),r.registerComponentModel(uH),r.registerCoordinateSystem("parallel",SH),r.registerPreprocessor(eH),r.registerComponentModel(_S),r.registerComponentView(HH),Jn(r,"parallel",_S,UH),$H(r)}function YH(r){ct(LD),r.registerChartView(Z3),r.registerSeriesModel(Q3),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,tH)}var ZH=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),XH=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZH},e.prototype.buildPath=function(t,a){var i=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+i,a.y2),t.bezierCurveTo(a.cpx2+i,a.cpy2,a.cpx1+i,a.cpy1,a.x1+i,a.y1)):(t.lineTo(a.x2,a.y2+i),t.bezierCurveTo(a.cpx2,a.cpy2+i,a.cpx1,a.cpy1+i,a.x1,a.y1+i)),t.closePath()},e.prototype.highlight=function(){la(this)},e.prototype.downplay=function(){ua(this)},e}(dt),qH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new XH,g=at(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),w=p.node1.getModel(),x=w.get("localX"),b=w.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),M=C.get("localX"),D=C.get("localY"),L=p.getLayout(),I,P,R,E,N,O,V,F;switch(d.shape.extent=Math.max(1,L.dy),d.shape.orient=c,c==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,P=(b!=null?b*f:S.y)+S.dy,R=(M!=null?M*u:T.x)+L.ty,E=D!=null?D*f:T.y,N=I,O=P*(1-_)+E*_,V=R,F=P*_+E*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,P=(b!=null?b*f:S.y)+L.sy,R=M!=null?M*u:T.x,E=(D!=null?D*f:T.y)+L.ty,N=I*(1-_)+R*_,O=P,V=I*_+R*(1-_),F=E),d.setShape({x1:I,y1:P,x2:R,y2:E,cpx1:N,cpy1:O,cpx2:V,cpy2:F}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var W=p.node1.getVisual("color"),Z=p.node2.getVisual("color");$(W)&&$(Z)&&(d.style.fill=new nl(0,0,+(c==="horizontal"),+(c==="vertical"),[{color:W,offset:0},{color:Z,offset:1}]))}var tt=y.getModel("emphasis");ue(d,y,"lineStyle",function(Dt){return Dt.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var ft=tt.get("focus");$t(d,ft==="adjacency"?p.getAdjacentDataIndices():ft,tt.get("blurScope"),tt.get("disabled")),at(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new St({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ye(S,ne(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),ue(S,g),s.add(S),h.setItemGraphicEl(p.dataIndex,S),at(S).dataType="node";var w=_.get("focus");$t(S,w==="adjacency"?p.getAdjacentDataIndices():w,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(p,d){var g=h.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){n._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){n._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(KH(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Ot);function KH(r,e,t){var a=new St({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Vt(a,{shape:{width:r.width+20}},e,t),a}var QH=qH,JH=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Rt(o[l],this,a));if(n&&i){var u=fD(n,i,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var i=this.option.data||this.option.nodes,n=i[t];n.localX=a[0],n.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,i){function n(c){return isNaN(c)||c==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ee("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),h=f.getLayout().value,v=this.getDataParams(t,i).data.name;return ee("nameValue",{name:v!=null?v+"":null,value:h,noValue:n(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var i=r.prototype.getDataParams.call(this,t,a);if(i.value==null&&a==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(zt),jH=JH;function t4(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),i=t.get("nodeGap"),n=e4(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,f=l.edges;a4(u);var h=It(u,function(d){return d.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");r4(u,f,a,i,o,s,v,c,p)})}function e4(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r4(r,e,t,a,i,n,o,s,l){i4(r,e,t,i,n,s,l),l4(r,e,n,i,a,o,s),y4(r,s)}function a4(r){A(r,function(e){var t=Ha(e.outEdges,Df),a=Ha(e.inEdges,Df),i=e.getValue()||0,n=Math.max(t,a,i);e.setLayout({value:n},!0)})}function i4(r,e,t,a,i,n,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&n4(r,o,n,b);var T=n==="vertical"?(i-t)/b:(a-t)/b;s4(r,T,n)}function ID(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function n4(r,e,t,a){if(e==="right"){for(var i=[],n=r,o=0;n.length;){for(var s=0;s0;n--)l*=.99,h4(s,l,o),mc(s,i,t,a,o),g4(s,l,o),mc(s,i,t,a,o)}function u4(r,e){var t=[],a=e==="vertical"?"y":"x",i=mp(r,function(n){return n.getLayout()[a]});return i.keys.sort(function(n,o){return n-o}),A(i.keys,function(n){t.push(i.buckets.get(n))}),t}function f4(r,e,t,a,i,n){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(h){u+=h.getLayout().value});var f=n==="vertical"?(a-(l-1)*i)/u:(t-(l-1)*i)/u;f0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[v]+e;var p=i==="vertical"?a:t;if(u=f-e-p,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[n]+l.getLayout()[v]+e-f,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function h4(r,e,t){A(r.slice().reverse(),function(a){A(a,function(i){if(i.outEdges.length){var n=Ha(i.outEdges,v4,t)/Ha(i.outEdges,Df);if(isNaN(n)){var o=i.outEdges.length;n=o?Ha(i.outEdges,c4,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-qa(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-qa(i,t))*e;i.setLayout({y:l},!0)}}})})}function v4(r,e){return qa(r.node2,e)*r.getValue()}function c4(r,e){return qa(r.node2,e)}function p4(r,e){return qa(r.node1,e)*r.getValue()}function d4(r,e){return qa(r.node1,e)}function qa(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Df(r){return r.getValue()}function Ha(r,e,t){for(var a=0,i=r.length,n=-1;++nn&&(n=s)}),A(a,function(o){var s=new le({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:e.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function _4(r){r.registerChartView(QH),r.registerSeriesModel(jH),r.registerLayout(t4),r.registerVisual(m4),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var PD=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",a=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[i,n],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,w){var x;z(S)?(x=S.slice(),S.unshift(w)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:gf(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:gf(d),dimsDef:m.slice()}];return xo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:it(rC,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),RD=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(zt);Yt(RD,PD,!0);var S4=RD,x4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u),h=AS(f,n,u,l,!0);n.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!n.hasValue(u)){o.remove(h);return}var v=n.getItemLayout(u);h?(Sr(h),ED(v,h,n,u)):h=AS(v,n,u,l),o.add(h),n.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=n},e.prototype.remove=function(t){var a=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&a.remove(n)})},e.type="boxplot",e}(Ot),w4=function(){function r(){}return r}(),b4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new w4},e.prototype.buildPath=function(t,a){var i=a.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();nd){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var R4={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ge){var a="";Mt(a)}var i=P4(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function E4(r){r.registerSeriesModel(S4),r.registerChartView(C4),r.registerVisual(A4),r.registerLayout(M4),r.registerTransform(R4)}var k4=["color","borderColor"],O4=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Ja(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),i=this._data,n=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),a.diff(i).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&MS(u,h))return;var v=_c(h,f,!0);Vt(v,{shape:{points:h.ends}},t,f),Sc(v,a,f,o),n.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=i.getItemGraphicEl(h);if(!a.hasValue(f)){n.remove(v);return}var c=a.getItemLayout(f);if(s&&MS(u,c)){n.remove(v);return}v?(wt(v,{shape:{points:c.ends}},t,f),Sr(v)):v=_c(c),Sc(v,a,f,o),n.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&n.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),LS(t,this.group);var a=t.get("clip",!0)?mh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var i=a.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=_c(s);Sc(l,i,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){LS(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Ot),N4=function(){function r(){}return r}(),V4=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new N4},e.prototype.buildPath=function(t,a){var i=a.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(dt);function _c(r,e,t){var a=r.ends;return new V4({shape:{points:t?B4(a,r):a},z2:100})}function MS(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]),n=t.getModel("itemStyle").getItemStyle(k4);e.useStyle(n),e.style.fill=null,e.style.stroke=i}var G4=O4,kD=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,i){var n=a.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(zt);Yt(kD,PD,!0);var F4=kD;function H4(r){!r||!z(r.series)||A(r.series,function(e){J(e)&&e.type==="k"&&(e.type="candlestick")})}var W4=["itemStyle","borderColor"],$4=["itemStyle","borderColor0"],U4=["itemStyle","color"],Y4=["itemStyle","color0"],Z4={seriesType:"candlestick",plan:go(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?U4:Y4)}function a(n,o){return o.get(n>0?W4:$4)}if(!e.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}},X4=Z4,q4={seriesType:"candlestick",plan:go(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=K4(r,t),i=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=G(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),w=m.get(f,y),x=m.get(h,y),b=m.get(v,y),T=Math.min(S,w),C=Math.max(S,w),M=R(T,_),D=R(C,_),L=R(x,_),I=R(b,_),P=[];E(P,D,0),E(P,M,1),P.push(O(I),O(D),O(L),O(M)),g.setItemLayout(y,{sign:PS(m,y,S,w,f),initBaseline:S>w?D[n]:M[n],ends:P,brushRect:N(x,b,_)})}function R(V,F){var W=[];return W[i]=F,W[n]=V,isNaN(F)||isNaN(V)?[NaN,NaN]:e.dataToPoint(W)}function E(V,F,W){var Z=F.slice(),tt=F.slice();Z[i]=Ou(Z[i]+a/2,1,!1),tt[i]=Ou(tt[i]-a/2,1,!0),W?V.push(Z,tt):V.push(tt,Z)}function N(V,F,W){var Z=R(V,W),tt=R(F,W);return Z[i]-=a/2,tt[i]-=a/2,{x:Z[0],y:Z[1],width:a,height:tt[1]-Z[1]}}function O(V){return V[i]=Ou(V[i],1),V}}function p(d,g){for(var y=Or(d.count*4),m=0,_,S=[],w=[],x,b=g.getStore();(x=d.next())!=null;){var T=b.get(s,x),C=b.get(u,x),M=b.get(f,x),D=b.get(h,x),L=b.get(v,x);if(isNaN(T)||isNaN(D)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=PS(b,x,C,M,f),S[i]=T,S[n]=D,_=e.dataToPoint(S,null,w),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[n]=L,_=e.dataToPoint(S,null,w),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function PS(r,e,t,a,i){var n;return t>a?n=-1:t0?r.get(i,e-1)<=a?1:-1:1,n}function K4(r,e){var t=r.getBaseAxis(),a,i=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),n=H(ut(r.get("barMaxWidth"),i),i),o=H(ut(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?H(s,i):Math.max(Math.min(i/2,n),o)}var Q4=q4;function J4(r){r.registerChartView(G4),r.registerSeriesModel(F4),r.registerPreprocessor(H4),r.registerVisual(X4),r.registerLayout(Q4)}function RS(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var j4=function(r){k(e,r);function e(t,a){var i=r.call(this)||this,n=new cl(t,a),o=new rt;return i.add(n),i.add(o),i.updateData(t,a),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,i=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var h=void 0;K(f)?h=f(i):h=f,n.__t>0&&(h=-s*n.__t),this._animateSymbol(n,s,h,l)}this._period=s,this._loop=l}},e.prototype._animateSymbol=function(t,a,i,n){if(a>0){t.__t=0;var o=this,s=t.animate("",n).when(a,{__t:1}).delay(i).during(function(){o._updateSymbolPosition(t)});n||s.done(function(){o.remove(t)}),s.start()}},e.prototype._getLineLength=function(t){return La(t.__p1,t.__cp1)+La(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,i){this.childAt(0).updateData(t,a,i),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t,s=[t.x,t.y],l=s.slice(),u=re,f=np;s[0]=u(a[0],n[0],i[0],o),s[1]=u(a[1],n[1],i[1],o);var h=f(a[0],n[0],i[0],o),v=f(a[1],n[1],i[1],o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-n[l])/(n[l+1]-n[l]),h=i[l],v=i[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1];var c=v[0]-h[0],p=v[1]-h[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(OD),uW=lW,fW=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),hW=function(r){k(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fW},e.prototype.buildPath=function(t,a){var i=a.segs,n=a.curveness,o;if(a.polyline)for(o=this._off;o0){t.moveTo(i[o++],i[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*n,p=(f+v)/2-(h-u)*n;t.quadraticCurveTo(c,p,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var h=n[u++],v=n[u++],c=1;c0){var g=(h+p)/2-(v-d)*o,y=(v+d)/2-(p-h)*o;if(Hb(h,v,g,y,p,d,s,t,a))return l}else if(Ma(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect();if(t=i[0],a=i[1],n.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,i=a.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),cW=vW,pW={seriesType:"lines",plan:go(),reset:function(r){var e=r.coordinateSystem;if(!!e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(i,n){var o=[];if(a){var s=void 0,l=i.end-i.start;if(t){for(var u=0,f=i.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var h=t.get("clip",!0)&&mh(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,i){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,i){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,i){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=VD.reset(t,a,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(t,a){var i=this._lineDraw,n=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new cW:new oy(o?n?uW:ND:n?OD:ny),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),i=a.painter.getType()==="svg";!i&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Ot),gW=dW,yW=typeof Uint32Array=="undefined"?Array:Uint32Array,mW=typeof Float64Array=="undefined"?Array:Float64Array;function ES(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var a=[t[0].coord,t[1].coord],i={coords:a};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),Bd([i,t[0],t[1]])}))}var _W=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],ES(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(ES(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Kc(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Kc(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),i=a.option instanceof Array?a.option:a.getShallow("coords");return i},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!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,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(zt),SW=_W;function du(r){return r instanceof Array||(r=[r,r]),r}var xW={seriesType:"lines",reset:function(r){var e=du(r.get("symbol")),t=du(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=du(s.getShallow("symbol",!0)),u=du(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?i:null}}},wW=xW;function bW(r){r.registerChartView(gW),r.registerSeriesModel(SW),r.registerLayout(VD),r.registerVisual(wW)}var TW=256,CW=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=$a.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p0){var L=o(_)?l:u;_>0&&(_=_*M+T),w[x++]=L[D],w[x++]=L[D+1],w[x++]=L[D+2],w[x++]=L[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=$a.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var i=e.getContext("2d");return i.clearRect(0,0,a,a),i.shadowOffsetX=a,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,i=a[t]||(a[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},r}(),AW=CW;function MW(r,e,t){var a=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var i=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function kS(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var LW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):kS(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,a,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,i,n){var o=a.coordinateSystem;o&&(kS(o)?this.render(a,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Ja(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,i,n,o){var s=t.coordinateSystem,l=ln(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),p=s.getAxis("y");u=c.getBandWidth()+.5,f=p.getBandWidth()+.5,h=c.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),w=ne(t),x=t.getModel("emphasis"),b=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=i;Dh[1]||Rv[1])continue;var E=s.dataToPoint([P,R]);L=new St({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(M[1],D)))continue;L=new St({z2:1,shape:s.dataToRect([g.get(M[0],D)]).contentShape,style:I})}if(g.hasItemOption){var N=g.getItemModel(D),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),b=O.get("focus"),T=O.get("blurScope"),C=O.get("disabled"),w=ne(N)}L.shape.r=S;var V=t.getRawValue(D),F="-";V&&V[2]!=null&&(F=V[2]+""),ye(L,w,{labelFetcher:t,labelDataIndex:D,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,$t(L,b,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new AW;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,C){var M=t.dataToPoint([b,T]);return M[0]-=v,M[1]-=c,M.push(C),M}),S=i.getExtent(),w=i.type==="visualMap.continuous"?DW(S,i.option.range):MW(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new fe({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Ot),IW=LW,PW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Ur(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=po.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(zt),RW=PW;function EW(r){r.registerChartView(IW),r.registerSeriesModel(RW)}var kW=["itemStyle","borderWidth"],OS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xc=new Hr,OW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:OS[+f],categoryDim:OS[1-+f]};return o.diff(s).add(function(c){if(!!o.hasValue(c)){var p=VS(o,c),d=NS(o,c,p,v),g=BS(o,v,d);o.setItemGraphicEl(c,g),n.add(g),GS(g,v,d)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(c)){n.remove(d);return}var g=VS(o,c),y=NS(o,c,g,v),m=WD(o,y);d&&m!==d.__pictorialShapeStr&&(n.remove(d),o.setItemGraphicEl(c,null),d=null),d?HW(d,v,y):d=BS(o,v,y,!0),o.setItemGraphicEl(c,d),d.__pictorialSymbolMeta=y,n.add(d),GS(d,v,y)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&zS(s,c,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){zS(n,at(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Ot);function NS(r,e,t,a){var i=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:i,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};NW(t,n,i,a,v),VW(r,e,i,n,o,v.boundingLength,v.pxSign,f,a,v),BW(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=mo(t.get("symbolOffset"),c);return zW(t,c,i,n,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function NW(r,e,t,a,i){var n=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(z(o)){var h=[wc(s,o[0])-l,wc(s,o[1])-l];h[1]0?1:-1}function wc(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function VW(r,e,t,a,i,n,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=H(p[h.index],v),p[f.index]=H(p[f.index],a?v:Math.abs(n)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function BW(r,e,t,a,i){var n=r.get(kW)||0;n&&(xc.attr({scaleX:e[0],scaleY:e[1],rotation:t}),xc.updateTransform(),n/=xc.getLineScale(),n*=e[a.valueDim.index]),i.valueLineWidth=n||0}function zW(r,e,t,a,i,n,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ae(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),w=Math.max(d+S*2,0),x=_?0:S*2,b=Mb(a),T=b?a:FS((y+x)/w),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),w=d+S*2,x=_?0:S*2,!b&&a!=="fixed"&&(T=u?FS((Math.abs(u)+x)/w):0),g=T*w-x,h.repeatTimes=T,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=h.barRectShape=B({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),I[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function BD(r){var e=r.symbolPatternSize,t=Kt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function zD(r,e,t,a){var i=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=n[e.valueDim.index]+o+t.symbolMargin*2;for(py(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function GD(r,e,t,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?Zn(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(n=r.__pictorialMainPath=BD(t),i.add(n),Zn(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function FD(r,e,t){var a=B({},e.barRectShape),i=r.__pictorialBarRect;i?Zn(i,null,{shape:a},e,t):(i=r.__pictorialBarRect=new St({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function HD(r,e,t,a){if(t.symbolClip){var i=r.__pictorialClipPath,n=B({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)wt(i,{shape:n},s,l);else{n[o.wh]=0,i=new St({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],ll[a?"updateProps":"initProps"](i,{shape:u},s,l)}}}function VS(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=GW,t.isAnimationEnabled=FW,t}function GW(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function FW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function BS(r,e,t,a){var i=new rt,n=new rt;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?zD(i,e,t):GD(i,e,t),FD(i,t,a),HD(i,e,t,a),i.__pictorialShapeStr=WD(r,t),i.__pictorialSymbolMeta=t,i}function HW(r,e,t){var a=t.animationModel,i=t.dataIndex,n=r.__pictorialBundle;wt(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,i),t.symbolRepeat?zD(r,e,t,!0):GD(r,e,t,!0),FD(r,t,!0),HD(r,e,t,!0)}function zS(r,e,t,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];py(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(n,function(o){Ya(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function WD(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function py(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Zn(r,e,t,a,i,n){e&&r.attr(e),a.symbolClip&&!i?t&&r.attr(t):t&&ll[i?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,n)}function GS(r,e,t){var a=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=n.get("focus"),h=n.get("blurScope"),v=n.get("scale");py(r,function(d){if(d instanceof fe){var g=d.style;d.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;ye(p,ne(i),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:Qn(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),$t(r,f,h,n.get("disabled"))}function FS(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var WW=OW,$W=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ja(xf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(xf),UW=$W;function YW(r){r.registerChartView(WW),r.registerSeriesModel(UW),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(CA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AA("pictorialBar"))}var ZW=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new fa(this._layersSeries||[],l,v,v),p=[];c.add(U(d,this,"add")).update(U(d,this,"update")).remove(U(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],w=[],x,b=l[y].indices,T=0;Tn&&(n=s),a.push(s)}for(var u=0;un&&(n=h)}return{y0:i,max:n}}function t$(r){r.registerChartView(qW),r.registerSeriesModel(QW),r.registerLayout(JW),r.registerProcessor(gl("themeRiver"))}var e$=2,r$=4,a$=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this)||this;o.z2=e$,o.textConfig={inside:!0},at(o).seriesIndex=a.seriesIndex;var s=new Tt({z2:r$,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,i,n),o}return e.prototype.updateData=function(t,a,i,n,o){this.node=a,a.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;at(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=B({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=Fs(c,o));var p=Fn(l.getModel("itemStyle"),h,!0);B(h,p),A(Te,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var w=Fn(S,h);w&&(_.shape=w)}),t?(s.setShape(h),s.shape.r=f.r0,wt(s,{shape:{r:f.r}},i,a.dataIndex)):(wt(s,{shape:h},i),Sr(s)),s.useStyle(v),this._updateLabel(i);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;$t(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(M=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var I=g(m,"rotate"),P=0;I==="radial"?(P=-l,P<-Math.PI/2&&(P+=Math.PI)):I==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):xt(I)&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?n.get(m):_}v.dirtyStyle()},e}(Pe),WS=a$,gd="sunburstRootToNode",$S="sunburstHighlight",i$="sunburstUnhighlight";function n$(r){r.registerAction({type:gd,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i,n){var o=Ys(e,[gd],i);if(o){var s=i.getViewRoot();s&&(e.direction=ey(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:$S,update:"none"},function(e,t,a){e=B({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n){var o=Ys(e,[$S],n);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(B(e,{type:"highlight"}))}),r.registerAction({type:i$,update:"updateView"},function(e,t,a){e=B({},e),a.dispatchAction(B(e,{type:"downplay"}))})}var o$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){var o=this;this.seriesModel=t,this.api=i,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];p(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function p(m,_){if(m.length===0&&_.length===0)return;new fa(_,m,S,S).add(w).update(w).remove(it(w,null)).execute();function S(x){return x.getId()}function w(x,b){var T=x==null?null:m[x],C=b==null?null:_[b];d(T,C)}}function d(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,i),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new WS(m,t,a,i);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,i):(o.virtualPiece=new WS(m,t,a,i),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";lf(u,f)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gd,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(Ot),s$=o$,l$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var i={name:t.name,children:t.data};$D(i);var n=this._levelModels=G(t.levels||[],function(l){return new Rt(l,this,a)},this),o=ty.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=n[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=xh(i,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){ZM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(zt);function $D(r){var e=0;A(r.children,function(a){$D(a);var i=a.value;z(i)&&(i=i[0]),e+=i});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var u$=l$,US=Math.PI/180;function f$(r,e,t){e.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");z(n)||(n=[0,n]),z(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(i[0],o),f=H(i[1],s),h=H(n[0],l/2),v=H(n[1],l/2),c=-a.get("startAngle")*US,p=a.get("minAngle")*US,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&UD(g,m);var _=0;A(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),w=Math.PI/(S||_)*2,x=g.depth>0,b=g.height-(x?-1:1),T=(v-h)/(b||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,L=function(E,N){if(!!E){var O=N;if(E!==d){var V=E.getValue(),F=S===0&&M?w:V*w;F1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&$(s)&&(s=lp(s,(a.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var i=a.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function c$(r){r.registerChartView(s$),r.registerSeriesModel(u$),r.registerLayout(it(f$,"sunburst")),r.registerProcessor(it(gl,"sunburst")),r.registerVisual(v$),n$(r)}var YS={color:"fill",borderColor:"stroke"},p$={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ia=bt(),d$=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Ur(null,this)},e.prototype.getDataParams=function(t,a,i){var n=r.prototype.getDataParams.call(this,t,a);return i&&(n.info=ia(i).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(zt),g$=d$;function y$(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var i=this.getAxis(t),n=e[a],o=r[a]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function m$(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(y$,r)}}}function _$(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],i=r[t]/2,n=[],o=[];return n[t]=a-i,o[t]=a+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function S$(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:U(_$,r)}}}function x$(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,i=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-i)-t.dataToCoord(a+i))}function w$(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(x$,r)}}}function b$(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var i="get"+t+"Axis",n=this[i](),o=e[a],s=r[a]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function T$(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:U(b$,r)}}}function C$(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,i){return r.dataToPoint(a,i)}}}}function YD(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Y(r,"text")))}function ZD(r,e,t){var a=r,i,n,o;if(e==="text")o=a;else{o={},Y(a,"text")&&(o.text=a.text),Y(a,"rich")&&(o.rich=a.rich),Y(a,"textFill")&&(o.fill=a.textFill),Y(a,"textStroke")&&(o.stroke=a.textStroke),Y(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Y(a,"fontSize")&&(o.fontSize=a.fontSize),Y(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Y(a,"fontWeight")&&(o.fontWeight=a.fontWeight),n={type:"text",style:o,silent:!0},i={};var s=Y(a,"textPosition");t?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Y(a,"textPosition")&&(i.position=a.textPosition),Y(a,"textOffset")&&(i.offset=a.textOffset),Y(a,"textRotation")&&(i.rotation=a.textRotation),Y(a,"textDistance")&&(i.distance=a.textDistance)}return ZS(o,r),A(o.rich,function(l){ZS(l,l)}),{textConfig:i,textContent:n}}function ZS(r,e){!e||(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(r.align=e.textAlign),Y(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(r.width=e.textWidth),Y(e,"textHeight")&&(r.height=e.textHeight),Y(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(r.padding=e.textPadding),Y(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function XS(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var i=a.textPosition.indexOf("inside")>=0,n=r.fill||"#000";qS(a,e);var o=a.textFill==null;return i?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){qS(s,s)}),a}function qS(r,e){!e||(Y(e,"fill")&&(r.textFill=e.fill),Y(e,"stroke")&&(r.textStroke=e.fill),Y(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Y(e,"font")&&(r.font=e.font),Y(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Y(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Y(e,"fontSize")&&(r.fontSize=e.fontSize),Y(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Y(e,"align")&&(r.textAlign=e.align),Y(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Y(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Y(e,"width")&&(r.textWidth=e.width),Y(e,"height")&&(r.textHeight=e.height),Y(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Y(e,"padding")&&(r.textPadding=e.padding),Y(e,"borderColor")&&(r.textBorderColor=e.borderColor),Y(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Y(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Y(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Y(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Y(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Y(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Y(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Y(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Y(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Y(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var XD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},KS=yt(XD);Br(Gr,function(r,e){return r[e]=1,r},{});Gr.join(", ");var Lf=["","style","shape","extra"],to=bt();function dy(r,e,t,a,i){var n=r+"Animation",o=oo(r,a,i)||{},s=to(e).userDuring;return o.duration>0&&(o.during=s?U(I$,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,t[n]),o}function Fu(r,e,t,a){a=a||{};var i=a.dataIndex,n=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=to(r),u=e.style;l.userDuring=e.during;var f={},h={};if(R$(r,e,h),JS("shape",e,h),JS("extra",e,h),!n&&s&&(P$(r,e,f),QS("shape",r,e,f),QS("extra",r,e,f),E$(r,e,u,f)),h.style=u,A$(r,h,o),D$(r,e),s)if(n){var v={};A(Lf,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),B(p?v[p]:v,d.enterFrom))});var c=dy("enter",r,e,t,i);c.duration>0&&r.animateFrom(v,c)}else M$(r,e,i||0,t,f);qD(r,e),u?r.dirty():r.markRedraw()}function qD(r,e){for(var t=to(r).leaveToProps,a=0;a0&&r.animateFrom(i,n)}}function D$(r,e){Y(e,"silent")&&(r.silent=e.silent),Y(e,"ignore")&&(r.ignore=e.ignore),r instanceof nr&&Y(e,"invisible")&&(r.invisible=e.invisible),r instanceof dt&&Y(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Dr={},L$={setTransform:function(r,e){return Dr.el[r]=e,this},getTransform:function(r){return Dr.el[r]},setShape:function(r,e){var t=Dr.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Dr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Dr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Dr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Dr.el.extra||(Dr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Dr.el.extra;if(e)return e[r]}};function I$(){var r=this,e=r.el;if(!!e){var t=to(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}Dr.el=e,a(L$)}}function QS(r,e,t,a){var i=t[r];if(!!i){var n=e[r],o;if(n){var s=t.transition,l=i.transition;if(l)if(!o&&(o=a[r]={}),Xi(l))B(o,n);else for(var u=Pt(l),f=0;f=0){!o&&(o=a[r]={});for(var c=yt(n),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!n&&(n=a.style={});for(var p=yt(t),u=0;u=0?e.getStore().get(N,R):void 0}var O=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[O]:O}function x(P,R){R==null&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,O=E&&E.opacity,V=m(R,Va).getItemStyle();N!=null&&(V.fill=N),O!=null&&(V.opacity=O);var F={inheritColor:$(N)?N:"#000"},W=_(R,Va),Z=Bt(W,null,F,!1,!0);Z.text=W.getShallow("show")?ut(r.getFormattedLabel(R,Va),Qn(e,R)):null;var tt=of(W,F,!1);return C(P,V),V=XS(V,Z,tt),P&&T(V,P),V.legacy=!0,V}function b(P,R){R==null&&(R=u);var E=m(R,na).getItemStyle(),N=_(R,na),O=Bt(N,null,null,!0,!0);O.text=N.getShallow("show")?ta(r.getFormattedLabel(R,na),r.getFormattedLabel(R,Va),Qn(e,R)):null;var V=of(N,null,!0);return C(P,E),E=XS(E,O,V),P&&T(E,P),E.legacy=!0,E}function T(P,R){for(var E in R)Y(R,E)&&(P[E]=R[E])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function M(P,R){if(R==null&&(R=u),Y(YS,P)){var E=e.getItemVisual(R,"style");return E?E[YS[P]]:null}if(Y(p$,P))return e.getItemVisual(R,P)}function D(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return UN(Q({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return RT(P,t)}}function $$(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var i=a.coordDim,n=e[i]=e[i]||[];n[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function Ac(r,e,t,a,i,n,o){if(!a){n.remove(e);return}var s=Sy(r,e,t,a,i,n);return s&&o.setItemGraphicEl(t,s),s&&$t(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Sy(r,e,t,a,i,n){var o=-1,s=e;e&&jD(e,a,i)&&(o=ht(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=my(a),s&&z$(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ye.normal.cfg=Ye.normal.conOpt=Ye.emphasis.cfg=Ye.emphasis.conOpt=Ye.blur.cfg=Ye.blur.conOpt=Ye.select.cfg=Ye.select.conOpt=null,Ye.isLegacy=!1,Y$(u,t,a,i,l,Ye),U$(u,t,a,i,l),_y(r,u,t,a,Ye,i,l),Y(a,"info")&&(ia(u).info=a.info);for(var f=0;f=0?n.replaceAt(u,o):n.add(u),u}function jD(r,e,t){var a=ia(r),i=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||i!=null&&i!==a.customGraphicType||i==="path"&&K$(n)&&tL(n)!==a.customPathData||i==="image"&&Y(o,"image")&&o.image!==a.customImagePath}function U$(r,e,t,a,i){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&jD(o,n,a)&&(o=null),o||(o=my(n),r.setClipPath(o)),_y(null,o,e,n,null,a,i)}}function Y$(r,e,t,a,i,n){if(!r.isGroup){tx(t,null,n),tx(t,na,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=my(o),r.setTextContent(f)),_y(null,f,e,o,null,a,i);for(var h=o&&o.style,v=0;v=f;h--){var v=e.childAt(h);Th(v,ia(e).option,i)}}}function X$(r){new fa(r.oldChildren,r.newChildren,ex,ex,r).add(rx).update(rx).remove(q$).execute()}function ex(r,e){var t=r&&r.name;return t!=null?t:V$+e}function rx(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,i=e!=null?t.oldChildren[e]:null;Sy(t.api,i,t.dataIndex,a,t.seriesModel,t.group)}function q$(r){var e=this.context,t=e.oldChildren[r];Th(t,ia(t).option,e.seriesModel)}function tL(r){return r&&(r.pathData||r.d)}function K$(r){return r&&(Y(r,"pathData")||Y(r,"d"))}function Q$(r){r.registerChartView(F$),r.registerSeriesModel(g$)}var Ei=bt(),ax=j,Mc=U,J$=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,i){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new rt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var v=it(ix,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}ox(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),i=e.axis,n=i.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(o){var l=Zg(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,i,n){},r.prototype.createPointerEl=function(e,t,a,i){var n=t.pointer;if(n){var o=Ei(e).pointerEl=new ll[n.type](ax(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,i){if(t.label){var n=Ei(e).labelEl=new Tt(ax(t.label));e.add(n),nx(n,i)}},r.prototype.updatePointerEl=function(e,t,a){var i=Ei(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),a(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,i){var n=Ei(e).labelEl;n&&(n.setStyle(t.label.style),a(n,{x:t.label.x,y:t.label.y}),nx(n,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&a.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=sl(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){oa(u.event)},onmousedown:Mc(this._onHandleDragMove,this,0,0),drift:Mc(this._onHandleDragMove,this),ondragend:Mc(this._onHandleDragEnd,this)}),a.add(i)),ox(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,yo(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){ix(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Dc(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(!!a){this._dragging=!0;var i=this.updateHandleTransform(Dc(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr(Dc(i)),Ei(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,i=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Bs(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function ix(r,e,t,a){eL(Ei(t).lastProp,a)||(Ei(t).lastProp=a,e?wt(t,a,r):(t.stopAnimation(),t.attr(a)))}function eL(r,e){if(J(r)&&J(e)){var t=!0;return A(e,function(a,i){t=t&&eL(r[i],a)}),!!t}else return r===e}function nx(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Dc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function ox(r,e,t){var a=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(a!=null&&(n.z=a),i!=null&&(n.zlevel=i),n.silent=t)})}var wy=J$;function by(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function rL(r,e,t,a,i){var n=t.get("value"),o=aL(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fo(s.get("padding")||0),u=s.getFont(),f=rl(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=i.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=i.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),j$(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Bt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function j$(r,e,t,a){var i=a.getWidth(),n=a.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function aL(r,e,t,a,i){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Bg(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),$(o)?n=o.replace("{value}",n):K(o)&&(n=o(s))}return n}function Ty(r,e,t){var a=ir();return nn(a,a,t.rotation),zr(a,a,t.position),yr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function iL(r,e,t,a,i,n){var o=va.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),rL(e,a,i,n,{position:Ty(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Cy(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function nL(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function sx(r,e,t,a,i,n){return{cx:r,cy:e,r0:t,r:a,startAngle:i,endAngle:n,clockwise:!0}}var t6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),f=lx(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=by(n),c=e6[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=td(l.model,i);iL(a,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=td(a.axis.grid.model,a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=Ty(a.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=lx(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(wy);function lx(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var e6={line:function(r,e,t){var a=Cy([e,t[0]],[e,t[1]],ux(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:nL([e-a/2,t[0]],[a,i],ux(r))}}};function ux(r){return r.dim==="x"?0:1}var r6=t6,a6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(mt),i6=a6,jr=bt(),n6=A;function oL(r,e,t){if(!Ct.node){var a=e.getZr();jr(a).records||(jr(a).records={}),o6(a,e);var i=jr(a).records[r]||(jr(a).records[r]={});i.handler=t}}function o6(r,e){if(jr(r).initialized)return;jr(r).initialized=!0,t("click",it(fx,"click")),t("mousemove",it(fx,"mousemove")),t("globalout",l6);function t(a,i){r.on(a,function(n){var o=u6(e);n6(jr(r).records,function(s){s&&i(s,n,o.dispatchAction)}),s6(o.pendings,e)})}}function s6(r,e){var t=r.showTip.length,a=r.hideTip.length,i;t?i=r.showTip[t-1]:a&&(i=r.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function l6(r,e,t){r.handler("leave",null,t)}function fx(r,e,t,a){e.handler(r,t,a)}function u6(r){var e={showTip:[],hideTip:[]},t=function(a){var i=e[a.type];i?i.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function _d(r,e){if(!Ct.node){var t=e.getZr(),a=(jr(t).records||{})[r];a&&(jr(t).records[r]=null)}}var f6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=a.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";oL("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){_d("axisPointer",a)},e.prototype.dispose=function(t,a){_d("axisPointer",a)},e.type="axisPointer",e}(Gt),h6=f6;function sL(r,e){var t=[],a=r.seriesIndex,i;if(a==null||!(i=e.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=Ki(n,r);if(o==null||o<0||z(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=n.mapDimension(v),d=[];d[c]=n.get(p,o),d[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(G(l.dimensions,function(y){return n.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var hx=bt();function v6(r,e,t){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||U(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Hu(i)&&(i=sL({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Hu(i),u=n.axesInfo,f=s.axesInfo,h=a==="leave"||Hu(i),v={},c={},p={list:[],map:{}},d={showPointer:it(p6,c),showTooltip:it(d6,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=_6(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&vx(S,T,d,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,cx(S),cx(y)))),g[y.key]=b}})}),A(g,function(y,m){vx(f[m],y,d,!0,v)}),g6(c,f,v),y6(p,i,r,o),m6(f,o,t),v}}function vx(r,e,t,a,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=c6(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!a&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function c6(r,e){var t=e.axis,a=t.dim,i=r,n=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,i=h,n.length=0),A(v,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function p6(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function d6(r,e,t,a){var i=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Us(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function g6(r,e,t){var a=t.axesInfo=[];A(e,function(i,n){var o=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function y6(r,e,t,a){if(Hu(e)||!r.list.length){a({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function m6(r,e,t){var a=t.getZr(),i="axisPointerLastHighlights",n=hx(a)[i]||{},o=hx(a)[i]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(n,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!n[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function _6(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function cx(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function Hu(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Sl(r){un.registerAxisPointerClass("CartesianAxisPointer",r6),r.registerComponentModel(i6),r.registerComponentView(h6),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=s5(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},v6)}function S6(r){ct(RM),ct(Sl)}var x6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=n.get("type");if(v&&v!=="none"){var c=by(n),p=b6[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=n.get(["label","margin"]),g=w6(a,i,n,l,d);rL(t,i,n,o,g)},e}(wy);function w6(r,e,t,a,i){var n=e.axis,o=n.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(n.dim==="radius"){var v=ir();nn(v,v,s),zr(v,v,[a.cx,a.cy]),u=yr([o,-i],v);var c=e.getModel("axisLabel").get("rotate")||0,p=va.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+i,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var b6={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:Cy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:sx(e.cx,e.cy,a[0],a[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:sx(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},T6=x6,C6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,i=this.ecModel;return i.eachComponent(t,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(mt),A6=C6,Ay=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Xt).models[0]},e.type="polarAxis",e}(mt);Yt(Ay,So);var M6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Ay),D6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Ay),My=function(r){k(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(wr);My.prototype.dataToRadius=wr.prototype.dataToCoord;My.prototype.radiusToData=wr.prototype.coordToData;var L6=My,I6=bt(),Dy=function(r){k(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=rl(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=I6(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(wr);Dy.prototype.dataToAngle=wr.prototype.dataToCoord;Dy.prototype.angleToData=wr.prototype.coordToData;var P6=Dy,lL=["radius","angle"],R6=function(){function r(e){this.dimensions=lL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new L6,this._angleAxis=new P6,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,i=this._radiusAxis;return a.scale.type===e&&t.push(a),i.scale.type===e&&t.push(i),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,i=Math.cos(a)*t+this.cx,n=-Math.sin(a)*t+this.cy;return[i,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var i=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var i=px(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=px(t);return i===this?this.pointToData(a):null},r}();function px(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var E6=R6;function k6(r,e,t){var a=e.get("center"),i=t.getWidth(),n=t.getHeight();r.cx=H(a[0],i),r.cy=H(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function O6(r,e){var t=this,a=t.getAngleAxis(),i=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(yf(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),A(yf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),tn(a.scale,a.model),tn(i.scale,i.model),a.type==="category"&&!a.onBand){var n=a.getExtent(),o=360/a.scale.count();a.inverse?n[1]+=o:n[1]-=o,a.setExtent(n[0],n[1])}}function N6(r){return r.mainType==="angleAxis"}function dx(r,e){if(r.type=e.get("type"),r.scale=hl(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),N6(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var V6={dimensions:lL,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,i){var n=new E6(i+"");n.update=O6;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");dx(o,l),dx(s,u),k6(n,a,e),t.push(n),a.coordinateSystem=n,n.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var i=a.getReferringComponents("polar",Xt).models[0];a.coordinateSystem=i.coordinateSystem}}),t}},B6=V6,z6=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function gu(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),i=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}function yu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function gx(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var G6=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=G(i.getViewLabels(),function(f){f=j(f);var h=i.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(v),f});gx(u),gx(s),A(z6,function(f){t.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&F6[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(un),F6={axisLine:function(r,e,t,a,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=yu(t),l=s?0:1,u;n[l]===0?u=new Hr({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new jf({shape:{cx:t.cx,cy:t.cy,r:n[s],r0:n[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,i,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[yu(t)],u=G(a,function(f){return new ie({shape:gu(t,[l,l+s],f.coord)})});r.add(tr(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,i,n){if(!!i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[yu(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var w=s[p];J(w)&&w.textStyle&&(c=new Rt(w.textStyle,l,l.ecModel))}var x=new Tt({silent:va.isLabelSilent(e),style:Bt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=va.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=h.rawLabel,at(x).eventData=b}},this)},splitLine:function(r,e,t,a,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",I=b;w&&(a[f][D]||(a[f][D]={p:b,n:b}),I=a[f][D][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if(p.dim==="radius"){var O=p.dataToCoord(M)-b,V=l.dataToCoord(D);Math.abs(O)=N})}}})}function K6(r){var e={};A(r,function(a,i){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=fL(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=uL(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=H(a.get("barWidth"),f),d=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return A(e,function(a,i){t[i]={};var n=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(n,function(d,g){var y=d.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),i=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[n]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-n]=n===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(e,t,a){var i=yx(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=yx(t);return i===this?this.pointToData(a):null},r}();function yx(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function uU(r,e){var t=[];return r.eachComponent("singleAxis",function(a,i){var n=new lU(a,r,e);n.name="single_"+i,n.resize(a,e),a.coordinateSystem=n,t.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var i=a.getReferringComponents("singleAxis",Xt).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),t}var fU={create:uU,dimensions:vL},hU=fU,mx=["x","y"],vU=["width","height"],cU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis,l=s.coordinateSystem,u=Ic(l,1-Rf(s)),f=l.dataToPoint(a)[0],h=n.get("type");if(h&&h!=="none"){var v=by(n),c=pU[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Sd(i);iL(a,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=Sd(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=Ty(a.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,i,n){var o=i.axis,s=o.coordinateSystem,l=Rf(o),u=Ic(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=Ic(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(wy),pU={line:function(r,e,t){var a=Cy([e,t[0]],[e,t[1]],Rf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:nL([e-a/2,t[0]],[a,i],Rf(r))}}};function Rf(r){return r.isHorizontal()?0:1}function Ic(r,e){var t=r.getRect();return[t[mx[e]],t[mx[e]]+t[vU[e]]]}var dU=cU,gU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Gt);function yU(r){ct(Sl),un.registerAxisPointerClass("SingleAxisPointer",dU),r.registerComponentView(gU),r.registerComponentView(nU),r.registerComponentModel(Lc),Jn(r,"single",Lc,Lc.defaultOption),r.registerCoordinateSystem("single",hU)}var mU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,i){var n=ho(t);r.prototype.init.apply(this,arguments),_x(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),_x(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(mt);function _x(r,e){var t=r.cellSize,a;z(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var i=G([0,1],function(n){return ME(e,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});Za(r,e,{type:"box",ignoreSize:i})}var _U=mU,SU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,a,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=a.start.time;u<=a.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,h=new St({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},e.prototype._renderLines=function(t,a,i,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,n)},e.prototype._getEdgesPoints=function(t,a,i){var n=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-a/2,n[1][o]=n[1][o]+a/2,n},e.prototype._drawSplitline=function(t,a,i){var n=new Ee({z2:20,shape:{points:t},style:a});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,a,i){for(var n=t.coordinateSystem,o=n.getDateInfo(a),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return $(t)&&t?TE(t,a):K(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,i,n,o){var s=a[0],l=a[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,i,n){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=i==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Tt({z2:30,style:Bt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],i,l,s)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,a,i,n,o){var s="left",l="top",u=t[0],f=t[1];return i==="horizontal"?(f=f+o,a&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,i,n){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(a=Ip(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d=i.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var i=Math.floor(t[1].time/Pc)-Math.floor(t[0].time/Pc)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)i-=u,n.setDate(l-u);var f=Math.floor((i+t[0].day+6)/7),h=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var i=this._getRangeInfo(a);if(e>i.weeks||e===0&&ti.lweek)return null;var n=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(i){var n=new r(i,e,t);a.push(n),i.coordinateSystem=n}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=a[i.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function Sx(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}var bU=wU;function TU(r){r.registerComponentModel(_U),r.registerComponentView(xU),r.registerCoordinateSystem("calendar",bU)}function CU(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function xx(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function AU(r,e,t){var a=B({},t),i=r[e],n=t.$action||"merge";n==="merge"?i?(st(i,a,!0),Za(i,a,{ignoreSize:!0}),QT(t,i),mu(t,i),mu(t,i,"shape"),mu(t,i,"style"),mu(t,i,"extra"),t.clipPath=i.clipPath):r[e]=a:n==="replace"?r[e]=a:n==="remove"&&i&&(r[e]=null)}var cL=["transition","enterFrom","leaveTo"],MU=cL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function mu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?cL:MU,i=0;i=0;f--){var h=i[f],v=Qt(h.id,null),c=v!=null?o.get(v):null;if(!!c){var p=c.parent,y=Qe(p),m=p===n?{width:s,height:l}:{width:y.width,height:y.height},_={},S=uh(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Qe(c).isNew&&S){for(var w=h.transition,x={},b=0;b=0)?x[T]=C:c[T]=C}wt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(i){Wu(i,Qe(i).option,a,t._lastGraphicModel)}),this._elMap=q()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Gt);function xd(r){var e=Y(bx,r)?bx[r]:lg(r),t=new e({});return Qe(t).type=r,t}function Tx(r,e,t,a){var i=xd(t);return e.add(i),a.set(r,i),Qe(i).id=r,Qe(i).isNew=!0,i}function Wu(r,e,t,a){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(n){Wu(n,e,t,a)}),Th(r,e,a),t.removeKey(Qe(r).id))}function Cx(r,e,t,a){if(!r.isGroup){var i=r;i.cursor=ut(e.cursor,nr.prototype.cursor),i.z=ut(e.z,t||0),i.zlevel=ut(e.zlevel,a||0);var n=e.z2;n!=null&&(i.z2=n||0)}A(yt(e),function(o){var s=e[o];o.indexOf("on")===0&&K(s)&&(r[o]=s)}),r.draggable=e.draggable,e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function PU(r){return r=B({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(KT),function(e){delete r[e]}),r}function RU(r,e,t){var a=at(r).eventData;!r.silent&&!r.ignore&&!a&&(a=at(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function EU(r){r.registerComponentModel(LU),r.registerComponentView(IU),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Ax=["x","y","radius","angle","single"],kU=["cartesian2d","polar","singleAxis"];function OU(r){var e=r.get("coordinateSystem");return ht(kU,e)>=0}function Ba(r){return r+"Axis"}function NU(r,e){var t=q(),a=[],i=q();r.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!i.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){i.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return a}function pL(r){var e=r.ecModel,t={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,i){var n=e.getComponent(Ba(a),i);if(!!n){var o=n.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Rc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),VU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,i){var n=Mx(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var a=Mx(t);st(this.option,t,!0),st(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(a[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=q(),i=this._fillSpecifiedTargetAxis(a);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(Ax,function(i){var n=this.getReferringComponents(Ba(i),tP);if(!!n.specified){a=!0;var o=new Rc;A(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var i=this.ecModel,n=!0;if(n){var o=a==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var v=new Rc;if(v.add(h.componentIndex),t.set(f,v),n=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Xt).models[0];c&&A(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Xt).models[0]&&v.add(p.componentIndex)})}}}n&&A(Ax,function(u){if(!!n){var f=i.findComponents({mainType:Ba(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Rc;h.add(f[0].componentIndex),t.set(u,h),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":i?a[o]=i[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,i){t==null&&(t=this.ecModel.getComponent(Ba(a),i))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(i,n){A(i.indexList,function(o){t.call(a,n,o)})})},e.prototype.getAxisProxy=function(t,a){var i=this.getAxisModel(t,a);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[a])return this.ecModel.getComponent(Ba(t),a)},e.prototype.setRawRange=function(t){var a=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(a[n[0]]=i[n[0]]=t[n[0]],a[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(i){a[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,i=this._targetAxisInfoMap.keys(),n=0;no[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(p=!0),w&&(d=!0)}return g&&p&&d})}else On(f,function(c){if(n==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});On(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;On(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Lt(a[0]+o,a,[0,100],!0):n!=null&&(o=Lt(n,[0,100],a,!0)-a[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(!!t){var i=Tb(a,[0,500]);i=Math.min(i,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+a[0].toFixed(i)),t[1]!==100&&n.setDeterminedMinMax("max",+a[1].toFixed(i)),n.freeze()}},r}();function $U(r,e,t){var a=[1/0,-1/0];On(t,function(o){pV(a,o.getData(),e)});var i=r.getAxisModel(),n=RA(i.axis.scale,i,a).calculate();return[n.min,n.max]}var UU=WU,YU={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(Ba(o),s);i(o,s,l,n)})})}e(function(i,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new UU(i,n,s,r),t.push(o.__dzAxisProxy))});var a=q();return A(t,function(i){A(i.getTargetSeriesModels(),function(n){a.set(n.uid,n)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).reset(t)}),t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var i=a.getDataPercentWindow(),n=a.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}},ZU=YU;function XU(r){r.registerAction("dataZoom",function(e,t){var a=NU(t,e);A(a,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Lx=!1;function Iy(r){Lx||(Lx=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ZU),XU(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function qU(r){r.registerComponentModel(zU),r.registerComponentView(HU),Iy(r)}var je=function(){function r(){}return r}(),dL={};function Nn(r,e){dL[r]=e}function gL(r){return dL[r]}var KU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,i){var n=gL(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),st(a,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(mt),QU=KU;function JU(r,e,t){var a=e.getBoxLayoutParams(),i=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=Jt(a,n,i);Ui(e.get("orient"),r,e.get("itemGap"),o.width,o.height),uh(r,a,n,i)}function yL(r,e){var t=fo(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new St({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var jU=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(p,d){h.push(d)}),new fa(this._featureNames||[],h).add(v).update(v).remove(it(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new Rt(m,t,t.ecModel),S;if(n&&n.newTitle!=null&&n.featureName===g&&(m.title=n.newTitle),g&&!y){if(t8(g))S={onclick:_.option.onclick,featureName:g};else{var w=gL(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=uo("toolbox-feature"),S.model=_,S.ecModel=a,S.api=i;var x=S instanceof je;if(!g&&y){x&&S.dispose&&S.dispose(a,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,i);return}c(_,S,g),_.setIconStatus=function(b,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[b]=T,M[b]&&(T==="emphasis"?la:ua)(M[b])},S instanceof je&&S.render&&S.render(_,a,i,n)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof je&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},w,x;$(_)?(w={},w[g]=_):w=_,$(S)?(x={},x[g]=S):x=S;var b=p.iconPaths={};A(w,function(T,C){var M=sl(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var L=new Tt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(L),so({el:M,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var I=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",C])==="emphasis"?la:ua)(M),o.add(M),M.on("click",U(d.onclick,d,a,i,C)),b[C]=M})}JU(o,t,i),o.add(yL(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!K(_)&&d){var S=_.style||(_.style={}),w=rl(d,Tt.makeFont(S)),x=p.x+o.x,b=p.y+o.y+s,T=!1;b+w.height>i.getHeight()&&(y.position="top",T=!0);var C=T?-5-w.height:s+10;x+w.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-w.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,a,i,n){A(this._features,function(o){o instanceof je&&o.updateView&&o.updateView(o.model,a,i,n)})},e.prototype.remove=function(t,a){A(this._features,function(i){i instanceof je&&i.remove&&i.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(i){i instanceof je&&i.dispose&&i.dispose(t,a)})},e.type="toolbox",e}(Gt);function t8(r){return r.indexOf("my")===0}var e8=jU,r8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Ct.browser;if(K(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=i.get("lang"),b='',T=window.open();T.document.write(b),T.document.title=n}},e.getDefaultOption=function(t){var a={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(je),a8=r8,Ix="__ec_magicType_stack__",i8=[["line","bar"],["stack"]],n8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),i={};return A(t.get("type"),function(n){a[n]&&(i[n]=a[n])}),i},e.getDefaultOption=function(t){var a={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"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,i){var n=this.model,o=n.get(["seriesIndex",i]);if(!!Px[i]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=Px[i](v,c,h,n);p&&(Q(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Xt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};A(i8,function(h){ht(h,i)>=0&&A(h,function(v){n.setIconStatus(v,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=st({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(je),Px={line:function(r,e,t,a){if(r==="bar")return st({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return st({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var i=t.get("stack")===Ix;if(r==="line"||r==="bar")return a.setIconStatus("stack",i?"normal":"emphasis"),st({id:e,stack:i?"":Ix},a.get(["option","stack"])||{},!0)}};$r({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var o8=n8,Ch=new Array(60).join("-"),eo=" ";function s8(r){var e={},t=[],a=[];return r.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function l8(r){var e=[];return A(r,function(t,a){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[i.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(eo)],f=0;f=0)return!0}var wd=new RegExp("["+eo+"]+","g");function v8(r){for(var e=r.split(/\n+/g),t=Ef(e.shift()).split(wd),a=[],i=G(t,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var o=t[n];if(o[i])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function _8(r){var e=Py(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return mL(t,function(i,n){for(var o=e.length-1;o>=0;o--)if(i=e[o][n],i){a[n]=i;break}}),a}function S8(r){_L(r).snapshots=null}function x8(r){return Py(r).length}function Py(r){var e=_L(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var w8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){S8(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={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:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(je);$r({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var b8=w8,T8=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],C8=function(){function r(e,t,a){var i=this;this._targetInfoList=[];var n=Rx(t,e);A(A8,function(o,s){(!a||!a.include||ht(a.include,s)>=0)&&o(n,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,i,n){if((a.coordRanges||(a.coordRanges=[])).push(i),!a.coordRange){a.coordRange=i;var o=Ec[a.brushType](0,n,i);a.__rangeOffset={offset:Nx[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(i){var n=this.findTargetInfo(i,t);n&&n!==!0&&A(n.coordSyses,function(o){var s=Ec[i.brushType](1,o,i.range,!0);a(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var i=this.findTargetInfo(a,t);if(a.range=a.range||[],i&&i!==!0){a.panelId=i.panelId;var n=Ec[a.brushType](0,i.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Nx[a.brushType](n.values,o.offset,M8(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var i=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:AD(i),isTargetByCursor:DD(i,e,a.coordSysModel),getLinearBrushOtherExtent:MD(i)}})},r.prototype.controlSeries=function(e,t,a){var i=this.findTargetInfo(e,a);return i===!0||i&&ht(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,i=Rx(t,e),n=0;nr[1]&&r.reverse(),r}function Rx(r,e){return cs(r,e,{includeMainTypes:T8})}var A8={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,i=r.gridModels,n=q(),o={},s={};!t&&!a&&!i||(A(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),A(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,v){(ht(t,h.getAxis("x").model)>=0||ht(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:kx.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:kx.geo})})}},Ex=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&a&&(i=a.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],kx={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform($i(r)),e}},Ec={lineX:it(Ox,0),lineY:it(Ox,1),rect:function(r,e,t,a){var i=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),n=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[bd([i[0],n[0]]),bd([i[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var i=[[1/0,-1/0],[1/0,-1/0]],n=G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function Ox(r,e,t,a){var i=t.getAxis(["x","y"][r]),n=bd(G([0,1],function(s){return e?i.coordToData(i.toLocalCoord(a[s]),!0):i.toGlobalCoord(i.dataToCoord(a[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var Nx={lineX:it(Vx,0),lineY:it(Vx,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,i){return[a[0]-t[0]*e[i][0],a[1]-t[1]*e[i][1]]})}};function Vx(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function M8(r,e){var t=Bx(r),a=Bx(e),i=[t[0]/a[0],t[1]/a[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Bx(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ry=C8,Td=A,D8=q2("toolbox-dataZoom_"),L8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i,n){this._brushController||(this._brushController=new vy(i.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),R8(t,a,this,n,i),P8(t,a)},e.prototype.onclick=function(t,a,i){I8[i].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Ry(Ey(this.model),n,{include:["grid"]});o.matchOutputRanges(a,n,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),m8(n,i),this._dispatchZoomAction(i);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,n),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=fn(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];Td(t,function(i,n){a.push(j(i))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(je),I8={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(_8(this.ecModel))}};function Ey(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function P8(r,e){r.setIconStatus("back",x8(e)>1?"emphasis":"normal")}function R8(r,e,t,a,i){var n=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(n=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Ry(Ey(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}EE("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),i=[],n=Ey(a),o=cs(r,n);Td(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Td(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:D8+u+h};v[f]=h,i.push(v)}return i});var E8=L8;function k8(r){r.registerComponentModel(QU),r.registerComponentView(e8),Nn("saveAsImage",a8),Nn("magicType",o8),Nn("dataView",y8),Nn("dataZoom",E8),Nn("restore",b8),ct(qU)}var O8=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(mt),N8=O8;function SL(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function xL(r){if(!!Ct.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+n+":-"+c+"px";var p=e+" solid "+i+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'
'}function W8(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,i="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,i+=Ct.transformSupported?","+ky+a:",left"+a+",top"+a),z8+":"+i}function zx(r,e,t){var a=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Ct.transformSupported)return t?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=Ct.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return t?"top:0;left:0;"+ky+":"+o+";":[["top",0],["left",0],[wL,o]]}function $8(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+i),A(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function U8(r,e,t){var a=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=IC(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&i&&a.push(W8(i,t)),n&&a.push("background-color:"+n),A(["width","color","radius"],function(c){var p="border-"+c,d=XT(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push($8(f)),h!=null&&a.push("padding:"+fo(h).join("px ")+"px"),a.join(";")+";"}function Gx(r,e,t,a,i){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&SI(r,o,document.body,a,i)}else{r[0]=a,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Y8=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ct.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;Gx(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Xe(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=B8(t,"position"),i=t.style;i.position!=="absolute"&&a!=="absolute"&&(i.position="relative");var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,i=a.style,n=this._styleCoord;a.innerHTML?i.cssText=G8+U8(e,!this._firstShow,this._longHide)+zx(n[0],n[1],!0)+("border-color:"+ji(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,i,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if($(n)&&a.get("trigger")==="item"&&!SL(a)&&(s=H8(a,i,n)),$(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,i=this._api;if(this._lastX!=null&&this._lastY!=null&&t.get("triggerOn")!=="none"){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,a,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,i,n){if(!(n.from===this.uid||Ct.node||!i.getDom())){var o=Wx(n,i);this._ticket="";var s=n.dataByCoordSys,l=eY(n,a,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=K8;f.x=n.x,f.y=n.y,f.update(),at(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,i,n))return;var h=sL(n,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(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},o))}},e.prototype.manuallyHideTip=function(t,a,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Wx(n,i))},e.prototype._manuallyAxisShowTip=function(t,a,i,n){var o=n.seriesIndex,s=n.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=Yo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,a){var i=t.target,n=this._tooltipModel;if(!!n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){this._lastDataByCoordSys=null;var s,l;zn(i,function(u){if(at(u).dataIndex!=null)return s=u,!0;if(at(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var i=t.get("showDelay");a=U(a,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(a,i):a()},e.prototype._showAxisTooltip=function(t,a){var i=this._ecModel,n=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Yo([a.tooltipOption],n),l=this._renderMode,u=[],f=ee("section",{blocks:[],noHeader:!0}),h=[],v=new Sv;A(t,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=aL(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=ee("section",{header:x,noHeader:!pr(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Bg(S.axis,{value:w}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",ji(D.color),l);var L=M0(C.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=Yo([C],n).get("valueFormatter");b.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=E0(f,v,l,p,i.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?` - -`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,i){var n=this._ecModel,o=at(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Yo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Sv;y.marker=m.makeTooltipMarker("item",ji(y.color),c);var _=M0(u.formatTooltip(f,!1,h)),S=d.get("order"),w=d.get("valueFormatter"),x=_.frag,b=x?E0(w?B({valueFormatter:w},x):x,m,c,S,n.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,b,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,i){var n=at(a),o=n.tooltipConfig,s=o.option||{};if($(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=Yo(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),p=Math.random()+"",d=new Sv;this._showOrMove(v,function(){var g=j(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,i,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if($(v)){var g=t.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ih(y.axisValue,c,g)),c=qT(c,i,!0)}else if(K(v)){var _=U(function(S,w){S===this._ticket&&(h.setContent(w,f,t,d,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=n,c=v(i,n,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,a,i,n){if(i==="axis"||z(a))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:n||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,i,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),K(a)&&(a=a([i,n],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))i=H(a[0],u),n=H(a[1],f);else if(J(a)){var d=a;d.width=h[0],d.height=h[1];var g=Jt(d,{width:u,height:f});i=g.x,n=g.y,v=null,c=null}else if($(a)&&l){var y=tY(a,p,h,t.get("borderWidth"));i=y[0],n=y[1]}else{var y=J8(i,n,o,u,f,v?null:20,c?null:20);i=y[0],n=y[1]}if(v&&(i-=$x(v)?h[0]/2:v==="right"?h[0]:0),c&&(n-=$x(c)?h[1]/2:c==="bottom"?h[1]:0),SL(t)){var y=j8(i,n,o,u,f);i=y[0],n=y[1]}o.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),n&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=n[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Ct.node||!a.getDom()||(Bs(this,"_updatePosition"),this._tooltipContent.dispose(),_d("itemTooltip",a))},e.type="tooltip",e}(Gt);function Yo(r,e,t){var a=e.ecModel,i;t?(i=new Rt(t,a,a),i=new Rt(e.option,i,a)):i=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Rt&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(i=new Rt(o,i,a)))}return i}function Wx(r,e){return r.dispatchAction||U(e.dispatchAction,e)}function J8(r,e,t,a,i,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>a?r-=l+n:r+=n),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function j8(r,e,t,a,i){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function tY(r,e,t,a){var i=t[0],n=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-i/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function $x(r){return r==="center"||r==="middle"}function eY(r,e,t){var a=qd(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=al(e,i,a.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=at(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var rY=Q8;function aY(r){ct(Sl),r.registerComponentModel(N8),r.registerComponentView(rY),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qt)}var iY=["rect","polygon","keep","clear"];function nY(r,e){var t=Pt(r?r.brush:[]);if(!!t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var i=r&&r.toolbox;z(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),oY(s),e&&!s.length&&s.push.apply(s,iY)}}function oY(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var Ux=A;function Yx(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Cd(r,e,t){var a={};return Ux(e,function(n){var o=a[n]=i();Ux(r[n],function(s,l){if(!!le.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new le(u),l==="opacity"&&(u=j(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new le(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function TL(r,e,t){var a;A(t,function(i){e.hasOwnProperty(i)&&Yx(e[i])&&(a=!0)}),a&&A(t,function(i){e.hasOwnProperty(i)&&Yx(e[i])?r[i]=j(e[i]):delete r[i]})}function sY(r,e,t,a,i,n){var o={};A(r,function(h){var v=le.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return Ag(t,s,h)}function u(h,v){GC(t,s,h,v)}n==null?t.each(f):t.each([n],f);function f(h,v){s=n==null?h:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(i,h),d=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=n[0]),n[1]e[1][1]&&(e[1][1]=n[1])}return e&&Qx(e)}};function Qx(r){return new vt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var dY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new vy(a.getZr())).on("brush",U(this._onBrush,this)).mount()},e.prototype.render=function(t,a,i,n){this.model=t,this._updateController(t,a,i,n)},e.prototype.updateTransform=function(t,a,i,n){CL(a),this._updateController(t,a,i,n)},e.prototype.updateVisual=function(t,a,i,n){this.updateTransform(t,a,i,n)},e.prototype.updateView=function(t,a,i,n){this._updateController(t,a,i,n)},e.prototype._updateController=function(t,a,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:j(i),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:j(i),$from:a})},e.type="brush",e}(Gt),gY=dY,yY="#ddd",mY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var i=this.option;!a&&TL(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:yY},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(a){return Jx(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Jx(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(mt);function Jx(r,e){return st({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Rt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var _Y=mY,SY=["rect","polygon","lineX","lineY","keep","clear"],xY=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i){var n,o,s;a.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,i){this.render(t,a,i)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),i={};return A(t.get("type",!0),function(n){a[n]&&(i[n]=a[n])}),i},e.prototype.onclick=function(t,a,i){var n=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:SY.slice(),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:t.getLocaleModel().get(["toolbox","brush","title"])};return a},e}(je),wY=xY;function bY(r){r.registerComponentView(gY),r.registerComponentModel(_Y),r.registerPreprocessor(nY),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,fY),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qt),Nn("brush",wY)}var TY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(mt),CY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ut(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Tt({style:Bt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new Tt({style:Bt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){lf(p,"_"+t.get("target"))}),d&&c.on("click",function(){lf(d,"_"+t.get("subtarget"))}),at(f).eventData=at(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),v&&n.add(c);var y=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Jt(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=n.getBoundingRect();var w=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new St({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});n.add(b)}},e.type="title",e}(Gt);function AY(r){r.registerComponentModel(TY),r.registerComponentView(CY)}var MY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],i=t.axisType,n=this._names=[],o;i==="category"?(o=[],A(a,function(u,f){var h=Qt(io(u),""),v;J(u)?(v=j(u),v.value=f):v=f,o.push(v),n.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new we([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={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:[]},e}(mt),jx=MY,AL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=ja(jx.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(jx);Yt(AL,xg.prototype);var DY=AL,LY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Gt),IY=LY,PY=function(r){k(e,r);function e(t,a,i,n){var o=r.call(this,t,a,i)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(wr),RY=PY,Oc=Math.PI,tw=bt(),EY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,i){if(this.model=t,this.api=i,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ee("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var i=t.get(["label","position"]),n=t.get("orient"),o=OY(t,a),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Oc/2},h=n==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Oc/180;var m,_,S,w=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),b=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,M=h;w==="left"||w==="bottom"?(x&&(m=[0,0],C+=g),b&&(_=[C,0],C+=g),T&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),b&&(_=[0,0],C+=g),T&&(S=[M-p,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:n,rotation:f[n],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=ir(),l=o.x,u=o.y+o.height;zr(s,s,[-l,-u]),nn(s,s,-Oc/2),zr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(i.getBoundingRect()),v=m(n.getBoundingRect()),c=[i.x,i.y],p=[n.x,n.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||$(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}i.setPosition(c),n.setPosition(p),i.rotation=n.rotation=t.rotation,y(i),y(n);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,T){S[b]+=x[b][T]-w[b][T]}},e.prototype._createAxis=function(t,a){var i=a.getData(),n=a.get("axisType"),o=kY(a,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new RY("value",o,t.axisExtent,n);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new rt;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,i,n){var o=i.getExtent();if(!!n.get(["lineStyle","show"])){var s=new ie({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ie({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=i.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:U(o._changeTimeline,o,u.value)},g=ew(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Wi(g);var y=at(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=n):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,i,n){var o=this,s=i.getLabelModel();if(!!s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new Tt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:U(o._changeTimeline,o,h),silent:!1,style:Bt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Bt(p),y.ensureState("progress").style=Bt(d),a.add(y),Wi(y),tw(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,i,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),h=n.get("inverse",!0);v(t.nextBtnPosition,"next",U(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",U(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",U(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(!!c){var y=mr(ut(n.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=NY(n,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Wi(_)}}},e.prototype._renderCurrentPointer=function(t,a,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=U(u._handlePointerDrag,u),h.ondragend=U(u._handlePointerDragend,u),rw(h,u._progressLine,s,i,n,!0)},onUpdate:function(h){rw(h,u._progressLine,s,i,n)}};this._currentPointer=ew(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var i=this._toAxisCoord(t)[0],n=this._axis,o=rr(n.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[n]=+o[n].toFixed(v)),[o,h]}var Nc={min:it(xu,"min"),max:it(xu,"max"),average:it(xu,"average"),median:it(xu,"median")};function Js(r,e){var t=r.getData(),a=r.coordinateSystem;if(e&&!UY(e)&&!z(e.coord)&&a){var i=a.dimensions,n=DL(e,t,a,r);if(e=j(e),e.type&&Nc[e.type]&&n.baseAxis&&n.valueAxis){var o=ht(i,n.baseAxis.dim),s=ht(i,n.valueAxis.dim),l=Nc[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis],f=0;f<2;f++)Nc[u[f]]&&(u[f]=Ny(t,t.mapDimension(i[f]),u[f]));e.coord=u}}return e}function DL(r,e,t,a){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,i.valueAxis=t.getAxis(YY(a,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=a.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function YY(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function js(r,e){return r&&r.containData&&e.coord&&!$Y(e)?r.containData(e.coord):!0}function LL(r,e){return r?function(t,a,i,n){var o=n<2?t.coord&&t.coord[n]:t.value;return Fa(o,e[n])}:function(t,a,i,n){return Fa(t.value,e[n])}}function Ny(r,e,t){if(t==="average"){var a=0,i=0;return r.each(e,function(n,o){isNaN(n)||(a+=n,i++)}),a/i}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Vc=bt(),ZY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=q()},e.prototype.render=function(t,a,i){var n=this,o=this.markerGroupMap;o.each(function(s){Vc(s).keep=!1}),a.eachSeries(function(s){var l=Qa.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,a,i)}),o.each(function(s){!Vc(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){Vc(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var i=this;A(t,function(n){var o=Qa.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?rT(l):eg(l))})}})},e.type="marker",e}(Gt),Vy=ZY;function iw(r,e,t){var a=e.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),o,s=H(n.get("x"),t.getWidth()),l=H(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,i));else if(a){var u=r.get(a.dimensions[0],i),f=r.get(a.dimensions[1],i);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var XY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=Qa.getMarkerModelFromSeries(n,"markPoint");o&&(iw(o.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new pl),h=qY(o,t,a);a.setData(h),iw(a.getData(),t,n),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(K(p)||K(d)||K(g)||K(y)){var _=a.getRawValue(v),S=a.getDataParams(v);K(p)&&(p=p(_,S)),K(d)&&(d=d(_,S)),K(g)&&(g=g(_,S)),K(y)&&(y=y(_,S))}var w=c.getModel("itemStyle").getItemStyle(),x=ul(l,"color");w.fill||(w.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:w})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){at(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(Vy);function qY(r,e,t){var a;r?a=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new we(a,t),n=G(t.get("data"),it(Js,e));r&&(n=It(n,it(js,r)));var o=LL(!!r,a);return i.initData(n,null,o),i}var KY=XY;function QY(r){r.registerComponentModel(WY),r.registerComponentView(KY),r.registerPreprocessor(function(e){Oy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var JY=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,i){return new e(t,a,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Qa),jY=JY,wu=bt(),t7=function(r,e,t,a){var i=r.getData(),n;if(z(a))n=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=ae(a.yAxis,a.xAxis);else{var u=DL(a,i,e,r);s=u.valueAxis;var f=Eg(i,u.valueDataDim);l=Ny(i,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=j(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&xt(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,n=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[Js(r,n[0]),Js(r,n[1]),B({},n[2])];return g[2].type=g[2].type||null,st(g[2],g[0]),st(g[2],g[1]),g};function kf(r){return!isNaN(r)&&!isFinite(r)}function nw(r,e,t,a){var i=1-r,n=a.dimensions[r];return kf(e[i])&&kf(t[i])&&e[r]===t[r]&&a.getAxis(n).containData(e[r])}function e7(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(nw(1,t,a,r)||nw(0,t,a,r)))return!0}return js(r,e[0])&&js(r,e[1])}function Bc(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),i.getWidth()),u=H(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,h=r.get(f[0],e),v=r.get(f[1],e);s=n.dataToPoint([h,v])}if(ln(n,"cartesian2d")){var c=n.getAxis("x"),p=n.getAxis("y"),f=n.dimensions;kf(r.get(f[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):kf(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var r7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=Qa.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=wu(o).from,u=wu(o).to;l.each(function(f){Bc(l,f,!0,n,i),Bc(u,f,!1,n,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new oy);this.group.add(f.group);var h=a7(o,t,a),v=h.from,c=h.to,p=h.line;wu(a).from=v,wu(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var w=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(p),h.line.eachItemGraphicEl(function(S,w){S.traverse(function(x){at(x).dataModel=a})});function _(S,w,x){var b=S.getItemModel(w);Bc(S,w,x,t,n);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=ul(l,"color")),S.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:ut(b.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ut(b.get("symbolRotate",!0),y[x?0:1]),symbolSize:ut(b.get("symbolSize"),g[x?0:1]),symbol:ut(b.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Vy);function a7(r,e,t){var a;r?a=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new we(a,t),n=new we(a,t),o=new we([],t),s=G(t.get("data"),it(t7,e,r,t));r&&(s=It(s,it(e7,r)));var l=LL(!!r,a);return i.initData(G(s,function(u){return u[0]}),null,l),n.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}var i7=r7;function n7(r){r.registerComponentModel(jY),r.registerComponentView(i7),r.registerPreprocessor(function(e){Oy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var o7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,i){return new e(t,a,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Qa),s7=o7,bu=bt(),l7=function(r,e,t,a){var i=Js(r,a[0]),n=Js(r,a[1]),o=i.coord,s=n.coord;o[0]=ae(o[0],-1/0),o[1]=ae(o[1],-1/0),s[0]=ae(s[0],1/0),s[1]=ae(s[1],1/0);var l=Bd([{},i,n]);return l.coord=[i.coord,n.coord],l.x0=i.x,l.y0=i.y,l.x1=n.x,l.y1=n.y,l};function Of(r){return!isNaN(r)&&!isFinite(r)}function ow(r,e,t,a){var i=1-r;return Of(e[i])&&Of(t[i])}function u7(r,e){var t=e.coord[0],a=e.coord[1];return ln(r,"cartesian2d")&&t&&a&&(ow(1,t,a)||ow(0,t,a))?!0:js(r,{coord:t,x:e.x0,y:e.y0})||js(r,{coord:a,x:e.x1,y:e.y1})}function sw(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),i.getWidth()),u=H(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(t,e));else{var f=r.get(t[0],e),h=r.get(t[1],e),v=[f,h];n.clampData&&n.clampData(v,v),s=n.dataToPoint(v,!0)}if(ln(n,"cartesian2d")){var c=n.getAxis("x"),p=n.getAxis("y"),f=r.get(t[0],e),h=r.get(t[1],e);Of(f)?s[0]=c.toGlobalCoord(c.getExtent()[t[0]==="x0"?0:1]):Of(h)&&(s[1]=p.toGlobalCoord(p.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var lw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],f7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=Qa.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(lw,function(h){return sw(s,l,h,n,i)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new rt});this.group.add(f.group),this.markKeep(f);var h=h7(o,t,a);a.setData(h),h.each(function(v){var c=G(lw,function(T){return sw(h,v,T,t,n)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];rr(m),rr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),w=!S;h.setItemLayout(v,{points:c,allClipped:w});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),b=ul(l,"color");x.fill||(x.fill=b,$(x.fill)&&(x.fill=Xu(x.fill,.4))),x.stroke||(x.stroke=b),h.setItemVisual(v,"style",x)}),h.diff(bu(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Re({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=bu(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?wt(p,{shape:{points:d.points}},a,v):p=new Re({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=bu(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ye(v,ne(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:$(d.fill)?Xu(d.fill,1):"#000"}),ue(v,p),$t(v,null,null,p.get(["emphasis","disabled"])),at(v).dataModel=a}),bu(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Vy);function h7(r,e,t){var a,i,n=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},h),{name:u,ordinalMeta:null})});i=G(n,function(u,f){return{name:u,type:o[f%2].type}}),a=new we(i,t)}else i=[{name:"value",type:"float"}],a=new we(i,t);var s=G(t.get("data"),it(l7,e,r,t));r&&(s=It(s,it(u7,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return Fa(c,i[v])}:function(u,f,h,v){return Fa(u.value,i[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}var v7=f7;function c7(r){r.registerComponentModel(s7),r.registerComponentView(v7),r.registerPreprocessor(function(e){Oy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var p7=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},d7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,i=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),z(a)&&A(a,function(n,o){$(n)&&(n={type:n}),a[o]=st(n,p7(i,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,i=0;i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(mt),Md=d7,Dn=it,Dd=A,Tu=rt,g7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Tu),this.group.add(this._selectorGroup=new Tu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,i,l,s,u);var f=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=t.get("padding"),c=Jt(f,h,v),p=this.layoutInner(t,o,c,n,l,u),d=Jt(Q({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yL(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,i,n,o,s,l){var u=this.getContentGroup(),f=q(),h=a.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Dd(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===` -`)){var g=new Tu;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,w,S,h);x.on("click",Dn(uw,d,null,n,v)).on("mouseover",Dn(Ld,y.name,null,n,v)).on("mouseout",Dn(Id,y.name,null,n,v)),f.set(d,!0)}else i.eachRawSeries(function(b){if(!f.get(d)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=ze(M.fill);L&&L[3]===0&&(L[3]=.2,M=B(B({},M),{fill:ra(L,"rgba")}));var I=this._createItem(b,d,p,c,a,t,{},M,D,h);I.on("click",Dn(uw,null,d,n,v)).on("mouseover",Dn(Ld,null,d,n,v)).on("mouseout",Dn(Id,null,d,n,v)),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},e.prototype._createSelector=function(t,a,i,n,o){var s=this.getSelectorGroup();Dd(t,function(u){var f=u.type,h=new Tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);ye(h,{normal:v,emphasis:c},{defaultText:u.title}),Wi(h)})},e.prototype._createItem=function(t,a,i,n,o,s,l,u,f,h){var v=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(a),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon");f=m||f||"roundRect";var _=y7(f,n,l,u,v,d),S=new Tu,w=n.getModel("textStyle");if(K(t.getLegendIcon)&&(!m||m==="inherit"))S.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var x=m==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;S.add(m7({itemWidth:c,itemHeight:p,icon:f,iconRotate:x,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var b=s==="left"?c+5:-5,T=s,C=o.get("formatter"),M=a;$(C)&&C?M=C.replace("{name}",a!=null?a:""):K(C)&&(M=C(a));var D=n.get("inactiveColor");S.add(new Tt({style:Bt(w,{text:M,x:b,y:p/2,fill:d?w.getTextColor():D,align:T,verticalAlign:"middle"})}));var L=new St({shape:S.getBoundingRect(),invisible:!0}),I=n.getModel("tooltip");return I.get("show")&&so({el:L,componentModel:o,itemName:a,itemTooltipOption:I.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!h,this.getContentGroup().add(S),Wi(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(t,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ui(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ui("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gt);function y7(r,e,t,a,i,n){function o(p,d){p.lineWidth==="auto"&&(p.lineWidth=d.lineWidth>0?2:0),Dd(p,function(g,y){p[y]==="inherit"&&(p[y]=d[y])})}var s=e.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=a.decal,l.fill==="inherit"&&(l.fill=a[i]),l.stroke==="inherit"&&(l.stroke=a[u]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?a:t).opacity),o(l,a);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(o(h,t),l.fill==="auto"&&(l.fill=a.fill),l.stroke==="auto"&&(l.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!n){var v=e.get("inactiveBorderWidth"),c=l[u];l.lineWidth=v==="auto"?a.lineWidth>0&&c?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function m7(r){var e=r.icon||"roundRect",t=Kt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function uw(r,e,t,a){Id(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Ld(r,e,t,a)}function IL(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,i=e.length;ai[o],g=[-c.x,-c.y];a||(g[n]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=ut(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[n]+=i[o]-p[o]:y[n]+=p[o]+_}m[1-n]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=d?i[o]:c[o],w[s]=Math.max(c[s],p[s]),w[l]=Math.min(0,p[l]+m[1-n]),h.__rectSize=i[o],d){var x={x:0,y:0};x[o]=Math.max(i[o]-p[o]-_,0),x[s]=w[s],h.setClipPath(new St({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&wt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),w},e.prototype._pageGo=function(t,a,i){var n=this._getPageInfo(a)[t];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var n=i.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;n&&o&&n.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=zc[o],l=Gc[o],u=this._findTargetItemIndex(a),f=i.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+n||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(a=s)}),a!=null?a:n},e.type="legend.scroll",e}(PL),T7=b7;function C7(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(a)})})}function A7(r){ct(RL),r.registerComponentModel(w7),r.registerComponentView(T7),C7(r)}function M7(r){ct(RL),ct(A7)}var D7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ja(Qs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Qs),L7=D7,By=bt();function I7(r,e,t){By(r).coordSysRecordMap.each(function(a){var i=a.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function P7(r,e){for(var t=By(r).coordSysRecordMap,a=t.keys(),i=0;ia[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function N7(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=By(t),i=a.coordSysRecordMap||(a.coordSysRecordMap=q());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=pL(n);A(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,R7(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){EL(i,n);return}var f=O7(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),yo(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var V7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),I7(i,t,{pan:U(Fc.pan,this),zoom:U(Fc.zoom,this),scrollMove:U(Fc.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){P7(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ly),Fc={zoom:function(r,e,t,a){var i=this.range,n=i.slice(),o=r.axisModels[0];if(!!o){var s=Hc[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/a.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(fn(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:vw(function(r,e,t,a,i,n){var o=Hc[a]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:vw(function(r,e,t,a,i,n){var o=Hc[a]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function vw(r){return function(e,t,a,i){var n=this.range,o=n.slice(),s=e.axisModels[0];if(!!s){var l=r(o,s,e,t,a,i);if(fn(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Hc={grid:function(r,e,t,a,i){var n=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,a,i){var n=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,a,i){var n=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},B7=V7;function kL(r){Iy(r),r.registerComponentModel(L7),r.registerComponentView(B7),N7(r)}var z7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ja(Qs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Qs),G7=z7,qo=St,cw=7,F7=1,Wc=30,H7=7,Ko="horizontal",pw="vertical",W7=5,$7=["line","bar","candlestick","scatter"],U7={easing:"cubicOut",duration:100,delay:0},Y7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},e.prototype.render=function(t,a,i,n){if(r.prototype.render.apply(this,arguments),yo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bs(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,i=t.get("brushSelect"),n=i?H7:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Ko?{right:s.width-o.x-o.width,top:s.height-Wc-cw-n,width:o.width,height:Wc}:{right:cw,top:o.y,width:Wc,height:o.height},u=ho(t.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===pw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ko&&!o?{scaleY:l?1:-1,scaleX:1}:i===Ko&&o?{scaleY:l?1:-1,scaleX:-1}:i===pw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new qo({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new qo({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,i=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim?n.getShadowDim():t.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==i[0]||a[1]!==i[1]){var f=o.getDataExtent(s),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,a[1]],c=[0,a[0]],p=[[a[0],0],[0,0]],d=[],g=c[1]/(o.count()-1),y=0,m=Math.round(o.count()/a[0]),_;o.each([s],function(T,C){if(m>0&&C%m){y+=g;return}var M=T==null||isNaN(T)||T==="",D=M?0:Lt(T,f,v,!0);M&&!_&&C?(p.push([p[p.length-1][0],0]),d.push([d[d.length-1][0],0])):!M&&_&&(p.push([y,0]),d.push([y,0])),p.push([y,D]),d.push([y,D]),y+=g,_=M}),l=this._shadowPolygonPts=p,u=this._shadowPolylinePts=d}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];var S=this.dataZoomModel;function w(T){var C=S.getModel(T?"selectedDataBackground":"dataBackground"),M=new rt,D=new Re({shape:{points:l},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ee({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(D),M.add(L),M}for(var x=0;x<3;x++){var b=w(x===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!i&&!(a!==!0&&ht($7,u.get("type"))<0)){var f=n.getComponent(Ba(o),s).axis,h=Z7(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,i=a.handles=[null,null],n=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new qo({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new qo({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:F7,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!hf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Kt(S,-1,0,2,2,null,!0);w.attr({cursor:dw(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=H(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Wi(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(i[_]=w);var C=l.getModel("textStyle");t.add(n[_]=new Tt({silent:!0,invisible:!0,style:Bt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=H(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new St({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=Kt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new St({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:dw(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Lt(t[0],[0,100],a,!0),Lt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];fn(a,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?Lt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Lt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=rr([Lt(n[0],o,l,!0),Lt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,i=this._handleEnds,n=rr(i.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;fa[0]||i[1]<0||i[1]>a[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,i=t.offsetY;this._brushStart=new ot(a,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var i=a.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=rr([Lt(i.x,o,s,!0),Lt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(oa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new qo({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?U7:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=pL(this.dataZoomModel).infoList;if(!t&&a.length){var i=a[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Ly);function Z7(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function dw(r){return r==="vertical"?"ns-resize":"ew-resize"}var X7=Y7;function OL(r){r.registerComponentModel(G7),r.registerComponentView(X7),Iy(r)}function q7(r){ct(kL),ct(OL)}var K7={get:function(r,e,t){var a=j((Q7[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},Q7={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]}},NL=K7,gw=le.mapVisual,J7=le.eachVisual,j7=z,yw=A,t9=rr,e9=Lt,r9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,a){var i=this.option;!a&&TL(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=U(t,this),this.controllerVisuals=Cd(this.option.controller,a,t),this.targetVisuals=Cd(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,n){a.push(n)}):a=Pt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(a,n)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(i){i===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+f[1]:t[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=t9([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var i=t.dimensions,n=i.length-1;n>=0;n--){var o=i[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,i={inRange:a.inRange,outOfRange:a.outOfRange},n=a.target||(a.target={}),o=a.controller||(a.controller={});st(n,i),st(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(h){j7(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},yw(p,function(g,y){if(!!le.isValidType(y)){var m=NL.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";yw(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&j(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&j(c)||(s?m[0]:[m[0],m[0]])),_.symbol=gw(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;J7(S,function(x){x>w&&(w=x)}),_.symbolSize=gw(S,function(x){return e9(x,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,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,textStyle:{color:"#333"}},e}(mt),Nf=r9,mw=[20,140],a9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=mw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=mw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=rr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=i[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),a.push({seriesId:i.id,dataIndex:n})},this),a},e.prototype.getVisualMeta=function(t){var a=_w(this,"outOfRange",this.getExtent()),i=_w(this,"inRange",this.option.range.slice()),n=[];function o(c,p){n.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=i.length,f=a.length;lt[1])break;n.push({color:this.getControllerVisual(l,"color",a),offset:s/i})}return n.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),n},e.prototype._createBarPoints=function(t,a){var i=this.visualMapModel.itemSize;return[[i[0]-a[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,i=this.visualMapModel.get("inverse");return new rt(a==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(!!this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent();o9([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=Lr(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=yr(i.handleLabelPoints[f],$i(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(!!h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Lr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=yr(f.indicatorLabelPoint,$i(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(b,C),_.animateTo(T,C)}else h.attr(b),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||bw(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=J2(v,c);this._dispatchHighDown("downplay",$u(p[0],i)),this._dispatchHighDown("highlight",$u(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a=t.target,i=this.visualMapModel;if(!(!a||at(a).dataIndex==null)){var n=at(a),o=this.ecModel.getSeriesByIndex(n.seriesIndex);if(!!i.isTargetSeries(o)){var s=o.getData(n.dataType),l=s.getStore().get(i.getDataDimensionIndex(s),n.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var i=0;i=0&&(n.dimension=o,a.push(n))}}),r.getData().setVisual("visualMeta",a)}}];function d9(r,e,t,a){for(var i=e.targetVisuals[a],n=le.prepareVisualTypes(i),o={color:ul(r.getData(),"color")},s=0,l=n.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(v9,c9),A(p9,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(g9))}function GL(r){r.registerComponentModel(i9),r.registerComponentView(h9),zL(r)}var y9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],m9[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=j(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=j(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},i=le.listVisualTypes(),n=this.isCategory();A(t.pieces,function(s){A(i,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=NL.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var i=this.option,n=this._pieceList,o=(a?i:t).selected||{};if(i.selected=o,A(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;A(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=j(t)},e.prototype.getValueState=function(t){var a=le.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=le.findPieceIndex(l,i);f===t&&o.push(u)},this),a.push({seriesId:n.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var i=t.interval||[];a=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(f,h){var v=n.getRepresentValue({interval:f});h||(h=n.getValueState(v));var c=t(v,h);f[0]===-1/0?i[0]=c:f[1]===1/0?i[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ja(Nf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Nf),m9={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var n=(a[1]-a[0])/i;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function Mw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var _9=y9,S9=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,i=a.get("textGap"),n=a.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=ae(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(c){var p=c.piece,d=new rt;d.onclick=U(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new Tt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),Ui(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var i=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:$u(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return BL(t,this.api,t.itemSize);var i=a.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,a,i,n,o){if(!!a){var s=new rt,l=this.visualMapModel.textStyleModel;s.add(new Tt({style:Bt(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?a.reverse():i&&(i=i.slice().reverse()),{viewPieceList:a,endsText:i}},e.prototype._createItemSymbol=function(t,a,i){t.add(Kt(this.getControllerVisual(a,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,i=a.option,n=j(i.selected),o=a.getSelectedMapKey(t);i.selectedMode==="single"?(n[o]=!0,A(n,function(s,l){n[l]=l===o})):n[o]=!n[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})},e.type="visualMap.piecewise",e}(VL),x9=S9;function FL(r){r.registerComponentModel(_9),r.registerComponentView(x9),zL(r)}function w9(r){ct(GL),ct(FL)}var b9={label:{enabled:!0},decal:{show:!1}},Dw=bt(),T9={};function C9(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=j(b9);st(a.label,r.getLocaleModel().get("aria"),!1),st(t.option,a,!1),i(),n();function i(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=q();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),Dw(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Ep(v.ecModel,v.name,T9,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=Dw(v).scope;c.each(function(w){var x=c.getRawIndex(w);d[x]=w});var y=p.count();p.each(function(w){var x=d[w],b=p.getName(w)||w+"",T=Ep(v.ecModel,b,g,y),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,T))})}function S(w,x){var b=w?B(B({},x),w):x;return b.dirty=!0,b}})}}function n(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Q(f.option,u),!!f.get("enabled")){var h=e.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?f.get(["series","multiple",L]):f.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>c){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:c})}else M+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},D9=function(){function r(e){var t=this._condVal=$(e)?new RegExp(e):hI(e)?e:null;if(t==null){var a="";Mt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return $(t)?this._condVal.test(e):xt(t)?this._condVal.test(e+""):!1},r}(),L9=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),I9=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(i),i=[I,P]}function f(I,P,R,E){Hn(I,R)&&Hn(P,E)||i.push(I,P,R,E,R,E)}function h(I,P,R,E,N,O){var V=Math.abs(P-I),F=Math.tan(V/4)*4/3,W=PT:D2&&a.push(i),a}function Rd(r,e,t,a,i,n,o,s,l,u){if(Hn(r,t)&&Hn(e,a)&&Hn(i,o)&&Hn(n,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=i-o,m=n-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var C=[],M=[];Ua(r,t,i,o,.5,C),Ua(e,a,n,s,.5,M),Rd(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),Rd(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function $9(r,e){var t=Pd(r),a=[];e=e||1;for(var i=0;i0)for(var u=0;uMath.abs(u),h=WL([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;ci,o=WL([a,i],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",h=r[s]/o.length,v=0;v1?null:new ot(d*l+r,d*u+e)}function Z9(r,e,t){var a=new ot;ot.sub(a,t,e),a.normalize();var i=new ot;ot.sub(i,r,e);var n=i.dot(a);return n}function In(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function X9(r,e,t){for(var a=r.length,i=[],n=0;no?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),X9(e,u,f)}function Vf(r,e,t,a){if(t===1)a.push(e);else{var i=Math.floor(t/2),n=r(e);Vf(r,n[0],i,a),Vf(r,n[1],t-i,a)}return a}function q9(r,e){for(var t=[],a=0;a0)for(var w=a/t,x=-a/2;x<=a/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Gf(r){var e=1/0,t=1/0,a=-1/0,i=-1/0,n=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),i=Math.max(h,i),[f,h]}),o=G(n,function(s,l){return{cp:s,z:iZ(s[0],s[1],e,t,a,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function YL(r){return J9(r.path,r.count)}function Ed(){return{fromIndividuals:[],toIndividuals:[],count:0}}function nZ(r,e,t){var a=[];function i(w){for(var x=0;x=0;i--)if(!t[i].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[i].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var sZ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Vw(r)&&(u=r,f=e),Vw(e)&&(u=e,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,C=m?b:x[0];if(Bf(T))h({many:[T],one:C},!0,_,S,!0);else{var M=s?Q({delay:s(_,S)},l):l;Gy(T,C,M),n(T,C,T,C,M)}}else for(var D=Q({dividePath:sZ[t],individualDelay:s&&function(N,O,V,F){return s(N+_,S)}},l),L=m?nZ(x,b,D):oZ(b,x,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;Ee.length,c=u?Bw(f,u):Bw(v?e:r,[v?r:e]),p=0,d=0;dZL))for(var i=a.getIndices(),n=uZ(a),o=0;o0&&S.group.traverse(function(x){x instanceof dt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function Gw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function Fw(r){return z(r)?r.sort().join(","):r}function Da(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function vZ(r,e){var t=q(),a=q(),i=q();return A(r.oldSeries,function(n,o){var s=r.oldData[o],l=Gw(n),u=Fw(l);a.set(u,s),z(l)&&A(l,function(f){i.set(f,{data:s,key:u})})}),A(e.updatedSeries,function(n){if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var o=n.getData(),s=Gw(n),l=Fw(s),u=a.get(l);if(u)t.set(l,{oldSeries:[{divide:Da(u),data:u}],newSeries:[{divide:Da(o),data:o}]});else if(z(s)){var f=[];A(s,function(c){var p=a.get(c);p&&f.push({divide:Da(p),data:p})}),f.length&&t.set(l,{oldSeries:f,newSeries:[{data:o,divide:Da(o)}]})}else{var h=i.get(s);if(h){var v=t.get(h.key);v||(v={oldSeries:[{data:h.data,divide:Da(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({data:o,divide:Da(o)})}}}}),t}function Hw(r,e){for(var t=0;t=0&&i.push({data:e.oldData[s],divide:Da(e.oldData[s]),dim:o.dimension})}),A(Pt(r.to),function(o){var s=Hw(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({data:l,divide:Da(l),dim:o.dimension})}}),i.length>0&&n.length>0&&XL(i,n,a)}function pZ(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Pt(a.seriesTransition),function(i){A(Pt(i.to),function(n){for(var o=a.updatedSeries,s=0;su in i?q(i,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[u]=s,C=(i,u)=>{for(var s in u||(u={}))$.call(u,s)&&w(i,s,u[s]);if(h)for(var s of h(u))j.call(u,s)&&w(i,s,u[s]);return i},D=(i,u)=>T(i,I(u));import{a as H,aB as X,j as y,a3 as Y,ag as Z,m as G,R as J,S as t,a2 as p,o as K,Z as e,u as o,e as m,T as L,U as P,Y as z,X as b,l as Q}from"./vue.1654291592072.js";import{e as W,t as ee,a as te}from"./edit.16542915920722.js";import{O as le}from"./OrgModal.1654291592072.js";import{s as oe}from"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ae=m("div",{style:{"line-height":"32px"}},"\u90E8\u95E8\u4FE1\u606F",-1),ue=b("\u4FDD \u5B58"),ne=b("\u590D \u5236"),se=b("\u5173 \u95ED"),de={style:{"margin-top":"8px","margin-bottom":"8px"}},pe={class:"zinput"},re={class:"zinput"},ie={class:"zinput"},me={class:"zinput"},_e={class:"zinput"},fe={class:"zinput",style:{height:"auto"}},ce={class:"zinput"},ve={class:"zinput"},Fe={name:"SysOrgDeptEdit"},Ae=H(D(C({},Fe),{setup(i){const u=X(),s=y(),{proxy:g}=Q(),E=y("tab1"),f=Y({url:"/sys/org/dept",params:{path:"",query:{}},form:{avtag:!0,type:2}}),{form:l}=Z(f);G(async()=>{var d,c;f.params=u;let r=(d=f.params.query)==null?void 0:d.pid,a=(c=f.params.query)==null?void 0:c.pname;r&&(l.value.parent={id:r,name:a},l.value.pname=a,l.value.pid=r),await W({state:f,route:u}),l.value.parent&&(l.value.pname=l.value.parent.name)});const V=y(),B=()=>{V.value.openModal({orgType:3})},U=r=>{r.orgs&&r.orgs.length>0&&(l.value.parent={id:r.orgs[0].id,name:r.orgs[0].name},l.value.pname=r.orgs[0].name,l.value.pid=r.orgs[0].id)};return(r,a)=>{const d=p("el-col"),c=p("el-button"),v=p("el-row"),F=p("el-input"),_=p("el-form-item"),x=p("el-option"),k=p("el-select"),M=p("el-input-number"),R=p("el-switch"),A=p("el-tab-pane"),N=p("el-tabs"),O=p("el-form"),S=p("el-card");return K(),J(S,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(v,null,{default:t(()=>[e(d,{span:10},{default:t(()=>[ae]),_:1}),e(d,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(c,{type:"success",onClick:a[0]||(a[0]=n=>o(ee)({formRef:s.value,state:f,proxy:o(g),route:o(u)})),plain:""},{default:t(()=>[ue]),_:1}),e(c,{type:"info",plain:""},{default:t(()=>[ne]),_:1}),e(c,{type:"info",onClick:a[1]||(a[1]=n=>o(te)({proxy:o(g),route:o(u)})),plain:""},{default:t(()=>[se]),_:1})]),_:1})]),_:1})]),default:t(()=>[m("div",de,[e(O,{ref_key:"formRef",ref:s,class:"zform",model:o(l),"label-width":"140px"},{default:t(()=>[e(N,{type:"card",modelValue:E.value,"onUpdate:modelValue":a[8]||(a[8]=n=>E.value=n)},{default:t(()=>[e(A,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(v,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(_,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[m("div",pe,[e(F,{modelValue:o(l).name,"onUpdate:modelValue":a[2]||(a[2]=n=>o(l).name=n)},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(_,{label:"\u4E0A\u7EA7\u90E8\u95E8\uFF1A"},{default:t(()=>[m("div",re,[e(F,{modelValue:o(l).pname,"onUpdate:modelValue":a[3]||(a[3]=n=>o(l).pname=n),onClick:B,readonly:"","suffix-icon":o(oe)},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1})]),_:1}),e(v,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(_,{label:"\u90E8\u95E8\u7C7B\u578B\uFF1A"},{default:t(()=>[m("div",ie,[e(k,{modelValue:o(l).type,"onUpdate:modelValue":a[4]||(a[4]=n=>o(l).type=n),style:{width:"100%"}},{default:t(()=>[e(x,{value:1,label:"\u673A\u6784"}),e(x,{value:2,label:"\u90E8\u95E8"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(_,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[m("div",me,[e(M,{modelValue:o(l).ornum,"onUpdate:modelValue":a[5]||(a[5]=n=>o(l).ornum=n),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(_,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[m("div",_e,[e(R,{modelValue:o(l).avtag,"onUpdate:modelValue":a[6]||(a[6]=n=>o(l).avtag=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(A,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(v,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(_,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[m("div",fe,[e(F,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:o(l).notes,"onUpdate:modelValue":a[7]||(a[7]=n=>o(l).notes=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),L(e(v,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(_,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[m("div",ce,z(o(l).crtim),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(_,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[m("div",ve,z(o(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[P,o(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(le,{ref_key:"orgModal",ref:V,onClose:U},null,512)]),_:1})}}}));export{Ae as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207210.js b/vboot-web/src/main/resources/static/assets/edit.165429159207210.js deleted file mode 100644 index 857ab16..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207210.js +++ /dev/null @@ -1 +0,0 @@ -var Q=Object.defineProperty,W=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var R=(_,n,p)=>n in _?Q(_,n,{enumerable:!0,configurable:!0,writable:!0,value:p}):_[n]=p,M=(_,n)=>{for(var p in n||(n={}))te.call(n,p)&&R(_,p,n[p]);if(N)for(var p of N(n))le.call(n,p)&&R(_,p,n[p]);return _},U=(_,n)=>W(_,ee(n));import{a as oe,aB as ae,j as g,a3 as se,ag as ue,m as ne,B as de,R as S,S as t,a2 as r,o as x,Z as e,u as a,e as i,b as re,a7 as ie,F as pe,J as _e,T as me,U as ce,Y as y,X as h,l as fe,ap as ve}from"./vue.1654291592072.js";import{a as Fe,t as ge}from"./edit.16542915920722.js";import{O as ye}from"./OrgModal.1654291592072.js";import{g as V}from"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const he=i("div",{style:{"line-height":"32px"}},"\u89D2\u8272\u4FE1\u606F",-1),be=h("\u4FDD \u5B58"),Ae=h("\u5173 \u95ED"),xe={style:{"margin-top":"8px","margin-bottom":"8px"}},Ve={class:"zinput"},we={class:"zinput"},Ee={class:"zinput",style:{height:"auto"}},Ce={class:"zinput"},De={class:"zinput"},ke={class:"zinput",style:{height:"auto"}},Be={class:"zinput"},ze={class:"zinput"},Ne={class:"zinput"},Re={class:"zinput"},Me={style:{"margin-bottom":"10px"}},Ue=h("\u5C55 \u5F00"),Se=h("\u6298 \u53E0"),qe={style:{border:"1px solid #eee"}},Oe={name:"SysPortalRoleEdit"},Le=oe(U(M({},Oe),{setup(_){const n=ae(),p=g(),{proxy:w}=fe(),E=g("tab1"),f=se({url:"/sys/portal/role",params:{path:"",query:""},form:{avtag:!0,menus:[]},treeData:[],portals:[]}),{form:l,treeData:C,portals:D}=ue(f);ne(async()=>{var o;await q(),f.params=n;let s=(o=f.params.query)==null?void 0:o.id;s&&(f.form=await V({url:f.url+"/one/"+s,method:"get"}),await B())});const q=async()=>{D.value=await V({url:"/sys/portal/main/list",method:"get"})},O=async()=>{await B()},I=()=>{for(let s=0;s{for(let s=0;s{const s=c.value.getCheckedNodes(),o=[];for(const d of s)o.push({id:d.id,name:d.name});l.value.menus=o,await ge({formRef:p.value,state:f,proxy:w,route:n})},k=g(),H=()=>{k.value.openModal({orgType:10,selectMode:2,orgs:ve(l.value.orgs)})},J=s=>{l.value.orgs=s.orgs},b=de(()=>{let s="";if(l.value.orgs&&l.value.orgs.length>0)for(const o of l.value.orgs)s+=o.name+"\uFF1B";return s});async function B(){C.value=await V({url:"/sys/portal/menu/tree?porid="+l.value.porid,method:"get"});const s=[];for(const o of l.value.menus)s.push(o.id);c.value.setCheckedKeys(s)}return(s,o)=>{const d=r("el-col"),F=r("el-button"),v=r("el-row"),A=r("el-input"),m=r("el-form-item"),K=r("el-option"),L=r("el-select"),P=r("el-input-number"),X=r("el-switch"),z=r("el-tab-pane"),Y=r("el-tree"),Z=r("el-tabs"),$=r("el-form"),G=r("el-card");return x(),S(G,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(v,null,{default:t(()=>[e(d,{span:10},{default:t(()=>[he]),_:1}),e(d,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(F,{type:"success",onClick:j,plain:""},{default:t(()=>[be]),_:1}),e(F,{type:"info",onClick:o[0]||(o[0]=u=>a(Fe)({proxy:a(w),route:a(n)})),plain:""},{default:t(()=>[Ae]),_:1})]),_:1})]),_:1})]),default:t(()=>[i("div",xe,[e($,{ref_key:"formRef",ref:p,class:"zform",model:a(l),"label-width":"140px"},{default:t(()=>[e(Z,{type:"card",modelValue:E.value,"onUpdate:modelValue":o[7]||(o[7]=u=>E.value=u)},{default:t(()=>[e(z,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(v,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(m,{label:"\u89D2\u8272\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",Ve,[e(A,{modelValue:a(l).name,"onUpdate:modelValue":o[1]||(o[1]=u=>a(l).name=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(m,{label:"\u6240\u5C5E\u95E8\u6237\uFF1A",prop:"porid",rules:[{required:!0,message:"\u95E8\u6237\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",we,[e(L,{modelValue:a(l).porid,"onUpdate:modelValue":o[2]||(o[2]=u=>a(l).porid=u),placeholder:"\u8BF7\u9009\u62E9\u95E8\u6237",onChange:O,style:{width:"100%"}},{default:t(()=>[(x(!0),re(pe,null,ie(a(D),u=>(x(),S(K,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(v,null,{default:t(()=>[e(d,{span:24},{default:t(()=>[e(m,{label:"\u6307\u6D3E\u7528\u6237\uFF1A"},{default:t(()=>[i("div",Ee,[e(A,{type:"textarea",rows:4,modelValue:a(b),"onUpdate:modelValue":o[3]||(o[3]=u=>_e(b)?b.value=u:null),readonly:"",onClick:H},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(v,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(m,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[i("div",Ce,[e(P,{modelValue:a(l).ornum,"onUpdate:modelValue":o[4]||(o[4]=u=>a(l).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(m,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",De,[e(X,{modelValue:a(l).avtag,"onUpdate:modelValue":o[5]||(o[5]=u=>a(l).avtag=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(v,null,{default:t(()=>[e(d,{span:24},{default:t(()=>[e(m,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",ke,[e(A,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(l).notes,"onUpdate:modelValue":o[6]||(o[6]=u=>a(l).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),me(e(v,null,{default:t(()=>[e(d,{span:6},{default:t(()=>[e(m,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i("div",Be,y(a(l).crman?a(l).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(m,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",ze,y(a(l).crtim),1)]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(m,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i("div",Ne,y(a(l).upman?a(l).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(m,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",Re,y(a(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[ce,a(l).crtim]])]),_:1}),e(z,{label:"\u83DC\u5355\u5206\u914D",name:"tab3"},{default:t(()=>[i("div",Me,[e(F,{onClick:I,plain:""},{default:t(()=>[Ue]),_:1}),e(F,{onClick:T,plain:""},{default:t(()=>[Se]),_:1})]),i("div",qe,[e(Y,{ref_key:"treeRef",ref:c,data:a(C),"show-checkbox":"","node-key":"id",props:{children:"children",label:"name"}},null,8,["data"])])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(ye,{ref_key:"orgModal",ref:k,onClose:J},null,512)]),_:1})}}}));export{Le as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207211.js b/vboot-web/src/main/resources/static/assets/edit.165429159207211.js deleted file mode 100644 index ca0d730..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207211.js +++ /dev/null @@ -1 +0,0 @@ -var q=Object.defineProperty,O=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var g=(i,n,p)=>n in i?q(i,n,{enumerable:!0,configurable:!0,writable:!0,value:p}):i[n]=p,B=(i,n)=>{for(var p in n||(n={}))I.call(n,p)&&g(i,p,n[p]);if(E)for(var p of E(n))P.call(n,p)&&g(i,p,n[p]);return i},x=(i,n)=>O(i,j(n));import{a as T,aB as $,j as h,a3 as G,ag as H,m as J,R as X,S as l,a2 as d,o as Y,Z as e,u as t,e as _,T as Z,U as K,Y as w,X as F,l as L}from"./vue.1654291592072.js";import{e as Q,t as W,a as ee}from"./edit.16542915920722.js";import{O as le}from"./OrgModal.1654291592072.js";import"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const te=_("div",{style:{"line-height":"32px"}},"\u5B9A\u65F6\u4EFB\u52A1\u4FE1\u606F",-1),ue=F("\u4FDD \u5B58"),oe=F("\u5173 \u95ED"),ae={style:{"margin-top":"8px","margin-bottom":"8px"}},ne={class:"zinput"},se={class:"zinput"},de={class:"zinput"},_e=F("Run"),pe=F("Get"),re=F("Post"),ie=F("Put"),me=F("Delete"),fe={class:"zinput"},Fe={class:"zinput"},ce={class:"zinput"},be={class:"zinput"},Ve={class:"zinput",style:{height:"auto"}},ve={class:"zinput"},ye={class:"zinput"},Ae={class:"zinput",style:{height:"auto"}},Ce={class:"zinput"},Ee={class:"zinput"},ge={name:"SysJobMain"},Ue=T(x(B({},ge),{setup(i){const n=$(),p=h(),{proxy:V}=L(),v=h("tab1"),b=G({url:"/sys/job/main",params:{path:"",query:""},form:{avtag:!0}}),{form:o}=H(b);return J(async()=>{await Q({state:b,route:n})}),(z,u)=>{const s=d("el-col"),y=d("el-button"),m=d("el-row"),f=d("el-input"),r=d("el-form-item"),c=d("el-radio"),D=d("el-radio-group"),A=d("el-option"),U=d("el-select"),R=d("el-input-number"),k=d("el-switch"),C=d("el-tab-pane"),M=d("el-tabs"),N=d("el-form"),S=d("el-card");return Y(),X(S,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:l(()=>[e(m,null,{default:l(()=>[e(s,{span:10},{default:l(()=>[te]),_:1}),e(s,{span:14,style:{"text-align":"right"}},{default:l(()=>[e(y,{type:"success",onClick:u[0]||(u[0]=a=>t(W)({formRef:p.value,state:b,proxy:t(V),route:t(n)})),plain:""},{default:l(()=>[ue]),_:1}),e(y,{type:"info",onClick:u[1]||(u[1]=a=>t(ee)({proxy:t(V),route:t(n)})),plain:""},{default:l(()=>[oe]),_:1})]),_:1})]),_:1})]),default:l(()=>[_("div",ae,[e(N,{ref_key:"formRef",ref:p,class:"zform",model:t(o),"label-width":"140px"},{default:l(()=>[e(M,{type:"card",modelValue:v.value,"onUpdate:modelValue":u[13]||(u[13]=a=>v.value=a)},{default:l(()=>[e(C,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:l(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(s,{span:12},{default:l(()=>[e(r,{label:"\u4EFB\u52A1\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[_("div",ne,[e(f,{modelValue:t(o).name,"onUpdate:modelValue":u[2]||(u[2]=a=>t(o).name=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(r,{label:"\u4EFB\u52A1\u4EE3\u7801\uFF1A",prop:"code",rules:[{required:!0,message:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[_("div",se,[e(f,{modelValue:t(o).code,"onUpdate:modelValue":u[3]||(u[3]=a=>t(o).code=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(r,{label:"\u8BF7\u6C42\u7C7B\u578B\uFF1A"},{default:l(()=>[_("div",de,[e(D,{modelValue:t(o).retyp,"onUpdate:modelValue":u[4]||(u[4]=a=>t(o).retyp=a)},{default:l(()=>[e(c,{label:0},{default:l(()=>[_e]),_:1}),e(c,{label:1},{default:l(()=>[pe]),_:1}),e(c,{label:2},{default:l(()=>[re]),_:1}),e(c,{label:3},{default:l(()=>[ie]),_:1}),e(c,{label:4},{default:l(()=>[me]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(r,{label:"\u4EFB\u52A1\u8868\u8FBE\u5F0F\uFF1A",prop:"cron"},{default:l(()=>[_("div",fe,[e(f,{modelValue:t(o).cron,"onUpdate:modelValue":u[5]||(u[5]=a=>t(o).cron=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(r,{label:"\u6267\u884C\u7C7B\u578B\uFF1A"},{default:l(()=>[_("div",Fe,[e(U,{modelValue:t(o).type,"onUpdate:modelValue":u[6]||(u[6]=a=>t(o).type=a),style:{width:"100%"}},{default:l(()=>[e(A,{value:0,label:"\u5E76\u884C\u6267\u884C"}),e(A,{value:1,label:"\u4E32\u884C\u6267\u884C"})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(r,{label:"\u8BF7\u6C42\u5730\u5740\uFF1A",prop:"reurl"},{default:l(()=>[_("div",ce,[e(f,{modelValue:t(o).reurl,"onUpdate:modelValue":u[7]||(u[7]=a=>t(o).reurl=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(r,{label:"\u8BF7\u6C42\u5934\uFF1A",prop:"rehea"},{default:l(()=>[_("div",be,[e(f,{modelValue:t(o).rehea,"onUpdate:modelValue":u[8]||(u[8]=a=>t(o).rehea=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:l(()=>[e(s,{span:24},{default:l(()=>[e(r,{label:"\u8BF7\u6C42\u53C2\u6570\uFF1A",prop:"repar"},{default:l(()=>[_("div",Ve,[e(f,{modelValue:t(o).repar,"onUpdate:modelValue":u[9]||(u[9]=a=>t(o).repar=a),type:"textarea",rows:4},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(r,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:l(()=>[_("div",ve,[e(R,{modelValue:t(o).ornum,"onUpdate:modelValue":u[10]||(u[10]=a=>t(o).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(r,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:l(()=>[_("div",ye,[e(k,{modelValue:t(o).avtag,"onUpdate:modelValue":u[11]||(u[11]=a=>t(o).avtag=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(C,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:l(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(s,{span:24},{default:l(()=>[e(r,{label:"\u5907\u6CE8\uFF1A"},{default:l(()=>[_("div",Ae,[e(f,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:t(o).notes,"onUpdate:modelValue":u[12]||(u[12]=a=>t(o).notes=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Z(e(m,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(r,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:l(()=>[_("div",Ce,w(t(o).crtim),1)]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(r,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:l(()=>[_("div",Ee,w(t(o).uptim),1)]),_:1})]),_:1})]),_:1},512),[[K,t(o).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(le,{ref:"orgModal",onClose:z.closeOrgModal},null,8,["onClose"])]),_:1})}}}));export{Ue as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207212.js b/vboot-web/src/main/resources/static/assets/edit.165429159207212.js deleted file mode 100644 index 669f49a..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207212.js +++ /dev/null @@ -1 +0,0 @@ -import{m as v}from"./edit.16542915920722.js";import{g as B}from"./index.1654291592072.js";import{a as A,a3 as C,ag as D,j as E,R as y,S as a,a2 as s,o as h,e as x,Z as o,u,X as f}from"./vue.1654291592072.js";const U={class:"dialog-footer"},k=f("\u786E \u8BA4"),R=f("\u53D6 \u6D88"),T=A({name:"edit",emits:["close"],setup(N,{expose:_,emit:F}){const n=C({url:"/ass/dict/main",show:!1,form:{avtag:!0}}),{form:l}=D(n),m=E();_({openModal:async r=>{r&&r.id?n.form=await B({url:n.url+"/one/"+r.id,method:"get"}):(n.form={avtag:!0},m.value&&m.value.resetFields()),n.show=!0}});const c=async()=>{await v({formRef:m.value,state:n,iouField:"crtim"}),F("close")};return(r,e)=>{const i=s("el-input"),d=s("el-form-item"),V=s("el-input-number"),g=s("el-switch"),b=s("el-form"),p=s("el-button"),w=s("el-dialog");return h(),y(w,{modelValue:n.show,"onUpdate:modelValue":e[6]||(e[6]=t=>n.show=t),title:"\u5B57\u5178\u7F16\u8F91",draggable:"",width:"500px","before-close":r.handleClose},{footer:a(()=>[x("span",U,[o(p,{type:"primary",onClick:c},{default:a(()=>[k]),_:1}),o(p,{onClick:e[5]||(e[5]=t=>n.show=!1)},{default:a(()=>[R]),_:1})])]),default:a(()=>[o(b,{ref_key:"formRef",ref:m,model:u(l),"label-width":"120px"},{default:a(()=>[o(d,{label:"\u5B57\u5178\u7C7B\u578B\uFF1A",prop:"id",rules:[{required:!0,message:"\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[o(i,{modelValue:u(l).id,"onUpdate:modelValue":e[0]||(e[0]=t=>u(l).id=t),placeholder:"\u5B57\u6BCD\u7F16\u7801",disabled:!!u(l).crtim},null,8,["modelValue","disabled"])]),_:1}),o(d,{label:"\u5B57\u5178\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[o(i,{modelValue:u(l).name,"onUpdate:modelValue":e[1]||(e[1]=t=>u(l).name=t)},null,8,["modelValue"])]),_:1}),o(d,{label:"\u6392\u5E8F\u53F7\uFF1A",prop:"ornum"},{default:a(()=>[o(V,{modelValue:u(l).ornum,"onUpdate:modelValue":e[2]||(e[2]=t=>u(l).ornum=t),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),o(d,{label:"\u662F\u5426\u53EF\u7528\uFF1A",prop:"avtag"},{default:a(()=>[o(g,{modelValue:u(l).avtag,"onUpdate:modelValue":e[3]||(e[3]=t=>u(l).avtag=t)},null,8,["modelValue"])]),_:1}),o(d,{label:"\u5907\u6CE8\uFF1A",prop:"notes"},{default:a(()=>[o(i,{type:"textarea",rows:4,modelValue:u(l).notes,"onUpdate:modelValue":e[4]||(e[4]=t=>u(l).notes=t)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","before-close"])}}});export{T as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207213.js b/vboot-web/src/main/resources/static/assets/edit.165429159207213.js deleted file mode 100644 index 34efd39..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207213.js +++ /dev/null @@ -1 +0,0 @@ -import{m as v}from"./edit.16542915920722.js";import{g as A,E}from"./index.1654291592072.js";import{a as C,a3 as B,ag as D,j as y,R as x,S as a,a2 as r,o as U,e as h,Z as o,u as t,X as f}from"./vue.1654291592072.js";const k={class:"dialog-footer"},R=f("\u786E \u8BA4"),M=f("\u53D6 \u6D88"),X=C({name:"edit",emits:["close"],setup(N,{expose:_,emit:F}){const n=B({url:"/ass/dict/data",show:!1,form:{avtag:!0}}),{form:l}=D(n),d=y();_({openModal:async s=>{if(s&&s.id)n.form=await A({url:n.url+"/one/"+s.id,method:"get"});else if(s&&s.maiid)n.form={avtag:!0,maiid:s.maiid},d.value&&d.value.resetFields();else{E.warning("\u8BF7\u5148\u9009\u62E9\u5B57\u5178\u540E\u7EF4\u62A4\u5B57\u5178\u503C");return}n.show=!0}});const c=async()=>{await v({formRef:d.value,state:n}),F("close")};return(s,e)=>{const i=r("el-input"),m=r("el-form-item"),V=r("el-input-number"),g=r("el-switch"),w=r("el-form"),p=r("el-button"),b=r("el-dialog");return U(),x(b,{modelValue:n.show,"onUpdate:modelValue":e[6]||(e[6]=u=>n.show=u),title:"\u5B57\u5178\u503C\u7F16\u8F91",draggable:"",width:"500px","before-close":s.handleClose},{footer:a(()=>[h("span",k,[o(p,{type:"primary",onClick:c},{default:a(()=>[R]),_:1}),o(p,{onClick:e[5]||(e[5]=u=>n.show=!1)},{default:a(()=>[M]),_:1})])]),default:a(()=>[o(w,{ref_key:"formRef",ref:d,model:t(l),"label-width":"120px"},{default:a(()=>[o(m,{label:"\u5B57\u5178\u503C\u7F16\u7801\uFF1A",prop:"code",rules:[{required:!0,message:"\u7F16\u7801\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[o(i,{modelValue:t(l).code,"onUpdate:modelValue":e[0]||(e[0]=u=>t(l).code=u)},null,8,["modelValue"])]),_:1}),o(m,{label:"\u5B57\u5178\u503C\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[o(i,{modelValue:t(l).name,"onUpdate:modelValue":e[1]||(e[1]=u=>t(l).name=u)},null,8,["modelValue"])]),_:1}),o(m,{label:"\u6392\u5E8F\u53F7\uFF1A",prop:"ornum"},{default:a(()=>[o(V,{modelValue:t(l).ornum,"onUpdate:modelValue":e[2]||(e[2]=u=>t(l).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),o(m,{label:"\u662F\u5426\u53EF\u7528\uFF1A",prop:"avtag"},{default:a(()=>[o(g,{modelValue:t(l).avtag,"onUpdate:modelValue":e[3]||(e[3]=u=>t(l).avtag=u)},null,8,["modelValue"])]),_:1}),o(m,{label:"\u5907\u6CE8\uFF1A",prop:"notes"},{default:a(()=>[o(i,{type:"textarea",rows:4,modelValue:t(l).notes,"onUpdate:modelValue":e[4]||(e[4]=u=>t(l).notes=u)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","before-close"])}}});export{X as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207214.js b/vboot-web/src/main/resources/static/assets/edit.165429159207214.js deleted file mode 100644 index 4706359..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207214.js +++ /dev/null @@ -1 +0,0 @@ -import{m as g}from"./edit.16542915920722.js";import{g as w}from"./index.1654291592072.js";import{a as C,a3 as Y,ag as B,j as c,R as M,S as a,a2 as m,o as U,e as x,Z as e,u as t,X as _}from"./vue.1654291592072.js";const k={class:"dialog-footer"},R=_("\u786E \u8BA4"),N=_("\u53D6 \u6D88"),X=C({name:"edit",emits:["close"],setup(q,{expose:V,emit:E}){const n=Y({url:"/ass/num/main",show:!1,form:{avtag:!0}}),{form:l}=B(n),p=c();V({openModal:async i=>{i&&i.id?n.form=await w({url:n.url+"/one/"+i.id,method:"get"}):(n.form={avtag:!0},p.value&&p.value.resetFields()),n.show=!0}});const b=async()=>{await g({formRef:p.value,state:n,iouField:"crtim"}),E("close")};return(i,u)=>{const r=m("el-input"),d=m("el-form-item"),s=m("el-option"),y=m("el-select"),F=m("el-input-number"),D=m("el-switch"),A=m("el-form"),f=m("el-button"),v=m("el-dialog");return U(),M(v,{modelValue:n.show,"onUpdate:modelValue":u[10]||(u[10]=o=>n.show=o),title:"\u7F16\u53F7\u7B56\u7565\u914D\u7F6E",draggable:"",width:"500px"},{footer:a(()=>[x("span",k,[e(f,{type:"primary",onClick:b},{default:a(()=>[R]),_:1}),e(f,{onClick:u[9]||(u[9]=o=>n.show=!1)},{default:a(()=>[N]),_:1})])]),default:a(()=>[e(A,{ref_key:"formRef",ref:p,model:t(l),"label-width":"120px"},{default:a(()=>[e(d,{label:"\u7B56\u7565\u4EE3\u7801\uFF1A",prop:"id",rules:[{required:!0,message:"\u7B56\u7565\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[e(r,{modelValue:t(l).id,"onUpdate:modelValue":u[0]||(u[0]=o=>t(l).id=o),placeholder:"\u5B57\u6BCD\u7F16\u7801",disabled:!!t(l).crtim},null,8,["modelValue","disabled"])]),_:1}),e(d,{label:"\u7B56\u7565\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u7B56\u7565\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[e(r,{modelValue:t(l).name,"onUpdate:modelValue":u[1]||(u[1]=o=>t(l).name=o)},null,8,["modelValue"])]),_:1}),e(d,{label:"\u7F16\u53F7\u751F\u6210\u6A21\u5F0F\uFF1A",prop:"numod"},{default:a(()=>[e(y,{modelValue:t(l).numod,"onUpdate:modelValue":u[2]||(u[2]=o=>t(l).numod=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:a(()=>[e(s,{value:"nodate",label:"\u65E0\u65E5\u671F\uFF0C\u7EAF\u6D41\u6C34\u53F7"}),e(s,{value:"yyyymmdd",label:"\u5E74\u6708\u65E5YYYYMMDD+\u6D41\u6C34\u53F7"}),e(s,{value:"yymmdd",label:"\u5E74\u6708\u65E5YYMMDD+\u6D41\u6C34\u53F7"}),e(s,{value:"yyyymm",label:"\u5E74\u6708YYYYMM+\u6D41\u6C34\u53F7"}),e(s,{value:"yymm",label:"\u5E74\u6708YYMM+\u6D41\u6C34\u53F7"}),e(s,{value:"yy",label:"\u5E74YY+\u6D41\u6C34\u53F7"})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u7F16\u53F7\u524D\u7F00\uFF1A",prop:"nupre"},{default:a(()=>[e(r,{modelValue:t(l).nupre,"onUpdate:modelValue":u[3]||(u[3]=o=>t(l).nupre=o)},null,8,["modelValue"])]),_:1}),e(d,{label:"\u7F16\u53F7\u957F\u5EA6\uFF1A",prop:"nulen"},{default:a(()=>[e(F,{modelValue:t(l).nulen,"onUpdate:modelValue":u[4]||(u[4]=o=>t(l).nulen=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{label:"\u4E0B\u4E00\u4E2A\u7F16\u53F7\uFF1A",prop:"nunex"},{default:a(()=>[e(r,{modelValue:t(l).nunex,"onUpdate:modelValue":u[5]||(u[5]=o=>t(l).nunex=o)},null,8,["modelValue"])]),_:1}),e(d,{label:"\u662F\u5426\u53EF\u7528\uFF1A",prop:"avtag"},{default:a(()=>[e(D,{modelValue:t(l).avtag,"onUpdate:modelValue":u[6]||(u[6]=o=>t(l).avtag=o)},null,8,["modelValue"])]),_:1}),e(d,{label:"\u6392\u5E8F\u53F7\uFF1A",prop:"ornum"},{default:a(()=>[e(F,{modelValue:t(l).ornum,"onUpdate:modelValue":u[7]||(u[7]=o=>t(l).ornum=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{label:"\u5907\u6CE8\uFF1A",prop:"notes"},{default:a(()=>[e(r,{modelValue:t(l).notes,"onUpdate:modelValue":u[8]||(u[8]=o=>t(l).notes=o)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{X as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207215.js b/vboot-web/src/main/resources/static/assets/edit.165429159207215.js deleted file mode 100644 index f75471c..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207215.js +++ /dev/null @@ -1 +0,0 @@ -var S=Object.defineProperty,I=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var V=(p,u,d)=>u in p?S(p,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[u]=d,w=(p,u)=>{for(var d in u||(u={}))$.call(u,d)&&V(p,d,u[d]);if(E)for(var d of E(u))j.call(u,d)&&V(p,d,u[d]);return p},B=(p,u)=>I(p,T(u));import{a as H,aB as O,j as y,a3 as X,ag as Y,m as Z,R as G,S as t,a2 as r,o as J,Z as e,u as a,e as i,T as K,U as L,Y as v,X as A,l as P}from"./vue.1654291592072.js";import{t as Q,a as W}from"./edit.16542915920722.js";import{C as ee}from"./GenModal.1654291592072.js";import{g as te,s as ae}from"./index.1654291592072.js";const oe=i("div",{style:{"line-height":"32px"}},"\u6D41\u7A0B\u5206\u7C7B",-1),le=A("\u4FDD \u5B58"),ue=A("\u590D \u5236"),ne=A("\u5173 \u95ED"),se={style:{"margin-top":"8px","margin-bottom":"8px"}},de={class:"zinput"},re={class:"zinput"},ie={class:"zinput"},pe={class:"zinput"},_e={class:"zinput",style:{height:"auto"}},me={class:"zinput"},fe={class:"zinput"},ce={class:"zinput"},Fe={class:"zinput"},ve={name:"OaFlowCateEdit"},Ce=H(B(w({},ve),{setup(p){const u=O(),d=y(),{proxy:x}=P(),h=y("tab1"),_=X({url:"/oa/flow/cate",params:{path:"",query:""},form:{avtag:!0}}),{form:o}=Y(_);Z(()=>{D()});const D=async()=>{var l,n,F;_.params=u;let c=(l=_.params.query)==null?void 0:l.id;if(c)_.form=await te({url:_.url+"/one/"+c,method:"get"});else{let f=(n=_.params.query)==null?void 0:n.pname;f&&(o.value.parent={id:(F=_.params.query)==null?void 0:F.pid,name:f}),_.form.avtag=!0}},C=y(),z=()=>{C.value.openModal()},k=c=>{o.value.parent={id:c.id,name:c.name}};return(c,l)=>{const n=r("el-col"),F=r("el-button"),f=r("el-row"),b=r("el-input"),m=r("el-form-item"),q=r("el-input-number"),M=r("el-switch"),g=r("el-tab-pane"),R=r("el-tabs"),U=r("el-form"),N=r("el-card");return J(),G(N,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(f,null,{default:t(()=>[e(n,{span:10},{default:t(()=>[oe]),_:1}),e(n,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(F,{type:"success",onClick:l[0]||(l[0]=s=>a(Q)({formRef:d.value,state:_,proxy:a(x),route:a(u)})),plain:""},{default:t(()=>[le]),_:1}),e(F,{type:"info",plain:""},{default:t(()=>[ue]),_:1}),e(F,{type:"info",onClick:l[1]||(l[1]=s=>a(W)({proxy:a(x),route:a(u)})),plain:""},{default:t(()=>[ne]),_:1})]),_:1})]),_:1})]),default:t(()=>[e(ee,{url:"oa/flow/cate/tree",ref_key:"cateModal",ref:C,onClose:k},null,512),i("div",se,[e(U,{ref_key:"formRef",ref:d,class:"zform",model:a(o),"label-width":"140px"},{default:t(()=>[e(R,{type:"card",modelValue:h.value,"onUpdate:modelValue":l[6]||(l[6]=s=>h.value=s)},{default:t(()=>[e(g,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(n,{span:12},{default:t(()=>[e(m,{label:"\u5206\u7C7B\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",de,[e(b,{modelValue:a(o).name,"onUpdate:modelValue":l[2]||(l[2]=s=>a(o).name=s)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(m,{label:"\u4E0A\u7EA7\u5206\u7C7B\uFF1A"},{default:t(()=>{var s;return[i("div",re,[e(b,{value:(s=a(o).parent)==null?void 0:s.name,"suffix-icon":a(ae),readonly:!0,onClick:z},null,8,["value","suffix-icon"])])]}),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(n,{span:12},{default:t(()=>[e(m,{label:"\u6392\u5E8F\u53F7\uFF1A",prop:"ornum",rules:[{required:!0,message:"\u6392\u5E8F\u53F7\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",ie,[e(q,{modelValue:a(o).ornum,"onUpdate:modelValue":l[3]||(l[3]=s=>a(o).ornum=s),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:12},{default:t(()=>[e(m,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",pe,[e(M,{modelValue:a(o).avtag,"onUpdate:modelValue":l[4]||(l[4]=s=>a(o).avtag=s)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(g,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(n,{span:24},{default:t(()=>[e(m,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",_e,[e(b,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(o).notes,"onUpdate:modelValue":l[5]||(l[5]=s=>a(o).notes=s)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),K(e(f,null,{default:t(()=>[e(n,{span:6},{default:t(()=>[e(m,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i("div",me,v(a(o).crman?a(o).crman.name:""),1)]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(m,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",fe,v(a(o).crtim),1)]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(m,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i("div",ce,v(a(o).upman?a(o).upman.name:""),1)]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(m,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",Fe,v(a(o).uptim),1)]),_:1})]),_:1})]),_:1},512),[[L,a(o).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Ce as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207216.js b/vboot-web/src/main/resources/static/assets/edit.165429159207216.js deleted file mode 100644 index ad167fe..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207216.js +++ /dev/null @@ -1,170 +0,0 @@ -var J=Object.defineProperty,O=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var M=(c,m,p)=>m in c?J(c,m,{enumerable:!0,configurable:!0,writable:!0,value:p}):c[m]=p,P=(c,m)=>{for(var p in m||(m={}))G.call(m,p)&&M(c,p,m[p]);if(F)for(var p of F(m))H.call(m,p)&&M(c,p,m[p]);return c},L=(c,m)=>O(c,X(m));import{a as I,aB as W,j as B,a3 as Y,ag as Z,m as $,R as A,S as n,a2 as l,o as D,Z as e,u as i,e as s,W as K,T as Q,U as ee,Y as w,X as N}from"./vue.1654291592072.js";import{p as ne,c as te}from"./edit.16542915920722.js";import{M as ie,P as ae,B as oe}from"./BpmnActions.1654291592072.js";import{B as h}from"./store.1654291592072.js";import{N as ue,g as me}from"./index.1654291592072.js";import{C as pe}from"./GenModal.1654291592072.js";import"./Modeler.1654291592072.js";const se=s("div",{style:{"line-height":"32px"}},"\u6D41\u7A0B\u6A21\u677F",-1),de=N("\u4FDD \u5B58"),le=N("\u590D \u5236"),re=N("\u5173 \u95ED"),ce={style:{"margin-top":"8px","margin-bottom":"8px"}},be={class:"zinput"},ge={class:"zinput"},_e={class:"zinput"},fe={class:"zinput"},ve={style:{width:"100%",height:"720px"}},ye={class:"zinput",style:{height:"auto"}},Be={class:"zinput",style:{height:"auto"}},we={class:"zinput"},he={class:"zinput"},Ne={class:"zinput"},Ee={class:"zinput"},xe={name:"OaFlowTempEdit"},ke=I(L(P({},xe),{setup(c){const m=W(),p=B(),E=B("tab1"),d=Y({url:"/oa/flow/temp",params:{path:"",query:{}},form:{avtag:!0},vformShow:!0}),{form:t}=Z(d),v=B(null);$(async()=>{var a,o,_;ue.done(),d.params=m;let r=(a=d.params.query)==null?void 0:a.id;if(r)d.form=await me({url:d.url+"/one/"+r,method:"get"}),v.value.setFormJson(JSON.parse(d.form.vform));else{let b=(o=d.params.query)==null?void 0:o.catid;b&&(d.form.cate={id:b,name:(_=d.params.query)==null?void 0:_.catna}),d.form.avtag=!0,v.value.setFormJson({widgetList:[],formConfig:{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:"",functions:"",layoutType:"PC",jsonVersion:3,onFormCreated:"",onFormMounted:"",onFormDataChange:"",onFormValidate:""}})}t.value.id?await h.importXML(t.value.prxml):await h.importXML(S)});async function C(r){const a=await h.getXML();t.value.vform=JSON.stringify(v.value.getFormJson()),t.value.prxml=a.xml,console.log(a.xml),await te({formRef:p.value,state:r})}const S=` - - - - L1 - - - - \u5224\u65AD\u5BA1\u6279\u91D1\u989D\u662F\u5426\u5927\u4E8E100 - L4 - L6 - L5 - - - - - - - - - - - - - - - - L2 - - - - - \u8D77\u8349\u8282\u70B9\uFF0C\u8868\u5355\u6570\u636E\u4E00\u822C\u4ECE\u7ED1\u5B9A\u7684\u8868\u5355\u63D0\u53D6 - - - - - - - - - - L1 - L3 - - - \u5BA1\u6279\u8282\u70B9 - - - - - - - L3 - L4 - - - - - - - - - L5 - L7 - - - - - - - - - L6 - L8 - - - - - - - - - - L7 - L8 - L2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`,x=B(),k=()=>{x.value.openModal()},V=r=>{r==null?t.value.cate=null:t.value.cate={id:r.id,name:r.name}};return(r,a)=>{const o=l("el-col"),_=l("el-button"),b=l("el-row"),y=l("el-input"),g=l("el-form-item"),R=l("el-input-number"),q=l("el-switch"),f=l("el-tab-pane"),z=l("v-form-designer"),T=l("el-tabs"),U=l("el-form"),j=l("el-card");return D(),A(j,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:n(()=>[e(b,null,{default:n(()=>[e(o,{span:10},{default:n(()=>[se]),_:1}),e(o,{span:14,style:{"text-align":"right"}},{default:n(()=>[e(_,{type:"success",onClick:a[0]||(a[0]=u=>C(d)),plain:""},{default:n(()=>[de]),_:1}),e(_,{type:"info",plain:""},{default:n(()=>[le]),_:1}),e(_,{type:"info",onClick:i(ne),plain:""},{default:n(()=>[re]),_:1},8,["onClick"])]),_:1})]),_:1})]),default:n(()=>[e(pe,{url:"oa/flow/cate/tree",ref_key:"cateModal",ref:x,onClose:V},null,512),s("div",ce,[e(U,{ref_key:"formRef",ref:p,model:i(t),"label-width":"140px"},{default:n(()=>[e(T,{type:"card",modelValue:E.value,"onUpdate:modelValue":a[6]||(a[6]=u=>E.value=u)},{default:n(()=>[e(f,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1",class:"zform"},{default:n(()=>[e(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(o,{span:12},{default:n(()=>[e(g,{label:"\u6A21\u677F\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:n(()=>[s("div",be,[e(y,{modelValue:i(t).name,"onUpdate:modelValue":a[1]||(a[1]=u=>i(t).name=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(o,{span:12},{default:n(()=>[e(g,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"cate",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:n(()=>{var u;return[s("div",ge,[e(y,{value:(u=i(t).cate)==null?void 0:u.name,"suffix-icon":r.Search,readonly:!0,onClick:k},null,8,["value","suffix-icon"])])]}),_:1})]),_:1})]),_:1}),e(b,null,{default:n(()=>[e(o,{span:12},{default:n(()=>[e(g,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:n(()=>[s("div",_e,[e(R,{modelValue:i(t).ornum,"onUpdate:modelValue":a[2]||(a[2]=u=>i(t).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(o,{span:12},{default:n(()=>[e(g,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:n(()=>[s("div",fe,[e(q,{modelValue:i(t).avtag,"onUpdate:modelValue":a[3]||(a[3]=u=>i(t).avtag=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(f,{label:"\u8868\u5355\u914D\u7F6E",name:"tab2"},{default:n(()=>[e(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(o,{span:24},{default:n(()=>[d.vformShow?(D(),A(z,{key:0,ref_key:"vFormRef",ref:v},null,512)):K("",!0)]),_:1})]),_:1})]),_:1}),e(f,{label:"\u6D41\u7A0B\u914D\u7F6E",name:"tab3"},{default:n(()=>[s("div",ve,[e(i(ie),{onBpmnMounted:r.bpmnMounted},null,8,["onBpmnMounted"]),e(i(ae)),e(i(oe))])]),_:1}),e(f,{label:"\u6743\u9650\u914D\u7F6E",name:"tab4",class:"zform"},{default:n(()=>[e(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(o,{span:24},{default:n(()=>[e(g,{label:"\u5907\u6CE8\uFF1A"},{default:n(()=>[s("div",ye,[e(y,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:i(t).notes,"onUpdate:modelValue":a[4]||(a[4]=u=>i(t).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(f,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9",class:"zform"},{default:n(()=>[e(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(o,{span:24},{default:n(()=>[e(g,{label:"\u5907\u6CE8\uFF1A"},{default:n(()=>[s("div",Be,[e(y,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:i(t).notes,"onUpdate:modelValue":a[5]||(a[5]=u=>i(t).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Q(e(b,null,{default:n(()=>[e(o,{span:6},{default:n(()=>[e(g,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:n(()=>[s("div",we,w(i(t).crman?i(t).crman.name:""),1)]),_:1})]),_:1}),e(o,{span:6},{default:n(()=>[e(g,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:n(()=>[s("div",he,w(i(t).crtim),1)]),_:1})]),_:1}),e(o,{span:6},{default:n(()=>[e(g,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:n(()=>[s("div",Ne,w(i(t).upman?i(t).upman.name:""),1)]),_:1})]),_:1}),e(o,{span:6},{default:n(()=>[e(g,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:n(()=>[s("div",Ee,w(i(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[ee,i(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{ke as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207217.js b/vboot-web/src/main/resources/static/assets/edit.165429159207217.js deleted file mode 100644 index bbaca20..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207217.js +++ /dev/null @@ -1 +0,0 @@ -import{p as T,c as X}from"./edit.16542915920722.js";import{a as I,aB as U,a3 as k,ag as q,m as M,a2 as a,o as V,R,S as t,Z as e,e as s,u as n,Y as W,T as Y,U as Z,X as A,ap as G,j as D,b as H,O as K,W as $,az as P,aA as Q}from"./vue.1654291592072.js";import{g as N,_ as ee,N as te,E as oe}from"./index.1654291592072.js";import{M as ae}from"./Modeler2.1654291592072.js";import{B as S}from"./store.1654291592072.js";import"./Modeler.1654291592072.js";const le=s("div",{class:"zinput"}," \u8FD9\u662F\u4E00\u4E2A\u6D4B\u8BD5\u7684\u6D41\u7A0B\uFF0C\u76EE\u524D\u529F\u80FD\u8FD8\u4E0D\u5B8C\u5584 ",-1),ue={class:"zinput"},ne=s("span",{style:{color:"red"}},"\u7D27\u6025",-1),se=s("span",{style:{color:"blue"}},"\u6025",-1),re=s("span",null,"\u4E00\u822C",-1),de={class:"zinput"},pe={class:"zinput",style:{height:"auto"}},me={class:"zinput",style:{height:"auto"}},ie=A("\u4E0A \u4F20"),_e={style:{"margin-left":"10px","border-right":"1px solid #ccc"}},ce=A("\u6D41\u7A0B\u56FE"),fe={style:{padding:"10px","border-right":"1px solid #ccc",height:"1000px"}},ge=I({name:"edit",props:{temid:String},setup(b,{expose:C}){const F=b,w=U(),m=k({form:{opurg:"3"},chtag:!0,params:{path:"",query:""},toExmen:"",tarno:"",xml:null}),{form:r,params:d}=q(m);M(async()=>{var p;m.params=w,(p=d.value.query)!=null&&p.id,B()}),C({getOperateInfo:()=>G(r.value)});const B=async()=>{if(!m.xml){const p=await N({url:"/bpm/proc/main/texml",method:"get",params:{temid:F.temid}});r.value.tarno=p.tarno,r.value.tarna=p.tarna,r.value.tamen=p.tamen,m.toExmen=p.tarno+"."+p.tarna+"("+p.tamen+")",m.xml=p.xml,await S.importXML(m.xml);const i=S.getModeler().get("elementRegistry"),c=[];i.forEach(u=>{u.id=="N1"&&c.push(u)});const _=[];i.forEach(u=>{u.id=="L1"&&_.push(u)});const o=[];i.forEach(u=>{u.id=="N2"&&o.push(u)});let l=S.modeler.get("modeling");l.setColor(c,{fill:"#e4feef"}),l.setColor(_,{stroke:"#009900"}),l.setColor(o,{fill:"#fed6d6"})}};return(p,i)=>{const c=a("el-form-item"),_=a("el-col"),o=a("el-row"),l=a("el-radio"),u=a("el-radio-group"),g=a("el-input"),f=a("el-button"),h=a("el-upload"),v=a("el-checkbox"),x=a("el-form");return V(),R(x,{class:"zform",model:n(r),"label-width":"160px","label-position":"left"},{default:t(()=>[e(o,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(_,{span:24},{default:t(()=>[e(c,{label:"\u6D41\u7A0B\u8BF4\u660E",style:{"margin-left":"10px"}},{default:t(()=>[le]),_:1})]),_:1})]),_:1}),e(o,null,{default:t(()=>[e(_,{span:24},{default:t(()=>[e(c,{label:"\u7D27\u6025\u7A0B\u5EA6",style:{"margin-left":"10px"}},{default:t(()=>[s("div",ue,[e(u,{modelValue:n(r).opurg,"onUpdate:modelValue":i[0]||(i[0]=y=>n(r).opurg=y)},{default:t(()=>[e(l,{label:"1"},{default:t(()=>[ne]),_:1}),e(l,{label:"2"},{default:t(()=>[se]),_:1}),e(l,{label:"3"},{default:t(()=>[re]),_:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(o,null,{default:t(()=>[e(_,{span:24},{default:t(()=>[e(c,{label:"\u5373\u5C06\u6D41\u5411",style:{"margin-left":"10px"}},{default:t(()=>[s("div",de,W(m.toExmen),1)]),_:1})]),_:1})]),_:1}),e(o,null,{default:t(()=>[e(_,{span:24},{default:t(()=>[e(c,{label:"\u5904\u7406\u610F\u89C1",style:{"margin-left":"10px"}},{default:t(()=>[s("div",pe,[e(g,{modelValue:n(r).opnot,"onUpdate:modelValue":i[1]||(i[1]=y=>n(r).opnot=y),type:"textarea",rows:5,placeholder:" "},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(o,null,{default:t(()=>[e(_,{span:24},{default:t(()=>[e(c,{label:"\u9644\u4EF6",style:{"margin-left":"10px"}},{default:t(()=>[s("div",me,[e(h,{class:"upload-demo",action:"https://jsonplaceholder.typicode.com/posts/","file-list":p.fileList},{default:t(()=>[e(f,{type:"primary"},{default:t(()=>[ie]),_:1})]),_:1},8,["file-list"])])]),_:1})]),_:1})]),_:1}),e(o,null,{default:t(()=>[e(_,{span:24},{default:t(()=>[s("div",_e,[e(v,{modelValue:m.chtag,"onUpdate:modelValue":i[2]||(i[2]=y=>m.chtag=y),onChange:B},{default:t(()=>[ce]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Y(e(o,null,{default:t(()=>[e(_,{span:24,style:{"background-color":"white"}},{default:t(()=>[s("div",fe,[e(n(ae))])]),_:1})]),_:1},512),[[Z,m.chtag]])]),_:1},8,["model"])}}});const O=b=>(P("data-v-214408c9"),b=b(),Q(),b),he=O(()=>s("div",{style:{"line-height":"32px"}},"\u6D41\u7A0B\u5B9E\u4F8B",-1)),ve=A("\u63D0 \u4EA4"),ye=A("\u5173 \u95ED"),be={style:{"margin-top":"8px","margin-bottom":"8px"}},xe={class:"zinput"},Ee={class:"zinput",style:{height:"auto"}},Be=O(()=>s("div",{style:{color:"green"}},"\u6CE8\uFF1A\u6B64\u9875\u9762\u5185\u5BB9\u901A\u8FC7\u5728\u7EBF\u8868\u5355\u8BBE\u8BA1\u5668\u6E32\u67D3",-1)),Fe=I({name:"edit",setup(b){const C=U(),F=D(),w=D("tab1"),m=D(),r=k({url:"/oa/flow/main",params:{path:"",query:""},form:{avtag:!0},formJson:{},formData:{},vformShow:!1}),{form:d,formJson:z,formData:B}=q(r);M(()=>{te.done(),p(r,C)});const p=async(o,l)=>{var g,f;o.params=l;let u=(g=o.params.query)==null?void 0:g.id;if(u)o.form=await N({url:o.url+"/one/"+u,method:"get"});else{let h=(f=o.params.query)==null?void 0:f.temid;const v=await N({url:"/oa/flow/temp/one/"+h,method:"get"});d.value.protd=v.protd,d.value.temid=h,d.value.avtag=!0,z.value=JSON.parse(v.vform),B.value={},o.vformShow=!0}},i=k({}),c=D(null),_=async()=>{c.value.getFormData().then(async o=>{d.value.zform=JSON.stringify(o),d.value.zbpm=m.value.getOperateInfo(),await X({formRef:F.value,state:r})}).catch(o=>{oe.error(o)})};return(o,l)=>{const u=a("el-col"),g=a("el-button"),f=a("el-row"),h=a("el-input"),v=a("el-form-item"),x=a("el-tab-pane"),y=a("v-form-render"),j=a("el-tabs"),J=a("el-form"),L=a("el-card");return V(),H("div",{style:K({height:"calc(100vh)"}),class:"zpage"},[e(L,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(f,null,{default:t(()=>[e(u,{span:10},{default:t(()=>[he]),_:1}),e(u,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(g,{type:"success",onClick:_,plain:""},{default:t(()=>[ve]),_:1}),e(g,{type:"info",onClick:l[0]||(l[0]=E=>n(T)()),plain:""},{default:t(()=>[ye]),_:1})]),_:1})]),_:1})]),default:t(()=>[s("div",be,[e(J,{ref_key:"formRef",ref:F,model:n(d),"label-width":"140px"},{default:t(()=>[e(j,{type:"card",modelValue:w.value,"onUpdate:modelValue":l[3]||(l[3]=E=>w.value=E)},{default:t(()=>[e(x,{label:"\u57FA\u672C\u4FE1\u606F",class:"zform",name:"tab1"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(u,{span:24},{default:t(()=>[e(v,{label:"\u4E3B\u9898\uFF1A",prop:"name",rules:[{required:!0,message:"\u4E3B\u9898\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[s("div",xe,[e(h,{modelValue:n(d).name,"onUpdate:modelValue":l[1]||(l[1]=E=>n(d).name=E)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(u,{span:24},{default:t(()=>[e(v,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[s("div",Ee,[e(h,{modelValue:n(d).notes,"onUpdate:modelValue":l[2]||(l[2]=E=>n(d).notes=E),type:"textarea",rows:4},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(x,{label:"\u5BA1\u6279\u5185\u5BB9",name:"tab2"},{default:t(()=>[r.vformShow?(V(),R(y,{key:0,"form-json":n(z),"form-data":n(B),"option-data":i,ref_key:"vFormRef",ref:c},null,8,["form-json","form-data","option-data"])):$("",!0),Be]),_:1}),e(x,{label:"\u6D41\u7A0B\u5904\u7406",name:"tab3",class:"zform"},{default:t(()=>[n(d).protd?(V(),R(ge,{key:0,temid:n(d).protd,ref_key:"bpmRef",ref:m},null,8,["temid"])):$("",!0)]),_:1}),e(x,{label:"\u6743\u9650\u4FE1\u606F",name:"tab4",class:"zform"})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})],4)}}});var Se=ee(Fe,[["__scopeId","data-v-214408c9"]]);export{Se as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207218.js b/vboot-web/src/main/resources/static/assets/edit.165429159207218.js deleted file mode 100644 index b53ce52..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207218.js +++ /dev/null @@ -1 +0,0 @@ -var H=Object.defineProperty,K=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var k=(_,s,r)=>s in _?H(_,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):_[s]=r,M=(_,s)=>{for(var r in s||(s={}))Q.call(s,r)&&k(_,r,s[r]);if(D)for(var r of D(s))W.call(s,r)&&k(_,r,s[r]);return _},R=(_,s)=>K(_,P(s));import{a as ee,aB as le,j as g,a3 as ae,ag as oe,m as te,B as U,R as N,S as a,a2 as m,o as A,Z as e,u as t,e as d,T as V,U as w,Y as F,b as ue,a7 as ne,F as se,J as O,X as S,l as de,ap as re}from"./vue.1654291592072.js";import{e as ie,t as pe,a as me}from"./edit.16542915920722.js";import{O as _e}from"./OrgModal.1654291592072.js";import{_ as ce}from"./amap.1654291592072.js";import{g as fe}from"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ve=d("div",{style:{"line-height":"32px"}},"\u4EE3\u7406\u5546\u7EF4\u62A4",-1),Fe=S("\u4FDD \u5B58"),ge=S("\u5173 \u95ED"),Ee={style:{"margin-top":"8px","margin-bottom":"8px"}},be={class:"zinput"},ye={class:"zinput"},Ae={style:{"margin-left":"5px",color:"#b9abab"}},Ve={class:"zinput"},we={class:"zinput"},xe={class:"zinput"},he={class:"zinput",style:{height:"auto"}},Be={class:"zinput",style:{height:"auto"}},Ce={class:"zinput"},ze={class:"zinput"},De={class:"zinput"},ke={class:"zinput"},Me={name:"SaAgentMainEdit"},Le=ee(R(M({},Me),{setup(_){const s=le(),r=g(),{proxy:x}=de(),h=g("tab1"),f=ae({url:"/sa/agent/main",params:{path:"",query:""},levels:[],form:{avtag:!0,items:[]}}),{form:l}=oe(f);te(async()=>{await ie({state:f,route:s}),await j()});const E=g(),T=()=>{E.value.openModal({opener:"opman",orgType:8})},I=()=>{E.value.openModal({opener:"viewers",orgType:11,selectMode:2,orgs:re(l.value.viewers)})},L=o=>{o.opener=="opman"?o.orgs&&o.orgs.length>0?(l.value.opman={id:o.orgs[0].id,name:o.orgs[0].name},l.value.opmid=o.orgs[0].id):(l.value.opman=null,l.value.opmid=null):o.opener=="viewers"&&(o.orgs&&o.orgs.length>0?l.value.viewers=o.orgs:l.value.viewers=null)},b=U(()=>{let o="";return l.value.opman&&(o=l.value.opman.name),o}),y=U(()=>{let o="";if(l.value.viewers&&l.value.viewers.length>0)for(const u of l.value.viewers)o+=u.name+"\uFF1B";return o}),B=g(),$=()=>{B.value.openModal({adcoo:l.value.adcoo,adreg:l.value.adreg,addet:l.value.addet,adzoo:""})},q=o=>{o&&(l.value.addre=o.adreg+o.addet,l.value.adcoo=o.adcoo,l.value.adreg=o.adreg,l.value.addet=o.addet,l.value.adpro=o.adpro,l.value.adcit=o.adcit,l.value.addis=o.addis)},j=async()=>{f.levels=await fe({url:"/ass/dict/data/list?maiid=AG_LEVEL",method:"get"})};return(o,u)=>{const i=m("el-col"),C=m("el-button"),c=m("el-row"),v=m("el-input"),p=m("el-form-item"),G=m("el-option"),J=m("el-select"),z=m("el-tab-pane"),X=m("el-tabs"),Y=m("el-form"),Z=m("el-card");return A(),N(Z,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:a(()=>[e(c,null,{default:a(()=>[e(i,{span:10},{default:a(()=>[ve]),_:1}),e(i,{span:14,style:{"text-align":"right"}},{default:a(()=>[e(C,{type:"success",onClick:u[0]||(u[0]=n=>t(pe)({formRef:r.value,state:f,proxy:t(x),route:t(s)})),plain:""},{default:a(()=>[Fe]),_:1}),e(C,{type:"info",onClick:u[1]||(u[1]=n=>t(me)({proxy:t(x),route:t(s)})),plain:""},{default:a(()=>[ge]),_:1})]),_:1})]),_:1})]),default:a(()=>[d("div",Ee,[e(Y,{ref_key:"formRef",ref:r,class:"zform",model:t(l),"label-width":"140px"},{default:a(()=>[e(X,{type:"card",modelValue:h.value,"onUpdate:modelValue":u[8]||(u[8]=n=>h.value=n)},{default:a(()=>[e(z,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:a(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:a(()=>[e(i,{span:12},{default:a(()=>[e(p,{label:"\u4EE3\u7406\u5546\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:a(()=>[d("div",be,[e(v,{modelValue:t(l).name,"onUpdate:modelValue":u[2]||(u[2]=n=>t(l).name=n)},null,8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(p,{label:"\u4EE3\u7406\u5546\u7F16\u53F7\uFF1A"},{default:a(()=>[d("div",ye,[V(d("span",{style:{"margin-left":"5px",color:"green"}},F(t(l).senum),513),[[w,t(l).id]]),V(d("span",Ae,"\u63D0\u4EA4\u540E\u81EA\u52A8\u751F\u6210",512),[[w,!t(l).id]])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:a(()=>[e(i,{span:12},{default:a(()=>[e(p,{label:"\u4EE3\u7406\u5546\u5730\u5740\uFF1A"},{default:a(()=>[d("div",Ve,[e(v,{modelValue:t(l).addre,"onUpdate:modelValue":u[3]||(u[3]=n=>t(l).addre=n),readonly:"",onClick:$},null,8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(p,{label:"\u4EE3\u7406\u5546\u8D44\u8D28\uFF1A"},{default:a(()=>[d("div",we,[e(J,{modelValue:t(l).level,"onUpdate:modelValue":u[4]||(u[4]=n=>t(l).level=n),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:a(()=>[(A(!0),ue(se,null,ne(f.levels,n=>(A(),N(G,{key:n.id,value:n.id,label:n.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:a(()=>[e(i,{span:24},{default:a(()=>[e(p,{label:"\u4EE3\u7406\u5546\u7ECF\u529E\u4EBA\uFF1A"},{default:a(()=>[d("div",xe,[e(v,{modelValue:t(b),"onUpdate:modelValue":u[5]||(u[5]=n=>O(b)?b.value=n:null),onClick:T,readonly:""},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:a(()=>[e(i,{span:24},{default:a(()=>[e(p,{label:"\u53EF\u67E5\u770B\u8005\uFF1A"},{default:a(()=>[d("div",he,[e(v,{type:"textarea",rows:4,modelValue:t(y),"onUpdate:modelValue":u[6]||(u[6]=n=>O(y)?y.value=n:null),readonly:"",onClick:I},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(z,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:a(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:a(()=>[e(i,{span:24},{default:a(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:a(()=>[d("div",Be,[e(v,{type:"textarea",rows:4,modelValue:t(l).notes,"onUpdate:modelValue":u[7]||(u[7]=n=>t(l).notes=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),V(e(c,null,{default:a(()=>[e(i,{span:6},{default:a(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:a(()=>[d("div",Ce,F(t(l).crman?t(l).crman.name:""),1)]),_:1})]),_:1}),e(i,{span:6},{default:a(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:a(()=>[d("div",ze,F(t(l).crtim),1)]),_:1})]),_:1}),e(i,{span:6},{default:a(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:a(()=>[d("div",De,F(t(l).upman?t(l).upman.name:""),1)]),_:1})]),_:1}),e(i,{span:6},{default:a(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:a(()=>[d("div",ke,F(t(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[w,t(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(_e,{ref_key:"orgModal",ref:E,onClose:L},null,512),e(ce,{ref_key:"amapRef",ref:B,onClose:q},null,512)]),_:1})}}}));export{Le as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207219.js b/vboot-web/src/main/resources/static/assets/edit.165429159207219.js deleted file mode 100644 index 032e420..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207219.js +++ /dev/null @@ -1 +0,0 @@ -var k=Object.defineProperty,R=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var V=(d,l,s)=>l in d?k(d,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[l]=s,g=(d,l)=>{for(var s in l||(l={}))S.call(l,s)&&V(d,s,l[s]);if(x)for(var s of x(l))N.call(l,s)&&V(d,s,l[s]);return d},h=(d,l)=>R(d,U(l));import{a as q,aB as I,j as B,a3 as M,ag as T,m as $,R as j,S as t,a2 as i,o as X,Z as e,u as a,e as p,T as Y,U as Z,Y as c,X as E,l as G}from"./vue.1654291592072.js";import{e as H,t as J,a as K}from"./edit.16542915920722.js";import"./index.1654291592072.js";const L=p("div",{style:{"line-height":"32px"}},"\u5BA2\u6237\u7EF4\u62A4",-1),O=E("\u4FDD \u5B58"),P=E("\u5173 \u95ED"),Q={style:{"margin-top":"8px","margin-bottom":"8px"}},W={class:"zinput"},ee={class:"zinput"},te={class:"zinput"},ae={class:"zinput",style:{height:"auto"}},le={class:"zinput"},oe={class:"zinput"},ue={class:"zinput"},se={class:"zinput"},ne={name:"SaCustMainEdit"},me=q(h(g({},ne),{setup(d){const l=I(),s=B(),{proxy:b}=G(),v=B("tab1"),f=M({url:"/sa/cust/main",params:{path:"",query:""},checks:[],form:{avtag:!0,items:[]}}),{form:o}=T(f);return $(async()=>{await H({state:f,route:l})}),(de,u)=>{const _=i("el-col"),A=i("el-button"),m=i("el-row"),F=i("el-input"),r=i("el-form-item"),w=i("el-switch"),y=i("el-tab-pane"),C=i("el-tabs"),D=i("el-form"),z=i("el-card");return X(),j(z,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(m,null,{default:t(()=>[e(_,{span:10},{default:t(()=>[L]),_:1}),e(_,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(A,{type:"success",onClick:u[0]||(u[0]=n=>a(J)({formRef:s.value,state:f,proxy:a(b),route:a(l)})),plain:""},{default:t(()=>[O]),_:1}),e(A,{type:"info",onClick:u[1]||(u[1]=n=>a(K)({proxy:a(b),route:a(l)})),plain:""},{default:t(()=>[P]),_:1})]),_:1})]),_:1})]),default:t(()=>[p("div",Q,[e(D,{ref_key:"formRef",ref:s,class:"zform",model:a(o),"label-width":"140px"},{default:t(()=>[e(C,{type:"card",modelValue:v.value,"onUpdate:modelValue":u[6]||(u[6]=n=>v.value=n)},{default:t(()=>[e(y,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(_,{span:24},{default:t(()=>[e(r,{label:"\u5BA2\u6237\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[p("div",W,[e(F,{modelValue:a(o).name,"onUpdate:modelValue":u[2]||(u[2]=n=>a(o).name=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(_,{span:12},{default:t(()=>[e(r,{label:"\u5BA2\u6237\u5730\u5740\uFF1A"},{default:t(()=>[p("div",ee,[e(F,{modelValue:a(o).addre,"onUpdate:modelValue":u[3]||(u[3]=n=>a(o).addre=n)},null,8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:12},{default:t(()=>[e(r,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[p("div",te,[e(w,{modelValue:a(o).avtag,"onUpdate:modelValue":u[4]||(u[4]=n=>a(o).avtag=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(_,{span:24},{default:t(()=>[e(r,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[p("div",ae,[e(F,{type:"textarea",rows:4,modelValue:a(o).notes,"onUpdate:modelValue":u[5]||(u[5]=n=>a(o).notes=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Y(e(m,null,{default:t(()=>[e(_,{span:6},{default:t(()=>[e(r,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[p("div",le,c(a(o).crman?a(o).crman.name:""),1)]),_:1})]),_:1}),e(_,{span:6},{default:t(()=>[e(r,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[p("div",oe,c(a(o).crtim),1)]),_:1})]),_:1}),e(_,{span:6},{default:t(()=>[e(r,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[p("div",ue,c(a(o).upman?a(o).upman.name:""),1)]),_:1})]),_:1}),e(_,{span:6},{default:t(()=>[e(r,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[p("div",se,c(a(o).uptim),1)]),_:1})]),_:1})]),_:1},512),[[Z,a(o).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{me as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920722.js b/vboot-web/src/main/resources/static/assets/edit.16542915920722.js deleted file mode 100644 index 31a1ff6..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920722.js +++ /dev/null @@ -1 +0,0 @@ -var p=Object.defineProperty;var n=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var a=(e,t,s)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,f=(e,t)=>{for(var s in t||(t={}))g.call(t,s)&&a(e,s,t[s]);if(n)for(var s of n(t))h.call(t,s)&&a(e,s,t[s]);return e};import{g as o,E as m,i as w}from"./index.1654291592072.js";const y=async e=>{var s;e.state.params=e.route;let t=(s=e.state.params.query)==null?void 0:s.id;t?e.state.form=await o({url:e.state.url+"/one/"+t,method:"get"}):e.state.form.avtag=!0},v=async e=>{if(!await u(e.formRef))return!1;e.iouField||(e.iouField="id"),e.state.form[e.iouField]?await o({url:e.state.url,method:"put",data:e.state.form}):await o({url:e.state.url,method:"post",data:e.state.form}),b({proxy:e.proxy,route:e.route})},b=e=>{e.proxy.mittBus.emit("onCurrentContextmenuClick",Object.assign({},f({contextMenuClickId:1},e.route)))},x=async e=>{const t=w.service({lock:!0,fullscreen:!0,text:"",background:"rgba(0, 0, 0, 0.1)"});if(!await u(e.formRef))return t.close(),!1;let i=!0;e.iouField||(e.iouField="id"),e.state.form[e.iouField]?await o({url:e.state.url,method:"put",data:e.state.form}).catch(()=>{i=!1}):await o({url:e.state.url,method:"post",data:e.state.form}).catch(()=>{i=!1}),i?(m({showClose:!0,message:"\u4FDD\u5B58\u6210\u529F\uFF0C1\u79D2\u540E\u9875\u9762\u6309\u81EA\u52A8\u5173\u95ED",type:"success",duration:1e3}),setTimeout(()=>{window.close()},1e3)):t.close()},C=()=>{window.close()},k=async e=>{if(!await u(e.formRef))return!1;e.iouField||(e.iouField="id"),e.state.form[e.iouField]?await o({url:e.state.url,method:"put",data:e.state.form}):await o({url:e.state.url,method:"post",data:e.state.form}),e.state.show=!1},E=async e=>{e.id?e.state.form=await o({url:e.state.url+"/one/"+e.id,method:"get"}):e.state.form={avtag:!0},e.state.show=!0},u=async e=>{let t=!1;return await e.validate((s,i)=>{if(s)t=!0;else{let l="";for(const c in i)for(let r=0;r{const t=w.service({lock:!0,fullscreen:!0,text:"",background:"rgba(0, 0, 0, 0.1)"});let s=!0;if(!await u(e.formRef))return t.close(),!1;e.iouField||(e.iouField="id"),e.state.form[e.iouField]?await o({url:e.state.url,method:"put",data:e.state.form}).catch(()=>{s=!1}):await o({url:e.state.url,method:"post",data:e.state.form}).catch(()=>{s=!1}),t.close(),s&&(e.state.show=!1)};export{b as a,k as b,x as c,E as d,y as e,d as m,C as p,v as t}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207220.js b/vboot-web/src/main/resources/static/assets/edit.165429159207220.js deleted file mode 100644 index 8b8450c..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207220.js +++ /dev/null @@ -1 +0,0 @@ -var j=Object.defineProperty,J=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var z=(m,n,r)=>n in m?j(m,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[n]=r,D=(m,n)=>{for(var r in n||(n={}))Y.call(n,r)&&z(m,r,n[r]);if(C)for(var r of C(n))Z.call(n,r)&&z(m,r,n[r]);return m},M=(m,n)=>J(m,X(n));import{a as G,aB as H,j as y,a3 as K,ag as L,m as P,B as k,R as Q,S as l,a2 as _,o as W,Z as e,u as o,e as d,T as A,U as V,Y as v,J as R,X as U,l as ee,ap as le}from"./vue.1654291592072.js";import{e as te,t as oe,a as ae}from"./edit.16542915920722.js";import{O as ue}from"./OrgModal.1654291592072.js";import"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ne=d("div",{style:{"line-height":"32px"}},"\u4EE3\u7406\u5546\u7EF4\u62A4",-1),se=U("\u4FDD \u5B58"),de=U("\u5173 \u95ED"),re={style:{"margin-top":"8px","margin-bottom":"8px"}},ie={class:"zinput"},pe={class:"zinput"},me={style:{"margin-left":"5px",color:"#b9abab"}},_e={class:"zinput"},fe={class:"zinput"},ce={class:"zinput"},ve={class:"zinput",style:{height:"auto"}},Fe={class:"zinput",style:{height:"auto"}},ge={class:"zinput"},be={class:"zinput"},Ee={class:"zinput"},ye={class:"zinput"},Ae={name:"SaAgentMainEdit"},ze=G(M(D({},Ae),{setup(m){const n=H(),r=y(),{proxy:w}=ee(),x=y("tab1"),F=K({url:"/sa/agent/main",params:{path:"",query:""},checks:[],form:{avtag:!0,items:[]}}),{form:t}=L(F);P(async()=>{await te({state:F,route:n})});const g=y(),N=()=>{g.value.openModal({opener:"opman",orgType:8})},O=()=>{g.value.openModal({opener:"viewers",orgType:11,selectMode:2,orgs:le(t.value.viewers)})},S=u=>{u.opener=="opman"?u.orgs&&u.orgs.length>0?(t.value.opman={id:u.orgs[0].id,name:u.orgs[0].name},t.value.opmid=u.orgs[0].id):(t.value.opman=null,t.value.opmid=null):u.opener=="viewers"&&(u.orgs&&u.orgs.length>0?t.value.viewers=u.orgs:t.value.viewers=null)},b=k(()=>{let u="";return t.value.opman&&(u=t.value.opman.name),u}),E=k(()=>{let u="";if(t.value.viewers&&t.value.viewers.length>0)for(const a of t.value.viewers)u+=a.name+"\uFF1B";return u});return(u,a)=>{const i=_("el-col"),h=_("el-button"),f=_("el-row"),c=_("el-input"),p=_("el-form-item"),T=_("el-switch"),B=_("el-tab-pane"),q=_("el-tabs"),I=_("el-form"),$=_("el-card");return W(),Q($,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:l(()=>[e(f,null,{default:l(()=>[e(i,{span:10},{default:l(()=>[ne]),_:1}),e(i,{span:14,style:{"text-align":"right"}},{default:l(()=>[e(h,{type:"success",onClick:a[0]||(a[0]=s=>o(oe)({formRef:r.value,state:F,proxy:o(w),route:o(n)})),plain:""},{default:l(()=>[se]),_:1}),e(h,{type:"info",onClick:a[1]||(a[1]=s=>o(ae)({proxy:o(w),route:o(n)})),plain:""},{default:l(()=>[de]),_:1})]),_:1})]),_:1})]),default:l(()=>[d("div",re,[e(I,{ref_key:"formRef",ref:r,class:"zform",model:o(t),"label-width":"140px"},{default:l(()=>[e(q,{type:"card",modelValue:x.value,"onUpdate:modelValue":a[8]||(a[8]=s=>x.value=s)},{default:l(()=>[e(B,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:l(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(i,{span:12},{default:l(()=>[e(p,{label:"\u4EE3\u7406\u5546\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",ie,[e(c,{modelValue:o(t).name,"onUpdate:modelValue":a[2]||(a[2]=s=>o(t).name=s)},null,8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(p,{label:"\u4EE3\u7406\u5546\u7F16\u53F7\uFF1A"},{default:l(()=>[d("div",pe,[A(d("span",{style:{"margin-left":"5px",color:"green"}},v(o(t).senum),513),[[V,o(t).id]]),A(d("span",me,"\u63D0\u4EA4\u540E\u81EA\u52A8\u751F\u6210",512),[[V,!o(t).id]])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:l(()=>[e(i,{span:12},{default:l(()=>[e(p,{label:"\u4EE3\u7406\u5546\u5730\u5740\uFF1A"},{default:l(()=>[d("div",_e,[e(c,{modelValue:o(t).addre,"onUpdate:modelValue":a[3]||(a[3]=s=>o(t).addre=s)},null,8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:12},{default:l(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:l(()=>[d("div",fe,[e(T,{modelValue:o(t).avtag,"onUpdate:modelValue":a[4]||(a[4]=s=>o(t).avtag=s)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(p,{label:"\u4EE3\u7406\u5546\u7ECF\u529E\u4EBA\uFF1A"},{default:l(()=>[d("div",ce,[e(c,{modelValue:o(b),"onUpdate:modelValue":a[5]||(a[5]=s=>R(b)?b.value=s:null),onClick:N,readonly:""},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:l(()=>[e(i,{span:24},{default:l(()=>[e(p,{label:"\u53EF\u67E5\u770B\u8005\uFF1A"},{default:l(()=>[d("div",ve,[e(c,{type:"textarea",rows:4,modelValue:o(E),"onUpdate:modelValue":a[6]||(a[6]=s=>R(E)?E.value=s:null),readonly:"",onClick:O},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(B,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:l(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(i,{span:24},{default:l(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:l(()=>[d("div",Fe,[e(c,{type:"textarea",rows:4,modelValue:o(t).notes,"onUpdate:modelValue":a[7]||(a[7]=s=>o(t).notes=s)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),A(e(f,null,{default:l(()=>[e(i,{span:6},{default:l(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:l(()=>[d("div",ge,v(o(t).crman?o(t).crman.name:""),1)]),_:1})]),_:1}),e(i,{span:6},{default:l(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:l(()=>[d("div",be,v(o(t).crtim),1)]),_:1})]),_:1}),e(i,{span:6},{default:l(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:l(()=>[d("div",Ee,v(o(t).upman?o(t).upman.name:""),1)]),_:1})]),_:1}),e(i,{span:6},{default:l(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:l(()=>[d("div",ye,v(o(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[V,o(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(ue,{ref_key:"orgModal",ref:g,onClose:S},null,512)]),_:1})}}}));export{ze as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207221.js b/vboot-web/src/main/resources/static/assets/edit.165429159207221.js deleted file mode 100644 index 30b91cf..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207221.js +++ /dev/null @@ -1 +0,0 @@ -import{e as E,t as w,a as D}from"./edit.16542915920722.js";import{a as h,aB as A,j as F,a3 as R,ag as k,m as B,R as N,S as e,a2 as l,o as z,Z as t,u as o,e as d,X as v,l as U}from"./vue.1654291592072.js";import"./index.1654291592072.js";const q=d("div",{style:{"line-height":"32px"}},"\u5F85\u529E\u4FE1\u606F",-1),I=v("\u4FDD \u5B58"),S=v("\u5173 \u95ED"),$={style:{"margin-top":"8px","margin-bottom":"8px"}},j={class:"zinput"},H={class:"zinput",style:{height:"auto"}},J=h({name:"edit",setup(M){const r=A(),_=F(),{proxy:i}=U(),f=F("tab1"),p=R({url:"/sys/todo/main",params:{path:"",query:""},form:{avtag:!0}}),{form:s}=k(p);return B(async()=>{await E({state:p,route:r})}),(T,a)=>{const u=l("el-col"),c=l("el-button"),m=l("el-row"),b=l("el-input"),y=l("el-form-item"),x=l("el-tab-pane"),V=l("el-tabs"),g=l("el-form"),C=l("el-card");return z(),N(C,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:e(()=>[t(m,null,{default:e(()=>[t(u,{span:10},{default:e(()=>[q]),_:1}),t(u,{span:14,style:{"text-align":"right"}},{default:e(()=>[t(c,{type:"success",onClick:a[0]||(a[0]=n=>o(w)({formRef:_.value,state:p,proxy:o(i),route:o(r)})),plain:""},{default:e(()=>[I]),_:1}),t(c,{type:"info",onClick:a[1]||(a[1]=n=>o(D)({proxy:o(i),route:o(r)})),plain:""},{default:e(()=>[S]),_:1})]),_:1})]),_:1})]),default:e(()=>[d("div",$,[t(g,{ref_key:"formRef",ref:_,class:"zform",model:o(s),"label-width":"140px"},{default:e(()=>[t(V,{type:"card",modelValue:f.value,"onUpdate:modelValue":a[4]||(a[4]=n=>f.value=n)},{default:e(()=>[t(x,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:e(()=>[t(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[t(u,{span:24},{default:e(()=>[t(y,{label:"\u5F85\u529E\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:e(()=>[d("div",j,[t(b,{modelValue:o(s).name,"onUpdate:modelValue":a[2]||(a[2]=n=>o(s).name=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),t(x,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:e(()=>[t(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[t(u,{span:24},{default:e(()=>[t(y,{label:"\u5907\u6CE8\uFF1A"},{default:e(()=>[d("div",H,[t(b,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:o(s).notes,"onUpdate:modelValue":a[3]||(a[3]=n=>o(s).notes=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}});export{J as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207222.js b/vboot-web/src/main/resources/static/assets/edit.165429159207222.js deleted file mode 100644 index 33ce0c8..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207222.js +++ /dev/null @@ -1 +0,0 @@ -var Z=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var k=(_,n,d)=>n in _?Z(_,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[n]=d,D=(_,n)=>{for(var d in n||(n={}))K.call(n,d)&&k(_,d,n[d]);if(B)for(var d of B(n))O.call(n,d)&&k(_,d,n[d]);return _},z=(_,n)=>G(_,J(n));import{a as P,j as y,aB as Q,a3 as W,ag as ee,m as te,n as le,R,S as t,a2 as s,o as C,Z as e,u as a,e as i,b as ae,a7 as ue,F as oe,T as ne,U as se,Y as h,X as U,l as de}from"./vue.1654291592072.js";import{e as ie,a as re,t as pe}from"./edit.16542915920722.js";import{g as S}from"./index.1654291592072.js";const _e=i("div",{style:{"line-height":"32px"}},"\u6821\u9A8C\u5206\u914D",-1),ce=U("\u4FDD \u5B58"),me=U("\u5173 \u95ED"),fe={style:{"margin-top":"8px","margin-bottom":"8px"}},Fe={class:"zinput"},be={class:"zinput"},ve={class:"zinput"},he={class:"zinput"},ge={class:"zinput"},Ae={class:"zinput"},ye={style:{"margin-left":"15px","margin-right":"15px"}},Ce={class:"zinput",style:{height:"auto"}},Ee={class:"zinput"},Ve={class:"zinput"},we={class:"zinput"},xe={class:"zinput"},Be={name:"teAllotCheck"},Se=P(z(D({},Be),{setup(_){const n=y(),d=Q(),{proxy:E}=de(),f=W({url:"/te/allot/check",cates:[],params:{path:"",query:""},checks:[],form:{avtag:!0,items:[]}}),{form:l,cates:N,checks:g}=ee(f),V=y("tab1");te(async()=>{await ie({state:f,route:d}),l.value.id?await w():l.value.items=[],await q()});const F=y(),T=async()=>{l.value.items=[];for(let c=0;c{f.cates=await S({url:"/te/prod/cate/list",method:"get"})},w=async()=>{g.value=await S({url:"/te/allot/check/checks/",method:"get",params:{id:l.value.catid}}),await le(()=>{g.value.forEach(c=>{for(const u of l.value.items)if(u.cheid==c.id){F.value.toggleRowSelection(c,!0);break}})})};return(c,u)=>{const r=s("el-col"),x=s("el-button"),m=s("el-row"),b=s("el-input"),p=s("el-form-item"),I=s("el-option"),$=s("el-select"),j=s("el-input-number"),H=s("el-switch"),A=s("el-tab-pane"),v=s("el-table-column"),L=s("el-table"),M=s("el-tabs"),X=s("el-form"),Y=s("el-card");return C(),R(Y,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(m,null,{default:t(()=>[e(r,{span:10},{default:t(()=>[_e]),_:1}),e(r,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(x,{type:"success",onClick:u[0]||(u[0]=o=>T()),plain:""},{default:t(()=>[ce]),_:1}),e(x,{type:"info",onClick:u[1]||(u[1]=o=>a(re)({proxy:a(E),route:a(d)})),plain:""},{default:t(()=>[me]),_:1})]),_:1})]),_:1})]),default:t(()=>[i("div",fe,[e(X,{ref_key:"formRef",ref:n,class:"zform",model:a(l),"label-width":"140px"},{default:t(()=>[e(M,{type:"card",modelValue:V.value,"onUpdate:modelValue":u[9]||(u[9]=o=>V.value=o)},{default:t(()=>[e(A,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u5206\u914D\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",Fe,[e(b,{modelValue:a(l).name,"onUpdate:modelValue":u[2]||(u[2]=o=>a(l).name=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",be,[e($,{modelValue:a(l).catid,"onUpdate:modelValue":u[3]||(u[3]=o=>a(l).catid=o),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B",onChange:w},{default:t(()=>[(C(!0),ae(oe,null,ue(a(N),o=>(C(),R(I,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u7CFB\u5217\uFF1A"},{default:t(()=>[i("div",ve,[e(b,{modelValue:a(l).serid,"onUpdate:modelValue":u[4]||(u[4]=o=>a(l).serid=o),"suffix-icon":c.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u578B\u53F7\uFF1A"},{default:t(()=>[i("div",he,[e(b,{modelValue:a(l).modid,"onUpdate:modelValue":u[5]||(u[5]=o=>a(l).modid=o),"suffix-icon":c.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[i("div",ge,[e(j,{modelValue:a(l).ornum,"onUpdate:modelValue":u[6]||(u[6]=o=>a(l).ornum=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",Ae,[e(H,{modelValue:a(l).avtag,"onUpdate:modelValue":u[7]||(u[7]=o=>a(l).avtag=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(A,{label:"\u6821\u9A8C\u5206\u914D",name:"tab2"},{default:t(()=>[i("div",ye,[e(L,{ref_key:"listTableRef",ref:F,data:a(g),style:{width:"100%",height:"500px"}},{default:t(()=>[e(v,{type:"selection",width:"55"}),e(v,{prop:"name",label:"\u6821\u9A8C\u540D\u79F0",width:"180"}),e(v,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),e(v,{prop:"notes",label:"\u5907\u6CE8"})]),_:1},8,["data"])])]),_:1}),e(A,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",Ce,[e(b,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(l).notes,"onUpdate:modelValue":u[8]||(u[8]=o=>a(l).notes=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),ne(e(m,null,{default:t(()=>[e(r,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i("div",Ee,h(a(l).crman?a(l).crman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",Ve,h(a(l).crtim),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i("div",we,h(a(l).upman?a(l).upman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",xe,h(a(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[se,a(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Se as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207223.js b/vboot-web/src/main/resources/static/assets/edit.165429159207223.js deleted file mode 100644 index 11cf202..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207223.js +++ /dev/null @@ -1 +0,0 @@ -var Z=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var D=(_,n,d)=>n in _?Z(_,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[n]=d,z=(_,n)=>{for(var d in n||(n={}))K.call(n,d)&&D(_,d,n[d]);if(B)for(var d of B(n))O.call(n,d)&&D(_,d,n[d]);return _},R=(_,n)=>G(_,J(n));import{a as P,j as y,aB as Q,a3 as W,ag as ee,m as te,n as le,R as k,S as t,a2 as s,o as E,Z as e,u as a,e as i,b as ae,a7 as ue,F as oe,T as ne,U as se,Y as A,X as U,l as de}from"./vue.1654291592072.js";import{e as ie,a as re,t as pe}from"./edit.16542915920722.js";import{g as S}from"./index.1654291592072.js";const _e=i("div",{style:{"line-height":"32px"}},"\u9A71\u52A8\u5206\u914D",-1),me=U("\u4FDD \u5B58"),ce=U("\u5173 \u95ED"),fe={style:{"margin-top":"8px","margin-bottom":"8px"}},Fe={class:"zinput"},ve={class:"zinput"},be={class:"zinput"},Ae={class:"zinput"},ge={class:"zinput"},he={class:"zinput"},ye={style:{"margin-left":"15px","margin-right":"15px"}},Ee={class:"zinput",style:{height:"auto"}},Ve={class:"zinput"},we={class:"zinput"},xe={class:"zinput"},Ce={class:"zinput"},Be={name:"teAllotDrive"},Se=P(R(z({},Be),{setup(_){const n=y(),d=Q(),{proxy:V}=de(),f=W({url:"/te/allot/drive",cates:[],params:{path:"",query:""},drives:[],form:{avtag:!0,items:[]}}),{form:l,cates:N,drives:g}=ee(f),w=y("tab1");te(async()=>{await ie({state:f,route:d}),l.value.id?await x():l.value.items=[],await q()});const F=y(),T=async()=>{l.value.items=[];for(let m=0;m{f.cates=await S({url:"/te/prod/cate/list",method:"get"})},x=async()=>{g.value=await S({url:"/te/allot/drive/drives/",method:"get",params:{id:l.value.catid}}),await le(()=>{g.value.forEach(m=>{for(const u of l.value.items)if(u.driid==m.id){F.value.toggleRowSelection(m,!0);break}})})};return(m,u)=>{const r=s("el-col"),C=s("el-button"),c=s("el-row"),v=s("el-input"),p=s("el-form-item"),I=s("el-option"),$=s("el-select"),j=s("el-input-number"),H=s("el-switch"),h=s("el-tab-pane"),b=s("el-table-column"),L=s("el-table"),M=s("el-tabs"),X=s("el-form"),Y=s("el-card");return E(),k(Y,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(c,null,{default:t(()=>[e(r,{span:10},{default:t(()=>[_e]),_:1}),e(r,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(C,{type:"success",onClick:u[0]||(u[0]=o=>T()),plain:""},{default:t(()=>[me]),_:1}),e(C,{type:"info",onClick:u[1]||(u[1]=o=>a(re)({proxy:a(V),route:a(d)})),plain:""},{default:t(()=>[ce]),_:1})]),_:1})]),_:1})]),default:t(()=>[i("div",fe,[e(X,{ref_key:"formRef",ref:n,class:"zform",model:a(l),"label-width":"140px"},{default:t(()=>[e(M,{type:"card",modelValue:w.value,"onUpdate:modelValue":u[9]||(u[9]=o=>w.value=o)},{default:t(()=>[e(h,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u5206\u914D\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",Fe,[e(v,{modelValue:a(l).name,"onUpdate:modelValue":u[2]||(u[2]=o=>a(l).name=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",ve,[e($,{modelValue:a(l).catid,"onUpdate:modelValue":u[3]||(u[3]=o=>a(l).catid=o),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B",onChange:x},{default:t(()=>[(E(!0),ae(oe,null,ue(a(N),o=>(E(),k(I,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u7CFB\u5217\uFF1A"},{default:t(()=>[i("div",be,[e(v,{modelValue:a(l).serid,"onUpdate:modelValue":u[4]||(u[4]=o=>a(l).serid=o),"suffix-icon":m.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u578B\u53F7\uFF1A"},{default:t(()=>[i("div",Ae,[e(v,{modelValue:a(l).modid,"onUpdate:modelValue":u[5]||(u[5]=o=>a(l).modid=o),"suffix-icon":m.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[i("div",ge,[e(j,{modelValue:a(l).ornum,"onUpdate:modelValue":u[6]||(u[6]=o=>a(l).ornum=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",he,[e(H,{modelValue:a(l).avtag,"onUpdate:modelValue":u[7]||(u[7]=o=>a(l).avtag=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{label:"\u9A71\u52A8\u5206\u914D",name:"tab2"},{default:t(()=>[i("div",ye,[e(L,{ref_key:"listTableRef",ref:F,data:a(g),style:{width:"100%",height:"500px"}},{default:t(()=>[e(b,{type:"selection",width:"55"}),e(b,{prop:"name",label:"\u9A71\u52A8\u79F0",width:"180"}),e(b,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),e(b,{prop:"notes",label:"\u5907\u6CE8"})]),_:1},8,["data"])])]),_:1}),e(h,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",Ee,[e(v,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(l).notes,"onUpdate:modelValue":u[8]||(u[8]=o=>a(l).notes=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),ne(e(c,null,{default:t(()=>[e(r,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i("div",Ve,A(a(l).crman?a(l).crman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",we,A(a(l).crtim),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i("div",xe,A(a(l).upman?a(l).upman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",Ce,A(a(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[se,a(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Se as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207224.js b/vboot-web/src/main/resources/static/assets/edit.165429159207224.js deleted file mode 100644 index 07051d9..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207224.js +++ /dev/null @@ -1 +0,0 @@ -var Z=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var k=(_,n,d)=>n in _?Z(_,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[n]=d,D=(_,n)=>{for(var d in n||(n={}))K.call(n,d)&&k(_,d,n[d]);if(B)for(var d of B(n))O.call(n,d)&&k(_,d,n[d]);return _},z=(_,n)=>G(_,J(n));import{a as P,j as y,aB as Q,a3 as W,ag as ee,m as te,n as le,R,S as t,a2 as s,o as E,Z as e,u as a,e as i,b as ae,a7 as ue,F as oe,T as ne,U as se,Y as g,X as U,l as de}from"./vue.1654291592072.js";import{e as ie,a as re,t as pe}from"./edit.16542915920722.js";import{g as S}from"./index.1654291592072.js";const _e=i("div",{style:{"line-height":"32px"}},"\u8054\u52A8\u5206\u914D",-1),me=U("\u4FDD \u5B58"),ce=U("\u5173 \u95ED"),fe={style:{"margin-top":"8px","margin-bottom":"8px"}},Fe={class:"zinput"},be={class:"zinput"},ve={class:"zinput"},ge={class:"zinput"},Ae={class:"zinput"},he={class:"zinput"},ye={style:{"margin-left":"15px","margin-right":"15px"}},Ee={class:"zinput",style:{height:"auto"}},Ve={class:"zinput"},we={class:"zinput"},xe={class:"zinput"},Ce={class:"zinput"},Be={name:"teAllotLink"},Se=P(z(D({},Be),{setup(_){const n=y(),d=Q(),{proxy:V}=de(),f=W({url:"/te/allot/link",cates:[],params:{path:"",query:""},links:[],form:{avtag:!0,items:[]}}),{form:l,cates:N,links:A}=ee(f),w=y("tab1");te(async()=>{await ie({state:f,route:d}),l.value.id?await x():l.value.items=[],await q()});const F=y(),T=async()=>{l.value.items=[];for(let m=0;m{f.cates=await S({url:"/te/prod/cate/list",method:"get"})},x=async()=>{A.value=await S({url:"/te/allot/link/links/",method:"get",params:{id:l.value.catid}}),await le(()=>{A.value.forEach(m=>{for(const u of l.value.items)if(u.linid==m.id){F.value.toggleRowSelection(m,!0);break}})})};return(m,u)=>{const r=s("el-col"),C=s("el-button"),c=s("el-row"),b=s("el-input"),p=s("el-form-item"),I=s("el-option"),L=s("el-select"),$=s("el-input-number"),j=s("el-switch"),h=s("el-tab-pane"),v=s("el-table-column"),H=s("el-table"),M=s("el-tabs"),X=s("el-form"),Y=s("el-card");return E(),R(Y,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(c,null,{default:t(()=>[e(r,{span:10},{default:t(()=>[_e]),_:1}),e(r,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(C,{type:"success",onClick:u[0]||(u[0]=o=>T()),plain:""},{default:t(()=>[me]),_:1}),e(C,{type:"info",onClick:u[1]||(u[1]=o=>a(re)({proxy:a(V),route:a(d)})),plain:""},{default:t(()=>[ce]),_:1})]),_:1})]),_:1})]),default:t(()=>[i("div",fe,[e(X,{ref_key:"formRef",ref:n,class:"zform",model:a(l),"label-width":"140px"},{default:t(()=>[e(M,{type:"card",modelValue:w.value,"onUpdate:modelValue":u[9]||(u[9]=o=>w.value=o)},{default:t(()=>[e(h,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u5206\u914D\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",Fe,[e(b,{modelValue:a(l).name,"onUpdate:modelValue":u[2]||(u[2]=o=>a(l).name=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",be,[e(L,{modelValue:a(l).catid,"onUpdate:modelValue":u[3]||(u[3]=o=>a(l).catid=o),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B",onChange:x},{default:t(()=>[(E(!0),ae(oe,null,ue(a(N),o=>(E(),R(I,{key:o.id,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u7CFB\u5217\uFF1A"},{default:t(()=>[i("div",ve,[e(b,{modelValue:a(l).serid,"onUpdate:modelValue":u[4]||(u[4]=o=>a(l).serid=o),"suffix-icon":m.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u578B\u53F7\uFF1A"},{default:t(()=>[i("div",ge,[e(b,{modelValue:a(l).modid,"onUpdate:modelValue":u[5]||(u[5]=o=>a(l).modid=o),"suffix-icon":m.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[i("div",Ae,[e($,{modelValue:a(l).ornum,"onUpdate:modelValue":u[6]||(u[6]=o=>a(l).ornum=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",he,[e(j,{modelValue:a(l).avtag,"onUpdate:modelValue":u[7]||(u[7]=o=>a(l).avtag=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{label:"\u8054\u52A8\u5206\u914D",name:"tab2"},{default:t(()=>[i("div",ye,[e(H,{ref_key:"listTableRef",ref:F,data:a(A),style:{width:"100%",height:"500px"}},{default:t(()=>[e(v,{type:"selection",width:"55"}),e(v,{prop:"name",label:"\u8054\u52A8\u540D\u79F0",width:"180"}),e(v,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),e(v,{prop:"notes",label:"\u5907\u6CE8"})]),_:1},8,["data"])])]),_:1}),e(h,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",Ee,[e(b,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(l).notes,"onUpdate:modelValue":u[8]||(u[8]=o=>a(l).notes=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),ne(e(c,null,{default:t(()=>[e(r,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i("div",Ve,g(a(l).crman?a(l).crman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",we,g(a(l).crtim),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i("div",xe,g(a(l).upman?a(l).upman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",Ce,g(a(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[se,a(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Se as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207225.js b/vboot-web/src/main/resources/static/assets/edit.165429159207225.js deleted file mode 100644 index f864ae6..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207225.js +++ /dev/null @@ -1 +0,0 @@ -var Q=Object.defineProperty,W=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(_,s,r)=>s in _?Q(_,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):_[s]=r,j=(_,s)=>{for(var r in s||(s={}))te.call(s,r)&&N(_,r,s[r]);if(S)for(var r of S(s))le.call(s,r)&&N(_,r,s[r]);return _},I=(_,s)=>W(_,ee(s));import{a as ae,j as y,aB as ue,a3 as oe,ag as ne,m as se,n as de,R as E,S as t,a2 as d,o as v,Z as e,u as o,e as i,b as T,a7 as q,F as $,T as ie,U as re,Y as A,X as L,l as me}from"./vue.1654291592072.js";import{e as pe,a as _e,t as ce}from"./edit.16542915920722.js";import{g as H}from"./index.1654291592072.js";const fe=i("div",{style:{"line-height":"32px"}},"\u53C2\u6570\u5206\u914D",-1),Fe=L("\u4FDD \u5B58"),ve=L("\u5173 \u95ED"),be={style:{"margin-top":"8px","margin-bottom":"8px"}},ge={class:"zinput"},he={class:"zinput"},Ve={class:"zinput"},ye={class:"zinput"},Ae={class:"zinput"},we={class:"zinput"},Ce={class:"zinput"},Ee={style:{"margin-left":"15px","margin-right":"15px"}},xe={class:"zinput",style:{height:"auto"}},Be={class:"zinput"},De={class:"zinput"},ze={class:"zinput"},Ue={class:"zinput"},ke={name:"teAllotParam"},Ie=ae(I(j({},ke),{setup(_){const s=y(),r=ue(),{proxy:x}=me(),b=oe({url:"/te/allot/param",cates:[],screens:[],params:{path:"",query:""},form:{avtag:!0,items:[]}}),{form:l,cates:M,screens:c}=ne(b),B=y("tab1");se(async()=>{await pe({state:b,route:r}),l.value.id?await D():l.value.items=[],await X()});const g=y([]),P=async()=>{l.value.items=[];for(let m=0;m{b.cates=await H({url:"/te/prod/cate/list",method:"get"})},w=y(""),D=async()=>{c.value=await H({url:"/te/allot/param/screens/",method:"get",params:{id:l.value.catid}}),de(()=>{for(let m=0;m{console.log(l.value.items);for(const n of l.value.items)if(console.log(n.parid),n.parid==a.id){g.value[m].toggleRowSelection(a,!0);break}});c.value.length>0&&(w.value=c.value[0].id)})};return(m,a)=>{const n=d("el-col"),z=d("el-button"),f=d("el-row"),h=d("el-input"),p=d("el-form-item"),C=d("el-option"),U=d("el-select"),Y=d("el-input-number"),Z=d("el-switch"),V=d("el-tab-pane"),F=d("el-table-column"),G=d("el-table"),k=d("el-tabs"),J=d("el-form"),K=d("el-card");return v(),E(K,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(f,null,{default:t(()=>[e(n,{span:10},{default:t(()=>[fe]),_:1}),e(n,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(z,{type:"success",onClick:a[0]||(a[0]=u=>P()),plain:""},{default:t(()=>[Fe]),_:1}),e(z,{type:"info",onClick:a[1]||(a[1]=u=>o(_e)({proxy:o(x),route:o(r)})),plain:""},{default:t(()=>[ve]),_:1})]),_:1})]),_:1})]),default:t(()=>[i("div",be,[e(J,{ref_key:"formRef",ref:s,class:"zform",model:o(l),"label-width":"140px"},{default:t(()=>[e(k,{type:"card",modelValue:B.value,"onUpdate:modelValue":a[11]||(a[11]=u=>B.value=u)},{default:t(()=>[e(V,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(n,{span:12},{default:t(()=>[e(p,{label:"\u5206\u914D\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",ge,[e(h,{modelValue:o(l).name,"onUpdate:modelValue":a[2]||(a[2]=u=>o(l).name=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(n,{span:12},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",he,[e(U,{modelValue:o(l).catid,"onUpdate:modelValue":a[3]||(a[3]=u=>o(l).catid=u),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B",onChange:D},{default:t(()=>[(v(!0),T($,null,q(o(M),u=>(v(),E(C,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u7CFB\u5217\uFF1A"},{default:t(()=>[i("div",Ve,[e(h,{modelValue:o(l).serid,"onUpdate:modelValue":a[4]||(a[4]=u=>o(l).serid=u),"suffix-icon":m.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u578B\u53F7\uFF1A"},{default:t(()=>[i("div",ye,[e(h,{modelValue:o(l).modid,"onUpdate:modelValue":a[5]||(a[5]=u=>o(l).modid=u),"suffix-icon":m.Search},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(n,{span:12},{default:t(()=>[e(p,{label:"\u9A71\u52A8\u65B9\u5F0F\uFF1A"},{default:t(()=>[i("div",Ae,[e(U,{modelValue:o(l).chway,"onUpdate:modelValue":a[6]||(a[6]=u=>o(l).chway=u),style:{width:"100%"}},{default:t(()=>[e(C,{value:"a",label:"excel\u516C\u5F0F"}),e(C,{value:"b",label:"js\u51FD\u6570"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[i("div",we,[e(Y,{modelValue:o(l).ornum,"onUpdate:modelValue":a[7]||(a[7]=u=>o(l).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",Ce,[e(Z,{modelValue:o(l).avtag,"onUpdate:modelValue":a[8]||(a[8]=u=>o(l).avtag=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(V,{label:"\u53C2\u6570\u5206\u914D",name:"tab2"},{default:t(()=>[i("div",Ee,[e(k,{modelValue:w.value,"onUpdate:modelValue":a[9]||(a[9]=u=>w.value=u)},{default:t(()=>[(v(!0),T($,null,q(o(c),(u,O)=>(v(),E(V,{label:u.name,name:u.id,key:u.id},{default:t(()=>[e(G,{ref_for:!0,ref:R=>{R&&(o(g)[O]=R)},data:u.params,style:{width:"100%",height:"500px"}},{default:t(()=>[e(F,{type:"selection",width:"55"}),e(F,{prop:"code",label:"\u53C2\u6570\u4EE3\u7801",width:"180"}),e(F,{prop:"name",label:"\u53C2\u6570\u540D\u79F0",width:"180"}),e(F,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),e(F,{prop:"notes",label:"\u5907\u6CE8"})]),_:2},1032,["data"])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])]),_:1}),e(V,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(n,{span:24},{default:t(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",xe,[e(h,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:o(l).notes,"onUpdate:modelValue":a[10]||(a[10]=u=>o(l).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),ie(e(f,null,{default:t(()=>[e(n,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i("div",Be,A(o(l).crman?o(l).crman.name:""),1)]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",De,A(o(l).crtim),1)]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i("div",ze,A(o(l).upman?o(l).upman.name:""),1)]),_:1})]),_:1}),e(n,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",Ue,A(o(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[re,o(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Ie as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207226.js b/vboot-web/src/main/resources/static/assets/edit.165429159207226.js deleted file mode 100644 index f9f444e..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207226.js +++ /dev/null @@ -1 +0,0 @@ -var T=Object.defineProperty,X=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var g=(_,n,i)=>n in _?T(_,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):_[n]=i,x=(_,n)=>{for(var i in n||(n={}))H.call(n,i)&&g(_,i,n[i]);if(B)for(var i of B(n))P.call(n,i)&&g(_,i,n[i]);return _},D=(_,n)=>X(_,$(n));import{a as Y,j as z,aB as Z,a3 as G,ag as K,m as O,R as U,S as t,a2 as p,o as h,Z as e,u as l,e as s,b as Q,a7 as W,F as ee,T as k,U as R,Y as b,X as y,l as te}from"./vue.1654291592072.js";import{e as le,t as ue,a as ae}from"./edit.16542915920722.js";import{C as oe}from"./GenModal.1654291592072.js";import{g as se}from"./index.1654291592072.js";const ne=s("div",{style:{"line-height":"32px"}},"\u7279\u6027\u6821\u9A8C",-1),de=y("\u4FDD \u5B58"),ie=y("\u590D \u5236"),pe=y("\u5173 \u95ED"),re={style:{"margin-top":"8px","margin-bottom":"8px"}},_e={class:"zinput"},me={class:"zinput"},ce={class:"zinput"},fe={class:"zinput"},Fe={class:"zinput"},ve={class:"zinput",style:{height:"auto"}},be={class:"zinput",style:{height:"auto"}},ye={class:"zinput",style:{height:"auto"}},Ae=y("\u70B9\u51FB\u4E0A\u4F20"),he=s("div",{class:"el-upload__tip"},"\u8BF7\u4E0A\u4F20\u6821\u9A8Cexcel",-1),Ce={class:"zinput",style:{height:"auto"}},Ee={class:"zinput"},Ve={class:"zinput"},we={class:"zinput"},Be={class:"zinput"},ge={name:"teFeatCheck"},Re=Y(D(x({},ge),{setup(_){const n=z(),i=Z(),{proxy:C}=te(),f=G({url:"/te/feat/check",cates:[],params:{path:"",query:""},form:{avtag:!0}}),{form:u,cates:S}=K(f),E=z("tab1");O(async()=>{await le({state:f,route:i}),await N()});const N=async()=>{f.cates=await se({url:"/te/prod/cate/list",method:"get"})};return(c,o)=>{const d=p("el-col"),F=p("el-button"),m=p("el-row"),v=p("el-input"),r=p("el-form-item"),A=p("el-option"),V=p("el-select"),j=p("el-input-number"),q=p("el-switch"),I=p("el-upload"),w=p("el-tab-pane"),L=p("el-tabs"),M=p("el-form"),J=p("el-card");return h(),U(J,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(m,null,{default:t(()=>[e(d,{span:10},{default:t(()=>[ne]),_:1}),e(d,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(F,{type:"success",onClick:o[0]||(o[0]=a=>l(ue)({formRef:n.value,state:f,proxy:l(C),route:l(i)})),plain:""},{default:t(()=>[de]),_:1}),e(F,{type:"info",plain:""},{default:t(()=>[ie]),_:1}),e(F,{type:"info",onClick:o[1]||(o[1]=a=>l(ae)({proxy:l(C),route:l(i)})),plain:""},{default:t(()=>[pe]),_:1})]),_:1})]),_:1})]),default:t(()=>[e(oe,{url:"oa/flow/cate/tree",ref:"cateModal",onClose:c.cateChoose},null,8,["onClose"]),s("div",re,[e(M,{ref_key:"formRef",ref:n,class:"zform",model:l(u),"label-width":"140px"},{default:t(()=>[e(L,{type:"card",modelValue:E.value,"onUpdate:modelValue":o[10]||(o[10]=a=>E.value=a)},{default:t(()=>[e(w,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(r,{label:"\u6821\u9A8C\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[s("div",_e,[e(v,{modelValue:l(u).name,"onUpdate:modelValue":o[2]||(o[2]=a=>l(u).name=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(r,{label:"\u6240\u5C5E\u4EA7\u54C1\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[s("div",me,[e(V,{modelValue:l(u).catid,"onUpdate:modelValue":o[3]||(o[3]=a=>l(u).catid=a),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B"},{default:t(()=>[(h(!0),Q(ee,null,W(l(S),a=>(h(),U(A,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(d,{span:12},{default:t(()=>[e(r,{label:"\u6821\u9A8C\u65B9\u5F0F\uFF1A"},{default:t(()=>[s("div",ce,[e(V,{modelValue:l(u).chway,"onUpdate:modelValue":o[4]||(o[4]=a=>l(u).chway=a),style:{width:"100%"}},{default:t(()=>[e(A,{value:"a",label:"excel\u516C\u5F0F"}),e(A,{value:"b",label:"js\u51FD\u6570"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(r,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[s("div",fe,[e(j,{modelValue:l(u).ornum,"onUpdate:modelValue":o[5]||(o[5]=a=>l(u).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(r,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[s("div",Fe,[e(q,{modelValue:l(u).avtag,"onUpdate:modelValue":o[6]||(o[6]=a=>l(u).avtag=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(d,{span:24},{default:t(()=>[e(r,{label:"\u6821\u9A8C\u89C4\u5219\uFF1A"},{default:t(()=>[s("div",ve,[e(v,{modelValue:l(u).rule,"onUpdate:modelValue":o[7]||(o[7]=a=>l(u).rule=a),type:"textarea",rows:6,placeholder:"\u901A\u8FC7\u540E\u53F0JS\u5F15\u64CE\u8C03\u7528JS\u4EE3\u7801\u7247\u6BB5\uFF0C\u8FD4\u56DEtrue\u6216false"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(d,{span:24},{default:t(()=>[e(r,{label:"\u6821\u9A8C\u6587\u5B57\uFF1A"},{default:t(()=>[s("div",be,[e(v,{modelValue:l(u).notes,"onUpdate:modelValue":o[8]||(o[8]=a=>l(u).notes=a),type:"textarea",rows:4},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),k(e(m,null,{default:t(()=>[e(d,{span:24},{default:t(()=>[e(r,{label:"\u6821\u9A8CEXCEL\uFF1A"},{default:t(()=>[s("div",ye,[e(I,{class:"upload-demo",action:"https://jsonplaceholder.typicode.com/posts/","on-preview":c.handlePreview,"on-remove":c.handleRemove,"before-remove":c.beforeRemove,multiple:"",limit:3,"on-exceed":c.handleExceed,"file-list":c.fileList},{tip:t(()=>[he]),default:t(()=>[e(F,{type:"primary"},{default:t(()=>[Ae]),_:1})]),_:1},8,["on-preview","on-remove","before-remove","on-exceed","file-list"])])]),_:1})]),_:1})]),_:1},512),[[R,l(u).chway=="a"]])]),_:1}),e(w,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(r,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[s("div",Ce,[e(v,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:l(u).notes,"onUpdate:modelValue":o[9]||(o[9]=a=>l(u).notes=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),k(e(m,null,{default:t(()=>[e(d,{span:6},{default:t(()=>[e(r,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[s("div",Ee,b(l(u).crman?l(u).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(r,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[s("div",Ve,b(l(u).crtim),1)]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(r,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[s("div",we,b(l(u).upman?l(u).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(r,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[s("div",Be,b(l(u).uptim),1)]),_:1})]),_:1})]),_:1},512),[[R,l(u).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Re as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207227.js b/vboot-web/src/main/resources/static/assets/edit.165429159207227.js deleted file mode 100644 index 663c1ad..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207227.js +++ /dev/null @@ -1 +0,0 @@ -var K=Object.defineProperty;var q=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var I=(b,F,r)=>F in b?K(b,F,{enumerable:!0,configurable:!0,writable:!0,value:r}):b[F]=r,T=(b,F)=>{for(var r in F||(F={}))P.call(F,r)&&I(b,r,F[r]);if(q)for(var r of q(F))W.call(F,r)&&I(b,r,F[r]);return b};import{a as $,aB as ee,a3 as ue,ag as le,j as z,m as ae,R as M,S as u,n as te,a2 as m,o as x,Z as e,u as t,e as n,b as oe,a7 as de,F as ne,T as se,U as ie,Y as g,X as C,l as pe}from"./vue.1654291592072.js";import{g as w,t as me}from"./index.1654291592072.js";const re=n("div",{style:{"line-height":"32px"}},"\u7279\u6027\u7EC4\u4EF6",-1),_e=C("\u4FDD \u5B58"),Fe=C("\u5BFC\u51FA"),fe=C("\u5173 \u95ED"),ce={style:{"margin-top":"8px","margin-bottom":"8px"}},be={class:"zinput"},ve={class:"zinput"},Ae={class:"zinput"},Ee={class:"zinput"},Ce={class:"zinput"},he=n("div",{class:"zinput"},null,-1),ye={style:{"margin-left":"15px","margin-right":"15px","margin-top":"10px"}},Ve=n("div",{class:"znotes"},[C(" 1.\u5339\u914D\u65B9\u5F0F\u5982\u679C\u4E3A\u81EA\u5B9A\u4E49\uFF0C\u5219\u6B64\u754C\u9762\u53EF\u4EE5\u76F4\u63A5\u5206\u914D\u53C2\u6570"),n("br"),C(" 2.\u81EA\u5B9A\u4E49\u4FDD\u5B58\u65F6\uFF0C\u4E3A\u4E86\u6570\u636E\u7684\u4E00\u81F4\u6027\uFF0C\u4E5F\u9700\u8981\u5C06\u53C2\u6570\u5206\u914D\u7684\u6570\u636E\u4FDD\u5B58\u5230\u53C2\u6570\u5206\u914D\u7684\u8868\u91CC\uFF0C\u505A\u4E3A\u4E00\u4E2A\u5F53\u524D\u7248\u672C\u7684\u4E13\u7528\u5206\u914D\u6A21\u677F"),n("br"),C(" 3.\u5339\u914D\u65B9\u5F0F\u5982\u679C\u4E3A\u901A\u8FC7\u6A21\u677F\uFF0C\u5219\u53EF\u4EE5\u5F15\u7528\u5148\u524D\u5EFA\u597D\u7684\u5206\u914D\u6A21\u677F\uFF0C\u63D0\u9AD8\u76F8\u4F3C\u4EA7\u54C1\u7684\u7EC4\u4EF6\uFF0C\u4EA7\u54C1\u6216\u540C\u4EA7\u54C1\u4E0D\u540C\u7248\u672C\u7684\u6570\u636E\u914D\u7F6E\u5229\u7528\u7387"),n("br")],-1),ge={class:"zinput"},we={class:"zinput"},De={class:"zinput"},Be={class:"zinput"},ze=n("div",{class:"zinput"},null,-1),xe={class:"zinput"},Ue={class:"zinput"},ke=n("div",{class:"zinput"},null,-1),Se={class:"zinput",style:{height:"auto"}},Re={class:"zinput"},Ne={class:"zinput"},je={class:"zinput"},qe={class:"zinput"},He=$({name:"edit",setup(b){const{proxy:F}=pe(),r=ee(),U=ue({form:{avtag:!0,venum:1,detag:!0,coway:"a",paway:"a",laway:"a",caway:"a",dpaway:"a",patem:{},options:[{id:1,name:11,func1:"",func2:""},{id:2,name:22,func1:"",func2:""}]},params:{path:"",query:""},cates:[],screens:[]}),{form:l,params:k,cates:Ie,screens:v}=le(U),S=z("tab1"),D=z(""),R=()=>{F.mittBus.emit("onCurrentContextmenuClick",Object.assign({},T({contextMenuClickId:1},r)))};async function Q(){l.value.patem.items=[];for(let i=0;i{i?(l.value=await w({url:"/te/feat/comp/one/"+i,method:"get"}),N()):l.value={avtag:!0}},y=z([]),N=async()=>{v.value=await w({url:"/te/allot/param/screens/",method:"get",params:{id:"dt"}}),v.value.length>0&&(D.value=v.value[0].id),te(()=>{for(let i=0;i{for(const d of l.value.patem.items)if(console.log(d.parid),d.parid==a.id){y.value[i].toggleRowSelection(a,!0);break}})})};return ae(()=>{var i,a;U.params=r,(i=k.value.query)!=null&&i.id?H((a=k.value.query)==null?void 0:a.id):N()}),(i,a)=>{const d=m("el-col"),B=m("el-button"),c=m("el-row"),V=m("el-input"),p=m("el-form-item"),L=m("el-input-number"),O=m("el-switch"),A=m("el-tab-pane"),s=m("el-option"),f=m("el-select"),E=m("el-table-column"),X=m("el-table"),Y=m("el-pagination"),j=m("el-tabs"),Z=m("el-form"),G=m("el-card");return x(),M(G,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:u(()=>[e(c,null,{default:u(()=>[e(d,{span:10},{default:u(()=>[re]),_:1}),e(d,{span:14,style:{"text-align":"right"}},{default:u(()=>[e(B,{type:"success",onClick:Q,plain:""},{default:u(()=>[_e]),_:1}),e(B,{type:"info",icon:t(me),plain:""},{default:u(()=>[Fe]),_:1},8,["icon"]),e(B,{type:"info",onClick:R,plain:""},{default:u(()=>[fe]),_:1})]),_:1})]),_:1})]),default:u(()=>[n("div",ce,[e(Z,{class:"zform",model:t(l),"label-width":"140px"},{default:u(()=>[e(j,{type:"card",modelValue:S.value,"onUpdate:modelValue":a[14]||(a[14]=o=>S.value=o)},{default:u(()=>[e(A,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:u(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(d,{span:12},{default:u(()=>[e(p,{label:"\u7EC4\u4EF6\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:u(()=>[n("div",be,[e(V,{modelValue:t(l).name,"onUpdate:modelValue":a[0]||(a[0]=o=>t(l).name=o)},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:u(()=>[n("div",ve,[e(L,{modelValue:t(l).ornum,"onUpdate:modelValue":a[1]||(a[1]=o=>t(l).ornum=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:u(()=>[n("div",Ae,[e(O,{modelValue:t(l).avtag,"onUpdate:modelValue":a[2]||(a[2]=o=>t(l).avtag=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(A,{label:"\u53C2\u6570\u5206\u914D",name:"tab3"},{default:u(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(d,{span:6},{default:u(()=>[e(p,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:u(()=>[n("div",Ee,[e(f,{modelValue:t(l).paway,"onUpdate:modelValue":a[3]||(a[3]=o=>t(l).paway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),e(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:u(()=>[n("div",Ce,[e(f,{modelValue:t(l).patem,"onUpdate:modelValue":a[4]||(a[4]=o=>t(l).patem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u53C2\u6570\u5206\u914D001"}),e(s,{value:"b",label:"\u53C2\u6570\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:u(()=>[he]),_:1})]),_:1}),e(c,null,{default:u(()=>[e(d,{span:24,style:{"background-color":"white"}},{default:u(()=>[n("div",ye,[e(j,{modelValue:D.value,"onUpdate:modelValue":a[6]||(a[6]=o=>D.value=o)},{default:u(()=>[(x(!0),oe(ne,null,de(t(v),(o,J)=>(x(),M(A,{label:o.name,name:o.id,key:o.id},{default:u(()=>[e(X,{ref_for:!0,ref:_=>{_&&(y.value[J]=_)},data:o.params,style:{width:"100%",height:"200px"}},{default:u(()=>[e(E,{type:"selection",width:"55"}),e(E,{prop:"code",label:"\u53C2\u6570\u4EE3\u7801",width:"180"}),e(E,{prop:"name",label:"\u53C2\u6570\u540D\u79F0",width:"180"}),e(E,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),e(E,{label:"\u521D\u59CB\u53EF\u9009\u9879",width:"300"},{default:u(_=>[e(f,{modelValue:_.row.options,"onUpdate:modelValue":h=>_.row.options=h,placeholder:" ",multiple:"",style:{width:"100%"}},{default:u(()=>[e(s,{value:"dt21",label:"630kg"}),e(s,{value:"dt22",label:"1000kg"}),e(s,{value:"dt3",label:"1050kg"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(E,{label:"\u521D\u59CB\u9ED8\u8BA4\u503C",width:"180"},{default:u(_=>[e(f,{modelValue:_.row.deval,"onUpdate:modelValue":h=>_.row.deval=h,placeholder:" ",style:{width:"100%"},clearable:""},{default:u(()=>[e(s,{value:"dt21",label:"630kg"}),e(s,{value:"dt22",label:"1000kg"}),e(s,{value:"dt3",label:"1050kg"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(E,{align:"right"},{header:u(()=>[e(V,{modelValue:i.search,"onUpdate:modelValue":a[5]||(a[5]=_=>i.search=_),placeholder:"\u8F93\u5165\u53C2\u6570\u4EE3\u7801\u6216\u53C2\u6570\u540D\u79F0\u505A\u8FC7\u6EE4"},null,8,["modelValue"])]),default:u(_=>[e(V,{modelValue:_.row.notes,"onUpdate:modelValue":h=>_.row.notes=h,placeholder:"\u5907\u6CE8"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:2},1032,["data"]),e(Y,{onSizeChange:i.handleQuery,onCurrentChange:i.handleQuery,class:"mt8","pager-count":5,"page-sizes":[10,20,30],background:"",total:25,"current-page":1,"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},null,8,["onSizeChange","onCurrentChange"])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),Ve]),_:1}),e(A,{label:"\u8054\u52A8\u5206\u914D",name:"tab4"},{default:u(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(d,{span:6},{default:u(()=>[e(p,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:u(()=>[n("div",ge,[e(f,{modelValue:t(l).laway,"onUpdate:modelValue":a[7]||(a[7]=o=>t(l).laway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),e(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:u(()=>[n("div",we,[e(f,{modelValue:t(l).latem,"onUpdate:modelValue":a[8]||(a[8]=o=>t(l).latem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u8054\u52A8\u5206\u914D001"}),e(s,{value:"b",label:"\u8054\u52A8\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12})]),_:1})]),_:1}),e(A,{label:"\u6821\u9A8C\u5206\u914D",name:"tab5"},{default:u(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(d,{span:6},{default:u(()=>[e(p,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:u(()=>[n("div",De,[e(f,{modelValue:t(l).caway,"onUpdate:modelValue":a[9]||(a[9]=o=>t(l).caway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),e(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:u(()=>[n("div",Be,[e(f,{modelValue:t(l).catem,"onUpdate:modelValue":a[10]||(a[10]=o=>t(l).catem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u6821\u9A8C\u5206\u914D001"}),e(s,{value:"b",label:"\u6821\u9A8C\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:u(()=>[ze]),_:1})]),_:1})]),_:1}),e(A,{label:"\u9A71\u52A8\u5206\u914D",name:"tab6"},{default:u(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(d,{span:6},{default:u(()=>[e(p,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:u(()=>[n("div",xe,[e(f,{modelValue:t(l).daway,"onUpdate:modelValue":a[11]||(a[11]=o=>t(l).daway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),e(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:u(()=>[n("div",Ue,[e(f,{modelValue:t(l).datem,"onUpdate:modelValue":a[12]||(a[12]=o=>t(l).datem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(s,{value:"a",label:"\u6821\u9A8C\u5206\u914D001"}),e(s,{value:"b",label:"\u6821\u9A8C\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(d,{span:12},{default:u(()=>[ke]),_:1})]),_:1})]),_:1}),e(A,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9"},{default:u(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(d,{span:24},{default:u(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:u(()=>[n("div",Se,[e(V,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:t(l).notes,"onUpdate:modelValue":a[13]||(a[13]=o=>t(l).notes=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),se(e(c,null,{default:u(()=>[e(d,{span:6},{default:u(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:u(()=>[n("div",Re,g(t(l).crman?t(l).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:u(()=>[n("div",Ne,g(t(l).crtim),1)]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:u(()=>[n("div",je,g(t(l).upman?t(l).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:6},{default:u(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:u(()=>[n("div",qe,g(t(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[ie,t(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}});export{He as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207228.js b/vboot-web/src/main/resources/static/assets/edit.165429159207228.js deleted file mode 100644 index 15d7db5..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207228.js +++ /dev/null @@ -1 +0,0 @@ -var T=Object.defineProperty,X=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var g=(_,s,d)=>s in _?T(_,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[s]=d,x=(_,s)=>{for(var d in s||(s={}))H.call(s,d)&&g(_,d,s[d]);if(B)for(var d of B(s))P.call(s,d)&&g(_,d,s[d]);return _},D=(_,s)=>X(_,$(s));import{a as Y,j as z,aB as Z,a3 as G,ag as K,m as O,R as U,S as t,a2 as r,o as h,Z as e,u as l,e as n,b as Q,a7 as W,F as ee,T as R,U as k,Y as v,X as A,l as te}from"./vue.1654291592072.js";import{e as le,t as ue,a as ae}from"./edit.16542915920722.js";import{C as oe}from"./GenModal.1654291592072.js";import{g as se}from"./index.1654291592072.js";const ne=n("div",{style:{"line-height":"32px"}},"\u7279\u6027\u9A71\u52A8",-1),de=A("\u4FDD \u5B58"),ie=A("\u590D \u5236"),re=A("\u5173 \u95ED"),pe={style:{"margin-top":"8px","margin-bottom":"8px"}},_e={class:"zinput"},me={class:"zinput"},ce={class:"zinput"},fe={class:"zinput"},Fe={class:"zinput"},ve={class:"zinput",style:{height:"auto"}},Ae={class:"zinput",style:{height:"auto"}},be=A("\u70B9\u51FB\u4E0A\u4F20"),ye=n("div",{class:"el-upload__tip"},"\u8BF7\u4E0A\u4F20\u6821\u9A8Cexcel",-1),he={class:"zinput",style:{height:"auto"}},Ee={class:"zinput"},Ce={class:"zinput"},Ve={class:"zinput"},we={class:"zinput"},Be={name:"teFeatDrive"},Re=Y(D(x({},Be),{setup(_){const s=z(),d=Z(),{proxy:E}=te(),f=G({url:"/te/feat/drive",cates:[],params:{path:"",query:""},form:{avtag:!0}}),{form:u,cates:S}=K(f),C=z("tab1");O(async()=>{await le({state:f,route:d}),await N()});const N=async()=>{f.cates=await se({url:"/te/prod/cate/list",method:"get"})};return(c,o)=>{const i=r("el-col"),F=r("el-button"),m=r("el-row"),b=r("el-input"),p=r("el-form-item"),y=r("el-option"),V=r("el-select"),j=r("el-input-number"),q=r("el-switch"),I=r("el-upload"),w=r("el-tab-pane"),L=r("el-tabs"),M=r("el-form"),J=r("el-card");return h(),U(J,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(m,null,{default:t(()=>[e(i,{span:10},{default:t(()=>[ne]),_:1}),e(i,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(F,{type:"success",onClick:o[0]||(o[0]=a=>l(ue)({formRef:s.value,state:f,proxy:l(E),route:l(d)})),plain:""},{default:t(()=>[de]),_:1}),e(F,{type:"info",plain:""},{default:t(()=>[ie]),_:1}),e(F,{type:"info",onClick:o[1]||(o[1]=a=>l(ae)({proxy:l(E),route:l(d)})),plain:""},{default:t(()=>[re]),_:1})]),_:1})]),_:1})]),default:t(()=>[e(oe,{url:"oa/flow/cate/tree",ref:"cateModal",onClose:c.cateChoose},null,8,["onClose"]),n("div",pe,[e(M,{ref_key:"formRef",ref:s,class:"zform",model:l(u),"label-width":"140px"},{default:t(()=>[e(L,{type:"card",modelValue:C.value,"onUpdate:modelValue":o[9]||(o[9]=a=>C.value=a)},{default:t(()=>[e(w,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(i,{span:12},{default:t(()=>[e(p,{label:"\u9A71\u52A8\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[n("div",_e,[e(b,{modelValue:l(u).name,"onUpdate:modelValue":o[2]||(o[2]=a=>l(u).name=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:12},{default:t(()=>[e(p,{label:"\u6240\u5C5E\u4EA7\u54C1\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[n("div",me,[e(V,{modelValue:l(u).catid,"onUpdate:modelValue":o[3]||(o[3]=a=>l(u).catid=a),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B"},{default:t(()=>[(h(!0),Q(ee,null,W(l(S),a=>(h(),U(y,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(i,{span:12},{default:t(()=>[e(p,{label:"\u9A71\u52A8\u65B9\u5F0F\uFF1A"},{default:t(()=>[n("div",ce,[e(V,{modelValue:l(u).chway,"onUpdate:modelValue":o[4]||(o[4]=a=>l(u).chway=a),style:{width:"100%"}},{default:t(()=>[e(y,{value:"a",label:"excel\u516C\u5F0F"}),e(y,{value:"b",label:"js\u51FD\u6570"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:6},{default:t(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[n("div",fe,[e(j,{modelValue:l(u).ornum,"onUpdate:modelValue":o[5]||(o[5]=a=>l(u).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(i,{span:6},{default:t(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[n("div",Fe,[e(q,{modelValue:l(u).avtag,"onUpdate:modelValue":o[6]||(o[6]=a=>l(u).avtag=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(m,null,{default:t(()=>[e(i,{span:24},{default:t(()=>[e(p,{label:"\u9A71\u52A8\u51FD\u6570\uFF1A"},{default:t(()=>[n("div",ve,[e(b,{modelValue:l(u).rule,"onUpdate:modelValue":o[7]||(o[7]=a=>l(u).rule=a),type:"textarea",rows:6,placeholder:"\u901A\u8FC7\u540E\u53F0JS\u5F15\u64CE\u8C03\u7528JS\u4EE3\u7801\u7247\u6BB5\uFF0C\u9A71\u52A8\u76F8\u5173\u571F\u5EFA\u56FE\u53C2\u6570"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),R(e(m,null,{default:t(()=>[e(i,{span:24},{default:t(()=>[e(p,{label:"\u9A71\u52A8EXCEL\uFF1A"},{default:t(()=>[n("div",Ae,[e(I,{class:"upload-demo",action:"https://jsonplaceholder.typicode.com/posts/","on-preview":c.handlePreview,"on-remove":c.handleRemove,"before-remove":c.beforeRemove,multiple:"",limit:3,"on-exceed":c.handleExceed,"file-list":c.fileList},{tip:t(()=>[ye]),default:t(()=>[e(F,{type:"primary"},{default:t(()=>[be]),_:1})]),_:1},8,["on-preview","on-remove","before-remove","on-exceed","file-list"])])]),_:1})]),_:1})]),_:1},512),[[k,l(u).chway=="a"]])]),_:1}),e(w,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(m,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(i,{span:24},{default:t(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[n("div",he,[e(b,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:l(u).notes,"onUpdate:modelValue":o[8]||(o[8]=a=>l(u).notes=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),R(e(m,null,{default:t(()=>[e(i,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[n("div",Ee,v(l(u).crman?l(u).crman.name:""),1)]),_:1})]),_:1}),e(i,{span:6},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[n("div",Ce,v(l(u).crtim),1)]),_:1})]),_:1}),e(i,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[n("div",Ve,v(l(u).upman?l(u).upman.name:""),1)]),_:1})]),_:1}),e(i,{span:6},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[n("div",we,v(l(u).uptim),1)]),_:1})]),_:1})]),_:1},512),[[k,l(u).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Re as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207229.js b/vboot-web/src/main/resources/static/assets/edit.165429159207229.js deleted file mode 100644 index 0e8a7e1..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207229.js +++ /dev/null @@ -1 +0,0 @@ -var oe=Object.defineProperty,ne=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var R=(y,c,F)=>c in y?oe(y,c,{enumerable:!0,configurable:!0,writable:!0,value:F}):y[c]=F,S=(y,c)=>{for(var F in c||(c={}))se.call(c,F)&&R(y,F,c[F]);if(N)for(var F of N(c))ie.call(c,F)&&R(y,F,c[F]);return y},q=(y,c)=>ne(y,de(c));import{a as pe,j as M,aB as re,a3 as me,ag as _e,m as fe,R as b,S as l,a2 as r,o as p,Z as e,u as t,e as i,b as C,a7 as A,F as E,T as ce,U as Fe,Y as D,X as x,l as ve}from"./vue.1654291592072.js";import{t as be,a as ye}from"./edit.16542915920722.js";import{g as U}from"./index.1654291592072.js";const Ve=i("div",{style:{"line-height":"32px"}},"\u8054\u52A8\u914D\u7F6E",-1),we=x("\u4FDD \u5B58"),Ce=x("\u6A21\u62DF\u6D4B\u8BD5"),Ae=x("\u590D \u5236"),Ee=x("\u5173 \u95ED"),he={style:{"margin-top":"8px","margin-bottom":"8px"}},xe={class:"zinput"},Be={class:"zinput"},ge={class:"zinput"},Ue={class:"zinput"},De={class:"zinput"},ke={class:"zinput"},ze={class:"zinput"},$e={class:"zinput"},Ie={class:"zinput"},Ne={class:"zinput"},Re={class:"zinput",style:{height:"auto"}},Se=i("div",{class:"znotes"},[x(" 1.\u5F53\u9009\u62E9\u4E86\u578B\u53F7\u597D\uFF0C\u6B64\u8054\u52A8\u5728\u8054\u52A8\u5206\u914D\u65F6\u53EA\u51FA\u73B0\u5728\u5BF9\u5E94\u7684\u578B\u53F7\u4E0B"),i("br")],-1),qe=x("\u589E\u52A0\u6761\u4EF6"),Me=i("span",null,"\u2192",-1),He=x("\u589E\u52A0\u5F71\u54CD"),Je={class:"zinput",style:{height:"auto"}},Le={class:"zinput"},Pe={class:"zinput"},Te={class:"zinput"},je={class:"zinput"},Xe={name:"teFeatLinkEdit"},Oe=pe(q(S({},Xe),{setup(y){const c=M(),F=re(),{proxy:z}=ve(),v=me({url:"/te/feat/link",params:{path:"",query:""},form:{avtag:!0},cates:[],zparams:[],models:[]}),{form:u}=_e(v),$=M("tab1");fe(()=>{T()});const H=async()=>{v.cates=await U({url:"/te/prod/cate/list",method:"get"})},J=async()=>{v.models=await U({url:"/te/prod/model/list",method:"get",params:{catid:u.value.catid}}),u.value.modid=""},L=async()=>{v.models=await U({url:"/te/prod/model/list",method:"get",params:{catid:u.value.catid}})},P=async()=>{v.zparams=await U({url:"/te/feat/param/list",method:"get",params:{catid:"dt"}})},T=async()=>{var o;v.params=F;let m=(o=v.params.query)==null?void 0:o.id;m?(u.value=await U({url:"/te/feat/link/one/"+m,method:"get"}),await L()):u.value={avtag:!0},await H(),await P()},j=()=>{u.value.items.push({lefts:[],rights:[]})},X=m=>{m.lefts.push({})},Y=m=>{m.rights.push({})},Z=m=>{m.efway="",m.efval=""},G=async m=>{m.efval="",m.efway=="b"&&(m.options=await U({url:"/te/feat/param/options/"+m.efpar,method:"get"}))};return(m,o)=>{const _=r("el-col"),B=r("el-button"),h=r("el-row"),K=r("CateModal"),V=r("el-input"),f=r("el-form-item"),s=r("el-option"),w=r("el-select"),O=r("el-input-number"),Q=r("el-switch"),k=r("el-tab-pane"),g=r("el-table-column"),W=r("ele-CirclePlus"),I=r("el-icon"),ee=r("ele-CircleClose"),le=r("el-table"),ae=r("el-tabs"),ue=r("el-form"),te=r("el-card");return p(),b(te,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:l(()=>[e(h,null,{default:l(()=>[e(_,{span:10},{default:l(()=>[Ve]),_:1}),e(_,{span:14,style:{"text-align":"right"}},{default:l(()=>[e(B,{type:"success",onClick:o[0]||(o[0]=a=>t(be)({formRef:c.value,state:v,proxy:t(z),route:t(F)})),plain:""},{default:l(()=>[we]),_:1}),e(B,{type:"info",plain:""},{default:l(()=>[Ce]),_:1}),e(B,{type:"info",plain:""},{default:l(()=>[Ae]),_:1}),e(B,{type:"info",onClick:o[1]||(o[1]=a=>t(ye)({proxy:t(z),route:t(F)})),plain:""},{default:l(()=>[Ee]),_:1})]),_:1})]),_:1})]),default:l(()=>[e(K,{url:"oa/flow/cate/tree",ref:"cateModal",onClose:m.cateChoose},null,8,["onClose"]),i("div",he,[e(ue,{ref_key:"formRef",ref:c,class:"zform",model:t(u),"label-width":"140px"},{default:l(()=>[e(ae,{type:"card",modelValue:$.value,"onUpdate:modelValue":o[14]||(o[14]=a=>$.value=a)},{default:l(()=>[e(k,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:l(()=>[e(h,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(_,{span:12},{default:l(()=>[e(f,{label:"\u8054\u52A8\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[i("div",xe,[e(V,{modelValue:t(u).name,"onUpdate:modelValue":o[2]||(o[2]=a=>t(u).name=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[i("div",Be,[e(w,{modelValue:t(u).catid,"onUpdate:modelValue":o[3]||(o[3]=a=>t(u).catid=a),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B",style:{width:"100%"},onChange:J},{default:l(()=>[(p(!0),C(E,null,A(v.cates,a=>(p(),b(s,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u6240\u5C5E\u578B\u53F7\uFF1A"},{default:l(()=>[i("div",ge,[e(w,{modelValue:t(u).modid,"onUpdate:modelValue":o[4]||(o[4]=a=>t(u).modid=a),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u578B\u53F7",style:{width:"100%"}},{default:l(()=>[(p(!0),C(E,null,A(v.models,a=>(p(),b(s,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(h,null,{default:l(()=>[e(_,{span:6},{default:l(()=>[e(f,{label:"\u89E6\u53D1\u53C2\u6570\uFF1A",prop:"trway"},{default:l(()=>[i("div",Ue,[e(w,{filterable:"",modelValue:t(u).trpar,"onUpdate:modelValue":o[5]||(o[5]=a=>t(u).trpar=a),style:{width:"100%"}},{default:l(()=>[(p(!0),C(E,null,A(v.zparams,a=>(p(),b(s,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u89E6\u53D1\u65B9\u5F0F\uFF1A"},{default:l(()=>[i("div",De,[e(w,{modelValue:t(u).trway,"onUpdate:modelValue":o[6]||(o[6]=a=>t(u).trway=a),placeholder:"\u8BF7\u9009\u62E9\u89E6\u53D1\u65B9\u5F0F",style:{width:"100%"}},{default:l(()=>[e(s,{value:"a",label:"\u503C\u6539\u53D8"}),e(s,{value:"b",label:"\u70B9\u51FB"}),e(s,{value:"c",label:"\u5931\u53BB\u7126\u70B9"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u89E6\u53D1\u6761\u4EF6[\u53EF\u7A7A]\uFF1A"},{default:l(()=>[i("div",ke,[e(V,{modelValue:t(u).trcon,"onUpdate:modelValue":o[7]||(o[7]=a=>t(u).trcon=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u89E6\u53D1\u987A\u5E8F\uFF1A"},{default:l(()=>[i("div",ze,[e(V,{modelValue:t(u).trnum,"onUpdate:modelValue":o[8]||(o[8]=a=>t(u).trnum=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(h,null,{default:l(()=>[e(_,{span:12},{default:l(()=>[e(f,{label:"\u8054\u52A8\u65B9\u5F0F\uFF1A",prop:"trway"},{default:l(()=>[i("div",$e,[e(w,{modelValue:t(u).liway,"onUpdate:modelValue":o[9]||(o[9]=a=>t(u).liway=a),placeholder:"\u8BF7\u9009\u62E9\u8054\u52A8\u65B9\u5F0F"},{default:l(()=>[e(s,{value:"a",label:"\u77E9\u9635"}),e(s,{value:"b",label:"\u51FD\u6570"}),e(s,{value:"c",label:"excel"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:l(()=>[i("div",Ie,[e(O,{modelValue:t(u).ornum,"onUpdate:modelValue":o[10]||(o[10]=a=>t(u).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:l(()=>[i("div",Ne,[e(Q,{modelValue:t(u).avtag,"onUpdate:modelValue":o[11]||(o[11]=a=>t(u).avtag=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(h,null,{default:l(()=>[e(_,{span:24},{default:l(()=>[e(f,{label:"\u8054\u52A8\u51FD\u6570\uFF1A"},{default:l(()=>[i("div",Re,[e(V,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"14px"},type:"textarea",rows:8,placeholder:"\u901A\u8FC7\u540E\u53F0JS\u5F15\u64CE\u8C03\u7528JS\u4EE3\u7801\u7247\u6BB5\uFF0C\u5B9E\u73B0abcd\u8054\u52A8xy",modelValue:t(u).lifun,"onUpdate:modelValue":o[12]||(o[12]=a=>t(u).lifun=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Se]),_:1}),e(k,{label:"\u8054\u52A8\u77E9\u9635",name:"tab2"},{default:l(()=>[e(le,{border:"",data:t(u).items,"row-style":{height:"36px"},style:{width:"100%"}},{default:l(()=>[e(g,{type:"index",width:"40"}),e(g,{label:"\u63A7\u5236\u9879",width:"400"},{default:l(a=>[i("div",null,[e(B,{type:"info",plain:"",onClick:n=>X(a.row)},{default:l(()=>[qe]),_:2},1032,["onClick"]),(p(!0),C(E,null,A(a.row.lefts,n=>(p(),C("div",{key:n.id,style:{"margin-top":"5px"}},[e(w,{filterable:"",modelValue:n.copar,"onUpdate:modelValue":d=>n.copar=d,style:{width:"160px","margin-right":"5px"}},{default:l(()=>[(p(!0),C(E,null,A(m.zparams,d=>(p(),b(s,{key:d.id,label:d.name,value:d.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),e(w,{modelValue:n.coway,"onUpdate:modelValue":d=>n.coway=d,style:{width:"100px","margin-right":"5px"}},{default:l(()=>[e(s,{value:"a",label:">"}),e(s,{value:"b",label:">="}),e(s,{value:"c",label:"="}),e(s,{value:"d",label:"<="}),e(s,{value:"e",label:"<"}),e(s,{value:"f",label:"!="}),e(s,{value:"g",label:"in"})]),_:2},1032,["modelValue","onUpdate:modelValue"]),e(V,{modelValue:n.coval,"onUpdate:modelValue":d=>n.coval=d,style:{width:"100px","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"])]))),128))])]),_:1}),e(g,{label:"\u2192",width:"40"},{default:l(()=>[Me]),_:1}),e(g,{label:"\u88AB\u63A7\u5236\u9879",width:"700"},{default:l(a=>[i("div",null,[e(B,{type:"info",plain:"",onClick:n=>Y(a.row)},{default:l(()=>[He]),_:2},1032,["onClick"]),(p(!0),C(E,null,A(a.row.rights,n=>(p(),C("div",{key:n.id,style:{"margin-top":"5px"}},[e(w,{filterable:"",modelValue:n.efpar,"onUpdate:modelValue":d=>n.efpar=d,style:{width:"160px","margin-right":"5px"},onChange:d=>Z(n)},{default:l(()=>[(p(!0),C(E,null,A(m.zparams,d=>(p(),b(s,{key:d.id,label:d.name,value:d.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e(w,{modelValue:n.efway,"onUpdate:modelValue":d=>n.efway=d,style:{width:"100px","margin-right":"5px"},onChange:d=>G(n)},{default:l(()=>[e(s,{value:"a",label:"\u503C\u6539\u53D8"}),e(s,{value:"b",label:"\u53EF\u9009\u9879"}),e(s,{value:"c",label:"\u663E\u793A\u9690\u85CF"}),e(s,{value:"d",label:"\u662F\u5426\u53EA\u8BFB"})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),n.efway=="a"?(p(),b(V,{key:0,modelValue:n.efval,"onUpdate:modelValue":d=>n.efval=d,style:{width:"300px","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"])):n.efway=="b"?(p(),b(w,{key:1,modelValue:n.efops,"onUpdate:modelValue":d=>n.efops=d,style:{width:"300px","margin-right":"5px"},multiple:""},{default:l(()=>[(p(!0),C(E,null,A(n.options,d=>(p(),b(s,{key:d.id,label:d.name,value:d.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):n.efway=="c"?(p(),b(V,{key:2,modelValue:n.efval,"onUpdate:modelValue":d=>n.efval=d,style:{width:"300px","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"])):(p(),b(V,{key:3,modelValue:n.efval,"onUpdate:modelValue":d=>n.efval=d,style:{width:"300px","margin-right":"5px"}},null,8,["modelValue","onUpdate:modelValue"]))]))),128))])]),_:1}),e(g,{label:"\u5907\u6CE8"},{default:l(a=>[e(V,{modelValue:a.row.notes,"onUpdate:modelValue":n=>a.row.notes=n,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(g,{fixed:"right",label:"\u64CD\u4F5C",width:"50",align:"center"},{header:l(()=>[e(I,{size:22,style:{top:"5px",cursor:"pointer"},color:"#666"},{default:l(()=>[e(W,{onClick:j})]),_:1})]),default:l(a=>[e(I,{size:22,style:{top:"3px",cursor:"pointer"}},{default:l(()=>[e(ee,{onClick:n=>t(u).items.splice(a.$index,1)},null,8,["onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),_:1}),e(k,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9"},{default:l(()=>[e(h,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(_,{span:24},{default:l(()=>[e(f,{label:"\u5907\u6CE8\uFF1A"},{default:l(()=>[i("div",Je,[e(V,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:t(u).notes,"onUpdate:modelValue":o[13]||(o[13]=a=>t(u).notes=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),ce(e(h,null,{default:l(()=>[e(_,{span:6},{default:l(()=>[e(f,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:l(()=>[i("div",Le,D(t(u).crman?t(u).crman.name:""),1)]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:l(()=>[i("div",Pe,D(t(u).crtim),1)]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:l(()=>[i("div",Te,D(t(u).upman?t(u).upman.name:""),1)]),_:1})]),_:1}),e(_,{span:6},{default:l(()=>[e(f,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:l(()=>[i("div",je,D(t(u).uptim),1)]),_:1})]),_:1})]),_:1},512),[[Fe,t(u).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Oe as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920723.js b/vboot-web/src/main/resources/static/assets/edit.16542915920723.js deleted file mode 100644 index 4364930..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920723.js +++ /dev/null @@ -1 +0,0 @@ -var N=Object.defineProperty,O=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var D=(_,n,p)=>n in _?N(_,n,{enumerable:!0,configurable:!0,writable:!0,value:p}):_[n]=p,C=(_,n)=>{for(var p in n||(n={}))j.call(n,p)&&D(_,p,n[p]);if(x)for(var p of x(n))T.call(n,p)&&D(_,p,n[p]);return _},w=(_,n)=>O(_,S(n));import{a as I,aB as $,j as V,a3 as H,ag as X,m as Y,R as Z,S as l,a2 as m,o as G,Z as e,u,e as d,T as J,U as K,Y as z,X as b,l as L}from"./vue.1654291592072.js";import{e as P,t as Q,a as W}from"./edit.16542915920722.js";import{O as ee}from"./OrgModal.1654291592072.js";import{s as le}from"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const te=d("div",{style:{"line-height":"32px"}},"\u7528\u6237\u4FE1\u606F",-1),ue=b("\u4FDD \u5B58"),oe=b("\u590D \u5236"),ae=b("\u5173 \u95ED"),se={style:{"margin-top":"8px","margin-bottom":"8px"}},ne={class:"zinput"},de={class:"zinput"},pe={class:"zinput"},ie={class:"zinput"},re={class:"zinput"},me={class:"zinput"},_e={class:"zinput"},fe={class:"zinput"},Fe={class:"zinput"},ce={class:"zinput"},ve={class:"zinput",style:{height:"auto"}},Ve={class:"zinput"},be={class:"zinput"},ge={name:"SysOrgUserEdit"},we=I(w(C({},ge),{setup(_){const n=$(),p=V(),{proxy:g}=L(),y=V("tab1"),F=H({url:"/sys/org/user",params:{path:"",query:{}},form:{avtag:!0}}),{form:t}=X(F);Y(async()=>{var s,c;F.params=n;const r=(s=F.params.query)==null?void 0:s.deptid,o=(c=F.params.query)==null?void 0:c.deptna;r&&(t.value.dept={id:r,name:o},t.value.deptid=r,t.value.deptna=o),await P({state:F,route:n}),t.value.dept&&(t.value.deptna=t.value.dept.name)});const A=V(),U=()=>{A.value.openModal({orgType:3})},B=r=>{r.orgs&&r.orgs.length>0&&(t.value.dept={id:r.orgs[0].id,name:r.orgs[0].name},t.value.deptna=r.orgs[0].name,t.value.deptid=r.orgs[0].id)};return(r,o)=>{const s=m("el-col"),c=m("el-button"),v=m("el-row"),f=m("el-input"),i=m("el-form-item"),h=m("el-input-number"),k=m("el-switch"),E=m("el-tab-pane"),q=m("el-tabs"),M=m("el-form"),R=m("el-card");return G(),Z(R,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:l(()=>[e(v,null,{default:l(()=>[e(s,{span:10},{default:l(()=>[te]),_:1}),e(s,{span:14,style:{"text-align":"right"}},{default:l(()=>[e(c,{type:"success",onClick:o[0]||(o[0]=a=>u(Q)({formRef:p.value,state:F,proxy:u(g),route:u(n)})),plain:""},{default:l(()=>[ue]),_:1}),e(c,{type:"info",plain:""},{default:l(()=>[oe]),_:1}),e(c,{type:"info",onClick:o[1]||(o[1]=a=>u(W)({proxy:u(g),route:u(n)})),plain:""},{default:l(()=>[ae]),_:1})]),_:1})]),_:1})]),default:l(()=>[d("div",se,[e(M,{ref_key:"formRef",ref:p,class:"zform",model:u(t),"label-width":"140px"},{default:l(()=>[e(q,{type:"card",modelValue:y.value,"onUpdate:modelValue":o[13]||(o[13]=a=>y.value=a)},{default:l(()=>[e(E,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:l(()=>[e(v,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(s,{span:6},{default:l(()=>[e(i,{label:"\u59D3\u540D\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",ne,[e(f,{modelValue:u(t).name,"onUpdate:modelValue":o[2]||(o[2]=a=>u(t).name=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"\u6635\u79F0\uFF1A"},{default:l(()=>[d("div",de,[e(f,{modelValue:u(t).ninam,"onUpdate:modelValue":o[3]||(o[3]=a=>u(t).ninam=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"\u767B\u5F55\u540D\uFF1A",prop:"usnam",rules:[{required:!0,message:"\u767B\u5F55\u540D\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",pe,[e(f,{modelValue:u(t).usnam,"onUpdate:modelValue":o[4]||(o[4]=a=>u(t).usnam=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"\u5BC6\u7801\uFF1A",prop:"pacod",rules:[{required:!0,message:"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",ie,[e(f,{type:"password",modelValue:u(t).pacod,"onUpdate:modelValue":o[5]||(o[5]=a=>u(t).pacod=a),"show-password":""},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(v,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(i,{label:"\u6240\u5C5E\u90E8\u95E8\uFF1A",prop:"deptna",rules:[{required:!0,message:"\u6240\u5C5E\u90E8\u95E8\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",re,[e(f,{modelValue:u(t).deptna,"onUpdate:modelValue":o[6]||(o[6]=a=>u(t).deptna=a),onClick:U,readonly:"","suffix-icon":u(le)},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:l(()=>[d("div",me,[e(h,{modelValue:u(t).ornum,"onUpdate:modelValue":o[7]||(o[7]=a=>u(t).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:l(()=>[d("div",_e,[e(k,{modelValue:u(t).avtag,"onUpdate:modelValue":o[8]||(o[8]=a=>u(t).avtag=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(v,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(i,{label:"\u804C\u52A1\uFF1A"},{default:l(()=>[d("div",fe,[e(f,{modelValue:u(t).job,"onUpdate:modelValue":o[9]||(o[9]=a=>u(t).job=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"\u624B\u673A\u53F7\uFF1A"},{default:l(()=>[d("div",Fe,[e(f,{modelValue:u(t).monum,"onUpdate:modelValue":o[10]||(o[10]=a=>u(t).monum=a)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:l(()=>[e(i,{label:"email\uFF1A"},{default:l(()=>[d("div",ce,[e(f,{modelValue:u(t).email,"onUpdate:modelValue":o[11]||(o[11]=a=>u(t).email=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(E,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:l(()=>[e(v,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(s,{span:24},{default:l(()=>[e(i,{label:"\u5907\u6CE8\uFF1A"},{default:l(()=>[d("div",ve,[e(f,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:u(t).notes,"onUpdate:modelValue":o[12]||(o[12]=a=>u(t).notes=a)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),J(e(v,null,{default:l(()=>[e(s,{span:12},{default:l(()=>[e(i,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:l(()=>[d("div",Ve,z(u(t).crtim),1)]),_:1})]),_:1}),e(s,{span:12},{default:l(()=>[e(i,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:l(()=>[d("div",be,z(u(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[K,u(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(ee,{ref_key:"orgModal",ref:A,onClose:B},null,512)]),_:1})}}}));export{we as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207230.js b/vboot-web/src/main/resources/static/assets/edit.165429159207230.js deleted file mode 100644 index fa4846a..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207230.js +++ /dev/null @@ -1 +0,0 @@ -var G=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var k=(_,r,i)=>r in _?G(_,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):_[r]=i,q=(_,r)=>{for(var i in r||(r={}))L.call(r,i)&&k(_,i,r[i]);if(z)for(var i of z(r))O.call(r,i)&&k(_,i,r[i]);return _},M=(_,r)=>J(_,K(r));import{a as Q,j as y,aB as W,a3 as ee,ag as ue,m as le,R as te,S as u,a2 as d,o as oe,Z as e,u as t,e as n,T as ae,U as ne,Y as A,X as C,l as de}from"./vue.1654291592072.js";import{e as se,t as re,a as ie}from"./edit.16542915920722.js";import{C as pe}from"./GenModal.1654291592072.js";import{u as N}from"./xutil.1654291592072.js";import{s as me}from"./index.1654291592072.js";const _e=n("div",{style:{"line-height":"32px"}},"\u53C2\u6570\u914D\u7F6E",-1),ce=C("\u4FDD \u5B58"),fe=C("\u5173 \u95ED"),Fe={style:{"margin-top":"8px","margin-bottom":"8px"}},Ee={class:"zinput"},Ce={class:"zinput"},be={class:"zinput"},Ve={class:"zinput"},Ae={class:"zinput"},ve={class:"zinput"},we={class:"zinput"},ye={class:"zinput"},he={class:"zinput"},xe=n("div",{class:"znotes"},[C(" 1.\u53C2\u6570\u4E0E\u9009\u9879\uFF08\u53CA\u8054\u52A8\u3001\u6821\u9A8C\uFF09\u5220\u9664\u65F6\u9700\u8981\u6821\u9A8C\u662F\u5426\u6709\u4EA7\u54C1\u7248\u672C\u5173\u8054\uFF0C\u5982\u679C\u6709\u5173\u8054\u5219\u4E0D\u5141\u8BB8\u5220\u9664"),n("br"),C(" 2.\u5BF9\u4E8E\u4E00\u4E9B\u590D\u6742\u7684\u53C2\u6570\uFF0C\u5982\u697C\u5C42\u660E\u7EC6\uFF0C\u53EF\u505A\u786C\u7F16\u7801\u505A\u6210vue\u7EC4\u4EF6\uFF0C\u53C2\u6570\u8FD9\u91CC\u4FDD\u7559\u5F15\u7528"),n("br"),C(" 3.\u5BF9\u4E8E\u4E00\u4E9B\u5E38\u7528\u7684\uFF0C\u6216\u8005\u578B\u53F7\u65E0\u5173\u7684\u8054\u52A8\uFF0C\u53EF\u5C06\u8054\u52A8\u4EE3\u7801\u5199\u5728\u53C2\u6570\u6216\u8005\u9009\u9879\u672C\u8EAB\u4E0A"),n("br")],-1),ge={class:"zinput",style:{height:"auto"}},Be={class:"zinput"},De={class:"zinput"},Ue={class:"zinput"},ze={class:"zinput"},ke={name:"teFeatParamEdit"},Ie=Q(M(q({},ke),{setup(_){const r=y(),i=W(),{proxy:h}=de(),v=ee({url:"/te/feat/param",params:{path:"",query:""},form:{avtag:!0,options:[]}}),{form:o}=ue(v),x=y("tab1");le(async()=>{await se({state:v,route:i})});const g=y(),R=()=>{g.value.openModal()},S=b=>{o.value.scrid=b.id,o.value.scrna=b.name},$=()=>{o.value.id?o.value.options.push({id:N(),parid:o.value.id}):o.value.options.push({id:N()})};return(b,a)=>{const s=d("el-col"),B=d("el-button"),f=d("el-row"),I=d("CateModal"),c=d("el-input"),p=d("el-form-item"),D=d("el-input-number"),V=d("el-switch"),F=d("el-option"),P=d("el-select"),w=d("el-tab-pane"),E=d("el-table-column"),T=d("ele-CirclePlus"),U=d("el-icon"),j=d("ele-CircleClose"),H=d("el-table"),X=d("el-tabs"),Y=d("el-form"),Z=d("el-card");return oe(),te(Z,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:u(()=>[e(f,null,{default:u(()=>[e(s,{span:10},{default:u(()=>[_e]),_:1}),e(s,{span:14,style:{"text-align":"right"}},{default:u(()=>[e(B,{type:"success",onClick:a[0]||(a[0]=l=>t(re)({formRef:r.value,state:v,proxy:t(h),route:t(i)})),plain:""},{default:u(()=>[ce]),_:1}),e(B,{type:"info",onClick:a[1]||(a[1]=l=>t(ie)({proxy:t(h),route:t(i)})),plain:""},{default:u(()=>[fe]),_:1})]),_:1})]),_:1})]),default:u(()=>[e(I,{url:"oa/flow/cate/tree",ref:"cateModal",onClose:b.cateChoose},null,8,["onClose"]),n("div",Fe,[e(Y,{ref_key:"formRef",ref:r,class:"zform",model:t(o),"label-width":"140px"},{default:u(()=>[e(X,{type:"card",modelValue:x.value,"onUpdate:modelValue":a[12]||(a[12]=l=>x.value=l)},{default:u(()=>[e(w,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:u(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(s,{span:12},{default:u(()=>[e(p,{label:"\u53C2\u6570\u4EE3\u7801\uFF1A",prop:"code",rules:[{required:!0,message:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:u(()=>[n("div",Ee,[e(c,{modelValue:t(o).code,"onUpdate:modelValue":a[2]||(a[2]=l=>t(o).code=l),disabled:t(o).crtim},null,8,["modelValue","disabled"])])]),_:1})]),_:1}),e(s,{span:12},{default:u(()=>[e(p,{label:"\u53C2\u6570\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:u(()=>[n("div",Ce,[e(c,{modelValue:t(o).name,"onUpdate:modelValue":a[3]||(a[3]=l=>t(o).name=l)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:u(()=>[e(s,{span:12},{default:u(()=>[e(p,{label:"\u6240\u5C5E\u5C4F\u5E55\uFF1A",prop:"scrid",rules:[{required:!0,message:"\u5C4F\u5E55\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:u(()=>[n("div",be,[e(c,{modelValue:t(o).scrna,"onUpdate:modelValue":a[4]||(a[4]=l=>t(o).scrna=l),readonly:"","suffix-icon":t(me),onClick:R},null,8,["modelValue","suffix-icon"]),e(pe,{url:"te/feat/screen/tree",ref_key:"screenModal",ref:g,onClose:S},null,512)])]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:u(()=>[n("div",Ve,[e(D,{modelValue:t(o).ornum,"onUpdate:modelValue":a[5]||(a[5]=l=>t(o).ornum=l),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:u(()=>[n("div",Ae,[e(V,{modelValue:t(o).avtag,"onUpdate:modelValue":a[6]||(a[6]=l=>t(o).avtag=l)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:u(()=>[e(s,{span:6},{default:u(()=>[e(p,{label:"\u663E\u793A\u6A21\u5F0F\uFF1A"},{default:u(()=>[n("div",ve,[e(P,{modelValue:t(o).shmod,"onUpdate:modelValue":a[7]||(a[7]=l=>t(o).shmod=l),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:u(()=>[e(F,{value:"input",label:"A1 \u666E\u901A\u8F93\u5165\u6846"}),e(F,{value:"select",label:"B1 \u666E\u901A\u4E0B\u62C9\u6846"}),e(F,{value:"select2",label:"B2 \u53EF\u8F93\u5165\u4E0B\u62C9\u6846"}),e(F,{value:"textarea",label:"C1 \u591A\u884C\u8F93\u5165\u6846"}),e(F,{value:"list",label:"D1 \u660E\u7EC6\u8868"}),e(F,{value:"switch",label:"E1 \u5F00\u5173\uFF08\u6709\uFF0C\u65E0\uFF09"}),e(F,{value:"fuhe",label:"\u590D\u5408\u53C2\u6570"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u662F\u5426\u53EA\u8BFB\uFF1A"},{default:u(()=>[n("div",we,[e(V,{modelValue:t(o).rotag,"onUpdate:modelValue":a[8]||(a[8]=l=>t(o).rotag=l)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u662F\u5426\u4E3A\u571F\u5EFA\u53C2\u6570\uFF1A"},{default:u(()=>[n("div",ye,[e(V,{modelValue:t(o).drtag,"onUpdate:modelValue":a[9]||(a[9]=l=>t(o).drtag=l)},null,8,["modelValue"])])]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u662F\u5426\u4E3A\u8BE2\u4EF7\u53C2\u6570\uFF1A"},{default:u(()=>[n("div",he,[e(V,{modelValue:t(o).qutag,"onUpdate:modelValue":a[10]||(a[10]=l=>t(o).qutag=l)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),xe]),_:1}),e(w,{label:"\u9009\u9879\u4FE1\u606F",name:"tab2"},{default:u(()=>[e(H,{border:"",data:t(o).options,"row-style":{height:"36px"},style:{width:"100%"}},{default:u(()=>[e(E,{type:"expand"},{default:u(l=>[e(f,{gutter:10,style:{"background-color":"white",border:"0","margin-left":"4px","margin-right":"4px"}},{default:u(()=>[e(s,{span:12},{default:u(()=>[e(c,{style:{"font-family":"'Courier New', sans-serif","font-size":"16px"},type:"textarea",rows:10,placeholder:"\u663E\u793A\u9690\u85CF\u63A7\u5236\u51FD\u6570",modelValue:l.row.func1,"onUpdate:modelValue":m=>l.row.func1=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(s,{span:12},{default:u(()=>[e(c,{style:{"font-family":"'Courier New', sans-serif","font-size":"16px"},type:"textarea",rows:10,placeholder:"\u9009\u9879\u9009\u62E9\u540E\u7684\u89E6\u53D1\u51FD\u6570",modelValue:l.row.func2,"onUpdate:modelValue":m=>l.row.func2=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:1}),e(E,{label:"\u6392\u5E8F\u53F7",width:"110"},{default:u(l=>[e(D,{modelValue:l.row.ornum,"onUpdate:modelValue":m=>l.row.ornum=m,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(E,{label:"\u9009\u9879\u4EE3\u7801",width:"180"},{default:u(l=>[e(c,{modelValue:l.row.code,"onUpdate:modelValue":m=>l.row.code=m,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(E,{label:"\u9009\u9879\u540D\u79F0",width:"180"},{default:u(l=>[e(c,{modelValue:l.row.name,"onUpdate:modelValue":m=>l.row.name=m,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(E,{label:"\u9009\u9879\u5907\u6CE8"},{default:u(l=>[e(c,{modelValue:l.row.notes,"onUpdate:modelValue":m=>l.row.notes=m,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(E,{fixed:"right",label:"\u64CD\u4F5C",width:"50",align:"center"},{header:u(()=>[e(U,{size:22,style:{top:"5px",cursor:"pointer"},color:"#666"},{default:u(()=>[e(T,{onClick:$})]),_:1})]),default:u(l=>[e(U,{size:22,style:{top:"3px",cursor:"pointer"}},{default:u(()=>[e(j,{onClick:m=>t(o).options.splice(l.$index,1)},null,8,["onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),_:1}),e(w,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9"},{default:u(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:u(()=>[e(s,{span:24},{default:u(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:u(()=>[n("div",ge,[e(c,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:t(o).notes,"onUpdate:modelValue":a[11]||(a[11]=l=>t(o).notes=l)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),ae(e(f,null,{default:u(()=>[e(s,{span:6},{default:u(()=>[e(p,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:u(()=>[n("div",Be,A(t(o).crman?t(o).crman.name:""),1)]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:u(()=>[n("div",De,A(t(o).crtim),1)]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:u(()=>[n("div",Ue,A(t(o).upman?t(o).upman.name:""),1)]),_:1})]),_:1}),e(s,{span:6},{default:u(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:u(()=>[n("div",ze,A(t(o).uptim),1)]),_:1})]),_:1})]),_:1},512),[[ne,t(o).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Ie as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207231.js b/vboot-web/src/main/resources/static/assets/edit.165429159207231.js deleted file mode 100644 index 91de4f8..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207231.js +++ /dev/null @@ -1 +0,0 @@ -import{a as S,a3 as N,ag as q,j as Q,m as T,R as b,S as t,a2 as n,o as c,e as F,Z as e,u as l,b as j,a7 as z,F as I,T as y,U as g,X as m,Y as p}from"./vue.1654291592072.js";import{d as L,b as M}from"./edit.16542915920722.js";import{g as O}from"./index.1654291592072.js";const X=F("h4",null,"\u7279\u6027\u5C4F\u5E55",-1),Y={style:{padding:"20px","border-top":"1px solid #ccc"}},Z={style:{flex:"auto",margin:"20px"}},$=m("\u786E\u8BA4"),G=m("\u53D6\u6D88"),ee=S({name:"edit",emits:["listQuery"],setup(H,{expose:E,emit:h}){const r=N({url:"/te/feat/screen",show:!1,cates:[],form:{avtag:!0}}),{form:u,cates:A}=q(r),_=Q();E({open:async f=>{await L({state:r,id:f}),f||_.value.resetFields()}});const v=async()=>{await M({formRef:_.value,state:r}),h("listQuery")},x=async()=>{A.value=await O({url:"/te/prod/cate/list",method:"get"})};return T(()=>{x()}),(f,o)=>{const V=n("el-input"),s=n("el-form-item"),d=n("el-col"),B=n("el-option"),C=n("el-select"),i=n("el-row"),D=n("el-input-number"),k=n("el-switch"),U=n("el-form"),w=n("el-button"),R=n("el-drawer");return c(),b(R,{modelValue:r.show,"onUpdate:modelValue":o[6]||(o[6]=a=>r.show=a),size:"70%"},{title:t(()=>[X]),default:t(()=>[F("div",Y,[e(U,{ref_key:"formRef",ref:_,model:l(u),"label-width":"160px"},{default:t(()=>[e(i,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u5C4F\u5E55\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(V,{modelValue:l(u).name,"onUpdate:modelValue":o[0]||(o[0]=a=>l(u).name=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(C,{modelValue:l(u).catid,"onUpdate:modelValue":o[1]||(o[1]=a=>l(u).catid=a),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B"},{default:t(()=>[(c(!0),j(I,null,z(l(A),a=>(c(),b(B,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(i,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[e(D,{modelValue:l(u).ornum,"onUpdate:modelValue":o[2]||(o[2]=a=>l(u).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[e(k,{modelValue:l(u).avtag,"onUpdate:modelValue":o[3]||(o[3]=a=>l(u).avtag=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),y(e(i,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[m(p(l(u).crman?l(u).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[m(p(l(u).crtim),1)]),_:1})]),_:1})]),_:1},512),[[g,l(u).crtim]]),y(e(i,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[m(p(l(u).upman?l(u).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[m(p(l(u).uptim),1)]),_:1})]),_:1})]),_:1},512),[[g,l(u).crtim]]),e(i,{style:{height:"48px"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[e(V,{modelValue:l(u).notes,"onUpdate:modelValue":o[4]||(o[4]=a=>l(u).notes=a),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),footer:t(()=>[F("div",Z,[e(w,{type:"primary",onClick:v},{default:t(()=>[$]),_:1}),e(w,{onClick:o[5]||(o[5]=a=>r.show=!1)},{default:t(()=>[G]),_:1})])]),_:1},8,["modelValue"])}}});export{ee as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207232.js b/vboot-web/src/main/resources/static/assets/edit.165429159207232.js deleted file mode 100644 index 16f7cf9..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207232.js +++ /dev/null @@ -1 +0,0 @@ -import{a as v,j as C,a3 as D,ag as U,R as k,S as t,a2 as d,o as R,e as f,Z as e,u,T as V,U as w,X as m,Y as p}from"./vue.1654291592072.js";import{d as S,b as N}from"./edit.16542915920722.js";import"./index.1654291592072.js";const q=f("h4",null,"\u4EA7\u54C1\u5206\u7C7B",-1),Q={style:{padding:"20px","border-top":"1px solid #ccc"}},T={style:{flex:"auto",margin:"20px"}},j=m("\u786E\u8BA4"),z=m("\u53D6\u6D88"),G=v({name:"edit",emits:["listQuery"],setup(O,{expose:b,emit:y}){const F=C(),r=D({url:"/te/prod/cate",show:!1,form:{avtag:!0}}),{form:l}=U(r);b({open:async c=>{await S({state:r,id:c})}});const E=async()=>{await N({formRef:F.value,state:r,iouField:"crtim"}),y("listQuery")};return(c,o)=>{const _=d("el-input"),n=d("el-form-item"),s=d("el-col"),i=d("el-row"),g=d("el-input-number"),h=d("el-switch"),x=d("el-form"),A=d("el-button"),B=d("el-drawer");return R(),k(B,{modelValue:r.show,"onUpdate:modelValue":o[6]||(o[6]=a=>r.show=a),size:"70%"},{title:t(()=>[q]),default:t(()=>[f("div",Q,[e(x,{ref_key:"formRef",ref:F,model:u(l),"label-width":"160px"},{default:t(()=>[e(i,{style:{height:"48px"}},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(n,{label:"\u5206\u7C7B\u4EE3\u7801\uFF1A",prop:"id",rules:[{required:!0,message:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(_,{modelValue:u(l).id,"onUpdate:modelValue":o[0]||(o[0]=a=>u(l).id=a),disabled:!!u(l).crtim},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(n,{label:"\u5206\u7C7B\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(_,{modelValue:u(l).name,"onUpdate:modelValue":o[1]||(o[1]=a=>u(l).name=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(i,{style:{height:"48px"}},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(n,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[e(g,{modelValue:u(l).ornum,"onUpdate:modelValue":o[2]||(o[2]=a=>u(l).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(n,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[e(h,{modelValue:u(l).avtag,"onUpdate:modelValue":o[3]||(o[3]=a=>u(l).avtag=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),V(e(i,{style:{height:"48px"}},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(n,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[m(p(u(l).crman?u(l).crman.name:""),1)]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(n,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[m(p(u(l).crtim),1)]),_:1})]),_:1})]),_:1},512),[[w,u(l).crtim]]),V(e(i,{style:{height:"48px"}},{default:t(()=>[e(s,{span:12},{default:t(()=>[e(n,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[m(p(u(l).upman?u(l).upman.name:""),1)]),_:1})]),_:1}),e(s,{span:12},{default:t(()=>[e(n,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[m(p(u(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[w,u(l).crtim]]),e(i,{style:{height:"48px"}},{default:t(()=>[e(s,{span:24},{default:t(()=>[e(n,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[e(_,{modelValue:u(l).notes,"onUpdate:modelValue":o[4]||(o[4]=a=>u(l).notes=a),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),footer:t(()=>[f("div",T,[e(A,{type:"primary",onClick:E},{default:t(()=>[j]),_:1}),e(A,{onClick:o[5]||(o[5]=a=>r.show=!1)},{default:t(()=>[z]),_:1})])]),_:1},8,["modelValue"])}}});export{G as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207233.js b/vboot-web/src/main/resources/static/assets/edit.165429159207233.js deleted file mode 100644 index 73c4255..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207233.js +++ /dev/null @@ -1 +0,0 @@ -import{a as z,j as L,a3 as M,ag as O,m as X,R as c,S as t,a2 as n,o as p,e as w,Z as e,u as a,b as B,a7 as E,F as C,T as x,U as D,X as i,Y as _}from"./vue.1654291592072.js";import{d as Y,b as Z}from"./edit.16542915920722.js";import{g as F}from"./index.1654291592072.js";const $=w("h4",null,"\u4EA7\u54C1\u578B\u53F7",-1),G={style:{padding:"20px","border-top":"1px solid #ccc"}},H={style:{flex:"auto",margin:"20px"}},J=i("\u786E\u8BA4"),K=i("\u53D6\u6D88"),ae=z({name:"edit",emits:["listQuery"],setup(P,{expose:k,emit:U}){const A=L(),r=M({url:"/te/prod/model",show:!1,cates:[],series:[],form:{avtag:!0}}),{form:l,cates:V,series:f}=O(r);k({open:async v=>{await Y({state:r,id:v}),await q()}});const R=async()=>{await Z({formRef:A.value,state:r}),U("listQuery")};X(async()=>{await S()});const S=async()=>{V.value=await F({url:"/te/prod/cate/list",method:"get"})},N=async()=>{f.value=await F({url:"/te/prod/serie/list",method:"get",params:{catid:l.value.catid}}),l.value.serid=""},q=async()=>{f.value=await F({url:"/te/prod/serie/list",method:"get",params:{catid:l.value.catid}})};return(v,o)=>{const y=n("el-input"),s=n("el-form-item"),d=n("el-col"),b=n("el-option"),g=n("el-select"),m=n("el-row"),I=n("el-input-number"),Q=n("el-switch"),T=n("el-form"),h=n("el-button"),j=n("el-drawer");return p(),c(j,{modelValue:r.show,"onUpdate:modelValue":o[7]||(o[7]=u=>r.show=u),size:"70%"},{title:t(()=>[$]),default:t(()=>[w("div",G,[e(T,{ref_key:"formRef",ref:A,model:a(l),"label-width":"160px"},{default:t(()=>[e(m,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u578B\u53F7\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(y,{modelValue:a(l).name,"onUpdate:modelValue":o[0]||(o[0]=u=>a(l).name=u)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(s,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(g,{modelValue:a(l).catid,"onUpdate:modelValue":o[1]||(o[1]=u=>a(l).catid=u),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B",onChange:N},{default:t(()=>[(p(!0),B(C,null,E(a(V),u=>(p(),c(b,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:t(()=>[e(s,{label:"\u6240\u5C5E\u7CFB\u5217\uFF1A",prop:"serid"},{default:t(()=>[e(g,{modelValue:a(l).serid,"onUpdate:modelValue":o[2]||(o[2]=u=>a(l).serid=u),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u7CFB\u5217"},{default:t(()=>[(p(!0),B(C,null,E(a(f),u=>(p(),c(b,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(m,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[e(I,{modelValue:a(l).ornum,"onUpdate:modelValue":o[3]||(o[3]=u=>a(l).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[e(Q,{modelValue:a(l).avtag,"onUpdate:modelValue":o[4]||(o[4]=u=>a(l).avtag=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),x(e(m,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[i(_(a(l).crman?a(l).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i(_(a(l).crtim),1)]),_:1})]),_:1})]),_:1},512),[[D,a(l).crtim]]),x(e(m,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[i(_(a(l).upman?a(l).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i(_(a(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[D,a(l).crtim]]),e(m,{style:{height:"48px"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[e(y,{modelValue:a(l).notes,"onUpdate:modelValue":o[5]||(o[5]=u=>a(l).notes=u),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),footer:t(()=>[w("div",H,[e(h,{type:"primary",onClick:R},{default:t(()=>[J]),_:1}),e(h,{onClick:o[6]||(o[6]=u=>r.show=!1)},{default:t(()=>[K]),_:1})])]),_:1},8,["modelValue"])}}});export{ae as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207234.js b/vboot-web/src/main/resources/static/assets/edit.165429159207234.js deleted file mode 100644 index 68e4426..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207234.js +++ /dev/null @@ -1 +0,0 @@ -import{a as S,j as N,a3 as q,ag as Q,m as T,R as b,S as t,a2 as n,o as _,e as f,Z as e,u as l,b as j,a7 as z,F as I,T as y,U as g,X as m,Y as i}from"./vue.1654291592072.js";import{d as L,b as M}from"./edit.16542915920722.js";import{g as O}from"./index.1654291592072.js";const X=f("h4",null,"\u4EA7\u54C1\u7CFB\u5217",-1),Y={style:{padding:"20px","border-top":"1px solid #ccc"}},Z={style:{flex:"auto",margin:"20px"}},$=m("\u786E\u8BA4"),G=m("\u53D6\u6D88"),ee=S({name:"edit",emits:["listQuery"],setup(H,{expose:h,emit:B}){const c=N(),r=q({url:"/te/prod/serie",show:!1,cates:[],form:{avtag:!0}}),{form:u,cates:F}=Q(r);h({open:async A=>{await L({state:r,id:A})}});const E=async()=>{await M({formRef:c.value,state:r}),B("listQuery")},v=async()=>{F.value=await O({url:"/te/prod/cate/list",method:"get"})};return T(()=>{v()}),(A,o)=>{const V=n("el-input"),s=n("el-form-item"),d=n("el-col"),x=n("el-option"),C=n("el-select"),p=n("el-row"),D=n("el-input-number"),k=n("el-switch"),U=n("el-form"),w=n("el-button"),R=n("el-drawer");return _(),b(R,{modelValue:r.show,"onUpdate:modelValue":o[6]||(o[6]=a=>r.show=a),size:"70%"},{title:t(()=>[X]),default:t(()=>[f("div",Y,[e(U,{ref_key:"formRef",ref:c,model:l(u),"label-width":"160px"},{default:t(()=>[e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u7CFB\u5217\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(V,{modelValue:l(u).name,"onUpdate:modelValue":o[0]||(o[0]=a=>l(u).name=a)},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(C,{modelValue:l(u).catid,"onUpdate:modelValue":o[1]||(o[1]=a=>l(u).catid=a),placeholder:"\u8BF7\u9009\u62E9\u4EA7\u54C1\u5206\u7C7B"},{default:t(()=>[(_(!0),j(I,null,z(l(F),a=>(_(),b(x,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[e(D,{modelValue:l(u).ornum,"onUpdate:modelValue":o[2]||(o[2]=a=>l(u).ornum=a),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[e(k,{modelValue:l(u).avtag,"onUpdate:modelValue":o[3]||(o[3]=a=>l(u).avtag=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),y(e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[m(i(l(u).crman?l(u).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[m(i(l(u).crtim),1)]),_:1})]),_:1})]),_:1},512),[[g,l(u).crtim]]),y(e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[m(i(l(u).upman?l(u).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[m(i(l(u).uptim),1)]),_:1})]),_:1})]),_:1},512),[[g,l(u).crtim]]),e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[e(V,{modelValue:l(u).notes,"onUpdate:modelValue":o[4]||(o[4]=a=>l(u).notes=a),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),footer:t(()=>[f("div",Z,[e(w,{type:"primary",onClick:E},{default:t(()=>[$]),_:1}),e(w,{onClick:o[5]||(o[5]=a=>r.show=!1)},{default:t(()=>[G]),_:1})])]),_:1},8,["modelValue"])}}});export{ee as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207235.js b/vboot-web/src/main/resources/static/assets/edit.165429159207235.js deleted file mode 100644 index fd8c20a..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207235.js +++ /dev/null @@ -1 +0,0 @@ -var Z=Object.defineProperty;var U=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var N=(i,l,a)=>l in i?Z(i,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[l]=a,q=(i,l)=>{for(var a in l||(l={}))G.call(l,a)&&N(i,a,l[a]);if(U)for(var a of U(l))H.call(l,a)&&N(i,a,l[a]);return i};import{g as x}from"./index.1654291592072.js";import{a as J,j as V,aB as K,a3 as P,ag as Q,m as W,R as f,S as e,a2 as n,o as c,Z as t,e as v,u as m,b as k,a7 as z,F,X as D,l as Y}from"./vue.1654291592072.js";var $="assets/111.1654291592072.png";const ee={style:{"line-height":"32px"}},te=D("\u4FDD \u5B58"),ae=D("\u5173 \u95ED"),le={style:{"margin-top":"8px","margin-bottom":"8px"}},oe=v("div",{style:{"font-size":"18px","margin-top":"8px","margin-bottom":"8px","margin-left":"8px"}},"\u571F\u5EFA\u793A\u610F\u56FE",-1),ne={style:{"margin-left":"10px","margin-right":"10px","border-left":"1px solid #eee","border-right":"1px solid #eee"}},ue=["src"],ie=J({name:"edit",setup(i){V([]),V();const{proxy:l}=Y(),a=K(),C=P({form:{avtag:!0,options:[{id:1,name:11,func1:"",func2:""},{id:2,name:22,func1:"",func2:""}],feat:{}},params:{path:"",query:""},zmodel:{}}),{form:o,params:y,zmodel:g}=Q(C),h=V(""),w=()=>{l.mittBus.emit("onCurrentContextmenuClick",Object.assign({},q({contextMenuClickId:1},a)))};async function I(){o.value.id?await x({url:"/te/feat/param",method:"put",data:o.value}):await x({url:"/te/feat/param",method:"post",data:o.value}),w()}const R=async u=>{u?o.value=await x({url:"/te/feat/param/one/"+u,method:"get"}):o.value={avtag:!0}},j=async u=>{g.value=await x({url:"/te/prod/model/zmodel/"+u,method:"get"}),g.value.screens&&(h.value=g.value.screens[0].id)};return W(()=>{var u,d,_,p;C.params=a,(u=y.value.query)!=null&&u.id&&R((d=y.value.query)==null?void 0:d.id),(_=y.value.query)!=null&&_.modid&&j((p=y.value.query)==null?void 0:p.modid)}),(u,d)=>{const _=n("el-input"),p=n("el-col"),E=n("el-button"),A=n("el-row"),M=n("el-form-item"),S=n("el-tab-pane"),L=n("el-tabs"),O=n("el-form"),B=n("el-collapse-item"),T=n("el-collapse"),X=n("el-card");return c(),f(X,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:e(()=>[t(A,null,{default:e(()=>[t(p,{span:10},{default:e(()=>[v("div",ee,[t(_,{modelValue:m(o).aaa,"onUpdate:modelValue":d[0]||(d[0]=s=>m(o).aaa=s),placeholder:"\u8F93\u5165\u53C2\u6570\u540D\u56DE\u8F66\u67E5\u8BE2",style:{width:"200px"}},null,8,["modelValue"])])]),_:1}),t(p,{span:14,style:{"text-align":"right"}},{default:e(()=>[t(E,{type:"success",onClick:I,plain:""},{default:e(()=>[te]),_:1}),t(E,{type:"info",onClick:w,plain:""},{default:e(()=>[ae]),_:1})]),_:1})]),_:1})]),default:e(()=>[v("div",le,[t(A,{style:{background:"white"}},{default:e(()=>[t(p,{span:16},{default:e(()=>[t(O,{model:m(o),"label-width":"200px"},{default:e(()=>[t(L,{type:"card",modelValue:h.value,"onUpdate:modelValue":d[1]||(d[1]=s=>h.value=s)},{default:e(()=>[(c(!0),k(F,null,z(m(g).screens,s=>(c(),f(S,{label:s.name,name:s.id,key:s.id},{default:e(()=>[(c(!0),k(F,null,z(s.params,r=>(c(),f(M,{key:r.id,label:r.name},{default:e(()=>[r.shmod=="select"?(c(),f(_,{key:0,modelValue:m(o).feat[r.code],"onUpdate:modelValue":b=>m(o).feat[r.code]=b},null,8,["modelValue","onUpdate:modelValue"])):r.shmod=="input"?(c(),f(_,{key:1,modelValue:m(o).feat[r.code],"onUpdate:modelValue":b=>m(o).feat[r.code]=b},null,8,["modelValue","onUpdate:modelValue"])):(c(),k(F,{key:2},[],64))]),_:2},1032,["label"]))),128))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["model"])]),_:1}),t(p,{span:8},{default:e(()=>[oe,v("div",ne,[t(T,{modelValue:u.active2Name,"onUpdate:modelValue":d[2]||(d[2]=s=>u.active2Name=s)},{default:e(()=>[t(B,{title:"\xA0\xA0\u793A\u610F\u56FE1",name:"1"},{default:e(()=>[v("img",{src:m($),style:{height:"400px"}},null,8,ue)]),_:1}),t(B,{title:"\xA0\xA0\u793A\u610F\u56FE2",name:"2"})]),_:1},8,["modelValue"])])]),_:1})]),_:1})])]),_:1})}}});export{ie as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207236.js b/vboot-web/src/main/resources/static/assets/edit.165429159207236.js deleted file mode 100644 index 573f25d..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207236.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Q,j as D,aB as W,a3 as uu,ag as eu,m as lu,n as au,R as x,S as e,a2 as p,o as V,Z as u,u as a,e as d,Y as y,T as j,U as I,b as L,a7 as q,F as $,X as m,l as tu}from"./vue.1654291592072.js";import{e as ou,a as du,t as nu}from"./edit.16542915920722.js";import{g as su}from"./index.1654291592072.js";import{C as Fu}from"./GenModal.1654291592072.js";const iu=d("div",{style:{"line-height":"32px"}},"\u4EA7\u54C1\u7248\u672C",-1),pu=m("\u4FDD \u5B58"),ru=m("\u65B0\u7248\u672C"),mu=m("\u5BFC\u51FA"),_u=m("\u5173 \u95ED"),Eu={style:{"margin-top":"8px","margin-bottom":"8px"}},fu={class:"zinput"},Au={class:"zinput"},Cu={class:"zinput"},cu={class:"zinput"},bu={class:"zinput"},vu={class:"zinput"},Bu={class:"zinput"},Du={class:"zinput"},Vu={class:"zinput"},yu=d("div",{class:"znotes"},[m(" 1.\u9ED8\u8BA4\u7248\u672C\u6709\u4E14\u53EA\u6709\u4E00\u4E2A\uFF0C\u524D\u7AEF\u9009\u62E9\u4EA7\u54C1\u540E\u6839\u636E\u9ED8\u8BA4\u7248\u672C\u5173\u8054\u7684\u53C2\u6570\uFF0C\u8054\u52A8\uFF0C\u6821\u9A8C\u52A8\u6001\u7EC4\u5408\u6210\u4EA7\u54C1\u7EF4\u62A4\u754C\u9762"),d("br"),m(" 2.\u5408\u540C\u8BC4\u5BA1\u901A\u8FC7\u540E\uFF08\u5177\u4F53\u65F6\u95F4\u8282\u70B9\u5F85\u5B9A\uFF09\uFF0C\u5C06\u4EA7\u54C1\u7684\u7248\u672C\u56FA\u5B9A\uFF0C\u5F53\u4FEE\u6539\u65F6\u5982\u679C\u6B64\u7248\u672C\u7684\u6709\u6548\u671F\u8D85\u51FA\u4E86\u7CFB\u7EDF\u8BBE\u5B9A\uFF0C\u5219\u9700\u6309\u6700\u65B0\u7684\u7248\u672C\u91CD\u65B0\u8C03\u6574"),d("br"),m(" 3.\u7248\u672C\u7684\u65B0\u5EFA\u7531\u540E\u53F0\u7EF4\u62A4\u4EBA\u5458\u81EA\u5DF1\u5B9A\uFF08\u6BD4\u5982\u5F53\u6709\u5927\u8C03\u6574\u65F6\u505A\u4E00\u4E2A\u65B0\u7248\u672C\uFF0C\u8001\u7248\u672C\u8BBE\u5B9A\u6709\u6548\u671F\uFF09"),d("br"),m(" 4.\u914D\u7F6E\u65B9\u5F0F\u4E3A\u7EC4\u4EF6\u5F0F\u65F6\uFF0C\u53EF\u4EE5\u9009\u62E9\u591A\u4E2A\u7279\u6027\u6A21\u677F\u7EC4\u5408\u5F0F\u5730\u5408\u5E76\u53C2\u6570\uFF08\u6392\u9664\u91CD\u590D\u9879\uFF09\uFF0C\u7C7B\u4F3C\u4E00\u4E2A\u578B\u53F7\u662F\u6709\u5F88\u591A\u4E2A\u7EC4\u4EF6\u5408\u6210\u7684\uFF08\u4F18\u5148\u5B9E\u73B0\u81EA\u5B9A\u4E49\u65B9\u5F0F\u914D\u7F6E\uFF09"),d("br"),m(" 5.\u7EC4\u4EF6\u662F\u5305\u542B\u53C2\u6570\uFF0C\u8054\u52A8\uFF0C\u6821\u9A8C\uFF0C\u9A71\u52A8\u7B49\u7684\u4E00\u4E2A\u96C6\u5408"),d("br")],-1),wu={class:"zinput"},hu={class:"zinput"},gu=d("div",{class:"zinput"},null,-1),xu={style:{"margin-left":"15px","margin-right":"15px","margin-top":"10px"}},zu=d("div",{class:"znotes"},[m(" 1.\u5339\u914D\u65B9\u5F0F\u5982\u679C\u4E3A\u81EA\u5B9A\u4E49\uFF0C\u5219\u6B64\u754C\u9762\u53EF\u4EE5\u76F4\u63A5\u5206\u914D\u53C2\u6570"),d("br"),m(" 2.\u81EA\u5B9A\u4E49\u4FDD\u5B58\u65F6\uFF0C\u4E3A\u4E86\u6570\u636E\u7684\u4E00\u81F4\u6027\uFF0C\u4E5F\u9700\u8981\u5C06\u53C2\u6570\u5206\u914D\u7684\u6570\u636E\u4FDD\u5B58\u5230\u53C2\u6570\u5206\u914D\u7684\u8868\u91CC\uFF0C\u505A\u4E3A\u4E00\u4E2A\u5F53\u524D\u7248\u672C\u7684\u4E13\u7528\u5206\u914D\u6A21\u677F"),d("br"),m(" 3.\u5339\u914D\u65B9\u5F0F\u5982\u679C\u4E3A\u901A\u8FC7\u6A21\u677F\uFF0C\u5219\u53EF\u4EE5\u5F15\u7528\u5148\u524D\u5EFA\u597D\u7684\u5206\u914D\u6A21\u677F\uFF0C\u63D0\u9AD8\u76F8\u4F3C\u4EA7\u54C1\u7684\u6570\u636E\u6216\u540C\u4EA7\u54C1\u4E0D\u540C\u7248\u672C\u7684\u6570\u636E\u914D\u7F6E\u5229\u7528\u7387"),d("br")],-1),Uu={class:"zinput"},ku={class:"zinput"},Su=d("div",{class:"znotes"},[m(" 1.\u53EA\u663E\u793A\u4E0E\u5DF2\u9009\u53C2\u6570\u6709\u5173\u8054\u7684\u5168\u5C40\u8054\u52A8\u5206\u914D"),d("br")],-1),Ru={class:"zinput"},Mu={class:"zinput"},Nu=d("div",{class:"zinput"},null,-1),Ku={class:"zinput"},Tu={class:"zinput"},ju=d("div",{class:"zinput"},null,-1),Iu={class:"zinput",style:{height:"auto"}},Lu={class:"zinput"},qu={class:"zinput"},$u={class:"zinput"},Hu={class:"zinput"},Ou=Q({name:"edit",setup(Xu){const z=D(),w=W(),{proxy:U}=tu(),h=uu({url:"/te/prod/version",params:{path:"",query:""},form:{avtag:!0,venum:1,detag:!0,coway:"a",paway:"a",laway:"a",caway:"a",dpaway:"a",patem:{},options:[{id:1,name:11,func1:"",func2:""},{id:2,name:22,func1:"",func2:""}]},screens:[],comps:[]}),{form:t,screens:C,comps:k}=eu(h),S=D("tab1");lu(async()=>{await ou({state:h,route:w}),await X()});const H=async()=>{t.value.patem.items=[];for(let i=0;i{C.value=await su({url:"/te/allot/param/screens/",method:"get",params:{id:"dt"}}),C.value.length>0&&(g.value=C.value[0].id),au(()=>{for(let i=0;i{for(const n of t.value.patem.items)if(n.parid==l.id){n.options&&(l.oparr=n.options.split(",")),b.value[i].toggleRowSelection(l,!0);break}})})},R=D(),Y=()=>{R.value.openModal()},Z=i=>{t.value.modid=i.id,t.value.modna=i.name};return(i,l)=>{const n=p("el-col"),v=p("el-button"),_=p("el-row"),B=p("el-input"),F=p("el-form-item"),s=p("el-option"),E=p("el-select"),G=p("el-input-number"),M=p("el-switch"),N=p("el-date-picker"),f=p("el-table-column"),K=p("el-table"),c=p("el-tab-pane"),T=p("el-tabs"),J=p("el-form"),O=p("el-card");return V(),x(O,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:e(()=>[u(_,null,{default:e(()=>[u(n,{span:10},{default:e(()=>[iu]),_:1}),u(n,{span:14,style:{"text-align":"right"}},{default:e(()=>[u(v,{type:"success",onClick:l[0]||(l[0]=o=>H()),plain:""},{default:e(()=>[pu]),_:1}),u(v,{type:"info",icon:i.CopyDocument,plain:""},{default:e(()=>[ru]),_:1},8,["icon"]),u(v,{type:"info",icon:i.Download,plain:""},{default:e(()=>[mu]),_:1},8,["icon"]),u(v,{type:"info",onClick:l[1]||(l[1]=o=>a(du)({proxy:a(U),route:a(w)})),plain:""},{default:e(()=>[_u]),_:1})]),_:1})]),_:1})]),default:e(()=>[d("div",Eu,[u(J,{ref_key:"formRef",ref:z,class:"zform",model:a(t),"label-width":"140px"},{default:e(()=>[u(T,{type:"card",modelValue:S.value,"onUpdate:modelValue":l[21]||(l[21]=o=>S.value=o)},{default:e(()=>[u(c,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:e(()=>[u(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[u(n,{span:12},{default:e(()=>[u(F,{label:"\u7248\u672C\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:e(()=>[d("div",fu,[u(B,{modelValue:a(t).name,"onUpdate:modelValue":l[2]||(l[2]=o=>a(t).name=o)},null,8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:12},{default:e(()=>[u(F,{label:"\u6240\u5C5E\u578B\u53F7\uFF1A",prop:"modid"},{default:e(()=>[d("div",Au,[u(B,{modelValue:a(t).modna,"onUpdate:modelValue":l[3]||(l[3]=o=>a(t).modna=o),readonly:"","suffix-icon":i.Search,onClick:Y},null,8,["modelValue","suffix-icon"]),u(Fu,{url:"/te/prod/model/tree",ref_key:"modelModal",ref:R,onClose:Z},null,512)])]),_:1})]),_:1})]),_:1}),u(_,null,{default:e(()=>[u(n,{span:12},{default:e(()=>[u(F,{label:"\u914D\u7F6E\u65B9\u5F0F\uFF1A",prop:"modid"},{default:e(()=>[d("div",Cu,[u(E,{modelValue:a(t).coway,"onUpdate:modelValue":l[4]||(l[4]=o=>a(t).coway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u81EA\u5B9A\u4E49\u914D\u7F6E"}),u(s,{value:"b",label:"\u7EC4\u4EF6\u5F0F\u914D\u7F6E"}),u(s,{value:"c",label:"\u7EE7\u627F\u5F0F\u914D\u7F6E"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:e(()=>[d("div",cu,[u(G,{modelValue:a(t).ornum,"onUpdate:modelValue":l[5]||(l[5]=o=>a(t).ornum=o),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:e(()=>[d("div",bu,[u(M,{modelValue:a(t).avtag,"onUpdate:modelValue":l[6]||(l[6]=o=>a(t).avtag=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),u(_,null,{default:e(()=>[u(n,{span:6},{default:e(()=>[u(F,{label:"\u7248\u672C\u53F7\uFF1A"},{default:e(()=>[d("div",vu,y(a(t).venum),1)]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u662F\u5426\u4E3A\u9ED8\u8BA4\u7248\u672C\uFF1A"},{default:e(()=>[d("div",Bu,[u(M,{modelValue:a(t).detag,"onUpdate:modelValue":l[7]||(l[7]=o=>a(t).detag=o)},null,8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u751F\u6548\u5F00\u59CB\u65F6\u95F4\uFF1A"},{default:e(()=>[d("div",Du,[u(N,{modelValue:a(t).stdat,"onUpdate:modelValue":l[8]||(l[8]=o=>a(t).stdat=o),type:"date",placeholder:" "},null,8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u751F\u6548\u7ED3\u675F\u65F6\u95F4\uFF1A"},{default:e(()=>[d("div",Vu,[u(N,{modelValue:a(t).endat,"onUpdate:modelValue":l[9]||(l[9]=o=>a(t).endat=o),type:"date",placeholder:" "},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),j(u(_,null,{default:e(()=>[u(n,{span:24,style:{"background-color":"white"}},{default:e(()=>[u(K,{data:a(k),style:{width:"100%",height:"200px","margin-top":"10px","margin-left":"10px","margin-right":"10px"}},{default:e(()=>[u(f,{type:"selection",width:"55"}),u(f,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),u(f,{prop:"name",label:"\u7EC4\u4EF6\u540D\u79F0",width:"180"}),u(f,{prop:"notes",label:"\u7EC4\u4EF6\u63CF\u8FF0"})]),_:1},8,["data"])]),_:1})]),_:1},512),[[I,a(t).coway=="b"]]),yu]),_:1}),u(c,{label:"\u53C2\u6570\u5206\u914D",name:"tab3"},{default:e(()=>[u(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[u(n,{span:6},{default:e(()=>[u(F,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:e(()=>[d("div",wu,[u(E,{modelValue:a(t).paway,"onUpdate:modelValue":l[10]||(l[10]=o=>a(t).paway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),u(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:e(()=>[d("div",hu,[u(E,{modelValue:a(t).patem,"onUpdate:modelValue":l[11]||(l[11]=o=>a(t).patem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u53C2\u6570\u5206\u914D001"}),u(s,{value:"b",label:"\u53C2\u6570\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:12},{default:e(()=>[gu]),_:1})]),_:1}),u(_,null,{default:e(()=>[u(n,{span:24,style:{"background-color":"white"}},{default:e(()=>[d("div",xu,[u(T,{modelValue:g.value,"onUpdate:modelValue":l[13]||(l[13]=o=>g.value=o)},{default:e(()=>[(V(!0),L($,null,q(a(C),(o,P)=>(V(),x(c,{label:o.name,name:o.id,key:o.id},{default:e(()=>[u(K,{ref_for:!0,ref:r=>{r&&(a(b)[P]=r)},data:o.zparams,style:{width:"100%",height:"500px"}},{default:e(()=>[u(f,{type:"selection",width:"55"}),u(f,{prop:"code",label:"\u53C2\u6570\u4EE3\u7801",width:"180"}),u(f,{prop:"name",label:"\u53C2\u6570\u540D\u79F0",width:"180"}),u(f,{prop:"ornum",label:"\u6392\u5E8F\u53F7",width:"100"}),u(f,{label:"\u521D\u59CB\u53EF\u9009\u9879",width:"300"},{default:e(r=>[u(E,{modelValue:r.row.oparr,"onUpdate:modelValue":A=>r.row.oparr=A,placeholder:" ",multiple:"",style:{width:"100%"}},{default:e(()=>[(V(!0),L($,null,q(r.row.zoptions,A=>(V(),x(s,{key:A.id,value:A.code,label:A.name},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),u(f,{label:"\u521D\u59CB\u9ED8\u8BA4\u503C",width:"180"},{default:e(r=>[u(E,{modelValue:r.row.deval,"onUpdate:modelValue":A=>r.row.deval=A,placeholder:" ",style:{width:"100%"},clearable:""},{default:e(()=>[u(s,{value:"dt21",label:"630kg"}),u(s,{value:"dt22",label:"1000kg"}),u(s,{value:"dt3",label:"1050kg"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),u(f,{align:"right"},{header:e(()=>[u(B,{modelValue:i.search,"onUpdate:modelValue":l[12]||(l[12]=r=>i.search=r),placeholder:"\u8F93\u5165\u53C2\u6570\u4EE3\u7801\u6216\u53C2\u6570\u540D\u79F0\u505A\u8FC7\u6EE4"},null,8,["modelValue"])]),default:e(r=>[u(B,{modelValue:r.row.notes,"onUpdate:modelValue":A=>r.row.notes=A,placeholder:"\u5907\u6CE8"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:2},1032,["data"])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1}),zu]),_:1}),u(c,{label:"\u8054\u52A8\u5206\u914D",name:"tab4"},{default:e(()=>[u(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[u(n,{span:6},{default:e(()=>[u(F,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:e(()=>[d("div",Uu,[u(E,{modelValue:a(t).laway,"onUpdate:modelValue":l[14]||(l[14]=o=>a(t).laway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),u(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:e(()=>[d("div",ku,[u(E,{modelValue:a(t).latem,"onUpdate:modelValue":l[15]||(l[15]=o=>a(t).latem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u8054\u52A8\u5206\u914D001"}),u(s,{value:"b",label:"\u8054\u52A8\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:12})]),_:1}),Su]),_:1}),u(c,{label:"\u6821\u9A8C\u5206\u914D",name:"tab5"},{default:e(()=>[u(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[u(n,{span:6},{default:e(()=>[u(F,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:e(()=>[d("div",Ru,[u(E,{modelValue:a(t).caway,"onUpdate:modelValue":l[16]||(l[16]=o=>a(t).caway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),u(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:e(()=>[d("div",Mu,[u(E,{modelValue:a(t).catem,"onUpdate:modelValue":l[17]||(l[17]=o=>a(t).catem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u6821\u9A8C\u5206\u914D001"}),u(s,{value:"b",label:"\u6821\u9A8C\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:12},{default:e(()=>[Nu]),_:1})]),_:1})]),_:1}),u(c,{label:"\u9A71\u52A8\u5206\u914D",name:"tab6"},{default:e(()=>[u(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[u(n,{span:6},{default:e(()=>[u(F,{label:"\u5339\u914D\u65B9\u5F0F\uFF1A"},{default:e(()=>[d("div",Ku,[u(E,{modelValue:a(t).daway,"onUpdate:modelValue":l[18]||(l[18]=o=>a(t).daway=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u81EA\u5B9A\u4E49"}),u(s,{value:"b",label:"\u901A\u8FC7\u6A21\u677F"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u5F15\u7528\u6A21\u677F\uFF1A"},{default:e(()=>[d("div",Tu,[u(E,{modelValue:a(t).datem,"onUpdate:modelValue":l[19]||(l[19]=o=>a(t).datem=o),placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"}},{default:e(()=>[u(s,{value:"a",label:"\u6821\u9A8C\u5206\u914D001"}),u(s,{value:"b",label:"\u6821\u9A8C\u5206\u914D002"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),u(n,{span:12},{default:e(()=>[ju]),_:1})]),_:1})]),_:1}),u(c,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9"},{default:e(()=>[u(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[u(n,{span:24},{default:e(()=>[u(F,{label:"\u5907\u6CE8\uFF1A"},{default:e(()=>[d("div",Iu,[u(B,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(t).notes,"onUpdate:modelValue":l[20]||(l[20]=o=>a(t).notes=o)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),j(u(_,null,{default:e(()=>[u(n,{span:6},{default:e(()=>[u(F,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:e(()=>[d("div",Lu,y(a(t).crman?a(t).crman.name:""),1)]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:e(()=>[d("div",qu,y(a(t).crtim),1)]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:e(()=>[d("div",$u,y(a(t).upman?a(t).upman.name:""),1)]),_:1})]),_:1}),u(n,{span:6},{default:e(()=>[u(F,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:e(()=>[d("div",Hu,y(a(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[I,a(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}});export{Ou as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207237.js b/vboot-web/src/main/resources/static/assets/edit.165429159207237.js deleted file mode 100644 index 0cc679b..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207237.js +++ /dev/null @@ -1 +0,0 @@ -import{a as E,j as C,a3 as D,ag as U,R as k,S as t,a2 as n,o as R,e as i,Z as e,u as o,T as V,U as h,X as m,Y as _}from"./vue.1654291592072.js";import{d as S,b as N}from"./edit.16542915920722.js";import"./index.1654291592072.js";const Q=i("h4",null,"\u4EA7\u54C1\u5206\u7C7B",-1),T={style:{padding:"20px","border-top":"1px solid #ccc"}},j={style:{flex:"auto",margin:"20px"}},q=m("\u786E\u8BA4"),z=m("\u53D6\u6D88"),G=E({name:"edit",emits:["listQuery"],setup(O,{expose:y,emit:A}){const f=C(),r=D({url:"/te/tran/cate",show:!1,form:{avtag:!0}}),{form:l}=U(r);y({open:async c=>{await S({state:r,id:c})}});const b=async()=>{await N({formRef:f.value,state:r}),A("listQuery")};return(c,a)=>{const F=n("el-input"),s=n("el-form-item"),d=n("el-col"),p=n("el-row"),x=n("el-input-number"),g=n("el-switch"),v=n("el-form"),w=n("el-button"),B=n("el-drawer");return R(),k(B,{modelValue:r.show,"onUpdate:modelValue":a[5]||(a[5]=u=>r.show=u),size:"70%"},{title:t(()=>[Q]),default:t(()=>[i("div",T,[e(v,{ref_key:"formRef",ref:f,model:o(l),"label-width":"160px"},{default:t(()=>[e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(s,{label:"\u5206\u7C7B\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[e(F,{modelValue:o(l).name,"onUpdate:modelValue":a[0]||(a[0]=u=>o(l).name=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[e(x,{modelValue:o(l).ornum,"onUpdate:modelValue":a[1]||(a[1]=u=>o(l).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[e(g,{modelValue:o(l).avtag,"onUpdate:modelValue":a[2]||(a[2]=u=>o(l).avtag=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),V(e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[m(_(o(l).crman?o(l).crman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[m(_(o(l).crtim),1)]),_:1})]),_:1})]),_:1},512),[[h,o(l).crtim]]),V(e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[m(_(o(l).upman?o(l).upman.name:""),1)]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(s,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[m(_(o(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[h,o(l).crtim]]),e(p,{style:{height:"48px"}},{default:t(()=>[e(d,{span:24},{default:t(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[e(F,{modelValue:o(l).notes,"onUpdate:modelValue":a[3]||(a[3]=u=>o(l).notes=u),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),footer:t(()=>[i("div",j,[e(w,{type:"primary",onClick:b},{default:t(()=>[q]),_:1}),e(w,{onClick:a[4]||(a[4]=u=>r.show=!1)},{default:t(()=>[z]),_:1})])]),_:1},8,["modelValue"])}}});export{G as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.165429159207238.js b/vboot-web/src/main/resources/static/assets/edit.165429159207238.js deleted file mode 100644 index 218b453..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.165429159207238.js +++ /dev/null @@ -1 +0,0 @@ -var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var g=(f,m,r)=>m in f?X(f,m,{enumerable:!0,configurable:!0,writable:!0,value:r}):f[m]=r,h=(f,m)=>{for(var r in m||(m={}))G.call(m,r)&&g(f,r,m[r]);if(z)for(var r of z(m))K.call(m,r)&&g(f,r,m[r]);return f},B=(f,m)=>Y(f,Z(m));import{a as O,j as D,aB as Q,a3 as W,ag as ee,m as le,R as k,S as l,a2 as i,o as w,Z as e,u as a,e as d,b as ue,a7 as ae,F as te,T as oe,U as de,Y as v,X as q,l as ne}from"./vue.1654291592072.js";import{e as se,t as pe,a as ie}from"./edit.16542915920722.js";import{C as me}from"./GenModal.1654291592072.js";import{g as re}from"./index.1654291592072.js";const _e=d("div",{style:{"line-height":"32px"}},"\u8F6C\u6362\u914D\u7F6E",-1),fe=q("\u4FDD \u5B58"),Fe=q("\u5173 \u95ED"),ce={style:{"margin-top":"8px","margin-bottom":"8px"}},Ve={class:"zinput"},be={class:"zinput"},ve={class:"zinput"},Ce={class:"zinput"},we={class:"zinput"},ye={class:"zinput"},Ee={class:"zinput"},Ae={class:"zinput"},xe={class:"zinput"},Ue={class:"zinput"},ze={class:"zinput"},ge={class:"zinput"},he={class:"zinput"},Be={class:"zinput"},De={class:"zinput"},ke={class:"zinput"},qe={class:"zinput"},Ne={class:"zinput",style:{height:"auto"}},Re=d("span",null,"\u2192",-1),Se={class:"zinput",style:{height:"auto"}},Ie={class:"zinput"},$e={class:"zinput"},Me={class:"zinput"},He={class:"zinput"},Je={name:"teFeatDrive"},Ye=O(B(h({},Je),{setup(f){const m=D(),r=Q(),{proxy:y}=ne(),V=W({url:"/te/tran/main",cates:[],params:{path:"",query:""},form:{avtag:!0}}),{form:t,cates:N}=ee(V),E=D("tab1");le(async()=>{await se({state:V,route:r}),await R()});const R=async()=>{V.cates=await re({url:"/te/tran/cate/list",method:"get"})},S=()=>{t.value.items.push({})};return(I,o)=>{const n=i("el-col"),A=i("el-button"),c=i("el-row"),p=i("el-input"),s=i("el-form-item"),b=i("el-option"),x=i("el-select"),$=i("el-input-number"),M=i("el-switch"),C=i("el-tab-pane"),F=i("el-table-column"),H=i("ele-CirclePlus"),U=i("el-icon"),J=i("ele-CircleClose"),P=i("el-table"),T=i("el-tabs"),j=i("el-form"),L=i("el-card");return w(),k(L,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:l(()=>[e(c,null,{default:l(()=>[e(n,{span:10},{default:l(()=>[_e]),_:1}),e(n,{span:14,style:{"text-align":"right"}},{default:l(()=>[e(A,{type:"success",onClick:o[0]||(o[0]=u=>a(pe)({formRef:m.value,state:V,proxy:a(y),route:a(r)})),plain:""},{default:l(()=>[fe]),_:1}),e(A,{type:"info",onClick:o[1]||(o[1]=u=>a(ie)({proxy:a(y),route:a(r)})),plain:""},{default:l(()=>[Fe]),_:1})]),_:1})]),_:1})]),default:l(()=>[e(me,{url:"oa/flow/cate/tree",ref:"cateModal",onClose:I.cateChoose},null,8,["onClose"]),d("div",ce,[e(j,{ref_key:"formRef",ref:m,class:"zform",model:a(t),"label-width":"140px"},{default:l(()=>[e(T,{type:"card",modelValue:E.value,"onUpdate:modelValue":o[21]||(o[21]=u=>E.value=u)},{default:l(()=>[e(C,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:l(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(n,{span:12},{default:l(()=>[e(s,{label:"\u8F6C\u6362\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",Ve,[e(p,{modelValue:a(t).name,"onUpdate:modelValue":o[2]||(o[2]=u=>a(t).name=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:12},{default:l(()=>[e(s,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"catid",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[d("div",be,[e(x,{modelValue:a(t).catid,"onUpdate:modelValue":o[3]||(o[3]=u=>a(t).catid=u),placeholder:"\u8BF7\u9009\u62E9\u8F6C\u6362\u5206\u7C7B"},{default:l(()=>[(w(!0),ue(te,null,ae(a(N),u=>(w(),k(b,{key:u.id,label:u.name,value:u.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:l(()=>[e(n,{span:12},{default:l(()=>[e(s,{label:"\u8F6C\u6362\u65B9\u5F0F\uFF1A",prop:"trway"},{default:l(()=>[d("div",ve,[e(x,{modelValue:a(t).trway,"onUpdate:modelValue":o[4]||(o[4]=u=>a(t).trway=u),placeholder:"\u8BF7\u9009\u62E9\u8F6C\u6362\u65B9\u5F0F"},{default:l(()=>[e(b,{value:"a",label:"\u51FD\u6570"}),e(b,{value:"b",label:"\u6982\u7387"}),e(b,{value:"c",label:"\u77E9\u9635"})]),_:1},8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:l(()=>[d("div",Ce,[e($,{modelValue:a(t).ornum,"onUpdate:modelValue":o[5]||(o[5]=u=>a(t).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:l(()=>[d("div",we,[e(M,{modelValue:a(t).avtag,"onUpdate:modelValue":o[6]||(o[6]=u=>a(t).avtag=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:l(()=>[e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570a\u4EE3\u7801\uFF1A",prop:"trway"},{default:l(()=>[d("div",ye,[e(p,{modelValue:a(t).pacod,"onUpdate:modelValue":o[7]||(o[7]=u=>a(t).pacod=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570a\u540D\u79F0\uFF1A"},{default:l(()=>[d("div",Ee,[e(p,{modelValue:a(t).panam,"onUpdate:modelValue":o[8]||(o[8]=u=>a(t).panam=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570b\u4EE3\u7801\uFF1A",prop:"trway"},{default:l(()=>[d("div",Ae,[e(p,{modelValue:a(t).pbcod,"onUpdate:modelValue":o[9]||(o[9]=u=>a(t).pbcod=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570b\u540D\u79F0\uFF1A"},{default:l(()=>[d("div",xe,[e(p,{modelValue:a(t).pbnam,"onUpdate:modelValue":o[10]||(o[10]=u=>a(t).pbnam=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:l(()=>[e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570c\u4EE3\u7801\uFF1A",prop:"trway"},{default:l(()=>[d("div",Ue,[e(p,{modelValue:a(t).pccod,"onUpdate:modelValue":o[11]||(o[11]=u=>a(t).pccod=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570c\u540D\u79F0\uFF1A"},{default:l(()=>[d("div",ze,[e(p,{modelValue:a(t).pcnam,"onUpdate:modelValue":o[12]||(o[12]=u=>a(t).pcnam=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570d\u4EE3\u7801\uFF1A",prop:"trway"},{default:l(()=>[d("div",ge,[e(p,{modelValue:a(t).pdcod,"onUpdate:modelValue":o[13]||(o[13]=u=>a(t).pdcod=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570d\u540D\u79F0\uFF1A"},{default:l(()=>[d("div",he,[e(p,{modelValue:a(t).pdnam,"onUpdate:modelValue":o[14]||(o[14]=u=>a(t).pdnam=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:l(()=>[e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570x\u4EE3\u7801\uFF1A",prop:"trway"},{default:l(()=>[d("div",Be,[e(p,{modelValue:a(t).pxcod,"onUpdate:modelValue":o[15]||(o[15]=u=>a(t).pxcod=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570x\u540D\u79F0\uFF1A"},{default:l(()=>[d("div",De,[e(p,{modelValue:a(t).pxnam,"onUpdate:modelValue":o[16]||(o[16]=u=>a(t).pxnam=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570y\u4EE3\u7801\uFF1A",prop:"trway"},{default:l(()=>[d("div",ke,[e(p,{modelValue:a(t).pycod,"onUpdate:modelValue":o[17]||(o[17]=u=>a(t).pycod=u)},null,8,["modelValue"])])]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u53C2\u6570y\u540D\u79F0\uFF1A"},{default:l(()=>[d("div",qe,[e(p,{modelValue:a(t).pynam,"onUpdate:modelValue":o[18]||(o[18]=u=>a(t).pynam=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:l(()=>[e(n,{span:24},{default:l(()=>[e(s,{label:"\u8F6C\u6362\u51FD\u6570\uFF1A"},{default:l(()=>[d("div",Ne,[e(p,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"14px"},type:"textarea",rows:8,placeholder:"\u901A\u8FC7\u540E\u53F0JS\u5F15\u64CE\u8C03\u7528JS\u4EE3\u7801\u7247\u6BB5\uFF0C\u5B9E\u73B0abcd\u8F6C\u6362\u6210xy",modelValue:a(t).asfun,"onUpdate:modelValue":o[19]||(o[19]=u=>a(t).asfun=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(C,{label:"\u8F6C\u6362\u77E9\u9635",name:"tab2"},{default:l(()=>[e(P,{border:"",data:a(t).items,"row-style":{height:"36px"},style:{width:"100%"}},{default:l(()=>[e(F,{type:"index",width:"40"}),e(F,{label:a(t).panam,width:"140"},{default:l(u=>[e(p,{modelValue:u.row.paval,"onUpdate:modelValue":_=>u.row.paval=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),e(F,{label:a(t).pbnam,width:"140"},{default:l(u=>[e(p,{modelValue:u.row.pbval,"onUpdate:modelValue":_=>u.row.pbval=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),e(F,{label:a(t).pcnam,width:"140"},{default:l(u=>[e(p,{modelValue:u.row.pcval,"onUpdate:modelValue":_=>u.row.pcval=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),e(F,{label:a(t).pdnam,width:"140"},{default:l(u=>[e(p,{modelValue:u.row.pdval,"onUpdate:modelValue":_=>u.row.pdval=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),e(F,{label:"\u2192",width:"40"},{default:l(()=>[Re]),_:1}),e(F,{label:a(t).pxnam,width:"140"},{default:l(u=>[e(p,{modelValue:u.row.pxval,"onUpdate:modelValue":_=>u.row.pxval=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),e(F,{label:a(t).pynam,width:"140"},{default:l(u=>[e(p,{modelValue:u.row.pyval,"onUpdate:modelValue":_=>u.row.pyval=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),e(F,{label:"\u5907\u6CE8"},{default:l(u=>[e(p,{modelValue:u.row.notes,"onUpdate:modelValue":_=>u.row.notes=_,required:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(F,{fixed:"right",label:"\u64CD\u4F5C",width:"50",align:"center"},{header:l(()=>[e(U,{size:22,style:{top:"5px",cursor:"pointer"},color:"#666"},{default:l(()=>[e(H,{onClick:S})]),_:1})]),default:l(u=>[e(U,{size:22,style:{top:"3px",cursor:"pointer"}},{default:l(()=>[e(J,{onClick:_=>a(t).items.splice(u.$index,1)},null,8,["onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"])]),_:1}),e(C,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:l(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:l(()=>[e(n,{span:24},{default:l(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:l(()=>[d("div",Se,[e(p,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(t).notes,"onUpdate:modelValue":o[20]||(o[20]=u=>a(t).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),oe(e(c,null,{default:l(()=>[e(n,{span:6},{default:l(()=>[e(s,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:l(()=>[d("div",Ie,v(a(t).crman?a(t).crman.name:""),1)]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:l(()=>[d("div",$e,v(a(t).crtim),1)]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:l(()=>[d("div",Me,v(a(t).upman?a(t).upman.name:""),1)]),_:1})]),_:1}),e(n,{span:6},{default:l(()=>[e(s,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:l(()=>[d("div",He,v(a(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[de,a(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Ye as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920724.js b/vboot-web/src/main/resources/static/assets/edit.16542915920724.js deleted file mode 100644 index 3c07658..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920724.js +++ /dev/null @@ -1 +0,0 @@ -var O=Object.defineProperty,T=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var C=(i,u,d)=>u in i?O(i,u,{enumerable:!0,configurable:!0,writable:!0,value:d}):i[u]=d,h=(i,u)=>{for(var d in u||(u={}))$.call(u,d)&&C(i,d,u[d]);if(A)for(var d of A(u))j.call(u,d)&&C(i,d,u[d]);return i},D=(i,u)=>T(i,I(u));import{a as H,aB as J,j as b,a3 as P,ag as X,m as Y,B as Z,R as G,S as t,a2 as p,o as K,Z as e,u as a,e as m,J as L,T as Q,U as W,Y as w,X as M,l as ee,ap as te}from"./vue.1654291592072.js";import{e as oe,t as le,a as ae}from"./edit.16542915920722.js";import{O as ue}from"./OrgModal.1654291592072.js";import{s as se}from"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ne=m("div",{style:{"line-height":"32px"}},"\u5C97\u4F4D\u4FE1\u606F",-1),de=M("\u4FDD \u5B58"),re=M("\u5173 \u95ED"),pe={style:{"margin-top":"8px","margin-bottom":"8px"}},ie={class:"zinput"},me={class:"zinput"},_e={class:"zinput"},fe={class:"zinput"},ce={class:"zinput",style:{height:"auto"}},ve={class:"zinput",style:{height:"auto"}},Fe={class:"zinput"},ge={class:"zinput"},ye={name:"SysOrgPostEdit"},he=H(D(h({},ye),{setup(i){const u=J(),d=b(),{proxy:V}=ee(),x=b("tab1"),f=P({url:"/sys/org/post",params:{path:"",query:""},form:{avtag:!0}}),{form:o}=X(f);Y(async()=>{var r,v;f.params=u;const s=(r=f.params.query)==null?void 0:r.deptid,l=(v=f.params.query)==null?void 0:v.deptna;s&&(o.value.dept={id:s,name:l},o.value.deptid=s,o.value.deptna=l),await oe({state:f,route:u}),o.value.dept&&(o.value.deptna=o.value.dept.name)});const g=b(),z=()=>{g.value.openModal({opener:"dept",orgType:3,selectMode:1})},B=()=>{g.value.openModal({opener:"users",orgType:8,selectMode:2,orgs:te(o.value.users)})},U=s=>{s.opener=="dept"?s.orgs&&s.orgs.length>0&&(o.value.dept={id:s.orgs[0].id,name:s.orgs[0].name},o.value.deptna=s.orgs[0].name,o.value.deptid=s.orgs[0].id):s.opener=="users"&&(o.value.users=s.orgs)},y=Z(()=>{let s="";if(o.value.users&&o.value.users.length>0)for(const l of o.value.users)s+=l.name+"\uFF1B";return s});return(s,l)=>{const r=p("el-col"),v=p("el-button"),c=p("el-row"),F=p("el-input"),_=p("el-form-item"),k=p("el-input-number"),R=p("el-switch"),E=p("el-tab-pane"),N=p("el-tabs"),q=p("el-form"),S=p("el-card");return K(),G(S,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(c,null,{default:t(()=>[e(r,{span:10},{default:t(()=>[ne]),_:1}),e(r,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(v,{type:"success",onClick:l[0]||(l[0]=n=>a(le)({formRef:d.value,state:f,proxy:a(V),route:a(u)})),plain:""},{default:t(()=>[de]),_:1}),e(v,{type:"info",onClick:l[1]||(l[1]=n=>a(ae)({proxy:a(V),route:a(u)})),plain:""},{default:t(()=>[re]),_:1})]),_:1})]),_:1})]),default:t(()=>[m("div",pe,[e(q,{ref_key:"formRef",ref:d,class:"zform",model:a(o),"label-width":"140px"},{default:t(()=>[e(N,{type:"card",modelValue:x.value,"onUpdate:modelValue":l[8]||(l[8]=n=>x.value=n)},{default:t(()=>[e(E,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(_,{label:"\u5C97\u4F4D\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[m("div",ie,[e(F,{modelValue:a(o).name,"onUpdate:modelValue":l[2]||(l[2]=n=>a(o).name=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(_,{label:"\u6240\u5C5E\u90E8\u95E8\uFF1A",prop:"deptna",rules:[{required:!0,message:"\u6240\u5C5E\u90E8\u95E8\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[m("div",me,[e(F,{modelValue:a(o).deptna,"onUpdate:modelValue":l[3]||(l[3]=n=>a(o).deptna=n),onClick:z,readonly:"","suffix-icon":a(se)},null,8,["modelValue","suffix-icon"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(_,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[m("div",_e,[e(k,{modelValue:a(o).ornum,"onUpdate:modelValue":l[4]||(l[4]=n=>a(o).ornum=n),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(_,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[m("div",fe,[e(R,{modelValue:a(o).avtag,"onUpdate:modelValue":l[5]||(l[5]=n=>a(o).avtag=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(c,null,{default:t(()=>[e(r,{span:24},{default:t(()=>[e(_,{label:"\u5458\u5DE5\u6210\u5458\uFF1A"},{default:t(()=>[m("div",ce,[e(F,{type:"textarea",rows:4,modelValue:a(y),"onUpdate:modelValue":l[6]||(l[6]=n=>L(y)?y.value=n:null),readonly:"",onClick:B},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(E,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(c,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(_,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[m("div",ve,[e(F,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(o).notes,"onUpdate:modelValue":l[7]||(l[7]=n=>a(o).notes=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Q(e(c,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(_,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[m("div",Fe,w(a(o).crtim),1)]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(_,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[m("div",ge,w(a(o).uptim),1)]),_:1})]),_:1})]),_:1},512),[[W,a(o).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(ue,{ref_key:"orgModal",ref:g,onClose:U},null,512)]),_:1})}}}));export{he as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920725.js b/vboot-web/src/main/resources/static/assets/edit.16542915920725.js deleted file mode 100644 index 645630d..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920725.js +++ /dev/null @@ -1 +0,0 @@ -var S=Object.defineProperty,T=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var A=(r,u,s)=>u in r?S(r,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[u]=s,C=(r,u)=>{for(var s in u||(u={}))I.call(u,s)&&A(r,s,u[s]);if(w)for(var s of w(u))$.call(u,s)&&A(r,s,u[s]);return r},E=(r,u)=>T(r,q(u));import{a as j,aB as G,j as v,a3 as H,ag as J,m as X,B as Y,R as Z,S as t,a2 as d,o as K,Z as e,u as o,e as i,J as L,T as P,U as Q,Y as D,X as z,l as W,ap as ee}from"./vue.1654291592072.js";import{e as te,t as oe,a as le}from"./edit.16542915920722.js";import{O as ae}from"./OrgModal.1654291592072.js";import"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ue=i("div",{style:{"line-height":"32px"}},"\u7FA4\u7EC4\u4FE1\u606F",-1),se=z("\u4FDD \u5B58"),ne=z("\u5173 \u95ED"),de={style:{"margin-top":"8px","margin-bottom":"8px"}},re={class:"zinput"},me={class:"zinput"},ie={class:"zinput"},pe={class:"zinput",style:{height:"auto"}},_e={class:"zinput",style:{height:"auto"}},fe={class:"zinput"},ce={class:"zinput"},Fe={name:"SysOrgGroupEdit"},he=j(E(C({},Fe),{setup(r){const u=G(),s=v(),{proxy:y}=W(),g=v("tab1"),c=H({url:"/sys/org/group",params:{path:"",query:""},form:{avtag:!0}}),{form:a}=J(c);X(async()=>{await te({state:c,route:u})});const V=v(),B=()=>{V.value.openModal({orgType:14,selectMode:2,orgs:ee(a.value.members)})},M=f=>{a.value.members=f.orgs},F=Y(()=>{let f="";if(a.value.members&&a.value.members.length>0)for(const l of a.value.members)f+=l.name+"\uFF1B";return f});return(f,l)=>{const m=d("el-col"),x=d("el-button"),_=d("el-row"),b=d("el-input"),p=d("el-form-item"),R=d("el-input-number"),k=d("el-switch"),h=d("el-tab-pane"),U=d("el-tabs"),N=d("el-form"),O=d("el-card");return K(),Z(O,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(_,null,{default:t(()=>[e(m,{span:10},{default:t(()=>[ue]),_:1}),e(m,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(x,{type:"success",onClick:l[0]||(l[0]=n=>o(oe)({formRef:s.value,state:c,proxy:o(y),route:o(u)})),plain:""},{default:t(()=>[se]),_:1}),e(x,{type:"info",onClick:l[1]||(l[1]=n=>o(le)({proxy:o(y),route:o(u)})),plain:""},{default:t(()=>[ne]),_:1})]),_:1})]),_:1})]),default:t(()=>[i("div",de,[e(N,{ref_key:"formRef",ref:s,class:"zform",model:o(a),"label-width":"140px"},{default:t(()=>[e(U,{type:"card",modelValue:g.value,"onUpdate:modelValue":l[7]||(l[7]=n=>g.value=n)},{default:t(()=>[e(h,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(m,{span:24},{default:t(()=>[e(p,{label:"\u7FA4\u7EC4\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[i("div",re,[e(b,{modelValue:o(a).name,"onUpdate:modelValue":l[2]||(l[2]=n=>o(a).name=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(_,null,{default:t(()=>[e(m,{span:6},{default:t(()=>[e(p,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[i("div",me,[e(R,{modelValue:o(a).ornum,"onUpdate:modelValue":l[3]||(l[3]=n=>o(a).ornum=n),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[i("div",ie,[e(k,{modelValue:o(a).avtag,"onUpdate:modelValue":l[4]||(l[4]=n=>o(a).avtag=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(_,null,{default:t(()=>[e(m,{span:24},{default:t(()=>[e(p,{label:"\u6210\u5458\u5217\u8868\uFF1A"},{default:t(()=>[i("div",pe,[e(b,{type:"textarea",rows:4,modelValue:o(F),"onUpdate:modelValue":l[5]||(l[5]=n=>L(F)?F.value=n:null),readonly:"",onClick:B},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(_,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(m,{span:24},{default:t(()=>[e(p,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[i("div",_e,[e(b,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:o(a).notes,"onUpdate:modelValue":l[6]||(l[6]=n=>o(a).notes=n)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),P(e(_,null,{default:t(()=>[e(m,{span:12},{default:t(()=>[e(p,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",fe,D(o(a).crtim),1)]),_:1})]),_:1}),e(m,{span:12},{default:t(()=>[e(p,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[i("div",ce,D(o(a).uptim),1)]),_:1})]),_:1})]),_:1},512),[[Q,o(a).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(ae,{ref_key:"orgModal",ref:V,onClose:M},null,512)]),_:1})}}}));export{he as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920726.js b/vboot-web/src/main/resources/static/assets/edit.16542915920726.js deleted file mode 100644 index fb3d36a..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920726.js +++ /dev/null @@ -1 +0,0 @@ -var R=Object.defineProperty,k=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(s,a,l)=>a in s?R(s,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[a]=l,h=(s,a)=>{for(var l in a||(a={}))S.call(a,l)&&x(s,l,a[l]);if(b)for(var l of b(a))U.call(a,l)&&x(s,l,a[l]);return s},g=(s,a)=>k(s,N(a));import{a as I,aB as M,j as w,a3 as T,ag as $,m as j,R as q,S as e,a2 as u,o as H,Z as t,u as o,e as r,Y as f,T as X,U as Y,X as V,l as Z}from"./vue.1654291592072.js";import{e as G,t as J,a as K}from"./edit.16542915920722.js";import"./index.1654291592072.js";const L=r("div",{style:{"line-height":"32px"}},"\u63A5\u53E3\u4FE1\u606F",-1),O=V("\u4FDD \u5B58"),P=V("\u5173 \u95ED"),Q={style:{"margin-top":"8px","margin-bottom":"8px"}},W={class:"zinput"},ee={class:"zinput"},te={class:"zinput",style:{height:"auto"}},ae={class:"zinput"},oe={class:"zinput"},le={name:"SysApiMainEdit"},ie=I(g(h({},le),{setup(s){const a=M(),l=w(),{proxy:F}=Z(),v=w("tab1"),c=T({url:"/sys/api/main",params:{path:"",query:""},form:{avtag:!0,menus:[]}}),{form:d}=$(c);return j(async()=>{await G({state:c,route:a})}),(se,n)=>{const _=u("el-col"),y=u("el-button"),p=u("el-row"),m=u("el-form-item"),A=u("el-switch"),C=u("el-input"),E=u("el-tab-pane"),z=u("el-tabs"),B=u("el-form"),D=u("el-card");return H(),q(D,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:e(()=>[t(p,null,{default:e(()=>[t(_,{span:10},{default:e(()=>[L]),_:1}),t(_,{span:14,style:{"text-align":"right"}},{default:e(()=>[t(y,{type:"success",onClick:n[0]||(n[0]=i=>o(J)({formRef:l.value,state:c,proxy:o(F),route:o(a)})),plain:""},{default:e(()=>[O]),_:1}),t(y,{type:"info",onClick:n[1]||(n[1]=i=>o(K)({proxy:o(F),route:o(a)})),plain:""},{default:e(()=>[P]),_:1})]),_:1})]),_:1})]),default:e(()=>[r("div",Q,[t(B,{ref_key:"formRef",ref:l,class:"zform",model:o(d),"label-width":"140px"},{default:e(()=>[t(z,{type:"card",modelValue:v.value,"onUpdate:modelValue":n[4]||(n[4]=i=>v.value=i)},{default:e(()=>[t(E,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:e(()=>[t(p,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[t(_,{span:24},{default:e(()=>[t(m,{label:"\u63A5\u53E3\u540D\u79F0\uFF1A"},{default:e(()=>[r("div",W,f(o(d).id),1)]),_:1})]),_:1})]),_:1}),t(p,null,{default:e(()=>[t(_,{span:12},{default:e(()=>[t(m,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:e(()=>[r("div",ee,[t(A,{modelValue:o(d).avtag,"onUpdate:modelValue":n[2]||(n[2]=i=>o(d).avtag=i)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),t(p,null,{default:e(()=>[t(_,{span:24},{default:e(()=>[t(m,{label:"\u5907\u6CE8\uFF1A"},{default:e(()=>[r("div",te,[t(C,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:o(d).notes,"onUpdate:modelValue":n[3]||(n[3]=i=>o(d).notes=i)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),X(t(p,null,{default:e(()=>[t(_,{span:12},{default:e(()=>[t(m,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:e(()=>[r("div",ae,f(o(d).crtim),1)]),_:1})]),_:1}),t(_,{span:12},{default:e(()=>[t(m,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:e(()=>[r("div",oe,f(o(d).uptim),1)]),_:1})]),_:1})]),_:1},512),[[Y,o(d).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{ie as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920727.js b/vboot-web/src/main/resources/static/assets/edit.16542915920727.js deleted file mode 100644 index ded0fd6..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920727.js +++ /dev/null @@ -1 +0,0 @@ -var K=Object.defineProperty,X=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var k=(_,n,d)=>n in _?K(_,n,{enumerable:!0,configurable:!0,writable:!0,value:d}):_[n]=d,B=(_,n)=>{for(var d in n||(n={}))Z.call(n,d)&&k(_,d,n[d]);if(E)for(var d of E(n))$.call(n,d)&&k(_,d,n[d]);return _},z=(_,n)=>X(_,Y(n));import{a as G,aB as L,j as F,a3 as P,ag as Q,m as W,B as ee,R as te,S as t,a2 as p,o as ae,Z as e,u as l,e as r,J as oe,T as le,U as se,Y as g,X as y,l as ne,ap as ue}from"./vue.1654291592072.js";import{e as de,a as re,t as ie}from"./edit.16542915920722.js";import{O as pe}from"./OrgModal.1654291592072.js";import{g as _e}from"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ce=r("div",{style:{"line-height":"32px"}},"\u89D2\u8272\u4FE1\u606F",-1),me=y("\u4FDD \u5B58"),fe=y("\u5173 \u95ED"),ve={style:{"margin-top":"8px","margin-bottom":"8px"}},Fe={class:"zinput"},ge={class:"zinput",style:{height:"auto"}},ye={class:"zinput"},he={class:"zinput"},be={class:"zinput",style:{height:"auto"}},Ae={class:"zinput"},xe={class:"zinput"},Ve={class:"zinput"},we={class:"zinput"},Ce={style:{"margin-bottom":"10px"}},De=y("\u5C55 \u5F00"),Ee=y("\u6298 \u53E0"),ke={style:{border:"1px solid #eee"}},Be={name:"SysApiRoleEdit"},Oe=G(z(B({},Be),{setup(_){const n=L(),d=F(),{proxy:x}=ne(),V=F("tab1"),h=P({url:"/sys/api/role",params:{path:"",query:""},form:{avtag:!0,apis:[]},treeData:[]}),{form:a,treeData:w}=Q(h);W(async()=>{await de({state:h,route:n}),await O()});const N=()=>{for(let s=0;s{for(let s=0;s{const s=m.value.getCheckedNodes(),o=[];for(const u of s)o.push({id:u.id,name:u.name});a.value.apis=o,await ie({formRef:d.value,state:h,proxy:x,route:n})},C=F(),U=()=>{C.value.openModal({orgType:10,selectMode:2,orgs:ue(a.value.orgs)})},S=s=>{a.value.orgs=s.orgs},b=ee(()=>{let s="";if(a.value.orgs&&a.value.orgs.length>0)for(const o of a.value.orgs)s+=o.name+"\uFF1B";return s});async function O(){w.value=await _e({url:"/sys/api/main/tree",method:"get"});const s=[];for(const o of a.value.apis)s.push(o.id);m.value.setCheckedKeys(s)}return(s,o)=>{const u=p("el-col"),v=p("el-button"),f=p("el-row"),A=p("el-input"),c=p("el-form-item"),I=p("el-input-number"),T=p("el-switch"),D=p("el-tab-pane"),q=p("el-tree"),j=p("el-tabs"),H=p("el-form"),J=p("el-card");return ae(),te(J,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(f,null,{default:t(()=>[e(u,{span:10},{default:t(()=>[ce]),_:1}),e(u,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(v,{type:"success",onClick:M,plain:""},{default:t(()=>[me]),_:1}),e(v,{type:"info",onClick:o[0]||(o[0]=i=>l(re)({proxy:l(x),route:l(n)})),plain:""},{default:t(()=>[fe]),_:1})]),_:1})]),_:1})]),default:t(()=>[r("div",ve,[e(H,{ref_key:"formRef",ref:d,class:"zform",model:l(a),"label-width":"140px"},{default:t(()=>[e(j,{type:"card",modelValue:V.value,"onUpdate:modelValue":o[6]||(o[6]=i=>V.value=i)},{default:t(()=>[e(D,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(u,{span:24},{default:t(()=>[e(c,{label:"\u89D2\u8272\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[r("div",Fe,[e(A,{modelValue:l(a).name,"onUpdate:modelValue":o[1]||(o[1]=i=>l(a).name=i)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(u,{span:24},{default:t(()=>[e(c,{label:"\u6307\u6D3E\u7528\u6237\uFF1A"},{default:t(()=>[r("div",ge,[e(A,{type:"textarea",rows:4,modelValue:l(b),"onUpdate:modelValue":o[2]||(o[2]=i=>oe(b)?b.value=i:null),readonly:"",onClick:U},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(u,{span:12},{default:t(()=>[e(c,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[r("div",ye,[e(I,{modelValue:l(a).ornum,"onUpdate:modelValue":o[3]||(o[3]=i=>l(a).ornum=i),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(c,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[r("div",he,[e(T,{modelValue:l(a).avtag,"onUpdate:modelValue":o[4]||(o[4]=i=>l(a).avtag=i)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(u,{span:24},{default:t(()=>[e(c,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[r("div",be,[e(A,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:l(a).notes,"onUpdate:modelValue":o[5]||(o[5]=i=>l(a).notes=i)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),le(e(f,null,{default:t(()=>[e(u,{span:6},{default:t(()=>[e(c,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[r("div",Ae,g(l(a).crman?l(a).crman.name:""),1)]),_:1})]),_:1}),e(u,{span:6},{default:t(()=>[e(c,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[r("div",xe,g(l(a).crtim),1)]),_:1})]),_:1}),e(u,{span:6},{default:t(()=>[e(c,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[r("div",Ve,g(l(a).upman?l(a).upman.name:""),1)]),_:1})]),_:1}),e(u,{span:6},{default:t(()=>[e(c,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[r("div",we,g(l(a).uptim),1)]),_:1})]),_:1})]),_:1},512),[[se,l(a).crtim]])]),_:1}),e(D,{label:"\u83DC\u5355\u5206\u914D",name:"tab3"},{default:t(()=>[r("div",Ce,[e(v,{onClick:N,plain:""},{default:t(()=>[De]),_:1}),e(v,{onClick:R,plain:""},{default:t(()=>[Ee]),_:1})]),r("div",ke,[e(q,{ref_key:"treeRef",ref:m,data:l(w),"show-checkbox":"","node-key":"id",props:{children:"children",label:"name"}},null,8,["data"])])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(pe,{ref_key:"orgModal",ref:C,onClose:S},null,512)]),_:1})}}}));export{Oe as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920728.js b/vboot-web/src/main/resources/static/assets/edit.16542915920728.js deleted file mode 100644 index 001b074..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920728.js +++ /dev/null @@ -1 +0,0 @@ -var T=Object.defineProperty,q=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var A=(m,n,s)=>n in m?T(m,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):m[n]=s,B=(m,n)=>{for(var s in n||(n={}))$.call(n,s)&&A(m,s,n[s]);if(E)for(var s of E(n))j.call(n,s)&&A(m,s,n[s]);return m},C=(m,n)=>q(m,I(n));import{a as J,aB as P,j as b,a3 as X,ag as Y,m as Z,B as z,R as G,S as t,a2 as i,o as H,Z as e,u as o,e as p,J as K,T as L,U as Q,Y as c,X as D,l as W,ap as ee}from"./vue.1654291592072.js";import{e as te,t as le,a as oe}from"./edit.16542915920722.js";import{O as ae}from"./OrgModal.1654291592072.js";import"./index.1654291592072.js";import"./DeptTree.1654291592072.js";const ue=p("div",{style:{"line-height":"32px"}},"\u95E8\u6237\u7EF4\u62A4",-1),ne=D("\u4FDD \u5B58"),se=D("\u5173 \u95ED"),de={style:{"margin-top":"8px","margin-bottom":"8px"}},re={class:"zinput"},ie={class:"zinput"},pe={class:"zinput"},me={class:"zinput",style:{height:"auto"}},_e={class:"zinput",style:{height:"auto"}},fe={class:"zinput"},ce={class:"zinput"},ve={class:"zinput"},Fe={class:"zinput"},ge={name:"SysPortalMainEditEdit"},Ee=J(C(B({},ge),{setup(m){const n=P(),s=b(),{proxy:y}=W(),w=b("tab1"),v=X({url:"/sys/portal/main",params:{path:"",query:""},checks:[],form:{avtag:!0,items:[]}}),{form:l}=Y(v);Z(async()=>{await te({state:v,route:n})});const V=b(),M=()=>{V.value.openModal({opener:"viewers",orgType:11,selectMode:2,orgs:ee(l.value.viewers)})},k=u=>{u.opener=="opman"?u.orgs&&u.orgs.length>0?(l.value.opman={id:u.orgs[0].id,name:u.orgs[0].name},l.value.opmid=u.orgs[0].id):(l.value.opman=null,l.value.opmid=null):u.opener=="viewers"&&(u.orgs&&u.orgs.length>0?l.value.viewers=u.orgs:l.value.viewers=null)};z(()=>{let u="";return l.value.opman&&(u=l.value.opman.name),u});const F=z(()=>{let u="";if(l.value.viewers&&l.value.viewers.length>0)for(const a of l.value.viewers)u+=a.name+"\uFF1B";return u});return(u,a)=>{const r=i("el-col"),h=i("el-button"),f=i("el-row"),g=i("el-input"),_=i("el-form-item"),R=i("el-switch"),U=i("el-input-number"),x=i("el-tab-pane"),N=i("el-tabs"),S=i("el-form"),O=i("el-card");return H(),G(O,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:t(()=>[e(f,null,{default:t(()=>[e(r,{span:10},{default:t(()=>[ue]),_:1}),e(r,{span:14,style:{"text-align":"right"}},{default:t(()=>[e(h,{type:"success",onClick:a[0]||(a[0]=d=>o(le)({formRef:s.value,state:v,proxy:o(y),route:o(n)})),plain:""},{default:t(()=>[ne]),_:1}),e(h,{type:"info",onClick:a[1]||(a[1]=d=>o(oe)({proxy:o(y),route:o(n)})),plain:""},{default:t(()=>[se]),_:1})]),_:1})]),_:1})]),default:t(()=>[p("div",de,[e(S,{ref_key:"formRef",ref:s,class:"zform",model:o(l),"label-width":"140px"},{default:t(()=>[e(N,{type:"card",modelValue:w.value,"onUpdate:modelValue":a[7]||(a[7]=d=>w.value=d)},{default:t(()=>[e(x,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(_,{label:"\u95E8\u6237\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:t(()=>[p("div",re,[e(g,{modelValue:o(l).name,"onUpdate:modelValue":a[2]||(a[2]=d=>o(l).name=d)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(r,{span:12},{default:t(()=>[e(_,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:t(()=>[p("div",ie,[e(R,{modelValue:o(l).avtag,"onUpdate:modelValue":a[3]||(a[3]=d=>o(l).avtag=d)},null,8,["modelValue"])])]),_:1})]),_:1}),e(r,{span:12},{default:t(()=>[e(_,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:t(()=>[p("div",pe,[e(U,{modelValue:o(l).ornum,"onUpdate:modelValue":a[4]||(a[4]=d=>o(l).ornum=d),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),e(f,null,{default:t(()=>[e(r,{span:24},{default:t(()=>[e(_,{label:"\u53EF\u4F7F\u7528\u8005\uFF1A"},{default:t(()=>[p("div",me,[e(g,{type:"textarea",rows:4,modelValue:o(F),"onUpdate:modelValue":a[5]||(a[5]=d=>K(F)?F.value=d:null),readonly:"",onClick:M},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(x,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab3"},{default:t(()=>[e(f,{style:{"border-top":"1px solid #d2d2d2"}},{default:t(()=>[e(r,{span:24},{default:t(()=>[e(_,{label:"\u5907\u6CE8\uFF1A"},{default:t(()=>[p("div",_e,[e(g,{type:"textarea",rows:4,modelValue:o(l).notes,"onUpdate:modelValue":a[6]||(a[6]=d=>o(l).notes=d)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),L(e(f,null,{default:t(()=>[e(r,{span:6},{default:t(()=>[e(_,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:t(()=>[p("div",fe,c(o(l).crman?o(l).crman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(_,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:t(()=>[p("div",ce,c(o(l).crtim),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(_,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:t(()=>[p("div",ve,c(o(l).upman?o(l).upman.name:""),1)]),_:1})]),_:1}),e(r,{span:6},{default:t(()=>[e(_,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:t(()=>[p("div",Fe,c(o(l).uptim),1)]),_:1})]),_:1})]),_:1},512),[[Q,o(l).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),e(ae,{ref_key:"orgModal",ref:V,onClose:k},null,512)]),_:1})}}}));export{Ee as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit.16542915920729.js b/vboot-web/src/main/resources/static/assets/edit.16542915920729.js deleted file mode 100644 index c546752..0000000 --- a/vboot-web/src/main/resources/static/assets/edit.16542915920729.js +++ /dev/null @@ -1 +0,0 @@ -var Z=Object.defineProperty;var U=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var O=(o,r,i)=>r in o?Z(o,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[r]=i,z=(o,r)=>{for(var i in r||(r={}))G.call(r,i)&&O(o,i,r[i]);if(U)for(var i of U(r))H.call(r,i)&&O(o,i,r[i]);return o};import{n as R,a as W,j as $,a3 as q,B as J,m as N,k as K,ag as j,a2 as h,o as y,b as k,Z as t,S as l,R as B,M as S,e as I,Y as x,W as T,F as ee,a7 as te,u,T as D,U as v,X as w}from"./vue.1654291592072.js";import{d as oe,b as le}from"./edit.16542915920722.js";import{o as ne,_ as ue}from"./index.1654291592072.js";import{C as ae}from"./GenModal.1654291592072.js";const se=()=>new Promise((o,r)=>{R(()=>{const i=document.styleSheets;let d=[],n=[];for(let e=0;e-1&&d.push(i[e]);for(let e=0;e-1&&n.push(`${d[e].cssRules[p].selectorText.substring(1,d[e].cssRules[p].selectorText.length).replace(/\:\:before/gi,"")}`);n.length>0?o(n):r("\u672A\u83B7\u53D6\u5230\u503C\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5")})}),re=()=>new Promise((o,r)=>{R(()=>{const i=ne,d=[];for(const n in i)d.push(`ele-${i[n].name}`);d.length>0?o(d):r("\u672A\u83B7\u53D6\u5230\u503C\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5")})}),ie=()=>new Promise((o,r)=>{R(()=>{const i=document.styleSheets;let d=[],n=[];for(let e=0;e-1&&d.push(i[e]);for(let e=0;e0?o(n.reverse()):r("\u672A\u83B7\u53D6\u5230\u503C\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5")})}),L={ali:()=>se(),ele:()=>re(),awe:()=>ie()},de=W({name:"iconSelector",emits:["update:modelValue","get","clear"],props:{prepend:{type:String,default:()=>"ele-Pointer"},placeholder:{type:String,default:()=>"\u8BF7\u8F93\u5165\u5185\u5BB9\u641C\u7D22\u56FE\u6807\u6216\u8005\u9009\u62E9\u56FE\u6807"},size:{type:String,default:()=>"default"},title:{type:String,default:()=>"\u8BF7\u9009\u62E9\u56FE\u6807"},type:{type:String,default:()=>"ele"},disabled:{type:Boolean,default:()=>!1},clearable:{type:Boolean,default:()=>!0},emptyDescription:{type:String,default:()=>"\u65E0\u76F8\u5173\u56FE\u6807"},modelValue:String},setup(o,{emit:r}){const i=$(),d=$(),n=q({fontIconPrefix:"",fontIconWidth:0,fontIconSearch:"",fontIconTabsIndex:0,fontIconSheetsList:[],fontIconPlaceholder:"",fontIconType:"ali",fontIconShow:!0}),e=()=>{if(!o.modelValue)return!1;n.fontIconSearch="",n.fontIconPlaceholder=o.modelValue,C()},p=()=>{setTimeout(()=>{n.fontIconSheetsList.filter(c=>c===n.fontIconSearch).length<=0&&(n.fontIconSearch="")},300)},b=()=>{if(o.modelValue==="")return!1;n.fontIconPlaceholder=o.modelValue,n.fontIconPrefix=o.modelValue},C=()=>{var s,c,g;((s=o.modelValue)==null?void 0:s.indexOf("iconfont"))>-1?m("ali"):((c=o.modelValue)==null?void 0:c.indexOf("ele-"))>-1?m("ele"):((g=o.modelValue)==null?void 0:g.indexOf("fa"))>-1?m("awe"):m("ali")},A=J(()=>{if(!n.fontIconSearch)return n.fontIconSheetsList;let s=n.fontIconSearch.trim().toLowerCase();return n.fontIconSheetsList.filter(c=>{if(c.toLowerCase().indexOf(s)!==-1)return c})}),E=()=>{R(()=>{n.fontIconWidth=i.value.$el.offsetWidth})},_=()=>{window.addEventListener("resize",()=>{E()})},a=async s=>{n.fontIconSheetsList=[],s==="ali"?await L.ali().then(c=>{n.fontIconSheetsList=c.map(g=>`iconfont ${g}`)}):s==="ele"?await L.ele().then(c=>{n.fontIconSheetsList=c}):s==="awe"&&await L.awe().then(c=>{n.fontIconSheetsList=c.map(g=>`fa ${g}`)}),n.fontIconPlaceholder=o.placeholder,b(),d.value.wrap$.scrollTop=0},m=s=>{n.fontIconType=s,a(s)},V=s=>{n.fontIconPlaceholder=s,n.fontIconPrefix=s,r("get",n.fontIconPrefix),r("update:modelValue",n.fontIconPrefix)},F=()=>{n.fontIconPrefix="",r("clear",n.fontIconPrefix),r("update:modelValue",n.fontIconPrefix)};return N(()=>{o.type==="all"?C():m(o.type),_(),E()}),K(()=>o.modelValue,()=>{b()}),z({inputWidthRef:i,selectorScrollbarRef:d,fontIconSheetsFilterList:A,onColClick:V,onIconChange:m,onClearFontIcon:F,onIconFocus:e,onIconBlur:p},j(n))}}),fe={class:"icon-selector w100 h100"},ce={class:"icon-selector-warp"},pe={class:"icon-selector-warp-title flex"},me={class:"flex-auto"},Fe={key:0,class:"icon-selector-warp-title-tab"},he={class:"icon-selector-warp-row"},_e={class:"flex-margin"},ge={class:"icon-selector-warp-item-value"};function Ie(o,r,i,d,n,e){const p=h("SvgIcon"),b=h("el-input"),C=h("el-col"),A=h("el-row"),E=h("el-empty"),_=h("el-scrollbar"),a=h("el-popover");return y(),k("div",fe,[t(a,{placement:"bottom",width:o.fontIconWidth,trigger:"click",transition:"el-zoom-in-top","popper-class":"icon-selector-popper"},{reference:l(()=>[t(b,{modelValue:o.fontIconSearch,"onUpdate:modelValue":r[0]||(r[0]=m=>o.fontIconSearch=m),placeholder:o.fontIconPlaceholder,clearable:o.clearable,disabled:o.disabled,size:o.size,ref:"inputWidthRef",onClear:o.onClearFontIcon,onFocus:o.onIconFocus,onBlur:o.onIconBlur},{prepend:l(()=>{var m,V;return[(o.fontIconPrefix===""?((m=o.prepend)==null?void 0:m.indexOf("ele-"))>-1:((V=o.fontIconPrefix)==null?void 0:V.indexOf("ele-"))>-1)?(y(),B(p,{key:0,name:o.fontIconPrefix===""?o.prepend:o.fontIconPrefix,class:"font14"},null,8,["name"])):(y(),k("i",{key:1,class:S([o.fontIconPrefix===""?o.prepend:o.fontIconPrefix,"font14"])},null,2))]}),_:1},8,["modelValue","placeholder","clearable","disabled","size","onClear","onFocus","onBlur"])]),default:l(()=>[I("div",ce,[I("div",pe,[I("div",me,x(o.title),1),o.type==="all"?(y(),k("div",Fe,[I("span",{class:S([{"span-active":o.fontIconType==="ali"},"ml10"]),onClick:r[1]||(r[1]=m=>o.onIconChange("ali")),title:"iconfont \u56FE\u6807"},"ali",2),I("span",{class:S([{"span-active":o.fontIconType==="ele"},"ml10"]),onClick:r[2]||(r[2]=m=>o.onIconChange("ele")),title:"elementPlus \u56FE\u6807"},"ele",2),I("span",{class:S([{"span-active":o.fontIconType==="awe"},"ml10"]),onClick:r[3]||(r[3]=m=>o.onIconChange("awe")),title:"fontawesome \u56FE\u6807"},"awe",2)])):T("",!0)]),I("div",he,[t(_,{ref:"selectorScrollbarRef"},{default:l(()=>[o.fontIconSheetsFilterList.length>0?(y(),B(A,{key:0,gutter:10},{default:l(()=>[(y(!0),k(ee,null,te(o.fontIconSheetsFilterList,(m,V)=>(y(),B(C,{xs:6,sm:4,md:4,lg:4,xl:4,onClick:F=>o.onColClick(m),key:V},{default:l(()=>[I("div",{class:S(["icon-selector-warp-item",{"icon-selector-active":o.fontIconPrefix===m}])},[I("div",_e,[I("div",ge,[t(p,{name:m},null,8,["name"])])])],2)]),_:2},1032,["onClick"]))),128))]),_:1})):T("",!0),o.fontIconSheetsFilterList.length<=0?(y(),B(E,{key:1,"image-size":100,description:o.emptyDescription},null,8,["description"])):T("",!0)]),_:1},512)])])]),_:1},8,["width"])])}var ye=ue(de,[["render",Ie]]);const Ve=I("h4",null,"\u83DC\u5355\u4FE1\u606F",-1),we={style:{padding:"20px","border-top":"1px solid #ccc"}},Ce=w("\u76EE\u5F55"),be=w("\u83DC\u5355"),Ee={style:{flex:"auto",margin:"20px"}},De=w("\u786E\u8BA4"),ve=w("\u53D6\u6D88"),ke=W({name:"edit",emits:["treeQuery"],setup(o,{expose:r,emit:i}){const d=$(),n=q({url:"/sys/portal/menu",show:!1,apis:[],form:{avtag:!0,catag:!0,shtag:!0}}),{form:e}=j(n);r({open:async _=>{_.id?_.id&&await oe({state:n,id:_.id}):_.pid?(n.form={avtag:!0,parna:_.pname,pid:_.pid,porid:_.porid},n.show=!0):(n.form={avtag:!0,porid:_.porid},n.show=!0)}});const b=async()=>{await le({formRef:d.value,state:n}),i("treeQuery")};N(()=>{});const C=$(),A=()=>{C.value.openModal()},E=_=>{e.value.pid=_.id,e.value.parna=_.name};return(_,a)=>{const m=h("el-radio-button"),V=h("el-radio-group"),F=h("el-form-item"),s=h("el-col"),c=h("el-row"),g=h("el-input"),Q=h("el-input-number"),P=h("el-switch"),X=h("el-form"),M=h("el-button"),Y=h("el-drawer");return y(),B(Y,{modelValue:n.show,"onUpdate:modelValue":a[14]||(a[14]=f=>n.show=f),size:"70%"},{title:l(()=>[Ve]),default:l(()=>[I("div",we,[t(X,{ref_key:"formRef",ref:d,model:u(e),"label-width":"160px"},{default:l(()=>[t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:24},{default:l(()=>[t(F,{label:"\u83DC\u5355\u7C7B\u578B\uFF1A",prop:"type",rules:[{required:!0,message:"\u7C7B\u578B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[t(V,{modelValue:u(e).type,"onUpdate:modelValue":a[0]||(a[0]=f=>u(e).type=f)},{default:l(()=>[t(m,{label:"D"},{default:l(()=>[Ce]),_:1}),t(m,{label:"M"},{default:l(()=>[be]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u83DC\u5355\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[t(g,{modelValue:u(e).name,"onUpdate:modelValue":a[1]||(a[1]=f=>u(e).name=f)},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u4E0A\u7EA7\u83DC\u5355\uFF1A"},{default:l(()=>[t(g,{modelValue:u(e).parna,"onUpdate:modelValue":a[2]||(a[2]=f=>u(e).parna=f),readonly:"","suffix-icon":_.Search,onClick:A},null,8,["modelValue","suffix-icon"]),t(ae,{url:"/sys/portal/menu/tree",ref_key:"parentModal",ref:C,onClose:E},null,512)]),_:1})]),_:1})]),_:1}),t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:l(()=>[t(Q,{modelValue:u(e).ornum,"onUpdate:modelValue":a[3]||(a[3]=f=>u(e).ornum=f),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u662F\u5426\u542F\u7528\uFF1A"},{default:l(()=>[t(P,{modelValue:u(e).avtag,"onUpdate:modelValue":a[4]||(a[4]=f=>u(e).avtag=f)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),D(t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u83DC\u5355\u4EE3\u7801\uFF1A"},{default:l(()=>[t(g,{modelValue:u(e).code,"onUpdate:modelValue":a[5]||(a[5]=f=>u(e).code=f)},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u8DEF\u7531\u5730\u5740\uFF1A",prop:"path",rules:[{required:u(e).type==="M"||u(e).type==="D",message:"\u8DEF\u7531\u5730\u5740\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[t(g,{modelValue:u(e).path,"onUpdate:modelValue":a[6]||(a[6]=f=>u(e).path=f)},null,8,["modelValue"])]),_:1},8,["rules"])]),_:1})]),_:1},512),[[v,u(e).type==="M"||u(e).type==="D"]]),t(c,{style:{height:"48px"}},{default:l(()=>[D(t(s,{span:12},{default:l(()=>[t(F,{label:"\u7EC4\u4EF6\u8DEF\u5F84\uFF1A",prop:"comp",rules:[{required:u(e).type==="M",message:"\u7EC4\u4EF6\u8DEF\u5F84\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:l(()=>[t(g,{modelValue:u(e).comp,"onUpdate:modelValue":a[7]||(a[7]=f=>u(e).comp=f)},null,8,["modelValue"])]),_:1},8,["rules"])]),_:1},512),[[v,u(e).type==="M"]])]),_:1}),D(t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u56FE\u6807\uFF1A"},{default:l(()=>[t(ye,{placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u56FE\u6807",modelValue:u(e).icon,"onUpdate:modelValue":a[8]||(a[8]=f=>u(e).icon=f),type:"all",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u662F\u5426\u7F13\u5B58\uFF1A"},{default:l(()=>[t(P,{modelValue:u(e).catag,"onUpdate:modelValue":a[9]||(a[9]=f=>u(e).catag=f)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[v,u(e).type==="M"||u(e).type==="D"]]),D(t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u662F\u5426\u663E\u793A\uFF1A"},{default:l(()=>[t(P,{modelValue:u(e).shtag,"onUpdate:modelValue":a[10]||(a[10]=f=>u(e).shtag=f)},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u662F\u5426\u5916\u94FE\uFF1A"},{default:l(()=>[t(P,{modelValue:u(e).extag,"onUpdate:modelValue":a[11]||(a[11]=f=>u(e).extag=f)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[v,u(e).type==="M"||u(e).type==="D"]]),D(t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:l(()=>[w(x(u(e).crman?u(e).crman.name:""),1)]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:l(()=>[w(x(u(e).crtim),1)]),_:1})]),_:1})]),_:1},512),[[v,u(e).crtim]]),D(t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:12},{default:l(()=>[t(F,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:l(()=>[w(x(u(e).upman?u(e).upman.name:""),1)]),_:1})]),_:1}),t(s,{span:12},{default:l(()=>[t(F,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:l(()=>[w(x(u(e).uptim),1)]),_:1})]),_:1})]),_:1},512),[[v,u(e).crtim]]),t(c,{style:{height:"48px"}},{default:l(()=>[t(s,{span:24},{default:l(()=>[t(F,{label:"\u5907\u6CE8\uFF1A"},{default:l(()=>[t(g,{modelValue:u(e).notes,"onUpdate:modelValue":a[12]||(a[12]=f=>u(e).notes=f),type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),footer:l(()=>[I("div",Ee,[t(M,{type:"primary",onClick:b},{default:l(()=>[De]),_:1}),t(M,{onClick:a[13]||(a[13]=f=>n.show=!1)},{default:l(()=>[ve]),_:1})])]),_:1},8,["modelValue"])}}});export{ke as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit3.1654291592072.js b/vboot-web/src/main/resources/static/assets/edit3.1654291592072.js deleted file mode 100644 index bcf50d9..0000000 --- a/vboot-web/src/main/resources/static/assets/edit3.1654291592072.js +++ /dev/null @@ -1,170 +0,0 @@ -var U=Object.defineProperty,j=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var F=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var M=(r,m,p)=>m in r?U(r,m,{enumerable:!0,configurable:!0,writable:!0,value:p}):r[m]=p,P=(r,m)=>{for(var p in m||(m={}))O.call(m,p)&&M(r,p,m[p]);if(F)for(var p of F(m))G.call(m,p)&&M(r,p,m[p]);return r},L=(r,m)=>j(r,X(m));import{a as H,aB as I,j as y,a3 as J,ag as Y,m as Z,R as $,S as e,a2 as s,o as K,Z as n,u as i,e as d,T as Q,U as W,Y as B,X as h}from"./vue.1654291592072.js";import{p as nn,c as en}from"./edit.16542915920722.js";import{M as tn,P as an,B as on}from"./BpmnActions.1654291592072.js";import{B as w}from"./store.1654291592072.js";import{N as un,g as mn}from"./index.1654291592072.js";import{C as pn}from"./GenModal.1654291592072.js";import"./Modeler.1654291592072.js";const dn=d("div",{style:{"line-height":"32px"}},"\u6D41\u7A0B\u6A21\u677F",-1),sn=h("\u4FDD \u5B58"),ln=h("\u590D \u5236"),rn=h("\u5173 \u95ED"),cn={style:{"margin-top":"8px","margin-bottom":"8px"}},bn={class:"zinput"},_n={class:"zinput"},gn={class:"zinput"},fn={class:"zinput"},vn={style:{width:"100%",height:"720px"}},yn={class:"zinput",style:{height:"auto"}},Bn={class:"zinput",style:{height:"auto"}},wn={class:"zinput"},hn={class:"zinput"},En={class:"zinput"},Nn={class:"zinput"},xn={name:"OaFlowTempEdit3"},Sn=H(L(P({},xn),{setup(r){const m=I(),p=y(),E=y("tab1"),c=J({url:"/oa/flow/temp",params:{path:"",query:{}},form:{avtag:!0}}),{form:t}=Y(c);Z(async()=>{var a,o,g;un.done(),c.params=m;let l=(a=c.params.query)==null?void 0:a.id;if(l)c.form=await mn({url:c.url+"/one/"+l,method:"get"});else{let b=(o=c.params.query)==null?void 0:o.catid;b&&(c.form.cate={id:b,name:(g=c.params.query)==null?void 0:g.catna}),c.form.avtag=!0}t.value.id?await w.importXML(t.value.prxml):await w.importXML(D)});async function A(l){const a=await w.getXML();t.value.vform=JSON.stringify(N.value.getFormJson()),t.value.prxml=a.xml,console.log(a.xml),await en({formRef:p.value,state:l})}const N=y(),D=` - - - - L1 - - - - \u5224\u65AD\u5BA1\u6279\u91D1\u989D\u662F\u5426\u5927\u4E8E100 - L4 - L6 - L5 - - - - - - - - - - - - - - - - L2 - - - - - \u8D77\u8349\u8282\u70B9\uFF0C\u8868\u5355\u6570\u636E\u4E00\u822C\u4ECE\u7ED1\u5B9A\u7684\u8868\u5355\u63D0\u53D6 - - - - - - - - - - L1 - L3 - - - \u5BA1\u6279\u8282\u70B9 - - - - - - - L3 - L4 - - - - - - - - - L5 - L7 - - - - - - - - - L6 - L8 - - - - - - - - - - L7 - L8 - L2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`,x=y(),C=()=>{x.value.openModal()},k=l=>{l==null?t.value.cate=null:t.value.cate={id:l.id,name:l.name}};return(l,a)=>{const o=s("el-col"),g=s("el-button"),b=s("el-row"),v=s("el-input"),_=s("el-form-item"),S=s("el-input-number"),R=s("el-switch"),f=s("el-tab-pane"),V=s("v-form-designer"),q=s("el-tabs"),z=s("el-form"),T=s("el-card");return K(),$(T,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:e(()=>[n(b,null,{default:e(()=>[n(o,{span:10},{default:e(()=>[dn]),_:1}),n(o,{span:14,style:{"text-align":"right"}},{default:e(()=>[n(g,{type:"success",onClick:a[0]||(a[0]=u=>A(c)),plain:""},{default:e(()=>[sn]),_:1}),n(g,{type:"info",plain:""},{default:e(()=>[ln]),_:1}),n(g,{type:"info",onClick:i(nn),plain:""},{default:e(()=>[rn]),_:1},8,["onClick"])]),_:1})]),_:1})]),default:e(()=>[n(pn,{url:"oa/flow/cate/tree",ref_key:"cateModal",ref:x,onClose:k},null,512),d("div",cn,[n(z,{ref_key:"formRef",ref:p,model:i(t),"label-width":"140px"},{default:e(()=>[n(q,{type:"card",modelValue:E.value,"onUpdate:modelValue":a[6]||(a[6]=u=>E.value=u)},{default:e(()=>[n(f,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1",class:"zform"},{default:e(()=>[n(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[n(o,{span:12},{default:e(()=>[n(_,{label:"\u6A21\u677F\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:e(()=>[d("div",bn,[n(v,{modelValue:i(t).name,"onUpdate:modelValue":a[1]||(a[1]=u=>i(t).name=u)},null,8,["modelValue"])])]),_:1})]),_:1}),n(o,{span:12},{default:e(()=>[n(_,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"cate",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:e(()=>{var u;return[d("div",_n,[n(v,{value:(u=i(t).cate)==null?void 0:u.name,"suffix-icon":l.Search,readonly:!0,onClick:C},null,8,["value","suffix-icon"])])]}),_:1})]),_:1})]),_:1}),n(b,null,{default:e(()=>[n(o,{span:12},{default:e(()=>[n(_,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:e(()=>[d("div",gn,[n(S,{modelValue:i(t).ornum,"onUpdate:modelValue":a[2]||(a[2]=u=>i(t).ornum=u),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),n(o,{span:12},{default:e(()=>[n(_,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:e(()=>[d("div",fn,[n(R,{modelValue:i(t).avtag,"onUpdate:modelValue":a[3]||(a[3]=u=>i(t).avtag=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),n(f,{label:"\u5BA1\u6279\u5185\u5BB9",name:"tab2"},{default:e(()=>[n(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[n(o,{span:24},{default:e(()=>[n(V,{ref_key:"vform",ref:N},null,512)]),_:1})]),_:1})]),_:1}),n(f,{label:"\u6D41\u7A0B\u914D\u7F6E",name:"tab3"},{default:e(()=>[d("div",vn,[n(i(tn),{onBpmnMounted:l.bpmnMounted},null,8,["onBpmnMounted"]),n(i(an)),n(i(on))])]),_:1}),n(f,{label:"\u6743\u9650\u914D\u7F6E",name:"tab4",class:"zform"},{default:e(()=>[n(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[n(o,{span:24},{default:e(()=>[n(_,{label:"\u5907\u6CE8\uFF1A"},{default:e(()=>[d("div",yn,[n(v,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:i(t).notes,"onUpdate:modelValue":a[4]||(a[4]=u=>i(t).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),n(f,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9",class:"zform"},{default:e(()=>[n(b,{style:{"border-top":"1px solid #d2d2d2"}},{default:e(()=>[n(o,{span:24},{default:e(()=>[n(_,{label:"\u5907\u6CE8\uFF1A"},{default:e(()=>[d("div",Bn,[n(v,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:i(t).notes,"onUpdate:modelValue":a[5]||(a[5]=u=>i(t).notes=u)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Q(n(b,null,{default:e(()=>[n(o,{span:6},{default:e(()=>[n(_,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:e(()=>[d("div",wn,B(i(t).crman?i(t).crman.name:""),1)]),_:1})]),_:1}),n(o,{span:6},{default:e(()=>[n(_,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:e(()=>[d("div",hn,B(i(t).crtim),1)]),_:1})]),_:1}),n(o,{span:6},{default:e(()=>[n(_,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:e(()=>[d("div",En,B(i(t).upman?i(t).upman.name:""),1)]),_:1})]),_:1}),n(o,{span:6},{default:e(()=>[n(_,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:e(()=>[d("div",Nn,B(i(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[W,i(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Sn as default}; diff --git a/vboot-web/src/main/resources/static/assets/edit_new.1654291592072.css b/vboot-web/src/main/resources/static/assets/edit_new.1654291592072.css deleted file mode 100644 index 121de76..0000000 --- a/vboot-web/src/main/resources/static/assets/edit_new.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.containers[data-v-4be57b68]{position:absolute;background-color:#fff;width:100%;height:100%}.canvas[data-v-4be57b68]{width:100%;height:100%}.panel[data-v-4be57b68]{position:absolute;right:0;top:0;width:300px} diff --git a/vboot-web/src/main/resources/static/assets/edit_new.1654291592072.js b/vboot-web/src/main/resources/static/assets/edit_new.1654291592072.js deleted file mode 100644 index 421a313..0000000 --- a/vboot-web/src/main/resources/static/assets/edit_new.1654291592072.js +++ /dev/null @@ -1,170 +0,0 @@ -var O=Object.defineProperty,j=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var P=(b,o,p)=>o in b?O(b,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[o]=p,D=(b,o)=>{for(var p in o||(o={}))I.call(o,p)&&P(b,p,o[p]);if(M)for(var p of M(o))X.call(o,p)&&P(b,p,o[p]);return b},L=(b,o)=>j(b,G(o));import{a as A,j as B,a3 as k,ag as C,m as R,o as S,b as $,e as d,Z as e,aB as H,R as Y,S as n,a2 as _,u as a,T as Z,U as J,Y as w,X as F}from"./vue.1654291592072.js";import{p as K,c as Q}from"./edit.16542915920722.js";import{_ as W,N as ee,g as ne}from"./index.1654291592072.js";import{C as te}from"./GenModal.1654291592072.js";import{M as ie}from"./Modeler.1654291592072.js";import{O as ae}from"./OrgModal.1654291592072.js";import"./DeptTree.1654291592072.js";const oe={class:"containers"},ue=A({name:"MyBpmn",setup(b){const o=B(),p=()=>{o.value.openModal({opener:"opman",orgType:8})},f=B(),r=k({data:[],bpmnModeler:{}}),{bpmnModeler:t}=C(r);R(()=>{t.value=new ie({container:f.value}),t.value.importXML(c,i=>{i?console.error(i):console.log("ok")}),N()});let E=0,y={};const N=()=>{const i=t.value.get("eventBus");["element.click"].forEach(function(g){i.on(g,function(l){if(!(!l||l.element.type=="bpmn:Process")){var v=t.value.get("elementRegistry"),s=v.get(l.element.id);new Date().getTime()-E<=500&&(p(),y=s),E=new Date().getTime(),console.log(s.businessObject.id),s.businessObject.name="\u674E\u56DB",t.value.get("modeling").updateProperties(s,{name:"\u6211\u662F\u4FEE\u6539\u540E\u7684Task\u540D\u79F0"}),console.log(s)}})})},x=()=>{t.value.get("modeling").updateProperties(y,{name:"\u6211\u662F\u53CC\u51FB\u4FEE\u6539\u540E\u7684Task\u540D\u79F0"})},c=` - - - - L1 - - - - \u5224\u65AD\u5BA1\u6279\u91D1\u989D\u662F\u5426\u5927\u4E8E100 - L4 - L6 - L5 - - - - - - - - - - - - - - - - L2 - - - - - \u8D77\u8349\u8282\u70B9\uFF0C\u8868\u5355\u6570\u636E\u4E00\u822C\u4ECE\u7ED1\u5B9A\u7684\u8868\u5355\u63D0\u53D6 - - - - - - - - - - L1 - L3 - - - \u5BA1\u6279\u8282\u70B9 - - - - - - - L3 - L4 - - - - - - - - - L5 - L7 - - - - - - - - - L6 - L8 - - - - - - - - - - L7 - L8 - L2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`;return(i,u)=>(S(),$("div",oe,[d("div",{class:"canvas",ref_key:"canvasRef",ref:f,style:{height:"1000px"}},null,512),e(ae,{ref_key:"orgModal",ref:o,onClose:x},null,512)]))}});var se=W(ue,[["__scopeId","data-v-4be57b68"]]);const pe=d("div",{style:{"line-height":"32px"}},"\u6D41\u7A0B\u6A21\u677F",-1),me=F("\u4FDD \u5B58"),de=F("\u590D \u5236"),le=F("\u5173 \u95ED"),re={style:{"margin-top":"8px","margin-bottom":"8px"}},ce={class:"zinput"},be={class:"zinput"},_e={class:"zinput"},ge={class:"zinput"},ve={style:{width:"100%",height:"720px"}},fe={class:"zinput",style:{height:"auto"}},ye={class:"zinput",style:{height:"auto"}},Be={class:"zinput"},Ee={class:"zinput"},he={class:"zinput"},we={class:"zinput"},Ne={name:"OaFlowTempEditNew"},Ce=A(L(D({},Ne),{setup(b){const o=H(),p=B(),f=B("tab1"),r=k({url:"/oa/flow/temp",params:{path:"",query:{}},form:{avtag:!0}}),{form:t}=C(r);R(async()=>{var i,u,g;ee.done(),r.params=o;let c=(i=r.params.query)==null?void 0:i.id;if(c)r.form=await ne({url:r.url+"/one/"+c,method:"get"});else{let l=(u=r.params.query)==null?void 0:u.catid;l&&(r.form.cate={id:l,name:(g=r.params.query)==null?void 0:g.catna}),r.form.avtag=!0}});async function E(c){await Q({formRef:p.value,state:c})}const y=B(),N=()=>{y.value.openModal()},x=c=>{c==null?t.value.cate=null:t.value.cate={id:c.id,name:c.name}};return(c,i)=>{const u=_("el-col"),g=_("el-button"),l=_("el-row"),v=_("el-input"),s=_("el-form-item"),T=_("el-input-number"),V=_("el-switch"),h=_("el-tab-pane"),q=_("el-tabs"),z=_("el-form"),U=_("el-card");return S(),Y(U,{class:"box-card","body-style":{padding:"2px 8px"},shadow:"never"},{header:n(()=>[e(l,null,{default:n(()=>[e(u,{span:10},{default:n(()=>[pe]),_:1}),e(u,{span:14,style:{"text-align":"right"}},{default:n(()=>[e(g,{type:"success",onClick:i[0]||(i[0]=m=>E(r)),plain:""},{default:n(()=>[me]),_:1}),e(g,{type:"info",plain:""},{default:n(()=>[de]),_:1}),e(g,{type:"info",onClick:a(K),plain:""},{default:n(()=>[le]),_:1},8,["onClick"])]),_:1})]),_:1})]),default:n(()=>[e(te,{url:"oa/flow/cate/tree",ref_key:"cateModal",ref:y,onClose:x},null,512),d("div",re,[e(z,{ref_key:"formRef",ref:p,model:a(t),"label-width":"140px"},{default:n(()=>[e(q,{type:"card",modelValue:f.value,"onUpdate:modelValue":i[6]||(i[6]=m=>f.value=m)},{default:n(()=>[e(h,{label:"\u57FA\u672C\u4FE1\u606F",name:"tab1",class:"zform"},{default:n(()=>[e(l,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(u,{span:12},{default:n(()=>[e(s,{label:"\u6A21\u677F\u540D\u79F0\uFF1A",prop:"name",rules:[{required:!0,message:"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:n(()=>[d("div",ce,[e(v,{modelValue:a(t).name,"onUpdate:modelValue":i[1]||(i[1]=m=>a(t).name=m)},null,8,["modelValue"])])]),_:1})]),_:1}),e(u,{span:12},{default:n(()=>[e(s,{label:"\u6240\u5C5E\u5206\u7C7B\uFF1A",prop:"cate",rules:[{required:!0,message:"\u5206\u7C7B\u4E0D\u80FD\u4E3A\u7A7A"}]},{default:n(()=>{var m;return[d("div",be,[e(v,{value:(m=a(t).cate)==null?void 0:m.name,"suffix-icon":c.Search,readonly:!0,onClick:N},null,8,["value","suffix-icon"])])]}),_:1})]),_:1})]),_:1}),e(l,null,{default:n(()=>[e(u,{span:12},{default:n(()=>[e(s,{label:"\u6392\u5E8F\u53F7\uFF1A"},{default:n(()=>[d("div",_e,[e(T,{modelValue:a(t).ornum,"onUpdate:modelValue":i[2]||(i[2]=m=>a(t).ornum=m),"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])])]),_:1})]),_:1}),e(u,{span:12},{default:n(()=>[e(s,{label:"\u662F\u5426\u53EF\u7528\uFF1A"},{default:n(()=>[d("div",ge,[e(V,{modelValue:a(t).avtag,"onUpdate:modelValue":i[3]||(i[3]=m=>a(t).avtag=m)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{label:"\u6D41\u7A0B\u914D\u7F6E",name:"tab3"},{default:n(()=>[d("div",ve,[e(se)])]),_:1}),e(h,{label:"\u6743\u9650\u914D\u7F6E",name:"tab4",class:"zform"},{default:n(()=>[e(l,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(u,{span:24},{default:n(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:n(()=>[d("div",fe,[e(v,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(t).notes,"onUpdate:modelValue":i[4]||(i[4]=m=>a(t).notes=m)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{label:"\u5176\u4ED6\u4FE1\u606F",name:"tab9",class:"zform"},{default:n(()=>[e(l,{style:{"border-top":"1px solid #d2d2d2"}},{default:n(()=>[e(u,{span:24},{default:n(()=>[e(s,{label:"\u5907\u6CE8\uFF1A"},{default:n(()=>[d("div",ye,[e(v,{style:{"font-family":"'Courier New', Helvetica, Arial, sans-serif","font-size":"16px"},type:"textarea",rows:4,modelValue:a(t).notes,"onUpdate:modelValue":i[5]||(i[5]=m=>a(t).notes=m)},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1}),Z(e(l,null,{default:n(()=>[e(u,{span:6},{default:n(()=>[e(s,{label:"\u521B\u5EFA\u4EBA\uFF1A"},{default:n(()=>[d("div",Be,w(a(t).crman?a(t).crman.name:""),1)]),_:1})]),_:1}),e(u,{span:6},{default:n(()=>[e(s,{label:"\u521B\u5EFA\u65F6\u95F4\uFF1A"},{default:n(()=>[d("div",Ee,w(a(t).crtim),1)]),_:1})]),_:1}),e(u,{span:6},{default:n(()=>[e(s,{label:"\u66F4\u65B0\u4EBA\uFF1A"},{default:n(()=>[d("div",he,w(a(t).upman?a(t).upman.name:""),1)]),_:1})]),_:1}),e(u,{span:6},{default:n(()=>[e(s,{label:"\u66F4\u65B0\u65F6\u95F4\uFF1A"},{default:n(()=>[d("div",we,w(a(t).uptim),1)]),_:1})]),_:1})]),_:1},512),[[J,a(t).crtim]])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])])]),_:1})}}}));export{Ce as default}; diff --git a/vboot-web/src/main/resources/static/assets/iframes.1654291592072.js b/vboot-web/src/main/resources/static/assets/iframes.1654291592072.js deleted file mode 100644 index 30f3736..0000000 --- a/vboot-web/src/main/resources/static/assets/iframes.1654291592072.js +++ /dev/null @@ -1 +0,0 @@ -var g=Object.defineProperty;var f=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var m=(e,a,s)=>a in e?g(e,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[a]=s,c=(e,a)=>{for(var s in a||(a={}))h.call(a,s)&&m(e,s,a[s]);if(f)for(var s of f(a))p.call(a,s)&&m(e,s,a[s]);return e};import{a as v,s as l,aB as w,a3 as T,B as _,m as L,k as B,ag as b,T as u,b as k,e as y,U as C,O as I,n as R,aa as V,o as $}from"./vue.1654291592072.js";import{_ as x,u as U,b as D}from"./index.1654291592072.js";const E=v({name:"layoutIfameView",setup(){const e=U(),a=D(),{themeConfig:s}=l(e),{isTagsViewCurrenFull:n}=l(a),i=w(),t=T({iframeLoading:!0,iframeUrl:""}),r=()=>{t.iframeUrl=i.meta.isLink,R(()=>{t.iframeLoading=!0;const o=document.getElementById("iframe");if(!o)return!1;o.onload=()=>{t.iframeLoading=!1}})},d=_(()=>{let{isTagsview:o}=s.value;return n.value?"1px":o?"86px":"51px"});return L(()=>{r()}),B(()=>i.path,()=>{r()}),c({setIframeHeight:d},b(t))}}),H=["src"];function S(e,a,s,n,i,t){const r=V("loading");return u(($(),k("div",{class:"layout-view-bg-white flex mt1",style:I({height:`calc(100vh - ${e.setIframeHeight}`,border:"none"})},[u(y("iframe",{src:e.iframeUrl,frameborder:"0",height:"100%",width:"100%",id:"iframe"},null,8,H),[[C,!e.iframeLoading]])],4)),[[r,e.iframeLoading]])}var N=x(E,[["render",S]]);export{N as default}; diff --git a/vboot-web/src/main/resources/static/assets/index.1654291592072.css b/vboot-web/src/main/resources/static/assets/index.1654291592072.css deleted file mode 100644 index 4284951..0000000 --- a/vboot-web/src/main/resources/static/assets/index.1654291592072.css +++ /dev/null @@ -1 +0,0 @@ -.login-content-form[data-v-9acfbdbe]{margin-top:20px}.login-content-form .login-animation1[data-v-9acfbdbe]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.1s}.login-content-form .login-animation2[data-v-9acfbdbe]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.2s}.login-content-form .login-animation3[data-v-9acfbdbe]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.3s}.login-content-form .login-animation4[data-v-9acfbdbe]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.4s}.login-content-form .login-content-password[data-v-9acfbdbe]{display:inline-block;width:20px;cursor:pointer}.login-content-form .login-content-password[data-v-9acfbdbe]:hover{color:#909399}.login-content-form .login-content-code[data-v-9acfbdbe]{width:100%;padding:0;font-weight:700;letter-spacing:5px}.login-content-form .login-content-submit[data-v-9acfbdbe]{width:100%;letter-spacing:2px;font-weight:300;margin-top:15px}.login-content-form[data-v-52cdd77f]{margin-top:20px}.login-content-form .login-animation1[data-v-52cdd77f]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.1s}.login-content-form .login-animation2[data-v-52cdd77f]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.2s}.login-content-form .login-animation3[data-v-52cdd77f]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.3s}.login-content-form .login-animation4[data-v-52cdd77f]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards;animation-delay:.4s}.login-content-form .login-content-code[data-v-52cdd77f]{width:100%;padding:0}.login-content-form .login-content-submit[data-v-52cdd77f]{width:100%;letter-spacing:2px;font-weight:300;margin-top:15px}.login-content-form .login-msg[data-v-52cdd77f]{color:var(--el-text-color-placeholder)}.login-scan-animation[data-v-2a24e04c],.login-scan-container .login-msg[data-v-2a24e04c],.login-scan-container[data-v-2a24e04c]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.login-scan-container[data-v-2a24e04c]{padding:20px;display:flex;flex-direction:column;text-align:center;animation-delay:.1s}.login-scan-container[data-v-2a24e04c] img{margin:auto}.login-scan-container .login-msg[data-v-2a24e04c]{color:var(--el-text-color-placeholder);animation-delay:.2s}.login-container[data-v-3f1562f8]{width:100%;height:100%;position:relative;background:var(--el-color-white)}.login-container .login-icon-group[data-v-3f1562f8]{width:100%;height:100%;position:relative}.login-container .login-icon-group .login-icon-group-title[data-v-3f1562f8]{position:absolute;top:50px;left:80px;display:flex;align-items:center}.login-container .login-icon-group .login-icon-group-title img[data-v-3f1562f8]{width:30px;height:30px}.login-container .login-icon-group .login-icon-group-title-text[data-v-3f1562f8]{padding-left:15px;color:var(--el-color-primary)}.login-container .login-icon-group[data-v-3f1562f8]:before{content:"";position:absolute;bottom:0;left:0;width:60%;overflow:hidden;height:80%;-webkit-mask-box-image:url("data:image/svg+xml,%3Csvg width='1200' height='770' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cg%3E%3Cpath id='svg_1' d='M58.4 47.77C104.6 59.51 135.26 67.37 162.11 78.04C188.97 88.72 226.33 102.69 265.92 123.55C305.51 144.4 366.96 167.09 441.43 121.52C515.9 75.95 546.48 61.01 577.69 46.27C608.9 31.53 625.86 23.69 680.26 12.28C734.65 0.87 837.29 10.7 867.29 21.8C897.29 32.9 935.51 51.9 962.21 95.45C988.9 139.01 972.91 177.36 951.37 221.39C929.83 265.43 883.49 306 890.44 337.33C897.4 368.66 974.73 412.18 974.73 411.47C974.73 412.18 1066.36 457.62 1106.36 491.06C1146.36 524.5 1178.8 563.36 1184.03 579.63C1189.26 595.9 1200.4 622.49 1181.55 676.88C1162.71 731.26 1127.16 764.32 1115.31 778.64C1103.45 792.96 5.34 783.61 4.32 784.63C3.3 785.65 -172.34 2.38 1.13 35.04L58.4 47.77L58.4 47.77Z' fill='%23409eff'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background:var(--el-color-primary-light-5);transition:all .3s ease}.login-container .login-icon-group[data-v-3f1562f8]:after{content:"";width:150px;height:300px;position:absolute;right:0;top:0;-webkit-mask-box-image:url("data:image/svg+xml,%3Csvg width='150' height='300' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cg%3E%3Cpath id='svg_1' d='M-0.56 -0.28C41.94 36.17 67.73 18.94 93.33 33.96C118.93 48.98 107.58 73.56 101.94 89.76C96.29 105.96 50.09 217.83 47.87 231.18C45.64 244.52 46.02 255.2 64.4 270.05C82.79 284.91 121.99 292.31 111.98 289.81C101.97 287.32 153.96 301.48 151.83 299.9C149.69 298.32 149.98 -1.36 149.71 -1.18C149.98 -1.36 -43.06 -36.74 -0.56 -0.28L-0.56 -0.28Z' fill='%23409eff'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background:var(--el-color-primary-light-5);transition:all .3s ease}.login-container .login-icon-group-icon[data-v-3f1562f8]{width:60%;height:70%;position:absolute;left:0;bottom:0}.login-container .login-content[data-v-3f1562f8]{width:500px;padding:20px;position:absolute;right:200px;top:50%;transform:translateY(-50%) translateZ(0);background-color:var(--el-color-white);border:5px solid var(--el-color-primary-light-8);border-radius:5px;overflow:hidden;z-index:1;height:460px}.login-container .login-content .login-content-main[data-v-3f1562f8]{margin:0 auto;width:80%}.login-container .login-content .login-content-main .login-content-title[data-v-3f1562f8]{color:var(--el-text-color-primary);font-weight:500;font-size:22px;text-align:center;letter-spacing:4px;margin:15px 0 30px;white-space:nowrap;z-index:5;position:relative;transition:all .3s ease}.login-container .login-content .login-content-main-sacn[data-v-3f1562f8]{position:absolute;top:0;right:0;width:50px;height:50px;overflow:hidden;cursor:pointer;transition:all ease .3s;color:var(--el-text-color-primary)}.login-container .login-content .login-content-main-sacn-delta[data-v-3f1562f8]{position:absolute;width:35px;height:70px;z-index:2;top:2px;right:21px;background:var(--el-color-white);transform:rotate(-45deg)}.login-container .login-content .login-content-main-sacn[data-v-3f1562f8]:hover{opacity:1;transition:all ease .3s;color:var(--el-color-primary)!important}.login-container .login-content .login-content-main-sacn i[data-v-3f1562f8]{width:47px;height:50px;display:inline-block;font-size:48px;position:absolute;right:2px;top:-1px} diff --git a/vboot-web/src/main/resources/static/assets/index.1654291592072.js b/vboot-web/src/main/resources/static/assets/index.1654291592072.js deleted file mode 100644 index 9f5b0c4..0000000 --- a/vboot-web/src/main/resources/static/assets/index.1654291592072.js +++ /dev/null @@ -1,557 +0,0 @@ -var Ta=Object.defineProperty,Ba=Object.defineProperties;var Na=Object.getOwnPropertyDescriptors;var pr=Object.getOwnPropertySymbols;var Ei=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable;var Ci=($,k,V)=>k in $?Ta($,k,{enumerable:!0,configurable:!0,writable:!0,value:V}):$[k]=V,oo=($,k)=>{for(var V in k||(k={}))Ei.call(k,V)&&Ci($,V,k[V]);if(pr)for(var V of pr(k))ki.call(k,V)&&Ci($,V,k[V]);return $},mo=($,k)=>Ba($,Na(k));var Zo=($,k)=>{var V={};for(var z in $)Ei.call($,z)&&k.indexOf(z)<0&&(V[z]=$[z]);if($!=null&&pr)for(var z of pr($))k.indexOf(z)<0&&ki.call($,z)&&(V[z]=$[z]);return V};import{c as createPinia,d as defineStore,a as defineComponent,o as openBlock,b as createElementBlock,e as createBaseVNode,f as createStaticVNode,n as nextTick,s as storeToRefs,r as readonly,g as shallowRef,w as watchEffect,h as getCurrentScope,i as onScopeDispose,j as ref,k as watch$1,u as unref,l as getCurrentInstance,m as onMounted,p as isArray$4,q as isObject$5,t as camelize,v as isString$3,x as hasOwn$2,y as warn$1,N as NOOP,z as isFunction$3,A as isVNode,F as Fragment,C as Comment,B as computed,D as inject,E as provide,G as onBeforeUnmount,H as toRef,I as onUnmounted,J as isRef,K as onBeforeMount,L as renderSlot,M as normalizeClass,O as normalizeStyle,P as mergeProps,Q as useSlots,R as createBlock,S as withCtx,T as withDirectives,U as vShow,V as resolveDynamicComponent,W as createCommentVNode,X as createTextVNode,Y as toDisplayString$1,Z as createVNode,_ as Transition,$ as useAttrs$1,a0 as onUpdated,a1 as withModifiers,a2 as resolveComponent,a3 as reactive,a4 as cloneVNode,a5 as Text$1,a6 as Teleport,a7 as renderList,a8 as createSlots,a9 as withKeys,aa as resolveDirective,ab as h$2,ac as normalizeProps,ad as guardReactiveProps,ae as toTypeString$1,af as vModelCheckbox,ag as toRefs,ah as vModelRadio,ai as capitalize,aj as onBeforeUpdate,ak as isPromise$1,al as vModelText,am as toHandlers,an as markRaw,ao as effectScope,ap as toRaw,aq as triggerRef,ar as toRawType,as as TransitionGroup,at as createApp,au as hyphenate,av as render,aw as createRouter,ax as createWebHashHistory,ay as vue_runtime_esmBundler,az as pushScopeId,aA as popScopeId,aB as useRoute}from"./vue.1654291592072.js";const p$2=function(){const k=document.createElement("link").relList;if(k&&k.supports&&k.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))z(j);new MutationObserver(j=>{for(const oe of j)if(oe.type==="childList")for(const re of oe.addedNodes)re.tagName==="LINK"&&re.rel==="modulepreload"&&z(re)}).observe(document,{childList:!0,subtree:!0});function V(j){const oe={};return j.integrity&&(oe.integrity=j.integrity),j.referrerpolicy&&(oe.referrerPolicy=j.referrerpolicy),j.crossorigin==="use-credentials"?oe.credentials="include":j.crossorigin==="anonymous"?oe.credentials="omit":oe.credentials="same-origin",oe}function z(j){if(j.ep)return;j.ep=!0;const oe=V(j);fetch(j.href,oe)}};p$2();const pinia=createPinia();/*! js-cookie v3.0.1 | MIT */function assign$1($){for(var k=1;k({tagsViewRoutes:[],isTagsViewCurrenFull:!1}),actions:{async setTagsViewRoutes($){this.tagsViewRoutes=$},setCurrenFullscreen($){Session.set("isTagsViewCurrenFull",$),this.isTagsViewCurrenFull=$}}}),useThemeConfig=defineStore("themeConfig",{state:()=>({themeConfig:{isDrawer:!1,primary:"#409eff",isIsDark:!1,topBar:"#ffffff",topBarColor:"#606266",isTopBarColorGradual:!1,menuBar:"#001529",menuBarColor:"#eaeaea",isMenuBarColorGradual:!1,columnsMenuBar:"#545c64",columnsMenuBarColor:"#e6e6e6",isColumnsMenuBarColorGradual:!1,isCollapse:!1,isUniqueOpened:!1,isFixedHeader:!0,isFixedHeaderChange:!1,isClassicSplitMenu:!1,isLockScreen:!1,lockScreenTime:30,isShowLogo:!1,isShowLogoChange:!1,isBreadcrumb:!0,isTagsview:!0,isBreadcrumbIcon:!1,isTagsviewIcon:!1,isCacheTagsView:!1,isSortableTagsView:!0,isShareTagsView:!1,isFooter:!1,isGrayscale:!1,isInvert:!1,isWartermark:!1,wartermarkText:"small@\u5C0F\u67D2",tagsStyle:"tags-style-five",animation:"slide-right",columnsAsideStyle:"columns-round",columnsAsideLayout:"columns-vertical",layout:"defaults",isRequestRoutes:!0,globalTitle:"vue-next-admin",globalViceTitle:"vueNextAdmin",globalI18n:"zh-cn",globalComponentSize:"default"}}),actions:{setThemeConfig($){this.themeConfig=$}}});var _export_sfc$2=($,k)=>{const V=$.__vccOpts||$;for(const[z,j]of k)V[z]=j;return V};const _sfc_main$6M=defineComponent({name:"AddLocation"}),_hoisted_1$5v={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$57=createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3$4N=createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_4$1v=createBaseVNode("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96z"},null,-1),_hoisted_5$v=[_hoisted_2$57,_hoisted_3$4N,_hoisted_4$1v];function _sfc_render$5V($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5v,_hoisted_5$v)}var addLocation=_export_sfc$2(_sfc_main$6M,[["render",_sfc_render$5V]]);const _sfc_main$6L=defineComponent({name:"Aim"}),_hoisted_1$5u={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$56=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$4M=createBaseVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32zm0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32zM96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32zm576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32z"},null,-1),_hoisted_4$1u=[_hoisted_2$56,_hoisted_3$4M];function _sfc_render$5U($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5u,_hoisted_4$1u)}var aim=_export_sfc$2(_sfc_main$6L,[["render",_sfc_render$5U]]);const _sfc_main$6K=defineComponent({name:"AlarmClock"}),_hoisted_1$5t={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$55=createBaseVNode("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),_hoisted_3$4L=createBaseVNode("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32l48-83.136zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32l-48-83.136zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0v192zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128l46.912 46.912z"},null,-1),_hoisted_4$1t=[_hoisted_2$55,_hoisted_3$4L];function _sfc_render$5T($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5t,_hoisted_4$1t)}var alarmClock=_export_sfc$2(_sfc_main$6K,[["render",_sfc_render$5T]]);const _sfc_main$6J=defineComponent({name:"Apple"}),_hoisted_1$5s={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$54=createBaseVNode("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"},null,-1),_hoisted_3$4K=[_hoisted_2$54];function _sfc_render$5S($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5s,_hoisted_3$4K)}var apple=_export_sfc$2(_sfc_main$6J,[["render",_sfc_render$5S]]);const _sfc_main$6I=defineComponent({name:"ArrowDownBold"}),_hoisted_1$5r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$53=createBaseVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"},null,-1),_hoisted_3$4J=[_hoisted_2$53];function _sfc_render$5R($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5r,_hoisted_3$4J)}var arrowDownBold=_export_sfc$2(_sfc_main$6I,[["render",_sfc_render$5R]]);const _sfc_main$6H=defineComponent({name:"ArrowDown"}),_hoisted_1$5q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$52=createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_3$4I=[_hoisted_2$52];function _sfc_render$5Q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5q,_hoisted_3$4I)}var arrowDown=_export_sfc$2(_sfc_main$6H,[["render",_sfc_render$5Q]]);const _sfc_main$6G=defineComponent({name:"ArrowLeftBold"}),_hoisted_1$5p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$51=createBaseVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"},null,-1),_hoisted_3$4H=[_hoisted_2$51];function _sfc_render$5P($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5p,_hoisted_3$4H)}var arrowLeftBold=_export_sfc$2(_sfc_main$6G,[["render",_sfc_render$5P]]);const _sfc_main$6F=defineComponent({name:"ArrowLeft"}),_hoisted_1$5o={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$50=createBaseVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_3$4G=[_hoisted_2$50];function _sfc_render$5O($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5o,_hoisted_3$4G)}var arrowLeft=_export_sfc$2(_sfc_main$6F,[["render",_sfc_render$5O]]);const _sfc_main$6E=defineComponent({name:"ArrowRightBold"}),_hoisted_1$5n={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4$=createBaseVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"},null,-1),_hoisted_3$4F=[_hoisted_2$4$];function _sfc_render$5N($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5n,_hoisted_3$4F)}var arrowRightBold=_export_sfc$2(_sfc_main$6E,[["render",_sfc_render$5N]]);const _sfc_main$6D=defineComponent({name:"ArrowRight"}),_hoisted_1$5m={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4_=createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_3$4E=[_hoisted_2$4_];function _sfc_render$5M($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5m,_hoisted_3$4E)}var arrowRight=_export_sfc$2(_sfc_main$6D,[["render",_sfc_render$5M]]);const _sfc_main$6C=defineComponent({name:"ArrowUpBold"}),_hoisted_1$5l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4Z=createBaseVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"},null,-1),_hoisted_3$4D=[_hoisted_2$4Z];function _sfc_render$5L($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5l,_hoisted_3$4D)}var arrowUpBold=_export_sfc$2(_sfc_main$6C,[["render",_sfc_render$5L]]);const _sfc_main$6B=defineComponent({name:"ArrowUp"}),_hoisted_1$5k={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4Y=createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_3$4C=[_hoisted_2$4Y];function _sfc_render$5K($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5k,_hoisted_3$4C)}var arrowUp=_export_sfc$2(_sfc_main$6B,[["render",_sfc_render$5K]]);const _sfc_main$6A=defineComponent({name:"Avatar"}),_hoisted_1$5j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4X=createBaseVNode("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"},null,-1),_hoisted_3$4B=[_hoisted_2$4X];function _sfc_render$5J($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5j,_hoisted_3$4B)}var avatar=_export_sfc$2(_sfc_main$6A,[["render",_sfc_render$5J]]);const _sfc_main$6z=defineComponent({name:"Back"}),_hoisted_1$5i={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4W=createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_3$4A=createBaseVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),_hoisted_4$1s=[_hoisted_2$4W,_hoisted_3$4A];function _sfc_render$5I($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5i,_hoisted_4$1s)}var back=_export_sfc$2(_sfc_main$6z,[["render",_sfc_render$5I]]);const _sfc_main$6y=defineComponent({name:"Baseball"}),_hoisted_1$5h={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4V=createBaseVNode("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104z"},null,-1),_hoisted_3$4z=createBaseVNode("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"},null,-1),_hoisted_4$1r=[_hoisted_2$4V,_hoisted_3$4z];function _sfc_render$5H($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5h,_hoisted_4$1r)}var baseball=_export_sfc$2(_sfc_main$6y,[["render",_sfc_render$5H]]);const _sfc_main$6x=defineComponent({name:"Basketball"}),_hoisted_1$5g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4U=createBaseVNode("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336zm-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8zm106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6z"},null,-1),_hoisted_3$4y=[_hoisted_2$4U];function _sfc_render$5G($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5g,_hoisted_3$4y)}var basketball=_export_sfc$2(_sfc_main$6x,[["render",_sfc_render$5G]]);const _sfc_main$6w=defineComponent({name:"BellFilled"}),_hoisted_1$5f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4T=createBaseVNode("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0h256zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8H832z"},null,-1),_hoisted_3$4x=[_hoisted_2$4T];function _sfc_render$5F($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5f,_hoisted_3$4x)}var bellFilled=_export_sfc$2(_sfc_main$6w,[["render",_sfc_render$5F]]);const _sfc_main$6v=defineComponent({name:"Bell"}),_hoisted_1$5e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4S=createBaseVNode("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"},null,-1),_hoisted_3$4w=createBaseVNode("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"},null,-1),_hoisted_4$1q=createBaseVNode("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"},null,-1),_hoisted_5$u=[_hoisted_2$4S,_hoisted_3$4w,_hoisted_4$1q];function _sfc_render$5E($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5e,_hoisted_5$u)}var bell=_export_sfc$2(_sfc_main$6v,[["render",_sfc_render$5E]]);const _sfc_main$6u=defineComponent({name:"Bicycle"}),_hoisted_1$5d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4R=createStaticVNode('',5),_hoisted_7$7=[_hoisted_2$4R];function _sfc_render$5D($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5d,_hoisted_7$7)}var bicycle=_export_sfc$2(_sfc_main$6u,[["render",_sfc_render$5D]]);const _sfc_main$6t=defineComponent({name:"BottomLeft"}),_hoisted_1$5c={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4Q=createBaseVNode("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0v416z"},null,-1),_hoisted_3$4v=createBaseVNode("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"},null,-1),_hoisted_4$1p=[_hoisted_2$4Q,_hoisted_3$4v];function _sfc_render$5C($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5c,_hoisted_4$1p)}var bottomLeft=_export_sfc$2(_sfc_main$6t,[["render",_sfc_render$5C]]);const _sfc_main$6s=defineComponent({name:"BottomRight"}),_hoisted_1$5b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4P=createBaseVNode("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416H352z"},null,-1),_hoisted_3$4u=createBaseVNode("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312l544 544z"},null,-1),_hoisted_4$1o=[_hoisted_2$4P,_hoisted_3$4u];function _sfc_render$5B($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5b,_hoisted_4$1o)}var bottomRight=_export_sfc$2(_sfc_main$6s,[["render",_sfc_render$5B]]);const _sfc_main$6r=defineComponent({name:"Bottom"}),_hoisted_1$5a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4O=createBaseVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1),_hoisted_3$4t=[_hoisted_2$4O];function _sfc_render$5A($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$5a,_hoisted_3$4t)}var bottom=_export_sfc$2(_sfc_main$6r,[["render",_sfc_render$5A]]);const _sfc_main$6q=defineComponent({name:"Bowl"}),_hoisted_1$59={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4N=createBaseVNode("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256h404.864zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64v-65.408zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248L493.248 320zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424L680.576 320zM352 768v64h320v-64H352z"},null,-1),_hoisted_3$4s=[_hoisted_2$4N];function _sfc_render$5z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$59,_hoisted_3$4s)}var bowl=_export_sfc$2(_sfc_main$6q,[["render",_sfc_render$5z]]);const _sfc_main$6p=defineComponent({name:"Box"}),_hoisted_1$58={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4M=createBaseVNode("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128H317.056zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"},null,-1),_hoisted_3$4r=createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64z"},null,-1),_hoisted_4$1n=createBaseVNode("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16L448 327.872zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320l64-256z"},null,-1),_hoisted_5$t=[_hoisted_2$4M,_hoisted_3$4r,_hoisted_4$1n];function _sfc_render$5y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$58,_hoisted_5$t)}var box=_export_sfc$2(_sfc_main$6p,[["render",_sfc_render$5y]]);const _sfc_main$6o=defineComponent({name:"Briefcase"}),_hoisted_1$57={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4L=createBaseVNode("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320h192zM128 576h768v320H128V576zm256-256h256.064V192H384v128z"},null,-1),_hoisted_3$4q=[_hoisted_2$4L];function _sfc_render$5x($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$57,_hoisted_3$4q)}var briefcase=_export_sfc$2(_sfc_main$6o,[["render",_sfc_render$5x]]);const _sfc_main$6n=defineComponent({name:"BrushFilled"}),_hoisted_1$56={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4K=createBaseVNode("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128h-96zM192 512V128.064h640V512H192z"},null,-1),_hoisted_3$4p=[_hoisted_2$4K];function _sfc_render$5w($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$56,_hoisted_3$4p)}var brushFilled=_export_sfc$2(_sfc_main$6n,[["render",_sfc_render$5w]]);const _sfc_main$6m=defineComponent({name:"Brush"}),_hoisted_1$55={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4J=createBaseVNode("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64V448zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"},null,-1),_hoisted_3$4o=[_hoisted_2$4J];function _sfc_render$5v($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$55,_hoisted_3$4o)}var brush=_export_sfc$2(_sfc_main$6m,[["render",_sfc_render$5v]]);const _sfc_main$6l=defineComponent({name:"Burger"}),_hoisted_1$54={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4I=createBaseVNode("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H160zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44zM832 448a320 320 0 0 0-640 0h640zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704H512z"},null,-1),_hoisted_3$4n=[_hoisted_2$4I];function _sfc_render$5u($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$54,_hoisted_3$4n)}var burger=_export_sfc$2(_sfc_main$6l,[["render",_sfc_render$5u]]);const _sfc_main$6k=defineComponent({name:"Calendar"}),_hoisted_1$53={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4H=createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_3$4m=[_hoisted_2$4H];function _sfc_render$5t($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$53,_hoisted_3$4m)}var calendar=_export_sfc$2(_sfc_main$6k,[["render",_sfc_render$5t]]);const _sfc_main$6j=defineComponent({name:"CameraFilled"}),_hoisted_1$52={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4G=createBaseVNode("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224H160zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4zm0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),_hoisted_3$4l=[_hoisted_2$4G];function _sfc_render$5s($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$52,_hoisted_3$4l)}var cameraFilled=_export_sfc$2(_sfc_main$6j,[["render",_sfc_render$5s]]);const _sfc_main$6i=defineComponent({name:"Camera"}),_hoisted_1$51={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4F=createBaseVNode("path",{fill:"currentColor",d:"M896 256H128v576h768V256zm-199.424-64-32.064-64h-304.96l-32 64h369.024zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32zm416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448z"},null,-1),_hoisted_3$4k=[_hoisted_2$4F];function _sfc_render$5r($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$51,_hoisted_3$4k)}var camera=_export_sfc$2(_sfc_main$6i,[["render",_sfc_render$5r]]);const _sfc_main$6h=defineComponent({name:"CaretBottom"}),_hoisted_1$50={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4E=createBaseVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),_hoisted_3$4j=[_hoisted_2$4E];function _sfc_render$5q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$50,_hoisted_3$4j)}var caretBottom=_export_sfc$2(_sfc_main$6h,[["render",_sfc_render$5q]]);const _sfc_main$6g=defineComponent({name:"CaretLeft"}),_hoisted_1$4$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4D=createBaseVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"},null,-1),_hoisted_3$4i=[_hoisted_2$4D];function _sfc_render$5p($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4$,_hoisted_3$4i)}var caretLeft=_export_sfc$2(_sfc_main$6g,[["render",_sfc_render$5p]]);const _sfc_main$6f=defineComponent({name:"CaretRight"}),_hoisted_1$4_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4C=createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_3$4h=[_hoisted_2$4C];function _sfc_render$5o($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4_,_hoisted_3$4h)}var caretRight=_export_sfc$2(_sfc_main$6f,[["render",_sfc_render$5o]]);const _sfc_main$6e=defineComponent({name:"CaretTop"}),_hoisted_1$4Z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4B=createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_3$4g=[_hoisted_2$4B];function _sfc_render$5n($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4Z,_hoisted_3$4g)}var caretTop=_export_sfc$2(_sfc_main$6e,[["render",_sfc_render$5n]]);const _sfc_main$6d=defineComponent({name:"Cellphone"}),_hoisted_1$4Y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4A=createBaseVNode("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H256zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64zm128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64zm128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),_hoisted_3$4f=[_hoisted_2$4A];function _sfc_render$5m($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4Y,_hoisted_3$4f)}var cellphone=_export_sfc$2(_sfc_main$6d,[["render",_sfc_render$5m]]);const _sfc_main$6c=defineComponent({name:"ChatDotRound"}),_hoisted_1$4X={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4z=createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),_hoisted_3$4e=createBaseVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),_hoisted_4$1m=[_hoisted_2$4z,_hoisted_3$4e];function _sfc_render$5l($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4X,_hoisted_4$1m)}var chatDotRound=_export_sfc$2(_sfc_main$6c,[["render",_sfc_render$5l]]);const _sfc_main$6b=defineComponent({name:"ChatDotSquare"}),_hoisted_1$4W={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4y=createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),_hoisted_3$4d=createBaseVNode("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"},null,-1),_hoisted_4$1l=[_hoisted_2$4y,_hoisted_3$4d];function _sfc_render$5k($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4W,_hoisted_4$1l)}var chatDotSquare=_export_sfc$2(_sfc_main$6b,[["render",_sfc_render$5k]]);const _sfc_main$6a=defineComponent({name:"ChatLineRound"}),_hoisted_1$4V={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4x=createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"},null,-1),_hoisted_3$4c=createBaseVNode("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),_hoisted_4$1k=[_hoisted_2$4x,_hoisted_3$4c];function _sfc_render$5j($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4V,_hoisted_4$1k)}var chatLineRound=_export_sfc$2(_sfc_main$6a,[["render",_sfc_render$5j]]);const _sfc_main$69=defineComponent({name:"ChatLineSquare"}),_hoisted_1$4U={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4w=createBaseVNode("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),_hoisted_3$4b=createBaseVNode("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),_hoisted_4$1j=[_hoisted_2$4w,_hoisted_3$4b];function _sfc_render$5i($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4U,_hoisted_4$1j)}var chatLineSquare=_export_sfc$2(_sfc_main$69,[["render",_sfc_render$5i]]);const _sfc_main$68=defineComponent({name:"ChatRound"}),_hoisted_1$4T={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4v=createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"},null,-1),_hoisted_3$4a=[_hoisted_2$4v];function _sfc_render$5h($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4T,_hoisted_3$4a)}var chatRound=_export_sfc$2(_sfc_main$68,[["render",_sfc_render$5h]]);const _sfc_main$67=defineComponent({name:"ChatSquare"}),_hoisted_1$4S={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4u=createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88L273.536 736zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128H296z"},null,-1),_hoisted_3$49=[_hoisted_2$4u];function _sfc_render$5g($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4S,_hoisted_3$49)}var chatSquare=_export_sfc$2(_sfc_main$67,[["render",_sfc_render$5g]]);const _sfc_main$66=defineComponent({name:"Check"}),_hoisted_1$4R={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4t=createBaseVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_hoisted_3$48=[_hoisted_2$4t];function _sfc_render$5f($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4R,_hoisted_3$48)}var check=_export_sfc$2(_sfc_main$66,[["render",_sfc_render$5f]]);const _sfc_main$65=defineComponent({name:"Checked"}),_hoisted_1$4Q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4s=createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704v-64zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024 311.616 537.28zM384 192V96h256v96H384z"},null,-1),_hoisted_3$47=[_hoisted_2$4s];function _sfc_render$5e($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4Q,_hoisted_3$47)}var checked=_export_sfc$2(_sfc_main$65,[["render",_sfc_render$5e]]);const _sfc_main$64=defineComponent({name:"Cherry"}),_hoisted_1$4P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4r=createBaseVNode("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320zm448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z"},null,-1),_hoisted_3$46=[_hoisted_2$4r];function _sfc_render$5d($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4P,_hoisted_3$46)}var cherry=_export_sfc$2(_sfc_main$64,[["render",_sfc_render$5d]]);const _sfc_main$63=defineComponent({name:"Chicken"}),_hoisted_1$4O={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4q=createBaseVNode("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84zM244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52 3.52-56.32zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"},null,-1),_hoisted_3$45=[_hoisted_2$4q];function _sfc_render$5c($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4O,_hoisted_3$45)}var chicken=_export_sfc$2(_sfc_main$63,[["render",_sfc_render$5c]]);const _sfc_main$62=defineComponent({name:"CircleCheckFilled"}),_hoisted_1$4N={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4p=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3$44=[_hoisted_2$4p];function _sfc_render$5b($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4N,_hoisted_3$44)}var circleCheckFilled=_export_sfc$2(_sfc_main$62,[["render",_sfc_render$5b]]);const _sfc_main$61=defineComponent({name:"CircleCheck"}),_hoisted_1$4M={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4o=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$43=createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),_hoisted_4$1i=[_hoisted_2$4o,_hoisted_3$43];function _sfc_render$5a($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4M,_hoisted_4$1i)}var circleCheck=_export_sfc$2(_sfc_main$61,[["render",_sfc_render$5a]]);const _sfc_main$60=defineComponent({name:"CircleCloseFilled"}),_hoisted_1$4L={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4n=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_3$42=[_hoisted_2$4n];function _sfc_render$59($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4L,_hoisted_3$42)}var circleCloseFilled=_export_sfc$2(_sfc_main$60,[["render",_sfc_render$59]]);const _sfc_main$5$=defineComponent({name:"CircleClose"}),_hoisted_1$4K={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4m=createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),_hoisted_3$41=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_4$1h=[_hoisted_2$4m,_hoisted_3$41];function _sfc_render$58($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4K,_hoisted_4$1h)}var circleClose=_export_sfc$2(_sfc_main$5$,[["render",_sfc_render$58]]);const _sfc_main$5_=defineComponent({name:"CirclePlusFilled"}),_hoisted_1$4J={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4l=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"},null,-1),_hoisted_3$40=[_hoisted_2$4l];function _sfc_render$57($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4J,_hoisted_3$40)}var circlePlusFilled=_export_sfc$2(_sfc_main$5_,[["render",_sfc_render$57]]);const _sfc_main$5Z=defineComponent({name:"CirclePlus"}),_hoisted_1$4I={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4k=createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3$3$=createBaseVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),_hoisted_4$1g=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_5$s=[_hoisted_2$4k,_hoisted_3$3$,_hoisted_4$1g];function _sfc_render$56($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4I,_hoisted_5$s)}var circlePlus=_export_sfc$2(_sfc_main$5Z,[["render",_sfc_render$56]]);const _sfc_main$5Y=defineComponent({name:"Clock"}),_hoisted_1$4H={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4j=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$3_=createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$1f=createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_5$r=[_hoisted_2$4j,_hoisted_3$3_,_hoisted_4$1f];function _sfc_render$55($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4H,_hoisted_5$r)}var clock=_export_sfc$2(_sfc_main$5Y,[["render",_sfc_render$55]]);const _sfc_main$5X=defineComponent({name:"CloseBold"}),_hoisted_1$4G={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4i=createBaseVNode("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1),_hoisted_3$3Z=[_hoisted_2$4i];function _sfc_render$54($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4G,_hoisted_3$3Z)}var closeBold=_export_sfc$2(_sfc_main$5X,[["render",_sfc_render$54]]);const _sfc_main$5W=defineComponent({name:"Close"}),_hoisted_1$4F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4h=createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_3$3Y=[_hoisted_2$4h];function _sfc_render$53($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4F,_hoisted_3$3Y)}var close$2=_export_sfc$2(_sfc_main$5W,[["render",_sfc_render$53]]);const _sfc_main$5V=defineComponent({name:"Cloudy"}),_hoisted_1$4E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4g=createBaseVNode("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),_hoisted_3$3X=[_hoisted_2$4g];function _sfc_render$52($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4E,_hoisted_3$3X)}var cloudy=_export_sfc$2(_sfc_main$5V,[["render",_sfc_render$52]]);const _sfc_main$5U=defineComponent({name:"CoffeeCup"}),_hoisted_1$4D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4f=createBaseVNode("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),_hoisted_3$3W=[_hoisted_2$4f];function _sfc_render$51($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4D,_hoisted_3$3W)}var coffeeCup=_export_sfc$2(_sfc_main$5U,[["render",_sfc_render$51]]);const _sfc_main$5T=defineComponent({name:"Coffee"}),_hoisted_1$4C={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4e=createBaseVNode("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1),_hoisted_3$3V=[_hoisted_2$4e];function _sfc_render$50($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4C,_hoisted_3$3V)}var coffee=_export_sfc$2(_sfc_main$5T,[["render",_sfc_render$50]]);const _sfc_main$5S=defineComponent({name:"Coin"}),_hoisted_1$4B={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4d=createBaseVNode("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),_hoisted_3$3U=createBaseVNode("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"},null,-1),_hoisted_4$1e=createBaseVNode("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224zm0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160z"},null,-1),_hoisted_5$q=[_hoisted_2$4d,_hoisted_3$3U,_hoisted_4$1e];function _sfc_render$4$($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4B,_hoisted_5$q)}var coin=_export_sfc$2(_sfc_main$5S,[["render",_sfc_render$4$]]);const _sfc_main$5R=defineComponent({name:"ColdDrink"}),_hoisted_1$4A={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4c=createBaseVNode("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64zM656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928H299.008z"},null,-1),_hoisted_3$3T=[_hoisted_2$4c];function _sfc_render$4_($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4A,_hoisted_3$3T)}var coldDrink=_export_sfc$2(_sfc_main$5R,[["render",_sfc_render$4_]]);const _sfc_main$5Q=defineComponent({name:"CollectionTag"}),_hoisted_1$4z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4b=createBaseVNode("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128H256zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$3S=[_hoisted_2$4b];function _sfc_render$4Z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4z,_hoisted_3$3S)}var collectionTag=_export_sfc$2(_sfc_main$5Q,[["render",_sfc_render$4Z]]);const _sfc_main$5P=defineComponent({name:"Collection"}),_hoisted_1$4y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4a=createBaseVNode("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64v544zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64z"},null,-1),_hoisted_3$3R=createBaseVNode("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96H240zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224zm144-608v250.88l96-76.8 96 76.8V128H384zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44V64z"},null,-1),_hoisted_4$1d=[_hoisted_2$4a,_hoisted_3$3R];function _sfc_render$4Y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4y,_hoisted_4$1d)}var collection=_export_sfc$2(_sfc_main$5P,[["render",_sfc_render$4Y]]);const _sfc_main$5O=defineComponent({name:"Comment"}),_hoisted_1$4x={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$49=createBaseVNode("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1),_hoisted_3$3Q=[_hoisted_2$49];function _sfc_render$4X($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4x,_hoisted_3$3Q)}var comment=_export_sfc$2(_sfc_main$5O,[["render",_sfc_render$4X]]);const _sfc_main$5N=defineComponent({name:"Compass"}),_hoisted_1$4w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$48=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$3P=createBaseVNode("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832z"},null,-1),_hoisted_4$1c=[_hoisted_2$48,_hoisted_3$3P];function _sfc_render$4W($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4w,_hoisted_4$1c)}var compass=_export_sfc$2(_sfc_main$5N,[["render",_sfc_render$4W]]);const _sfc_main$5M=defineComponent({name:"Connection"}),_hoisted_1$4v={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$47=createBaseVNode("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192h192z"},null,-1),_hoisted_3$3O=createBaseVNode("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192H384z"},null,-1),_hoisted_4$1b=[_hoisted_2$47,_hoisted_3$3O];function _sfc_render$4V($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4v,_hoisted_4$1b)}var connection=_export_sfc$2(_sfc_main$5M,[["render",_sfc_render$4V]]);const _sfc_main$5L=defineComponent({name:"Coordinate"}),_hoisted_1$4u={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$46=createBaseVNode("path",{fill:"currentColor",d:"M480 512h64v320h-64z"},null,-1),_hoisted_3$3N=createBaseVNode("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64zm64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128zm256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),_hoisted_4$1a=[_hoisted_2$46,_hoisted_3$3N];function _sfc_render$4U($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4u,_hoisted_4$1a)}var coordinate=_export_sfc$2(_sfc_main$5L,[["render",_sfc_render$4U]]);const _sfc_main$5K=defineComponent({name:"CopyDocument"}),_hoisted_1$4t={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$45=createBaseVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),_hoisted_3$3M=createBaseVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),_hoisted_4$19=[_hoisted_2$45,_hoisted_3$3M];function _sfc_render$4T($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4t,_hoisted_4$19)}var copyDocument=_export_sfc$2(_sfc_main$5K,[["render",_sfc_render$4T]]);const _sfc_main$5J=defineComponent({name:"Cpu"}),_hoisted_1$4s={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$44=createBaseVNode("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H320zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128z"},null,-1),_hoisted_3$3L=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32zm160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zm-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32zM64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32zm896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32zm0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32z"},null,-1),_hoisted_4$18=[_hoisted_2$44,_hoisted_3$3L];function _sfc_render$4S($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4s,_hoisted_4$18)}var cpu=_export_sfc$2(_sfc_main$5J,[["render",_sfc_render$4S]]);const _sfc_main$5I=defineComponent({name:"CreditCard"}),_hoisted_1$4r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$43=createBaseVNode("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416V324.096zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"},null,-1),_hoisted_3$3K=createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64v-64zm0 128h896v64H64v-64zm128 192h256v64H192z"},null,-1),_hoisted_4$17=[_hoisted_2$43,_hoisted_3$3K];function _sfc_render$4R($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4r,_hoisted_4$17)}var creditCard=_export_sfc$2(_sfc_main$5I,[["render",_sfc_render$4R]]);const _sfc_main$5H=defineComponent({name:"Crop"}),_hoisted_1$4q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$42=createBaseVNode("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"},null,-1),_hoisted_3$3J=createBaseVNode("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"},null,-1),_hoisted_4$16=[_hoisted_2$42,_hoisted_3$3J];function _sfc_render$4Q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4q,_hoisted_4$16)}var crop=_export_sfc$2(_sfc_main$5H,[["render",_sfc_render$4Q]]);const _sfc_main$5G=defineComponent({name:"DArrowLeft"}),_hoisted_1$4p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$41=createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),_hoisted_3$3I=[_hoisted_2$41];function _sfc_render$4P($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4p,_hoisted_3$3I)}var dArrowLeft=_export_sfc$2(_sfc_main$5G,[["render",_sfc_render$4P]]);const _sfc_main$5F=defineComponent({name:"DArrowRight"}),_hoisted_1$4o={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$40=createBaseVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_3$3H=[_hoisted_2$40];function _sfc_render$4O($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4o,_hoisted_3$3H)}var dArrowRight=_export_sfc$2(_sfc_main$5F,[["render",_sfc_render$4O]]);const _sfc_main$5E=defineComponent({name:"DCaret"}),_hoisted_1$4n={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3$=createBaseVNode("path",{fill:"currentColor",d:"m512 128 288 320H224l288-320zM224 576h576L512 896 224 576z"},null,-1),_hoisted_3$3G=[_hoisted_2$3$];function _sfc_render$4N($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4n,_hoisted_3$3G)}var dCaret=_export_sfc$2(_sfc_main$5E,[["render",_sfc_render$4N]]);const _sfc_main$5D=defineComponent({name:"DataAnalysis"}),_hoisted_1$4m={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3_=createBaseVNode("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216zM832 192H192v512h640V192zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32zm160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$3F=[_hoisted_2$3_];function _sfc_render$4M($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4m,_hoisted_3$3F)}var dataAnalysis=_export_sfc$2(_sfc_main$5D,[["render",_sfc_render$4M]]);const _sfc_main$5C=defineComponent({name:"DataBoard"}),_hoisted_1$4l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3Z=createBaseVNode("path",{fill:"currentColor",d:"M32 128h960v64H32z"},null,-1),_hoisted_3$3E=createBaseVNode("path",{fill:"currentColor",d:"M192 192v512h640V192H192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V128z"},null,-1),_hoisted_4$15=createBaseVNode("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32L322.176 960zm453.888 0h-73.856L576 741.44l55.424-32L776.064 960z"},null,-1),_hoisted_5$p=[_hoisted_2$3Z,_hoisted_3$3E,_hoisted_4$15];function _sfc_render$4L($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4l,_hoisted_5$p)}var dataBoard=_export_sfc$2(_sfc_main$5C,[["render",_sfc_render$4L]]);const _sfc_main$5B=defineComponent({name:"DataLine"}),_hoisted_1$4k={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3Y=createBaseVNode("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192zM832 192H192v512h640V192zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"},null,-1),_hoisted_3$3D=[_hoisted_2$3Y];function _sfc_render$4K($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4k,_hoisted_3$3D)}var dataLine=_export_sfc$2(_sfc_main$5B,[["render",_sfc_render$4K]]);const _sfc_main$5A=defineComponent({name:"DeleteFilled"}),_hoisted_1$4j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3X=createBaseVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"},null,-1),_hoisted_3$3C=[_hoisted_2$3X];function _sfc_render$4J($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4j,_hoisted_3$3C)}var deleteFilled=_export_sfc$2(_sfc_main$5A,[["render",_sfc_render$4J]]);const _sfc_main$5z=defineComponent({name:"DeleteLocation"}),_hoisted_1$4i={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3W=createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3$3B=createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_4$14=createBaseVNode("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32z"},null,-1),_hoisted_5$o=[_hoisted_2$3W,_hoisted_3$3B,_hoisted_4$14];function _sfc_render$4I($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4i,_hoisted_5$o)}var deleteLocation=_export_sfc$2(_sfc_main$5z,[["render",_sfc_render$4I]]);const _sfc_main$5y=defineComponent({name:"Delete"}),_hoisted_1$4h={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3V=createBaseVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_3$3A=[_hoisted_2$3V];function _sfc_render$4H($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4h,_hoisted_3$3A)}var _delete=_export_sfc$2(_sfc_main$5y,[["render",_sfc_render$4H]]);const _sfc_main$5x=defineComponent({name:"Dessert"}),_hoisted_1$4g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3U=createBaseVNode("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416zm287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736zM384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64z"},null,-1),_hoisted_3$3z=[_hoisted_2$3U];function _sfc_render$4G($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4g,_hoisted_3$3z)}var dessert=_export_sfc$2(_sfc_main$5x,[["render",_sfc_render$4G]]);const _sfc_main$5w=defineComponent({name:"Discount"}),_hoisted_1$4f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3T=createBaseVNode("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336V704zm0 64v128h576V768H224zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),_hoisted_3$3y=createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_4$13=[_hoisted_2$3T,_hoisted_3$3y];function _sfc_render$4F($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4f,_hoisted_4$13)}var discount=_export_sfc$2(_sfc_main$5w,[["render",_sfc_render$4F]]);const _sfc_main$5v=defineComponent({name:"DishDot"}),_hoisted_1$4e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3S=createBaseVNode("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-128h768a384 384 0 1 0-768 0zm447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256h127.68z"},null,-1),_hoisted_3$3x=[_hoisted_2$3S];function _sfc_render$4E($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4e,_hoisted_3$3x)}var dishDot=_export_sfc$2(_sfc_main$5v,[["render",_sfc_render$4E]]);const _sfc_main$5u=defineComponent({name:"Dish"}),_hoisted_1$4d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3R=createBaseVNode("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152zM128 704h768a384 384 0 1 0-768 0zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64z"},null,-1),_hoisted_3$3w=[_hoisted_2$3R];function _sfc_render$4D($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4d,_hoisted_3$3w)}var dish=_export_sfc$2(_sfc_main$5u,[["render",_sfc_render$4D]]);const _sfc_main$5t=defineComponent({name:"DocumentAdd"}),_hoisted_1$4c={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3Q=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm320 512V448h64v128h128v64H544v128h-64V640H352v-64h128z"},null,-1),_hoisted_3$3v=[_hoisted_2$3Q];function _sfc_render$4C($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4c,_hoisted_3$3v)}var documentAdd=_export_sfc$2(_sfc_main$5t,[["render",_sfc_render$4C]]);const _sfc_main$5s=defineComponent({name:"DocumentChecked"}),_hoisted_1$4b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3P=createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312L478.4 646.144z"},null,-1),_hoisted_3$3u=[_hoisted_2$3P];function _sfc_render$4B($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4b,_hoisted_3$3u)}var documentChecked=_export_sfc$2(_sfc_main$5s,[["render",_sfc_render$4B]]);const _sfc_main$5r=defineComponent({name:"DocumentCopy"}),_hoisted_1$4a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3O=createBaseVNode("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1),_hoisted_3$3t=[_hoisted_2$3O];function _sfc_render$4A($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$4a,_hoisted_3$3t)}var documentCopy=_export_sfc$2(_sfc_main$5r,[["render",_sfc_render$4A]]);const _sfc_main$5q=defineComponent({name:"DocumentDelete"}),_hoisted_1$49={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3N=createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"},null,-1),_hoisted_3$3s=[_hoisted_2$3N];function _sfc_render$4z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$49,_hoisted_3$3s)}var documentDelete=_export_sfc$2(_sfc_main$5q,[["render",_sfc_render$4z]]);const _sfc_main$5p=defineComponent({name:"DocumentRemove"}),_hoisted_1$48={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3M=createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320h165.504zM832 384H576V128H192v768h640V384zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm192 512h320v64H352v-64z"},null,-1),_hoisted_3$3r=[_hoisted_2$3M];function _sfc_render$4y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$48,_hoisted_3$3r)}var documentRemove=_export_sfc$2(_sfc_main$5p,[["render",_sfc_render$4y]]);const _sfc_main$5o=defineComponent({name:"Document"}),_hoisted_1$47={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3L=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_3$3q=[_hoisted_2$3L];function _sfc_render$4x($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$47,_hoisted_3$3q)}var document$1=_export_sfc$2(_sfc_main$5o,[["render",_sfc_render$4x]]);const _sfc_main$5n=defineComponent({name:"Download"}),_hoisted_1$46={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3K=createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),_hoisted_3$3p=[_hoisted_2$3K];function _sfc_render$4w($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$46,_hoisted_3$3p)}var download=_export_sfc$2(_sfc_main$5n,[["render",_sfc_render$4w]]);const _sfc_main$5m=defineComponent({name:"Drizzling"}),_hoisted_1$45={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3J=createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM288 800h64v64h-64v-64zm192 0h64v64h-64v-64zm-96 96h64v64h-64v-64zm192 0h64v64h-64v-64zm96-96h64v64h-64v-64z"},null,-1),_hoisted_3$3o=[_hoisted_2$3J];function _sfc_render$4v($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$45,_hoisted_3$3o)}var drizzling=_export_sfc$2(_sfc_main$5m,[["render",_sfc_render$4v]]);const _sfc_main$5l=defineComponent({name:"EditPen"}),_hoisted_1$44={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3I=createBaseVNode("path",{d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z",fill:"currentColor"},null,-1),_hoisted_3$3n=[_hoisted_2$3I];function _sfc_render$4u($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$44,_hoisted_3$3n)}var editPen=_export_sfc$2(_sfc_main$5l,[["render",_sfc_render$4u]]);const _sfc_main$5k=defineComponent({name:"Edit"}),_hoisted_1$43={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3H=createBaseVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),_hoisted_3$3m=createBaseVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),_hoisted_4$12=[_hoisted_2$3H,_hoisted_3$3m];function _sfc_render$4t($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$43,_hoisted_4$12)}var edit=_export_sfc$2(_sfc_main$5k,[["render",_sfc_render$4t]]);const _sfc_main$5j=defineComponent({name:"ElemeFilled"}),_hoisted_1$42={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3G=createBaseVNode("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112zm150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"},null,-1),_hoisted_3$3l=[_hoisted_2$3G];function _sfc_render$4s($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$42,_hoisted_3$3l)}var elemeFilled=_export_sfc$2(_sfc_main$5j,[["render",_sfc_render$4s]]);const _sfc_main$5i=defineComponent({name:"Eleme"}),_hoisted_1$41={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3F=createBaseVNode("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"},null,-1),_hoisted_3$3k=[_hoisted_2$3F];function _sfc_render$4r($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$41,_hoisted_3$3k)}var eleme=_export_sfc$2(_sfc_main$5i,[["render",_sfc_render$4r]]);const _sfc_main$5h=defineComponent({name:"ElementPlus"}),_hoisted_1$40={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3E=createBaseVNode("path",{d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8zM714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z",fill:"currentColor"},null,-1),_hoisted_3$3j=[_hoisted_2$3E];function _sfc_render$4q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$40,_hoisted_3$3j)}var elementPlus=_export_sfc$2(_sfc_main$5h,[["render",_sfc_render$4q]]);const _sfc_main$5g=defineComponent({name:"Expand"}),_hoisted_1$3$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3D=createBaseVNode("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1),_hoisted_3$3i=[_hoisted_2$3D];function _sfc_render$4p($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3$,_hoisted_3$3i)}var expand=_export_sfc$2(_sfc_main$5g,[["render",_sfc_render$4p]]);const _sfc_main$5f=defineComponent({name:"Failed"}),_hoisted_1$3_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3C=createBaseVNode("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384v-64zm-320 0V96h256v96H384z"},null,-1),_hoisted_3$3h=[_hoisted_2$3C];function _sfc_render$4o($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3_,_hoisted_3$3h)}var failed=_export_sfc$2(_sfc_main$5f,[["render",_sfc_render$4o]]);const _sfc_main$5e=defineComponent({name:"Female"}),_hoisted_1$3Z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3B=createBaseVNode("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_hoisted_3$3g=createBaseVNode("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32z"},null,-1),_hoisted_4$11=createBaseVNode("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32z"},null,-1),_hoisted_5$n=[_hoisted_2$3B,_hoisted_3$3g,_hoisted_4$11];function _sfc_render$4n($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3Z,_hoisted_5$n)}var female=_export_sfc$2(_sfc_main$5e,[["render",_sfc_render$4n]]);const _sfc_main$5d=defineComponent({name:"Files"}),_hoisted_1$3Y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3A=createBaseVNode("path",{fill:"currentColor",d:"M128 384v448h768V384H128zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32zm64-128h704v64H160zm96-128h512v64H256z"},null,-1),_hoisted_3$3f=[_hoisted_2$3A];function _sfc_render$4m($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3Y,_hoisted_3$3f)}var files=_export_sfc$2(_sfc_main$5d,[["render",_sfc_render$4m]]);const _sfc_main$5c=defineComponent({name:"Film"}),_hoisted_1$3X={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3z=createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$3e=createBaseVNode("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64h192z"},null,-1),_hoisted_4$10=[_hoisted_2$3z,_hoisted_3$3e];function _sfc_render$4l($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3X,_hoisted_4$10)}var film=_export_sfc$2(_sfc_main$5c,[["render",_sfc_render$4l]]);const _sfc_main$5b=defineComponent({name:"Filter"}),_hoisted_1$3W={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3y=createBaseVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"},null,-1),_hoisted_3$3d=[_hoisted_2$3y];function _sfc_render$4k($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3W,_hoisted_3$3d)}var filter=_export_sfc$2(_sfc_main$5b,[["render",_sfc_render$4k]]);const _sfc_main$5a=defineComponent({name:"Finished"}),_hoisted_1$3V={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3x=createBaseVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64H736zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64H608zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64H480z"},null,-1),_hoisted_3$3c=[_hoisted_2$3x];function _sfc_render$4j($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3V,_hoisted_3$3c)}var finished=_export_sfc$2(_sfc_main$5a,[["render",_sfc_render$4j]]);const _sfc_main$59=defineComponent({name:"FirstAidKit"}),_hoisted_1$3U={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3w=createBaseVNode("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64H192zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),_hoisted_3$3b=createBaseVNode("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0v96zM352 128v64h320v-64H352zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$$=[_hoisted_2$3w,_hoisted_3$3b];function _sfc_render$4i($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3U,_hoisted_4$$)}var firstAidKit=_export_sfc$2(_sfc_main$59,[["render",_sfc_render$4i]]);const _sfc_main$58=defineComponent({name:"Flag"}),_hoisted_1$3T={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3v=createBaseVNode("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96v64z"},null,-1),_hoisted_3$3a=[_hoisted_2$3v];function _sfc_render$4h($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3T,_hoisted_3$3a)}var flag=_export_sfc$2(_sfc_main$58,[["render",_sfc_render$4h]]);const _sfc_main$57=defineComponent({name:"Fold"}),_hoisted_1$3S={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3u=createBaseVNode("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1),_hoisted_3$39=[_hoisted_2$3u];function _sfc_render$4g($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3S,_hoisted_3$39)}var fold=_export_sfc$2(_sfc_main$57,[["render",_sfc_render$4g]]);const _sfc_main$56=defineComponent({name:"FolderAdd"}),_hoisted_1$3R={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3t=createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm384 416V416h64v128h128v64H544v128h-64V608H352v-64h128z"},null,-1),_hoisted_3$38=[_hoisted_2$3t];function _sfc_render$4f($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3R,_hoisted_3$38)}var folderAdd=_export_sfc$2(_sfc_main$56,[["render",_sfc_render$4f]]);const _sfc_main$55=defineComponent({name:"FolderChecked"}),_hoisted_1$3Q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3s=createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312L510.08 630.144z"},null,-1),_hoisted_3$37=[_hoisted_2$3s];function _sfc_render$4e($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3Q,_hoisted_3$37)}var folderChecked=_export_sfc$2(_sfc_main$55,[["render",_sfc_render$4e]]);const _sfc_main$54=defineComponent({name:"FolderDelete"}),_hoisted_1$3P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3r=createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248L466.752 576z"},null,-1),_hoisted_3$36=[_hoisted_2$3r];function _sfc_render$4d($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3P,_hoisted_3$36)}var folderDelete=_export_sfc$2(_sfc_main$54,[["render",_sfc_render$4d]]);const _sfc_main$53=defineComponent({name:"FolderOpened"}),_hoisted_1$3O={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3q=createBaseVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"},null,-1),_hoisted_3$35=[_hoisted_2$3q];function _sfc_render$4c($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3O,_hoisted_3$35)}var folderOpened=_export_sfc$2(_sfc_main$53,[["render",_sfc_render$4c]]);const _sfc_main$52=defineComponent({name:"FolderRemove"}),_hoisted_1$3N={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3p=createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32zm256 416h320v64H352v-64z"},null,-1),_hoisted_3$34=[_hoisted_2$3p];function _sfc_render$4b($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3N,_hoisted_3$34)}var folderRemove=_export_sfc$2(_sfc_main$52,[["render",_sfc_render$4b]]);const _sfc_main$51=defineComponent({name:"Folder"}),_hoisted_1$3M={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3o=createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$33=[_hoisted_2$3o];function _sfc_render$4a($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3M,_hoisted_3$33)}var folder=_export_sfc$2(_sfc_main$51,[["render",_sfc_render$4a]]);const _sfc_main$50=defineComponent({name:"Food"}),_hoisted_1$3L={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3n=createBaseVNode("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0zm128 0h192a96 96 0 0 0-192 0zm439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352zM672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32v-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288z"},null,-1),_hoisted_3$32=[_hoisted_2$3n];function _sfc_render$49($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3L,_hoisted_3$32)}var food=_export_sfc$2(_sfc_main$50,[["render",_sfc_render$49]]);const _sfc_main$4$=defineComponent({name:"Football"}),_hoisted_1$3K={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3m=createBaseVNode("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768z"},null,-1),_hoisted_3$31=createBaseVNode("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0zm-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0l-11.136-63.104zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"},null,-1),_hoisted_4$_=[_hoisted_2$3m,_hoisted_3$31];function _sfc_render$48($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3K,_hoisted_4$_)}var football=_export_sfc$2(_sfc_main$4$,[["render",_sfc_render$48]]);const _sfc_main$4_=defineComponent({name:"ForkSpoon"}),_hoisted_1$3J={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3l=createBaseVNode("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0V572.48zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192z"},null,-1),_hoisted_3$30=[_hoisted_2$3l];function _sfc_render$47($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3J,_hoisted_3$30)}var forkSpoon=_export_sfc$2(_sfc_main$4_,[["render",_sfc_render$47]]);const _sfc_main$4Z=defineComponent({name:"Fries"}),_hoisted_1$3I={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3k=createBaseVNode("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096V224zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160h37.12zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160h-16zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512h-1.216zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480V288zm-128 96V224a32 32 0 0 0-64 0v160h64-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704H253.12z"},null,-1),_hoisted_3$2$=[_hoisted_2$3k];function _sfc_render$46($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3I,_hoisted_3$2$)}var fries=_export_sfc$2(_sfc_main$4Z,[["render",_sfc_render$46]]);const _sfc_main$4Y=defineComponent({name:"FullScreen"}),_hoisted_1$3H={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3j=createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3$2_=[_hoisted_2$3j];function _sfc_render$45($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3H,_hoisted_3$2_)}var fullScreen=_export_sfc$2(_sfc_main$4Y,[["render",_sfc_render$45]]);const _sfc_main$4X=defineComponent({name:"GobletFull"}),_hoisted_1$3G={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3i=createBaseVNode("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320zm503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4z"},null,-1),_hoisted_3$2Z=[_hoisted_2$3i];function _sfc_render$44($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3G,_hoisted_3$2Z)}var gobletFull=_export_sfc$2(_sfc_main$4X,[["render",_sfc_render$44]]);const _sfc_main$4W=defineComponent({name:"GobletSquareFull"}),_hoisted_1$3F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3h=createBaseVNode("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848z"},null,-1),_hoisted_3$2Y=[_hoisted_2$3h];function _sfc_render$43($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3F,_hoisted_3$2Y)}var gobletSquareFull=_export_sfc$2(_sfc_main$4W,[["render",_sfc_render$43]]);const _sfc_main$4V=defineComponent({name:"GobletSquare"}),_hoisted_1$3E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3g=createBaseVNode("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912zM256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256v191.68z"},null,-1),_hoisted_3$2X=[_hoisted_2$3g];function _sfc_render$42($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3E,_hoisted_3$2X)}var gobletSquare=_export_sfc$2(_sfc_main$4V,[["render",_sfc_render$42]]);const _sfc_main$4U=defineComponent({name:"Goblet"}),_hoisted_1$3D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3f=createBaseVNode("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4zM256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320z"},null,-1),_hoisted_3$2W=[_hoisted_2$3f];function _sfc_render$41($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3D,_hoisted_3$2W)}var goblet=_export_sfc$2(_sfc_main$4U,[["render",_sfc_render$41]]);const _sfc_main$4T=defineComponent({name:"GoodsFilled"}),_hoisted_1$3C={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3e=createBaseVNode("path",{fill:"currentColor",d:"M192 352h640l64 544H128l64-544zm128 224h64V448h-64v128zm320 0h64V448h-64v128zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0z"},null,-1),_hoisted_3$2V=[_hoisted_2$3e];function _sfc_render$40($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3C,_hoisted_3$2V)}var goodsFilled=_export_sfc$2(_sfc_main$4T,[["render",_sfc_render$40]]);const _sfc_main$4S=defineComponent({name:"Goods"}),_hoisted_1$3B={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3d=createBaseVNode("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96z"},null,-1),_hoisted_3$2U=[_hoisted_2$3d];function _sfc_render$3$($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3B,_hoisted_3$2U)}var goods=_export_sfc$2(_sfc_main$4S,[["render",_sfc_render$3$]]);const _sfc_main$4R=defineComponent({name:"Grape"}),_hoisted_1$3A={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3c=createBaseVNode("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64v67.2zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),_hoisted_3$2T=[_hoisted_2$3c];function _sfc_render$3_($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3A,_hoisted_3$2T)}var grape=_export_sfc$2(_sfc_main$4R,[["render",_sfc_render$3_]]);const _sfc_main$4Q=defineComponent({name:"Grid"}),_hoisted_1$3z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3b=createBaseVNode("path",{fill:"currentColor",d:"M640 384v256H384V384h256zm64 0h192v256H704V384zm-64 512H384V704h256v192zm64 0V704h192v192H704zm-64-768v192H384V128h256zm64 0h192v192H704V128zM320 384v256H128V384h192zm0 512H128V704h192v192zm0-768v192H128V128h192z"},null,-1),_hoisted_3$2S=[_hoisted_2$3b];function _sfc_render$3Z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3z,_hoisted_3$2S)}var grid=_export_sfc$2(_sfc_main$4Q,[["render",_sfc_render$3Z]]);const _sfc_main$4P=defineComponent({name:"Guide"}),_hoisted_1$3y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3a=createBaseVNode("path",{fill:"currentColor",d:"M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"},null,-1),_hoisted_3$2R=createBaseVNode("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"},null,-1),_hoisted_4$Z=[_hoisted_2$3a,_hoisted_3$2R];function _sfc_render$3Y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3y,_hoisted_4$Z)}var guide=_export_sfc$2(_sfc_main$4P,[["render",_sfc_render$3Y]]);const _sfc_main$4O=defineComponent({name:"Headset"}),_hoisted_1$3x={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$39=createBaseVNode("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848zM896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0V640zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0z"},null,-1),_hoisted_3$2Q=[_hoisted_2$39];function _sfc_render$3X($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3x,_hoisted_3$2Q)}var headset=_export_sfc$2(_sfc_main$4O,[["render",_sfc_render$3X]]);const _sfc_main$4N=defineComponent({name:"HelpFilled"}),_hoisted_1$3w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$38=createBaseVNode("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480zm0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544h225.472zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"},null,-1),_hoisted_3$2P=[_hoisted_2$38];function _sfc_render$3W($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3w,_hoisted_3$2P)}var helpFilled=_export_sfc$2(_sfc_main$4N,[["render",_sfc_render$3W]]);const _sfc_main$4M=defineComponent({name:"Help"}),_hoisted_1$3v={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$37=createBaseVNode("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$2O=[_hoisted_2$37];function _sfc_render$3V($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3v,_hoisted_3$2O)}var help=_export_sfc$2(_sfc_main$4M,[["render",_sfc_render$3V]]);const _sfc_main$4L=defineComponent({name:"Hide"}),_hoisted_1$3u={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$36=createBaseVNode("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),_hoisted_3$2N=createBaseVNode("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),_hoisted_4$Y=[_hoisted_2$36,_hoisted_3$2N];function _sfc_render$3U($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3u,_hoisted_4$Y)}var hide=_export_sfc$2(_sfc_main$4L,[["render",_sfc_render$3U]]);const _sfc_main$4K=defineComponent({name:"Histogram"}),_hoisted_1$3t={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$35=createBaseVNode("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1),_hoisted_3$2M=[_hoisted_2$35];function _sfc_render$3T($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3t,_hoisted_3$2M)}var histogram=_export_sfc$2(_sfc_main$4K,[["render",_sfc_render$3T]]);const _sfc_main$4J=defineComponent({name:"HomeFilled"}),_hoisted_1$3s={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$34=createBaseVNode("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"},null,-1),_hoisted_3$2L=[_hoisted_2$34];function _sfc_render$3S($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3s,_hoisted_3$2L)}var homeFilled=_export_sfc$2(_sfc_main$4J,[["render",_sfc_render$3S]]);const _sfc_main$4I=defineComponent({name:"HotWater"}),_hoisted_1$3r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$33=createBaseVNode("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067v68.267zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133zm273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133zM170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"},null,-1),_hoisted_3$2K=[_hoisted_2$33];function _sfc_render$3R($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3r,_hoisted_3$2K)}var hotWater=_export_sfc$2(_sfc_main$4I,[["render",_sfc_render$3R]]);const _sfc_main$4H=defineComponent({name:"House"}),_hoisted_1$3q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$32=createBaseVNode("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328 192 413.952zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576z"},null,-1),_hoisted_3$2J=[_hoisted_2$32];function _sfc_render$3Q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3q,_hoisted_3$2J)}var house=_export_sfc$2(_sfc_main$4H,[["render",_sfc_render$3Q]]);const _sfc_main$4G=defineComponent({name:"IceCreamRound"}),_hoisted_1$3p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$31=createBaseVNode("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248L398.848 670.4zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"},null,-1),_hoisted_3$2I=[_hoisted_2$31];function _sfc_render$3P($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3p,_hoisted_3$2I)}var iceCreamRound=_export_sfc$2(_sfc_main$4G,[["render",_sfc_render$3P]]);const _sfc_main$4F=defineComponent({name:"IceCreamSquare"}),_hoisted_1$3o={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$30=createBaseVNode("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h64zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96h-64zm-64 0h-64v160a32 32 0 1 0 64 0V704z"},null,-1),_hoisted_3$2H=[_hoisted_2$30];function _sfc_render$3O($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3o,_hoisted_3$2H)}var iceCreamSquare=_export_sfc$2(_sfc_main$4F,[["render",_sfc_render$3O]]);const _sfc_main$4E=defineComponent({name:"IceCream"}),_hoisted_1$3n={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2$=createBaseVNode("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448h.64zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56z"},null,-1),_hoisted_3$2G=[_hoisted_2$2$];function _sfc_render$3N($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3n,_hoisted_3$2G)}var iceCream=_export_sfc$2(_sfc_main$4E,[["render",_sfc_render$3N]]);const _sfc_main$4D=defineComponent({name:"IceDrink"}),_hoisted_1$3m={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2_=createBaseVNode("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128H512zm-64 0H256.256l16.064 128H448V448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64zm-64 8.064A256.448 256.448 0 0 0 264.256 384H448V200.704zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32v32.64zM743.68 640H280.32l32.128 256h399.104l32.128-256z"},null,-1),_hoisted_3$2F=[_hoisted_2$2_];function _sfc_render$3M($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3m,_hoisted_3$2F)}var iceDrink=_export_sfc$2(_sfc_main$4D,[["render",_sfc_render$3M]]);const _sfc_main$4C=defineComponent({name:"IceTea"}),_hoisted_1$3l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2Z=createBaseVNode("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352zM264.064 256h495.872a256.128 256.128 0 0 0-495.872 0zm495.424 256H264.512l48 384h398.976l48-384zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32zm160 192h64v64h-64v-64zm192 64h64v64h-64v-64zm-128 64h64v64h-64v-64zm64-192h64v64h-64v-64z"},null,-1),_hoisted_3$2E=[_hoisted_2$2Z];function _sfc_render$3L($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3l,_hoisted_3$2E)}var iceTea=_export_sfc$2(_sfc_main$4C,[["render",_sfc_render$3L]]);const _sfc_main$4B=defineComponent({name:"InfoFilled"}),_hoisted_1$3k={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2Y=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3$2D=[_hoisted_2$2Y];function _sfc_render$3K($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3k,_hoisted_3$2D)}var infoFilled=_export_sfc$2(_sfc_main$4B,[["render",_sfc_render$3K]]);const _sfc_main$4A=defineComponent({name:"Iphone"}),_hoisted_1$3j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2X=createBaseVNode("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768H224zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64v544zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96H256zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0z"},null,-1),_hoisted_3$2C=[_hoisted_2$2X];function _sfc_render$3J($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3j,_hoisted_3$2C)}var iphone=_export_sfc$2(_sfc_main$4A,[["render",_sfc_render$3J]]);const _sfc_main$4z=defineComponent({name:"Key"}),_hoisted_1$3i={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2W=createBaseVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064zM512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384z"},null,-1),_hoisted_3$2B=[_hoisted_2$2W];function _sfc_render$3I($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3i,_hoisted_3$2B)}var key=_export_sfc$2(_sfc_main$4z,[["render",_sfc_render$3I]]);const _sfc_main$4y=defineComponent({name:"KnifeFork"}),_hoisted_1$3h={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2V=createBaseVNode("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56zm384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288H640z"},null,-1),_hoisted_3$2A=[_hoisted_2$2V];function _sfc_render$3H($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3h,_hoisted_3$2A)}var knifeFork=_export_sfc$2(_sfc_main$4y,[["render",_sfc_render$3H]]);const _sfc_main$4x=defineComponent({name:"Lightning"}),_hoisted_1$3g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2U=createBaseVNode("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"},null,-1),_hoisted_3$2z=createBaseVNode("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736H416z"},null,-1),_hoisted_4$X=[_hoisted_2$2U,_hoisted_3$2z];function _sfc_render$3G($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3g,_hoisted_4$X)}var lightning=_export_sfc$2(_sfc_main$4x,[["render",_sfc_render$3G]]);const _sfc_main$4w=defineComponent({name:"Link"}),_hoisted_1$3f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2T=createBaseVNode("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),_hoisted_3$2y=[_hoisted_2$2T];function _sfc_render$3F($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3f,_hoisted_3$2y)}var link=_export_sfc$2(_sfc_main$4w,[["render",_sfc_render$3F]]);const _sfc_main$4v=defineComponent({name:"List"}),_hoisted_1$3e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2S=createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384v-64zM288 512h448v-64H288v64zm0 256h448v-64H288v64zm96-576V96h256v96H384z"},null,-1),_hoisted_3$2x=[_hoisted_2$2S];function _sfc_render$3E($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3e,_hoisted_3$2x)}var list=_export_sfc$2(_sfc_main$4v,[["render",_sfc_render$3E]]);const _sfc_main$4u=defineComponent({name:"Loading"}),_hoisted_1$3d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2R=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),_hoisted_3$2w=[_hoisted_2$2R];function _sfc_render$3D($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3d,_hoisted_3$2w)}var loading$1=_export_sfc$2(_sfc_main$4u,[["render",_sfc_render$3D]]);const _sfc_main$4t=defineComponent({name:"LocationFilled"}),_hoisted_1$3c={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2Q=createBaseVNode("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928zm0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6z"},null,-1),_hoisted_3$2v=[_hoisted_2$2Q];function _sfc_render$3C($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3c,_hoisted_3$2v)}var locationFilled=_export_sfc$2(_sfc_main$4t,[["render",_sfc_render$3C]]);const _sfc_main$4s=defineComponent({name:"LocationInformation"}),_hoisted_1$3b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2P=createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3$2u=createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_4$W=createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),_hoisted_5$m=[_hoisted_2$2P,_hoisted_3$2u,_hoisted_4$W];function _sfc_render$3B($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3b,_hoisted_5$m)}var locationInformation=_export_sfc$2(_sfc_main$4s,[["render",_sfc_render$3B]]);const _sfc_main$4r=defineComponent({name:"Location"}),_hoisted_1$3a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2O=createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_3$2t=createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320z"},null,-1),_hoisted_4$V=[_hoisted_2$2O,_hoisted_3$2t];function _sfc_render$3A($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$3a,_hoisted_4$V)}var location$1=_export_sfc$2(_sfc_main$4r,[["render",_sfc_render$3A]]);const _sfc_main$4q=defineComponent({name:"Lock"}),_hoisted_1$39={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2N=createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),_hoisted_3$2s=createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm192-160v-64a192 192 0 1 0-384 0v64h384zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64z"},null,-1),_hoisted_4$U=[_hoisted_2$2N,_hoisted_3$2s];function _sfc_render$3z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$39,_hoisted_4$U)}var lock=_export_sfc$2(_sfc_main$4q,[["render",_sfc_render$3z]]);const _sfc_main$4p=defineComponent({name:"Lollipop"}),_hoisted_1$38={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2M=createBaseVNode("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"},null,-1),_hoisted_3$2r=[_hoisted_2$2M];function _sfc_render$3y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$38,_hoisted_3$2r)}var lollipop=_export_sfc$2(_sfc_main$4p,[["render",_sfc_render$3y]]);const _sfc_main$4o=defineComponent({name:"MagicStick"}),_hoisted_1$37={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2L=createBaseVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),_hoisted_3$2q=[_hoisted_2$2L];function _sfc_render$3x($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$37,_hoisted_3$2q)}var magicStick=_export_sfc$2(_sfc_main$4o,[["render",_sfc_render$3x]]);const _sfc_main$4n=defineComponent({name:"Magnet"}),_hoisted_1$36={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2K=createBaseVNode("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64h128zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0z"},null,-1),_hoisted_3$2p=[_hoisted_2$2K];function _sfc_render$3w($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$36,_hoisted_3$2p)}var magnet=_export_sfc$2(_sfc_main$4n,[["render",_sfc_render$3w]]);const _sfc_main$4m=defineComponent({name:"Male"}),_hoisted_1$35={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2J=createBaseVNode("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450zm0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5zm253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125z"},null,-1),_hoisted_3$2o=createBaseVNode("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125z"},null,-1),_hoisted_4$T=createBaseVNode("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"},null,-1),_hoisted_5$l=[_hoisted_2$2J,_hoisted_3$2o,_hoisted_4$T];function _sfc_render$3v($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$35,_hoisted_5$l)}var male=_export_sfc$2(_sfc_main$4m,[["render",_sfc_render$3v]]);const _sfc_main$4l=defineComponent({name:"Management"}),_hoisted_1$34={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2I=createBaseVNode("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128h256zm-448 0h128v768H128V128z"},null,-1),_hoisted_3$2n=[_hoisted_2$2I];function _sfc_render$3u($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$34,_hoisted_3$2n)}var management=_export_sfc$2(_sfc_main$4l,[["render",_sfc_render$3u]]);const _sfc_main$4k=defineComponent({name:"MapLocation"}),_hoisted_1$33={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2H=createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"},null,-1),_hoisted_3$2m=createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"},null,-1),_hoisted_4$S=[_hoisted_2$2H,_hoisted_3$2m];function _sfc_render$3t($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$33,_hoisted_4$S)}var mapLocation=_export_sfc$2(_sfc_main$4k,[["render",_sfc_render$3t]]);const _sfc_main$4j=defineComponent({name:"Medal"}),_hoisted_1$32={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2G=createBaseVNode("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_hoisted_3$2l=createBaseVNode("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8V128zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128H640zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64z"},null,-1),_hoisted_4$R=[_hoisted_2$2G,_hoisted_3$2l];function _sfc_render$3s($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$32,_hoisted_4$R)}var medal=_export_sfc$2(_sfc_main$4j,[["render",_sfc_render$3s]]);const _sfc_main$4i=defineComponent({name:"Menu"}),_hoisted_1$31={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2F=createBaseVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H608z"},null,-1),_hoisted_3$2k=[_hoisted_2$2F];function _sfc_render$3r($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$31,_hoisted_3$2k)}var menu=_export_sfc$2(_sfc_main$4i,[["render",_sfc_render$3r]]);const _sfc_main$4h=defineComponent({name:"MessageBox"}),_hoisted_1$30={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2E=createBaseVNode("path",{fill:"currentColor",d:"M288 384h448v64H288v-64zm96-128h256v64H384v-64zM131.456 512H384v128h256V512h252.544L721.856 192H302.144L131.456 512zM896 576H704v128H320V576H128v256h768V576zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"},null,-1),_hoisted_3$2j=[_hoisted_2$2E];function _sfc_render$3q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$30,_hoisted_3$2j)}var messageBox=_export_sfc$2(_sfc_main$4h,[["render",_sfc_render$3q]]);const _sfc_main$4g=defineComponent({name:"Message"}),_hoisted_1$2$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2D=createBaseVNode("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224H128zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64z"},null,-1),_hoisted_3$2i=createBaseVNode("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224h784zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056z"},null,-1),_hoisted_4$Q=[_hoisted_2$2D,_hoisted_3$2i];function _sfc_render$3p($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2$,_hoisted_4$Q)}var message$1=_export_sfc$2(_sfc_main$4g,[["render",_sfc_render$3p]]);const _sfc_main$4f=defineComponent({name:"Mic"}),_hoisted_1$2_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2C=createBaseVNode("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64h96zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128h-96z"},null,-1),_hoisted_3$2h=[_hoisted_2$2C];function _sfc_render$3o($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2_,_hoisted_3$2h)}var mic=_export_sfc$2(_sfc_main$4f,[["render",_sfc_render$3o]]);const _sfc_main$4e=defineComponent({name:"Microphone"}),_hoisted_1$2Z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2B=createBaseVNode("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128zm0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64zm-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64z"},null,-1),_hoisted_3$2g=[_hoisted_2$2B];function _sfc_render$3n($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2Z,_hoisted_3$2g)}var microphone=_export_sfc$2(_sfc_main$4e,[["render",_sfc_render$3n]]);const _sfc_main$4d=defineComponent({name:"MilkTea"}),_hoisted_1$2Y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2A=createBaseVNode("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128h192zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320H276.48zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64zm493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12z"},null,-1),_hoisted_3$2f=[_hoisted_2$2A];function _sfc_render$3m($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2Y,_hoisted_3$2f)}var milkTea=_export_sfc$2(_sfc_main$4d,[["render",_sfc_render$3m]]);const _sfc_main$4c=defineComponent({name:"Minus"}),_hoisted_1$2X={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2z=createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3$2e=[_hoisted_2$2z];function _sfc_render$3l($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2X,_hoisted_3$2e)}var minus=_export_sfc$2(_sfc_main$4c,[["render",_sfc_render$3l]]);const _sfc_main$4b=defineComponent({name:"Money"}),_hoisted_1$2W={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2y=createBaseVNode("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),_hoisted_3$2d=createBaseVNode("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),_hoisted_4$P=createBaseVNode("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),_hoisted_5$k=[_hoisted_2$2y,_hoisted_3$2d,_hoisted_4$P];function _sfc_render$3k($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2W,_hoisted_5$k)}var money=_export_sfc$2(_sfc_main$4b,[["render",_sfc_render$3k]]);const _sfc_main$4a=defineComponent({name:"Monitor"}),_hoisted_1$2V={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2x=createBaseVNode("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"},null,-1),_hoisted_3$2c=[_hoisted_2$2x];function _sfc_render$3j($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2V,_hoisted_3$2c)}var monitor=_export_sfc$2(_sfc_main$4a,[["render",_sfc_render$3j]]);const _sfc_main$49=defineComponent({name:"MoonNight"}),_hoisted_1$2U={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2w=createBaseVNode("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512zM171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"},null,-1),_hoisted_3$2b=createBaseVNode("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$O=[_hoisted_2$2w,_hoisted_3$2b];function _sfc_render$3i($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2U,_hoisted_4$O)}var moonNight=_export_sfc$2(_sfc_main$49,[["render",_sfc_render$3i]]);const _sfc_main$48=defineComponent({name:"Moon"}),_hoisted_1$2T={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2v=createBaseVNode("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z"},null,-1),_hoisted_3$2a=[_hoisted_2$2v];function _sfc_render$3h($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2T,_hoisted_3$2a)}var moon=_export_sfc$2(_sfc_main$48,[["render",_sfc_render$3h]]);const _sfc_main$47=defineComponent({name:"MoreFilled"}),_hoisted_1$2S={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2u=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3$29=[_hoisted_2$2u];function _sfc_render$3g($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2S,_hoisted_3$29)}var moreFilled=_export_sfc$2(_sfc_main$47,[["render",_sfc_render$3g]]);const _sfc_main$46=defineComponent({name:"More"}),_hoisted_1$2R={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2t=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3$28=[_hoisted_2$2t];function _sfc_render$3f($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2R,_hoisted_3$28)}var more=_export_sfc$2(_sfc_main$46,[["render",_sfc_render$3f]]);const _sfc_main$45=defineComponent({name:"MostlyCloudy"}),_hoisted_1$2Q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2s=createBaseVNode("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048zm15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72z"},null,-1),_hoisted_3$27=[_hoisted_2$2s];function _sfc_render$3e($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2Q,_hoisted_3$27)}var mostlyCloudy=_export_sfc$2(_sfc_main$45,[["render",_sfc_render$3e]]);const _sfc_main$44=defineComponent({name:"Mouse"}),_hoisted_1$2P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2r=createBaseVNode("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256H438.144zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"},null,-1),_hoisted_3$26=createBaseVNode("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32zm32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96v64z"},null,-1),_hoisted_4$N=[_hoisted_2$2r,_hoisted_3$26];function _sfc_render$3d($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2P,_hoisted_4$N)}var mouse=_export_sfc$2(_sfc_main$44,[["render",_sfc_render$3d]]);const _sfc_main$43=defineComponent({name:"Mug"}),_hoisted_1$2O={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2q=createBaseVNode("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64zm64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H800z"},null,-1),_hoisted_3$25=[_hoisted_2$2q];function _sfc_render$3c($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2O,_hoisted_3$25)}var mug=_export_sfc$2(_sfc_main$43,[["render",_sfc_render$3c]]);const _sfc_main$42=defineComponent({name:"MuteNotification"}),_hoisted_1$2N={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2p=createBaseVNode("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64H241.216zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0z"},null,-1),_hoisted_3$24=createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),_hoisted_4$M=[_hoisted_2$2p,_hoisted_3$24];function _sfc_render$3b($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2N,_hoisted_4$M)}var muteNotification=_export_sfc$2(_sfc_main$42,[["render",_sfc_render$3b]]);const _sfc_main$41=defineComponent({name:"Mute"}),_hoisted_1$2M={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2o=createBaseVNode("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128zm51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528l47.808-47.808zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032zM266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288L266.752 737.6z"},null,-1),_hoisted_3$23=createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"},null,-1),_hoisted_4$L=[_hoisted_2$2o,_hoisted_3$23];function _sfc_render$3a($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2M,_hoisted_4$L)}var mute=_export_sfc$2(_sfc_main$41,[["render",_sfc_render$3a]]);const _sfc_main$40=defineComponent({name:"NoSmoking"}),_hoisted_1$2L={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2n=createBaseVNode("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256l-64 64zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744l64-64zM768 576v128h128V576H768zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),_hoisted_3$22=[_hoisted_2$2n];function _sfc_render$39($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2L,_hoisted_3$22)}var noSmoking=_export_sfc$2(_sfc_main$40,[["render",_sfc_render$39]]);const _sfc_main$3$=defineComponent({name:"Notebook"}),_hoisted_1$2K={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2m=createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$21=createBaseVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),_hoisted_4$K=[_hoisted_2$2m,_hoisted_3$21];function _sfc_render$38($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2K,_hoisted_4$K)}var notebook=_export_sfc$2(_sfc_main$3$,[["render",_sfc_render$38]]);const _sfc_main$3_=defineComponent({name:"Notification"}),_hoisted_1$2J={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2l=createBaseVNode("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128h256z"},null,-1),_hoisted_3$20=createBaseVNode("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"},null,-1),_hoisted_4$J=[_hoisted_2$2l,_hoisted_3$20];function _sfc_render$37($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2J,_hoisted_4$J)}var notification=_export_sfc$2(_sfc_main$3_,[["render",_sfc_render$37]]);const _sfc_main$3Z=defineComponent({name:"Odometer"}),_hoisted_1$2I={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2k=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$1$=createBaseVNode("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0z"},null,-1),_hoisted_4$I=createBaseVNode("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928z"},null,-1),_hoisted_5$j=[_hoisted_2$2k,_hoisted_3$1$,_hoisted_4$I];function _sfc_render$36($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2I,_hoisted_5$j)}var odometer=_export_sfc$2(_sfc_main$3Z,[["render",_sfc_render$36]]);const _sfc_main$3Y=defineComponent({name:"OfficeBuilding"}),_hoisted_1$2H={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2j=createBaseVNode("path",{fill:"currentColor",d:"M192 128v704h384V128H192zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$1_=createBaseVNode("path",{fill:"currentColor",d:"M256 256h256v64H256v-64zm0 192h256v64H256v-64zm0 192h256v64H256v-64zm384-128h128v64H640v-64zm0 128h128v64H640v-64zM64 832h896v64H64v-64z"},null,-1),_hoisted_4$H=createBaseVNode("path",{fill:"currentColor",d:"M640 384v448h192V384H640zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"},null,-1),_hoisted_5$i=[_hoisted_2$2j,_hoisted_3$1_,_hoisted_4$H];function _sfc_render$35($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2H,_hoisted_5$i)}var officeBuilding=_export_sfc$2(_sfc_main$3Y,[["render",_sfc_render$35]]);const _sfc_main$3X=defineComponent({name:"Open"}),_hoisted_1$2G={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2i=createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),_hoisted_3$1Z=createBaseVNode("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),_hoisted_4$G=[_hoisted_2$2i,_hoisted_3$1Z];function _sfc_render$34($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2G,_hoisted_4$G)}var open$1=_export_sfc$2(_sfc_main$3X,[["render",_sfc_render$34]]);const _sfc_main$3W=defineComponent({name:"Operation"}),_hoisted_1$2F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2h=createBaseVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1),_hoisted_3$1Y=[_hoisted_2$2h];function _sfc_render$33($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2F,_hoisted_3$1Y)}var operation=_export_sfc$2(_sfc_main$3W,[["render",_sfc_render$33]]);const _sfc_main$3V=defineComponent({name:"Opportunity"}),_hoisted_1$2E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2g=createBaseVNode("path",{fill:"currentColor",d:"M384 960v-64h192.064v64H384zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416zm-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288h64z"},null,-1),_hoisted_3$1X=[_hoisted_2$2g];function _sfc_render$32($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2E,_hoisted_3$1X)}var opportunity=_export_sfc$2(_sfc_main$3V,[["render",_sfc_render$32]]);const _sfc_main$3U=defineComponent({name:"Orange"}),_hoisted_1$2D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2f=createBaseVNode("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696l182.912-182.976zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696V129.344zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024L218.752 264.064zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544H129.344zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696L264.064 805.248zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896zm0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128z"},null,-1),_hoisted_3$1W=[_hoisted_2$2f];function _sfc_render$31($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2D,_hoisted_3$1W)}var orange=_export_sfc$2(_sfc_main$3U,[["render",_sfc_render$31]]);const _sfc_main$3T=defineComponent({name:"Paperclip"}),_hoisted_1$2C={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2e=createBaseVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"},null,-1),_hoisted_3$1V=[_hoisted_2$2e];function _sfc_render$30($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2C,_hoisted_3$1V)}var paperclip=_export_sfc$2(_sfc_main$3T,[["render",_sfc_render$30]]);const _sfc_main$3S=defineComponent({name:"PartlyCloudy"}),_hoisted_1$2B={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2d=createBaseVNode("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872zm-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"},null,-1),_hoisted_3$1U=createBaseVNode("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"},null,-1),_hoisted_4$F=[_hoisted_2$2d,_hoisted_3$1U];function _sfc_render$2$($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2B,_hoisted_4$F)}var partlyCloudy=_export_sfc$2(_sfc_main$3S,[["render",_sfc_render$2$]]);const _sfc_main$3R=defineComponent({name:"Pear"}),_hoisted_1$2A={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2c=createBaseVNode("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"},null,-1),_hoisted_3$1T=[_hoisted_2$2c];function _sfc_render$2_($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2A,_hoisted_3$1T)}var pear=_export_sfc$2(_sfc_main$3R,[["render",_sfc_render$2_]]);const _sfc_main$3Q=defineComponent({name:"PhoneFilled"}),_hoisted_1$2z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2b=createBaseVNode("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"},null,-1),_hoisted_3$1S=[_hoisted_2$2b];function _sfc_render$2Z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2z,_hoisted_3$1S)}var phoneFilled=_export_sfc$2(_sfc_main$3Q,[["render",_sfc_render$2Z]]);const _sfc_main$3P=defineComponent({name:"Phone"}),_hoisted_1$2y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2a=createBaseVNode("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192zm0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384z"},null,-1),_hoisted_3$1R=[_hoisted_2$2a];function _sfc_render$2Y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2y,_hoisted_3$1R)}var phone=_export_sfc$2(_sfc_main$3P,[["render",_sfc_render$2Y]]);const _sfc_main$3O=defineComponent({name:"PictureFilled"}),_hoisted_1$2x={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$29=createBaseVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3$1Q=[_hoisted_2$29];function _sfc_render$2X($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2x,_hoisted_3$1Q)}var pictureFilled=_export_sfc$2(_sfc_main$3O,[["render",_sfc_render$2X]]);const _sfc_main$3N=defineComponent({name:"PictureRounded"}),_hoisted_1$2w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$28=createBaseVNode("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768zm0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896z"},null,-1),_hoisted_3$1P=createBaseVNode("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"},null,-1),_hoisted_4$E=[_hoisted_2$28,_hoisted_3$1P];function _sfc_render$2W($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2w,_hoisted_4$E)}var pictureRounded=_export_sfc$2(_sfc_main$3N,[["render",_sfc_render$2W]]);const _sfc_main$3M=defineComponent({name:"Picture"}),_hoisted_1$2v={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$27=createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160H160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$1O=createBaseVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64zM185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952L185.408 876.992z"},null,-1),_hoisted_4$D=[_hoisted_2$27,_hoisted_3$1O];function _sfc_render$2V($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2v,_hoisted_4$D)}var picture=_export_sfc$2(_sfc_main$3M,[["render",_sfc_render$2V]]);const _sfc_main$3L=defineComponent({name:"PieChart"}),_hoisted_1$2u={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$26=createBaseVNode("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"},null,-1),_hoisted_3$1N=createBaseVNode("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512V64z"},null,-1),_hoisted_4$C=[_hoisted_2$26,_hoisted_3$1N];function _sfc_render$2U($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2u,_hoisted_4$C)}var pieChart=_export_sfc$2(_sfc_main$3L,[["render",_sfc_render$2U]]);const _sfc_main$3K=defineComponent({name:"Place"}),_hoisted_1$2t={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$25=createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512z"},null,-1),_hoisted_3$1M=createBaseVNode("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$B=createBaseVNode("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912z"},null,-1),_hoisted_5$h=[_hoisted_2$25,_hoisted_3$1M,_hoisted_4$B];function _sfc_render$2T($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2t,_hoisted_5$h)}var place=_export_sfc$2(_sfc_main$3K,[["render",_sfc_render$2T]]);const _sfc_main$3J=defineComponent({name:"Platform"}),_hoisted_1$2s={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$24=createBaseVNode("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64h192zM128 704V128h768v576H128z"},null,-1),_hoisted_3$1L=[_hoisted_2$24];function _sfc_render$2S($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2s,_hoisted_3$1L)}var platform=_export_sfc$2(_sfc_main$3J,[["render",_sfc_render$2S]]);const _sfc_main$3I=defineComponent({name:"Plus"}),_hoisted_1$2r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$23=createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),_hoisted_3$1K=[_hoisted_2$23];function _sfc_render$2R($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2r,_hoisted_3$1K)}var plus=_export_sfc$2(_sfc_main$3I,[["render",_sfc_render$2R]]);const _sfc_main$3H=defineComponent({name:"Pointer"}),_hoisted_1$2q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$22=createBaseVNode("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128zM359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32L359.04 556.8z"},null,-1),_hoisted_3$1J=[_hoisted_2$22];function _sfc_render$2Q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2q,_hoisted_3$1J)}var pointer=_export_sfc$2(_sfc_main$3H,[["render",_sfc_render$2Q]]);const _sfc_main$3G=defineComponent({name:"Position"}),_hoisted_1$2p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$21=createBaseVNode("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1),_hoisted_3$1I=[_hoisted_2$21];function _sfc_render$2P($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2p,_hoisted_3$1I)}var position=_export_sfc$2(_sfc_main$3G,[["render",_sfc_render$2P]]);const _sfc_main$3F=defineComponent({name:"Postcard"}),_hoisted_1$2o={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$20=createBaseVNode("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32H160zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96z"},null,-1),_hoisted_3$1H=createBaseVNode("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128zM288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32zm0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_4$A=[_hoisted_2$20,_hoisted_3$1H];function _sfc_render$2O($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2o,_hoisted_4$A)}var postcard=_export_sfc$2(_sfc_main$3F,[["render",_sfc_render$2O]]);const _sfc_main$3E=defineComponent({name:"Pouring"}),_hoisted_1$2n={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1$=createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480zM224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32zm192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$1G=[_hoisted_2$1$];function _sfc_render$2N($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2n,_hoisted_3$1G)}var pouring=_export_sfc$2(_sfc_main$3E,[["render",_sfc_render$2N]]);const _sfc_main$3D=defineComponent({name:"Present"}),_hoisted_1$2m={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1_=createBaseVNode("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576h288zm64 0h288V320H544v256h288v64H544v256zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V256z"},null,-1),_hoisted_3$1F=createBaseVNode("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"},null,-1),_hoisted_4$z=createBaseVNode("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_5$g=createBaseVNode("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_6$8=[_hoisted_2$1_,_hoisted_3$1F,_hoisted_4$z,_hoisted_5$g];function _sfc_render$2M($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2m,_hoisted_6$8)}var present=_export_sfc$2(_sfc_main$3D,[["render",_sfc_render$2M]]);const _sfc_main$3C=defineComponent({name:"PriceTag"}),_hoisted_1$2l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1Z=createBaseVNode("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"},null,-1),_hoisted_3$1E=createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_4$y=[_hoisted_2$1Z,_hoisted_3$1E];function _sfc_render$2L($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2l,_hoisted_4$y)}var priceTag=_export_sfc$2(_sfc_main$3C,[["render",_sfc_render$2L]]);const _sfc_main$3B=defineComponent({name:"Printer"}),_hoisted_1$2k={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1Y=createBaseVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256V768zm64-192v320h384V576H320zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704h128zm64-448h384V128H320v128zm-64 128h64v64h-64v-64zm128 0h64v64h-64v-64z"},null,-1),_hoisted_3$1D=[_hoisted_2$1Y];function _sfc_render$2K($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2k,_hoisted_3$1D)}var printer=_export_sfc$2(_sfc_main$3B,[["render",_sfc_render$2K]]);const _sfc_main$3A=defineComponent({name:"Promotion"}),_hoisted_1$2j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1X=createBaseVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472 64 448zm256 512V657.024L512 768 320 960z"},null,-1),_hoisted_3$1C=[_hoisted_2$1X];function _sfc_render$2J($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2j,_hoisted_3$1C)}var promotion=_export_sfc$2(_sfc_main$3A,[["render",_sfc_render$2J]]);const _sfc_main$3z=defineComponent({name:"QuestionFilled"}),_hoisted_1$2i={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1W=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3$1B=[_hoisted_2$1W];function _sfc_render$2I($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2i,_hoisted_3$1B)}var questionFilled=_export_sfc$2(_sfc_main$3z,[["render",_sfc_render$2I]]);const _sfc_main$3y=defineComponent({name:"Rank"}),_hoisted_1$2h={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1V=createBaseVNode("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"},null,-1),_hoisted_3$1A=[_hoisted_2$1V];function _sfc_render$2H($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2h,_hoisted_3$1A)}var rank=_export_sfc$2(_sfc_main$3y,[["render",_sfc_render$2H]]);const _sfc_main$3x=defineComponent({name:"ReadingLamp"}),_hoisted_1$2g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1U=createBaseVNode("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32zm-44.672-768-99.52 448h608.384l-99.52-448H307.328zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"},null,-1),_hoisted_3$1z=createBaseVNode("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32zm-192-.064h64V960h-64z"},null,-1),_hoisted_4$x=[_hoisted_2$1U,_hoisted_3$1z];function _sfc_render$2G($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2g,_hoisted_4$x)}var readingLamp=_export_sfc$2(_sfc_main$3x,[["render",_sfc_render$2G]]);const _sfc_main$3w=defineComponent({name:"Reading"}),_hoisted_1$2f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1T=createBaseVNode("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72l384 54.848zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"},null,-1),_hoisted_3$1y=createBaseVNode("path",{fill:"currentColor",d:"M480 192h64v704h-64z"},null,-1),_hoisted_4$w=[_hoisted_2$1T,_hoisted_3$1y];function _sfc_render$2F($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2f,_hoisted_4$w)}var reading=_export_sfc$2(_sfc_main$3w,[["render",_sfc_render$2F]]);const _sfc_main$3v=defineComponent({name:"RefreshLeft"}),_hoisted_1$2e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1S=createBaseVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),_hoisted_3$1x=[_hoisted_2$1S];function _sfc_render$2E($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2e,_hoisted_3$1x)}var refreshLeft=_export_sfc$2(_sfc_main$3v,[["render",_sfc_render$2E]]);const _sfc_main$3u=defineComponent({name:"RefreshRight"}),_hoisted_1$2d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1R=createBaseVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),_hoisted_3$1w=[_hoisted_2$1R];function _sfc_render$2D($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2d,_hoisted_3$1w)}var refreshRight=_export_sfc$2(_sfc_main$3u,[["render",_sfc_render$2D]]);const _sfc_main$3t=defineComponent({name:"Refresh"}),_hoisted_1$2c={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1Q=createBaseVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1),_hoisted_3$1v=[_hoisted_2$1Q];function _sfc_render$2C($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2c,_hoisted_3$1v)}var refresh=_export_sfc$2(_sfc_main$3t,[["render",_sfc_render$2C]]);const _sfc_main$3s=defineComponent({name:"Refrigerator"}),_hoisted_1$2b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1P=createBaseVNode("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32v288zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512H256zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96zm32 224h64v96h-64v-96zm0 288h64v96h-64v-96z"},null,-1),_hoisted_3$1u=[_hoisted_2$1P];function _sfc_render$2B($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2b,_hoisted_3$1u)}var refrigerator=_export_sfc$2(_sfc_main$3s,[["render",_sfc_render$2B]]);const _sfc_main$3r=defineComponent({name:"RemoveFilled"}),_hoisted_1$2a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1O=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zM288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512z"},null,-1),_hoisted_3$1t=[_hoisted_2$1O];function _sfc_render$2A($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$2a,_hoisted_3$1t)}var removeFilled=_export_sfc$2(_sfc_main$3r,[["render",_sfc_render$2A]]);const _sfc_main$3q=defineComponent({name:"Remove"}),_hoisted_1$29={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1N=createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3$1s=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_4$v=[_hoisted_2$1N,_hoisted_3$1s];function _sfc_render$2z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$29,_hoisted_4$v)}var remove=_export_sfc$2(_sfc_main$3q,[["render",_sfc_render$2z]]);const _sfc_main$3p=defineComponent({name:"Right"}),_hoisted_1$28={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1M=createBaseVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312L754.752 480z"},null,-1),_hoisted_3$1r=[_hoisted_2$1M];function _sfc_render$2y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$28,_hoisted_3$1r)}var right$1=_export_sfc$2(_sfc_main$3p,[["render",_sfc_render$2y]]);const _sfc_main$3o=defineComponent({name:"ScaleToOriginal"}),_hoisted_1$27={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1L=createBaseVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3$1q=[_hoisted_2$1L];function _sfc_render$2x($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$27,_hoisted_3$1q)}var scaleToOriginal=_export_sfc$2(_sfc_main$3o,[["render",_sfc_render$2x]]);const _sfc_main$3n=defineComponent({name:"School"}),_hoisted_1$26={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1K=createBaseVNode("path",{fill:"currentColor",d:"M224 128v704h576V128H224zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$1p=createBaseVNode("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"},null,-1),_hoisted_4$u=createBaseVNode("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0v64zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192zM320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"},null,-1),_hoisted_5$f=[_hoisted_2$1K,_hoisted_3$1p,_hoisted_4$u];function _sfc_render$2w($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$26,_hoisted_5$f)}var school=_export_sfc$2(_sfc_main$3n,[["render",_sfc_render$2w]]);const _sfc_main$3m=defineComponent({name:"Scissor"}),_hoisted_1$25={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1J=createBaseVNode("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248z"},null,-1),_hoisted_3$1o=[_hoisted_2$1J];function _sfc_render$2v($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$25,_hoisted_3$1o)}var scissor=_export_sfc$2(_sfc_main$3m,[["render",_sfc_render$2v]]);const _sfc_main$3l=defineComponent({name:"Search"}),_hoisted_1$24={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1I=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3$1n=[_hoisted_2$1I];function _sfc_render$2u($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$24,_hoisted_3$1n)}var search=_export_sfc$2(_sfc_main$3l,[["render",_sfc_render$2u]]);const _sfc_main$3k=defineComponent({name:"Select"}),_hoisted_1$23={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1H=createBaseVNode("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"},null,-1),_hoisted_3$1m=[_hoisted_2$1H];function _sfc_render$2t($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$23,_hoisted_3$1m)}var select=_export_sfc$2(_sfc_main$3k,[["render",_sfc_render$2t]]);const _sfc_main$3j=defineComponent({name:"Sell"}),_hoisted_1$22={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1G=createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"},null,-1),_hoisted_3$1l=[_hoisted_2$1G];function _sfc_render$2s($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$22,_hoisted_3$1l)}var sell=_export_sfc$2(_sfc_main$3j,[["render",_sfc_render$2s]]);const _sfc_main$3i=defineComponent({name:"SemiSelect"}),_hoisted_1$21={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1F=createBaseVNode("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64z"},null,-1),_hoisted_3$1k=[_hoisted_2$1F];function _sfc_render$2r($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$21,_hoisted_3$1k)}var semiSelect=_export_sfc$2(_sfc_main$3i,[["render",_sfc_render$2r]]);const _sfc_main$3h=defineComponent({name:"Service"}),_hoisted_1$20={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1E=createBaseVNode("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0zM256 448a128 128 0 1 0 0 256V448zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128z"},null,-1),_hoisted_3$1j=[_hoisted_2$1E];function _sfc_render$2q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$20,_hoisted_3$1j)}var service$1=_export_sfc$2(_sfc_main$3h,[["render",_sfc_render$2q]]);const _sfc_main$3g=defineComponent({name:"SetUp"}),_hoisted_1$1$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1D=createBaseVNode("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"},null,-1),_hoisted_3$1i=createBaseVNode("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_4$t=createBaseVNode("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256z"},null,-1),_hoisted_5$e=createBaseVNode("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_6$7=[_hoisted_2$1D,_hoisted_3$1i,_hoisted_4$t,_hoisted_5$e];function _sfc_render$2p($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1$,_hoisted_6$7)}var setUp=_export_sfc$2(_sfc_main$3g,[["render",_sfc_render$2p]]);const _sfc_main$3f=defineComponent({name:"Setting"}),_hoisted_1$1_={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1C=createBaseVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),_hoisted_3$1h=[_hoisted_2$1C];function _sfc_render$2o($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1_,_hoisted_3$1h)}var setting=_export_sfc$2(_sfc_main$3f,[["render",_sfc_render$2o]]);const _sfc_main$3e=defineComponent({name:"Share"}),_hoisted_1$1Z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1B=createBaseVNode("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1),_hoisted_3$1g=[_hoisted_2$1B];function _sfc_render$2n($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1Z,_hoisted_3$1g)}var share=_export_sfc$2(_sfc_main$3e,[["render",_sfc_render$2n]]);const _sfc_main$3d=defineComponent({name:"Ship"}),_hoisted_1$1Y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1A=createBaseVNode("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216L512 386.88zm0-70.272 144.768-65.792L512 171.84v144.768zM512 512H148.864l18.24 64H856.96l18.24-64H512zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408z"},null,-1),_hoisted_3$1f=[_hoisted_2$1A];function _sfc_render$2m($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1Y,_hoisted_3$1f)}var ship=_export_sfc$2(_sfc_main$3d,[["render",_sfc_render$2m]]);const _sfc_main$3c=defineComponent({name:"Shop"}),_hoisted_1$1X={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1z=createBaseVNode("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384v-64zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640l60.544 423.808z"},null,-1),_hoisted_3$1e=[_hoisted_2$1z];function _sfc_render$2l($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1X,_hoisted_3$1e)}var shop=_export_sfc$2(_sfc_main$3c,[["render",_sfc_render$2l]]);const _sfc_main$3b=defineComponent({name:"ShoppingBag"}),_hoisted_1$1W={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1y=createBaseVNode("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320H704zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h160zm64 0h256a128 128 0 1 0-256 0z"},null,-1),_hoisted_3$1d=createBaseVNode("path",{fill:"currentColor",d:"M192 704h640v64H192z"},null,-1),_hoisted_4$s=[_hoisted_2$1y,_hoisted_3$1d];function _sfc_render$2k($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1W,_hoisted_4$s)}var shoppingBag=_export_sfc$2(_sfc_main$3b,[["render",_sfc_render$2k]]);const _sfc_main$3a=defineComponent({name:"ShoppingCartFull"}),_hoisted_1$1V={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1x=createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),_hoisted_3$1c=createBaseVNode("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04z"},null,-1),_hoisted_4$r=[_hoisted_2$1x,_hoisted_3$1c];function _sfc_render$2j($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1V,_hoisted_4$r)}var shoppingCartFull=_export_sfc$2(_sfc_main$3a,[["render",_sfc_render$2j]]);const _sfc_main$39=defineComponent({name:"ShoppingCart"}),_hoisted_1$1U={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1w=createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96zM96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128H96zm314.24 576h395.904l82.304-384H333.44l76.8 384z"},null,-1),_hoisted_3$1b=[_hoisted_2$1w];function _sfc_render$2i($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1U,_hoisted_3$1b)}var shoppingCart=_export_sfc$2(_sfc_main$39,[["render",_sfc_render$2i]]);const _sfc_main$38=defineComponent({name:"Smoking"}),_hoisted_1$1T={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1v=createBaseVNode("path",{fill:"currentColor",d:"M256 576v128h640V576H256zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$1a=createBaseVNode("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"},null,-1),_hoisted_4$q=[_hoisted_2$1v,_hoisted_3$1a];function _sfc_render$2h($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1T,_hoisted_4$q)}var smoking=_export_sfc$2(_sfc_main$38,[["render",_sfc_render$2h]]);const _sfc_main$37=defineComponent({name:"Soccer"}),_hoisted_1$1S={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1u=createBaseVNode("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24zm72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536L871.04 418.496zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152zm452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"},null,-1),_hoisted_3$19=[_hoisted_2$1u];function _sfc_render$2g($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1S,_hoisted_3$19)}var soccer=_export_sfc$2(_sfc_main$37,[["render",_sfc_render$2g]]);const _sfc_main$36=defineComponent({name:"SoldOut"}),_hoisted_1$1R={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1t=createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"},null,-1),_hoisted_3$18=[_hoisted_2$1t];function _sfc_render$2f($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1R,_hoisted_3$18)}var soldOut=_export_sfc$2(_sfc_main$36,[["render",_sfc_render$2f]]);const _sfc_main$35=defineComponent({name:"SortDown"}),_hoisted_1$1Q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1s=createBaseVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_hoisted_3$17=[_hoisted_2$1s];function _sfc_render$2e($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1Q,_hoisted_3$17)}var sortDown=_export_sfc$2(_sfc_main$35,[["render",_sfc_render$2e]]);const _sfc_main$34=defineComponent({name:"SortUp"}),_hoisted_1$1P={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1r=createBaseVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),_hoisted_3$16=[_hoisted_2$1r];function _sfc_render$2d($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1P,_hoisted_3$16)}var sortUp=_export_sfc$2(_sfc_main$34,[["render",_sfc_render$2d]]);const _sfc_main$33=defineComponent({name:"Sort"}),_hoisted_1$1O={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1q=createBaseVNode("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632V96zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"},null,-1),_hoisted_3$15=[_hoisted_2$1q];function _sfc_render$2c($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1O,_hoisted_3$15)}var sort=_export_sfc$2(_sfc_main$33,[["render",_sfc_render$2c]]);const _sfc_main$32=defineComponent({name:"Stamp"}),_hoisted_1$1N={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1p=createBaseVNode("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0zM128 896v-64h768v64H128z"},null,-1),_hoisted_3$14=[_hoisted_2$1p];function _sfc_render$2b($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1N,_hoisted_3$14)}var stamp=_export_sfc$2(_sfc_main$32,[["render",_sfc_render$2b]]);const _sfc_main$31=defineComponent({name:"StarFilled"}),_hoisted_1$1M={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1o=createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),_hoisted_3$13=[_hoisted_2$1o];function _sfc_render$2a($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1M,_hoisted_3$13)}var starFilled=_export_sfc$2(_sfc_main$31,[["render",_sfc_render$2a]]);const _sfc_main$30=defineComponent({name:"Star"}),_hoisted_1$1L={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1n=createBaseVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),_hoisted_3$12=[_hoisted_2$1n];function _sfc_render$29($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1L,_hoisted_3$12)}var star=_export_sfc$2(_sfc_main$30,[["render",_sfc_render$29]]);const _sfc_main$2$=defineComponent({name:"Stopwatch"}),_hoisted_1$1K={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1m=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_3$11=createBaseVNode("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"},null,-1),_hoisted_4$p=[_hoisted_2$1m,_hoisted_3$11];function _sfc_render$28($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1K,_hoisted_4$p)}var stopwatch=_export_sfc$2(_sfc_main$2$,[["render",_sfc_render$28]]);const _sfc_main$2_=defineComponent({name:"SuccessFilled"}),_hoisted_1$1J={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1l=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3$10=[_hoisted_2$1l];function _sfc_render$27($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1J,_hoisted_3$10)}var successFilled=_export_sfc$2(_sfc_main$2_,[["render",_sfc_render$27]]);const _sfc_main$2Z=defineComponent({name:"Sugar"}),_hoisted_1$1I={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1k=createBaseVNode("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904H252.928zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928h326.208zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"},null,-1),_hoisted_3$$=[_hoisted_2$1k];function _sfc_render$26($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1I,_hoisted_3$$)}var sugar=_export_sfc$2(_sfc_main$2Z,[["render",_sfc_render$26]]);const _sfc_main$2Y=defineComponent({name:"Suitcase"}),_hoisted_1$1H={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1j=createBaseVNode("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64v64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448H128zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128z"},null,-1),_hoisted_3$_=createBaseVNode("path",{fill:"currentColor",d:"M384 128v64h256v-64H384zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64z"},null,-1),_hoisted_4$o=[_hoisted_2$1j,_hoisted_3$_];function _sfc_render$25($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1H,_hoisted_4$o)}var suitcase=_export_sfc$2(_sfc_main$2Y,[["render",_sfc_render$25]]);const _sfc_main$2X=defineComponent({name:"Sunny"}),_hoisted_1$1G={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1i=createBaseVNode("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z"},null,-1),_hoisted_3$Z=[_hoisted_2$1i];function _sfc_render$24($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1G,_hoisted_3$Z)}var sunny=_export_sfc$2(_sfc_main$2X,[["render",_sfc_render$24]]);const _sfc_main$2W=defineComponent({name:"Sunrise"}),_hoisted_1$1F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1h=createBaseVNode("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64zm129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32zm407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248z"},null,-1),_hoisted_3$Y=[_hoisted_2$1h];function _sfc_render$23($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1F,_hoisted_3$Y)}var sunrise=_export_sfc$2(_sfc_main$2W,[["render",_sfc_render$23]]);const _sfc_main$2V=defineComponent({name:"Sunset"}),_hoisted_1$1E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1g=createBaseVNode("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0H82.56zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32zm256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"},null,-1),_hoisted_3$X=[_hoisted_2$1g];function _sfc_render$22($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1E,_hoisted_3$X)}var sunset=_export_sfc$2(_sfc_main$2V,[["render",_sfc_render$22]]);const _sfc_main$2U=defineComponent({name:"SwitchButton"}),_hoisted_1$1D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1f=createBaseVNode("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"},null,-1),_hoisted_3$W=createBaseVNode("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32z"},null,-1),_hoisted_4$n=[_hoisted_2$1f,_hoisted_3$W];function _sfc_render$21($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1D,_hoisted_4$n)}var switchButton=_export_sfc$2(_sfc_main$2U,[["render",_sfc_render$21]]);const _sfc_main$2T=defineComponent({name:"Switch"}),_hoisted_1$1C={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1e=createBaseVNode("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32z"},null,-1),_hoisted_3$V=[_hoisted_2$1e];function _sfc_render$20($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1C,_hoisted_3$V)}var _switch=_export_sfc$2(_sfc_main$2T,[["render",_sfc_render$20]]);const _sfc_main$2S=defineComponent({name:"TakeawayBox"}),_hoisted_1$1B={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1d=createBaseVNode("path",{fill:"currentColor",d:"M832 384H192v448h640V384zM96 320h832V128H96v192zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32h-64zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64z"},null,-1),_hoisted_3$U=[_hoisted_2$1d];function _sfc_render$1$($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1B,_hoisted_3$U)}var takeawayBox=_export_sfc$2(_sfc_main$2S,[["render",_sfc_render$1$]]);const _sfc_main$2R=defineComponent({name:"Ticket"}),_hoisted_1$1A={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1c=createBaseVNode("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64v160zm0-416v192h64V416h-64z"},null,-1),_hoisted_3$T=[_hoisted_2$1c];function _sfc_render$1_($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1A,_hoisted_3$T)}var ticket=_export_sfc$2(_sfc_main$2R,[["render",_sfc_render$1_]]);const _sfc_main$2Q=defineComponent({name:"Tickets"}),_hoisted_1$1z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1b=createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_3$S=[_hoisted_2$1b];function _sfc_render$1Z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1z,_hoisted_3$S)}var tickets=_export_sfc$2(_sfc_main$2Q,[["render",_sfc_render$1Z]]);const _sfc_main$2P=defineComponent({name:"Timer"}),_hoisted_1$1y={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$1a=createBaseVNode("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640zm0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768z"},null,-1),_hoisted_3$R=createBaseVNode("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$m=createBaseVNode("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96z"},null,-1),_hoisted_5$d=[_hoisted_2$1a,_hoisted_3$R,_hoisted_4$m];function _sfc_render$1Y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1y,_hoisted_5$d)}var timer=_export_sfc$2(_sfc_main$2P,[["render",_sfc_render$1Y]]);const _sfc_main$2O=defineComponent({name:"ToiletPaper"}),_hoisted_1$1x={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$19=createBaseVNode("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224zM736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64h416zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224z"},null,-1),_hoisted_3$Q=createBaseVNode("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96z"},null,-1),_hoisted_4$l=[_hoisted_2$19,_hoisted_3$Q];function _sfc_render$1X($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1x,_hoisted_4$l)}var toiletPaper=_export_sfc$2(_sfc_main$2O,[["render",_sfc_render$1X]]);const _sfc_main$2N=defineComponent({name:"Tools"}),_hoisted_1$1w={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$18=createBaseVNode("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1),_hoisted_3$P=[_hoisted_2$18];function _sfc_render$1W($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1w,_hoisted_3$P)}var tools=_export_sfc$2(_sfc_main$2N,[["render",_sfc_render$1W]]);const _sfc_main$2M=defineComponent({name:"TopLeft"}),_hoisted_1$1v={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$17=createBaseVNode("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0V256z"},null,-1),_hoisted_3$O=createBaseVNode("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"},null,-1),_hoisted_4$k=[_hoisted_2$17,_hoisted_3$O];function _sfc_render$1V($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1v,_hoisted_4$k)}var topLeft=_export_sfc$2(_sfc_main$2M,[["render",_sfc_render$1V]]);const _sfc_main$2L=defineComponent({name:"TopRight"}),_hoisted_1$1u={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$16=createBaseVNode("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0V256z"},null,-1),_hoisted_3$N=createBaseVNode("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"},null,-1),_hoisted_4$j=[_hoisted_2$16,_hoisted_3$N];function _sfc_render$1U($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1u,_hoisted_4$j)}var topRight=_export_sfc$2(_sfc_main$2L,[["render",_sfc_render$1U]]);const _sfc_main$2K=defineComponent({name:"Top"}),_hoisted_1$1t={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$15=createBaseVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1),_hoisted_3$M=[_hoisted_2$15];function _sfc_render$1T($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1t,_hoisted_3$M)}var top=_export_sfc$2(_sfc_main$2K,[["render",_sfc_render$1T]]);const _sfc_main$2J=defineComponent({name:"TrendCharts"}),_hoisted_1$1s={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$14=createBaseVNode("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1),_hoisted_3$L=[_hoisted_2$14];function _sfc_render$1S($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1s,_hoisted_3$L)}var trendCharts=_export_sfc$2(_sfc_main$2J,[["render",_sfc_render$1S]]);const _sfc_main$2I=defineComponent({name:"Trophy"}),_hoisted_1$1r={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$13=createBaseVNode("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64h128zm224-448V128H320v320a192 192 0 1 0 384 0zm64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768v192zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448H256z"},null,-1),_hoisted_3$K=[_hoisted_2$13];function _sfc_render$1R($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1r,_hoisted_3$K)}var trophy=_export_sfc$2(_sfc_main$2I,[["render",_sfc_render$1R]]);const _sfc_main$2H=defineComponent({name:"TurnOff"}),_hoisted_1$1q={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$12=createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724H329.956zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"},null,-1),_hoisted_3$J=createBaseVNode("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454zm0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088z"},null,-1),_hoisted_4$i=[_hoisted_2$12,_hoisted_3$J];function _sfc_render$1Q($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1q,_hoisted_4$i)}var turnOff=_export_sfc$2(_sfc_main$2H,[["render",_sfc_render$1Q]]);const _sfc_main$2G=defineComponent({name:"Umbrella"}),_hoisted_1$1p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$11=createBaseVNode("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0zm570.688-320a384.128 384.128 0 0 0-757.376 0h757.376z"},null,-1),_hoisted_3$I=[_hoisted_2$11];function _sfc_render$1P($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1p,_hoisted_3$I)}var umbrella=_export_sfc$2(_sfc_main$2G,[["render",_sfc_render$1P]]);const _sfc_main$2F=defineComponent({name:"Unlock"}),_hoisted_1$1o={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$10=createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32H224zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96z"},null,-1),_hoisted_3$H=createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32zm178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104l-59.456 23.808z"},null,-1),_hoisted_4$h=[_hoisted_2$10,_hoisted_3$H];function _sfc_render$1O($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1o,_hoisted_4$h)}var unlock=_export_sfc$2(_sfc_main$2F,[["render",_sfc_render$1O]]);const _sfc_main$2E=defineComponent({name:"UploadFilled"}),_hoisted_1$1n={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$$=createBaseVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1),_hoisted_3$G=[_hoisted_2$$];function _sfc_render$1N($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1n,_hoisted_3$G)}var uploadFilled=_export_sfc$2(_sfc_main$2E,[["render",_sfc_render$1N]]);const _sfc_main$2D=defineComponent({name:"Upload"}),_hoisted_1$1m={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$_=createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),_hoisted_3$F=[_hoisted_2$_];function _sfc_render$1M($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1m,_hoisted_3$F)}var upload=_export_sfc$2(_sfc_main$2D,[["render",_sfc_render$1M]]);const _sfc_main$2C=defineComponent({name:"UserFilled"}),_hoisted_1$1l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$Z=createBaseVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1),_hoisted_3$E=[_hoisted_2$Z];function _sfc_render$1L($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1l,_hoisted_3$E)}var userFilled=_export_sfc$2(_sfc_main$2C,[["render",_sfc_render$1L]]);const _sfc_main$2B=defineComponent({name:"User"}),_hoisted_1$1k={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$Y=createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),_hoisted_3$D=[_hoisted_2$Y];function _sfc_render$1K($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1k,_hoisted_3$D)}var user=_export_sfc$2(_sfc_main$2B,[["render",_sfc_render$1K]]);const _sfc_main$2A=defineComponent({name:"Van"}),_hoisted_1$1j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$X=createBaseVNode("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416h24.256zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672zm48.128-192-14.72-96H704v96h151.872zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160zm-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160z"},null,-1),_hoisted_3$C=[_hoisted_2$X];function _sfc_render$1J($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1j,_hoisted_3$C)}var van=_export_sfc$2(_sfc_main$2A,[["render",_sfc_render$1J]]);const _sfc_main$2z=defineComponent({name:"VideoCameraFilled"}),_hoisted_1$1i={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$W=createBaseVNode("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v96zM192 768v64h384v-64H192zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0zm64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288zm-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320zm64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"},null,-1),_hoisted_3$B=[_hoisted_2$W];function _sfc_render$1I($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1i,_hoisted_3$B)}var videoCameraFilled=_export_sfc$2(_sfc_main$2z,[["render",_sfc_render$1I]]);const _sfc_main$2y=defineComponent({name:"VideoCamera"}),_hoisted_1$1h={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$V=createBaseVNode("path",{fill:"currentColor",d:"M704 768V256H128v512h576zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v128zm0 71.552v176.896l128 64V359.552l-128 64zM192 320h192v64H192v-64z"},null,-1),_hoisted_3$A=[_hoisted_2$V];function _sfc_render$1H($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1h,_hoisted_3$A)}var videoCamera=_export_sfc$2(_sfc_main$2y,[["render",_sfc_render$1H]]);const _sfc_main$2x=defineComponent({name:"VideoPause"}),_hoisted_1$1g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$U=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32zm192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32z"},null,-1),_hoisted_3$z=[_hoisted_2$U];function _sfc_render$1G($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1g,_hoisted_3$z)}var videoPause=_export_sfc$2(_sfc_main$2x,[["render",_sfc_render$1G]]);const _sfc_main$2w=defineComponent({name:"VideoPlay"}),_hoisted_1$1f={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$T=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm-48-247.616L668.608 512 464 375.616v272.768zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"},null,-1),_hoisted_3$y=[_hoisted_2$T];function _sfc_render$1F($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1f,_hoisted_3$y)}var videoPlay=_export_sfc$2(_sfc_main$2w,[["render",_sfc_render$1F]]);const _sfc_main$2v=defineComponent({name:"View"}),_hoisted_1$1e={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$S=createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3$x=[_hoisted_2$S];function _sfc_render$1E($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1e,_hoisted_3$x)}var view=_export_sfc$2(_sfc_main$2v,[["render",_sfc_render$1E]]);const _sfc_main$2u=defineComponent({name:"WalletFilled"}),_hoisted_1$1d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$R=createBaseVNode("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160H688zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96zm-80-544 128 160H384l256-160z"},null,-1),_hoisted_3$w=[_hoisted_2$R];function _sfc_render$1D($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1d,_hoisted_3$w)}var walletFilled=_export_sfc$2(_sfc_main$2u,[["render",_sfc_render$1D]]);const _sfc_main$2t=defineComponent({name:"Wallet"}),_hoisted_1$1c={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$Q=createBaseVNode("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32v192z"},null,-1),_hoisted_3$v=createBaseVNode("path",{fill:"currentColor",d:"M128 320v512h768V320H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$g=createBaseVNode("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128z"},null,-1),_hoisted_5$c=[_hoisted_2$Q,_hoisted_3$v,_hoisted_4$g];function _sfc_render$1C($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1c,_hoisted_5$c)}var wallet=_export_sfc$2(_sfc_main$2t,[["render",_sfc_render$1C]]);const _sfc_main$2s=defineComponent({name:"WarningFilled"}),_hoisted_1$1b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$P=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3$u=[_hoisted_2$P];function _sfc_render$1B($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1b,_hoisted_3$u)}var warningFilled=_export_sfc$2(_sfc_main$2s,[["render",_sfc_render$1B]]);const _sfc_main$2r=defineComponent({name:"Warning"}),_hoisted_1$1a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$O=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_3$t=[_hoisted_2$O];function _sfc_render$1A($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$1a,_hoisted_3$t)}var warning$1=_export_sfc$2(_sfc_main$2r,[["render",_sfc_render$1A]]);const _sfc_main$2q=defineComponent({name:"Watch"}),_hoisted_1$19={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$N=createBaseVNode("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512zm0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640z"},null,-1),_hoisted_3$s=createBaseVNode("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32z"},null,-1),_hoisted_4$f=createBaseVNode("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm128-256V128H416v128h-64V64h320v192h-64zM416 768v128h192V768h64v192H352V768h64z"},null,-1),_hoisted_5$b=[_hoisted_2$N,_hoisted_3$s,_hoisted_4$f];function _sfc_render$1z($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$19,_hoisted_5$b)}var watch=_export_sfc$2(_sfc_main$2q,[["render",_sfc_render$1z]]);const _sfc_main$2p=defineComponent({name:"Watermelon"}),_hoisted_1$18={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$M=createBaseVNode("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248L683.072 600.32zm231.552 141.056a448 448 0 1 1-632-632l632 632z"},null,-1),_hoisted_3$r=[_hoisted_2$M];function _sfc_render$1y($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$18,_hoisted_3$r)}var watermelon=_export_sfc$2(_sfc_main$2p,[["render",_sfc_render$1y]]);const _sfc_main$2o=defineComponent({name:"WindPower"}),_hoisted_1$17={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$L=createBaseVNode("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32zm416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92l192-17.472zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96v226.368z"},null,-1),_hoisted_3$q=[_hoisted_2$L];function _sfc_render$1x($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$17,_hoisted_3$q)}var windPower=_export_sfc$2(_sfc_main$2o,[["render",_sfc_render$1x]]);const _sfc_main$2n=defineComponent({name:"ZoomIn"}),_hoisted_1$16={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$K=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),_hoisted_3$p=[_hoisted_2$K];function _sfc_render$1w($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$16,_hoisted_3$p)}var zoomIn=_export_sfc$2(_sfc_main$2n,[["render",_sfc_render$1w]]);const _sfc_main$2m=defineComponent({name:"ZoomOut"}),_hoisted_1$15={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$J=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3$o=[_hoisted_2$J];function _sfc_render$1v($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$15,_hoisted_3$o)}var zoomOut=_export_sfc$2(_sfc_main$2m,[["render",_sfc_render$1v]]),svg=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:addLocation,Aim:aim,AlarmClock:alarmClock,Apple:apple,ArrowDownBold:arrowDownBold,ArrowDown:arrowDown,ArrowLeftBold:arrowLeftBold,ArrowLeft:arrowLeft,ArrowRightBold:arrowRightBold,ArrowRight:arrowRight,ArrowUpBold:arrowUpBold,ArrowUp:arrowUp,Avatar:avatar,Back:back,Baseball:baseball,Basketball:basketball,BellFilled:bellFilled,Bell:bell,Bicycle:bicycle,BottomLeft:bottomLeft,BottomRight:bottomRight,Bottom:bottom,Bowl:bowl,Box:box,Briefcase:briefcase,BrushFilled:brushFilled,Brush:brush,Burger:burger,Calendar:calendar,CameraFilled:cameraFilled,Camera:camera,CaretBottom:caretBottom,CaretLeft:caretLeft,CaretRight:caretRight,CaretTop:caretTop,Cellphone:cellphone,ChatDotRound:chatDotRound,ChatDotSquare:chatDotSquare,ChatLineRound:chatLineRound,ChatLineSquare:chatLineSquare,ChatRound:chatRound,ChatSquare:chatSquare,Check:check,Checked:checked,Cherry:cherry,Chicken:chicken,CircleCheckFilled:circleCheckFilled,CircleCheck:circleCheck,CircleCloseFilled:circleCloseFilled,CircleClose:circleClose,CirclePlusFilled:circlePlusFilled,CirclePlus:circlePlus,Clock:clock,CloseBold:closeBold,Close:close$2,Cloudy:cloudy,CoffeeCup:coffeeCup,Coffee:coffee,Coin:coin,ColdDrink:coldDrink,CollectionTag:collectionTag,Collection:collection,Comment:comment,Compass:compass,Connection:connection,Coordinate:coordinate,CopyDocument:copyDocument,Cpu:cpu,CreditCard:creditCard,Crop:crop,DArrowLeft:dArrowLeft,DArrowRight:dArrowRight,DCaret:dCaret,DataAnalysis:dataAnalysis,DataBoard:dataBoard,DataLine:dataLine,DeleteFilled:deleteFilled,DeleteLocation:deleteLocation,Delete:_delete,Dessert:dessert,Discount:discount,DishDot:dishDot,Dish:dish,DocumentAdd:documentAdd,DocumentChecked:documentChecked,DocumentCopy:documentCopy,DocumentDelete:documentDelete,DocumentRemove:documentRemove,Document:document$1,Download:download,Drizzling:drizzling,EditPen:editPen,Edit:edit,ElemeFilled:elemeFilled,Eleme:eleme,ElementPlus:elementPlus,Expand:expand,Failed:failed,Female:female,Files:files,Film:film,Filter:filter,Finished:finished,FirstAidKit:firstAidKit,Flag:flag,Fold:fold,FolderAdd:folderAdd,FolderChecked:folderChecked,FolderDelete:folderDelete,FolderOpened:folderOpened,FolderRemove:folderRemove,Folder:folder,Food:food,Football:football,ForkSpoon:forkSpoon,Fries:fries,FullScreen:fullScreen,GobletFull:gobletFull,GobletSquareFull:gobletSquareFull,GobletSquare:gobletSquare,Goblet:goblet,GoodsFilled:goodsFilled,Goods:goods,Grape:grape,Grid:grid,Guide:guide,Headset:headset,HelpFilled:helpFilled,Help:help,Hide:hide,Histogram:histogram,HomeFilled:homeFilled,HotWater:hotWater,House:house,IceCreamRound:iceCreamRound,IceCreamSquare:iceCreamSquare,IceCream:iceCream,IceDrink:iceDrink,IceTea:iceTea,InfoFilled:infoFilled,Iphone:iphone,Key:key,KnifeFork:knifeFork,Lightning:lightning,Link:link,List:list,Loading:loading$1,LocationFilled:locationFilled,LocationInformation:locationInformation,Location:location$1,Lock:lock,Lollipop:lollipop,MagicStick:magicStick,Magnet:magnet,Male:male,Management:management,MapLocation:mapLocation,Medal:medal,Menu:menu,MessageBox:messageBox,Message:message$1,Mic:mic,Microphone:microphone,MilkTea:milkTea,Minus:minus,Money:money,Monitor:monitor,MoonNight:moonNight,Moon:moon,MoreFilled:moreFilled,More:more,MostlyCloudy:mostlyCloudy,Mouse:mouse,Mug:mug,MuteNotification:muteNotification,Mute:mute,NoSmoking:noSmoking,Notebook:notebook,Notification:notification,Odometer:odometer,OfficeBuilding:officeBuilding,Open:open$1,Operation:operation,Opportunity:opportunity,Orange:orange,Paperclip:paperclip,PartlyCloudy:partlyCloudy,Pear:pear,PhoneFilled:phoneFilled,Phone:phone,PictureFilled:pictureFilled,PictureRounded:pictureRounded,Picture:picture,PieChart:pieChart,Place:place,Platform:platform,Plus:plus,Pointer:pointer,Position:position,Postcard:postcard,Pouring:pouring,Present:present,PriceTag:priceTag,Printer:printer,Promotion:promotion,QuestionFilled:questionFilled,Rank:rank,ReadingLamp:readingLamp,Reading:reading,RefreshLeft:refreshLeft,RefreshRight:refreshRight,Refresh:refresh,Refrigerator:refrigerator,RemoveFilled:removeFilled,Remove:remove,Right:right$1,ScaleToOriginal:scaleToOriginal,School:school,Scissor:scissor,Search:search,Select:select,Sell:sell,SemiSelect:semiSelect,Service:service$1,SetUp:setUp,Setting:setting,Share:share,Ship:ship,Shop:shop,ShoppingBag:shoppingBag,ShoppingCartFull:shoppingCartFull,ShoppingCart:shoppingCart,Smoking:smoking,Soccer:soccer,SoldOut:soldOut,SortDown:sortDown,SortUp:sortUp,Sort:sort,Stamp:stamp,StarFilled:starFilled,Star:star,Stopwatch:stopwatch,SuccessFilled:successFilled,Sugar:sugar,Suitcase:suitcase,Sunny:sunny,Sunrise:sunrise,Sunset:sunset,SwitchButton:switchButton,Switch:_switch,TakeawayBox:takeawayBox,Ticket:ticket,Tickets:tickets,Timer:timer,ToiletPaper:toiletPaper,Tools:tools,TopLeft:topLeft,TopRight:topRight,Top:top,TrendCharts:trendCharts,Trophy:trophy,TurnOff:turnOff,Umbrella:umbrella,Unlock:unlock,UploadFilled:uploadFilled,Upload:upload,UserFilled:userFilled,User:user,Van:van,VideoCameraFilled:videoCameraFilled,VideoCamera:videoCamera,VideoPause:videoPause,VideoPlay:videoPlay,View:view,WalletFilled:walletFilled,Wallet:wallet,WarningFilled:warningFilled,Warning:warning$1,Watch:watch,Watermelon:watermelon,WindPower:windPower,ZoomIn:zoomIn,ZoomOut:zoomOut},Symbol.toStringTag,{value:"Module"})),commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var k=Object.defineProperty({},"__esModule",{value:!0});return Object.keys($).forEach(function(V){var z=Object.getOwnPropertyDescriptor($,V);Object.defineProperty(k,V,z.get?z:{enumerable:!0,get:function(){return $[V]}})}),k}var nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress -* @license MIT */(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){var V={};V.version="0.2.0";var z=V.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};V.configure=function($e){var _e,Ce;for(_e in $e)Ce=$e[_e],Ce!==void 0&&$e.hasOwnProperty(_e)&&(z[_e]=Ce);return this},V.status=null,V.set=function($e){var _e=V.isStarted();$e=j($e,z.minimum,1),V.status=$e===1?null:$e;var Ce=V.render(!_e),Ie=Ce.querySelector(z.barSelector),ze=z.speed,Et=z.easing;return Ce.offsetWidth,ie(function(qe){z.positionUsing===""&&(z.positionUsing=V.getPositioningCSS()),ae(Ie,re($e,ze,Et)),$e===1?(ae(Ce,{transition:"none",opacity:1}),Ce.offsetWidth,setTimeout(function(){ae(Ce,{transition:"all "+ze+"ms linear",opacity:0}),setTimeout(function(){V.remove(),qe()},ze)},ze)):setTimeout(qe,ze)}),this},V.isStarted=function(){return typeof V.status=="number"},V.start=function(){V.status||V.set(0);var $e=function(){setTimeout(function(){!V.status||(V.trickle(),$e())},z.trickleSpeed)};return z.trickle&&$e(),this},V.done=function($e){return!$e&&!V.status?this:V.inc(.3+.5*Math.random()).set(1)},V.inc=function($e){var _e=V.status;return _e?(typeof $e!="number"&&($e=(1-_e)*j(Math.random()*_e,.1,.95)),_e=j(_e+$e,0,.994),V.set(_e)):V.start()},V.trickle=function(){return V.inc(Math.random()*z.trickleRate)},function(){var $e=0,_e=0;V.promise=function(Ce){return!Ce||Ce.state()==="resolved"?this:(_e===0&&V.start(),$e++,_e++,Ce.always(function(){_e--,_e===0?($e=0,V.done()):V.set(($e-_e)/$e)}),this)}}(),V.render=function($e){if(V.isRendered())return document.getElementById("nprogress");le(document.documentElement,"nprogress-busy");var _e=document.createElement("div");_e.id="nprogress",_e.innerHTML=z.template;var Ce=_e.querySelector(z.barSelector),Ie=$e?"-100":oe(V.status||0),ze=document.querySelector(z.parent),Et;return ae(Ce,{transition:"all 0 linear",transform:"translate3d("+Ie+"%,0,0)"}),z.showSpinner||(Et=_e.querySelector(z.spinnerSelector),Et&&pe(Et)),ze!=document.body&&le(ze,"nprogress-custom-parent"),ze.appendChild(_e),_e},V.remove=function(){ue(document.documentElement,"nprogress-busy"),ue(document.querySelector(z.parent),"nprogress-custom-parent");var $e=document.getElementById("nprogress");$e&&pe($e)},V.isRendered=function(){return!!document.getElementById("nprogress")},V.getPositioningCSS=function(){var $e=document.body.style,_e="WebkitTransform"in $e?"Webkit":"MozTransform"in $e?"Moz":"msTransform"in $e?"ms":"OTransform"in $e?"O":"";return _e+"Perspective"in $e?"translate3d":_e+"Transform"in $e?"translate":"margin"};function j($e,_e,Ce){return $e<_e?_e:$e>Ce?Ce:$e}function oe($e){return(-1+$e)*100}function re($e,_e,Ce){var Ie;return z.positionUsing==="translate3d"?Ie={transform:"translate3d("+oe($e)+"%,0,0)"}:z.positionUsing==="translate"?Ie={transform:"translate("+oe($e)+"%,0)"}:Ie={"margin-left":oe($e)+"%"},Ie.transition="all "+_e+"ms "+Ce,Ie}var ie=function(){var $e=[];function _e(){var Ce=$e.shift();Ce&&Ce(_e)}return function(Ce){$e.push(Ce),$e.length==1&&_e()}}(),ae=function(){var $e=["Webkit","O","Moz","ms"],_e={};function Ce(qe){return qe.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Oe,Ue){return Ue.toUpperCase()})}function Ie(qe){var Oe=document.body.style;if(qe in Oe)return qe;for(var Ue=$e.length,Dt=qe.charAt(0).toUpperCase()+qe.slice(1),At;Ue--;)if(At=$e[Ue]+Dt,At in Oe)return At;return qe}function ze(qe){return qe=Ce(qe),_e[qe]||(_e[qe]=Ie(qe))}function Et(qe,Oe,Ue){Oe=ze(Oe),qe.style[Oe]=Ue}return function(qe,Oe){var Ue=arguments,Dt,At;if(Ue.length==2)for(Dt in Oe)At=Oe[Dt],At!==void 0&&Oe.hasOwnProperty(Dt)&&Et(qe,Dt,At);else Et(qe,Ue[1],Ue[2])}}();function he($e,_e){var Ce=typeof $e=="string"?$e:de($e);return Ce.indexOf(" "+_e+" ")>=0}function le($e,_e){var Ce=de($e),Ie=Ce+_e;he(Ce,_e)||($e.className=Ie.substring(1))}function ue($e,_e){var Ce=de($e),Ie;!he($e,_e)||(Ie=Ce.replace(" "+_e+" "," "),$e.className=Ie.substring(1,Ie.length-1))}function de($e){return(" "+($e.className||"")+" ").replace(/\s+/gi," ")}function pe($e){$e&&$e.parentNode&&$e.parentNode.removeChild($e)}return V})})(nprogress$1);var NProgress=nprogress$1.exports,nprogress="";const useKeepALiveNames=defineStore("keepALiveNames",{state:()=>({keepAliveNames:[],cachedViews:[]}),actions:{async setCacheKeepAlive($){this.keepAliveNames=$},async addCachedView($){this.cachedViews.includes($.name)||$.meta.isKeepAlive&&this.cachedViews.push($.name)},async delCachedView($){const k=this.cachedViews.indexOf($.name);k>-1&&this.cachedViews.splice(k,1)},async delOthersCachedViews($){$.meta.isKeepAlive?this.cachedViews=[$.name]:this.cachedViews=[]},async delAllCachedViews(){this.cachedViews=[]}}}),useRoutesList=defineStore("routesList",{state:()=>({routesList:[],isColumnsMenuHover:!1,isColumnsNavHover:!1}),actions:{async setRoutesList($){this.routesList=$},async setColumnsMenuHover($){this.isColumnsMenuHover=$},async setColumnsNavHover($){this.isColumnsNavHover=$}}}),scriptRel="modulepreload",seen={},base="",__vitePreload=function(k,V){return!V||V.length===0?k():Promise.all(V.map(z=>{if(z=`${base}${z}`,z in seen)return;seen[z]=!0;const j=z.endsWith(".css"),oe=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${z}"]${oe}`))return;const re=document.createElement("link");if(re.rel=j?"stylesheet":scriptRel,j||(re.as="script",re.crossOrigin=""),re.href=z,document.head.appendChild(re),j)return new Promise((ie,ae)=>{re.addEventListener("load",ie),re.addEventListener("error",()=>ae(new Error(`Unable to preload CSS for ${z}`)))})})).then(()=>k())},dynamicRoutes=[{path:"/",name:"/",component:()=>__vitePreload(()=>import("./index.16542915920722.js"),["assets/index.16542915920722.js","assets/vue.1654291592072.js"]),redirect:"/home",meta:{isKeepAlive:!0},children:[{path:"/home",name:"Home",component:()=>__vitePreload(()=>import("./index.16542915920723.js"),["assets/index.16542915920723.js","assets/index.16542915920722.css","assets/echarts.1654291592072.js","assets/vue.1654291592072.js"]),meta:{title:"message.router.home",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!0,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-shouye"}},{path:"/sys",name:"Sys",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sys/org/user",meta:{title:"\u7CFB\u7EDF\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"iconfont icon-xitongshezhi"},children:[{path:"/sys/org",name:"SysOrg",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sys/org/user",meta:{title:"\u7EC4\u7EC7\u67B6\u6784",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-OfficeBuilding"},children:[{path:"/sys/org/dept",name:"SysOrgDept",component:()=>__vitePreload(()=>import("./index.16542915920724.js"),["assets/index.16542915920724.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u90E8\u95E8\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin","common"],icon:"ele-SetUp"}},{path:"/sys/org/dept/edit",name:"SysOrgDeptEdit",component:()=>__vitePreload(()=>import("./edit.1654291592072.js"),["assets/edit.1654291592072.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u90E8\u95E8\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/sys/org/user",name:"SysOrgUser",component:()=>__vitePreload(()=>import("./index.16542915920726.js"),["assets/index.16542915920726.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u7528\u6237\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-User"}},{path:"/sys/org/user/edit",name:"SysOrgUserEdit",component:()=>__vitePreload(()=>import("./edit.16542915920723.js"),["assets/edit.16542915920723.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u7528\u6237\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/sys/org/post",name:"SysOrgPost",component:()=>__vitePreload(()=>import("./index.16542915920727.js"),["assets/index.16542915920727.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u5C97\u4F4D\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Help"}},{path:"/sys/org/post/edit",name:"SysOrgPostEdit",component:()=>__vitePreload(()=>import("./edit.16542915920724.js"),["assets/edit.16542915920724.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u5C97\u4F4D\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/sys/org/group",name:"SysOrgGroup",component:()=>__vitePreload(()=>import("./index.16542915920728.js"),["assets/index.16542915920728.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u7FA4\u7EC4\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Guide"}},{path:"/sys/org/group/edit",name:"SysOrgGroupEdit",component:()=>__vitePreload(()=>import("./edit.16542915920725.js"),["assets/edit.16542915920725.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u7FA4\u7EC4\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}}]},{path:"/sys/api",name:"SysApi",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sys/api/main",meta:{title:"\u63A5\u53E3\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Lock"},children:[{path:"/sys/api/main",name:"SysApiMain",component:()=>__vitePreload(()=>import("./index.16542915920729.js"),["assets/index.16542915920729.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u63A5\u53E3\u6E05\u5355",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/api/main/edit",name:"SysApiMainEdit",component:()=>__vitePreload(()=>import("./edit.16542915920726.js"),["assets/edit.16542915920726.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u63A5\u53E3\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/api/role",name:"SysApiRole",component:()=>__vitePreload(()=>import("./index.165429159207210.js"),["assets/index.165429159207210.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u63A5\u53E3\u89D2\u8272",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/api/role/edit",name:"SysApiRoleEdit",component:()=>__vitePreload(()=>import("./edit.16542915920727.js"),["assets/edit.16542915920727.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u89D2\u8272\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"]}}]},{path:"/sys/portal",name:"SysPortal",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sys/portal/main",meta:{title:"\u95E8\u6237\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Notebook"},children:[{path:"/sys/portal/main",name:"SysPortalMain",component:()=>__vitePreload(()=>import("./index.165429159207211.js"),["assets/index.165429159207211.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u95E8\u6237\u5217\u8868",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/portal/main/edit",name:"SysPortalMainEdit",component:()=>__vitePreload(()=>import("./edit.16542915920728.js"),["assets/edit.16542915920728.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u95E8\u6237\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/portal/menu",name:"SysPortalMenu",component:()=>__vitePreload(()=>import("./index.165429159207212.js"),["assets/index.165429159207212.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.16542915920729.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u95E8\u6237\u83DC\u5355",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/portal/menu/edit",name:"SysPortalMenuEdit",component:()=>__vitePreload(()=>import("./edit.16542915920729.js"),["assets/edit.16542915920729.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u83DC\u5355\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/portal/role",name:"SysPortalRole",component:()=>__vitePreload(()=>import("./index.165429159207213.js"),["assets/index.165429159207213.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u95E8\u6237\u89D2\u8272",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/portal/role/edit",name:"SysPortalRoleEdit",component:()=>__vitePreload(()=>import("./edit.165429159207210.js"),["assets/edit.165429159207210.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u89D2\u8272\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}}]},{path:"/sys/job",name:"SysJob",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sys/job/main",meta:{title:"\u5B9A\u65F6\u4EFB\u52A1",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-AlarmClock"},children:[{path:"/sys/job/main",name:"SysJobMain",component:()=>__vitePreload(()=>import("./index.165429159207214.js"),["assets/index.165429159207214.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u4EFB\u52A1\u6E05\u5355",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sys/job/main/edit",name:"SysJobMainEdit",component:()=>__vitePreload(()=>import("./edit.165429159207211.js"),["assets/edit.165429159207211.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),meta:{title:"\u4EFB\u52A1\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"]}},{path:"/sys/job/log",name:"SysJobLog",component:()=>__vitePreload(()=>import("./index.165429159207215.js"),["assets/index.165429159207215.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/view.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u4EFB\u52A1\u65E5\u5FD7",isLink:"",isHide:!1,isKeepAlive:!1,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}}]},{path:"/sys/log",name:"SysLog",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sys/log/login",meta:{title:"\u7CFB\u7EDF\u65E5\u5FD7",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Notification"},children:[{path:"/sys/log/login",name:"SysLogLogin",component:()=>__vitePreload(()=>import("./index.165429159207216.js"),["assets/index.165429159207216.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/view.16542915920722.js","assets/edit.16542915920722.js"]),meta:{title:"\u767B\u5F55\u65E5\u5FD7",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}}]}]},{path:"/ass",name:"Ass",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/ass/dict/main",meta:{title:"\u8F85\u52A9\u5DE5\u5177",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Help"},children:[{path:"/ass/dict/main",name:"AssDictMain",component:()=>__vitePreload(()=>import("./index.165429159207217.js"),["assets/index.165429159207217.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207212.js","assets/edit.16542915920722.js"]),meta:{title:"\u6570\u636E\u5B57\u5178",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/ass/dict/data",name:"AssDictData",component:()=>__vitePreload(()=>import("./index.165429159207218.js"),["assets/index.165429159207218.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207213.js","assets/edit.16542915920722.js"]),meta:{title:"\u5B57\u5178\u914D\u7F6E",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/ass/num/main",name:"AssNumMain",component:()=>__vitePreload(()=>import("./index.165429159207219.js"),["assets/index.165429159207219.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207214.js","assets/edit.16542915920722.js"]),meta:{title:"\u7F16\u53F7\u7B56\u7565",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/ass/addr/main",name:"AssAddrMain",component:()=>__vitePreload(()=>import("./index.165429159207220.js"),["assets/index.165429159207220.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/GenUpload.1654291592072.js","assets/amap.1654291592072.js"]),meta:{title:"\u7701\u5E02\u533A\u53BF",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}}]},{path:"/oa",name:"Oa",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/oa/flow/main",meta:{title:"\u6D41\u7A0B\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Connection"},children:[{path:"/oa/flow/cate",name:"OaFlowCate",component:()=>__vitePreload(()=>import("./index.165429159207221.js"),["assets/index.165429159207221.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u6D41\u7A0B\u5206\u7C7B",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/oa/flow/cate/edit",name:"OaFlowCateEdit",component:()=>__vitePreload(()=>import("./edit.165429159207215.js"),["assets/edit.165429159207215.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u6D41\u7A0B\u5206\u7C7B\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/oa/flow/temp",name:"OaFlowTemp",component:()=>__vitePreload(()=>import("./index.165429159207222.js"),["assets/index.165429159207222.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),meta:{title:"\u6D41\u7A0B\u6A21\u677F",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/oa/flow/temp/edit",name:"OaFlowTempEdit",component:()=>__vitePreload(()=>import("./edit.165429159207216.js"),["assets/edit.165429159207216.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/BpmnActions.1654291592072.js","assets/BpmnActions.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u6D41\u7A0B\u6A21\u677F\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/oa/flow/main",name:"OaFlowMain",component:()=>__vitePreload(()=>import("./index.165429159207223.js"),["assets/index.165429159207223.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css","assets/FlowModal.1654291592072.js","assets/FlowModal.1654291592072.css","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),meta:{title:"\u6D41\u7A0B\u5B9E\u4F8B",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/oa/flow/main/view",name:"OaFlowMainView",component:()=>__vitePreload(()=>import("./view.16542915920723.js"),["assets/view.16542915920723.js","assets/view.1654291592072.css","assets/vue.1654291592072.js","assets/Modeler2.1654291592072.js","assets/Modeler2.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js"]),meta:{title:"\u6D41\u7A0B\u67E5\u770B",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/oa/flow/main/edit",name:"OaFlowMainEdit",component:()=>__vitePreload(()=>import("./edit.165429159207217.js"),["assets/edit.165429159207217.js","assets/edit.1654291592072.css","assets/edit.16542915920722.js","assets/vue.1654291592072.js","assets/Modeler2.1654291592072.js","assets/Modeler2.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js"]),meta:{title:"\u6D41\u7A0B\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}}]},{path:"/sa",name:"Sa",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/sa/cust/main",meta:{title:"DEMO",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-GobletSquare"},children:[{path:"/sa/agent/main",name:"SaAgentMain",component:()=>__vitePreload(()=>import("./index.165429159207224.js"),["assets/index.165429159207224.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/GenUpload.1654291592072.js"]),meta:{title:"\u4EE3\u7406\u5546\u6E05\u5355",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sa/agent/main/edit",name:"SaAgentMainEdit",component:()=>__vitePreload(()=>import("./edit.165429159207218.js"),["assets/edit.165429159207218.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css","assets/amap.1654291592072.js"]),meta:{title:"\u4EE3\u7406\u5546\u7EF4\u62A4",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sa/cust/main",name:"SaCustMain",component:()=>__vitePreload(()=>import("./index.165429159207225.js"),["assets/index.165429159207225.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u5BA2\u6237\u6E05\u5355",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}},{path:"/sa/cust/main/edit",name:"SaCustMainEdit",component:()=>__vitePreload(()=>import("./edit.165429159207219.js"),["assets/edit.165429159207219.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u5BA2\u6237\u7EF4\u62A4",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Tickets"}}]}]}],notFoundAndNoPower=[{path:"/:path(.*)*",name:"notFound",component:()=>__vitePreload(()=>import("./404.1654291592072.js"),["assets/404.1654291592072.js","assets/404.1654291592072.css","assets/vue.1654291592072.js"]),meta:{title:"message.staticRoutes.notFound",isHide:!0}},{path:"/401",name:"noPower",component:()=>__vitePreload(()=>import("./401.1654291592072.js"),["assets/401.1654291592072.js","assets/401.1654291592072.css","assets/vue.1654291592072.js"]),meta:{title:"message.staticRoutes.noPower",isHide:!0}}],staticRoutes=[{path:"/",name:"/",component:()=>__vitePreload(()=>import("./index.16542915920722.js"),["assets/index.16542915920722.js","assets/vue.1654291592072.js"]),meta:{title:"\u5E03\u5C40\u754C\u9762"},children:[...notFoundAndNoPower]},{path:"/login",name:"login",component:()=>__vitePreload(()=>import("./index.165429159207226.js"),["assets/index.165429159207226.js","assets/index.1654291592072.css","assets/vue.1654291592072.js","assets/logo-mini.1654291592072.js"]),meta:{title:"\u767B\u5F55"}},{path:"/visualizingDemo1",name:"visualizingDemo1",component:()=>__vitePreload(()=>import("./demo1.1654291592072.js"),["assets/demo1.1654291592072.js","assets/demo1.1654291592072.css","assets/echarts.1654291592072.js","assets/vue.1654291592072.js"]),meta:{title:"message.router.visualizingLinkDemo1"}},{path:"/visualizingDemo2",name:"visualizingDemo2",component:()=>__vitePreload(()=>import("./demo2.1654291592072.js"),["assets/demo2.1654291592072.js","assets/demo2.1654291592072.css","assets/echarts.1654291592072.js","assets/vue.1654291592072.js"]),meta:{title:"message.router.visualizingLinkDemo2"}},{path:"/page/ofte",name:"pageOfte",component:()=>__vitePreload(()=>import("./edit.165429159207216.js"),["assets/edit.165429159207216.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/BpmnActions.1654291592072.js","assets/BpmnActions.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u6D41\u7A0B\u6A21\u677F\u914D\u7F6E"}},{path:"/page/ofme",name:"pageOfme",component:()=>__vitePreload(()=>import("./edit.165429159207217.js"),["assets/edit.165429159207217.js","assets/edit.1654291592072.css","assets/edit.16542915920722.js","assets/vue.1654291592072.js","assets/Modeler2.1654291592072.js","assets/Modeler2.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js"]),meta:{title:"\u6D41\u7A0B\u5B9E\u4F8B\u7F16\u8F91"}},{path:"/page/ofmv",name:"pageOfmv",component:()=>__vitePreload(()=>import("./view.16542915920723.js"),["assets/view.16542915920723.js","assets/view.1654291592072.css","assets/vue.1654291592072.js","assets/Modeler2.1654291592072.js","assets/Modeler2.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js"]),meta:{title:"\u6D41\u7A0B\u5B9E\u4F8B\u67E5\u770B"}}],useUserInfo=defineStore("userInfo",{state:()=>({userInfos:{userName:"",photo:"",time:0,roles:[],authBtnList:[]}}),actions:{async setUserInfos(){const $=api.get("userName");let k=[],V=[],z=["admin"],j=["btn.add","btn.del","btn.edit","btn.link"];k=z,V=j;const oe={userName:$,portals:[],dePortal:"",photo:$==="admin"?"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg":"https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=317673774,2961727727&fm=26&gp=0.jpg",time:new Date().getTime(),roles:k,authBtnList:V};Session.set("userInfo",oe),Session.get("userInfo")?this.userInfos=Session.get("userInfo"):this.userInfos=oe},async setUserInfos2($){const k=api.get("userName");let V=[],z=[],j=["admin"],oe=["btn.add","btn.del","btn.edit","btn.link"];V=j,z=oe;const re={userName:k,portals:$,dePortal:$[0].id,photo:k==="admin"?"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg":"https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=317673774,2961727727&fm=26&gp=0.jpg",time:new Date().getTime(),roles:V,authBtnList:z};Session.set("userInfo",re),Session.get("userInfo")?this.userInfos=Session.get("userInfo"):this.userInfos=re}}});var loading="";const NextLoading={start:()=>{const $=document.body,k=document.createElement("div");k.setAttribute("class","loading-next");const V=` -
-
-
-
-
-
-
-
-
-
-
-
-
- `;k.innerHTML=V,$.insertBefore(k,$.childNodes[0]),window.nextLoading=!0},done:()=>{nextTick(()=>{var k;window.nextLoading=!1;const $=document.querySelector(".loading-next");(k=$==null?void 0:$.parentNode)==null||k.removeChild($)})}},saRoutes=[{path:"/te/prod",name:"teProd",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/te/prod/model",meta:{title:"\u4EA7\u54C1\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-xitongshezhi"},children:[{path:"/te/prod/cate",name:"teProdCate",component:()=>__vitePreload(()=>import("./index.165429159207238.js"),["assets/index.165429159207238.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207232.js","assets/edit.16542915920722.js"]),meta:{title:"\u4EA7\u54C1\u5206\u7C7B",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/prod/serie",name:"teProdSerie",component:()=>__vitePreload(()=>import("./index.165429159207240.js"),["assets/index.165429159207240.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207234.js","assets/edit.16542915920722.js"]),meta:{title:"\u4EA7\u54C1\u7CFB\u5217",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/prod/model",name:"teProdModel",component:()=>__vitePreload(()=>import("./index.165429159207239.js"),["assets/index.165429159207239.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207233.js","assets/edit.16542915920722.js"]),meta:{title:"\u4EA7\u54C1\u578B\u53F7",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/prod/version",name:"teProdVersion",component:()=>__vitePreload(()=>import("./index.165429159207242.js"),["assets/index.165429159207242.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),meta:{title:"\u4EA7\u54C1\u7248\u672C",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/prod/version/edit",name:"teProdVersionEdit",component:()=>__vitePreload(()=>import("./edit.165429159207236.js"),["assets/edit.165429159207236.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u4EA7\u54C1\u7248\u672C\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/prod/test",name:"teProdTest",component:()=>__vitePreload(()=>import("./index.165429159207241.js"),["assets/index.165429159207241.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/ProdModal.1654291592072.js","assets/ProdModal.1654291592072.css"]),meta:{title:"\u4EA7\u54C1\u6D4B\u8BD5",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/prod/test/edit",name:"teProdTestEdit",component:()=>__vitePreload(()=>import("./edit.165429159207235.js"),["assets/edit.165429159207235.js","assets/vue.1654291592072.js"]),meta:{title:"\u4EA7\u54C1\u6D4B\u8BD5\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}}]},{path:"/te/feat",name:"teFeat",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/te/feat/param",meta:{title:"\u7279\u6027\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-xitongshezhi"},children:[{path:"/te/feat/screen",name:"teFeatScreen",component:()=>__vitePreload(()=>import("./index.165429159207237.js"),["assets/index.165429159207237.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207231.js","assets/edit.16542915920722.js"]),meta:{title:"\u7279\u6027\u5C4F\u5E55",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/param",name:"teFeatParam",component:()=>__vitePreload(()=>import("./index.165429159207236.js"),["assets/index.165429159207236.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u7279\u6027\u53C2\u6570",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/param/edit",name:"teFeatParamEdit",component:()=>__vitePreload(()=>import("./edit.165429159207230.js"),["assets/edit.165429159207230.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css","assets/xutil.1654291592072.js"]),meta:{title:"\u53C2\u6570\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Comment"}},{path:"/te/feat/link",name:"teFeatLink",component:()=>__vitePreload(()=>import("./index.165429159207235.js"),["assets/index.165429159207235.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u7279\u6027\u8054\u52A8",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/link/edit",name:"teFeatLinkEdit",component:()=>__vitePreload(()=>import("./edit.165429159207229.js"),["assets/edit.165429159207229.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u8054\u52A8\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/check",name:"teFeatCheck",component:()=>__vitePreload(()=>import("./index.165429159207232.js"),["assets/index.165429159207232.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u7279\u6027\u6821\u9A8C",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/check/edit",name:"teFeatCheckEdit",component:()=>__vitePreload(()=>import("./edit.165429159207226.js"),["assets/edit.165429159207226.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u6821\u9A8C\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/drive",name:"teFeatDrive",component:()=>__vitePreload(()=>import("./index.165429159207234.js"),["assets/index.165429159207234.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u7279\u6027\u9A71\u52A8",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/feat/drive/edit",name:"teFeatDriveEdit",component:()=>__vitePreload(()=>import("./edit.165429159207228.js"),["assets/edit.165429159207228.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u9A71\u52A8\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}}]},{path:"/te/allot",name:"teAllot",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/te/allot/param",meta:{title:"\u5206\u914D\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-xitongshezhi"},children:[{path:"/te/allot/param",name:"teAllotParam",component:()=>__vitePreload(()=>import("./index.165429159207231.js"),["assets/index.165429159207231.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u53C2\u6570\u5206\u914D",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/allot/param/edit",name:"teAllotParamEdit",component:()=>__vitePreload(()=>import("./edit.165429159207225.js"),["assets/edit.165429159207225.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u53C2\u6570\u5206\u914D\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Comment"}},{path:"/te/allot/link",name:"teAllotLink",component:()=>__vitePreload(()=>import("./index.165429159207230.js"),["assets/index.165429159207230.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u8054\u52A8\u5206\u914D",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/allot/link/edit",name:"teAllotLinkEdit",component:()=>__vitePreload(()=>import("./edit.165429159207224.js"),["assets/edit.165429159207224.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u8054\u52A8\u5206\u914D\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Comment"}},{path:"/te/allot/check",name:"teAllotCheck",component:()=>__vitePreload(()=>import("./index.165429159207228.js"),["assets/index.165429159207228.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u6821\u9A8C\u5206\u914D",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/allot/check/edit",name:"teAllotCheckEdit",component:()=>__vitePreload(()=>import("./edit.165429159207222.js"),["assets/edit.165429159207222.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u6821\u9A8C\u5206\u914D\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Comment"}},{path:"/te/allot/drive",name:"teAllotDrive",component:()=>__vitePreload(()=>import("./index.165429159207229.js"),["assets/index.165429159207229.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u9A71\u52A8\u5206\u914D",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/allot/drive/edit",name:"teAllotDriveEdit",component:()=>__vitePreload(()=>import("./edit.165429159207223.js"),["assets/edit.165429159207223.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),meta:{title:"\u9A71\u52A8\u5206\u914D\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"ele-Comment"}}]},{path:"/te/tran",name:"teTran",component:()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"]),redirect:"/te/tran/main",meta:{title:"\u8F6C\u6362\u7BA1\u7406",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-xitongshezhi"},children:[{path:"/te/tran/cate",name:"teTranCate",component:()=>__vitePreload(()=>import("./index.165429159207243.js"),["assets/index.165429159207243.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207237.js","assets/edit.16542915920722.js"]),meta:{title:"\u8F6C\u6362\u5206\u7C7B",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/tran/main",name:"teTranMain",component:()=>__vitePreload(()=>import("./index.165429159207244.js"),["assets/index.165429159207244.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),meta:{title:"\u8F6C\u6362\u6620\u5C04",isLink:"",isHide:!1,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}},{path:"/te/tran/main/edit",name:"teTranMainEdit",component:()=>__vitePreload(()=>import("./edit.165429159207238.js"),["assets/edit.165429159207238.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),meta:{title:"\u8F6C\u6362\u7F16\u8F91",isLink:"",isHide:!0,isKeepAlive:!0,isAffix:!1,isIframe:!1,roles:["admin"],icon:"iconfont icon-caidan"}}]}];var Si;for(const $ of saRoutes)(Si=dynamicRoutes[0].children)==null||Si.push($);async function initFrontEndControlRoutes(){if(window.nextLoading===void 0&&NextLoading.start(),!Session.get("token"))return!1;useUserInfo(pinia).setUserInfos(),await setAddRoute$1(),await setFilterMenuAndCacheTagsViewRoutes$1()}async function setAddRoute$1(){await setFilterRouteEnd$1().forEach($=>{router.addRoute($)})}function setFilterRouteEnd$1(){let $=formatTwoStageRoutes(formatFlatteningRoutes(dynamicRoutes));return $[0].children=[...setFilterRoute($[0].children),...notFoundAndNoPower],$}function setFilterRoute($){const k=useUserInfo(pinia),{userInfos:V}=storeToRefs(k);let z=[];return $.forEach(j=>{j.meta.roles&&j.meta.roles.forEach(oe=>{V.value.roles.forEach(re=>{oe===re&&z.push(oo({},j))})})}),z}function setCacheTagsViewRoutes$1(){const $=useUserInfo(pinia),k=useTagsViewRoutes(pinia),{userInfos:V}=storeToRefs($);let z=setFilterHasRolesMenu(dynamicRoutes,V.value.roles);k.setTagsViewRoutes(formatTwoStageRoutes(formatFlatteningRoutes(z))[0].children)}function setFilterMenuAndCacheTagsViewRoutes$1(){const $=useUserInfo(pinia),k=useRoutesList(pinia),{userInfos:V}=storeToRefs($);k.setRoutesList(setFilterHasRolesMenu(dynamicRoutes[0].children,V.value.roles)),setCacheTagsViewRoutes$1()}function hasRoles($,k){return k.meta&&k.meta.roles?$.some(V=>k.meta.roles.includes(V)):!0}function setFilterHasRolesMenu($,k){const V=[];return $.forEach(z=>{const j=oo({},z);hasRoles(k,j)&&(j.children&&(j.children=setFilterHasRolesMenu(j.children,k)),V.push(j))}),V}const useRequestOldRoutes=defineStore("requestOldRoutes",{state:()=>({requestOldRoutes:[]}),actions:{async setRequestOldRoutes($){this.requestOldRoutes=$}}});var axios$2={exports:{}},bind$2=function(k,V){return function(){for(var j=new Array(arguments.length),oe=0;oe0;)oe=z[j],re[oe]||(k[oe]=$[oe],re[oe]=!0);$=Object.getPrototypeOf($)}while($&&(!V||V($,k))&&$!==Object.prototype);return k}function endsWith($,k,V){$=String($),(V===void 0||V>$.length)&&(V=$.length),V-=k.length;var z=$.indexOf(k,V);return z!==-1&&z===V}function toArray($){if(!$)return null;var k=$.length;if(isUndefined$1(k))return null;for(var V=new Array(k);k-- >0;)V[k]=$[k];return V}var isTypedArray$2=function($){return function(k){return $&&k instanceof $}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),utils$h={isArray:isArray$3,isArrayBuffer,isBuffer:isBuffer$2,isFormData,isArrayBufferView,isString:isString$2,isNumber:isNumber$2,isObject:isObject$4,isPlainObject:isPlainObject$1,isUndefined:isUndefined$1,isDate:isDate$1,isFile,isBlob,isFunction:isFunction$2,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,isTypedArray:isTypedArray$2,isFileList},utils$g=utils$h;function encode($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$2=function(k,V,z){if(!V)return k;var j;if(z)j=z(V);else if(utils$g.isURLSearchParams(V))j=V.toString();else{var oe=[];utils$g.forEach(V,function(ae,he){ae===null||typeof ae=="undefined"||(utils$g.isArray(ae)?he=he+"[]":ae=[ae],utils$g.forEach(ae,function(ue){utils$g.isDate(ue)?ue=ue.toISOString():utils$g.isObject(ue)&&(ue=JSON.stringify(ue)),oe.push(encode(he)+"="+encode(ue))}))}),j=oe.join("&")}if(j){var re=k.indexOf("#");re!==-1&&(k=k.slice(0,re)),k+=(k.indexOf("?")===-1?"?":"&")+j}return k},utils$f=utils$h;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(k,V,z){return this.handlers.push({fulfilled:k,rejected:V,synchronous:z?z.synchronous:!1,runWhen:z?z.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(k){this.handlers[k]&&(this.handlers[k]=null)};InterceptorManager$1.prototype.forEach=function(k){utils$f.forEach(this.handlers,function(z){z!==null&&k(z)})};var InterceptorManager_1=InterceptorManager$1,utils$e=utils$h,normalizeHeaderName$1=function(k,V){utils$e.forEach(k,function(j,oe){oe!==V&&oe.toUpperCase()===V.toUpperCase()&&(k[V]=j,delete k[oe])})},utils$d=utils$h;function AxiosError$5($,k,V,z,j){Error.call(this),this.message=$,this.name="AxiosError",k&&(this.code=k),V&&(this.config=V),z&&(this.request=z),j&&(this.response=j)}utils$d.inherits(AxiosError$5,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var prototype=AxiosError$5.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function($){descriptors[$]={value:$}});Object.defineProperties(AxiosError$5,descriptors);Object.defineProperty(prototype,"isAxiosError",{value:!0});AxiosError$5.from=function($,k,V,z,j,oe){var re=Object.create(prototype);return utils$d.toFlatObject($,re,function(ae){return ae!==Error.prototype}),AxiosError$5.call(re,$.message,k,V,z,j),re.name=$.name,oe&&Object.assign(re,oe),re};var AxiosError_1=AxiosError$5,transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},utils$c=utils$h;function toFormData$1($,k){k=k||new FormData;var V=[];function z(oe){return oe===null?"":utils$c.isDate(oe)?oe.toISOString():utils$c.isArrayBuffer(oe)||utils$c.isTypedArray(oe)?typeof Blob=="function"?new Blob([oe]):Buffer.from(oe):oe}function j(oe,re){if(utils$c.isPlainObject(oe)||utils$c.isArray(oe)){if(V.indexOf(oe)!==-1)throw Error("Circular reference detected in "+re);V.push(oe),utils$c.forEach(oe,function(ae,he){if(!utils$c.isUndefined(ae)){var le=re?re+"."+he:he,ue;if(ae&&!re&&typeof ae=="object"){if(utils$c.endsWith(he,"{}"))ae=JSON.stringify(ae);else if(utils$c.endsWith(he,"[]")&&(ue=utils$c.toArray(ae))){ue.forEach(function(de){!utils$c.isUndefined(de)&&k.append(le,z(de))});return}}j(ae,le)}}),V.pop()}else k.append(re,z(oe))}return j($),k}var toFormData_1=toFormData$1,AxiosError$4=AxiosError_1,settle$1=function(k,V,z){var j=z.config.validateStatus;!z.status||!j||j(z.status)?k(z):V(new AxiosError$4("Request failed with status code "+z.status,[AxiosError$4.ERR_BAD_REQUEST,AxiosError$4.ERR_BAD_RESPONSE][Math.floor(z.status/100)-4],z.config,z.request,z))},utils$b=utils$h,cookies$1=utils$b.isStandardBrowserEnv()?function(){return{write:function(V,z,j,oe,re,ie){var ae=[];ae.push(V+"="+encodeURIComponent(z)),utils$b.isNumber(j)&&ae.push("expires="+new Date(j).toGMTString()),utils$b.isString(oe)&&ae.push("path="+oe),utils$b.isString(re)&&ae.push("domain="+re),ie===!0&&ae.push("secure"),document.cookie=ae.join("; ")},read:function(V){var z=document.cookie.match(new RegExp("(^|;\\s*)("+V+")=([^;]*)"));return z?decodeURIComponent(z[3]):null},remove:function(V){this.write(V,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),isAbsoluteURL$1=function(k){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(k)},combineURLs$1=function(k,V){return V?k.replace(/\/+$/,"")+"/"+V.replace(/^\/+/,""):k},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$2=function(k,V){return k&&!isAbsoluteURL(V)?combineURLs(k,V):V},utils$a=utils$h,ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],parseHeaders$1=function(k){var V={},z,j,oe;return k&&utils$a.forEach(k.split(` -`),function(ie){if(oe=ie.indexOf(":"),z=utils$a.trim(ie.substr(0,oe)).toLowerCase(),j=utils$a.trim(ie.substr(oe+1)),z){if(V[z]&&ignoreDuplicateOf.indexOf(z)>=0)return;z==="set-cookie"?V[z]=(V[z]?V[z]:[]).concat([j]):V[z]=V[z]?V[z]+", "+j:j}}),V},utils$9=utils$h,isURLSameOrigin$1=utils$9.isStandardBrowserEnv()?function(){var k=/(msie|trident)/i.test(navigator.userAgent),V=document.createElement("a"),z;function j(oe){var re=oe;return k&&(V.setAttribute("href",re),re=V.href),V.setAttribute("href",re),{href:V.href,protocol:V.protocol?V.protocol.replace(/:$/,""):"",host:V.host,search:V.search?V.search.replace(/^\?/,""):"",hash:V.hash?V.hash.replace(/^#/,""):"",hostname:V.hostname,port:V.port,pathname:V.pathname.charAt(0)==="/"?V.pathname:"/"+V.pathname}}return z=j(window.location.href),function(re){var ie=utils$9.isString(re)?j(re):re;return ie.protocol===z.protocol&&ie.host===z.host}}():function(){return function(){return!0}}(),AxiosError$3=AxiosError_1,utils$8=utils$h;function CanceledError$3($){AxiosError$3.call(this,$==null?"canceled":$,AxiosError$3.ERR_CANCELED),this.name="CanceledError"}utils$8.inherits(CanceledError$3,AxiosError$3,{__CANCEL__:!0});var CanceledError_1=CanceledError$3,parseProtocol$1=function(k){var V=/^([-+\w]{1,25})(:?\/\/|:)/.exec(k);return V&&V[1]||""},utils$7=utils$h,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath$1=buildFullPath$2,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,transitionalDefaults$1=transitional,AxiosError$2=AxiosError_1,CanceledError$2=CanceledError_1,parseProtocol=parseProtocol$1,xhr=function(k){return new Promise(function(z,j){var oe=k.data,re=k.headers,ie=k.responseType,ae;function he(){k.cancelToken&&k.cancelToken.unsubscribe(ae),k.signal&&k.signal.removeEventListener("abort",ae)}utils$7.isFormData(oe)&&utils$7.isStandardBrowserEnv()&&delete re["Content-Type"];var le=new XMLHttpRequest;if(k.auth){var ue=k.auth.username||"",de=k.auth.password?unescape(encodeURIComponent(k.auth.password)):"";re.Authorization="Basic "+btoa(ue+":"+de)}var pe=buildFullPath$1(k.baseURL,k.url);le.open(k.method.toUpperCase(),buildURL$1(pe,k.params,k.paramsSerializer),!0),le.timeout=k.timeout;function $e(){if(!!le){var Ie="getAllResponseHeaders"in le?parseHeaders(le.getAllResponseHeaders()):null,ze=!ie||ie==="text"||ie==="json"?le.responseText:le.response,Et={data:ze,status:le.status,statusText:le.statusText,headers:Ie,config:k,request:le};settle(function(Oe){z(Oe),he()},function(Oe){j(Oe),he()},Et),le=null}}if("onloadend"in le?le.onloadend=$e:le.onreadystatechange=function(){!le||le.readyState!==4||le.status===0&&!(le.responseURL&&le.responseURL.indexOf("file:")===0)||setTimeout($e)},le.onabort=function(){!le||(j(new AxiosError$2("Request aborted",AxiosError$2.ECONNABORTED,k,le)),le=null)},le.onerror=function(){j(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,k,le,le)),le=null},le.ontimeout=function(){var ze=k.timeout?"timeout of "+k.timeout+"ms exceeded":"timeout exceeded",Et=k.transitional||transitionalDefaults$1;k.timeoutErrorMessage&&(ze=k.timeoutErrorMessage),j(new AxiosError$2(ze,Et.clarifyTimeoutError?AxiosError$2.ETIMEDOUT:AxiosError$2.ECONNABORTED,k,le)),le=null},utils$7.isStandardBrowserEnv()){var _e=(k.withCredentials||isURLSameOrigin(pe))&&k.xsrfCookieName?cookies.read(k.xsrfCookieName):void 0;_e&&(re[k.xsrfHeaderName]=_e)}"setRequestHeader"in le&&utils$7.forEach(re,function(ze,Et){typeof oe=="undefined"&&Et.toLowerCase()==="content-type"?delete re[Et]:le.setRequestHeader(Et,ze)}),utils$7.isUndefined(k.withCredentials)||(le.withCredentials=!!k.withCredentials),ie&&ie!=="json"&&(le.responseType=k.responseType),typeof k.onDownloadProgress=="function"&&le.addEventListener("progress",k.onDownloadProgress),typeof k.onUploadProgress=="function"&&le.upload&&le.upload.addEventListener("progress",k.onUploadProgress),(k.cancelToken||k.signal)&&(ae=function(Ie){!le||(j(!Ie||Ie&&Ie.type?new CanceledError$2:Ie),le.abort(),le=null)},k.cancelToken&&k.cancelToken.subscribe(ae),k.signal&&(k.signal.aborted?ae():k.signal.addEventListener("abort",ae))),oe||(oe=null);var Ce=parseProtocol(pe);if(Ce&&["http","https","file"].indexOf(Ce)===-1){j(new AxiosError$2("Unsupported protocol "+Ce+":",AxiosError$2.ERR_BAD_REQUEST,k));return}le.send(oe)})},_null=null,utils$6=utils$h,normalizeHeaderName=normalizeHeaderName$1,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset($,k){!utils$6.isUndefined($)&&utils$6.isUndefined($["Content-Type"])&&($["Content-Type"]=k)}function getDefaultAdapter(){var $;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&($=xhr),$}function stringifySafely($,k,V){if(utils$6.isString($))try{return(k||JSON.parse)($),utils$6.trim($)}catch(z){if(z.name!=="SyntaxError")throw z}return(V||JSON.stringify)($)}var defaults$3={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function(k,V){if(normalizeHeaderName(V,"Accept"),normalizeHeaderName(V,"Content-Type"),utils$6.isFormData(k)||utils$6.isArrayBuffer(k)||utils$6.isBuffer(k)||utils$6.isStream(k)||utils$6.isFile(k)||utils$6.isBlob(k))return k;if(utils$6.isArrayBufferView(k))return k.buffer;if(utils$6.isURLSearchParams(k))return setContentTypeIfUnset(V,"application/x-www-form-urlencoded;charset=utf-8"),k.toString();var z=utils$6.isObject(k),j=V&&V["Content-Type"],oe;if((oe=utils$6.isFileList(k))||z&&j==="multipart/form-data"){var re=this.env&&this.env.FormData;return toFormData(oe?{"files[]":k}:k,re&&new re)}else if(z||j==="application/json")return setContentTypeIfUnset(V,"application/json"),stringifySafely(k);return k}],transformResponse:[function(k){var V=this.transitional||defaults$3.transitional,z=V&&V.silentJSONParsing,j=V&&V.forcedJSONParsing,oe=!z&&this.responseType==="json";if(oe||j&&utils$6.isString(k)&&k.length)try{return JSON.parse(k)}catch(re){if(oe)throw re.name==="SyntaxError"?AxiosError$1.from(re,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):re}return k}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_null},validateStatus:function(k){return k>=200&&k<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$6.forEach(["delete","get","head"],function(k){defaults$3.headers[k]={}});utils$6.forEach(["post","put","patch"],function(k){defaults$3.headers[k]=utils$6.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$5=utils$h,defaults$2=defaults_1,transformData$1=function(k,V,z){var j=this||defaults$2;return utils$5.forEach(z,function(re){k=re.call(j,k,V)}),k},isCancel$1=function(k){return!!(k&&k.__CANCEL__)},utils$4=utils$h,transformData=transformData$1,isCancel=isCancel$1,defaults$1=defaults_1,CanceledError$1=CanceledError_1;function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new CanceledError$1}var dispatchRequest$1=function(k){throwIfCancellationRequested(k),k.headers=k.headers||{},k.data=transformData.call(k,k.data,k.headers,k.transformRequest),k.headers=utils$4.merge(k.headers.common||{},k.headers[k.method]||{},k.headers),utils$4.forEach(["delete","get","head","post","put","patch","common"],function(j){delete k.headers[j]});var V=k.adapter||defaults$1.adapter;return V(k).then(function(j){return throwIfCancellationRequested(k),j.data=transformData.call(k,j.data,j.headers,k.transformResponse),j},function(j){return isCancel(j)||(throwIfCancellationRequested(k),j&&j.response&&(j.response.data=transformData.call(k,j.response.data,j.response.headers,k.transformResponse))),Promise.reject(j)})},utils$3=utils$h,mergeConfig$3=function(k,V){V=V||{};var z={};function j(le,ue){return utils$3.isPlainObject(le)&&utils$3.isPlainObject(ue)?utils$3.merge(le,ue):utils$3.isPlainObject(ue)?utils$3.merge({},ue):utils$3.isArray(ue)?ue.slice():ue}function oe(le){if(utils$3.isUndefined(V[le])){if(!utils$3.isUndefined(k[le]))return j(void 0,k[le])}else return j(k[le],V[le])}function re(le){if(!utils$3.isUndefined(V[le]))return j(void 0,V[le])}function ie(le){if(utils$3.isUndefined(V[le])){if(!utils$3.isUndefined(k[le]))return j(void 0,k[le])}else return j(void 0,V[le])}function ae(le){if(le in V)return j(k[le],V[le]);if(le in k)return j(void 0,k[le])}var he={url:re,method:re,data:re,baseURL:ie,transformRequest:ie,transformResponse:ie,paramsSerializer:ie,timeout:ie,timeoutMessage:ie,withCredentials:ie,adapter:ie,responseType:ie,xsrfCookieName:ie,xsrfHeaderName:ie,onUploadProgress:ie,onDownloadProgress:ie,decompress:ie,maxContentLength:ie,maxBodyLength:ie,beforeRedirect:ie,transport:ie,httpAgent:ie,httpsAgent:ie,cancelToken:ie,socketPath:ie,responseEncoding:ie,validateStatus:ae};return utils$3.forEach(Object.keys(k).concat(Object.keys(V)),function(ue){var de=he[ue]||oe,pe=de(ue);utils$3.isUndefined(pe)&&de!==ae||(z[ue]=pe)}),z},data={version:"0.27.2"},VERSION$2=data.version,AxiosError=AxiosError_1,validators$2={};["object","boolean","number","function","string","symbol"].forEach(function($,k){validators$2[$]=function(z){return typeof z===$||"a"+(k<1?"n ":" ")+$}});var deprecatedWarnings={};validators$2.transitional=function(k,V,z){function j(oe,re){return"[Axios v"+VERSION$2+"] Transitional option '"+oe+"'"+re+(z?". "+z:"")}return function(oe,re,ie){if(k===!1)throw new AxiosError(j(re," has been removed"+(V?" in "+V:"")),AxiosError.ERR_DEPRECATED);return V&&!deprecatedWarnings[re]&&(deprecatedWarnings[re]=!0,console.warn(j(re," has been deprecated since v"+V+" and will be removed in the near future"))),k?k(oe,re,ie):!0}};function assertOptions($,k,V){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var z=Object.keys($),j=z.length;j-- >0;){var oe=z[j],re=k[oe];if(re){var ie=$[oe],ae=ie===void 0||re(ie,oe,$);if(ae!==!0)throw new AxiosError("option "+oe+" must be "+ae,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(V!==!0)throw new AxiosError("Unknown option "+oe,AxiosError.ERR_BAD_OPTION)}}var validator$1={assertOptions,validators:validators$2},utils$2=utils$h,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$2=mergeConfig$3,buildFullPath=buildFullPath$2,validator=validator$1,validators$1=validator.validators;function Axios$1($){this.defaults=$,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(k,V){typeof k=="string"?(V=V||{},V.url=k):V=k||{},V=mergeConfig$2(this.defaults,V),V.method?V.method=V.method.toLowerCase():this.defaults.method?V.method=this.defaults.method.toLowerCase():V.method="get";var z=V.transitional;z!==void 0&&validator.assertOptions(z,{silentJSONParsing:validators$1.transitional(validators$1.boolean),forcedJSONParsing:validators$1.transitional(validators$1.boolean),clarifyTimeoutError:validators$1.transitional(validators$1.boolean)},!1);var j=[],oe=!0;this.interceptors.request.forEach(function(pe){typeof pe.runWhen=="function"&&pe.runWhen(V)===!1||(oe=oe&&pe.synchronous,j.unshift(pe.fulfilled,pe.rejected))});var re=[];this.interceptors.response.forEach(function(pe){re.push(pe.fulfilled,pe.rejected)});var ie;if(!oe){var ae=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(ae,j),ae=ae.concat(re),ie=Promise.resolve(V);ae.length;)ie=ie.then(ae.shift(),ae.shift());return ie}for(var he=V;j.length;){var le=j.shift(),ue=j.shift();try{he=le(he)}catch(de){ue(de);break}}try{ie=dispatchRequest(he)}catch(de){return Promise.reject(de)}for(;re.length;)ie=ie.then(re.shift(),re.shift());return ie};Axios$1.prototype.getUri=function(k){k=mergeConfig$2(this.defaults,k);var V=buildFullPath(k.baseURL,k.url);return buildURL(V,k.params,k.paramsSerializer)};utils$2.forEach(["delete","get","head","options"],function(k){Axios$1.prototype[k]=function(V,z){return this.request(mergeConfig$2(z||{},{method:k,url:V,data:(z||{}).data}))}});utils$2.forEach(["post","put","patch"],function(k){function V(z){return function(oe,re,ie){return this.request(mergeConfig$2(ie||{},{method:k,headers:z?{"Content-Type":"multipart/form-data"}:{},url:oe,data:re}))}}Axios$1.prototype[k]=V(),Axios$1.prototype[k+"Form"]=V(!0)});var Axios_1=Axios$1,CanceledError=CanceledError_1;function CancelToken($){if(typeof $!="function")throw new TypeError("executor must be a function.");var k;this.promise=new Promise(function(j){k=j});var V=this;this.promise.then(function(z){if(!!V._listeners){var j,oe=V._listeners.length;for(j=0;j0){if(++k>=HOT_COUNT)return arguments[0]}else k=0;return $.apply(void 0,arguments)}}function constant($){return function(){return $}}var defineProperty=function(){try{var $=getNative(Object,"defineProperty");return $({},"",{}),$}catch{}}(),defineProperty$1=defineProperty,baseSetToString=defineProperty$1?function($,k){return defineProperty$1($,"toString",{configurable:!0,enumerable:!1,value:constant(k),writable:!0})}:identity,baseSetToString$1=baseSetToString,setToString=shortOut(baseSetToString$1),setToString$1=setToString;function arrayEach($,k){for(var V=-1,z=$==null?0:$.length;++V-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,k){var V=typeof $;return k=k==null?MAX_SAFE_INTEGER$1:k,!!k&&(V=="number"||V!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$-1&&$%1==0&&$<=MAX_SAFE_INTEGER}function isArrayLike($){return $!=null&&isLength($.length)&&!isFunction$1($)}var objectProto$a=Object.prototype;function isPrototype($){var k=$&&$.constructor,V=typeof k=="function"&&k.prototype||objectProto$a;return $===V}function baseTimes($,k){for(var V=-1,z=Array($);++V<$;)z[V]=k(V);return z}var argsTag$3="[object Arguments]";function baseIsArguments($){return isObjectLike($)&&baseGetTag($)==argsTag$3}var objectProto$9=Object.prototype,hasOwnProperty$a=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function($){return isObjectLike($)&&hasOwnProperty$a.call($,"callee")&&!propertyIsEnumerable$1.call($,"callee")},isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,isBuffer$1=isBuffer,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$3="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray($){return isObjectLike($)&&isLength($.length)&&!!typedArrayTags[baseGetTag($)]}function baseUnary($){return function(k){return $(k)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var $=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return $||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeUtil$1=nodeUtil,nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray$1=isTypedArray,objectProto$8=Object.prototype,hasOwnProperty$9=objectProto$8.hasOwnProperty;function arrayLikeKeys($,k){var V=isArray$2($),z=!V&&isArguments$1($),j=!V&&!z&&isBuffer$1($),oe=!V&&!z&&!j&&isTypedArray$1($),re=V||z||j||oe,ie=re?baseTimes($.length,String):[],ae=ie.length;for(var he in $)(k||hasOwnProperty$9.call($,he))&&!(re&&(he=="length"||j&&(he=="offset"||he=="parent")||oe&&(he=="buffer"||he=="byteLength"||he=="byteOffset")||isIndex(he,ae)))&&ie.push(he);return ie}function overArg($,k){return function(V){return $(k(V))}}var nativeKeys=overArg(Object.keys,Object),nativeKeys$1=nativeKeys,objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty;function baseKeys($){if(!isPrototype($))return nativeKeys$1($);var k=[];for(var V in Object($))hasOwnProperty$8.call($,V)&&V!="constructor"&&k.push(V);return k}function keys($){return isArrayLike($)?arrayLikeKeys($):baseKeys($)}function nativeKeysIn($){var k=[];if($!=null)for(var V in Object($))k.push(V);return k}var objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function baseKeysIn($){if(!isObject$3($))return nativeKeysIn($);var k=isPrototype($),V=[];for(var z in $)z=="constructor"&&(k||!hasOwnProperty$7.call($,z))||V.push(z);return V}function keysIn($){return isArrayLike($)?arrayLikeKeys($,!0):baseKeysIn($)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey($,k){if(isArray$2($))return!1;var V=typeof $;return V=="number"||V=="symbol"||V=="boolean"||$==null||isSymbol$1($)?!0:reIsPlainProp.test($)||!reIsDeepProp.test($)||k!=null&&$ in Object(k)}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete($){var k=this.has($)&&delete this.__data__[$];return this.size-=k?1:0,k}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function hashGet($){var k=this.__data__;if(nativeCreate$1){var V=k[$];return V===HASH_UNDEFINED$2?void 0:V}return hasOwnProperty$6.call(k,$)?k[$]:void 0}var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function hashHas($){var k=this.__data__;return nativeCreate$1?k[$]!==void 0:hasOwnProperty$5.call(k,$)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet($,k){var V=this.__data__;return this.size+=this.has($)?0:1,V[$]=nativeCreate$1&&k===void 0?HASH_UNDEFINED$1:k,this}function Hash($){var k=-1,V=$==null?0:$.length;for(this.clear();++k-1}function listCacheSet($,k){var V=this.__data__,z=assocIndexOf(V,$);return z<0?(++this.size,V.push([$,k])):V[z][1]=k,this}function ListCache($){var k=-1,V=$==null?0:$.length;for(this.clear();++k0&&V(ie)?k>1?baseFlatten(ie,k-1,V,z,j):arrayPush(j,ie):z||(j[j.length]=ie)}return j}function flatten($){var k=$==null?0:$.length;return k?baseFlatten($,1):[]}function flatRest($){return setToString$1(overRest($,void 0,flatten),$+"")}var getPrototype=overArg(Object.getPrototypeOf,Object),getPrototype$1=getPrototype;function castArray$1(){if(!arguments.length)return[];var $=arguments[0];return isArray$2($)?$:[$]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete($){var k=this.__data__,V=k.delete($);return this.size=k.size,V}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,k){var V=this.__data__;if(V instanceof ListCache){var z=V.__data__;if(!Map$2||z.lengthie))return!1;var he=oe.get($),le=oe.get(k);if(he&&le)return he==k&&le==$;var ue=-1,de=!0,pe=V&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(oe.set($,k),oe.set(k,$);++ue=k||Dt<0||ue&&At>=oe}function Ie(){var Ue=now$1();if(Ce(Ue))return ze(Ue);ie=setTimeout(Ie,_e(Ue))}function ze(Ue){return ie=void 0,de&&z?pe(Ue):(z=j=void 0,re)}function Et(){ie!==void 0&&clearTimeout(ie),he=0,z=ae=j=ie=void 0}function qe(){return ie===void 0?re:ze(now$1())}function Oe(){var Ue=now$1(),Dt=Ce(Ue);if(z=arguments,j=this,ae=Ue,Dt){if(ie===void 0)return $e(ae);if(ue)return clearTimeout(ie),ie=setTimeout(Ie,k),pe(ae)}return ie===void 0&&(ie=setTimeout(Ie,k)),re}return Oe.cancel=Et,Oe.flush=qe,Oe}function isArrayLikeObject($){return isObjectLike($)&&isArrayLike($)}function arrayIncludesWith($,k,V){for(var z=-1,j=$==null?0:$.length;++z=LARGE_ARRAY_SIZE){var he=k?null:createSet$1($);if(he)return setToArray(he);re=!1,j=cacheHas,ae=new SetCache}else ae=k?[]:ie;e:for(;++zgetComputedStyle($).position==="fixed"?!1:$.offsetParent!==null,obtainAllFocusableElements$1=$=>Array.from($.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(k=>isFocusable(k)&&isVisible(k)),isFocusable=$=>{if($.tabIndex>0||$.tabIndex===0&&$.getAttribute("tabIndex")!==null)return!0;if($.disabled)return!1;switch($.nodeName){case"A":return!!$.href&&$.rel!=="ignore";case"INPUT":return!($.type==="hidden"||$.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function($,k,...V){let z;k.includes("mouse")||k.includes("click")?z="MouseEvents":k.includes("key")?z="KeyboardEvent":z="HTMLEvents";const j=document.createEvent(z);return j.initEvent(k,...V),$.dispatchEvent(j),$},isLeaf=$=>!$.getAttribute("aria-owns"),getSibling=($,k,V)=>{const{parentNode:z}=$;if(!z)return null;const j=z.querySelectorAll(V),oe=Array.prototype.indexOf.call(j,$);return j[oe+k]||null},focusNode=$=>{!$||($.focus(),!isLeaf($)&&$.click())},on$1=($,k,V,z=!1)=>{$&&k&&V&&($==null||$.addEventListener(k,V,z))},off=($,k,V,z=!1)=>{$&&k&&V&&($==null||$.removeEventListener(k,V,z))},once=($,k,V)=>{const z=function(...j){V&&V.apply(this,j),off($,k,z)};on$1($,k,z)},composeEventHandlers=($,k,{checkForDefaultPrevented:V=!0}={})=>j=>{const oe=$==null?void 0:$(j);if(V===!1||!oe)return k==null?void 0:k(j)},whenMouse=$=>k=>k.pointerType==="mouse"?$(k):void 0;var __defProp$8=Object.defineProperty,__defProps$5=Object.defineProperties,__getOwnPropDescs$5=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$a=Object.getOwnPropertySymbols,__hasOwnProp$a=Object.prototype.hasOwnProperty,__propIsEnum$a=Object.prototype.propertyIsEnumerable,__defNormalProp$8=($,k,V)=>k in $?__defProp$8($,k,{enumerable:!0,configurable:!0,writable:!0,value:V}):$[k]=V,__spreadValues$8=($,k)=>{for(var V in k||(k={}))__hasOwnProp$a.call(k,V)&&__defNormalProp$8($,V,k[V]);if(__getOwnPropSymbols$a)for(var V of __getOwnPropSymbols$a(k))__propIsEnum$a.call(k,V)&&__defNormalProp$8($,V,k[V]);return $},__spreadProps$5=($,k)=>__defProps$5($,__getOwnPropDescs$5(k));function computedEager($,k){var V;const z=shallowRef();return watchEffect(()=>{z.value=$()},__spreadProps$5(__spreadValues$8({},k),{flush:(V=k==null?void 0:k.flush)!=null?V:"sync"})),readonly(z)}function tryOnScopeDispose($){return getCurrentScope()?(onScopeDispose($),!0):!1}var _a;const isClient=typeof window!="undefined",isBoolean$1=$=>typeof $=="boolean",isNumber$1=$=>typeof $=="number",isString$1=$=>typeof $=="string",noop=()=>{};isClient&&((_a=window==null?void 0:window.navigator)==null?void 0:_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function createFilterWrapper($,k){function V(...z){$(()=>k.apply(this,z),{fn:k,thisArg:this,args:z})}return V}function debounceFilter($,k={}){let V,z;return oe=>{const re=unref($),ie=unref(k.maxWait);if(V&&clearTimeout(V),re<=0||ie!==void 0&&ie<=0)return z&&(clearTimeout(z),z=null),oe();ie&&!z&&(z=setTimeout(()=>{V&&clearTimeout(V),z=null,oe()},ie)),V=setTimeout(()=>{z&&clearTimeout(z),z=null,oe()},re)}}function throttleFilter($,k=!0,V=!0){let z=0,j,oe=!0;const re=()=>{j&&(clearTimeout(j),j=void 0)};return ae=>{const he=unref($),le=Date.now()-z;if(re(),he<=0)return z=Date.now(),ae();le>he&&(V||!oe)?(z=Date.now(),ae()):k&&(j=setTimeout(()=>{z=Date.now(),oe=!0,re(),ae()},he)),!V&&!j&&(j=setTimeout(()=>oe=!0,he)),oe=!1}}function useDebounceFn($,k=200,V={}){return createFilterWrapper(debounceFilter(k,V),$)}function refDebounced($,k=200,V={}){if(k<=0)return $;const z=ref($.value),j=useDebounceFn(()=>{z.value=$.value},k,V);return watch$1($,()=>j()),z}function useThrottleFn($,k=200,V=!0,z=!0){return createFilterWrapper(throttleFilter(k,V,z),$)}function tryOnMounted($,k=!0){getCurrentInstance()?onMounted($):k?$():nextTick($)}function useTimeoutFn($,k,V={}){const{immediate:z=!0}=V,j=ref(!1);let oe=null;function re(){oe&&(clearTimeout(oe),oe=null)}function ie(){j.value=!1,re()}function ae(...he){re(),j.value=!0,oe=setTimeout(()=>{j.value=!1,oe=null,$(...he)},unref(k))}return z&&(j.value=!0,isClient&&ae()),tryOnScopeDispose(ie),{isPending:j,start:ae,stop:ie}}function unrefElement($){var k;const V=unref($);return(k=V==null?void 0:V.$el)!=null?k:V}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...$){let k,V,z,j;if(isString$1($[0])?([V,z,j]=$,k=defaultWindow):[k,V,z,j]=$,!k)return noop;let oe=noop;const re=watch$1(()=>unrefElement(k),ae=>{oe(),ae&&(ae.addEventListener(V,z,j),oe=()=>{ae.removeEventListener(V,z,j),oe=noop})},{immediate:!0,flush:"post"}),ie=()=>{re(),oe()};return tryOnScopeDispose(ie),ie}function onClickOutside($,k,V={}){const{window:z=defaultWindow,ignore:j,capture:oe=!0}=V;if(!z)return;const re=ref(!0);let ie;const ae=ue=>{z.clearTimeout(ie);const de=unrefElement($),pe=ue.composedPath();!de||de===ue.target||pe.includes(de)||!re.value||j&&j.length>0&&j.some($e=>{const _e=unrefElement($e);return _e&&(ue.target===_e||pe.includes(_e))})||k(ue)},he=[useEventListener(z,"click",ae,{passive:!0,capture:oe}),useEventListener(z,"pointerdown",ue=>{const de=unrefElement($);re.value=!!de&&!ue.composedPath().includes(de)},{passive:!0}),useEventListener(z,"pointerup",ue=>{ie=z.setTimeout(()=>ae(ue),50)},{passive:!0})];return()=>he.forEach(ue=>ue())}const _global=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};_global[globalKey];function useDocumentVisibility({document:$=defaultDocument}={}){if(!$)return ref("visible");const k=ref($.visibilityState);return useEventListener($,"visibilitychange",()=>{k.value=$.visibilityState}),k}var __getOwnPropSymbols$c=Object.getOwnPropertySymbols,__hasOwnProp$c=Object.prototype.hasOwnProperty,__propIsEnum$c=Object.prototype.propertyIsEnumerable,__objRest$2=($,k)=>{var V={};for(var z in $)__hasOwnProp$c.call($,z)&&k.indexOf(z)<0&&(V[z]=$[z]);if($!=null&&__getOwnPropSymbols$c)for(var z of __getOwnPropSymbols$c($))k.indexOf(z)<0&&__propIsEnum$c.call($,z)&&(V[z]=$[z]);return V};function useResizeObserver($,k,V={}){const z=V,{window:j=defaultWindow}=z,oe=__objRest$2(z,["window"]);let re;const ie=j&&"ResizeObserver"in j,ae=()=>{re&&(re.disconnect(),re=void 0)},he=watch$1(()=>unrefElement($),ue=>{ae(),ie&&j&&ue&&(re=new ResizeObserver(k),re.observe(ue,oe))},{immediate:!0,flush:"post"}),le=()=>{ae(),he()};return tryOnScopeDispose(le),{isSupported:ie,stop:le}}function useElementBounding($,k={}){const{reset:V=!0,windowResize:z=!0,windowScroll:j=!0,immediate:oe=!0}=k,re=ref(0),ie=ref(0),ae=ref(0),he=ref(0),le=ref(0),ue=ref(0),de=ref(0),pe=ref(0);function $e(){const _e=unrefElement($);if(!_e){V&&(re.value=0,ie.value=0,ae.value=0,he.value=0,le.value=0,ue.value=0,de.value=0,pe.value=0);return}const Ce=_e.getBoundingClientRect();re.value=Ce.height,ie.value=Ce.bottom,ae.value=Ce.left,he.value=Ce.right,le.value=Ce.top,ue.value=Ce.width,de.value=Ce.x,pe.value=Ce.y}return useResizeObserver($,$e),watch$1(()=>unrefElement($),_e=>!_e&&$e()),j&&useEventListener("scroll",$e,{passive:!0}),z&&useEventListener("resize",$e,{passive:!0}),tryOnMounted(()=>{oe&&$e()}),{height:re,bottom:ie,left:ae,right:he,top:le,width:ue,x:de,y:pe,update:$e}}function useWindowFocus({window:$=defaultWindow}={}){if(!$)return ref(!1);const k=ref($.document.hasFocus());return useEventListener($,"blur",()=>{k.value=!1}),useEventListener($,"focus",()=>{k.value=!0}),k}function useWindowSize({window:$=defaultWindow,initialWidth:k=1/0,initialHeight:V=1/0}={}){const z=ref(k),j=ref(V),oe=()=>{$&&(z.value=$.innerWidth,j.value=$.innerHeight)};return oe(),tryOnMounted(oe),useEventListener("resize",oe,{passive:!0}),{width:z,height:j}}const isInContainer=($,k)=>{if(!isClient||!$||!k)return!1;const V=$.getBoundingClientRect();let z;return k instanceof Element?z=k.getBoundingClientRect():z={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},V.topz.top&&V.right>z.left&&V.left{let k=0,V=$;for(;V;)k+=V.offsetTop,V=V.offsetParent;return k},getOffsetTopDistance=($,k)=>Math.abs(getOffsetTop($)-getOffsetTop(k)),getClientXY=$=>{let k,V;return $.type==="touchend"?(V=$.changedTouches[0].clientY,k=$.changedTouches[0].clientX):$.type.startsWith("touch")?(V=$.touches[0].clientY,k=$.touches[0].clientX):(V=$.clientY,k=$.clientX),{clientX:k,clientY:V}},resizeHandler=function($){for(const k of $){const V=k.target.__resizeListeners__||[];V.length&&V.forEach(z=>{z()})}},addResizeListener=function($,k){!isClient||!$||($.__resizeListeners__||($.__resizeListeners__=[],$.__ro__=new ResizeObserver(resizeHandler),$.__ro__.observe($)),$.__resizeListeners__.push(k))},removeResizeListener=function($,k){var V;!$||!$.__resizeListeners__||($.__resizeListeners__.splice($.__resizeListeners__.indexOf(k),1),$.__resizeListeners__.length||(V=$.__ro__)==null||V.disconnect())},isUndefined=$=>$===void 0,isEmpty=$=>!$&&$!==0||isArray$4($)&&$.length===0||isObject$5($)&&!Object.keys($).length,isElement=$=>typeof Element=="undefined"?!1:$ instanceof Element,isPropAbsent=$=>isNil($),escapeStringRegexp=($="")=>$.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),keysOf=$=>Object.keys($),entriesOf=$=>Object.entries($),getProp=($,k,V)=>({get value(){return get($,k,V)},set value(z){set($,k,z)}});class ElementPlusError extends Error{constructor(k){super(k),this.name="ElementPlusError"}}function throwError($,k){throw new ElementPlusError(`[${$}] ${k}`)}function debugWarn($,k){}const classNameToArray=($="")=>$.split(" ").filter(k=>!!k.trim()),hasClass=($,k)=>{if(!$||!k)return!1;if(k.includes(" "))throw new Error("className should not contain space.");return $.classList.contains(k)},addClass=($,k)=>{!$||!k.trim()||$.classList.add(...classNameToArray(k))},removeClass=($,k)=>{!$||!k.trim()||$.classList.remove(...classNameToArray(k))},getStyle=($,k)=>{var V;if(!isClient||!$||!k)return"";camelize(k);try{const z=$.style[k];if(z)return z;const j=(V=document.defaultView)==null?void 0:V.getComputedStyle($,"");return j?j[k]:""}catch{return $.style[k]}};function addUnit($,k="px"){if(!$)return"";if(isString$3($))return $;if(isNumber$1($))return`${$}${k}`}const isScroll=($,k)=>{if(!isClient)return!1;const V={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(k)],z=getStyle($,V);return["scroll","auto","overlay"].some(j=>z.includes(j))},getScrollContainer=($,k)=>{if(!isClient)return;let V=$;for(;V;){if([window,document,document.documentElement].includes(V))return window;if(isScroll(V,k))return V;V=V.parentNode}return V};let scrollBarWidth;const getScrollBarWidth=()=>{var $;if(!isClient)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const k=document.createElement("div");k.className="el-scrollbar__wrap",k.style.visibility="hidden",k.style.width="100px",k.style.position="absolute",k.style.top="-9999px",document.body.appendChild(k);const V=k.offsetWidth;k.style.overflow="scroll";const z=document.createElement("div");z.style.width="100%",k.appendChild(z);const j=z.offsetWidth;return($=k.parentNode)==null||$.removeChild(k),scrollBarWidth=V-j,scrollBarWidth};function scrollIntoView($,k){if(!isClient)return;if(!k){$.scrollTop=0;return}const V=[];let z=k.offsetParent;for(;z!==null&&$!==z&&$.contains(z);)V.push(z),z=z.offsetParent;const j=k.offsetTop+V.reduce((ae,he)=>ae+he.offsetTop,0),oe=j+k.offsetHeight,re=$.scrollTop,ie=re+$.clientHeight;jie&&($.scrollTop=oe-$.clientHeight)}const wrapperKey=Symbol(),propKey="__elPropsReservedKey";function buildProp($,k){if(!isObject$5($)||!!$[propKey])return $;const{values:V,required:z,default:j,type:oe,validator:re}=$,ie=V||re?he=>{let le=!1,ue=[];if(V&&(ue=Array.from(V),hasOwn$2($,"default")&&ue.push(j),le||(le=ue.includes(he))),re&&(le||(le=re(he))),!le&&ue.length>0){const de=[...new Set(ue)].map(pe=>JSON.stringify(pe)).join(", ");warn$1(`Invalid prop: validation failed${k?` for prop "${k}"`:""}. Expected one of [${de}], got value ${JSON.stringify(he)}.`)}return le}:void 0,ae={type:isObject$5(oe)&&Object.getOwnPropertySymbols(oe).includes(wrapperKey)?oe[wrapperKey]:oe,required:!!z,validator:ie,[propKey]:!0};return hasOwn$2($,"default")&&(ae.default=j),ae}const buildProps=$=>fromPairs(Object.entries($).map(([k,V])=>[k,buildProp(V,k)])),definePropType=$=>({[wrapperKey]:$}),iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close$2},TypeComponents={Close:close$2,SuccessFilled:successFilled,InfoFilled:infoFilled,WarningFilled:warningFilled,CircleCloseFilled:circleCloseFilled},TypeComponentsMap={success:successFilled,warning:warningFilled,error:circleCloseFilled,info:infoFilled},ValidateComponentsMap={validating:loading$1,success:circleCheck,error:circleClose},withInstall=($,k)=>{if($.install=V=>{for(const z of[$,...Object.values(k!=null?k:{})])V.component(z.name,z)},k)for(const[V,z]of Object.entries(k))$[V]=z;return $},withInstallFunction=($,k)=>($.install=V=>{$._context=V._context,V.config.globalProperties[k]=$},$),withNoopInstall=$=>($.install=NOOP,$),composeRefs=(...$)=>k=>{$.forEach(V=>{isFunction$3(V)?V(k):V.value=k})},EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",componentSizes=["","default","small","large"],componentSizeMap={large:40,default:32,small:24},getComponentSize=$=>componentSizeMap[$||"default"],isValidComponentSize=$=>["",...componentSizes].includes($),isValidDatePickType=$=>[...datePickTypes].includes($);var PatchFlags=($=>($[$.TEXT=1]="TEXT",$[$.CLASS=2]="CLASS",$[$.STYLE=4]="STYLE",$[$.PROPS=8]="PROPS",$[$.FULL_PROPS=16]="FULL_PROPS",$[$.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",$[$.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",$[$.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",$[$.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",$[$.NEED_PATCH=512]="NEED_PATCH",$[$.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",$[$.HOISTED=-1]="HOISTED",$[$.BAIL=-2]="BAIL",$))(PatchFlags||{});function isFragment($){return isVNode($)&&$.type===Fragment}function isComment($){return isVNode($)&&$.type===Comment}function isValidElementNode($){return isVNode($)&&!isFragment($)&&!isComment($)}const getNormalizedProps=$=>{if(!isVNode($))return{};const k=$.props||{},V=(isVNode($.type)?$.type.props:void 0)||{},z={};return Object.keys(V).forEach(j=>{hasOwn$2(V[j],"default")&&(z[j]=V[j].default)}),Object.keys(k).forEach(j=>{z[camelize(j)]=k[j]}),z},ensureOnlyChild=$=>{if(!isArray$4($)||$.length>1)throw new Error("expect to receive a single Vue element child");return $[0]},cubic=$=>$**3,easeInOutCubic=$=>$<.5?cubic($*2)/2:1-cubic((1-$)*2)/2,unique=$=>[...new Set($)],castArray=$=>!$&&$!==0?[]:Array.isArray($)?$:[$],isFirefox=()=>isClient&&/firefox/i.test(window.navigator.userAgent),isKorean=$=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test($),rAF=$=>isClient?window.requestAnimationFrame($):setTimeout($,16),cAF=$=>isClient?window.cancelAnimationFrame($):clearTimeout($),generateId=()=>Math.floor(Math.random()*1e4),mutable=$=>$,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=($={})=>{const{excludeListeners:k=!1,excludeKeys:V=[]}=$,z=V.concat(DEFAULT_EXCLUDE_KEYS),j=getCurrentInstance();return j?computed(()=>{var oe;return fromPairs(Object.entries((oe=j.proxy)==null?void 0:oe.$attrs).filter(([re])=>!z.includes(re)&&!(k&&LISTENER_PREFIX.test(re))))}):computed(()=>({}))},breadcrumbKey=Symbol("breadcrumbKey"),buttonGroupContextKey=Symbol("buttonGroupContextKey"),carouselContextKey=Symbol("carouselContextKey"),collapseContextKey=Symbol("collapseContextKey"),configProviderContextKey=Symbol(),dialogInjectionKey=Symbol("dialogInjectionKey"),formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),elPaginationKey=Symbol("elPaginationKey"),radioGroupKey=Symbol("radioGroupKey"),rowContextKey=Symbol("rowContextKey"),scrollbarContextKey=Symbol("scrollbarContextKey"),tabsRootContextKey=Symbol("tabsRootContextKey"),uploadContextKey=Symbol("uploadContextKey"),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),tooltipV2RootKey=Symbol("tooltipV2"),tooltipV2ContentKey=Symbol("tooltipV2Content"),TOOLTIP_V2_OPEN="tooltip_v2.open",useProp=$=>{const k=getCurrentInstance();return computed(()=>{var V,z;return(z=(V=k.proxy)==null?void 0:V.$props[$])!=null?z:void 0})},globalConfig=ref();function useGlobalConfig($,k=void 0){const V=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return $?computed(()=>{var z,j;return(j=(z=V.value)==null?void 0:z[$])!=null?j:k}):V}const provideGlobalConfig=($,k,V=!1)=>{var z;const j=!!getCurrentInstance(),oe=j?useGlobalConfig():void 0,re=(z=k==null?void 0:k.provide)!=null?z:j?provide:void 0;if(!re)return;const ie=computed(()=>{const ae=unref($);return oe!=null&&oe.value?mergeConfig(oe.value,ae):ae});return re(configProviderContextKey,ie),(V||!globalConfig.value)&&(globalConfig.value=ie.value),ie},mergeConfig=($,k)=>{var V;const z=[...new Set([...keysOf($),...keysOf(k)])],j={};for(const oe of z)j[oe]=(V=k[oe])!=null?V:$[oe];return j},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),useSize=($,k={})=>{const V=ref(void 0),z=k.prop?V:useProp("size"),j=k.global?V:useGlobalConfig("size"),oe=k.form?{size:void 0}:inject(formContextKey,void 0),re=k.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>z.value||unref($)||(re==null?void 0:re.size)||(oe==null?void 0:oe.size)||j.value||"")},useDisabled$1=$=>{const k=useProp("disabled"),V=inject(formContextKey,void 0);return computed(()=>k.value||unref($)||(V==null?void 0:V.disabled)||!1)},useDraggable=($,k,V)=>{let z={offsetX:0,offsetY:0};const j=ie=>{const ae=ie.clientX,he=ie.clientY,{offsetX:le,offsetY:ue}=z,de=$.value.getBoundingClientRect(),pe=de.left,$e=de.top,_e=de.width,Ce=de.height,Ie=document.documentElement.clientWidth,ze=document.documentElement.clientHeight,Et=-pe+le,qe=-$e+ue,Oe=Ie-pe-_e+le,Ue=ze-$e-Ce+ue,Dt=Lt=>{const kt=Math.min(Math.max(le+Lt.clientX-ae,Et),Oe),Pt=Math.min(Math.max(ue+Lt.clientY-he,qe),Ue);z={offsetX:kt,offsetY:Pt},$.value.style.transform=`translate(${addUnit(kt)}, ${addUnit(Pt)})`},At=()=>{document.removeEventListener("mousemove",Dt),document.removeEventListener("mouseup",At)};document.addEventListener("mousemove",Dt),document.addEventListener("mouseup",At)},oe=()=>{k.value&&$.value&&k.value.addEventListener("mousedown",j)},re=()=>{k.value&&$.value&&k.value.removeEventListener("mousedown",j)};onMounted(()=>{watchEffect(()=>{V.value?oe():re()})}),onBeforeUnmount(()=>{re()})},useFocus=$=>({focus:()=>{var k,V;(V=(k=$.value)==null?void 0:k.focus)==null||V.call(k)}}),defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useId=$=>{const k=inject(ID_INJECTION_KEY,defaultIdInjection);return computed(()=>unref($)||`el-id-${k.prefix}-${k.current++}`)},useFormItem=()=>{const $=inject(formContextKey,void 0),k=inject(formItemContextKey,void 0);return{form:$,formItem:k}},useFormItemInputId=($,{formItemContext:k,disableIdGeneration:V,disableIdManagement:z})=>{V||(V=ref(!1)),z||(z=ref(!1));const j=ref();let oe;const re=computed(()=>{var ie;return!!(!$.label&&k&&k.inputIds&&((ie=k.inputIds)==null?void 0:ie.length)<=1)});return onMounted(()=>{oe=watch$1([toRef($,"id"),V],([ie,ae])=>{const he=ie!=null?ie:ae?void 0:useId().value;he!==j.value&&(k!=null&&k.removeInputId&&(j.value&&k.removeInputId(j.value),!(z!=null&&z.value)&&!ae&&he&&k.addInputId(he)),j.value=he)},{immediate:!0})}),onUnmounted(()=>{oe&&oe(),k!=null&&k.removeInputId&&j.value&&k.removeInputId(j.value)}),{isLabeledByFormItem:re,inputId:j}};var English={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const buildTranslator=$=>(k,V)=>translate$1(k,V,unref($)),translate$1=($,k,V)=>get(V,$,$).replace(/\{(\w+)\}/g,(z,j)=>{var oe;return`${(oe=k==null?void 0:k[j])!=null?oe:`{${j}}`}`}),buildLocaleContext=$=>{const k=computed(()=>unref($).name),V=isRef($)?$:ref($);return{lang:k,locale:V,t:buildTranslator($)}},useLocale=()=>{const $=useGlobalConfig("locale");return buildLocaleContext(computed(()=>$.value||English))},useLockscreen=$=>{if(isRef($)||throwError("[useLockscreen]","You need to pass a ref param to this function"),!isClient||hasClass(document.body,"el-popup-parent--hidden"))return;let k=0,V=!1,z="0",j=0;const oe=()=>{removeClass(document.body,"el-popup-parent--hidden"),V&&(document.body.style.paddingRight=z)};watch$1($,re=>{if(!re){oe();return}V=!hasClass(document.body,"el-popup-parent--hidden"),V&&(z=document.body.style.paddingRight,j=Number.parseInt(getStyle(document.body,"paddingRight"),10)),k=getScrollBarWidth();const ie=document.documentElement.clientHeight0&&(ie||ae==="scroll")&&V&&(document.body.style.paddingRight=`${j+k}px`),addClass(document.body,"el-popup-parent--hidden")}),onScopeDispose(()=>oe())},modalStack=[],closeModal=$=>{modalStack.length!==0&&$.code===EVENT_CODE.esc&&($.stopPropagation(),modalStack[modalStack.length-1].handleClose())},useModal=($,k)=>{watch$1(k,V=>{V?modalStack.push($):modalStack.splice(modalStack.indexOf($),1)})};isClient&&useEventListener(document,"keydown",closeModal);const _prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=$=>{const k={[$]:_prop,[`onUpdate:${$}`]:_event},V=[`update:${$}`];return{useModelToggle:({indicator:j,shouldHideWhenRouteChanges:oe,shouldProceed:re,onShow:ie,onHide:ae})=>{const he=getCurrentInstance(),le=he.props,{emit:ue}=he,de=`update:${$}`,pe=computed(()=>isFunction$3(le[`onUpdate:${$}`])),$e=computed(()=>le[$]===null),_e=()=>{j.value!==!0&&(j.value=!0,isFunction$3(ie)&&ie())},Ce=()=>{j.value!==!1&&(j.value=!1,isFunction$3(ae)&&ae())},Ie=()=>{if(le.disabled===!0||isFunction$3(re)&&!re())return;const Oe=pe.value&&isClient;Oe&&ue(de,!0),($e.value||!Oe)&&_e()},ze=()=>{if(le.disabled===!0||!isClient)return;const Oe=pe.value&&isClient;Oe&&ue(de,!1),($e.value||!Oe)&&Ce()},Et=Oe=>{!isBoolean$1(Oe)||(le.disabled&&Oe?pe.value&&ue(de,!1):j.value!==Oe&&(Oe?_e():Ce()))},qe=()=>{j.value?ze():Ie()};return watch$1(()=>le[$],Et),oe&&he.appContext.config.globalProperties.$route!==void 0&&watch$1(()=>oo({},he.proxy.$route),()=>{oe.value&&j.value&&ze()}),onMounted(()=>{Et(le[$])}),{hide:ze,show:Ie,toggle:qe}},useModelToggleProps:k,useModelToggleEmits:V}},usePreventGlobal=($,k,V)=>{const z=oe=>{V(oe)&&oe.stopImmediatePropagation()};let j;watch$1(()=>$.value,oe=>{oe?j=useEventListener(document,k,z,!0):j==null||j()},{immediate:!0})},useRestoreActive=($,k)=>{let V;watch$1(()=>$.value,z=>{var j,oe;z?(V=document.activeElement,isRef(k)&&((oe=(j=k.value).focus)==null||oe.call(j))):V.focus()})},useSameTarget=$=>{if(!$)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let k=!1,V=!1;return{onClick:re=>{k&&V&&$(re),k=V=!1},onMousedown:re=>{k=re.target===re.currentTarget},onMouseup:re=>{V=re.target===re.currentTarget}}},useThrottleRender=($,k=0)=>{if(k===0)return $;const V=ref(!1);let z=0;const j=()=>{z&&clearTimeout(z),z=window.setTimeout(()=>{V.value=$.value},k)};return onMounted(j),watch$1(()=>$.value,oe=>{oe?j():V.value=oe}),V};function useTimeout(){let $;const k=(z,j)=>{V(),$=window.setTimeout(z,j)},V=()=>window.clearTimeout($);return tryOnScopeDispose(()=>V()),{registerTimeout:k,cancelTimeout:V}}const useEscapeKeydown=$=>{const k=V=>{const z=V;z.key===EVENT_CODE.esc&&($==null||$(z))};onMounted(()=>{on$1(document,"keydown",k)}),onBeforeUnmount(()=>{off(document,"keydown",k)})};let cachedContainer;const POPPER_CONTAINER_ID=`el-popper-container-${generateId()}`,POPPER_CONTAINER_SELECTOR=`#${POPPER_CONTAINER_ID}`,createContainer=()=>{const $=document.createElement("div");return $.id=POPPER_CONTAINER_ID,document.body.appendChild($),$},usePopperContainer=()=>{onBeforeMount(()=>{!isClient||(!cachedContainer||!document.body.querySelector(POPPER_CONTAINER_SELECTOR))&&(cachedContainer=createContainer())})},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),useDelayedToggle=({showAfter:$,hideAfter:k,open:V,close:z})=>{const{registerTimeout:j}=useTimeout();return{onOpen:()=>{j(()=>{V()},unref($))},onClose:()=>{j(()=>{z()},unref(k))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=$=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:V=>{$.value=V}})},useForwardRefDirective=$=>({mounted(k){$(k)},updated(k){$(k)},unmounted(){$(null)}}),defaultNamespace="el",statePrefix="is-",_bem=($,k,V,z,j)=>{let oe=`${$}-${k}`;return V&&(oe+=`-${V}`),z&&(oe+=`__${z}`),j&&(oe+=`--${j}`),oe},useNamespace=$=>{const k=useGlobalConfig("namespace"),V=computed(()=>k.value||defaultNamespace);return{namespace:V,b:(_e="")=>_bem(unref(V),$,_e,"",""),e:_e=>_e?_bem(unref(V),$,"",_e,""):"",m:_e=>_e?_bem(unref(V),$,"","",_e):"",be:(_e,Ce)=>_e&&Ce?_bem(unref(V),$,_e,Ce,""):"",em:(_e,Ce)=>_e&&Ce?_bem(unref(V),$,"",_e,Ce):"",bm:(_e,Ce)=>_e&&Ce?_bem(unref(V),$,_e,"",Ce):"",bem:(_e,Ce,Ie)=>_e&&Ce&&Ie?_bem(unref(V),$,_e,Ce,Ie):"",is:(_e,...Ce)=>{const Ie=Ce.length>=1?Ce[0]:!0;return _e&&Ie?`${statePrefix}${_e}`:""},cssVar:_e=>{const Ce={};for(const Ie in _e)Ce[`--${V.value}-${Ie}`]=_e[Ie];return Ce},cssVarName:_e=>`--${V.value}-${_e}`,cssVarBlock:_e=>{const Ce={};for(const Ie in _e)Ce[`--${V.value}-${$}-${Ie}`]=_e[Ie];return Ce},cssVarBlockName:_e=>`--${V.value}-${$}-${_e}`}},zIndex=ref(0),useZIndex=()=>{const $=useGlobalConfig("zIndex",2e3),k=computed(()=>$.value+zIndex.value);return{initialZIndex:$,currentZIndex:k,nextZIndex:()=>(zIndex.value++,k.value)}};function t($){return $.split("-")[0]}function e($){return $.split("-")[1]}function n$1($){return["top","bottom"].includes(t($))?"x":"y"}function r$1($){return $==="y"?"height":"width"}function i$1($,k,V){let{reference:z,floating:j}=$;const oe=z.x+z.width/2-j.width/2,re=z.y+z.height/2-j.height/2,ie=n$1(k),ae=r$1(ie),he=z[ae]/2-j[ae]/2,le=ie==="x";let ue;switch(t(k)){case"top":ue={x:oe,y:z.y-j.height};break;case"bottom":ue={x:oe,y:z.y+z.height};break;case"right":ue={x:z.x+z.width,y:re};break;case"left":ue={x:z.x-j.width,y:re};break;default:ue={x:z.x,y:z.y}}switch(e(k)){case"start":ue[ie]-=he*(V&&le?-1:1);break;case"end":ue[ie]+=he*(V&&le?-1:1)}return ue}const o$2=async($,k,V)=>{const{placement:z="bottom",strategy:j="absolute",middleware:oe=[],platform:re}=V,ie=await(re.isRTL==null?void 0:re.isRTL(k));let ae=await re.getElementRects({reference:$,floating:k,strategy:j}),{x:he,y:le}=i$1(ae,z,ie),ue=z,de={};for(let pe=0;pe({name:"arrow",options:$,async fn(k){const{element:V,padding:z=0}=$!=null?$:{},{x:j,y:oe,placement:re,rects:ie,platform:ae}=k;if(V==null)return{};const he=a$2(z),le={x:j,y:oe},ue=n$1(re),de=r$1(ue),pe=await ae.getDimensions(V),$e=ue==="y"?"top":"left",_e=ue==="y"?"bottom":"right",Ce=ie.reference[de]+ie.reference[ue]-le[ue]-ie.floating[de],Ie=le[ue]-ie.reference[ue],ze=await(ae.getOffsetParent==null?void 0:ae.getOffsetParent(V)),Et=ze?ue==="y"?ze.clientHeight||0:ze.clientWidth||0:0,qe=Ce/2-Ie/2,Oe=he[$e],Ue=Et-pe[de]-he[_e],Dt=Et/2-pe[de]/2+qe,At=u$2(Oe,Dt,Ue);return{data:{[ue]:At,centerOffset:Dt-At}}}}),x$2=["top","right","bottom","left"];x$2.reduce(($,k)=>$.concat(k,k+"-start",k+"-end"),[]);const T$2=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(k){const{x:V,y:z,placement:j,rects:oe,platform:re,elements:ie}=k,ae=function(he,le,ue,de){de===void 0&&(de=!1);const pe=t(he),$e=e(he),_e=n$1(he)==="x",Ce=["left","top"].includes(pe)?-1:1,Ie=de&&_e?-1:1,ze=typeof ue=="function"?ue(mo(oo({},le),{placement:he})):ue;let{mainAxis:Et,crossAxis:qe,alignmentAxis:Oe}=typeof ze=="number"?{mainAxis:ze,crossAxis:0,alignmentAxis:null}:oo({mainAxis:0,crossAxis:0,alignmentAxis:null},ze);return $e&&typeof Oe=="number"&&(qe=$e==="end"?-1*Oe:Oe),_e?{x:qe*Ie,y:Et*Ce}:{x:Et*Ce,y:qe*Ie}}(j,oe,$,await(re.isRTL==null?void 0:re.isRTL(ie.floating)));return{x:V+ae.x,y:z+ae.y,data:ae}}}};function n($){return $&&$.document&&$.location&&$.alert&&$.setInterval}function o$1($){if($==null)return window;if(!n($)){const k=$.ownerDocument;return k&&k.defaultView||window}return $}function i($){return o$1($).getComputedStyle($)}function r($){return n($)?"":$?($.nodeName||"").toLowerCase():""}function l$1($){return $ instanceof o$1($).HTMLElement}function c($){return $ instanceof o$1($).Element}function f($){return typeof ShadowRoot=="undefined"?!1:$ instanceof o$1($).ShadowRoot||$ instanceof ShadowRoot}function s$1($){const{overflow:k,overflowX:V,overflowY:z}=i($);return/auto|scroll|overlay|hidden/.test(k+z+V)}function u$1($){return["table","td","th"].includes(r($))}function d$1($){const k=navigator.userAgent.toLowerCase().includes("firefox"),V=i($);return V.transform!=="none"||V.perspective!=="none"||V.contain==="paint"||["transform","perspective"].includes(V.willChange)||k&&V.willChange==="filter"||k&&!!V.filter&&V.filter!=="none"}function h$1(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const a$1=Math.min,g=Math.max,p$1=Math.round;function m$1($,k,V){var z,j,oe,re;k===void 0&&(k=!1),V===void 0&&(V=!1);const ie=$.getBoundingClientRect();let ae=1,he=1;k&&l$1($)&&(ae=$.offsetWidth>0&&p$1(ie.width)/$.offsetWidth||1,he=$.offsetHeight>0&&p$1(ie.height)/$.offsetHeight||1);const le=c($)?o$1($):window,ue=!h$1()&&V,de=(ie.left+(ue&&(z=(j=le.visualViewport)==null?void 0:j.offsetLeft)!=null?z:0))/ae,pe=(ie.top+(ue&&(oe=(re=le.visualViewport)==null?void 0:re.offsetTop)!=null?oe:0))/he,$e=ie.width/ae,_e=ie.height/he;return{width:$e,height:_e,top:pe,right:de+$e,bottom:pe+_e,left:de,x:de,y:pe}}function w$1($){return(k=$,(k instanceof o$1(k).Node?$.ownerDocument:$.document)||window.document).documentElement;var k}function v$1($){return c($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function y($){return m$1(w$1($)).left+v$1($).scrollLeft}function x$1($,k,V){const z=l$1(k),j=w$1(k),oe=m$1($,z&&function(ae){const he=m$1(ae);return p$1(he.width)!==ae.offsetWidth||p$1(he.height)!==ae.offsetHeight}(k),V==="fixed");let re={scrollLeft:0,scrollTop:0};const ie={x:0,y:0};if(z||!z&&V!=="fixed")if((r(k)!=="body"||s$1(j))&&(re=v$1(k)),l$1(k)){const ae=m$1(k,!0);ie.x=ae.x+k.clientLeft,ie.y=ae.y+k.clientTop}else j&&(ie.x=y(j));return{x:oe.left+re.scrollLeft-ie.x,y:oe.top+re.scrollTop-ie.y,width:oe.width,height:oe.height}}function L$1($){return r($)==="html"?$:$.assignedSlot||$.parentNode||(f($)?$.host:null)||w$1($)}function b$1($){return l$1($)&&getComputedStyle($).position!=="fixed"?$.offsetParent:null}function R$1($){const k=o$1($);let V=b$1($);for(;V&&u$1(V)&&getComputedStyle(V).position==="static";)V=b$1(V);return V&&(r(V)==="html"||r(V)==="body"&&getComputedStyle(V).position==="static"&&!d$1(V))?k:V||function(z){let j=L$1(z);for(f(j)&&(j=j.host);l$1(j)&&!["html","body"].includes(r(j));){if(d$1(j))return j;j=j.parentNode}return null}($)||k}function T$1($){if(l$1($))return{width:$.offsetWidth,height:$.offsetHeight};const k=m$1($);return{width:k.width,height:k.height}}function W$2($){const k=L$1($);return["html","body","#document"].includes(r(k))?$.ownerDocument.body:l$1(k)&&s$1(k)?k:W$2(k)}function C$1($,k){var V;k===void 0&&(k=[]);const z=W$2($),j=z===((V=$.ownerDocument)==null?void 0:V.body),oe=o$1(z),re=j?[oe].concat(oe.visualViewport||[],s$1(z)?z:[]):z,ie=k.concat(re);return j?ie:ie.concat(C$1(re))}function E$2($,k,V){return k==="viewport"?l$2(function(z,j){const oe=o$1(z),re=w$1(z),ie=oe.visualViewport;let ae=re.clientWidth,he=re.clientHeight,le=0,ue=0;if(ie){ae=ie.width,he=ie.height;const de=h$1();(de||!de&&j==="fixed")&&(le=ie.offsetLeft,ue=ie.offsetTop)}return{width:ae,height:he,x:le,y:ue}}($,V)):c(k)?function(z,j){const oe=m$1(z,!1,j==="fixed"),re=oe.top+z.clientTop,ie=oe.left+z.clientLeft;return{top:re,left:ie,x:ie,y:re,right:ie+z.clientWidth,bottom:re+z.clientHeight,width:z.clientWidth,height:z.clientHeight}}(k,V):l$2(function(z){var j;const oe=w$1(z),re=v$1(z),ie=(j=z.ownerDocument)==null?void 0:j.body,ae=g(oe.scrollWidth,oe.clientWidth,ie?ie.scrollWidth:0,ie?ie.clientWidth:0),he=g(oe.scrollHeight,oe.clientHeight,ie?ie.scrollHeight:0,ie?ie.clientHeight:0);let le=-re.scrollLeft+y(z);const ue=-re.scrollTop;return i(ie||oe).direction==="rtl"&&(le+=g(oe.clientWidth,ie?ie.clientWidth:0)-ae),{width:ae,height:he,x:le,y:ue}}(w$1($)))}function H$1($){const k=C$1($),V=["absolute","fixed"].includes(i($).position)&&l$1($)?R$1($):$;return c(V)?k.filter(z=>c(z)&&function(j,oe){const re=oe==null||oe.getRootNode==null?void 0:oe.getRootNode();if(j!=null&&j.contains(oe))return!0;if(re&&f(re)){let ie=oe;do{if(ie&&j===ie)return!0;ie=ie.parentNode||ie.host}while(ie)}return!1}(z,V)&&r(z)!=="body"):[]}const S$1={getClippingRect:function($){let{element:k,boundary:V,rootBoundary:z,strategy:j}=$;const oe=[...V==="clippingAncestors"?H$1(k):[].concat(V),z],re=oe[0],ie=oe.reduce((ae,he)=>{const le=E$2(k,he,j);return ae.top=g(le.top,ae.top),ae.right=a$1(le.right,ae.right),ae.bottom=a$1(le.bottom,ae.bottom),ae.left=g(le.left,ae.left),ae},E$2(k,re,j));return{width:ie.right-ie.left,height:ie.bottom-ie.top,x:ie.left,y:ie.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function($){let{rect:k,offsetParent:V,strategy:z}=$;const j=l$1(V),oe=w$1(V);if(V===oe)return k;let re={scrollLeft:0,scrollTop:0};const ie={x:0,y:0};if((j||!j&&z!=="fixed")&&((r(V)!=="body"||s$1(oe))&&(re=v$1(V)),l$1(V))){const ae=m$1(V,!0);ie.x=ae.x+V.clientLeft,ie.y=ae.y+V.clientTop}return mo(oo({},k),{x:k.x-re.scrollLeft+ie.x,y:k.y-re.scrollTop+ie.y})},isElement:c,getDimensions:T$1,getOffsetParent:R$1,getDocumentElement:w$1,getElementRects:$=>{let{reference:k,floating:V,strategy:z}=$;return{reference:x$1(k,R$1(V),z),floating:mo(oo({},T$1(V)),{x:0,y:0})}},getClientRects:$=>Array.from($.getClientRects()),isRTL:$=>i($).direction==="rtl"},N$2=($,k,V)=>o$2($,k,oo({platform:S$1},V));buildProps({});const unrefReference=$=>{if(!isClient)return;if(!$)return $;const k=unrefElement($);return k||(isRef($)?k:$)},useFloating=({middleware:$,placement:k,strategy:V})=>{const z=ref(),j=ref(),oe=ref(),re=ref(),ie=ref({}),ae={x:oe,y:re,placement:k,strategy:V,middlewareData:ie},he=async()=>{if(!isClient)return;const le=unrefReference(z),ue=unrefElement(j);if(!le||!ue)return;const de=await N$2(le,ue,{placement:unref(k),strategy:unref(V),middleware:unref($)});Object.keys(ae).forEach(pe=>{ae[pe].value=de[pe]})};return onMounted(()=>{watchEffect(()=>{he()})}),mo(oo({},ae),{update:he,referenceRef:z,contentRef:j})},arrowMiddleware=({arrowRef:$,padding:k})=>({name:"arrow",options:{element:$,padding:k},fn(V){const z=unref($);return z?m$2({element:z,padding:k}).fn(V):{}}});function useCursor($){const k=ref();function V(){if($.value==null)return;const{selectionStart:j,selectionEnd:oe,value:re}=$.value;if(j==null||oe==null)return;const ie=re.slice(0,Math.max(0,j)),ae=re.slice(Math.max(0,oe));k.value={selectionStart:j,selectionEnd:oe,value:re,beforeTxt:ie,afterTxt:ae}}function z(){if($.value==null||k.value==null)return;const{value:j}=$.value,{beforeTxt:oe,afterTxt:re,selectionStart:ie}=k.value;if(oe==null||re==null||ie==null)return;let ae=j.length;if(j.endsWith(re))ae=j.length-re.length;else if(j.startsWith(oe))ae=oe.length;else{const he=oe[ie-1],le=j.indexOf(he,ie-1);le!==-1&&(ae=le+1)}$.value.setSelectionRange(ae,ae)}return[V,z]}const version="2.2.0",INSTALLED_KEY=Symbol("INSTALLED_KEY"),makeInstaller=($=[])=>({version,install:(V,z)=>{V[INSTALLED_KEY]||(V[INSTALLED_KEY]=!0,$.forEach(j=>V.use(j)),z&&provideGlobalConfig(z,V,!0))}}),affixProps=buildProps({zIndex:{type:definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),affixEmits={scroll:({scrollTop:$,fixed:k})=>typeof $=="number"&&typeof k=="boolean",change:$=>typeof $=="boolean"};var _export_sfc$1=($,k)=>{const V=$.__vccOpts||$;for(const[z,j]of k)V[z]=j;return V};const __default__$N={name:"ElAffix"},_sfc_main$2l=defineComponent(mo(oo({},__default__$N),{props:affixProps,emits:affixEmits,setup($,{expose:k,emit:V}){const z=$,j="ElAffix",oe=useNamespace("affix"),re=shallowRef(),ie=shallowRef(),ae=shallowRef(),{height:he}=useWindowSize(),{height:le,width:ue,top:de,bottom:pe,update:$e}=useElementBounding(ie),_e=useElementBounding(re),Ce=ref(!1),Ie=ref(0),ze=ref(0),Et=computed(()=>({height:Ce.value?`${le.value}px`:"",width:Ce.value?`${ue.value}px`:""})),qe=computed(()=>{if(!Ce.value)return{};const Dt=z.offset?`${z.offset}px`:0;return{height:`${le.value}px`,width:`${ue.value}px`,top:z.position==="top"?Dt:"",bottom:z.position==="bottom"?Dt:"",transform:ze.value?`translateY(${ze.value}px)`:"",zIndex:z.zIndex}}),Oe=()=>{if(!!ae.value)if(Ie.value=ae.value instanceof Window?document.documentElement.scrollTop:ae.value.scrollTop||0,z.position==="top")if(z.target){const Dt=_e.bottom.value-z.offset-le.value;Ce.value=z.offset>de.value&&_e.bottom.value>0,ze.value=Dt<0?Dt:0}else Ce.value=z.offset>de.value;else if(z.target){const Dt=he.value-_e.top.value-z.offset-le.value;Ce.value=he.value-z.offset_e.top.value,ze.value=Dt<0?-Dt:0}else Ce.value=he.value-z.offset{V("scroll",{scrollTop:Ie.value,fixed:Ce.value})};return watch$1(Ce,Dt=>V("change",Dt)),onMounted(()=>{var Dt;z.target?(re.value=(Dt=document.querySelector(z.target))!=null?Dt:void 0,re.value||throwError(j,`Target is not existed: ${z.target}`)):re.value=document.documentElement,ae.value=getScrollContainer(ie.value,!0),$e()}),useEventListener(ae,"scroll",Ue),watchEffect(Oe),k({update:Oe}),(Dt,At)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:ie,class:normalizeClass(unref(oe).b()),style:normalizeStyle(unref(Et))},[createBaseVNode("div",{class:normalizeClass({[unref(oe).m("fixed")]:Ce.value}),style:normalizeStyle(unref(qe))},[renderSlot(Dt.$slots,"default")],6)],6))}}));var Affix=_export_sfc$1(_sfc_main$2l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const ElAffix=withInstall(Affix),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$M={name:"ElIcon",inheritAttrs:!1},_sfc_main$2k=defineComponent(mo(oo({},__default__$M),{props:iconProps,setup($){const k=$,V=useNamespace("icon"),z=computed(()=>!k.size&&!k.color?{}:{fontSize:isUndefined(k.size)?void 0:addUnit(k.size),"--color":k.color});return(j,oe)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(V).b(),style:unref(z)},j.$attrs),[renderSlot(j.$slots,"default")],16))}}));var Icon=_export_sfc$1(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon),alertEffects=["light","dark"],alertProps=buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:keysOf(TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:alertEffects,default:"light"}}),alertEmits={close:$=>$ instanceof MouseEvent},__default__$L={name:"ElAlert"},_sfc_main$2j=defineComponent(mo(oo({},__default__$L),{props:alertProps,emits:alertEmits,setup($,{emit:k}){const V=$,{Close:z}=TypeComponents,j=useSlots(),oe=useNamespace("alert"),re=ref(!0),ie=computed(()=>TypeComponentsMap[V.type]||TypeComponentsMap.info),ae=computed(()=>V.description||{[oe.is("big")]:j.default}),he=computed(()=>V.description||{[oe.is("bold")]:j.default}),le=ue=>{re.value=!1,k("close",ue)};return(ue,de)=>(openBlock(),createBlock(Transition,{name:unref(oe).b("fade")},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(oe).b(),unref(oe).m(ue.type),unref(oe).is("center",ue.center),unref(oe).is(ue.effect)]),role:"alert"},[ue.showIcon&&unref(ie)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(oe).e("icon"),unref(ae)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ie))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content"))},[ue.title||ue.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(oe).e("title"),unref(he)])},[renderSlot(ue.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ue.title),1)])],2)):createCommentVNode("v-if",!0),ue.$slots.default||ue.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(oe).e("description"))},[renderSlot(ue.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ue.description),1)])],2)):createCommentVNode("v-if",!0),ue.closable?(openBlock(),createElementBlock(Fragment,{key:2},[ue.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("close-btn"),unref(oe).is("customed")]),onClick:le},toDisplayString$1(ue.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(oe).e("close-btn")),onClick:le},{default:withCtx(()=>[createVNode(unref(z))]),_:1},8,["class"]))],2112)):createCommentVNode("v-if",!0)],2)],2),[[vShow,re.value]])]),_:3},8,["name"]))}}));var Alert=_export_sfc$1(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert);let hiddenTextarea;const HIDDEN_STYLE=` - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; -`,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling($){const k=window.getComputedStyle($),V=k.getPropertyValue("box-sizing"),z=Number.parseFloat(k.getPropertyValue("padding-bottom"))+Number.parseFloat(k.getPropertyValue("padding-top")),j=Number.parseFloat(k.getPropertyValue("border-bottom-width"))+Number.parseFloat(k.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(re=>`${re}:${k.getPropertyValue(re)}`).join(";"),paddingSize:z,borderSize:j,boxSizing:V}}function calcTextareaHeight($,k=1,V){var z;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:j,borderSize:oe,boxSizing:re,contextStyle:ie}=calculateNodeStyling($);hiddenTextarea.setAttribute("style",`${ie};${HIDDEN_STYLE}`),hiddenTextarea.value=$.value||$.placeholder||"";let ae=hiddenTextarea.scrollHeight;const he={};re==="border-box"?ae=ae+oe:re==="content-box"&&(ae=ae-j),hiddenTextarea.value="";const le=hiddenTextarea.scrollHeight-j;if(isNumber$1(k)){let ue=le*k;re==="border-box"&&(ue=ue+j+oe),ae=Math.max(ue,ae),he.minHeight=`${ue}px`}if(isNumber$1(V)){let ue=le*V;re==="border-box"&&(ue=ue+j+oe),ae=Math.min(ue,ae)}return he.height=`${ae}px`,(z=hiddenTextarea.parentNode)==null||z.removeChild(hiddenTextarea),hiddenTextarea=void 0,he}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iconPropType,default:""},prefixIcon:{type:iconPropType,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})}}),inputEmits={[UPDATE_MODEL_EVENT]:$=>isString$3($),input:$=>isString$3($),change:$=>isString$3($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,mouseleave:$=>$ instanceof MouseEvent,mouseenter:$=>$ instanceof MouseEvent,keydown:$=>$ instanceof Event,compositionstart:$=>$ instanceof CompositionEvent,compositionupdate:$=>$ instanceof CompositionEvent,compositionend:$=>$ instanceof CompositionEvent},_hoisted_1$14=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],_hoisted_2$I=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],__default__$K={name:"ElInput",inheritAttrs:!1},_sfc_main$2i=defineComponent(mo(oo({},__default__$K),{props:inputProps,emits:inputEmits,setup($,{expose:k,emit:V}){const z=$,j={suffix:"append",prefix:"prepend"},oe=getCurrentInstance(),re=useAttrs$1(),ie=useSlots(),ae=useAttrs(),{form:he,formItem:le}=useFormItem(),{inputId:ue}=useFormItemInputId(z,{formItemContext:le}),de=useSize(),pe=useDisabled$1(),$e=useNamespace("input"),_e=useNamespace("textarea"),Ce=shallowRef(),Ie=shallowRef(),ze=ref(!1),Et=ref(!1),qe=ref(!1),Oe=ref(!1),Ue=ref(),Dt=shallowRef(z.inputStyle),At=computed(()=>Ce.value||Ie.value),Lt=computed(()=>{var jn;return(jn=he==null?void 0:he.statusIcon)!=null?jn:!1}),kt=computed(()=>(le==null?void 0:le.validateState)||""),Pt=computed(()=>ValidateComponentsMap[kt.value]),jt=computed(()=>Oe.value?view:hide),vn=computed(()=>[re.style,z.inputStyle]),$n=computed(()=>[z.inputStyle,Dt.value,{resize:z.resize}]),wn=computed(()=>isNil(z.modelValue)?"":String(z.modelValue)),_n=computed(()=>z.clearable&&!pe.value&&!z.readonly&&!!wn.value&&(ze.value||Et.value)),En=computed(()=>z.showPassword&&!pe.value&&!z.readonly&&(!!wn.value||ze.value)),Sn=computed(()=>z.showWordLimit&&!!ae.value.maxlength&&(z.type==="text"||z.type==="textarea")&&!pe.value&&!z.readonly&&!z.showPassword),An=computed(()=>Array.from(wn.value).length),Cn=computed(()=>!!Sn.value&&An.value>Number(ae.value.maxlength)),Tn=computed(()=>!!ie.suffix||!!z.suffixIcon||_n.value||z.showPassword||Sn.value||!!kt.value&&Lt.value),[Nn,xn]=useCursor(Ce);useResizeObserver(Ie,jn=>{if(!Sn.value||z.resize!=="both")return;const Kn=jn[0],{width:so}=Kn.contentRect;Ue.value={right:`calc(100% - ${so+15+6}px)`}});const On=()=>{const{type:jn,autosize:Kn}=z;if(!(!isClient||jn!=="textarea"))if(Kn){const so=isObject$5(Kn)?Kn.minRows:void 0,ro=isObject$5(Kn)?Kn.maxRows:void 0;Dt.value=oo({},calcTextareaHeight(Ie.value,so,ro))}else Dt.value={minHeight:calcTextareaHeight(Ie.value).minHeight}},Ln=()=>{const jn=At.value;!jn||jn.value===wn.value||(jn.value=wn.value)},Bn=jn=>{const{el:Kn}=oe.vnode;if(!Kn)return;const ro=Array.from(Kn.querySelectorAll(`.${$e.e(jn)}`)).find(go=>go.parentNode===Kn);if(!ro)return;const vo=j[jn];ie[vo]?ro.style.transform=`translateX(${jn==="suffix"?"-":""}${Kn.querySelector(`.${$e.be("group",vo)}`).offsetWidth}px)`:ro.removeAttribute("style")},Vn=()=>{Bn("prefix"),Bn("suffix")},Fn=async jn=>{Nn();let{value:Kn}=jn.target;z.formatter&&(Kn=z.parser?z.parser(Kn):Kn,Kn=z.formatter(Kn)),!qe.value&&Kn!==wn.value&&(V(UPDATE_MODEL_EVENT,Kn),V("input",Kn),await nextTick(),Ln(),xn())},zn=jn=>{V("change",jn.target.value)},Xn=jn=>{V("compositionstart",jn),qe.value=!0},Pn=jn=>{var Kn;V("compositionupdate",jn);const so=(Kn=jn.target)==null?void 0:Kn.value,ro=so[so.length-1]||"";qe.value=!isKorean(ro)},Hn=jn=>{V("compositionend",jn),qe.value&&(qe.value=!1,Fn(jn))},eo=()=>{Oe.value=!Oe.value,Qn()},Qn=async()=>{var jn;await nextTick(),(jn=At.value)==null||jn.focus()},ao=()=>{var jn;return(jn=At.value)==null?void 0:jn.blur()},ho=jn=>{ze.value=!0,V("focus",jn)},uo=jn=>{var Kn;ze.value=!1,V("blur",jn),z.validateEvent&&((Kn=le==null?void 0:le.validate)==null||Kn.call(le,"blur").catch(so=>void 0))},Un=jn=>{Et.value=!1,V("mouseleave",jn)},Zn=jn=>{Et.value=!0,V("mouseenter",jn)},no=jn=>{V("keydown",jn)},qn=()=>{var jn;(jn=At.value)==null||jn.select()},In=()=>{V(UPDATE_MODEL_EVENT,""),V("change",""),V("clear"),V("input","")};return watch$1(()=>z.modelValue,()=>{var jn;nextTick(()=>On()),z.validateEvent&&((jn=le==null?void 0:le.validate)==null||jn.call(le,"change").catch(Kn=>void 0))}),watch$1(wn,()=>Ln()),watch$1(()=>z.type,async()=>{await nextTick(),Ln(),On(),Vn()}),onMounted(async()=>{!z.formatter&&z.parser,Ln(),Vn(),await nextTick(),On()}),onUpdated(async()=>{await nextTick(),Vn()}),k({input:Ce,textarea:Ie,ref:At,textareaStyle:$n,autosize:toRef(z,"autosize"),focus:Qn,blur:ao,select:qn,clear:In,resizeTextarea:On}),(jn,Kn)=>withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([jn.type==="textarea"?unref(_e).b():unref($e).b(),unref($e).m(unref(de)),unref($e).is("disabled",unref(pe)),unref($e).is("exceed",unref(Cn)),{[unref($e).b("group")]:jn.$slots.prepend||jn.$slots.append,[unref($e).bm("group","append")]:jn.$slots.append,[unref($e).bm("group","prepend")]:jn.$slots.prepend,[unref($e).m("prefix")]:jn.$slots.prefix||jn.prefixIcon,[unref($e).m("suffix")]:jn.$slots.suffix||jn.suffixIcon||jn.clearable||jn.showPassword,[unref($e).bm("suffix","password-clear")]:unref(_n)&&unref(En)},jn.$attrs.class]),style:normalizeStyle(unref(vn)),onMouseenter:Zn,onMouseleave:Un},[createCommentVNode(" input "),jn.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),jn.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($e).be("group","prepend"))},[renderSlot(jn.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref($e).e("wrapper"),unref($e).is("focus",ze.value)])},[createCommentVNode(" prefix slot "),jn.$slots.prefix||jn.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($e).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref($e).e("prefix-inner"))},[renderSlot(jn.$slots,"prefix"),jn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($e).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(jn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(ue),ref_key:"input",ref:Ce,class:unref($e).e("inner")},unref(ae),{type:jn.showPassword?Oe.value?"text":"password":jn.type,disabled:unref(pe),formatter:jn.formatter,parser:jn.parser,readonly:jn.readonly,autocomplete:jn.autocomplete,tabindex:jn.tabindex,"aria-label":jn.label,placeholder:jn.placeholder,style:jn.inputStyle,onCompositionstart:Xn,onCompositionupdate:Pn,onCompositionend:Hn,onInput:Fn,onFocus:ho,onBlur:uo,onChange:zn,onKeydown:no}),null,16,_hoisted_1$14),createCommentVNode(" suffix slot "),unref(Tn)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref($e).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref($e).e("suffix-inner"))},[!unref(_n)||!unref(En)||!unref(Sn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(jn.$slots,"suffix"),jn.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($e).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(jn.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(_n)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref($e).e("icon"),unref($e).e("clear")]),onMousedown:Kn[0]||(Kn[0]=withModifiers(()=>{},["prevent"])),onClick:In},{default:withCtx(()=>[createVNode(unref(circleClose))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(En)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref($e).e("icon"),unref($e).e("password")]),onClick:eo},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(jt))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Sn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref($e).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref($e).e("count-inner"))},toDisplayString$1(unref(An))+" / "+toDisplayString$1(unref(ae).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(kt)&&unref(Pt)&&unref(Lt)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref($e).e("icon"),unref($e).e("validateIcon"),unref($e).is("loading",unref(kt)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Pt))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),jn.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($e).be("group","append"))},[renderSlot(jn.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(ue),ref_key:"textarea",ref:Ie,class:unref(_e).e("inner")},unref(ae),{tabindex:jn.tabindex,disabled:unref(pe),readonly:jn.readonly,autocomplete:jn.autocomplete,style:unref($n),"aria-label":jn.label,placeholder:jn.placeholder,onCompositionstart:Xn,onCompositionupdate:Pn,onCompositionend:Hn,onInput:Fn,onFocus:ho,onBlur:uo,onChange:zn,onKeydown:no}),null,16,_hoisted_2$I),unref(Sn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle(Ue.value),class:normalizeClass(unref($e).e("count"))},toDisplayString$1(unref(An))+" / "+toDisplayString$1(unref(ae).maxlength),7)):createCommentVNode("v-if",!0)],64))],38)),[[vShow,jn.type!=="hidden"]])}}));var Input=_export_sfc$1(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ElInput=withInstall(Input),BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle$1=({move:$,size:k,bar:V})=>({[V.size]:k,transform:`translate${V.axis}(${$}%)`}),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$e="Thumb",_sfc_main$2h=defineComponent({name:COMPONENT_NAME$e,props:thumbProps,setup($){const k=inject(scrollbarContextKey),V=useNamespace("scrollbar");k||throwError(COMPONENT_NAME$e,"can not inject scrollbar context");const z=ref(),j=ref(),oe=ref({}),re=ref(!1);let ie=!1,ae=!1,he=isClient?document.onselectstart:null;const le=computed(()=>BAR_MAP[$.vertical?"vertical":"horizontal"]),ue=computed(()=>renderThumbStyle$1({size:$.size,move:$.move,bar:le.value})),de=computed(()=>z.value[le.value.offset]**2/k.wrapElement[le.value.scrollSize]/$.ratio/j.value[le.value.offset]),pe=Oe=>{var Ue;if(Oe.stopPropagation(),Oe.ctrlKey||[1,2].includes(Oe.button))return;(Ue=window.getSelection())==null||Ue.removeAllRanges(),_e(Oe);const Dt=Oe.currentTarget;!Dt||(oe.value[le.value.axis]=Dt[le.value.offset]-(Oe[le.value.client]-Dt.getBoundingClientRect()[le.value.direction]))},$e=Oe=>{if(!j.value||!z.value||!k.wrapElement)return;const Ue=Math.abs(Oe.target.getBoundingClientRect()[le.value.direction]-Oe[le.value.client]),Dt=j.value[le.value.offset]/2,At=(Ue-Dt)*100*de.value/z.value[le.value.offset];k.wrapElement[le.value.scroll]=At*k.wrapElement[le.value.scrollSize]/100},_e=Oe=>{Oe.stopImmediatePropagation(),ie=!0,document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Ie),he=document.onselectstart,document.onselectstart=()=>!1},Ce=Oe=>{if(!z.value||!j.value||ie===!1)return;const Ue=oe.value[le.value.axis];if(!Ue)return;const Dt=(z.value.getBoundingClientRect()[le.value.direction]-Oe[le.value.client])*-1,At=j.value[le.value.offset]-Ue,Lt=(Dt-At)*100*de.value/z.value[le.value.offset];k.wrapElement[le.value.scroll]=Lt*k.wrapElement[le.value.scrollSize]/100},Ie=()=>{ie=!1,oe.value[le.value.axis]=0,document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Ie),qe(),ae&&(re.value=!1)},ze=()=>{ae=!1,re.value=!!$.size},Et=()=>{ae=!0,re.value=ie};onBeforeUnmount(()=>{qe(),document.removeEventListener("mouseup",Ie)});const qe=()=>{document.onselectstart!==he&&(document.onselectstart=he)};return useEventListener(toRef(k,"scrollbarElement"),"mousemove",ze),useEventListener(toRef(k,"scrollbarElement"),"mouseleave",Et),{ns:V,instance:z,thumb:j,bar:le,thumbStyle:ue,visible:re,clickTrackHandler:$e,clickThumbHandler:pe}}});function _sfc_render$1u($,k,V,z,j,oe){return openBlock(),createBlock(Transition,{name:$.ns.b("fade")},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref:"instance",class:normalizeClass([$.ns.e("bar"),$.ns.is($.bar.key)]),onMousedown:k[1]||(k[1]=(...re)=>$.clickTrackHandler&&$.clickTrackHandler(...re))},[createBaseVNode("div",{ref:"thumb",class:normalizeClass($.ns.e("thumb")),style:normalizeStyle($.thumbStyle),onMousedown:k[0]||(k[0]=(...re)=>$.clickThumbHandler&&$.clickThumbHandler(...re))},null,38)],34),[[vShow,$.always||$.visible]])]),_:1},8,["name"])}var Thumb=_export_sfc$1(_sfc_main$2h,[["render",_sfc_render$1u],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_sfc_main$2g=defineComponent({components:{Thumb},props:barProps,setup($){const k=ref(0),V=ref(0),z=4;return{handleScroll:oe=>{if(oe){const re=oe.offsetHeight-z,ie=oe.offsetWidth-z;V.value=oe.scrollTop*100/re*$.ratioY,k.value=oe.scrollLeft*100/ie*$.ratioX}},moveX:k,moveY:V}}});function _sfc_render$1t($,k,V,z,j,oe){const re=resolveComponent("thumb");return openBlock(),createElementBlock(Fragment,null,[createVNode(re,{move:$.moveX,ratio:$.ratioX,size:$.width,always:$.always},null,8,["move","ratio","size","always"]),createVNode(re,{move:$.moveY,ratio:$.ratioY,size:$.height,vertical:"",always:$.always},null,8,["move","ratio","size","always"])],64)}var Bar=_export_sfc$1(_sfc_main$2g,[["render",_sfc_render$1t],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20}}),scrollbarEmits={scroll:({scrollTop:$,scrollLeft:k})=>isNumber$1($)&&isNumber$1(k)},_sfc_main$2f=defineComponent({name:"ElScrollbar",components:{Bar},props:scrollbarProps,emits:scrollbarEmits,setup($,{emit:k}){const V=useNamespace("scrollbar");let z,j;const oe=ref(),re=ref(),ie=ref(),ae=ref("0"),he=ref("0"),le=ref(),ue=ref(0),de=ref(0),pe=ref(1),$e=ref(1),_e=4,Ce=computed(()=>{const Ue={};return $.height&&(Ue.height=addUnit($.height)),$.maxHeight&&(Ue.maxHeight=addUnit($.maxHeight)),[$.wrapStyle,Ue]}),Ie=()=>{var Ue;re.value&&((Ue=le.value)==null||Ue.handleScroll(re.value),k("scroll",{scrollTop:re.value.scrollTop,scrollLeft:re.value.scrollLeft}))};function ze(Ue,Dt){isObject$5(Ue)?re.value.scrollTo(Ue):isNumber$1(Ue)&&isNumber$1(Dt)&&re.value.scrollTo(Ue,Dt)}const Et=Ue=>{!isNumber$1(Ue)||(re.value.scrollTop=Ue)},qe=Ue=>{!isNumber$1(Ue)||(re.value.scrollLeft=Ue)},Oe=()=>{if(!re.value)return;const Ue=re.value.offsetHeight-_e,Dt=re.value.offsetWidth-_e,At=Ue**2/re.value.scrollHeight,Lt=Dt**2/re.value.scrollWidth,kt=Math.max(At,$.minSize),Pt=Math.max(Lt,$.minSize);pe.value=At/(Ue-At)/(kt/(Ue-kt)),$e.value=Lt/(Dt-Lt)/(Pt/(Dt-Pt)),he.value=kt+_e$.noresize,Ue=>{Ue?(z==null||z(),j==null||j()):({stop:z}=useResizeObserver(ie,Oe),j=useEventListener("resize",Oe))},{immediate:!0}),watch$1(()=>[$.maxHeight,$.height],()=>{$.native||nextTick(()=>{var Ue;Oe(),re.value&&((Ue=le.value)==null||Ue.handleScroll(re.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:oe,wrapElement:re})),onMounted(()=>{$.native||nextTick(()=>Oe())}),onUpdated(()=>Oe()),{ns:V,scrollbar$:oe,wrap$:re,resize$:ie,barRef:le,moveX:ue,moveY:de,ratioX:$e,ratioY:pe,sizeWidth:ae,sizeHeight:he,style:Ce,update:Oe,handleScroll:Ie,scrollTo:ze,setScrollTop:Et,setScrollLeft:qe}}});function _sfc_render$1s($,k,V,z,j,oe){const re=resolveComponent("bar");return openBlock(),createElementBlock("div",{ref:"scrollbar$",class:normalizeClass($.ns.b())},[createBaseVNode("div",{ref:"wrap$",class:normalizeClass([$.wrapClass,$.ns.e("wrap"),{[$.ns.em("wrap","hidden-default")]:!$.native}]),style:normalizeStyle($.style),onScroll:k[0]||(k[0]=(...ie)=>$.handleScroll&&$.handleScroll(...ie))},[(openBlock(),createBlock(resolveDynamicComponent($.tag),{ref:"resize$",class:normalizeClass([$.ns.e("view"),$.viewClass]),style:normalizeStyle($.viewStyle)},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["class","style"]))],38),$.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(re,{key:0,ref:"barRef",height:$.sizeHeight,width:$.sizeWidth,always:$.always,"ratio-x":$.ratioX,"ratio-y":$.ratioY},null,8,["height","width","always","ratio-x","ratio-y"]))],2)}var Scrollbar=_export_sfc$1(_sfc_main$2f,[["render",_sfc_render$1s],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),__default__$J={name:"ElPopperRoot",inheritAttrs:!1},_sfc_main$2e=defineComponent(mo(oo({},__default__$J),{setup($,{expose:k}){const V=ref(),z=ref(),j=ref(),oe=ref(),re={triggerRef:V,popperInstanceRef:z,contentRef:j,referenceRef:oe};return k(re),provide(POPPER_INJECTION_KEY,re),(ie,ae)=>renderSlot(ie.$slots,"default")}}));var Popper=_export_sfc$1(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const usePopperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),__default__$I={name:"ElPopperArrow",inheritAttrs:!1},_sfc_main$2d=defineComponent(mo(oo({},__default__$I),{props:usePopperArrowProps,setup($,{expose:k}){const V=$,z=useNamespace("popper"),{arrowOffset:j,arrowRef:oe}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch$1(()=>V.arrowOffset,re=>{j.value=re}),onBeforeUnmount(()=>{oe.value=void 0}),k({arrowRef:oe}),(re,ie)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:oe,class:normalizeClass(unref(z).e("arrow")),"data-popper-arrow":""},null,2))}}));var ElPopperArrow=_export_sfc$1(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup($,{slots:k,attrs:V}){var z;const j=inject(FORWARD_REF_INJECTION_KEY),oe=useForwardRefDirective((z=j==null?void 0:j.setForwardRef)!=null?z:NOOP);return()=>{var re;const ie=(re=k.default)==null?void 0:re.call(k,V);if(!ie||ie.length>1)return null;const ae=findFirstLegitChild(ie);return ae?withDirectives(cloneVNode(ae,V),[[oe]]):null}}});function findFirstLegitChild($){if(!$)return null;const k=$;for(const V of k){if(isObject$5(V))switch(V.type){case Comment:continue;case Text$1:return wrapTextContent(V);case"svg":return wrapTextContent(V);case Fragment:return findFirstLegitChild(V.children);default:return V}return wrapTextContent(V)}return null}function wrapTextContent($){return createVNode("span",{class:"el-only-child__content"},[$])}const usePopperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),__default__$H={name:"ElPopperTrigger",inheritAttrs:!1},_sfc_main$2c=defineComponent(mo(oo({},__default__$H),{props:usePopperTriggerProps,setup($,{expose:k}){const V=$,{triggerRef:z}=inject(POPPER_INJECTION_KEY,void 0);return useForwardRef(z),onMounted(()=>{watch$1(()=>V.virtualRef,j=>{j&&(z.value=unrefElement(j))},{immediate:!0}),watch$1(()=>z.value,(j,oe)=>{isElement(j)&&["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(re=>{var ie;const ae=V[re];ae&&(j.addEventListener(re.slice(2).toLowerCase(),ae),(ie=oe==null?void 0:oe.removeEventListener)==null||ie.call(oe,re.slice(2).toLowerCase(),ae))})},{immediate:!0})}),k({triggerRef:z}),(j,oe)=>j.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},j.$attrs,{"aria-describedby":j.open?j.id:void 0}),{default:withCtx(()=>[renderSlot(j.$slots,"default")]),_:3},16,["aria-describedby"]))}}));var ElPopperTrigger=_export_sfc$1(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),E$1="top",R="bottom",W$1="right",P$1="left",me="auto",G=[E$1,R,W$1,P$1],U$1="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function($,k){return $.concat([k+"-"+U$1,k+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function($,k){return $.concat([k,k+"-"+U$1,k+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C($){return $?($.nodeName||"").toLowerCase():null}function H($){if($==null)return window;if($.toString()!=="[object Window]"){var k=$.ownerDocument;return k&&k.defaultView||window}return $}function Q($){var k=H($).Element;return $ instanceof k||$ instanceof Element}function B($){var k=H($).HTMLElement;return $ instanceof k||$ instanceof HTMLElement}function Pe($){if(typeof ShadowRoot=="undefined")return!1;var k=H($).ShadowRoot;return $ instanceof k||$ instanceof ShadowRoot}function Mt($){var k=$.state;Object.keys(k.elements).forEach(function(V){var z=k.styles[V]||{},j=k.attributes[V]||{},oe=k.elements[V];!B(oe)||!C(oe)||(Object.assign(oe.style,z),Object.keys(j).forEach(function(re){var ie=j[re];ie===!1?oe.removeAttribute(re):oe.setAttribute(re,ie===!0?"":ie)}))})}function Rt($){var k=$.state,V={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,V.popper),k.styles=V,k.elements.arrow&&Object.assign(k.elements.arrow.style,V.arrow),function(){Object.keys(k.elements).forEach(function(z){var j=k.elements[z],oe=k.attributes[z]||{},re=Object.keys(k.styles.hasOwnProperty(z)?k.styles[z]:V[z]),ie=re.reduce(function(ae,he){return ae[he]="",ae},{});!B(j)||!C(j)||(Object.assign(j.style,ie),Object.keys(oe).forEach(function(ae){j.removeAttribute(ae)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q($){return $.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee($,k){k===void 0&&(k=!1);var V=$.getBoundingClientRect(),z=1,j=1;if(B($)&&k){var oe=$.offsetHeight,re=$.offsetWidth;re>0&&(z=Z(V.width)/re||1),oe>0&&(j=Z(V.height)/oe||1)}return{width:V.width/z,height:V.height/j,top:V.top/j,right:V.right/z,bottom:V.bottom/j,left:V.left/z,x:V.left/z,y:V.top/j}}function ke($){var k=ee($),V=$.offsetWidth,z=$.offsetHeight;return Math.abs(k.width-V)<=1&&(V=k.width),Math.abs(k.height-z)<=1&&(z=k.height),{x:$.offsetLeft,y:$.offsetTop,width:V,height:z}}function it($,k){var V=k.getRootNode&&k.getRootNode();if($.contains(k))return!0;if(V&&Pe(V)){var z=k;do{if(z&&$.isSameNode(z))return!0;z=z.parentNode||z.host}while(z)}return!1}function N$1($){return H($).getComputedStyle($)}function Wt($){return["table","td","th"].indexOf(C($))>=0}function I$1($){return((Q($)?$.ownerDocument:$.document)||window.document).documentElement}function ge($){return C($)==="html"?$:$.assignedSlot||$.parentNode||(Pe($)?$.host:null)||I$1($)}function at($){return!B($)||N$1($).position==="fixed"?null:$.offsetParent}function Bt($){var k=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,V=navigator.userAgent.indexOf("Trident")!==-1;if(V&&B($)){var z=N$1($);if(z.position==="fixed")return null}var j=ge($);for(Pe(j)&&(j=j.host);B(j)&&["html","body"].indexOf(C(j))<0;){var oe=N$1(j);if(oe.transform!=="none"||oe.perspective!=="none"||oe.contain==="paint"||["transform","perspective"].indexOf(oe.willChange)!==-1||k&&oe.willChange==="filter"||k&&oe.filter&&oe.filter!=="none")return j;j=j.parentNode}return null}function se($){for(var k=H($),V=at($);V&&Wt(V)&&N$1(V).position==="static";)V=at(V);return V&&(C(V)==="html"||C(V)==="body"&&N$1(V).position==="static")?k:V||Bt($)||k}function Le($){return["top","bottom"].indexOf($)>=0?"x":"y"}function fe($,k,V){return X$1($,ve(k,V))}function St($,k,V){var z=fe($,k,V);return z>V?V:z}function st(){return{top:0,right:0,bottom:0,left:0}}function ft($){return Object.assign({},st(),$)}function ct($,k){return k.reduce(function(V,z){return V[z]=$,V},{})}var Tt=function($,k){return $=typeof $=="function"?$(Object.assign({},k.rects,{placement:k.placement})):$,ft(typeof $!="number"?$:ct($,G))};function Ht($){var k,V=$.state,z=$.name,j=$.options,oe=V.elements.arrow,re=V.modifiersData.popperOffsets,ie=q(V.placement),ae=Le(ie),he=[P$1,W$1].indexOf(ie)>=0,le=he?"height":"width";if(!(!oe||!re)){var ue=Tt(j.padding,V),de=ke(oe),pe=ae==="y"?E$1:P$1,$e=ae==="y"?R:W$1,_e=V.rects.reference[le]+V.rects.reference[ae]-re[ae]-V.rects.popper[le],Ce=re[ae]-V.rects.reference[ae],Ie=se(oe),ze=Ie?ae==="y"?Ie.clientHeight||0:Ie.clientWidth||0:0,Et=_e/2-Ce/2,qe=ue[pe],Oe=ze-de[le]-ue[$e],Ue=ze/2-de[le]/2+Et,Dt=fe(qe,Ue,Oe),At=ae;V.modifiersData[z]=(k={},k[At]=Dt,k.centerOffset=Dt-Ue,k)}}function Ct($){var k=$.state,V=$.options,z=V.element,j=z===void 0?"[data-popper-arrow]":z;j!=null&&(typeof j=="string"&&(j=k.elements.popper.querySelector(j),!j)||!it(k.elements.popper,j)||(k.elements.arrow=j))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te($){return $.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt($){var k=$.x,V=$.y,z=window,j=z.devicePixelRatio||1;return{x:Z(k*j)/j||0,y:Z(V*j)/j||0}}function ut($){var k,V=$.popper,z=$.popperRect,j=$.placement,oe=$.variation,re=$.offsets,ie=$.position,ae=$.gpuAcceleration,he=$.adaptive,le=$.roundOffsets,ue=$.isFixed,de=re.x,pe=de===void 0?0:de,$e=re.y,_e=$e===void 0?0:$e,Ce=typeof le=="function"?le({x:pe,y:_e}):{x:pe,y:_e};pe=Ce.x,_e=Ce.y;var Ie=re.hasOwnProperty("x"),ze=re.hasOwnProperty("y"),Et=P$1,qe=E$1,Oe=window;if(he){var Ue=se(V),Dt="clientHeight",At="clientWidth";if(Ue===H(V)&&(Ue=I$1(V),N$1(Ue).position!=="static"&&ie==="absolute"&&(Dt="scrollHeight",At="scrollWidth")),Ue=Ue,j===E$1||(j===P$1||j===W$1)&&oe===J){qe=R;var Lt=ue&&Ue===Oe&&Oe.visualViewport?Oe.visualViewport.height:Ue[Dt];_e-=Lt-z.height,_e*=ae?1:-1}if(j===P$1||(j===E$1||j===R)&&oe===J){Et=W$1;var kt=ue&&Ue===Oe&&Oe.visualViewport?Oe.visualViewport.width:Ue[At];pe-=kt-z.width,pe*=ae?1:-1}}var Pt=Object.assign({position:ie},he&&qt),jt=le===!0?Vt({x:pe,y:_e}):{x:pe,y:_e};if(pe=jt.x,_e=jt.y,ae){var vn;return Object.assign({},Pt,(vn={},vn[qe]=ze?"0":"",vn[Et]=Ie?"0":"",vn.transform=(Oe.devicePixelRatio||1)<=1?"translate("+pe+"px, "+_e+"px)":"translate3d("+pe+"px, "+_e+"px, 0)",vn))}return Object.assign({},Pt,(k={},k[qe]=ze?_e+"px":"",k[Et]=Ie?pe+"px":"",k.transform="",k))}function Nt($){var k=$.state,V=$.options,z=V.gpuAcceleration,j=z===void 0?!0:z,oe=V.adaptive,re=oe===void 0?!0:oe,ie=V.roundOffsets,ae=ie===void 0?!0:ie,he={placement:q(k.placement),variation:te(k.placement),popper:k.elements.popper,popperRect:k.rects.popper,gpuAcceleration:j,isFixed:k.options.strategy==="fixed"};k.modifiersData.popperOffsets!=null&&(k.styles.popper=Object.assign({},k.styles.popper,ut(Object.assign({},he,{offsets:k.modifiersData.popperOffsets,position:k.options.strategy,adaptive:re,roundOffsets:ae})))),k.modifiersData.arrow!=null&&(k.styles.arrow=Object.assign({},k.styles.arrow,ut(Object.assign({},he,{offsets:k.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ae})))),k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-placement":k.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It($){var k=$.state,V=$.instance,z=$.options,j=z.scroll,oe=j===void 0?!0:j,re=z.resize,ie=re===void 0?!0:re,ae=H(k.elements.popper),he=[].concat(k.scrollParents.reference,k.scrollParents.popper);return oe&&he.forEach(function(le){le.addEventListener("scroll",V.update,ye)}),ie&&ae.addEventListener("resize",V.update,ye),function(){oe&&he.forEach(function(le){le.removeEventListener("scroll",V.update,ye)}),ie&&ae.removeEventListener("resize",V.update,ye)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be($){return $.replace(/left|right|bottom|top/g,function(k){return _t[k]})}var zt={start:"end",end:"start"};function lt($){return $.replace(/start|end/g,function(k){return zt[k]})}function We($){var k=H($),V=k.pageXOffset,z=k.pageYOffset;return{scrollLeft:V,scrollTop:z}}function Be($){return ee(I$1($)).left+We($).scrollLeft}function Ft($){var k=H($),V=I$1($),z=k.visualViewport,j=V.clientWidth,oe=V.clientHeight,re=0,ie=0;return z&&(j=z.width,oe=z.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(re=z.offsetLeft,ie=z.offsetTop)),{width:j,height:oe,x:re+Be($),y:ie}}function Ut($){var k,V=I$1($),z=We($),j=(k=$.ownerDocument)==null?void 0:k.body,oe=X$1(V.scrollWidth,V.clientWidth,j?j.scrollWidth:0,j?j.clientWidth:0),re=X$1(V.scrollHeight,V.clientHeight,j?j.scrollHeight:0,j?j.clientHeight:0),ie=-z.scrollLeft+Be($),ae=-z.scrollTop;return N$1(j||V).direction==="rtl"&&(ie+=X$1(V.clientWidth,j?j.clientWidth:0)-oe),{width:oe,height:re,x:ie,y:ae}}function Se($){var k=N$1($),V=k.overflow,z=k.overflowX,j=k.overflowY;return/auto|scroll|overlay|hidden/.test(V+j+z)}function dt($){return["html","body","#document"].indexOf(C($))>=0?$.ownerDocument.body:B($)&&Se($)?$:dt(ge($))}function ce($,k){var V;k===void 0&&(k=[]);var z=dt($),j=z===((V=$.ownerDocument)==null?void 0:V.body),oe=H(z),re=j?[oe].concat(oe.visualViewport||[],Se(z)?z:[]):z,ie=k.concat(re);return j?ie:ie.concat(ce(ge(re)))}function Te($){return Object.assign({},$,{left:$.x,top:$.y,right:$.x+$.width,bottom:$.y+$.height})}function Xt($){var k=ee($);return k.top=k.top+$.clientTop,k.left=k.left+$.clientLeft,k.bottom=k.top+$.clientHeight,k.right=k.left+$.clientWidth,k.width=$.clientWidth,k.height=$.clientHeight,k.x=k.left,k.y=k.top,k}function ht($,k){return k===je?Te(Ft($)):Q(k)?Xt(k):Te(Ut(I$1($)))}function Yt($){var k=ce(ge($)),V=["absolute","fixed"].indexOf(N$1($).position)>=0,z=V&&B($)?se($):$;return Q(z)?k.filter(function(j){return Q(j)&&it(j,z)&&C(j)!=="body"}):[]}function Gt($,k,V){var z=k==="clippingParents"?Yt($):[].concat(k),j=[].concat(z,[V]),oe=j[0],re=j.reduce(function(ie,ae){var he=ht($,ae);return ie.top=X$1(he.top,ie.top),ie.right=ve(he.right,ie.right),ie.bottom=ve(he.bottom,ie.bottom),ie.left=X$1(he.left,ie.left),ie},ht($,oe));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function mt($){var k=$.reference,V=$.element,z=$.placement,j=z?q(z):null,oe=z?te(z):null,re=k.x+k.width/2-V.width/2,ie=k.y+k.height/2-V.height/2,ae;switch(j){case E$1:ae={x:re,y:k.y-V.height};break;case R:ae={x:re,y:k.y+k.height};break;case W$1:ae={x:k.x+k.width,y:ie};break;case P$1:ae={x:k.x-V.width,y:ie};break;default:ae={x:k.x,y:k.y}}var he=j?Le(j):null;if(he!=null){var le=he==="y"?"height":"width";switch(oe){case U$1:ae[he]=ae[he]-(k[le]/2-V[le]/2);break;case J:ae[he]=ae[he]+(k[le]/2-V[le]/2);break}}return ae}function ne($,k){k===void 0&&(k={});var V=k,z=V.placement,j=z===void 0?$.placement:z,oe=V.boundary,re=oe===void 0?Xe:oe,ie=V.rootBoundary,ae=ie===void 0?je:ie,he=V.elementContext,le=he===void 0?K:he,ue=V.altBoundary,de=ue===void 0?!1:ue,pe=V.padding,$e=pe===void 0?0:pe,_e=ft(typeof $e!="number"?$e:ct($e,G)),Ce=le===K?Ye:K,Ie=$.rects.popper,ze=$.elements[de?Ce:le],Et=Gt(Q(ze)?ze:ze.contextElement||I$1($.elements.popper),re,ae),qe=ee($.elements.reference),Oe=mt({reference:qe,element:Ie,strategy:"absolute",placement:j}),Ue=Te(Object.assign({},Ie,Oe)),Dt=le===K?Ue:qe,At={top:Et.top-Dt.top+_e.top,bottom:Dt.bottom-Et.bottom+_e.bottom,left:Et.left-Dt.left+_e.left,right:Dt.right-Et.right+_e.right},Lt=$.modifiersData.offset;if(le===K&&Lt){var kt=Lt[j];Object.keys(At).forEach(function(Pt){var jt=[W$1,R].indexOf(Pt)>=0?1:-1,vn=[E$1,R].indexOf(Pt)>=0?"y":"x";At[Pt]+=kt[vn]*jt})}return At}function Jt($,k){k===void 0&&(k={});var V=k,z=V.placement,j=V.boundary,oe=V.rootBoundary,re=V.padding,ie=V.flipVariations,ae=V.allowedAutoPlacements,he=ae===void 0?Ee:ae,le=te(z),ue=le?ie?De:De.filter(function($e){return te($e)===le}):G,de=ue.filter(function($e){return he.indexOf($e)>=0});de.length===0&&(de=ue);var pe=de.reduce(function($e,_e){return $e[_e]=ne($,{placement:_e,boundary:j,rootBoundary:oe,padding:re})[q(_e)],$e},{});return Object.keys(pe).sort(function($e,_e){return pe[$e]-pe[_e]})}function Kt($){if(q($)===me)return[];var k=be($);return[lt($),k,lt(k)]}function Qt($){var k=$.state,V=$.options,z=$.name;if(!k.modifiersData[z]._skip){for(var j=V.mainAxis,oe=j===void 0?!0:j,re=V.altAxis,ie=re===void 0?!0:re,ae=V.fallbackPlacements,he=V.padding,le=V.boundary,ue=V.rootBoundary,de=V.altBoundary,pe=V.flipVariations,$e=pe===void 0?!0:pe,_e=V.allowedAutoPlacements,Ce=k.options.placement,Ie=q(Ce),ze=Ie===Ce,Et=ae||(ze||!$e?[be(Ce)]:Kt(Ce)),qe=[Ce].concat(Et).reduce(function(On,Ln){return On.concat(q(Ln)===me?Jt(k,{placement:Ln,boundary:le,rootBoundary:ue,padding:he,flipVariations:$e,allowedAutoPlacements:_e}):Ln)},[]),Oe=k.rects.reference,Ue=k.rects.popper,Dt=new Map,At=!0,Lt=qe[0],kt=0;kt=0,wn=$n?"width":"height",_n=ne(k,{placement:Pt,boundary:le,rootBoundary:ue,altBoundary:de,padding:he}),En=$n?vn?W$1:P$1:vn?R:E$1;Oe[wn]>Ue[wn]&&(En=be(En));var Sn=be(En),An=[];if(oe&&An.push(_n[jt]<=0),ie&&An.push(_n[En]<=0,_n[Sn]<=0),An.every(function(On){return On})){Lt=Pt,At=!1;break}Dt.set(Pt,An)}if(At)for(var Cn=$e?3:1,Tn=function(On){var Ln=qe.find(function(Bn){var Vn=Dt.get(Bn);if(Vn)return Vn.slice(0,On).every(function(Fn){return Fn})});if(Ln)return Lt=Ln,"break"},Nn=Cn;Nn>0;Nn--){var xn=Tn(Nn);if(xn==="break")break}k.placement!==Lt&&(k.modifiersData[z]._skip=!0,k.placement=Lt,k.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt($,k,V){return V===void 0&&(V={x:0,y:0}),{top:$.top-k.height-V.y,right:$.right-k.width+V.x,bottom:$.bottom-k.height+V.y,left:$.left-k.width-V.x}}function yt($){return[E$1,W$1,R,P$1].some(function(k){return $[k]>=0})}function Zt($){var k=$.state,V=$.name,z=k.rects.reference,j=k.rects.popper,oe=k.modifiersData.preventOverflow,re=ne(k,{elementContext:"reference"}),ie=ne(k,{altBoundary:!0}),ae=gt(re,z),he=gt(ie,j,oe),le=yt(ae),ue=yt(he);k.modifiersData[V]={referenceClippingOffsets:ae,popperEscapeOffsets:he,isReferenceHidden:le,hasPopperEscaped:ue},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":le,"data-popper-escaped":ue})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$1($,k,V){var z=q($),j=[P$1,E$1].indexOf(z)>=0?-1:1,oe=typeof V=="function"?V(Object.assign({},k,{placement:$})):V,re=oe[0],ie=oe[1];return re=re||0,ie=(ie||0)*j,[P$1,W$1].indexOf(z)>=0?{x:ie,y:re}:{x:re,y:ie}}function tn($){var k=$.state,V=$.options,z=$.name,j=V.offset,oe=j===void 0?[0,0]:j,re=Ee.reduce(function(le,ue){return le[ue]=en$1(ue,k.rects,oe),le},{}),ie=re[k.placement],ae=ie.x,he=ie.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=ae,k.modifiersData.popperOffsets.y+=he),k.modifiersData[z]=re}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn($){var k=$.state,V=$.name;k.modifiersData[V]=mt({reference:k.rects.reference,element:k.rects.popper,strategy:"absolute",placement:k.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn($){return $==="x"?"y":"x"}function on($){var k=$.state,V=$.options,z=$.name,j=V.mainAxis,oe=j===void 0?!0:j,re=V.altAxis,ie=re===void 0?!1:re,ae=V.boundary,he=V.rootBoundary,le=V.altBoundary,ue=V.padding,de=V.tether,pe=de===void 0?!0:de,$e=V.tetherOffset,_e=$e===void 0?0:$e,Ce=ne(k,{boundary:ae,rootBoundary:he,padding:ue,altBoundary:le}),Ie=q(k.placement),ze=te(k.placement),Et=!ze,qe=Le(Ie),Oe=rn(qe),Ue=k.modifiersData.popperOffsets,Dt=k.rects.reference,At=k.rects.popper,Lt=typeof _e=="function"?_e(Object.assign({},k.rects,{placement:k.placement})):_e,kt=typeof Lt=="number"?{mainAxis:Lt,altAxis:Lt}:Object.assign({mainAxis:0,altAxis:0},Lt),Pt=k.modifiersData.offset?k.modifiersData.offset[k.placement]:null,jt={x:0,y:0};if(Ue){if(oe){var vn,$n=qe==="y"?E$1:P$1,wn=qe==="y"?R:W$1,_n=qe==="y"?"height":"width",En=Ue[qe],Sn=En+Ce[$n],An=En-Ce[wn],Cn=pe?-At[_n]/2:0,Tn=ze===U$1?Dt[_n]:At[_n],Nn=ze===U$1?-At[_n]:-Dt[_n],xn=k.elements.arrow,On=pe&&xn?ke(xn):{width:0,height:0},Ln=k.modifiersData["arrow#persistent"]?k.modifiersData["arrow#persistent"].padding:st(),Bn=Ln[$n],Vn=Ln[wn],Fn=fe(0,Dt[_n],On[_n]),zn=Et?Dt[_n]/2-Cn-Fn-Bn-kt.mainAxis:Tn-Fn-Bn-kt.mainAxis,Xn=Et?-Dt[_n]/2+Cn+Fn+Vn+kt.mainAxis:Nn+Fn+Vn+kt.mainAxis,Pn=k.elements.arrow&&se(k.elements.arrow),Hn=Pn?qe==="y"?Pn.clientTop||0:Pn.clientLeft||0:0,eo=(vn=Pt==null?void 0:Pt[qe])!=null?vn:0,Qn=En+zn-eo-Hn,ao=En+Xn-eo,ho=fe(pe?ve(Sn,Qn):Sn,En,pe?X$1(An,ao):An);Ue[qe]=ho,jt[qe]=ho-En}if(ie){var uo,Un=qe==="x"?E$1:P$1,Zn=qe==="x"?R:W$1,no=Ue[Oe],qn=Oe==="y"?"height":"width",In=no+Ce[Un],jn=no-Ce[Zn],Kn=[E$1,P$1].indexOf(Ie)!==-1,so=(uo=Pt==null?void 0:Pt[Oe])!=null?uo:0,ro=Kn?In:no-Dt[qn]-At[qn]-so+kt.altAxis,vo=Kn?no+Dt[qn]+At[qn]-so-kt.altAxis:jn,go=pe&&Kn?St(ro,no,vo):fe(pe?ro:In,no,pe?vo:jn);Ue[Oe]=go,jt[Oe]=go-no}k.modifiersData[z]=jt}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an($){return{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}}function sn($){return $===H($)||!B($)?We($):an($)}function fn($){var k=$.getBoundingClientRect(),V=Z(k.width)/$.offsetWidth||1,z=Z(k.height)/$.offsetHeight||1;return V!==1||z!==1}function cn($,k,V){V===void 0&&(V=!1);var z=B(k),j=B(k)&&fn(k),oe=I$1(k),re=ee($,j),ie={scrollLeft:0,scrollTop:0},ae={x:0,y:0};return(z||!z&&!V)&&((C(k)!=="body"||Se(oe))&&(ie=sn(k)),B(k)?(ae=ee(k,!0),ae.x+=k.clientLeft,ae.y+=k.clientTop):oe&&(ae.x=Be(oe))),{x:re.left+ie.scrollLeft-ae.x,y:re.top+ie.scrollTop-ae.y,width:re.width,height:re.height}}function pn($){var k=new Map,V=new Set,z=[];$.forEach(function(oe){k.set(oe.name,oe)});function j(oe){V.add(oe.name);var re=[].concat(oe.requires||[],oe.requiresIfExists||[]);re.forEach(function(ie){if(!V.has(ie)){var ae=k.get(ie);ae&&j(ae)}}),z.push(oe)}return $.forEach(function(oe){V.has(oe.name)||j(oe)}),z}function un($){var k=pn($);return ot.reduce(function(V,z){return V.concat(k.filter(function(j){return j.phase===z}))},[])}function ln($){var k;return function(){return k||(k=new Promise(function(V){Promise.resolve().then(function(){k=void 0,V($())})})),k}}function dn($){var k=$.reduce(function(V,z){var j=V[z.name];return V[z.name]=j?Object.assign({},j,z,{options:Object.assign({},j.options,z.options),data:Object.assign({},j.data,z.data)}):z,V},{});return Object.keys(k).map(function(V){return k[V]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var $=arguments.length,k=new Array($),V=0;V<$;V++)k[V]=arguments[V];return!k.some(function(z){return!(z&&typeof z.getBoundingClientRect=="function")})}function we($){$===void 0&&($={});var k=$,V=k.defaultModifiers,z=V===void 0?[]:V,j=k.defaultOptions,oe=j===void 0?Ot:j;return function(re,ie,ae){ae===void 0&&(ae=oe);var he={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,oe),modifiersData:{},elements:{reference:re,popper:ie},attributes:{},styles:{}},le=[],ue=!1,de={state:he,setOptions:function(_e){var Ce=typeof _e=="function"?_e(he.options):_e;$e(),he.options=Object.assign({},oe,he.options,Ce),he.scrollParents={reference:Q(re)?ce(re):re.contextElement?ce(re.contextElement):[],popper:ce(ie)};var Ie=un(dn([].concat(z,he.options.modifiers)));return he.orderedModifiers=Ie.filter(function(ze){return ze.enabled}),pe(),de.update()},forceUpdate:function(){if(!ue){var _e=he.elements,Ce=_e.reference,Ie=_e.popper;if($t(Ce,Ie)){he.rects={reference:cn(Ce,se(Ie),he.options.strategy==="fixed"),popper:ke(Ie)},he.reset=!1,he.placement=he.options.placement,he.orderedModifiers.forEach(function(At){return he.modifiersData[At.name]=Object.assign({},At.data)});for(var ze=0;ze[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),usePopperContentProps=buildProps(mo(oo({},usePopperCoreConfigProps),{style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},zIndex:Number})),buildPopperOptions=($,k)=>{const{placement:V,strategy:z,popperOptions:j}=$,oe=mo(oo({placement:V,strategy:z},j),{modifiers:genModifiers($)});return attachArrow(oe,k),deriveExtraModifiers(oe,j==null?void 0:j.modifiers),oe},unwrapMeasurableEl=$=>{if(!!isClient)return unrefElement($)};function genModifiers($){const{offset:k,gpuAcceleration:V,fallbackPlacements:z}=$;return[{name:"offset",options:{offset:[0,k!=null?k:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:z!=null?z:[]}},{name:"computeStyles",options:{gpuAcceleration:V,adaptive:V}}]}function attachArrow($,{arrowEl:k,arrowOffset:V}){$.modifiers.push({name:"arrow",options:{element:k,padding:V!=null?V:5}})}function deriveExtraModifiers($,k){k&&($.modifiers=[...$.modifiers,...k!=null?k:[]])}const __default__$G={name:"ElPopperContent"},_sfc_main$2b=defineComponent(mo(oo({},__default__$G),{props:usePopperContentProps,emits:["mouseenter","mouseleave"],setup($,{expose:k}){const V=$,{popperInstanceRef:z,contentRef:j,triggerRef:oe}=inject(POPPER_INJECTION_KEY,void 0),re=inject(formItemContextKey,void 0),{nextZIndex:ie}=useZIndex(),ae=useNamespace("popper"),he=ref(),le=ref(),ue=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowRef:le,arrowOffset:ue}),provide(formItemContextKey,mo(oo({},re),{addInputId:()=>{},removeInputId:()=>{}}));const de=ref(V.zIndex||ie()),pe=computed(()=>unwrapMeasurableEl(V.referenceEl)||unref(oe)),$e=computed(()=>[{zIndex:unref(de)},V.popperStyle]),_e=computed(()=>[ae.b(),ae.is("pure",V.pure),ae.is(V.effect),V.popperClass]),Ce=({referenceEl:Et,popperContentEl:qe,arrowEl:Oe})=>{const Ue=buildPopperOptions(V,{arrowEl:Oe,arrowOffset:unref(ue)});return yn(Et,qe,Ue)},Ie=(Et=!0)=>{var qe;(qe=unref(z))==null||qe.update(),Et&&(de.value=V.zIndex||ie())},ze=()=>{var Et,qe;const Oe={name:"eventListeners",enabled:V.visible};(qe=(Et=unref(z))==null?void 0:Et.setOptions)==null||qe.call(Et,Ue=>mo(oo({},Ue),{modifiers:[...Ue.modifiers||[],Oe]})),Ie(!1)};return onMounted(()=>{let Et;watch$1(pe,qe=>{var Oe;Et==null||Et();const Ue=unref(z);if((Oe=Ue==null?void 0:Ue.destroy)==null||Oe.call(Ue),qe){const Dt=unref(he);j.value=Dt,z.value=Ce({referenceEl:qe,popperContentEl:Dt,arrowEl:unref(le)}),Et=watch$1(()=>qe.getBoundingClientRect(),()=>Ie(),{immediate:!0})}else z.value=void 0},{immediate:!0}),watch$1(()=>V.visible,ze,{immediate:!0}),watch$1(()=>buildPopperOptions(V,{arrowEl:unref(le),arrowOffset:unref(ue)}),qe=>{var Oe;return(Oe=z.value)==null?void 0:Oe.setOptions(qe)})}),k({popperContentRef:he,popperInstanceRef:z,updatePopper:Ie,contentStyle:$e}),(Et,qe)=>(openBlock(),createElementBlock("div",{ref_key:"popperContentRef",ref:he,style:normalizeStyle(unref($e)),class:normalizeClass(unref(_e)),role:"tooltip",onMouseenter:qe[0]||(qe[0]=Oe=>Et.$emit("mouseenter",Oe)),onMouseleave:qe[1]||(qe[1]=Oe=>Et.$emit("mouseleave",Oe))},[renderSlot(Et.$slots,"default")],38))}}));var ElPopperContent=_export_sfc$1(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Effect={LIGHT:"light",DARK:"dark"};buildProps({autoClose:{type:Number,default:0},cutoff:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}});const ElPopper=withInstall(Popper),_sfc_main$2a=defineComponent({name:"ElVisuallyHidden",props:{style:{type:[String,Object,Array]}},setup($){return{computedStyle:computed(()=>[$.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}])}}});function _sfc_render$1r($,k,V,z,j,oe){return openBlock(),createElementBlock("span",mergeProps($.$attrs,{style:$.computedStyle}),[renderSlot($.$slots,"default")],16)}var ElVisuallyHidden=_export_sfc$1(_sfc_main$2a,[["render",_sfc_render$1r],["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const useTooltipContentProps=buildProps(mo(oo(oo({},useDelayedToggleProps),usePopperContentProps),{appendTo:{type:definePropType([String,Object]),default:POPPER_CONTAINER_SELECTOR},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:{type:String,default:"el-fade-in-linear"},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),useTooltipTriggerProps=buildProps(mo(oo({},usePopperTriggerProps),{disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"}})),useTooltipProps=buildProps({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),_sfc_main$29=defineComponent({name:"ElTooltipContent",components:{ElPopperContent,ElVisuallyHidden},inheritAttrs:!1,props:useTooltipContentProps,setup($){const k=ref(null),V=ref(!1),z=ref(!1),j=ref(!1),oe=ref(!1),{controlled:re,id:ie,open:ae,trigger:he,onClose:le,onOpen:ue,onShow:de,onHide:pe,onBeforeShow:$e,onBeforeHide:_e}=inject(TOOLTIP_INJECTION_KEY,void 0),Ce=computed(()=>$.persistent);onBeforeUnmount(()=>{oe.value=!0});const Ie=computed(()=>unref(Ce)?!0:unref(ae)),ze=computed(()=>$.disabled?!1:unref(ae)),Et=computed(()=>{var vn;return(vn=$.style)!=null?vn:{}}),qe=computed(()=>!unref(ae));useEscapeKeydown(le);const Oe=()=>{pe()},Ue=()=>{if(unref(re))return!0},Dt=composeEventHandlers(Ue,()=>{$.enterable&&unref(he)==="hover"&&ue()}),At=composeEventHandlers(Ue,()=>{unref(he)==="hover"&&le()}),Lt=()=>{var vn,$n;($n=(vn=k.value)==null?void 0:vn.updatePopper)==null||$n.call(vn),$e==null||$e()},kt=()=>{_e==null||_e()},Pt=()=>{de()};let jt;return watch$1(()=>unref(ae),vn=>{vn?jt=onClickOutside(computed(()=>{var $n;return($n=k.value)==null?void 0:$n.popperContentRef}),()=>{if(unref(re))return;unref(he)!=="hover"&&le()}):jt==null||jt()},{flush:"post"}),{ariaHidden:qe,entering:z,leaving:j,id:ie,intermediateOpen:V,contentStyle:Et,contentRef:k,destroyed:oe,shouldRender:Ie,shouldShow:ze,open:ae,onAfterShow:Pt,onBeforeEnter:Lt,onBeforeLeave:kt,onContentEnter:Dt,onContentLeave:At,onTransitionLeave:Oe}}});function _sfc_render$1q($,k,V,z,j,oe){const re=resolveComponent("el-visually-hidden"),ie=resolveComponent("el-popper-content");return openBlock(),createBlock(Teleport,{disabled:!$.teleported,to:$.appendTo},[createVNode(Transition,{name:$.transition,onAfterLeave:$.onTransitionLeave,onBeforeEnter:$.onBeforeEnter,onAfterEnter:$.onAfterShow,onBeforeLeave:$.onBeforeLeave},{default:withCtx(()=>[$.shouldRender?withDirectives((openBlock(),createBlock(ie,mergeProps({key:0,ref:"contentRef"},$.$attrs,{"aria-hidden":$.ariaHidden,"boundaries-padding":$.boundariesPadding,"fallback-placements":$.fallbackPlacements,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,placement:$.placement,"popper-options":$.popperOptions,strategy:$.strategy,effect:$.effect,enterable:$.enterable,pure:$.pure,"popper-class":$.popperClass,"popper-style":[$.popperStyle,$.contentStyle],"reference-el":$.referenceEl,visible:$.shouldShow,"z-index":$.zIndex,onMouseenter:$.onContentEnter,onMouseleave:$.onContentLeave}),{default:withCtx(()=>[createCommentVNode(" Workaround bug #6378 "),$.destroyed?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot($.$slots,"default"),createVNode(re,{id:$.id,role:"tooltip"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.ariaLabel),1)]),_:1},8,["id"])],64))]),_:3},16,["aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","visible","z-index","onMouseenter","onMouseleave"])),[[vShow,$.shouldShow]]):createCommentVNode("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var ElTooltipContent=_export_sfc$1(_sfc_main$29,[["render",_sfc_render$1q],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const isTriggerType=($,k)=>isArray$4($)?$.includes(k):$===k,whenTrigger=($,k,V)=>z=>{isTriggerType(unref($),k)&&V(z)},_sfc_main$28=defineComponent({name:"ElTooltipTrigger",components:{ElPopperTrigger},props:useTooltipTriggerProps,setup($){const k=useNamespace("tooltip"),{controlled:V,id:z,open:j,onOpen:oe,onClose:re,onToggle:ie}=inject(TOOLTIP_INJECTION_KEY,void 0),ae=ref(null),he=()=>{if(unref(V)||$.disabled)return!0},le=toRef($,"trigger"),ue=composeEventHandlers(he,whenTrigger(le,"hover",oe)),de=composeEventHandlers(he,whenTrigger(le,"hover",re)),pe=composeEventHandlers(he,whenTrigger(le,"click",ze=>{ze.button===0&&ie(ze)})),$e=composeEventHandlers(he,whenTrigger(le,"focus",oe)),_e=composeEventHandlers(he,whenTrigger(le,"focus",re)),Ce=composeEventHandlers(he,whenTrigger(le,"contextmenu",ze=>{ze.preventDefault(),ie(ze)})),Ie=composeEventHandlers(he,ze=>{const{code:Et}=ze;(Et===EVENT_CODE.enter||Et===EVENT_CODE.space)&&ie(ze)});return{onBlur:_e,onContextMenu:Ce,onFocus:$e,onMouseenter:ue,onMouseleave:de,onClick:pe,onKeydown:Ie,open:j,id:z,triggerRef:ae,ns:k}}});function _sfc_render$1p($,k,V,z,j,oe){const re=resolveComponent("el-popper-trigger");return openBlock(),createBlock(re,{id:$.id,"virtual-ref":$.virtualRef,open:$.open,"virtual-triggering":$.virtualTriggering,class:normalizeClass($.ns.e("trigger")),onBlur:$.onBlur,onClick:$.onClick,onContextmenu:$.onContextMenu,onFocus:$.onFocus,onMouseenter:$.onMouseenter,onMouseleave:$.onMouseleave,onKeydown:$.onKeydown},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var ElTooltipTrigger=_export_sfc$1(_sfc_main$28,[["render",_sfc_render$1p],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps,useModelToggle,useModelToggleEmits}=createModelToggleComposable("visible"),_sfc_main$27=defineComponent({name:"ElTooltip",components:{ElPopper,ElPopperArrow,ElTooltipContent,ElTooltipTrigger},props:oo(oo(oo(oo(oo({},useModelToggleProps),useTooltipContentProps),useTooltipTriggerProps),usePopperArrowProps),useTooltipProps),emits:[...useModelToggleEmits,"before-show","before-hide","show","hide"],setup($,{emit:k}){usePopperContainer();const V=computed(()=>(isUndefined($.openDelay),$.openDelay||$.showAfter)),z=computed(()=>(isUndefined($.visibleArrow),isBoolean$1($.visibleArrow)?$.visibleArrow:$.showArrow)),j=useId(),oe=ref(null),re=()=>{var pe;const $e=unref(oe);$e&&((pe=$e.popperInstanceRef)==null||pe.update())},ie=ref(!1),{show:ae,hide:he}=useModelToggle({indicator:ie}),{onOpen:le,onClose:ue}=useDelayedToggle({showAfter:V,hideAfter:toRef($,"hideAfter"),open:ae,close:he}),de=computed(()=>isBoolean$1($.visible));return provide(TOOLTIP_INJECTION_KEY,{controlled:de,id:j,open:readonly(ie),trigger:toRef($,"trigger"),onOpen:le,onClose:ue,onToggle:()=>{unref(ie)?ue():le()},onShow:()=>{k("show")},onHide:()=>{k("hide")},onBeforeShow:()=>{k("before-show")},onBeforeHide:()=>{k("before-hide")},updatePopper:re}),watch$1(()=>$.disabled,pe=>{pe&&ie.value&&(ie.value=!1)}),{compatShowAfter:V,compatShowArrow:z,popperRef:oe,open:ie,hide:he,updatePopper:re,onOpen:le,onClose:ue}}}),_hoisted_1$13=["innerHTML"],_hoisted_2$H={key:1};function _sfc_render$1o($,k,V,z,j,oe){const re=resolveComponent("el-tooltip-trigger"),ie=resolveComponent("el-popper-arrow"),ae=resolveComponent("el-tooltip-content"),he=resolveComponent("el-popper");return openBlock(),createBlock(he,{ref:"popperRef"},{default:withCtx(()=>[createVNode(re,{disabled:$.disabled,trigger:$.trigger,"virtual-ref":$.virtualRef,"virtual-triggering":$.virtualTriggering},{default:withCtx(()=>[$.$slots.default?renderSlot($.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","virtual-ref","virtual-triggering"]),createVNode(ae,{"aria-label":$.ariaLabel,"boundaries-padding":$.boundariesPadding,content:$.content,disabled:$.disabled,effect:$.effect,enterable:$.enterable,"fallback-placements":$.fallbackPlacements,"hide-after":$.hideAfter,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,persistent:$.persistent,"popper-class":$.popperClass,"popper-style":$.popperStyle,placement:$.placement,"popper-options":$.popperOptions,pure:$.pure,"raw-content":$.rawContent,"reference-el":$.referenceEl,"show-after":$.compatShowAfter,strategy:$.strategy,teleported:$.teleported,transition:$.transition,"z-index":$.zIndex,"append-to":$.appendTo},{default:withCtx(()=>[renderSlot($.$slots,"content",{},()=>[$.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:$.content},null,8,_hoisted_1$13)):(openBlock(),createElementBlock("span",_hoisted_2$H,toDisplayString$1($.content),1))]),$.compatShowArrow?(openBlock(),createBlock(ie,{key:0,"arrow-offset":$.arrowOffset},null,8,["arrow-offset"])):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","show-after","strategy","teleported","transition","z-index","append-to"])]),_:3},512)}var Tooltip=_export_sfc$1(_sfc_main$27,[["render",_sfc_render$1o],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:definePropType([Function,Array]),default:NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:useTooltipContentProps.teleported,highlightFirstItem:{type:Boolean,default:!1}}),autocompleteEmits={[UPDATE_MODEL_EVENT]:$=>isString$3($),input:$=>isString$3($),change:$=>isString$3($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,select:$=>isObject$5($)},_hoisted_1$12=["aria-expanded","aria-owns"],_hoisted_2$G={key:0},_hoisted_3$n=["id","aria-selected","onClick"],__default__$F={name:"ElAutocomplete",inheritAttrs:!1},_sfc_main$26=defineComponent(mo(oo({},__default__$F),{props:autocompleteProps,emits:autocompleteEmits,setup($,{expose:k,emit:V}){const z=$,j="ElAutocomplete",oe=useNamespace("autocomplete");let re=!1;const ie=useAttrs(),ae=useAttrs$1(),he=ref([]),le=ref(-1),ue=ref(""),de=ref(!1),pe=ref(!1),$e=ref(!1),_e=ref(),Ce=ref(),Ie=ref(),ze=ref(),Et=computed(()=>oe.b(String(generateId()))),qe=computed(()=>ae.style),Oe=computed(()=>(isArray$4(he.value)&&he.value.length>0||$e.value)&&de.value),Ue=computed(()=>!z.hideLoading&&$e.value),Dt=()=>{nextTick(()=>{Oe.value&&(ue.value=`${_e.value.$el.offsetWidth}px`)})},Lt=debounce(async Cn=>{if(pe.value)return;$e.value=!0;const Tn=Nn=>{$e.value=!1,!pe.value&&(isArray$4(Nn)?(he.value=Nn,le.value=z.highlightFirstItem?0:-1):throwError(j,"autocomplete suggestions must be an array"))};if(isArray$4(z.fetchSuggestions))Tn(z.fetchSuggestions);else{const Nn=await z.fetchSuggestions(Cn,Tn);isArray$4(Nn)&&Tn(Nn)}},z.debounce),kt=Cn=>{const Tn=Boolean(Cn);if(V("input",Cn),V(UPDATE_MODEL_EVENT,Cn),pe.value=!1,de.value||(de.value=re&&Tn),!z.triggerOnFocus&&!Cn){pe.value=!0,he.value=[];return}re&&Tn&&(re=!1),Lt(Cn)},Pt=Cn=>{V("change",Cn)},jt=Cn=>{de.value=!0,V("focus",Cn),z.triggerOnFocus&&Lt(String(z.modelValue))},vn=Cn=>{V("blur",Cn)},$n=()=>{de.value=!1,re=!0,V(UPDATE_MODEL_EVENT,""),V("clear")},wn=()=>{Oe.value&&le.value>=0&&le.value{he.value=[],le.value=-1}))},_n=()=>{de.value=!1},En=()=>{var Cn;(Cn=_e.value)==null||Cn.focus()},Sn=Cn=>{V("input",Cn[z.valueKey]),V(UPDATE_MODEL_EVENT,Cn[z.valueKey]),V("select",Cn),nextTick(()=>{he.value=[],le.value=-1})},An=Cn=>{if(!Oe.value||$e.value)return;if(Cn<0){le.value=-1;return}Cn>=he.value.length&&(Cn=he.value.length-1);const Tn=Ce.value.querySelector(`.${oe.be("suggestion","wrap")}`),xn=Tn.querySelectorAll(`.${oe.be("suggestion","list")} li`)[Cn],On=Tn.scrollTop,{offsetTop:Ln,scrollHeight:Bn}=xn;Ln+Bn>On+Tn.clientHeight&&(Tn.scrollTop+=Bn),Ln{_e.value.ref.setAttribute("role","textbox"),_e.value.ref.setAttribute("aria-autocomplete","list"),_e.value.ref.setAttribute("aria-controls","id"),_e.value.ref.setAttribute("aria-activedescendant",`${Et.value}-item-${le.value}`)}),k({highlightedIndex:le,activated:de,loading:$e,inputRef:_e,popperRef:Ie,suggestions:he,handleSelect:Sn,handleKeyEnter:wn,focus:En,close:_n,highlight:An}),(Cn,Tn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:Ie,visible:unref(Oe),"onUpdate:visible":Tn[2]||(Tn[2]=Nn=>isRef(Oe)?Oe.value=Nn:null),placement:Cn.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(oe).e("popper"),Cn.popperClass],teleported:Cn.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(oe).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:Dt},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:Ce,class:normalizeClass([unref(oe).b("suggestion"),unref(oe).is("loading",unref(Ue))]),style:normalizeStyle({minWidth:ue.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(Et),tag:"ul","wrap-class":unref(oe).be("suggestion","wrap"),"view-class":unref(oe).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(Ue)?(openBlock(),createElementBlock("li",_hoisted_2$G,[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading$1))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(he.value,(Nn,xn)=>(openBlock(),createElementBlock("li",{id:`${unref(Et)}-item-${xn}`,key:xn,class:normalizeClass({highlighted:le.value===xn}),role:"option","aria-selected":le.value===xn,onClick:On=>Sn(Nn)},[renderSlot(Cn.$slots,"default",{item:Nn},()=>[createTextVNode(toDisplayString$1(Nn[Cn.valueKey]),1)])],10,_hoisted_3$n))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:ze,class:normalizeClass([unref(oe).b(),Cn.$attrs.class]),style:normalizeStyle(unref(qe)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(Oe),"aria-owns":unref(Et)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:_e},unref(ie),{"model-value":Cn.modelValue,onInput:kt,onChange:Pt,onFocus:jt,onBlur:vn,onClear:$n,onKeydown:[Tn[0]||(Tn[0]=withKeys(withModifiers(Nn=>An(le.value-1),["prevent"]),["up"])),Tn[1]||(Tn[1]=withKeys(withModifiers(Nn=>An(le.value+1),["prevent"]),["down"])),withKeys(wn,["enter"]),withKeys(_n,["tab"])]}),createSlots({_:2},[Cn.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(Cn.$slots,"prepend")])}:void 0,Cn.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(Cn.$slots,"append")])}:void 0,Cn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Cn.$slots,"prefix")])}:void 0,Cn.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(Cn.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,_hoisted_1$12)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}}));var Autocomplete=_export_sfc$1(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ElAutocomplete=withInstall(Autocomplete),avatarProps=buildProps({size:{type:[Number,String],values:componentSizes,default:"",validator:$=>typeof $=="number"},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:$=>$ instanceof Event},_hoisted_1$11=["src","alt","srcset"],__default__$E={name:"ElAvatar"},_sfc_main$25=defineComponent(mo(oo({},__default__$E),{props:avatarProps,emits:avatarEmits,setup($,{emit:k}){const V=$,z=useNamespace("avatar"),j=ref(!1),oe=computed(()=>{const{size:he,icon:le,shape:ue}=V,de=[z.b()];return isString$3(he)&&de.push(z.m(he)),le&&de.push(z.m("icon")),ue&&de.push(z.m(ue)),de}),re=computed(()=>{const{size:he}=V;return isNumber$1(he)?z.cssVarBlock({size:addUnit(he)||""}):void 0}),ie=computed(()=>({objectFit:V.fit}));watch$1(()=>V.src,()=>j.value=!1);function ae(he){j.value=!0,k("error",he)}return(he,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe)),style:normalizeStyle(unref(re))},[(he.src||he.srcSet)&&!j.value?(openBlock(),createElementBlock("img",{key:0,src:he.src,alt:he.alt,srcset:he.srcSet,style:normalizeStyle(unref(ie)),onError:ae},null,44,_hoisted_1$11)):he.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(he.icon)))]),_:1})):renderSlot(he.$slots,"default",{key:2})],6))}}));var Avatar=_export_sfc$1(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ElAvatar=withInstall(Avatar),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$10=["onClick"],__default__$D={name:"ElBacktop"},_sfc_main$24=defineComponent(mo(oo({},__default__$D),{props:backtopProps,emits:backtopEmits,setup($,{emit:k}){const V=$,z="ElBacktop",j=useNamespace("backtop"),oe=shallowRef(),re=shallowRef(),ie=ref(!1),ae=computed(()=>({right:`${V.right}px`,bottom:`${V.bottom}px`})),he=()=>{if(!oe.value)return;const pe=Date.now(),$e=oe.value.scrollTop,_e=()=>{if(!oe.value)return;const Ce=(Date.now()-pe)/500;Ce<1?(oe.value.scrollTop=$e*(1-easeInOutCubic(Ce)),requestAnimationFrame(_e)):oe.value.scrollTop=0};requestAnimationFrame(_e)},le=()=>{oe.value&&(ie.value=oe.value.scrollTop>=V.visibilityHeight)},ue=pe=>{he(),k("click",pe)},de=useThrottleFn(le,300);return onMounted(()=>{var pe;re.value=document,oe.value=document.documentElement,V.target&&(oe.value=(pe=document.querySelector(V.target))!=null?pe:void 0,oe.value||throwError(z,`target is not existed: ${V.target}`),re.value=oe.value),useEventListener(re,"scroll",de)}),(pe,$e)=>(openBlock(),createBlock(Transition,{name:`${unref(j).namespace.value}-fade-in`},{default:withCtx(()=>[ie.value?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle(unref(ae)),class:normalizeClass(unref(j).b()),onClick:withModifiers(ue,["stop"])},[renderSlot(pe.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(j).e("icon"))},{default:withCtx(()=>[createVNode(unref(caretTop))]),_:1},8,["class"])])],14,_hoisted_1$10)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}}));var Backtop=_export_sfc$1(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ElBacktop=withInstall(Backtop),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_hoisted_1$$=["textContent"],__default__$C={name:"ElBadge"},_sfc_main$23=defineComponent(mo(oo({},__default__$C),{props:badgeProps,setup($,{expose:k}){const V=$,z=useNamespace("badge"),j=computed(()=>V.isDot?"":isNumber$1(V.value)&&isNumber$1(V.max)?V.max(openBlock(),createElementBlock("div",{class:normalizeClass(unref(z).b())},[renderSlot(oe.$slots,"default"),createVNode(Transition,{name:`${unref(z).namespace.value}-zoom-in-center`},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(z).e("content"),unref(z).em("content",oe.type),unref(z).is("fixed",!!oe.$slots.default),unref(z).is("dot",oe.isDot)]),textContent:toDisplayString$1(unref(j))},null,10,_hoisted_1$$),[[vShow,!oe.hidden&&(unref(j)||unref(j)==="0"||oe.isDot)]])]),_:1},8,["name"])],2))}}));var Badge=_export_sfc$1(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),breadcrumbProps=buildProps({separator:{type:String,default:"/"},separatorIcon:{type:iconPropType,default:""}}),__default__$B={name:"ElBreadcrumb"},_sfc_main$22=defineComponent(mo(oo({},__default__$B),{props:breadcrumbProps,setup($){const k=$,V=useNamespace("breadcrumb"),z=ref();return provide(breadcrumbKey,k),onMounted(()=>{const j=z.value.querySelectorAll(`.${V.e("item")}`);j.length&&j[j.length-1].setAttribute("aria-current","page")}),(j,oe)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:z,class:normalizeClass(unref(V).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(j.$slots,"default")],2))}}));var Breadcrumb=_export_sfc$1(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:{type:Boolean,default:!1}}),__default__$A={name:"ElBreadcrumbItem"},_sfc_main$21=defineComponent(mo(oo({},__default__$A),{props:breadcrumbItemProps,setup($){const k=$,z=getCurrentInstance().appContext.config.globalProperties.$router,j=inject(breadcrumbKey,{}),oe=useNamespace("breadcrumb"),{separator:re,separatorIcon:ie}=j,ae=ref(),he=()=>{!k.to||!z||(k.replace?z.replace(k.to):z.push(k.to))};return(le,ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:ae,class:normalizeClass([unref(oe).e("inner"),unref(oe).is("link",!!le.to)]),role:"link",onClick:he},[renderSlot(le.$slots,"default")],2),unref(ie)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ie))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(oe).e("separator")),role:"presentation"},toDisplayString$1(unref(re)),3))],2))}}));var BreadcrumbItem=_export_sfc$1(_sfc_main$21,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ElBreadcrumb=withInstall(Breadcrumb,{BreadcrumbItem}),ElBreadcrumbItem=withNoopInstall(BreadcrumbItem),buttonTypes=["default","primary","success","warning","info","danger",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType,default:""},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading$1},plain:Boolean,text:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),buttonEmits={click:$=>$ instanceof MouseEvent};function bound01$1($,k){isOnePointZero$1($)&&($="100%");var V=isPercentage$1($);return $=k===360?$:Math.min(k,Math.max(0,parseFloat($))),V&&($=parseInt(String($*k),10)/100),Math.abs($-k)<1e-6?1:(k===360?$=($<0?$%k+k:$%k)/parseFloat(String(k)):$=$%k/parseFloat(String(k)),$)}function clamp01($){return Math.min(1,Math.max(0,$))}function isOnePointZero$1($){return typeof $=="string"&&$.indexOf(".")!==-1&&parseFloat($)===1}function isPercentage$1($){return typeof $=="string"&&$.indexOf("%")!==-1}function boundAlpha($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function convertToPercentage($){return $<=1?"".concat(Number($)*100,"%"):$}function pad2($){return $.length===1?"0"+$:String($)}function rgbToRgb($,k,V){return{r:bound01$1($,255)*255,g:bound01$1(k,255)*255,b:bound01$1(V,255)*255}}function rgbToHsl($,k,V){$=bound01$1($,255),k=bound01$1(k,255),V=bound01$1(V,255);var z=Math.max($,k,V),j=Math.min($,k,V),oe=0,re=0,ie=(z+j)/2;if(z===j)re=0,oe=0;else{var ae=z-j;switch(re=ie>.5?ae/(2-z-j):ae/(z+j),z){case $:oe=(k-V)/ae+(k1&&(V-=1),V<1/6?$+(k-$)*(6*V):V<1/2?k:V<2/3?$+(k-$)*(2/3-V)*6:$}function hslToRgb($,k,V){var z,j,oe;if($=bound01$1($,360),k=bound01$1(k,100),V=bound01$1(V,100),k===0)j=V,oe=V,z=V;else{var re=V<.5?V*(1+k):V+k-V*k,ie=2*V-re;z=hue2rgb(ie,re,$+1/3),j=hue2rgb(ie,re,$),oe=hue2rgb(ie,re,$-1/3)}return{r:z*255,g:j*255,b:oe*255}}function rgbToHsv($,k,V){$=bound01$1($,255),k=bound01$1(k,255),V=bound01$1(V,255);var z=Math.max($,k,V),j=Math.min($,k,V),oe=0,re=z,ie=z-j,ae=z===0?0:ie/z;if(z===j)oe=0;else{switch(z){case $:oe=(k-V)/ie+(k>16,g:($&65280)>>8,b:$&255}}var names={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",darkgreen:"#006400",darkgrey:"#a9a9a9",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",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"};function inputToRGB($){var k={r:0,g:0,b:0},V=1,z=null,j=null,oe=null,re=!1,ie=!1;return typeof $=="string"&&($=stringInputToObject($)),typeof $=="object"&&(isValidCSSUnit($.r)&&isValidCSSUnit($.g)&&isValidCSSUnit($.b)?(k=rgbToRgb($.r,$.g,$.b),re=!0,ie=String($.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.v)?(z=convertToPercentage($.s),j=convertToPercentage($.v),k=hsvToRgb($.h,z,j),re=!0,ie="hsv"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.l)&&(z=convertToPercentage($.s),oe=convertToPercentage($.l),k=hslToRgb($.h,z,oe),re=!0,ie="hsl"),Object.prototype.hasOwnProperty.call($,"a")&&(V=$.a)),V=boundAlpha(V),{ok:re,format:$.format||ie,r:Math.min(255,Math.max(k.r,0)),g:Math.min(255,Math.max(k.g,0)),b:Math.min(255,Math.max(k.b,0)),a:V}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject($){if($=$.trim().toLowerCase(),$.length===0)return!1;var k=!1;if(names[$])$=names[$],k=!0;else if($==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var V=matchers.rgb.exec($);return V?{r:V[1],g:V[2],b:V[3]}:(V=matchers.rgba.exec($),V?{r:V[1],g:V[2],b:V[3],a:V[4]}:(V=matchers.hsl.exec($),V?{h:V[1],s:V[2],l:V[3]}:(V=matchers.hsla.exec($),V?{h:V[1],s:V[2],l:V[3],a:V[4]}:(V=matchers.hsv.exec($),V?{h:V[1],s:V[2],v:V[3]}:(V=matchers.hsva.exec($),V?{h:V[1],s:V[2],v:V[3],a:V[4]}:(V=matchers.hex8.exec($),V?{r:parseIntFromHex(V[1]),g:parseIntFromHex(V[2]),b:parseIntFromHex(V[3]),a:convertHexToDecimal(V[4]),format:k?"name":"hex8"}:(V=matchers.hex6.exec($),V?{r:parseIntFromHex(V[1]),g:parseIntFromHex(V[2]),b:parseIntFromHex(V[3]),format:k?"name":"hex"}:(V=matchers.hex4.exec($),V?{r:parseIntFromHex(V[1]+V[1]),g:parseIntFromHex(V[2]+V[2]),b:parseIntFromHex(V[3]+V[3]),a:convertHexToDecimal(V[4]+V[4]),format:k?"name":"hex8"}:(V=matchers.hex3.exec($),V?{r:parseIntFromHex(V[1]+V[1]),g:parseIntFromHex(V[2]+V[2]),b:parseIntFromHex(V[3]+V[3]),format:k?"name":"hex"}:!1)))))))))}function isValidCSSUnit($){return Boolean(matchers.CSS_UNIT.exec(String($)))}var TinyColor=function(){function $(k,V){k===void 0&&(k=""),V===void 0&&(V={});var z;if(k instanceof $)return k;typeof k=="number"&&(k=numberInputToObject(k)),this.originalInput=k;var j=inputToRGB(k);this.originalInput=k,this.r=j.r,this.g=j.g,this.b=j.b,this.a=j.a,this.roundA=Math.round(100*this.a)/100,this.format=(z=V.format)!==null&&z!==void 0?z:j.format,this.gradientType=V.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=j.ok}return $.prototype.isDark=function(){return this.getBrightness()<128},$.prototype.isLight=function(){return!this.isDark()},$.prototype.getBrightness=function(){var k=this.toRgb();return(k.r*299+k.g*587+k.b*114)/1e3},$.prototype.getLuminance=function(){var k=this.toRgb(),V,z,j,oe=k.r/255,re=k.g/255,ie=k.b/255;return oe<=.03928?V=oe/12.92:V=Math.pow((oe+.055)/1.055,2.4),re<=.03928?z=re/12.92:z=Math.pow((re+.055)/1.055,2.4),ie<=.03928?j=ie/12.92:j=Math.pow((ie+.055)/1.055,2.4),.2126*V+.7152*z+.0722*j},$.prototype.getAlpha=function(){return this.a},$.prototype.setAlpha=function(k){return this.a=boundAlpha(k),this.roundA=Math.round(100*this.a)/100,this},$.prototype.toHsv=function(){var k=rgbToHsv(this.r,this.g,this.b);return{h:k.h*360,s:k.s,v:k.v,a:this.a}},$.prototype.toHsvString=function(){var k=rgbToHsv(this.r,this.g,this.b),V=Math.round(k.h*360),z=Math.round(k.s*100),j=Math.round(k.v*100);return this.a===1?"hsv(".concat(V,", ").concat(z,"%, ").concat(j,"%)"):"hsva(".concat(V,", ").concat(z,"%, ").concat(j,"%, ").concat(this.roundA,")")},$.prototype.toHsl=function(){var k=rgbToHsl(this.r,this.g,this.b);return{h:k.h*360,s:k.s,l:k.l,a:this.a}},$.prototype.toHslString=function(){var k=rgbToHsl(this.r,this.g,this.b),V=Math.round(k.h*360),z=Math.round(k.s*100),j=Math.round(k.l*100);return this.a===1?"hsl(".concat(V,", ").concat(z,"%, ").concat(j,"%)"):"hsla(".concat(V,", ").concat(z,"%, ").concat(j,"%, ").concat(this.roundA,")")},$.prototype.toHex=function(k){return k===void 0&&(k=!1),rgbToHex$1(this.r,this.g,this.b,k)},$.prototype.toHexString=function(k){return k===void 0&&(k=!1),"#"+this.toHex(k)},$.prototype.toHex8=function(k){return k===void 0&&(k=!1),rgbaToHex(this.r,this.g,this.b,this.a,k)},$.prototype.toHex8String=function(k){return k===void 0&&(k=!1),"#"+this.toHex8(k)},$.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},$.prototype.toRgbString=function(){var k=Math.round(this.r),V=Math.round(this.g),z=Math.round(this.b);return this.a===1?"rgb(".concat(k,", ").concat(V,", ").concat(z,")"):"rgba(".concat(k,", ").concat(V,", ").concat(z,", ").concat(this.roundA,")")},$.prototype.toPercentageRgb=function(){var k=function(V){return"".concat(Math.round(bound01$1(V,255)*100),"%")};return{r:k(this.r),g:k(this.g),b:k(this.b),a:this.a}},$.prototype.toPercentageRgbString=function(){var k=function(V){return Math.round(bound01$1(V,255)*100)};return this.a===1?"rgb(".concat(k(this.r),"%, ").concat(k(this.g),"%, ").concat(k(this.b),"%)"):"rgba(".concat(k(this.r),"%, ").concat(k(this.g),"%, ").concat(k(this.b),"%, ").concat(this.roundA,")")},$.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var k="#"+rgbToHex$1(this.r,this.g,this.b,!1),V=0,z=Object.entries(names);V=0,oe=!V&&j&&(k.startsWith("hex")||k==="name");return oe?k==="name"&&this.a===0?this.toName():this.toRgbString():(k==="rgb"&&(z=this.toRgbString()),k==="prgb"&&(z=this.toPercentageRgbString()),(k==="hex"||k==="hex6")&&(z=this.toHexString()),k==="hex3"&&(z=this.toHexString(!0)),k==="hex4"&&(z=this.toHex8String(!0)),k==="hex8"&&(z=this.toHex8String()),k==="name"&&(z=this.toName()),k==="hsl"&&(z=this.toHslString()),k==="hsv"&&(z=this.toHsvString()),z||this.toHexString())},$.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},$.prototype.clone=function(){return new $(this.toString())},$.prototype.lighten=function(k){k===void 0&&(k=10);var V=this.toHsl();return V.l+=k/100,V.l=clamp01(V.l),new $(V)},$.prototype.brighten=function(k){k===void 0&&(k=10);var V=this.toRgb();return V.r=Math.max(0,Math.min(255,V.r-Math.round(255*-(k/100)))),V.g=Math.max(0,Math.min(255,V.g-Math.round(255*-(k/100)))),V.b=Math.max(0,Math.min(255,V.b-Math.round(255*-(k/100)))),new $(V)},$.prototype.darken=function(k){k===void 0&&(k=10);var V=this.toHsl();return V.l-=k/100,V.l=clamp01(V.l),new $(V)},$.prototype.tint=function(k){return k===void 0&&(k=10),this.mix("white",k)},$.prototype.shade=function(k){return k===void 0&&(k=10),this.mix("black",k)},$.prototype.desaturate=function(k){k===void 0&&(k=10);var V=this.toHsl();return V.s-=k/100,V.s=clamp01(V.s),new $(V)},$.prototype.saturate=function(k){k===void 0&&(k=10);var V=this.toHsl();return V.s+=k/100,V.s=clamp01(V.s),new $(V)},$.prototype.greyscale=function(){return this.desaturate(100)},$.prototype.spin=function(k){var V=this.toHsl(),z=(V.h+k)%360;return V.h=z<0?360+z:z,new $(V)},$.prototype.mix=function(k,V){V===void 0&&(V=50);var z=this.toRgb(),j=new $(k).toRgb(),oe=V/100,re={r:(j.r-z.r)*oe+z.r,g:(j.g-z.g)*oe+z.g,b:(j.b-z.b)*oe+z.b,a:(j.a-z.a)*oe+z.a};return new $(re)},$.prototype.analogous=function(k,V){k===void 0&&(k=6),V===void 0&&(V=30);var z=this.toHsl(),j=360/V,oe=[this];for(z.h=(z.h-(j*k>>1)+720)%360;--k;)z.h=(z.h+j)%360,oe.push(new $(z));return oe},$.prototype.complement=function(){var k=this.toHsl();return k.h=(k.h+180)%360,new $(k)},$.prototype.monochromatic=function(k){k===void 0&&(k=6);for(var V=this.toHsv(),z=V.h,j=V.s,oe=V.v,re=[],ie=1/k;k--;)re.push(new $({h:z,s:j,v:oe})),oe=(oe+ie)%1;return re},$.prototype.splitcomplement=function(){var k=this.toHsl(),V=k.h;return[this,new $({h:(V+72)%360,s:k.s,l:k.l}),new $({h:(V+216)%360,s:k.s,l:k.l})]},$.prototype.onBackground=function(k){var V=this.toRgb(),z=new $(k).toRgb();return new $({r:z.r+(V.r-z.r)*V.a,g:z.g+(V.g-z.g)*V.a,b:z.b+(V.b-z.b)*V.a})},$.prototype.triad=function(){return this.polyad(3)},$.prototype.tetrad=function(){return this.polyad(4)},$.prototype.polyad=function(k){for(var V=this.toHsl(),z=V.h,j=[this],oe=360/k,re=1;re{let z={};const j=$.color;if(j){const oe=new TinyColor(j),re=$.dark?oe.tint(20).toString():darken(oe,20);if($.plain)z=V.cssVarBlock({"bg-color":$.dark?darken(oe,90):oe.tint(90).toString(),"text-color":j,"border-color":$.dark?darken(oe,50):oe.tint(50).toString(),"hover-text-color":`var(${V.cssVarName("color-white")})`,"hover-bg-color":j,"hover-border-color":j,"active-bg-color":re,"active-text-color":`var(${V.cssVarName("color-white")})`,"active-border-color":re}),k.value&&(z[V.cssVarBlockName("disabled-bg-color")]=$.dark?darken(oe,90):oe.tint(90).toString(),z[V.cssVarBlockName("disabled-text-color")]=$.dark?darken(oe,50):oe.tint(50).toString(),z[V.cssVarBlockName("disabled-border-color")]=$.dark?darken(oe,80):oe.tint(80).toString());else{const ie=$.dark?darken(oe,30):oe.tint(30).toString(),ae=oe.isDark()?`var(${V.cssVarName("color-white")})`:`var(${V.cssVarName("color-black")})`;if(z=V.cssVarBlock({"bg-color":j,"text-color":ae,"border-color":j,"hover-bg-color":ie,"hover-text-color":ae,"hover-border-color":ie,"active-bg-color":re,"active-border-color":re}),k.value){const he=$.dark?darken(oe,50):oe.tint(50).toString();z[V.cssVarBlockName("disabled-bg-color")]=he,z[V.cssVarBlockName("disabled-text-color")]=$.dark?"rgba(255, 255, 255, 0.5)":`var(${V.cssVarName("color-white")})`,z[V.cssVarBlockName("disabled-border-color")]=he}}}return z})}const _hoisted_1$_=["aria-disabled","disabled","autofocus","type"],__default__$z={name:"ElButton"},_sfc_main$20=defineComponent(mo(oo({},__default__$z),{props:buttonProps,emits:buttonEmits,setup($,{expose:k,emit:V}){const z=$,j=useSlots(),oe=inject(buttonGroupContextKey,void 0),re=useGlobalConfig("button"),ie=useNamespace("button"),{form:ae}=useFormItem(),he=useSize(computed(()=>oe==null?void 0:oe.size)),le=useDisabled$1(),ue=ref(),de=computed(()=>z.type||(oe==null?void 0:oe.type)||""),pe=computed(()=>{var Ie,ze,Et;return(Et=(ze=z.autoInsertSpace)!=null?ze:(Ie=re.value)==null?void 0:Ie.autoInsertSpace)!=null?Et:!1}),$e=computed(()=>{var Ie;const ze=(Ie=j.default)==null?void 0:Ie.call(j);if(pe.value&&(ze==null?void 0:ze.length)===1){const Et=ze[0];if((Et==null?void 0:Et.type)===Text$1){const qe=Et.children;return/^\p{Unified_Ideograph}{2}$/u.test(qe.trim())}}return!1}),_e=useButtonCustomStyle(z),Ce=Ie=>{z.nativeType==="reset"&&(ae==null||ae.resetFields()),V("click",Ie)};return k({ref:ue,size:he,type:de,disabled:le,shouldAddSpace:$e}),(Ie,ze)=>(openBlock(),createElementBlock("button",{ref_key:"_ref",ref:ue,class:normalizeClass([unref(ie).b(),unref(ie).m(unref(de)),unref(ie).m(unref(he)),unref(ie).is("disabled",unref(le)),unref(ie).is("loading",Ie.loading),unref(ie).is("plain",Ie.plain),unref(ie).is("round",Ie.round),unref(ie).is("circle",Ie.circle),unref(ie).is("text",Ie.text),unref(ie).is("has-bg",Ie.bg)]),"aria-disabled":unref(le)||Ie.loading,disabled:unref(le)||Ie.loading,autofocus:Ie.autofocus,type:Ie.nativeType,style:normalizeStyle(unref(_e)),onClick:Ce},[Ie.loading?(openBlock(),createElementBlock(Fragment,{key:0},[Ie.$slots.loading?renderSlot(Ie.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(ie).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.loadingIcon)))]),_:1},8,["class"]))],2112)):Ie.icon||Ie.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[Ie.icon?(openBlock(),createBlock(resolveDynamicComponent(Ie.icon),{key:0})):renderSlot(Ie.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),Ie.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(ie).em("text","expand")]:unref($e)})},[renderSlot(Ie.$slots,"default")],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$_))}}));var Button=_export_sfc$1(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$y={name:"ElButtonGroup"},_sfc_main$1$=defineComponent(mo(oo({},__default__$y),{props:buttonGroupProps,setup($){const k=$;provide(buttonGroupContextKey,reactive({size:toRef(k,"size"),type:toRef(k,"type")}));const V=useNamespace("button");return(z,j)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(V).b("group")}`)},[renderSlot(z.$slots,"default")],2))}}));var ButtonGroup=_export_sfc$1(_sfc_main$1$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup}),ElButtonGroup$1=withNoopInstall(ButtonGroup);var dayjs_min={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){var V=1e3,z=6e4,j=36e5,oe="millisecond",re="second",ie="minute",ae="hour",he="day",le="week",ue="month",de="quarter",pe="year",$e="date",_e="Invalid Date",Ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ie=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ze={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},Et=function(vn,$n,wn){var _n=String(vn);return!_n||_n.length>=$n?vn:""+Array($n+1-_n.length).join(wn)+vn},qe={s:Et,z:function(vn){var $n=-vn.utcOffset(),wn=Math.abs($n),_n=Math.floor(wn/60),En=wn%60;return($n<=0?"+":"-")+Et(_n,2,"0")+":"+Et(En,2,"0")},m:function vn($n,wn){if($n.date()1)return vn(An[0])}else{var Cn=$n.name;Ue[Cn]=$n,En=Cn}return!_n&&En&&(Oe=En),En||!_n&&Oe},Lt=function(vn,$n){if(Dt(vn))return vn.clone();var wn=typeof $n=="object"?$n:{};return wn.date=vn,wn.args=arguments,new Pt(wn)},kt=qe;kt.l=At,kt.i=Dt,kt.w=function(vn,$n){return Lt(vn,{locale:$n.$L,utc:$n.$u,x:$n.$x,$offset:$n.$offset})};var Pt=function(){function vn(wn){this.$L=At(wn.locale,null,!0),this.parse(wn)}var $n=vn.prototype;return $n.parse=function(wn){this.$d=function(_n){var En=_n.date,Sn=_n.utc;if(En===null)return new Date(NaN);if(kt.u(En))return new Date;if(En instanceof Date)return new Date(En);if(typeof En=="string"&&!/Z$/i.test(En)){var An=En.match(Ce);if(An){var Cn=An[2]-1||0,Tn=(An[7]||"0").substring(0,3);return Sn?new Date(Date.UTC(An[1],Cn,An[3]||1,An[4]||0,An[5]||0,An[6]||0,Tn)):new Date(An[1],Cn,An[3]||1,An[4]||0,An[5]||0,An[6]||0,Tn)}}return new Date(En)}(wn),this.$x=wn.x||{},this.init()},$n.init=function(){var wn=this.$d;this.$y=wn.getFullYear(),this.$M=wn.getMonth(),this.$D=wn.getDate(),this.$W=wn.getDay(),this.$H=wn.getHours(),this.$m=wn.getMinutes(),this.$s=wn.getSeconds(),this.$ms=wn.getMilliseconds()},$n.$utils=function(){return kt},$n.isValid=function(){return this.$d.toString()!==_e},$n.isSame=function(wn,_n){var En=Lt(wn);return this.startOf(_n)<=En&&En<=this.endOf(_n)},$n.isAfter=function(wn,_n){return Lt(wn)68?1900:2e3)},he=function(_e){return function(Ce){this[_e]=+Ce}},le=[/[+-]\d\d:?(\d\d)?|Z/,function(_e){(this.zone||(this.zone={})).offset=function(Ce){if(!Ce||Ce==="Z")return 0;var Ie=Ce.match(/([+-]|\d\d)/g),ze=60*Ie[1]+(+Ie[2]||0);return ze===0?0:Ie[0]==="+"?-ze:ze}(_e)}],ue=function(_e){var Ce=ie[_e];return Ce&&(Ce.indexOf?Ce:Ce.s.concat(Ce.f))},de=function(_e,Ce){var Ie,ze=ie.meridiem;if(ze){for(var Et=1;Et<=24;Et+=1)if(_e.indexOf(ze(Et,0,Ce))>-1){Ie=Et>12;break}}else Ie=_e===(Ce?"pm":"PM");return Ie},pe={A:[re,function(_e){this.afternoon=de(_e,!1)}],a:[re,function(_e){this.afternoon=de(_e,!0)}],S:[/\d/,function(_e){this.milliseconds=100*+_e}],SS:[j,function(_e){this.milliseconds=10*+_e}],SSS:[/\d{3}/,function(_e){this.milliseconds=+_e}],s:[oe,he("seconds")],ss:[oe,he("seconds")],m:[oe,he("minutes")],mm:[oe,he("minutes")],H:[oe,he("hours")],h:[oe,he("hours")],HH:[oe,he("hours")],hh:[oe,he("hours")],D:[oe,he("day")],DD:[j,he("day")],Do:[re,function(_e){var Ce=ie.ordinal,Ie=_e.match(/\d+/);if(this.day=Ie[0],Ce)for(var ze=1;ze<=31;ze+=1)Ce(ze).replace(/\[|\]/g,"")===_e&&(this.day=ze)}],M:[oe,he("month")],MM:[j,he("month")],MMM:[re,function(_e){var Ce=ue("months"),Ie=(ue("monthsShort")||Ce.map(function(ze){return ze.slice(0,3)})).indexOf(_e)+1;if(Ie<1)throw new Error;this.month=Ie%12||Ie}],MMMM:[re,function(_e){var Ce=ue("months").indexOf(_e)+1;if(Ce<1)throw new Error;this.month=Ce%12||Ce}],Y:[/[+-]?\d+/,he("year")],YY:[j,function(_e){this.year=ae(_e)}],YYYY:[/\d{4}/,he("year")],Z:le,ZZ:le};function $e(_e){var Ce,Ie;Ce=_e,Ie=ie&&ie.formats;for(var ze=(_e=Ce.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Lt,kt,Pt){var jt=Pt&&Pt.toUpperCase();return kt||Ie[Pt]||V[Pt]||Ie[jt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(vn,$n,wn){return $n||wn.slice(1)})})).match(z),Et=ze.length,qe=0;qe-1)return new Date((En==="X"?1e3:1)*_n);var An=$e(En)(_n),Cn=An.year,Tn=An.month,Nn=An.day,xn=An.hours,On=An.minutes,Ln=An.seconds,Bn=An.milliseconds,Vn=An.zone,Fn=new Date,zn=Nn||(Cn||Tn?1:Fn.getDate()),Xn=Cn||Fn.getFullYear(),Pn=0;Cn&&!Tn||(Pn=Tn>0?Tn-1:Fn.getMonth());var Hn=xn||0,eo=On||0,Qn=Ln||0,ao=Bn||0;return Vn?new Date(Date.UTC(Xn,Pn,zn,Hn,eo,Qn,ao+60*Vn.offset*1e3)):Sn?new Date(Date.UTC(Xn,Pn,zn,Hn,eo,Qn,ao)):new Date(Xn,Pn,zn,Hn,eo,Qn,ao)}catch{return new Date("")}}(Oe,At,Ue),this.init(),jt&&jt!==!0&&(this.$L=this.locale(jt).$L),Pt&&Oe!=this.format(At)&&(this.$d=new Date("")),ie={}}else if(At instanceof Array)for(var vn=At.length,$n=1;$n<=vn;$n+=1){Dt[1]=At[$n-1];var wn=Ie.apply(this,Dt);if(wn.isValid()){this.$d=wn.$d,this.$L=wn.$L,this.init();break}$n===vn&&(this.$d=new Date(""))}else Et.call(this,qe)}}})})(customParseFormat$1);var customParseFormat=customParseFormat$1.exports;const DEFAULT_FORMATS_TIME="HH:mm:ss",DEFAULT_FORMATS_DATE="YYYY-MM-DD",DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},timePickerDefaultProps={id:{type:[Array,String]},name:{type:[Array,String],default:""},popperClass:{type:String,default:""},format:{type:String},valueFormat:{type:String},type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:circleClose},editable:{type:Boolean,default:!0},prefixIcon:{type:[String,Object],default:""},size:{type:String,validator:isValidComponentSize},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},modelValue:{type:[Date,Array,String,Number],default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:[Date,Array]},defaultTime:{type:[Date,Array]},isRange:{type:Boolean,default:!1},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean},dateEquals=function($,k){const V=$ instanceof Date,z=k instanceof Date;return V&&z?$.getTime()===k.getTime():!V&&!z?$===k:!1},valueEquals=function($,k){const V=Array.isArray($),z=Array.isArray(k);return V&&z?$.length!==k.length?!1:$.every((j,oe)=>dateEquals(j,k[oe])):!V&&!z?dateEquals($,k):!1},parser=function($,k,V){const z=isEmpty(k)||k==="x"?dayjs($).locale(V):dayjs($,k).locale(V);return z.isValid()?z:void 0},formatter=function($,k,V){return isEmpty(k)?$:k==="x"?+$:dayjs($).locale(V).format(k)},_sfc_main$1_=defineComponent({name:"Picker",components:{ElInput,ElTooltip,ElIcon},props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change"],setup($,k){const{lang:V}=useLocale(),z=useNamespace("date"),j=useNamespace("input"),oe=useNamespace("range"),re=inject(formContextKey,{}),ie=inject(formItemContextKey,{}),ae=inject("ElPopperOptions",{}),he=ref(),le=ref(),ue=ref(!1),de=ref(!1),pe=ref(null);watch$1(ue,Kn=>{var so;Kn?pe.value=$.modelValue:(Fn.value=null,nextTick(()=>{$e($.modelValue)}),k.emit("blur"),Xn(),$.validateEvent&&((so=ie.validate)==null||so.call(ie,"blur").catch(ro=>void 0)))});const $e=(Kn,so)=>{var ro;(so||!valueEquals(Kn,pe.value))&&(k.emit("change",Kn),$.validateEvent&&((ro=ie.validate)==null||ro.call(ie,"change").catch(vo=>void 0)))},_e=Kn=>{if(!valueEquals($.modelValue,Kn)){let so;Array.isArray(Kn)?so=Kn.map(ro=>formatter(ro,$.valueFormat,V.value)):Kn&&(so=formatter(Kn,$.valueFormat,V.value)),k.emit("update:modelValue",Kn&&so,V.value)}},Ce=computed(()=>{if(le.value){const Kn=xn.value?le.value:le.value.$el;return Array.from(Kn.querySelectorAll("input"))}return[]}),Ie=computed(()=>Ce==null?void 0:Ce.value[0]),ze=computed(()=>Ce==null?void 0:Ce.value[1]),Et=(Kn,so,ro)=>{const vo=Ce.value;!vo.length||(!ro||ro==="min"?(vo[0].setSelectionRange(Kn,so),vo[0].focus()):ro==="max"&&(vo[1].setSelectionRange(Kn,so),vo[1].focus()))},qe=(Kn="",so=!1)=>{ue.value=so;let ro;Array.isArray(Kn)?ro=Kn.map(vo=>vo.toDate()):ro=Kn&&Kn.toDate(),Fn.value=null,_e(ro)},Oe=()=>{de.value=!0},Ue=()=>{k.emit("visible-change",!0)},Dt=()=>{de.value=!1,k.emit("visible-change",!1)},At=(Kn=!0)=>{let so=Ie.value;!Kn&&xn.value&&(so=ze.value),so&&so.focus()},Lt=Kn=>{$.readonly||Pt.value||ue.value||(ue.value=!0,k.emit("focus",Kn))},kt=()=>{var Kn;(Kn=he.value)==null||Kn.onClose(),Xn()},Pt=computed(()=>$.disabled||re.disabled),jt=computed(()=>{let Kn;if(Cn.value?no.value.getDefaultValue&&(Kn=no.value.getDefaultValue()):Array.isArray($.modelValue)?Kn=$.modelValue.map(so=>parser(so,$.valueFormat,V.value)):Kn=parser($.modelValue,$.valueFormat,V.value),no.value.getRangeAvailableTime){const so=no.value.getRangeAvailableTime(Kn);isEqual$1(so,Kn)||(Kn=so,_e(Array.isArray(Kn)?Kn.map(ro=>ro.toDate()):Kn.toDate()))}return Array.isArray(Kn)&&Kn.some(so=>!so)&&(Kn=[]),Kn}),vn=computed(()=>{if(!no.value.panelReady)return;const Kn=Hn(jt.value);if(Array.isArray(Fn.value))return[Fn.value[0]||Kn&&Kn[0]||"",Fn.value[1]||Kn&&Kn[1]||""];if(Fn.value!==null)return Fn.value;if(!(!wn.value&&Cn.value)&&!(!ue.value&&Cn.value))return Kn?_n.value?Kn.join(", "):Kn:""}),$n=computed(()=>$.type.includes("time")),wn=computed(()=>$.type.startsWith("time")),_n=computed(()=>$.type==="dates"),En=computed(()=>$.prefixIcon||($n.value?clock:calendar)),Sn=ref(!1),An=Kn=>{$.readonly||Pt.value||Sn.value&&(Kn.stopPropagation(),_e(null),$e(null,!0),Sn.value=!1,ue.value=!1,no.value.handleClear&&no.value.handleClear())},Cn=computed(()=>!$.modelValue||Array.isArray($.modelValue)&&!$.modelValue.length),Tn=()=>{$.readonly||Pt.value||!Cn.value&&$.clearable&&(Sn.value=!0)},Nn=()=>{Sn.value=!1},xn=computed(()=>$.type.includes("range")),On=useSize(),Ln=computed(()=>{var Kn,so;return(so=(Kn=he.value)==null?void 0:Kn.popperRef)==null?void 0:so.contentRef}),Bn=computed(()=>{var Kn,so;return(so=(Kn=unref(he))==null?void 0:Kn.popperRef)==null?void 0:so.contentRef}),Vn=computed(()=>{var Kn;return unref(xn)?unref(le):(Kn=unref(le))==null?void 0:Kn.$el});onClickOutside(Vn,Kn=>{const so=unref(Bn),ro=unref(Vn);so&&(Kn.target===so||Kn.composedPath().includes(so))||Kn.target===ro||Kn.composedPath().includes(ro)||(ue.value=!1)});const Fn=ref(null),zn=()=>{if(Fn.value){const Kn=Pn(vn.value);Kn&&eo(Kn)&&(_e(Array.isArray(Kn)?Kn.map(so=>so.toDate()):Kn.toDate()),Fn.value=null)}Fn.value===""&&(_e(null),$e(null),Fn.value=null)},Xn=()=>{Ce.value.forEach(Kn=>Kn.blur())},Pn=Kn=>Kn?no.value.parseUserInput(Kn):null,Hn=Kn=>Kn?no.value.formatToString(Kn):null,eo=Kn=>no.value.isValidValue(Kn),Qn=Kn=>{const so=Kn.code;if(so===EVENT_CODE.esc){ue.value=!1,Kn.stopPropagation();return}if(so===EVENT_CODE.tab){xn.value?setTimeout(()=>{Ce.value.includes(document.activeElement)||(ue.value=!1,Xn())},0):(zn(),ue.value=!1,Kn.stopPropagation());return}if(so===EVENT_CODE.enter||so===EVENT_CODE.numpadEnter){(Fn.value===null||Fn.value===""||eo(Pn(vn.value)))&&(zn(),ue.value=!1),Kn.stopPropagation();return}if(Fn.value){Kn.stopPropagation();return}no.value.handleKeydown&&no.value.handleKeydown(Kn)},ao=Kn=>{Fn.value=Kn},ho=Kn=>{Fn.value?Fn.value=[Kn.target.value,Fn.value[1]]:Fn.value=[Kn.target.value,null]},uo=Kn=>{Fn.value?Fn.value=[Fn.value[0],Kn.target.value]:Fn.value=[null,Kn.target.value]},Un=()=>{const Kn=Pn(Fn.value&&Fn.value[0]);if(Kn&&Kn.isValid()){Fn.value=[Hn(Kn),vn.value[1]];const so=[Kn,jt.value&&jt.value[1]];eo(so)&&(_e(so),Fn.value=null)}},Zn=()=>{const Kn=Pn(Fn.value&&Fn.value[1]);if(Kn&&Kn.isValid()){Fn.value=[vn.value[0],Hn(Kn)];const so=[jt.value&&jt.value[0],Kn];eo(so)&&(_e(so),Fn.value=null)}},no=ref({}),qn=Kn=>{no.value[Kn[0]]=Kn[1],no.value.panelReady=!0},In=Kn=>{k.emit("calendar-change",Kn)},jn=(Kn,so,ro)=>{k.emit("panel-change",Kn,so,ro)};return provide("EP_PICKER_BASE",{props:$}),{nsDate:z,nsInput:j,nsRange:oe,elPopperOptions:ae,isDatesPicker:_n,handleEndChange:Zn,handleStartChange:Un,handleStartInput:ho,handleEndInput:uo,onUserInput:ao,handleChange:zn,handleKeydown:Qn,popperPaneRef:Ln,onClickOutside,pickerSize:On,isRangeInput:xn,onMouseLeave:Nn,onMouseEnter:Tn,onClearIconClick:An,showClose:Sn,triggerIcon:En,onPick:qe,handleFocus:Lt,handleBlur:kt,pickerVisible:ue,pickerActualVisible:de,displayValue:vn,parsedValue:jt,setSelectionRange:Et,refPopper:he,inputRef:le,pickerDisabled:Pt,onSetPickerOption:qn,onCalendarChange:In,onPanelChange:jn,focus:At,onShow:Ue,onBeforeShow:Oe,onHide:Dt}}}),_hoisted_1$Z=["id","name","placeholder","value","disabled","readonly"],_hoisted_2$F=["id","name","placeholder","value","disabled","readonly"];function _sfc_render$1n($,k,V,z,j,oe){const re=resolveComponent("el-icon"),ie=resolveComponent("el-input"),ae=resolveComponent("el-tooltip");return openBlock(),createBlock(ae,mergeProps({ref:"refPopper",visible:$.pickerVisible,"onUpdate:visible":k[17]||(k[17]=he=>$.pickerVisible=he),effect:"light",pure:"",trigger:"click"},$.$attrs,{teleported:"",transition:`${$.nsDate.namespace.value}-zoom-in-top`,"popper-class":[`${$.nsDate.namespace.value}-picker__popper`,$.popperClass],"popper-options":$.elPopperOptions,"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:$.onBeforeShow,onShow:$.onShow,onHide:$.onHide}),{default:withCtx(()=>[$.isRangeInput?(openBlock(),createElementBlock("div",{key:1,ref:"inputRef",class:normalizeClass([$.nsDate.b("editor"),$.nsDate.bm("editor",$.type),$.nsInput.e("inner"),$.nsDate.is("disabled",$.pickerDisabled),$.nsDate.is("active",$.pickerVisible),$.nsRange.b("editor"),$.pickerSize?$.nsRange.bm("editor",$.pickerSize):"",$.$attrs.class]),style:normalizeStyle($.$attrs.style),onClick:k[7]||(k[7]=(...he)=>$.handleFocus&&$.handleFocus(...he)),onMouseenter:k[8]||(k[8]=(...he)=>$.onMouseEnter&&$.onMouseEnter(...he)),onMouseleave:k[9]||(k[9]=(...he)=>$.onMouseLeave&&$.onMouseLeave(...he)),onKeydown:k[10]||(k[10]=(...he)=>$.handleKeydown&&$.handleKeydown(...he))},[$.triggerIcon?(openBlock(),createBlock(re,{key:0,class:normalizeClass([$.nsInput.e("icon"),$.nsRange.e("icon")]),onClick:$.handleFocus},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.triggerIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:$.id&&$.id[0],autocomplete:"off",name:$.name&&$.name[0],placeholder:$.startPlaceholder,value:$.displayValue&&$.displayValue[0],disabled:$.pickerDisabled,readonly:!$.editable||$.readonly,class:normalizeClass($.nsRange.b("input")),onInput:k[1]||(k[1]=(...he)=>$.handleStartInput&&$.handleStartInput(...he)),onChange:k[2]||(k[2]=(...he)=>$.handleStartChange&&$.handleStartChange(...he)),onFocus:k[3]||(k[3]=(...he)=>$.handleFocus&&$.handleFocus(...he))},null,42,_hoisted_1$Z),renderSlot($.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass($.nsRange.b("separator"))},toDisplayString$1($.rangeSeparator),3)]),createBaseVNode("input",{id:$.id&&$.id[1],autocomplete:"off",name:$.name&&$.name[1],placeholder:$.endPlaceholder,value:$.displayValue&&$.displayValue[1],disabled:$.pickerDisabled,readonly:!$.editable||$.readonly,class:normalizeClass($.nsRange.b("input")),onFocus:k[4]||(k[4]=(...he)=>$.handleFocus&&$.handleFocus(...he)),onInput:k[5]||(k[5]=(...he)=>$.handleEndInput&&$.handleEndInput(...he)),onChange:k[6]||(k[6]=(...he)=>$.handleEndChange&&$.handleEndChange(...he))},null,42,_hoisted_2$F),$.clearIcon?(openBlock(),createBlock(re,{key:1,class:normalizeClass([$.nsInput.e("icon"),$.nsRange.e("close-icon"),{[$.nsRange.e("close-icon--hidden")]:!$.showClose}]),onClick:$.onClearIconClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(ie,{key:0,id:$.id,ref:"inputRef","model-value":$.displayValue,name:$.name,size:$.pickerSize,disabled:$.pickerDisabled,placeholder:$.placeholder,class:normalizeClass([$.nsDate.b("editor"),$.nsDate.bm("editor",$.type),$.$attrs.class]),style:normalizeStyle($.$attrs.style),readonly:!$.editable||$.readonly||$.isDatesPicker||$.type==="week",label:$.label,tabindex:$.tabindex,onInput:$.onUserInput,onFocus:$.handleFocus,onKeydown:$.handleKeydown,onChange:$.handleChange,onMouseenter:$.onMouseEnter,onMouseleave:$.onMouseLeave,onClick:k[0]||(k[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[$.triggerIcon?(openBlock(),createBlock(re,{key:0,class:normalizeClass($.nsInput.e("icon")),onClick:$.handleFocus},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.triggerIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[$.showClose&&$.clearIcon?(openBlock(),createBlock(re,{key:0,class:normalizeClass(`${$.nsInput.e("icon")} clear-icon`),onClick:$.onClearIconClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onInput","onFocus","onKeydown","onChange","onMouseenter","onMouseleave"]))]),content:withCtx(()=>[renderSlot($.$slots,"default",{visible:$.pickerVisible,actualVisible:$.pickerActualVisible,parsedValue:$.parsedValue,format:$.format,unlinkPanels:$.unlinkPanels,type:$.type,defaultValue:$.defaultValue,onPick:k[11]||(k[11]=(...he)=>$.onPick&&$.onPick(...he)),onSelectRange:k[12]||(k[12]=(...he)=>$.setSelectionRange&&$.setSelectionRange(...he)),onSetPickerOption:k[13]||(k[13]=(...he)=>$.onSetPickerOption&&$.onSetPickerOption(...he)),onCalendarChange:k[14]||(k[14]=(...he)=>$.onCalendarChange&&$.onCalendarChange(...he)),onPanelChange:k[15]||(k[15]=(...he)=>$.onPanelChange&&$.onPanelChange(...he)),onMousedown:k[16]||(k[16]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options","onBeforeShow","onShow","onHide"])}var CommonPicker=_export_sfc$1(_sfc_main$1_,[["render",_sfc_render$1n],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const nodeList=new Map;let startClick;isClient&&(document.addEventListener("mousedown",$=>startClick=$),document.addEventListener("mouseup",$=>{for(const k of nodeList.values())for(const{documentHandler:V}of k)V($,startClick)}));function createDocumentHandler($,k){let V=[];return Array.isArray(k.arg)?V=k.arg:isElement(k.arg)&&V.push(k.arg),function(z,j){const oe=k.instance.popperRef,re=z.target,ie=j==null?void 0:j.target,ae=!k||!k.instance,he=!re||!ie,le=$.contains(re)||$.contains(ie),ue=$===re,de=V.length&&V.some($e=>$e==null?void 0:$e.contains(re))||V.length&&V.includes(ie),pe=oe&&(oe.contains(re)||oe.contains(ie));ae||he||le||ue||de||pe||k.value(z,j)}}const ClickOutside={beforeMount($,k){nodeList.has($)||nodeList.set($,[]),nodeList.get($).push({documentHandler:createDocumentHandler($,k),bindingFn:k.value})},updated($,k){nodeList.has($)||nodeList.set($,[]);const V=nodeList.get($),z=V.findIndex(oe=>oe.bindingFn===k.oldValue),j={documentHandler:createDocumentHandler($,k),bindingFn:k.value};z>=0?V.splice(z,1,j):V.push(j)},unmounted($){nodeList.delete($)}};var RepeatClick={beforeMount($,k){let V=null,z;const j=()=>k.value&&k.value(),oe=()=>{Date.now()-z<100&&j(),clearInterval(V),V=null};on$1($,"mousedown",re=>{re.button===0&&(z=Date.now(),once(document,"mouseup",oe),clearInterval(V),V=setInterval(j,100))})}};const FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=$=>{if(FOCUS_STACK.length===0)return;const k=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(k.length>0&&$.code===EVENT_CODE.tab){if(k.length===1){$.preventDefault(),document.activeElement!==k[0]&&k[0].focus();return}const V=$.shiftKey,z=$.target===k[0],j=$.target===k[k.length-1];z&&V&&($.preventDefault(),k[k.length-1].focus()),j&&!V&&($.preventDefault(),k[0].focus())}},TrapFocus={beforeMount($){$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($),FOCUS_STACK.push($),FOCUS_STACK.length<=1&&on$1(document,"keydown",FOCUS_HANDLER)},updated($){nextTick(()=>{$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&off(document,"keydown",FOCUS_HANDLER)}};var D=!1,o,p,m,u,d,M,l,w,x,E,F,_,h,A,X;function a(){if(!D){D=!0;var $=navigator.userAgent,k=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec($),V=/(Mac OS X)|(Windows)|(Linux)/.exec($);if(_=/\b(iPhone|iP[ao]d)/.exec($),h=/\b(iP[ao]d)/.exec($),E=/Android/i.exec($),A=/FBAN\/\w+;/i.exec($),X=/Mobile/i.exec($),F=!!/Win64/.exec($),k){o=k[1]?parseFloat(k[1]):k[5]?parseFloat(k[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var z=/(?:Trident\/(\d+.\d+))/.exec($);M=z?parseFloat(z[1])+4:o,p=k[2]?parseFloat(k[2]):NaN,m=k[3]?parseFloat(k[3]):NaN,u=k[4]?parseFloat(k[4]):NaN,u?(k=/(?:Chrome\/(\d+\.\d+))/.exec($),d=k&&k[1]?parseFloat(k[1]):NaN):d=NaN}else o=p=m=d=u=NaN;if(V){if(V[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec($);l=j?parseFloat(j[1].replace("_",".")):!0}else l=!1;w=!!V[2],x=!!V[3]}else l=w=x=!1}}var v={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||M>o},ie64:function(){return v.ie()&&F},firefox:function(){return a()||p},opera:function(){return a()||m},webkit:function(){return a()||u},safari:function(){return v.webkit()},chrome:function(){return a()||d},windows:function(){return a()||w},osx:function(){return a()||l},linux:function(){return a()||x},iphone:function(){return a()||_},mobile:function(){return a()||_||h||E||X},nativeApp:function(){return a()||A},android:function(){return a()||E},ipad:function(){return a()||h}},b=v,s=!!(typeof window<"u"&&window.document&&window.document.createElement),Y={canUseDOM:s,canUseWorkers:typeof Worker<"u",canUseEventListeners:s&&!!(window.addEventListener||window.attachEvent),canUseViewport:s&&!!window.screen,isInWorker:!s},N=Y,O;N.canUseDOM&&(O=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function L($,k){if(!N.canUseDOM||k&&!("addEventListener"in document))return!1;var V="on"+$,z=V in document;if(!z){var j=document.createElement("div");j.setAttribute(V,"return;"),z=typeof j[V]=="function"}return!z&&O&&$==="wheel"&&(z=document.implementation.hasFeature("Events.wheel","3.0")),z}var I=L,P=10,T=40,U=800;function S($){var k=0,V=0,z=0,j=0;return"detail"in $&&(V=$.detail),"wheelDelta"in $&&(V=-$.wheelDelta/120),"wheelDeltaY"in $&&(V=-$.wheelDeltaY/120),"wheelDeltaX"in $&&(k=-$.wheelDeltaX/120),"axis"in $&&$.axis===$.HORIZONTAL_AXIS&&(k=V,V=0),z=k*P,j=V*P,"deltaY"in $&&(j=$.deltaY),"deltaX"in $&&(z=$.deltaX),(z||j)&&$.deltaMode&&($.deltaMode==1?(z*=T,j*=T):(z*=U,j*=U)),z&&!k&&(k=z<1?-1:1),j&&!V&&(V=j<1?-1:1),{spinX:k,spinY:V,pixelX:z,pixelY:j}}S.getEventType=function(){return b.firefox()?"DOMMouseScroll":I("wheel")?"wheel":"mousewheel"};var W=S;/** -* Checks if an event is supported in the current execution environment. -* -* NOTE: This will not work correctly for non-generic events such as `change`, -* `reset`, `load`, `error`, and `select`. -* -* Borrows from Modernizr. -* -* @param {string} eventNameSuffix Event name, e.g. "click". -* @param {?boolean} capture Check if the capture phase is supported. -* @return {boolean} True if the event is supported. -* @internal -* @license Modernizr 3.0.0pre (Custom Build) | MIT -*/const mousewheel=function($,k){if($&&$.addEventListener){const V=function(z){const j=W(z);k&&Reflect.apply(k,this,[z,j])};$.addEventListener("wheel",V,{passive:!0})}},Mousewheel={beforeMount($,k){mousewheel($,k.value)}},Resize={beforeMount($,k){$._handleResize=()=>{var V;$&&((V=k.value)==null||V.call(k,$))},addResizeListener($,$._handleResize)},beforeUnmount($){removeResizeListener($,$._handleResize)}},makeList=($,k,V)=>{const z=[],j=k&&V();for(let oe=0;oe<$;oe++)z[oe]=j?j.includes(oe):!1;return z},makeAvailableArr=$=>$.map((k,V)=>k||V).filter(k=>k!==!0),getTimeLists=($,k,V)=>({getHoursList:(re,ie)=>makeList(24,$,()=>$(re,ie)),getMinutesList:(re,ie,ae)=>makeList(60,k,()=>k(re,ie,ae)),getSecondsList:(re,ie,ae,he)=>makeList(60,V,()=>V(re,ie,ae,he))}),getAvailableArrs=($,k,V)=>{const{getHoursList:z,getMinutesList:j,getSecondsList:oe}=getTimeLists($,k,V);return{getAvailableHours:(he,le)=>makeAvailableArr(z(he,le)),getAvailableMinutes:(he,le,ue)=>makeAvailableArr(j(he,le,ue)),getAvailableSeconds:(he,le,ue,de)=>makeAvailableArr(oe(he,le,ue,de))}},useOldValue=$=>{const k=ref($.parsedValue);return watch$1(()=>$.visible,V=>{V||(k.value=$.parsedValue)}),k},_sfc_main$1Z=defineComponent({directives:{repeatClick:RepeatClick},components:{ElScrollbar,ElIcon,ArrowUp:arrowUp,ArrowDown:arrowDown},props:{role:{type:String,required:!0},spinnerDate:{type:Object,required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function}},emits:["change","select-range","set-option"],setup($,k){const V=useNamespace("time");let z=!1;const j=debounce(Bn=>{z=!1,Lt(Bn)},200),oe=ref(null),re=ref(null),ie=ref(null),ae=ref(null),he={hours:re,minutes:ie,seconds:ae},le=computed(()=>{const Bn=["hours","minutes","seconds"];return $.showSeconds?Bn:Bn.slice(0,2)}),ue=computed(()=>$.spinnerDate.hour()),de=computed(()=>$.spinnerDate.minute()),pe=computed(()=>$.spinnerDate.second()),$e=computed(()=>({hours:ue,minutes:de,seconds:pe})),_e=computed(()=>xn($.role)),Ce=computed(()=>On(ue.value,$.role)),Ie=computed(()=>Ln(ue.value,de.value,$.role)),ze=computed(()=>({hours:_e,minutes:Ce,seconds:Ie})),Et=computed(()=>{const Bn=ue.value;return[Bn>0?Bn-1:void 0,Bn,Bn<23?Bn+1:void 0]}),qe=computed(()=>{const Bn=de.value;return[Bn>0?Bn-1:void 0,Bn,Bn<59?Bn+1:void 0]}),Oe=computed(()=>{const Bn=pe.value;return[Bn>0?Bn-1:void 0,Bn,Bn<59?Bn+1:void 0]}),Ue=computed(()=>({hours:Et,minutes:qe,seconds:Oe})),Dt=Bn=>{if(!!!$.amPmMode)return"";const Fn=$.amPmMode==="A";let zn=Bn<12?" am":" pm";return Fn&&(zn=zn.toUpperCase()),zn},At=Bn=>{Bn==="hours"?k.emit("select-range",0,2):Bn==="minutes"?k.emit("select-range",3,5):Bn==="seconds"&&k.emit("select-range",6,8),oe.value=Bn},Lt=Bn=>{jt(Bn,$e.value[Bn].value)},kt=()=>{Lt("hours"),Lt("minutes"),Lt("seconds")},Pt=Bn=>Bn.querySelector(`.${V.namespace.value}-scrollbar__wrap`),jt=(Bn,Vn)=>{if($.arrowControl)return;const Fn=he[Bn];Fn&&Fn.$el&&(Pt(Fn.$el).scrollTop=Math.max(0,Vn*vn(Bn)))},vn=Bn=>he[Bn].$el.querySelector("li").offsetHeight,$n=()=>{_n(1)},wn=()=>{_n(-1)},_n=Bn=>{oe.value||At("hours");const Vn=oe.value;let Fn=$e.value[Vn].value;const zn=oe.value==="hours"?24:60;Fn=(Fn+Bn+zn)%zn,En(Vn,Fn),jt(Vn,Fn),nextTick(()=>At(oe.value))},En=(Bn,Vn)=>{if(!ze.value[Bn].value[Vn])switch(Bn){case"hours":k.emit("change",$.spinnerDate.hour(Vn).minute(de.value).second(pe.value));break;case"minutes":k.emit("change",$.spinnerDate.hour(ue.value).minute(Vn).second(pe.value));break;case"seconds":k.emit("change",$.spinnerDate.hour(ue.value).minute(de.value).second(Vn));break}},Sn=(Bn,{value:Vn,disabled:Fn})=>{Fn||(En(Bn,Vn),At(Bn),jt(Bn,Vn))},An=Bn=>{z=!0,j(Bn);const Vn=Math.min(Math.round((Pt(he[Bn].$el).scrollTop-(Cn(Bn)*.5-10)/vn(Bn)+3)/vn(Bn)),Bn==="hours"?23:59);En(Bn,Vn)},Cn=Bn=>he[Bn].$el.offsetHeight,Tn=()=>{const Bn=Vn=>{he[Vn]&&he[Vn].$el&&(Pt(he[Vn].$el).onscroll=()=>{An(Vn)})};Bn("hours"),Bn("minutes"),Bn("seconds")};onMounted(()=>{nextTick(()=>{!$.arrowControl&&Tn(),kt(),$.role==="start"&&At("hours")})});const Nn=(Bn,Vn)=>{he[Vn]=Bn};k.emit("set-option",[`${$.role}_scrollDown`,_n]),k.emit("set-option",[`${$.role}_emitSelectRange`,At]);const{getHoursList:xn,getMinutesList:On,getSecondsList:Ln}=getTimeLists($.disabledHours,$.disabledMinutes,$.disabledSeconds);return watch$1(()=>$.spinnerDate,()=>{z||kt()}),{ns:V,setRef:Nn,spinnerItems:le,currentScrollbar:oe,hours:ue,minutes:de,seconds:pe,hoursList:_e,minutesList:Ce,arrowHourList:Et,arrowMinuteList:qe,arrowSecondList:Oe,getAmPmFlag:Dt,emitSelectRange:At,adjustCurrentSpinner:Lt,typeItemHeight:vn,listHoursRef:re,listMinutesRef:ie,listSecondsRef:ae,onIncreaseClick:$n,onDecreaseClick:wn,handleClick:Sn,secondsList:Ie,timePartsMap:$e,arrowListMap:Ue,listMap:ze}}}),_hoisted_1$Y=["onClick"],_hoisted_2$E=["onMouseenter"];function _sfc_render$1m($,k,V,z,j,oe){const re=resolveComponent("el-scrollbar"),ie=resolveComponent("arrow-up"),ae=resolveComponent("el-icon"),he=resolveComponent("arrow-down"),le=resolveDirective("repeat-click");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("spinner"),{"has-seconds":$.showSeconds}])},[$.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList($.spinnerItems,ue=>(openBlock(),createBlock(re,{key:ue,ref_for:!0,ref:de=>$.setRef(de,ue),class:normalizeClass($.ns.be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":$.ns.be("spinner","list"),noresize:"",tag:"ul",onMouseenter:de=>$.emitSelectRange(ue),onMousemove:de=>$.adjustCurrentSpinner(ue)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.listMap[ue].value,(de,pe)=>(openBlock(),createElementBlock("li",{key:pe,class:normalizeClass([$.ns.be("spinner","item"),$.ns.is("active",pe===$.timePartsMap[ue].value),$.ns.is("disabled",de)]),onClick:$e=>$.handleClick(ue,{value:pe,disabled:de})},[ue==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+($.amPmMode?pe%12||12:pe)).slice(-2))+toDisplayString$1($.getAmPmFlag(pe)),1)],2112)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+pe).slice(-2)),1)],2112))],10,_hoisted_1$Y))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),$.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList($.spinnerItems,ue=>(openBlock(),createElementBlock("div",{key:ue,class:normalizeClass([$.ns.be("spinner","wrapper"),$.ns.is("arrow")]),onMouseenter:de=>$.emitSelectRange(ue)},[withDirectives((openBlock(),createBlock(ae,{class:normalizeClass(["arrow-up",$.ns.be("spinner","arrow")])},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class"])),[[le,$.onDecreaseClick]]),withDirectives((openBlock(),createBlock(ae,{class:normalizeClass(["arrow-down",$.ns.be("spinner","arrow")])},{default:withCtx(()=>[createVNode(he)]),_:1},8,["class"])),[[le,$.onIncreaseClick]]),createBaseVNode("ul",{class:normalizeClass($.ns.be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.arrowListMap[ue].value,(de,pe)=>(openBlock(),createElementBlock("li",{key:pe,class:normalizeClass([$.ns.be("spinner","item"),$.ns.is("active",de===$.timePartsMap[ue].value),$.ns.is("disabled",$.listMap[ue].value[de])])},[typeof de=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[ue==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+($.amPmMode?de%12||12:de)).slice(-2))+toDisplayString$1($.getAmPmFlag(de)),1)],2112)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+de).slice(-2)),1)],2112))],2112)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$E))),128)):createCommentVNode("v-if",!0)],2)}var TimeSpinner=_export_sfc$1(_sfc_main$1Z,[["render",_sfc_render$1m],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1Y=defineComponent({components:{TimeSpinner},props:{visible:Boolean,actualVisible:{type:Boolean,default:void 0},datetimeRole:{type:String},parsedValue:{type:[Object,String]},format:{type:String,default:""}},emits:["pick","select-range","set-picker-option"],setup($,k){const V=useNamespace("time"),{t:z,lang:j}=useLocale(),oe=ref([0,2]),re=useOldValue($),ie=computed(()=>isUndefined($.actualVisible)?`${V.namespace.value}-zoom-in-top`:""),ae=computed(()=>$.format.includes("ss")),he=computed(()=>$.format.includes("A")?"A":$.format.includes("a")?"a":""),le=_n=>{const En=dayjs(_n).locale(j.value),Sn=Ie(En);return En.isSame(Sn)},ue=()=>{k.emit("pick",re.value,!1)},de=(_n=!1,En=!1)=>{En||k.emit("pick",$.parsedValue,_n)},pe=_n=>{if(!$.visible)return;const En=Ie(_n).millisecond(0);k.emit("pick",En,!0)},$e=(_n,En)=>{k.emit("select-range",_n,En),oe.value=[_n,En]},_e=_n=>{const En=[0,3].concat(ae.value?[6]:[]),Sn=["hours","minutes"].concat(ae.value?["seconds"]:[]),Cn=(En.indexOf(oe.value[0])+_n+En.length)%En.length;Oe.start_emitSelectRange(Sn[Cn])},Ce=_n=>{const En=_n.code;if(En===EVENT_CODE.left||En===EVENT_CODE.right){const Sn=En===EVENT_CODE.left?-1:1;_e(Sn),_n.preventDefault();return}if(En===EVENT_CODE.up||En===EVENT_CODE.down){const Sn=En===EVENT_CODE.up?-1:1;Oe.start_scrollDown(Sn),_n.preventDefault();return}},Ie=_n=>{const En={hour:vn,minute:$n,second:wn};let Sn=_n;return["hour","minute","second"].forEach(An=>{if(En[An]){let Cn;const Tn=En[An];An==="minute"?Cn=Tn(Sn.hour(),$.datetimeRole):An==="second"?Cn=Tn(Sn.hour(),Sn.minute(),$.datetimeRole):Cn=Tn($.datetimeRole),Cn&&Cn.length&&!Cn.includes(Sn[An]())&&(Sn=Sn[An](Cn[0]))}}),Sn},ze=_n=>_n?dayjs(_n,$.format).locale(j.value):null,Et=_n=>_n?_n.format($.format):null,qe=()=>dayjs(jt).locale(j.value);k.emit("set-picker-option",["isValidValue",le]),k.emit("set-picker-option",["formatToString",Et]),k.emit("set-picker-option",["parseUserInput",ze]),k.emit("set-picker-option",["handleKeydown",Ce]),k.emit("set-picker-option",["getRangeAvailableTime",Ie]),k.emit("set-picker-option",["getDefaultValue",qe]);const Oe={},Ue=_n=>{Oe[_n[0]]=_n[1]},Dt=inject("EP_PICKER_BASE"),{arrowControl:At,disabledHours:Lt,disabledMinutes:kt,disabledSeconds:Pt,defaultValue:jt}=Dt.props,{getAvailableHours:vn,getAvailableMinutes:$n,getAvailableSeconds:wn}=getAvailableArrs(Lt,kt,Pt);return{ns:V,transitionName:ie,arrowControl:At,onSetOption:Ue,t:z,handleConfirm:de,handleChange:pe,setSelectionRange:$e,amPmMode:he,showSeconds:ae,handleCancel:ue,disabledHours:Lt,disabledMinutes:kt,disabledSeconds:Pt}}});function _sfc_render$1l($,k,V,z,j,oe){const re=resolveComponent("time-spinner");return openBlock(),createBlock(Transition,{name:$.transitionName},{default:withCtx(()=>[$.actualVisible||$.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.b("panel"))},[createBaseVNode("div",{class:normalizeClass([$.ns.be("panel","content"),{"has-seconds":$.showSeconds}])},[createVNode(re,{ref:"spinner",role:$.datetimeRole||"start","arrow-control":$.arrowControl,"show-seconds":$.showSeconds,"am-pm-mode":$.amPmMode,"spinner-date":$.parsedValue,"disabled-hours":$.disabledHours,"disabled-minutes":$.disabledMinutes,"disabled-seconds":$.disabledSeconds,onChange:$.handleChange,onSetOption:$.onSetOption,onSelectRange:$.setSelectionRange},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2),createBaseVNode("div",{class:normalizeClass($.ns.be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([$.ns.be("panel","btn"),"cancel"]),onClick:k[0]||(k[0]=(...ie)=>$.handleCancel&&$.handleCancel(...ie))},toDisplayString$1($.t("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([$.ns.be("panel","btn"),"confirm"]),onClick:k[1]||(k[1]=ie=>$.handleConfirm())},toDisplayString$1($.t("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"])}var TimePickPanel=_export_sfc$1(_sfc_main$1Y,[["render",_sfc_render$1l],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const makeSelectRange=($,k)=>{const V=[];for(let z=$;z<=k;z++)V.push(z);return V},_sfc_main$1X=defineComponent({components:{TimeSpinner},props:{visible:Boolean,actualVisible:Boolean,parsedValue:{type:[Array]},format:{type:String,default:""}},emits:["pick","select-range","set-picker-option"],setup($,k){const{t:V,lang:z}=useLocale(),j=useNamespace("time"),oe=useNamespace("picker"),re=computed(()=>$.parsedValue[0]),ie=computed(()=>$.parsedValue[1]),ae=useOldValue($),he=()=>{k.emit("pick",ae.value,!1)},le=computed(()=>$.format.includes("ss")),ue=computed(()=>$.format.includes("A")?"A":$.format.includes("a")?"a":""),de=ref([]),pe=ref([]),$e=(zn=!1)=>{k.emit("pick",[re.value,ie.value],zn)},_e=zn=>{ze(zn.millisecond(0),ie.value)},Ce=zn=>{ze(re.value,zn.millisecond(0))},Ie=zn=>{const Xn=zn.map(Hn=>dayjs(Hn).locale(z.value)),Pn=vn(Xn);return Xn[0].isSame(Pn[0])&&Xn[1].isSame(Pn[1])},ze=(zn,Xn)=>{k.emit("pick",[zn,Xn],!0)},Et=computed(()=>re.value>ie.value),qe=ref([0,2]),Oe=(zn,Xn)=>{k.emit("select-range",zn,Xn,"min"),qe.value=[zn,Xn]},Ue=computed(()=>le.value?11:8),Dt=(zn,Xn)=>{k.emit("select-range",zn,Xn,"max"),qe.value=[zn+Ue.value,Xn+Ue.value]},At=zn=>{const Xn=le.value?[0,3,6,11,14,17]:[0,3,8,11],Pn=["hours","minutes"].concat(le.value?["seconds"]:[]),eo=(Xn.indexOf(qe.value[0])+zn+Xn.length)%Xn.length,Qn=Xn.length/2;eo{const Xn=zn.code;if(Xn===EVENT_CODE.left||Xn===EVENT_CODE.right){const Pn=Xn===EVENT_CODE.left?-1:1;At(Pn),zn.preventDefault();return}if(Xn===EVENT_CODE.up||Xn===EVENT_CODE.down){const Pn=Xn===EVENT_CODE.up?-1:1,Hn=qe.value[0]{const Pn=Ln?Ln(zn):[],Hn=zn==="start",Qn=(Xn||(Hn?ie.value:re.value)).hour(),ao=Hn?makeSelectRange(Qn+1,23):makeSelectRange(0,Qn-1);return union$1(Pn,ao)},Pt=(zn,Xn,Pn)=>{const Hn=Bn?Bn(zn,Xn):[],eo=Xn==="start",Qn=Pn||(eo?ie.value:re.value),ao=Qn.hour();if(zn!==ao)return Hn;const ho=Qn.minute(),uo=eo?makeSelectRange(ho+1,59):makeSelectRange(0,ho-1);return union$1(Hn,uo)},jt=(zn,Xn,Pn,Hn)=>{const eo=Vn?Vn(zn,Xn,Pn):[],Qn=Pn==="start",ao=Hn||(Qn?ie.value:re.value),ho=ao.hour(),uo=ao.minute();if(zn!==ho||Xn!==uo)return eo;const Un=ao.second(),Zn=Qn?makeSelectRange(Un+1,59):makeSelectRange(0,Un-1);return union$1(eo,Zn)},vn=zn=>zn.map((Xn,Pn)=>En(zn[0],zn[1],Pn===0?"start":"end")),{getAvailableHours:$n,getAvailableMinutes:wn,getAvailableSeconds:_n}=getAvailableArrs(kt,Pt,jt),En=(zn,Xn,Pn)=>{const Hn={hour:$n,minute:wn,second:_n},eo=Pn==="start";let Qn=eo?zn:Xn;const ao=eo?Xn:zn;return["hour","minute","second"].forEach(ho=>{if(Hn[ho]){let uo;const Un=Hn[ho];if(ho==="minute"?uo=Un(Qn.hour(),Pn,ao):ho==="second"?uo=Un(Qn.hour(),Qn.minute(),Pn,ao):uo=Un(Pn,ao),uo&&uo.length&&!uo.includes(Qn[ho]())){const Zn=eo?0:uo.length-1;Qn=Qn[ho](uo[Zn])}}}),Qn},Sn=zn=>zn?Array.isArray(zn)?zn.map(Xn=>dayjs(Xn,$.format).locale(z.value)):dayjs(zn,$.format).locale(z.value):null,An=zn=>zn?Array.isArray(zn)?zn.map(Xn=>Xn.format($.format)):zn.format($.format):null,Cn=()=>{if(Array.isArray(Fn))return Fn.map(Xn=>dayjs(Xn).locale(z.value));const zn=dayjs(Fn).locale(z.value);return[zn,zn.add(60,"m")]};k.emit("set-picker-option",["formatToString",An]),k.emit("set-picker-option",["parseUserInput",Sn]),k.emit("set-picker-option",["isValidValue",Ie]),k.emit("set-picker-option",["handleKeydown",Lt]),k.emit("set-picker-option",["getDefaultValue",Cn]),k.emit("set-picker-option",["getRangeAvailableTime",vn]);const Tn={},Nn=zn=>{Tn[zn[0]]=zn[1]},xn=inject("EP_PICKER_BASE"),{arrowControl:On,disabledHours:Ln,disabledMinutes:Bn,disabledSeconds:Vn,defaultValue:Fn}=xn.props;return{nsTime:j,nsPicker:oe,arrowControl:On,onSetOption:Nn,setMaxSelectionRange:Dt,setMinSelectionRange:Oe,btnConfirmDisabled:Et,handleCancel:he,handleConfirm:$e,t:V,showSeconds:le,minDate:re,maxDate:ie,amPmMode:ue,handleMinChange:_e,handleMaxChange:Ce,minSelectableRange:de,maxSelectableRange:pe,disabledHours_:kt,disabledMinutes_:Pt,disabledSeconds_:jt}}}),_hoisted_1$X=["disabled"];function _sfc_render$1k($,k,V,z,j,oe){const re=resolveComponent("time-spinner");return $.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([$.nsTime.b("range-picker"),$.nsPicker.b("panel")])},[createBaseVNode("div",{class:normalizeClass($.nsTime.be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass($.nsTime.be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass($.nsTime.be("range-picker","header"))},toDisplayString$1($.t("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([$.nsTime.be("range-picker","body"),$.nsTime.be("panel","content"),$.nsTime.is("arrow",$.arrowControl),{"has-seconds":$.showSeconds}])},[createVNode(re,{ref:"minSpinner",role:"start","show-seconds":$.showSeconds,"am-pm-mode":$.amPmMode,"arrow-control":$.arrowControl,"spinner-date":$.minDate,"disabled-hours":$.disabledHours_,"disabled-minutes":$.disabledMinutes_,"disabled-seconds":$.disabledSeconds_,onChange:$.handleMinChange,onSetOption:$.onSetOption,onSelectRange:$.setMinSelectionRange},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2)],2),createBaseVNode("div",{class:normalizeClass($.nsTime.be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass($.nsTime.be("range-picker","header"))},toDisplayString$1($.t("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([$.nsTime.be("range-picker","body"),$.nsTime.be("panel","content"),$.nsTime.is("arrow",$.arrowControl),{"has-seconds":$.showSeconds}])},[createVNode(re,{ref:"maxSpinner",role:"end","show-seconds":$.showSeconds,"am-pm-mode":$.amPmMode,"arrow-control":$.arrowControl,"spinner-date":$.maxDate,"disabled-hours":$.disabledHours_,"disabled-minutes":$.disabledMinutes_,"disabled-seconds":$.disabledSeconds_,onChange:$.handleMaxChange,onSetOption:$.onSetOption,onSelectRange:$.setMaxSelectionRange},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass($.nsTime.be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([$.nsTime.be("panel","btn"),"cancel"]),onClick:k[0]||(k[0]=ie=>$.handleCancel())},toDisplayString$1($.t("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([$.nsTime.be("panel","btn"),"confirm"]),disabled:$.btnConfirmDisabled,onClick:k[1]||(k[1]=ie=>$.handleConfirm())},toDisplayString$1($.t("el.datepicker.confirm")),11,_hoisted_1$X)],2)],2)):createCommentVNode("v-if",!0)}var TimeRangePanel=_export_sfc$1(_sfc_main$1X,[["render",_sfc_render$1k],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);dayjs.extend(customParseFormat);var TimePicker=defineComponent({name:"ElTimePicker",install:null,props:mo(oo({},timePickerDefaultProps),{isRange:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup($,k){const V=ref(null),z=$.isRange?"timerange":"time",j=$.isRange?TimeRangePanel:TimePickPanel,oe=mo(oo({},$),{focus:()=>{var re;(re=V.value)==null||re.handleFocus()},blur:()=>{var re;(re=V.value)==null||re.handleBlur()}});return provide("ElPopperOptions",$.popperOptions),k.expose(oe),()=>{var re;const ie=(re=$.format)!=null?re:DEFAULT_FORMATS_TIME;return h$2(CommonPicker,mo(oo({},$),{format:ie,type:z,ref:V,"onUpdate:modelValue":ae=>k.emit("update:modelValue",ae)}),{default:ae=>h$2(j,ae)})}}});const rangeArr=$=>Array.from(Array.from({length:$}).keys()),extractDateFormat=$=>$.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=$=>$.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),_TimePicker=TimePicker;_TimePicker.install=$=>{$.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=($,k)=>{const V=$.subtract(1,"month").endOf("month").date();return rangeArr(k).map((z,j)=>V-(k-j-1))},getMonthDays=$=>{const k=$.daysInMonth();return rangeArr(k).map((V,z)=>z+1)},toNestedArr=$=>rangeArr($.length/7).map(k=>{const V=k*7;return $.slice(V,V+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:$=>isObject$5($)},_hoisted_1$W={key:0},_hoisted_2$D=["onClick"],__default__$x={name:"DateTable"},_sfc_main$1W=defineComponent(mo(oo({},__default__$x),{props:dateTableProps,emits:dateTableEmits,setup($,{expose:k,emit:V}){const z=$;dayjs.extend(localeData);const{t:j,lang:oe}=useLocale(),re=useNamespace("calendar-table"),ie=useNamespace("calendar-day"),ae=dayjs().locale(oe.value),he=ae.$locale().weekStart||0,le=computed(()=>!!z.range&&!!z.range.length),ue=computed(()=>{let Ie=[];if(le.value){const[ze,Et]=z.range,qe=rangeArr(Et.date()-ze.date()+1).map(Dt=>({text:ze.date()+Dt,type:"current"}));let Oe=qe.length%7;Oe=Oe===0?0:7-Oe;const Ue=rangeArr(Oe).map((Dt,At)=>({text:At+1,type:"next"}));Ie=qe.concat(Ue)}else{const ze=z.date.startOf("month").day(),Et=getPrevMonthLastDays(z.date,ze-he).map(Dt=>({text:Dt,type:"prev"})),qe=getMonthDays(z.date).map(Dt=>({text:Dt,type:"current"}));Ie=[...Et,...qe];const Oe=7-(Ie.length%7||7),Ue=rangeArr(Oe).map((Dt,At)=>({text:At+1,type:"next"}));Ie=Ie.concat(Ue)}return toNestedArr(Ie)}),de=computed(()=>{const Ie=he;return Ie===0?WEEK_DAYS.map(ze=>j(`el.datepicker.weeks.${ze}`)):WEEK_DAYS.slice(Ie).concat(WEEK_DAYS.slice(0,Ie)).map(ze=>j(`el.datepicker.weeks.${ze}`))}),pe=(Ie,ze)=>{switch(ze){case"prev":return z.date.startOf("month").subtract(1,"month").date(Ie);case"next":return z.date.startOf("month").add(1,"month").date(Ie);case"current":return z.date.date(Ie)}},$e=({text:Ie,type:ze})=>{const Et=[ze];if(ze==="current"){const qe=pe(Ie,ze);qe.isSame(z.selectedDay,"day")&&Et.push(ie.is("selected")),qe.isSame(ae,"day")&&Et.push(ie.is("today"))}return Et},_e=({text:Ie,type:ze})=>{const Et=pe(Ie,ze);V("pick",Et)},Ce=({text:Ie,type:ze})=>{const Et=pe(Ie,ze);return{isSelected:Et.isSame(z.selectedDay),type:`${ze}-month`,day:Et.format("YYYY-MM-DD"),date:Et.toDate()}};return k({getFormattedDate:pe}),(Ie,ze)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(re).b(),unref(re).is("range",unref(le))]),cellspacing:"0",cellpadding:"0"},[Ie.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$W,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(de),Et=>(openBlock(),createElementBlock("th",{key:Et},toDisplayString$1(Et),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(Et,qe)=>(openBlock(),createElementBlock("tr",{key:qe,class:normalizeClass({[unref(re).e("row")]:!0,[unref(re).em("row","hide-border")]:qe===0&&Ie.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Et,(Oe,Ue)=>(openBlock(),createElementBlock("td",{key:Ue,class:normalizeClass($e(Oe)),onClick:Dt=>_e(Oe)},[createBaseVNode("div",{class:normalizeClass(unref(ie).b())},[renderSlot(Ie.$slots,"dateCell",{data:Ce(Oe)},()=>[createBaseVNode("span",null,toDisplayString$1(Oe.text),1)])],2)],10,_hoisted_2$D))),128))],2))),128))])],2))}}));var DateTable$1=_export_sfc$1(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:$=>Array.isArray($)&&$.length===2&&$.every(k=>k instanceof Date)}}),calendarEmits={[UPDATE_MODEL_EVENT]:$=>$ instanceof Date,input:$=>$ instanceof Date},__default__$w={name:"ElCalendar"},_sfc_main$1V=defineComponent(mo(oo({},__default__$w),{props:calendarProps,emits:calendarEmits,setup($,{expose:k,emit:V}){const z=$,j=useNamespace("calendar"),{t:oe,lang:re}=useLocale(),ie=ref(),ae=dayjs().locale(re.value),he=computed(()=>_e.value.subtract(1,"month").date(1)),le=computed(()=>_e.value.add(1,"month").date(1)),ue=computed(()=>_e.value.subtract(1,"year").date(1)),de=computed(()=>_e.value.add(1,"year").date(1)),pe=computed(()=>{const qe=`el.datepicker.month${_e.value.format("M")}`;return`${_e.value.year()} ${oe("el.datepicker.year")} ${oe(qe)}`}),$e=computed({get(){return z.modelValue?_e.value:ie.value},set(qe){if(!qe)return;ie.value=qe;const Oe=qe.toDate();V("input",Oe),V("update:modelValue",Oe)}}),_e=computed(()=>z.modelValue?dayjs(z.modelValue).locale(re.value):$e.value?$e.value:Ie.value.length?Ie.value[0][0]:ae),Ce=(qe,Oe)=>{const Ue=qe.startOf("week"),Dt=Oe.endOf("week"),At=Ue.get("month"),Lt=Dt.get("month");if(At===Lt)return[[Ue,Dt]];if(At+1===Lt){const kt=Ue.endOf("month"),Pt=Dt.startOf("month"),vn=kt.isSame(Pt,"week")?Pt.add(1,"week"):Pt;return[[Ue,kt],[vn.startOf("week"),Dt]]}else if(At+2===Lt||(At+1)%11===Lt){const kt=Ue.endOf("month"),Pt=Ue.add(1,"month").startOf("month"),jt=kt.isSame(Pt,"week")?Pt.add(1,"week"):Pt,vn=jt.endOf("month"),$n=Dt.startOf("month"),wn=vn.isSame($n,"week")?$n.add(1,"week"):$n;return[[Ue,kt],[jt.startOf("week"),vn],[wn.startOf("week"),Dt]]}else return[]},Ie=computed(()=>{if(!z.range)return[];const qe=z.range.map(Dt=>dayjs(Dt).locale(re.value)),[Oe,Ue]=qe;return Oe.isAfter(Ue)?[]:Oe.isSame(Ue,"month")?Ce(Oe,Ue):Oe.add(1,"month").month()!==Ue.month()?[]:Ce(Oe,Ue)}),ze=qe=>{$e.value=qe},Et=qe=>{let Oe;qe==="prev-month"?Oe=he.value:qe==="next-month"?Oe=le.value:qe==="prev-year"?Oe=ue.value:qe==="next-year"?Oe=de.value:Oe=ae,!Oe.isSame(_e.value,"day")&&ze(Oe)};return k({selectedDay:$e,pickDay:ze,selectDate:Et,calculateValidatedDateRange:Ce}),(qe,Oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(j).b())},[createBaseVNode("div",{class:normalizeClass(unref(j).e("header"))},[renderSlot(qe.$slots,"header",{date:unref(pe)},()=>[createBaseVNode("div",{class:normalizeClass(unref(j).e("title"))},toDisplayString$1(unref(pe)),3),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(j).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:Oe[0]||(Oe[0]=Ue=>Et("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Oe[1]||(Oe[1]=Ue=>Et("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Oe[2]||(Oe[2]=Ue=>Et("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(j).e("body"))},[createVNode(DateTable$1,{date:unref(_e),"selected-day":unref($e),onPick:ze},createSlots({_:2},[qe.$slots.dateCell?{name:"dateCell",fn:withCtx(Ue=>[renderSlot(qe.$slots,"dateCell",normalizeProps(guardReactiveProps(Ue)))])}:void 0]),1032,["date","selected-day"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(j).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Ue,Dt)=>(openBlock(),createBlock(DateTable$1,{key:Dt,date:Ue[0],"selected-day":unref($e),range:Ue,"hide-header":Dt!==0,onPick:ze},createSlots({_:2},[qe.$slots.dateCell?{name:"dateCell",fn:withCtx(At=>[renderSlot(qe.$slots,"dateCell",normalizeProps(guardReactiveProps(At)))])}:void 0]),1032,["date","selected-day","range","hide-header"]))),128))],2))],2))}}));var Calendar=_export_sfc$1(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},shadow:{type:String,default:"always"}}),__default__$v={name:"ElCard"},_sfc_main$1U=defineComponent(mo(oo({},__default__$v),{props:cardProps,setup($){const k=useNamespace("card");return(V,z)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(k).b(),unref(k).is(`${V.shadow}-shadow`)])},[V.$slots.header||V.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(k).e("header"))},[renderSlot(V.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(V.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(k).e("body")),style:normalizeStyle(V.bodyStyle)},[renderSlot(V.$slots,"default")],6)],2))}}));var Card=_export_sfc$1(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ElCard=withInstall(Card),carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:{type:String,default:""},loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator($){return["horizontal","vertical"].includes($)}},pauseOnHover:{type:Boolean,default:!0}}),carouselEmits={change:($,k)=>[$,k].every(isNumber$1)},_hoisted_1$V=["onMouseenter","onMouseleave"],_hoisted_2$C=["onMouseenter","onClick"],_hoisted_3$m={key:0},__default__$u={name:"ElCarousel"},_sfc_main$1T=defineComponent(mo(oo({},__default__$u),{props:carouselProps,emits:carouselEmits,setup($,{expose:k,emit:V}){const z=$,j=useNamespace("carousel"),oe=300,re=ref(-1),ie=ref(null),ae=ref(!1),he=ref(),le=ref([]),ue=computed(()=>z.arrow!=="never"&&!unref(Ce)),de=computed(()=>le.value.some(Cn=>Cn.props.label.toString().length>0)),pe=computed(()=>{const Cn=[j.b(),j.m(z.direction)];return unref(_e)&&Cn.push(j.m("card")),Cn}),$e=computed(()=>{const Cn=[j.e("indicators"),j.em("indicators",z.direction)];return de.value&&Cn.push(j.em("indicators","labels")),(z.indicatorPosition==="outside"||unref(_e))&&Cn.push(j.em("indicators","outside")),Cn}),_e=computed(()=>z.type==="card"),Ce=computed(()=>z.direction==="vertical"),Ie=throttle(Cn=>{Ue(Cn)},oe,{trailing:!0}),ze=throttle(Cn=>{_n(Cn)},oe);function Et(){ie.value&&(clearInterval(ie.value),ie.value=null)}function qe(){z.interval<=0||!z.autoplay||ie.value||(ie.value=setInterval(()=>Oe(),z.interval))}const Oe=()=>{re.valueOn.props.name===Cn);xn.length>0&&(Cn=le.value.indexOf(xn[0]))}if(Cn=Number(Cn),Number.isNaN(Cn)||Cn!==Math.floor(Cn))return;const Tn=le.value.length,Nn=re.value;Cn<0?re.value=z.loop?Tn-1:0:Cn>=Tn?re.value=z.loop?0:Tn-1:re.value=Cn,Nn===re.value&&Dt(Nn)}function Dt(Cn){le.value.forEach((Tn,Nn)=>{Tn.translateItem(Nn,re.value,Cn)})}function At(Cn){le.value.push(Cn)}function Lt(Cn){const Tn=le.value.findIndex(Nn=>Nn.uid===Cn);Tn!==-1&&(le.value.splice(Tn,1),re.value===Tn&&Sn())}function kt(Cn,Tn){var Nn,xn,On,Ln;const Bn=unref(le),Vn=Bn.length;if(Vn===0||!Cn.states.inStage)return!1;const Fn=Tn+1,zn=Tn-1,Xn=Vn-1,Pn=Bn[Xn].states.active,Hn=Bn[0].states.active,eo=(xn=(Nn=Bn[Fn])==null?void 0:Nn.states)==null?void 0:xn.active,Qn=(Ln=(On=Bn[zn])==null?void 0:On.states)==null?void 0:Ln.active;return Tn===Xn&&Hn||eo?"left":Tn===0&&Pn||Qn?"right":!1}function Pt(){ae.value=!0,z.pauseOnHover&&Et()}function jt(){ae.value=!1,qe()}function vn(Cn){unref(Ce)||le.value.forEach((Tn,Nn)=>{Cn===kt(Tn,Nn)&&(Tn.states.hover=!0)})}function $n(){unref(Ce)||le.value.forEach(Cn=>{Cn.states.hover=!1})}function wn(Cn){re.value=Cn}function _n(Cn){z.trigger==="hover"&&Cn!==re.value&&(re.value=Cn)}function En(){Ue(re.value-1)}function Sn(){Ue(re.value+1)}watch$1(()=>re.value,(Cn,Tn)=>{Dt(Tn),Tn>-1&&V("change",Cn,Tn)}),watch$1(()=>z.autoplay,Cn=>{Cn?qe():Et()}),watch$1(()=>z.loop,()=>{Ue(re.value)});const An=shallowRef();return onMounted(async()=>{await nextTick(),An.value=useResizeObserver(he.value,()=>{Dt()}),z.initialIndex=0&&(re.value=z.initialIndex),qe()}),onBeforeUnmount(()=>{Et(),he.value&&An.value&&An.value.stop()}),provide(carouselContextKey,{root:he,isCardType:_e,isVertical:Ce,items:le,loop:z.loop,addItem:At,removeItem:Lt,setActiveItem:Ue}),k({setActiveItem:Ue,prev:En,next:Sn}),(Cn,Tn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:he,class:normalizeClass(unref(pe)),onMouseenter:withModifiers(Pt,["stop"]),onMouseleave:withModifiers(jt,["stop"])},[createBaseVNode("div",{class:normalizeClass(unref(j).e("container")),style:normalizeStyle({height:Cn.height})},[unref(ue)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left"},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(j).e("arrow"),unref(j).em("arrow","left")]),onMouseenter:Tn[0]||(Tn[0]=Nn=>vn("left")),onMouseleave:$n,onClick:Tn[1]||(Tn[1]=withModifiers(Nn=>unref(Ie)(re.value-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrowLeft))]),_:1})],34),[[vShow,(Cn.arrow==="always"||ae.value)&&(z.loop||re.value>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(ue)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right"},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(j).e("arrow"),unref(j).em("arrow","right")]),onMouseenter:Tn[2]||(Tn[2]=Nn=>vn("right")),onMouseleave:$n,onClick:Tn[3]||(Tn[3]=withModifiers(Nn=>unref(Ie)(re.value+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrowRight))]),_:1})],34),[[vShow,(Cn.arrow==="always"||ae.value)&&(z.loop||re.value(openBlock(),createElementBlock("li",{key:xn,class:normalizeClass([unref(j).e("indicator"),unref(j).em("indicator",Cn.direction),unref(j).is("active",xn===re.value)]),onMouseenter:On=>unref(ze)(xn),onClick:withModifiers(On=>wn(xn),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(j).e("button"))},[unref(de)?(openBlock(),createElementBlock("span",_hoisted_3$m,toDisplayString$1(Nn.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_2$C))),128))],2)):createCommentVNode("v-if",!0)],42,_hoisted_1$V))}}));var Carousel=_export_sfc$1(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),__default__$t={name:"ElCarouselItem"},_sfc_main$1S=defineComponent(mo(oo({},__default__$t),{props:carouselItemProps,setup($){const k=$,V=useNamespace("carousel"),z=inject(carouselContextKey),j=getCurrentInstance(),oe=.83,re=ref(!1),ie=ref(0),ae=ref(1),he=ref(!1),le=ref(!1),ue=ref(!1),de=ref(!1),{isCardType:pe,isVertical:$e}=z,_e=computed(()=>{const Ue=`${`translate${unref($e)?"Y":"X"}`}(${unref(ie)}px)`,Dt=`scale(${unref(ae)})`;return{transform:[Ue,Dt].join(" ")}});function Ce(Oe,Ue,Dt){const At=Dt-1,Lt=Ue-1,kt=Ue+1,Pt=Dt/2;return Ue===0&&Oe===At?-1:Ue===At&&Oe===0?Dt:Oe=Pt?Dt+1:Oe>kt&&Oe-Ue>=Pt?-2:Oe}function Ie(Oe,Ue){var Dt;const At=((Dt=z.root.value)==null?void 0:Dt.offsetWidth)||0;return ue.value?At*((2-oe)*(Oe-Ue)+1)/4:Oe{var At;const Lt=unref(pe),kt=(At=z.items.value.length)!=null?At:Number.NaN,Pt=Oe===Ue;!Lt&&!isUndefined(Dt)&&(de.value=Pt||Oe===Dt),!Pt&&kt>2&&z.loop&&(Oe=Ce(Oe,Ue,kt));const jt=unref($e);he.value=Pt,Lt?(ue.value=Math.round(Math.abs(Oe-Ue))<=1,ie.value=Ie(Oe,Ue),ae.value=unref(he)?1:oe):ie.value=ze(Oe,Ue,jt),le.value=!0};function qe(){if(z&&unref(pe)){const Oe=z.items.value.findIndex(({uid:Ue})=>Ue===j.uid);z.setActiveItem(Oe)}}return onMounted(()=>{z.addItem({props:k,states:reactive({hover:re,translate:ie,scale:ae,active:he,ready:le,inStage:ue,animating:de}),uid:j.uid,translateItem:Et})}),onUnmounted(()=>{z.removeItem(j.uid)}),(Oe,Ue)=>withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).e("item"),unref(V).is("active",he.value),unref(V).is("in-stage",ue.value),unref(V).is("hover",re.value),unref(V).is("animating",de.value),{[unref(V).em("item","card")]:unref(pe)}]),style:normalizeStyle(unref(_e)),onClick:qe},[unref(pe)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("mask"))},null,2)),[[vShow,!he.value]]):createCommentVNode("v-if",!0),renderSlot(Oe.$slots,"default")],6)),[[vShow,le.value]])}}));var CarouselItem=_export_sfc$1(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ElCarousel=withInstall(Carousel,{CarouselItem}),ElCarouselItem=withNoopInstall(CarouselItem),useCheckboxGroupProps={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:{type:String,validator:isValidComponentSize},id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"}},useCheckboxProps={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:{type:String,validator:isValidComponentSize},tabindex:[String,Number]},useCheckboxGroup=()=>{const $=inject(formContextKey,{}),k=inject(formItemContextKey,{}),V=inject("CheckboxGroup",{}),z=computed(()=>V&&(V==null?void 0:V.name)==="ElCheckboxGroup"),j=computed(()=>k.size);return{isGroup:z,checkboxGroup:V,elForm:$,elFormItemSize:j,elFormItem:k}},useCheckboxGroupId=($,{elFormItem:k})=>{const{inputId:V,isLabeledByFormItem:z}=useFormItemInputId($,{formItemContext:k});return{isLabeledByFormItem:z,groupId:V}},useModel=$=>{const k=ref(!1),{emit:V}=getCurrentInstance(),{isGroup:z,checkboxGroup:j,elFormItem:oe}=useCheckboxGroup(),re=ref(!1);return{model:computed({get(){var ae,he;return z.value?(ae=j.modelValue)==null?void 0:ae.value:(he=$.modelValue)!=null?he:k.value},set(ae){var he;z.value&&Array.isArray(ae)?(re.value=j.max!==void 0&&ae.length>j.max.value,re.value===!1&&((he=j==null?void 0:j.changeEvent)==null||he.call(j,ae))):(V(UPDATE_MODEL_EVENT,ae),k.value=ae)}}),isGroup:z,isLimitExceeded:re,elFormItem:oe}},useCheckboxStatus=($,k,{model:V})=>{const{isGroup:z,checkboxGroup:j}=useCheckboxGroup(),oe=ref(!1),re=useSize(j==null?void 0:j.checkboxGroupSize,{prop:!0}),ie=computed(()=>{const le=V.value;return toTypeString$1(le)==="[object Boolean]"?le:Array.isArray(le)?le.includes($.label):le!=null?le===$.trueLabel:!!le}),ae=useSize(computed(()=>{var le;return z.value?(le=j==null?void 0:j.checkboxGroupSize)==null?void 0:le.value:void 0})),he=computed(()=>!!(k.default||$.label));return{isChecked:ie,focus:oe,size:re,checkboxSize:ae,hasOwnLabel:he}},useDisabled=($,{model:k,isChecked:V})=>{const{elForm:z,isGroup:j,checkboxGroup:oe}=useCheckboxGroup(),re=computed(()=>{var ae,he;const le=(ae=oe.max)==null?void 0:ae.value,ue=(he=oe.min)==null?void 0:he.value;return!!(le||ue)&&k.value.length>=le&&!V.value||k.value.length<=ue&&V.value});return{isDisabled:computed(()=>{var ae,he;const le=$.disabled||(z==null?void 0:z.disabled);return(he=j.value?((ae=oe.disabled)==null?void 0:ae.value)||le||re.value:le)!=null?he:!1}),isLimitDisabled:re}},setStoreValue=($,{model:k})=>{function V(){Array.isArray(k.value)&&!k.value.includes($.label)?k.value.push($.label):k.value=$.trueLabel||!0}$.checked&&V()},useEvent$1=($,{model:k,isLimitExceeded:V,hasOwnLabel:z,isDisabled:j,isLabeledByFormItem:oe})=>{const{elFormItem:re}=useCheckboxGroup(),{emit:ie}=getCurrentInstance();function ae(de){var pe,$e;return de===$.trueLabel||de===!0?(pe=$.trueLabel)!=null?pe:!0:($e=$.falseLabel)!=null?$e:!1}function he(de,pe){ie("change",ae(de),pe)}function le(de){if(V.value)return;const pe=de.target;ie("change",ae(pe.checked),de)}async function ue(de){V.value||!z.value&&!j.value&&oe.value&&(k.value=ae([!1,$.falseLabel].includes(k.value)),await nextTick(),he(k.value,de))}return watch$1(()=>$.modelValue,()=>{var de;(de=re==null?void 0:re.validate)==null||de.call(re,"change").catch(pe=>void 0)}),{handleChange:le,onClickRoot:ue}},useCheckbox=($,k)=>{const{model:V,isGroup:z,isLimitExceeded:j,elFormItem:oe}=useModel($),{focus:re,size:ie,isChecked:ae,checkboxSize:he,hasOwnLabel:le}=useCheckboxStatus($,k,{model:V}),{isDisabled:ue}=useDisabled($,{model:V,isChecked:ae}),{inputId:de,isLabeledByFormItem:pe}=useFormItemInputId($,{formItemContext:oe,disableIdGeneration:le,disableIdManagement:z}),{handleChange:$e,onClickRoot:_e}=useEvent$1($,{model:V,isLimitExceeded:j,hasOwnLabel:le,isDisabled:ue,isLabeledByFormItem:pe});return setStoreValue($,{model:V}),{elFormItem:oe,inputId:de,isLabeledByFormItem:pe,isChecked:ae,isDisabled:ue,isGroup:z,checkboxSize:he,hasOwnLabel:le,model:V,handleChange:$e,onClickRoot:_e,focus:re,size:ie}},_sfc_main$1R=defineComponent({name:"ElCheckbox",props:useCheckboxProps,emits:[UPDATE_MODEL_EVENT,"change"],setup($,{slots:k}){const V=useNamespace("checkbox");return oo({ns:V},useCheckbox($,k))}}),_hoisted_1$U=["tabindex","role","aria-checked"],_hoisted_2$B=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$l=["id","aria-hidden","disabled","value","name","tabindex"];function _sfc_render$1j($,k,V,z,j,oe){return openBlock(),createBlock(resolveDynamicComponent(!$.hasOwnLabel&&$.isLabeledByFormItem?"span":"label"),{class:normalizeClass([$.ns.b(),$.ns.m($.checkboxSize),$.ns.is("disabled",$.isDisabled),$.ns.is("bordered",$.border),$.ns.is("checked",$.isChecked)]),"aria-controls":$.indeterminate?$.controls:null,onClick:$.onClickRoot},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.ns.e("input"),$.ns.is("disabled",$.isDisabled),$.ns.is("checked",$.isChecked),$.ns.is("indeterminate",$.indeterminate),$.ns.is("focus",$.focus)]),tabindex:$.indeterminate?0:void 0,role:$.indeterminate?"checkbox":void 0,"aria-checked":$.indeterminate?"mixed":void 0},[createBaseVNode("span",{class:normalizeClass($.ns.e("inner"))},null,2),$.trueLabel||$.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:$.inputId,"onUpdate:modelValue":k[0]||(k[0]=re=>$.model=re),class:normalizeClass($.ns.e("original")),type:"checkbox","aria-hidden":$.indeterminate?"true":"false",name:$.name,tabindex:$.tabindex,disabled:$.isDisabled,"true-value":$.trueLabel,"false-value":$.falseLabel,onChange:k[1]||(k[1]=(...re)=>$.handleChange&&$.handleChange(...re)),onFocus:k[2]||(k[2]=re=>$.focus=!0),onBlur:k[3]||(k[3]=re=>$.focus=!1)},null,42,_hoisted_2$B)),[[vModelCheckbox,$.model]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:$.inputId,"onUpdate:modelValue":k[4]||(k[4]=re=>$.model=re),class:normalizeClass($.ns.e("original")),type:"checkbox","aria-hidden":$.indeterminate?"true":"false",disabled:$.isDisabled,value:$.label,name:$.name,tabindex:$.tabindex,onChange:k[5]||(k[5]=(...re)=>$.handleChange&&$.handleChange(...re)),onFocus:k[6]||(k[6]=re=>$.focus=!0),onBlur:k[7]||(k[7]=re=>$.focus=!1)},null,42,_hoisted_3$l)),[[vModelCheckbox,$.model]])],10,_hoisted_1$U),$.hasOwnLabel?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass($.ns.e("label"))},[renderSlot($.$slots,"default"),$.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1($.label),1)],2112))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"])}var Checkbox=_export_sfc$1(_sfc_main$1R,[["render",_sfc_render$1j],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _sfc_main$1Q=defineComponent({name:"ElCheckboxButton",props:useCheckboxProps,emits:[UPDATE_MODEL_EVENT,"change"],setup($,{slots:k}){const{focus:V,isChecked:z,isDisabled:j,size:oe,model:re,handleChange:ie}=useCheckbox($,k),{checkboxGroup:ae}=useCheckboxGroup(),he=useNamespace("checkbox"),le=computed(()=>{var ue,de,pe,$e;const _e=(de=(ue=ae==null?void 0:ae.fill)==null?void 0:ue.value)!=null?de:"";return{backgroundColor:_e,borderColor:_e,color:($e=(pe=ae==null?void 0:ae.textColor)==null?void 0:pe.value)!=null?$e:"",boxShadow:_e?`-1px 0 0 0 ${_e}`:null}});return{focus:V,isChecked:z,isDisabled:j,model:re,handleChange:ie,activeStyle:le,size:oe,ns:he}}}),_hoisted_1$T=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$A=["name","tabindex","disabled","value"];function _sfc_render$1i($,k,V,z,j,oe){return openBlock(),createElementBlock("label",{class:normalizeClass([$.ns.b("button"),$.ns.bm("button",$.size),$.ns.is("disabled",$.isDisabled),$.ns.is("checked",$.isChecked),$.ns.is("focus",$.focus)])},[$.trueLabel||$.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":k[0]||(k[0]=re=>$.model=re),class:normalizeClass($.ns.be("button","original")),type:"checkbox",name:$.name,tabindex:$.tabindex,disabled:$.isDisabled,"true-value":$.trueLabel,"false-value":$.falseLabel,onChange:k[1]||(k[1]=(...re)=>$.handleChange&&$.handleChange(...re)),onFocus:k[2]||(k[2]=re=>$.focus=!0),onBlur:k[3]||(k[3]=re=>$.focus=!1)},null,42,_hoisted_1$T)),[[vModelCheckbox,$.model]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":k[4]||(k[4]=re=>$.model=re),class:normalizeClass($.ns.be("button","original")),type:"checkbox",name:$.name,tabindex:$.tabindex,disabled:$.isDisabled,value:$.label,onChange:k[5]||(k[5]=(...re)=>$.handleChange&&$.handleChange(...re)),onFocus:k[6]||(k[6]=re=>$.focus=!0),onBlur:k[7]||(k[7]=re=>$.focus=!1)},null,42,_hoisted_2$A)),[[vModelCheckbox,$.model]]),$.$slots.default||$.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass($.ns.be("button","inner")),style:normalizeStyle($.isChecked?$.activeStyle:null)},[renderSlot($.$slots,"default",{},()=>[createTextVNode(toDisplayString$1($.label),1)])],6)):createCommentVNode("v-if",!0)],2)}var CheckboxButton=_export_sfc$1(_sfc_main$1Q,[["render",_sfc_render$1i],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const _sfc_main$1P=defineComponent({name:"ElCheckboxGroup",props:useCheckboxGroupProps,emits:[UPDATE_MODEL_EVENT,"change"],setup($,{emit:k,slots:V}){const{elFormItem:z}=useCheckboxGroup(),{groupId:j,isLabeledByFormItem:oe}=useCheckboxGroupId($,{elFormItem:z}),re=useSize(),ie=useNamespace("checkbox"),ae=le=>{k(UPDATE_MODEL_EVENT,le),nextTick(()=>{k("change",le)})},he=computed({get(){return $.modelValue},set(le){ae(le)}});return provide("CheckboxGroup",mo(oo({name:"ElCheckboxGroup",modelValue:he},toRefs($)),{checkboxGroupSize:re,changeEvent:ae})),watch$1(()=>$.modelValue,()=>{var le;(le=z.validate)==null||le.call(z,"change").catch(ue=>void 0)}),()=>h$2($.tag,{id:j.value,class:ie.b("group"),role:"group","aria-label":oe.value?void 0:$.label||"checkbox-group","aria-labelledby":oe.value?z.labelId:void 0},[renderSlot(V,"default")])}});var CheckboxGroup=_export_sfc$1(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup}),ElCheckboxButton=withNoopInstall(CheckboxButton),ElCheckboxGroup$1=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),radioProps=buildProps(mo(oo({},radioPropsBase),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),radioEmits={[UPDATE_MODEL_EVENT]:$=>isString$3($)||isNumber$1($)||isBoolean$1($),change:$=>isString$3($)||isNumber$1($)||isBoolean$1($)},useRadio=($,k)=>{const V=ref(),z=inject(radioGroupKey,void 0),j=computed(()=>!!z),oe=computed({get(){return j.value?z.modelValue:$.modelValue},set(le){j.value?z.changeEvent(le):k(UPDATE_MODEL_EVENT,le),V.value.checked=$.modelValue===$.label}}),re=useSize(computed(()=>z==null?void 0:z.size)),ie=useDisabled$1(computed(()=>z==null?void 0:z.disabled)),ae=ref(!1),he=computed(()=>ie.value||j.value&&oe.value!==$.label?-1:0);return{radioRef:V,isGroup:j,radioGroup:z,focus:ae,size:re,disabled:ie,tabIndex:he,modelValue:oe}},_sfc_main$1O=defineComponent({name:"ElRadio",props:radioProps,emits:radioEmits,setup($,{emit:k}){const V=useNamespace("radio"),{radioRef:z,isGroup:j,focus:oe,size:re,disabled:ie,tabIndex:ae,modelValue:he}=useRadio($,k);function le(){nextTick(()=>k("change",he.value))}return{ns:V,focus:oe,isGroup:j,modelValue:he,tabIndex:ae,size:re,disabled:ie,radioRef:z,handleChange:le}}}),_hoisted_1$S=["value","name","disabled"];function _sfc_render$1h($,k,V,z,j,oe){return openBlock(),createElementBlock("label",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled),$.ns.is("focus",$.focus),$.ns.is("bordered",$.border),$.ns.is("checked",$.modelValue===$.label),$.ns.m($.size)]),onKeydown:k[5]||(k[5]=withKeys(withModifiers(re=>$.modelValue=$.disabled?$.modelValue:$.label,["stop","prevent"]),["space"]))},[createBaseVNode("span",{class:normalizeClass([$.ns.e("input"),$.ns.is("disabled",$.disabled),$.ns.is("checked",$.modelValue===$.label)])},[createBaseVNode("span",{class:normalizeClass($.ns.e("inner"))},null,2),withDirectives(createBaseVNode("input",{ref:"radioRef","onUpdate:modelValue":k[0]||(k[0]=re=>$.modelValue=re),class:normalizeClass($.ns.e("original")),value:$.label,type:"radio",name:$.name,disabled:$.disabled,tabindex:"tabIndex",onFocus:k[1]||(k[1]=re=>$.focus=!0),onBlur:k[2]||(k[2]=re=>$.focus=!1),onChange:k[3]||(k[3]=(...re)=>$.handleChange&&$.handleChange(...re))},null,42,_hoisted_1$S),[[vModelRadio,$.modelValue]])],2),createBaseVNode("span",{class:normalizeClass($.ns.e("label")),onKeydown:k[4]||(k[4]=withModifiers(()=>{},["stop"]))},[renderSlot($.$slots,"default",{},()=>[createTextVNode(toDisplayString$1($.label),1)])],34)],34)}var Radio=_export_sfc$1(_sfc_main$1O,[["render",_sfc_render$1h],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps(mo(oo({},radioPropsBase),{name:{type:String,default:""}})),_sfc_main$1N=defineComponent({name:"ElRadioButton",props:radioButtonProps,setup($,{emit:k}){const V=useNamespace("radio"),{radioRef:z,isGroup:j,focus:oe,size:re,disabled:ie,tabIndex:ae,modelValue:he,radioGroup:le}=useRadio($,k),ue=computed(()=>({backgroundColor:(le==null?void 0:le.fill)||"",borderColor:(le==null?void 0:le.fill)||"",boxShadow:le!=null&&le.fill?`-1px 0 0 0 ${le.fill}`:"",color:(le==null?void 0:le.textColor)||""}));return{ns:V,isGroup:j,size:re,disabled:ie,tabIndex:ae,modelValue:he,focus:oe,activeStyle:ue,radioRef:z}}}),_hoisted_1$R=["aria-checked","aria-disabled","tabindex"],_hoisted_2$z=["value","name","disabled"];function _sfc_render$1g($,k,V,z,j,oe){return openBlock(),createElementBlock("label",{class:normalizeClass([$.ns.b("button"),$.ns.is("active",$.modelValue===$.label),$.ns.is("disabled",$.disabled),$.ns.is("focus",$.focus),$.ns.bm("button",$.size)]),role:"radio","aria-checked":$.modelValue===$.label,"aria-disabled":$.disabled,tabindex:$.tabIndex,onKeydown:k[4]||(k[4]=withKeys(withModifiers(re=>$.modelValue=$.disabled?$.modelValue:$.label,["stop","prevent"]),["space"]))},[withDirectives(createBaseVNode("input",{ref:"radioRef","onUpdate:modelValue":k[0]||(k[0]=re=>$.modelValue=re),class:normalizeClass($.ns.be("button","original-radio")),value:$.label,type:"radio",name:$.name,disabled:$.disabled,tabindex:"-1",onFocus:k[1]||(k[1]=re=>$.focus=!0),onBlur:k[2]||(k[2]=re=>$.focus=!1)},null,42,_hoisted_2$z),[[vModelRadio,$.modelValue]]),createBaseVNode("span",{class:normalizeClass($.ns.be("button","inner")),style:normalizeStyle($.modelValue===$.label?$.activeStyle:{}),onKeydown:k[3]||(k[3]=withModifiers(()=>{},["stop"]))},[renderSlot($.$slots,"default",{},()=>[createTextVNode(toDisplayString$1($.label),1)])],38)],42,_hoisted_1$R)}var RadioButton=_export_sfc$1(_sfc_main$1N,[["render",_sfc_render$1g],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""}}),radioGroupEmits=radioEmits,_sfc_main$1M=defineComponent({name:"ElRadioGroup",props:radioGroupProps,emits:radioGroupEmits,setup($,k){const V=useNamespace("radio"),z=ref(),{formItem:j}=useFormItem(),{inputId:oe,isLabeledByFormItem:re}=useFormItemInputId($,{formItemContext:j}),ie=he=>{k.emit(UPDATE_MODEL_EVENT,he),nextTick(()=>k.emit("change",he))},ae=he=>{if(!z.value)return;const le=he.target,ue=le.nodeName==="INPUT"?"[type=radio]":"[role=radio]",de=z.value.querySelectorAll(ue),pe=de.length,$e=Array.from(de).indexOf(le),_e=z.value.querySelectorAll("[role=radio]");let Ce=null;switch(he.code){case EVENT_CODE.left:case EVENT_CODE.up:he.stopPropagation(),he.preventDefault(),Ce=$e===0?pe-1:$e-1;break;case EVENT_CODE.right:case EVENT_CODE.down:he.stopPropagation(),he.preventDefault(),Ce=$e===pe-1?0:$e+1;break}Ce!==null&&(_e[Ce].click(),_e[Ce].focus())};return onMounted(()=>{const he=z.value.querySelectorAll("[type=radio]"),le=he[0];!Array.from(he).some(ue=>ue.checked)&&le&&(le.tabIndex=0)}),provide(radioGroupKey,reactive(mo(oo({},toRefs($)),{changeEvent:ie}))),watch$1(()=>$.modelValue,()=>j==null?void 0:j.validate("change").catch(he=>void 0)),{ns:V,radioGroupRef:z,formItem:j,groupId:oe,isLabeledByFormItem:re,handleKeydown:ae}}}),_hoisted_1$Q=["id","aria-label","aria-labelledby"];function _sfc_render$1f($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{id:$.groupId,ref:"radioGroupRef",class:normalizeClass($.ns.b("group")),role:"radiogroup","aria-label":$.isLabeledByFormItem?void 0:$.label||"radio-group","aria-labelledby":$.isLabeledByFormItem?$.formItem.labelId:void 0,onKeydown:k[0]||(k[0]=(...re)=>$.handleKeydown&&$.handleKeydown(...re))},[renderSlot($.$slots,"default")],42,_hoisted_1$Q)}var RadioGroup=_export_sfc$1(_sfc_main$1M,[["render",_sfc_render$1f],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const ElRadio=withInstall(Radio,{RadioButton,RadioGroup}),ElRadioGroup=withNoopInstall(RadioGroup),ElRadioButton=withNoopInstall(RadioButton);var NodeContent$1=defineComponent({name:"NodeContent",setup(){return{ns:useNamespace("cascader-node")}},render(){const{ns:$}=this,{node:k,panel:V}=this.$parent,{data:z,label:j}=k,{renderLabelFn:oe}=V;return h$2("span",{class:$.e("label")},oe?oe({node:k,data:z}):j)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$1L=defineComponent({name:"ElCascaderNode",components:{ElCheckbox,ElRadio,NodeContent:NodeContent$1,ElIcon,Check:check,Loading:loading$1,ArrowRight:arrowRight},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup($,{emit:k}){const V=inject(CASCADER_PANEL_INJECTION_KEY),z=useNamespace("cascader-node"),j=computed(()=>V.isHoverMenu),oe=computed(()=>V.config.multiple),re=computed(()=>V.config.checkStrictly),ie=computed(()=>{var Ue;return(Ue=V.checkedNodes[0])==null?void 0:Ue.uid}),ae=computed(()=>$.node.isDisabled),he=computed(()=>$.node.isLeaf),le=computed(()=>re.value&&!he.value||!ae.value),ue=computed(()=>pe(V.expandingNode)),de=computed(()=>re.value&&V.checkedNodes.some(pe)),pe=Ue=>{var Dt;const{level:At,uid:Lt}=$.node;return((Dt=Ue==null?void 0:Ue.pathNodes[At-1])==null?void 0:Dt.uid)===Lt},$e=()=>{ue.value||V.expandNode($.node)},_e=Ue=>{const{node:Dt}=$;Ue!==Dt.checked&&V.handleCheckChange(Dt,Ue)},Ce=()=>{V.lazyLoad($.node,()=>{he.value||$e()})},Ie=Ue=>{!j.value||(ze(),!he.value&&k("expand",Ue))},ze=()=>{const{node:Ue}=$;!le.value||Ue.loading||(Ue.loaded?$e():Ce())},Et=()=>{j.value&&!he.value||(he.value&&!ae.value&&!re.value&&!oe.value?Oe(!0):ze())},qe=Ue=>{re.value?(_e(Ue),$.node.loaded&&$e()):Oe(Ue)},Oe=Ue=>{$.node.loaded?(_e(Ue),!re.value&&$e()):Ce()};return{panel:V,isHoverMenu:j,multiple:oe,checkStrictly:re,checkedNodeId:ie,isDisabled:ae,isLeaf:he,expandable:le,inExpandingPath:ue,inCheckedPath:de,ns:z,handleHoverExpand:Ie,handleExpand:ze,handleClick:Et,handleCheck:Oe,handleSelectCheck:qe}}}),_hoisted_1$P=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$y=createBaseVNode("span",null,null,-1);function _sfc_render$1e($,k,V,z,j,oe){const re=resolveComponent("el-checkbox"),ie=resolveComponent("el-radio"),ae=resolveComponent("check"),he=resolveComponent("el-icon"),le=resolveComponent("node-content"),ue=resolveComponent("loading"),de=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${$.menuId}-${$.node.uid}`,role:"menuitem","aria-haspopup":!$.isLeaf,"aria-owns":$.isLeaf?null:$.menuId,"aria-expanded":$.inExpandingPath,tabindex:$.expandable?-1:void 0,class:normalizeClass([$.ns.b(),$.ns.is("selectable",$.checkStrictly),$.ns.is("active",$.node.checked),$.ns.is("disabled",!$.expandable),$.inExpandingPath&&"in-active-path",$.inCheckedPath&&"in-checked-path"]),onMouseenter:k[2]||(k[2]=(...pe)=>$.handleHoverExpand&&$.handleHoverExpand(...pe)),onFocus:k[3]||(k[3]=(...pe)=>$.handleHoverExpand&&$.handleHoverExpand(...pe)),onClick:k[4]||(k[4]=(...pe)=>$.handleClick&&$.handleClick(...pe))},[createCommentVNode(" prefix "),$.multiple?(openBlock(),createBlock(re,{key:0,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:$.isDisabled,onClick:k[0]||(k[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":$.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):$.checkStrictly?(openBlock(),createBlock(ie,{key:1,"model-value":$.checkedNodeId,label:$.node.uid,disabled:$.isDisabled,"onUpdate:modelValue":$.handleSelectCheck,onClick:k[1]||(k[1]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[createCommentVNode(` - Add an empty element to avoid render label, - do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 - `),_hoisted_2$y]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):$.isLeaf&&$.node.checked?(openBlock(),createBlock(he,{key:2,class:normalizeClass($.ns.e("prefix"))},{default:withCtx(()=>[createVNode(ae)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(le),createCommentVNode(" postfix "),$.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[$.node.loading?(openBlock(),createBlock(he,{key:0,class:normalizeClass([$.ns.is("loading"),$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(ue)]),_:1},8,["class"])):(openBlock(),createBlock(he,{key:1,class:normalizeClass(["arrow-right",$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"]))],2112))],42,_hoisted_1$P)}var ElCascaderNode=_export_sfc$1(_sfc_main$1L,[["render",_sfc_render$1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$1K=defineComponent({name:"ElCascaderMenu",components:{Loading:loading$1,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup($){const k=getCurrentInstance(),V=useNamespace("cascader-menu"),{t:z}=useLocale(),j=generateId();let oe=null,re=null;const ie=inject(CASCADER_PANEL_INJECTION_KEY),ae=ref(null),he=computed(()=>!$.nodes.length),le=computed(()=>!ie.initialLoaded),ue=computed(()=>`cascader-menu-${j}-${$.index}`),de=Ce=>{oe=Ce.target},pe=Ce=>{if(!(!ie.isHoverMenu||!oe||!ae.value))if(oe.contains(Ce.target)){$e();const Ie=k.vnode.el,{left:ze}=Ie.getBoundingClientRect(),{offsetWidth:Et,offsetHeight:qe}=Ie,Oe=Ce.clientX-ze,Ue=oe.offsetTop,Dt=Ue+oe.offsetHeight;ae.value.innerHTML=` - - - `}else re||(re=window.setTimeout(_e,ie.config.hoverThreshold))},$e=()=>{!re||(clearTimeout(re),re=null)},_e=()=>{!ae.value||(ae.value.innerHTML="",$e())};return{ns:V,panel:ie,hoverZone:ae,isEmpty:he,isLoading:le,menuId:ue,t:z,handleExpand:de,handleMouseMove:pe,clearHoverZone:_e}}});function _sfc_render$1d($,k,V,z,j,oe){const re=resolveComponent("el-cascader-node"),ie=resolveComponent("loading"),ae=resolveComponent("el-icon"),he=resolveComponent("el-scrollbar");return openBlock(),createBlock(he,{key:$.menuId,tag:"ul",role:"menu",class:normalizeClass($.ns.b()),"wrap-class":$.ns.e("wrap"),"view-class":[$.ns.e("list"),$.ns.is("empty",$.isEmpty)],onMousemove:$.handleMouseMove,onMouseleave:$.clearHoverZone},{default:withCtx(()=>{var le;return[(openBlock(!0),createElementBlock(Fragment,null,renderList($.nodes,ue=>(openBlock(),createBlock(re,{key:ue.uid,node:ue,"menu-id":$.menuId,onExpand:$.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),$.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-text"))},[createVNode(ae,{size:"14",class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1($.t("el.cascader.loading")),1)],2)):$.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1($.t("el.cascader.noData")),3)):(le=$.panel)!=null&&le.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass($.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc$1(_sfc_main$1K,[["render",_sfc_render$1d],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]),ExpandTrigger=($=>($.CLICK="click",$.HOVER="hover",$))(ExpandTrigger||{});let uid=0;const calculatePathNodes=$=>{const k=[$];let{parent:V}=$;for(;V;)k.unshift(V),V=V.parent;return k};class Node$2{constructor(k,V,z,j=!1){this.data=k,this.config=V,this.parent=z,this.root=j,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:oe,label:re,children:ie}=V,ae=k[ie],he=calculatePathNodes(this);this.level=j?0:z?z.level+1:1,this.value=k[oe],this.label=k[re],this.pathNodes=he,this.pathValues=he.map(le=>le.value),this.pathLabels=he.map(le=>le.label),this.childrenData=ae,this.children=(ae||[]).map(le=>new Node$2(le,V,this)),this.loaded=!V.lazy||this.isLeaf||!isEmpty(ae)}get isDisabled(){const{data:k,parent:V,config:z}=this,{disabled:j,checkStrictly:oe}=z;return(isFunction$3(j)?j(k,this):!!k[j])||!oe&&(V==null?void 0:V.isDisabled)}get isLeaf(){const{data:k,config:V,childrenData:z,loaded:j}=this,{lazy:oe,leaf:re}=V,ie=isFunction$3(re)?re(k,this):k[re];return isUndefined(ie)?oe&&!j?!1:!(Array.isArray(z)&&z.length):!!ie}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(k){const{childrenData:V,children:z}=this,j=new Node$2(k,this.config,this);return Array.isArray(V)?V.push(k):this.childrenData=[k],z.push(j),j}calcText(k,V){const z=k?this.pathLabels.join(V):this.label;return this.text=z,z}broadcast(k,...V){const z=`onParent${capitalize(k)}`;this.children.forEach(j=>{j&&(j.broadcast(k,...V),j[z]&&j[z](...V))})}emit(k,...V){const{parent:z}=this,j=`onChild${capitalize(k)}`;z&&(z[j]&&z[j](...V),z.emit(k,...V))}onParentCheck(k){this.isDisabled||this.setCheckState(k)}onChildCheck(){const{children:k}=this,V=k.filter(j=>!j.isDisabled),z=V.length?V.every(j=>j.checked):!1;this.setCheckState(z)}setCheckState(k){const V=this.children.length,z=this.children.reduce((j,oe)=>{const re=oe.checked?1:oe.indeterminate?.5:0;return j+re},0);this.checked=this.loaded&&this.children.every(j=>j.loaded&&j.checked)&&k,this.indeterminate=this.loaded&&z!==V&&z>0}doCheck(k){if(this.checked===k)return;const{checkStrictly:V,multiple:z}=this.config;V||!z?this.checked=k:(this.broadcast("check",k),this.setCheckState(k),this.emit("check"))}}const flatNodes=($,k)=>$.reduce((V,z)=>(z.isLeaf?V.push(z):(!k&&V.push(z),V=V.concat(flatNodes(z.children,k))),V),[]);class Store{constructor(k,V){this.config=V;const z=(k||[]).map(j=>new Node$2(j,this.config));this.nodes=z,this.allNodes=flatNodes(z,!1),this.leafNodes=flatNodes(z,!0)}getNodes(){return this.nodes}getFlattedNodes(k){return k?this.leafNodes:this.allNodes}appendNode(k,V){const z=V?V.appendChild(k):new Node$2(k,this.config);V||this.nodes.push(z),this.allNodes.push(z),z.isLeaf&&this.leafNodes.push(z)}appendNodes(k,V){k.forEach(z=>this.appendNode(z,V))}getNodeByValue(k,V=!1){return!k&&k!==0?null:this.getFlattedNodes(V).find(j=>isEqual$1(j.value,k)||isEqual$1(j.pathValues,k))||null}getSameNode(k){return k&&this.getFlattedNodes(!1).find(({value:z,level:j})=>isEqual$1(k.value,z)&&k.level===j)||null}}const CommonProps={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},DefaultProps={expandTrigger:ExpandTrigger.CLICK,multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:NOOP,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},useCascaderConfig=$=>computed(()=>oo(oo({},DefaultProps),$.props)),getMenuIndex=$=>{if(!$)return 0;const k=$.id.split("-");return Number(k[k.length-2])},checkNode=$=>{if(!$)return;const k=$.querySelector("input");k?k.click():isLeaf($)&&$.click()},sortByOriginalOrder=($,k)=>{const V=k.slice(0),z=V.map(oe=>oe.uid),j=$.reduce((oe,re)=>{const ie=z.indexOf(re.uid);return ie>-1&&(oe.push(re),V.splice(ie,1),z.splice(ie,1)),oe},[]);return j.push(...V),j},_sfc_main$1J=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:mo(oo({},CommonProps),{border:{type:Boolean,default:!0},renderLabel:Function}),emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup($,{emit:k,slots:V}){let z=!1;const j=useNamespace("cascader"),oe=useCascaderConfig($);let re=null;const ie=ref(!0),ae=ref([]),he=ref(null),le=ref([]),ue=ref(null),de=ref([]),pe=computed(()=>oe.value.expandTrigger===ExpandTrigger.HOVER),$e=computed(()=>$.renderLabel||V.default),_e=()=>{const{options:jt}=$,vn=oe.value;z=!1,re=new Store(jt,vn),le.value=[re.getNodes()],vn.lazy&&isEmpty($.options)?(ie.value=!1,Ce(void 0,$n=>{$n&&(re=new Store($n,vn),le.value=[re.getNodes()]),ie.value=!0,At(!1,!0)})):At(!1,!0)},Ce=(jt,vn)=>{const $n=oe.value;jt=jt||new Node$2({},$n,void 0,!0),jt.loading=!0;const wn=_n=>{const En=jt,Sn=En.root?null:En;_n&&(re==null||re.appendNodes(_n,Sn)),En.loading=!1,En.loaded=!0,En.childrenData=En.childrenData||[],vn&&vn(_n)};$n.lazyLoad(jt,wn)},Ie=(jt,vn)=>{var $n;const{level:wn}=jt,_n=le.value.slice(0,wn);let En;jt.isLeaf?En=jt.pathNodes[wn-2]:(En=jt,_n.push(jt.children)),(($n=ue.value)==null?void 0:$n.uid)!==(En==null?void 0:En.uid)&&(ue.value=jt,le.value=_n,!vn&&k("expand-change",(jt==null?void 0:jt.pathValues)||[]))},ze=(jt,vn,$n=!0)=>{const{checkStrictly:wn,multiple:_n}=oe.value,En=de.value[0];z=!0,!_n&&(En==null||En.doCheck(!1)),jt.doCheck(vn),Dt(),$n&&!_n&&!wn&&k("close"),!$n&&!_n&&!wn&&Et(jt)},Et=jt=>{!jt||(jt=jt.parent,Et(jt),jt&&Ie(jt))},qe=jt=>re==null?void 0:re.getFlattedNodes(jt),Oe=jt=>{var vn;return(vn=qe(jt))==null?void 0:vn.filter($n=>$n.checked!==!1)},Ue=()=>{de.value.forEach(jt=>jt.doCheck(!1)),Dt()},Dt=()=>{var jt;const{checkStrictly:vn,multiple:$n}=oe.value,wn=de.value,_n=Oe(!vn),En=sortByOriginalOrder(wn,_n),Sn=En.map(An=>An.valueByOption);de.value=En,he.value=$n?Sn:(jt=Sn[0])!=null?jt:null},At=(jt=!1,vn=!1)=>{const{modelValue:$n}=$,{lazy:wn,multiple:_n,checkStrictly:En}=oe.value,Sn=!En;if(!(!ie.value||z||!vn&&isEqual$1($n,he.value)))if(wn&&!jt){const Cn=unique(flattenDeep(castArray($n))).map(Tn=>re==null?void 0:re.getNodeByValue(Tn)).filter(Tn=>!!Tn&&!Tn.loaded&&!Tn.loading);Cn.length?Cn.forEach(Tn=>{Ce(Tn,()=>At(!1,vn))}):At(!0,vn)}else{const An=_n?castArray($n):[$n],Cn=unique(An.map(Tn=>re==null?void 0:re.getNodeByValue(Tn,Sn)));Lt(Cn,!1),he.value=$n}},Lt=(jt,vn=!0)=>{const{checkStrictly:$n}=oe.value,wn=de.value,_n=jt.filter(An=>!!An&&($n||An.isLeaf)),En=re==null?void 0:re.getSameNode(ue.value),Sn=vn&&En||_n[0];Sn?Sn.pathNodes.forEach(An=>Ie(An,!0)):ue.value=null,wn.forEach(An=>An.doCheck(!1)),_n.forEach(An=>An.doCheck(!0)),de.value=_n,nextTick(kt)},kt=()=>{!isClient||ae.value.forEach(jt=>{const vn=jt==null?void 0:jt.$el;if(vn){const $n=vn.querySelector(`.${j.namespace.value}-scrollbar__wrap`),wn=vn.querySelector(`.${j.b("node")}.${j.is("active")}`)||vn.querySelector(`.${j.b("node")}.in-active-path`);scrollIntoView($n,wn)}})},Pt=jt=>{const vn=jt.target,{code:$n}=jt;switch($n){case EVENT_CODE.up:case EVENT_CODE.down:{jt.preventDefault();const wn=$n===EVENT_CODE.up?-1:1;focusNode(getSibling(vn,wn,`.${j.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{jt.preventDefault();const wn=ae.value[getMenuIndex(vn)-1],_n=wn==null?void 0:wn.$el.querySelector(`.${j.b("node")}[aria-expanded="true"]`);focusNode(_n);break}case EVENT_CODE.right:{jt.preventDefault();const wn=ae.value[getMenuIndex(vn)+1],_n=wn==null?void 0:wn.$el.querySelector(`.${j.b("node")}[tabindex="-1"]`);focusNode(_n);break}case EVENT_CODE.enter:checkNode(vn);break;case EVENT_CODE.esc:case EVENT_CODE.tab:k("close");break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:oe,expandingNode:ue,checkedNodes:de,isHoverMenu:pe,initialLoaded:ie,renderLabelFn:$e,lazyLoad:Ce,expandNode:Ie,handleCheckChange:ze})),watch$1([oe,()=>$.options],_e,{deep:!0,immediate:!0}),watch$1(()=>$.modelValue,()=>{z=!1,At()}),watch$1(he,jt=>{isEqual$1(jt,$.modelValue)||(k(UPDATE_MODEL_EVENT,jt),k(CHANGE_EVENT,jt))}),onBeforeUpdate(()=>ae.value=[]),onMounted(()=>!isEmpty($.modelValue)&&At()),{ns:j,menuList:ae,menus:le,checkedNodes:de,handleKeyDown:Pt,handleCheckChange:ze,getFlattedNodes:qe,getCheckedNodes:Oe,clearCheckedNodes:Ue,calculateCheckedValue:Dt,scrollToExpandingNode:kt}}});function _sfc_render$1c($,k,V,z,j,oe){const re=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("panel"),$.ns.is("bordered",$.border)]),onKeydown:k[0]||(k[0]=(...ie)=>$.handleKeyDown&&$.handleKeyDown(...ie))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.menus,(ie,ae)=>(openBlock(),createBlock(re,{key:ae,ref_for:!0,ref:he=>$.menuList[ae]=he,index:ae,nodes:[...ie]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$1(_sfc_main$1J,[["render",_sfc_render$1c],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=$=>{$.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:$=>$ instanceof MouseEvent,click:$=>$ instanceof MouseEvent},__default__$s={name:"ElTag"},_sfc_main$1I=defineComponent(mo(oo({},__default__$s),{props:tagProps,emits:tagEmits,setup($,{emit:k}){const V=$,z=useSize(),j=useNamespace("tag"),oe=computed(()=>{const{type:ae,hit:he,effect:le,closable:ue,round:de}=V;return[j.b(),j.is("closable",ue),j.m(ae),j.m(z.value),j.m(le),j.is("hit",he),j.is("round",de)]}),re=ae=>{ae.stopPropagation(),k("close",ae)},ie=ae=>{k("click",ae)};return(ae,he)=>ae.disableTransitions?(openBlock(),createBlock(Transition,{key:1,name:`${unref(j).namespace.value}-zoom-in-center`},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(oe)),style:normalizeStyle({backgroundColor:ae.color}),onClick:ie},[createBaseVNode("span",{class:normalizeClass(unref(j).e("content"))},[renderSlot(ae.$slots,"default")],2),ae.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(j).e("close")),onClick:re},{default:withCtx(()=>[createVNode(unref(close$2))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"])):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(oe)),style:normalizeStyle({backgroundColor:ae.color}),onClick:ie},[createBaseVNode("span",{class:normalizeClass(unref(j).e("content"))},[renderSlot(ae.$slots,"default")],2),ae.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(j).e("close")),onClick:re},{default:withCtx(()=>[createVNode(unref(close$2))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6))}}));var Tag=_export_sfc$1(_sfc_main$1I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),DEFAULT_INPUT_HEIGHT=40,INPUT_HEIGHT_MAP={large:36,default:32,small:28},popperOptions={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:$})=>{const{modifiersData:k,placement:V}=$;["right","left","bottom","top"].includes(V)||(k.arrow.x=35)},requires:["arrow"]}]},COMPONENT_NAME$d="ElCascader",_sfc_main$1H=defineComponent({name:COMPONENT_NAME$d,components:{ElCascaderPanel:_CascaderPanel,ElInput,ElTooltip,ElScrollbar,ElTag,ElIcon,CircleClose:circleClose,Check:check,ArrowDown:arrowDown},directives:{Clickoutside:ClickOutside},props:mo(oo({},CommonProps),{size:{type:String,validator:isValidComponentSize},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:($,k)=>$.text.includes(k)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:useTooltipContentProps.teleported,tagType:mo(oo({},tagProps.type),{default:"info"})}),emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"focus","blur","visible-change","expand-change","remove-tag"],setup($,{emit:k}){let V=0,z=0;const j=useNamespace("cascader"),oe=useNamespace("input"),{t:re}=useLocale(),ie=inject(formContextKey,{}),ae=inject(formItemContextKey,{}),he=ref(null),le=ref(null),ue=ref(null),de=ref(null),pe=ref(null),$e=ref(!1),_e=ref(!1),Ce=ref(!1),Ie=ref(""),ze=ref(""),Et=ref([]),qe=ref([]),Oe=ref([]),Ue=ref(!1),Dt=computed(()=>$.disabled||ie.disabled),At=computed(()=>$.placeholder||re("el.cascader.placeholder")),Lt=useSize(),kt=computed(()=>["small"].includes(Lt.value)?"small":"default"),Pt=computed(()=>!!$.props.multiple),jt=computed(()=>!$.filterable||Pt.value),vn=computed(()=>Pt.value?ze.value:Ie.value),$n=computed(()=>{var Un;return((Un=de.value)==null?void 0:Un.checkedNodes)||[]}),wn=computed(()=>!$.clearable||Dt.value||Ce.value||!_e.value?!1:!!$n.value.length),_n=computed(()=>{const{showAllLevels:Un,separator:Zn}=$,no=$n.value;return no.length?Pt.value?" ":no[0].calcText(Un,Zn):""}),En=computed({get(){return $.modelValue},set(Un){var Zn;k(UPDATE_MODEL_EVENT,Un),k(CHANGE_EVENT,Un),(Zn=ae.validate)==null||Zn.call(ae,"change").catch(no=>void 0)}}),Sn=computed(()=>{var Un,Zn;return(Zn=(Un=he.value)==null?void 0:Un.popperRef)==null?void 0:Zn.contentRef}),An=Un=>{var Zn,no,qn;if(!Dt.value&&(Un=Un!=null?Un:!$e.value,Un!==$e.value)){if($e.value=Un,(no=(Zn=le.value)==null?void 0:Zn.input)==null||no.setAttribute("aria-expanded",`${Un}`),Un)Cn(),nextTick((qn=de.value)==null?void 0:qn.scrollToExpandingNode);else if($.filterable){const{value:In}=_n;Ie.value=In,ze.value=In}k("visible-change",Un)}},Cn=()=>{nextTick(()=>{var Un;(Un=he.value)==null||Un.updatePopper()})},Tn=()=>{Ce.value=!1},Nn=Un=>{const{showAllLevels:Zn,separator:no}=$;return{node:Un,key:Un.uid,text:Un.calcText(Zn,no),hitState:!1,closable:!Dt.value&&!Un.isDisabled,isCollapseTag:!1}},xn=Un=>{var Zn;const no=Un.node;no.doCheck(!1),(Zn=de.value)==null||Zn.calculateCheckedValue(),k("remove-tag",no.valueByOption)},On=()=>{if(!Pt.value)return;const Un=$n.value,Zn=[],no=[];if(Un.forEach(qn=>no.push(Nn(qn))),qe.value=no,Un.length){const[qn,...In]=Un,jn=In.length;Zn.push(Nn(qn)),jn&&($.collapseTags?Zn.push({key:-1,text:`+ ${jn}`,closable:!1,isCollapseTag:!0}):In.forEach(Kn=>Zn.push(Nn(Kn))))}Et.value=Zn},Ln=()=>{var Un,Zn;const{filterMethod:no,showAllLevels:qn,separator:In}=$,jn=(Zn=(Un=de.value)==null?void 0:Un.getFlattedNodes(!$.props.checkStrictly))==null?void 0:Zn.filter(Kn=>Kn.isDisabled?!1:(Kn.calcText(qn,In),no(Kn,vn.value)));Pt.value&&(Et.value.forEach(Kn=>{Kn.hitState=!1}),qe.value.forEach(Kn=>{Kn.hitState=!1})),Ce.value=!0,Oe.value=jn,Cn()},Bn=()=>{var Un;let Zn;Ce.value&&pe.value?Zn=pe.value.$el.querySelector(`.${j.e("suggestion-item")}`):Zn=(Un=de.value)==null?void 0:Un.$el.querySelector(`.${j.b("node")}[tabindex="-1"]`),Zn&&(Zn.focus(),!Ce.value&&Zn.click())},Vn=()=>{var Un,Zn;const no=(Un=le.value)==null?void 0:Un.input,qn=ue.value,In=(Zn=pe.value)==null?void 0:Zn.$el;if(!(!isClient||!no)){if(In){const jn=In.querySelector(`.${j.e("suggestion-list")}`);jn.style.minWidth=`${no.offsetWidth}px`}if(qn){const{offsetHeight:jn}=qn,Kn=Et.value.length>0?`${Math.max(jn+6,V)}px`:`${V}px`;no.style.height=Kn,Cn()}}},Fn=Un=>{var Zn;return(Zn=de.value)==null?void 0:Zn.getCheckedNodes(Un)},zn=Un=>{Cn(),k("expand-change",Un)},Xn=Un=>{var Zn;const no=(Zn=Un.target)==null?void 0:Zn.value;if(Un.type==="compositionend")Ue.value=!1,nextTick(()=>uo(no));else{const qn=no[no.length-1]||"";Ue.value=!isKorean(qn)}},Pn=Un=>{if(!Ue.value)switch(Un.code){case EVENT_CODE.enter:An();break;case EVENT_CODE.down:An(!0),nextTick(Bn),Un.preventDefault();break;case EVENT_CODE.esc:case EVENT_CODE.tab:An(!1);break}},Hn=()=>{var Un;(Un=de.value)==null||Un.clearCheckedNodes(),An(!1)},eo=Un=>{var Zn,no;const{checked:qn}=Un;Pt.value?(Zn=de.value)==null||Zn.handleCheckChange(Un,!qn,!1):(!qn&&((no=de.value)==null||no.handleCheckChange(Un,!0,!1)),An(!1))},Qn=Un=>{const Zn=Un.target,{code:no}=Un;switch(no){case EVENT_CODE.up:case EVENT_CODE.down:{const qn=no===EVENT_CODE.up?-1:1;focusNode(getSibling(Zn,qn,`.${j.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:Zn.click();break;case EVENT_CODE.esc:case EVENT_CODE.tab:An(!1);break}},ao=()=>{const Un=Et.value,Zn=Un[Un.length-1];z=ze.value?0:z+1,!(!Zn||!z)&&(Zn.hitState?xn(Zn):Zn.hitState=!0)},ho=debounce(()=>{const{value:Un}=vn;if(!Un)return;const Zn=$.beforeFilter(Un);isPromise$1(Zn)?Zn.then(Ln).catch(()=>{}):Zn!==!1?Ln():Tn()},$.debounce),uo=(Un,Zn)=>{!$e.value&&An(!0),!(Zn!=null&&Zn.isComposing)&&(Un?ho():Tn())};return watch$1(Ce,Cn),watch$1([$n,Dt],On),watch$1(Et,()=>{nextTick(()=>Vn())}),watch$1(_n,Un=>Ie.value=Un,{immediate:!0}),onMounted(()=>{var Un;const Zn=(Un=le.value)==null?void 0:Un.$el;V=(Zn==null?void 0:Zn.offsetHeight)||INPUT_HEIGHT_MAP[Lt.value]||DEFAULT_INPUT_HEIGHT,addResizeListener(Zn,Vn)}),onBeforeUnmount(()=>{var Un;removeResizeListener((Un=le.value)==null?void 0:Un.$el,Vn)}),{popperOptions,tooltipRef:he,popperPaneRef:Sn,input:le,tagWrapper:ue,panel:de,suggestionPanel:pe,popperVisible:$e,inputHover:_e,inputPlaceholder:At,filtering:Ce,presentText:_n,checkedValue:En,inputValue:Ie,searchInputValue:ze,presentTags:Et,allPresentTags:qe,suggestions:Oe,isDisabled:Dt,isOnComposition:Ue,realSize:Lt,tagSize:kt,multiple:Pt,readonly:jt,clearBtnVisible:wn,nsCascader:j,nsInput:oe,t:re,togglePopperVisible:An,hideSuggestionPanel:Tn,deleteTag:xn,focusFirstNode:Bn,getCheckedNodes:Fn,handleExpandChange:zn,handleKeyDown:Pn,handleComposition:Xn,handleClear:Hn,handleSuggestionClick:eo,handleSuggestionKeyDown:Qn,handleDelete:ao,handleInput:uo}}}),_hoisted_1$O={key:0},_hoisted_2$x={class:"el-cascader__collapse-tags"},_hoisted_3$k=["placeholder"],_hoisted_4$e=["onClick"];function _sfc_render$1b($,k,V,z,j,oe){const re=resolveComponent("circle-close"),ie=resolveComponent("el-icon"),ae=resolveComponent("arrow-down"),he=resolveComponent("el-input"),le=resolveComponent("el-tag"),ue=resolveComponent("el-tooltip"),de=resolveComponent("el-cascader-panel"),pe=resolveComponent("check"),$e=resolveComponent("el-scrollbar"),_e=resolveDirective("clickoutside");return openBlock(),createBlock(ue,{ref:"tooltipRef",visible:$.popperVisible,"onUpdate:visible":k[17]||(k[17]=Ce=>$.popperVisible=Ce),teleported:$.teleported,"popper-class":[$.nsCascader.e("dropdown"),$.popperClass],"popper-options":$.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${$.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:$.hideSuggestionPanel},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([$.nsCascader.b(),$.nsCascader.m($.realSize),$.nsCascader.is("disabled",$.isDisabled),$.$attrs.class]),style:normalizeStyle($.$attrs.style),onClick:k[11]||(k[11]=()=>$.togglePopperVisible($.readonly?void 0:!0)),onKeydown:k[12]||(k[12]=(...Ce)=>$.handleKeyDown&&$.handleKeyDown(...Ce)),onMouseenter:k[13]||(k[13]=Ce=>$.inputHover=!0),onMouseleave:k[14]||(k[14]=Ce=>$.inputHover=!1)},[createVNode(he,{ref:"input",modelValue:$.inputValue,"onUpdate:modelValue":k[1]||(k[1]=Ce=>$.inputValue=Ce),placeholder:$.searchInputValue?"":$.inputPlaceholder,readonly:$.readonly,disabled:$.isDisabled,"validate-event":!1,size:$.realSize,class:normalizeClass($.nsCascader.is("focus",$.popperVisible)),onCompositionstart:$.handleComposition,onCompositionupdate:$.handleComposition,onCompositionend:$.handleComposition,onFocus:k[2]||(k[2]=Ce=>$.$emit("focus",Ce)),onBlur:k[3]||(k[3]=Ce=>$.$emit("blur",Ce)),onInput:$.handleInput},{suffix:withCtx(()=>[$.clearBtnVisible?(openBlock(),createBlock(ie,{key:"clear",class:normalizeClass([$.nsInput.e("icon"),"icon-circle-close"]),onClick:withModifiers($.handleClear,["stop"])},{default:withCtx(()=>[createVNode(re)]),_:1},8,["class","onClick"])):(openBlock(),createBlock(ie,{key:"arrow-down",class:normalizeClass([$.nsInput.e("icon"),"icon-arrow-down",$.nsCascader.is("reverse",$.popperVisible)]),onClick:k[0]||(k[0]=withModifiers(Ce=>$.togglePopperVisible(),["stop"]))},{default:withCtx(()=>[createVNode(ae)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),$.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tagWrapper",class:normalizeClass($.nsCascader.e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.presentTags,Ce=>(openBlock(),createBlock(le,{key:Ce.key,type:$.tagType,size:$.tagSize,hit:Ce.hitState,closable:Ce.closable,"disable-transitions":"",onClose:Ie=>$.deleteTag(Ce)},{default:withCtx(()=>[Ce.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$O,toDisplayString$1(Ce.text),1)):(openBlock(),createBlock(ue,{key:1,teleported:!1,disabled:$.popperVisible||!$.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(Ce.text),1)]),content:withCtx(()=>[createBaseVNode("div",_hoisted_2$x,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.allPresentTags,(Ie,ze)=>(openBlock(),createElementBlock("div",{key:ze,class:"el-cascader__collapse-tag"},[(openBlock(),createBlock(le,{key:Ie.key,class:"in-tooltip",type:$.tagType,size:$.tagSize,hit:Ie.hitState,closable:Ie.closable,"disable-transitions":"",onClose:Et=>$.deleteTag(Ie)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(Ie.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))]))),128))])]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),$.filterable&&!$.isDisabled?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":k[4]||(k[4]=Ce=>$.searchInputValue=Ce),type:"text",class:normalizeClass($.nsCascader.e("search-input")),placeholder:$.presentText?"":$.inputPlaceholder,onInput:k[5]||(k[5]=Ce=>$.handleInput($.searchInputValue,Ce)),onClick:k[6]||(k[6]=withModifiers(Ce=>$.togglePopperVisible(!0),["stop"])),onKeydown:k[7]||(k[7]=withKeys((...Ce)=>$.handleDelete&&$.handleDelete(...Ce),["delete"])),onCompositionstart:k[8]||(k[8]=(...Ce)=>$.handleComposition&&$.handleComposition(...Ce)),onCompositionupdate:k[9]||(k[9]=(...Ce)=>$.handleComposition&&$.handleComposition(...Ce)),onCompositionend:k[10]||(k[10]=(...Ce)=>$.handleComposition&&$.handleComposition(...Ce))},null,42,_hoisted_3$k)),[[vModelText,$.searchInputValue]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[_e,()=>$.togglePopperVisible(!1),$.popperPaneRef]])]),content:withCtx(()=>[withDirectives(createVNode(de,{ref:"panel",modelValue:$.checkedValue,"onUpdate:modelValue":k[15]||(k[15]=Ce=>$.checkedValue=Ce),options:$.options,props:$.props,border:!1,"render-label":$.$slots.default,onExpandChange:$.handleExpandChange,onClose:k[16]||(k[16]=Ce=>$.$nextTick(()=>$.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[vShow,!$.filtering]]),$.filterable?withDirectives((openBlock(),createBlock($e,{key:0,ref:"suggestionPanel",tag:"ul",class:normalizeClass($.nsCascader.e("suggestion-panel")),"view-class":$.nsCascader.e("suggestion-list"),onKeydown:$.handleSuggestionKeyDown},{default:withCtx(()=>[$.suggestions.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList($.suggestions,Ce=>(openBlock(),createElementBlock("li",{key:Ce.uid,class:normalizeClass([$.nsCascader.e("suggestion-item"),$.nsCascader.is("checked",Ce.checked)]),tabindex:-1,onClick:Ie=>$.handleSuggestionClick(Ce)},[createBaseVNode("span",null,toDisplayString$1(Ce.text),1),Ce.checked?(openBlock(),createBlock(ie,{key:0},{default:withCtx(()=>[createVNode(pe)]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_4$e))),128)):renderSlot($.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass($.nsCascader.e("empty-text"))},toDisplayString$1($.t("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[vShow,$.filtering]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var Cascader=_export_sfc$1(_sfc_main$1H,[["render",_sfc_render$1b],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);Cascader.install=$=>{$.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":$=>isBoolean$1($),change:$=>isBoolean$1($)},__default__$r={name:"ElCheckTag"},_sfc_main$1G=defineComponent(mo(oo({},__default__$r),{props:checkTagProps,emits:checkTagEmits,setup($,{emit:k}){const V=$,z=useNamespace("check-tag"),j=()=>{const oe=!V.checked;k("change",oe),k("update:checked",oe)};return(oe,re)=>(openBlock(),createElementBlock("span",{class:normalizeClass([unref(z).b(),unref(z).is("checked",oe.checked)]),onClick:j},[renderSlot(oe.$slots,"default")],2))}}));var CheckTag=_export_sfc$1(_sfc_main$1G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}});var Col=defineComponent({name:"ElCol",props:colProps,setup($,{slots:k}){const{gutter:V}=inject(rowContextKey,{gutter:computed(()=>0)}),z=useNamespace("col"),j=computed(()=>V.value?{paddingLeft:`${V.value/2}px`,paddingRight:`${V.value/2}px`}:{}),oe=computed(()=>{const re=[];return["span","offset","pull","push"].forEach(he=>{const le=$[he];typeof le=="number"&&(he==="span"?re.push(z.b(`${$[he]}`)):le>0&&re.push(z.b(`${he}-${$[he]}`)))}),["xs","sm","md","lg","xl"].forEach(he=>{if(typeof $[he]=="number")re.push(z.b(`${he}-${$[he]}`));else if(typeof $[he]=="object"){const le=$[he];Object.keys(le).forEach(ue=>{re.push(ue!=="span"?z.b(`${he}-${ue}-${le[ue]}`):z.b(`${he}-${le[ue]}`))})}}),V.value&&re.push(z.is("guttered")),re});return()=>createVNode($.tag,{class:[z.b(),oe.value],style:j.value},k)}});const ElCol=withInstall(Col),emitChangeFn=$=>typeof isNumber$1($),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},__default__$q={name:"ElCollapse"},_sfc_main$1F=defineComponent(mo(oo({},__default__$q),{props:collapseProps,emits:collapseEmits,setup($,{expose:k,emit:V}){const z=$,j=useNamespace("collapse"),oe=ref(castArray$1(z.modelValue)),re=ae=>{oe.value=ae;const he=z.accordion?oe.value[0]:oe.value;V(UPDATE_MODEL_EVENT,he),V(CHANGE_EVENT,he)},ie=ae=>{if(z.accordion)re([(oe.value[0]||oe.value[0]===0)&&oe.value[0]===ae?"":ae]);else{const he=[...oe.value],le=he.indexOf(ae);le>-1?he.splice(le,1):he.push(ae),re(he)}};return watch$1(()=>z.modelValue,()=>oe.value=castArray$1(z.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:oe,handleItemClick:ie}),k({activeNames:oe,setActiveNames:re}),(ae,he)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(j).b()),role:"tablist","aria-multiselectable":"true"},[renderSlot(ae.$slots,"default")],2))}}));var Collapse=_export_sfc$1(_sfc_main$1F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const _sfc_main$1E=defineComponent({name:"ElCollapseTransition",setup(){return{ns:useNamespace("collapse-transition"),on:{beforeEnter(k){k.dataset||(k.dataset={}),k.dataset.oldPaddingTop=k.style.paddingTop,k.dataset.oldPaddingBottom=k.style.paddingBottom,k.style.maxHeight=0,k.style.paddingTop=0,k.style.paddingBottom=0},enter(k){k.dataset.oldOverflow=k.style.overflow,k.scrollHeight!==0?(k.style.maxHeight=`${k.scrollHeight}px`,k.style.paddingTop=k.dataset.oldPaddingTop,k.style.paddingBottom=k.dataset.oldPaddingBottom):(k.style.maxHeight=0,k.style.paddingTop=k.dataset.oldPaddingTop,k.style.paddingBottom=k.dataset.oldPaddingBottom),k.style.overflow="hidden"},afterEnter(k){k.style.maxHeight="",k.style.overflow=k.dataset.oldOverflow},beforeLeave(k){k.dataset||(k.dataset={}),k.dataset.oldPaddingTop=k.style.paddingTop,k.dataset.oldPaddingBottom=k.style.paddingBottom,k.dataset.oldOverflow=k.style.overflow,k.style.maxHeight=`${k.scrollHeight}px`,k.style.overflow="hidden"},leave(k){k.scrollHeight!==0&&(k.style.maxHeight=0,k.style.paddingTop=0,k.style.paddingBottom=0)},afterLeave(k){k.style.maxHeight="",k.style.overflow=k.dataset.oldOverflow,k.style.paddingTop=k.dataset.oldPaddingTop,k.style.paddingBottom=k.dataset.oldPaddingBottom}}}}});function _sfc_render$1a($,k,V,z,j,oe){return openBlock(),createBlock(Transition,mergeProps({name:$.ns.b()},toHandlers($.on)),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["name"])}var CollapseTransition=_export_sfc$1(_sfc_main$1E,[["render",_sfc_render$1a],["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=$=>{$.component(CollapseTransition.name,CollapseTransition)};const _CollapseTransition=CollapseTransition,ElCollapseTransition=_CollapseTransition,collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:()=>generateId()},disabled:Boolean}),_hoisted_1$N=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$w=["id","tabindex","onKeypress"],_hoisted_3$j=["id","aria-hidden","aria-labelledby"],__default__$p={name:"ElCollapseItem"},_sfc_main$1D=defineComponent(mo(oo({},__default__$p),{props:collapseItemProps,setup($,{expose:k}){const V=$,z=inject(collapseContextKey),j=useNamespace("collapse"),oe=ref(!1),re=ref(!1),ie=ref(generateId()),ae=computed(()=>z==null?void 0:z.activeNames.value.includes(V.name)),he=()=>{setTimeout(()=>{re.value?re.value=!1:oe.value=!0},50)},le=()=>{V.disabled||(z==null||z.handleItemClick(V.name),oe.value=!1,re.value=!0)},ue=()=>{z==null||z.handleItemClick(V.name)};return k({isActive:ae}),(de,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(j).b("item"),unref(j).is("active",unref(ae)),unref(j).is("disabled",de.disabled)])},[createBaseVNode("div",{role:"tab","aria-expanded":unref(ae),"aria-controls":unref(j).b(`content-${ie.value}`),"aria-describedby":unref(j).b(`content-${ie.value}`)},[createBaseVNode("div",{id:unref(j).b(`head-${ie.value}`),class:normalizeClass([unref(j).be("item","header"),unref(j).is("active",unref(ae)),{focusing:oe.value}]),role:"button",tabindex:de.disabled?-1:0,onClick:le,onKeypress:withKeys(withModifiers(ue,["stop","prevent"]),["space","enter"]),onFocus:he,onBlur:pe[0]||(pe[0]=$e=>oe.value=!1)},[renderSlot(de.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(de.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass([unref(j).be("item","arrow"),unref(j).is("active",unref(ae))])},{default:withCtx(()=>[createVNode(unref(arrowRight))]),_:1},8,["class"])],42,_hoisted_2$w)],8,_hoisted_1$N),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(j).b(`content-${ie.value}`),class:normalizeClass(unref(j).be("item","wrap")),role:"tabpanel","aria-hidden":!unref(ae),"aria-labelledby":unref(j).b(`head-${ie.value}`)},[createBaseVNode("div",{class:normalizeClass(unref(j).be("item","content"))},[renderSlot(de.$slots,"default")],2)],10,_hoisted_3$j),[[vShow,unref(ae)]])]),_:3})],2))}}));var CollapseItem=_export_sfc$1(_sfc_main$1D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const ElCollapse=withInstall(Collapse,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem);let isDragging=!1;function draggable($,k){if(!isClient)return;const V=function(oe){var re;(re=k.drag)==null||re.call(k,oe)},z=function(oe){var re;off(document,"mousemove",V),off(document,"mouseup",z),off(document,"touchmove",V),off(document,"touchend",z),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(re=k.end)==null||re.call(k,oe)},j=function(oe){var re;isDragging||(oe.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,on$1(document,"mousemove",V),on$1(document,"mouseup",z),on$1(document,"touchmove",V),on$1(document,"touchend",z),isDragging=!0,(re=k.start)==null||re.call(k,oe))};on$1($,"mousedown",j),on$1($,"touchstart",j)}const _sfc_main$1C=defineComponent({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup($){const k=getCurrentInstance(),V=shallowRef(null),z=shallowRef(null),j=ref(0),oe=ref(0),re=ref(null);watch$1(()=>$.color.get("alpha"),()=>{de()}),watch$1(()=>$.color.value,()=>{de()});function ie(){if($.vertical)return 0;const pe=k.vnode.el,$e=$.color.get("alpha");return pe?Math.round($e*(pe.offsetWidth-V.value.offsetWidth/2)/100):0}function ae(){const pe=k.vnode.el;if(!$.vertical)return 0;const $e=$.color.get("alpha");return pe?Math.round($e*(pe.offsetHeight-V.value.offsetHeight/2)/100):0}function he(){if($.color&&$.color.value){const{r:pe,g:$e,b:_e}=$.color.toRgb();return`linear-gradient(to right, rgba(${pe}, ${$e}, ${_e}, 0) 0%, rgba(${pe}, ${$e}, ${_e}, 1) 100%)`}return null}function le(pe){pe.target!==V.value&&ue(pe)}function ue(pe){const _e=k.vnode.el.getBoundingClientRect(),{clientX:Ce,clientY:Ie}=getClientXY(pe);if($.vertical){let ze=Ie-_e.top;ze=Math.max(V.value.offsetHeight/2,ze),ze=Math.min(ze,_e.height-V.value.offsetHeight/2),$.color.set("alpha",Math.round((ze-V.value.offsetHeight/2)/(_e.height-V.value.offsetHeight)*100))}else{let ze=Ce-_e.left;ze=Math.max(V.value.offsetWidth/2,ze),ze=Math.min(ze,_e.width-V.value.offsetWidth/2),$.color.set("alpha",Math.round((ze-V.value.offsetWidth/2)/(_e.width-V.value.offsetWidth)*100))}}function de(){j.value=ie(),oe.value=ae(),re.value=he()}return onMounted(()=>{const pe={drag:$e=>{ue($e)},end:$e=>{ue($e)}};draggable(z.value,pe),draggable(V.value,pe),de()}),{thumb:V,bar:z,thumbLeft:j,thumbTop:oe,background:re,handleClick:le,update:de}}});function _sfc_render$19($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:normalizeClass(["el-color-alpha-slider",{"is-vertical":$.vertical}])},[createBaseVNode("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:normalizeStyle({background:$.background}),onClick:k[0]||(k[0]=(...re)=>$.handleClick&&$.handleClick(...re))},null,4),createBaseVNode("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:normalizeStyle({left:$.thumbLeft+"px",top:$.thumbTop+"px"})},null,4)],2)}var AlphaSlider=_export_sfc$1(_sfc_main$1C,[["render",_sfc_render$19],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1B=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup($){const k=getCurrentInstance(),V=ref(null),z=ref(null),j=ref(0),oe=ref(0),re=computed(()=>$.color.get("hue"));watch$1(()=>re.value,()=>{ue()});function ie(de){de.target!==V.value&&ae(de)}function ae(de){const $e=k.vnode.el.getBoundingClientRect(),{clientX:_e,clientY:Ce}=getClientXY(de);let Ie;if($.vertical){let ze=Ce-$e.top;ze=Math.min(ze,$e.height-V.value.offsetHeight/2),ze=Math.max(V.value.offsetHeight/2,ze),Ie=Math.round((ze-V.value.offsetHeight/2)/($e.height-V.value.offsetHeight)*360)}else{let ze=_e-$e.left;ze=Math.min(ze,$e.width-V.value.offsetWidth/2),ze=Math.max(V.value.offsetWidth/2,ze),Ie=Math.round((ze-V.value.offsetWidth/2)/($e.width-V.value.offsetWidth)*360)}$.color.set("hue",Ie)}function he(){const de=k.vnode.el;if($.vertical)return 0;const pe=$.color.get("hue");return de?Math.round(pe*(de.offsetWidth-V.value.offsetWidth/2)/360):0}function le(){const de=k.vnode.el;if(!$.vertical)return 0;const pe=$.color.get("hue");return de?Math.round(pe*(de.offsetHeight-V.value.offsetHeight/2)/360):0}function ue(){j.value=he(),oe.value=le()}return onMounted(()=>{const de={drag:pe=>{ae(pe)},end:pe=>{ae(pe)}};draggable(z.value,de),draggable(V.value,de),ue()}),{bar:z,thumb:V,thumbLeft:j,thumbTop:oe,hueValue:re,handleClick:ie,update:ue}}});function _sfc_render$18($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:normalizeClass(["el-color-hue-slider",{"is-vertical":$.vertical}])},[createBaseVNode("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:k[0]||(k[0]=(...re)=>$.handleClick&&$.handleClick(...re))},null,512),createBaseVNode("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:normalizeStyle({left:$.thumbLeft+"px",top:$.thumbTop+"px"})},null,4)],2)}var HueSlider=_export_sfc$1(_sfc_main$1B,[["render",_sfc_render$18],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const OPTIONS_KEY=Symbol(),useOptions=()=>inject(OPTIONS_KEY),hsv2hsl=function($,k,V){return[$,k*V/(($=(2-k)*V)<1?$:2-$)||0,$/2]},isOnePointZero=function($){return typeof $=="string"&&$.includes(".")&&Number.parseFloat($)===1},isPercentage=function($){return typeof $=="string"&&$.includes("%")},bound01=function($,k){isOnePointZero($)&&($="100%");const V=isPercentage($);return $=Math.min(k,Math.max(0,Number.parseFloat(`${$}`))),V&&($=Number.parseInt(`${$*k}`,10)/100),Math.abs($-k)<1e-6?1:$%k/Number.parseFloat(k)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=function($){$=Math.min(Math.round($),255);const k=Math.floor($/16),V=$%16;return`${INT_HEX_MAP[k]||k}${INT_HEX_MAP[V]||V}`},toHex=function({r:$,g:k,b:V}){return Number.isNaN(+$)||Number.isNaN(+k)||Number.isNaN(+V)?"":`#${hexOne($)}${hexOne(k)}${hexOne(V)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function($){return $.length===2?(HEX_INT_MAP[$[0].toUpperCase()]||+$[0])*16+(HEX_INT_MAP[$[1].toUpperCase()]||+$[1]):HEX_INT_MAP[$[1].toUpperCase()]||+$[1]},hsl2hsv=function($,k,V){k=k/100,V=V/100;let z=k;const j=Math.max(V,.01);V*=2,k*=V<=1?V:2-V,z*=j<=1?j:2-j;const oe=(V+k)/2,re=V===0?2*z/(j+z):2*k/(V+k);return{h:$,s:re*100,v:oe*100}},rgb2hsv=function($,k,V){$=bound01($,255),k=bound01(k,255),V=bound01(V,255);const z=Math.max($,k,V),j=Math.min($,k,V);let oe;const re=z,ie=z-j,ae=z===0?0:ie/z;if(z===j)oe=0;else{switch(z){case $:{oe=(k-V)/ie+(k{this._hue=Math.max(0,Math.min(360,z)),this._saturation=Math.max(0,Math.min(100,j)),this._value=Math.max(0,Math.min(100,oe)),this.doOnChange()};if(k.includes("hsl")){const z=k.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(j=>j!=="").map((j,oe)=>oe>2?Number.parseFloat(j):Number.parseInt(j,10));if(z.length===4?this._alpha=Number.parseFloat(z[3])*100:z.length===3&&(this._alpha=100),z.length>=3){const{h:j,s:oe,v:re}=hsl2hsv(z[0],z[1],z[2]);V(j,oe,re)}}else if(k.includes("hsv")){const z=k.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(j=>j!=="").map((j,oe)=>oe>2?Number.parseFloat(j):Number.parseInt(j,10));z.length===4?this._alpha=Number.parseFloat(z[3])*100:z.length===3&&(this._alpha=100),z.length>=3&&V(z[0],z[1],z[2])}else if(k.includes("rgb")){const z=k.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(j=>j!=="").map((j,oe)=>oe>2?Number.parseFloat(j):Number.parseInt(j,10));if(z.length===4?this._alpha=Number.parseFloat(z[3])*100:z.length===3&&(this._alpha=100),z.length>=3){const{h:j,s:oe,v:re}=rgb2hsv(z[0],z[1],z[2]);V(j,oe,re)}}else if(k.includes("#")){const z=k.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(z))return;let j,oe,re;z.length===3?(j=parseHexChannel(z[0]+z[0]),oe=parseHexChannel(z[1]+z[1]),re=parseHexChannel(z[2]+z[2])):(z.length===6||z.length===8)&&(j=parseHexChannel(z.slice(0,2)),oe=parseHexChannel(z.slice(2,4)),re=parseHexChannel(z.slice(4,6))),z.length===8?this._alpha=parseHexChannel(z.slice(6))/255*100:(z.length===3||z.length===6)&&(this._alpha=100);const{h:ie,s:ae,v:he}=rgb2hsv(j,oe,re);V(ie,ae,he)}}compare(k){return Math.abs(k._hue-this._hue)<2&&Math.abs(k._saturation-this._saturation)<1&&Math.abs(k._value-this._value)<1&&Math.abs(k._alpha-this._alpha)<1}doOnChange(){const{_hue:k,_saturation:V,_value:z,_alpha:j,format:oe}=this;if(this.enableAlpha)switch(oe){case"hsl":{const re=hsv2hsl(k,V/100,z/100);this.value=`hsla(${k}, ${Math.round(re[1]*100)}%, ${Math.round(re[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${k}, ${Math.round(V)}%, ${Math.round(z)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex(hsv2rgb(k,V,z))}${hexOne(j*255/100)}`;break}default:{const{r:re,g:ie,b:ae}=hsv2rgb(k,V,z);this.value=`rgba(${re}, ${ie}, ${ae}, ${this.get("alpha")/100})`}}else switch(oe){case"hsl":{const re=hsv2hsl(k,V/100,z/100);this.value=`hsl(${k}, ${Math.round(re[1]*100)}%, ${Math.round(re[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${k}, ${Math.round(V)}%, ${Math.round(z)}%)`;break}case"rgb":{const{r:re,g:ie,b:ae}=hsv2rgb(k,V,z);this.value=`rgb(${re}, ${ie}, ${ae})`;break}default:this.value=toHex(hsv2rgb(k,V,z))}}}const _sfc_main$1A=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup($){const{currentColor:k}=useOptions(),V=ref(j($.colors,$.color));watch$1(()=>k.value,oe=>{const re=new Color;re.fromString(oe),V.value.forEach(ie=>{ie.selected=re.compare(ie)})}),watchEffect(()=>{V.value=j($.colors,$.color)});function z(oe){$.color.fromString($.colors[oe])}function j(oe,re){return oe.map(ie=>{const ae=new Color;return ae.enableAlpha=!0,ae.format="rgba",ae.fromString(ie),ae.selected=ae.value===re.value,ae})}return{rgbaColors:V,handleSelect:z}}}),_hoisted_1$M={class:"el-color-predefine"},_hoisted_2$v={class:"el-color-predefine__colors"},_hoisted_3$i=["onClick"];function _sfc_render$17($,k,V,z,j,oe){return openBlock(),createElementBlock("div",_hoisted_1$M,[createBaseVNode("div",_hoisted_2$v,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rgbaColors,(re,ie)=>(openBlock(),createElementBlock("div",{key:$.colors[ie],class:normalizeClass(["el-color-predefine__color-selector",{selected:re.selected,"is-alpha":re._alpha<100}]),onClick:ae=>$.handleSelect(ie)},[createBaseVNode("div",{style:normalizeStyle({backgroundColor:re.value})},null,4)],10,_hoisted_3$i))),128))])])}var Predefine=_export_sfc$1(_sfc_main$1A,[["render",_sfc_render$17],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1z=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup($){const k=getCurrentInstance(),V=ref(0),z=ref(0),j=ref("hsl(0, 100%, 50%)"),oe=computed(()=>{const ae=$.color.get("hue"),he=$.color.get("value");return{hue:ae,value:he}});function re(){const ae=$.color.get("saturation"),he=$.color.get("value"),le=k.vnode.el,{clientWidth:ue,clientHeight:de}=le;z.value=ae*ue/100,V.value=(100-he)*de/100,j.value=`hsl(${$.color.get("hue")}, 100%, 50%)`}function ie(ae){const le=k.vnode.el.getBoundingClientRect(),{clientX:ue,clientY:de}=getClientXY(ae);let pe=ue-le.left,$e=de-le.top;pe=Math.max(0,pe),pe=Math.min(pe,le.width),$e=Math.max(0,$e),$e=Math.min($e,le.height),z.value=pe,V.value=$e,$.color.set({saturation:pe/le.width*100,value:100-$e/le.height*100})}return watch$1(()=>oe.value,()=>{re()}),onMounted(()=>{draggable(k.vnode.el,{drag:ae=>{ie(ae)},end:ae=>{ie(ae)}}),re()}),{cursorTop:V,cursorLeft:z,background:j,colorValue:oe,handleDrag:ie,update:re}}}),_hoisted_1$L=createBaseVNode("div",{class:"el-color-svpanel__white"},null,-1),_hoisted_2$u=createBaseVNode("div",{class:"el-color-svpanel__black"},null,-1),_hoisted_3$h=createBaseVNode("div",null,null,-1),_hoisted_4$d=[_hoisted_3$h];function _sfc_render$16($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:"el-color-svpanel",style:normalizeStyle({backgroundColor:$.background})},[_hoisted_1$L,_hoisted_2$u,createBaseVNode("div",{class:"el-color-svpanel__cursor",style:normalizeStyle({top:$.cursorTop+"px",left:$.cursorLeft+"px"})},_hoisted_4$d,4)],4)}var SvPanel=_export_sfc$1(_sfc_main$1z,[["render",_sfc_render$16],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _sfc_main$1y=defineComponent({name:"ElColorPicker",components:{ElButton,ElTooltip,ElInput,ElIcon,Close:close$2,ArrowDown:arrowDown,SvPanel,HueSlider,AlphaSlider,Predefine},directives:{ClickOutside},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:isValidComponentSize},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array},emits:["change","active-change",UPDATE_MODEL_EVENT],setup($,{emit:k}){const{t:V}=useLocale(),z=useNamespace("color"),j=inject(formContextKey,{}),oe=inject(formItemContextKey,{}),{inputId:re,isLabeledByFormItem:ie}=useFormItemInputId($,{formItemContext:oe}),ae=ref(null),he=ref(null),le=ref(null),ue=ref(null);let de=!0;const pe=reactive(new Color({enableAlpha:$.showAlpha,format:$.colorFormat,value:$.modelValue})),$e=ref(!1),_e=ref(!1),Ce=ref(""),Ie=computed(()=>!$.modelValue&&!_e.value?"transparent":Dt(pe,$.showAlpha)),ze=useSize(),Et=computed(()=>!!($.disabled||j.disabled)),qe=computed(()=>!$.modelValue&&!_e.value?"":pe.value),Oe=computed(()=>ie.value?void 0:$.label||V("el.colorpicker.defaultLabel")),Ue=computed(()=>ie.value?oe.labelId:void 0);watch$1(()=>$.modelValue,_n=>{_n?_n&&_n!==pe.value&&(de=!1,pe.fromString(_n)):_e.value=!1}),watch$1(()=>qe.value,_n=>{Ce.value=_n,de&&k("active-change",_n),de=!0}),watch$1(()=>pe.value,()=>{!$.modelValue&&!_e.value&&(_e.value=!0)});function Dt(_n,En){if(!(_n instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Sn,g:An,b:Cn}=_n.toRgb();return En?`rgba(${Sn}, ${An}, ${Cn}, ${_n.get("alpha")/100})`:`rgb(${Sn}, ${An}, ${Cn})`}function At(_n){$e.value=_n}const Lt=debounce(At,100);function kt(){Lt(!1),Pt()}function Pt(){nextTick(()=>{$.modelValue?pe.fromString($.modelValue):_e.value=!1})}function jt(){Et.value||Lt(!$e.value)}function vn(){pe.fromString(Ce.value)}function $n(){var _n;const En=pe.value;k(UPDATE_MODEL_EVENT,En),k("change",En),(_n=oe.validate)==null||_n.call(oe,"change").catch(Sn=>void 0),Lt(!1),nextTick(()=>{const Sn=new Color({enableAlpha:$.showAlpha,format:$.colorFormat,value:$.modelValue});pe.compare(Sn)||Pt()})}function wn(){var _n;Lt(!1),k(UPDATE_MODEL_EVENT,null),k("change",null),$.modelValue!==null&&((_n=oe.validate)==null||_n.call(oe,"change").catch(En=>void 0)),Pt()}return onMounted(()=>{$.modelValue&&(Ce.value=qe.value)}),watch$1(()=>$e.value,()=>{nextTick(()=>{var _n,En,Sn;(_n=ae.value)==null||_n.update(),(En=he.value)==null||En.update(),(Sn=le.value)==null||Sn.update()})}),provide(OPTIONS_KEY,{currentColor:qe}),{color:pe,colorDisabled:Et,colorSize:ze,displayedColor:Ie,showPanelColor:_e,showPicker:$e,customInput:Ce,buttonId:re,buttonAriaLabel:Oe,buttonAriaLabelledby:Ue,handleConfirm:vn,hide:kt,handleTrigger:jt,clear:wn,confirmValue:$n,t:V,ns:z,hue:ae,svPanel:he,alpha:le,popper:ue}}}),_hoisted_1$K=["id","aria-label","aria-labelledby","aria-description","tabindex"];function _sfc_render$15($,k,V,z,j,oe){const re=resolveComponent("hue-slider"),ie=resolveComponent("sv-panel"),ae=resolveComponent("alpha-slider"),he=resolveComponent("predefine"),le=resolveComponent("el-input"),ue=resolveComponent("el-button"),de=resolveComponent("arrow-down"),pe=resolveComponent("el-icon"),$e=resolveComponent("close"),_e=resolveComponent("el-tooltip"),Ce=resolveDirective("click-outside");return openBlock(),createBlock(_e,{ref:"popper",visible:$.showPicker,"onUpdate:visible":k[3]||(k[3]=Ie=>$.showPicker=Ie),"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[$.ns.be("picker","panel"),$.ns.b("dropdown"),$.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass($.ns.be("dropdown","main-wrapper"))},[createVNode(re,{ref:"hue",class:"hue-slider",color:$.color,vertical:""},null,8,["color"]),createVNode(ie,{ref:"svPanel",color:$.color},null,8,["color"])],2),$.showAlpha?(openBlock(),createBlock(ae,{key:0,ref:"alpha",color:$.color},null,8,["color"])):createCommentVNode("v-if",!0),$.predefine?(openBlock(),createBlock(he,{key:1,ref:"predefine",color:$.color,colors:$.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass($.ns.be("dropdown","value"))},[createVNode(le,{modelValue:$.customInput,"onUpdate:modelValue":k[0]||(k[0]=Ie=>$.customInput=Ie),"validate-event":!1,size:"small",onKeyup:withKeys($.handleConfirm,["enter"]),onBlur:$.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),createVNode(ue,{class:normalizeClass($.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:$.clear},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),createVNode(ue,{plain:"",size:"small",class:normalizeClass($.ns.be("dropdown","btn")),onClick:$.confirmValue},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[Ce,$.hide]])]),default:withCtx(()=>[createBaseVNode("div",{id:$.buttonId,class:normalizeClass([$.ns.b("picker"),$.ns.is("disabled",$.colorDisabled),$.ns.bm("picker",$.colorSize)]),role:"button","aria-label":$.buttonAriaLabel,"aria-labelledby":$.buttonAriaLabelledby,"aria-description":$.t("el.colorpicker.description",{color:$.modelValue}),tabindex:$.tabindex,onKeydown:k[2]||(k[2]=withKeys((...Ie)=>$.handleTrigger&&$.handleTrigger(...Ie),["enter"]))},[$.colorDisabled?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.be("picker","trigger")),onClick:k[1]||(k[1]=(...Ie)=>$.handleTrigger&&$.handleTrigger(...Ie))},[createBaseVNode("span",{class:normalizeClass([$.ns.be("picker","color"),$.ns.is("alpha",$.showAlpha)])},[createBaseVNode("span",{class:normalizeClass($.ns.be("picker","color-inner")),style:normalizeStyle({backgroundColor:$.displayedColor})},[withDirectives(createVNode(pe,{class:normalizeClass([$.ns.be("picker","icon"),$.ns.is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"]),[[vShow,$.modelValue||$.showPanelColor]]),!$.modelValue&&!$.showPanelColor?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([$.ns.be("picker","empty"),$.ns.is("icon-close")])},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)],2)],2)],42,_hoisted_1$K)]),_:1},8,["visible","popper-class"])}var ColorPicker=_export_sfc$1(_sfc_main$1y,[["render",_sfc_render$15],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);ColorPicker.install=$=>{$.component(ColorPicker.name,ColorPicker)};const _ColorPicker=ColorPicker,ElColorPicker=_ColorPicker,messageConfig={},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:{type:String,values:componentSizes,default:""},button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:{type:Number},namespace:{type:String,default:"el"}});var ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup($,{slots:k}){watch$1(()=>$.message,z=>{Object.assign(messageConfig,z!=null?z:{})},{immediate:!0,deep:!0});const V=provideGlobalConfig($);return()=>renderSlot(k,"default",{config:V==null?void 0:V.value})}});const ElConfigProvider=withInstall(ConfigProvider),_sfc_main$1x=defineComponent({name:"ElContainer",props:{direction:{type:String,default:""}},setup($,{slots:k}){const V=useNamespace("container");return{isVertical:computed(()=>$.direction==="vertical"?!0:$.direction==="horizontal"?!1:k&&k.default?k.default().some(oe=>{const re=oe.type.name;return re==="ElHeader"||re==="ElFooter"}):!1),ns:V}}});function _sfc_render$14($,k,V,z,j,oe){return openBlock(),createElementBlock("section",{class:normalizeClass([$.ns.b(),$.ns.is("vertical",$.isVertical)])},[renderSlot($.$slots,"default")],2)}var Container=_export_sfc$1(_sfc_main$1x,[["render",_sfc_render$14],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const _sfc_main$1w=defineComponent({name:"ElAside",props:{width:{type:String,default:null}},setup($){const k=useNamespace("aside");return{style:computed(()=>$.width?k.cssVarBlock({width:$.width}):{}),ns:k}}});function _sfc_render$13($,k,V,z,j,oe){return openBlock(),createElementBlock("aside",{class:normalizeClass($.ns.b()),style:normalizeStyle($.style)},[renderSlot($.$slots,"default")],6)}var Aside=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$13],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const _sfc_main$1v=defineComponent({name:"ElFooter",props:{height:{type:String,default:null}},setup($){const k=useNamespace("footer");return{style:computed(()=>$.height?k.cssVarBlock({height:$.height}):{}),ns:k}}});function _sfc_render$12($,k,V,z,j,oe){return openBlock(),createElementBlock("footer",{class:normalizeClass($.ns.b()),style:normalizeStyle($.style)},[renderSlot($.$slots,"default")],6)}var Footer$2=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$12],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const _sfc_main$1u=defineComponent({name:"ElHeader",props:{height:{type:String,default:null}},setup($){const k=useNamespace("header");return{style:computed(()=>$.height?k.cssVarBlock({height:$.height}):{}),ns:k}}});function _sfc_render$11($,k,V,z,j,oe){return openBlock(),createElementBlock("header",{class:normalizeClass($.ns.b()),style:normalizeStyle($.style)},[renderSlot($.$slots,"default")],6)}var Header=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$11],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const _sfc_main$1t=defineComponent({name:"ElMain",setup(){return{ns:useNamespace("main")}}});function _sfc_render$10($,k,V,z,j,oe){return openBlock(),createElementBlock("main",{class:normalizeClass($.ns.b())},[renderSlot($.$slots,"default")],2)}var Main=_export_sfc$1(_sfc_main$1t,[["render",_sfc_render$10],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header),ElMain=withNoopInstall(Main);var advancedFormat$1={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){return function(V,z,j){var oe=z.prototype,re=oe.format;j.en.ordinal=function(ie){var ae=["th","st","nd","rd"],he=ie%100;return"["+ie+(ae[(he-20)%10]||ae[he]||ae[0])+"]"},oe.format=function(ie){var ae=this,he=this.$locale();if(!this.isValid())return re.bind(this)(ie);var le=this.$utils(),ue=(ie||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(de){switch(de){case"Q":return Math.ceil((ae.$M+1)/3);case"Do":return he.ordinal(ae.$D);case"gggg":return ae.weekYear();case"GGGG":return ae.isoWeekYear();case"wo":return he.ordinal(ae.week(),"W");case"w":case"ww":return le.s(ae.week(),de==="w"?1:2,"0");case"W":case"WW":return le.s(ae.isoWeek(),de==="W"?1:2,"0");case"k":case"kk":return le.s(String(ae.$H===0?24:ae.$H),de==="k"?1:2,"0");case"X":return Math.floor(ae.$d.getTime()/1e3);case"x":return ae.$d.getTime();case"z":return"["+ae.offsetName()+"]";case"zzz":return"["+ae.offsetName("long")+"]";default:return de}});return re.bind(this)(ue)}}})})(advancedFormat$1);var advancedFormat=advancedFormat$1.exports,weekOfYear$1={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){var V="week",z="year";return function(j,oe,re){var ie=oe.prototype;ie.week=function(ae){if(ae===void 0&&(ae=null),ae!==null)return this.add(7*(ae-this.week()),"day");var he=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var le=re(this).startOf(z).add(1,z).date(he),ue=re(this).endOf(V);if(le.isBefore(ue))return 1}var de=re(this).startOf(z).date(he).startOf(V).subtract(1,"millisecond"),pe=this.diff(de,V,!0);return pe<0?re(this).startOf("week").week():Math.ceil(pe)},ie.weeks=function(ae){return ae===void 0&&(ae=null),this.week(ae)}}})})(weekOfYear$1);var weekOfYear=weekOfYear$1.exports,weekYear$1={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){return function(V,z){z.prototype.weekYear=function(){var j=this.month(),oe=this.week(),re=this.year();return oe===1&&j===11?re+1:j===0&&oe>=52?re-1:re}}})})(weekYear$1);var weekYear=weekYear$1.exports,dayOfYear$1={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){return function(V,z,j){z.prototype.dayOfYear=function(oe){var re=Math.round((j(this).startOf("day")-j(this).startOf("year"))/864e5)+1;return oe==null?re:this.add(oe-re,"day")}}})})(dayOfYear$1);var dayOfYear=dayOfYear$1.exports,isSameOrAfter$1={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){return function(V,z){z.prototype.isSameOrAfter=function(j,oe){return this.isSame(j,oe)||this.isAfter(j,oe)}}})})(isSameOrAfter$1);var isSameOrAfter=isSameOrAfter$1.exports,isSameOrBefore$1={exports:{}};(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal,function(){return function(V,z){z.prototype.isSameOrBefore=function(j,oe){return this.isSame(j,oe)||this.isBefore(j,oe)}}})})(isSameOrBefore$1);var isSameOrBefore=isSameOrBefore$1.exports;const ROOT_PICKER_INJECTION_KEY=Symbol();var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:buildProps({cell:{type:definePropType(Object)}}),setup($){const k=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const V=$.cell;if(k!=null&&k.ctx.slots.default){const z=k.ctx.slots.default(V).filter(j=>j.patchFlag!==-2&&j.type.toString()!=="Symbol(Comment)");if(z.length)return z}return h$2("div",{class:"el-date-table-cell"},[h$2("span",{class:"el-date-table-cell__text"},[V==null?void 0:V.text])])}}});const _sfc_main$1s=defineComponent({components:{ElDatePickerCell},props:{date:{type:Object},minDate:{type:Object},maxDate:{type:Object},parsedValue:{type:[Object,Array]},selectionMode:{type:String,default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{type:Function},cellClassName:{type:Function},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}},emits:["changerange","pick","select"],setup($,k){const{t:V,lang:z}=useLocale(),j=ref(null),oe=ref(null),re=ref([[],[],[],[],[],[]]),ie=$.date.$locale().weekStart||7,ae=$.date.locale("en").localeData().weekdaysShort().map(qe=>qe.toLowerCase()),he=computed(()=>ie>3?7-ie:-ie),le=computed(()=>{const qe=$.date.startOf("month");return qe.subtract(qe.day()||7,"day")}),ue=computed(()=>ae.concat(ae).slice(ie,ie+7)),de=computed(()=>{var qe;const Oe=$.date.startOf("month"),Ue=Oe.day()||7,Dt=Oe.daysInMonth(),At=Oe.subtract(1,"month").daysInMonth(),Lt=he.value,kt=re.value;let Pt=1;const jt=$.selectionMode==="dates"?castArray($.parsedValue):[],vn=dayjs().locale(z.value).startOf("day");for(let $n=0;$n<6;$n++){const wn=kt[$n];$.showWeekNumber&&(wn[0]||(wn[0]={type:"week",text:le.value.add($n*7+1,"day").week()}));for(let _n=0;_n<7;_n++){let En=wn[$.showWeekNumber?_n+1:_n];En||(En={row:$n,column:_n,type:"normal",inRange:!1,start:!1,end:!1});const Sn=$n*7+_n,An=le.value.add(Sn-Lt,"day");En.dayjs=An,En.date=An.toDate(),En.timestamp=An.valueOf(),En.type="normal";const Cn=$.rangeState.endDate||$.maxDate||$.rangeState.selecting&&$.minDate;if(En.inRange=$.minDate&&An.isSameOrAfter($.minDate,"day")&&Cn&&An.isSameOrBefore(Cn,"day")||$.minDate&&An.isSameOrBefore($.minDate,"day")&&Cn&&An.isSameOrAfter(Cn,"day"),(qe=$.minDate)!=null&&qe.isSameOrAfter(Cn)?(En.start=Cn&&An.isSame(Cn,"day"),En.end=$.minDate&&An.isSame($.minDate,"day")):(En.start=$.minDate&&An.isSame($.minDate,"day"),En.end=Cn&&An.isSame(Cn,"day")),An.isSame(vn,"day")&&(En.type="today"),$n>=0&&$n<=1){const xn=Ue+Lt<0?7+Ue+Lt:Ue+Lt;_n+$n*7>=xn?En.text=Pt++:(En.text=At-(xn-_n%7)+1+$n*7,En.type="prev-month")}else Pt<=Dt?En.text=Pt++:(En.text=Pt++-Dt,En.type="next-month");const Nn=An.toDate();En.selected=jt.find(xn=>xn.valueOf()===An.valueOf()),En.isSelected=!!En.selected,En.isCurrent=pe(En),En.disabled=$.disabledDate&&$.disabledDate(Nn),En.customClass=$.cellClassName&&$.cellClassName(Nn),wn[$.showWeekNumber?_n+1:_n]=En}if($.selectionMode==="week"){const _n=$.showWeekNumber?1:0,En=$.showWeekNumber?7:6,Sn=Et(wn[_n+1]);wn[_n].inRange=Sn,wn[_n].start=Sn,wn[En].inRange=Sn,wn[En].end=Sn}}return kt}),pe=qe=>$.selectionMode==="day"&&(qe.type==="normal"||qe.type==="today")&&$e(qe,$.parsedValue),$e=(qe,Oe)=>Oe?dayjs(Oe).locale(z.value).isSame($.date.date(Number(qe.text)),"day"):!1,_e=qe=>{const Oe=[];return(qe.type==="normal"||qe.type==="today")&&!qe.disabled?(Oe.push("available"),qe.type==="today"&&Oe.push("today")):Oe.push(qe.type),pe(qe)&&Oe.push("current"),qe.inRange&&(qe.type==="normal"||qe.type==="today"||$.selectionMode==="week")&&(Oe.push("in-range"),qe.start&&Oe.push("start-date"),qe.end&&Oe.push("end-date")),qe.disabled&&Oe.push("disabled"),qe.selected&&Oe.push("selected"),qe.customClass&&Oe.push(qe.customClass),Oe.join(" ")},Ce=(qe,Oe)=>{const Ue=qe*7+(Oe-($.showWeekNumber?1:0))-he.value;return le.value.add(Ue,"day")},Ie=qe=>{if(!$.rangeState.selecting)return;let Oe=qe.target;if(Oe.tagName==="SPAN"&&(Oe=Oe.parentNode.parentNode),Oe.tagName==="DIV"&&(Oe=Oe.parentNode),Oe.tagName!=="TD")return;const Ue=Oe.parentNode.rowIndex-1,Dt=Oe.cellIndex;de.value[Ue][Dt].disabled||(Ue!==j.value||Dt!==oe.value)&&(j.value=Ue,oe.value=Dt,k.emit("changerange",{selecting:!0,endDate:Ce(Ue,Dt)}))},ze=qe=>{let Oe=qe.target;for(;Oe&&Oe.tagName!=="TD";)Oe=Oe.parentNode;if(!Oe||Oe.tagName!=="TD")return;const Ue=Oe.parentNode.rowIndex-1,Dt=Oe.cellIndex,At=de.value[Ue][Dt];if(At.disabled||At.type==="week")return;const Lt=Ce(Ue,Dt);if($.selectionMode==="range")$.rangeState.selecting?(Lt>=$.minDate?k.emit("pick",{minDate:$.minDate,maxDate:Lt}):k.emit("pick",{minDate:Lt,maxDate:$.minDate}),k.emit("select",!1)):(k.emit("pick",{minDate:Lt,maxDate:null}),k.emit("select",!0));else if($.selectionMode==="day")k.emit("pick",Lt);else if($.selectionMode==="week"){const kt=Lt.week(),Pt=`${Lt.year()}w${kt}`;k.emit("pick",{year:Lt.year(),week:kt,value:Pt,date:Lt.startOf("week")})}else if($.selectionMode==="dates"){const kt=At.selected?castArray($.parsedValue).filter(Pt=>Pt.valueOf()!==Lt.valueOf()):castArray($.parsedValue).concat([Lt]);k.emit("pick",kt)}},Et=qe=>{if($.selectionMode!=="week")return!1;let Oe=$.date.startOf("day");if(qe.type==="prev-month"&&(Oe=Oe.subtract(1,"month")),qe.type==="next-month"&&(Oe=Oe.add(1,"month")),Oe=Oe.date(Number.parseInt(qe.text,10)),$.parsedValue&&!Array.isArray($.parsedValue)){const Ue=($.parsedValue.day()-ie+7)%7-1;return $.parsedValue.subtract(Ue,"day").isSame(Oe,"day")}return!1};return{handleMouseMove:Ie,t:V,rows:de,isWeekActive:Et,getCellClasses:_e,WEEKS:ue,handleClick:ze}}}),_hoisted_1$J={key:0};function _sfc_render$$($,k,V,z,j,oe){const re=resolveComponent("el-date-picker-cell");return openBlock(),createElementBlock("table",{cellspacing:"0",cellpadding:"0",class:normalizeClass(["el-date-table",{"is-week-mode":$.selectionMode==="week"}]),onClick:k[0]||(k[0]=(...ie)=>$.handleClick&&$.handleClick(...ie)),onMousemove:k[1]||(k[1]=(...ie)=>$.handleMouseMove&&$.handleMouseMove(...ie))},[createBaseVNode("tbody",null,[createBaseVNode("tr",null,[$.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_1$J,toDisplayString$1($.t("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList($.WEEKS,(ie,ae)=>(openBlock(),createElementBlock("th",{key:ae},toDisplayString$1($.t("el.datepicker.weeks."+ie)),1))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList($.rows,(ie,ae)=>(openBlock(),createElementBlock("tr",{key:ae,class:normalizeClass(["el-date-table__row",{current:$.isWeekActive(ie[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie,(he,le)=>(openBlock(),createElementBlock("td",{key:le,class:normalizeClass($.getCellClasses(he))},[createVNode(re,{cell:he},null,8,["cell"])],2))),128))],2))),128))])],34)}var DateTable=_export_sfc$1(_sfc_main$1s,[["render",_sfc_render$$],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const datesInMonth=($,k,V)=>{const z=dayjs().locale(V).startOf("month").month(k).year($),j=z.daysInMonth();return rangeArr(j).map(oe=>z.add(oe,"day").toDate())},_sfc_main$1r=defineComponent({props:{disabledDate:{type:Function},selectionMode:{type:String,default:"month"},minDate:{type:Object},maxDate:{type:Object},date:{type:Object},parsedValue:{type:Object},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}},emits:["changerange","pick","select"],setup($,k){const{t:V,lang:z}=useLocale(),j=ref($.date.locale("en").localeData().monthsShort().map(de=>de.toLowerCase())),oe=ref([[],[],[]]),re=ref(null),ie=ref(null),ae=computed(()=>{var de;const pe=oe.value,$e=dayjs().locale(z.value).startOf("month");for(let _e=0;_e<3;_e++){const Ce=pe[_e];for(let Ie=0;Ie<4;Ie++){let ze=Ce[Ie];ze||(ze={row:_e,column:Ie,type:"normal",inRange:!1,start:!1,end:!1}),ze.type="normal";const Et=_e*4+Ie,qe=$.date.startOf("year").month(Et),Oe=$.rangeState.endDate||$.maxDate||$.rangeState.selecting&&$.minDate;ze.inRange=$.minDate&&qe.isSameOrAfter($.minDate,"month")&&Oe&&qe.isSameOrBefore(Oe,"month")||$.minDate&&qe.isSameOrBefore($.minDate,"month")&&Oe&&qe.isSameOrAfter(Oe,"month"),(de=$.minDate)!=null&&de.isSameOrAfter(Oe)?(ze.start=Oe&&qe.isSame(Oe,"month"),ze.end=$.minDate&&qe.isSame($.minDate,"month")):(ze.start=$.minDate&&qe.isSame($.minDate,"month"),ze.end=Oe&&qe.isSame(Oe,"month")),$e.isSame(qe)&&(ze.type="today"),ze.text=Et;const Dt=qe.toDate();ze.disabled=$.disabledDate&&$.disabledDate(Dt),Ce[Ie]=ze}}return pe});return{handleMouseMove:de=>{if(!$.rangeState.selecting)return;let pe=de.target;if(pe.tagName==="A"&&(pe=pe.parentNode.parentNode),pe.tagName==="DIV"&&(pe=pe.parentNode),pe.tagName!=="TD")return;const $e=pe.parentNode.rowIndex,_e=pe.cellIndex;ae.value[$e][_e].disabled||($e!==re.value||_e!==ie.value)&&(re.value=$e,ie.value=_e,k.emit("changerange",{selecting:!0,endDate:$.date.startOf("year").month($e*4+_e)}))},handleMonthTableClick:de=>{let pe=de.target;if(pe.tagName==="A"&&(pe=pe.parentNode.parentNode),pe.tagName==="DIV"&&(pe=pe.parentNode),pe.tagName!=="TD"||hasClass(pe,"disabled"))return;const $e=pe.cellIndex,Ce=pe.parentNode.rowIndex*4+$e,Ie=$.date.startOf("year").month(Ce);$.selectionMode==="range"?$.rangeState.selecting?(Ie>=$.minDate?k.emit("pick",{minDate:$.minDate,maxDate:Ie}):k.emit("pick",{minDate:Ie,maxDate:$.minDate}),k.emit("select",!1)):(k.emit("pick",{minDate:Ie,maxDate:null}),k.emit("select",!0)):k.emit("pick",Ce)},rows:ae,getCellStyle:de=>{const pe={},$e=$.date.year(),_e=new Date,Ce=de.text;return pe.disabled=$.disabledDate?datesInMonth($e,Ce,z.value).every($.disabledDate):!1,pe.current=castArray($.parsedValue).findIndex(Ie=>Ie.year()===$e&&Ie.month()===Ce)>=0,pe.today=_e.getFullYear()===$e&&_e.getMonth()===Ce,de.inRange&&(pe["in-range"]=!0,de.start&&(pe["start-date"]=!0),de.end&&(pe["end-date"]=!0)),pe},t:V,months:j}}}),_hoisted_1$I={class:"cell"};function _sfc_render$_($,k,V,z,j,oe){return openBlock(),createElementBlock("table",{class:"el-month-table",onClick:k[0]||(k[0]=(...re)=>$.handleMonthTableClick&&$.handleMonthTableClick(...re)),onMousemove:k[1]||(k[1]=(...re)=>$.handleMouseMove&&$.handleMouseMove(...re))},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rows,(re,ie)=>(openBlock(),createElementBlock("tr",{key:ie},[(openBlock(!0),createElementBlock(Fragment,null,renderList(re,(ae,he)=>(openBlock(),createElementBlock("td",{key:he,class:normalizeClass($.getCellStyle(ae))},[createBaseVNode("div",null,[createBaseVNode("a",_hoisted_1$I,toDisplayString$1($.t("el.datepicker.months."+$.months[ae.text])),1)])],2))),128))]))),128))])],32)}var MonthTable=_export_sfc$1(_sfc_main$1r,[["render",_sfc_render$_],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const datesInYear=($,k)=>{const V=dayjs(String($)).locale(k).startOf("year"),j=V.endOf("year").dayOfYear();return rangeArr(j).map(oe=>V.add(oe,"day").toDate())},_sfc_main$1q=defineComponent({props:{disabledDate:{type:Function},parsedValue:{type:Object},date:{type:Object}},emits:["pick"],setup($,k){const{lang:V}=useLocale();return{startYear:computed(()=>Math.floor($.date.year()/10)*10),getCellStyle:re=>{const ie={},ae=dayjs().locale(V.value);return ie.disabled=$.disabledDate?datesInYear(re,V.value).every($.disabledDate):!1,ie.current=castArray($.parsedValue).findIndex(he=>he.year()===re)>=0,ie.today=ae.year()===re,ie},handleYearTableClick:re=>{const ie=re.target;if(ie.tagName==="A"){if(hasClass(ie.parentNode,"disabled"))return;const ae=ie.textContent||ie.innerText;k.emit("pick",Number(ae))}}}}}),_hoisted_1$H={class:"cell"},_hoisted_2$t={class:"cell"},_hoisted_3$g={class:"cell"},_hoisted_4$c={class:"cell"},_hoisted_5$a={class:"cell"},_hoisted_6$6={class:"cell"},_hoisted_7$6={class:"cell"},_hoisted_8$6={class:"cell"},_hoisted_9$6={class:"cell"},_hoisted_10$6={class:"cell"},_hoisted_11$5=createBaseVNode("td",null,null,-1),_hoisted_12$5=createBaseVNode("td",null,null,-1);function _sfc_render$Z($,k,V,z,j,oe){return openBlock(),createElementBlock("table",{class:"el-year-table",onClick:k[0]||(k[0]=(...re)=>$.handleYearTableClick&&$.handleYearTableClick(...re))},[createBaseVNode("tbody",null,[createBaseVNode("tr",null,[createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+0)])},[createBaseVNode("a",_hoisted_1$H,toDisplayString$1($.startYear),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+1)])},[createBaseVNode("a",_hoisted_2$t,toDisplayString$1($.startYear+1),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+2)])},[createBaseVNode("a",_hoisted_3$g,toDisplayString$1($.startYear+2),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+3)])},[createBaseVNode("a",_hoisted_4$c,toDisplayString$1($.startYear+3),1)],2)]),createBaseVNode("tr",null,[createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+4)])},[createBaseVNode("a",_hoisted_5$a,toDisplayString$1($.startYear+4),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+5)])},[createBaseVNode("a",_hoisted_6$6,toDisplayString$1($.startYear+5),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+6)])},[createBaseVNode("a",_hoisted_7$6,toDisplayString$1($.startYear+6),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+7)])},[createBaseVNode("a",_hoisted_8$6,toDisplayString$1($.startYear+7),1)],2)]),createBaseVNode("tr",null,[createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+8)])},[createBaseVNode("a",_hoisted_9$6,toDisplayString$1($.startYear+8),1)],2),createBaseVNode("td",{class:normalizeClass(["available",$.getCellStyle($.startYear+9)])},[createBaseVNode("a",_hoisted_10$6,toDisplayString$1($.startYear+9),1)],2),_hoisted_11$5,_hoisted_12$5])])])}var YearTable=_export_sfc$1(_sfc_main$1q,[["render",_sfc_render$Z],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const timeWithinRange=($,k,V)=>!0,_sfc_main$1p=defineComponent({components:{DateTable,ElInput,ElButton,ElIcon,TimePickPanel,MonthTable,YearTable,DArrowLeft:dArrowLeft,ArrowLeft:arrowLeft,DArrowRight:dArrowRight,ArrowRight:arrowRight},directives:{clickoutside:ClickOutside},props:{visible:{type:Boolean,default:!1},parsedValue:{type:[Object,Array]},format:{type:String,default:""},type:{type:String,required:!0,validator:isValidDatePickType}},emits:["pick","set-picker-option","panel-change"],setup($,k){const{t:V,lang:z}=useLocale(),j=inject("EP_PICKER_BASE"),oe=inject(TOOLTIP_INJECTION_KEY),{shortcuts:re,disabledDate:ie,cellClassName:ae,defaultTime:he,arrowControl:le}=j.props,ue=toRef(j.props,"defaultValue"),de=ref(dayjs().locale(z.value)),pe=computed(()=>dayjs(he).locale(z.value)),$e=computed(()=>de.value.month()),_e=computed(()=>de.value.year()),Ce=ref([]),Ie=ref(null),ze=ref(null),Et=qn=>Ce.value.length>0?timeWithinRange(qn,Ce.value,$.format||"HH:mm:ss"):!0,qe=qn=>he&&!Bn.value?pe.value.year(qn.year()).month(qn.month()).date(qn.date()):Cn.value?qn.millisecond(0):qn.startOf("day"),Oe=(qn,...In)=>{if(!qn)k.emit("pick",qn,...In);else if(Array.isArray(qn)){const jn=qn.map(qe);k.emit("pick",jn,...In)}else k.emit("pick",qe(qn),...In);Ie.value=null,ze.value=null},Ue=qn=>{if($n.value==="day"){let In=$.parsedValue?$.parsedValue.year(qn.year()).month(qn.month()).date(qn.date()):qn;Et(In)||(In=Ce.value[0][0].year(qn.year()).month(qn.month()).date(qn.date())),de.value=In,Oe(In,Cn.value)}else $n.value==="week"?Oe(qn.date):$n.value==="dates"&&Oe(qn,!0)},Dt=()=>{de.value=de.value.subtract(1,"month"),no("month")},At=()=>{de.value=de.value.add(1,"month"),no("month")},Lt=()=>{Pt.value==="year"?de.value=de.value.subtract(10,"year"):de.value=de.value.subtract(1,"year"),no("year")},kt=()=>{Pt.value==="year"?de.value=de.value.add(10,"year"):de.value=de.value.add(1,"year"),no("year")},Pt=ref("date"),jt=computed(()=>{const qn=V("el.datepicker.year");if(Pt.value==="year"){const In=Math.floor(_e.value/10)*10;return qn?`${In} ${qn} - ${In+9} ${qn}`:`${In} - ${In+9}`}return`${_e.value} ${qn}`}),vn=qn=>{const In=typeof qn.value=="function"?qn.value():qn.value;if(In){Oe(dayjs(In).locale(z.value));return}qn.onClick&&qn.onClick(k)},$n=computed(()=>["week","month","year","dates"].includes($.type)?$.type:"day");watch$1(()=>$n.value,qn=>{if(["month","year"].includes(qn)){Pt.value=qn;return}Pt.value="date"},{immediate:!0}),watch$1(()=>Pt.value,()=>{oe==null||oe.updatePopper()});const wn=computed(()=>!!re.length),_n=qn=>{de.value=de.value.startOf("month").month(qn),$n.value==="month"?Oe(de.value):Pt.value="date",no("month")},En=qn=>{$n.value==="year"?(de.value=de.value.startOf("year").year(qn),Oe(de.value)):(de.value=de.value.year(qn),Pt.value="month"),no("year")},Sn=()=>{Pt.value="month"},An=()=>{Pt.value="year"},Cn=computed(()=>$.type==="datetime"||$.type==="datetimerange"),Tn=computed(()=>Cn.value||$n.value==="dates"),Nn=()=>{if($n.value==="dates")Oe($.parsedValue);else{let qn=$.parsedValue;if(!qn){const In=dayjs(he).locale(z.value),jn=uo();qn=In.year(jn.year()).month(jn.month()).date(jn.date())}de.value=qn,Oe(qn)}},xn=()=>{const In=dayjs().locale(z.value).toDate();(!ie||!ie(In))&&Et(In)&&(de.value=dayjs().locale(z.value),Oe(de.value))},On=computed(()=>extractTimeFormat($.format)),Ln=computed(()=>extractDateFormat($.format)),Bn=computed(()=>{if(ze.value)return ze.value;if(!(!$.parsedValue&&!ue.value))return($.parsedValue||de.value).format(On.value)}),Vn=computed(()=>{if(Ie.value)return Ie.value;if(!(!$.parsedValue&&!ue.value))return($.parsedValue||de.value).format(Ln.value)}),Fn=ref(!1),zn=()=>{Fn.value=!0},Xn=()=>{Fn.value=!1},Pn=(qn,In,jn)=>{const Kn=$.parsedValue?$.parsedValue.hour(qn.hour()).minute(qn.minute()).second(qn.second()):qn;de.value=Kn,Oe(de.value,!0),jn||(Fn.value=In)},Hn=qn=>{const In=dayjs(qn,On.value).locale(z.value);In.isValid()&&Et(In)&&(de.value=In.year(de.value.year()).month(de.value.month()).date(de.value.date()),ze.value=null,Fn.value=!1,Oe(de.value,!0))},eo=qn=>{const In=dayjs(qn,Ln.value).locale(z.value);if(In.isValid()){if(ie&&ie(In.toDate()))return;de.value=In.hour(de.value.hour()).minute(de.value.minute()).second(de.value.second()),Ie.value=null,Oe(de.value,!0)}},Qn=qn=>dayjs.isDayjs(qn)&&qn.isValid()&&(ie?!ie(qn.toDate()):!0),ao=qn=>$n.value==="dates"?qn.map(In=>In.format($.format)):qn.format($.format),ho=qn=>dayjs(qn,$.format).locale(z.value),uo=()=>{const qn=dayjs(ue.value).locale(z.value);if(!ue.value){const In=pe.value;return dayjs().hour(In.hour()).minute(In.minute()).second(In.second()).locale(z.value)}return qn},Un=qn=>{const{code:In,keyCode:jn}=qn,Kn=[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right];$.visible&&!Fn.value&&(Kn.includes(In)&&(Zn(jn),qn.stopPropagation(),qn.preventDefault()),In===EVENT_CODE.enter&&Ie.value===null&&ze.value===null&&Oe(de,!1))},Zn=qn=>{const In={year:{38:-4,40:4,37:-1,39:1,offset:(Kn,so)=>Kn.setFullYear(Kn.getFullYear()+so)},month:{38:-4,40:4,37:-1,39:1,offset:(Kn,so)=>Kn.setMonth(Kn.getMonth()+so)},week:{38:-1,40:1,37:-1,39:1,offset:(Kn,so)=>Kn.setDate(Kn.getDate()+so*7)},day:{38:-7,40:7,37:-1,39:1,offset:(Kn,so)=>Kn.setDate(Kn.getDate()+so)}},jn=de.value.toDate();for(;Math.abs(de.value.diff(jn,"year",!0))<1;){const Kn=In[$n.value];if(Kn.offset(jn,Kn[qn]),ie&&ie(jn))continue;const so=dayjs(jn).locale(z.value);de.value=so,k.emit("pick",so,!0);break}},no=qn=>{k.emit("panel-change",de.value.toDate(),qn,Pt.value)};return k.emit("set-picker-option",["isValidValue",Qn]),k.emit("set-picker-option",["formatToString",ao]),k.emit("set-picker-option",["parseUserInput",ho]),k.emit("set-picker-option",["handleKeydown",Un]),watch$1(()=>ue.value,qn=>{qn&&(de.value=uo())},{immediate:!0}),watch$1(()=>$.parsedValue,qn=>{if(qn){if($n.value==="dates"||Array.isArray(qn))return;de.value=qn}else de.value=uo()},{immediate:!0}),{handleTimePick:Pn,handleTimePickClose:Xn,onTimePickerInputFocus:zn,timePickerVisible:Fn,visibleTime:Bn,visibleDate:Vn,showTime:Cn,changeToNow:xn,onConfirm:Nn,footerVisible:Tn,handleYearPick:En,showMonthPicker:Sn,showYearPicker:An,handleMonthPick:_n,hasShortcuts:wn,shortcuts:re,arrowControl:le,disabledDate:ie,cellClassName:ae,selectionMode:$n,handleShortcutClick:vn,prevYear_:Lt,nextYear_:kt,prevMonth_:Dt,nextMonth_:At,innerDate:de,t:V,yearLabel:jt,currentView:Pt,month:$e,handleDatePick:Ue,handleVisibleTimeChange:Hn,handleVisibleDateChange:eo,timeFormat:On,userInputTime:ze,userInputDate:Ie}}}),_hoisted_1$G={class:"el-picker-panel__body-wrapper"},_hoisted_2$s={key:0,class:"el-picker-panel__sidebar"},_hoisted_3$f=["onClick"],_hoisted_4$b={class:"el-picker-panel__body"},_hoisted_5$9={key:0,class:"el-date-picker__time-header"},_hoisted_6$5={class:"el-date-picker__editor-wrap"},_hoisted_7$5={class:"el-date-picker__editor-wrap"},_hoisted_8$5=["aria-label"],_hoisted_9$5=["aria-label"],_hoisted_10$5=["aria-label"],_hoisted_11$4=["aria-label"],_hoisted_12$4={class:"el-picker-panel__content"},_hoisted_13$4={class:"el-picker-panel__footer"};function _sfc_render$Y($,k,V,z,j,oe){const re=resolveComponent("el-input"),ie=resolveComponent("time-pick-panel"),ae=resolveComponent("d-arrow-left"),he=resolveComponent("el-icon"),le=resolveComponent("arrow-left"),ue=resolveComponent("d-arrow-right"),de=resolveComponent("arrow-right"),pe=resolveComponent("date-table"),$e=resolveComponent("year-table"),_e=resolveComponent("month-table"),Ce=resolveComponent("el-button"),Ie=resolveDirective("clickoutside");return openBlock(),createElementBlock("div",{class:normalizeClass(["el-picker-panel el-date-picker",[{"has-sidebar":$.$slots.sidebar||$.hasShortcuts,"has-time":$.showTime}]])},[createBaseVNode("div",_hoisted_1$G,[renderSlot($.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),$.hasShortcuts?(openBlock(),createElementBlock("div",_hoisted_2$s,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.shortcuts,(ze,Et)=>(openBlock(),createElementBlock("button",{key:Et,type:"button",class:"el-picker-panel__shortcut",onClick:qe=>$.handleShortcutClick(ze)},toDisplayString$1(ze.text),9,_hoisted_3$f))),128))])):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_4$b,[$.showTime?(openBlock(),createElementBlock("div",_hoisted_5$9,[createBaseVNode("span",_hoisted_6$5,[createVNode(re,{placeholder:$.t("el.datepicker.selectDate"),"model-value":$.visibleDate,size:"small",onInput:k[0]||(k[0]=ze=>$.userInputDate=ze),onChange:$.handleVisibleDateChange},null,8,["placeholder","model-value","onChange"])]),withDirectives((openBlock(),createElementBlock("span",_hoisted_7$5,[createVNode(re,{placeholder:$.t("el.datepicker.selectTime"),"model-value":$.visibleTime,size:"small",onFocus:$.onTimePickerInputFocus,onInput:k[1]||(k[1]=ze=>$.userInputTime=ze),onChange:$.handleVisibleTimeChange},null,8,["placeholder","model-value","onFocus","onChange"]),createVNode(ie,{visible:$.timePickerVisible,format:$.timeFormat,"time-arrow-control":$.arrowControl,"parsed-value":$.innerDate,onPick:$.handleTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[Ie,$.handleTimePickClose]])])):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass(["el-date-picker__header",{"el-date-picker__header--bordered":$.currentView==="year"||$.currentView==="month"}])},[createBaseVNode("button",{type:"button","aria-label":$.t("el.datepicker.prevYear"),class:"el-picker-panel__icon-btn el-date-picker__prev-btn d-arrow-left",onClick:k[2]||(k[2]=(...ze)=>$.prevYear_&&$.prevYear_(...ze))},[createVNode(he,null,{default:withCtx(()=>[createVNode(ae)]),_:1})],8,_hoisted_8$5),withDirectives(createBaseVNode("button",{type:"button","aria-label":$.t("el.datepicker.prevMonth"),class:"el-picker-panel__icon-btn el-date-picker__prev-btn arrow-left",onClick:k[3]||(k[3]=(...ze)=>$.prevMonth_&&$.prevMonth_(...ze))},[createVNode(he,null,{default:withCtx(()=>[createVNode(le)]),_:1})],8,_hoisted_9$5),[[vShow,$.currentView==="date"]]),createBaseVNode("span",{role:"button",class:"el-date-picker__header-label",onClick:k[4]||(k[4]=(...ze)=>$.showYearPicker&&$.showYearPicker(...ze))},toDisplayString$1($.yearLabel),1),withDirectives(createBaseVNode("span",{role:"button",class:normalizeClass(["el-date-picker__header-label",{active:$.currentView==="month"}]),onClick:k[5]||(k[5]=(...ze)=>$.showMonthPicker&&$.showMonthPicker(...ze))},toDisplayString$1($.t(`el.datepicker.month${$.month+1}`)),3),[[vShow,$.currentView==="date"]]),createBaseVNode("button",{type:"button","aria-label":$.t("el.datepicker.nextYear"),class:"el-picker-panel__icon-btn el-date-picker__next-btn d-arrow-right",onClick:k[6]||(k[6]=(...ze)=>$.nextYear_&&$.nextYear_(...ze))},[createVNode(he,null,{default:withCtx(()=>[createVNode(ue)]),_:1})],8,_hoisted_10$5),withDirectives(createBaseVNode("button",{type:"button","aria-label":$.t("el.datepicker.nextMonth"),class:"el-picker-panel__icon-btn el-date-picker__next-btn arrow-right",onClick:k[7]||(k[7]=(...ze)=>$.nextMonth_&&$.nextMonth_(...ze))},[createVNode(he,null,{default:withCtx(()=>[createVNode(de)]),_:1})],8,_hoisted_11$4),[[vShow,$.currentView==="date"]])],2),[[vShow,$.currentView!=="time"]]),createBaseVNode("div",_hoisted_12$4,[$.currentView==="date"?(openBlock(),createBlock(pe,{key:0,"selection-mode":$.selectionMode,date:$.innerDate,"parsed-value":$.parsedValue,"disabled-date":$.disabledDate,"cell-class-name":$.cellClassName,onPick:$.handleDatePick},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name","onPick"])):createCommentVNode("v-if",!0),$.currentView==="year"?(openBlock(),createBlock($e,{key:1,date:$.innerDate,"disabled-date":$.disabledDate,"parsed-value":$.parsedValue,onPick:$.handleYearPick},null,8,["date","disabled-date","parsed-value","onPick"])):createCommentVNode("v-if",!0),$.currentView==="month"?(openBlock(),createBlock(_e,{key:2,date:$.innerDate,"parsed-value":$.parsedValue,"disabled-date":$.disabledDate,onPick:$.handleMonthPick},null,8,["date","parsed-value","disabled-date","onPick"])):createCommentVNode("v-if",!0)])])]),withDirectives(createBaseVNode("div",_hoisted_13$4,[withDirectives(createVNode(Ce,{text:"",size:"small",class:"el-picker-panel__link-btn",onClick:$.changeToNow},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.t("el.datepicker.now")),1)]),_:1},8,["onClick"]),[[vShow,$.selectionMode!=="dates"]]),createVNode(Ce,{plain:"",size:"small",class:"el-picker-panel__link-btn",onClick:$.onConfirm},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.t("el.datepicker.confirm")),1)]),_:1},8,["onClick"])],512),[[vShow,$.footerVisible&&$.currentView==="date"]])],2)}var DatePickPanel=_export_sfc$1(_sfc_main$1p,[["render",_sfc_render$Y],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const _sfc_main$1o=defineComponent({directives:{clickoutside:ClickOutside},components:{TimePickPanel,DateTable,ElInput,ElButton,ElIcon,DArrowLeft:dArrowLeft,ArrowLeft:arrowLeft,DArrowRight:dArrowRight,ArrowRight:arrowRight},props:{unlinkPanels:Boolean,parsedValue:{type:Array},type:{type:String,required:!0,validator:isValidDatePickType}},emits:["pick","set-picker-option","calendar-change","panel-change"],setup($,k){const{t:V,lang:z}=useLocale(),j=ref(dayjs().locale(z.value)),oe=ref(dayjs().locale(z.value).add(1,"month")),re=ref(null),ie=ref(null),ae=ref({min:null,max:null}),he=ref({min:null,max:null}),le=computed(()=>`${j.value.year()} ${V("el.datepicker.year")} ${V(`el.datepicker.month${j.value.month()+1}`)}`),ue=computed(()=>`${oe.value.year()} ${V("el.datepicker.year")} ${V(`el.datepicker.month${oe.value.month()+1}`)}`),de=computed(()=>j.value.year()),pe=computed(()=>j.value.month()),$e=computed(()=>oe.value.year()),_e=computed(()=>oe.value.month()),Ce=computed(()=>!!jn.length),Ie=computed(()=>ae.value.min!==null?ae.value.min:re.value?re.value.format(Ue.value):""),ze=computed(()=>ae.value.max!==null?ae.value.max:ie.value||re.value?(ie.value||re.value).format(Ue.value):""),Et=computed(()=>he.value.min!==null?he.value.min:re.value?re.value.format(Oe.value):""),qe=computed(()=>he.value.max!==null?he.value.max:ie.value||re.value?(ie.value||re.value).format(Oe.value):""),Oe=computed(()=>extractTimeFormat(ro)),Ue=computed(()=>extractDateFormat(ro)),Dt=()=>{j.value=j.value.subtract(1,"year"),$.unlinkPanels||(oe.value=j.value.add(1,"month")),wn("year")},At=()=>{j.value=j.value.subtract(1,"month"),$.unlinkPanels||(oe.value=j.value.add(1,"month")),wn("month")},Lt=()=>{$.unlinkPanels?oe.value=oe.value.add(1,"year"):(j.value=j.value.add(1,"year"),oe.value=j.value.add(1,"month")),wn("year")},kt=()=>{$.unlinkPanels?oe.value=oe.value.add(1,"month"):(j.value=j.value.add(1,"month"),oe.value=j.value.add(1,"month")),wn("month")},Pt=()=>{j.value=j.value.add(1,"year"),wn("year")},jt=()=>{j.value=j.value.add(1,"month"),wn("month")},vn=()=>{oe.value=oe.value.subtract(1,"year"),wn("year")},$n=()=>{oe.value=oe.value.subtract(1,"month"),wn("month")},wn=Gn=>{k.emit("panel-change",[j.value.toDate(),oe.value.toDate()],Gn)},_n=computed(()=>{const Gn=(pe.value+1)%12,io=pe.value+1>=12?1:0;return $.unlinkPanels&&new Date(de.value+io,Gn)$.unlinkPanels&&$e.value*12+_e.value-(de.value*12+pe.value+1)>=12),Sn=Gn=>Array.isArray(Gn)&&Gn[0]&&Gn[1]&&Gn[0].valueOf()<=Gn[1].valueOf(),An=ref({endDate:null,selecting:!1}),Cn=computed(()=>!(re.value&&ie.value&&!An.value.selecting&&Sn([re.value,ie.value]))),Tn=Gn=>{An.value=Gn},Nn=Gn=>{An.value.selecting=Gn,Gn||(An.value.endDate=null)},xn=computed(()=>$.type==="datetime"||$.type==="datetimerange"),On=(Gn=!1)=>{Sn([re.value,ie.value])&&k.emit("pick",[re.value,ie.value],Gn)},Ln=(Gn,io)=>{if(!!Gn)return vo?dayjs(vo[io]||vo).locale(z.value).year(Gn.year()).month(Gn.month()).date(Gn.date()):Gn},Bn=(Gn,io=!0)=>{const fo=Gn.minDate,wo=Gn.maxDate,Co=Ln(fo,0),_o=Ln(wo,1);ie.value===_o&&re.value===Co||(k.emit("calendar-change",[fo.toDate(),wo&&wo.toDate()]),ie.value=_o,re.value=Co,!(!io||xn.value)&&On())},Vn=Gn=>{const io=typeof Gn.value=="function"?Gn.value():Gn.value;if(io){k.emit("pick",[dayjs(io[0]).locale(z.value),dayjs(io[1]).locale(z.value)]);return}Gn.onClick&&Gn.onClick(k)},Fn=ref(!1),zn=ref(!1),Xn=()=>{Fn.value=!1},Pn=()=>{zn.value=!1},Hn=(Gn,io)=>{ae.value[io]=Gn;const fo=dayjs(Gn,Ue.value).locale(z.value);if(fo.isValid()){if(Kn&&Kn(fo.toDate()))return;io==="min"?(j.value=fo,re.value=(re.value||j.value).year(fo.year()).month(fo.month()).date(fo.date()),$.unlinkPanels||(oe.value=fo.add(1,"month"),ie.value=re.value.add(1,"month"))):(oe.value=fo,ie.value=(ie.value||oe.value).year(fo.year()).month(fo.month()).date(fo.date()),$.unlinkPanels||(j.value=fo.subtract(1,"month"),re.value=ie.value.subtract(1,"month")))}},eo=(Gn,io)=>{ae.value[io]=null},Qn=(Gn,io)=>{he.value[io]=Gn;const fo=dayjs(Gn,Oe.value).locale(z.value);fo.isValid()&&(io==="min"?(Fn.value=!0,re.value=(re.value||j.value).hour(fo.hour()).minute(fo.minute()).second(fo.second()),(!ie.value||ie.value.isBefore(re.value))&&(ie.value=re.value)):(zn.value=!0,ie.value=(ie.value||oe.value).hour(fo.hour()).minute(fo.minute()).second(fo.second()),oe.value=ie.value,ie.value&&ie.value.isBefore(re.value)&&(re.value=ie.value)))},ao=(Gn,io)=>{he.value[io]=null,io==="min"?(j.value=re.value,Fn.value=!1):(oe.value=ie.value,zn.value=!1)},ho=(Gn,io,fo)=>{he.value.min||(Gn&&(j.value=Gn,re.value=(re.value||j.value).hour(Gn.hour()).minute(Gn.minute()).second(Gn.second())),fo||(Fn.value=io),(!ie.value||ie.value.isBefore(re.value))&&(ie.value=re.value,oe.value=Gn))},uo=(Gn,io,fo)=>{he.value.max||(Gn&&(oe.value=Gn,ie.value=(ie.value||oe.value).hour(Gn.hour()).minute(Gn.minute()).second(Gn.second())),fo||(zn.value=io),ie.value&&ie.value.isBefore(re.value)&&(re.value=ie.value))},Un=()=>{j.value=qn()[0],oe.value=j.value.add(1,"month"),k.emit("pick",null)},Zn=Gn=>Array.isArray(Gn)?Gn.map(io=>io.format(ro)):Gn.format(ro),no=Gn=>Array.isArray(Gn)?Gn.map(io=>dayjs(io,ro).locale(z.value)):dayjs(Gn,ro).locale(z.value),qn=()=>{let Gn;if(Array.isArray(Yn.value)){const io=dayjs(Yn.value[0]);let fo=dayjs(Yn.value[1]);return $.unlinkPanels||(fo=io.add(1,"month")),[io,fo]}else Yn.value?Gn=dayjs(Yn.value):Gn=dayjs();return Gn=Gn.locale(z.value),[Gn,Gn.add(1,"month")]};k.emit("set-picker-option",["isValidValue",Sn]),k.emit("set-picker-option",["parseUserInput",no]),k.emit("set-picker-option",["formatToString",Zn]),k.emit("set-picker-option",["handleClear",Un]);const In=inject("EP_PICKER_BASE"),{shortcuts:jn,disabledDate:Kn,cellClassName:so,format:ro,defaultTime:vo,arrowControl:go,clearable:Dn}=In.props,Yn=toRef(In.props,"defaultValue");return watch$1(()=>Yn.value,Gn=>{if(Gn){const io=qn();re.value=null,ie.value=null,j.value=io[0],oe.value=io[1]}},{immediate:!0}),watch$1(()=>$.parsedValue,Gn=>{if(Gn&&Gn.length===2)if(re.value=Gn[0],ie.value=Gn[1],j.value=re.value,$.unlinkPanels&&ie.value){const io=re.value.year(),fo=re.value.month(),wo=ie.value.year(),Co=ie.value.month();oe.value=io===wo&&fo===Co?ie.value.add(1,"month"):ie.value}else oe.value=j.value.add(1,"month"),ie.value&&(oe.value=oe.value.hour(ie.value.hour()).minute(ie.value.minute()).second(ie.value.second()));else{const io=qn();re.value=null,ie.value=null,j.value=io[0],oe.value=io[1]}},{immediate:!0}),{shortcuts:jn,disabledDate:Kn,cellClassName:so,minTimePickerVisible:Fn,maxTimePickerVisible:zn,handleMinTimeClose:Xn,handleMaxTimeClose:Pn,handleShortcutClick:Vn,rangeState:An,minDate:re,maxDate:ie,handleRangePick:Bn,onSelect:Nn,handleChangeRange:Tn,btnDisabled:Cn,enableYearArrow:En,enableMonthArrow:_n,rightPrevMonth:$n,rightPrevYear:vn,rightNextMonth:kt,rightNextYear:Lt,leftPrevMonth:At,leftPrevYear:Dt,leftNextMonth:jt,leftNextYear:Pt,hasShortcuts:Ce,leftLabel:le,rightLabel:ue,leftDate:j,rightDate:oe,showTime:xn,t:V,minVisibleDate:Ie,maxVisibleDate:ze,minVisibleTime:Et,maxVisibleTime:qe,arrowControl:go,handleDateInput:Hn,handleDateChange:eo,handleTimeInput:Qn,handleTimeChange:ao,handleMinTimePick:ho,handleMaxTimePick:uo,handleClear:Un,handleConfirm:On,timeFormat:Oe,clearable:Dn}}}),_hoisted_1$F={class:"el-picker-panel__body-wrapper"},_hoisted_2$r={key:0,class:"el-picker-panel__sidebar"},_hoisted_3$e=["onClick"],_hoisted_4$a={class:"el-picker-panel__body"},_hoisted_5$8={key:0,class:"el-date-range-picker__time-header"},_hoisted_6$4={class:"el-date-range-picker__editors-wrap"},_hoisted_7$4={class:"el-date-range-picker__time-picker-wrap"},_hoisted_8$4={class:"el-date-range-picker__time-picker-wrap"},_hoisted_9$4={class:"el-date-range-picker__editors-wrap is-right"},_hoisted_10$4={class:"el-date-range-picker__time-picker-wrap"},_hoisted_11$3={class:"el-date-range-picker__time-picker-wrap"},_hoisted_12$3={class:"el-picker-panel__content el-date-range-picker__content is-left"},_hoisted_13$3={class:"el-date-range-picker__header"},_hoisted_14$3=["disabled"],_hoisted_15$2=["disabled"],_hoisted_16$2={class:"el-picker-panel__content el-date-range-picker__content is-right"},_hoisted_17$2={class:"el-date-range-picker__header"},_hoisted_18$2=["disabled"],_hoisted_19$2=["disabled"],_hoisted_20$2={key:0,class:"el-picker-panel__footer"};function _sfc_render$X($,k,V,z,j,oe){const re=resolveComponent("el-input"),ie=resolveComponent("time-pick-panel"),ae=resolveComponent("arrow-right"),he=resolveComponent("el-icon"),le=resolveComponent("d-arrow-left"),ue=resolveComponent("arrow-left"),de=resolveComponent("d-arrow-right"),pe=resolveComponent("date-table"),$e=resolveComponent("el-button"),_e=resolveDirective("clickoutside");return openBlock(),createElementBlock("div",{class:normalizeClass(["el-picker-panel el-date-range-picker",[{"has-sidebar":$.$slots.sidebar||$.hasShortcuts,"has-time":$.showTime}]])},[createBaseVNode("div",_hoisted_1$F,[renderSlot($.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),$.hasShortcuts?(openBlock(),createElementBlock("div",_hoisted_2$r,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.shortcuts,(Ce,Ie)=>(openBlock(),createElementBlock("button",{key:Ie,type:"button",class:"el-picker-panel__shortcut",onClick:ze=>$.handleShortcutClick(Ce)},toDisplayString$1(Ce.text),9,_hoisted_3$e))),128))])):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_4$a,[$.showTime?(openBlock(),createElementBlock("div",_hoisted_5$8,[createBaseVNode("span",_hoisted_6$4,[createBaseVNode("span",_hoisted_7$4,[createVNode(re,{size:"small",disabled:$.rangeState.selecting,placeholder:$.t("el.datepicker.startDate"),class:"el-date-range-picker__editor","model-value":$.minVisibleDate,onInput:k[0]||(k[0]=Ce=>$.handleDateInput(Ce,"min")),onChange:k[1]||(k[1]=Ce=>$.handleDateChange(Ce,"min"))},null,8,["disabled","placeholder","model-value"])]),withDirectives((openBlock(),createElementBlock("span",_hoisted_8$4,[createVNode(re,{size:"small",class:"el-date-range-picker__editor",disabled:$.rangeState.selecting,placeholder:$.t("el.datepicker.startTime"),"model-value":$.minVisibleTime,onFocus:k[2]||(k[2]=Ce=>$.minTimePickerVisible=!0),onInput:k[3]||(k[3]=Ce=>$.handleTimeInput(Ce,"min")),onChange:k[4]||(k[4]=Ce=>$.handleTimeChange(Ce,"min"))},null,8,["disabled","placeholder","model-value"]),createVNode(ie,{visible:$.minTimePickerVisible,format:$.timeFormat,"datetime-role":"start","time-arrow-control":$.arrowControl,"parsed-value":$.leftDate,onPick:$.handleMinTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[_e,$.handleMinTimeClose]])]),createBaseVNode("span",null,[createVNode(he,null,{default:withCtx(()=>[createVNode(ae)]),_:1})]),createBaseVNode("span",_hoisted_9$4,[createBaseVNode("span",_hoisted_10$4,[createVNode(re,{size:"small",class:"el-date-range-picker__editor",disabled:$.rangeState.selecting,placeholder:$.t("el.datepicker.endDate"),"model-value":$.maxVisibleDate,readonly:!$.minDate,onInput:k[5]||(k[5]=Ce=>$.handleDateInput(Ce,"max")),onChange:k[6]||(k[6]=Ce=>$.handleDateChange(Ce,"max"))},null,8,["disabled","placeholder","model-value","readonly"])]),withDirectives((openBlock(),createElementBlock("span",_hoisted_11$3,[createVNode(re,{size:"small",class:"el-date-range-picker__editor",disabled:$.rangeState.selecting,placeholder:$.t("el.datepicker.endTime"),"model-value":$.maxVisibleTime,readonly:!$.minDate,onFocus:k[7]||(k[7]=Ce=>$.minDate&&($.maxTimePickerVisible=!0)),onInput:k[8]||(k[8]=Ce=>$.handleTimeInput(Ce,"max")),onChange:k[9]||(k[9]=Ce=>$.handleTimeChange(Ce,"max"))},null,8,["disabled","placeholder","model-value","readonly"]),createVNode(ie,{"datetime-role":"end",visible:$.maxTimePickerVisible,format:$.timeFormat,"time-arrow-control":$.arrowControl,"parsed-value":$.rightDate,onPick:$.handleMaxTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[_e,$.handleMaxTimeClose]])])])):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_12$3,[createBaseVNode("div",_hoisted_13$3,[createBaseVNode("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-left",onClick:k[10]||(k[10]=(...Ce)=>$.leftPrevYear&&$.leftPrevYear(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(le)]),_:1})]),createBaseVNode("button",{type:"button",class:"el-picker-panel__icon-btn arrow-left",onClick:k[11]||(k[11]=(...Ce)=>$.leftPrevMonth&&$.leftPrevMonth(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(ue)]),_:1})]),$.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!$.enableYearArrow,class:normalizeClass([{"is-disabled":!$.enableYearArrow},"el-picker-panel__icon-btn d-arrow-right"]),onClick:k[12]||(k[12]=(...Ce)=>$.leftNextYear&&$.leftNextYear(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(de)]),_:1})],10,_hoisted_14$3)):createCommentVNode("v-if",!0),$.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!$.enableMonthArrow,class:normalizeClass([{"is-disabled":!$.enableMonthArrow},"el-picker-panel__icon-btn arrow-right"]),onClick:k[13]||(k[13]=(...Ce)=>$.leftNextMonth&&$.leftNextMonth(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(ae)]),_:1})],10,_hoisted_15$2)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1($.leftLabel),1)]),createVNode(pe,{"selection-mode":"range",date:$.leftDate,"min-date":$.minDate,"max-date":$.maxDate,"range-state":$.rangeState,"disabled-date":$.disabledDate,"cell-class-name":$.cellClassName,onChangerange:$.handleChangeRange,onPick:$.handleRangePick,onSelect:$.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onPick","onSelect"])]),createBaseVNode("div",_hoisted_16$2,[createBaseVNode("div",_hoisted_17$2,[$.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!$.enableYearArrow,class:normalizeClass([{"is-disabled":!$.enableYearArrow},"el-picker-panel__icon-btn d-arrow-left"]),onClick:k[14]||(k[14]=(...Ce)=>$.rightPrevYear&&$.rightPrevYear(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(le)]),_:1})],10,_hoisted_18$2)):createCommentVNode("v-if",!0),$.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!$.enableMonthArrow,class:normalizeClass([{"is-disabled":!$.enableMonthArrow},"el-picker-panel__icon-btn arrow-left"]),onClick:k[15]||(k[15]=(...Ce)=>$.rightPrevMonth&&$.rightPrevMonth(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(ue)]),_:1})],10,_hoisted_19$2)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-right",onClick:k[16]||(k[16]=(...Ce)=>$.rightNextYear&&$.rightNextYear(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(de)]),_:1})]),createBaseVNode("button",{type:"button",class:"el-picker-panel__icon-btn arrow-right",onClick:k[17]||(k[17]=(...Ce)=>$.rightNextMonth&&$.rightNextMonth(...Ce))},[createVNode(he,null,{default:withCtx(()=>[createVNode(ae)]),_:1})]),createBaseVNode("div",null,toDisplayString$1($.rightLabel),1)]),createVNode(pe,{"selection-mode":"range",date:$.rightDate,"min-date":$.minDate,"max-date":$.maxDate,"range-state":$.rangeState,"disabled-date":$.disabledDate,"cell-class-name":$.cellClassName,onChangerange:$.handleChangeRange,onPick:$.handleRangePick,onSelect:$.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onPick","onSelect"])])])]),$.showTime?(openBlock(),createElementBlock("div",_hoisted_20$2,[$.clearable?(openBlock(),createBlock($e,{key:0,text:"",size:"small",class:"el-picker-panel__link-btn",onClick:$.handleClear},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.t("el.datepicker.clear")),1)]),_:1},8,["onClick"])):createCommentVNode("v-if",!0),createVNode($e,{plain:"",size:"small",class:"el-picker-panel__link-btn",disabled:$.btnDisabled,onClick:k[18]||(k[18]=Ce=>$.handleConfirm(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.t("el.datepicker.confirm")),1)]),_:1},8,["disabled"])])):createCommentVNode("v-if",!0)],2)}var DateRangePickPanel=_export_sfc$1(_sfc_main$1o,[["render",_sfc_render$X],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const _sfc_main$1n=defineComponent({components:{MonthTable,ElIcon,DArrowLeft:dArrowLeft,DArrowRight:dArrowRight},props:{unlinkPanels:Boolean,parsedValue:{type:Array}},emits:["pick","set-picker-option"],setup($,k){const{t:V,lang:z}=useLocale(),j=ref(dayjs().locale(z.value)),oe=ref(dayjs().locale(z.value).add(1,"year")),re=computed(()=>!!jt.length),ie=_n=>{const En=typeof _n.value=="function"?_n.value():_n.value;if(En){k.emit("pick",[dayjs(En[0]).locale(z.value),dayjs(En[1]).locale(z.value)]);return}_n.onClick&&_n.onClick(k)},ae=()=>{j.value=j.value.subtract(1,"year"),$.unlinkPanels||(oe.value=oe.value.subtract(1,"year"))},he=()=>{$.unlinkPanels||(j.value=j.value.add(1,"year")),oe.value=oe.value.add(1,"year")},le=()=>{j.value=j.value.add(1,"year")},ue=()=>{oe.value=oe.value.subtract(1,"year")},de=computed(()=>`${j.value.year()} ${V("el.datepicker.year")}`),pe=computed(()=>`${oe.value.year()} ${V("el.datepicker.year")}`),$e=computed(()=>j.value.year()),_e=computed(()=>oe.value.year()===j.value.year()?j.value.year()+1:oe.value.year()),Ce=computed(()=>$.unlinkPanels&&_e.value>$e.value+1),Ie=ref(null),ze=ref(null),Et=ref({endDate:null,selecting:!1}),qe=_n=>{Et.value=_n},Oe=(_n,En=!0)=>{const Sn=_n.minDate,An=_n.maxDate;ze.value===An&&Ie.value===Sn||(ze.value=An,Ie.value=Sn,En&&Dt())},Ue=_n=>Array.isArray(_n)&&_n&&_n[0]&&_n[1]&&_n[0].valueOf()<=_n[1].valueOf(),Dt=(_n=!1)=>{Ue([Ie.value,ze.value])&&k.emit("pick",[Ie.value,ze.value],_n)},At=_n=>{Et.value.selecting=_n,_n||(Et.value.endDate=null)},Lt=_n=>_n.map(En=>En.format($n)),kt=()=>{let _n;if(Array.isArray(wn.value)){const En=dayjs(wn.value[0]);let Sn=dayjs(wn.value[1]);return $.unlinkPanels||(Sn=En.add(1,"year")),[En,Sn]}else wn.value?_n=dayjs(wn.value):_n=dayjs();return _n=_n.locale(z.value),[_n,_n.add(1,"year")]};k.emit("set-picker-option",["formatToString",Lt]);const Pt=inject("EP_PICKER_BASE"),{shortcuts:jt,disabledDate:vn,format:$n}=Pt.props,wn=toRef(Pt.props,"defaultValue");return watch$1(()=>wn.value,_n=>{if(_n){const En=kt();j.value=En[0],oe.value=En[1]}},{immediate:!0}),watch$1(()=>$.parsedValue,_n=>{if(_n&&_n.length===2)if(Ie.value=_n[0],ze.value=_n[1],j.value=Ie.value,$.unlinkPanels&&ze.value){const En=Ie.value.year(),Sn=ze.value.year();oe.value=En===Sn?ze.value.add(1,"year"):ze.value}else oe.value=j.value.add(1,"year");else{const En=kt();Ie.value=null,ze.value=null,j.value=En[0],oe.value=En[1]}},{immediate:!0}),{shortcuts:jt,disabledDate:vn,onSelect:At,handleRangePick:Oe,rangeState:Et,handleChangeRange:qe,minDate:Ie,maxDate:ze,enableYearArrow:Ce,leftLabel:de,rightLabel:pe,leftNextYear:le,leftPrevYear:ae,rightNextYear:he,rightPrevYear:ue,t:V,leftDate:j,rightDate:oe,hasShortcuts:re,handleShortcutClick:ie}}}),_hoisted_1$E={class:"el-picker-panel__body-wrapper"},_hoisted_2$q={key:0,class:"el-picker-panel__sidebar"},_hoisted_3$d=["onClick"],_hoisted_4$9={class:"el-picker-panel__body"},_hoisted_5$7={class:"el-picker-panel__content el-date-range-picker__content is-left"},_hoisted_6$3={class:"el-date-range-picker__header"},_hoisted_7$3=["disabled"],_hoisted_8$3={class:"el-picker-panel__content el-date-range-picker__content is-right"},_hoisted_9$3={class:"el-date-range-picker__header"},_hoisted_10$3=["disabled"];function _sfc_render$W($,k,V,z,j,oe){const re=resolveComponent("d-arrow-left"),ie=resolveComponent("el-icon"),ae=resolveComponent("d-arrow-right"),he=resolveComponent("month-table");return openBlock(),createElementBlock("div",{class:normalizeClass(["el-picker-panel el-date-range-picker",[{"has-sidebar":$.$slots.sidebar||$.hasShortcuts}]])},[createBaseVNode("div",_hoisted_1$E,[renderSlot($.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),$.hasShortcuts?(openBlock(),createElementBlock("div",_hoisted_2$q,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.shortcuts,(le,ue)=>(openBlock(),createElementBlock("button",{key:ue,type:"button",class:"el-picker-panel__shortcut",onClick:de=>$.handleShortcutClick(le)},toDisplayString$1(le.text),9,_hoisted_3$d))),128))])):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_4$9,[createBaseVNode("div",_hoisted_5$7,[createBaseVNode("div",_hoisted_6$3,[createBaseVNode("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-left",onClick:k[0]||(k[0]=(...le)=>$.leftPrevYear&&$.leftPrevYear(...le))},[createVNode(ie,null,{default:withCtx(()=>[createVNode(re)]),_:1})]),$.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!$.enableYearArrow,class:normalizeClass([{"is-disabled":!$.enableYearArrow},"el-picker-panel__icon-btn d-arrow-right"]),onClick:k[1]||(k[1]=(...le)=>$.leftNextYear&&$.leftNextYear(...le))},[createVNode(ie,null,{default:withCtx(()=>[createVNode(ae)]),_:1})],10,_hoisted_7$3)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1($.leftLabel),1)]),createVNode(he,{"selection-mode":"range",date:$.leftDate,"min-date":$.minDate,"max-date":$.maxDate,"range-state":$.rangeState,"disabled-date":$.disabledDate,onChangerange:$.handleChangeRange,onPick:$.handleRangePick,onSelect:$.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onPick","onSelect"])]),createBaseVNode("div",_hoisted_8$3,[createBaseVNode("div",_hoisted_9$3,[$.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!$.enableYearArrow,class:normalizeClass([{"is-disabled":!$.enableYearArrow},"el-picker-panel__icon-btn d-arrow-left"]),onClick:k[2]||(k[2]=(...le)=>$.rightPrevYear&&$.rightPrevYear(...le))},[createVNode(ie,null,{default:withCtx(()=>[createVNode(re)]),_:1})],10,_hoisted_10$3)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-right",onClick:k[3]||(k[3]=(...le)=>$.rightNextYear&&$.rightNextYear(...le))},[createVNode(ie,null,{default:withCtx(()=>[createVNode(ae)]),_:1})]),createBaseVNode("div",null,toDisplayString$1($.rightLabel),1)]),createVNode(he,{"selection-mode":"range",date:$.rightDate,"min-date":$.minDate,"max-date":$.maxDate,"range-state":$.rangeState,"disabled-date":$.disabledDate,onChangerange:$.handleChangeRange,onPick:$.handleRangePick,onSelect:$.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onPick","onSelect"])])])])],2)}var MonthRangePickPanel=_export_sfc$1(_sfc_main$1n,[["render",_sfc_render$W],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);const getPanel=function($){return $==="daterange"||$==="datetimerange"?DateRangePickPanel:$==="monthrange"?MonthRangePickPanel:DatePickPanel};var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:mo(oo({},timePickerDefaultProps),{type:{type:String,default:"date"}}),emits:["update:modelValue"],setup($,k){provide("ElPopperOptions",$.popperOptions),provide(ROOT_PICKER_INJECTION_KEY,{ctx:k});const V=ref(null),z=mo(oo({},$),{focus:(j=!0)=>{var oe;(oe=V.value)==null||oe.focus(j)}});return k.expose(z),()=>{var j;const oe=(j=$.format)!=null?j:DEFAULT_FORMATS_DATEPICKER[$.type]||DEFAULT_FORMATS_DATE;return h$2(CommonPicker,mo(oo({},$),{format:oe,type:$.type,ref:V,"onUpdate:modelValue":re=>k.emit("update:modelValue",re)}),{default:re=>h$2(getPanel($.type),re),"range-separator":()=>renderSlot(k.slots,"range-separator")})}}});const _DatePicker=DatePicker;_DatePicker.install=$=>{$.component(_DatePicker.name,_DatePicker)};const ElDatePicker=_DatePicker,elDescriptionsKey="elDescriptions";var DescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:inject(elDescriptionsKey,{})}},render(){var $,k,V,z,j,oe;const re=getNormalizedProps(this.cell),{border:ie,direction:ae}=this.descriptions,he=ae==="vertical",le=((V=(k=($=this.cell)==null?void 0:$.children)==null?void 0:k.label)==null?void 0:V.call(k))||re.label,ue=(oe=(j=(z=this.cell)==null?void 0:z.children)==null?void 0:j.default)==null?void 0:oe.call(j),de=re.span,pe=re.align?`is-${re.align}`:"",$e=re.labelAlign?`is-${re.labelAlign}`:pe,_e=re.className,Ce=re.labelClassName,Ie={width:addUnit(re.width),minWidth:addUnit(re.minWidth)},ze=useNamespace("descriptions");switch(this.type){case"label":return h$2(this.tag,{style:Ie,class:[ze.e("cell"),ze.e("label"),ze.is("bordered-label",ie),ze.is("vertical-label",he),$e,Ce],colSpan:he?de:1},le);case"content":return h$2(this.tag,{style:Ie,class:[ze.e("cell"),ze.e("content"),ze.is("bordered-content",ie),ze.is("vertical-content",he),pe,_e],colSpan:he?de:de*2-1},ue);default:return h$2("td",{style:Ie,class:[ze.e("cell"),pe],colSpan:de},[h$2("span",{class:[ze.e("label"),Ce]},le),h$2("span",{class:[ze.e("content"),_e]},ue)])}}});const _sfc_main$1m=defineComponent({name:"ElDescriptionsRow",components:{[DescriptionsCell.name]:DescriptionsCell},props:{row:{type:Array}},setup(){return{descriptions:inject(elDescriptionsKey,{})}}}),_hoisted_1$D={key:1};function _sfc_render$V($,k,V,z,j,oe){const re=resolveComponent("el-descriptions-cell");return $.descriptions.direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.row,(ie,ae)=>(openBlock(),createBlock(re,{key:`tr1-${ae}`,cell:ie,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.row,(ie,ae)=>(openBlock(),createBlock(re,{key:`tr2-${ae}`,cell:ie,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$D,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.row,(ie,ae)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${ae}`},[$.descriptions.border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(re,{cell:ie,tag:"td",type:"label"},null,8,["cell"]),createVNode(re,{cell:ie,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(re,{key:1,cell:ie,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}var DescriptionsRow=_export_sfc$1(_sfc_main$1m,[["render",_sfc_render$V],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const _sfc_main$1l=defineComponent({name:"ElDescriptions",components:{[DescriptionsRow.name]:DescriptionsRow},props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String,validator:isValidComponentSize},title:{type:String,default:""},extra:{type:String,default:""}},setup($,{slots:k}){provide(elDescriptionsKey,$);const V=useSize(),z=useNamespace("descriptions"),j=computed(()=>[z.b(),z.m(V.value)]),oe=ae=>{const he=Array.isArray(ae)?ae:[ae],le=[];return he.forEach(ue=>{Array.isArray(ue.children)?le.push(...oe(ue.children)):le.push(ue)}),le},re=(ae,he,le,ue=!1)=>(ae.props||(ae.props={}),he>le&&(ae.props.span=le),ue&&(ae.props.span=he),ae);return{descriptionKls:j,getRows:()=>{var ae;const he=oe((ae=k.default)==null?void 0:ae.call(k)).filter($e=>{var _e;return((_e=$e==null?void 0:$e.type)==null?void 0:_e.name)==="ElDescriptionsItem"}),le=[];let ue=[],de=$.column,pe=0;return he.forEach(($e,_e)=>{var Ce;const Ie=((Ce=$e.props)==null?void 0:Ce.span)||1;if(_ede?de:Ie),_e===he.length-1){const ze=$.column-pe%$.column;ue.push(re($e,ze,de,!0)),le.push(ue);return}Ie[createTextVNode(toDisplayString$1($.title),1)])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("extra"))},[renderSlot($.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1($.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.e("body"))},[createBaseVNode("table",{class:normalizeClass([$.ns.e("table"),$.ns.is("bordered",$.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.getRows(),(ie,ae)=>(openBlock(),createBlock(re,{key:ae,row:ie},null,8,["row"]))),128))])],2)],2)],2)}var Descriptions=_export_sfc$1(_sfc_main$1l,[["render",_sfc_render$U],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/index.vue"]]),DescriptionsItem=defineComponent({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const ElDescriptions=withInstall(Descriptions,{DescriptionsItem}),ElDescriptionsItem=withNoopInstall(DescriptionsItem),overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:$=>$ instanceof MouseEvent};var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup($,{slots:k,emit:V}){const z=useNamespace("overlay"),j=ae=>{V("click",ae)},{onClick:oe,onMousedown:re,onMouseup:ie}=useSameTarget($.customMaskEvent?void 0:j);return()=>$.mask?createVNode("div",{class:[z.b(),$.overlayClass],style:{zIndex:$.zIndex},onClick:oe,onMousedown:re,onMouseup:ie},[renderSlot(k,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$2("div",{class:$.overlayClass,style:{zIndex:$.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(k,"default")])}});const ElOverlay=Overlay$1,dialogContentProps=buildProps({center:{type:Boolean,default:!1},closeIcon:{type:iconPropType,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dialogContentEmits={close:()=>!0},_hoisted_1$C=["aria-label"],__default__$o={name:"ElDialogContent"},_sfc_main$1k=defineComponent(mo(oo({},__default__$o),{props:dialogContentProps,emits:dialogContentEmits,setup($){const{Close:k}=CloseComponents,{dialogRef:V,headerRef:z,ns:j,style:oe}=inject(dialogInjectionKey);return(re,ie)=>(openBlock(),createElementBlock("div",{ref_key:"dialogRef",ref:V,class:normalizeClass([unref(j).b(),unref(j).is("fullscreen",re.fullscreen),unref(j).is("draggable",re.draggable),{[unref(j).m("center")]:re.center},re.customClass]),"aria-modal":"true",role:"dialog","aria-label":re.title||"dialog",style:normalizeStyle(unref(oe)),onClick:ie[1]||(ie[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{ref_key:"headerRef",ref:z,class:normalizeClass(unref(j).e("header"))},[renderSlot(re.$slots,"title",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(j).e("title"))},toDisplayString$1(re.title),3)])],2),createBaseVNode("div",{class:normalizeClass(unref(j).e("body"))},[renderSlot(re.$slots,"default")],2),re.$slots.footer?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(j).e("footer"))},[renderSlot(re.$slots,"footer")],2)):createCommentVNode("v-if",!0),re.showClose?(openBlock(),createElementBlock("button",{key:1,"aria-label":"close",class:normalizeClass(unref(j).e("headerbtn")),type:"button",onClick:ie[0]||(ie[0]=ae=>re.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(j).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(re.closeIcon||unref(k))))]),_:1},8,["class"])],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$C))}}));var ElDialogContent=_export_sfc$1(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps(mo(oo({},dialogContentProps),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:$=>isBoolean$1($),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=($,k)=>{const z=getCurrentInstance().emit,{nextZIndex:j}=useZIndex();let oe="";const re=ref(!1),ie=ref(!1),ae=ref(!1),he=ref($.zIndex||j());let le,ue;const de=computed(()=>isNumber$1($.width)?`${$.width}px`:$.width),pe=useGlobalConfig("namespace",defaultNamespace),$e=computed(()=>{const At={},Lt=`--${pe.value}-dialog`;return $.fullscreen||($.top&&(At[`${Lt}-margin-top`]=$.top),$.width&&(At[`${Lt}-width`]=de.value)),At});function _e(){z("opened")}function Ce(){z("closed"),z(UPDATE_MODEL_EVENT,!1),$.destroyOnClose&&(ae.value=!1)}function Ie(){z("close")}function ze(){ue==null||ue(),le==null||le(),$.openDelay&&$.openDelay>0?{stop:le}=useTimeoutFn(()=>Ue(),$.openDelay):Ue()}function Et(){le==null||le(),ue==null||ue(),$.closeDelay&&$.closeDelay>0?{stop:ue}=useTimeoutFn(()=>Dt(),$.closeDelay):Dt()}function qe(){function At(Lt){Lt||(ie.value=!0,re.value=!1)}$.beforeClose?$.beforeClose(At):Et()}function Oe(){$.closeOnClickModal&&qe()}function Ue(){!isClient||(re.value=!0)}function Dt(){re.value=!1}return $.lockScroll&&useLockscreen(re),$.closeOnPressEscape&&useModal({handleClose:qe},re),useRestoreActive(re),watch$1(()=>$.modelValue,At=>{At?(ie.value=!1,ze(),ae.value=!0,z("open"),he.value=$.zIndex?he.value++:j(),nextTick(()=>{k.value&&(k.value.scrollTop=0)})):re.value&&Et()}),watch$1(()=>$.fullscreen,At=>{!k.value||(At?(oe=k.value.style.transform,k.value.style.transform=""):k.value.style.transform=oe)}),onMounted(()=>{$.modelValue&&(re.value=!0,ae.value=!0,ze())}),{afterEnter:_e,afterLeave:Ce,beforeLeave:Ie,handleClose:qe,onModalClick:Oe,close:Et,doClose:Dt,closed:ie,style:$e,rendered:ae,visible:re,zIndex:he}},__default__$n={name:"ElDialog"},_sfc_main$1j=defineComponent(mo(oo({},__default__$n),{props:dialogProps,emits:dialogEmits,setup($,{expose:k}){const V=$,z=useNamespace("dialog"),j=ref(),oe=ref(),{visible:re,style:ie,rendered:ae,zIndex:he,afterEnter:le,afterLeave:ue,beforeLeave:de,handleClose:pe,onModalClick:$e}=useDialog(V,j);provide(dialogInjectionKey,{dialogRef:j,headerRef:oe,ns:z,rendered:ae,style:ie});const _e=useSameTarget($e),Ce=computed(()=>V.draggable&&!V.fullscreen);return useDraggable(j,oe,Ce),k({visible:re}),(Ie,ze)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!Ie.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(le),onAfterLeave:unref(ue),onBeforeLeave:unref(de)},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:Ie.modal,"overlay-class":Ie.modalClass,"z-index":unref(he)},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(`${unref(z).namespace.value}-overlay-dialog`),onClick:ze[0]||(ze[0]=(...Et)=>unref(_e).onClick&&unref(_e).onClick(...Et)),onMousedown:ze[1]||(ze[1]=(...Et)=>unref(_e).onMousedown&&unref(_e).onMousedown(...Et)),onMouseup:ze[2]||(ze[2]=(...Et)=>unref(_e).onMouseup&&unref(_e).onMouseup(...Et))},[unref(ae)?(openBlock(),createBlock(ElDialogContent,{key:0,"custom-class":Ie.customClass,center:Ie.center,"close-icon":Ie.closeIcon,draggable:unref(Ce),fullscreen:Ie.fullscreen,"show-close":Ie.showClose,style:normalizeStyle(unref(ie)),title:Ie.title,onClose:unref(pe)},createSlots({title:withCtx(()=>[renderSlot(Ie.$slots,"title")]),default:withCtx(()=>[renderSlot(Ie.$slots,"default")]),_:2},[Ie.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(Ie.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):createCommentVNode("v-if",!0)],34)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(re)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}}));var Dialog=_export_sfc$1(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ElDialog=withInstall(Dialog),dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),__default__$m={name:"ElDivider"},_sfc_main$1i=defineComponent(mo(oo({},__default__$m),{props:dividerProps,setup($){const k=$,V=useNamespace("divider"),z=computed(()=>V.cssVar({"border-style":k.borderStyle}));return(j,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(j.direction)]),style:normalizeStyle(unref(z))},[j.$slots.default&&j.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(V).e("text"),unref(V).is(j.contentPosition)])},[renderSlot(j.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}}));var Divider=_export_sfc$1(_sfc_main$1i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ElDivider=withInstall(Divider),drawerProps=buildProps(mo(oo({},dialogProps),{direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}})),drawerEmits=dialogEmits,_sfc_main$1h=defineComponent({name:"ElDrawer",components:{ElOverlay,ElIcon,Close:close$2},directives:{TrapFocus},props:drawerProps,emits:drawerEmits,setup($,k){const V=ref(),z=useNamespace("drawer"),j=computed(()=>$.direction==="rtl"||$.direction==="ltr"),oe=computed(()=>typeof $.size=="number"?`${$.size}px`:$.size);return mo(oo({},useDialog($,k,V)),{drawerRef:V,isHorizontal:j,drawerSize:oe,ns:z})}}),_hoisted_1$B=["aria-labelledby","aria-label"],_hoisted_2$p=["id"],_hoisted_3$c=["title"],_hoisted_4$8=["aria-label"];function _sfc_render$T($,k,V,z,j,oe){const re=resolveComponent("close"),ie=resolveComponent("el-icon"),ae=resolveComponent("el-overlay"),he=resolveDirective("trap-focus");return openBlock(),createBlock(Teleport,{to:"body",disabled:!$.appendToBody},[createVNode(Transition,{name:$.ns.b("fade"),onAfterEnter:$.afterEnter,onAfterLeave:$.afterLeave,onBeforeLeave:$.beforeLeave},{default:withCtx(()=>[withDirectives(createVNode(ae,{mask:$.modal,"overlay-class":$.modalClass,"z-index":$.zIndex,onClick:$.onModalClick},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{ref:"drawerRef","aria-modal":"true","aria-labelledby":$.ns.e("title"),"aria-label":$.title,class:normalizeClass([$.ns.b(),$.direction,$.visible&&"open",$.customClass]),style:normalizeStyle($.isHorizontal?"width: "+$.drawerSize:"height: "+$.drawerSize),role:"dialog",onClick:k[1]||(k[1]=withModifiers(()=>{},["stop"]))},[$.withHeader?(openBlock(),createElementBlock("header",{key:0,id:$.ns.e("title"),class:normalizeClass($.ns.e("header"))},[renderSlot($.$slots,"title",{},()=>[createBaseVNode("span",{role:"heading",title:$.title},toDisplayString$1($.title),9,_hoisted_3$c)]),$.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":"close "+($.title||"drawer"),class:normalizeClass($.ns.e("close-btn")),type:"button",onClick:k[0]||(k[0]=(...le)=>$.handleClose&&$.handleClose(...le))},[createVNode(ie,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(re)]),_:1},8,["class"])],10,_hoisted_4$8)):createCommentVNode("v-if",!0)],10,_hoisted_2$p)):createCommentVNode("v-if",!0),$.rendered?(openBlock(),createElementBlock("section",{key:1,class:normalizeClass($.ns.e("body"))},[renderSlot($.$slots,"default")],2)):createCommentVNode("v-if",!0),$.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("footer"))},[renderSlot($.$slots,"footer")],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$B)),[[he]])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,$.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$T],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),obtainAllFocusableElements=$=>{const k=[],V=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:z=>{const j=z.tagName==="INPUT"&&z.type==="hidden";return z.disabled||z.hidden||j?NodeFilter.FILTER_SKIP:z.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;V.nextNode();)k.push(V.currentNode);return k},getVisibleElement=($,k)=>{for(const V of $)if(!isHidden(V,k))return V},isHidden=($,k)=>{if(getComputedStyle($).visibility==="hidden")return!0;for(;$;){if(k&&$===k)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1},getEdges=$=>{const k=obtainAllFocusableElements($),V=getVisibleElement(k,$),z=getVisibleElement(k.reverse(),$);return[V,z]},isSelectable=$=>$ instanceof HTMLInputElement&&"select"in $,tryFocus=($,k)=>{if($&&$.focus){const V=document.activeElement;$.focus({preventScroll:!0}),$!==V&&isSelectable($)&&k&&$.select()}};function removeFromStack($,k){const V=[...$],z=$.indexOf(k);return z!==-1&&V.splice(z,1),V}const createFocusableStack=()=>{let $=[];return{push:z=>{const j=$[0];j&&z!==j&&j.pause(),$=removeFromStack($,z),$.unshift(z)},remove:z=>{var j,oe;$=removeFromStack($,z),(oe=(j=$[0])==null?void 0:j.resume)==null||oe.call(j)}}},focusFirstDescendant=($,k=!1)=>{const V=document.activeElement;for(const z of $)if(tryFocus(z,k),document.activeElement!==V)return},focusableStack=createFocusableStack(),FOCUS_ON_MOUNT="focus-trap.focus-on-mount",FOCUS_ON_UNMOUNT="focus-trap.focus-on-unmount",FOCUS_ON_MOUNT_OPTS={cancelable:!0,bubbles:!1},ON_MOUNT_FOCUS_EVT="mountOnFocus",ON_UNMOUNT_FOCUS_EVT="unmountOnFocus",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),_sfc_main$1g=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean},emits:[ON_MOUNT_FOCUS_EVT,ON_UNMOUNT_FOCUS_EVT],setup($,{emit:k}){const V=ref(),z=ref(null);let j,oe;const re={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},ie=pe=>{if(!$.loop&&!$.trapped||re.paused)return;const{key:$e,altKey:_e,ctrlKey:Ce,metaKey:Ie,currentTarget:ze,shiftKey:Et}=pe,{loop:qe}=$,Oe=$e===EVENT_CODE.tab&&!_e&&!Ce&&!Ie,Ue=document.activeElement;if(Oe&&Ue){const Dt=ze,[At,Lt]=getEdges(Dt);At&&Lt?!Et&&Ue===Lt?(pe.preventDefault(),qe&&tryFocus(At,!0)):Et&&Ue===At&&(pe.preventDefault(),qe&&tryFocus(Lt,!0)):Ue===Dt&&pe.preventDefault()}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:z,onKeydown:ie});const ae=pe=>{k(ON_MOUNT_FOCUS_EVT,pe)},he=pe=>k(ON_UNMOUNT_FOCUS_EVT,pe),le=pe=>{const $e=unref(z);if(re.paused||!$e)return;const _e=pe.target;_e&&$e.contains(_e)?oe=_e:tryFocus(oe,!0)},ue=pe=>{const $e=unref(z);re.paused||!$e||$e.contains(pe.relatedTarget)||tryFocus(oe,!0)},de=()=>{document.removeEventListener("focusin",le),document.removeEventListener("focusout",ue)};return onMounted(()=>{const pe=unref(z);if(pe){focusableStack.push(re);const $e=document.activeElement;if(j=$e,!pe.contains($e)){const Ce=new Event(FOCUS_ON_MOUNT,FOCUS_ON_MOUNT_OPTS);pe.addEventListener(FOCUS_ON_MOUNT,ae),pe.dispatchEvent(Ce),Ce.defaultPrevented||nextTick(()=>{focusFirstDescendant(obtainAllFocusableElements(pe),!0),document.activeElement===$e&&tryFocus(pe)})}}watch$1(()=>$.trapped,$e=>{$e?(document.addEventListener("focusin",le),document.addEventListener("focusout",ue)):de()},{immediate:!0})}),onBeforeUnmount(()=>{de();const pe=unref(z);if(pe){pe.removeEventListener(FOCUS_ON_MOUNT,ae);const $e=new Event(FOCUS_ON_UNMOUNT,FOCUS_ON_MOUNT_OPTS);pe.addEventListener(FOCUS_ON_UNMOUNT,he),pe.dispatchEvent($e),$e.defaultPrevented||tryFocus(j!=null?j:document.body,!0),pe.removeEventListener(FOCUS_ON_UNMOUNT,ae),focusableStack.remove(re)}}),{focusTrapRef:V,forwardRef:z,onKeydown:ie}}});function _sfc_render$S($,k,V,z,j,oe){return renderSlot($.$slots,"default")}var ElFocusTrap=_export_sfc$1(_sfc_main$1g,[["render",_sfc_render$S],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const _sfc_main$1f=defineComponent({inheritAttrs:!1});function _sfc_render$R($,k,V,z,j,oe){return renderSlot($.$slots,"default")}var Collection=_export_sfc$1(_sfc_main$1f,[["render",_sfc_render$R],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1e=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$Q($,k,V,z,j,oe){return renderSlot($.$slots,"default")}var CollectionItem=_export_sfc$1(_sfc_main$1e,[["render",_sfc_render$Q],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=$=>{const k=`El${$}Collection`,V=`${k}Item`,z=Symbol(k),j=Symbol(V),oe=mo(oo({},Collection),{name:k,setup(){const ie=ref(null),ae=new Map;provide(z,{itemMap:ae,getItems:()=>{const le=unref(ie);if(!le)return[];const ue=Array.from(le.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...ae.values()].sort(($e,_e)=>ue.indexOf($e.ref)-ue.indexOf(_e.ref))},collectionRef:ie})}}),re=mo(oo({},CollectionItem),{name:V,setup(ie,{attrs:ae}){const he=ref(null),le=inject(z,void 0);provide(j,{collectionItemRef:he}),onMounted(()=>{const ue=unref(he);ue&&le.itemMap.set(ue,oo({ref:ue},ae))}),onBeforeUnmount(()=>{const ue=unref(he);le.itemMap.delete(ue)})}});return{COLLECTION_INJECTION_KEY:z,COLLECTION_ITEM_INJECTION_KEY:j,ElCollection:oe,ElCollectionItem:re}},rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ElCollection$1,ElCollectionItem:ElCollectionItem$1,COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY$1,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY$1}=createCollectionWithScope("RovingFocusGroup"),ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup"),ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem"),MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},getDirectionAwareKey=($,k)=>{if(k!=="rtl")return $;switch($){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return $}},getFocusIntent=($,k,V)=>{const z=getDirectionAwareKey($.key,V);if(!(k==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(z))&&!(k==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(z)))return MAP_KEY_TO_FOCUS_INTENT[z]},reorderArray=($,k)=>$.map((V,z)=>$[(z+k)%$.length]),focusFirst=$=>{const{activeElement:k}=document;for(const V of $)if(V===k||(V.focus(),k!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$1d=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup($,{emit:k}){var V;const z=ref((V=$.currentTabId||$.defaultCurrentTabId)!=null?V:null),j=ref(!1),oe=ref(!1),re=ref(null),{getItems:ie}=inject(COLLECTION_INJECTION_KEY$1,void 0),ae=computed(()=>[{outline:"none"},$.style]),he=_e=>{k(CURRENT_TAB_ID_CHANGE_EVT,_e)},le=()=>{j.value=!0},ue=composeEventHandlers(_e=>{var Ce;(Ce=$.onMousedown)==null||Ce.call($,_e)},()=>{oe.value=!0}),de=composeEventHandlers(_e=>{var Ce;(Ce=$.onFocus)==null||Ce.call($,_e)},_e=>{const Ce=!unref(oe),{target:Ie,currentTarget:ze}=_e;if(Ie===ze&&Ce&&!unref(j)){const Et=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(ze==null||ze.dispatchEvent(Et),!Et.defaultPrevented){const qe=ie().filter(Lt=>Lt.focusable),Oe=qe.find(Lt=>Lt.active),Ue=qe.find(Lt=>Lt.id===unref(z)),At=[Oe,Ue,...qe].filter(Boolean).map(Lt=>Lt.ref);focusFirst(At)}}oe.value=!1}),pe=composeEventHandlers(_e=>{var Ce;(Ce=$.onBlur)==null||Ce.call($,_e)},()=>{j.value=!1}),$e=(..._e)=>{k("entryFocus",..._e)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(z),loop:toRef($,"loop"),tabIndex:computed(()=>unref(j)?-1:0),rovingFocusGroupRef:re,rovingFocusGroupRootStyle:ae,orientation:toRef($,"orientation"),dir:toRef($,"dir"),onItemFocus:he,onItemShiftTab:le,onBlur:pe,onFocus:de,onMousedown:ue}),watch$1(()=>$.currentTabId,_e=>{z.value=_e!=null?_e:null}),onMounted(()=>{const _e=unref(re);on$1(_e,ENTRY_FOCUS_EVT,$e)}),onBeforeUnmount(()=>{const _e=unref(re);off(_e,ENTRY_FOCUS_EVT,$e)})}});function _sfc_render$P($,k,V,z,j,oe){return renderSlot($.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$1(_sfc_main$1d,[["render",_sfc_render$P],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$1c=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$O($,k,V,z,j,oe){const re=resolveComponent("el-roving-focus-group-impl"),ie=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(ie,null,{default:withCtx(()=>[createVNode(re,normalizeProps(guardReactiveProps($.$attrs)),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$O],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _sfc_main$1b=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup($,{emit:k}){const{currentTabbedId:V,loop:z,onItemFocus:j,onItemShiftTab:oe}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:re}=inject(COLLECTION_INJECTION_KEY$1,void 0),ie=useId(),ae=ref(null),he=composeEventHandlers(pe=>{k("mousedown",pe)},pe=>{$.focusable?j(unref(ie)):pe.preventDefault()}),le=composeEventHandlers(pe=>{k("focus",pe)},()=>{j(unref(ie))}),ue=composeEventHandlers(pe=>{k("keydown",pe)},pe=>{const{key:$e,shiftKey:_e,target:Ce,currentTarget:Ie}=pe;if($e===EVENT_CODE.tab&&_e){oe();return}if(Ce!==Ie)return;const ze=getFocusIntent(pe);if(ze){pe.preventDefault();let qe=re().filter(Oe=>Oe.focusable).map(Oe=>Oe.ref);switch(ze){case"last":{qe.reverse();break}case"prev":case"next":{ze==="prev"&&qe.reverse();const Oe=qe.indexOf(Ie);qe=z.value?reorderArray(qe,Oe+1):qe.slice(Oe+1);break}}nextTick(()=>{focusFirst(qe)})}}),de=computed(()=>V.value===unref(ie));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:ae,tabIndex:computed(()=>unref(de)?0:-1),handleMousedown:he,handleFocus:le,handleKeydown:ue}),{id:ie,handleKeydown:ue,handleFocus:le,handleMousedown:he}}});function _sfc_render$N($,k,V,z,j,oe){const re=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(re,{id:$.id,focusable:$.focusable,active:$.active},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$N],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,effect:mo(oo({},useTooltipContentProps.effect),{default:"light"}),type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},buttonProps:{type:definePropType(Object)}}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home],LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("Dropdown"),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$1a=defineComponent({name:"ElDropdown",components:{ElButton,ElFocusTrap,ElButtonGroup,ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip,ElRovingFocusGroup,ElIcon,ArrowDown:arrowDown},props:dropdownProps,emits:["visible-change","click","command"],setup($,{emit:k}){const V=getCurrentInstance(),z=useNamespace("dropdown"),j=ref(),oe=ref(),re=ref(null),ie=ref(null),ae=ref(null),he=ref(null),le=ref(!1),ue=computed(()=>({maxHeight:addUnit($.maxHeight)})),de=computed(()=>[z.m(Ce.value)]);function pe(){$e()}function $e(){var At;(At=re.value)==null||At.onClose()}function _e(){var At;(At=re.value)==null||At.onOpen()}const Ce=useSize();function Ie(...At){k("command",...At)}function ze(){}function Et(){const At=unref(ie);At==null||At.focus(),he.value=null}function qe(At){he.value=At}function Oe(At){le.value||(At.preventDefault(),At.stopImmediatePropagation())}return provide(DROPDOWN_INJECTION_KEY,{contentRef:ie,isUsingKeyboard:le,onItemEnter:ze,onItemLeave:Et}),provide("elDropdown",{instance:V,dropdownSize:Ce,handleClick:pe,commandHandler:Ie,trigger:toRef($,"trigger"),hideOnClick:toRef($,"hideOnClick")}),{ns:z,scrollbar:ae,wrapStyle:ue,dropdownTriggerKls:de,dropdownSize:Ce,currentTabId:he,handleCurrentTabIdChange:qe,handlerMainButtonClick:At=>{k("click",At)},handleEntryFocus:Oe,handleClose:$e,handleOpen:_e,onMountOnFocus:At=>{var Lt,kt;At.preventDefault(),(kt=(Lt=ie.value)==null?void 0:Lt.focus)==null||kt.call(Lt,{preventScroll:!0})},popperRef:re,triggeringElementRef:j,referenceElementRef:oe}}});function _sfc_render$M($,k,V,z,j,oe){var re;const ie=resolveComponent("el-dropdown-collection"),ae=resolveComponent("el-roving-focus-group"),he=resolveComponent("el-focus-trap"),le=resolveComponent("el-scrollbar"),ue=resolveComponent("el-tooltip"),de=resolveComponent("el-button"),pe=resolveComponent("arrow-down"),$e=resolveComponent("el-icon"),_e=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled)])},[createVNode(ue,{ref:"popperRef",effect:$.effect,"fallback-placements":["bottom","top"],"popper-options":$.popperOptions,"gpu-acceleration":!1,"hide-after":$.trigger==="hover"?$.hideTimeout:0,"manual-mode":!0,placement:$.placement,"popper-class":[$.ns.e("popper"),$.popperClass],"reference-element":(re=$.referenceElementRef)==null?void 0:re.$el,trigger:$.trigger,"show-after":$.trigger==="hover"?$.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":$.triggeringElementRef,"virtual-triggering":$.splitButton,disabled:$.disabled,transition:`${$.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onShow:k[0]||(k[0]=Ce=>$.$emit("visible-change",!0)),onHide:k[1]||(k[1]=Ce=>$.$emit("visible-change",!1))},createSlots({content:withCtx(()=>[createVNode(le,{ref:"scrollbar","wrap-style":$.wrapStyle,tag:"div","view-class":$.ns.e("list")},{default:withCtx(()=>[createVNode(he,{trapped:"",onMountOnFocus:$.onMountOnFocus},{default:withCtx(()=>[createVNode(ae,{loop:$.loop,"current-tab-id":$.currentTabId,orientation:"horizontal",onCurrentTabIdChange:$.handleCurrentTabIdChange,onEntryFocus:$.handleEntryFocus},{default:withCtx(()=>[createVNode(ie,null,{default:withCtx(()=>[renderSlot($.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["onMountOnFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[$.splitButton?void 0:{name:"default",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.dropdownTriggerKls)},[renderSlot($.$slots,"default")],2)])}]),1032,["effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","show-after","virtual-ref","virtual-triggering","disabled","transition"]),$.splitButton?(openBlock(),createBlock(_e,{key:0},{default:withCtx(()=>[createVNode(de,mergeProps({ref:"referenceElementRef"},$.buttonProps,{size:$.dropdownSize,type:$.type,disabled:$.disabled,onClick:$.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),createVNode(de,mergeProps({ref:"triggeringElementRef"},$.buttonProps,{size:$.dropdownSize,type:$.type,class:$.ns.e("caret-button"),disabled:$.disabled}),{default:withCtx(()=>[createVNode($e,{class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"])]),_:1},16,["size","type","class","disabled"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$M],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$19=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup($,{emit:k}){const V=useNamespace("dropdown"),{collectionItemRef:z}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:j}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:oe,tabIndex:re,handleFocus:ie,handleKeydown:ae,handleMousedown:he}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),le=composeRefs(z,j,oe),ue=composeEventHandlers(de=>{const{code:pe}=de;if(pe===EVENT_CODE.enter||pe===EVENT_CODE.space)return de.preventDefault(),de.stopImmediatePropagation(),k("clickimpl",de),!0},ae);return{ns:V,itemRef:le,dataset:{[COLLECTION_ITEM_SIGN]:""},tabIndex:re,handleFocus:ie,handleKeydown:ue,handleMousedown:he}}}),_hoisted_1$A=["aria-disabled","tabindex"];function _sfc_render$L($,k,V,z,j,oe){const re=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[$.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,class:$.ns.bem("menu","item","divided")},$.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:$.itemRef},oo(oo({},$.dataset),$.$attrs),{"aria-disabled":$.disabled,class:[$.ns.be("menu","item"),$.ns.is("disabled",$.disabled)],tabindex:$.tabIndex,role:"menuitem",onClick:k[0]||(k[0]=ie=>$.$emit("clickimpl",ie)),onFocus:k[1]||(k[1]=(...ie)=>$.handleFocus&&$.handleFocus(...ie)),onKeydown:k[2]||(k[2]=(...ie)=>$.handleKeydown&&$.handleKeydown(...ie)),onMousedown:k[3]||(k[3]=(...ie)=>$.handleMousedown&&$.handleMousedown(...ie)),onPointermove:k[4]||(k[4]=ie=>$.$emit("pointermove",ie)),onPointerleave:k[5]||(k[5]=ie=>$.$emit("pointerleave",ie))}),[$.icon?(openBlock(),createBlock(re,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot($.$slots,"default")],16,_hoisted_1$A)],64)}var ElDropdownItemImpl=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$L],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const $=inject("elDropdown",{}),k=computed(()=>$==null?void 0:$.dropdownSize);return{elDropdown:$,_elDropdownSize:k}},_sfc_main$18=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup($,{emit:k,attrs:V}){const{elDropdown:z}=useDropdown(),j=getCurrentInstance(),oe=ref(null),re=computed(()=>{var pe,$e;return($e=(pe=unref(oe))==null?void 0:pe.textContent)!=null?$e:""}),{onItemEnter:ie,onItemLeave:ae}=inject(DROPDOWN_INJECTION_KEY,void 0),he=composeEventHandlers(pe=>(k("pointermove",pe),pe.defaultPrevented),whenMouse(pe=>{var $e;$.disabled?ae(pe):(ie(pe),pe.defaultPrevented||($e=pe.currentTarget)==null||$e.focus())})),le=composeEventHandlers(pe=>(k("pointerleave",pe),pe.defaultPrevented),whenMouse(pe=>{ae(pe)})),ue=composeEventHandlers(pe=>(k("click",pe),pe.defaultPrevented),pe=>{var $e,_e,Ce;if($.disabled){pe.stopImmediatePropagation();return}($e=z==null?void 0:z.hideOnClick)!=null&&$e.value&&((_e=z.handleClick)==null||_e.call(z)),(Ce=z.commandHandler)==null||Ce.call(z,$.command,j,pe)}),de=computed(()=>oo(oo({},$),V));return{handleClick:ue,handlePointerMove:he,handlePointerLeave:le,textContent:re,propsAndAttrs:de}}});function _sfc_render$K($,k,V,z,j,oe){var re;const ie=resolveComponent("el-dropdown-item-impl"),ae=resolveComponent("el-roving-focus-item"),he=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(he,{disabled:$.disabled,"text-value":(re=$.textValue)!=null?re:$.textContent},{default:withCtx(()=>[createVNode(ae,{focusable:!$.disabled},{default:withCtx(()=>[createVNode(ie,mergeProps($.propsAndAttrs,{onPointerleave:$.handlePointerLeave,onPointermove:$.handlePointerMove,onClickimpl:$.handleClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$K],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$17=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup($){const k=useNamespace("dropdown"),{_elDropdownSize:V}=useDropdown(),z=V.value,{focusTrapRef:j,onKeydown:oe}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:re}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:ie,getItems:ae}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:he,rovingFocusGroupRootStyle:le,tabIndex:ue,onBlur:de,onFocus:pe,onMousedown:$e}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:_e}=inject(COLLECTION_INJECTION_KEY$1,void 0),Ce=computed(()=>[k.b("menu"),k.bm("menu",z==null?void 0:z.value)]),Ie=composeRefs(re,ie,j,he,_e),ze=composeEventHandlers(qe=>{var Oe;(Oe=$.onKeydown)==null||Oe.call($,qe)},qe=>{const{currentTarget:Oe,code:Ue,target:Dt}=qe;if(Oe.contains(Dt),EVENT_CODE.tab===Ue&&qe.stopImmediatePropagation(),qe.preventDefault(),Dt!==unref(re)||!FIRST_LAST_KEYS.includes(Ue))return;const Lt=ae().filter(kt=>!kt.disabled).map(kt=>kt.ref);LAST_KEYS.includes(Ue)&&Lt.reverse(),focusFirst(Lt)});return{size:z,rovingFocusGroupRootStyle:le,tabIndex:ue,dropdownKls:Ce,dropdownListWrapperRef:Ie,handleKeydown:qe=>{ze(qe),oe(qe)},onBlur:de,onFocus:pe,onMousedown:$e}}});function _sfc_render$J($,k,V,z,j,oe){return openBlock(),createElementBlock("ul",{ref:$.dropdownListWrapperRef,class:normalizeClass($.dropdownKls),style:normalizeStyle($.rovingFocusGroupRootStyle),tabindex:-1,role:"menu",onBlur:k[0]||(k[0]=(...re)=>$.onBlur&&$.onBlur(...re)),onFocus:k[1]||(k[1]=(...re)=>$.onFocus&&$.onFocus(...re)),onKeydown:k[2]||(k[2]=(...re)=>$.handleKeydown&&$.handleKeydown(...re)),onMousedown:k[3]||(k[3]=(...re)=>$.onMousedown&&$.onMousedown(...re))},[renderSlot($.$slots,"default")],38)}var DropdownMenu=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$J],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ElDropdown=withInstall(Dropdown,{DropdownItem,DropdownMenu}),ElDropdownItem=withNoopInstall(DropdownItem),ElDropdownMenu=withNoopInstall(DropdownMenu);let id=0;const _sfc_main$16=defineComponent({name:"ImgEmpty",setup(){return{ns:useNamespace("empty"),id:++id}}}),_hoisted_1$z={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_hoisted_2$o=["id"],_hoisted_3$b=["stop-color"],_hoisted_4$7=["stop-color"],_hoisted_5$6=["id"],_hoisted_6$2=["stop-color"],_hoisted_7$2=["stop-color"],_hoisted_8$2=["id"],_hoisted_9$2={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10$2={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},_hoisted_11$2={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},_hoisted_12$2=["fill"],_hoisted_13$2=["fill"],_hoisted_14$2={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_hoisted_15$1=["fill"],_hoisted_16$1=["fill"],_hoisted_17$1=["fill"],_hoisted_18$1=["fill"],_hoisted_19$1=["fill"],_hoisted_20$1={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},_hoisted_21$1=["fill","xlink:href"],_hoisted_22$1=["fill","mask"],_hoisted_23$1=["fill"];function _sfc_render$I($,k,V,z,j,oe){return openBlock(),createElementBlock("svg",_hoisted_1$z,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${$.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${$.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$b),createBaseVNode("stop",{"stop-color":`var(${$.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$7)],8,_hoisted_2$o),createBaseVNode("linearGradient",{id:`linearGradient-2-${$.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${$.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$2),createBaseVNode("stop",{"stop-color":`var(${$.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7$2)],8,_hoisted_5$6),createBaseVNode("rect",{id:`path-3-${$.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,_hoisted_8$2)]),createBaseVNode("g",_hoisted_9$2,[createBaseVNode("g",_hoisted_10$2,[createBaseVNode("g",_hoisted_11$2,[createBaseVNode("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${$.ns.cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12$2),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${$.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,_hoisted_13$2),createBaseVNode("g",_hoisted_14$2,[createBaseVNode("polygon",{id:"Rectangle-Copy-10",fill:`var(${$.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_hoisted_15$1),createBaseVNode("polygon",{id:"Rectangle-Copy-11",fill:`var(${$.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16$1),createBaseVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${$.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_hoisted_17$1),createBaseVNode("polygon",{id:"Rectangle-Copy-13",fill:`var(${$.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_hoisted_18$1)]),createBaseVNode("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${$.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19$1),createBaseVNode("g",_hoisted_20$1,[createBaseVNode("use",{id:"Mask",fill:`var(${$.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${$.id}`},null,8,_hoisted_21$1),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${$.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${$.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_hoisted_22$1)]),createBaseVNode("polygon",{id:"Rectangle-Copy-18",fill:`var(${$.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_hoisted_23$1)])])])])}var ImgEmpty=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$I],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const emptyProps={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},_hoisted_1$y=["src"],_hoisted_2$n={key:1},__default__$l={name:"ElEmpty"},_sfc_main$15=defineComponent(mo(oo({},__default__$l),{props:emptyProps,setup($){const k=$,{t:V}=useLocale(),z=useNamespace("empty"),j=computed(()=>k.description||V("el.table.emptyText")),oe=computed(()=>({width:k.imageSize?`${k.imageSize}px`:""}));return(re,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(z).b())},[createBaseVNode("div",{class:normalizeClass(unref(z).e("image")),style:normalizeStyle(unref(oe))},[re.image?(openBlock(),createElementBlock("img",{key:0,src:re.image,ondragstart:"return false"},null,8,_hoisted_1$y)):renderSlot(re.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(z).e("description"))},[re.$slots.description?renderSlot(re.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$n,toDisplayString$1(unref(j)),1))],2),re.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(z).e("bottom"))},[renderSlot(re.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}}));var Empty=_export_sfc$1(_sfc_main$15,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty),formProps=buildProps({model:Object,rules:{type:definePropType(Object)},labelPosition:String,labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),formEmits={validate:($,k,V)=>(isArray$4($)||isString$3($))&&isBoolean$1(k)&&isString$3(V)};function useFormLabelWidth(){const $=ref([]),k=computed(()=>{if(!$.value.length)return"0";const oe=Math.max(...$.value);return oe?`${oe}px`:""});function V(oe){return $.value.indexOf(oe)}function z(oe,re){if(oe&&re){const ie=V(re);$.value.splice(ie,1,oe)}else oe&&$.value.push(oe)}function j(oe){const re=V(oe);re>-1&&$.value.splice(re,1)}return{autoLabelWidth:k,registerLabelWidth:z,deregisterLabelWidth:j}}const filterFields=($,k)=>{const V=castArray$1(k);return V.length>0?$.filter(z=>z.prop&&V.includes(z.prop)):$},__default__$k={name:"ElForm"},_sfc_main$14=defineComponent(mo(oo({},__default__$k),{props:formProps,emits:formEmits,setup($,{expose:k,emit:V}){const z=$,j=[],oe=useSize(),re=useNamespace("form"),ie=computed(()=>{const{labelPosition:ze,inline:Et}=z;return[re.b(),re.m(oe.value||"default"),{[re.m(`label-${ze}`)]:ze,[re.m("inline")]:Et}]}),ae=ze=>{j.push(ze)},he=ze=>{ze.prop&&j.splice(j.indexOf(ze),1)},le=(ze=[])=>{!z.model||filterFields(j,ze).forEach(Et=>Et.resetField())},ue=(ze=[])=>{filterFields(j,ze).forEach(Et=>Et.clearValidate())},de=computed(()=>!!z.model),pe=ze=>{if(j.length===0)return[];const Et=filterFields(j,ze);return Et.length?Et:[]},$e=async ze=>Ce(void 0,ze),_e=async(ze=[])=>{if(!de.value)return!1;const Et=pe(ze);if(Et.length===0)return!0;let qe={};for(const Oe of Et)try{await Oe.validate("")}catch(Ue){qe=oo(oo({},qe),Ue)}return Object.keys(qe).length===0?!0:Promise.reject(qe)},Ce=async(ze=[],Et)=>{const qe=!isFunction$3(Et);try{const Oe=await _e(ze);return Oe===!0&&(Et==null||Et(Oe)),Oe}catch(Oe){const Ue=Oe;return z.scrollToError&&Ie(Object.keys(Ue)[0]),Et==null||Et(!1,Ue),qe&&Promise.reject(Ue)}},Ie=ze=>{var Et;const qe=filterFields(j,ze)[0];qe&&((Et=qe.$el)==null||Et.scrollIntoView())};return watch$1(()=>z.rules,()=>{z.validateOnRuleChange&&$e()},{deep:!0}),provide(formContextKey,reactive(oo(mo(oo({},toRefs(z)),{emit:V,resetFields:le,clearValidate:ue,validateField:Ce,addField:ae,removeField:he}),useFormLabelWidth()))),k({validate:$e,validateField:Ce,resetFields:le,clearValidate:ue,scrollToField:Ie}),(ze,Et)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(ie))},[renderSlot(ze.$slots,"default")],2))}}));var Form=_export_sfc$1(_sfc_main$14,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign||function($){for(var k=1;k1?k-1:0),z=1;z=oe)return ie;switch(ie){case"%s":return String(V[j++]);case"%d":return Number(V[j++]);case"%j":try{return JSON.stringify(V[j++])}catch{return"[Circular]"}break;default:return ie}});return re}return $}function isNativeStringType($){return $==="string"||$==="url"||$==="hex"||$==="email"||$==="date"||$==="pattern"}function isEmptyValue($,k){return!!($==null||k==="array"&&Array.isArray($)&&!$.length||isNativeStringType(k)&&typeof $=="string"&&!$)}function asyncParallelArray($,k,V){var z=[],j=0,oe=$.length;function re(ie){z.push.apply(z,ie||[]),j++,j===oe&&V(z)}$.forEach(function(ie){k(ie,re)})}function asyncSerialArray($,k,V){var z=0,j=$.length;function oe(re){if(re&&re.length){V(re);return}var ie=z;z=z+1,ie()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function(k){return types.number(k)&&parseInt(k,10)===k},float:function(k){return types.number(k)&&!types.integer(k)},array:function(k){return Array.isArray(k)},regexp:function(k){if(k instanceof RegExp)return!0;try{return!!new RegExp(k)}catch{return!1}},date:function(k){return typeof k.getTime=="function"&&typeof k.getMonth=="function"&&typeof k.getYear=="function"&&!isNaN(k.getTime())},number:function(k){return isNaN(k)?!1:typeof k=="number"},object:function(k){return typeof k=="object"&&!types.array(k)},method:function(k){return typeof k=="function"},email:function(k){return typeof k=="string"&&k.length<=320&&!!k.match(pattern$2.email)},url:function(k){return typeof k=="string"&&k.length<=2048&&!!k.match(pattern$2.url)},hex:function(k){return typeof k=="string"&&!!k.match(pattern$2.hex)}},type$1=function(k,V,z,j,oe){if(k.required&&V===void 0){required$1(k,V,z,j,oe);return}var re=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ie=k.type;re.indexOf(ie)>-1?types[ie](V)||j.push(format$1(oe.messages.types[ie],k.fullField,k.type)):ie&&typeof V!==k.type&&j.push(format$1(oe.messages.types[ie],k.fullField,k.type))},range=function(k,V,z,j,oe){var re=typeof k.len=="number",ie=typeof k.min=="number",ae=typeof k.max=="number",he=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,le=V,ue=null,de=typeof V=="number",pe=typeof V=="string",$e=Array.isArray(V);if(de?ue="number":pe?ue="string":$e&&(ue="array"),!ue)return!1;$e&&(le=V.length),pe&&(le=V.replace(he,"_").length),re?le!==k.len&&j.push(format$1(oe.messages[ue].len,k.fullField,k.len)):ie&&!ae&&lek.max?j.push(format$1(oe.messages[ue].max,k.fullField,k.max)):ie&&ae&&(lek.max)&&j.push(format$1(oe.messages[ue].range,k.fullField,k.min,k.max))},ENUM$1="enum",enumerable$1=function(k,V,z,j,oe){k[ENUM$1]=Array.isArray(k[ENUM$1])?k[ENUM$1]:[],k[ENUM$1].indexOf(V)===-1&&j.push(format$1(oe.messages[ENUM$1],k.fullField,k[ENUM$1].join(", ")))},pattern$1=function(k,V,z,j,oe){if(k.pattern){if(k.pattern instanceof RegExp)k.pattern.lastIndex=0,k.pattern.test(V)||j.push(format$1(oe.messages.pattern.mismatch,k.fullField,V,k.pattern));else if(typeof k.pattern=="string"){var re=new RegExp(k.pattern);re.test(V)||j.push(format$1(oe.messages.pattern.mismatch,k.fullField,V,k.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V,"string")&&!k.required)return z();rules.required(k,V,j,re,oe,"string"),isEmptyValue(V,"string")||(rules.type(k,V,j,re,oe),rules.range(k,V,j,re,oe),rules.pattern(k,V,j,re,oe),k.whitespace===!0&&rules.whitespace(k,V,j,re,oe))}z(re)},method=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&rules.type(k,V,j,re,oe)}z(re)},number$1=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(V===""&&(V=void 0),isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&(rules.type(k,V,j,re,oe),rules.range(k,V,j,re,oe))}z(re)},_boolean=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&rules.type(k,V,j,re,oe)}z(re)},regexp=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),isEmptyValue(V)||rules.type(k,V,j,re,oe)}z(re)},integer=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&(rules.type(k,V,j,re,oe),rules.range(k,V,j,re,oe))}z(re)},floatFn=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&(rules.type(k,V,j,re,oe),rules.range(k,V,j,re,oe))}z(re)},array=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(V==null&&!k.required)return z();rules.required(k,V,j,re,oe,"array"),V!=null&&(rules.type(k,V,j,re,oe),rules.range(k,V,j,re,oe))}z(re)},object=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&rules.type(k,V,j,re,oe)}z(re)},ENUM="enum",enumerable=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe),V!==void 0&&rules[ENUM](k,V,j,re,oe)}z(re)},pattern=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V,"string")&&!k.required)return z();rules.required(k,V,j,re,oe),isEmptyValue(V,"string")||rules.pattern(k,V,j,re,oe)}z(re)},date=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V,"date")&&!k.required)return z();if(rules.required(k,V,j,re,oe),!isEmptyValue(V,"date")){var ae;V instanceof Date?ae=V:ae=new Date(V),rules.type(k,ae,j,re,oe),ae&&rules.range(k,ae.getTime(),j,re,oe)}}z(re)},required=function(k,V,z,j,oe){var re=[],ie=Array.isArray(V)?"array":typeof V;rules.required(k,V,j,re,oe,ie),z(re)},type=function(k,V,z,j,oe){var re=k.type,ie=[],ae=k.required||!k.required&&j.hasOwnProperty(k.field);if(ae){if(isEmptyValue(V,re)&&!k.required)return z();rules.required(k,V,j,ie,oe,re),isEmptyValue(V,re)||rules.type(k,V,j,ie,oe)}z(ie)},any=function(k,V,z,j,oe){var re=[],ie=k.required||!k.required&&j.hasOwnProperty(k.field);if(ie){if(isEmptyValue(V)&&!k.required)return z();rules.required(k,V,j,re,oe)}z(re)},validators={string,method,number:number$1,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var k=JSON.parse(JSON.stringify(this));return k.clone=this.clone,k}}}var messages$1=newMessages(),Schema=function(){function $(V){this.rules=null,this._messages=messages$1,this.define(V)}var k=$.prototype;return k.define=function(z){var j=this;if(!z)throw new Error("Cannot configure a schema with no rules");if(typeof z!="object"||Array.isArray(z))throw new Error("Rules must be an object");this.rules={},Object.keys(z).forEach(function(oe){var re=z[oe];j.rules[oe]=Array.isArray(re)?re:[re]})},k.messages=function(z){return z&&(this._messages=deepMerge(newMessages(),z)),this._messages},k.validate=function(z,j,oe){var re=this;j===void 0&&(j={}),oe===void 0&&(oe=function(){});var ie=z,ae=j,he=oe;if(typeof ae=="function"&&(he=ae,ae={}),!this.rules||Object.keys(this.rules).length===0)return he&&he(null,ie),Promise.resolve(ie);function le(_e){var Ce=[],Ie={};function ze(qe){if(Array.isArray(qe)){var Oe;Ce=(Oe=Ce).concat.apply(Oe,qe)}else Ce.push(qe)}for(var Et=0;Et<_e.length;Et++)ze(_e[Et]);Ce.length?(Ie=convertFieldsError(Ce),he(Ce,Ie)):he(null,ie)}if(ae.messages){var ue=this.messages();ue===messages$1&&(ue=newMessages()),deepMerge(ue,ae.messages),ae.messages=ue}else ae.messages=this.messages();var de={},pe=ae.keys||Object.keys(this.rules);pe.forEach(function(_e){var Ce=re.rules[_e],Ie=ie[_e];Ce.forEach(function(ze){var Et=ze;typeof Et.transform=="function"&&(ie===z&&(ie=_extends({},ie)),Ie=ie[_e]=Et.transform(Ie)),typeof Et=="function"?Et={validator:Et}:Et=_extends({},Et),Et.validator=re.getValidationMethod(Et),Et.validator&&(Et.field=_e,Et.fullField=Et.fullField||_e,Et.type=re.getType(Et),de[_e]=de[_e]||[],de[_e].push({rule:Et,value:Ie,source:ie,field:_e}))})});var $e={};return asyncMap(de,ae,function(_e,Ce){var Ie=_e.rule,ze=(Ie.type==="object"||Ie.type==="array")&&(typeof Ie.fields=="object"||typeof Ie.defaultField=="object");ze=ze&&(Ie.required||!Ie.required&&_e.value),Ie.field=_e.field;function Et(Ue,Dt){return _extends({},Dt,{fullField:Ie.fullField+"."+Ue,fullFields:Ie.fullFields?[].concat(Ie.fullFields,[Ue]):[Ue]})}function qe(Ue){Ue===void 0&&(Ue=[]);var Dt=Array.isArray(Ue)?Ue:[Ue];!ae.suppressWarning&&Dt.length&&$.warning("async-validator:",Dt),Dt.length&&Ie.message!==void 0&&(Dt=[].concat(Ie.message));var At=Dt.map(complementError(Ie,ie));if(ae.first&&At.length)return $e[Ie.field]=1,Ce(At);if(!ze)Ce(At);else{if(Ie.required&&!_e.value)return Ie.message!==void 0?At=[].concat(Ie.message).map(complementError(Ie,ie)):ae.error&&(At=[ae.error(Ie,format$1(ae.messages.required,Ie.field))]),Ce(At);var Lt={};Ie.defaultField&&Object.keys(_e.value).map(function(jt){Lt[jt]=Ie.defaultField}),Lt=_extends({},Lt,_e.rule.fields);var kt={};Object.keys(Lt).forEach(function(jt){var vn=Lt[jt],$n=Array.isArray(vn)?vn:[vn];kt[jt]=$n.map(Et.bind(null,jt))});var Pt=new $(kt);Pt.messages(ae.messages),_e.rule.options&&(_e.rule.options.messages=ae.messages,_e.rule.options.error=ae.error),Pt.validate(_e.value,_e.rule.options||ae,function(jt){var vn=[];At&&At.length&&vn.push.apply(vn,At),jt&&jt.length&&vn.push.apply(vn,jt),Ce(vn.length?vn:null)})}}var Oe;if(Ie.asyncValidator)Oe=Ie.asyncValidator(Ie,_e.value,qe,_e.source,ae);else if(Ie.validator){try{Oe=Ie.validator(Ie,_e.value,qe,_e.source,ae)}catch(Ue){console.error==null||console.error(Ue),setTimeout(function(){throw Ue},0),qe(Ue.message)}Oe===!0?qe():Oe===!1?qe(typeof Ie.message=="function"?Ie.message(Ie.fullField||Ie.field):Ie.message||(Ie.fullField||Ie.field)+" fails"):Oe instanceof Array?qe(Oe):Oe instanceof Error&&qe(Oe.message)}Oe&&Oe.then&&Oe.then(function(){return qe()},function(Ue){return qe(Ue)})},function(_e){le(_e)},ie)},k.getType=function(z){if(z.type===void 0&&z.pattern instanceof RegExp&&(z.type="pattern"),typeof z.validator!="function"&&z.type&&!validators.hasOwnProperty(z.type))throw new Error(format$1("Unknown rule type %s",z.type));return z.type||"string"},k.getValidationMethod=function(z){if(typeof z.validator=="function")return z.validator;var j=Object.keys(z),oe=j.indexOf("message");return oe!==-1&&j.splice(oe,1),j.length===1&&j[0]==="required"?validators.required:validators[this.getType(z)]||void 0},$}();Schema.register=function(k,V){if(typeof V!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[k]=V};Schema.warning=warning;Schema.messages=messages$1;Schema.validators=validators;const formItemValidateStates=["","error","validating","success"],formItemProps=buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:definePropType([Object,Array])},error:String,validateStatus:{type:String,values:formItemValidateStates},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes}}),COMPONENT_NAME$c="ElLabelWrap";var FormLabelWrap=defineComponent({name:COMPONENT_NAME$c,props:{isAutoWidth:Boolean,updateAll:Boolean},setup($,{slots:k}){const V=inject(formContextKey,void 0);inject(formItemContextKey)||throwError(COMPONENT_NAME$c,"usage: ");const j=useNamespace("form"),oe=ref(),re=ref(0),ie=()=>{var le;if((le=oe.value)!=null&&le.firstElementChild){const ue=window.getComputedStyle(oe.value.firstElementChild).width;return Math.ceil(Number.parseFloat(ue))}else return 0},ae=(le="update")=>{nextTick(()=>{k.default&&$.isAutoWidth&&(le==="update"?re.value=ie():le==="remove"&&(V==null||V.deregisterLabelWidth(re.value)))})},he=()=>ae("update");return onMounted(()=>{he()}),onBeforeUnmount(()=>{ae("remove")}),onUpdated(()=>he()),watch$1(re,(le,ue)=>{$.updateAll&&(V==null||V.registerLabelWidth(le,ue))}),useResizeObserver(computed(()=>{var le,ue;return(ue=(le=oe.value)==null?void 0:le.firstElementChild)!=null?ue:null}),he),()=>{var le,ue;if(!k)return null;const{isAutoWidth:de}=$;if(de){const pe=V==null?void 0:V.autoLabelWidth,$e={};if(pe&&pe!=="auto"){const _e=Math.max(0,Number.parseInt(pe,10)-re.value),Ce=V.labelPosition==="left"?"marginRight":"marginLeft";_e&&($e[Ce]=`${_e}px`)}return createVNode("div",{ref:oe,class:[j.be("item","label-wrap")],style:$e},[(le=k.default)==null?void 0:le.call(k)])}else return createVNode(Fragment,{ref:oe},[(ue=k.default)==null?void 0:ue.call(k)])}}});const _hoisted_1$x=["role","aria-labelledby"],__default__$j={name:"ElFormItem"},_sfc_main$13=defineComponent(mo(oo({},__default__$j),{props:formItemProps,setup($,{expose:k}){const V=$,z=useSlots(),j=inject(formContextKey,void 0),oe=inject(formItemContextKey,void 0),re=useSize(void 0,{formItem:!1}),ie=useNamespace("form-item"),ae=useId().value,he=ref([]),le=ref(""),ue=refDebounced(le,100),de=ref(""),pe=ref();let $e,_e=!1;const Ce=computed(()=>{if((j==null?void 0:j.labelPosition)==="top")return{};const Vn=addUnit(V.labelWidth||(j==null?void 0:j.labelWidth)||"");return Vn?{width:Vn}:{}}),Ie=computed(()=>{if((j==null?void 0:j.labelPosition)==="top"||(j==null?void 0:j.inline))return{};if(!V.label&&!V.labelWidth&&Lt)return{};const Vn=addUnit(V.labelWidth||(j==null?void 0:j.labelWidth)||"");return!V.label&&!z.label?{marginLeft:Vn}:{}}),ze=computed(()=>[ie.b(),ie.m(re.value),ie.is("error",le.value==="error"),ie.is("validating",le.value==="validating"),ie.is("success",le.value==="success"),ie.is("required",$n.value||V.required),ie.is("no-asterisk",j==null?void 0:j.hideRequiredAsterisk),{[ie.m("feedback")]:j==null?void 0:j.statusIcon}]),Et=computed(()=>isBoolean$1(V.inlineMessage)?V.inlineMessage:(j==null?void 0:j.inlineMessage)||!1),qe=computed(()=>[ie.e("error"),{[ie.em("error","inline")]:Et.value}]),Oe=computed(()=>V.prop?isString$3(V.prop)?V.prop:V.prop.join("."):""),Ue=computed(()=>!!(V.label||z.label)),Dt=computed(()=>V.for||he.value.length===1?he.value[0]:void 0),At=computed(()=>!Dt.value&&Ue.value),Lt=!!oe,kt=computed(()=>{const Vn=j==null?void 0:j.model;if(!(!Vn||!V.prop))return getProp(Vn,V.prop).value}),Pt=computed(()=>{const Vn=V.rules?castArray$1(V.rules):[],Fn=j==null?void 0:j.rules;if(Fn&&V.prop){const zn=getProp(Fn,V.prop).value;zn&&Vn.push(...castArray$1(zn))}return V.required!==void 0&&Vn.push({required:!!V.required}),Vn}),jt=computed(()=>Pt.value.length>0),vn=Vn=>Pt.value.filter(zn=>!zn.trigger||!Vn?!0:Array.isArray(zn.trigger)?zn.trigger.includes(Vn):zn.trigger===Vn).map(Pn=>{var Hn=Pn,{trigger:zn}=Hn,Xn=Zo(Hn,["trigger"]);return Xn}),$n=computed(()=>Pt.value.some(Vn=>Vn.required===!0)),wn=computed(()=>{var Vn;return ue.value==="error"&&V.showMessage&&((Vn=j==null?void 0:j.showMessage)!=null?Vn:!0)}),_n=computed(()=>`${V.label||""}${(j==null?void 0:j.labelSuffix)||""}`),En=Vn=>{le.value=Vn},Sn=Vn=>{var Fn,zn;const{errors:Xn,fields:Pn}=Vn;(!Xn||!Pn)&&console.error(Vn),En("error"),de.value=Xn?(zn=(Fn=Xn==null?void 0:Xn[0])==null?void 0:Fn.message)!=null?zn:`${V.prop} is required`:"",j==null||j.emit("validate",V.prop,!1,de.value)},An=()=>{En("success"),j==null||j.emit("validate",V.prop,!0,"")},Cn=async Vn=>{const Fn=Oe.value;return new Schema({[Fn]:Vn}).validate({[Fn]:kt.value},{firstFields:!0}).then(()=>(An(),!0)).catch(Xn=>(Sn(Xn),Promise.reject(Xn)))},Tn=async(Vn,Fn)=>{if(_e)return _e=!1,!1;const zn=isFunction$3(Fn);if(!jt.value)return Fn==null||Fn(!1),!1;const Xn=vn(Vn);return Xn.length===0?(Fn==null||Fn(!0),!0):(En("validating"),Cn(Xn).then(()=>(Fn==null||Fn(!0),!0)).catch(Pn=>{const{fields:Hn}=Pn;return Fn==null||Fn(!1,Hn),zn?!1:Promise.reject(Hn)}))},Nn=()=>{En(""),de.value=""},xn=async()=>{const Vn=j==null?void 0:j.model;if(!Vn||!V.prop)return;const Fn=getProp(Vn,V.prop);isEqual$1(Fn.value,$e)||(_e=!0),Fn.value=$e,await nextTick(),Nn()},On=Vn=>{he.value.includes(Vn)||he.value.push(Vn)},Ln=Vn=>{he.value=he.value.filter(Fn=>Fn!==Vn)};watch$1(()=>V.error,Vn=>{de.value=Vn||"",En(Vn?"error":"")},{immediate:!0}),watch$1(()=>V.validateStatus,Vn=>En(Vn||""));const Bn=reactive(mo(oo({},toRefs(V)),{$el:pe,size:re,validateState:le,labelId:ae,inputIds:he,isGroup:At,addInputId:On,removeInputId:Ln,resetField:xn,clearValidate:Nn,validate:Tn}));return provide(formItemContextKey,Bn),onMounted(()=>{V.prop&&(j==null||j.addField(Bn),$e=clone(kt.value))}),onBeforeUnmount(()=>{j==null||j.removeField(Bn)}),k({size:re,validateMessage:de,validateState:le,validate:Tn,clearValidate:Nn,resetField:xn}),(Vn,Fn)=>{var zn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:pe,class:normalizeClass(unref(ze)),role:unref(At)?"group":void 0,"aria-labelledby":unref(At)?unref(ae):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(Ce).width==="auto","update-all":((zn=unref(j))==null?void 0:zn.labelWidth)==="auto"},{default:withCtx(()=>[unref(Ue)?(openBlock(),createBlock(resolveDynamicComponent(unref(Dt)?"label":"div"),{key:0,id:unref(ae),for:unref(Dt),class:normalizeClass(unref(ie).e("label")),style:normalizeStyle(unref(Ce))},{default:withCtx(()=>[renderSlot(Vn.$slots,"label",{label:unref(_n)},()=>[createTextVNode(toDisplayString$1(unref(_n)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content")),style:normalizeStyle(unref(Ie))},[renderSlot(Vn.$slots,"default"),createVNode(Transition,{name:`${unref(ie).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(wn)?renderSlot(Vn.$slots,"error",{key:0,error:de.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(qe))},toDisplayString$1(de.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$x)}}}));var FormItem=_export_sfc$1(_sfc_main$13,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),imageViewerEmits={close:()=>!0,switch:$=>typeof $=="number"},_hoisted_1$w=["src"],__default__$i={name:"ElImageViewer"},_sfc_main$12=defineComponent(mo(oo({},__default__$i),{props:imageViewerProps,emits:imageViewerEmits,setup($,{emit:k}){const V=$,z={CONTAIN:{name:"contain",icon:markRaw(fullScreen)},ORIGINAL:{name:"original",icon:markRaw(scaleToOriginal)}},j=isFirefox()?"DOMMouseScroll":"mousewheel",{t:oe}=useLocale(),re=useNamespace("image-viewer"),{nextZIndex:ie}=useZIndex(),ae=ref(),he=ref([]),le=effectScope(),ue=ref(!0),de=ref(V.initialIndex),pe=ref(z.CONTAIN),$e=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),_e=computed(()=>{const{urlList:_n}=V;return _n.length<=1}),Ce=computed(()=>de.value===0),Ie=computed(()=>de.value===V.urlList.length-1),ze=computed(()=>V.urlList[de.value]),Et=computed(()=>{const{scale:_n,deg:En,offsetX:Sn,offsetY:An,enableTransition:Cn}=$e.value;let Tn=Sn/_n,Nn=An/_n;switch(En%360){case 90:case-270:[Tn,Nn]=[Nn,-Tn];break;case 180:case-180:[Tn,Nn]=[-Tn,-Nn];break;case 270:case-90:[Tn,Nn]=[-Nn,Tn];break}const xn={transform:`scale(${_n}) rotate(${En}deg) translate(${Tn}px, ${Nn}px)`,transition:Cn?"transform .3s":""};return pe.value.name===z.CONTAIN.name&&(xn.maxWidth=xn.maxHeight="100%"),xn}),qe=computed(()=>isNumber$1(V.zIndex)?V.zIndex:ie());function Oe(){Dt(),k("close")}function Ue(){const _n=throttle(Sn=>{switch(Sn.code){case EVENT_CODE.esc:V.closeOnPressEscape&&Oe();break;case EVENT_CODE.space:jt();break;case EVENT_CODE.left:vn();break;case EVENT_CODE.up:wn("zoomIn");break;case EVENT_CODE.right:$n();break;case EVENT_CODE.down:wn("zoomOut");break}}),En=throttle(Sn=>{(Sn.wheelDelta?Sn.wheelDelta:-Sn.detail)>0?wn("zoomIn",{zoomRate:1.2,enableTransition:!1}):wn("zoomOut",{zoomRate:1.2,enableTransition:!1})});le.run(()=>{useEventListener(document,"keydown",_n),useEventListener(document,j,En)})}function Dt(){le.stop()}function At(){ue.value=!1}function Lt(_n){ue.value=!1,_n.target.alt=oe("el.image.error")}function kt(_n){if(ue.value||_n.button!==0||!ae.value)return;$e.value.enableTransition=!1;const{offsetX:En,offsetY:Sn}=$e.value,An=_n.pageX,Cn=_n.pageY,Tn=throttle(xn=>{$e.value=mo(oo({},$e.value),{offsetX:En+xn.pageX-An,offsetY:Sn+xn.pageY-Cn})}),Nn=useEventListener(document,"mousemove",Tn);useEventListener(document,"mouseup",()=>{Nn()}),_n.preventDefault()}function Pt(){$e.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function jt(){if(ue.value)return;const _n=Object.keys(z),En=Object.values(z),Sn=pe.value.name,Cn=(En.findIndex(Tn=>Tn.name===Sn)+1)%_n.length;pe.value=z[_n[Cn]],Pt()}function vn(){if(Ce.value&&!V.infinite)return;const _n=V.urlList.length;de.value=(de.value-1+_n)%_n}function $n(){if(Ie.value&&!V.infinite)return;const _n=V.urlList.length;de.value=(de.value+1)%_n}function wn(_n,En={}){if(ue.value)return;const{zoomRate:Sn,rotateDeg:An,enableTransition:Cn}=oo({zoomRate:1.4,rotateDeg:90,enableTransition:!0},En);switch(_n){case"zoomOut":$e.value.scale>.2&&($e.value.scale=Number.parseFloat(($e.value.scale/Sn).toFixed(3)));break;case"zoomIn":$e.value.scale<7&&($e.value.scale=Number.parseFloat(($e.value.scale*Sn).toFixed(3)));break;case"clockwise":$e.value.deg+=An;break;case"anticlockwise":$e.value.deg-=An;break}$e.value.enableTransition=Cn}return watch$1(ze,()=>{nextTick(()=>{const _n=he.value[0];_n!=null&&_n.complete||(ue.value=!0)})}),watch$1(de,_n=>{Pt(),k("switch",_n)}),onMounted(()=>{var _n,En;Ue(),(En=(_n=ae.value)==null?void 0:_n.focus)==null||En.call(_n)}),(_n,En)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!_n.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:ae,tabindex:-1,class:normalizeClass(unref(re).e("wrapper")),style:normalizeStyle({zIndex:unref(qe)})},[createBaseVNode("div",{class:normalizeClass(unref(re).e("mask")),onClick:En[0]||(En[0]=withModifiers(Sn=>_n.hideOnClickModal&&Oe(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(re).e("btn"),unref(re).e("close")]),onClick:Oe},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close$2))]),_:1})],2),createCommentVNode(" ARROW "),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(re).e("btn"),unref(re).e("prev"),unref(re).is("disabled",!_n.infinite&&unref(Ce))]),onClick:vn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrowLeft))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(re).e("btn"),unref(re).e("next"),unref(re).is("disabled",!_n.infinite&&unref(Ie))]),onClick:$n},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrowRight))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(re).e("btn"),unref(re).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(re).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:En[1]||(En[1]=Sn=>wn("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoomOut))]),_:1}),createVNode(unref(ElIcon),{onClick:En[2]||(En[2]=Sn=>wn("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoomIn))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(re).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:jt},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(pe.value.icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(re).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:En[3]||(En[3]=Sn=>wn("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refreshLeft))]),_:1}),createVNode(unref(ElIcon),{onClick:En[4]||(En[4]=Sn=>wn("clockwise"))},{default:withCtx(()=>[createVNode(unref(refreshRight))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(re).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.urlList,(Sn,An)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Cn=>he.value[An]=Cn,key:Sn,src:Sn,style:normalizeStyle(unref(Et)),class:normalizeClass(unref(re).e("img")),onLoad:At,onError:Lt,onMousedown:kt},null,46,_hoisted_1$w)),[[vShow,An===de.value]])),128))],2),renderSlot(_n.$slots,"default")],6)]),_:3})],8,["disabled"]))}}));var ImageViewer=_export_sfc$1(_sfc_main$12,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},lazy:{type:Boolean,default:!1},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),imageEmits={error:$=>$ instanceof Event,switch:$=>isNumber$1($),close:()=>!0},_hoisted_1$v=["src"],_hoisted_2$m={key:0},__default__$h={name:"ElImage",inheritAttrs:!1},_sfc_main$11=defineComponent(mo(oo({},__default__$h),{props:imageProps,emits:imageEmits,setup($,{emit:k}){const V=$;let z="";const{t:j}=useLocale(),oe=useNamespace("image"),re=useAttrs$1(),ie=useAttrs(),ae=ref(!1),he=ref(!0),le=ref(0),ue=ref(0),de=ref(!1),pe=ref(),$e=ref();let _e,Ce;const Ie=computed(()=>re.style),ze=computed(()=>{const{fit:_n}=V;return isClient&&_n?{objectFit:_n}:{}}),Et=computed(()=>{const{previewSrcList:_n}=V;return Array.isArray(_n)&&_n.length>0}),qe=computed(()=>{const{previewSrcList:_n,initialIndex:En}=V;let Sn=En;return En>_n.length-1&&(Sn=0),Sn}),Oe=()=>{if(!isClient)return;he.value=!0,ae.value=!1;const _n=new Image,En=V.src;_n.addEventListener("load",Sn=>{En===V.src&&Ue(Sn,_n)}),_n.addEventListener("error",Sn=>{En===V.src&&Dt(Sn)}),Object.entries(re).forEach(([Sn,An])=>{Sn.toLowerCase()!=="onload"&&_n.setAttribute(Sn,An)}),_n.src=En};function Ue(_n,En){le.value=En.width,ue.value=En.height,he.value=!1,ae.value=!1}function Dt(_n){he.value=!1,ae.value=!0,k("error",_n)}function At(){isInContainer(pe.value,$e.value)&&(Oe(),Pt())}const Lt=useThrottleFn(At,200);async function kt(){var _n;if(!isClient)return;await nextTick();const{scrollContainer:En}=V;isElement(En)?$e.value=En:isString$3(En)&&En!==""?$e.value=(_n=document.querySelector(En))!=null?_n:void 0:pe.value&&($e.value=getScrollContainer(pe.value)),$e.value&&(_e=useEventListener($e,"scroll",Lt),setTimeout(()=>At(),100))}function Pt(){!isClient||!$e.value||!Lt||(_e(),$e.value=void 0)}function jt(_n){if(!!_n.ctrlKey){if(_n.deltaY<0)return _n.preventDefault(),!1;if(_n.deltaY>0)return _n.preventDefault(),!1}}function vn(){!Et.value||(Ce=useEventListener("wheel",jt,{passive:!1}),z=document.body.style.overflow,document.body.style.overflow="hidden",de.value=!0)}function $n(){Ce==null||Ce(),document.body.style.overflow=z,de.value=!1,k("close")}function wn(_n){k("switch",_n)}return watch$1(()=>V.src,()=>{V.lazy?(he.value=!0,ae.value=!1,Pt(),kt()):Oe()}),onMounted(()=>{V.lazy?kt():Oe()}),(_n,En)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:pe,class:normalizeClass([unref(oe).b(),_n.$attrs.class]),style:normalizeStyle(unref(Ie))},[he.value?renderSlot(_n.$slots,"placeholder",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(oe).e("placeholder"))},null,2)]):ae.value?renderSlot(_n.$slots,"error",{key:1},()=>[createBaseVNode("div",{class:normalizeClass(unref(oe).e("error"))},toDisplayString$1(unref(j)("el.image.error")),3)]):(openBlock(),createElementBlock("img",mergeProps({key:2},unref(ie),{src:_n.src,style:unref(ze),class:[unref(oe).e("inner"),unref(Et)?unref(oe).e("preview"):""],onClick:vn}),null,16,_hoisted_1$v)),unref(Et)?(openBlock(),createElementBlock(Fragment,{key:3},[de.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":_n.zIndex,"initial-index":unref(qe),infinite:_n.infinite,"url-list":_n.previewSrcList,"hide-on-click-modal":_n.hideOnClickModal,teleported:_n.previewTeleported,"close-on-press-escape":_n.closeOnPressEscape,onClose:$n,onSwitch:wn},{default:withCtx(()=>[_n.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$m,[renderSlot(_n.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],2112)):createCommentVNode("v-if",!0)],6))}}));var Image$1=_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ElImage=withInstall(Image$1),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:{type:Number},disabled:{type:Boolean,default:!1},size:{type:String,values:componentSizes},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},name:String,label:String,placeholder:String,precision:{type:Number,validator:$=>$>=0&&$===Number.parseInt(`${$}`,10)}}),inputNumberEmits={change:($,k)=>$!==k,blur:$=>$ instanceof FocusEvent,focus:$=>$ instanceof FocusEvent,input:$=>isNumber$1($),"update:modelValue":$=>isNumber$1($)||$===void 0},_sfc_main$10=defineComponent({name:"ElInputNumber",components:{ElInput,ElIcon,ArrowUp:arrowUp,ArrowDown:arrowDown,Plus:plus,Minus:minus},directives:{RepeatClick},props:inputNumberProps,emits:inputNumberEmits,setup($,{emit:k}){const V=ref(),z=reactive({currentValue:$.modelValue,userInput:null}),{t:j}=useLocale(),{formItem:oe}=useFormItem(),re=useNamespace("input-number"),ie=computed(()=>Ce($.modelValue,-1)<$.min),ae=computed(()=>Ce($.modelValue)>$.max),he=computed(()=>{const Pt=_e($.step);return isUndefined($.precision)?Math.max(_e($.modelValue),Pt):(Pt>$.precision,$.precision)}),le=computed(()=>$.controls&&$.controlsPosition==="right"),ue=useSize(),de=useDisabled$1(),pe=computed(()=>{if(z.userInput!==null)return z.userInput;let Pt=z.currentValue;if(isNumber$1(Pt)){if(Number.isNaN(Pt))return"";isUndefined($.precision)||(Pt=Pt.toFixed($.precision))}return Pt}),$e=(Pt,jt)=>{isUndefined(jt)&&(jt=he.value);const vn=Pt.toString().split(".");if(vn.length>1){const $n=vn[0],wn=Math.round(+vn[1]/10**(vn[1].length-jt));return Number.parseFloat(`${$n}.${wn}`)}return Number.parseFloat(`${Math.round(Pt*10**jt)/10**jt}`)},_e=Pt=>{if(isUndefined(Pt))return 0;const jt=Pt.toString(),vn=jt.indexOf(".");let $n=0;return vn!==-1&&($n=jt.length-vn-1),$n},Ce=(Pt,jt=1)=>isNumber$1(Pt)?(Pt=isNumber$1(Pt)?Pt:Number.NaN,$e(Pt+$.step*jt)):z.currentValue,Ie=()=>{if(de.value||ae.value)return;const Pt=$.modelValue||0,jt=Ce(Pt);qe(jt)},ze=()=>{if(de.value||ie.value)return;const Pt=$.modelValue||0,jt=Ce(Pt,-1);qe(jt)},Et=(Pt,jt)=>{const{max:vn,min:$n,step:wn,precision:_n,stepStrictly:En}=$;let Sn=Number(Pt);return Pt===null&&(Sn=Number.NaN),Number.isNaN(Sn)||(En&&(Sn=Math.round(Sn/wn)*wn),isUndefined(_n)||(Sn=$e(Sn,_n)),(Sn>vn||Sn<$n)&&(Sn=Sn>vn?vn:$n,jt&&k("update:modelValue",Sn))),Sn},qe=Pt=>{var jt;const vn=z.currentValue;let $n=Et(Pt);vn!==$n&&(Number.isNaN($n)&&($n=void 0),z.userInput=null,k("update:modelValue",$n),k("input",$n),k("change",$n,vn),(jt=oe==null?void 0:oe.validate)==null||jt.call(oe,"change").catch(wn=>void 0),z.currentValue=$n)},Oe=Pt=>z.userInput=Pt,Ue=Pt=>{const jt=Pt!==""?Number(Pt):"";(isNumber$1(jt)&&!Number.isNaN(jt)||Pt==="")&&qe(jt),z.userInput=null},Dt=()=>{var Pt,jt;(jt=(Pt=V.value)==null?void 0:Pt.focus)==null||jt.call(Pt)},At=()=>{var Pt,jt;(jt=(Pt=V.value)==null?void 0:Pt.blur)==null||jt.call(Pt)},Lt=Pt=>{k("focus",Pt)},kt=Pt=>{var jt;k("blur",Pt),(jt=oe==null?void 0:oe.validate)==null||jt.call(oe,"blur").catch(vn=>void 0)};return watch$1(()=>$.modelValue,Pt=>{const jt=Et(Pt,!0);z.currentValue=jt,z.userInput=null},{immediate:!0}),onMounted(()=>{var Pt;const jt=(Pt=V.value)==null?void 0:Pt.input;if(jt.setAttribute("role","spinbutton"),Number.isFinite($.max)?jt.setAttribute("aria-valuemax",String($.max)):jt.removeAttribute("aria-valuemax"),Number.isFinite($.min)?jt.setAttribute("aria-valuemin",String($.min)):jt.removeAttribute("aria-valuemin"),jt.setAttribute("aria-valuenow",String(z.currentValue)),jt.setAttribute("aria-disabled",String(de.value)),!isNumber$1($.modelValue)){let vn=Number($.modelValue);Number.isNaN(vn)&&(vn=void 0),k("update:modelValue",vn)}}),onUpdated(()=>{var Pt;const jt=(Pt=V.value)==null?void 0:Pt.input;jt==null||jt.setAttribute("aria-valuenow",z.currentValue)}),{t:j,input:V,displayValue:pe,handleInput:Oe,handleInputChange:Ue,controlsAtRight:le,decrease:ze,increase:Ie,inputNumberSize:ue,inputNumberDisabled:de,maxDisabled:ae,minDisabled:ie,focus:Dt,blur:At,handleFocus:Lt,handleBlur:kt,ns:re}}}),_hoisted_1$u=["aria-label"],_hoisted_2$l=["aria-label"];function _sfc_render$H($,k,V,z,j,oe){const re=resolveComponent("arrow-down"),ie=resolveComponent("minus"),ae=resolveComponent("el-icon"),he=resolveComponent("arrow-up"),le=resolveComponent("plus"),ue=resolveComponent("el-input"),de=resolveDirective("repeat-click");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.m($.inputNumberSize),$.ns.is("disabled",$.inputNumberDisabled),$.ns.is("without-controls",!$.controls),$.ns.is("controls-right",$.controlsAtRight)]),onDragstart:k[2]||(k[2]=withModifiers(()=>{},["prevent"]))},[$.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":$.t("el.inputNumber.decrease"),class:normalizeClass([$.ns.e("decrease"),$.ns.is("disabled",$.minDisabled)]),onKeydown:k[0]||(k[0]=withKeys((...pe)=>$.decrease&&$.decrease(...pe),["enter"]))},[createVNode(ae,null,{default:withCtx(()=>[$.controlsAtRight?(openBlock(),createBlock(re,{key:0})):(openBlock(),createBlock(ie,{key:1}))]),_:1})],42,_hoisted_1$u)),[[de,$.decrease]]):createCommentVNode("v-if",!0),$.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":$.t("el.inputNumber.increase"),class:normalizeClass([$.ns.e("increase"),$.ns.is("disabled",$.maxDisabled)]),onKeydown:k[1]||(k[1]=withKeys((...pe)=>$.increase&&$.increase(...pe),["enter"]))},[createVNode(ae,null,{default:withCtx(()=>[$.controlsAtRight?(openBlock(),createBlock(he,{key:0})):(openBlock(),createBlock(le,{key:1}))]),_:1})],42,_hoisted_2$l)),[[de,$.increase]]):createCommentVNode("v-if",!0),createVNode(ue,{id:$.id,ref:"input",type:"number",step:$.step,"model-value":$.displayValue,placeholder:$.placeholder,disabled:$.inputNumberDisabled,size:$.inputNumberSize,max:$.max,min:$.min,name:$.name,label:$.label,"validate-event":!1,onKeydown:[withKeys(withModifiers($.increase,["prevent"]),["up"]),withKeys(withModifiers($.decrease,["prevent"]),["down"])],onBlur:$.handleBlur,onFocus:$.handleFocus,onInput:$.handleInput,onChange:$.handleInputChange},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown","onBlur","onFocus","onInput","onChange"])],34)}var InputNumber=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$H],["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:iconPropType,default:""}}),linkEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$t=["href"],__default__$g={name:"ElLink"},_sfc_main$$=defineComponent(mo(oo({},__default__$g),{props:linkProps,emits:linkEmits,setup($,{emit:k}){const V=$,z=useNamespace("link");function j(oe){V.disabled||k("click",oe)}return(oe,re)=>(openBlock(),createElementBlock("a",{class:normalizeClass([unref(z).b(),unref(z).m(oe.type),unref(z).is("disabled",oe.disabled),unref(z).is("underline",oe.underline&&!oe.disabled)]),href:oe.disabled||!oe.href?void 0:oe.href,onClick:j},[oe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.icon)))]),_:1})):createCommentVNode("v-if",!0),oe.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(z).e("inner"))},[renderSlot(oe.$slots,"default")],2)):createCommentVNode("v-if",!0),oe.$slots.icon?renderSlot(oe.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$t))}}));var Link=_export_sfc$1(_sfc_main$$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);class SubMenu$1{constructor(k,V){this.parent=k,this.domNode=V,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(k){k===this.subMenuItems.length?k=0:k<0&&(k=this.subMenuItems.length-1),this.subMenuItems[k].focus(),this.subIndex=k}addListeners(){const k=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,V=>{V.addEventListener("keydown",z=>{let j=!1;switch(z.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),j=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),j=!0;break}case EVENT_CODE.tab:{triggerEvent(k,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{j=!0,z.currentTarget.click();break}}return j&&(z.preventDefault(),z.stopPropagation()),!1})})}}class MenuItem$1{constructor(k,V){this.domNode=k,this.submenu=null,this.submenu=null,this.init(V)}init(k){this.domNode.setAttribute("tabindex","0");const V=this.domNode.querySelector(`.${k}-menu`);V&&(this.submenu=new SubMenu$1(this,V)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",k=>{let V=!1;switch(k.code){case EVENT_CODE.down:{triggerEvent(k.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),V=!0;break}case EVENT_CODE.up:{triggerEvent(k.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),V=!0;break}case EVENT_CODE.tab:{triggerEvent(k.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{V=!0,k.currentTarget.click();break}}V&&k.preventDefault()})}}class Menu$1{constructor(k,V){this.domNode=k,this.init(V)}init(k){const V=this.domNode.childNodes;Array.from(V).forEach(z=>{z.nodeType===1&&new MenuItem$1(z,k)})}}const _sfc_main$_=defineComponent({name:"ElMenuCollapseTransition",setup(){const $=useNamespace("menu");return{listeners:{onBeforeEnter:V=>V.style.opacity="0.2",onEnter(V,z){addClass(V,`${$.namespace.value}-opacity-transition`),V.style.opacity="1",z()},onAfterEnter(V){removeClass(V,`${$.namespace.value}-opacity-transition`),V.style.opacity=""},onBeforeLeave(V){V.dataset||(V.dataset={}),hasClass(V,$.m("collapse"))?(removeClass(V,$.m("collapse")),V.dataset.oldOverflow=V.style.overflow,V.dataset.scrollWidth=V.clientWidth.toString(),addClass(V,$.m("collapse"))):(addClass(V,$.m("collapse")),V.dataset.oldOverflow=V.style.overflow,V.dataset.scrollWidth=V.clientWidth.toString(),removeClass(V,$.m("collapse"))),V.style.width=`${V.scrollWidth}px`,V.style.overflow="hidden"},onLeave(V){addClass(V,"horizontal-collapse-transition"),V.style.width=`${V.dataset.scrollWidth}px`}}}}});function _sfc_render$G($,k,V,z,j,oe){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},$.listeners),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$1(_sfc_main$_,[["render",_sfc_render$G],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu($,k){const V=inject("rootMenu");V||throwError("useMenu","can not inject root menu");const z=computed(()=>{let re=$.parent;const ie=[k.value];for(;re.type.name!=="ElMenu";)re.props.index&&ie.unshift(re.props.index),re=re.parent;return ie}),j=computed(()=>{let re=$.parent;for(;re&&!["ElMenu","ElSubMenu"].includes(re.type.name);)re=re.parent;return re}),oe=computed(()=>{let re=$.parent;if(V.props.mode!=="vertical")return{};let ie=20;if(V.props.collapse)ie=20;else for(;re&&re.type.name!=="ElMenu";)re.type.name==="ElSubMenu"&&(ie+=20),re=re.parent;return{paddingLeft:`${ie}px`}});return{parentMenu:j,paddingStyle:oe,indexPath:z}}function useMenuColor($){return computed(()=>{const V=$.backgroundColor;return V?new TinyColor(V).shade(20).toString():""})}const useMenuCssVar=$=>{const k=useNamespace("menu");return computed(()=>k.cssVarBlock({"text-color":$.textColor||"","hover-text-color":$.textColor||"","bg-color":$.backgroundColor||"","hover-bg-color":useMenuColor($).value||"","active-color":$.activeTextColor||""}))},subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}}),COMPONENT_NAME$b="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$b,props:subMenuProps,setup($,{slots:k,expose:V}){const z=getCurrentInstance(),{paddingStyle:j,indexPath:oe,parentMenu:re}=useMenu(z,computed(()=>$.index)),ie=useNamespace("menu"),ae=useNamespace("sub-menu"),he=inject("rootMenu");he||throwError(COMPONENT_NAME$b,"can not inject root menu");const le=inject(`subMenu:${re.value.uid}`);le||throwError(COMPONENT_NAME$b,"can not inject sub menu");const ue=ref({}),de=ref({});let pe;const $e=ref(!1),_e=ref(),Ce=ref(null),Ie=computed(()=>jt.value==="horizontal"&&Et.value?"bottom-start":"right-start"),ze=computed(()=>jt.value==="horizontal"&&Et.value||jt.value==="vertical"&&!he.props.collapse?arrowDown:arrowRight),Et=computed(()=>{let Cn=!0,Tn=z.parent;for(;Tn&&Tn.type.name!=="ElMenu";)if(["ElSubMenu","ElMenuItemGroup"].includes(Tn.type.name)){Cn=!1;break}else Tn=Tn.parent;return Cn}),qe=computed(()=>$.popperAppendToBody===void 0?Et.value:Boolean($.popperAppendToBody)),Oe=computed(()=>he.props.collapse?`${ie.namespace.value}-zoom-in-left`:`${ie.namespace.value}-zoom-in-top`),Ue=computed(()=>jt.value==="horizontal"&&Et.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),Dt=computed(()=>he.openedMenus.includes($.index)),At=computed(()=>{let Cn=!1;return Object.values(ue.value).forEach(Tn=>{Tn.active&&(Cn=!0)}),Object.values(de.value).forEach(Tn=>{Tn.active&&(Cn=!0)}),Cn}),Lt=computed(()=>he.props.backgroundColor||""),kt=computed(()=>he.props.activeTextColor||""),Pt=computed(()=>he.props.textColor||""),jt=computed(()=>he.props.mode),vn=reactive({index:$.index,indexPath:oe,active:At}),$n=computed(()=>jt.value!=="horizontal"?{color:Pt.value}:{borderBottomColor:At.value?he.props.activeTextColor?kt.value:"":"transparent",color:At.value?kt.value:Pt.value}),wn=()=>{var Cn,Tn,Nn;return(Nn=(Tn=(Cn=Ce.value)==null?void 0:Cn.popperRef)==null?void 0:Tn.popperInstanceRef)==null?void 0:Nn.destroy()},_n=Cn=>{Cn||wn()},En=()=>{he.props.menuTrigger==="hover"&&he.props.mode==="horizontal"||he.props.collapse&&he.props.mode==="vertical"||$.disabled||he.handleSubMenuClick({index:$.index,indexPath:oe.value,active:At.value})},Sn=(Cn,Tn=$.showTimeout)=>{var Nn;Cn.type==="focus"&&!Cn.relatedTarget||he.props.menuTrigger==="click"&&he.props.mode==="horizontal"||!he.props.collapse&&he.props.mode==="vertical"||$.disabled||(le.mouseInChild.value=!0,pe==null||pe(),{stop:pe}=useTimeoutFn(()=>{he.openMenu($.index,oe.value)},Tn),qe.value&&((Nn=re.value.vnode.el)==null||Nn.dispatchEvent(new MouseEvent("mouseenter"))))},An=(Cn=!1)=>{var Tn,Nn;he.props.menuTrigger==="click"&&he.props.mode==="horizontal"||!he.props.collapse&&he.props.mode==="vertical"||(pe==null||pe(),le.mouseInChild.value=!1,{stop:pe}=useTimeoutFn(()=>!$e.value&&he.closeMenu($.index,oe.value),$.hideTimeout),qe.value&&Cn&&((Tn=z.parent)==null?void 0:Tn.type.name)==="ElSubMenu"&&((Nn=le.handleMouseleave)==null||Nn.call(le,!0)))};watch$1(()=>he.props.collapse,Cn=>_n(Boolean(Cn)));{const Cn=Nn=>{de.value[Nn.index]=Nn},Tn=Nn=>{delete de.value[Nn.index]};provide(`subMenu:${z.uid}`,{addSubMenu:Cn,removeSubMenu:Tn,handleMouseleave:An,mouseInChild:$e})}return V({opened:Dt}),onMounted(()=>{he.addSubMenu(vn),le.addSubMenu(vn)}),onBeforeUnmount(()=>{le.removeSubMenu(vn),he.removeSubMenu(vn)}),()=>{var Cn;const Tn=[(Cn=k.title)==null?void 0:Cn.call(k),h$2(ElIcon,{class:ae.e("icon-arrow")},{default:()=>h$2(ze.value)})],Nn=useMenuCssVar(he.props),xn=he.isMenuPopup?h$2(ElTooltip,{ref:Ce,visible:Dt.value,effect:"light",pure:!0,offset:$.popperOffset,showArrow:!1,persistent:!0,popperClass:$.popperClass,placement:Ie.value,teleported:qe.value,fallbackPlacements:Ue.value,transition:Oe.value,gpuAcceleration:!1},{content:()=>{var On;return h$2("div",{class:[ie.m(jt.value),$.popperClass],onMouseenter:Ln=>Sn(Ln,100),onMouseleave:()=>An(!0),onFocus:Ln=>Sn(Ln,100)},[h$2("ul",{class:[ie.b(),ie.m("popup"),ie.m(`popup-${Ie.value}`)],style:Nn.value},[(On=k.default)==null?void 0:On.call(k)])])},default:()=>h$2("div",{class:ae.e("title"),style:[j.value,$n.value,{backgroundColor:Lt.value}],onClick:En},Tn)}):h$2(Fragment,{},[h$2("div",{class:ae.e("title"),style:[j.value,$n.value,{backgroundColor:Lt.value}],ref:_e,onClick:En},Tn),h$2(_CollapseTransition,{},{default:()=>{var On;return withDirectives(h$2("ul",{role:"menu",class:[ie.b(),ie.m("inline")],style:Nn.value},[(On=k.default)==null?void 0:On.call(k)]),[[vShow,Dt.value]])}})]);return h$2("li",{class:[ae.b(),ae.is("active",At.value),ae.is("opened",Dt.value),ae.is("disabled",$.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:Dt.value,onMouseenter:Sn,onMouseleave:()=>An(!0),onFocus:Sn},[xn])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),checkIndexPath=$=>Array.isArray($)&&$.every(k=>isString$3(k)),menuEmits={close:($,k)=>isString$3($)&&checkIndexPath(k),open:($,k)=>isString$3($)&&checkIndexPath(k),select:($,k,V,z)=>isString$3($)&&checkIndexPath(k)&&isObject$5(V)&&(z===void 0||z instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup($,{emit:k,slots:V,expose:z}){const j=getCurrentInstance(),oe=j.appContext.config.globalProperties.$router,re=ref(),ie=useNamespace("menu"),ae=useNamespace("sub-menu"),he=ref($.defaultOpeneds&&!$.collapse?$.defaultOpeneds.slice(0):[]),le=ref($.defaultActive),ue=ref({}),de=ref({}),pe=computed(()=>$.mode==="horizontal"||$.mode==="vertical"&&$.collapse),$e=()=>{const Dt=le.value&&ue.value[le.value];if(!Dt||$.mode==="horizontal"||$.collapse)return;Dt.indexPath.forEach(Lt=>{const kt=de.value[Lt];kt&&_e(Lt,kt.indexPath)})},_e=(Dt,At)=>{he.value.includes(Dt)||($.uniqueOpened&&(he.value=he.value.filter(Lt=>At.includes(Lt))),he.value.push(Dt),k("open",Dt,At))},Ce=(Dt,At)=>{const Lt=he.value.indexOf(Dt);Lt!==-1&&he.value.splice(Lt,1),k("close",Dt,At)},Ie=({index:Dt,indexPath:At})=>{he.value.includes(Dt)?Ce(Dt,At):_e(Dt,At)},ze=Dt=>{($.mode==="horizontal"||$.collapse)&&(he.value=[]);const{index:At,indexPath:Lt}=Dt;if(!(At===void 0||Lt===void 0))if($.router&&oe){const kt=Dt.route||At,Pt=oe.push(kt).then(jt=>(jt||(le.value=At),jt));k("select",At,Lt,{index:At,indexPath:Lt,route:kt},Pt)}else le.value=At,k("select",At,Lt,{index:At,indexPath:Lt})},Et=Dt=>{const At=ue.value,Lt=At[Dt]||le.value&&At[le.value]||At[$.defaultActive];Lt?(le.value=Lt.index,$e()):le.value=Dt},qe=()=>{nextTick(()=>j.proxy.$forceUpdate())};watch$1(()=>$.defaultActive,Dt=>{ue.value[Dt]||(le.value=""),Et(Dt)}),watch$1(ue.value,()=>$e()),watch$1(()=>$.collapse,Dt=>{Dt&&(he.value=[])});{const Dt=Pt=>{de.value[Pt.index]=Pt},At=Pt=>{delete de.value[Pt.index]};provide("rootMenu",reactive({props:$,openedMenus:he,items:ue,subMenus:de,activeIndex:le,isMenuPopup:pe,addMenuItem:Pt=>{ue.value[Pt.index]=Pt},removeMenuItem:Pt=>{delete ue.value[Pt.index]},addSubMenu:Dt,removeSubMenu:At,openMenu:_e,closeMenu:Ce,handleMenuItemClick:ze,handleSubMenuClick:Ie})),provide(`subMenu:${j.uid}`,{addSubMenu:Dt,removeSubMenu:At,mouseInChild:ref(!1)})}onMounted(()=>{$e(),$.mode==="horizontal"&&new Menu$1(j.vnode.el,ie.namespace.value)}),z({open:At=>{const{indexPath:Lt}=de.value[At];Lt.forEach(kt=>_e(kt,Lt))},close:Ce,handleResize:qe});const Oe=Dt=>{const At=Array.isArray(Dt)?Dt:[Dt],Lt=[];return At.forEach(kt=>{Array.isArray(kt.children)?Lt.push(...Oe(kt.children)):Lt.push(kt)}),Lt},Ue=Dt=>$.mode==="horizontal"?withDirectives(Dt,[[Resize,qe]]):Dt;return()=>{var Dt,At,Lt,kt;let Pt=(At=(Dt=V.default)==null?void 0:Dt.call(V))!=null?At:[];const jt=[];if($.mode==="horizontal"&&re.value){const _n=Array.from((kt=(Lt=re.value)==null?void 0:Lt.childNodes)!=null?kt:[]).filter(Bn=>Bn.nodeName!=="#text"||Bn.nodeValue),En=Oe(Pt),Sn=64,An=Number.parseInt(getComputedStyle(re.value).paddingLeft,10),Cn=Number.parseInt(getComputedStyle(re.value).paddingRight,10),Tn=re.value.clientWidth-An-Cn;let Nn=0,xn=0;_n.forEach((Bn,Vn)=>{Nn+=Bn.offsetWidth||0,Nn<=Tn-Sn&&(xn=Vn+1)});const On=En.slice(0,xn),Ln=En.slice(xn);(Ln==null?void 0:Ln.length)&&$.ellipsis&&(Pt=On,jt.push(h$2(SubMenu,{index:"sub-menu-more",class:ae.e("hide-arrow")},{title:()=>h$2(ElIcon,{class:ae.e("icon-more")},{default:()=>h$2(more)}),default:()=>Ln})))}const vn=useMenuCssVar($),wn=(_n=>$.ellipsis?Ue(_n):_n)(h$2("ul",{key:String($.collapse),role:"menubar",ref:re,style:vn.value,class:{[ie.b()]:!0,[ie.m("horizontal")]:$.mode==="horizontal",[ie.m("collapse")]:$.collapse}},[...Pt,...jt]));return $.collapseTransition&&$.mode==="vertical"?h$2(ElMenuCollapseTransition,()=>wn):wn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:$=>isString$3($.index)&&Array.isArray($.indexPath)},COMPONENT_NAME$a="ElMenuItem",_sfc_main$Z=defineComponent({name:COMPONENT_NAME$a,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup($,{emit:k}){const V=getCurrentInstance(),z=inject("rootMenu"),j=useNamespace("menu"),oe=useNamespace("menu-item");z||throwError(COMPONENT_NAME$a,"can not inject root menu");const{parentMenu:re,paddingStyle:ie,indexPath:ae}=useMenu(V,toRef($,"index")),he=inject(`subMenu:${re.value.uid}`);he||throwError(COMPONENT_NAME$a,"can not inject sub menu");const le=computed(()=>$.index===z.activeIndex),ue=reactive({index:$.index,indexPath:ae,active:le}),de=()=>{$.disabled||(z.handleMenuItemClick({index:$.index,indexPath:ae.value,route:$.route}),k("click",ue))};return onMounted(()=>{he.addSubMenu(ue),z.addMenuItem(ue)}),onBeforeUnmount(()=>{he.removeSubMenu(ue),z.removeMenuItem(ue)}),{Effect,parentMenu:re,rootMenu:z,paddingStyle:ie,active:le,nsMenu:j,nsMenuItem:oe,handleClick:de}}});function _sfc_render$F($,k,V,z,j,oe){const re=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([$.nsMenuItem.b(),$.nsMenuItem.is("active",$.active),$.nsMenuItem.is("disabled",$.disabled)]),role:"menuitem",tabindex:"-1",style:normalizeStyle($.paddingStyle),onClick:k[0]||(k[0]=(...ie)=>$.handleClick&&$.handleClick(...ie))},[$.parentMenu.type.name==="ElMenu"&&$.rootMenu.props.collapse&&$.$slots.title?(openBlock(),createBlock(re,{key:0,effect:$.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot($.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsMenu.be("tooltip","trigger"))},[renderSlot($.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot($.$slots,"default"),renderSlot($.$slots,"title")],64))],6)}var MenuItem=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$F],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},COMPONENT_NAME$9="ElMenuItemGroup",_sfc_main$Y=defineComponent({name:COMPONENT_NAME$9,props:menuItemGroupProps,setup(){const $=getCurrentInstance(),k=inject("rootMenu");k||throwError(COMPONENT_NAME$9,"can not inject root menu");const V=useNamespace("menu-item-group");return{levelPadding:computed(()=>{if(k.props.collapse)return 20;let j=20,oe=$.parent;for(;oe&&oe.type.name!=="ElMenu";)oe.type.name==="ElSubMenu"&&(j+=20),oe=oe.parent;return j}),ns:V}}});function _sfc_render$E($,k,V,z,j,oe){return openBlock(),createElementBlock("li",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("title")),style:normalizeStyle({paddingLeft:`${$.levelPadding}px`})},[$.$slots.title?renderSlot($.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1($.title),1)],2112))],6),createBaseVNode("ul",null,[renderSlot($.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$E],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem),ElMenuItemGroup=withNoopInstall(MenuItemGroup);withNoopInstall(SubMenu);const pageHeaderProps=buildProps({icon:{type:iconPropType,default:()=>back},title:String,content:{type:String,default:""}}),pageHeaderEmits={back:()=>!0},__default__$f={name:"ElPageHeader"},_sfc_main$X=defineComponent(mo(oo({},__default__$f),{props:pageHeaderProps,emits:pageHeaderEmits,setup($,{emit:k}){const{t:V}=useLocale(),z=useNamespace("page-header");function j(){k("back")}return(oe,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(z).b())},[createBaseVNode("div",{class:normalizeClass(unref(z).e("left")),onClick:j},[oe.icon||oe.$slots.icon?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(z).e("icon"))},[renderSlot(oe.$slots,"icon",{},()=>[oe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.icon)))]),_:1})):createCommentVNode("v-if",!0)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(z).e("title"))},[renderSlot(oe.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(oe.title||unref(V)("el.pageHeader.title")),1)])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(z).e("content"))},[renderSlot(oe.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(oe.content),1)])],2)],2))}}));var PageHeader=_export_sfc$1(_sfc_main$X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const ElPageHeader=withInstall(PageHeader),paginationPrevProps={disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String,default:""}},_sfc_main$W=defineComponent({name:"ElPaginationPrev",components:{ElIcon,ArrowLeft:arrowLeft},props:paginationPrevProps,emits:["click"],setup($){return{internalDisabled:computed(()=>$.disabled||$.currentPage<=1)}}}),_hoisted_1$s=["disabled","aria-disabled"],_hoisted_2$k={key:0};function _sfc_render$D($,k,V,z,j,oe){const re=resolveComponent("arrow-left"),ie=resolveComponent("el-icon");return openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:$.internalDisabled,"aria-disabled":$.internalDisabled,onClick:k[0]||(k[0]=ae=>$.$emit("click",ae))},[$.prevText?(openBlock(),createElementBlock("span",_hoisted_2$k,toDisplayString$1($.prevText),1)):(openBlock(),createBlock(ie,{key:1},{default:withCtx(()=>[createVNode(re)]),_:1}))],8,_hoisted_1$s)}var Prev=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$D],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const paginationNextProps={disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String,default:""}},_sfc_main$V=defineComponent({name:"ElPaginationNext",components:{ElIcon,ArrowRight:arrowRight},props:paginationNextProps,emits:["click"],setup($){return{internalDisabled:computed(()=>$.disabled||$.currentPage===$.pageCount||$.pageCount===0)}}}),_hoisted_1$r=["disabled","aria-disabled"],_hoisted_2$j={key:0};function _sfc_render$C($,k,V,z,j,oe){const re=resolveComponent("arrow-right"),ie=resolveComponent("el-icon");return openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:$.internalDisabled,"aria-disabled":$.internalDisabled,onClick:k[0]||(k[0]=ae=>$.$emit("click",ae))},[$.nextText?(openBlock(),createElementBlock("span",_hoisted_2$j,toDisplayString$1($.nextText),1)):(openBlock(),createBlock(ie,{key:1},{default:withCtx(()=>[createVNode(re)]),_:1}))],8,_hoisted_1$r)}var Next=_export_sfc$1(_sfc_main$V,[["render",_sfc_render$C],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const selectGroupKey="ElSelectGroup",selectKey="ElSelect";function useOption$1($,k){const V=inject(selectKey),z=inject(selectGroupKey,{disabled:!1}),j=computed(()=>Object.prototype.toString.call($.value).toLowerCase()==="[object object]"),oe=computed(()=>V.props.multiple?ue(V.props.modelValue,$.value):de($.value,V.props.modelValue)),re=computed(()=>{if(V.props.multiple){const _e=V.props.modelValue||[];return!oe.value&&_e.length>=V.props.multipleLimit&&V.props.multipleLimit>0}else return!1}),ie=computed(()=>$.label||(j.value?"":$.value)),ae=computed(()=>$.value||$.label||""),he=computed(()=>$.disabled||k.groupDisabled||re.value),le=getCurrentInstance(),ue=(_e=[],Ce)=>{if(j.value){const Ie=V.props.valueKey;return _e&&_e.some(ze=>get(ze,Ie)===get(Ce,Ie))}else return _e&&_e.includes(Ce)},de=(_e,Ce)=>{if(j.value){const{valueKey:Ie}=V.props;return get(_e,Ie)===get(Ce,Ie)}else return _e===Ce},pe=()=>{!$.disabled&&!z.disabled&&(V.hoverIndex=V.optionsArray.indexOf(le.proxy))};watch$1(()=>ie.value,()=>{!$.created&&!V.props.remote&&V.setSelected()}),watch$1(()=>$.value,(_e,Ce)=>{const{remote:Ie,valueKey:ze}=V.props;if(!$.created&&!Ie){if(ze&&typeof _e=="object"&&typeof Ce=="object"&&_e[ze]===Ce[ze])return;V.setSelected()}}),watch$1(()=>z.disabled,()=>{k.groupDisabled=z.disabled},{immediate:!0});const{queryChange:$e}=toRaw(V);return watch$1($e,_e=>{const{query:Ce}=unref(_e),Ie=new RegExp(escapeStringRegexp(Ce),"i");k.visible=Ie.test(ie.value)||$.created,k.visible||V.filteredOptionsCount--}),{select:V,currentLabel:ie,currentValue:ae,itemSelected:oe,isDisabled:he,hoverItem:pe}}const _sfc_main$U=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup($){const k=useNamespace("select"),V=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:z,itemSelected:j,isDisabled:oe,select:re,hoverItem:ie}=useOption$1($,V),{visible:ae,hover:he}=toRefs(V),le=getCurrentInstance().proxy,ue=le.value;re.onOptionCreate(le),onBeforeUnmount(()=>{const{selected:pe}=re,_e=(re.props.multiple?pe:[pe]).some(Ce=>Ce.value===le.value);re.cachedOptions.get(ue)===le&&!_e&&nextTick(()=>{re.cachedOptions.delete(ue)}),re.onOptionDestroy(ue,le)});function de(){$.disabled!==!0&&V.groupDisabled!==!0&&re.handleOptionSelect(le,!0)}return{ns:k,currentLabel:z,itemSelected:j,isDisabled:oe,select:re,hoverItem:ie,visible:ae,hover:he,selectOptionClick:de,states:V}}});function _sfc_render$B($,k,V,z,j,oe){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.be("dropdown","item"),$.ns.is("disabled",$.isDisabled),{selected:$.itemSelected,hover:$.hover}]),onMouseenter:k[0]||(k[0]=(...re)=>$.hoverItem&&$.hoverItem(...re)),onClick:k[1]||(k[1]=withModifiers((...re)=>$.selectOptionClick&&$.selectOptionClick(...re),["stop"]))},[renderSlot($.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1($.currentLabel),1)])],34)),[[vShow,$.visible]])}var Option=_export_sfc$1(_sfc_main$U,[["render",_sfc_render$B],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$T=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const $=inject(selectKey),k=useNamespace("select"),V=computed(()=>$.props.popperClass),z=computed(()=>$.props.multiple),j=computed(()=>$.props.fitInputWidth),oe=ref("");function re(){var ie;oe.value=`${(ie=$.selectWrapper)==null?void 0:ie.getBoundingClientRect().width}px`}return onMounted(()=>{re(),addResizeListener($.selectWrapper,re)}),onBeforeUnmount(()=>{removeResizeListener($.selectWrapper,re)}),{ns:k,minWidth:oe,popperClass:V,isMultiple:z,isFitInputWidth:j}}});function _sfc_render$A($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("dropdown"),$.ns.is("multiple",$.isMultiple),$.popperClass]),style:normalizeStyle({[$.isFitInputWidth?"width":"minWidth"]:$.minWidth})},[renderSlot($.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$1(_sfc_main$T,[["render",_sfc_render$A],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates($){const{t:k}=useLocale();return reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:$.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:k("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const useSelect$2=($,k,V)=>{const{t:z}=useLocale(),j=useNamespace("select"),oe=ref(null),re=ref(null),ie=ref(null),ae=ref(null),he=ref(null),le=ref(null),ue=ref(-1),de=shallowRef({query:""}),pe=shallowRef(""),$e=inject(formContextKey,{}),_e=inject(formItemContextKey,{}),Ce=computed(()=>!$.filterable||$.multiple||!k.visible),Ie=computed(()=>$.disabled||$e.disabled),ze=computed(()=>{const Dn=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!=="";return $.clearable&&!Ie.value&&k.inputHovering&&Dn}),Et=computed(()=>$.remote&&$.filterable?"":$.suffixIcon),qe=computed(()=>j.is("reverse",Et.value&&k.visible)),Oe=computed(()=>$.remote?300:0),Ue=computed(()=>$.loading?$.loadingText||z("el.select.loading"):$.remote&&k.query===""&&k.options.size===0?!1:$.filterable&&k.query&&k.options.size>0&&k.filteredOptionsCount===0?$.noMatchText||z("el.select.noMatch"):k.options.size===0?$.noDataText||z("el.select.noData"):null),Dt=computed(()=>Array.from(k.options.values())),At=computed(()=>Array.from(k.cachedOptions.values())),Lt=computed(()=>{const Dn=Dt.value.filter(Yn=>!Yn.created).some(Yn=>Yn.currentLabel===k.query);return $.filterable&&$.allowCreate&&k.query!==""&&!Dn}),kt=useSize(),Pt=computed(()=>["small"].includes(kt.value)?"small":"default"),jt=computed({get(){return k.visible&&Ue.value!==!1},set(Dn){k.visible=Dn}});watch$1([()=>Ie.value,()=>kt.value,()=>$e.size],()=>{nextTick(()=>{vn()})}),watch$1(()=>$.placeholder,Dn=>{k.cachedPlaceHolder=k.currentPlaceholder=Dn}),watch$1(()=>$.modelValue,(Dn,Yn)=>{var Gn;$.multiple&&(vn(),Dn&&Dn.length>0||re.value&&k.query!==""?k.currentPlaceholder="":k.currentPlaceholder=k.cachedPlaceHolder,$.filterable&&!$.reserveKeyword&&(k.query="",$n(k.query))),En(),$.filterable&&!$.multiple&&(k.inputLength=20),isEqual$1(Dn,Yn)||(Gn=_e.validate)==null||Gn.call(_e,"change").catch(io=>void 0)},{flush:"post",deep:!0}),watch$1(()=>k.visible,Dn=>{var Yn,Gn,io;Dn?((Gn=(Yn=ie.value)==null?void 0:Yn.updatePopper)==null||Gn.call(Yn),$.filterable&&(k.filteredOptionsCount=k.optionsCount,k.query=$.remote?"":k.selectedLabel,$.multiple?(io=re.value)==null||io.focus():k.selectedLabel&&(k.currentPlaceholder=`${k.selectedLabel}`,k.selectedLabel=""),$n(k.query),!$.multiple&&!$.remote&&(de.value.query="",triggerRef(de),triggerRef(pe)))):(re.value&&re.value.blur(),k.query="",k.previousQuery=null,k.selectedLabel="",k.inputLength=20,k.menuVisibleOnFocus=!1,An(),nextTick(()=>{re.value&&re.value.value===""&&k.selected.length===0&&(k.currentPlaceholder=k.cachedPlaceHolder)}),$.multiple||(k.selected&&($.filterable&&$.allowCreate&&k.createdSelected&&k.createdLabel?k.selectedLabel=k.createdLabel:k.selectedLabel=k.selected.currentLabel,$.filterable&&(k.query=k.selectedLabel)),$.filterable&&(k.currentPlaceholder=k.cachedPlaceHolder))),V.emit("visible-change",Dn)}),watch$1(()=>k.options.entries(),()=>{var Dn,Yn,Gn;if(!isClient)return;(Yn=(Dn=ie.value)==null?void 0:Dn.updatePopper)==null||Yn.call(Dn),$.multiple&&vn();const io=((Gn=he.value)==null?void 0:Gn.querySelectorAll("input"))||[];Array.from(io).includes(document.activeElement)||En(),$.defaultFirstOption&&($.filterable||$.remote)&&k.filteredOptionsCount&&_n()},{flush:"post"}),watch$1(()=>k.hoverIndex,Dn=>{typeof Dn=="number"&&Dn>-1&&(ue.value=Dt.value[Dn]||{}),Dt.value.forEach(Yn=>{Yn.hover=ue.value===Yn})});const vn=()=>{$.collapseTags&&!$.filterable||nextTick(()=>{var Dn,Yn;if(!oe.value)return;const Gn=oe.value.$el.querySelector("input"),io=ae.value,fo=k.initialInputHeight||getComponentSize(kt.value||$e.size);Gn.style.height=k.selected.length===0?`${fo}px`:`${Math.max(io?io.clientHeight+(io.clientHeight>fo?6:0):0,fo)}px`,k.tagInMultiLine=Number.parseFloat(Gn.style.height)>=fo,k.visible&&Ue.value!==!1&&((Yn=(Dn=ie.value)==null?void 0:Dn.updatePopper)==null||Yn.call(Dn))})},$n=Dn=>{if(!(k.previousQuery===Dn||k.isOnComposition)){if(k.previousQuery===null&&(typeof $.filterMethod=="function"||typeof $.remoteMethod=="function")){k.previousQuery=Dn;return}k.previousQuery=Dn,nextTick(()=>{var Yn,Gn;k.visible&&((Gn=(Yn=ie.value)==null?void 0:Yn.updatePopper)==null||Gn.call(Yn))}),k.hoverIndex=-1,$.multiple&&$.filterable&&nextTick(()=>{const Yn=re.value.value.length*15+20;k.inputLength=$.collapseTags?Math.min(50,Yn):Yn,wn(),vn()}),$.remote&&typeof $.remoteMethod=="function"?(k.hoverIndex=-1,$.remoteMethod(Dn)):typeof $.filterMethod=="function"?($.filterMethod(Dn),triggerRef(pe)):(k.filteredOptionsCount=k.optionsCount,de.value.query=Dn,triggerRef(de),triggerRef(pe)),$.defaultFirstOption&&($.filterable||$.remote)&&k.filteredOptionsCount&&_n()}},wn=()=>{k.currentPlaceholder!==""&&(k.currentPlaceholder=re.value.value?"":k.cachedPlaceHolder)},_n=()=>{const Dn=Dt.value.filter(io=>io.visible&&!io.disabled&&!io.states.groupDisabled),Yn=Dn.find(io=>io.created),Gn=Dn[0];k.hoverIndex=Xn(Dt.value,Yn||Gn)},En=()=>{var Dn;if($.multiple)k.selectedLabel="";else{const Gn=Sn($.modelValue);(Dn=Gn.props)!=null&&Dn.created?(k.createdLabel=Gn.props.value,k.createdSelected=!0):k.createdSelected=!1,k.selectedLabel=Gn.currentLabel,k.selected=Gn,$.filterable&&(k.query=k.selectedLabel);return}const Yn=[];Array.isArray($.modelValue)&&$.modelValue.forEach(Gn=>{Yn.push(Sn(Gn))}),k.selected=Yn,nextTick(()=>{vn()})},Sn=Dn=>{let Yn;const Gn=toRawType(Dn).toLowerCase()==="object",io=toRawType(Dn).toLowerCase()==="null",fo=toRawType(Dn).toLowerCase()==="undefined";for(let _o=k.cachedOptions.size-1;_o>=0;_o--){const Ao=At.value[_o];if(Gn?get(Ao.value,$.valueKey)===get(Dn,$.valueKey):Ao.value===Dn){Yn={value:Dn,currentLabel:Ao.currentLabel,isDisabled:Ao.isDisabled};break}}if(Yn)return Yn;const wo=Gn?Dn.label:!io&&!fo?Dn:"",Co={value:Dn,currentLabel:wo};return $.multiple&&(Co.hitState=!1),Co},An=()=>{setTimeout(()=>{const Dn=$.valueKey;$.multiple?k.selected.length>0?k.hoverIndex=Math.min.apply(null,k.selected.map(Yn=>Dt.value.findIndex(Gn=>get(Gn,Dn)===get(Yn,Dn)))):k.hoverIndex=-1:k.hoverIndex=Dt.value.findIndex(Yn=>ro(Yn)===ro(k.selected))},300)},Cn=()=>{var Dn,Yn;Tn(),(Yn=(Dn=ie.value)==null?void 0:Dn.updatePopper)==null||Yn.call(Dn),$.multiple&&!$.filterable&&vn()},Tn=()=>{var Dn;k.inputWidth=(Dn=oe.value)==null?void 0:Dn.$el.getBoundingClientRect().width},Nn=()=>{$.filterable&&k.query!==k.selectedLabel&&(k.query=k.selectedLabel,$n(k.query))},xn=debounce(()=>{Nn()},Oe.value),On=debounce(Dn=>{$n(Dn.target.value)},Oe.value),Ln=Dn=>{isEqual$1($.modelValue,Dn)||V.emit(CHANGE_EVENT,Dn)},Bn=Dn=>{if(Dn.target.value.length<=0&&!ho()){const Yn=$.modelValue.slice();Yn.pop(),V.emit(UPDATE_MODEL_EVENT,Yn),Ln(Yn)}Dn.target.value.length===1&&$.modelValue.length===0&&(k.currentPlaceholder=k.cachedPlaceHolder)},Vn=(Dn,Yn)=>{const Gn=k.selected.indexOf(Yn);if(Gn>-1&&!Ie.value){const io=$.modelValue.slice();io.splice(Gn,1),V.emit(UPDATE_MODEL_EVENT,io),Ln(io),V.emit("remove-tag",Yn.value)}Dn.stopPropagation()},Fn=Dn=>{Dn.stopPropagation();const Yn=$.multiple?[]:"";if(typeof Yn!="string")for(const Gn of k.selected)Gn.isDisabled&&Yn.push(Gn.value);V.emit(UPDATE_MODEL_EVENT,Yn),Ln(Yn),k.visible=!1,V.emit("clear")},zn=(Dn,Yn)=>{var Gn;if($.multiple){const io=($.modelValue||[]).slice(),fo=Xn(io,Dn.value);fo>-1?io.splice(fo,1):($.multipleLimit<=0||io.length<$.multipleLimit)&&io.push(Dn.value),V.emit(UPDATE_MODEL_EVENT,io),Ln(io),Dn.created&&(k.query="",$n(""),k.inputLength=20),$.filterable&&((Gn=re.value)==null||Gn.focus())}else V.emit(UPDATE_MODEL_EVENT,Dn.value),Ln(Dn.value),k.visible=!1;k.isSilentBlur=Yn,Pn(),!k.visible&&nextTick(()=>{Hn(Dn)})},Xn=(Dn=[],Yn)=>{if(!isObject$5(Yn))return Dn.indexOf(Yn);const Gn=$.valueKey;let io=-1;return Dn.some((fo,wo)=>get(fo,Gn)===get(Yn,Gn)?(io=wo,!0):!1),io},Pn=()=>{k.softFocus=!0;const Dn=re.value||oe.value;Dn&&(Dn==null||Dn.focus())},Hn=Dn=>{var Yn,Gn,io,fo,wo;const Co=Array.isArray(Dn)?Dn[0]:Dn;let _o=null;if(Co!=null&&Co.value){const Ao=Dt.value.filter($o=>$o.value===Co.value);Ao.length>0&&(_o=Ao[0].$el)}if(ie.value&&_o){const Ao=(fo=(io=(Gn=(Yn=ie.value)==null?void 0:Yn.popperRef)==null?void 0:Gn.contentRef)==null?void 0:io.querySelector)==null?void 0:fo.call(io,`.${j.be("dropdown","wrap")}`);Ao&&scrollIntoView(Ao,_o)}(wo=le.value)==null||wo.handleScroll()},eo=Dn=>{k.optionsCount++,k.filteredOptionsCount++,k.options.set(Dn.value,Dn),k.cachedOptions.set(Dn.value,Dn)},Qn=(Dn,Yn)=>{k.options.get(Dn)===Yn&&(k.optionsCount--,k.filteredOptionsCount--,k.options.delete(Dn))},ao=Dn=>{Dn.code!==EVENT_CODE.backspace&&ho(!1),k.inputLength=re.value.value.length*15+20,vn()},ho=Dn=>{if(!Array.isArray(k.selected))return;const Yn=k.selected[k.selected.length-1];if(!!Yn)return Dn===!0||Dn===!1?(Yn.hitState=Dn,Dn):(Yn.hitState=!Yn.hitState,Yn.hitState)},uo=Dn=>{const Yn=Dn.target.value;if(Dn.type==="compositionend")k.isOnComposition=!1,nextTick(()=>$n(Yn));else{const Gn=Yn[Yn.length-1]||"";k.isOnComposition=!isKorean(Gn)}},Un=()=>{nextTick(()=>Hn(k.selected))},Zn=Dn=>{k.softFocus?k.softFocus=!1:(($.automaticDropdown||$.filterable)&&($.filterable&&!k.visible&&(k.menuVisibleOnFocus=!0),k.visible=!0),V.emit("focus",Dn))},no=()=>{var Dn;k.visible=!1,(Dn=oe.value)==null||Dn.blur()},qn=Dn=>{nextTick(()=>{k.isSilentBlur?k.isSilentBlur=!1:V.emit("blur",Dn)}),k.softFocus=!1},In=Dn=>{Fn(Dn)},jn=()=>{k.visible=!1},Kn=()=>{var Dn;$.automaticDropdown||Ie.value||(k.menuVisibleOnFocus?k.menuVisibleOnFocus=!1:k.visible=!k.visible,k.visible&&((Dn=re.value||oe.value)==null||Dn.focus()))},so=()=>{k.visible?Dt.value[k.hoverIndex]&&zn(Dt.value[k.hoverIndex],void 0):Kn()},ro=Dn=>isObject$5(Dn.value)?get(Dn.value,$.valueKey):Dn.value,vo=computed(()=>Dt.value.filter(Dn=>Dn.visible).every(Dn=>Dn.disabled)),go=Dn=>{if(!k.visible){k.visible=!0;return}if(!(k.options.size===0||k.filteredOptionsCount===0)&&!k.isOnComposition&&!vo.value){Dn==="next"?(k.hoverIndex++,k.hoverIndex===k.options.size&&(k.hoverIndex=0)):Dn==="prev"&&(k.hoverIndex--,k.hoverIndex<0&&(k.hoverIndex=k.options.size-1));const Yn=Dt.value[k.hoverIndex];(Yn.disabled===!0||Yn.states.groupDisabled===!0||!Yn.visible)&&go(Dn),nextTick(()=>Hn(ue.value))}};return{optionsArray:Dt,selectSize:kt,handleResize:Cn,debouncedOnInputChange:xn,debouncedQueryChange:On,deletePrevTag:Bn,deleteTag:Vn,deleteSelected:Fn,handleOptionSelect:zn,scrollToOption:Hn,readonly:Ce,resetInputHeight:vn,showClose:ze,iconComponent:Et,iconReverse:qe,showNewOption:Lt,collapseTagSize:Pt,setSelected:En,managePlaceholder:wn,selectDisabled:Ie,emptyText:Ue,toggleLastOptionHitState:ho,resetInputState:ao,handleComposition:uo,onOptionCreate:eo,onOptionDestroy:Qn,handleMenuEnter:Un,handleFocus:Zn,blur:no,handleBlur:qn,handleClearClick:In,handleClose:jn,toggleMenu:Kn,selectOption:so,getValueKey:ro,navigateOptions:go,dropMenuVisible:jt,queryChange:de,groupQueryChange:pe,reference:oe,input:re,tooltipRef:ie,tags:ae,selectWrapper:he,scrollbar:le}},COMPONENT_NAME$8="ElSelect",_sfc_main$S=defineComponent({name:COMPONENT_NAME$8,componentName:COMPONENT_NAME$8,components:{ElInput,ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:circleClose},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:arrowUp},tagType:mo(oo({},tagProps.type),{default:"info"})},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,k){const V=useNamespace("select"),z=useNamespace("input"),{t:j}=useLocale(),oe=useSelectStates($),{optionsArray:re,selectSize:ie,readonly:ae,handleResize:he,collapseTagSize:le,debouncedOnInputChange:ue,debouncedQueryChange:de,deletePrevTag:pe,deleteTag:$e,deleteSelected:_e,handleOptionSelect:Ce,scrollToOption:Ie,setSelected:ze,resetInputHeight:Et,managePlaceholder:qe,showClose:Oe,selectDisabled:Ue,iconComponent:Dt,iconReverse:At,showNewOption:Lt,emptyText:kt,toggleLastOptionHitState:Pt,resetInputState:jt,handleComposition:vn,onOptionCreate:$n,onOptionDestroy:wn,handleMenuEnter:_n,handleFocus:En,blur:Sn,handleBlur:An,handleClearClick:Cn,handleClose:Tn,toggleMenu:Nn,selectOption:xn,getValueKey:On,navigateOptions:Ln,dropMenuVisible:Bn,reference:Vn,input:Fn,tooltipRef:zn,tags:Xn,selectWrapper:Pn,scrollbar:Hn,queryChange:eo,groupQueryChange:Qn}=useSelect$2($,oe,k),{focus:ao}=useFocus(Vn),{inputWidth:ho,selected:uo,inputLength:Un,filteredOptionsCount:Zn,visible:no,softFocus:qn,selectedLabel:In,hoverIndex:jn,query:Kn,inputHovering:so,currentPlaceholder:ro,menuVisibleOnFocus:vo,isOnComposition:go,isSilentBlur:Dn,options:Yn,cachedOptions:Gn,optionsCount:io,prefixWidth:fo,tagInMultiLine:wo}=toRefs(oe),Co=computed(()=>{const $o=[V.b()],ko=unref(ie);return ko&&$o.push(V.m(ko)),$.disabled&&$o.push(V.m("disabled")),$o}),_o=computed(()=>({maxWidth:`${unref(ho)-32}px`,width:"100%"}));provide(selectKey,reactive({props:$,options:Yn,optionsArray:re,cachedOptions:Gn,optionsCount:io,filteredOptionsCount:Zn,hoverIndex:jn,handleOptionSelect:Ce,onOptionCreate:$n,onOptionDestroy:wn,selectWrapper:Pn,selected:uo,setSelected:ze,queryChange:eo,groupQueryChange:Qn})),onMounted(()=>{if(oe.cachedPlaceHolder=ro.value=$.placeholder||j("el.select.placeholder"),$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(ro.value=""),addResizeListener(Pn.value,he),Vn.value&&Vn.value.$el){const $o=Vn.value.input;oe.initialInputHeight=$o.getBoundingClientRect().height}$.remote&&$.multiple&&Et(),nextTick(()=>{const $o=Vn.value&&Vn.value.$el;if(!!$o&&(ho.value=$o.getBoundingClientRect().width,k.slots.prefix)){const ko=$o.querySelector(`.${z.e("prefix")}`);fo.value=Math.max(ko.getBoundingClientRect().width+5,30)}}),ze()}),onBeforeUnmount(()=>{removeResizeListener(Pn.value,he)}),$.multiple&&!Array.isArray($.modelValue)&&k.emit(UPDATE_MODEL_EVENT,[]),!$.multiple&&Array.isArray($.modelValue)&&k.emit(UPDATE_MODEL_EVENT,"");const Ao=computed(()=>{var $o,ko;return(ko=($o=zn.value)==null?void 0:$o.popperRef)==null?void 0:ko.contentRef});return{tagInMultiLine:wo,prefixWidth:fo,selectSize:ie,readonly:ae,handleResize:he,collapseTagSize:le,debouncedOnInputChange:ue,debouncedQueryChange:de,deletePrevTag:pe,deleteTag:$e,deleteSelected:_e,handleOptionSelect:Ce,scrollToOption:Ie,inputWidth:ho,selected:uo,inputLength:Un,filteredOptionsCount:Zn,visible:no,softFocus:qn,selectedLabel:In,hoverIndex:jn,query:Kn,inputHovering:so,currentPlaceholder:ro,menuVisibleOnFocus:vo,isOnComposition:go,isSilentBlur:Dn,options:Yn,resetInputHeight:Et,managePlaceholder:qe,showClose:Oe,selectDisabled:Ue,iconComponent:Dt,iconReverse:At,showNewOption:Lt,emptyText:kt,toggleLastOptionHitState:Pt,resetInputState:jt,handleComposition:vn,handleMenuEnter:_n,handleFocus:En,blur:Sn,handleBlur:An,handleClearClick:Cn,handleClose:Tn,toggleMenu:Nn,selectOption:xn,getValueKey:On,navigateOptions:Ln,dropMenuVisible:Bn,focus:ao,reference:Vn,input:Fn,tooltipRef:zn,popperPaneRef:Ao,tags:Xn,selectWrapper:Pn,scrollbar:Hn,wrapperKls:Co,selectTagsStyle:_o,nsSelect:V}}}),_hoisted_1$q={class:"select-trigger"},_hoisted_2$i=["disabled","autocomplete"],_hoisted_3$a={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$z($,k,V,z,j,oe){const re=resolveComponent("el-tag"),ie=resolveComponent("el-tooltip"),ae=resolveComponent("el-icon"),he=resolveComponent("el-input"),le=resolveComponent("el-option"),ue=resolveComponent("el-scrollbar"),de=resolveComponent("el-select-menu"),pe=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass($.wrapperKls),onClick:k[24]||(k[24]=withModifiers((...$e)=>$.toggleMenu&&$.toggleMenu(...$e),["stop"]))},[createVNode(ie,{ref:"tooltipRef",visible:$.dropMenuVisible,"onUpdate:visible":k[23]||(k[23]=$e=>$.dropMenuVisible=$e),placement:"bottom-start",teleported:$.teleported,"popper-class":[$.nsSelect.e("popper"),$.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,pure:"",trigger:"click",transition:`${$.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:$.persistent,onShow:$.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$q,[$.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass($.nsSelect.e("tags")),style:normalizeStyle($.selectTagsStyle)},[$.collapseTags&&$.selected.length?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[createVNode(re,{closable:!$.selectDisabled&&!$.selected[0].isDisabled,size:$.collapseTagSize,hit:$.selected[0].hitState,type:$.tagType,"disable-transitions":"",onClose:k[0]||(k[0]=$e=>$.deleteTag($e,$.selected[0]))},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:$.inputWidth-123+"px"})},toDisplayString$1($.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),$.selected.length>1?(openBlock(),createBlock(re,{key:0,closable:!1,size:$.collapseTagSize,type:$.tagType,"disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(ie,{key:0,disabled:$.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-1),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.selected,($e,_e)=>(openBlock(),createElementBlock("div",{key:_e,class:normalizeClass($.nsSelect.e("collapse-tag"))},[(openBlock(),createBlock(re,{key:$.getValueKey($e),class:"in-tooltip",closable:!$.selectDisabled&&!$e.isDisabled,size:$.collapseTagSize,hit:$e.hitState,type:$.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:Ce=>$.deleteTag(Ce,$e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1($e.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-1),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createCommentVNode("
"),$.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.selected,$e=>(openBlock(),createBlock(re,{key:$.getValueKey($e),closable:!$.selectDisabled&&!$e.isDisabled,size:$.collapseTagSize,hit:$e.hitState,type:$.tagType,"disable-transitions":"",onClose:_e=>$.deleteTag(_e,$e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1($e.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),createCommentVNode("
"),$.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":k[1]||(k[1]=$e=>$.query=$e),type:"text",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize)]),disabled:$.selectDisabled,autocomplete:$.autocomplete,style:normalizeStyle({marginLeft:$.prefixWidth&&!$.selected.length||$.tagInMultiLine?`${$.prefixWidth}px`:"",flexGrow:1,width:`${$.inputLength/($.inputWidth-32)}%`,maxWidth:`${$.inputWidth-42}px`}),onFocus:k[2]||(k[2]=(...$e)=>$.handleFocus&&$.handleFocus(...$e)),onBlur:k[3]||(k[3]=(...$e)=>$.handleBlur&&$.handleBlur(...$e)),onKeyup:k[4]||(k[4]=(...$e)=>$.managePlaceholder&&$.managePlaceholder(...$e)),onKeydown:[k[5]||(k[5]=(...$e)=>$.resetInputState&&$.resetInputState(...$e)),k[6]||(k[6]=withKeys(withModifiers($e=>$.navigateOptions("next"),["prevent"]),["down"])),k[7]||(k[7]=withKeys(withModifiers($e=>$.navigateOptions("prev"),["prevent"]),["up"])),k[8]||(k[8]=withKeys(withModifiers($e=>$.visible=!1,["stop","prevent"]),["esc"])),k[9]||(k[9]=withKeys(withModifiers((...$e)=>$.selectOption&&$.selectOption(...$e),["stop","prevent"]),["enter"])),k[10]||(k[10]=withKeys((...$e)=>$.deletePrevTag&&$.deletePrevTag(...$e),["delete"])),k[11]||(k[11]=withKeys($e=>$.visible=!1,["tab"]))],onCompositionstart:k[12]||(k[12]=(...$e)=>$.handleComposition&&$.handleComposition(...$e)),onCompositionupdate:k[13]||(k[13]=(...$e)=>$.handleComposition&&$.handleComposition(...$e)),onCompositionend:k[14]||(k[14]=(...$e)=>$.handleComposition&&$.handleComposition(...$e)),onInput:k[15]||(k[15]=(...$e)=>$.debouncedQueryChange&&$.debouncedQueryChange(...$e))},null,46,_hoisted_2$i)),[[vModelText,$.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createVNode(he,{id:$.id,ref:"reference",modelValue:$.selectedLabel,"onUpdate:modelValue":k[16]||(k[16]=$e=>$.selectedLabel=$e),type:"text",placeholder:$.currentPlaceholder,name:$.name,autocomplete:$.autocomplete,size:$.selectSize,disabled:$.selectDisabled,readonly:$.readonly,"validate-event":!1,class:normalizeClass([$.nsSelect.is("focus",$.visible)]),tabindex:$.multiple&&$.filterable?-1:void 0,onFocus:$.handleFocus,onBlur:$.handleBlur,onInput:$.debouncedOnInputChange,onPaste:$.debouncedOnInputChange,onCompositionstart:$.handleComposition,onCompositionupdate:$.handleComposition,onCompositionend:$.handleComposition,onKeydown:[k[17]||(k[17]=withKeys(withModifiers($e=>$.navigateOptions("next"),["stop","prevent"]),["down"])),k[18]||(k[18]=withKeys(withModifiers($e=>$.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers($.selectOption,["stop","prevent"]),["enter"]),k[19]||(k[19]=withKeys(withModifiers($e=>$.visible=!1,["stop","prevent"]),["esc"])),k[20]||(k[20]=withKeys($e=>$.visible=!1,["tab"]))],onMouseenter:k[21]||(k[21]=$e=>$.inputHovering=!0),onMouseleave:k[22]||(k[22]=$e=>$.inputHovering=!1)},createSlots({suffix:withCtx(()=>[$.iconComponent&&!$.showClose?(openBlock(),createBlock(ae,{key:0,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.showClose&&$.clearIcon?(openBlock(),createBlock(ae,{key:1,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon")]),onClick:$.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[$.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$a,[renderSlot($.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:withCtx(()=>[createVNode(de,null,{default:withCtx(()=>[withDirectives(createVNode(ue,{ref:"scrollbar",tag:"ul","wrap-class":$.nsSelect.be("dropdown","wrap"),"view-class":$.nsSelect.be("dropdown","list"),class:normalizeClass([$.nsSelect.is("empty",!$.allowCreate&&Boolean($.query)&&$.filteredOptionsCount===0)])},{default:withCtx(()=>[$.showNewOption?(openBlock(),createBlock(le,{key:0,value:$.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),renderSlot($.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[vShow,$.options.size>0&&!$.loading]]),$.emptyText&&(!$.allowCreate||$.loading||$.allowCreate&&$.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[$.$slots.empty?renderSlot($.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass($.nsSelect.be("dropdown","empty"))},toDisplayString$1($.emptyText),3))],2112)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[pe,$.handleClose,$.popperPaneRef]])}var Select$1=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$z],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$R=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup($){const k=useNamespace("select"),V=ref(!0),z=getCurrentInstance(),j=ref([]);provide(selectGroupKey,reactive(oo({},toRefs($))));const oe=inject(selectKey);onMounted(()=>{j.value=re(z.subTree)});const re=ae=>{const he=[];return Array.isArray(ae.children)&&ae.children.forEach(le=>{var ue;le.type&&le.type.name==="ElOption"&&le.component&&le.component.proxy?he.push(le.component.proxy):(ue=le.children)!=null&&ue.length&&he.push(...re(le))}),he},{groupQueryChange:ie}=toRaw(oe);return watch$1(ie,()=>{V.value=j.value.some(ae=>ae.visible===!0)}),{visible:V,ns:k}}});function _sfc_render$y($,k,V,z,j,oe){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass($.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass($.ns.be("group","title"))},toDisplayString$1($.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass($.ns.b("group"))},[renderSlot($.$slots,"default")],2)])],2)),[[vShow,$.visible]])}var OptionGroup=_export_sfc$1(_sfc_main$R,[["render",_sfc_render$y],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption$1=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),usePagination=()=>inject(elPaginationKey,{}),paginationSizesProps=buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},disabled:Boolean,size:{type:String,default:"default"}}),_sfc_main$Q=defineComponent({name:"ElPaginationSizes",components:{ElSelect,ElOption:ElOption$1},props:paginationSizesProps,emits:["page-size-change"],setup($,{emit:k}){const{t:V}=useLocale(),z=useNamespace("pagination"),j=usePagination(),oe=ref($.pageSize);watch$1(()=>$.pageSizes,(ae,he)=>{if(!isEqual$1(ae,he)&&Array.isArray(ae)){const le=ae.includes($.pageSize)?$.pageSize:$.pageSizes[0];k("page-size-change",le)}}),watch$1(()=>$.pageSize,ae=>{oe.value=ae});const re=computed(()=>$.pageSizes);function ie(ae){var he;ae!==oe.value&&(oe.value=ae,(he=j.handleSizeChange)==null||he.call(j,Number(ae)))}return{ns:z,innerPageSizes:re,innerPageSize:oe,t:V,handleChange:ie}}});function _sfc_render$x($,k,V,z,j,oe){const re=resolveComponent("el-option"),ie=resolveComponent("el-select");return openBlock(),createElementBlock("span",{class:normalizeClass($.ns.e("sizes"))},[createVNode(ie,{"model-value":$.innerPageSize,disabled:$.disabled,"popper-class":$.popperClass,size:$.size,onChange:$.handleChange},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.innerPageSizes,ae=>(openBlock(),createBlock(re,{key:ae,value:ae,label:ae+$.t("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","onChange"])],2)}var Sizes=_export_sfc$1(_sfc_main$Q,[["render",_sfc_render$x],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const _sfc_main$P=defineComponent({name:"ElPaginationJumper",components:{ElInput},setup(){const{t:$}=useLocale(),k=useNamespace("pagination"),{pageCount:V,disabled:z,currentPage:j,changeEvent:oe}=usePagination(),re=ref(),ie=computed(()=>{var le;return(le=re.value)!=null?le:j==null?void 0:j.value});function ae(le){re.value=+le}function he(le){le=Math.trunc(+le),oe==null||oe(+le),re.value=void 0}return{ns:k,pageCount:V,disabled:z,innerValue:ie,t:$,handleInput:ae,handleChange:he}}}),_hoisted_1$p=["disabled"];function _sfc_render$w($,k,V,z,j,oe){const re=resolveComponent("el-input");return openBlock(),createElementBlock("span",{class:normalizeClass($.ns.e("jump")),disabled:$.disabled},[createTextVNode(toDisplayString$1($.t("el.pagination.goto"))+" ",1),createVNode(re,{size:"small",class:normalizeClass([$.ns.e("editor"),$.ns.is("in-pagination")]),min:1,max:$.pageCount,disabled:$.disabled,"model-value":$.innerValue,type:"number","onUpdate:modelValue":$.handleInput,onChange:$.handleChange},null,8,["class","max","disabled","model-value","onUpdate:modelValue","onChange"]),createTextVNode(" "+toDisplayString$1($.t("el.pagination.pageClassifier")),1)],10,_hoisted_1$p)}var Jumper=_export_sfc$1(_sfc_main$P,[["render",_sfc_render$w],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const paginationTotalProps={total:{type:Number,default:1e3}},_sfc_main$O=defineComponent({name:"ElPaginationTotal",props:paginationTotalProps,setup(){const{t:$}=useLocale(),k=useNamespace("pagination"),{disabled:V}=usePagination();return{t:$,ns:k,disabled:V}}}),_hoisted_1$o=["disabled"];function _sfc_render$v($,k,V,z,j,oe){return openBlock(),createElementBlock("span",{class:normalizeClass($.ns.e("total")),disabled:$.disabled},toDisplayString$1($.t("el.pagination.total",{total:$.total})),11,_hoisted_1$o)}var Total=_export_sfc$1(_sfc_main$O,[["render",_sfc_render$v],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const paginationPagerProps={currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean},_sfc_main$N=defineComponent({name:"ElPaginationPager",components:{DArrowLeft:dArrowLeft,DArrowRight:dArrowRight,MoreFilled:moreFilled},props:paginationPagerProps,emits:["change"],setup($,{emit:k}){const V=useNamespace("pager"),z=useNamespace("icon"),j=ref(!1),oe=ref(!1),re=ref(!1),ie=ref(!1),ae=computed(()=>{const de=$.pagerCount,pe=(de-1)/2,$e=Number($.currentPage),_e=Number($.pageCount);let Ce=!1,Ie=!1;_e>de&&($e>de-pe&&(Ce=!0),$e<_e-pe&&(Ie=!0));const ze=[];if(Ce&&!Ie){const Et=_e-(de-2);for(let qe=Et;qe<_e;qe++)ze.push(qe)}else if(!Ce&&Ie)for(let Et=2;Et{const de=($.pagerCount-1)/2;j.value=!1,oe.value=!1,$.pageCount>$.pagerCount&&($.currentPage>$.pagerCount-de&&(j.value=!0),$.currentPage<$.pageCount-de&&(oe.value=!0))});function he(de){$.disabled||(de==="left"?re.value=!0:ie.value=!0)}function le(de){const pe=de.target;if(pe.tagName.toLowerCase()==="li"&&Array.from(pe.classList).includes("number")){const $e=Number(pe.textContent);$e!==$.currentPage&&k("change",$e)}}function ue(de){const pe=de.target;if(pe.tagName.toLowerCase()==="ul"||$.disabled)return;let $e=Number(pe.textContent);const _e=$.pageCount,Ce=$.currentPage,Ie=$.pagerCount-2;pe.className.includes("more")&&(pe.className.includes("quickprev")?$e=Ce-Ie:pe.className.includes("quicknext")&&($e=Ce+Ie)),Number.isNaN(+$e)||($e<1&&($e=1),$e>_e&&($e=_e)),$e!==Ce&&k("change",$e)}return{showPrevMore:j,showNextMore:oe,quickPrevHover:re,quickNextHover:ie,pagers:ae,nsPager:V,nsIcon:z,onMouseenter:he,onPagerClick:ue,onEnter:le}}}),_hoisted_1$n=["aria-current"],_hoisted_2$h=["aria-current"],_hoisted_3$9=["aria-current"];function _sfc_render$u($,k,V,z,j,oe){const re=resolveComponent("d-arrow-left"),ie=resolveComponent("more-filled"),ae=resolveComponent("d-arrow-right");return openBlock(),createElementBlock("ul",{class:normalizeClass($.nsPager.b()),onClick:k[4]||(k[4]=(...he)=>$.onPagerClick&&$.onPagerClick(...he)),onKeyup:k[5]||(k[5]=withKeys((...he)=>$.onEnter&&$.onEnter(...he),["enter"]))},[$.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[$.nsPager.is("active",$.currentPage===1),$.nsPager.is("disabled",$.disabled)],"number"]),"aria-current":$.currentPage===1,tabindex:"0"}," 1 ",10,_hoisted_1$n)):createCommentVNode("v-if",!0),$.showPrevMore?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",$.nsIcon.b(),$.nsPager.is("disabled",$.disabled)]),onMouseenter:k[0]||(k[0]=he=>$.onMouseenter("left")),onMouseleave:k[1]||(k[1]=he=>$.quickPrevHover=!1)},[$.quickPrevHover?(openBlock(),createBlock(re,{key:0})):(openBlock(),createBlock(ie,{key:1}))],34)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList($.pagers,he=>(openBlock(),createElementBlock("li",{key:he,class:normalizeClass([[$.nsPager.is("active",$.currentPage===he),$.nsPager.is("disabled",$.disabled)],"number"]),"aria-current":$.currentPage===he,tabindex:"0"},toDisplayString$1(he),11,_hoisted_2$h))),128)),$.showNextMore?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",$.nsIcon.b(),$.nsPager.is("disabled",$.disabled)]),onMouseenter:k[2]||(k[2]=he=>$.onMouseenter("right")),onMouseleave:k[3]||(k[3]=he=>$.quickNextHover=!1)},[$.quickNextHover?(openBlock(),createBlock(ae,{key:0})):(openBlock(),createBlock(ie,{key:1}))],34)):createCommentVNode("v-if",!0),$.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[$.nsPager.is("active",$.currentPage===$.pageCount),$.nsPager.is("disabled",$.disabled)],"number"]),"aria-current":$.currentPage===$.pageCount,tabindex:"0"},toDisplayString$1($.pageCount),11,_hoisted_3$9)):createCommentVNode("v-if",!0)],34)}var Pager=_export_sfc$1(_sfc_main$N,[["render",_sfc_render$u],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=$=>typeof $!="number",paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:$=>typeof $=="number"&&Math.trunc($)===$&&$>4&&$<22&&$%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":$=>typeof $=="number","update:page-size":$=>typeof $=="number","size-change":$=>typeof $=="number","current-change":$=>typeof $=="number","prev-click":$=>typeof $=="number","next-click":$=>typeof $=="number"},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup($,{emit:k,slots:V}){const{t:z}=useLocale(),j=useNamespace("pagination"),oe=getCurrentInstance().vnode.props||{},re="onUpdate:currentPage"in oe||"onUpdate:current-page"in oe||"onCurrentChange"in oe,ie="onUpdate:pageSize"in oe||"onUpdate:page-size"in oe||"onSizeChange"in oe,ae=computed(()=>{if(isAbsent($.total)&&isAbsent($.pageCount)||!isAbsent($.currentPage)&&!re)return!1;if($.layout.includes("sizes")){if(isAbsent($.pageCount)){if(!isAbsent($.total)&&!isAbsent($.pageSize)&&!ie)return!1}else if(!ie)return!1}return!0}),he=ref(isAbsent($.defaultPageSize)?10:$.defaultPageSize),le=ref(isAbsent($.defaultCurrentPage)?1:$.defaultCurrentPage),ue=computed({get(){return isAbsent($.pageSize)?he.value:$.pageSize},set(Et){isAbsent($.pageSize)&&(he.value=Et),ie&&(k("update:page-size",Et),k("size-change",Et))}}),de=computed(()=>{let Et=0;return isAbsent($.pageCount)?isAbsent($.total)||(Et=Math.max(1,Math.ceil($.total/ue.value))):Et=$.pageCount,Et}),pe=computed({get(){return isAbsent($.currentPage)?le.value:$.currentPage},set(Et){let qe=Et;Et<1?qe=1:Et>de.value&&(qe=de.value),isAbsent($.currentPage)&&(le.value=qe),re&&(k("update:current-page",qe),k("current-change",qe))}});watch$1(de,Et=>{pe.value>Et&&(pe.value=Et)});function $e(Et){pe.value=Et}function _e(Et){ue.value=Et;const qe=de.value;pe.value>qe&&(pe.value=qe)}function Ce(){$.disabled||(pe.value-=1,k("prev-click",pe.value))}function Ie(){$.disabled||(pe.value+=1,k("next-click",pe.value))}function ze(Et,qe){Et&&(Et.props||(Et.props={}),Et.props.class=[Et.props.class,qe].join(" "))}return provide(elPaginationKey,{pageCount:de,disabled:computed(()=>$.disabled),currentPage:pe,changeEvent:$e,handleSizeChange:_e}),()=>{var Et,qe;if(!ae.value)return z("el.pagination.deprecationWarning"),null;if(!$.layout||$.hideOnSinglePage&&de.value<=1)return null;const Oe=[],Ue=[],Dt=h$2("div",{class:j.e("rightwrapper")},Ue),At={prev:h$2(Prev,{disabled:$.disabled,currentPage:pe.value,prevText:$.prevText,onClick:Ce}),jumper:h$2(Jumper),pager:h$2(Pager,{currentPage:pe.value,pageCount:de.value,pagerCount:$.pagerCount,onChange:$e,disabled:$.disabled}),next:h$2(Next,{disabled:$.disabled,currentPage:pe.value,pageCount:de.value,nextText:$.nextText,onClick:Ie}),sizes:h$2(Sizes,{pageSize:ue.value,pageSizes:$.pageSizes,popperClass:$.popperClass,disabled:$.disabled,size:$.small?"small":"default"}),slot:(qe=(Et=V==null?void 0:V.default)==null?void 0:Et.call(V))!=null?qe:null,total:h$2(Total,{total:isAbsent($.total)?0:$.total})},Lt=$.layout.split(",").map(Pt=>Pt.trim());let kt=!1;return Lt.forEach(Pt=>{if(Pt==="->"){kt=!0;return}kt?Ue.push(At[Pt]):Oe.push(At[Pt])}),ze(Oe[0],j.is("first")),ze(Oe[Oe.length-1],j.is("last")),kt&&Ue.length>0&&(ze(Ue[0],j.is("first")),ze(Ue[Ue.length-1],j.is("last")),Oe.push(Dt)),h$2("div",{role:"pagination","aria-label":"pagination",class:[j.b(),j.is("background",$.background),{[j.m("small")]:$.small}]},Oe)}}});const ElPagination=withInstall(Pagination),popConfirmButtonTypes=[...buttonTypes,"text"],popconfirmProps=buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:popConfirmButtonTypes,default:"primary"},cancelButtonType:{type:String,values:popConfirmButtonTypes,default:"text"},icon:{type:iconPropType,default:questionFilled},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:definePropType(Function)},onCancel:{type:definePropType(Function)},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent}),__default__$e={name:"ElPopconfirm"},_sfc_main$M=defineComponent(mo(oo({},__default__$e),{props:popconfirmProps,setup($){const k=$,{t:V}=useLocale(),z=useNamespace("popconfirm"),j=ref(),oe=()=>{var ue,de;(de=(ue=j.value)==null?void 0:ue.onClose)==null||de.call(ue)},re=()=>{oe()},ie=ue=>{var de;(de=k.onConfirm)==null||de.call(k,ue),re()},ae=ue=>{var de;(de=k.onCancel)==null||de.call(k,ue),re()},he=computed(()=>k.confirmButtonText||V("el.popconfirm.confirmButtonText")),le=computed(()=>k.cancelButtonText||V("el.popconfirm.cancelButtonText"));return(ue,de)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:j,trigger:"click",effect:"light","popper-class":`${unref(z).namespace.value}-popover`,teleported:ue.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":ue.hideAfter,persistent:ue.persistent},{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(z).b())},[createBaseVNode("div",{class:normalizeClass(unref(z).e("main"))},[!ue.hideIcon&&ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(z).e("icon")),style:normalizeStyle({color:ue.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(ue.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(z).e("action"))},[createVNode(unref(ElButton),{size:"small",type:ue.cancelButtonType==="text"?"":ue.cancelButtonType,text:ue.cancelButtonType==="text",onClick:ae},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:ue.confirmButtonType==="text"?"":ue.confirmButtonType,text:ue.confirmButtonType==="text",onClick:ie},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(he)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[ue.$slots.reference?renderSlot(ue.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["popper-class","teleported","hide-after","persistent"]))}}));var Popconfirm=_export_sfc$1(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),usePopoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:mo(oo({},useTooltipContentProps.enterable),{default:!0}),effect:mo(oo({},useTooltipContentProps.effect),{default:"light"}),teleported:useTooltipContentProps.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),emits=["update:visible","before-enter","before-leave","after-enter","after-leave"],COMPONENT_NAME$7="ElPopover",_sfc_main$L=defineComponent({name:COMPONENT_NAME$7,components:{ElTooltip},props:usePopoverProps,emits,setup($,{emit:k}){const V=useNamespace("popover"),z=ref(null),j=computed(()=>{var $e;return($e=unref(z))==null?void 0:$e.popperRef}),oe=computed(()=>isString$3($.width)?$.width:`${$.width}px`),re=computed(()=>[{width:oe.value},$.popperStyle]),ie=computed(()=>[V.b(),$.popperClass,{[V.m("plain")]:!!$.content}]),ae=computed(()=>$.transition==="el-fade-in-linear");return{ns:V,kls:ie,gpuAcceleration:ae,style:re,tooltipRef:z,popperRef:j,hide:()=>{var $e;($e=z.value)==null||$e.hide()},beforeEnter:()=>{k("before-enter")},beforeLeave:()=>{k("before-leave")},afterEnter:()=>{k("after-enter")},afterLeave:()=>{k("update:visible",!1),k("after-leave")}}}});function _sfc_render$t($,k,V,z,j,oe){const re=resolveComponent("el-tooltip");return openBlock(),createBlock(re,mergeProps({ref:"tooltipRef"},$.$attrs,{trigger:$.trigger,placement:$.placement,disabled:$.disabled,visible:$.visible,transition:$.transition,"popper-options":$.popperOptions,tabindex:$.tabindex,content:$.content,offset:$.offset,"show-after":$.showAfter,"hide-after":$.hideAfter,"auto-close":$.autoClose,"show-arrow":$.showArrow,"aria-label":$.title,effect:$.effect,enterable:$.enterable,"popper-class":$.kls,"popper-style":$.style,teleported:$.teleported,persistent:$.persistent,"gpu-acceleration":$.gpuAcceleration,onBeforeShow:$.beforeEnter,onBeforeHide:$.beforeLeave,onShow:$.afterEnter,onHide:$.afterLeave}),{content:withCtx(()=>[$.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("title")),role:"title"},toDisplayString$1($.title),3)):createCommentVNode("v-if",!0),renderSlot($.$slots,"default",{},()=>[createTextVNode(toDisplayString$1($.content),1)])]),default:withCtx(()=>[$.$slots.reference?renderSlot($.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onBeforeShow","onBeforeHide","onShow","onHide"])}var Popover=_export_sfc$1(_sfc_main$L,[["render",_sfc_render$t],["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/index.vue"]]);const attachEvents=($,k)=>{const V=k.arg||k.value,z=V==null?void 0:V.popperRef;z&&(z.triggerRef=$)};var PopoverDirective={mounted($,k){attachEvents($,k)},updated($,k){attachEvents($,k)}};const VPopover="popover";Popover.install=$=>{$.component(Popover.name,Popover)};PopoverDirective.install=$=>{$.directive(VPopover,PopoverDirective)};const _PopoverDirective=PopoverDirective;Popover.directive=_PopoverDirective;const _Popover=Popover,ElPopover=_Popover,ElPopoverDirective=_PopoverDirective,progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:$=>$>=0&&$<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:definePropType([String,Array,Function]),default:""},format:{type:definePropType(Function),default:$=>`${$}%`}}),_sfc_main$K=defineComponent({name:"ElProgress",components:{ElIcon,CircleCheck:circleCheck,CircleClose:circleClose,Check:check,Close:close$2,WarningFilled:warningFilled},props:progressProps,setup($){const k=useNamespace("progress"),V=computed(()=>({width:`${$.percentage}%`,animationDuration:`${$.duration}s`,backgroundColor:_e($.percentage)})),z=computed(()=>($.strokeWidth/$.width*100).toFixed(1)),j=computed(()=>$.type==="circle"||$.type==="dashboard"?Number.parseInt(`${50-Number.parseFloat(z.value)/2}`,10):0),oe=computed(()=>{const Ie=j.value,ze=$.type==="dashboard";return` - M 50 50 - m 0 ${ze?"":"-"}${Ie} - a ${Ie} ${Ie} 0 1 1 0 ${ze?"-":""}${Ie*2} - a ${Ie} ${Ie} 0 1 1 0 ${ze?"":"-"}${Ie*2} - `}),re=computed(()=>2*Math.PI*j.value),ie=computed(()=>$.type==="dashboard"?.75:1),ae=computed(()=>`${-1*re.value*(1-ie.value)/2}px`),he=computed(()=>({strokeDasharray:`${re.value*ie.value}px, ${re.value}px`,strokeDashoffset:ae.value})),le=computed(()=>({strokeDasharray:`${re.value*ie.value*($.percentage/100)}px, ${re.value}px`,strokeDashoffset:ae.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"})),ue=computed(()=>{let Ie;if($.color)Ie=_e($.percentage);else switch($.status){case"success":Ie="#13ce66";break;case"exception":Ie="#ff4949";break;case"warning":Ie="#e6a23c";break;default:Ie="#20a0ff"}return Ie}),de=computed(()=>$.status==="warning"?warningFilled:$.type==="line"?$.status==="success"?circleCheck:circleClose:$.status==="success"?check:close$2),pe=computed(()=>$.type==="line"?12+$.strokeWidth*.4:$.width*.111111+2),$e=computed(()=>$.format($.percentage)),_e=Ie=>{var ze;const{color:Et}=$;if(typeof Et=="function")return Et(Ie);if(typeof Et=="string")return Et;{const qe=100/Et.length,Ue=Et.map((Dt,At)=>typeof Dt=="string"?{color:Dt,percentage:(At+1)*qe}:Dt).sort((Dt,At)=>Dt.percentage-At.percentage);for(const Dt of Ue)if(Dt.percentage>Ie)return Dt.color;return(ze=Ue[Ue.length-1])==null?void 0:ze.color}},Ce=computed(()=>({percentage:$.percentage}));return{ns:k,barStyle:V,relativeStrokeWidth:z,radius:j,trackPath:oe,perimeter:re,rate:ie,strokeDashoffset:ae,trailPathStyle:he,circlePathStyle:le,stroke:ue,statusIcon:de,progressTextSize:pe,content:$e,slotData:Ce}}}),_hoisted_1$m=["aria-valuenow"],_hoisted_2$g={viewBox:"0 0 100 100"},_hoisted_3$8=["d","stroke","stroke-width"],_hoisted_4$6=["d","stroke","stroke-linecap","stroke-width"],_hoisted_5$5={key:0};function _sfc_render$s($,k,V,z,j,oe){const re=resolveComponent("el-icon");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.m($.type),$.ns.is($.status),{[$.ns.m("without-text")]:!$.showText,[$.ns.m("text-inside")]:$.textInside}]),role:"progressbar","aria-valuenow":$.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[$.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.b("bar"))},[createBaseVNode("div",{class:normalizeClass($.ns.be("bar","outer")),style:normalizeStyle({height:`${$.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([$.ns.be("bar","inner"),{[$.ns.bem("bar","inner","indeterminate")]:$.indeterminate}]),style:normalizeStyle($.barStyle)},[($.showText||$.$slots.default)&&$.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("bar","innerText"))},[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps($.slotData)),()=>[createBaseVNode("span",null,toDisplayString$1($.content),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.b("circle")),style:normalizeStyle({height:`${$.width}px`,width:`${$.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$g,[createBaseVNode("path",{class:normalizeClass($.ns.be("circle","track")),d:$.trackPath,stroke:`var(${$.ns.cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":$.relativeStrokeWidth,fill:"none",style:normalizeStyle($.trailPathStyle)},null,14,_hoisted_3$8),createBaseVNode("path",{class:normalizeClass($.ns.be("circle","path")),d:$.trackPath,stroke:$.stroke,fill:"none","stroke-linecap":$.strokeLinecap,"stroke-width":$.percentage?$.relativeStrokeWidth:0,style:normalizeStyle($.circlePathStyle)},null,14,_hoisted_4$6)]))],6)),($.showText||$.$slots.default)&&!$.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("text")),style:normalizeStyle({fontSize:`${$.progressTextSize}px`})},[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps($.slotData)),()=>[$.status?(openBlock(),createBlock(re,{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.statusIcon)))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$5,toDisplayString$1($.content),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$m)}var Progress=_export_sfc$1(_sfc_main$K,[["render",_sfc_render$s],["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:definePropType([Array,Object]),default:()=>mutable(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:definePropType([Array,Object]),default:()=>[starFilled,starFilled,starFilled]},voidIcon:{type:iconPropType,default:()=>star},disabledVoidIcon:{type:iconPropType,default:()=>starFilled},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:""},texts:{type:definePropType(Array),default:()=>mutable(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:isValidComponentSize},label:{type:String,default:void 0}}),rateEmits={change:$=>typeof $=="number",[UPDATE_MODEL_EVENT]:$=>typeof $=="number"},_hoisted_1$l=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$f=["onMousemove","onClick"],__default__$d={name:"ElRate"},_sfc_main$J=defineComponent(mo(oo({},__default__$d),{props:rateProps,emits:rateEmits,setup($,{expose:k,emit:V}){const z=$;function j(_n,En){const Sn=Tn=>isObject$5(Tn),An=Object.keys(En).map(Tn=>+Tn).filter(Tn=>{const Nn=En[Tn];return(Sn(Nn)?Nn.excluded:!1)?_nTn-Nn),Cn=En[An[0]];return Sn(Cn)&&Cn.value||Cn}const oe=inject(formContextKey,void 0),re=inject(formItemContextKey,void 0),ie=useSize(),ae=useNamespace("rate"),{inputId:he,isLabeledByFormItem:le}=useFormItemInputId(z,{formItemContext:re}),ue=ref(z.modelValue),de=ref(-1),pe=ref(!0),$e=computed(()=>[ae.b(),ae.m(ie.value)]),_e=computed(()=>z.disabled||(oe==null?void 0:oe.disabled)),Ce=computed(()=>ae.cssVarBlock({"void-color":z.voidColor,"disabled-void-color":z.disabledVoidColor,"fill-color":qe.value})),Ie=computed(()=>{let _n="";return z.showScore?_n=z.scoreTemplate.replace(/\{\s*value\s*\}/,_e.value?`${z.modelValue}`:`${ue.value}`):z.showText&&(_n=z.texts[Math.ceil(ue.value)-1]),_n}),ze=computed(()=>z.modelValue*100-Math.floor(z.modelValue)*100),Et=computed(()=>isArray$4(z.colors)?{[z.lowThreshold]:z.colors[0],[z.highThreshold]:{value:z.colors[1],excluded:!0},[z.max]:z.colors[2]}:z.colors),qe=computed(()=>{const _n=j(ue.value,Et.value);return isObject$5(_n)?"":_n}),Oe=computed(()=>{let _n="";return _e.value?_n=`${ze.value}%`:z.allowHalf&&(_n="50%"),{color:qe.value,width:_n}}),Ue=computed(()=>isArray$4(z.icons)?{[z.lowThreshold]:z.icons[0],[z.highThreshold]:{value:z.icons[1],excluded:!0},[z.max]:z.icons[2]}:z.icons),Dt=computed(()=>j(z.modelValue,Ue.value)),At=computed(()=>_e.value?z.disabledVoidIcon:z.voidIcon),Lt=computed(()=>j(ue.value,Ue.value)),kt=computed(()=>{const _n=Array.from({length:z.max}),En=ue.value;return _n.fill(Lt.value,0,En),_n.fill(At.value,En,z.max),_n});function Pt(_n){const En=_e.value&&ze.value>0&&_n-1z.modelValue,Sn=z.allowHalf&&pe.value&&_n-.5<=ue.value&&_n>ue.value;return En||Sn}function jt(_n){_e.value||(z.allowHalf&&pe.value?(V(UPDATE_MODEL_EVENT,ue.value),z.modelValue!==ue.value&&V("change",ue.value)):(V(UPDATE_MODEL_EVENT,_n),z.modelValue!==_n&&V("change",_n)))}function vn(_n){if(_e.value)return;let En=ue.value;const Sn=_n.code;return Sn===EVENT_CODE.up||Sn===EVENT_CODE.right?(z.allowHalf?En+=.5:En+=1,_n.stopPropagation(),_n.preventDefault()):(Sn===EVENT_CODE.left||Sn===EVENT_CODE.down)&&(z.allowHalf?En-=.5:En-=1,_n.stopPropagation(),_n.preventDefault()),En=En<0?0:En,En=En>z.max?z.max:En,V(UPDATE_MODEL_EVENT,En),V("change",En),En}function $n(_n,En){if(!_e.value){if(z.allowHalf){let Sn=En.target;hasClass(Sn,ae.e("item"))&&(Sn=Sn.querySelector(`.${ae.e("icon")}`)),(Sn.clientWidth===0||hasClass(Sn,ae.e("decimal")))&&(Sn=Sn.parentNode),pe.value=En.offsetX*2<=Sn.clientWidth,ue.value=pe.value?_n-.5:_n}else ue.value=_n;de.value=_n}}function wn(){_e.value||(z.allowHalf&&(pe.value=z.modelValue!==Math.floor(z.modelValue)),ue.value=z.modelValue,de.value=-1)}return watch$1(()=>z.modelValue,_n=>{ue.value=_n,pe.value=z.modelValue!==Math.floor(z.modelValue)}),z.modelValue||V(UPDATE_MODEL_EVENT,0),k({setCurrentValue:$n,resetCurrentValue:wn}),(_n,En)=>(openBlock(),createElementBlock("div",{id:unref(he),class:normalizeClass([unref($e),unref(ae).is("disabled",unref(_e))]),role:"slider","aria-label":unref(le)?void 0:_n.label||"rating","aria-labelledby":unref(le)?unref(re).labelId:void 0,"aria-valuenow":ue.value,"aria-valuetext":unref(Ie)||void 0,"aria-valuemin":"0","aria-valuemax":_n.max,tabindex:"0",style:normalizeStyle(unref(Ce)),onKeydown:vn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_n.max,(Sn,An)=>(openBlock(),createElementBlock("span",{key:An,class:normalizeClass(unref(ae).e("item")),onMousemove:Cn=>$n(Sn,Cn),onMouseleave:wn,onClick:Cn=>jt(Sn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref(ae).e("icon"),{hover:de.value===Sn},unref(ae).is("active",Sn<=ue.value)])},{default:withCtx(()=>[Pt(Sn)?createCommentVNode("v-if",!0):(openBlock(),createBlock(resolveDynamicComponent(unref(kt)[Sn-1]),{key:0})),Pt(Sn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle(unref(Oe)),class:normalizeClass([unref(ae).e("icon"),unref(ae).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Dt))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$f))),128)),_n.showText||_n.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ae).e("text"))},toDisplayString$1(unref(Ie)),3)):createCommentVNode("v-if",!0)],46,_hoisted_1$l))}}));var Rate=_export_sfc$1(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.success]:circleCheckFilled,[IconMap.warning]:warningFilled,[IconMap.error]:circleCloseFilled,[IconMap.info]:infoFilled},resultProps=buildProps({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{values:["success","warning","info","error"],default:"info"}}),COMPONENT_NAME$6="ElResult",_sfc_main$I=defineComponent({name:COMPONENT_NAME$6,props:resultProps,setup($){const k=useNamespace("result"),V=computed(()=>{const z=$.icon,j=z&&IconMap[z]?IconMap[z]:"icon-info",oe=IconComponentMap[j]||IconComponentMap["icon-info"];return{class:j,component:oe}});return{ns:k,resultIcon:V}}});function _sfc_render$r($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("icon"))},[renderSlot($.$slots,"icon",{},()=>[$.resultIcon.component?(openBlock(),createBlock(resolveDynamicComponent($.resultIcon.component),{key:0,class:normalizeClass($.resultIcon.class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),$.title||$.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("title"))},[renderSlot($.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1($.title),1)])],2)):createCommentVNode("v-if",!0),$.subTitle||$.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("subtitle"))},[renderSlot($.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1($.subTitle),1)])],2)):createCommentVNode("v-if",!0),$.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("extra"))},[renderSlot($.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2)}var Result=_export_sfc$1(_sfc_main$I,[["render",_sfc_render$r],["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result),rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"],default:"top"}}),Row=defineComponent({name:"ElRow",props:rowProps,setup($,{slots:k}){const V=useNamespace("row"),z=computed(()=>$.gutter);provide(rowContextKey,{gutter:z});const j=computed(()=>{const oe={marginLeft:"",marginRight:""};return $.gutter&&(oe.marginLeft=`-${$.gutter/2}px`,oe.marginRight=oe.marginLeft),oe});return()=>createVNode($.tag,{class:[V.b(),V.is(`justify-${$.justify}`,$.justify!=="start"),V.is(`align-${$.align}`,$.align!=="top")],style:j.value},{default:()=>{var oe;return[(oe=k.default)==null?void 0:oe.call(k)]}})}}),ElRow=withInstall(Row);var safeIsNaN=Number.isNaN||function(k){return typeof k=="number"&&k!==k};function isEqual($,k){return!!($===k||safeIsNaN($)&&safeIsNaN(k))}function areInputsEqual($,k){if($.length!==k.length)return!1;for(var V=0;V<$.length;V++)if(!isEqual($[V],k[V]))return!1;return!0}function memoizeOne($,k){k===void 0&&(k=areInputsEqual);var V=null;function z(){for(var j=[],oe=0;oe{const k=getCurrentInstance().proxy.$props;return computed(()=>{const V=(z,j,oe)=>({});return k.perfMode?memoize(V):memoizeOne(V)})},DEFAULT_DYNAMIC_LIST_ITEM_SIZE=50,ITEM_RENDER_EVT="itemRendered",SCROLL_EVT="scroll",FORWARD="forward",BACKWARD="backward",AUTO_ALIGNMENT="auto",SMART_ALIGNMENT="smart",START_ALIGNMENT="start",CENTERED_ALIGNMENT="center",END_ALIGNMENT="end",HORIZONTAL="horizontal",VERTICAL="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL]:"left",[VERTICAL]:"top"},SCROLLBAR_MIN_SIZE=20,LayoutKeys={[HORIZONTAL]:"deltaX",[VERTICAL]:"deltaY"},useWheel=({atEndEdge:$,atStartEdge:k,layout:V},z)=>{let j,oe=0;const re=ae=>ae<0&&k.value||ae>0&&$.value;return{hasReachedEdge:re,onWheel:ae=>{cAF(j);const he=ae[LayoutKeys[V.value]];re(oe)&&re(oe+he)||(oe+=he,isFirefox()||ae.preventDefault(),j=rAF(()=>{z(oe),oe=0}))}}},itemSize=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache$1=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total=buildProp({type:Number,required:!0}),layout=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL}),virtualizedProps=buildProps({className:{type:String,default:""},containerElement:{type:definePropType([String,Object]),default:"div"},data:{type:definePropType(Array),default:()=>mutable([])},direction,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:definePropType([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),virtualizedListProps=buildProps(oo({cache:cache$1,estimatedItemSize,layout,initScrollOffset,total,itemSize},virtualizedProps)),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps(oo({columnCache:cache$1,columnWidth:itemSize,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:$,rowIndex:k})=>`${k}:${$}`},rowCache:cache$1,rowHeight:itemSize,totalColumn:total,totalRow:total,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap},virtualizedProps)),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout,total,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=($,k)=>$$===LTR||$===RTL||$===HORIZONTAL,isRTL=$=>$===RTL;let cachedRTLResult=null;function getRTLOffsetType($=!1){if(cachedRTLResult===null||$){const k=document.createElement("div"),V=k.style;V.width="50px",V.height="50px",V.overflow="scroll",V.direction="rtl";const z=document.createElement("div"),j=z.style;return j.width="100px",j.height="100px",k.appendChild(z),document.body.appendChild(k),k.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(k.scrollLeft=1,k.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(k),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:$,size:k,bar:V},z){const j={},oe=`translate${V.axis}(${$}px)`;return j[V.size]=k,j.transform=oe,j.msTransform=oe,j.webkitTransform=oe,z==="horizontal"?j.height="100%":j.width="100%",j}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup($,{emit:k}){const V=computed(()=>$.startGap+$.endGap),z=useNamespace("virtual-scrollbar"),j=useNamespace("scrollbar"),oe=ref(),re=ref();let ie=null,ae=null;const he=reactive({isDragging:!1,traveled:0}),le=computed(()=>BAR_MAP[$.layout]),ue=computed(()=>$.clientSize-unref(V)),de=computed(()=>({position:"absolute",width:`${HORIZONTAL===$.layout?ue.value:$.scrollbarSize}px`,height:`${HORIZONTAL===$.layout?$.scrollbarSize:ue.value}px`,[ScrollbarDirKey[$.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),pe=computed(()=>{const Ue=$.ratio,Dt=$.clientSize;if(Ue>=100)return Number.POSITIVE_INFINITY;if(Ue>=50)return Ue*Dt/100;const At=Dt/3;return Math.floor(Math.min(Math.max(Ue*Dt,SCROLLBAR_MIN_SIZE),At))}),$e=computed(()=>{if(!Number.isFinite(pe.value))return{display:"none"};const Ue=`${pe.value}px`;return renderThumbStyle({bar:le.value,size:Ue,move:he.traveled},$.layout)}),_e=computed(()=>Math.floor($.clientSize-pe.value-unref(V))),Ce=()=>{window.addEventListener("mousemove",qe),window.addEventListener("mouseup",Et);const Ue=unref(re);!Ue||(ae=document.onselectstart,document.onselectstart=()=>!1,Ue.addEventListener("touchmove",qe),Ue.addEventListener("touchend",Et))},Ie=()=>{window.removeEventListener("mousemove",qe),window.removeEventListener("mouseup",Et),document.onselectstart=ae,ae=null;const Ue=unref(re);!Ue||(Ue.removeEventListener("touchmove",qe),Ue.removeEventListener("touchend",Et))},ze=Ue=>{Ue.stopImmediatePropagation(),!(Ue.ctrlKey||[1,2].includes(Ue.button))&&(he.isDragging=!0,he[le.value.axis]=Ue.currentTarget[le.value.offset]-(Ue[le.value.client]-Ue.currentTarget.getBoundingClientRect()[le.value.direction]),k("start-move"),Ce())},Et=()=>{he.isDragging=!1,he[le.value.axis]=0,k("stop-move"),Ie()},qe=Ue=>{const{isDragging:Dt}=he;if(!Dt||!re.value||!oe.value)return;const At=he[le.value.axis];if(!At)return;cAF(ie);const Lt=(oe.value.getBoundingClientRect()[le.value.direction]-Ue[le.value.client])*-1,kt=re.value[le.value.offset]-At,Pt=Lt-kt;ie=rAF(()=>{he.traveled=Math.max($.startGap,Math.min(Pt,_e.value)),k("scroll",Pt,_e.value)})},Oe=Ue=>{const Dt=Math.abs(Ue.target.getBoundingClientRect()[le.value.direction]-Ue[le.value.client]),At=re.value[le.value.offset]/2,Lt=Dt-At;he.traveled=Math.max(0,Math.min(Lt,_e.value)),k("scroll",Lt,_e.value)};return watch$1(()=>$.scrollFrom,Ue=>{he.isDragging||(he.traveled=Math.ceil(Ue*_e.value))}),onBeforeUnmount(()=>{Ie()}),()=>h$2("div",{role:"presentation",ref:oe,class:[z.b(),$.class,($.alwaysOn||he.isDragging)&&"always-on"],style:de.value,onMousedown:withModifiers(Oe,["stop","prevent"]),onTouchstartPrevent:ze},h$2("div",{ref:re,class:j.e("thumb"),style:$e.value,onMousedown:ze},[]))}}),createList=({name:$,getOffset:k,getItemSize:V,getItemOffset:z,getEstimatedTotalSize:j,getStartIndexForOffset:oe,getStopIndexForStartIndex:re,initCache:ie,clearCache:ae,validateProps:he})=>defineComponent({name:$!=null?$:"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(le,{emit:ue,expose:de}){he(le);const pe=getCurrentInstance(),$e=useNamespace("vl"),_e=ref(ie(le,pe)),Ce=useCache(),Ie=ref(),ze=ref(),Et=ref(),qe=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$1(le.initScrollOffset)?le.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:le.scrollbarAlwaysOn}),Oe=computed(()=>{const{total:xn,cache:On}=le,{isScrolling:Ln,scrollDir:Bn,scrollOffset:Vn}=unref(qe);if(xn===0)return[0,0,0,0];const Fn=oe(le,Vn,unref(_e)),zn=re(le,Fn,Vn,unref(_e)),Xn=!Ln||Bn===BACKWARD?Math.max(1,On):1,Pn=!Ln||Bn===FORWARD?Math.max(1,On):1;return[Math.max(0,Fn-Xn),Math.max(0,Math.min(xn-1,zn+Pn)),Fn,zn]}),Ue=computed(()=>j(le,unref(_e))),Dt=computed(()=>isHorizontal(le.layout)),At=computed(()=>[{position:"relative",[`overflow-${Dt.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:le.direction,height:isNumber$1(le.height)?`${le.height}px`:le.height,width:isNumber$1(le.width)?`${le.width}px`:le.width},le.style]),Lt=computed(()=>{const xn=unref(Ue),On=unref(Dt);return{height:On?"100%":`${xn}px`,pointerEvents:unref(qe).isScrolling?"none":void 0,width:On?`${xn}px`:"100%"}}),kt=computed(()=>Dt.value?le.width:le.height),{onWheel:Pt}=useWheel({atStartEdge:computed(()=>qe.value.scrollOffset<=0),atEndEdge:computed(()=>qe.value.scrollOffset>=Ue.value),layout:computed(()=>le.layout)},xn=>{var On,Ln;(Ln=(On=Et.value).onMouseUp)==null||Ln.call(On),En(Math.min(qe.value.scrollOffset+xn,Ue.value-kt.value))}),jt=()=>{const{total:xn}=le;if(xn>0){const[Vn,Fn,zn,Xn]=unref(Oe);ue(ITEM_RENDER_EVT,Vn,Fn,zn,Xn)}const{scrollDir:On,scrollOffset:Ln,updateRequested:Bn}=unref(qe);ue(SCROLL_EVT,On,Ln,Bn)},vn=xn=>{const{clientHeight:On,scrollHeight:Ln,scrollTop:Bn}=xn.currentTarget,Vn=unref(qe);if(Vn.scrollOffset===Bn)return;const Fn=Math.max(0,Math.min(Bn,Ln-On));qe.value=mo(oo({},Vn),{isScrolling:!0,scrollDir:getScrollDir(Vn.scrollOffset,Fn),scrollOffset:Fn,updateRequested:!1}),nextTick(Cn)},$n=xn=>{const{clientWidth:On,scrollLeft:Ln,scrollWidth:Bn}=xn.currentTarget,Vn=unref(qe);if(Vn.scrollOffset===Ln)return;const{direction:Fn}=le;let zn=Ln;if(Fn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{zn=-Ln;break}case RTL_OFFSET_POS_DESC:{zn=Bn-On-Ln;break}}zn=Math.max(0,Math.min(zn,Bn-On)),qe.value=mo(oo({},Vn),{isScrolling:!0,scrollDir:getScrollDir(Vn.scrollOffset,zn),scrollOffset:zn,updateRequested:!1}),nextTick(Cn)},wn=xn=>{unref(Dt)?$n(xn):vn(xn),jt()},_n=(xn,On)=>{const Ln=(Ue.value-kt.value)/On*xn;En(Math.min(Ue.value-kt.value,Ln))},En=xn=>{xn=Math.max(xn,0),xn!==unref(qe).scrollOffset&&(qe.value=mo(oo({},unref(qe)),{scrollOffset:xn,scrollDir:getScrollDir(unref(qe).scrollOffset,xn),updateRequested:!0}),nextTick(Cn))},Sn=(xn,On=AUTO_ALIGNMENT)=>{const{scrollOffset:Ln}=unref(qe);xn=Math.max(0,Math.min(xn,le.total-1)),En(k(le,xn,On,Ln,unref(_e)))},An=xn=>{const{direction:On,itemSize:Ln,layout:Bn}=le,Vn=Ce.value(ae&&Ln,ae&&Bn,ae&&On);let Fn;if(hasOwn$2(Vn,String(xn)))Fn=Vn[xn];else{const zn=z(le,xn,unref(_e)),Xn=V(le,xn,unref(_e)),Pn=unref(Dt),Hn=On===RTL,eo=Pn?zn:0;Vn[xn]=Fn={position:"absolute",left:Hn?void 0:`${eo}px`,right:Hn?`${eo}px`:void 0,top:Pn?0:`${zn}px`,height:Pn?"100%":`${Xn}px`,width:Pn?`${Xn}px`:"100%"}}return Fn},Cn=()=>{qe.value.isScrolling=!1,nextTick(()=>{Ce.value(-1,null,null)})},Tn=()=>{const xn=Ie.value;xn&&(xn.scrollTop=0)};onMounted(()=>{if(!isClient)return;const{initScrollOffset:xn}=le,On=unref(Ie);isNumber$1(xn)&&On&&(unref(Dt)?On.scrollLeft=xn:On.scrollTop=xn),jt()}),onUpdated(()=>{const{direction:xn,layout:On}=le,{scrollOffset:Ln,updateRequested:Bn}=unref(qe),Vn=unref(Ie);if(Bn&&Vn)if(On===HORIZONTAL)if(xn===RTL)switch(getRTLOffsetType()){case"negative":{Vn.scrollLeft=-Ln;break}case"positive-ascending":{Vn.scrollLeft=Ln;break}default:{const{clientWidth:Fn,scrollWidth:zn}=Vn;Vn.scrollLeft=zn-Fn-Ln;break}}else Vn.scrollLeft=Ln;else Vn.scrollTop=Ln});const Nn={ns:$e,clientSize:kt,estimatedTotalSize:Ue,windowStyle:At,windowRef:Ie,innerRef:ze,innerStyle:Lt,itemsToRender:Oe,scrollbarRef:Et,states:qe,getItemStyle:An,onScroll:wn,onScrollbarScroll:_n,onWheel:Pt,scrollTo:En,scrollToItem:Sn,resetScrollTop:Tn};return de({windowRef:Ie,innerRef:ze,getItemStyleCache:Ce,scrollTo:En,scrollToItem:Sn,resetScrollTop:Tn,states:qe}),Nn},render(le){var ue;const{$slots:de,className:pe,clientSize:$e,containerElement:_e,data:Ce,getItemStyle:Ie,innerElement:ze,itemsToRender:Et,innerStyle:qe,layout:Oe,total:Ue,onScroll:Dt,onScrollbarScroll:At,onWheel:Lt,states:kt,useIsScrolling:Pt,windowStyle:jt,ns:vn}=le,[$n,wn]=Et,_n=resolveDynamicComponent(_e),En=resolveDynamicComponent(ze),Sn=[];if(Ue>0)for(let Nn=$n;Nn<=wn;Nn++)Sn.push((ue=de.default)==null?void 0:ue.call(de,{data:Ce,key:Nn,index:Nn,isScrolling:Pt?kt.isScrolling:void 0,style:Ie(Nn)}));const An=[h$2(En,{style:qe,ref:"innerRef"},isString$3(En)?Sn:{default:()=>Sn})],Cn=h$2(ScrollBar,{ref:"scrollbarRef",clientSize:$e,layout:Oe,onScroll:At,ratio:$e*100/this.estimatedTotalSize,scrollFrom:kt.scrollOffset/(this.estimatedTotalSize-$e),total:Ue}),Tn=h$2(_n,{class:["el-vl__window",pe],style:jt,onScroll:Dt,onWheel:Lt,ref:"windowRef",key:0},isString$3(_n)?[An]:{default:()=>[An]});return h$2("div",{key:0,class:[vn.e("wrapper"),kt.scrollbarAlwaysOn?"always-on":""]},[Tn,Cn])}}),FixedSizeList=createList({name:"ElFixedSizeList",getItemOffset:({itemSize:$},k)=>k*$,getItemSize:({itemSize:$})=>$,getEstimatedTotalSize:({total:$,itemSize:k})=>k*$,getOffset:({height:$,total:k,itemSize:V,layout:z,width:j},oe,re,ie)=>{const ae=isHorizontal(z)?j:$,he=Math.max(0,k*V-ae),le=Math.min(he,oe*V),ue=Math.max(0,(oe+1)*V-ae);switch(re===SMART_ALIGNMENT&&(ie>=ue-ae&&ie<=le+ae?re=AUTO_ALIGNMENT:re=CENTERED_ALIGNMENT),re){case START_ALIGNMENT:return le;case END_ALIGNMENT:return ue;case CENTERED_ALIGNMENT:{const de=Math.round(ue+(le-ue)/2);return dehe+Math.floor(ae/2)?he:de}case AUTO_ALIGNMENT:default:return ie>=ue&&ie<=le?ie:ieMath.max(0,Math.min($-1,Math.floor(V/k))),getStopIndexForStartIndex:({height:$,total:k,itemSize:V,layout:z,width:j},oe,re)=>{const ie=oe*V,ae=isHorizontal(z)?j:$,he=Math.ceil((ae+re-ie)/V);return Math.max(0,Math.min(k-1,oe+he-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=($,k,V)=>{const{itemSize:z}=$,{items:j,lastVisitedIndex:oe}=V;if(k>oe){let re=0;if(oe>=0){const ie=j[oe];re=ie.offset+ie.size}for(let ie=oe+1;ie<=k;ie++){const ae=z(ie);j[ie]={offset:re,size:ae},re+=ae}V.lastVisitedIndex=k}return j[k]},findItem$1=($,k,V)=>{const{items:z,lastVisitedIndex:j}=k;return(j>0?z[j].offset:0)>=V?bs$1($,k,0,j,V):es$1($,k,Math.max(0,j),V)},bs$1=($,k,V,z,j)=>{for(;V<=z;){const oe=V+Math.floor((z-V)/2),re=getItemFromCache$1($,oe,k).offset;if(re===j)return oe;rej&&(z=oe-1)}return Math.max(0,V-1)},es$1=($,k,V,z)=>{const{total:j}=$;let oe=1;for(;V{let j=0;if(z>=$&&(z=$-1),z>=0){const ie=k[z];j=ie.offset+ie.size}const re=($-z-1)*V;return j+re},DynamicSizeList=createList({name:"ElDynamicSizeList",getItemOffset:($,k,V)=>getItemFromCache$1($,k,V).offset,getItemSize:($,k,{items:V})=>V[k].size,getEstimatedTotalSize,getOffset:($,k,V,z,j)=>{const{height:oe,layout:re,width:ie}=$,ae=isHorizontal(re)?ie:oe,he=getItemFromCache$1($,k,j),le=getEstimatedTotalSize($,j),ue=Math.max(0,Math.min(le-ae,he.offset)),de=Math.max(0,he.offset-ae+he.size);switch(V===SMART_ALIGNMENT&&(z>=de-ae&&z<=ue+ae?V=AUTO_ALIGNMENT:V=CENTERED_ALIGNMENT),V){case START_ALIGNMENT:return ue;case END_ALIGNMENT:return de;case CENTERED_ALIGNMENT:return Math.round(de+(ue-de)/2);case AUTO_ALIGNMENT:default:return z>=de&&z<=ue?z:zfindItem$1($,V,k),getStopIndexForStartIndex:($,k,V,z)=>{const{height:j,total:oe,layout:re,width:ie}=$,ae=isHorizontal(re)?ie:j,he=getItemFromCache$1($,k,z),le=V+ae;let ue=he.offset+he.size,de=k;for(;de{var oe,re;V.lastVisitedIndex=Math.min(V.lastVisitedIndex,z-1),(oe=k.exposed)==null||oe.getItemStyleCache(-1),j&&((re=k.proxy)==null||re.$forceUpdate())},V},clearCache:!1,validateProps:({itemSize:$})=>{}}),useGridWheel=({atXEndEdge:$,atXStartEdge:k,atYEndEdge:V,atYStartEdge:z},j)=>{let oe=null,re=0,ie=0;const ae=(le,ue)=>{const de=le<0&&k.value||le>0&&$.value,pe=ue<0&&z.value||ue>0&&V.value;return de&&pe};return{hasReachedEdge:ae,onWheel:le=>{cAF(oe);let ue=le.deltaX,de=le.deltaY;Math.abs(ue)>Math.abs(de)?de=0:ue=0,le.shiftKey&&de!==0&&(ue=de,de=0),!(ae(re,ie)&&ae(re+ue,ie+de))&&(re+=ue,ie+=de,isFirefox()||le.preventDefault(),oe=rAF(()=>{j(re,ie),re=0,ie=0}))}}},createGrid=({name:$,clearCache:k,getColumnPosition:V,getColumnStartIndexForOffset:z,getColumnStopIndexForStartIndex:j,getEstimatedTotalHeight:oe,getEstimatedTotalWidth:re,getColumnOffset:ie,getRowOffset:ae,getRowPosition:he,getRowStartIndexForOffset:le,getRowStopIndexForStartIndex:ue,initCache:de,injectToInstance:pe,validateProps:$e})=>defineComponent({name:$!=null?$:"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(_e,{emit:Ce,expose:Ie,slots:ze}){const Et=useNamespace("vl");$e(_e);const qe=getCurrentInstance(),Oe=ref(de(_e,qe));pe==null||pe(qe,Oe);const Ue=ref(),Dt=ref(),At=ref(),Lt=ref(null),kt=ref({isScrolling:!1,scrollLeft:isNumber$1(_e.initScrollLeft)?_e.initScrollLeft:0,scrollTop:isNumber$1(_e.initScrollTop)?_e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Pt=useCache(),jt=computed(()=>Number.parseInt(`${_e.height}`,10)),vn=computed(()=>Number.parseInt(`${_e.width}`,10)),$n=computed(()=>{const{totalColumn:uo,totalRow:Un,columnCache:Zn}=_e,{isScrolling:no,xAxisScrollDir:qn,scrollLeft:In}=unref(kt);if(uo===0||Un===0)return[0,0,0,0];const jn=z(_e,In,unref(Oe)),Kn=j(_e,jn,In,unref(Oe)),so=!no||qn===BACKWARD?Math.max(1,Zn):1,ro=!no||qn===FORWARD?Math.max(1,Zn):1;return[Math.max(0,jn-so),Math.max(0,Math.min(uo-1,Kn+ro)),jn,Kn]}),wn=computed(()=>{const{totalColumn:uo,totalRow:Un,rowCache:Zn}=_e,{isScrolling:no,yAxisScrollDir:qn,scrollTop:In}=unref(kt);if(uo===0||Un===0)return[0,0,0,0];const jn=le(_e,In,unref(Oe)),Kn=ue(_e,jn,In,unref(Oe)),so=!no||qn===BACKWARD?Math.max(1,Zn):1,ro=!no||qn===FORWARD?Math.max(1,Zn):1;return[Math.max(0,jn-so),Math.max(0,Math.min(Un-1,Kn+ro)),jn,Kn]}),_n=computed(()=>oe(_e,unref(Oe))),En=computed(()=>re(_e,unref(Oe))),Sn=computed(()=>{var uo;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:_e.direction,height:isNumber$1(_e.height)?`${_e.height}px`:_e.height,width:isNumber$1(_e.width)?`${_e.width}px`:_e.width},(uo=_e.style)!=null?uo:{}]}),An=computed(()=>{const uo=`${unref(En)}px`;return{height:`${unref(_n)}px`,pointerEvents:unref(kt).isScrolling?"none":void 0,width:uo}}),Cn=()=>{const{totalColumn:uo,totalRow:Un}=_e;if(uo>0&&Un>0){const[Kn,so,ro,vo]=unref($n),[go,Dn,Yn,Gn]=unref(wn);Ce(ITEM_RENDER_EVT,{columnCacheStart:Kn,columnCacheEnd:so,rowCacheStart:go,rowCacheEnd:Dn,columnVisibleStart:ro,columnVisibleEnd:vo,rowVisibleStart:Yn,rowVisibleEnd:Gn})}const{scrollLeft:Zn,scrollTop:no,updateRequested:qn,xAxisScrollDir:In,yAxisScrollDir:jn}=unref(kt);Ce(SCROLL_EVT,{xAxisScrollDir:In,scrollLeft:Zn,yAxisScrollDir:jn,scrollTop:no,updateRequested:qn})},Tn=uo=>{const{clientHeight:Un,clientWidth:Zn,scrollHeight:no,scrollLeft:qn,scrollTop:In,scrollWidth:jn}=uo.currentTarget,Kn=unref(kt);if(Kn.scrollTop===In&&Kn.scrollLeft===qn)return;let so=qn;if(isRTL(_e.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:so=-qn;break;case RTL_OFFSET_POS_DESC:so=jn-Zn-qn;break}kt.value=mo(oo({},Kn),{isScrolling:!0,scrollLeft:so,scrollTop:Math.max(0,Math.min(In,no-Un)),updateRequested:!0,xAxisScrollDir:getScrollDir(Kn.scrollLeft,so),yAxisScrollDir:getScrollDir(Kn.scrollTop,In)}),nextTick(()=>Fn()),zn(),Cn()},Nn=(uo,Un)=>{const Zn=unref(jt),no=(_n.value-Zn)/Un*uo;Ln({scrollTop:Math.min(_n.value-Zn,no)})},xn=(uo,Un)=>{const Zn=unref(vn),no=(En.value-Zn)/Un*uo;Ln({scrollLeft:Math.min(En.value-Zn,no)})},{onWheel:On}=useGridWheel({atXStartEdge:computed(()=>kt.value.scrollLeft<=0),atXEndEdge:computed(()=>kt.value.scrollLeft>=En.value),atYStartEdge:computed(()=>kt.value.scrollTop<=0),atYEndEdge:computed(()=>kt.value.scrollTop>=_n.value)},(uo,Un)=>{var Zn,no,qn,In;(no=(Zn=Dt.value)==null?void 0:Zn.onMouseUp)==null||no.call(Zn),(In=(qn=Dt.value)==null?void 0:qn.onMouseUp)==null||In.call(qn);const jn=unref(vn),Kn=unref(jt);Ln({scrollLeft:Math.min(kt.value.scrollLeft+uo,En.value-jn),scrollTop:Math.min(kt.value.scrollTop+Un,_n.value-Kn)})}),Ln=({scrollLeft:uo=kt.value.scrollLeft,scrollTop:Un=kt.value.scrollTop})=>{uo=Math.max(uo,0),Un=Math.max(Un,0);const Zn=unref(kt);Un===Zn.scrollTop&&uo===Zn.scrollLeft||(kt.value=mo(oo({},Zn),{xAxisScrollDir:getScrollDir(Zn.scrollLeft,uo),yAxisScrollDir:getScrollDir(Zn.scrollTop,Un),scrollLeft:uo,scrollTop:Un,updateRequested:!0}),nextTick(()=>Fn()),zn(),Cn())},Bn=(uo=0,Un=0,Zn=AUTO_ALIGNMENT)=>{const no=unref(kt);Un=Math.max(0,Math.min(Un,_e.totalColumn-1)),uo=Math.max(0,Math.min(uo,_e.totalRow-1));const qn=getScrollBarWidth(),In=unref(Oe),jn=oe(_e,In),Kn=re(_e,In);Ln({scrollLeft:ie(_e,Un,Zn,no.scrollLeft,In,Kn>_e.width?qn:0),scrollTop:ae(_e,uo,Zn,no.scrollTop,In,jn>_e.height?qn:0)})},Vn=(uo,Un)=>{const{columnWidth:Zn,direction:no,rowHeight:qn}=_e,In=Pt.value(k&&Zn,k&&qn,k&&no),jn=`${uo},${Un}`;if(hasOwn$2(In,jn))return In[jn];{const[,Kn]=V(_e,Un,unref(Oe)),so=unref(Oe),ro=isRTL(no),[vo,go]=he(_e,uo,so),[Dn]=V(_e,Un,so);return In[jn]={position:"absolute",left:ro?void 0:`${Kn}px`,right:ro?`${Kn}px`:void 0,top:`${go}px`,height:`${vo}px`,width:`${Dn}px`},In[jn]}},Fn=()=>{kt.value.isScrolling=!1,nextTick(()=>{Pt.value(-1,null,null)})};onMounted(()=>{if(!isClient)return;const{initScrollLeft:uo,initScrollTop:Un}=_e,Zn=unref(Ue);Zn&&(isNumber$1(uo)&&(Zn.scrollLeft=uo),isNumber$1(Un)&&(Zn.scrollTop=Un)),Cn()});const zn=()=>{const{direction:uo}=_e,{scrollLeft:Un,scrollTop:Zn,updateRequested:no}=unref(kt),qn=unref(Ue);if(no&&qn){if(uo===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{qn.scrollLeft=-Un;break}case RTL_OFFSET_POS_ASC:{qn.scrollLeft=Un;break}default:{const{clientWidth:In,scrollWidth:jn}=qn;qn.scrollLeft=jn-In-Un;break}}else qn.scrollLeft=Math.max(0,Un);qn.scrollTop=Math.max(0,Zn)}},{resetAfterColumnIndex:Xn,resetAfterRowIndex:Pn,resetAfter:Hn}=qe.proxy;Ie({windowRef:Ue,innerRef:Lt,getItemStyleCache:Pt,scrollTo:Ln,scrollToItem:Bn,states:kt,resetAfterColumnIndex:Xn,resetAfterRowIndex:Pn,resetAfter:Hn});const eo=()=>{const{scrollbarAlwaysOn:uo,scrollbarStartGap:Un,scrollbarEndGap:Zn,totalColumn:no,totalRow:qn}=_e,In=unref(vn),jn=unref(jt),Kn=unref(En),so=unref(_n),{scrollLeft:ro,scrollTop:vo}=unref(kt),go=h$2(ScrollBar,{ref:Dt,alwaysOn:uo,startGap:Un,endGap:Zn,class:Et.e("horizontal"),clientSize:In,layout:"horizontal",onScroll:xn,ratio:In*100/Kn,scrollFrom:ro/(Kn-In),total:qn,visible:!0}),Dn=h$2(ScrollBar,{ref:At,alwaysOn:uo,startGap:Un,endGap:Zn,class:Et.e("vertical"),clientSize:jn,layout:"vertical",onScroll:Nn,ratio:jn*100/so,scrollFrom:vo/(so-jn),total:no,visible:!0});return{horizontalScrollbar:go,verticalScrollbar:Dn}},Qn=()=>{var uo;const[Un,Zn]=unref($n),[no,qn]=unref(wn),{data:In,totalColumn:jn,totalRow:Kn,useIsScrolling:so,itemKey:ro}=_e,vo=[];if(Kn>0&&jn>0)for(let go=no;go<=qn;go++)for(let Dn=Un;Dn<=Zn;Dn++)vo.push((uo=ze.default)==null?void 0:uo.call(ze,{columnIndex:Dn,data:In,key:ro({columnIndex:Dn,data:In,rowIndex:go}),isScrolling:so?unref(kt).isScrolling:void 0,style:Vn(go,Dn),rowIndex:go}));return vo},ao=()=>{const uo=resolveDynamicComponent(_e.innerElement),Un=Qn();return[h$2(uo,{style:unref(An),ref:Lt},isString$3(uo)?Un:{default:()=>Un})]};return()=>{const uo=resolveDynamicComponent(_e.containerElement),{horizontalScrollbar:Un,verticalScrollbar:Zn}=eo(),no=ao();return h$2("div",{key:0,class:Et.e("wrapper")},[h$2(uo,{class:_e.className,style:unref(Sn),onScroll:Tn,onWheel:On,ref:Ue},isString$3(uo)?no:{default:()=>no}),Un,Zn])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:$},k)=>[$,k*$],getRowPosition:({rowHeight:$},k)=>[$,k*$],getEstimatedTotalHeight:({totalRow:$,rowHeight:k})=>k*$,getEstimatedTotalWidth:({totalColumn:$,columnWidth:k})=>k*$,getColumnOffset:({totalColumn:$,columnWidth:k,width:V},z,j,oe,re,ie)=>{V=Number(V);const ae=Math.max(0,$*k-V),he=Math.min(ae,z*k),le=Math.max(0,z*k-V+ie+k);switch(j==="smart"&&(oe>=le-V&&oe<=he+V?j=AUTO_ALIGNMENT:j=CENTERED_ALIGNMENT),j){case START_ALIGNMENT:return he;case END_ALIGNMENT:return le;case CENTERED_ALIGNMENT:{const ue=Math.round(le+(he-le)/2);return ueae+Math.floor(V/2)?ae:ue}case AUTO_ALIGNMENT:default:return oe>=le&&oe<=he?oe:le>he||oe{k=Number(k);const ae=Math.max(0,V*$-k),he=Math.min(ae,z*$),le=Math.max(0,z*$-k+ie+$);switch(j===SMART_ALIGNMENT&&(oe>=le-k&&oe<=he+k?j=AUTO_ALIGNMENT:j=CENTERED_ALIGNMENT),j){case START_ALIGNMENT:return he;case END_ALIGNMENT:return le;case CENTERED_ALIGNMENT:{const ue=Math.round(le+(he-le)/2);return ueae+Math.floor(k/2)?ae:ue}case AUTO_ALIGNMENT:default:return oe>=le&&oe<=he?oe:le>he||oeMath.max(0,Math.min(k-1,Math.floor(V/$))),getColumnStopIndexForStartIndex:({columnWidth:$,totalColumn:k,width:V},z,j)=>{const oe=z*$,re=Math.ceil((V+j-oe)/$);return Math.max(0,Math.min(k-1,z+re-1))},getRowStartIndexForOffset:({rowHeight:$,totalRow:k},V)=>Math.max(0,Math.min(k-1,Math.floor(V/$))),getRowStopIndexForStartIndex:({rowHeight:$,totalRow:k,height:V},z,j)=>{const oe=z*$,re=Math.ceil((V+j-oe)/$);return Math.max(0,Math.min(k-1,z+re-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:$,rowHeight:k})=>{}}),{max,min,floor}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=($,k,V,z)=>{const[j,oe,re]=[V[z],$[ACCESS_SIZER_KEY_MAP[z]],V[ACCESS_LAST_VISITED_KEY_MAP[z]]];if(k>re){let ie=0;if(re>=0){const ae=j[re];ie=ae.offset+ae.size}for(let ae=re+1;ae<=k;ae++){const he=oe(ae);j[ae]={offset:ie,size:he},ie+=he}V[ACCESS_LAST_VISITED_KEY_MAP[z]]=k}return j[k]},bs=($,k,V,z,j,oe)=>{for(;V<=z;){const re=V+floor((z-V)/2),ie=getItemFromCache($,re,k,oe).offset;if(ie===j)return re;ie{const oe=j==="column"?$.totalColumn:$.totalRow;let re=1;for(;V{const[j,oe]=[k[z],k[ACCESS_LAST_VISITED_KEY_MAP[z]]];return(oe>0?j[oe].offset:0)>=V?bs($,k,0,oe,V,z):es($,k,max(0,oe),V,z)},getEstimatedTotalHeight=({totalRow:$},{estimatedRowHeight:k,lastVisitedRowIndex:V,row:z})=>{let j=0;if(V>=$&&(V=$-1),V>=0){const ie=z[V];j=ie.offset+ie.size}const re=($-V-1)*k;return j+re},getEstimatedTotalWidth=({totalColumn:$},{column:k,estimatedColumnWidth:V,lastVisitedColumnIndex:z})=>{let j=0;if(z>$&&(z=$-1),z>=0){const ie=k[z];j=ie.offset+ie.size}const re=($-z-1)*V;return j+re},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=($,k,V,z,j,oe,re)=>{const[ie,ae]=[oe==="row"?$.height:$.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[oe]],he=getItemFromCache($,k,j,oe),le=ae($,j),ue=max(0,min(le-ie,he.offset)),de=max(0,he.offset-ie+re+he.size);switch(V===SMART_ALIGNMENT&&(z>=de-ie&&z<=ue+ie?V=AUTO_ALIGNMENT:V=CENTERED_ALIGNMENT),V){case START_ALIGNMENT:return ue;case END_ALIGNMENT:return de;case CENTERED_ALIGNMENT:return Math.round(de+(ue-de)/2);case AUTO_ALIGNMENT:default:return z>=de&&z<=ue?z:de>ue||z{const z=getItemFromCache($,k,V,"column");return[z.size,z.offset]},getRowPosition:($,k,V)=>{const z=getItemFromCache($,k,V,"row");return[z.size,z.offset]},getColumnOffset:($,k,V,z,j,oe)=>getOffset$1($,k,V,z,j,"column",oe),getRowOffset:($,k,V,z,j,oe)=>getOffset$1($,k,V,z,j,"row",oe),getColumnStartIndexForOffset:($,k,V)=>findItem($,V,k,"column"),getColumnStopIndexForStartIndex:($,k,V,z)=>{const j=getItemFromCache($,k,z,"column"),oe=V+$.width;let re=j.offset+j.size,ie=k;for(;ie<$.totalColumn-1&&refindItem($,V,k,"row"),getRowStopIndexForStartIndex:($,k,V,z)=>{const{totalRow:j,height:oe}=$,re=getItemFromCache($,k,z,"row"),ie=V+oe;let ae=re.size+re.offset,he=k;for(;he{const V=({columnIndex:oe,rowIndex:re},ie)=>{var ae,he;ie=isUndefined(ie)?!0:ie,isNumber$1(oe)&&(k.value.lastVisitedColumnIndex=Math.min(k.value.lastVisitedColumnIndex,oe-1)),isNumber$1(re)&&(k.value.lastVisitedRowIndex=Math.min(k.value.lastVisitedRowIndex,re-1)),(ae=$.exposed)==null||ae.getItemStyleCache.value(-1,null,null),ie&&((he=$.proxy)==null||he.$forceUpdate())},z=(oe,re)=>{V({columnIndex:oe},re)},j=(oe,re)=>{V({rowIndex:oe},re)};Object.assign($.proxy,{resetAfterColumnIndex:z,resetAfterRowIndex:j,resetAfter:V})},initCache:({estimatedColumnWidth:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:k=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:$,estimatedRowHeight:k,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:$,rowHeight:k})=>{}}),_sfc_main$H=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$q($,k,V,z,j,oe){return $.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("group","title")),style:normalizeStyle([$.style,{lineHeight:`${$.height}px`}])},toDisplayString$1($.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.be("group","split")),style:normalizeStyle($.style)},[createBaseVNode("span",{class:normalizeClass($.ns.be("group","split-dash")),style:normalizeStyle({top:`${$.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$1(_sfc_main$H,[["render",_sfc_render$q],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption($,{emit:k}){return{hoverItem:()=>{$.disabled||k("hover",$.index)},selectOptionClick:()=>{$.disabled||k("select",$.item,$.index)}}}const SelectProps={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:circleClose},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:isValidComponentSize},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1}},OptionProps={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},_sfc_main$G=defineComponent({props:OptionProps,emits:["select","hover"],setup($,{emit:k}){const V=useNamespace("select"),{hoverItem:z,selectOptionClick:j}=useOption($,{emit:k});return{ns:V,hoverItem:z,selectOptionClick:j}}}),_hoisted_1$k=["aria-selected"];function _sfc_render$p($,k,V,z,j,oe){return openBlock(),createElementBlock("li",{"aria-selected":$.selected,style:normalizeStyle($.style),class:normalizeClass([$.ns.be("dropdown","option-item"),$.ns.is("selected",$.selected),$.ns.is("disabled",$.disabled),$.ns.is("created",$.created),{hover:$.hovering}]),onMouseenter:k[0]||(k[0]=(...re)=>$.hoverItem&&$.hoverItem(...re)),onClick:k[1]||(k[1]=withModifiers((...re)=>$.selectOptionClick&&$.selectOptionClick(...re),["stop"]))},[renderSlot($.$slots,"default",{item:$.item,index:$.index,disabled:$.disabled},()=>[createBaseVNode("span",null,toDisplayString$1($.item.label),1)])],46,_hoisted_1$k)}var OptionItem=_export_sfc$1(_sfc_main$G,[["render",_sfc_render$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const selectV2InjectionKey="ElSelectV2Injection",_sfc_main$F=defineComponent({name:"ElSelectDropdown",props:{data:Array,hoveringIndex:Number,width:Number},setup($){const k=inject(selectV2InjectionKey),V=useNamespace("select"),z=ref([]),j=ref(null),oe=computed(()=>isUndefined(k.props.estimatedOptionHeight)),re=computed(()=>oe.value?{itemSize:k.props.itemHeight}:{estimatedSize:k.props.estimatedOptionHeight,itemSize:$e=>z.value[$e]}),ie=($e=[],_e)=>{const{props:{valueKey:Ce}}=k;return isObject$5(_e)?$e&&$e.some(Ie=>get(Ie,Ce)===get(_e,Ce)):$e.includes(_e)},ae=($e,_e)=>{if(isObject$5(_e)){const{valueKey:Ce}=k.props;return get($e,Ce)===get(_e,Ce)}else return $e===_e};return{ns:V,select:k,listProps:re,listRef:j,isSized:oe,isItemDisabled:($e,_e)=>{const{disabled:Ce,multiple:Ie,multipleLimit:ze}=k.props;return Ce||!_e&&(Ie?ze>0&&$e.length>=ze:!1)},isItemHovering:$e=>$.hoveringIndex===$e,isItemSelected:($e,_e)=>{const{valueKey:Ce}=k.props;return k.props.multiple?ie($e,get(_e,Ce)):ae($e,get(_e,Ce))},scrollToItem:$e=>{const _e=j.value;_e&&_e.scrollToItem($e)},resetScrollTop:()=>{const $e=j.value;$e&&$e.resetScrollTop()}}},render($,k){var V;const{$slots:z,data:j,listProps:oe,select:re,isSized:ie,width:ae,ns:he,isItemDisabled:le,isItemHovering:ue,isItemSelected:de}=$,pe=ie?FixedSizeList:DynamicSizeList,{props:$e,onSelect:_e,onHover:Ce,onKeyboardNavigate:Ie,onKeyboardSelect:ze}=re,{height:Et,modelValue:qe,multiple:Oe}=$e;if(j.length===0)return h$2("div",{class:he.b("dropdown"),style:{width:`${ae}px`}},(V=z.empty)==null?void 0:V.call(z));const Ue=withCtx(At=>{const{index:Lt,data:kt}=At,Pt=kt[Lt];if(kt[Lt].type==="Group")return h$2(GroupItem,{item:Pt,style:At.style,height:ie?oe.itemSize:oe.estimatedSize});const jt=de(qe,Pt),vn=le(qe,jt);return h$2(OptionItem,mo(oo({},At),{selected:jt,disabled:Pt.disabled||vn,created:!!Pt.created,hovering:ue(Lt),item:Pt,onSelect:_e,onHover:Ce}),{default:withCtx($n=>renderSlot(z,"default",$n,()=>[h$2("span",Pt.label)]))})}),Dt=h$2(pe,oo({ref:"listRef",className:he.be("dropdown","list"),data:j,height:Et,width:ae,total:j.length,scrollbarAlwaysOn:$e.scrollbarAlwaysOn,onKeydown:[k[1]||(k[1]=withKeys(withModifiers(()=>Ie("forward"),["stop","prevent"]),["down"])),k[2]||(k[2]=withKeys(withModifiers(()=>Ie("backward"),["stop","prevent"]),["up"])),k[3]||(k[3]=withKeys(withModifiers(ze,["stop","prevent"]),["enter"])),k[4]||(k[4]=withKeys(withModifiers(()=>re.expanded=!1,["stop","prevent"]),["esc"])),k[5]||(k[5]=withKeys(()=>re.expanded=!1,["tab"]))]},oe),{default:Ue});return h$2("div",{class:[he.b("dropdown"),he.is("multiple",Oe)]},[Dt])}});var ElSelectMenu=_export_sfc$1(_sfc_main$F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select-dropdown.vue"]]);function useAllowCreate($,k){const V=ref(0),z=ref(null),j=computed(()=>$.allowCreate&&$.filterable);function oe(le){const ue=de=>de.value===le;return $.options&&$.options.some(ue)||k.createdOptions.some(ue)}function re(le){!j.value||($.multiple&&le.created?V.value++:z.value=le)}function ie(le){if(j.value)if(le&&le.length>0&&!oe(le)){const ue={value:le,label:le,created:!0,disabled:!1};k.createdOptions.length>=V.value?k.createdOptions[V.value]=ue:k.createdOptions.push(ue)}else if($.multiple)k.createdOptions.length=V.value;else{const ue=z.value;k.createdOptions.length=0,ue&&ue.created&&k.createdOptions.push(ue)}}function ae(le){if(!j.value||!le||!le.created||le.created&&$.reserveKeyword&&k.inputValue===le.label)return;const ue=k.createdOptions.findIndex(de=>de.value===le.value);~ue&&(k.createdOptions.splice(ue,1),V.value--)}function he(){j.value&&(k.createdOptions.length=0,V.value=0)}return{createNewOption:ie,removeNewOption:ae,selectNewOption:re,clearAllNewOption:he}}const flattenOptions=$=>{const k=[];return $.forEach(V=>{isArray$4(V.options)?(k.push({label:V.label,isTitle:!0,type:"Group"}),V.options.forEach(z=>{k.push(z)}),k.push({type:"Group"})):k.push(V)}),k};function useInput($){const k=ref(!1);return{handleCompositionStart:()=>{k.value=!0},handleCompositionUpdate:oe=>{const re=oe.target.value,ie=re[re.length-1]||"";k.value=!isKorean(ie)},handleCompositionEnd:oe=>{k.value&&(k.value=!1,isFunction$3($)&&$(oe))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=($,k)=>{const{t:V}=useLocale(),z=useNamespace("select-v2"),j=useNamespace("input"),{form:oe,formItem:re}=useFormItem(),ie=reactive({inputValue:DEFAULT_INPUT_PLACEHOLDER,displayInputValue:DEFAULT_INPUT_PLACEHOLDER,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:"",query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),ae=ref(-1),he=ref(-1),le=ref(null),ue=ref(null),de=ref(null),pe=ref(null),$e=ref(null),_e=ref(null),Ce=ref(null),Ie=ref(!1),ze=computed(()=>$.disabled||(oe==null?void 0:oe.disabled)),Et=computed(()=>{const co=jt.value.length*34;return co>$.height?$.height:co}),qe=computed(()=>$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!==""),Oe=computed(()=>{const co=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:qe.value;return $.clearable&&!ze.value&&ie.comboBoxHovering&&co}),Ue=computed(()=>$.remote&&$.filterable?"":arrowUp),Dt=computed(()=>Ue.value&&z.is("reverse",Ie.value)),At=computed(()=>(re==null?void 0:re.validateState)||""),Lt=computed(()=>ValidateComponentsMap[At.value]),kt=computed(()=>$.remote?300:0),Pt=computed(()=>{const co=jt.value;return $.loading?$.loadingText||V("el.select.loading"):$.remote&&ie.inputValue===""&&co.length===0?!1:$.filterable&&ie.inputValue&&co.length>0?$.noMatchText||V("el.select.noMatch"):co.length===0?$.noDataText||V("el.select.noData"):null}),jt=computed(()=>{const co=Eo=>{const To=ie.inputValue;return To?Eo.label.includes(To):!0};return $.loading?[]:flattenOptions($.options.concat(ie.createdOptions).map(Eo=>{if(isArray$4(Eo.options)){const To=Eo.options.filter(co);if(To.length>0)return mo(oo({},Eo),{options:To})}else if($.remote||co(Eo))return Eo;return null}).filter(Eo=>Eo!==null))}),vn=computed(()=>jt.value.every(co=>co.disabled)),$n=useSize(),wn=computed(()=>$n.value==="small"?"small":"default"),_n=computed(()=>{const co=_e.value,Eo=wn.value||"default",To=co?Number.parseInt(getComputedStyle(co).paddingLeft):0,Mo=co?Number.parseInt(getComputedStyle(co).paddingRight):0;return ie.selectWidth-Mo-To-TAG_BASE_WIDTH[Eo]}),En=()=>{var co,Eo,To;he.value=((To=(Eo=(co=$e.value)==null?void 0:co.getBoundingClientRect)==null?void 0:Eo.call(co))==null?void 0:To.width)||200},Sn=computed(()=>({width:`${ie.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(ie.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),An=computed(()=>isArray$4($.modelValue)?$.modelValue.length===0&&!ie.displayInputValue:$.filterable?ie.displayInputValue.length===0:!0),Cn=computed(()=>{const co=$.placeholder||V("el.select.placeholder");return $.multiple?co:ie.selectedLabel||co}),Tn=computed(()=>{var co,Eo;return(Eo=(co=pe.value)==null?void 0:co.popperRef)==null?void 0:Eo.contentRef}),Nn=computed(()=>{if($.multiple){const co=$.modelValue.length;if($.modelValue.length>0)return jt.value.findIndex(Eo=>Eo.value===$.modelValue[co-1])}else if($.modelValue)return jt.value.findIndex(co=>co.value===$.modelValue);return-1}),xn=computed(()=>Ie.value&&Pt.value!==!1),{createNewOption:On,removeNewOption:Ln,selectNewOption:Bn,clearAllNewOption:Vn}=useAllowCreate($,ie),{handleCompositionStart:Fn,handleCompositionUpdate:zn,handleCompositionEnd:Xn}=useInput(co=>Ao(co)),Pn=()=>{var co,Eo,To;(Eo=(co=ue.value).focus)==null||Eo.call(co),(To=pe.value)==null||To.updatePopper()},Hn=()=>{if(!$.automaticDropdown&&!ze.value)return ie.isComposing&&(ie.softFocus=!0),nextTick(()=>{var co,Eo;Ie.value=!Ie.value,(Eo=(co=ue.value)==null?void 0:co.focus)==null||Eo.call(co)})},eo=()=>($.filterable&&ie.inputValue!==ie.selectedLabel&&(ie.query=ie.selectedLabel),ao(ie.inputValue),nextTick(()=>{On(ie.inputValue)})),Qn=debounce(eo,kt.value),ao=co=>{ie.previousQuery!==co&&(ie.previousQuery=co,$.filterable&&isFunction$3($.filterMethod)?$.filterMethod(co):$.filterable&&$.remote&&isFunction$3($.remoteMethod)&&$.remoteMethod(co))},ho=co=>{isEqual$1($.modelValue,co)||k(CHANGE_EVENT,co)},uo=co=>{k(UPDATE_MODEL_EVENT,co),ho(co),ie.previousValue=co.toString()},Un=(co=[],Eo)=>{if(!isObject$5(Eo))return co.indexOf(Eo);const To=$.valueKey;let Mo=-1;return co.some((Po,zo)=>get(Po,To)===get(Eo,To)?(Mo=zo,!0):!1),Mo},Zn=co=>isObject$5(co)?get(co,$.valueKey):co,no=co=>isObject$5(co)?co.label:co,qn=()=>{if(!($.collapseTags&&!$.filterable))return nextTick(()=>{var co,Eo;if(!ue.value)return;const To=_e.value;$e.value.height=To.offsetHeight,Ie.value&&Pt.value!==!1&&((Eo=(co=pe.value)==null?void 0:co.updatePopper)==null||Eo.call(co))})},In=()=>{var co,Eo;if(jn(),En(),(Eo=(co=pe.value)==null?void 0:co.updatePopper)==null||Eo.call(co),$.multiple)return qn()},jn=()=>{const co=_e.value;co&&(ie.selectWidth=co.getBoundingClientRect().width)},Kn=(co,Eo,To=!0)=>{var Mo,Po;if($.multiple){let zo=$.modelValue.slice();const qo=Un(zo,Zn(co));qo>-1?(zo=[...zo.slice(0,qo),...zo.slice(qo+1)],ie.cachedOptions.splice(qo,1),Ln(co)):($.multipleLimit<=0||zo.length<$.multipleLimit)&&(zo=[...zo,Zn(co)],ie.cachedOptions.push(co),Bn(co),wo(Eo)),uo(zo),co.created&&(ie.query="",ao(""),ie.inputLength=20),$.filterable&&!$.reserveKeyword&&((Po=(Mo=ue.value).focus)==null||Po.call(Mo),Gn("")),$.filterable&&(ie.calculatedWidth=Ce.value.getBoundingClientRect().width),qn(),_o()}else ae.value=Eo,ie.selectedLabel=co.label,uo(Zn(co)),Ie.value=!1,ie.isComposing=!1,ie.isSilentBlur=To,Bn(co),co.created||Vn(),wo(Eo)},so=(co,Eo)=>{const{valueKey:To}=$,Mo=$.modelValue.indexOf(get(Eo,To));if(Mo>-1&&!ze.value){const Po=[...$.modelValue.slice(0,Mo),...$.modelValue.slice(Mo+1)];return ie.cachedOptions.splice(Mo,1),uo(Po),k("remove-tag",get(Eo,To)),ie.softFocus=!0,Ln(Eo),nextTick(Pn)}co.stopPropagation()},ro=co=>{const Eo=ie.isComposing;ie.isComposing=!0,ie.softFocus?ie.softFocus=!1:Eo||k("focus",co)},vo=()=>(ie.softFocus=!1,nextTick(()=>{var co,Eo;(Eo=(co=ue.value)==null?void 0:co.blur)==null||Eo.call(co),Ce.value&&(ie.calculatedWidth=Ce.value.getBoundingClientRect().width),ie.isSilentBlur?ie.isSilentBlur=!1:ie.isComposing&&k("blur"),ie.isComposing=!1})),go=()=>{ie.displayInputValue.length>0?Gn(""):Ie.value=!1},Dn=co=>{if(ie.displayInputValue.length===0){co.preventDefault();const Eo=$.modelValue.slice();Eo.pop(),Ln(ie.cachedOptions.pop()),uo(Eo)}},Yn=()=>{let co;return isArray$4($.modelValue)?co=[]:co="",ie.softFocus=!0,$.multiple?ie.cachedOptions=[]:ie.selectedLabel="",Ie.value=!1,uo(co),k("clear"),Vn(),nextTick(Pn)},Gn=co=>{ie.displayInputValue=co,ie.inputValue=co},io=(co,Eo=void 0)=>{const To=jt.value;if(!["forward","backward"].includes(co)||ze.value||To.length<=0||vn.value)return;if(!Ie.value)return Hn();Eo===void 0&&(Eo=ie.hoveringIndex);let Mo=-1;co==="forward"?(Mo=Eo+1,Mo>=To.length&&(Mo=0)):co==="backward"&&(Mo=Eo-1,Mo<0&&(Mo=To.length-1));const Po=To[Mo];if(Po.disabled||Po.type==="Group")return io(co,Mo);wo(Mo),xo(Mo)},fo=()=>{if(Ie.value)~ie.hoveringIndex&&jt.value[ie.hoveringIndex]&&Kn(jt.value[ie.hoveringIndex],ie.hoveringIndex,!1);else return Hn()},wo=co=>{ie.hoveringIndex=co},Co=()=>{ie.hoveringIndex=-1},_o=()=>{var co;const Eo=ue.value;Eo&&((co=Eo.focus)==null||co.call(Eo))},Ao=co=>{const Eo=co.target.value;if(Gn(Eo),ie.displayInputValue.length>0&&!Ie.value&&(Ie.value=!0),ie.calculatedWidth=Ce.value.getBoundingClientRect().width,$.multiple&&qn(),$.remote)Qn();else return eo()},$o=()=>(Ie.value=!1,vo()),ko=()=>(ie.inputValue=ie.displayInputValue,nextTick(()=>{~Nn.value&&(wo(Nn.value),xo(ie.hoveringIndex))})),xo=co=>{de.value.scrollToItem(co)},No=()=>{if(Co(),$.multiple)if($.modelValue.length>0){let co=!1;ie.cachedOptions.length=0,ie.previousValue=$.modelValue.toString(),$.modelValue.forEach(Eo=>{const To=jt.value.findIndex(Mo=>Zn(Mo)===Eo);~To&&(ie.cachedOptions.push(jt.value[To]),co||wo(To),co=!0)})}else ie.cachedOptions=[],ie.previousValue="";else if(qe.value){ie.previousValue=$.modelValue;const co=jt.value,Eo=co.findIndex(To=>Zn(To)===Zn($.modelValue));~Eo?(ie.selectedLabel=co[Eo].label,wo(Eo)):ie.selectedLabel=`${$.modelValue}`}else ie.selectedLabel="",ie.previousValue="";Vn(),En()};return watch$1(Ie,co=>{var Eo,To;k("visible-change",co),co?(To=(Eo=pe.value).update)==null||To.call(Eo):(ie.displayInputValue="",ie.previousQuery=null,On(""))}),watch$1(()=>$.modelValue,(co,Eo)=>{var To;(!co||co.toString()!==ie.previousValue)&&No(),isEqual$1(co,Eo)||(To=re==null?void 0:re.validate)==null||To.call(re,"change").catch(Mo=>void 0)},{deep:!0}),watch$1(()=>$.options,()=>{const co=ue.value;(!co||co&&document.activeElement!==co)&&No()},{deep:!0}),watch$1(jt,()=>nextTick(de.value.resetScrollTop)),onMounted(()=>{No(),addResizeListener($e.value,In)}),onBeforeMount(()=>{removeResizeListener($e.value,In)}),{collapseTagSize:wn,currentPlaceholder:Cn,expanded:Ie,emptyText:Pt,popupHeight:Et,debounce:kt,filteredOptions:jt,iconComponent:Ue,iconReverse:Dt,inputWrapperStyle:Sn,popperSize:he,dropdownMenuVisible:xn,hasModelValue:qe,shouldShowPlaceholder:An,selectDisabled:ze,selectSize:$n,showClearBtn:Oe,states:ie,tagMaxWidth:_n,nsSelectV2:z,nsInput:j,calculatorRef:Ce,controlRef:le,inputRef:ue,menuRef:de,popper:pe,selectRef:$e,selectionRef:_e,popperRef:Tn,validateState:At,validateIcon:Lt,debouncedOnInputChange:Qn,deleteTag:so,getLabel:no,getValueKey:Zn,handleBlur:vo,handleClear:Yn,handleClickOutside:$o,handleDel:Dn,handleEsc:go,handleFocus:ro,handleMenuEnter:ko,handleResize:In,toggleMenu:Hn,scrollTo:xo,onInput:Ao,onKeyboardNavigate:io,onKeyboardSelect:fo,onSelect:Kn,onHover:wo,onUpdateInputValue:Gn,handleCompositionStart:Fn,handleCompositionEnd:Xn,handleCompositionUpdate:zn}},_sfc_main$E=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside,ModelText:vModelText},props:SelectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,{emit:k}){const V=useSelect$1($,k);return provide(selectV2InjectionKey,{props:reactive(mo(oo({},toRefs($)),{height:V.popupHeight})),onSelect:V.onSelect,onHover:V.onHover,onKeyboardNavigate:V.onKeyboardNavigate,onKeyboardSelect:V.onKeyboardSelect}),V}}),_hoisted_1$j={key:0},_hoisted_2$e=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$7=["textContent"],_hoisted_4$5=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$4=["textContent"];function _sfc_render$o($,k,V,z,j,oe){const re=resolveComponent("el-tag"),ie=resolveComponent("el-tooltip"),ae=resolveComponent("el-icon"),he=resolveComponent("el-select-menu"),le=resolveDirective("model-text"),ue=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([$.nsSelectV2.b(),$.nsSelectV2.m($.selectSize)]),onClick:k[24]||(k[24]=withModifiers((...de)=>$.toggleMenu&&$.toggleMenu(...de),["stop"])),onMouseenter:k[25]||(k[25]=de=>$.states.comboBoxHovering=!0),onMouseleave:k[26]||(k[26]=de=>$.states.comboBoxHovering=!1)},[createVNode(ie,{ref:"popper",visible:$.dropdownMenuVisible,"onUpdate:visible":k[22]||(k[22]=de=>$.dropdownMenuVisible=de),teleported:$.teleported,"popper-class":[$.nsSelectV2.e("popper"),$.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,placement:"bottom-start",pure:"",transition:`${$.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:$.persistent,onBeforeShow:$.handleMenuEnter,onHide:k[23]||(k[23]=de=>$.states.inputValue=$.states.displayInputValue)},{default:withCtx(()=>{var de;return[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([$.nsSelectV2.e("wrapper"),$.nsSelectV2.is("focused",$.states.isComposing),$.nsSelectV2.is("hovering",$.states.comboBoxHovering),$.nsSelectV2.is("filterable",$.filterable),$.nsSelectV2.is("disabled",$.selectDisabled)])},[$.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$j,[renderSlot($.$slots,"prefix")])):createCommentVNode("v-if",!0),$.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.nsSelectV2.e("selection"))},[$.collapseTags&&$.modelValue.length>0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(re,{closable:!$.selectDisabled&&!((de=$.states.cachedOptions[0])!=null&&de.disable),size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:k[0]||(k[0]=pe=>$.deleteTag(pe,$.states.cachedOptions[0]))},{default:withCtx(()=>{var pe;return[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1((pe=$.states.cachedOptions[0])==null?void 0:pe.label),7)]}),_:1},8,["closable","size"]),$.modelValue.length>1?(openBlock(),createBlock(re,{key:0,closable:!1,size:$.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(ie,{key:0,disabled:$.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-1),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.states.cachedOptions,(pe,$e)=>(openBlock(),createElementBlock("div",{key:$e,class:normalizeClass($.nsSelectV2.e("selected-item"))},[(openBlock(),createBlock(re,{key:$.getValueKey(pe),closable:!$.selectDisabled&&!pe.disabled,size:$.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:_e=>$.deleteTag(_e,pe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(pe)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-1),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList($.states.cachedOptions,(pe,$e)=>(openBlock(),createElementBlock("div",{key:$e,class:normalizeClass($.nsSelectV2.e("selected-item"))},[(openBlock(),createBlock(re,{key:$.getValueKey(pe),closable:!$.selectDisabled&&!pe.disabled,size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:_e=>$.deleteTag(_e,pe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(pe)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")]),style:normalizeStyle($.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef",autocomplete:$.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":$.expanded,"aria-labelledby":$.label,class:normalizeClass([$.nsSelectV2.is($.selectSize),$.nsSelectV2.e("combobox-input")]),disabled:$.disabled,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",name:$.name,unselectable:$.expanded?"on":void 0,"onUpdate:modelValue":k[1]||(k[1]=(...pe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...pe)),onFocus:k[2]||(k[2]=(...pe)=>$.handleFocus&&$.handleFocus(...pe)),onInput:k[3]||(k[3]=(...pe)=>$.onInput&&$.onInput(...pe)),onCompositionstart:k[4]||(k[4]=(...pe)=>$.handleCompositionStart&&$.handleCompositionStart(...pe)),onCompositionupdate:k[5]||(k[5]=(...pe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...pe)),onCompositionend:k[6]||(k[6]=(...pe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...pe)),onKeydown:[k[7]||(k[7]=withKeys(withModifiers(pe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),k[8]||(k[8]=withKeys(withModifiers(pe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),k[9]||(k[9]=withKeys(withModifiers((...pe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...pe),["stop","prevent"]),["enter"])),k[10]||(k[10]=withKeys(withModifiers((...pe)=>$.handleEsc&&$.handleEsc(...pe),["stop","prevent"]),["esc"])),k[11]||(k[11]=withKeys(withModifiers((...pe)=>$.handleDel&&$.handleDel(...pe),["stop"]),["delete"]))]},null,42,_hoisted_2$e),[[le,$.states.displayInputValue]]),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass($.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_3$7)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":$.label,"aria-expanded":$.expanded,autocapitalize:"off",autocomplete:$.autocomplete,class:normalizeClass($.nsSelectV2.e("combobox-input")),disabled:$.disabled,name:$.name,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",unselectable:$.expanded?"on":void 0,onCompositionstart:k[12]||(k[12]=(...pe)=>$.handleCompositionStart&&$.handleCompositionStart(...pe)),onCompositionupdate:k[13]||(k[13]=(...pe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...pe)),onCompositionend:k[14]||(k[14]=(...pe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...pe)),onFocus:k[15]||(k[15]=(...pe)=>$.handleFocus&&$.handleFocus(...pe)),onInput:k[16]||(k[16]=(...pe)=>$.onInput&&$.onInput(...pe)),onKeydown:[k[17]||(k[17]=withKeys(withModifiers(pe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),k[18]||(k[18]=withKeys(withModifiers(pe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),k[19]||(k[19]=withKeys(withModifiers((...pe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...pe),["stop","prevent"]),["enter"])),k[20]||(k[20]=withKeys(withModifiers((...pe)=>$.handleEsc&&$.handleEsc(...pe),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":k[21]||(k[21]=(...pe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...pe))},null,42,_hoisted_4$5),[[le,$.states.displayInputValue]])],2),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_5$4)):createCommentVNode("v-if",!0)],64)),$.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([$.nsSelectV2.e("placeholder"),$.nsSelectV2.is("transparent",$.states.isComposing||($.placeholder&&$.multiple?$.modelValue.length===0:!$.hasModelValue))])},toDisplayString$1($.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("suffix"))},[$.iconComponent?withDirectives((openBlock(),createBlock(ae,{key:0,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])),[[vShow,!$.showClearBtn]]):createCommentVNode("v-if",!0),$.showClearBtn&&$.clearIcon?(openBlock(),createBlock(ae,{key:1,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon")]),onClick:withModifiers($.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.validateState&&$.validateIcon?(openBlock(),createBlock(ae,{key:2,class:normalizeClass([$.nsInput.e("icon"),$.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]}),content:withCtx(()=>[createVNode(he,{ref:"menuRef",data:$.filteredOptions,width:$.popperSize,"hovering-index":$.states.hoveringIndex,"scrollbar-always-on":$.scrollbarAlwaysOn},{default:withCtx(de=>[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps(de)))]),empty:withCtx(()=>[renderSlot($.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass($.nsSelectV2.e("empty"))},toDisplayString$1($.emptyText?$.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[ue,$.handleClickOutside,$.popperRef]])}var Select=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$o],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=$=>{$.component(Select.name,Select)};const _Select=Select,ElSelectV2=_Select,skeletonProps=buildProps({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),__default__$c={name:"ElSkeletonItem"},_sfc_main$D=defineComponent(mo(oo({},__default__$c),{props:skeletonItemProps,setup($){const k=useNamespace("skeleton");return(V,z)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(k).e("item"),unref(k).e(V.variant)])},[V.variant==="image"?(openBlock(),createBlock(unref(pictureFilled),{key:0})):createCommentVNode("v-if",!0)],2))}}));var SkeletonItem=_export_sfc$1(_sfc_main$D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$b={name:"ElSkeleton"},_sfc_main$C=defineComponent(mo(oo({},__default__$b),{props:skeletonProps,setup($,{expose:k}){const V=$,z=useNamespace("skeleton"),j=useThrottleRender(toRef(V,"loading"),V.throttle);return k({uiLoading:j}),(oe,re)=>unref(j)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(z).b(),unref(z).is("animated",oe.animated)]},oe.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.count,ie=>(openBlock(),createElementBlock(Fragment,{key:ie},[oe.loading?renderSlot(oe.$slots,"template",{key:ie},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(z).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.rows,ae=>(openBlock(),createBlock(SkeletonItem,{key:ae,class:normalizeClass([unref(z).e("paragraph"),unref(z).is("last",ae===oe.rows&&oe.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(oe.$slots,"default",normalizeProps(mergeProps({key:1},oe.$attrs)))}}));var Skeleton=_export_sfc$1(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton,{SkeletonItem}),ElSkeletonItem=withNoopInstall(SkeletonItem),{left,down,right,up,home,end,pageUp,pageDown}=EVENT_CODE,useTooltip=($,k,V)=>{const z=ref(),j=ref(!1),oe=computed(()=>k.value instanceof Function),re=computed(()=>oe.value&&k.value($.modelValue)||$.modelValue),ie=debounce(()=>{V.value&&(j.value=!0)},50),ae=debounce(()=>{V.value&&(j.value=!1)},50);return{tooltip:z,tooltipVisible:j,formatValue:re,displayTooltip:ie,hideTooltip:ae}},useSliderButton=($,k,V)=>{const{disabled:z,min:j,max:oe,step:re,showTooltip:ie,precision:ae,sliderSize:he,formatTooltip:le,emitChange:ue,resetSize:de,updateDragging:pe}=inject("SliderProvider"),{tooltip:$e,tooltipVisible:_e,formatValue:Ce,displayTooltip:Ie,hideTooltip:ze}=useTooltip($,le,ie),Et=ref(),qe=computed(()=>`${($.modelValue-j.value)/(oe.value-j.value)*100}%`),Oe=computed(()=>$.vertical?{bottom:qe.value}:{left:qe.value}),Ue=()=>{k.hovering=!0,Ie()},Dt=()=>{k.hovering=!1,k.dragging||ze()},At=Nn=>{z.value||(Nn.preventDefault(),Sn(Nn),window.addEventListener("mousemove",An),window.addEventListener("touchmove",An),window.addEventListener("mouseup",Cn),window.addEventListener("touchend",Cn),window.addEventListener("contextmenu",Cn),Et.value.focus())},Lt=Nn=>{z.value||(k.newPosition=Number.parseFloat(qe.value)+Nn/(oe.value-j.value)*100,Tn(k.newPosition),ue())},kt=()=>{Lt(-re.value)},Pt=()=>{Lt(re.value)},jt=()=>{Lt(-re.value*4)},vn=()=>{Lt(re.value*4)},$n=()=>{z.value||(Tn(0),ue())},wn=()=>{z.value||(Tn(100),ue())},_n=Nn=>{let xn=!0;[left,down].includes(Nn.key)?kt():[right,up].includes(Nn.key)?Pt():Nn.key===home?$n():Nn.key===end?wn():Nn.key===pageDown?jt():Nn.key===pageUp?vn():xn=!1,xn&&Nn.preventDefault()},En=Nn=>{let xn,On;return Nn.type.startsWith("touch")?(On=Nn.touches[0].clientY,xn=Nn.touches[0].clientX):(On=Nn.clientY,xn=Nn.clientX),{clientX:xn,clientY:On}},Sn=Nn=>{k.dragging=!0,k.isClick=!0;const{clientX:xn,clientY:On}=En(Nn);$.vertical?k.startY=On:k.startX=xn,k.startPosition=Number.parseFloat(qe.value),k.newPosition=k.startPosition},An=Nn=>{if(k.dragging){k.isClick=!1,Ie(),de();let xn;const{clientX:On,clientY:Ln}=En(Nn);$.vertical?(k.currentY=Ln,xn=(k.startY-k.currentY)/he.value*100):(k.currentX=On,xn=(k.currentX-k.startX)/he.value*100),k.newPosition=k.startPosition+xn,Tn(k.newPosition)}},Cn=()=>{k.dragging&&(setTimeout(()=>{k.dragging=!1,k.hovering||ze(),k.isClick||(Tn(k.newPosition),ue())},0),window.removeEventListener("mousemove",An),window.removeEventListener("touchmove",An),window.removeEventListener("mouseup",Cn),window.removeEventListener("touchend",Cn),window.removeEventListener("contextmenu",Cn))},Tn=async Nn=>{if(Nn===null||Number.isNaN(+Nn))return;Nn<0?Nn=0:Nn>100&&(Nn=100);const xn=100/((oe.value-j.value)/re.value);let Ln=Math.round(Nn/xn)*xn*(oe.value-j.value)*.01+j.value;Ln=Number.parseFloat(Ln.toFixed(ae.value)),V(UPDATE_MODEL_EVENT,Ln),!k.dragging&&$.modelValue!==k.oldValue&&(k.oldValue=$.modelValue),await nextTick(),k.dragging&&Ie(),$e.value.updatePopper()};return watch$1(()=>k.dragging,Nn=>{pe(Nn)}),{button:Et,tooltip:$e,tooltipVisible:_e,showTooltip:ie,wrapperStyle:Oe,formatValue:Ce,handleMouseEnter:Ue,handleMouseLeave:Dt,onButtonDown:At,onKeyDown:_n,setPosition:Tn}},_sfc_main$B=defineComponent({name:"ElSliderButton",components:{ElTooltip},props:{modelValue:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:{type:String,default:""}},emits:[UPDATE_MODEL_EVENT],setup($,{emit:k}){const V=useNamespace("slider"),z=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:$.modelValue}),{button:j,tooltip:oe,showTooltip:re,tooltipVisible:ie,wrapperStyle:ae,formatValue:he,handleMouseEnter:le,handleMouseLeave:ue,onButtonDown:de,onKeyDown:pe,setPosition:$e}=useSliderButton($,z,k),{hovering:_e,dragging:Ce}=toRefs(z);return{ns:V,button:j,tooltip:oe,tooltipVisible:ie,showTooltip:re,wrapperStyle:ae,formatValue:he,handleMouseEnter:le,handleMouseLeave:ue,onButtonDown:de,onKeyDown:pe,setPosition:$e,hovering:_e,dragging:Ce}}});function _sfc_render$n($,k,V,z,j,oe){const re=resolveComponent("el-tooltip");return openBlock(),createElementBlock("div",{ref:"button",class:normalizeClass([$.ns.e("button-wrapper"),{hover:$.hovering,dragging:$.dragging}]),style:normalizeStyle($.wrapperStyle),tabindex:"0",onMouseenter:k[1]||(k[1]=(...ie)=>$.handleMouseEnter&&$.handleMouseEnter(...ie)),onMouseleave:k[2]||(k[2]=(...ie)=>$.handleMouseLeave&&$.handleMouseLeave(...ie)),onMousedown:k[3]||(k[3]=(...ie)=>$.onButtonDown&&$.onButtonDown(...ie)),onTouchstart:k[4]||(k[4]=(...ie)=>$.onButtonDown&&$.onButtonDown(...ie)),onFocus:k[5]||(k[5]=(...ie)=>$.handleMouseEnter&&$.handleMouseEnter(...ie)),onBlur:k[6]||(k[6]=(...ie)=>$.handleMouseLeave&&$.handleMouseLeave(...ie)),onKeydown:k[7]||(k[7]=(...ie)=>$.onKeyDown&&$.onKeyDown(...ie))},[createVNode(re,{ref:"tooltip",visible:$.tooltipVisible,"onUpdate:visible":k[0]||(k[0]=ie=>$.tooltipVisible=ie),placement:"top","stop-popper-mouse-event":!1,"popper-class":$.tooltipClass,disabled:!$.showTooltip,persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1($.formatValue),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([$.ns.e("button"),{hover:$.hovering,dragging:$.dragging}])},null,2)]),_:1},8,["visible","popper-class","disabled"])],38)}var SliderButton=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$n],["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const _sfc_main$A=defineComponent({name:"ElMarker",props:{mark:{type:[String,Object],default:()=>{}}},setup($){const k=useNamespace("slider"),V=computed(()=>typeof $.mark=="string"?$.mark:$.mark.label);return{ns:k,label:V}},render(){var $;return h$2("div",{class:this.ns.e("marks-text"),style:($=this.mark)==null?void 0:$.style},this.label)}});var SliderMarker=_export_sfc$1(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/marker.vue"]]);const useMarks=$=>computed(()=>$.marks?Object.keys($.marks).map(parseFloat).sort((V,z)=>V-z).filter(V=>V<=$.max&&V>=$.min).map(V=>({point:V,position:(V-$.min)*100/($.max-$.min),mark:$.marks[V]})):[]),useSlide=($,k,V)=>{const z=inject(formContextKey,{}),j=inject(formItemContextKey,{}),oe=shallowRef(),re=ref(),ie=ref(),ae={firstButton:re,secondButton:ie},he=computed(()=>$.disabled||z.disabled||!1),le=computed(()=>Math.min(k.firstValue,k.secondValue)),ue=computed(()=>Math.max(k.firstValue,k.secondValue)),de=computed(()=>$.range?`${100*(ue.value-le.value)/($.max-$.min)}%`:`${100*(k.firstValue-$.min)/($.max-$.min)}%`),pe=computed(()=>$.range?`${100*(le.value-$.min)/($.max-$.min)}%`:"0%"),$e=computed(()=>$.vertical?{height:$.height}:{}),_e=computed(()=>$.vertical?{height:de.value,bottom:pe.value}:{width:de.value,left:pe.value}),Ce=()=>{oe.value&&(k.sliderSize=oe.value[`client${$.vertical?"Height":"Width"}`])},Ie=Pt=>{const jt=$.min+Pt*($.max-$.min)/100;if(!$.range)return re;let vn;return Math.abs(le.value-jt)k.secondValue?"firstButton":"secondButton",ae[vn]},ze=Pt=>{const jt=Ie(Pt);return jt.value.setPosition(Pt),jt},Et=Pt=>{k.firstValue=Pt,Oe($.range?[le.value,ue.value]:Pt)},qe=Pt=>{k.secondValue=Pt,$.range&&Oe([le.value,ue.value])},Oe=Pt=>{V(UPDATE_MODEL_EVENT,Pt),V(INPUT_EVENT,Pt)},Ue=async()=>{await nextTick(),V(CHANGE_EVENT,$.range?[le.value,ue.value]:$.modelValue)},Dt=Pt=>{var jt,vn,$n,wn,_n,En;if(he.value||k.dragging)return;Ce();let Sn=0;if($.vertical){const An=($n=(vn=(jt=Pt.touches)==null?void 0:jt.item(0))==null?void 0:vn.clientY)!=null?$n:Pt.clientY;Sn=(oe.value.getBoundingClientRect().bottom-An)/k.sliderSize*100}else{const An=(En=(_n=(wn=Pt.touches)==null?void 0:wn.item(0))==null?void 0:_n.clientX)!=null?En:Pt.clientX,Cn=oe.value.getBoundingClientRect().left;Sn=(An-Cn)/k.sliderSize*100}if(!(Sn<0||Sn>100))return ze(Sn)};return{elFormItem:j,slider:oe,firstButton:re,secondButton:ie,sliderDisabled:he,minValue:le,maxValue:ue,runwayStyle:$e,barStyle:_e,resetSize:Ce,setPosition:ze,emitChange:Ue,onSliderWrapperPrevent:Pt=>{var jt,vn;(((jt=ae.firstButton.value)==null?void 0:jt.dragging)||((vn=ae.secondButton.value)==null?void 0:vn.dragging))&&Pt.preventDefault()},onSliderClick:Pt=>{Dt(Pt)&&Ue()},onSliderDown:async Pt=>{const jt=Dt(Pt);jt&&(await nextTick(),jt.value.onButtonDown(Pt))},setFirstValue:Et,setSecondValue:qe}},useStops=($,k,V,z)=>({stops:computed(()=>{if(!$.showStops||$.min>$.max)return[];if($.step===0)return[];const re=($.max-$.min)/$.step,ie=100*$.step/($.max-$.min),ae=Array.from({length:re-1}).map((he,le)=>(le+1)*ie);return $.range?ae.filter(he=>he<100*(V.value-$.min)/($.max-$.min)||he>100*(z.value-$.min)/($.max-$.min)):ae.filter(he=>he>100*(k.firstValue-$.min)/($.max-$.min))}),getStopStyle:re=>$.vertical?{bottom:`${re}%`}:{left:`${re}%`}}),_sfc_main$z=defineComponent({name:"ElSlider",components:{ElInputNumber,SliderButton,SliderMarker},props:{modelValue:{type:[Number,Array],default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},size:{type:String,validator:isValidComponentSize},inputSize:{type:String,validator:isValidComponentSize},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String,default:""},debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Function,default:void 0},tooltipClass:{type:String,default:void 0},marks:Object},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,INPUT_EVENT],setup($,{emit:k}){const V=useNamespace("slider"),{t:z}=useLocale(),j=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:oe,slider:re,firstButton:ie,secondButton:ae,sliderDisabled:he,minValue:le,maxValue:ue,runwayStyle:de,barStyle:pe,resetSize:$e,emitChange:_e,onSliderWrapperPrevent:Ce,onSliderClick:Ie,onSliderDown:ze,setFirstValue:Et,setSecondValue:qe}=useSlide($,j,k),{stops:Oe,getStopStyle:Ue}=useStops($,j,le,ue),{inputId:Dt,isLabeledByFormItem:At}=useFormItemInputId($,{formItemContext:oe}),Lt=useSize(),kt=computed(()=>$.inputSize||Lt.value),Pt=computed(()=>$.label||z("el.slider.defaultLabel",{min:$.min,max:$.max})),jt=computed(()=>$.range?$.rangeStartLabel||z("el.slider.defaultRangeStartLabel"):Pt.value),vn=computed(()=>$.formatValueText?$.formatValueText(Cn.value):`${Cn.value}`),$n=computed(()=>$.rangeEndLabel||z("el.slider.defaultRangeEndLabel")),wn=computed(()=>$.formatValueText?$.formatValueText(Tn.value):`${Tn.value}`),_n=computed(()=>[V.b(),V.m(Lt.value),V.is("vertical",$.vertical),{[V.m("with-input")]:$.showInput}]),En=useMarks($);useWatch($,j,le,ue,k,oe);const Sn=computed(()=>{const Bn=[$.min,$.max,$.step].map(Vn=>{const Fn=`${Vn}`.split(".")[1];return Fn?Fn.length:0});return Math.max.apply(null,Bn)}),{sliderWrapper:An}=useLifecycle($,j,$e),{firstValue:Cn,secondValue:Tn,oldValue:Nn,dragging:xn,sliderSize:On}=toRefs(j),Ln=Bn=>{j.dragging=Bn};return provide("SliderProvider",mo(oo({},toRefs($)),{sliderSize:On,disabled:he,precision:Sn,emitChange:_e,resetSize:$e,updateDragging:Ln})),{ns:V,firstValue:Cn,secondValue:Tn,oldValue:Nn,dragging:xn,sliderSize:On,inputId:Dt,isLabeledByFormItem:At,elFormItem:oe,slider:re,groupLabel:Pt,firstButton:ie,firstButtonLabel:jt,firstValueText:vn,secondButton:ae,secondButtonLabel:$n,secondValueText:wn,sliderDisabled:he,runwayStyle:de,barStyle:pe,emitChange:_e,onSliderClick:Ie,onSliderWrapperPrevent:Ce,onSliderDown:ze,getStopStyle:Ue,setFirstValue:Et,setSecondValue:qe,stops:Oe,markList:En,sliderWrapper:An,sliderWrapperSize:Lt,sliderInputSize:kt,sliderKls:_n}}}),useWatch=($,k,V,z,j,oe)=>{const re=he=>{j(UPDATE_MODEL_EVENT,he),j(INPUT_EVENT,he)},ie=()=>$.range?![V.value,z.value].every((he,le)=>he===k.oldValue[le]):$.modelValue!==k.oldValue,ae=()=>{var he,le;if($.min>$.max){throwError("Slider","min should not be greater than max.");return}const ue=$.modelValue;$.range&&Array.isArray(ue)?ue[1]<$.min?re([$.min,$.min]):ue[0]>$.max?re([$.max,$.max]):ue[0]<$.min?re([$.min,ue[1]]):ue[1]>$.max?re([ue[0],$.max]):(k.firstValue=ue[0],k.secondValue=ue[1],ie()&&((he=oe.validate)==null||he.call(oe,"change").catch(de=>void 0),k.oldValue=ue.slice())):!$.range&&typeof ue=="number"&&!Number.isNaN(ue)&&(ue<$.min?re($.min):ue>$.max?re($.max):(k.firstValue=ue,ie()&&((le=oe.validate)==null||le.call(oe,"change").catch(de=>void 0),k.oldValue=ue)))};ae(),watch$1(()=>k.dragging,he=>{he||ae()}),watch$1(()=>$.modelValue,(he,le)=>{k.dragging||Array.isArray(he)&&Array.isArray(le)&&he.every((ue,de)=>ue===le[de])&&k.firstValue===he[0]&&k.secondValue===he[1]||ae()},{deep:!0}),watch$1(()=>[$.min,$.max],()=>{ae()})},useLifecycle=($,k,V)=>{const z=ref();return onMounted(async()=>{$.range?(Array.isArray($.modelValue)?(k.firstValue=Math.max($.min,$.modelValue[0]),k.secondValue=Math.min($.max,$.modelValue[1])):(k.firstValue=$.min,k.secondValue=$.max),k.oldValue=[k.firstValue,k.secondValue]):(typeof $.modelValue!="number"||Number.isNaN($.modelValue)?k.firstValue=$.min:k.firstValue=Math.min($.max,Math.max($.min,$.modelValue)),k.oldValue=k.firstValue),window.addEventListener("resize",V),await nextTick(),V()}),onBeforeUnmount(()=>{window.removeEventListener("resize",V)}),{sliderWrapper:z}},_hoisted_1$i=["id","role","aria-label","aria-labelledby"],_hoisted_2$d={key:1};function _sfc_render$m($,k,V,z,j,oe){const re=resolveComponent("slider-button"),ie=resolveComponent("slider-marker"),ae=resolveComponent("el-input-number");return openBlock(),createElementBlock("div",{id:$.range?$.inputId:void 0,ref:"sliderWrapper",class:normalizeClass($.sliderKls),role:$.range?"group":void 0,"aria-label":$.range&&!$.isLabeledByFormItem?$.groupLabel:void 0,"aria-labelledby":$.range&&$.isLabeledByFormItem?$.elFormItem.labelId:void 0,onTouchstart:k[2]||(k[2]=(...he)=>$.onSliderWrapperPrevent&&$.onSliderWrapperPrevent(...he)),onTouchmove:k[3]||(k[3]=(...he)=>$.onSliderWrapperPrevent&&$.onSliderWrapperPrevent(...he))},[createBaseVNode("div",{ref:"slider",class:normalizeClass([$.ns.e("runway"),{"show-input":$.showInput&&!$.range},$.ns.is("disabled",$.sliderDisabled)]),style:normalizeStyle($.runwayStyle),onMousedown:k[0]||(k[0]=(...he)=>$.onSliderDown&&$.onSliderDown(...he)),onTouchstart:k[1]||(k[1]=(...he)=>$.onSliderDown&&$.onSliderDown(...he))},[createBaseVNode("div",{class:normalizeClass($.ns.e("bar")),style:normalizeStyle($.barStyle)},null,6),createVNode(re,{id:$.range?void 0:$.inputId,ref:"firstButton","model-value":$.firstValue,vertical:$.vertical,"tooltip-class":$.tooltipClass,role:"slider","aria-label":$.range||!$.isLabeledByFormItem?$.firstButtonLabel:void 0,"aria-labelledby":!$.range&&$.isLabeledByFormItem?$.elFormItem.labelId:void 0,"aria-valuemin":$.min,"aria-valuemax":$.range?$.secondValue:$.max,"aria-valuenow":$.firstValue,"aria-valuetext":$.firstValueText,"aria-orientation":$.vertical?"vertical":"horizontal","aria-disabled":$.sliderDisabled,"onUpdate:modelValue":$.setFirstValue},null,8,["id","model-value","vertical","tooltip-class","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),$.range?(openBlock(),createBlock(re,{key:0,ref:"secondButton","model-value":$.secondValue,vertical:$.vertical,"tooltip-class":$.tooltipClass,role:"slider","aria-label":$.secondButtonLabel,"aria-valuemin":$.firstValue,"aria-valuemax":$.max,"aria-valuenow":$.secondValue,"aria-valuetext":$.secondValueText,"aria-orientation":$.vertical?"vertical":"horizontal","aria-disabled":$.sliderDisabled,"onUpdate:modelValue":$.setSecondValue},null,8,["model-value","vertical","tooltip-class","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):createCommentVNode("v-if",!0),$.showStops?(openBlock(),createElementBlock("div",_hoisted_2$d,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.stops,(he,le)=>(openBlock(),createElementBlock("div",{key:le,class:normalizeClass($.ns.e("stop")),style:normalizeStyle($.getStopStyle(he))},null,6))),128))])):createCommentVNode("v-if",!0),$.markList.length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.markList,(he,le)=>(openBlock(),createElementBlock("div",{key:le,style:normalizeStyle($.getStopStyle(he.position)),class:normalizeClass([$.ns.e("stop"),$.ns.e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass($.ns.e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.markList,(he,le)=>(openBlock(),createBlock(ie,{key:le,mark:he.mark,style:normalizeStyle($.getStopStyle(he.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),$.showInput&&!$.range?(openBlock(),createBlock(ae,{key:0,ref:"input","model-value":$.firstValue,class:normalizeClass($.ns.e("input")),step:$.step,disabled:$.sliderDisabled,controls:$.showInputControls,min:$.min,max:$.max,debounce:$.debounce,size:$.sliderInputSize,"onUpdate:modelValue":$.setFirstValue,onChange:$.emitChange},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$i)}var Slider=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$m],["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/index.vue"]]);Slider.install=$=>{$.component(Slider.name,Slider)};const _Slider=Slider,ElSlider=_Slider,spaceItem=buildProps({prefixCls:{type:String,default:""}}),_sfc_main$y=defineComponent({props:spaceItem,setup($){const k=useNamespace("space");return{classes:computed(()=>`${$.prefixCls||k.b()}__item`)}}});function _sfc_render$l($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:normalizeClass($.classes)},[renderSlot($.$slots,"default")],2)}var Item=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/space/src/item.vue"]]);const SIZE_MAP={small:8,default:12,large:16};function useSpace($){const k=useNamespace("space"),V=computed(()=>[k.b(),k.m($.direction),$.class]),z=ref(0),j=ref(0),oe=computed(()=>{const ie=$.wrap||$.fill?{flexWrap:"wrap",marginBottom:`-${j.value}px`}:{},ae={alignItems:$.alignment};return[ie,ae,$.style]}),re=computed(()=>{const ie={paddingBottom:`${j.value}px`,marginRight:`${z.value}px`},ae=$.fill?{flexGrow:1,minWidth:`${$.fillRatio}%`}:{};return[ie,ae]});return watchEffect(()=>{const{size:ie="small",wrap:ae,direction:he,fill:le}=$;if(Array.isArray(ie)){const[ue=0,de=0]=ie;z.value=ue,j.value=de}else{let ue;isNumber$1(ie)?ue=ie:ue=SIZE_MAP[ie]||SIZE_MAP.small,(ae||le)&&he==="horizontal"?z.value=j.value=ue:he==="horizontal"?(z.value=ue,j.value=0):(j.value=ue,z.value=0)}}),{classes:V,containerStyle:oe,itemStyle:re}}const spaceProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:definePropType([String,Object,Array]),default:""},style:{type:definePropType([String,Array,Object]),default:""},alignment:{type:definePropType(String),default:"center"},prefixCls:{type:String},spacer:{type:definePropType([Object,String,Number,Array]),default:null,validator:$=>isVNode($)||isNumber$1($)||isString$3($)},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:$=>isNumber$1($)||isArray$4($)&&$.length===2&&$.every(k=>isNumber$1(k))}});var Space=defineComponent({name:"ElSpace",props:spaceProps,setup($,{slots:k}){const{classes:V,containerStyle:z,itemStyle:j}=useSpace($);return()=>{var oe;const{spacer:re,prefixCls:ie,direction:ae}=$,he=renderSlot(k,"default",{key:0},()=>[]);if(((oe=he.children)!=null?oe:[]).length===0)return null;if(isArray$4(he.children)){let le=[];if(he.children.forEach((ue,de)=>{isFragment(ue)?isArray$4(ue.children)&&ue.children.forEach((pe,$e)=>{le.push(createVNode(Item,{style:j.value,prefixCls:ie,key:`nested-${$e}`},{default:()=>[pe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(ue)&&le.push(createVNode(Item,{style:j.value,prefixCls:ie,key:`LoopKey${de}`},{default:()=>[ue]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),re){const ue=le.length-1;le=le.reduce((de,pe,$e)=>{const _e=[...de,pe];return $e!==ue&&_e.push(createVNode("span",{style:[j.value,ae==="vertical"?"width: 100%":null],key:$e},[isVNode(re)?re:createTextVNode(re,PatchFlags.TEXT)],PatchFlags.STYLE)),_e},[])}return createVNode("div",{class:V.value,style:z.value},le,PatchFlags.STYLE|PatchFlags.CLASS)}return he.children}}});const ElSpace=withInstall(Space),_sfc_main$x=defineComponent({name:"ElSteps",props:{space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",validator:$=>["horizontal","vertical"].includes($)},alignCenter:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},finishStatus:{type:String,default:"finish",validator:$=>["wait","process","finish","error","success"].includes($)},processStatus:{type:String,default:"process",validator:$=>["wait","process","finish","error","success"].includes($)}},emits:[CHANGE_EVENT],setup($,{emit:k}){const V=useNamespace("steps"),z=ref([]);return watch$1(z,()=>{z.value.forEach((j,oe)=>{j.setIndex(oe)})}),provide("ElSteps",{props:$,steps:z}),watch$1(()=>$.active,(j,oe)=>{k(CHANGE_EVENT,j,oe)}),{steps:z,ns:V}}});function _sfc_render$k($,k,V,z,j,oe){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.m($.simple?"simple":$.direction)])},[renderSlot($.$slots,"default")],2)}var Steps=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/index.vue"]]);const _sfc_main$w=defineComponent({name:"ElStep",components:{ElIcon,Close:close$2,Check:check},props:{title:{type:String,default:""},icon:{type:[String,Object],default:""},description:{type:String,default:""},status:{type:String,default:"",validator:$=>["","wait","process","finish","error","success"].includes($)}},setup($){const k=useNamespace("step"),V=ref(-1),z=ref({}),j=ref(""),oe=inject("ElSteps"),re=getCurrentInstance();onMounted(()=>{watch$1([()=>oe.props.active,()=>oe.props.processStatus,()=>oe.props.finishStatus],([qe])=>{ze(qe)},{immediate:!0})}),onBeforeUnmount(()=>{oe.steps.value=oe.steps.value.filter(qe=>qe.uid!==re.uid)});const ie=computed(()=>$.status||j.value),ae=computed(()=>{const qe=oe.steps.value[V.value-1];return qe?qe.currentStatus:"wait"}),he=computed(()=>oe.props.alignCenter),le=computed(()=>oe.props.direction==="vertical"),ue=computed(()=>oe.props.simple),de=computed(()=>oe.steps.value.length),pe=computed(()=>{var qe;return((qe=oe.steps.value[de.value-1])==null?void 0:qe.uid)===re.uid}),$e=computed(()=>ue.value?"":oe.props.space),_e=computed(()=>{const qe={flexBasis:typeof $e.value=="number"?`${$e.value}px`:$e.value?$e.value:`${100/(de.value-(he.value?0:1))}%`};return le.value||pe.value&&(qe.maxWidth=`${100/de.value}%`),qe}),Ce=qe=>{V.value=qe},Ie=qe=>{let Oe=100;const Ue={};Ue.transitionDelay=`${150*V.value}ms`,qe===oe.props.processStatus?Oe=0:qe==="wait"&&(Oe=0,Ue.transitionDelay=`${-150*V.value}ms`),Ue.borderWidth=Oe&&!ue.value?"1px":0,Ue[oe.props.direction==="vertical"?"height":"width"]=`${Oe}%`,z.value=Ue},ze=qe=>{qe>V.value?j.value=oe.props.finishStatus:qe===V.value&&ae.value!=="error"?j.value=oe.props.processStatus:j.value="wait";const Oe=oe.steps.value[de.value-1];Oe&&Oe.calcProgress(j.value)},Et=reactive({uid:computed(()=>re.uid),currentStatus:ie,setIndex:Ce,calcProgress:Ie});return oe.steps.value=[...oe.steps.value,Et],{ns:k,index:V,lineStyle:z,currentStatus:ie,isCenter:he,isVertical:le,isSimple:ue,isLast:pe,space:$e,style:_e,parent:oe,setIndex:Ce,calcProgress:Ie,updateStatus:ze}}});function _sfc_render$j($,k,V,z,j,oe){const re=resolveComponent("el-icon"),ie=resolveComponent("check"),ae=resolveComponent("close");return openBlock(),createElementBlock("div",{style:normalizeStyle($.style),class:normalizeClass([$.ns.b(),$.ns.is($.isSimple?"simple":$.parent.props.direction),$.ns.is("flex",$.isLast&&!$.space&&!$.isCenter),$.ns.is("center",$.isCenter&&!$.isVertical&&!$.isSimple)])},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([$.ns.e("head"),$.ns.is($.currentStatus)])},[$.isSimple?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("line"))},[createBaseVNode("i",{class:normalizeClass($.ns.e("line-inner")),style:normalizeStyle($.lineStyle)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([$.ns.e("icon"),$.ns.is($.icon?"icon":"text")])},[$.currentStatus!=="success"&&$.currentStatus!=="error"?renderSlot($.$slots,"icon",{key:0},()=>[$.icon?(openBlock(),createBlock(re,{key:0,class:normalizeClass($.ns.e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),!$.icon&&!$.isSimple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("icon-inner"))},toDisplayString$1($.index+1),3)):createCommentVNode("v-if",!0)]):(openBlock(),createBlock(re,{key:1,class:normalizeClass([$.ns.e("icon-inner"),$.ns.is("status")])},{default:withCtx(()=>[$.currentStatus==="success"?(openBlock(),createBlock(ie,{key:0})):(openBlock(),createBlock(ae,{key:1}))]),_:1},8,["class"]))],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass($.ns.e("main"))},[createBaseVNode("div",{class:normalizeClass([$.ns.e("title"),$.ns.is($.currentStatus)])},[renderSlot($.$slots,"title",{},()=>[createTextVNode(toDisplayString$1($.title),1)])],2),$.isSimple?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([$.ns.e("description"),$.ns.is($.currentStatus)])},[renderSlot($.$slots,"description",{},()=>[createTextVNode(toDisplayString$1($.description),1)])],2))],2)],6)}var Step=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:iconPropType,default:""},inactiveIcon:{type:iconPropType,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:definePropType(Function)},size:{type:String,validator:isValidComponentSize}}),switchEmits={[UPDATE_MODEL_EVENT]:$=>isBoolean$1($)||isString$3($)||isNumber$1($),[CHANGE_EVENT]:$=>isBoolean$1($)||isString$3($)||isNumber$1($),[INPUT_EVENT]:$=>isBoolean$1($)||isString$3($)||isNumber$1($)},COMPONENT_NAME$5="ElSwitch",_sfc_main$v=defineComponent({name:COMPONENT_NAME$5,components:{ElIcon,Loading:loading$1},props:switchProps,emits:switchEmits,setup($,{emit:k}){const{formItem:V}=useFormItem(),z=useDisabled$1(computed(()=>$.loading)),j=useNamespace("switch"),{inputId:oe}=useFormItemInputId($,{formItemContext:V}),re=useSize(),ie=ref($.modelValue!==!1),ae=ref(),he=ref(),le=computed(()=>[j.b(),j.m(re.value),j.is("disabled",z.value),j.is("checked",pe.value)]),ue=computed(()=>({width:addUnit($.width)}));watch$1(()=>$.modelValue,()=>{ie.value=!0}),watch$1(()=>$.value,()=>{ie.value=!1});const de=computed(()=>ie.value?$.modelValue:$.value),pe=computed(()=>de.value===$.activeValue);[$.activeValue,$.inactiveValue].includes(de.value)||(k(UPDATE_MODEL_EVENT,$.inactiveValue),k(CHANGE_EVENT,$.inactiveValue),k(INPUT_EVENT,$.inactiveValue)),watch$1(pe,()=>{var ze;ae.value.checked=pe.value,($.activeColor||$.inactiveColor)&&Ce(),$.validateEvent&&((ze=V==null?void 0:V.validate)==null||ze.call(V,"change").catch(Et=>void 0))});const $e=()=>{const ze=pe.value?$.inactiveValue:$.activeValue;k(UPDATE_MODEL_EVENT,ze),k(CHANGE_EVENT,ze),k(INPUT_EVENT,ze),nextTick(()=>{ae.value.checked=pe.value})},_e=()=>{if(z.value)return;const{beforeChange:ze}=$;if(!ze){$e();return}const Et=ze();[isPromise$1(Et),isBoolean$1(Et)].some(Oe=>Oe)||throwError(COMPONENT_NAME$5,"beforeChange must return type `Promise` or `boolean`"),isPromise$1(Et)?Et.then(Oe=>{Oe&&$e()}).catch(Oe=>{}):Et&&$e()},Ce=()=>{const ze=pe.value?$.activeColor:$.inactiveColor,Et=he.value;$.borderColor?Et.style.borderColor=$.borderColor:$.borderColor||(Et.style.borderColor=ze),Et.style.backgroundColor=ze,Et.children[0].style.color=ze},Ie=()=>{var ze,Et;(Et=(ze=ae.value)==null?void 0:ze.focus)==null||Et.call(ze)};return onMounted(()=>{($.activeColor||$.inactiveColor||$.borderColor)&&Ce(),ae.value.checked=pe.value}),{ns:j,input:ae,inputId:oe,core:he,switchDisabled:z,checked:pe,switchKls:le,coreStyle:ue,handleChange:$e,switchValue:_e,focus:Ie}}}),_hoisted_1$h=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled"],_hoisted_2$c=["aria-hidden"],_hoisted_3$6=["aria-hidden"],_hoisted_4$4=["aria-hidden"],_hoisted_5$3=["aria-hidden"];function _sfc_render$i($,k,V,z,j,oe){const re=resolveComponent("el-icon"),ie=resolveComponent("loading");return openBlock(),createElementBlock("div",{class:normalizeClass($.switchKls),onClick:k[2]||(k[2]=withModifiers((...ae)=>$.switchValue&&$.switchValue(...ae),["prevent"]))},[createBaseVNode("input",{id:$.inputId,ref:"input",class:normalizeClass($.ns.e("input")),type:"checkbox",role:"switch","aria-checked":$.checked,"aria-disabled":$.switchDisabled,name:$.name,"true-value":$.activeValue,"false-value":$.inactiveValue,disabled:$.switchDisabled,onChange:k[0]||(k[0]=(...ae)=>$.handleChange&&$.handleChange(...ae)),onKeydown:k[1]||(k[1]=withKeys((...ae)=>$.switchValue&&$.switchValue(...ae),["enter"]))},null,42,_hoisted_1$h),!$.inlinePrompt&&($.inactiveIcon||$.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([$.ns.e("label"),$.ns.em("label","left"),$.ns.is("active",!$.checked)])},[$.inactiveIcon?(openBlock(),createBlock(re,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!$.inactiveIcon&&$.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":$.checked},toDisplayString$1($.inactiveText),9,_hoisted_2$c)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref:"core",class:normalizeClass($.ns.e("core")),style:normalizeStyle($.coreStyle)},[$.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("inner"))},[$.activeIcon||$.inactiveIcon?(openBlock(),createElementBlock(Fragment,{key:0},[$.activeIcon?(openBlock(),createBlock(re,{key:0,class:normalizeClass([$.ns.is("icon"),$.checked?$.ns.is("show"):$.ns.is("hide")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.activeIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.inactiveIcon?(openBlock(),createBlock(re,{key:1,class:normalizeClass([$.ns.is("icon"),$.checked?$.ns.is("hide"):$.ns.is("show")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.inactiveIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):$.activeText||$.inactiveIcon?(openBlock(),createElementBlock(Fragment,{key:1},[$.activeText?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([$.ns.is("text"),$.checked?$.ns.is("show"):$.ns.is("hide")]),"aria-hidden":!$.checked},toDisplayString$1($.activeText.substring(0,3)),11,_hoisted_3$6)):createCommentVNode("v-if",!0),$.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([$.ns.is("text"),$.checked?$.ns.is("hide"):$.ns.is("show")]),"aria-hidden":$.checked},toDisplayString$1($.inactiveText.substring(0,3)),11,_hoisted_4$4)):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.e("action"))},[$.loading?(openBlock(),createBlock(re,{key:0,class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!$.inlinePrompt&&($.activeIcon||$.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([$.ns.e("label"),$.ns.em("label","right"),$.ns.is("active",$.checked)])},[$.activeIcon?(openBlock(),createBlock(re,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!$.activeIcon&&$.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!$.checked},toDisplayString$1($.activeText),9,_hoisted_5$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],2)}var Switch=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch);/*! -* escape-html -* Copyright(c) 2012-2013 TJ Holowaychuk -* Copyright(c) 2015 Andreas Lubbe -* Copyright(c) 2015 Tiancheng "Timothy" Gu -* MIT Licensed -*/var matchHtmlRegExp=/["'&<>]/,escapeHtml_1=escapeHtml$1;function escapeHtml$1($){var k=""+$,V=matchHtmlRegExp.exec(k);if(!V)return k;var z,j="",oe=0,re=0;for(oe=V.index;oetypeof he=="string"?get(ie,he):he(ie,ae,$))):(k!=="$key"&&isObject$2(ie)&&"$value"in ie&&(ie=ie.$value),[isObject$2(ie)?get(ie,k):ie])},re=function(ie,ae){if(z)return z(ie.value,ae.value);for(let he=0,le=ie.key.length;heae.key[he])return 1}return 0};return $.map((ie,ae)=>({value:ie,index:ae,key:oe?oe(ie,ae):null})).sort((ie,ae)=>{let he=re(ie,ae);return he||(he=ie.index-ae.index),he*+V}).map(ie=>ie.value)},getColumnById=function($,k){let V=null;return $.columns.forEach(z=>{z.id===k&&(V=z)}),V},getColumnByKey=function($,k){let V=null;for(let z=0;z<$.columns.length;z++){const j=$.columns[z];if(j.columnKey===k){V=j;break}}return V},getColumnByCell=function($,k,V){const z=(k.className||"").match(new RegExp(`${V}-table_[^\\s]+`,"gm"));return z?getColumnById($,z[0]):null},getRowIdentity=($,k)=>{if(!$)throw new Error("Row is required when get row identity");if(typeof k=="string"){if(!k.includes("."))return`${$[k]}`;const V=k.split(".");let z=$;for(const j of V)z=z[j];return`${z}`}else if(typeof k=="function")return k.call(null,$)},getKeysMap=function($,k){const V={};return($||[]).forEach((z,j)=>{V[getRowIdentity(z,k)]={row:z,index:j}}),V};function mergeOptions($,k){const V={};let z;for(z in $)V[z]=$[z];for(z in k)if(hasOwn$2(k,z)){const j=k[z];typeof j!="undefined"&&(V[z]=j)}return V}function parseWidth($){return $===""||$!==void 0&&($=Number.parseInt($,10),Number.isNaN($)&&($="")),$}function parseMinWidth($){return $===""||$!==void 0&&($=parseWidth($),Number.isNaN($)&&($=80)),$}function parseHeight($){return typeof $=="number"?$:typeof $=="string"?/^\d+(?:px)?$/.test($)?Number.parseInt($,10):$:null}function compose(...$){return $.length===0?k=>k:$.length===1?$[0]:$.reduce((k,V)=>(...z)=>k(V(...z)))}function toggleRowStatus($,k,V){let z=!1;const j=$.indexOf(k),oe=j!==-1,re=()=>{$.push(k),z=!0},ie=()=>{$.splice(j,1),z=!0};return typeof V=="boolean"?V&&!oe?re():!V&&oe&&ie():oe?ie():re(),z}function walkTreeNode($,k,V="children",z="hasChildren"){const j=re=>!(Array.isArray(re)&&re.length);function oe(re,ie,ae){k(re,ie,ae),ie.forEach(he=>{if(he[z]){k(he,null,ae+1);return}const le=he[V];j(le)||oe(he,le,ae+1)})}$.forEach(re=>{if(re[z]){k(re,null,0);return}const ie=re[V];j(ie)||oe(re,ie,0)})}let removePopper;function createTablePopper($,k,V,z){const{nextZIndex:j}=useZIndex();function oe(){const ue=z==="light",de=document.createElement("div");return de.className=`el-popper ${ue?"is-light":"is-dark"}`,k=escapeHtml_1(k),de.innerHTML=k,de.style.zIndex=String(j()),document.body.appendChild(de),de}function re(){const ue=document.createElement("div");return ue.className="el-popper__arrow",ue}function ie(){ae&&ae.update()}removePopper=function ue(){try{ae&&ae.destroy(),he&&document.body.removeChild(he),off($,"mouseenter",ie),off($,"mouseleave",ue)}catch{}};let ae=null;const he=oe(),le=re();return he.appendChild(le),ae=yn($,he,oo({modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:le,padding:10}}]},V)),on$1($,"mouseenter",ie),on$1($,"mouseleave",removePopper),ae}const isFixedColumn=($,k,V,z)=>{let j=0,oe=$;if(z){if(z[$].colSpan>1)return{};for(let ae=0;ae<$;ae++)j+=z[ae].colSpan;oe=j+z[$].colSpan-1}else j=$;let re;const ie=V.states.columns;switch(k){case"left":oe=ie.value.length-V.states.rightFixedLeafColumnsLength.value&&(re="right");break;default:oe=ie.value.length-V.states.rightFixedLeafColumnsLength.value&&(re="right")}return re?{direction:re,start:j,after:oe}:{}},getFixedColumnsClass=($,k,V,z,j)=>{const oe=[],{direction:re,start:ie}=isFixedColumn(k,V,z,j);if(re){const ae=re==="left";oe.push(`${$}-fixed-column--${re}`),ae&&ie===z.states.fixedLeafColumnsLength.value-1?oe.push("is-last-column"):!ae&&ie===z.states.columns.value.length-z.states.rightFixedLeafColumnsLength.value&&oe.push("is-first-column")}return oe};function getOffset($,k){return $+(k.realWidth===null||Number.isNaN(k.realWidth)?Number(k.width):k.realWidth)}const getFixedColumnOffset=($,k,V,z)=>{const{direction:j,start:oe=0}=isFixedColumn($,k,V,z);if(!j)return;const re={},ie=j==="left",ae=V.states.columns.value;return ie?re.left=ae.slice(0,$).reduce(getOffset,0):re.right=ae.slice(oe+1).reverse().reduce(getOffset,0),re},ensurePosition=($,k)=>{!$||Number.isNaN($[k])||($[k]=`${$[k]}px`)};function useExpand($){const k=getCurrentInstance(),V=ref(!1),z=ref([]);return{updateExpandRows:()=>{const ae=$.data.value||[],he=$.rowKey.value;if(V.value)z.value=ae.slice();else if(he){const le=getKeysMap(z.value,he);z.value=ae.reduce((ue,de)=>{const pe=getRowIdentity(de,he);return le[pe]&&ue.push(de),ue},[])}else z.value=[]},toggleRowExpansion:(ae,he)=>{toggleRowStatus(z.value,ae,he)&&k.emit("expand-change",ae,z.value.slice())},setExpandRowKeys:ae=>{k.store.assertRowKey();const he=$.data.value||[],le=$.rowKey.value,ue=getKeysMap(he,le);z.value=ae.reduce((de,pe)=>{const $e=ue[pe];return $e&&de.push($e.row),de},[])},isRowExpanded:ae=>{const he=$.rowKey.value;return he?!!getKeysMap(z.value,he)[getRowIdentity(ae,he)]:z.value.includes(ae)},states:{expandRows:z,defaultExpandAll:V}}}function useCurrent($){const k=getCurrentInstance(),V=ref(null),z=ref(null),j=he=>{k.store.assertRowKey(),V.value=he,re(he)},oe=()=>{V.value=null},re=he=>{const{data:le,rowKey:ue}=$;let de=null;ue.value&&(de=(unref(le)||[]).find(pe=>getRowIdentity(pe,ue.value)===he)),z.value=de,k.emit("current-change",z.value,null)};return{setCurrentRowKey:j,restoreCurrentRowKey:oe,setCurrentRowByKey:re,updateCurrentRow:he=>{const le=z.value;if(he&&he!==le){z.value=he,k.emit("current-change",z.value,le);return}!he&&le&&(z.value=null,k.emit("current-change",null,le))},updateCurrentRowData:()=>{const he=$.rowKey.value,le=$.data.value||[],ue=z.value;if(!le.includes(ue)&&ue){if(he){const de=getRowIdentity(ue,he);re(de)}else z.value=null;z.value===null&&k.emit("current-change",null,ue)}else V.value&&(re(V.value),oe())},states:{_currentRowKey:V,currentRow:z}}}function useTree$2($){const k=ref([]),V=ref({}),z=ref(16),j=ref(!1),oe=ref({}),re=ref("hasChildren"),ie=ref("children"),ae=getCurrentInstance(),he=computed(()=>{if(!$.rowKey.value)return{};const Ie=$.data.value||[];return ue(Ie)}),le=computed(()=>{const Ie=$.rowKey.value,ze=Object.keys(oe.value),Et={};return ze.length&&ze.forEach(qe=>{if(oe.value[qe].length){const Oe={children:[]};oe.value[qe].forEach(Ue=>{const Dt=getRowIdentity(Ue,Ie);Oe.children.push(Dt),Ue[re.value]&&!Et[Dt]&&(Et[Dt]={children:[]})}),Et[qe]=Oe}}),Et}),ue=Ie=>{const ze=$.rowKey.value,Et={};return walkTreeNode(Ie,(qe,Oe,Ue)=>{const Dt=getRowIdentity(qe,ze);Array.isArray(Oe)?Et[Dt]={children:Oe.map(At=>getRowIdentity(At,ze)),level:Ue}:j.value&&(Et[Dt]={children:[],lazy:!0,level:Ue})},ie.value,re.value),Et},de=(Ie=!1,ze=(Et=>(Et=ae.store)==null?void 0:Et.states.defaultExpandAll.value)())=>{var Et;const qe=he.value,Oe=le.value,Ue=Object.keys(qe),Dt={};if(Ue.length){const At=unref(V),Lt=[],kt=(jt,vn)=>{if(Ie)return k.value?ze||k.value.includes(vn):!!(ze||(jt==null?void 0:jt.expanded));{const $n=ze||k.value&&k.value.includes(vn);return!!((jt==null?void 0:jt.expanded)||$n)}};Ue.forEach(jt=>{const vn=At[jt],$n=oo({},qe[jt]);if($n.expanded=kt(vn,jt),$n.lazy){const{loaded:wn=!1,loading:_n=!1}=vn||{};$n.loaded=!!wn,$n.loading=!!_n,Lt.push(jt)}Dt[jt]=$n});const Pt=Object.keys(Oe);j.value&&Pt.length&&Lt.length&&Pt.forEach(jt=>{const vn=At[jt],$n=Oe[jt].children;if(Lt.includes(jt)){if(Dt[jt].children.length!==0)throw new Error("[ElTable]children must be an empty array.");Dt[jt].children=$n}else{const{loaded:wn=!1,loading:_n=!1}=vn||{};Dt[jt]={lazy:!0,loaded:!!wn,loading:!!_n,expanded:kt(vn,jt),children:$n,level:""}}})}V.value=Dt,(Et=ae.store)==null||Et.updateTableScrollY()};watch$1(()=>k.value,()=>{de(!0)}),watch$1(()=>he.value,()=>{de()}),watch$1(()=>le.value,()=>{de()});const pe=Ie=>{k.value=Ie,de()},$e=(Ie,ze)=>{ae.store.assertRowKey();const Et=$.rowKey.value,qe=getRowIdentity(Ie,Et),Oe=qe&&V.value[qe];if(qe&&Oe&&"expanded"in Oe){const Ue=Oe.expanded;ze=typeof ze=="undefined"?!Oe.expanded:ze,V.value[qe].expanded=ze,Ue!==ze&&ae.emit("expand-change",Ie,ze),ae.store.updateTableScrollY()}},_e=Ie=>{ae.store.assertRowKey();const ze=$.rowKey.value,Et=getRowIdentity(Ie,ze),qe=V.value[Et];j.value&&qe&&"loaded"in qe&&!qe.loaded?Ce(Ie,Et,qe):$e(Ie,void 0)},Ce=(Ie,ze,Et)=>{const{load:qe}=ae.props;qe&&!V.value[ze].loaded&&(V.value[ze].loading=!0,qe(Ie,Et,Oe=>{if(!Array.isArray(Oe))throw new TypeError("[ElTable] data must be an array");V.value[ze].loading=!1,V.value[ze].loaded=!0,V.value[ze].expanded=!0,Oe.length&&(oe.value[ze]=Oe),ae.emit("expand-change",Ie,!0)}))};return{loadData:Ce,loadOrToggle:_e,toggleTreeExpansion:$e,updateTreeExpandKeys:pe,updateTreeData:de,normalize:ue,states:{expandRowKeys:k,treeData:V,indent:z,lazy:j,lazyTreeNodeMap:oe,lazyColumnIdentifier:re,childrenColumnName:ie}}}const sortData=($,k)=>{const V=k.sortingColumn;return!V||typeof V.sortable=="string"?$:orderBy($,k.sortProp,k.sortOrder,V.sortMethod,V.sortBy)},doFlattenColumns=$=>{const k=[];return $.forEach(V=>{V.children?k.push.apply(k,doFlattenColumns(V.children)):k.push(V)}),k};function useWatcher$1(){var $;const k=getCurrentInstance(),{size:V}=toRefs(($=k.proxy)==null?void 0:$.$props),z=ref(null),j=ref([]),oe=ref([]),re=ref(!1),ie=ref([]),ae=ref([]),he=ref([]),le=ref([]),ue=ref([]),de=ref([]),pe=ref([]),$e=ref([]),_e=ref(0),Ce=ref(0),Ie=ref(0),ze=ref(!1),Et=ref([]),qe=ref(!1),Oe=ref(!1),Ue=ref(null),Dt=ref({}),At=ref(null),Lt=ref(null),kt=ref(null),Pt=ref(null),jt=ref(null);watch$1(j,()=>k.state&&wn(!1),{deep:!0});const vn=()=>{if(!z.value)throw new Error("[ElTable] prop row-key is required")},$n=()=>{le.value=ie.value.filter(io=>io.fixed===!0||io.fixed==="left"),ue.value=ie.value.filter(io=>io.fixed==="right"),le.value.length>0&&ie.value[0]&&ie.value[0].type==="selection"&&!ie.value[0].fixed&&(ie.value[0].fixed=!0,le.value.unshift(ie.value[0]));const go=ie.value.filter(io=>!io.fixed);ae.value=[].concat(le.value).concat(go).concat(ue.value);const Dn=doFlattenColumns(go),Yn=doFlattenColumns(le.value),Gn=doFlattenColumns(ue.value);_e.value=Dn.length,Ce.value=Yn.length,Ie.value=Gn.length,he.value=[].concat(Yn).concat(Dn).concat(Gn),re.value=le.value.length>0||ue.value.length>0},wn=(go,Dn=!1)=>{go&&$n(),Dn?k.state.doLayout():k.state.debouncedUpdateLayout()},_n=go=>Et.value.includes(go),En=()=>{ze.value=!1,Et.value.length&&(Et.value=[],k.emit("selection-change",[]))},Sn=()=>{let go;if(z.value){go=[];const Dn=getKeysMap(Et.value,z.value),Yn=getKeysMap(j.value,z.value);for(const Gn in Dn)hasOwn$2(Dn,Gn)&&!Yn[Gn]&&go.push(Dn[Gn].row)}else go=Et.value.filter(Dn=>!j.value.includes(Dn));if(go.length){const Dn=Et.value.filter(Yn=>!go.includes(Yn));Et.value=Dn,k.emit("selection-change",Dn.slice())}},An=()=>(Et.value||[]).slice(),Cn=(go,Dn=void 0,Yn=!0)=>{if(toggleRowStatus(Et.value,go,Dn)){const io=(Et.value||[]).slice();Yn&&k.emit("select",io,go),k.emit("selection-change",io)}},Tn=()=>{var go,Dn;const Yn=Oe.value?!ze.value:!(ze.value||Et.value.length);ze.value=Yn;let Gn=!1,io=0;const fo=(Dn=(go=k==null?void 0:k.store)==null?void 0:go.states)==null?void 0:Dn.rowKey.value;j.value.forEach((wo,Co)=>{const _o=Co+io;Ue.value?Ue.value.call(null,wo,_o)&&toggleRowStatus(Et.value,wo,Yn)&&(Gn=!0):toggleRowStatus(Et.value,wo,Yn)&&(Gn=!0),io+=On(getRowIdentity(wo,fo))}),Gn&&k.emit("selection-change",Et.value?Et.value.slice():[]),k.emit("select-all",Et.value)},Nn=()=>{const go=getKeysMap(Et.value,z.value);j.value.forEach(Dn=>{const Yn=getRowIdentity(Dn,z.value),Gn=go[Yn];Gn&&(Et.value[Gn.index]=Dn)})},xn=()=>{var go,Dn,Yn;if(((go=j.value)==null?void 0:go.length)===0){ze.value=!1;return}let Gn;z.value&&(Gn=getKeysMap(Et.value,z.value));const io=function(_o){return Gn?!!Gn[getRowIdentity(_o,z.value)]:Et.value.includes(_o)};let fo=!0,wo=0,Co=0;for(let _o=0,Ao=(j.value||[]).length;_o{var Dn;if(!k||!k.store)return 0;const{treeData:Yn}=k.store.states;let Gn=0;const io=(Dn=Yn.value[go])==null?void 0:Dn.children;return io&&(Gn+=io.length,io.forEach(fo=>{Gn+=On(fo)})),Gn},Ln=(go,Dn)=>{Array.isArray(go)||(go=[go]);const Yn={};return go.forEach(Gn=>{Dt.value[Gn.id]=Dn,Yn[Gn.columnKey||Gn.id]=Dn}),Yn},Bn=(go,Dn,Yn)=>{Lt.value&&Lt.value!==go&&(Lt.value.order=null),Lt.value=go,kt.value=Dn,Pt.value=Yn},Vn=()=>{let go=unref(oe);Object.keys(Dt.value).forEach(Dn=>{const Yn=Dt.value[Dn];if(!Yn||Yn.length===0)return;const Gn=getColumnById({columns:he.value},Dn);Gn&&Gn.filterMethod&&(go=go.filter(io=>Yn.some(fo=>Gn.filterMethod.call(null,fo,io,Gn))))}),At.value=go},Fn=()=>{j.value=sortData(At.value,{sortingColumn:Lt.value,sortProp:kt.value,sortOrder:Pt.value})},zn=(go=void 0)=>{go&&go.filter||Vn(),Fn()},Xn=go=>{const{tableHeaderRef:Dn}=k.refs;if(!Dn)return;const Yn=Object.assign({},Dn.filterPanels),Gn=Object.keys(Yn);if(!!Gn.length)if(typeof go=="string"&&(go=[go]),Array.isArray(go)){const io=go.map(fo=>getColumnByKey({columns:he.value},fo));Gn.forEach(fo=>{const wo=io.find(Co=>Co.id===fo);wo&&(wo.filteredValue=[])}),k.store.commit("filterChange",{column:io,values:[],silent:!0,multi:!0})}else Gn.forEach(io=>{const fo=he.value.find(wo=>wo.id===io);fo&&(fo.filteredValue=[])}),Dt.value={},k.store.commit("filterChange",{column:{},values:[],silent:!0})},Pn=()=>{!Lt.value||(Bn(null,null,null),k.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Hn,toggleRowExpansion:eo,updateExpandRows:Qn,states:ao,isRowExpanded:ho}=useExpand({data:j,rowKey:z}),{updateTreeExpandKeys:uo,toggleTreeExpansion:Un,updateTreeData:Zn,loadOrToggle:no,states:qn}=useTree$2({data:j,rowKey:z}),{updateCurrentRowData:In,updateCurrentRow:jn,setCurrentRowKey:Kn,states:so}=useCurrent({data:j,rowKey:z});return{assertRowKey:vn,updateColumns:$n,scheduleLayout:wn,isSelected:_n,clearSelection:En,cleanSelection:Sn,getSelectionRows:An,toggleRowSelection:Cn,_toggleAllSelection:Tn,toggleAllSelection:null,updateSelectionByRowKey:Nn,updateAllSelected:xn,updateFilters:Ln,updateCurrentRow:jn,updateSort:Bn,execFilter:Vn,execSort:Fn,execQuery:zn,clearFilter:Xn,clearSort:Pn,toggleRowExpansion:eo,setExpandRowKeysAdapter:go=>{Hn(go),uo(go)},setCurrentRowKey:Kn,toggleRowExpansionAdapter:(go,Dn)=>{he.value.some(({type:Gn})=>Gn==="expand")?eo(go,Dn):Un(go,Dn)},isRowExpanded:ho,updateExpandRows:Qn,updateCurrentRowData:In,loadOrToggle:no,updateTreeData:Zn,states:oo(oo(oo({tableSize:V,rowKey:z,data:j,_data:oe,isComplex:re,_columns:ie,originColumns:ae,columns:he,fixedColumns:le,rightFixedColumns:ue,leafColumns:de,fixedLeafColumns:pe,rightFixedLeafColumns:$e,leafColumnsLength:_e,fixedLeafColumnsLength:Ce,rightFixedLeafColumnsLength:Ie,isAllSelected:ze,selection:Et,reserveSelection:qe,selectOnIndeterminate:Oe,selectable:Ue,filters:Dt,filteredData:At,sortingColumn:Lt,sortProp:kt,sortOrder:Pt,hoverRow:jt},ao),qn),so)}}function replaceColumn($,k){return $.map(V=>{var z;return V.id===k.id?k:((z=V.children)!=null&&z.length&&(V.children=replaceColumn(V.children,k)),V)})}function sortColumn($){$.forEach(k=>{var V,z;k.no=(V=k.getColumnIndex)==null?void 0:V.call(k),(z=k.children)!=null&&z.length&&sortColumn(k.children)}),$.sort((k,V)=>k.no-V.no)}function useStore(){const $=getCurrentInstance(),k=useWatcher$1(),V=useNamespace("table"),z={setData(re,ie){const ae=unref(re._data)!==ie;re.data.value=ie,re._data.value=ie,$.store.execQuery(),$.store.updateCurrentRowData(),$.store.updateExpandRows(),$.store.updateTreeData($.store.states.defaultExpandAll.value),unref(re.reserveSelection)?($.store.assertRowKey(),$.store.updateSelectionByRowKey()):ae?$.store.clearSelection():$.store.cleanSelection(),$.store.updateAllSelected(),$.$ready&&$.store.scheduleLayout()},insertColumn(re,ie,ae){const he=unref(re._columns);let le=[];ae?(ae&&!ae.children&&(ae.children=[]),ae.children.push(ie),le=replaceColumn(he,ae)):(he.push(ie),le=he),sortColumn(le),re._columns.value=le,ie.type==="selection"&&(re.selectable.value=ie.selectable,re.reserveSelection.value=ie.reserveSelection),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},removeColumn(re,ie,ae){const he=unref(re._columns)||[];if(ae)ae.children.splice(ae.children.findIndex(le=>le.id===ie.id),1),ae.children.length===0&&delete ae.children,re._columns.value=replaceColumn(he,ae);else{const le=he.indexOf(ie);le>-1&&(he.splice(le,1),re._columns.value=he)}$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},sort(re,ie){const{prop:ae,order:he,init:le}=ie;if(ae){const ue=unref(re.columns).find(de=>de.property===ae);ue&&(ue.order=he,$.store.updateSort(ue,ae,he),$.store.commit("changeSortCondition",{init:le}))}},changeSortCondition(re,ie){const{sortingColumn:ae,sortProp:he,sortOrder:le}=re;unref(le)===null&&(re.sortingColumn.value=null,re.sortProp.value=null);const ue={filter:!0};$.store.execQuery(ue),(!ie||!(ie.silent||ie.init))&&$.emit("sort-change",{column:unref(ae),prop:unref(he),order:unref(le)}),$.store.updateTableScrollY()},filterChange(re,ie){const{column:ae,values:he,silent:le}=ie,ue=$.store.updateFilters(ae,he);$.store.execQuery(),le||$.emit("filter-change",ue),$.store.updateTableScrollY()},toggleAllSelection(){$.store.toggleAllSelection()},rowSelectedChanged(re,ie){$.store.toggleRowSelection(ie),$.store.updateAllSelected()},setHoverRow(re,ie){re.hoverRow.value=ie},setCurrentRow(re,ie){$.store.updateCurrentRow(ie)}},j=function(re,...ie){const ae=$.store.mutations;if(ae[re])ae[re].apply($,[$.store.states].concat(ie));else throw new Error(`Action not found: ${re}`)},oe=function(){nextTick(()=>$.layout.updateScrollY.apply($.layout))};return mo(oo({ns:V},k),{mutations:z,commit:j,updateTableScrollY:oe})}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function createStore($,k){if(!$)throw new Error("Table is required.");const V=useStore();return V.toggleAllSelection=debounce(V._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(z=>{handleValue(getArrKeysValue(k,z),z,V)}),proxyTableProps(V,k),V}function proxyTableProps($,k){Object.keys(InitialStateMap).forEach(V=>{watch$1(()=>getArrKeysValue(k,V),z=>{handleValue(z,V,$)})})}function handleValue($,k,V){let z=$,j=InitialStateMap[k];typeof InitialStateMap[k]=="object"&&(j=j.key,z=z||InitialStateMap[k].default),V.states[j].value=z}function getArrKeysValue($,k){if(k.includes(".")){const V=k.split(".");let z=$;return V.forEach(j=>{z=z[j]}),z}else return $[k]}class TableLayout{constructor(k){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ref(null),this.scrollX=ref(!1),this.scrollY=ref(!1),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.tableHeight=ref(null),this.headerHeight=ref(44),this.appendHeight=ref(0),this.footerHeight=ref(44),this.viewportHeight=ref(null),this.bodyHeight=ref(null),this.bodyScrollHeight=ref(0),this.fixedBodyHeight=ref(null),this.gutterWidth=0;for(const V in k)hasOwn$2(k,V)&&(isRef(this[V])?this[V].value=k[V]:this[V]=k[V]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const V=this.table.refs.bodyWrapper;if(this.table.vnode.el&&V){let z=!0;const j=this.scrollY.value;return this.bodyHeight.value===null?z=!1:z=V.scrollHeight>this.bodyHeight.value,this.scrollY.value=z,j!==z}return!1}setHeight(k,V="height"){if(!isClient)return;const z=this.table.vnode.el;if(k=parseHeight(k),this.height.value=Number(k),!z&&(k||k===0))return nextTick(()=>this.setHeight(k,V));typeof k=="number"?(z.style[V]=`${k}px`,this.updateElsHeight()):typeof k=="string"&&(z.style[V]=k,this.updateElsHeight())}setMaxHeight(k){this.setHeight(k,"max-height")}getFlattenColumns(){const k=[];return this.table.store.states.columns.value.forEach(z=>{z.isColumnGroup?k.push.apply(k,z.columns):k.push(z)}),k}updateElsHeight(){var k,V;if(!this.table.$ready)return nextTick(()=>this.updateElsHeight());const{tableWrapper:z,headerWrapper:j,appendWrapper:oe,footerWrapper:re,tableHeader:ie,tableBody:ae}=this.table.refs;if(z&&z.style.display==="none")return;const{tableLayout:he}=this.table.props;if(this.appendHeight.value=oe?oe.offsetHeight:0,this.showHeader&&!j&&he==="fixed")return;const le=ie||null,ue=this.headerDisplayNone(le),de=(j==null?void 0:j.offsetHeight)||0,pe=this.headerHeight.value=this.showHeader?de:0;if(this.showHeader&&!ue&&de>0&&(this.table.store.states.columns.value||[]).length>0&&pe<2)return nextTick(()=>this.updateElsHeight());const $e=this.tableHeight.value=(V=(k=this.table)==null?void 0:k.vnode.el)==null?void 0:V.clientHeight,_e=this.footerHeight.value=re?re.offsetHeight:0;this.height.value!==null&&(this.bodyHeight.value===null&&requestAnimationFrame(()=>this.updateElsHeight()),this.bodyHeight.value=$e-pe-_e+(re?1:0),this.bodyScrollHeight.value=ae==null?void 0:ae.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?$e-this.gutterWidth:$e,this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(k){if(!k)return!0;let V=k;for(;V.tagName!=="DIV";){if(getComputedStyle(V).display==="none")return!0;V=V.parentElement}return!1}updateColumnsWidth(){if(!isClient)return;const k=this.fit,V=this.table.vnode.el.clientWidth;let z=0;const j=this.getFlattenColumns(),oe=j.filter(ae=>typeof ae.width!="number");if(j.forEach(ae=>{typeof ae.width=="number"&&ae.realWidth&&(ae.realWidth=null)}),oe.length>0&&k){if(j.forEach(ae=>{z+=Number(ae.width||ae.minWidth||80)}),z<=V){this.scrollX.value=!1;const ae=V-z;if(oe.length===1)oe[0].realWidth=Number(oe[0].minWidth||80)+ae;else{const he=oe.reduce((de,pe)=>de+Number(pe.minWidth||80),0),le=ae/he;let ue=0;oe.forEach((de,pe)=>{if(pe===0)return;const $e=Math.floor(Number(de.minWidth||80)*le);ue+=$e,de.realWidth=Number(de.minWidth||80)+$e}),oe[0].realWidth=Number(oe[0].minWidth||80)+ae-ue}}else this.scrollX.value=!0,oe.forEach(ae=>{ae.realWidth=Number(ae.minWidth)});this.bodyWidth.value=Math.max(z,V),this.table.state.resizeState.value.width=this.bodyWidth.value}else j.forEach(ae=>{!ae.width&&!ae.minWidth?ae.realWidth=80:ae.realWidth=Number(ae.width||ae.minWidth),z+=ae.realWidth}),this.scrollX.value=z>V,this.bodyWidth.value=z;const re=this.store.states.fixedColumns.value;if(re.length>0){let ae=0;re.forEach(he=>{ae+=Number(he.realWidth||he.width)}),this.fixedWidth.value=ae}const ie=this.store.states.rightFixedColumns.value;if(ie.length>0){let ae=0;ie.forEach(he=>{ae+=Number(he.realWidth||he.width)}),this.rightFixedWidth.value=ae}this.notifyObservers("columns")}addObserver(k){this.observers.push(k)}removeObserver(k){const V=this.observers.indexOf(k);V!==-1&&this.observers.splice(V,1)}notifyObservers(k){this.observers.forEach(z=>{var j,oe;switch(k){case"columns":(j=z.state)==null||j.onColumnsChange(this);break;case"scrollable":(oe=z.state)==null||oe.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${k}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$u=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrowDown,ArrowUp:arrowUp},directives:{ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup($){const k=getCurrentInstance(),{t:V}=useLocale(),z=useNamespace("table-filter"),j=k==null?void 0:k.parent;j.filterPanels.value[$.column.id]||(j.filterPanels.value[$.column.id]=k);const oe=ref(!1),re=ref(null),ie=computed(()=>$.column&&$.column.filters),ae=computed({get:()=>{var qe;return(((qe=$.column)==null?void 0:qe.filteredValue)||[])[0]},set:qe=>{he.value&&(typeof qe!="undefined"&&qe!==null?he.value.splice(0,1,qe):he.value.splice(0,1))}}),he=computed({get(){return $.column?$.column.filteredValue||[]:[]},set(qe){$.column&&$.upDataColumn("filteredValue",qe)}}),le=computed(()=>$.column?$.column.filterMultiple:!0),ue=qe=>qe.value===ae.value,de=()=>{oe.value=!1},pe=qe=>{qe.stopPropagation(),oe.value=!oe.value},$e=()=>{oe.value=!1},_e=()=>{ze(he.value),de()},Ce=()=>{he.value=[],ze(he.value),de()},Ie=qe=>{ae.value=qe,ze(typeof qe!="undefined"&&qe!==null?he.value:[]),de()},ze=qe=>{$.store.commit("filterChange",{column:$.column,values:qe}),$.store.updateAllSelected()};watch$1(oe,qe=>{$.column&&$.upDataColumn("filterOpened",qe)},{immediate:!0});const Et=computed(()=>{var qe,Oe;return(Oe=(qe=re.value)==null?void 0:qe.popperRef)==null?void 0:Oe.contentRef});return{tooltipVisible:oe,multiple:le,filteredValue:he,filterValue:ae,filters:ie,handleConfirm:_e,handleReset:Ce,handleSelect:Ie,isActive:ue,t:V,ns:z,showFilterPanel:pe,hideFilterPanel:$e,popperPaneRef:Et,tooltip:re}}}),_hoisted_1$g={key:0},_hoisted_2$b=["disabled"],_hoisted_3$5=["label","onClick"];function _sfc_render$h($,k,V,z,j,oe){const re=resolveComponent("el-checkbox"),ie=resolveComponent("el-checkbox-group"),ae=resolveComponent("el-scrollbar"),he=resolveComponent("arrow-up"),le=resolveComponent("arrow-down"),ue=resolveComponent("el-icon"),de=resolveComponent("el-tooltip"),pe=resolveDirective("click-outside");return openBlock(),createBlock(de,{ref:"tooltip",visible:$.tooltipVisible,"onUpdate:visible":k[5]||(k[5]=$e=>$.tooltipVisible=$e),offset:0,placement:$.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":$.ns.b(),persistent:""},{content:withCtx(()=>[$.multiple?(openBlock(),createElementBlock("div",_hoisted_1$g,[createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[createVNode(ae,{"wrap-class":$.ns.e("wrap")},{default:withCtx(()=>[createVNode(ie,{modelValue:$.filteredValue,"onUpdate:modelValue":k[0]||(k[0]=$e=>$.filteredValue=$e),class:normalizeClass($.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,$e=>(openBlock(),createBlock(re,{key:$e.value,label:$e.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1($e.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[$.ns.is("disabled")]:$.filteredValue.length===0}),disabled:$.filteredValue.length===0,type:"button",onClick:k[1]||(k[1]=(...$e)=>$.handleConfirm&&$.handleConfirm(...$e))},toDisplayString$1($.t("el.table.confirmFilter")),11,_hoisted_2$b),createBaseVNode("button",{type:"button",onClick:k[2]||(k[2]=(...$e)=>$.handleReset&&$.handleReset(...$e))},toDisplayString$1($.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass($.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([$.ns.e("list-item"),{[$.ns.is("active")]:$.filterValue===void 0||$.filterValue===null}]),onClick:k[3]||(k[3]=$e=>$.handleSelect(null))},toDisplayString$1($.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,$e=>(openBlock(),createElementBlock("li",{key:$e.value,class:normalizeClass([$.ns.e("list-item"),$.ns.is("active",$.isActive($e))]),label:$e.value,onClick:_e=>$.handleSelect($e.value)},toDisplayString$1($e.text),11,_hoisted_3$5))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${$.ns.namespace.value}-table__column-filter-trigger`,`${$.ns.namespace.value}-none-outline`]),onClick:k[4]||(k[4]=(...$e)=>$.showFilterPanel&&$.showFilterPanel(...$e))},[createVNode(ue,null,{default:withCtx(()=>[$.column.filterOpened?(openBlock(),createBlock(he,{key:0})):(openBlock(),createBlock(le,{key:1}))]),_:1})],2)),[[pe,$.hideFilterPanel,$.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver($){const k=getCurrentInstance();onBeforeMount(()=>{V.value.addObserver(k)}),onMounted(()=>{z(V.value),j(V.value)}),onUpdated(()=>{z(V.value),j(V.value)}),onUnmounted(()=>{V.value.removeObserver(k)});const V=computed(()=>{const oe=$.layout;if(!oe)throw new Error("Can not find table layout.");return oe}),z=oe=>{var re;const ie=((re=$.vnode.el)==null?void 0:re.querySelectorAll("colgroup > col"))||[];if(!ie.length)return;const ae=oe.getFlattenColumns(),he={};ae.forEach(le=>{he[le.id]=le});for(let le=0,ue=ie.length;le{var re,ie;const ae=((re=$.vnode.el)==null?void 0:re.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let le=0,ue=ae.length;le{_e.stopPropagation()},oe=(_e,Ce)=>{!Ce.filters&&Ce.sortable?$e(_e,Ce,!1):Ce.filterable&&!Ce.sortable&&j(_e),z==null||z.emit("header-click",Ce,_e)},re=(_e,Ce)=>{z==null||z.emit("header-contextmenu",Ce,_e)},ie=ref(null),ae=ref(!1),he=ref({}),le=(_e,Ce)=>{if(!!isClient&&!(Ce.children&&Ce.children.length>0)&&ie.value&&$.border){ae.value=!0;const Ie=z;k("set-drag-visible",!0);const Et=(Ie==null?void 0:Ie.vnode.el).getBoundingClientRect().left,qe=V.vnode.el.querySelector(`th.${Ce.id}`),Oe=qe.getBoundingClientRect(),Ue=Oe.left-Et+30;addClass(qe,"noclick"),he.value={startMouseLeft:_e.clientX,startLeft:Oe.right-Et,startColumnLeft:Oe.left-Et,tableLeft:Et};const Dt=Ie==null?void 0:Ie.refs.resizeProxy;Dt.style.left=`${he.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const At=kt=>{const Pt=kt.clientX-he.value.startMouseLeft,jt=he.value.startLeft+Pt;Dt.style.left=`${Math.max(Ue,jt)}px`},Lt=()=>{if(ae.value){const{startColumnLeft:kt,startLeft:Pt}=he.value,vn=Number.parseInt(Dt.style.left,10)-kt;Ce.width=Ce.realWidth=vn,Ie==null||Ie.emit("header-dragend",Ce.width,Pt-kt,Ce,_e),requestAnimationFrame(()=>{$.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",ae.value=!1,ie.value=null,he.value={},k("set-drag-visible",!1)}document.removeEventListener("mousemove",At),document.removeEventListener("mouseup",Lt),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(qe,"noclick")},0)};document.addEventListener("mousemove",At),document.addEventListener("mouseup",Lt)}},ue=(_e,Ce)=>{if(Ce.children&&Ce.children.length>0)return;let Ie=_e.target;for(;Ie&&Ie.tagName!=="TH";)Ie=Ie.parentNode;if(!(!Ce||!Ce.resizable)&&!ae.value&&$.border){const ze=Ie.getBoundingClientRect(),Et=document.body.style;ze.width>12&&ze.right-_e.pageX<8?(Et.cursor="col-resize",hasClass(Ie,"is-sortable")&&(Ie.style.cursor="col-resize"),ie.value=Ce):ae.value||(Et.cursor="",hasClass(Ie,"is-sortable")&&(Ie.style.cursor="pointer"),ie.value=null)}},de=()=>{!isClient||(document.body.style.cursor="")},pe=({order:_e,sortOrders:Ce})=>{if(_e==="")return Ce[0];const Ie=Ce.indexOf(_e||null);return Ce[Ie>Ce.length-2?0:Ie+1]},$e=(_e,Ce,Ie)=>{_e.stopPropagation();const ze=Ce.order===Ie?null:Ie||pe(Ce);let Et=_e.target;for(;Et&&Et.tagName!=="TH";)Et=Et.parentNode;if(Et&&Et.tagName==="TH"&&hasClass(Et,"noclick")){removeClass(Et,"noclick");return}if(!Ce.sortable)return;const qe=$.store.states;let Oe=qe.sortProp.value,Ue;const Dt=qe.sortingColumn.value;(Dt!==Ce||Dt===Ce&&Dt.order===null)&&(Dt&&(Dt.order=null),qe.sortingColumn.value=Ce,Oe=Ce.property),ze?Ue=Ce.order=ze:Ue=Ce.order=null,qe.sortProp.value=Oe,qe.sortOrder.value=Ue,z==null||z.store.commit("changeSortCondition")};return{handleHeaderClick:oe,handleHeaderContextMenu:re,handleMouseDown:le,handleMouseMove:ue,handleMouseOut:de,handleSortClick:$e,handleFilterClick:j}}function useStyle$2($){const k=inject(TABLE_INJECTION_KEY),V=useNamespace("table");return{getHeaderRowStyle:ie=>{const ae=k==null?void 0:k.props.headerRowStyle;return typeof ae=="function"?ae.call(null,{rowIndex:ie}):ae},getHeaderRowClass:ie=>{const ae=[],he=k==null?void 0:k.props.headerRowClassName;return typeof he=="string"?ae.push(he):typeof he=="function"&&ae.push(he.call(null,{rowIndex:ie})),ae.join(" ")},getHeaderCellStyle:(ie,ae,he,le)=>{var ue;let de=(ue=k==null?void 0:k.props.headerCellStyle)!=null?ue:{};typeof de=="function"&&(de=de.call(null,{rowIndex:ie,columnIndex:ae,row:he,column:le}));const pe=le.isSubColumn?null:getFixedColumnOffset(ae,le.fixed,$.store,he);return ensurePosition(pe,"left"),ensurePosition(pe,"right"),Object.assign({},de,pe)},getHeaderCellClass:(ie,ae,he,le)=>{const ue=le.isSubColumn?[]:getFixedColumnsClass(V.b(),ae,le.fixed,$.store,he),de=[le.id,le.order,le.headerAlign,le.className,le.labelClassName,...ue];le.children||de.push("is-leaf"),le.sortable&&de.push("is-sortable");const pe=k==null?void 0:k.props.headerCellClassName;return typeof pe=="string"?de.push(pe):typeof pe=="function"&&de.push(pe.call(null,{rowIndex:ie,columnIndex:ae,row:he,column:le})),de.push(V.e("cell")),de.filter($e=>Boolean($e)).join(" ")}}}const getAllColumns=$=>{const k=[];return $.forEach(V=>{V.children?(k.push(V),k.push.apply(k,getAllColumns(V.children))):k.push(V)}),k},convertToRows=$=>{let k=1;const V=(oe,re)=>{if(re&&(oe.level=re.level+1,k{V(ae,oe),ie+=ae.colSpan}),oe.colSpan=ie}else oe.colSpan=1};$.forEach(oe=>{oe.level=1,V(oe,void 0)});const z=[];for(let oe=0;oe{oe.children?(oe.rowSpan=1,oe.children.forEach(re=>re.isSubColumn=!0)):oe.rowSpan=k-oe.level+1,z[oe.level-1].push(oe)}),z};function useUtils$1($){const k=inject(TABLE_INJECTION_KEY),V=computed(()=>convertToRows($.store.states.originColumns.value));return{isGroup:computed(()=>{const oe=V.value.length>1;return oe&&k&&(k.state.isGroup.value=!0),oe}),toggleAllSelection:oe=>{oe.stopPropagation(),k==null||k.store.commit("toggleAllSelection")},columnRows:V}}var TableHeader=defineComponent({name:"ElTableHeader",components:{ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup($,{emit:k}){const V=getCurrentInstance(),z=inject(TABLE_INJECTION_KEY),j=useNamespace("table"),oe=ref({}),{onColumnsChange:re,onScrollableChange:ie}=useLayoutObserver(z);onMounted(async()=>{await nextTick(),await nextTick();const{prop:Ue,order:Dt}=$.defaultSort;z==null||z.store.commit("sort",{prop:Ue,order:Dt,init:!0})});const{handleHeaderClick:ae,handleHeaderContextMenu:he,handleMouseDown:le,handleMouseMove:ue,handleMouseOut:de,handleSortClick:pe,handleFilterClick:$e}=useEvent($,k),{getHeaderRowStyle:_e,getHeaderRowClass:Ce,getHeaderCellStyle:Ie,getHeaderCellClass:ze}=useStyle$2($),{isGroup:Et,toggleAllSelection:qe,columnRows:Oe}=useUtils$1($);return V.state={onColumnsChange:re,onScrollableChange:ie},V.filterPanels=oe,{ns:j,filterPanels:oe,onColumnsChange:re,onScrollableChange:ie,columnRows:Oe,getHeaderRowClass:Ce,getHeaderRowStyle:_e,getHeaderCellClass:ze,getHeaderCellStyle:Ie,handleHeaderClick:ae,handleHeaderContextMenu:he,handleMouseDown:le,handleMouseMove:ue,handleMouseOut:de,handleSortClick:pe,handleFilterClick:$e,isGroup:Et,toggleAllSelection:qe}},render(){const{ns:$,isGroup:k,columnRows:V,getHeaderCellStyle:z,getHeaderCellClass:j,getHeaderRowClass:oe,getHeaderRowStyle:re,handleHeaderClick:ie,handleHeaderContextMenu:ae,handleMouseDown:he,handleMouseMove:le,handleSortClick:ue,handleMouseOut:de,store:pe,$parent:$e}=this;let _e=1;return h$2("thead",{class:{[$.is("group")]:k}},V.map((Ce,Ie)=>h$2("tr",{class:oe(Ie),key:Ie,style:re(Ie)},Ce.map((ze,Et)=>(ze.rowSpan>_e&&(_e=ze.rowSpan),h$2("th",{class:j(Ie,Et,Ce,ze),colspan:ze.colSpan,key:`${ze.id}-thead`,rowspan:ze.rowSpan,style:z(Ie,Et,Ce,ze),onClick:qe=>ie(qe,ze),onContextmenu:qe=>ae(qe,ze),onMousedown:qe=>he(qe,ze),onMousemove:qe=>le(qe,ze),onMouseout:de},[h$2("div",{class:["cell",ze.filteredValue&&ze.filteredValue.length>0?"highlight":"",ze.labelClassName]},[ze.renderHeader?ze.renderHeader({column:ze,$index:Et,store:pe,_self:$e}):ze.label,ze.sortable&&h$2("span",{onClick:qe=>ue(qe,ze),class:"caret-wrapper"},[h$2("i",{onClick:qe=>ue(qe,ze,"ascending"),class:"sort-caret ascending"}),h$2("i",{onClick:qe=>ue(qe,ze,"descending"),class:"sort-caret descending"})]),ze.filterable&&h$2(FilterPanel,{store:pe,placement:ze.filterPlacement||"bottom-start",column:ze,upDataColumn:(qe,Oe)=>{ze[qe]=Oe}})])]))))))}});function useEvents($){const k=inject(TABLE_INJECTION_KEY),V=ref(""),z=ref(h$2("div")),j=(de,pe,$e)=>{var _e;const Ce=k,Ie=getCell(de);let ze;const Et=(_e=Ce==null?void 0:Ce.vnode.el)==null?void 0:_e.dataset.prefix;Ie&&(ze=getColumnByCell({columns:$.store.states.columns.value},Ie,Et),ze&&(Ce==null||Ce.emit(`cell-${$e}`,pe,ze,Ie,de))),Ce==null||Ce.emit(`row-${$e}`,pe,ze,de)},oe=(de,pe)=>{j(de,pe,"dblclick")},re=(de,pe)=>{$.store.commit("setCurrentRow",pe),j(de,pe,"click")},ie=(de,pe)=>{j(de,pe,"contextmenu")},ae=debounce(de=>{$.store.commit("setHoverRow",de)},30),he=debounce(()=>{$.store.commit("setHoverRow",null)},30);return{handleDoubleClick:oe,handleClick:re,handleContextMenu:ie,handleMouseEnter:ae,handleMouseLeave:he,handleCellMouseEnter:(de,pe)=>{var $e;const _e=k,Ce=getCell(de),Ie=($e=_e==null?void 0:_e.vnode.el)==null?void 0:$e.dataset.prefix;if(Ce){const Ue=getColumnByCell({columns:$.store.states.columns.value},Ce,Ie),Dt=_e.hoverState={cell:Ce,column:Ue,row:pe};_e==null||_e.emit("cell-mouse-enter",Dt.row,Dt.column,Dt.cell,de)}const ze=de.target.querySelector(".cell");if(!(hasClass(ze,`${Ie}-tooltip`)&&ze.childNodes.length))return;const Et=document.createRange();Et.setStart(ze,0),Et.setEnd(ze,ze.childNodes.length);const qe=Et.getBoundingClientRect().width,Oe=(Number.parseInt(getStyle(ze,"paddingLeft"),10)||0)+(Number.parseInt(getStyle(ze,"paddingRight"),10)||0);(qe+Oe>ze.offsetWidth||ze.scrollWidth>ze.offsetWidth)&&createTablePopper(Ce,Ce.innerText||Ce.textContent,{placement:"top",strategy:"fixed"},pe.tooltipEffect)},handleCellMouseLeave:de=>{if(!getCell(de))return;const $e=k==null?void 0:k.hoverState;k==null||k.emit("cell-mouse-leave",$e==null?void 0:$e.row,$e==null?void 0:$e.column,$e==null?void 0:$e.cell,de)},tooltipContent:V,tooltipTrigger:z}}function useStyles$1($){const k=inject(TABLE_INJECTION_KEY),V=useNamespace("table");return{getRowStyle:(he,le)=>{const ue=k==null?void 0:k.props.rowStyle;return typeof ue=="function"?ue.call(null,{row:he,rowIndex:le}):ue||null},getRowClass:(he,le)=>{const ue=[V.e("row")];(k==null?void 0:k.props.highlightCurrentRow)&&he===$.store.states.currentRow.value&&ue.push("current-row"),$.stripe&&le%2===1&&ue.push(V.em("row","striped"));const de=k==null?void 0:k.props.rowClassName;return typeof de=="string"?ue.push(de):typeof de=="function"&&ue.push(de.call(null,{row:he,rowIndex:le})),ue},getCellStyle:(he,le,ue,de)=>{const pe=k==null?void 0:k.props.cellStyle;let $e=pe!=null?pe:{};typeof pe=="function"&&($e=pe.call(null,{rowIndex:he,columnIndex:le,row:ue,column:de}));const _e=de.isSubColumn?null:getFixedColumnOffset(le,$==null?void 0:$.fixed,$.store);return ensurePosition(_e,"left"),ensurePosition(_e,"right"),Object.assign({},$e,_e)},getCellClass:(he,le,ue,de)=>{const pe=de.isSubColumn?[]:getFixedColumnsClass(V.b(),le,$==null?void 0:$.fixed,$.store),$e=[de.id,de.align,de.className,...pe],_e=k==null?void 0:k.props.cellClassName;return typeof _e=="string"?$e.push(_e):typeof _e=="function"&&$e.push(_e.call(null,{rowIndex:he,columnIndex:le,row:ue,column:de})),$e.push(V.e("cell")),$e.filter(Ce=>Boolean(Ce)).join(" ")},getSpan:(he,le,ue,de)=>{let pe=1,$e=1;const _e=k==null?void 0:k.props.spanMethod;if(typeof _e=="function"){const Ce=_e({row:he,column:le,rowIndex:ue,columnIndex:de});Array.isArray(Ce)?(pe=Ce[0],$e=Ce[1]):typeof Ce=="object"&&(pe=Ce.rowspan,$e=Ce.colspan)}return{rowspan:pe,colspan:$e}},getColspanRealWidth:(he,le,ue)=>{if(le<1)return he[ue].realWidth;const de=he.map(({realWidth:pe,width:$e})=>pe||$e).slice(ue,ue+le);return Number(de.reduce((pe,$e)=>Number(pe)+Number($e),-1))}}}function useRender$1($){const k=inject(TABLE_INJECTION_KEY),{handleDoubleClick:V,handleClick:z,handleContextMenu:j,handleMouseEnter:oe,handleMouseLeave:re,handleCellMouseEnter:ie,handleCellMouseLeave:ae,tooltipContent:he,tooltipTrigger:le}=useEvents($),{getRowStyle:ue,getRowClass:de,getCellStyle:pe,getCellClass:$e,getSpan:_e,getColspanRealWidth:Ce}=useStyles$1($),Ie=computed(()=>$.store.states.columns.value.findIndex(({type:Ue})=>Ue==="default")),ze=(Ue,Dt)=>{const At=k.props.rowKey;return At?getRowIdentity(Ue,At):Dt},Et=(Ue,Dt,At,Lt=!1)=>{const{tooltipEffect:kt,store:Pt}=$,{indent:jt,columns:vn}=Pt.states,$n=de(Ue,Dt);let wn=!0;return At&&($n.push(`el-table__row--level-${At.level}`),wn=At.display),h$2("tr",{style:[wn?null:{display:"none"},ue(Ue,Dt)],class:$n,key:ze(Ue,Dt),onDblclick:En=>V(En,Ue),onClick:En=>z(En,Ue),onContextmenu:En=>j(En,Ue),onMouseenter:()=>oe(Dt),onMouseleave:re},vn.value.map((En,Sn)=>{const{rowspan:An,colspan:Cn}=_e(Ue,En,Dt,Sn);if(!An||!Cn)return null;const Tn=oo({},En);Tn.realWidth=Ce(vn.value,Cn,Sn);const Nn={store:$.store,_self:$.context||k,column:Tn,row:Ue,$index:Dt,cellIndex:Sn,expanded:Lt};Sn===Ie.value&&At&&(Nn.treeNode={indent:At.level*jt.value,level:At.level},typeof At.expanded=="boolean"&&(Nn.treeNode.expanded=At.expanded,"loading"in At&&(Nn.treeNode.loading=At.loading),"noLazyChildren"in At&&(Nn.treeNode.noLazyChildren=At.noLazyChildren)));const xn=`${Dt},${Sn}`,On=Tn.columnKey||Tn.rawColumnKey||"",Ln=qe(Sn,En,Nn);return h$2("td",{style:pe(Dt,Sn,Ue,En),class:$e(Dt,Sn,Ue,En),key:`${On}${xn}`,rowspan:An,colspan:Cn,onMouseenter:Bn=>ie(Bn,mo(oo({},Ue),{tooltipEffect:kt})),onMouseleave:ae},[Ln])}))},qe=(Ue,Dt,At)=>Dt.renderCell(At);return{wrappedRowRender:(Ue,Dt)=>{const At=$.store,{isRowExpanded:Lt,assertRowKey:kt}=At,{treeData:Pt,lazyTreeNodeMap:jt,childrenColumnName:vn,rowKey:$n}=At.states,wn=At.states.columns.value;if(wn.some(({type:En})=>En==="expand")){const En=Lt(Ue),Sn=Et(Ue,Dt,void 0,En),An=k.renderExpanded;return En?An?[[Sn,h$2("tr",{key:`expanded-row__${Sn.key}`},[h$2("td",{colspan:wn.length,class:"el-table__cell el-table__expanded-cell"},[An({row:Ue,$index:Dt,store:At,expanded:En})])])]]:(console.error("[Element Error]renderExpanded is required."),Sn):[[Sn]]}else if(Object.keys(Pt.value).length){kt();const En=getRowIdentity(Ue,$n.value);let Sn=Pt.value[En],An=null;Sn&&(An={expanded:Sn.expanded,level:Sn.level,display:!0},typeof Sn.lazy=="boolean"&&(typeof Sn.loaded=="boolean"&&Sn.loaded&&(An.noLazyChildren=!(Sn.children&&Sn.children.length)),An.loading=Sn.loading));const Cn=[Et(Ue,Dt,An)];if(Sn){let Tn=0;const Nn=(On,Ln)=>{!(On&&On.length&&Ln)||On.forEach(Bn=>{const Vn={display:Ln.display&&Ln.expanded,level:Ln.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Fn=getRowIdentity(Bn,$n.value);if(Fn==null)throw new Error("For nested data item, row-key is required.");if(Sn=oo({},Pt.value[Fn]),Sn&&(Vn.expanded=Sn.expanded,Sn.level=Sn.level||Vn.level,Sn.display=!!(Sn.expanded&&Vn.display),typeof Sn.lazy=="boolean"&&(typeof Sn.loaded=="boolean"&&Sn.loaded&&(Vn.noLazyChildren=!(Sn.children&&Sn.children.length)),Vn.loading=Sn.loading)),Tn++,Cn.push(Et(Bn,Dt+Tn,Vn)),Sn){const zn=jt.value[Fn]||Bn[vn.value];Nn(zn,Sn)}})};Sn.display=!0;const xn=jt.value[En]||Ue[vn.value];Nn(xn,Sn)}return Cn}else return Et(Ue,Dt,void 0)},tooltipContent:he,tooltipTrigger:le}}const defaultProps$2={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var TableBody=defineComponent({name:"ElTableBody",props:defaultProps$2,setup($){const k=getCurrentInstance(),V=inject(TABLE_INJECTION_KEY),z=useNamespace("table"),{wrappedRowRender:j,tooltipContent:oe,tooltipTrigger:re}=useRender$1($),{onColumnsChange:ie,onScrollableChange:ae}=useLayoutObserver(V);return watch$1($.store.states.hoverRow,(he,le)=>{if(!$.store.states.isComplex.value||!isClient)return;let ue=window.requestAnimationFrame;ue||(ue=de=>window.setTimeout(de,16)),ue(()=>{var de;const pe=(de=k==null?void 0:k.vnode.el)==null?void 0:de.querySelectorAll(`.${z.e("row")}`),$e=pe[le],_e=pe[he];$e&&removeClass($e,"hover-row"),_e&&addClass(_e,"hover-row")})}),onUnmounted(()=>{var he;(he=removePopper)==null||he()}),onUpdated(()=>{var he;(he=removePopper)==null||he()}),{ns:z,onColumnsChange:ie,onScrollableChange:ae,wrappedRowRender:j,tooltipContent:oe,tooltipTrigger:re}},render(){const{wrappedRowRender:$,store:k}=this,V=k.states.data.value||[];return h$2("tbody",{},[V.reduce((z,j)=>z.concat($(j,z.length)),[])])}});function hColgroup($){const k=$.tableLayout==="auto";let V=$.columns||[];k&&V.every(j=>j.width===void 0)&&(V=[]);const z=j=>{const oe={key:`${$.tableLayout}_${j.id}`,style:{},name:void 0};return k?oe.style={width:`${j.width}px`}:oe.name=j.id,oe};return h$2("colgroup",{},V.map(j=>h$2("col",z(j))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const $=inject(TABLE_INJECTION_KEY),k=$==null?void 0:$.store,V=computed(()=>k.states.fixedLeafColumnsLength.value),z=computed(()=>k.states.rightFixedColumns.value.length),j=computed(()=>k.states.columns.value.length),oe=computed(()=>k.states.fixedColumns.value.length),re=computed(()=>k.states.rightFixedColumns.value.length);return{leftFixedLeafCount:V,rightFixedLeafCount:z,columnsCount:j,leftFixedCount:oe,rightFixedCount:re,columns:k.states.columns}}function useStyle$1($){const{columns:k}=useMapState(),V=useNamespace("table");return{getCellClasses:(oe,re)=>{const ie=oe[re],ae=[V.e("cell"),ie.id,ie.align,ie.labelClassName,...getFixedColumnsClass(V.b(),re,ie.fixed,$.store)];return ie.className&&ae.push(ie.className),ie.children||ae.push(V.is("leaf")),ae},getCellStyles:(oe,re)=>{const ie=getFixedColumnOffset(re,oe.fixed,$.store);return ensurePosition(ie,"left"),ensurePosition(ie,"right"),ie},columns:k}}var TableFooter=defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup($){const{getCellClasses:k,getCellStyles:V,columns:z}=useStyle$1($);return{ns:useNamespace("table"),getCellClasses:k,getCellStyles:V,columns:z}},render(){const{columns:$,getCellStyles:k,getCellClasses:V,summaryMethod:z,sumText:j,ns:oe}=this,re=this.store.states.data.value;let ie=[];return z?ie=z({columns:$,data:re}):$.forEach((ae,he)=>{if(he===0){ie[he]=j;return}const le=re.map($e=>Number($e[ae.property])),ue=[];let de=!0;le.forEach($e=>{if(!Number.isNaN(+$e)){de=!1;const _e=`${$e}`.split(".")[1];ue.push(_e?_e.length:0)}});const pe=Math.max.apply(null,ue);de?ie[he]="":ie[he]=le.reduce(($e,_e)=>{const Ce=Number(_e);return Number.isNaN(+Ce)?$e:Number.parseFloat(($e+_e).toFixed(Math.min(pe,20)))},0)}),h$2("table",{class:oe.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:$}),h$2("tbody",[h$2("tr",{},[...$.map((ae,he)=>h$2("td",{key:he,colspan:ae.colSpan,rowspan:ae.rowSpan,class:V($,he),style:k(ae,he)},[h$2("div",{class:["cell",ae.labelClassName]},[ie[he]])]))])])])}});function useUtils($){return{setCurrentRow:le=>{$.commit("setCurrentRow",le)},getSelectionRows:()=>$.getSelectionRows(),toggleRowSelection:(le,ue)=>{$.toggleRowSelection(le,ue,!1),$.updateAllSelected()},clearSelection:()=>{$.clearSelection()},clearFilter:le=>{$.clearFilter(le)},toggleAllSelection:()=>{$.commit("toggleAllSelection")},toggleRowExpansion:(le,ue)=>{$.toggleRowExpansionAdapter(le,ue)},clearSort:()=>{$.clearSort()},sort:(le,ue)=>{$.commit("sort",{prop:le,order:ue})}}}function useStyle($,k,V,z){const j=ref(!1),oe=ref(null),re=ref(!1),ie=Sn=>{re.value=Sn},ae=ref({width:null,height:null}),he=ref(!1),le={display:"inline-block",verticalAlign:"middle"},ue=ref();watchEffect(()=>{k.setHeight($.height)}),watchEffect(()=>{k.setMaxHeight($.maxHeight)}),watch$1(()=>[$.currentRowKey,V.states.rowKey],([Sn,An])=>{!unref(An)||V.setCurrentRowKey(`${Sn}`)},{immediate:!0}),watch$1(()=>$.data,Sn=>{z.store.commit("setData",Sn)},{immediate:!0,deep:!0}),watchEffect(()=>{$.expandRowKeys&&V.setExpandRowKeysAdapter($.expandRowKeys)});const de=()=>{z.store.commit("setHoverRow",null),z.hoverState&&(z.hoverState=null)},pe=(Sn,An)=>{const{pixelX:Cn,pixelY:Tn}=An;Math.abs(Cn)>=Math.abs(Tn)&&(z.refs.bodyWrapper.scrollLeft+=An.pixelX/5)},$e=computed(()=>$.height||$.maxHeight||V.states.fixedColumns.value.length>0||V.states.rightFixedColumns.value.length>0),_e=computed(()=>({width:k.bodyWidth.value?`${k.bodyWidth.value}px`:""})),Ce=()=>{$e.value&&k.updateElsHeight(),k.updateColumnsWidth(),requestAnimationFrame(qe)};onMounted(async()=>{await nextTick(),V.updateColumns(),Oe(),requestAnimationFrame(Ce),ae.value={width:ue.value=z.vnode.el.offsetWidth,height:z.vnode.el.offsetHeight},V.states.columns.value.forEach(Sn=>{Sn.filteredValue&&Sn.filteredValue.length&&z.store.commit("filterChange",{column:Sn,values:Sn.filteredValue,silent:!0})}),z.$ready=!0});const Ie=(Sn,An)=>{if(!Sn)return;const Cn=Array.from(Sn.classList).filter(Tn=>!Tn.startsWith("is-scrolling-"));Cn.push(k.scrollX.value?An:"is-scrolling-none"),Sn.className=Cn.join(" ")},ze=Sn=>{const{tableWrapper:An}=z.refs;Ie(An,Sn)},Et=Sn=>{const{tableWrapper:An}=z.refs;return!!(An&&An.classList.contains(Sn))},qe=function(){if(!z.refs.scrollBarRef)return;if(!k.scrollX.value){const Ln="is-scrolling-none";Et(Ln)||ze(Ln);return}const Sn=z.refs.scrollBarRef.wrap$;if(!Sn)return;const{scrollLeft:An,offsetWidth:Cn,scrollWidth:Tn}=Sn,{headerWrapper:Nn,footerWrapper:xn}=z.refs;Nn&&(Nn.scrollLeft=An),xn&&(xn.scrollLeft=An);const On=Tn-Cn-1;An>=On?ze("is-scrolling-right"):ze(An===0?"is-scrolling-left":"is-scrolling-middle")},Oe=()=>{var Sn;!z.refs.scrollBarRef||((Sn=z.refs.scrollBarRef.wrap$)==null||Sn.addEventListener("scroll",qe,{passive:!0}),$.fit?addResizeListener(z.vnode.el,Dt):on$1(window,"resize",Ce))};onBeforeUnmount(()=>{Ue()});const Ue=()=>{var Sn;(Sn=z.refs.scrollBarRef.wrap$)==null||Sn.removeEventListener("scroll",qe,!0),$.fit?removeResizeListener(z.vnode.el,Dt):off(window,"resize",Ce)},Dt=()=>{if(!z.$ready)return;let Sn=!1;const An=z.vnode.el,{width:Cn,height:Tn}=ae.value,Nn=ue.value=An.offsetWidth;Cn!==Nn&&(Sn=!0);const xn=An.offsetHeight;($.height||$e.value)&&Tn!==xn&&(Sn=!0),Sn&&(ae.value={width:Nn,height:xn},Ce())},At=useSize(),Lt=computed(()=>{const{bodyWidth:Sn,scrollY:An,gutterWidth:Cn}=k;return Sn.value?`${Sn.value-(An.value?Cn:0)}px`:""}),kt=computed(()=>$.maxHeight?"fixed":$.tableLayout);function Pt(Sn,An,Cn){const Tn=parseHeight(Sn),Nn=$.showHeader?Cn:0;if(Tn!==null)return isString$3(Tn)?`calc(${Tn} - ${An}px - ${Nn}px)`:Tn-An-Nn}const jt=computed(()=>{const Sn=k.headerHeight.value||0,An=k.bodyHeight.value,Cn=k.footerHeight.value||0;if($.height)return An||void 0;if($.maxHeight)return Pt($.maxHeight,Cn,Sn)}),vn=computed(()=>{const Sn=k.headerHeight.value||0,An=k.bodyHeight.value,Cn=k.footerHeight.value||0;if($.height)return{height:An?`${An}px`:""};if($.maxHeight){const Tn=Pt($.maxHeight,Cn,Sn);if(Tn!==null)return{"max-height":`${Tn}${isNumber$1(Tn)?"px":""}`}}return{}}),$n=computed(()=>{if($.data&&$.data.length)return null;let Sn="100%";return k.appendHeight.value&&(Sn=`calc(100% - ${k.appendHeight.value}px)`),{width:ue.value?`${ue.value}px`:"",height:Sn}}),wn=(Sn,An)=>{const Cn=z.refs.bodyWrapper;if(Math.abs(An.spinY)>0){const Tn=Cn.scrollTop;An.pixelY<0&&Tn!==0&&Sn.preventDefault(),An.pixelY>0&&Cn.scrollHeight-Cn.clientHeight>Tn&&Sn.preventDefault(),Cn.scrollTop+=Math.ceil(An.pixelY/5)}else Cn.scrollLeft+=Math.ceil(An.pixelX/5)},_n=computed(()=>$.maxHeight?$.showSummary?{bottom:0}:{bottom:k.scrollX.value&&$.data.length?`${k.gutterWidth}px`:""}:$.showSummary?{height:k.tableHeight.value?`${k.tableHeight.value}px`:""}:{height:k.viewportHeight.value?`${k.viewportHeight.value}px`:""}),En=computed(()=>{if($.height)return{height:k.fixedBodyHeight.value?`${k.fixedBodyHeight.value}px`:""};if($.maxHeight){let Sn=parseHeight($.maxHeight);if(typeof Sn=="number")return Sn=k.scrollX.value?Sn-k.gutterWidth:Sn,$.showHeader&&(Sn-=k.headerHeight.value),Sn-=k.footerHeight.value,{"max-height":`${Sn}px`}}return{}});return{isHidden:j,renderExpanded:oe,setDragVisible:ie,isGroup:he,handleMouseLeave:de,handleHeaderFooterMousewheel:pe,tableSize:At,bodyHeight:vn,height:jt,emptyBlockStyle:$n,handleFixedMousewheel:wn,fixedHeight:_n,fixedBodyHeight:En,resizeProxyVisible:re,bodyWidth:Lt,resizeState:ae,doLayout:Ce,tableBodyStyles:_e,tableLayout:kt,scrollbarViewStyle:le}}var defaultProps$1={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1}};const useScrollbar$1=()=>{const $=ref(),k=(oe,re)=>{const ie=$.value;ie&&ie.scrollTo(oe,re)},V=(oe,re)=>{const ie=$.value;ie&&isNumber$1(re)&&["Top","Left"].includes(oe)&&ie[`setScroll${oe}`](re)};return{scrollBarRef:$,scrollTo:k,setScrollTop:oe=>V("Top",oe),setScrollLeft:oe=>V("Left",oe)}};let tableIdSeed=1;const _sfc_main$t=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$1,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup($){const{t:k}=useLocale(),V=useNamespace("table"),z=getCurrentInstance();provide(TABLE_INJECTION_KEY,z);const j=createStore(z,$);z.store=j;const oe=new TableLayout({store:z.store,table:z,fit:$.fit,showHeader:$.showHeader});z.layout=oe;const re=computed(()=>(j.states.data.value||[]).length===0),{setCurrentRow:ie,getSelectionRows:ae,toggleRowSelection:he,clearSelection:le,clearFilter:ue,toggleAllSelection:de,toggleRowExpansion:pe,clearSort:$e,sort:_e}=useUtils(j),{isHidden:Ce,renderExpanded:Ie,setDragVisible:ze,isGroup:Et,handleMouseLeave:qe,handleHeaderFooterMousewheel:Oe,tableSize:Ue,bodyHeight:Dt,height:At,emptyBlockStyle:Lt,handleFixedMousewheel:kt,fixedHeight:Pt,fixedBodyHeight:jt,resizeProxyVisible:vn,bodyWidth:$n,resizeState:wn,doLayout:_n,tableBodyStyles:En,tableLayout:Sn,scrollbarViewStyle:An}=useStyle($,oe,j,z),{scrollBarRef:Cn,scrollTo:Tn,setScrollLeft:Nn,setScrollTop:xn}=useScrollbar$1(),On=debounce(_n,50),Ln=`el-table_${tableIdSeed++}`;z.tableId=Ln,z.state={isGroup:Et,resizeState:wn,doLayout:_n,debouncedUpdateLayout:On};const Bn=computed(()=>$.sumText||k("el.table.sumText")),Vn=computed(()=>$.emptyText||k("el.table.emptyText"));return{ns:V,layout:oe,store:j,handleHeaderFooterMousewheel:Oe,handleMouseLeave:qe,tableId:Ln,tableSize:Ue,isHidden:Ce,isEmpty:re,renderExpanded:Ie,resizeProxyVisible:vn,resizeState:wn,isGroup:Et,bodyWidth:$n,bodyHeight:Dt,height:At,tableBodyStyles:En,emptyBlockStyle:Lt,debouncedUpdateLayout:On,handleFixedMousewheel:kt,fixedHeight:Pt,fixedBodyHeight:jt,setCurrentRow:ie,getSelectionRows:ae,toggleRowSelection:he,clearSelection:le,clearFilter:ue,toggleAllSelection:de,toggleRowExpansion:pe,clearSort:$e,doLayout:_n,sort:_e,t:k,setDragVisible:ze,context:z,computedSumText:Bn,computedEmptyText:Vn,tableLayout:Sn,scrollbarViewStyle:An,scrollBarRef:Cn,scrollTo:Tn,setScrollLeft:Nn,setScrollTop:xn}}}),_hoisted_1$f=["data-prefix"],_hoisted_2$a={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$g($,k,V,z,j,oe){const re=resolveComponent("hColgroup"),ie=resolveComponent("table-header"),ae=resolveComponent("table-body"),he=resolveComponent("el-scrollbar"),le=resolveComponent("table-footer"),ue=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[$.ns.m("fit")]:$.fit,[$.ns.m("striped")]:$.stripe,[$.ns.m("border")]:$.border||$.isGroup,[$.ns.m("hidden")]:$.isHidden,[$.ns.m("group")]:$.isGroup,[$.ns.m("fluid-height")]:$.maxHeight,[$.ns.m("scrollable-x")]:$.layout.scrollX.value,[$.ns.m("scrollable-y")]:$.layout.scrollY.value,[$.ns.m("enable-row-hover")]:!$.store.states.isComplex.value,[$.ns.m("enable-row-transition")]:($.store.states.data.value||[]).length!==0&&($.store.states.data.value||[]).length<100,"has-footer":$.showSummary},$.ns.m($.tableSize),$.className,$.ns.b(),$.ns.m(`layout-${$.tableLayout}`)]),style:normalizeStyle($.style),"data-prefix":$.ns.namespace.value,onMouseleave:k[0]||(k[0]=de=>$.handleMouseLeave())},[createBaseVNode("div",{class:normalizeClass($.ns.e("inner-wrapper"))},[createBaseVNode("div",_hoisted_2$a,[renderSlot($.$slots,"default")],512),$.showHeader&&$.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass($.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass($.ns.e("header")),style:normalizeStyle($.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(re,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),createVNode(ie,{ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[ue,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",style:normalizeStyle($.bodyHeight),class:normalizeClass($.ns.e("body-wrapper"))},[createVNode(he,{ref:"scrollBarRef",height:$.maxHeight?void 0:$.height,"max-height":$.maxHeight?$.height:void 0,"view-style":$.scrollbarViewStyle,always:$.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass($.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle({width:$.bodyWidth,tableLayout:$.tableLayout})},[createVNode(re,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),$.showHeader&&$.tableLayout==="auto"?(openBlock(),createBlock(ie,{key:0,border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode(ae,{context:$.context,highlight:$.highlightCurrentRow,"row-class-name":$.rowClassName,"tooltip-effect":$.tooltipEffect,"row-style":$.rowStyle,store:$.store,stripe:$.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle($.emptyBlockStyle),class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},[renderSlot($.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1($.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),$.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass($.ns.e("append-wrapper"))},[renderSlot($.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["height","max-height","view-style","always"])],6),$.border||$.isGroup?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],2),$.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"footerWrapper",class:normalizeClass($.ns.e("footer-wrapper"))},[createVNode(le,{border:$.border,"default-sort":$.defaultSort,store:$.store,style:normalizeStyle($.tableBodyStyles),"sum-text":$.computedSumText,"summary-method":$.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!$.isEmpty],[ue,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass($.ns.e("column-resize-proxy"))},null,2),[[vShow,$.resizeProxyVisible]])],46,_hoisted_1$f)}var Table=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const defaultClassNames={selection:"table-column--selection",expand:"table__expand-column"},cellStarts={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},getDefaultClassName=$=>defaultClassNames[$]||"",cellForced={selection:{renderHeader({store:$}){function k(){return $.states.data.value&&$.states.data.value.length===0}return h$2(ElCheckbox,{disabled:k(),size:$.states.tableSize.value,indeterminate:$.states.selection.value.length>0&&!$.states.isAllSelected.value,"onUpdate:modelValue":$.toggleAllSelection,modelValue:$.states.isAllSelected.value})},renderCell({row:$,column:k,store:V,$index:z}){return h$2(ElCheckbox,{disabled:k.selectable?!k.selectable.call(null,$,z):!1,size:V.states.tableSize.value,onChange:()=>{V.commit("rowSelectedChanged",$)},onClick:j=>j.stopPropagation(),modelValue:V.isSelected($)})},sortable:!1,resizable:!1},index:{renderHeader({column:$}){return $.label||"#"},renderCell({column:$,$index:k}){let V=k+1;const z=$.index;return typeof z=="number"?V=k+z:typeof z=="function"&&(V=z(k)),h$2("div",{},[V])},sortable:!1},expand:{renderHeader({column:$}){return $.label||""},renderCell({row:$,store:k,expanded:V}){const{ns:z}=k,j=[z.e("expand-icon")];return V&&j.push(z.em("expand-icon","expanded")),h$2("div",{class:j,onClick:function(re){re.stopPropagation(),k.toggleRowExpansion($)}},{default:()=>[h$2(ElIcon,null,{default:()=>[h$2(arrowRight)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:$,column:k,$index:V}){var z;const j=k.property,oe=j&&getProp($,j).value;return k&&k.formatter?k.formatter($,k,oe,V):((z=oe==null?void 0:oe.toString)==null?void 0:z.call(oe))||""}function treeCellPrefix({row:$,treeNode:k,store:V},z=!1){const{ns:j}=V;if(!k)return z?[h$2("span",{class:j.e("placeholder")})]:null;const oe=[],re=function(ie){ie.stopPropagation(),V.loadOrToggle($)};if(k.indent&&oe.push(h$2("span",{class:j.e("indent"),style:{"padding-left":`${k.indent}px`}})),typeof k.expanded=="boolean"&&!k.noLazyChildren){const ie=[j.e("expand-icon"),k.expanded?j.em("expand-icon","expanded"):""];let ae=arrowRight;k.loading&&(ae=loading$1),oe.push(h$2("div",{class:ie,onClick:re},{default:()=>[h$2(ElIcon,{class:{[j.is("loading")]:k.loading}},{default:()=>[h$2(ae)]})]}))}else oe.push(h$2("span",{class:j.e("placeholder")}));return oe}function getAllAliases($,k){return $.reduce((V,z)=>(V[z]=z,V),k)}function useWatcher($,k){const V=getCurrentInstance();return{registerComplexWatchers:()=>{const oe=["fixed"],re={realWidth:"width",realMinWidth:"minWidth"},ie=getAllAliases(oe,re);Object.keys(ie).forEach(ae=>{const he=re[ae];hasOwn$2(k,he)&&watch$1(()=>k[he],le=>{let ue=le;he==="width"&&ae==="realWidth"&&(ue=parseWidth(le)),he==="minWidth"&&ae==="realMinWidth"&&(ue=parseMinWidth(le)),V.columnConfig.value[he]=ue,V.columnConfig.value[ae]=ue;const de=he==="fixed";$.value.store.scheduleLayout(de)})})},registerNormalWatchers:()=>{const oe=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],re={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},ie=getAllAliases(oe,re);Object.keys(ie).forEach(ae=>{const he=re[ae];hasOwn$2(k,he)&&watch$1(()=>k[he],le=>{V.columnConfig.value[ae]=le})})}}}function useRender($,k,V){const z=getCurrentInstance(),j=ref(""),oe=ref(!1),re=ref(),ie=ref(),ae=useNamespace("table");watchEffect(()=>{re.value=$.align?`is-${$.align}`:null,re.value}),watchEffect(()=>{ie.value=$.headerAlign?`is-${$.headerAlign}`:re.value,ie.value});const he=computed(()=>{let Et=z.vnode.vParent||z.parent;for(;Et&&!Et.tableId&&!Et.columnId;)Et=Et.vnode.vParent||Et.parent;return Et}),le=computed(()=>{const{store:Et}=z.parent;if(!Et)return!1;const{treeData:qe}=Et.states,Oe=qe.value;return Oe&&Object.keys(Oe).length>0}),ue=ref(parseWidth($.width)),de=ref(parseMinWidth($.minWidth)),pe=Et=>(ue.value&&(Et.width=ue.value),de.value&&(Et.minWidth=de.value),Et.minWidth||(Et.minWidth=80),Et.realWidth=Number(Et.width===void 0?Et.minWidth:Et.width),Et),$e=Et=>{const qe=Et.type,Oe=cellForced[qe]||{};Object.keys(Oe).forEach(Dt=>{const At=Oe[Dt];Dt!=="className"&&At!==void 0&&(Et[Dt]=At)});const Ue=getDefaultClassName(qe);if(Ue){const Dt=`${unref(ae.namespace)}-${Ue}`;Et.className=Et.className?`${Et.className} ${Dt}`:Dt}return Et},_e=Et=>{Array.isArray(Et)?Et.forEach(Oe=>qe(Oe)):qe(Et);function qe(Oe){var Ue;((Ue=Oe==null?void 0:Oe.type)==null?void 0:Ue.name)==="ElTableColumn"&&(Oe.vParent=z)}};return{columnId:j,realAlign:re,isSubColumn:oe,realHeaderAlign:ie,columnOrTableParent:he,setColumnWidth:pe,setColumnForcedProps:$e,setColumnRenders:Et=>{$.renderHeader||Et.type!=="selection"&&(Et.renderHeader=Ue=>{z.columnConfig.value.label;const Dt=k.header;return Dt?Dt(Ue):Et.label});let qe=Et.renderCell;const Oe=le.value;return Et.type==="expand"?(Et.renderCell=Ue=>h$2("div",{class:"cell"},[qe(Ue)]),V.value.renderExpanded=Ue=>k.default?k.default(Ue):k.default):(qe=qe||defaultRenderCell,Et.renderCell=Ue=>{let Dt=null;if(k.default){const Pt=k.default(Ue);Dt=Pt.some(jt=>jt.type!==Comment)?Pt:qe(Ue)}else Dt=qe(Ue);const At=Oe&&Ue.cellIndex===0,Lt=treeCellPrefix(Ue,At),kt={class:"cell",style:{}};return Et.showOverflowTooltip&&(kt.class=`${kt.class} ${unref(ae.namespace)}-tooltip`,kt.style={width:`${(Ue.column.realWidth||Number(Ue.column.width))-1}px`}),_e(Dt),h$2("div",kt,[Lt,Dt])}),Et},getPropsData:(...Et)=>Et.reduce((qe,Oe)=>(Array.isArray(Oe)&&Oe.forEach(Ue=>{qe[Ue]=$[Ue]}),qe),{}),getColumnElIndex:(Et,qe)=>Array.prototype.indexOf.call(Et,qe)}}var defaultProps={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:$=>$.every(k=>["ascending","descending",null].includes(k))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup($,{slots:k}){const V=getCurrentInstance(),z=ref({}),j=computed(()=>{let ze=V.parent;for(;ze&&!ze.tableId;)ze=ze.parent;return ze}),{registerNormalWatchers:oe,registerComplexWatchers:re}=useWatcher(j,$),{columnId:ie,isSubColumn:ae,realHeaderAlign:he,columnOrTableParent:le,setColumnWidth:ue,setColumnForcedProps:de,setColumnRenders:pe,getPropsData:$e,getColumnElIndex:_e,realAlign:Ce}=useRender($,k,j),Ie=le.value;ie.value=`${Ie.tableId||Ie.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{ae.value=j.value!==Ie;const ze=$.type||"default",Et=$.sortable===""?!0:$.sortable,qe=mo(oo({},cellStarts[ze]),{id:ie.value,type:ze,property:$.prop||$.property,align:Ce,headerAlign:he,showOverflowTooltip:$.showOverflowTooltip||$.showTooltipWhenOverflow,filterable:$.filters||$.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:Et,index:$.index,rawColumnKey:V.vnode.key});let Lt=$e(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);Lt=mergeOptions(qe,Lt),Lt=compose(pe,ue,de)(Lt),z.value=Lt,oe(),re()}),onMounted(()=>{var ze;const Et=le.value,qe=ae.value?Et.vnode.el.children:(ze=Et.refs.hiddenColumns)==null?void 0:ze.children,Oe=()=>_e(qe||[],V.vnode.el);z.value.getColumnIndex=Oe,Oe()>-1&&j.value.store.commit("insertColumn",z.value,ae.value?Et.columnConfig.value:null)}),onBeforeUnmount(()=>{j.value.store.commit("removeColumn",z.value,ae.value?Ie.columnConfig.value:null)}),V.columnId=ie.value,V.columnConfig=z},render(){var $,k,V;try{const z=(k=($=this.$slots).default)==null?void 0:k.call($,{row:{},column:{},$index:-1}),j=[];if(Array.isArray(z))for(const re of z)((V=re.type)==null?void 0:V.name)==="ElTableColumn"||re.shapeFlag&2?j.push(re):re.type===Fragment&&Array.isArray(re.children)&&re.children.forEach(ie=>{(ie==null?void 0:ie.patchFlag)!==1024&&!isString$3(ie==null?void 0:ie.children)&&j.push(ie)});return h$2("div",j)}catch{return h$2("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=($=>($.ASC="asc",$.DESC="desc",$))(SortOrder||{}),Alignment=($=>($.CENTER="center",$.RIGHT="right",$))(Alignment||{}),FixedDir=($=>($.LEFT="left",$.RIGHT="right",$))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=($,k,V)=>{var z;const j=oo({flexGrow:0,flexShrink:0},V?{}:{flexGrow:$.flexGrow||0,flexShrink:$.flexShrink||1});V||(j.flexShrink=1);const oe=mo(oo(oo({},(z=$.style)!=null?z:{}),j),{flexBasis:"auto",width:$.width});return k||($.maxWidth&&(oe.maxWidth=$.maxWidth),$.minWidth&&(oe.maxWidth=$.minWidth)),oe};function useColumns($,k,V){const z=computed(()=>unref(k).filter(_e=>!_e.hidden)),j=computed(()=>unref(z).filter(_e=>_e.fixed==="left"||_e.fixed===!0)),oe=computed(()=>unref(z).filter(_e=>_e.fixed==="right")),re=computed(()=>unref(z).filter(_e=>!_e.fixed)),ie=computed(()=>{const _e=[];return unref(j).forEach(Ce=>{_e.push(mo(oo({},Ce),{placeholderSign}))}),unref(re).forEach(Ce=>{_e.push(Ce)}),unref(oe).forEach(Ce=>{_e.push(mo(oo({},Ce),{placeholderSign}))}),_e}),ae=computed(()=>unref(j).length||unref(oe).length),he=computed(()=>unref(k).reduce((Ce,Ie)=>(Ce[Ie.key]=calcColumnStyle(Ie,unref(V),$.fixed),Ce),{})),le=computed(()=>unref(z).reduce((_e,Ce)=>_e+Ce.width,0)),ue=_e=>unref(k).find(Ce=>Ce.key===_e),de=_e=>unref(he)[_e],pe=(_e,Ce)=>{_e.width=Ce};function $e(_e){var Ce;const{key:Ie}=_e.currentTarget.dataset;if(!Ie)return;const{sortState:ze,sortBy:Et}=$;let qe=SortOrder.ASC;isObject$5(ze)?qe=oppositeOrderMap[ze[Ie]]:qe=oppositeOrderMap[Et.order],(Ce=$.onColumnSort)==null||Ce.call($,{column:ue(Ie),key:Ie,order:qe})}return{columns:k,columnsStyles:he,columnsTotalWidth:le,fixedColumnsOnLeft:j,fixedColumnsOnRight:oe,hasFixedColumns:ae,mainColumns:ie,normalColumns:re,visibleColumns:z,getColumn:ue,getColumnStyle:de,updateColumnWidth:pe,onColumnSorted:$e}}const useScrollbar=($,{mainTableRef:k,leftTableRef:V,rightTableRef:z,onMaybeEndReached:j})=>{const oe=ref({scrollLeft:0,scrollTop:0});function re(pe){var $e,_e,Ce;const{scrollTop:Ie}=pe;($e=k.value)==null||$e.scrollTo(pe),(_e=V.value)==null||_e.scrollToTop(Ie),(Ce=z.value)==null||Ce.scrollToTop(Ie)}function ie(pe){oe.value=pe,re(pe)}function ae(pe){oe.value.scrollTop=pe,re(unref(oe))}function he(pe){var $e,_e;oe.value.scrollLeft=pe,(_e=($e=k.value)==null?void 0:$e.scrollTo)==null||_e.call($e,unref(oe))}function le(pe){var $e;ie(pe),($e=$.onScroll)==null||$e.call($,pe)}function ue({scrollTop:pe}){const{scrollTop:$e}=unref(oe);pe!==$e&&ae(pe)}function de(pe,$e="auto"){var _e;(_e=k.value)==null||_e.scrollToRow(pe,$e)}return watch$1(()=>unref(oe).scrollTop,(pe,$e)=>{pe>$e&&j()}),{scrollPos:oe,scrollTo:ie,scrollToLeft:he,scrollToTop:ae,scrollToRow:de,onScroll:le,onVerticalScroll:ue}},useRow=($,{mainTableRef:k,leftTableRef:V,rightTableRef:z,onMaybeEndReached:j})=>{const oe=getCurrentInstance(),{emit:re}=oe,ie=shallowRef(!1),ae=shallowRef(null),he=ref($.defaultExpandedRowKeys||[]),le=ref(-1),ue=shallowRef(null),de=ref({}),pe=ref({}),$e=shallowRef({}),_e=shallowRef({}),Ce=shallowRef({}),Ie=computed(()=>isNumber$1($.estimatedRowHeight));function ze(Lt){var kt;(kt=$.onRowsRendered)==null||kt.call($,Lt),Lt.rowCacheEnd>unref(le)&&(le.value=Lt.rowCacheEnd)}function Et({hovered:Lt,rowKey:kt}){ae.value=Lt?kt:null}function qe({expanded:Lt,rowData:kt,rowIndex:Pt,rowKey:jt}){var vn,$n;const wn=[...unref(he)],_n=wn.indexOf(jt);Lt?_n===-1&&wn.push(jt):_n>-1&&wn.splice(_n,1),he.value=wn,re("update:expandedRowKeys",wn),(vn=$.onRowExpand)==null||vn.call($,{expanded:Lt,rowData:kt,rowIndex:Pt,rowKey:jt}),($n=$.onExpandedRowsChange)==null||$n.call($,wn)}const Oe=debounce(()=>{var Lt,kt,Pt,jt;ie.value=!0,de.value=oo(oo({},unref(de)),unref(pe)),Ue(unref(ue),!1),pe.value={},ue.value=null,(Lt=k.value)==null||Lt.forceUpdate(),(kt=V.value)==null||kt.forceUpdate(),(Pt=z.value)==null||Pt.forceUpdate(),(jt=oe.proxy)==null||jt.$forceUpdate(),ie.value=!1},0);function Ue(Lt,kt=!1){!unref(Ie)||[k,V,z].forEach(Pt=>{const jt=unref(Pt);jt&&jt.resetAfterRowIndex(Lt,kt)})}function Dt(Lt,kt,Pt){const jt=unref(ue);(jt===null||jt>Pt)&&(ue.value=Pt),pe.value[Lt]=kt}function At({rowKey:Lt,height:kt,rowIndex:Pt},jt){jt?jt===FixedDir.RIGHT?Ce.value[Lt]=kt:$e.value[Lt]=kt:_e.value[Lt]=kt;const vn=Math.max(...[$e,Ce,_e].map($n=>$n.value[Lt]||0));unref(de)[Lt]!==vn&&(Dt(Lt,vn,Pt),Oe())}return watch$1(le,()=>j()),{hoveringRowKey:ae,expandedRowKeys:he,lastRenderedRowIndex:le,isDynamic:Ie,isResetting:ie,rowHeights:de,resetAfterIndex:Ue,onRowExpanded:qe,onRowHovered:Et,onRowsRendered:ze,onRowHeightChange:At}},useData=($,{expandedRowKeys:k,lastRenderedRowIndex:V,resetAfterIndex:z})=>{const j=ref({}),oe=computed(()=>{const ie={},{data:ae,rowKey:he}=$,le=unref(k);if(!le||!le.length)return ae;const ue=[],de=new Set;le.forEach($e=>de.add($e));let pe=ae.slice();for(pe.forEach($e=>ie[$e[he]]=0);pe.length>0;){const $e=pe.shift();ue.push($e),de.has($e[he])&&Array.isArray($e.children)&&$e.children.length>0&&(pe=[...$e.children,...pe],$e.children.forEach(_e=>ie[_e[he]]=ie[$e[he]]+1))}return j.value=ie,ue}),re=computed(()=>{const{data:ie,expandColumnKey:ae}=$;return ae?unref(oe):ie});return watch$1(re,(ie,ae)=>{ie!==ae&&(V.value=-1,z(0,!0))}),{data:re,depthMap:j}},sumReducer=($,k)=>$+k,sum=$=>isArray$4($)?$.reduce(sumReducer,0):$,tryCall=($,k,V={})=>isFunction$3($)?$(k):$!=null?$:V,enforceUnit=$=>(["width","maxWidth","minWidth","height"].forEach(k=>{$[k]=addUnit($[k])}),$),componentToSlot=$=>isVNode($)?k=>h$2($,k):$,useStyles=($,{columnsTotalWidth:k,data:V,fixedColumnsOnLeft:z,fixedColumnsOnRight:j})=>{const oe=computed(()=>{const{fixed:Et,width:qe,vScrollbarSize:Oe}=$,Ue=qe-Oe;return Et?Math.max(Math.round(unref(k)),Ue):Ue}),re=computed(()=>unref(oe)+($.fixed?$.vScrollbarSize:0)),ie=computed(()=>{const{height:Et=0,maxHeight:qe=0,footerHeight:Oe,hScrollbarSize:Ue}=$;if(qe>0){const Dt=unref($e),At=unref(ae),kt=unref(pe)+Dt+At+Ue;return Math.min(kt,qe-Oe)}return Et-Oe}),ae=computed(()=>{const{rowHeight:Et,estimatedRowHeight:qe}=$,Oe=unref(V);return isNumber$1(qe)?Oe.length*qe:Oe.length*Et}),he=computed(()=>{const{maxHeight:Et}=$,qe=unref(ie);if(isNumber$1(Et)&&Et>0)return qe;const Oe=unref(ae)+unref(pe)+unref($e);return Math.min(qe,Oe)}),le=Et=>Et.width,ue=computed(()=>sum(unref(z).map(le))),de=computed(()=>sum(unref(j).map(le))),pe=computed(()=>sum($.headerHeight)),$e=computed(()=>{var Et;return(((Et=$.fixedData)==null?void 0:Et.length)||0)*$.rowHeight}),_e=computed(()=>unref(ie)-unref(pe)-unref($e)),Ce=computed(()=>{const{style:Et={},height:qe,width:Oe}=$;return enforceUnit(mo(oo({},Et),{height:qe,width:Oe}))}),Ie=computed(()=>enforceUnit({height:$.footerHeight})),ze=computed(()=>({top:addUnit(unref(pe)),bottom:addUnit($.footerHeight),width:addUnit($.width)}));return{bodyWidth:oe,fixedTableHeight:he,mainTableHeight:ie,leftTableWidth:ue,rightTableWidth:de,headerWidth:re,rowsHeight:ae,windowHeight:_e,footerHeight:Ie,emptyStyle:ze,rootStyle:Ce}},useAutoResize=$=>{const k=ref(),V=ref(0),z=ref(0);let j;return onMounted(()=>{j=useResizeObserver(k,([oe])=>{const{width:re,height:ie}=oe.contentRect,{paddingLeft:ae,paddingRight:he,paddingTop:le,paddingBottom:ue}=getComputedStyle(oe.target),de=Number.parseInt(ae)||0,pe=Number.parseInt(he)||0,$e=Number.parseInt(le)||0,_e=Number.parseInt(ue)||0;V.value=re-de-pe,z.value=ie-$e-_e}).stop}),onBeforeUnmount(()=>{j==null||j()}),watch$1([V,z],([oe,re])=>{var ie;(ie=$.onResize)==null||ie.call($,{width:oe,height:re})}),{sizer:k,width:V,height:z}};function useTable($){const k=ref(),V=ref(),z=ref(),{columns:j,columnsStyles:oe,columnsTotalWidth:re,fixedColumnsOnLeft:ie,fixedColumnsOnRight:ae,hasFixedColumns:he,mainColumns:le,onColumnSorted:ue}=useColumns($,toRef($,"columns"),toRef($,"fixed")),{scrollTo:de,scrollToLeft:pe,scrollToTop:$e,scrollToRow:_e,onScroll:Ce,onVerticalScroll:Ie,scrollPos:ze}=useScrollbar($,{mainTableRef:k,leftTableRef:V,rightTableRef:z,onMaybeEndReached:Pn}),{expandedRowKeys:Et,hoveringRowKey:qe,lastRenderedRowIndex:Oe,isDynamic:Ue,isResetting:Dt,rowHeights:At,resetAfterIndex:Lt,onRowExpanded:kt,onRowHeightChange:Pt,onRowHovered:jt,onRowsRendered:vn}=useRow($,{mainTableRef:k,leftTableRef:V,rightTableRef:z,onMaybeEndReached:Pn}),{data:$n,depthMap:wn}=useData($,{expandedRowKeys:Et,lastRenderedRowIndex:Oe,resetAfterIndex:Lt}),{bodyWidth:_n,fixedTableHeight:En,mainTableHeight:Sn,leftTableWidth:An,rightTableWidth:Cn,headerWidth:Tn,rowsHeight:Nn,windowHeight:xn,footerHeight:On,emptyStyle:Ln,rootStyle:Bn}=useStyles($,{columnsTotalWidth:re,data:$n,fixedColumnsOnLeft:ie,fixedColumnsOnRight:ae}),Vn=shallowRef(!1),Fn=ref(),zn=computed(()=>{const Hn=unref($n).length===0;return isArray$4($.fixedData)?$.fixedData.length===0&&Hn:Hn});function Xn(Hn){const{estimatedRowHeight:eo,rowHeight:Qn,rowKey:ao}=$;return eo?unref(At)[unref($n)[Hn][ao]]||eo:Qn}function Pn(){const{onEndReached:Hn}=$;if(!Hn)return;const{scrollTop:eo}=unref(ze),Qn=unref(Nn),ao=unref(xn),ho=Qn-(eo+ao)+$.hScrollbarSize;unref(Oe)>=0&&Qn!==unref(Nn)&&Hn(ho)}return watch$1(()=>$.expandedRowKeys,Hn=>Et.value=Hn,{deep:!0}),{columns:j,containerRef:Fn,mainTableRef:k,leftTableRef:V,rightTableRef:z,isDynamic:Ue,isResetting:Dt,isScrolling:Vn,hoveringRowKey:qe,hasFixedColumns:he,columnsStyles:oe,columnsTotalWidth:re,data:$n,expandedRowKeys:Et,depthMap:wn,fixedColumnsOnLeft:ie,fixedColumnsOnRight:ae,mainColumns:le,bodyWidth:_n,emptyStyle:Ln,rootStyle:Bn,headerWidth:Tn,footerHeight:On,mainTableHeight:Sn,fixedTableHeight:En,leftTableWidth:An,rightTableWidth:Cn,showEmpty:zn,getRowHeight:Xn,onColumnSorted:ue,onRowHovered:jt,onRowExpanded:kt,onRowsRendered:vn,onRowHeightChange:Pt,scrollTo:de,scrollToLeft:pe,scrollToTop:$e,scrollToRow:_e,onScroll:Ce,onVerticalScroll:Ie}}const TableV2InjectionKey=Symbol("tableV2"),classType=String,columns={type:definePropType(Array),required:!0},fixedDataType={type:definePropType(Array)},dataType=mo(oo({},fixedDataType),{required:!0}),expandColumnKey=String,expandKeys={type:definePropType(Array),default:()=>mutable([])},requiredNumber={type:Number,required:!0},rowKey={type:definePropType([String,Number,Symbol]),default:"id"},styleType={type:definePropType(Object)},tableV2RowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},depth:Number,expandColumnKey,estimatedRowHeight:mo(oo({},virtualizedGridProps.estimatedRowHeight),{default:void 0}),isScrolling:Boolean,onRowExpand:{type:definePropType(Function)},onRowHover:{type:definePropType(Function)},onRowHeightChange:{type:definePropType(Function)},rowData:{type:definePropType(Object),required:!0},rowEventHandlers:{type:definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey,style:{type:definePropType(Object)}}),requiredNumberType={type:Number,required:!0},tableV2HeaderProps=buildProps({class:String,columns,fixedHeaderData:{type:definePropType(Array)},headerData:{type:definePropType(Array),required:!0},headerHeight:{type:definePropType([Number,Array]),default:50},rowWidth:requiredNumberType,rowHeight:{type:Number,default:50},height:requiredNumberType,width:requiredNumberType}),tableV2GridProps=buildProps({columns,data:dataType,fixedData:fixedDataType,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,width:requiredNumber,height:requiredNumber,headerWidth:requiredNumber,headerHeight:tableV2HeaderProps.headerHeight,bodyWidth:requiredNumber,rowHeight:requiredNumber,cache:virtualizedListProps.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:virtualizedGridProps.scrollbarAlwaysOn,scrollbarStartGap:virtualizedGridProps.scrollbarStartGap,scrollbarEndGap:virtualizedGridProps.scrollbarEndGap,class:classType,style:styleType,containerStyle:styleType,getRowHeight:{type:definePropType(Function),required:!0},rowKey:tableV2RowProps.rowKey,onRowsRendered:{type:definePropType(Function)},onScroll:{type:definePropType(Function)}}),tableV2Props=buildProps({cache:tableV2GridProps.cache,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,rowKey,headerClass:{type:definePropType([String,Function])},headerProps:{type:definePropType([Object,Function])},headerCellProps:{type:definePropType([Object,Function])},headerHeight:tableV2HeaderProps.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:definePropType([String,Function])},rowProps:{type:definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:definePropType([Object,Function])},columns,data:dataType,dataGetter:{type:definePropType(Function)},fixedData:fixedDataType,expandColumnKey:tableV2RowProps.expandColumnKey,expandedRowKeys:expandKeys,defaultExpandedRowKeys:expandKeys,class:classType,fixed:Boolean,style:{type:definePropType(Object)},width:requiredNumber,height:requiredNumber,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:virtualizedGridProps.hScrollbarSize,vScrollbarSize:virtualizedGridProps.vScrollbarSize,scrollbarAlwaysOn:virtualizedScrollbarProps.alwaysOn,sortBy:{type:definePropType(Object),default:()=>({})},sortState:{type:definePropType(Object),default:void 0},onColumnSort:{type:definePropType(Function)},onExpandedRowsChange:{type:definePropType(Function)},onEndReached:{type:definePropType(Function)},onRowExpand:tableV2RowProps.onRowExpand,onScroll:tableV2GridProps.onScroll,onRowsRendered:tableV2GridProps.onRowsRendered,rowEventHandlers:tableV2RowProps.rowEventHandlers}),TableV2Cell=($,{slots:k})=>{var V;const{cellData:z,style:j}=$,oe=((V=z==null?void 0:z.toString)==null?void 0:V.call(z))||"";return createVNode("div",{class:$.class,title:oe,style:j},[k.default?k.default($):oe])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=($,{slots:k})=>{var V,z;return k.default?k.default($):createVNode("div",{class:$.class,title:(V=$.column)==null?void 0:V.title},[(z=$.column)==null?void 0:z.title])};HeaderCell.displayName="ElTableV2HeaderCell";HeaderCell.inheritAttrs=!1;const tableV2HeaderRowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},headerIndex:Number,style:{type:definePropType(Object)}}),TableV2HeaderRow=defineComponent({name:"ElTableV2HeaderRow",props:tableV2HeaderRowProps,setup($,{slots:k}){return()=>{const{columns:V,columnsStyles:z,headerIndex:j,style:oe}=$;let re=V.map((ie,ae)=>k.cell({columns:V,column:ie,columnIndex:ae,headerIndex:j,style:z[ie.key]}));return k.header&&(re=k.header({cells:re.map(ie=>isArray$4(ie)&&ie.length===1?ie[0]:ie),columns:V,headerIndex:j})),createVNode("div",{class:$.class,style:oe},[re])}}}),COMPONENT_NAME$4="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$4,props:tableV2HeaderProps,setup($,{slots:k,expose:V}){const z=useNamespace("table-v2"),j=ref(),oe=computed(()=>enforceUnit({width:$.width,height:$.height})),re=computed(()=>enforceUnit({width:$.rowWidth,height:$.height})),ie=computed(()=>castArray$1(unref($.headerHeight))),ae=ue=>{const de=unref(j);nextTick(()=>{de==null||de.scroll({left:ue})})},he=()=>{const ue=z.e("fixed-header-row"),{columns:de,fixedHeaderData:pe,rowHeight:$e}=$;return pe==null?void 0:pe.map((_e,Ce)=>{var Ie;const ze=enforceUnit({height:$e,width:"100%"});return(Ie=k.fixed)==null?void 0:Ie.call(k,{class:ue,columns:de,rowData:_e,rowIndex:-(Ce+1),style:ze})})},le=()=>{const ue=z.e("dynamic-header-row"),{columns:de}=$;return unref(ie).map((pe,$e)=>{var _e;const Ce=enforceUnit({width:"100%",height:pe});return(_e=k.dynamic)==null?void 0:_e.call(k,{class:ue,columns:de,headerIndex:$e,style:Ce})})};return V({scrollToLeft:ae}),()=>{if(!($.height<=0))return createVNode("div",{ref:j,class:$.class,style:unref(oe)},[createVNode("div",{style:unref(re),class:z.e("header")},[le(),he()])])}}}),useTableRow=$=>{const{isScrolling:k}=inject(TableV2InjectionKey),V=ref(!1),z=ref(),j=computed(()=>isNumber$1($.estimatedRowHeight)&&$.rowIndex>=0),oe=(ae=!1)=>{const he=unref(z);if(!he)return;const{columns:le,onRowHeightChange:ue,rowKey:de,rowIndex:pe,style:$e}=$,{height:_e}=he.getBoundingClientRect();V.value=!0,nextTick(()=>{if(ae||_e!==Number.parseInt($e.height)){const Ce=le[0],Ie=(Ce==null?void 0:Ce.placeholderSign)===placeholderSign;ue==null||ue({rowKey:de,height:_e,rowIndex:pe},Ce&&!Ie&&Ce.fixed)}})},re=computed(()=>{const{rowData:ae,rowIndex:he,rowKey:le,onRowHover:ue}=$,de=$.rowEventHandlers||{},pe={};return Object.entries(de).forEach(([$e,_e])=>{isFunction$3(_e)&&(pe[$e]=Ce=>{_e({event:Ce,rowData:ae,rowIndex:he,rowKey:le})})}),ue&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:$e,hovered:_e})=>{const Ce=pe[$e];pe[$e]=Ie=>{ue({event:Ie,hovered:_e,rowData:ae,rowIndex:he,rowKey:le}),Ce==null||Ce(Ie)}}),pe}),ie=ae=>{const{onRowExpand:he,rowData:le,rowIndex:ue,rowKey:de}=$;he==null||he({expanded:ae,rowData:le,rowIndex:ue,rowKey:de})};return onMounted(()=>{unref(j)&&oe(!0)}),{isScrolling:k,measurable:j,measured:V,rowRef:z,eventHandlers:re,onExpand:ie}},COMPONENT_NAME$3="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$3,props:tableV2RowProps,setup($,{expose:k,slots:V,attrs:z}){const{eventHandlers:j,isScrolling:oe,measurable:re,measured:ie,rowRef:ae,onExpand:he}=useTableRow($);return k({onExpand:he}),()=>{const{columns:le,columnsStyles:ue,expandColumnKey:de,depth:pe,rowData:$e,rowIndex:_e,style:Ce}=$;let Ie=le.map((Et,qe)=>{const Oe=isArray$4($e.children)&&$e.children.length>0&&Et.key===de;return V.cell({column:Et,columns:le,columnIndex:qe,depth:pe,style:ue[Et.key],rowData:$e,rowIndex:_e,isScrolling:unref(oe),expandIconProps:Oe?{rowData:$e,rowIndex:_e,onExpand:he}:void 0})});if(V.row&&(Ie=V.row({cells:Ie.map(Et=>isArray$4(Et)&&Et.length===1?Et[0]:Et),style:Ce,columns:le,depth:pe,rowData:$e,rowIndex:_e,isScrolling:unref(oe)})),unref(re)){const ze=Ce||{},{height:Et}=ze,qe=Zo(ze,["height"]),Oe=unref(ie);return createVNode("div",mergeProps({ref:ae,class:$.class,style:Oe?Ce:qe},z,unref(j)),[Ie])}return createVNode("div",mergeProps(z,{ref:ae,class:$.class,style:Ce},unref(j)),[Ie])}}}),SortIcon=$=>{const{sortOrder:k}=$;return createVNode(ElIcon,{size:14,class:$.class},{default:()=>[k===SortOrder.ASC?createVNode(sortUp,null,null):createVNode(sortDown,null,null)]})},ExpandIcon=$=>{const{expanded:k,expandable:V,onExpand:z,style:j,size:oe}=$,re={onClick:V?()=>z(!k):void 0,class:$.class};return createVNode(ElIcon,mergeProps(re,{size:oe,style:j}),{default:()=>[createVNode(arrowRight,null,null)]})},COMPONENT_NAME$2="ElTableV2Grid",useTableGrid=$=>{const k=ref(),V=ref(),z=computed(()=>{const{data:_e,rowHeight:Ce,estimatedRowHeight:Ie}=$;if(!Ie)return _e.length*Ce}),j=computed(()=>{const{fixedData:_e,rowHeight:Ce}=$;return((_e==null?void 0:_e.length)||0)*Ce}),oe=computed(()=>sum($.headerHeight)),re=computed(()=>{const{height:_e}=$;return Math.max(0,_e-unref(oe)-unref(j))}),ie=computed(()=>unref(oe)+unref(j)>0),ae=({data:_e,rowIndex:Ce})=>_e[Ce][$.rowKey];function he({rowCacheStart:_e,rowCacheEnd:Ce,rowVisibleStart:Ie,rowVisibleEnd:ze}){var Et;(Et=$.onRowsRendered)==null||Et.call($,{rowCacheStart:_e,rowCacheEnd:Ce,rowVisibleStart:Ie,rowVisibleEnd:ze})}function le(_e,Ce){var Ie;(Ie=V.value)==null||Ie.resetAfterRowIndex(_e,Ce)}function ue(_e,Ce){const Ie=unref(k),ze=unref(V);!Ie||!ze||(isObject$5(_e)?(Ie.scrollToLeft(_e.scrollLeft),ze.scrollTo(_e)):(Ie.scrollToLeft(_e),ze.scrollTo({scrollLeft:_e,scrollTop:Ce})))}function de(_e){var Ce;(Ce=unref(V))==null||Ce.scrollTo({scrollTop:_e})}function pe(_e,Ce){var Ie;(Ie=unref(V))==null||Ie.scrollToItem(_e,1,Ce)}function $e(){var _e,Ce;(_e=unref(V))==null||_e.$forceUpdate(),(Ce=unref(k))==null||Ce.$forceUpdate()}return{bodyRef:V,forceUpdate:$e,fixedRowHeight:j,gridHeight:re,hasHeader:ie,headerHeight:oe,headerRef:k,totalHeight:z,itemKey:ae,onItemRendered:he,resetAfterRowIndex:le,scrollTo:ue,scrollToTop:de,scrollToRow:pe}},TableGrid=defineComponent({name:COMPONENT_NAME$2,props:tableV2GridProps,setup($,{slots:k,expose:V}){const{ns:z}=inject(TableV2InjectionKey),{bodyRef:j,fixedRowHeight:oe,gridHeight:re,hasHeader:ie,headerRef:ae,headerHeight:he,totalHeight:le,forceUpdate:ue,itemKey:de,onItemRendered:pe,resetAfterRowIndex:$e,scrollTo:_e,scrollToTop:Ce,scrollToRow:Ie}=useTableGrid($);V({forceUpdate:ue,totalHeight:le,scrollTo:_e,scrollToTop:Ce,scrollToRow:Ie,resetAfterRowIndex:$e});const ze=()=>$.bodyWidth;return()=>{const{cache:Et,columns:qe,data:Oe,fixedData:Ue,useIsScrolling:Dt,scrollbarAlwaysOn:At,scrollbarEndGap:Lt,scrollbarStartGap:kt,style:Pt,rowHeight:jt,bodyWidth:vn,estimatedRowHeight:$n,headerWidth:wn,height:_n,width:En,getRowHeight:Sn,onScroll:An}=$,Cn=isNumber$1($n),Tn=Cn?DynamicSizeGrid:FixedSizeGrid,Nn=unref(he);return createVNode("div",{role:"table",class:[z.e("table"),$.class],style:Pt},[createVNode(Tn,{ref:j,data:Oe,useIsScrolling:Dt,itemKey:de,columnCache:0,columnWidth:Cn?ze:vn,totalColumn:1,totalRow:Oe.length,rowCache:Et,rowHeight:Cn?Sn:jt,width:En,height:unref(re),class:z.e("body"),scrollbarStartGap:kt,scrollbarEndGap:Lt,scrollbarAlwaysOn:At,onScroll:An,onItemRendered:pe,perfMode:!1},{default:xn=>{var On;const Ln=Oe[xn.rowIndex];return(On=k.row)==null?void 0:On.call(k,mo(oo({},xn),{columns:qe,rowData:Ln}))}}),unref(ie)&&createVNode(TableV2Header,{ref:ae,class:z.e("header-wrapper"),columns:qe,headerData:Oe,headerHeight:$.headerHeight,fixedHeaderData:Ue,rowWidth:wn,rowHeight:jt,width:En,height:Math.min(Nn+unref(oe),_n)},{dynamic:k.header,fixed:k.row})])}}});function _isSlot$5($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode($)}const MainTable=($,{slots:k})=>{const j=$,{mainTableRef:V}=j,z=Zo(j,["mainTableRef"]);return createVNode(TableGrid,mergeProps({ref:V},z),_isSlot$5(k)?k:{default:()=>[k]})};function _isSlot$4($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode($)}const LeftTable$1=($,{slots:k})=>{if(!$.columns.length)return;const j=$,{leftTableRef:V}=j,z=Zo(j,["leftTableRef"]);return createVNode(TableGrid,mergeProps({ref:V},z),_isSlot$4(k)?k:{default:()=>[k]})};function _isSlot$3($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode($)}const LeftTable=($,{slots:k})=>{if(!$.columns.length)return;const j=$,{rightTableRef:V}=j,z=Zo(j,["rightTableRef"]);return createVNode(TableGrid,mergeProps({ref:V},z),_isSlot$3(k)?k:{default:()=>[k]})};function _isSlot$2($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode($)}const RowRenderer=($,{slots:k})=>{const{columns:V,columnsStyles:z,depthMap:j,expandColumnKey:oe,expandedRowKeys:re,estimatedRowHeight:ie,hasFixedColumns:ae,hoveringRowKey:he,rowData:le,rowIndex:ue,style:de,isScrolling:pe,rowProps:$e,rowClass:_e,rowKey:Ce,rowEventHandlers:Ie,ns:ze,onRowHovered:Et,onRowExpanded:qe}=$,Oe=tryCall(_e,{columns:V,rowData:le,rowIndex:ue},""),Ue=tryCall($e,{columns:V,rowData:le,rowIndex:ue}),Dt=le[Ce],At=j[Dt]||0,Lt=Boolean(oe),kt=ue<0,Pt=[ze.e("row"),Oe,{[ze.e(`row-depth-${At}`)]:Lt&&ue>=0,[ze.is("expanded")]:Lt&&re.includes(Dt),[ze.is("hovered")]:!pe&&Dt===he,[ze.is("fixed")]:!At&&kt,[ze.is("customized")]:Boolean(k.row)}],jt=ae?Et:void 0,vn=mo(oo({},Ue),{columns:V,columnsStyles:z,class:Pt,depth:At,expandColumnKey:oe,estimatedRowHeight:kt?void 0:ie,isScrolling:pe,rowIndex:ue,rowData:le,rowKey:Dt,rowEventHandlers:Ie,style:de});return createVNode(TableV2Row,mergeProps(vn,{onRowHover:jt,onRowExpand:qe}),_isSlot$2(k)?k:{default:()=>[k]})},CellRenderer=({columns:$,column:k,columnIndex:V,depth:z,expandIconProps:j,isScrolling:oe,rowData:re,rowIndex:ie,style:ae,expandedRowKeys:he,ns:le,cellProps:ue,expandColumnKey:de,indentSize:pe,iconSize:$e,rowKey:_e},{slots:Ce})=>{const Ie=enforceUnit(ae);if(k.placeholderSign===placeholderSign)return createVNode("div",{class:le.em("row-cell","placeholder"),style:Ie},null);const{cellRenderer:ze,dataKey:Et,dataGetter:qe}=k,Ue=componentToSlot(ze)||Ce.default||(_n=>createVNode(TableV2Cell,_n,null)),Dt=isFunction$3(qe)?qe({columns:$,column:k,columnIndex:V,rowData:re,rowIndex:ie}):get(re,Et!=null?Et:""),At=tryCall(ue,{cellData:Dt,columns:$,column:k,columnIndex:V,rowIndex:ie,rowData:re}),Lt={class:le.e("cell-text"),columns:$,column:k,columnIndex:V,cellData:Dt,isScrolling:oe,rowData:re,rowIndex:ie},kt=Ue(Lt),Pt=[le.e("row-cell"),k.align===Alignment.CENTER&&le.is("align-center"),k.align===Alignment.RIGHT&&le.is("align-right")],jt=ie>=0&&k.key===de,vn=ie>=0&&he.includes(re[_e]);let $n;const wn=`margin-inline-start: ${z*pe}px;`;return jt&&(isObject$5(j)?$n=createVNode(ExpandIcon,mergeProps(j,{class:[le.e("expand-icon"),le.is("expanded",vn)],size:$e,expanded:vn,style:wn,expandable:!0}),null):$n=createVNode("div",{style:[wn,`width: ${$e}px; height: ${$e}px;`].join(" ")},null)),createVNode("div",mergeProps({class:Pt,style:Ie},At),[$n,kt])};CellRenderer.inheritAttrs=!1;function _isSlot$1($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode($)}const HeaderRenderer=({columns:$,columnsStyles:k,headerIndex:V,style:z,headerClass:j,headerProps:oe,ns:re},{slots:ie})=>{const ae={columns:$,headerIndex:V},he=[re.e("header-row"),tryCall(j,ae,""),{[re.is("customized")]:Boolean(ie.header)}],le=mo(oo({},tryCall(oe,ae)),{columnsStyles:k,class:he,columns:$,headerIndex:V,style:z});return createVNode(TableV2HeaderRow,le,_isSlot$1(ie)?ie:{default:()=>[ie]})},HeaderCellRenderer=($,{slots:k})=>{const{column:V,ns:z,style:j,onColumnSorted:oe}=$,re=enforceUnit(j);if(V.placeholderSign===placeholderSign)return createVNode("div",{class:z.em("header-row-cell","placeholder"),style:re},null);const{headerCellRenderer:ie,headerClass:ae,sortable:he}=V,le=mo(oo({},$),{class:z.e("header-cell-text")}),de=(componentToSlot(ie)||k.default||(qe=>createVNode(HeaderCell,qe,null)))(le),{sortBy:pe,sortState:$e,headerCellProps:_e}=$;let Ce,Ie;if($e){const qe=$e[V.key];Ce=Boolean(oppositeOrderMap[qe]),Ie=Ce?qe:SortOrder.ASC}else Ce=V.key===pe.key,Ie=Ce?pe.order:SortOrder.ASC;const ze=[z.e("header-cell"),...tryCall(ae,$,""),V.align===Alignment.CENTER&&z.is("align-center"),V.align===Alignment.RIGHT&&z.is("align-right"),he&&z.is("sortable")],Et=mo(oo({},tryCall(_e,$)),{onClick:V.sortable?oe:void 0,class:ze,style:re,["data-key"]:V.key});return createVNode("div",Et,[de,he&&createVNode(SortIcon,{class:[z.e("sort-icon"),Ce&&z.is("sorting")],sortOrder:Ie},null)])},Footer$1=($,{slots:k})=>{var V;return createVNode("div",{class:$.class,style:$.style},[(V=k.default)==null?void 0:V.call(k)])};Footer$1.displayName="ElTableV2Footer";const Footer=($,{slots:k})=>createVNode("div",{class:$.class,style:$.style},[k.default?k.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=($,{slots:k})=>{var V;return createVNode("div",{class:$.class,style:$.style},[(V=k.default)==null?void 0:V.call(k)])};Overlay.displayName="ElTableV2Overlay";function _isSlot($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode($)}const COMPONENT_NAME$1="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$1,props:tableV2Props,setup($,{slots:k,expose:V}){const z=useNamespace("table-v2"),{columnsStyles:j,fixedColumnsOnLeft:oe,fixedColumnsOnRight:re,mainColumns:ie,mainTableHeight:ae,fixedTableHeight:he,leftTableWidth:le,rightTableWidth:ue,data:de,depthMap:pe,expandedRowKeys:$e,hasFixedColumns:_e,hoveringRowKey:Ce,mainTableRef:Ie,leftTableRef:ze,rightTableRef:Et,isDynamic:qe,isResetting:Oe,isScrolling:Ue,bodyWidth:Dt,emptyStyle:At,rootStyle:Lt,headerWidth:kt,footerHeight:Pt,showEmpty:jt,scrollTo:vn,scrollToLeft:$n,scrollToTop:wn,scrollToRow:_n,getRowHeight:En,onColumnSorted:Sn,onRowHeightChange:An,onRowHovered:Cn,onRowExpanded:Tn,onRowsRendered:Nn,onScroll:xn,onVerticalScroll:On}=useTable($);return V({scrollTo:vn,scrollToLeft:$n,scrollToTop:wn,scrollToRow:_n}),provide(TableV2InjectionKey,{ns:z,isResetting:Oe,hoveringRowKey:Ce,isScrolling:Ue}),()=>{const{cache:Ln,cellProps:Bn,estimatedRowHeight:Vn,expandColumnKey:Fn,fixedData:zn,headerHeight:Xn,headerClass:Pn,headerProps:Hn,headerCellProps:eo,sortBy:Qn,sortState:ao,rowHeight:ho,rowClass:uo,rowEventHandlers:Un,rowKey:Zn,rowProps:no,scrollbarAlwaysOn:qn,indentSize:In,iconSize:jn,useIsScrolling:Kn,vScrollbarSize:so,width:ro}=$,vo=unref(de),go={cache:Ln,class:z.e("main"),columns:unref(ie),data:vo,fixedData:zn,estimatedRowHeight:Vn,bodyWidth:unref(Dt),headerHeight:Xn,headerWidth:unref(kt),height:unref(ae),mainTableRef:Ie,rowKey:Zn,rowHeight:ho,scrollbarAlwaysOn:qn,scrollbarStartGap:2,scrollbarEndGap:so,useIsScrolling:Kn,width:ro,getRowHeight:En,onRowsRendered:Nn,onScroll:xn},Dn=unref(le),Yn=unref(he),Gn={cache:Ln,class:z.e("left"),columns:unref(oe),data:vo,estimatedRowHeight:Vn,leftTableRef:ze,rowHeight:ho,bodyWidth:Dn,headerWidth:Dn,headerHeight:Xn,height:Yn,rowKey:Zn,scrollbarAlwaysOn:qn,scrollbarStartGap:2,scrollbarEndGap:so,useIsScrolling:Kn,width:Dn,getRowHeight:En,onScroll:On},fo=unref(ue)+so,wo={cache:Ln,class:z.e("right"),columns:unref(re),data:vo,estimatedRowHeight:Vn,rightTableRef:Et,rowHeight:ho,bodyWidth:fo,headerWidth:fo,headerHeight:Xn,height:Yn,rowKey:Zn,scrollbarAlwaysOn:qn,scrollbarStartGap:2,scrollbarEndGap:so,width:fo,style:`--${unref(z.namespace)}-table-scrollbar-size: ${so}px`,useIsScrolling:Kn,getRowHeight:En,onScroll:On},Co=unref(j),_o={ns:z,depthMap:unref(pe),columnsStyles:Co,expandColumnKey:Fn,expandedRowKeys:unref($e),estimatedRowHeight:Vn,hasFixedColumns:unref(_e),hoveringRowKey:unref(Ce),rowProps:no,rowClass:uo,rowKey:Zn,rowEventHandlers:Un,onRowHovered:Cn,onRowExpanded:Tn,onRowHeightChange:An},Ao={cellProps:Bn,expandColumnKey:Fn,indentSize:In,iconSize:jn,rowKey:Zn,expandedRowKeys:unref($e),ns:z},$o={ns:z,headerClass:Pn,headerProps:Hn,columnsStyles:Co},ko={ns:z,sortBy:Qn,sortState:ao,headerCellProps:eo,onColumnSorted:Sn},xo={row:Eo=>createVNode(RowRenderer,mergeProps(Eo,_o),{row:k.row,cell:To=>k.cell?createVNode(CellRenderer,mergeProps(To,Ao,{style:Co[To.column.key]}),{default:()=>[k.cell]}):createVNode(CellRenderer,mergeProps(To,Ao,{style:Co[To.column.key]}),null)}),header:Eo=>createVNode(HeaderRenderer,mergeProps(Eo,$o),{header:k.header,cell:To=>k["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(To,ko,{style:Co[To.column.key]}),{default:()=>[k["header-cell"]]}):createVNode(HeaderCellRenderer,mergeProps(To,ko,{style:Co[To.column.key]}),null)})},No=[$.class,z.b(),z.e("root"),{[z.is("dynamic")]:unref(qe)}],co={class:z.e("footer"),style:unref(Pt)};return createVNode("div",{class:No,style:unref(Lt)},[createVNode(MainTable,go,_isSlot(xo)?xo:{default:()=>[xo]}),createVNode(LeftTable$1,Gn,_isSlot(xo)?xo:{default:()=>[xo]}),createVNode(LeftTable,wo,_isSlot(xo)?xo:{default:()=>[xo]}),k.footer&&createVNode(Footer$1,co,{default:k.footer}),unref(jt)&&createVNode(Footer,{class:z.e("empty"),style:unref(At)},{default:k.empty}),k.overlay&&createVNode(Overlay,{class:z.e("overlay")},{default:k.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup($,{slots:k}){const V=useNamespace("auto-resizer"),{height:z,width:j,sizer:oe}=useAutoResize($),re={width:"100%",height:"100%"};return()=>{var ie;return createVNode("div",{ref:oe,class:V.b(),style:re},[(ie=k.default)==null?void 0:ie.call(k,{height:z.value,width:j.value})])}}}),ElTableV2=withInstall(TableV2),ElAutoResizer=withInstall(AutoResizer),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])}}),__default__$a={name:"ElTabBar"},_sfc_main$s=defineComponent(mo(oo({},__default__$a),{props:tabBarProps,setup($,{expose:k}){const V=$,z="ElTabBar",j=getCurrentInstance(),oe=inject(tabsRootContextKey);oe||throwError(z,"");const re=useNamespace("tabs"),ie=ref(),ae=ref(),he=()=>{let ue=0,de=0;const pe=["top","bottom"].includes(oe.props.tabPosition)?"width":"height",$e=pe==="width"?"x":"y";return V.tabs.every(_e=>{var Ce,Ie,ze,Et;const qe=(Ie=(Ce=j.parent)==null?void 0:Ce.refs)==null?void 0:Ie[`tab-${_e.paneName}`];if(!qe)return!1;if(!_e.active)return!0;de=qe[`client${capitalize(pe)}`];const Oe=$e==="x"?"left":"top";ue=qe.getBoundingClientRect()[Oe]-((Et=(ze=qe.parentElement)==null?void 0:ze.getBoundingClientRect()[Oe])!=null?Et:0);const Ue=window.getComputedStyle(qe);return pe==="width"&&(V.tabs.length>1&&(de-=Number.parseFloat(Ue.paddingLeft)+Number.parseFloat(Ue.paddingRight)),ue+=Number.parseFloat(Ue.paddingLeft)),!1}),{[pe]:`${de}px`,transform:`translate${capitalize($e)}(${ue}px)`}},le=()=>ae.value=he();return watch$1(()=>V.tabs,async()=>{await nextTick(),le()},{immediate:!0}),useResizeObserver(ie,()=>le()),k({ref:ie,update:le}),(ue,de)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:ie,class:normalizeClass([unref(re).e("active-bar"),unref(re).is(unref(oe).props.tabPosition)]),style:normalizeStyle(ae.value)},null,6))}}));var TabBar=_export_sfc$1(_sfc_main$s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const tabNavProps=buildProps({panes:{type:definePropType(Array),default:()=>mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:definePropType(Function),default:NOOP},onTabRemove:{type:definePropType(Function),default:NOOP},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),COMPONENT_NAME="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME,props:tabNavProps,setup($,{expose:k}){const V=getCurrentInstance(),z=inject(tabsRootContextKey);z||throwError(COMPONENT_NAME,"");const j=useNamespace("tabs"),oe=useDocumentVisibility(),re=useWindowFocus(),ie=ref(),ae=ref(),he=ref(),le=ref(!1),ue=ref(0),de=ref(!1),pe=ref(!0),$e=computed(()=>["top","bottom"].includes(z.props.tabPosition)?"width":"height"),_e=computed(()=>({transform:`translate${$e.value==="width"?"X":"Y"}(-${ue.value}px)`})),Ce=()=>{if(!ie.value)return;const Dt=ie.value[`offset${capitalize($e.value)}`],At=ue.value;if(!At)return;const Lt=At>Dt?At-Dt:0;ue.value=Lt},Ie=()=>{if(!ie.value||!ae.value)return;const Dt=ae.value[`offset${capitalize($e.value)}`],At=ie.value[`offset${capitalize($e.value)}`],Lt=ue.value;if(Dt-Lt<=At)return;const kt=Dt-Lt>At*2?Lt+At:Dt-At;ue.value=kt},ze=()=>{const Dt=ae.value;if(!le.value||!he.value||!ie.value||!Dt)return;const At=he.value.querySelector(".is-active");if(!At)return;const Lt=ie.value,kt=["top","bottom"].includes(z.props.tabPosition),Pt=At.getBoundingClientRect(),jt=Lt.getBoundingClientRect(),vn=kt?Dt.offsetWidth-jt.width:Dt.offsetHeight-jt.height,$n=ue.value;let wn=$n;kt?(Pt.leftjt.right&&(wn=$n+Pt.right-jt.right)):(Pt.topjt.bottom&&(wn=$n+(Pt.bottom-jt.bottom))),wn=Math.max(wn,0),ue.value=Math.min(wn,vn)},Et=()=>{if(!ae.value||!ie.value)return;const Dt=ae.value[`offset${capitalize($e.value)}`],At=ie.value[`offset${capitalize($e.value)}`],Lt=ue.value;if(At0&&(ue.value=0)},qe=Dt=>{const At=Dt.code,{up:Lt,down:kt,left:Pt,right:jt}=EVENT_CODE;if(![Lt,kt,Pt,jt].includes(At))return;const vn=Array.from(Dt.currentTarget.querySelectorAll("[role=tab]")),$n=vn.indexOf(Dt.target);let wn;At===Pt||At===Lt?$n===0?wn=vn.length-1:wn=$n-1:$n{pe.value&&(de.value=!0)},Ue=()=>de.value=!1;return watch$1(oe,Dt=>{Dt==="hidden"?pe.value=!1:Dt==="visible"&&setTimeout(()=>pe.value=!0,50)}),watch$1(re,Dt=>{Dt?setTimeout(()=>pe.value=!0,50):pe.value=!1}),useResizeObserver(he,Et),onMounted(()=>setTimeout(()=>ze(),0)),onUpdated(()=>Et()),k({scrollToActiveTab:ze,removeFocus:Ue}),watch$1(()=>$.panes,()=>V.update(),{flush:"post"}),()=>{const Dt=le.value?[createVNode("span",{class:[j.e("nav-prev"),j.is("disabled",!le.value.prev)],onClick:Ce},[createVNode(ElIcon,null,{default:()=>[createVNode(arrowLeft,null,null)]})]),createVNode("span",{class:[j.e("nav-next"),j.is("disabled",!le.value.next)],onClick:Ie},[createVNode(ElIcon,null,{default:()=>[createVNode(arrowRight,null,null)]})])]:null,At=$.panes.map((Lt,kt)=>{var Pt,jt;const vn=Lt.props.name||Lt.index||`${kt}`,$n=Lt.isClosable||$.editable;Lt.index=`${kt}`;const wn=$n?createVNode(ElIcon,{class:"is-icon-close",onClick:Sn=>$.onTabRemove(Lt,Sn)},{default:()=>[createVNode(close$2,null,null)]}):null,_n=((jt=(Pt=Lt.slots).label)==null?void 0:jt.call(Pt))||Lt.props.label,En=Lt.active?0:-1;return createVNode("div",{ref:`tab-${vn}`,class:[j.e("item"),j.is(z.props.tabPosition),j.is("active",Lt.active),j.is("disabled",Lt.props.disabled),j.is("closable",$n),j.is("focus",de.value)],id:`tab-${vn}`,key:`tab-${vn}`,"aria-controls":`pane-${vn}`,role:"tab","aria-selected":Lt.active,tabindex:En,onFocus:()=>Oe(),onBlur:()=>Ue(),onClick:Sn=>{Ue(),$.onTabClick(Lt,vn,Sn)},onKeydown:Sn=>{$n&&(Sn.code===EVENT_CODE.delete||Sn.code===EVENT_CODE.backspace)&&$.onTabRemove(Lt,Sn)}},[_n,wn])});return createVNode("div",{ref:he,class:[j.e("nav-wrap"),j.is("scrollable",!!le.value),j.is(z.props.tabPosition)]},[Dt,createVNode("div",{class:j.e("nav-scroll"),ref:ie},[createVNode("div",{class:[j.e("nav"),j.is(z.props.tabPosition),j.is("stretch",$.stretch&&["top","bottom"].includes(z.props.tabPosition))],ref:ae,style:_e.value,role:"tablist",onKeydown:qe},[$.type?null:createVNode(TabBar,{tabs:[...$.panes]},null),At])])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number],default:""},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean}),isPanelName=$=>isString$3($)||isNumber$1($),tabsEmits={[UPDATE_MODEL_EVENT]:$=>isPanelName($),"tab-click":($,k)=>k instanceof Event,"tab-change":$=>isPanelName($),edit:($,k)=>["remove","add"].includes(k),"tab-remove":$=>isPanelName($),"tab-add":()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup($,{emit:k,slots:V,expose:z}){const j=useNamespace("tabs"),oe=ref(),re=reactive({}),ie=ref($.modelValue||$.activeName||"0"),ae=pe=>{ie.value=pe,k(UPDATE_MODEL_EVENT,pe),k("tab-change",pe)},he=async pe=>{var $e,_e,Ce;if(ie.value!==pe)try{await(($e=$.beforeLeave)==null?void 0:$e.call($,pe,ie.value))!==!1&&(ae(pe),(Ce=(_e=oe.value)==null?void 0:_e.removeFocus)==null||Ce.call(_e))}catch{}},le=(pe,$e,_e)=>{pe.props.disabled||(he($e),k("tab-click",pe,_e))},ue=(pe,$e)=>{pe.props.disabled||($e.stopPropagation(),k("edit",pe.props.name,"remove"),k("tab-remove",pe.props.name))},de=()=>{k("edit",void 0,"add"),k("tab-add")};return watch$1(()=>$.activeName,pe=>he(pe)),watch$1(()=>$.modelValue,pe=>he(pe)),watch$1(ie,async()=>{var pe;(pe=oe.value)==null||pe.scrollToActiveTab()}),provide(tabsRootContextKey,{props:$,currentName:ie,registerPane:_e=>re[_e.uid]=_e,unregisterPane:_e=>delete re[_e]}),z({currentName:ie}),()=>{const pe=$.editable||$.addable?createVNode("span",{class:j.e("new-tab"),tabindex:"0",onClick:de,onKeydown:Ce=>{Ce.code===EVENT_CODE.enter&&de()}},[createVNode(ElIcon,{class:j.is("icon-plus")},{default:()=>[createVNode(plus,null,null)]})]):null,$e=createVNode("div",{class:[j.e("header"),j.is($.tabPosition)]},[pe,createVNode(TabNav,{ref:oe,currentName:ie.value,editable:$.editable,type:$.type,panes:Object.values(re),stretch:$.stretch,onTabClick:le,onTabRemove:ue},null)]),_e=createVNode("div",{class:j.e("content")},[renderSlot(V,"default")]);return createVNode("div",{class:[j.b(),j.m($.tabPosition),{[j.m("card")]:$.type==="card",[j.m("border-card")]:$.type==="border-card"}]},[...$.tabPosition!=="bottom"?[$e,_e]:[_e,$e]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number],default:""},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$e=["id","aria-hidden","aria-labelledby"],__default__$9={name:"ElTabPane"},_sfc_main$r=defineComponent(mo(oo({},__default__$9),{props:tabPaneProps,setup($){const k=$,V="ElTabPane",z=getCurrentInstance(),j=useSlots(),oe=inject(tabsRootContextKey);oe||throwError(V,"usage: ");const re=useNamespace("tab-pane"),ie=ref(),ae=computed(()=>k.closable||oe.props.closable),he=computedEager(()=>oe.currentName.value===(k.name||ie.value)),le=ref(he.value),ue=computed(()=>k.name||ie.value),de=computedEager(()=>!k.lazy||le.value||he.value);watch$1(he,$e=>{$e&&(le.value=!0)});const pe=reactive({uid:z.uid,slots:j,props:k,paneName:ue,active:he,index:ie,isClosable:ae});return onMounted(()=>{oe.registerPane(pe)}),onUnmounted(()=>{oe.unregisterPane(pe.uid)}),($e,_e)=>unref(de)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(ue)}`,class:normalizeClass(unref(re).b()),role:"tabpanel","aria-hidden":!unref(he),"aria-labelledby":`tab-${unref(ue)}`},[renderSlot($e.$slots,"default")],10,_hoisted_1$e)),[[vShow,unref(he)]]):createCommentVNode("v-if",!0)}}));var TabPane=_export_sfc$1(_sfc_main$r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const ElTabs=withInstall(Tabs,{TabPane}),ElTabPane=withNoopInstall(TabPane);dayjs.extend(customParseFormat);const{Option:ElOption}=ElSelect,parseTime=$=>{const k=($||"").split(":");if(k.length>=2){let V=Number.parseInt(k[0],10);const z=Number.parseInt(k[1],10),j=$.toUpperCase();return j.includes("AM")&&V===12?V=0:j.includes("PM")&&V!==12&&(V+=12),{hours:V,minutes:z}}return null},compareTime=($,k)=>{const V=parseTime($),z=parseTime(k),j=V.minutes+V.hours*60,oe=z.minutes+z.hours*60;return j===oe?0:j>oe?1:-1},padTime=$=>`${$}`.padStart(2,"0"),formatTime=$=>`${padTime($.hours)}:${padTime($.minutes)}`,nextTime=($,k)=>{const V=parseTime($),z=parseTime(k),j={hours:V.hours,minutes:V.minutes};return j.minutes+=z.minutes,j.hours+=z.hours,j.hours+=Math.floor(j.minutes/60),j.minutes=j.minutes%60,formatTime(j)},_sfc_main$q=defineComponent({name:"ElTimeSelect",components:{ElSelect,ElOption,ElIcon},model:{prop:"value",event:"change"},props:{format:{type:String,default:"HH:mm"},modelValue:String,disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:{type:String,values:componentSizes,default:""},placeholder:{type:String,default:""},start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:String,default:""},maxTime:{type:String,default:""},name:{type:String,default:""},prefixIcon:{type:[String,Object],default:clock},clearIcon:{type:[String,Object],default:circleClose}},emits:["change","blur","focus","update:modelValue"],setup($){const k=useNamespace("input"),V=ref(null),z=computed(()=>$.modelValue),j=computed(()=>{const de=parseTime($.start);return formatTime(de)}),oe=computed(()=>{const de=parseTime($.end);return formatTime(de)}),re=computed(()=>{const de=parseTime($.step);return formatTime(de)}),ie=computed(()=>{const de=parseTime($.minTime);return de?formatTime(de):null}),ae=computed(()=>{const de=parseTime($.maxTime);return de?formatTime(de):null}),he=computed(()=>{const de=[];if($.start&&$.end&&$.step){let pe=j.value,$e;for(;compareTime(pe,oe.value)<=0;)$e=dayjs(pe,"HH:mm").format($.format),de.push({value:$e,disabled:compareTime(pe,ie.value||"-1:-1")<=0||compareTime(pe,ae.value||"100:100")>=0}),pe=nextTime(pe,re.value)}return de});return{nsInput:k,select:V,value:z,items:he,blur:()=>{var de,pe;(pe=(de=V.value)==null?void 0:de.blur)==null||pe.call(de)},focus:()=>{var de,pe;(pe=(de=V.value)==null?void 0:de.focus)==null||pe.call(de)}}}});function _sfc_render$f($,k,V,z,j,oe){const re=resolveComponent("el-option"),ie=resolveComponent("el-icon"),ae=resolveComponent("el-select");return openBlock(),createBlock(ae,{ref:"select","model-value":$.value,disabled:$.disabled,clearable:$.clearable,"clear-icon":$.clearIcon,size:$.size,effect:$.effect,placeholder:$.placeholder,"default-first-option":"",filterable:$.editable,"onUpdate:modelValue":k[0]||(k[0]=he=>$.$emit("update:modelValue",he)),onChange:k[1]||(k[1]=he=>$.$emit("change",he)),onBlur:k[2]||(k[2]=he=>$.$emit("blur",he)),onFocus:k[3]||(k[3]=he=>$.$emit("focus",he))},{prefix:withCtx(()=>[$.prefixIcon?(openBlock(),createBlock(ie,{key:0,class:normalizeClass($.nsInput.e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.items,he=>(openBlock(),createBlock(re,{key:he.value,label:he.value,value:he.value,disabled:he.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"])}var TimeSelect=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=$=>{$.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup($,{slots:k}){const V=useNamespace("timeline");return provide("timeline",k),()=>h$2("ul",{class:[V.b()]},[renderSlot(k,"default")])}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:{type:String,default:""},color:{type:String,default:""},size:{type:String,default:"normal"},icon:{type:iconPropType,default:""},hollow:{type:Boolean,default:!1}}),_sfc_main$p=defineComponent({name:"ElTimelineItem",components:{ElIcon},props:timelineItemProps,setup(){return{ns:useNamespace("timeline-item")}}});function _sfc_render$e($,k,V,z,j,oe){const re=resolveComponent("el-icon");return openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.b(),{[$.ns.e("center")]:$.center}])},[createBaseVNode("div",{class:normalizeClass($.ns.e("tail"))},null,2),$.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([$.ns.e("node"),$.ns.em("node",$.size||""),$.ns.em("node",$.type||""),$.ns.is("hollow",$.hollow)]),style:normalizeStyle({backgroundColor:$.color})},[$.icon?(openBlock(),createBlock(re,{key:0,class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),$.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("dot"))},[renderSlot($.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.e("wrapper"))},[!$.hideTimestamp&&$.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([$.ns.e("timestamp"),$.ns.is("top")])},toDisplayString$1($.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[renderSlot($.$slots,"default")],2),!$.hideTimestamp&&$.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([$.ns.e("timestamp"),$.ns.is("bottom")])},toDisplayString$1($.timestamp),3)):createCommentVNode("v-if",!0)],2)],2)}var TimelineItem=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),tooltipV2CommonProps=buildProps({nowrap:Boolean});var TooltipV2Sides=($=>($.top="top",$.bottom="bottom",$.left="left",$.right="right",$))(TooltipV2Sides||{});const tooltipV2Sides=Object.values(TooltipV2Sides),tooltipV2ArrowProps=buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:definePropType(Object),default:null}}),tooltipV2ArrowSpecialProps=buildProps({side:{type:definePropType(String),values:tooltipV2Sides,required:!0}}),tooltipV2Strategies=["absolute","fixed"],tooltipV2Placements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tooltipV2ContentProps=buildProps({ariaLabel:String,arrowPadding:{type:definePropType(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:definePropType(String),values:tooltipV2Placements,default:"bottom"},reference:{type:definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:definePropType(String),values:tooltipV2Strategies,default:"absolute"},showArrow:{type:Boolean,default:!1}}),tooltipV2RootProps=buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:definePropType(Function)},"onUpdate:open":{type:definePropType(Function)}}),EventHandler={type:definePropType(Function)},tooltipV2TriggerProps=buildProps({onBlur:EventHandler,onClick:EventHandler,onFocus:EventHandler,onMouseDown:EventHandler,onMouseEnter:EventHandler,onMouseLeave:EventHandler}),tooltipV2Props=buildProps(mo(oo(oo(oo(oo({},tooltipV2RootProps),tooltipV2ArrowProps),tooltipV2TriggerProps),tooltipV2ContentProps),{alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:definePropType(Object),default:null},teleported:Boolean,to:{type:definePropType(String),default:"body"}})),__default__$8={name:"ElTooltipV2Root"},_sfc_main$o=defineComponent(mo(oo({},__default__$8),{props:tooltipV2RootProps,setup($,{expose:k}){const V=$,z=ref(V.defaultOpen),j=ref(null),oe=computed({get:()=>isPropAbsent(V.open)?z.value:V.open,set:Ce=>{var Ie;z.value=Ce,(Ie=V["onUpdate:open"])==null||Ie.call(V,Ce)}}),re=computed(()=>isNumber$1(V.delayDuration)&&V.delayDuration>0),{start:ie,stop:ae}=useTimeoutFn(()=>{oe.value=!0},computed(()=>V.delayDuration),{immediate:!1}),he=useNamespace("tooltip-v2"),le=useId(),ue=()=>{ae(),oe.value=!0},de=()=>{unref(re)?ie():ue()},pe=ue,$e=()=>{ae(),oe.value=!1};return watch$1(oe,Ce=>{var Ie;Ce&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),pe()),(Ie=V.onOpenChange)==null||Ie.call(V,Ce)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,$e)}),onBeforeUnmount(()=>{ae(),document.removeEventListener(TOOLTIP_V2_OPEN,$e)}),provide(tooltipV2RootKey,{contentId:le,triggerRef:j,ns:he,onClose:$e,onDelayOpen:de,onOpen:pe}),k({onOpen:pe,onClose:$e}),(Ce,Ie)=>renderSlot(Ce.$slots,"default",{open:unref(oe)})}}));var TooltipV2Root=_export_sfc$1(_sfc_main$o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$7={name:"ElTooltipV2Arrow"},_sfc_main$n=defineComponent(mo(oo({},__default__$7),{props:oo(oo({},tooltipV2ArrowProps),tooltipV2ArrowSpecialProps),setup($){const k=$,{ns:V}=inject(tooltipV2RootKey),{arrowRef:z}=inject(tooltipV2ContentKey),j=computed(()=>{const{style:oe,width:re,height:ie}=k,ae=V.namespace.value;return oo({[`--${ae}-tooltip-v2-arrow-width`]:`${re}px`,[`--${ae}-tooltip-v2-arrow-height`]:`${ie}px`,[`--${ae}-tooltip-v2-arrow-border-width`]:`${re/2}px`,[`--${ae}-tooltip-v2-arrow-cover-width`]:re/2-1},oe||{})});return(oe,re)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:z,style:normalizeStyle(unref(j)),class:normalizeClass(unref(V).e("arrow"))},null,6))}}));var TooltipV2Arrow=_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const _hoisted_1$d=["data-side"],__default__$6={name:"ElTooltipV2Content"},_sfc_main$m=defineComponent(mo(oo({},__default__$6),{props:oo(oo({},tooltipV2ContentProps),tooltipV2CommonProps),setup($){const k=$,{triggerRef:V,contentId:z}=inject(tooltipV2RootKey),j=ref(k.placement),oe=ref(k.strategy),re=ref(null),{referenceRef:ie,contentRef:ae,middlewareData:he,x:le,y:ue,update:de}=useFloating({placement:j,strategy:oe,middleware:computed(()=>{const Et=[T$2(k.offset)];return k.showArrow&&Et.push(arrowMiddleware({arrowRef:re})),Et})}),pe=useZIndex().nextZIndex(),$e=useNamespace("tooltip-v2"),_e=computed(()=>j.value.split("-")[0]),Ce=computed(()=>({position:unref(oe),top:`${unref(ue)||0}px`,left:`${unref(le)||0}px`,zIndex:pe})),Ie=computed(()=>{if(!k.showArrow)return{};const{arrow:Et}=unref(he);return{[`--${$e.namespace.value}-tooltip-v2-arrow-x`]:`${Et==null?void 0:Et.x}px`||"",[`--${$e.namespace.value}-tooltip-v2-arrow-y`]:`${Et==null?void 0:Et.y}px`||""}}),ze=computed(()=>[$e.e("content"),$e.is("dark",k.effect==="dark"),$e.is(unref(oe)),k.contentClass]);return watch$1(re,()=>de()),watch$1(()=>k.placement,Et=>j.value=Et),onMounted(()=>{watch$1(()=>k.reference||V.value,Et=>{ie.value=Et||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:re}),(Et,qe)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:ae,style:normalizeStyle(unref(Ce)),"data-tooltip-v2-root":""},[Et.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(_e),class:normalizeClass(unref(ze))},[renderSlot(Et.$slots,"default",{contentStyle:unref(Ce),contentClass:unref(ze)}),createVNode(unref(ElVisuallyHidden),{id:unref(z),role:"tooltip"},{default:withCtx(()=>[Et.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(Et.ariaLabel),1)],2112)):renderSlot(Et.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(Et.$slots,"arrow",{style:normalizeStyle(unref(Ie)),side:unref(_e)})],10,_hoisted_1$d))],4))}}));var TooltipV2Content=_export_sfc$1(_sfc_main$m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const forwardRefProps=buildProps({setRef:{type:definePropType(Function),required:!0},onlyChild:Boolean});var ForwardRef=defineComponent({props:forwardRefProps,setup($,{slots:k}){const V=ref(),z=composeRefs(V,j=>{j?$.setRef(j.nextElementSibling):$.setRef(null)});return()=>{var j;const[oe]=((j=k.default)==null?void 0:j.call(k))||[],re=$.onlyChild?ensureOnlyChild(oe.children):oe.children;return createVNode(Fragment,{ref:z},[re])}}});const __default__$5={name:"ElTooltipV2Trigger"},_sfc_main$l=defineComponent(mo(oo({},__default__$5),{props:oo(oo({},tooltipV2CommonProps),tooltipV2TriggerProps),setup($){const k=$,{onClose:V,onOpen:z,onDelayOpen:j,triggerRef:oe,contentId:re}=inject(tooltipV2RootKey);let ie=!1;const ae=ze=>{oe.value=ze},he=()=>{ie=!1},le=composeEventHandlers(k.onMouseEnter,j),ue=composeEventHandlers(k.onMouseLeave,V),de=composeEventHandlers(k.onMouseDown,()=>{V(),ie=!0,document.addEventListener("mouseup",he,{once:!0})}),pe=composeEventHandlers(k.onFocus,()=>{ie||z()}),$e=composeEventHandlers(k.onBlur,V),_e=composeEventHandlers(k.onClick,ze=>{ze.detail===0&&V()}),Ce={blur:$e,click:_e,focus:pe,mousedown:de,mouseenter:le,mouseleave:ue},Ie=(ze,Et,qe)=>{ze&&Object.entries(Et).forEach(([Oe,Ue])=>{ze[qe](Oe,Ue)})};return watch$1(oe,(ze,Et)=>{Ie(ze,Ce,"addEventListener"),Ie(Et,Ce,"removeEventListener"),ze&&ze.setAttribute("aria-describedby",re.value)}),onBeforeUnmount(()=>{Ie(oe.value,Ce,"removeEventListener"),document.removeEventListener("mouseup",he)}),(ze,Et)=>ze.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":ae,"only-child":""},{default:withCtx(()=>[renderSlot(ze.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:oe},ze.$attrs),[renderSlot(ze.$slots,"default")],16))}}));var TooltipV2Trigger=_export_sfc$1(_sfc_main$l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$4={name:"ElTooltipV2"},_sfc_main$k=defineComponent(mo(oo({},__default__$4),{props:tooltipV2Props,setup($){const V=toRefs($),z=reactive(pick$1(V,Object.keys(tooltipV2ArrowProps))),j=reactive(pick$1(V,Object.keys(tooltipV2ContentProps))),oe=reactive(pick$1(V,Object.keys(tooltipV2RootProps))),re=reactive(pick$1(V,Object.keys(tooltipV2TriggerProps)));return(ie,ae)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(unref(oe))),{default:withCtx(({open:he})=>[createVNode(TooltipV2Trigger,mergeProps(unref(re),{nowrap:""}),{default:withCtx(()=>[renderSlot(ie.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:ie.to,disabled:!ie.teleported},[ie.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},ie.transitionProps)),{default:withCtx(()=>[ie.alwaysOn||he?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},unref(j))),{arrow:withCtx(({style:le,side:ue})=>[ie.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},unref(z),{style:le,side:ue}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(ie.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[ie.alwaysOn||he?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},unref(j))),{arrow:withCtx(({style:le,side:ue})=>[ie.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},unref(z),{style:le,side:ue}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(ie.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],2112))],8,["to","disabled"]))]),_:3},16))}}));var TooltipV2=_export_sfc$1(_sfc_main$k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const ElTooltipV2=withInstall(TooltipV2),CHECKED_CHANGE_EVENT="checked-change",useCheckProps={data:{type:Array,default(){return[]}},optionRender:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},useCheck$1=($,k)=>{const{emit:V}=getCurrentInstance(),z=computed(()=>$.props.label||"label"),j=computed(()=>$.props.key||"key"),oe=computed(()=>$.props.disabled||"disabled"),re=computed(()=>$.data.filter(de=>typeof $.filterMethod=="function"?$.filterMethod(k.query,de):(de[z.value]||de[j.value].toString()).toLowerCase().includes(k.query.toLowerCase()))),ie=computed(()=>re.value.filter(de=>!de[oe.value])),ae=computed(()=>{const de=k.checked.length,pe=$.data.length,{noChecked:$e,hasChecked:_e}=$.format;return $e&&_e?de>0?_e.replace(/\${checked}/g,de.toString()).replace(/\${total}/g,pe.toString()):$e.replace(/\${total}/g,pe.toString()):`${de}/${pe}`}),he=computed(()=>{const de=k.checked.length;return de>0&&de{const de=ie.value.map(pe=>pe[j.value]);k.allChecked=de.length>0&&de.every(pe=>k.checked.includes(pe))},ue=de=>{k.checked=de?ie.value.map(pe=>pe[j.value]):[]};return watch$1(()=>k.checked,(de,pe)=>{if(le(),k.checkChangeByUser){const $e=de.concat(pe).filter(_e=>!de.includes(_e)||!pe.includes(_e));V(CHECKED_CHANGE_EVENT,de,$e)}else V(CHECKED_CHANGE_EVENT,de),k.checkChangeByUser=!0}),watch$1(ie,()=>{le()}),watch$1(()=>$.data,()=>{const de=[],pe=re.value.map($e=>$e[j.value]);k.checked.forEach($e=>{pe.includes($e)&&de.push($e)}),k.checkChangeByUser=!1,k.checked=de}),watch$1(()=>$.defaultChecked,(de,pe)=>{if(pe&&de.length===pe.length&&de.every(Ce=>pe.includes(Ce)))return;const $e=[],_e=ie.value.map(Ce=>Ce[j.value]);de.forEach(Ce=>{_e.includes(Ce)&&$e.push(Ce)}),k.checkChangeByUser=!1,k.checked=$e},{immediate:!0}),{labelProp:z,keyProp:j,disabledProp:oe,filteredData:re,checkableData:ie,checkedSummary:ae,isIndeterminate:he,updateAllChecked:le,handleAllCheckedChange:ue}},_sfc_main$j=defineComponent({name:"ElTransferPanel",components:{ElCheckboxGroup:ElCheckboxGroup$1,ElCheckbox,ElInput,OptionContent:({option:$})=>$},props:useCheckProps,emits:[CHECKED_CHANGE_EVENT],setup($,{slots:k}){const{t:V}=useLocale(),z=useNamespace("transfer"),j=reactive({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),{labelProp:oe,keyProp:re,disabledProp:ie,filteredData:ae,checkedSummary:he,isIndeterminate:le,handleAllCheckedChange:ue}=useCheck$1($,j),de=computed(()=>j.query.length>0&&ae.value.length===0),pe=computed(()=>!!k.default()[0].children.length),{checked:$e,allChecked:_e,query:Ce,inputHover:Ie,checkChangeByUser:ze}=toRefs(j);return{ns:z,labelProp:oe,keyProp:re,disabledProp:ie,filteredData:ae,checkedSummary:he,isIndeterminate:le,handleAllCheckedChange:ue,checked:$e,allChecked:_e,query:Ce,inputHover:Ie,checkChangeByUser:ze,hasNoMatch:de,SearchIcon:search,hasFooter:pe,t:V}}});function _sfc_render$d($,k,V,z,j,oe){const re=resolveComponent("el-checkbox"),ie=resolveComponent("el-input"),ae=resolveComponent("option-content"),he=resolveComponent("el-checkbox-group");return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b("panel"))},[createBaseVNode("p",{class:normalizeClass($.ns.be("panel","header"))},[createVNode(re,{modelValue:$.allChecked,"onUpdate:modelValue":k[0]||(k[0]=le=>$.allChecked=le),indeterminate:$.isIndeterminate,onChange:$.handleAllCheckedChange},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.title)+" ",1),createBaseVNode("span",null,toDisplayString$1($.checkedSummary),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([$.ns.be("panel","body"),$.ns.is("with-footer",$.hasFooter)])},[$.filterable?(openBlock(),createBlock(ie,{key:0,modelValue:$.query,"onUpdate:modelValue":k[1]||(k[1]=le=>$.query=le),class:normalizeClass($.ns.be("panel","filter")),size:"default",placeholder:$.placeholder,"prefix-icon":$.SearchIcon,clearable:"",onMouseenter:k[2]||(k[2]=le=>$.inputHover=!0),onMouseleave:k[3]||(k[3]=le=>$.inputHover=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode(he,{modelValue:$.checked,"onUpdate:modelValue":k[4]||(k[4]=le=>$.checked=le),class:normalizeClass([$.ns.is("filterable",$.filterable),$.ns.be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filteredData,le=>(openBlock(),createBlock(re,{key:le[$.keyProp],class:normalizeClass($.ns.be("panel","item")),label:le[$.keyProp],disabled:le[$.disabledProp]},{default:withCtx(()=>[createVNode(ae,{option:$.optionRender(le)},null,8,["option"])]),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!$.hasNoMatch&&$.data.length>0]]),withDirectives(createBaseVNode("p",{class:normalizeClass($.ns.be("panel","empty"))},toDisplayString$1($.hasNoMatch?$.t("el.transfer.noMatch"):$.t("el.transfer.noData")),3),[[vShow,$.hasNoMatch||$.data.length===0]])],2),$.hasFooter?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass($.ns.be("panel","footer"))},[renderSlot($.$slots,"default")],2)):createCommentVNode("v-if",!0)],2)}var TransferPanel=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const useComputedData=$=>{const k=computed(()=>$.props.key),V=computed(()=>$.data.reduce((oe,re)=>(oe[re[k.value]]=re)&&oe,{})),z=computed(()=>$.data.filter(oe=>!$.modelValue.includes(oe[k.value]))),j=computed(()=>$.targetOrder==="original"?$.data.filter(oe=>$.modelValue.includes(oe[k.value])):$.modelValue.reduce((oe,re)=>{const ie=V.value[re];return ie&&oe.push(ie),oe},[]));return{propsKey:k,sourceData:z,targetData:j}},LEFT_CHECK_CHANGE_EVENT="left-check-change",RIGHT_CHECK_CHANGE_EVENT="right-check-change",useCheckedChange=($,k)=>({onSourceCheckedChange:(j,oe)=>{$.leftChecked=j,oe!==void 0&&k(LEFT_CHECK_CHANGE_EVENT,j,oe)},onTargetCheckedChange:(j,oe)=>{$.rightChecked=j,oe!==void 0&&k(RIGHT_CHECK_CHANGE_EVENT,j,oe)}}),useMove=($,k,V,z)=>{const j=(ie,ae,he)=>{z(UPDATE_MODEL_EVENT,ie),z(CHANGE_EVENT,ie,ae,he)};return{addToLeft:()=>{const ie=$.modelValue.slice();k.rightChecked.forEach(ae=>{const he=ie.indexOf(ae);he>-1&&ie.splice(he,1)}),j(ie,"left",k.rightChecked)},addToRight:()=>{let ie=$.modelValue.slice();const ae=$.data.filter(he=>{const le=he[V.value];return k.leftChecked.includes(le)&&!$.modelValue.includes(le)}).map(he=>he[V.value]);ie=$.targetOrder==="unshift"?ae.concat(ie):ie.concat(ae),$.targetOrder==="original"&&(ie=$.data.filter(he=>ie.includes(he[V.value])).map(he=>he[V.value])),j(ie,"right",k.leftChecked)}}},_sfc_main$i=defineComponent({name:"ElTransfer",components:{TransferPanel,ElButton,ElIcon,ArrowLeft:arrowLeft,ArrowRight:arrowRight},props:{data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:Function,modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1},props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,default:"original",validator:$=>["original","push","unshift"].includes($)}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,LEFT_CHECK_CHANGE_EVENT,RIGHT_CHECK_CHANGE_EVENT],setup($,{emit:k,slots:V}){const{t:z}=useLocale(),j=useNamespace("transfer"),oe=inject(formItemContextKey,{}),re=reactive({leftChecked:[],rightChecked:[]}),{propsKey:ie,sourceData:ae,targetData:he}=useComputedData($),{onSourceCheckedChange:le,onTargetCheckedChange:ue}=useCheckedChange(re,k),{addToLeft:de,addToRight:pe}=useMove($,re,ie,k),$e=ref(),_e=ref(),Ce=Ue=>{switch(Ue){case"left":$e.value.query="";break;case"right":_e.value.query="";break}},Ie=computed(()=>$.buttonTexts.length===2),ze=computed(()=>$.titles[0]||z("el.transfer.titles.0")),Et=computed(()=>$.titles[1]||z("el.transfer.titles.1")),qe=computed(()=>$.filterPlaceholder||z("el.transfer.filterPlaceholder"));watch$1(()=>$.modelValue,()=>{var Ue;(Ue=oe.validate)==null||Ue.call(oe,"change").catch(Dt=>void 0)});const Oe=computed(()=>Ue=>$.renderContent?$.renderContent(h$2,Ue):V.default?V.default({option:Ue}):h$2("span",Ue[$.props.label]||Ue[$.props.key]));return mo(oo({ns:j,sourceData:ae,targetData:he,onSourceCheckedChange:le,onTargetCheckedChange:ue,addToLeft:de,addToRight:pe},toRefs(re)),{hasButtonTexts:Ie,leftPanelTitle:ze,rightPanelTitle:Et,panelFilterPlaceholder:qe,clearQuery:Ce,leftPanel:$e,rightPanel:_e,optionRender:Oe})}}),_hoisted_1$c={key:0},_hoisted_2$9={key:0};function _sfc_render$c($,k,V,z,j,oe){const re=resolveComponent("transfer-panel"),ie=resolveComponent("arrow-left"),ae=resolveComponent("el-icon"),he=resolveComponent("el-button"),le=resolveComponent("arrow-right");return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createVNode(re,{ref:"leftPanel",data:$.sourceData,"option-render":$.optionRender,placeholder:$.panelFilterPlaceholder,title:$.leftPanelTitle,filterable:$.filterable,format:$.format,"filter-method":$.filterMethod,"default-checked":$.leftDefaultChecked,props:$.props,onCheckedChange:$.onSourceCheckedChange},{default:withCtx(()=>[renderSlot($.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass($.ns.e("buttons"))},[createVNode(he,{type:"primary",class:normalizeClass([$.ns.e("button"),$.ns.is("with-texts",$.hasButtonTexts)]),disabled:$.rightChecked.length===0,onClick:$.addToLeft},{default:withCtx(()=>[createVNode(ae,null,{default:withCtx(()=>[createVNode(ie)]),_:1}),$.buttonTexts[0]!==void 0?(openBlock(),createElementBlock("span",_hoisted_1$c,toDisplayString$1($.buttonTexts[0]),1)):createCommentVNode("v-if",!0)]),_:1},8,["class","disabled","onClick"]),createVNode(he,{type:"primary",class:normalizeClass([$.ns.e("button"),$.ns.is("with-texts",$.hasButtonTexts)]),disabled:$.leftChecked.length===0,onClick:$.addToRight},{default:withCtx(()=>[$.buttonTexts[1]!==void 0?(openBlock(),createElementBlock("span",_hoisted_2$9,toDisplayString$1($.buttonTexts[1]),1)):createCommentVNode("v-if",!0),createVNode(ae,null,{default:withCtx(()=>[createVNode(le)]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode(re,{ref:"rightPanel",data:$.targetData,"option-render":$.optionRender,placeholder:$.panelFilterPlaceholder,filterable:$.filterable,format:$.format,"filter-method":$.filterMethod,title:$.rightPanelTitle,"default-checked":$.rightDefaultChecked,props:$.props,onCheckedChange:$.onTargetCheckedChange},{default:withCtx(()=>[renderSlot($.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2)}var Transfer=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/index.vue"]]);Transfer.install=$=>{$.component(Transfer.name,Transfer)};const _Transfer=Transfer,ElTransfer=_Transfer,NODE_KEY="$treeNodeId",markNodeData=function($,k){!k||k[NODE_KEY]||Object.defineProperty(k,NODE_KEY,{value:$.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function($,k){return $?k[$]:k[NODE_KEY]},getChildState=$=>{let k=!0,V=!0,z=!0;for(let j=0,oe=$.length;j0&&k.lazy&&k.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const z=k.defaultExpandedKeys,j=k.key;j&&z&&z.includes(this.key)&&this.expand(null,k.autoExpandParent),j&&k.currentNodeKey!==void 0&&this.key===k.currentNodeKey&&(k.currentNode=this,k.currentNode.isCurrent=!0),k.lazy&&k._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(k){Array.isArray(k)||markNodeData(this,k),this.data=k,this.childNodes=[];let V;this.level===0&&Array.isArray(this.data)?V=this.data:V=getPropertyFromData(this,"children")||[];for(let z=0,j=V.length;z-1)return k.childNodes[V+1]}return null}get previousSibling(){const k=this.parent;if(k){const V=k.childNodes.indexOf(this);if(V>-1)return V>0?k.childNodes[V-1]:null}return null}contains(k,V=!0){return(this.childNodes||[]).some(z=>z===k||V&&z.contains(k))}remove(){const k=this.parent;k&&k.removeChild(this)}insertChild(k,V,z){if(!k)throw new Error("InsertChild error: child is required.");if(!(k instanceof Node$1)){if(!z){const j=this.getChildren(!0);j.includes(k.data)||(typeof V=="undefined"||V<0?j.push(k.data):j.splice(V,0,k.data))}Object.assign(k,{parent:this,store:this.store}),k=reactive(new Node$1(k)),k instanceof Node$1&&k.initialize()}k.level=this.level+1,typeof V=="undefined"||V<0?this.childNodes.push(k):this.childNodes.splice(V,0,k),this.updateLeafState()}insertBefore(k,V){let z;V&&(z=this.childNodes.indexOf(V)),this.insertChild(k,z)}insertAfter(k,V){let z;V&&(z=this.childNodes.indexOf(V),z!==-1&&(z+=1)),this.insertChild(k,z)}removeChild(k){const V=this.getChildren()||[],z=V.indexOf(k.data);z>-1&&V.splice(z,1);const j=this.childNodes.indexOf(k);j>-1&&(this.store&&this.store.deregisterNode(k),k.parent=null,this.childNodes.splice(j,1)),this.updateLeafState()}removeChildByData(k){let V=null;for(let z=0;z{if(V){let j=this.parent;for(;j.level>0;)j.expanded=!0,j=j.parent}this.expanded=!0,k&&k(),this.childNodes.forEach(j=>{j.canFocus=!0})};this.shouldLoadData()?this.loadData(j=>{Array.isArray(j)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),z())}):z()}doCreateChildren(k,V={}){k.forEach(z=>{this.insertChild(Object.assign({data:z},V),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(k=>{k.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const k=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!k||k.length===0;return}this.isLeaf=!1}setChecked(k,V,z,j){if(this.indeterminate=k==="half",this.checked=k===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:re,allWithoutDisable:ie}=getChildState(this.childNodes);!this.isLeaf&&!re&&ie&&(this.checked=!1,k=!1);const ae=()=>{if(V){const he=this.childNodes;for(let de=0,pe=he.length;de{ae(),reInitChecked(this)},{checked:k!==!1});return}else ae()}const oe=this.parent;!oe||oe.level===0||z||reInitChecked(oe)}getChildren(k=!1){if(this.level===0)return this.data;const V=this.data;if(!V)return null;const z=this.store.props;let j="children";return z&&(j=z.children||"children"),V[j]===void 0&&(V[j]=null),k&&!V[j]&&(V[j]=[]),V[j]}updateChildren(){const k=this.getChildren()||[],V=this.childNodes.map(oe=>oe.data),z={},j=[];k.forEach((oe,re)=>{const ie=oe[NODE_KEY];!!ie&&V.findIndex(he=>he[NODE_KEY]===ie)>=0?z[ie]={index:re,data:oe}:j.push({index:re,data:oe})}),this.store.lazy||V.forEach(oe=>{z[oe[NODE_KEY]]||this.removeChildByData(oe)}),j.forEach(({index:oe,data:re})=>{this.insertChild({data:re},oe)}),this.updateLeafState()}loadData(k,V={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(V).length)){this.loading=!0;const z=j=>{this.loaded=!0,this.loading=!1,this.childNodes=[],this.doCreateChildren(j,V),this.updateLeafState(),k&&k.call(this,j)};this.store.load(this,z)}else k&&k.call(this)}}class TreeStore{constructor(k){this.currentNode=null,this.currentNodeKey=null;for(const V in k)hasOwn$2(k,V)&&(this[V]=k[V]);this.nodesMap={}}initialize(){this.root=new Node$1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load?this.load(this.root,V=>{this.root.doCreateChildren(V),this._initDefaultCheckedNodes()}):this._initDefaultCheckedNodes()}filter(k){const V=this.filterNodeMethod,z=this.lazy,j=function(oe){const re=oe.root?oe.root.childNodes:oe.childNodes;if(re.forEach(ie=>{ie.visible=V.call(ie,k,ie.data,ie),j(ie)}),!oe.visible&&re.length){let ie=!0;ie=!re.some(ae=>ae.visible),oe.root?oe.root.visible=ie===!1:oe.visible=ie===!1}!k||oe.visible&&!oe.isLeaf&&!z&&oe.expand()};j(this)}setData(k){k!==this.root.data?(this.root.setData(k),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(k){if(k instanceof Node$1)return k;const V=typeof k!="object"?k:getNodeKey(this.key,k);return this.nodesMap[V]||null}insertBefore(k,V){const z=this.getNode(V);z.parent.insertBefore({data:k},z)}insertAfter(k,V){const z=this.getNode(V);z.parent.insertAfter({data:k},z)}remove(k){const V=this.getNode(k);V&&V.parent&&(V===this.currentNode&&(this.currentNode=null),V.parent.removeChild(V))}append(k,V){const z=V?this.getNode(V):this.root;z&&z.insertChild({data:k})}_initDefaultCheckedNodes(){const k=this.defaultCheckedKeys||[],V=this.nodesMap;k.forEach(z=>{const j=V[z];j&&j.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(k){(this.defaultCheckedKeys||[]).includes(k.key)&&k.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(k){k!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=k,this._initDefaultCheckedNodes())}registerNode(k){const V=this.key;!k||!k.data||(V?k.key!==void 0&&(this.nodesMap[k.key]=k):this.nodesMap[k.id]=k)}deregisterNode(k){!this.key||!k||!k.data||(k.childNodes.forEach(z=>{this.deregisterNode(z)}),delete this.nodesMap[k.key])}getCheckedNodes(k=!1,V=!1){const z=[],j=function(oe){(oe.root?oe.root.childNodes:oe.childNodes).forEach(ie=>{(ie.checked||V&&ie.indeterminate)&&(!k||k&&ie.isLeaf)&&z.push(ie.data),j(ie)})};return j(this),z}getCheckedKeys(k=!1){return this.getCheckedNodes(k).map(V=>(V||{})[this.key])}getHalfCheckedNodes(){const k=[],V=function(z){(z.root?z.root.childNodes:z.childNodes).forEach(oe=>{oe.indeterminate&&k.push(oe.data),V(oe)})};return V(this),k}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(k=>(k||{})[this.key])}_getAllNodes(){const k=[],V=this.nodesMap;for(const z in V)hasOwn$2(V,z)&&k.push(V[z]);return k}updateChildren(k,V){const z=this.nodesMap[k];if(!z)return;const j=z.childNodes;for(let oe=j.length-1;oe>=0;oe--){const re=j[oe];this.remove(re.data)}for(let oe=0,re=V.length;oeae.level-ie.level),oe=Object.create(null),re=Object.keys(z);j.forEach(ie=>ie.setChecked(!1,!1));for(let ie=0,ae=j.length;ie0;)oe[de.data[k]]=!0,de=de.parent;if(he.isLeaf||this.checkStrictly){he.setChecked(!0,!1);continue}if(he.setChecked(!0,!0),V){he.setChecked(!1,!1);const pe=function($e){$e.childNodes.forEach(Ce=>{Ce.isLeaf||Ce.setChecked(!1,!1),pe(Ce)})};pe(he)}}}setCheckedNodes(k,V=!1){const z=this.key,j={};k.forEach(oe=>{j[(oe||{})[z]]=!0}),this._setCheckedKeys(z,V,j)}setCheckedKeys(k,V=!1){this.defaultCheckedKeys=k;const z=this.key,j={};k.forEach(oe=>{j[oe]=!0}),this._setCheckedKeys(z,V,j)}setDefaultExpandedKeys(k){k=k||[],this.defaultExpandedKeys=k,k.forEach(V=>{const z=this.getNode(V);z&&z.expand(null,this.autoExpandParent)})}setChecked(k,V,z){const j=this.getNode(k);j&&j.setChecked(!!V,z)}getCurrentNode(){return this.currentNode}setCurrentNode(k){const V=this.currentNode;V&&(V.isCurrent=!1),this.currentNode=k,this.currentNode.isCurrent=!0}setUserCurrentNode(k,V=!0){const z=k[this.key],j=this.nodesMap[z];this.setCurrentNode(j),V&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(k,V=!0){if(k==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const z=this.getNode(k);z&&(this.setCurrentNode(z),V&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$h=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup($){const k=useNamespace("tree"),V=inject("NodeInstance"),z=inject("RootTree");return()=>{const j=$.node,{data:oe,store:re}=j;return $.renderContent?$.renderContent(h$2,{_self:V,node:j,data:oe,store:re}):z.ctx.slots.default?z.ctx.slots.default({node:j,data:oe}):h$2("span",{class:k.be("node","label")},[j.label])}}});var NodeContent=_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast($){const k=inject("TreeNodeMap",null),V={treeNodeExpand:z=>{$.node!==z&&$.node.collapse()},children:[]};return k&&k.children.push(V),provide("TreeNodeMap",V),{broadcastExpanded:z=>{if(!!$.accordion)for(const j of V.children)j.treeNodeExpand(z)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:$,ctx:k,el$:V,dropIndicator$:z,store:j}){const oe=useNamespace("tree"),re=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:le,treeNode:ue})=>{if(typeof $.allowDrag=="function"&&!$.allowDrag(ue.node))return le.preventDefault(),!1;le.dataTransfer.effectAllowed="move";try{le.dataTransfer.setData("text/plain","")}catch{}re.value.draggingNode=ue,k.emit("node-drag-start",ue.node,le)},treeNodeDragOver:({event:le,treeNode:ue})=>{const de=ue,pe=re.value.dropNode;pe&&pe!==de&&removeClass(pe.$el,oe.is("drop-inner"));const $e=re.value.draggingNode;if(!$e||!de)return;let _e=!0,Ce=!0,Ie=!0,ze=!0;typeof $.allowDrop=="function"&&(_e=$.allowDrop($e.node,de.node,"prev"),ze=Ce=$.allowDrop($e.node,de.node,"inner"),Ie=$.allowDrop($e.node,de.node,"next")),le.dataTransfer.dropEffect=Ce||_e||Ie?"move":"none",(_e||Ce||Ie)&&pe!==de&&(pe&&k.emit("node-drag-leave",$e.node,pe.node,le),k.emit("node-drag-enter",$e.node,de.node,le)),(_e||Ce||Ie)&&(re.value.dropNode=de),de.node.nextSibling===$e.node&&(Ie=!1),de.node.previousSibling===$e.node&&(_e=!1),de.node.contains($e.node,!1)&&(Ce=!1),($e.node===de.node||$e.node.contains(de.node))&&(_e=!1,Ce=!1,Ie=!1);const Et=de.$el.getBoundingClientRect(),qe=V.value.getBoundingClientRect();let Oe;const Ue=_e?Ce?.25:Ie?.45:1:-1,Dt=Ie?Ce?.75:_e?.55:0:1;let At=-9999;const Lt=le.clientY-Et.top;LtEt.height*Dt?Oe="after":Ce?Oe="inner":Oe="none";const kt=de.$el.querySelector(`.${oe.be("node","expand-icon")}`).getBoundingClientRect(),Pt=z.value;Oe==="before"?At=kt.top-qe.top:Oe==="after"&&(At=kt.bottom-qe.top),Pt.style.top=`${At}px`,Pt.style.left=`${kt.right-qe.left}px`,Oe==="inner"?addClass(de.$el,oe.is("drop-inner")):removeClass(de.$el,oe.is("drop-inner")),re.value.showDropIndicator=Oe==="before"||Oe==="after",re.value.allowDrop=re.value.showDropIndicator||ze,re.value.dropType=Oe,k.emit("node-drag-over",$e.node,de.node,le)},treeNodeDragEnd:le=>{const{draggingNode:ue,dropType:de,dropNode:pe}=re.value;if(le.preventDefault(),le.dataTransfer.dropEffect="move",ue&&pe){const $e={data:ue.node.data};de!=="none"&&ue.node.remove(),de==="before"?pe.node.parent.insertBefore($e,pe.node):de==="after"?pe.node.parent.insertAfter($e,pe.node):de==="inner"&&pe.node.insertChild($e),de!=="none"&&j.value.registerNode($e),removeClass(pe.$el,oe.is("drop-inner")),k.emit("node-drag-end",ue.node,pe.node,de,le),de!=="none"&&k.emit("node-drop",ue.node,pe.node,de,le)}ue&&!pe&&k.emit("node-drag-end",ue.node,null,de,le),re.value.showDropIndicator=!1,re.value.draggingNode=null,re.value.dropNode=null,re.value.allowDrop=!0}}),{dragState:re}}const _sfc_main$g=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading$1},props:{node:{type:Node$1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup($,k){const V=useNamespace("tree"),{broadcastExpanded:z}=useNodeExpandEventBroadcast($),j=inject("RootTree"),oe=ref(!1),re=ref(!1),ie=ref(null),ae=ref(null),he=ref(null),le=inject(dragEventsKey),ue=getCurrentInstance();provide("NodeInstance",ue),$.node.expanded&&(oe.value=!0,re.value=!0);const de=j.props.children||"children";watch$1(()=>{const Lt=$.node.data[de];return Lt&&[...Lt]},()=>{$.node.updateChildren()}),watch$1(()=>$.node.indeterminate,Lt=>{_e($.node.checked,Lt)}),watch$1(()=>$.node.checked,Lt=>{_e(Lt,$.node.indeterminate)}),watch$1(()=>$.node.expanded,Lt=>{nextTick(()=>oe.value=Lt),Lt&&(re.value=!0)});const pe=Lt=>getNodeKey(j.props.nodeKey,Lt.data),$e=Lt=>{const kt=$.props.class;if(!kt)return{};let Pt;if(isFunction$3(kt)){const{data:jt}=Lt;Pt=kt(jt,Lt)}else Pt=kt;return isString$3(Pt)?{[Pt]:!0}:Pt},_e=(Lt,kt)=>{(ie.value!==Lt||ae.value!==kt)&&j.ctx.emit("check-change",$.node.data,Lt,kt),ie.value=Lt,ae.value=kt},Ce=Lt=>{const kt=j.store.value;kt.setCurrentNode($.node),j.ctx.emit("current-change",kt.currentNode?kt.currentNode.data:null,kt.currentNode),j.currentNode.value=$.node,j.props.expandOnClickNode&&ze(),j.props.checkOnClickNode&&!$.node.disabled&&Et(null,{target:{checked:!$.node.checked}}),j.ctx.emit("node-click",$.node.data,$.node,ue,Lt)},Ie=Lt=>{j.instance.vnode.props.onNodeContextmenu&&(Lt.stopPropagation(),Lt.preventDefault()),j.ctx.emit("node-contextmenu",Lt,$.node.data,$.node,ue)},ze=()=>{$.node.isLeaf||(oe.value?(j.ctx.emit("node-collapse",$.node.data,$.node,ue),$.node.collapse()):($.node.expand(),k.emit("node-expand",$.node.data,$.node,ue)))},Et=(Lt,kt)=>{$.node.setChecked(kt.target.checked,!j.props.checkStrictly),nextTick(()=>{const Pt=j.store.value;j.ctx.emit("check",$.node.data,{checkedNodes:Pt.getCheckedNodes(),checkedKeys:Pt.getCheckedKeys(),halfCheckedNodes:Pt.getHalfCheckedNodes(),halfCheckedKeys:Pt.getHalfCheckedKeys()})})};return{ns:V,node$:he,tree:j,expanded:oe,childNodeRendered:re,oldChecked:ie,oldIndeterminate:ae,getNodeKey:pe,getNodeClass:$e,handleSelectChange:_e,handleClick:Ce,handleContextMenu:Ie,handleExpandIconClick:ze,handleCheckChange:Et,handleChildNodeExpand:(Lt,kt,Pt)=>{z(kt),j.ctx.emit("node-expand",Lt,kt,Pt)},handleDragStart:Lt=>{!j.props.draggable||le.treeNodeDragStart({event:Lt,treeNode:$})},handleDragOver:Lt=>{Lt.preventDefault(),j.props.draggable&&le.treeNodeDragOver({event:Lt,treeNode:{$el:he.value,node:$.node}})},handleDrop:Lt=>{Lt.preventDefault()},handleDragEnd:Lt=>{!j.props.draggable||le.treeNodeDragEnd(Lt)},CaretRight:caretRight}}}),_hoisted_1$b=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$8=["aria-expanded"];function _sfc_render$b($,k,V,z,j,oe){const re=resolveComponent("el-icon"),ie=resolveComponent("el-checkbox"),ae=resolveComponent("loading"),he=resolveComponent("node-content"),le=resolveComponent("el-tree-node"),ue=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([$.ns.b("node"),$.ns.is("expanded",$.expanded),$.ns.is("current",$.node.isCurrent),$.ns.is("hidden",!$.node.visible),$.ns.is("focusable",!$.node.disabled),$.ns.is("checked",!$.node.disabled&&$.node.checked),$.getNodeClass($.node)]),role:"treeitem",tabindex:"-1","aria-expanded":$.expanded,"aria-disabled":$.node.disabled,"aria-checked":$.node.checked,draggable:$.tree.props.draggable,"data-key":$.getNodeKey($.node),onClick:k[1]||(k[1]=withModifiers((...de)=>$.handleClick&&$.handleClick(...de),["stop"])),onContextmenu:k[2]||(k[2]=(...de)=>$.handleContextMenu&&$.handleContextMenu(...de)),onDragstart:k[3]||(k[3]=withModifiers((...de)=>$.handleDragStart&&$.handleDragStart(...de),["stop"])),onDragover:k[4]||(k[4]=withModifiers((...de)=>$.handleDragOver&&$.handleDragOver(...de),["stop"])),onDragend:k[5]||(k[5]=withModifiers((...de)=>$.handleDragEnd&&$.handleDragEnd(...de),["stop"])),onDrop:k[6]||(k[6]=withModifiers((...de)=>$.handleDrop&&$.handleDrop(...de),["stop"]))},[createBaseVNode("div",{class:normalizeClass($.ns.be("node","content")),style:normalizeStyle({paddingLeft:($.node.level-1)*$.tree.props.indent+"px"})},[$.tree.props.icon||$.CaretRight?(openBlock(),createBlock(re,{key:0,class:normalizeClass([$.ns.be("node","expand-icon"),$.ns.is("leaf",$.node.isLeaf),{expanded:!$.node.isLeaf&&$.expanded}]),onClick:withModifiers($.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.tree.props.icon||$.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.showCheckbox?(openBlock(),createBlock(ie,{key:1,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:!!$.node.disabled,onClick:k[0]||(k[0]=withModifiers(()=>{},["stop"])),onChange:$.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),$.node.loading?(openBlock(),createBlock(re,{key:2,class:normalizeClass([$.ns.be("node","loading-icon"),$.ns.is("loading")])},{default:withCtx(()=>[createVNode(ae)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(he,{node:$.node,"render-content":$.renderContent},null,8,["node","render-content"])],6),createVNode(ue,null,{default:withCtx(()=>[!$.renderAfterExpand||$.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("node","children")),role:"group","aria-expanded":$.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.node.childNodes,de=>(openBlock(),createBlock(le,{key:$.getNodeKey(de),"render-content":$.renderContent,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,node:de,accordion:$.accordion,props:$.props,onNodeExpand:$.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$8)),[[vShow,$.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$b)),[[vShow,$.node.visible]])}var ElTreeNode$1=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:$},k){const V=useNamespace("tree"),z=shallowRef([]),j=shallowRef([]);onMounted(()=>{re(),on$1($.value,"keydown",oe)}),onBeforeUnmount(()=>{off($.value,"keydown",oe)}),onUpdated(()=>{z.value=Array.from($.value.querySelectorAll("[role=treeitem]")),j.value=Array.from($.value.querySelectorAll("input[type=checkbox]"))}),watch$1(j,ie=>{ie.forEach(ae=>{ae.setAttribute("tabindex","-1")})});const oe=ie=>{const ae=ie.target;if(!ae.className.includes(V.b("node")))return;const he=ie.code;z.value=Array.from($.value.querySelectorAll(`.${V.is("focusable")}[role=treeitem]`));const le=z.value.indexOf(ae);let ue;if([EVENT_CODE.up,EVENT_CODE.down].includes(he)){if(ie.preventDefault(),he===EVENT_CODE.up){ue=le===-1?0:le!==0?le-1:z.value.length-1;const pe=ue;for(;!k.value.getNode(z.value[ue].dataset.key).canFocus;){if(ue--,ue===pe){ue=-1;break}ue<0&&(ue=z.value.length-1)}}else{ue=le===-1?0:le=z.value.length&&(ue=0)}}ue!==-1&&z.value[ue].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(he)&&(ie.preventDefault(),ae.click());const de=ae.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(he)&&de&&(ie.preventDefault(),de.click())},re=()=>{var ie;z.value=Array.from($.value.querySelectorAll(`.${V.is("focusable")}[role=treeitem]`)),j.value=Array.from($.value.querySelectorAll("input[type=checkbox]"));const ae=$.value.querySelectorAll(`.${V.is("checked")}[role=treeitem]`);if(ae.length){ae[0].setAttribute("tabindex","0");return}(ie=z.value[0])==null||ie.setAttribute("tabindex","0")}}const _sfc_main$f=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:[String,Object]},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup($,k){const{t:V}=useLocale(),z=useNamespace("tree"),j=ref(new TreeStore({key:$.nodeKey,data:$.data,lazy:$.lazy,props:$.props,load:$.load,currentNodeKey:$.currentNodeKey,checkStrictly:$.checkStrictly,checkDescendants:$.checkDescendants,defaultCheckedKeys:$.defaultCheckedKeys,defaultExpandedKeys:$.defaultExpandedKeys,autoExpandParent:$.autoExpandParent,defaultExpandAll:$.defaultExpandAll,filterNodeMethod:$.filterNodeMethod}));j.value.initialize();const oe=ref(j.value.root),re=ref(null),ie=ref(null),ae=ref(null),{broadcastExpanded:he}=useNodeExpandEventBroadcast($),{dragState:le}=useDragNodeHandler({props:$,ctx:k,el$:ie,dropIndicator$:ae,store:j});useKeydown({el$:ie},j);const ue=computed(()=>{const{childNodes:En}=oe.value;return!En||En.length===0||En.every(({visible:Sn})=>!Sn)});watch$1(()=>$.defaultCheckedKeys,En=>{j.value.setDefaultCheckedKey(En)}),watch$1(()=>$.defaultExpandedKeys,En=>{j.value.setDefaultExpandedKeys(En)}),watch$1(()=>$.data,En=>{j.value.setData(En)},{deep:!0}),watch$1(()=>$.checkStrictly,En=>{j.value.checkStrictly=En});const de=En=>{if(!$.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");j.value.filter(En)},pe=En=>getNodeKey($.nodeKey,En.data),$e=En=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Sn=j.value.getNode(En);if(!Sn)return[];const An=[Sn.data];let Cn=Sn.parent;for(;Cn&&Cn!==oe.value;)An.push(Cn.data),Cn=Cn.parent;return An.reverse()},_e=(En,Sn)=>j.value.getCheckedNodes(En,Sn),Ce=En=>j.value.getCheckedKeys(En),Ie=()=>{const En=j.value.getCurrentNode();return En?En.data:null},ze=()=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const En=Ie();return En?En[$.nodeKey]:null},Et=(En,Sn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");j.value.setCheckedNodes(En,Sn)},qe=(En,Sn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");j.value.setCheckedKeys(En,Sn)},Oe=(En,Sn,An)=>{j.value.setChecked(En,Sn,An)},Ue=()=>j.value.getHalfCheckedNodes(),Dt=()=>j.value.getHalfCheckedKeys(),At=(En,Sn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");j.value.setUserCurrentNode(En,Sn)},Lt=(En,Sn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");j.value.setCurrentNodeKey(En,Sn)},kt=En=>j.value.getNode(En),Pt=En=>{j.value.remove(En)},jt=(En,Sn)=>{j.value.append(En,Sn)},vn=(En,Sn)=>{j.value.insertBefore(En,Sn)},$n=(En,Sn)=>{j.value.insertAfter(En,Sn)},wn=(En,Sn,An)=>{he(Sn),k.emit("node-expand",En,Sn,An)},_n=(En,Sn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");j.value.updateChildren(En,Sn)};return provide("RootTree",{ctx:k,props:$,store:j,root:oe,currentNode:re,instance:getCurrentInstance()}),{ns:z,store:j,root:oe,currentNode:re,dragState:le,el$:ie,dropIndicator$:ae,isEmpty:ue,filter:de,getNodeKey:pe,getNodePath:$e,getCheckedNodes:_e,getCheckedKeys:Ce,getCurrentNode:Ie,getCurrentKey:ze,setCheckedNodes:Et,setCheckedKeys:qe,setChecked:Oe,getHalfCheckedNodes:Ue,getHalfCheckedKeys:Dt,setCurrentNode:At,setCurrentKey:Lt,t:V,getNode:kt,remove:Pt,append:jt,insertBefore:vn,insertAfter:$n,handleNodeExpand:wn,updateKeyChildren:_n}}});function _sfc_render$a($,k,V,z,j,oe){var re;const ie=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([$.ns.b(),$.ns.is("dragging",!!$.dragState.draggingNode),$.ns.is("drop-not-allow",!$.dragState.allowDrop),$.ns.is("drop-inner",$.dragState.dropType==="inner"),{[$.ns.m("highlight-current")]:$.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.root.childNodes,ae=>(openBlock(),createBlock(ie,{key:$.getNodeKey(ae),node:ae,props:$.props,accordion:$.accordion,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,"render-content":$.renderContent,onNodeExpand:$.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((re=$.emptyText)!=null?re:$.t("el.tree.emptyText")),3)],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass($.ns.e("drop-indicator"))},null,2),[[vShow,$.dragState.showDropIndicator]])],2)}var Tree=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree.install=$=>{$.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=($,{attrs:k},{tree:V,key:z})=>{const j=useNamespace("tree-select"),oe=mo(oo(oo({},pick$1(toRefs($),Object.keys(ElSelect.props))),k),{valueKey:z,popperClass:computed(()=>{const re=[j.e("popper")];return $.popperClass&&re.push($.popperClass),re.join(" ")}),filterMethod:(re="")=>{$.filterMethod&&$.filterMethod(re),nextTick(()=>{var ie;(ie=V.value)==null||ie.filter(re)})},onVisibleChange:re=>{var ie;(ie=k.onVisibleChange)==null||ie.call(k,re),$.filterable&&re&&oe.filterMethod()}});return oe},component=defineComponent({extends:ElOption$1,setup($,k){const V=ElOption$1.setup($,k);return delete V.selectOptionClick,V},methods:{selectOptionClick(){this.$el.parentElement.click()}}}),useTree$1=($,{attrs:k,slots:V,emit:z},{select:j,tree:oe,key:re})=>{watch$1(()=>$.modelValue,()=>{$.showCheckbox&&nextTick(()=>{const he=oe.value;he&&!isEqual$1(he.getCheckedKeys(),toValidArray($.modelValue))&&he.setCheckedKeys(toValidArray($.modelValue))})},{immediate:!0,deep:!0});const ie=computed(()=>oo({value:re.value},$.props)),ae=(he,le)=>{var ue;const de=ie.value[he];return isFunction$3(de)?de(le,(ue=oe.value)==null?void 0:ue.getNode(ae("value",le))):le[de]};return mo(oo(oo({},pick$1(toRefs($),Object.keys(_Tree.props))),k),{nodeKey:re,expandOnClickNode:computed(()=>!$.checkStrictly),defaultExpandedKeys:computed(()=>{const he=toValidArray($.modelValue),le=oe.value?he.map(ue=>{var de,pe,$e;return($e=(pe=(de=oe.value)==null?void 0:de.getNode(ue))==null?void 0:pe.parent)==null?void 0:$e.key}).filter(ue=>isValidValue(ue)):he;return $.defaultExpandedKeys?$.defaultExpandedKeys.concat(le):le}),renderContent:(he,{node:le,data:ue,store:de})=>he(component,{value:ae("value",ue),label:ae("label",ue),disabled:ae("disabled",ue)},$.renderContent?()=>$.renderContent(he,{node:le,data:ue,store:de}):V.default?()=>V.default({node:le,data:ue,store:de}):void 0),filterNodeMethod:(he,le,ue)=>{var de;return $.filterNodeMethod?$.filterNodeMethod(he,le,ue):he?(de=ae("label",le))==null?void 0:de.includes(he):!0},onNodeClick:(he,le,ue)=>{var de,pe,$e;if((de=k.onNodeClick)==null||de.call(k,he,le,ue),$.checkStrictly||le.isLeaf){if(!ae("disabled",he)){const _e=(pe=j.value)==null?void 0:pe.options.get(ae("value",he));($e=j.value)==null||$e.handleOptionSelect(_e,!0)}}else ue.proxy.handleExpandIconClick()},onCheck:(he,le)=>{var ue,de;(ue=k.onCheck)==null||ue.call(k,he,le);const pe=$.checkStrictly?le.checkedKeys:(de=oe.value)==null?void 0:de.getCheckedKeys(!0),$e=ae("value",he);z(UPDATE_MODEL_EVENT,$.multiple?pe:pe.includes($e)?$e:void 0)}})};function isValidValue($){return $||$===0}function toValidArray($){return Array.isArray($)?$:isValidValue($)?[$]:[]}const _sfc_main$e=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:oo(oo({},ElSelect.props),_Tree.props),setup($,k){const{slots:V,expose:z}=k,j=ref(),oe=ref(),re=computed(()=>$.nodeKey||$.valueKey||"value"),ie=useSelect($,k,{select:j,tree:oe,key:re}),ae=useTree$1($,k,{select:j,tree:oe,key:re}),he=reactive({});return z(he),onMounted(()=>{Object.assign(he,oo(oo({},pick$1(oe.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"])),pick$1(j.value,["focus","blur"])))}),()=>h$2(ElSelect,reactive(mo(oo({},ie),{ref:le=>j.value=le})),mo(oo({},V),{default:()=>h$2(_Tree,reactive(mo(oo({},ae),{ref:le=>oe.value=le})))}))}});var TreeSelect=_export_sfc$1(_sfc_main$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=$=>{$.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=($=>($.KEY="id",$.LABEL="label",$.CHILDREN="children",$.DISABLED="disabled",$))(TreeOptionsEnum||{}),SetOperationEnum=($=>($.ADD="add",$.DELETE="delete",$))(SetOperationEnum||{});const treeProps=buildProps({data:{type:definePropType(Array),default:()=>mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:definePropType(Object),default:()=>mutable({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0}}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_EXPAND="node-expand",NODE_COLLAPSE="node-collapse",CURRENT_CHANGE="current-change",NODE_CHECK="check",NODE_CHECK_CHANGE="check-change",NODE_CONTEXTMENU="node-contextmenu",treeEmits={[NODE_CLICK]:($,k,V)=>$&&k&&V,[NODE_EXPAND]:($,k)=>$&&k,[NODE_COLLAPSE]:($,k)=>$&&k,[CURRENT_CHANGE]:($,k)=>$&&k,[NODE_CHECK]:($,k)=>$&&k,[NODE_CHECK_CHANGE]:($,k)=>$&&typeof k=="boolean",[NODE_CONTEXTMENU]:($,k,V)=>$&&k&&V},treeNodeEmits={click:($,k)=>!!($&&k),toggle:$=>!!$,check:($,k)=>$&&typeof k=="boolean"};function useCheck($,k){const V=ref(new Set),z=ref(new Set),{emit:j}=getCurrentInstance();watch$1(()=>k.value,()=>nextTick(()=>{ze($.defaultCheckedKeys)}),{immediate:!0});const oe=()=>{if(!k.value||!$.showCheckbox||$.checkStrictly)return;const{levelTreeNodeMap:Et,maxLevel:qe}=k.value,Oe=V.value,Ue=new Set;for(let Dt=qe-1;Dt>=1;--Dt){const At=Et.get(Dt);!At||At.forEach(Lt=>{const kt=Lt.children;if(kt){let Pt=!0,jt=!1;for(const vn of kt){const $n=vn.key;if(Oe.has($n))jt=!0;else if(Ue.has($n)){Pt=!1,jt=!0;break}else Pt=!1}Pt?Oe.add(Lt.key):jt?(Ue.add(Lt.key),Oe.delete(Lt.key)):(Oe.delete(Lt.key),Ue.delete(Lt.key))}})}z.value=Ue},re=Et=>V.value.has(Et.key),ie=Et=>z.value.has(Et.key),ae=(Et,qe,Oe=!0)=>{const Ue=V.value,Dt=(At,Lt)=>{Ue[Lt?SetOperationEnum.ADD:SetOperationEnum.DELETE](At.key);const kt=At.children;!$.checkStrictly&&kt&&kt.forEach(Pt=>{Pt.disabled||Dt(Pt,Lt)})};Dt(Et,qe),oe(),Oe&&he(Et,qe)},he=(Et,qe)=>{const{checkedNodes:Oe,checkedKeys:Ue}=$e(),{halfCheckedNodes:Dt,halfCheckedKeys:At}=_e();j(NODE_CHECK,Et.data,{checkedKeys:Ue,checkedNodes:Oe,halfCheckedKeys:At,halfCheckedNodes:Dt}),j(NODE_CHECK_CHANGE,Et.data,qe)};function le(Et=!1){return $e(Et).checkedKeys}function ue(Et=!1){return $e(Et).checkedNodes}function de(){return _e().halfCheckedKeys}function pe(){return _e().halfCheckedNodes}function $e(Et=!1){const qe=[],Oe=[];if((k==null?void 0:k.value)&&$.showCheckbox){const{treeNodeMap:Ue}=k.value;V.value.forEach(Dt=>{const At=Ue.get(Dt);At&&(!Et||Et&&At.isLeaf)&&(Oe.push(Dt),qe.push(At.data))})}return{checkedKeys:Oe,checkedNodes:qe}}function _e(){const Et=[],qe=[];if((k==null?void 0:k.value)&&$.showCheckbox){const{treeNodeMap:Oe}=k.value;z.value.forEach(Ue=>{const Dt=Oe.get(Ue);Dt&&(qe.push(Ue),Et.push(Dt.data))})}return{halfCheckedNodes:Et,halfCheckedKeys:qe}}function Ce(Et){V.value.clear(),z.value.clear(),ze(Et)}function Ie(Et,qe){if((k==null?void 0:k.value)&&$.showCheckbox){const Oe=k.value.treeNodeMap.get(Et);Oe&&ae(Oe,qe,!1)}}function ze(Et){if(k!=null&&k.value){const{treeNodeMap:qe}=k.value;if($.showCheckbox&&qe&&Et)for(const Oe of Et){const Ue=qe.get(Oe);Ue&&!re(Ue)&&ae(Ue,!0,!1)}}}return{updateCheckedKeys:oe,toggleCheckbox:ae,isChecked:re,isIndeterminate:ie,getCheckedKeys:le,getCheckedNodes:ue,getHalfCheckedKeys:de,getHalfCheckedNodes:pe,setChecked:Ie,setCheckedKeys:Ce}}function useFilter($,k){const V=ref(new Set([])),z=ref(new Set([])),j=computed(()=>isFunction$3($.filterMethod));function oe(ie){var ae;if(!j.value)return;const he=new Set,le=z.value,ue=V.value,de=[],pe=((ae=k.value)==null?void 0:ae.treeNodes)||[],$e=$.filterMethod;ue.clear();function _e(Ce){Ce.forEach(Ie=>{de.push(Ie),$e!=null&&$e(ie,Ie.data)?de.forEach(Et=>{he.add(Et.key)}):Ie.isLeaf&&ue.add(Ie.key);const ze=Ie.children;if(ze&&_e(ze),!Ie.isLeaf){if(!he.has(Ie.key))ue.add(Ie.key);else if(ze){let Et=!0;for(const qe of ze)if(!ue.has(qe.key)){Et=!1;break}Et?le.add(Ie.key):le.delete(Ie.key)}}de.pop()})}return _e(pe),he}function re(ie){return z.value.has(ie.key)}return{hiddenExpandIconKeySet:z,hiddenNodeKeySet:V,doFilter:oe,isForceHiddenExpandIcon:re}}function useTree($,k){const V=ref(new Set($.defaultExpandedKeys)),z=ref(),j=shallowRef();watch$1(()=>$.currentNodeKey,Bn=>{z.value=Bn},{immediate:!0}),watch$1(()=>$.data,Bn=>{Ln(Bn)},{immediate:!0});const{isIndeterminate:oe,isChecked:re,toggleCheckbox:ie,getCheckedKeys:ae,getCheckedNodes:he,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:de,setCheckedKeys:pe}=useCheck($,j),{doFilter:$e,hiddenNodeKeySet:_e,isForceHiddenExpandIcon:Ce}=useFilter($,j),Ie=computed(()=>{var Bn;return((Bn=$.props)==null?void 0:Bn.value)||TreeOptionsEnum.KEY}),ze=computed(()=>{var Bn;return((Bn=$.props)==null?void 0:Bn.children)||TreeOptionsEnum.CHILDREN}),Et=computed(()=>{var Bn;return((Bn=$.props)==null?void 0:Bn.disabled)||TreeOptionsEnum.DISABLED}),qe=computed(()=>{var Bn;return((Bn=$.props)==null?void 0:Bn.label)||TreeOptionsEnum.LABEL}),Oe=computed(()=>{const Bn=V.value,Vn=_e.value,Fn=[],zn=j.value&&j.value.treeNodes||[];function Xn(){const Pn=[];for(let Hn=zn.length-1;Hn>=0;--Hn)Pn.push(zn[Hn]);for(;Pn.length;){const Hn=Pn.pop();if(!!Hn&&(Vn.has(Hn.key)||Fn.push(Hn),Bn.has(Hn.key))){const eo=Hn.children;if(eo){const Qn=eo.length;for(let ao=Qn-1;ao>=0;--ao)Pn.push(eo[ao])}}}}return Xn(),Fn}),Ue=computed(()=>Oe.value.length>0);function Dt(Bn){const Vn=new Map,Fn=new Map;let zn=1;function Xn(Hn,eo=1,Qn=void 0){var ao;const ho=[];for(const uo of Hn){const Un=kt(uo),Zn={level:eo,key:Un,data:uo};Zn.label=jt(uo),Zn.parent=Qn;const no=Lt(uo);Zn.disabled=Pt(uo),Zn.isLeaf=!no||no.length===0,no&&no.length&&(Zn.children=Xn(no,eo+1,Zn)),ho.push(Zn),Vn.set(Un,Zn),Fn.has(eo)||Fn.set(eo,[]),(ao=Fn.get(eo))==null||ao.push(Zn)}return eo>zn&&(zn=eo),ho}const Pn=Xn(Bn);return{treeNodeMap:Vn,levelTreeNodeMap:Fn,maxLevel:zn,treeNodes:Pn}}function At(Bn){const Vn=$e(Bn);Vn&&(V.value=Vn)}function Lt(Bn){return Bn[ze.value]}function kt(Bn){return Bn?Bn[Ie.value]:""}function Pt(Bn){return Bn[Et.value]}function jt(Bn){return Bn[qe.value]}function vn(Bn){V.value.has(Bn.key)?Sn(Bn):En(Bn)}function $n(Bn,Vn){k(NODE_CLICK,Bn.data,Bn,Vn),wn(Bn),$.expandOnClickNode&&vn(Bn),$.showCheckbox&&$.checkOnClickNode&&!Bn.disabled&&ie(Bn,!re(Bn),!0)}function wn(Bn){Tn(Bn)||(z.value=Bn.key,k(CURRENT_CHANGE,Bn.data,Bn))}function _n(Bn,Vn){ie(Bn,Vn)}function En(Bn){const Vn=V.value;if((j==null?void 0:j.value)&&$.accordion){const{treeNodeMap:Fn}=j.value;Vn.forEach(zn=>{const Xn=Fn.get(zn);Xn&&Xn.level===Xn.level&&Vn.delete(zn)})}Vn.add(Bn.key),k(NODE_EXPAND,Bn.data,Bn)}function Sn(Bn){V.value.delete(Bn.key),k(NODE_COLLAPSE,Bn.data,Bn)}function An(Bn){return V.value.has(Bn.key)}function Cn(Bn){return!!Bn.disabled}function Tn(Bn){const Vn=z.value;return!!Vn&&Vn===Bn.key}function Nn(){var Bn,Vn;if(!!z.value)return(Vn=(Bn=j==null?void 0:j.value)==null?void 0:Bn.treeNodeMap.get(z.value))==null?void 0:Vn.data}function xn(){return z.value}function On(Bn){z.value=Bn}function Ln(Bn){nextTick(()=>j.value=Dt(Bn))}return{tree:j,flattenTree:Oe,isNotEmpty:Ue,getKey:kt,getChildren:Lt,toggleExpand:vn,toggleCheckbox:ie,isExpanded:An,isChecked:re,isIndeterminate:oe,isDisabled:Cn,isCurrent:Tn,isForceHiddenExpandIcon:Ce,handleNodeClick:$n,handleNodeCheck:_n,getCurrentNode:Nn,getCurrentKey:xn,setCurrentKey:On,getCheckedKeys:ae,getCheckedNodes:he,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:de,setCheckedKeys:pe,filter:At,setData:Ln}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup($){const k=inject(ROOT_TREE_INJECTION_KEY),V=useNamespace("tree");return()=>{const z=$.node,{data:j}=z;return k!=null&&k.ctx.slots.default?k.ctx.slots.default({node:z,data:j}):h$2("span",{class:V.be("node","label")},[z==null?void 0:z.label])}}});const DEFAULT_ICON="caret-right",_sfc_main$d=defineComponent({name:"ElTreeNode",components:{ElIcon,CaretRight:caretRight,ElCheckbox,ElNodeContent},props:treeNodeProps,emits:treeNodeEmits,setup($,{emit:k}){const V=inject(ROOT_TREE_INJECTION_KEY),z=useNamespace("tree"),j=computed(()=>{var le;return(le=V==null?void 0:V.props.indent)!=null?le:16}),oe=computed(()=>{var le;return(le=V==null?void 0:V.props.icon)!=null?le:DEFAULT_ICON});return{ns:z,indent:j,icon:oe,handleClick:le=>{k("click",$.node,le)},handleExpandIconClick:()=>{k("toggle",$.node)},handleCheckChange:le=>{k("check",$.node,le)},handleContextMenu:le=>{var ue,de,pe,$e;(pe=(de=(ue=V==null?void 0:V.instance)==null?void 0:ue.vnode)==null?void 0:de.props)!=null&&pe.onNodeContextmenu&&(le.stopPropagation(),le.preventDefault()),V==null||V.ctx.emit(NODE_CONTEXTMENU,le,($e=$.node)==null?void 0:$e.data,$.node)}}}}),_hoisted_1$a=["aria-expanded","aria-disabled","aria-checked","data-key"];function _sfc_render$9($,k,V,z,j,oe){var re,ie,ae;const he=resolveComponent("el-icon"),le=resolveComponent("el-checkbox"),ue=resolveComponent("el-node-content");return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([$.ns.b("node"),$.ns.is("expanded",$.expanded),$.ns.is("current",$.current),$.ns.is("focusable",!$.disabled),$.ns.is("checked",!$.disabled&&$.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":$.expanded,"aria-disabled":$.disabled,"aria-checked":$.checked,"data-key":(re=$.node)==null?void 0:re.key,onClick:k[1]||(k[1]=withModifiers((...de)=>$.handleClick&&$.handleClick(...de),["stop"])),onContextmenu:k[2]||(k[2]=(...de)=>$.handleContextMenu&&$.handleContextMenu(...de))},[createBaseVNode("div",{class:normalizeClass($.ns.be("node","content")),style:normalizeStyle({paddingLeft:`${($.node.level-1)*$.indent}px`})},[$.icon?(openBlock(),createBlock(he,{key:0,class:normalizeClass([$.ns.is("leaf",!!((ie=$.node)!=null&&ie.isLeaf)),$.ns.is("hidden",$.hiddenExpandIcon),{expanded:!((ae=$.node)!=null&&ae.isLeaf)&&$.expanded},$.ns.be("node","expand-icon")]),onClick:withModifiers($.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.showCheckbox?(openBlock(),createBlock(le,{key:1,"model-value":$.checked,indeterminate:$.indeterminate,disabled:$.disabled,onChange:$.handleCheckChange,onClick:k[0]||(k[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),createVNode(ue,{node:$.node},null,8,["node"])],6)],42,_hoisted_1$a)}var ElTreeNode=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const _sfc_main$c=defineComponent({name:"ElTreeV2",components:{ElTreeNode,FixedSizeList},props:treeProps,emits:treeEmits,setup($,k){provide(ROOT_TREE_INJECTION_KEY,{ctx:k,props:$,instance:getCurrentInstance()});const{t:V}=useLocale(),z=useNamespace("tree"),{flattenTree:j,isNotEmpty:oe,toggleExpand:re,isExpanded:ie,isIndeterminate:ae,isChecked:he,isDisabled:le,isCurrent:ue,isForceHiddenExpandIcon:de,toggleCheckbox:pe,handleNodeClick:$e,handleNodeCheck:_e,getCurrentNode:Ce,getCurrentKey:Ie,setCurrentKey:ze,getCheckedKeys:Et,getCheckedNodes:qe,getHalfCheckedKeys:Oe,getHalfCheckedNodes:Ue,setChecked:Dt,setCheckedKeys:At,filter:Lt,setData:kt}=useTree($,k.emit);return k.expose({getCurrentNode:Ce,getCurrentKey:Ie,setCurrentKey:ze,getCheckedKeys:Et,getCheckedNodes:qe,getHalfCheckedKeys:Oe,getHalfCheckedNodes:Ue,setChecked:Dt,setCheckedKeys:At,filter:Lt,setData:kt}),{t:V,ns:z,flattenTree:j,itemSize:26,isNotEmpty:oe,toggleExpand:re,toggleCheckbox:pe,isExpanded:ie,isIndeterminate:ae,isChecked:he,isDisabled:le,isCurrent:ue,isForceHiddenExpandIcon:de,handleNodeClick:$e,handleNodeCheck:_e}}});function _sfc_render$8($,k,V,z,j,oe){var re;const ie=resolveComponent("el-tree-node"),ae=resolveComponent("fixed-size-list");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),{[$.ns.m("highlight-current")]:$.highlightCurrent}]),role:"tree"},[$.isNotEmpty?(openBlock(),createBlock(ae,{key:0,"class-name":$.ns.b("virtual-list"),data:$.flattenTree,total:$.flattenTree.length,height:$.height,"item-size":$.itemSize,"perf-mode":$.perfMode},{default:withCtx(({data:he,index:le,style:ue})=>[(openBlock(),createBlock(ie,{key:he[le].key,style:normalizeStyle(ue),node:he[le],expanded:$.isExpanded(he[le]),"show-checkbox":$.showCheckbox,checked:$.isChecked(he[le]),indeterminate:$.isIndeterminate(he[le]),disabled:$.isDisabled(he[le]),current:$.isCurrent(he[le]),"hidden-expand-icon":$.isForceHiddenExpandIcon(he[le]),onClick:$.handleNodeClick,onToggle:$.toggleExpand,onCheck:$.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((re=$.emptyText)!=null?re:$.t("el.tree.emptyText")),3)],2))],2)}var TreeV2=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const ElTreeV2=withInstall(TreeV2),SCOPE$2="ElUpload";class UploadAjaxError extends Error{constructor(k,V,z,j){super(k),this.name="UploadAjaxError",this.status=V,this.method=z,this.url=j}}function getError($,k,V){let z;return V.response?z=`${V.response.error||V.response}`:V.responseText?z=`${V.responseText}`:z=`fail to ${k.method} ${$} ${V.status}`,new UploadAjaxError(z,V.status,k.method,$)}function getBody($){const k=$.responseText||$.response;if(!k)return k;try{return JSON.parse(k)}catch{return k}}const ajaxUpload=$=>{typeof XMLHttpRequest=="undefined"&&throwError(SCOPE$2,"XMLHttpRequest is undefined");const k=new XMLHttpRequest,V=$.action;k.upload&&k.upload.addEventListener("progress",oe=>{const re=oe;re.percent=oe.total>0?oe.loaded/oe.total*100:0,$.onProgress(re)});const z=new FormData;if($.data)for(const[oe,re]of Object.entries($.data))Array.isArray(re)?z.append(oe,...re):z.append(oe,re);z.append($.filename,$.file,$.file.name),k.addEventListener("error",()=>{$.onError(getError(V,$,k))}),k.addEventListener("load",()=>{if(k.status<200||k.status>=300)return $.onError(getError(V,$,k));$.onSuccess(getBody(k))}),k.open($.method,V,!0),$.withCredentials&&"withCredentials"in k&&(k.withCredentials=!0);const j=$.headers||{};if(j instanceof Headers)j.forEach((oe,re)=>k.setRequestHeader(re,oe));else for(const[oe,re]of Object.entries(j))isNil(re)||k.setRequestHeader(oe,String(re));return k.send(z),k},uploadListTypes=["text","picture","picture-card"];let fileId=1;const genFileId=()=>Date.now()+fileId++,uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>mutable({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:definePropType(Array),default:()=>mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:Boolean,limit:Number}),uploadProps=buildProps(mo(oo({},uploadBaseProps),{beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}})),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}}),uploadListEmits={remove:$=>!!$},_hoisted_1$9=["onKeydown"],_hoisted_2$7=["src"],_hoisted_3$4=["onClick"],_hoisted_4$3=["onClick"],_hoisted_5$2=["onClick"],__default__$3={name:"ElUploadList"},_sfc_main$b=defineComponent(mo(oo({},__default__$3),{props:uploadListProps,emits:uploadListEmits,setup($,{emit:k}){const V=$,{t:z}=useLocale(),j=useNamespace("upload"),oe=useNamespace("icon"),re=useNamespace("list"),ie=ref(!1),ae=ue=>{V.handlePreview(ue)},he=ue=>{ue.target.focus()},le=ue=>{k("remove",ue)};return(ue,de)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(j).b("list"),unref(j).bm("list",ue.listType),unref(j).is("disabled",ue.disabled)]),name:unref(re).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ue.files,pe=>(openBlock(),createElementBlock("li",{key:pe.uid||pe.name,class:normalizeClass([unref(j).be("list","item"),unref(j).is(pe.status),{focusing:ie.value}]),tabindex:"0",onKeydown:withKeys($e=>!ue.disabled&&le(pe),["delete"]),onFocus:de[0]||(de[0]=$e=>ie.value=!0),onBlur:de[1]||(de[1]=$e=>ie.value=!1),onClick:he},[renderSlot(ue.$slots,"default",{file:pe},()=>[ue.listType==="picture"||pe.status!=="uploading"&&ue.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(j).be("list","item-thumbnail")),src:pe.url,alt:""},null,10,_hoisted_2$7)):createCommentVNode("v-if",!0),ue.listType!=="picture"&&(pe.status==="uploading"||ue.listType!=="picture-card")?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(j).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(j).be("list","item-name")),onClick:withModifiers($e=>ae(pe),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).m("document"))},{default:withCtx(()=>[createVNode(unref(document$1))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(j).be("list","item-file-name"))},toDisplayString$1(pe.name),3)],10,_hoisted_3$4),pe.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:ue.listType==="picture-card"?"circle":"line","stroke-width":ue.listType==="picture-card"?6:2,percentage:Number(pe.percentage),style:normalizeStyle(ue.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("label",{class:normalizeClass(unref(j).be("list","item-status-label"))},[ue.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(oe).m("upload-success"),unref(oe).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circleCheck))]),_:1},8,["class"])):["picture-card","picture"].includes(ue.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(oe).m("upload-success"),unref(oe).m("check")])},{default:withCtx(()=>[createVNode(unref(check))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),ue.disabled?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(oe).m("close")),onClick:$e=>le(pe)},{default:withCtx(()=>[createVNode(unref(close$2))]),_:2},1032,["class","onClick"])),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),ue.disabled?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(oe).m("close-tip"))},toDisplayString$1(unref(z)("el.upload.deleteTip")),3)),ue.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(j).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(j).be("list","item-preview")),onClick:$e=>ue.handlePreview(pe)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoomIn))]),_:1},8,["class"])],10,_hoisted_4$3),ue.disabled?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(j).be("list","item-delete")),onClick:$e=>le(pe)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).m("delete"))},{default:withCtx(()=>[createVNode(unref(_delete))]),_:1},8,["class"])],10,_hoisted_5$2))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$9))),128)),renderSlot(ue.$slots,"append")]),_:3},8,["class","name"]))}}));var UploadList=_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:!1}}),uploadDraggerEmits={file:$=>isArray$4($)},_hoisted_1$8=["onDrop","onDragover"],__default__$2={name:"ElUploadDrag"},_sfc_main$a=defineComponent(mo(oo({},__default__$2),{props:uploadDraggerProps,emits:uploadDraggerEmits,setup($,{emit:k}){const V=$,z="ElUploadDrag",j=inject(uploadContextKey);j||throwError(z,"usage: ");const oe=useNamespace("upload"),re=ref(!1),ie=he=>{if(V.disabled)return;re.value=!1;const le=Array.from(he.dataTransfer.files),ue=j.accept.value;if(!ue){k("file",le);return}const de=le.filter(pe=>{const{type:$e,name:_e}=pe,Ce=_e.includes(".")?`.${_e.split(".").pop()}`:"",Ie=$e.replace(/\/.*$/,"");return ue.split(",").map(ze=>ze.trim()).filter(ze=>ze).some(ze=>ze.startsWith(".")?Ce===ze:/\/\*$/.test(ze)?Ie===ze.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(ze)?$e===ze:!1)});k("file",de)},ae=()=>{V.disabled||(re.value=!0)};return(he,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b("dragger"),unref(oe).is("dragover",re.value)]),onDrop:withModifiers(ie,["prevent"]),onDragover:withModifiers(ae,["prevent"]),onDragleave:le[0]||(le[0]=withModifiers(ue=>re.value=!1,["prevent"]))},[renderSlot(he.$slots,"default")],42,_hoisted_1$8))}}));var UploadDragger=_export_sfc$1(_sfc_main$a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const uploadContentProps=buildProps(mo(oo({},uploadBaseProps),{fileList:{type:definePropType(Array),default:()=>mutable([])},beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}})),_hoisted_1$7=["onKeydown"],_hoisted_2$6=["name","multiple","accept"],__default__$1={name:"ElUploadContent",inheritAttrs:!1},_sfc_main$9=defineComponent(mo(oo({},__default__$1),{props:uploadContentProps,setup($,{expose:k}){const V=$,z=useNamespace("upload"),j=shallowRef({}),oe=shallowRef(),re=pe=>{if(pe.length===0)return;const{autoUpload:$e,limit:_e,fileList:Ce,multiple:Ie,onStart:ze,onExceed:Et}=V;if(_e&&Ce.length+pe.length>_e){Et(pe,Ce);return}Ie||(pe=pe.slice(0,1));for(const qe of pe){const Oe=qe;Oe.uid=genFileId(),ze(Oe),$e&&ie(Oe)}},ie=async pe=>{if(oe.value.value="",!V.beforeUpload)return ae(pe);let $e;try{$e=await V.beforeUpload(pe)}catch{$e=!1}if($e===!1){V.onRemove(pe);return}let _e=pe;if($e instanceof Blob){$e instanceof File?_e=$e:_e=new File([$e],pe.name,{type:pe.type});for(const Ce of Object.keys(pe))_e[Ce]=pe[Ce]}ae(pe)},ae=pe=>{const{headers:$e,data:_e,method:Ce,withCredentials:Ie,name:ze,action:Et,onProgress:qe,onSuccess:Oe,onError:Ue,httpRequest:Dt}=V,{uid:At}=pe,Lt={headers:$e||{},withCredentials:Ie,file:pe,data:_e,method:Ce,filename:ze,action:Et,onProgress:Pt=>{qe(Pt,pe)},onSuccess:Pt=>{Oe(Pt,pe),delete j.value[At]},onError:Pt=>{Ue(Pt,pe),delete j.value[At]}},kt=Dt(Lt);j.value[At]=kt,kt instanceof Promise&&kt.then(Lt.onSuccess,Lt.onError)},he=pe=>{const $e=pe.target.files;!$e||re(Array.from($e))},le=()=>{V.disabled||(oe.value.value="",oe.value.click())},ue=()=>{le()};return k({abort:pe=>{entriesOf(j.value).filter(pe?([_e])=>String(pe.uid)===_e:()=>!0).forEach(([_e,Ce])=>{Ce instanceof XMLHttpRequest&&Ce.abort(),delete j.value[_e]})},upload:ie}),(pe,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(z).b(),unref(z).m(pe.listType),unref(z).is("drag",pe.drag)]),tabindex:"0",onClick:le,onKeydown:withKeys(withModifiers(ue,["self"]),["enter","space"])},[pe.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:pe.disabled,onFile:re},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["disabled"])):renderSlot(pe.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:oe,class:normalizeClass(unref(z).e("input")),name:pe.name,multiple:pe.multiple,accept:pe.accept,type:"file",onChange:he,onClick:$e[0]||($e[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$6)],42,_hoisted_1$7))}}));var UploadContent=_export_sfc$1(_sfc_main$9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeObjectURL=$=>{var k;(k=$.url)!=null&&k.startsWith("blob:")&&URL.revokeObjectURL($.url)},useHandlers=($,k)=>{const V=ref([]),z=de=>V.value.find(pe=>pe.uid===de.uid);function j(de){var pe;(pe=k.value)==null||pe.abort(de)}function oe(de=["ready","uploading","success","fail"]){V.value=V.value.filter(pe=>!de.includes(pe.status))}const re=(de,pe)=>{const $e=z(pe);!$e||($e.status="fail",V.value.splice(V.value.indexOf($e),1),$.onError(de,$e,V.value),$.onChange($e,V.value))},ie=(de,pe)=>{const $e=z(pe);!$e||($.onProgress(de,$e,V.value),$e.status="uploading",$e.percentage=Math.round(de.percent))},ae=(de,pe)=>{const $e=z(pe);!$e||($e.status="success",$e.response=de,$.onSuccess(de,$e,V.value),$.onChange($e,V.value))},he=de=>{const pe={name:de.name,percentage:0,status:"ready",size:de.size,raw:de,uid:de.uid};if($.listType==="picture-card"||$.listType==="picture")try{pe.url=URL.createObjectURL(de)}catch($e){$e.message,$.onError($e,pe,V.value)}V.value.push(pe),$.onChange(pe,V.value)},le=async de=>{const pe=de instanceof File?z(de):de;pe||throwError(SCOPE$1,"file to be removed not found");const $e=_e=>{j(_e);const Ce=V.value;Ce.splice(Ce.indexOf(_e),1),$.onRemove(_e,Ce),revokeObjectURL(_e)};$.beforeRemove?await $.beforeRemove(pe,V.value)!==!1&&$e(pe):$e(pe)};function ue(){V.value.filter(({status:de})=>de==="ready").forEach(({raw:de})=>{var pe;return de&&((pe=k.value)==null?void 0:pe.upload(de))})}return watch$1(()=>$.listType,de=>{de!=="picture-card"&&de!=="picture"||(V.value=V.value.map(pe=>{const{raw:$e,url:_e}=pe;if(!_e&&$e)try{pe.url=URL.createObjectURL($e)}catch(Ce){$.onError(Ce,pe,V.value)}return pe}))}),watch$1(()=>$.fileList,de=>{for(const pe of de)pe.uid||(pe.uid=genFileId()),pe.status||(pe.status="success");V.value=de},{immediate:!0,deep:!0}),{abort:j,clearFiles:oe,handleError:re,handleProgress:ie,handleStart:he,handleSuccess:ae,handleRemove:le,submit:ue,uploadFiles:V}},__default__={name:"ElUpload"},_sfc_main$8=defineComponent(mo(oo({},__default__),{props:uploadProps,setup($,{expose:k}){const V=$,z=useSlots(),j=useDisabled$1(),oe=shallowRef(),{abort:re,submit:ie,clearFiles:ae,uploadFiles:he,handleStart:le,handleError:ue,handleRemove:de,handleSuccess:pe,handleProgress:$e}=useHandlers(V,oe),_e=computed(()=>V.listType==="picture-card"),Ce=computed(()=>mo(oo({},V),{onStart:le,onProgress:$e,onSuccess:pe,onError:ue,onRemove:de}));return onBeforeUnmount(()=>{he.value.forEach(({url:Ie})=>{Ie!=null&&Ie.startsWith("blob:")&&URL.revokeObjectURL(Ie)})}),provide(uploadContextKey,{accept:toRef(V,"accept")}),k({abort:re,submit:ie,clearFiles:ae,handleStart:le,handleRemove:de}),(Ie,ze)=>(openBlock(),createElementBlock("div",null,[unref(_e)&&Ie.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(j),"list-type":Ie.listType,files:unref(he),"handle-preview":Ie.onPreview,onRemove:unref(de)},createSlots({append:withCtx(()=>[Ie.listType==="picture-card"?(openBlock(),createBlock(UploadContent,mergeProps({key:0,ref_key:"uploadRef",ref:oe},unref(Ce)),{default:withCtx(()=>[unref(z).trigger?renderSlot(Ie.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(z).trigger&&unref(z).default?renderSlot(Ie.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},[Ie.$slots.file?{name:"default",fn:withCtx(({file:Et})=>[renderSlot(Ie.$slots,"file",{file:Et})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),Ie.listType!=="picture-card"?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:oe},unref(Ce)),{default:withCtx(()=>[unref(z).trigger?renderSlot(Ie.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(z).trigger&&unref(z).default?renderSlot(Ie.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),Ie.$slots.trigger?renderSlot(Ie.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(Ie.$slots,"tip"),!unref(_e)&&Ie.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(j),"list-type":Ie.listType,files:unref(he),"handle-preview":Ie.onPreview,onRemove:unref(de)},createSlots({_:2},[Ie.$slots.file?{name:"default",fn:withCtx(({file:Et})=>[renderSlot(Ie.$slots,"file",{file:Et})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}}));var Upload=_export_sfc$1(_sfc_main$8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup$1,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElLink,ElMenu,ElMenuItem,ElMenuItemGroup,ElPageHeader,ElPagination,ElPopconfirm,ElPopover,ElPopper,ElProgress,ElRadio,ElRadioButton,ElRadioGroup,ElRate,ElResult,ElRow,ElScrollbar,ElSelect,ElOption$1,ElOptionGroup,ElSelectV2,ElSkeleton,ElSkeletonItem,ElSlider,ElSpace,ElSteps,ElStep,ElSwitch,ElTable,ElTableColumn,ElTableV2,ElTabs,ElTabPane,ElTag,ElTimePicker,ElTimeSelect,ElTimeline,ElTimelineItem,ElTooltip,ElTooltipV2,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload];const SCOPE="ElInfiniteScroll",CHECK_INTERVAL=50,DEFAULT_DELAY=200,DEFAULT_DISTANCE=0,attributes={delay:{type:Number,default:DEFAULT_DELAY},distance:{type:Number,default:DEFAULT_DISTANCE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},getScrollOptions=($,k)=>Object.entries(attributes).reduce((V,[z,j])=>{var oe,re;const{type:ie,default:ae}=j,he=$.getAttribute(`infinite-scroll-${z}`);let le=(re=(oe=k[he])!=null?oe:he)!=null?re:ae;return le=le==="false"?!1:le,le=ie(le),V[z]=Number.isNaN(le)?ae:le,V},{}),destroyObserver=$=>{const{observer:k}=$[SCOPE];k&&(k.disconnect(),delete $[SCOPE].observer)},handleScroll=($,k)=>{const{container:V,containerEl:z,instance:j,observer:oe,lastScrollTop:re}=$[SCOPE],{disabled:ie,distance:ae}=getScrollOptions($,j),{clientHeight:he,scrollHeight:le,scrollTop:ue}=z,de=ue-re;if($[SCOPE].lastScrollTop=ue,oe||ie||de<0)return;let pe=!1;if(V===$)pe=le-(he+ue)<=ae;else{const{clientTop:$e,scrollHeight:_e}=$,Ce=getOffsetTopDistance($,z);pe=ue+he>=Ce+$e+_e-ae}pe&&k.call(j)};function checkFull($,k){const{containerEl:V,instance:z}=$[SCOPE],{disabled:j}=getScrollOptions($,z);j||V.clientHeight===0||(V.scrollHeight<=V.clientHeight?k.call(z):destroyObserver($))}const InfiniteScroll={async mounted($,k){const{instance:V,value:z}=k;isFunction$3(z)||throwError(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:j,immediate:oe}=getScrollOptions($,V),re=getScrollContainer($,!0),ie=re===window?document.documentElement:re,ae=throttle(handleScroll.bind(null,$,z),j);if(!!re){if($[SCOPE]={instance:V,container:re,containerEl:ie,delay:j,cb:z,onScroll:ae,lastScrollTop:ie.scrollTop},oe){const he=new MutationObserver(throttle(checkFull.bind(null,$,z),CHECK_INTERVAL));$[SCOPE].observer=he,he.observe($,{childList:!0,subtree:!0}),checkFull($,z)}re.addEventListener("scroll",ae)}},unmounted($){const{container:k,onScroll:V}=$[SCOPE];k==null||k.removeEventListener("scroll",V),destroyObserver($)},async updated($){$[SCOPE]||await nextTick();const{containerEl:k,cb:V,observer:z}=$[SCOPE];k.clientHeight&&z&&checkFull($,V)}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=$=>{$.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent($){let k;const V=ref(!1),z=reactive(mo(oo({},$),{originalPosition:"",originalOverflow:"",visible:!1}));function j(de){z.text=de}function oe(){const de=z.parent;if(!de.vLoadingAddClassList){let pe=de.getAttribute("loading-number");pe=Number.parseInt(pe)-1,pe?de.setAttribute("loading-number",pe.toString()):(removeClass(de,"el-loading-parent--relative"),de.removeAttribute("loading-number")),removeClass(de,"el-loading-parent--hidden")}re(),le.unmount()}function re(){var de,pe;(pe=(de=ue.$el)==null?void 0:de.parentNode)==null||pe.removeChild(ue.$el)}function ie(){var de;if($.beforeClose&&!$.beforeClose())return;const pe=z.parent;pe.vLoadingAddClassList=void 0,V.value=!0,clearTimeout(k),k=window.setTimeout(()=>{V.value&&(V.value=!1,oe())},400),z.visible=!1,(de=$.closed)==null||de.call($)}function ae(){!V.value||(V.value=!1,oe())}const le=createApp({name:"ElLoading",setup(){return()=>{const de=z.spinner||z.svg,pe=h$2("svg",oo({class:"circular",viewBox:z.svgViewBox?z.svgViewBox:"25 25 50 50"},de?{innerHTML:de}:{}),[h$2("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),$e=z.text?h$2("p",{class:"el-loading-text"},[z.text]):void 0;return h$2(Transition,{name:"el-loading-fade",onAfterLeave:ae},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:z.background||""},class:["el-loading-mask",z.customClass,z.fullscreen?"is-fullscreen":""]},[h$2("div",{class:"el-loading-spinner"},[pe,$e])]),[[vShow,z.visible]])])})}}}),ue=le.mount(document.createElement("div"));return mo(oo({},toRefs(z)),{setText:j,remvoeElLoadingChild:re,close:ie,handleAfterLeave:ae,vm:ue,get $el(){return ue.$el}})}let fullscreenInstance;const Loading=function($={}){if(!isClient)return;const k=resolveOptions($);if(k.fullscreen&&fullscreenInstance)return fullscreenInstance;const V=createLoadingComponent(mo(oo({},k),{closed:()=>{var j;(j=k.closed)==null||j.call(k),k.fullscreen&&(fullscreenInstance=void 0)}}));addStyle(k,k.parent,V),addClassList(k,k.parent,V),k.parent.vLoadingAddClassList=()=>addClassList(k,k.parent,V);let z=k.parent.getAttribute("loading-number");return z?z=`${Number.parseInt(z)+1}`:z="1",k.parent.setAttribute("loading-number",z),k.parent.appendChild(V.$el),nextTick(()=>V.visible.value=k.visible),k.fullscreen&&(fullscreenInstance=V),V},resolveOptions=$=>{var k,V,z,j;let oe;return isString$3($.target)?oe=(k=document.querySelector($.target))!=null?k:document.body:oe=$.target||document.body,{parent:oe===document.body||$.body?document.body:oe,background:$.background||"",svg:$.svg||"",svgViewBox:$.svgViewBox||"",spinner:$.spinner||!1,text:$.text||"",fullscreen:oe===document.body&&((V=$.fullscreen)!=null?V:!0),lock:(z=$.lock)!=null?z:!1,customClass:$.customClass||"",visible:(j=$.visible)!=null?j:!0,target:oe}},addStyle=async($,k,V)=>{const{nextZIndex:z}=useZIndex(),j={};if($.fullscreen)V.originalPosition.value=getStyle(document.body,"position"),V.originalOverflow.value=getStyle(document.body,"overflow"),j.zIndex=z();else if($.parent===document.body){V.originalPosition.value=getStyle(document.body,"position"),await nextTick();for(const oe of["top","left"]){const re=oe==="top"?"scrollTop":"scrollLeft";j[oe]=`${$.target.getBoundingClientRect()[oe]+document.body[re]+document.documentElement[re]-Number.parseInt(getStyle(document.body,`margin-${oe}`),10)}px`}for(const oe of["height","width"])j[oe]=`${$.target.getBoundingClientRect()[oe]}px`}else V.originalPosition.value=getStyle(k,"position");for(const[oe,re]of Object.entries(j))V.$el.style[oe]=re},addClassList=($,k,V)=>{V.originalPosition.value!=="absolute"&&V.originalPosition.value!=="fixed"?addClass(k,"el-loading-parent--relative"):removeClass(k,"el-loading-parent--relative"),$.fullscreen&&$.lock?addClass(k,"el-loading-parent--hidden"):removeClass(k,"el-loading-parent--hidden")},INSTANCE_KEY=Symbol("ElLoading"),createInstance=($,k)=>{var V,z,j,oe;const re=k.instance,ie=de=>isObject$5(k.value)?k.value[de]:void 0,ae=de=>{const pe=isString$3(de)&&(re==null?void 0:re[de])||de;return pe&&ref(pe)},he=de=>ae(ie(de)||$.getAttribute(`element-loading-${hyphenate(de)}`)),le=(V=ie("fullscreen"))!=null?V:k.modifiers.fullscreen,ue={text:he("text"),svg:he("svg"),svgViewBox:he("svgViewBox"),spinner:he("spinner"),background:he("background"),customClass:he("customClass"),fullscreen:le,target:(z=ie("target"))!=null?z:le?void 0:$,body:(j=ie("body"))!=null?j:k.modifiers.body,lock:(oe=ie("lock"))!=null?oe:k.modifiers.lock};$[INSTANCE_KEY]={options:ue,instance:Loading(ue)}},updateOptions=($,k)=>{for(const V of Object.keys(k))isRef(k[V])&&(k[V].value=$[V])},vLoading={mounted($,k){k.value&&createInstance($,k)},updated($,k){const V=$[INSTANCE_KEY];k.oldValue!==k.value&&(k.value&&!k.oldValue?createInstance($,k):k.value&&k.oldValue?isObject$5(k.value)&&updateOptions(k.value,V.options):V==null||V.instance.close())},unmounted($){var k;(k=$[INSTANCE_KEY])==null||k.instance.close()}},ElLoading={install($){$.directive("loading",vLoading),$.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["success","info","warning","error"],messageProps=buildProps({customClass:{type:String,default:""},center:{type:Boolean,default:!1},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:3e3},icon:{type:iconPropType,default:""},id:{type:String,default:""},message:{type:definePropType([String,Object,Function]),default:""},onClose:{type:definePropType(Function),required:!1},showClose:{type:Boolean,default:!1},type:{type:String,values:messageTypes,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:!1},repeatNum:{type:Number,default:1}}),messageEmits={destroy:()=>!0},_sfc_main$7=defineComponent({name:"ElMessage",components:oo({ElBadge,ElIcon},TypeComponents),props:messageProps,emits:messageEmits,setup($){const k=useNamespace("message"),V=ref(!1),z=ref($.type?$.type==="error"?"danger":$.type:"info");let j;const oe=computed(()=>{const de=$.type;return{[k.bm("icon",de)]:de&&TypeComponentsMap[de]}}),re=computed(()=>$.icon||TypeComponentsMap[$.type]||""),ie=computed(()=>({top:`${$.offset}px`,zIndex:$.zIndex}));function ae(){$.duration>0&&({stop:j}=useTimeoutFn(()=>{V.value&&le()},$.duration))}function he(){j==null||j()}function le(){V.value=!1}function ue({code:de}){de===EVENT_CODE.esc?V.value&&le():ae()}return onMounted(()=>{ae(),V.value=!0}),watch$1(()=>$.repeatNum,()=>{he(),ae()}),useEventListener(document,"keydown",ue),{ns:k,typeClass:oe,iconComponent:re,customStyle:ie,visible:V,badgeType:z,close:le,clearTimer:he,startTimer:ae}}}),_hoisted_1$6=["id"],_hoisted_2$5=["innerHTML"];function _sfc_render$7($,k,V,z,j,oe){const re=resolveComponent("el-badge"),ie=resolveComponent("el-icon"),ae=resolveComponent("close");return openBlock(),createBlock(Transition,{name:$.ns.b("fade"),onBeforeLeave:$.onClose,onAfterLeave:k[2]||(k[2]=he=>$.$emit("destroy"))},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:$.id,class:normalizeClass([$.ns.b(),{[$.ns.m($.type)]:$.type&&!$.icon},$.ns.is("center",$.center),$.ns.is("closable",$.showClose),$.customClass]),style:normalizeStyle($.customStyle),role:"alert",onMouseenter:k[0]||(k[0]=(...he)=>$.clearTimer&&$.clearTimer(...he)),onMouseleave:k[1]||(k[1]=(...he)=>$.startTimer&&$.startTimer(...he))},[$.repeatNum>1?(openBlock(),createBlock(re,{key:0,value:$.repeatNum,type:$.badgeType,class:normalizeClass($.ns.e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),$.iconComponent?(openBlock(),createBlock(ie,{key:1,class:normalizeClass([$.ns.e("icon"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass($.ns.e("content")),innerHTML:$.message},null,10,_hoisted_2$5)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass($.ns.e("content"))},toDisplayString$1($.message),3))]),$.showClose?(openBlock(),createBlock(ie,{key:2,class:normalizeClass($.ns.e("closeBtn")),onClick:withModifiers($.close,["stop"])},{default:withCtx(()=>[createVNode(ae)]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$6),[[vShow,$.visible]])]),_:3},8,["name","onBeforeLeave"])}var MessageConstructor=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);const instances=[];let seed$1=1;const message=function($={},k){if(!isClient)return{close:()=>{}};if(isNumber$1(messageConfig.max)&&instances.length>=messageConfig.max)return{close:()=>{}};if(!isVNode($)&&isObject$5($)&&$.grouping&&!isVNode($.message)&&instances.length){const ue=instances.find(de=>{var pe,$e,_e;return`${($e=(pe=de.vm.props)==null?void 0:pe.message)!=null?$e:""}`==`${(_e=$.message)!=null?_e:""}`});if(ue)return ue.vm.component.props.repeatNum+=1,ue.vm.component.props.type=($==null?void 0:$.type)||"info",{close:()=>le.component.proxy.visible=!1}}(isString$3($)||isVNode($))&&($={message:$});let V=$.offset||20;instances.forEach(({vm:ue})=>{var de;V+=(((de=ue.el)==null?void 0:de.offsetHeight)||0)+16}),V+=16;const{nextZIndex:z}=useZIndex(),j=`message_${seed$1++}`,oe=$.onClose,re=mo(oo({zIndex:z()},$),{offset:V,id:j,onClose:()=>{close$1(j,oe)}});let ie=document.body;isElement($.appendTo)?ie=$.appendTo:isString$3($.appendTo)&&(ie=document.querySelector($.appendTo)),isElement(ie)||(ie=document.body);const ae=document.createElement("div");ae.className=`container_${j}`;const he=re.message,le=createVNode(MessageConstructor,re,isFunction$3(he)?{default:he}:isVNode(he)?{default:()=>he}:null);return le.appContext=k||message._context,le.props.onDestroy=()=>{render(null,ae)},render(le,ae),instances.push({vm:le}),ie.appendChild(ae.firstElementChild),{close:()=>le.component.proxy.visible=!1}};messageTypes.forEach($=>{message[$]=(k={},V)=>((isString$3(k)||isVNode(k))&&(k={message:k}),message(mo(oo({},k),{type:$}),V))});function close$1($,k){const V=instances.findIndex(({vm:re})=>$===re.component.props.id);if(V===-1)return;const{vm:z}=instances[V];if(!z)return;k==null||k(z);const j=z.el.offsetHeight;instances.splice(V,1);const oe=instances.length;if(!(oe<1))for(let re=V;re=0;k--){const V=instances[k].vm.component;($=V==null?void 0:V.proxy)==null||$.close()}}message.closeAll=closeAll$1;message._context=null;const ElMessage=withInstallFunction(message,"$message"),_sfc_main$6=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:oo({ElButton,ElInput,ElOverlay,ElIcon},TypeComponents),inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup($,{emit:k}){const{t:V}=useLocale(),z=useNamespace("message-box"),j=ref(!1),{nextZIndex:oe}=useZIndex(),re=reactive({beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:oe()}),ie=computed(()=>{const Lt=re.type;return{[z.bm("icon",Lt)]:Lt&&TypeComponentsMap[Lt]}}),ae=useSize(computed(()=>$.buttonSize),{prop:!0,form:!0,formItem:!0}),he=computed(()=>re.icon||TypeComponentsMap[re.type]||""),le=computed(()=>!!re.message),ue=ref(),de=ref(),pe=ref(),$e=ref(),_e=computed(()=>re.confirmButtonClass);watch$1(()=>re.inputValue,async Lt=>{await nextTick(),$.boxType==="prompt"&&Lt!==null&&Ue()},{immediate:!0}),watch$1(()=>j.value,Lt=>{Lt&&(($.boxType==="alert"||$.boxType==="confirm")&&nextTick().then(()=>{var kt,Pt,jt;(jt=(Pt=(kt=$e.value)==null?void 0:kt.$el)==null?void 0:Pt.focus)==null||jt.call(Pt)}),re.zIndex=oe()),$.boxType==="prompt"&&(Lt?nextTick().then(()=>{pe.value&&pe.value.$el&&Dt().focus()}):(re.editorErrorMessage="",re.validateError=!1))});const Ce=computed(()=>$.draggable);useDraggable(ue,de,Ce),onMounted(async()=>{await nextTick(),$.closeOnHashChange&&on$1(window,"hashchange",Ie)}),onBeforeUnmount(()=>{$.closeOnHashChange&&off(window,"hashchange",Ie)});function Ie(){!j.value||(j.value=!1,nextTick(()=>{re.action&&k("action",re.action)}))}const ze=()=>{$.closeOnClickModal&&Oe(re.distinguishCancelAndClose?"close":"cancel")},Et=useSameTarget(ze),qe=Lt=>{if(re.inputType!=="textarea")return Lt.preventDefault(),Oe("confirm")},Oe=Lt=>{var kt;$.boxType==="prompt"&&Lt==="confirm"&&!Ue()||(re.action=Lt,re.beforeClose?(kt=re.beforeClose)==null||kt.call(re,Lt,re,Ie):Ie())},Ue=()=>{if($.boxType==="prompt"){const Lt=re.inputPattern;if(Lt&&!Lt.test(re.inputValue||""))return re.editorErrorMessage=re.inputErrorMessage||V("el.messagebox.error"),re.validateError=!0,!1;const kt=re.inputValidator;if(typeof kt=="function"){const Pt=kt(re.inputValue);if(Pt===!1)return re.editorErrorMessage=re.inputErrorMessage||V("el.messagebox.error"),re.validateError=!0,!1;if(typeof Pt=="string")return re.editorErrorMessage=Pt,re.validateError=!0,!1}}return re.editorErrorMessage="",re.validateError=!1,!0},Dt=()=>{const Lt=pe.value.$refs;return Lt.input||Lt.textarea},At=()=>{Oe("close")};return $.closeOnPressEscape?useModal({handleClose:At},j):usePreventGlobal(j,"keydown",Lt=>Lt.code===EVENT_CODE.esc),$.lockScroll&&useLockscreen(j),useRestoreActive(j),mo(oo({},toRefs(re)),{ns:z,overlayEvent:Et,visible:j,hasMessage:le,typeClass:ie,btnSize:ae,iconComponent:he,confirmButtonClasses:_e,rootRef:ue,headerRef:de,inputRef:pe,confirmRef:$e,doClose:Ie,handleClose:At,handleWrapperClick:ze,handleInputEnter:qe,handleAction:Oe,t:V})}}),_hoisted_1$5=["aria-label"],_hoisted_2$4={key:0},_hoisted_3$3=["innerHTML"];function _sfc_render$6($,k,V,z,j,oe){const re=resolveComponent("el-icon"),ie=resolveComponent("close"),ae=resolveComponent("el-input"),he=resolveComponent("el-button"),le=resolveComponent("el-overlay"),ue=resolveDirective("trap-focus");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:k[11]||(k[11]=de=>$.$emit("vanish"))},{default:withCtx(()=>[withDirectives(createVNode(le,{"z-index":$.zIndex,"overlay-class":[$.ns.is("message-box"),$.modalClass],mask:$.modal},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(`${$.ns.namespace.value}-overlay-message-box`),onClick:k[8]||(k[8]=(...de)=>$.overlayEvent.onClick&&$.overlayEvent.onClick(...de)),onMousedown:k[9]||(k[9]=(...de)=>$.overlayEvent.onMousedown&&$.overlayEvent.onMousedown(...de)),onMouseup:k[10]||(k[10]=(...de)=>$.overlayEvent.onMouseup&&$.overlayEvent.onMouseup(...de))},[withDirectives((openBlock(),createElementBlock("div",{ref:"rootRef",role:"dialog","aria-label":$.title||"dialog","aria-modal":"true",class:normalizeClass([$.ns.b(),$.customClass,$.ns.is("draggable",$.draggable),{[$.ns.m("center")]:$.center}]),style:normalizeStyle($.customStyle),onClick:k[7]||(k[7]=withModifiers(()=>{},["stop"]))},[$.title!==null&&$.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass($.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.iconComponent&&$.center?(openBlock(),createBlock(re,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1($.title),1)],2),$.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass($.ns.e("headerbtn")),"aria-label":"Close",onClick:k[0]||(k[0]=de=>$.handleAction($.distinguishCancelAndClose?"close":"cancel")),onKeydown:k[1]||(k[1]=withKeys(withModifiers(de=>$.handleAction($.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(re,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class"])],34)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("container"))},[$.iconComponent&&!$.center&&$.hasMessage?(openBlock(),createBlock(re,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("message"))},[renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createElementBlock("p",{key:1,innerHTML:$.message},null,8,_hoisted_3$3)):(openBlock(),createElementBlock("p",_hoisted_2$4,toDisplayString$1($.message),1))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass($.ns.e("input"))},[createVNode(ae,{ref:"inputRef",modelValue:$.inputValue,"onUpdate:modelValue":k[2]||(k[2]=de=>$.inputValue=de),type:$.inputType,placeholder:$.inputPlaceholder,class:normalizeClass({invalid:$.validateError}),onKeydown:withKeys($.handleInputEnter,["enter"])},null,8,["modelValue","type","placeholder","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass($.ns.e("errormsg")),style:normalizeStyle({visibility:$.editorErrorMessage?"visible":"hidden"})},toDisplayString$1($.editorErrorMessage),7)],2),[[vShow,$.showInput]])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("btns"))},[$.showCancelButton?(openBlock(),createBlock(he,{key:0,loading:$.cancelButtonLoading,class:normalizeClass([$.cancelButtonClass]),round:$.roundButton,size:$.btnSize,onClick:k[3]||(k[3]=de=>$.handleAction("cancel")),onKeydown:k[4]||(k[4]=withKeys(withModifiers(de=>$.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.cancelButtonText||$.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(he,{ref:"confirmRef",type:"primary",loading:$.confirmButtonLoading,class:normalizeClass([$.confirmButtonClasses]),round:$.roundButton,disabled:$.confirmButtonDisabled,size:$.btnSize,onClick:k[5]||(k[5]=de=>$.handleAction("confirm")),onKeydown:k[6]||(k[6]=withKeys(withModifiers(de=>$.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.confirmButtonText||$.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,$.showConfirmButton]])],2)],14,_hoisted_1$5)),[[ue]])],34)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,$.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,initInstance=($,k,V=null)=>{const z=h$2(MessageBoxConstructor,$);return z.appContext=V,render(z,k),document.body.appendChild(k.firstElementChild),z.component},genContainer=()=>document.createElement("div"),showMessage=($,k)=>{const V=genContainer();$.onVanish=()=>{render(null,V),messageInstance.delete(j)},$.onAction=oe=>{const re=messageInstance.get(j);let ie;$.showInput?ie={value:j.inputValue,action:oe}:ie=oe,$.callback?$.callback(ie,z.proxy):oe==="cancel"||oe==="close"?$.distinguishCancelAndClose&&oe!=="cancel"?re.reject("close"):re.reject("cancel"):re.resolve(ie)};const z=initInstance($,V,k),j=z.proxy;for(const oe in $)hasOwn$2($,oe)&&!hasOwn$2(j.$props,oe)&&(j[oe]=$[oe]);return watch$1(()=>j.message,(oe,re)=>{isVNode(oe)?z.slots.default=()=>[oe]:isVNode(re)&&!isVNode(oe)&&delete z.slots.default},{immediate:!0}),j.visible=!0,j};function MessageBox($,k=null){if(!isClient)return Promise.reject();let V;return isString$3($)||isVNode($)?$={message:$}:V=$.callback,new Promise((z,j)=>{const oe=showMessage($,k!=null?k:MessageBox._context);messageInstance.set(oe,{options:$,callback:V,resolve:z,reject:j})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach($=>{MessageBox[$]=messageBoxFactory($)});function messageBoxFactory($){return(k,V,z,j)=>{let oe;return isObject$5(V)?(z=V,oe=""):isUndefined(V)?oe="":oe=V,MessageBox(Object.assign(oo({title:oe,message:k,type:""},MESSAGE_BOX_DEFAULT_OPTS[$]),z,{boxType:$}),j)}}MessageBox.close=()=>{messageInstance.forEach(($,k)=>{k.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=$=>{_MessageBox._context=$._context,$.config.globalProperties.$msgbox=_MessageBox,$.config.globalProperties.$messageBox=_MessageBox,$.config.globalProperties.$alert=_MessageBox.alert,$.config.globalProperties.$confirm=_MessageBox.confirm,$.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:definePropType([String,Object]),default:""},id:{type:String,default:""},message:{type:definePropType([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:definePropType(Function),default:()=>{}},onClose:{type:definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...notificationTypes,""],default:""},zIndex:{type:Number,default:0}}),notificationEmits={destroy:()=>!0},_sfc_main$5=defineComponent({name:"ElNotification",components:oo({ElIcon},TypeComponents),props:notificationProps,emits:notificationEmits,setup($){const k=useNamespace("notification"),V=ref(!1);let z;const j=computed(()=>{const pe=$.type;return pe&&TypeComponentsMap[$.type]?k.m(pe):""}),oe=computed(()=>TypeComponentsMap[$.type]||$.icon||""),re=computed(()=>$.position.endsWith("right")?"right":"left"),ie=computed(()=>$.position.startsWith("top")?"top":"bottom"),ae=computed(()=>({[ie.value]:`${$.offset}px`,zIndex:$.zIndex}));function he(){$.duration>0&&({stop:z}=useTimeoutFn(()=>{V.value&&ue()},$.duration))}function le(){z==null||z()}function ue(){V.value=!1}function de({code:pe}){pe===EVENT_CODE.delete||pe===EVENT_CODE.backspace?le():pe===EVENT_CODE.esc?V.value&&ue():he()}return onMounted(()=>{he(),V.value=!0}),useEventListener(document,"keydown",de),{ns:k,horizontalClass:re,typeClass:j,iconComponent:oe,positionStyle:ae,visible:V,close:ue,clearTimer:le,startTimer:he}}}),_hoisted_1$4=["id"],_hoisted_2$3=["textContent"],_hoisted_3$2={key:0},_hoisted_4$2=["innerHTML"];function _sfc_render$5($,k,V,z,j,oe){const re=resolveComponent("el-icon"),ie=resolveComponent("close");return openBlock(),createBlock(Transition,{name:$.ns.b("fade"),onBeforeLeave:$.onClose,onAfterLeave:k[3]||(k[3]=ae=>$.$emit("destroy"))},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:$.id,class:normalizeClass([$.ns.b(),$.customClass,$.horizontalClass]),style:normalizeStyle($.positionStyle),role:"alert",onMouseenter:k[0]||(k[0]=(...ae)=>$.clearTimer&&$.clearTimer(...ae)),onMouseleave:k[1]||(k[1]=(...ae)=>$.startTimer&&$.startTimer(...ae)),onClick:k[2]||(k[2]=(...ae)=>$.onClick&&$.onClick(...ae))},[$.iconComponent?(openBlock(),createBlock(re,{key:0,class:normalizeClass([$.ns.e("icon"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass($.ns.e("group"))},[createBaseVNode("h2",{class:normalizeClass($.ns.e("title")),textContent:toDisplayString$1($.title)},null,10,_hoisted_2$3),withDirectives(createBaseVNode("div",{class:normalizeClass($.ns.e("content")),style:normalizeStyle($.title?void 0:{margin:0})},[renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromized, nerver use user's input as message "),createCommentVNode(" eslint-disable-next-line "),createBaseVNode("p",{innerHTML:$.message},null,8,_hoisted_4$2)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$2,toDisplayString$1($.message),1))])],6),[[vShow,$.message]]),$.showClose?(openBlock(),createBlock(re,{key:0,class:normalizeClass($.ns.e("closeBtn")),onClick:withModifiers($.close,["stop"])},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$4),[[vShow,$.visible]])]),_:3},8,["name","onBeforeLeave"])}var NotificationConstructor=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const notifications={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},GAP_SIZE=16;let seed=1;const notify=function($={},k=null){if(!isClient)return{close:()=>{}};(typeof $=="string"||isVNode($))&&($={message:$});const V=$.position||"top-right";let z=$.offset||0;notifications[V].forEach(({vm:ue})=>{var de;z+=(((de=ue.el)==null?void 0:de.offsetHeight)||0)+GAP_SIZE}),z+=GAP_SIZE;const{nextZIndex:j}=useZIndex(),oe=`notification_${seed++}`,re=$.onClose,ie=mo(oo({zIndex:j(),offset:z},$),{id:oe,onClose:()=>{close(oe,V,re)}});let ae=document.body;isElement($.appendTo)?ae=$.appendTo:isString$3($.appendTo)&&(ae=document.querySelector($.appendTo)),isElement(ae)||(ae=document.body);const he=document.createElement("div"),le=createVNode(NotificationConstructor,ie,isVNode(ie.message)?{default:()=>ie.message}:null);return le.appContext=k!=null?k:notify._context,le.props.onDestroy=()=>{render(null,he)},render(le,he),notifications[V].push({vm:le}),ae.appendChild(he.firstElementChild),{close:()=>{le.component.proxy.visible=!1}}};notificationTypes.forEach($=>{notify[$]=(k={})=>((typeof k=="string"||isVNode(k))&&(k={message:k}),notify(mo(oo({},k),{type:$})))});function close($,k,V){const z=notifications[k],j=z.findIndex(({vm:he})=>{var le;return((le=he.component)==null?void 0:le.props.id)===$});if(j===-1)return;const{vm:oe}=z[j];if(!oe)return;V==null||V(oe);const re=oe.el.offsetHeight,ie=k.split("-")[0];z.splice(j,1);const ae=z.length;if(!(ae<1))for(let he=j;he{k.component.proxy.visible=!1})}notify.closeAll=closeAll;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]),FileSaver_min={exports:{}};(function($,k){(function(V,z){z()})(commonjsGlobal,function(){function V(he,le){return typeof le=="undefined"?le={autoBom:!1}:typeof le!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),le={autoBom:!le}),le.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(he.type)?new Blob(["\uFEFF",he],{type:he.type}):he}function z(he,le,ue){var de=new XMLHttpRequest;de.open("GET",he),de.responseType="blob",de.onload=function(){ae(de.response,le,ue)},de.onerror=function(){console.error("could not download file")},de.send()}function j(he){var le=new XMLHttpRequest;le.open("HEAD",he,!1);try{le.send()}catch{}return 200<=le.status&&299>=le.status}function oe(he){try{he.dispatchEvent(new MouseEvent("click"))}catch{var le=document.createEvent("MouseEvents");le.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),he.dispatchEvent(le)}}var re=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,ie=re.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ae=re.saveAs||(typeof window!="object"||window!==re?function(){}:"download"in HTMLAnchorElement.prototype&&!ie?function(he,le,ue){var de=re.URL||re.webkitURL,pe=document.createElement("a");le=le||he.name||"download",pe.download=le,pe.rel="noopener",typeof he=="string"?(pe.href=he,pe.origin===location.origin?oe(pe):j(pe.href)?z(he,le,ue):oe(pe,pe.target="_blank")):(pe.href=de.createObjectURL(he),setTimeout(function(){de.revokeObjectURL(pe.href)},4e4),setTimeout(function(){oe(pe)},0))}:"msSaveOrOpenBlob"in navigator?function(he,le,ue){if(le=le||he.name||"download",typeof he!="string")navigator.msSaveOrOpenBlob(V(he,ue),le);else if(j(he))z(he,le,ue);else{var de=document.createElement("a");de.href=he,de.target="_blank",setTimeout(function(){oe(de)})}}:function(he,le,ue,de){if(de=de||open("","_blank"),de&&(de.document.title=de.document.body.innerText="downloading..."),typeof he=="string")return z(he,le,ue);var pe=he.type==="application/octet-stream",$e=/constructor/i.test(re.HTMLElement)||re.safari,_e=/CriOS\/[\d]+/.test(navigator.userAgent);if((_e||pe&&$e||ie)&&typeof FileReader!="undefined"){var Ce=new FileReader;Ce.onloadend=function(){var Et=Ce.result;Et=_e?Et:Et.replace(/^data:[^;]*;/,"data:attachment/file;"),de?de.location.href=Et:location=Et,de=null},Ce.readAsDataURL(he)}else{var Ie=re.URL||re.webkitURL,ze=Ie.createObjectURL(he);de?de.location=ze:location.href=ze,de=null,setTimeout(function(){Ie.revokeObjectURL(ze)},4e4)}});re.saveAs=ae.saveAs=ae,$.exports=ae})})(FileSaver_min);const service=axios.create({baseURL:"http://localhost:5000/",timeout:5e4,headers:{"Content-Type":"application/json"}});service.interceptors.request.use($=>(Session.get("token")&&($.headers.common.Authorization=`${Session.get("token")}`),$),$=>Promise.reject($));service.interceptors.response.use($=>{const k=$.data;if(k.code&&k.code!==0)return k.code===401||k.code===4001?(Session.clear(),window.location.href="/",ElMessageBox.alert("\u4F60\u5DF2\u88AB\u767B\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","\u63D0\u793A",{}).then(()=>{}).catch(()=>{})):k.code===402?ElMessage.error("\u8D26\u53F7\u5BC6\u7801\u9519\u8BEF"):k.code===500?ElMessage.error("\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF:"+k.message):ElMessage.error("\u672A\u77E5\u9519\u8BEF"+k.code+":"+k.message),Promise.reject(service.interceptors.response);if($.data.size){let V=new Blob([k],{type:"application/xlsx"}),z=decodeURI($.headers["download-filename"]);FileSaver_min.exports.saveAs(V,z)}else return $.data.result},$=>($.message.indexOf("timeout")!=-1?ElMessage.error("\u7F51\u7EDC\u8D85\u65F6"):$.message=="Network Error"?ElMessage.error("\u7F51\u7EDC\u8FDE\u63A5\u9519\u8BEF"):$.response.status==401?(Session.clear(),window.location.href="/",ElMessageBox.alert("\u4F60\u5DF2\u88AB\u767B\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","\u63D0\u793A",{}).then(()=>{}).catch(()=>{})):$.response.status==403?ElMessage.error("\u6743\u9650\u4E0D\u8DB3"):$.response.status==500?ElMessage.error("\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF"):$.response.data?ElMessage.error($.response.statusText):ElMessage.error("\u63A5\u53E3\u8DEF\u5F84\u627E\u4E0D\u5230"),Promise.reject($)));function useMenuApi(){return{getMenuAdmin:$=>service({url:"getMenuList",method:"get",params:$}),getMenuTest:$=>service({url:"getMenuList",method:"get",params:$})}}const menuApi=useMenuApi(),layouModules={"../layout/routerView/iframes.vue":()=>__vitePreload(()=>import("./iframes.1654291592072.js"),["assets/iframes.1654291592072.js","assets/vue.1654291592072.js"]),"../layout/routerView/link.vue":()=>__vitePreload(()=>import("./link.1654291592072.js"),["assets/link.1654291592072.js","assets/vue.1654291592072.js"]),"../layout/routerView/parent.vue":()=>__vitePreload(()=>import("./parent.1654291592072.js"),["assets/parent.1654291592072.js","assets/vue.1654291592072.js"])},viewsModules={"../pages/home/index.vue":()=>__vitePreload(()=>import("./index.16542915920723.js"),["assets/index.16542915920723.js","assets/index.16542915920722.css","assets/echarts.1654291592072.js","assets/vue.1654291592072.js"]),"../pages/home/index2.vue":()=>__vitePreload(()=>import("./index2.1654291592072.js"),["assets/index2.1654291592072.js","assets/vue.1654291592072.js"]),"../pages/home/noPower.vue":()=>__vitePreload(()=>import("./noPower.1654291592072.js"),["assets/noPower.1654291592072.js","assets/vue.1654291592072.js"]),"../pages/ass/addr/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207220.js"),["assets/edit.165429159207220.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/ass/addr/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207220.js"),["assets/index.165429159207220.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/GenUpload.1654291592072.js","assets/amap.1654291592072.js"]),"../pages/ass/dict/data/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207213.js"),["assets/edit.165429159207213.js","assets/edit.16542915920722.js","assets/vue.1654291592072.js"]),"../pages/ass/dict/data/index.vue":()=>__vitePreload(()=>import("./index.165429159207218.js"),["assets/index.165429159207218.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207213.js","assets/edit.16542915920722.js"]),"../pages/ass/dict/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207212.js"),["assets/edit.165429159207212.js","assets/edit.16542915920722.js","assets/vue.1654291592072.js"]),"../pages/ass/dict/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207217.js"),["assets/index.165429159207217.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207212.js","assets/edit.16542915920722.js"]),"../pages/ass/num/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207214.js"),["assets/edit.165429159207214.js","assets/edit.16542915920722.js","assets/vue.1654291592072.js"]),"../pages/ass/num/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207219.js"),["assets/index.165429159207219.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207214.js","assets/edit.16542915920722.js"]),"../pages/oa/flow/cate/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207215.js"),["assets/edit.165429159207215.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/oa/flow/cate/index.vue":()=>__vitePreload(()=>import("./index.165429159207221.js"),["assets/index.165429159207221.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/oa/flow/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207217.js"),["assets/edit.165429159207217.js","assets/edit.1654291592072.css","assets/edit.16542915920722.js","assets/vue.1654291592072.js","assets/Modeler2.1654291592072.js","assets/Modeler2.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js"]),"../pages/oa/flow/main/FlowModal.vue":()=>__vitePreload(()=>import("./FlowModal.1654291592072.js"),["assets/FlowModal.1654291592072.js","assets/FlowModal.1654291592072.css","assets/vue.1654291592072.js","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),"../pages/oa/flow/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207223.js"),["assets/index.165429159207223.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css","assets/FlowModal.1654291592072.js","assets/FlowModal.1654291592072.css","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),"../pages/oa/flow/main/view.vue":()=>__vitePreload(()=>import("./view.16542915920723.js"),["assets/view.16542915920723.js","assets/view.1654291592072.css","assets/vue.1654291592072.js","assets/Modeler2.1654291592072.js","assets/Modeler2.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js"]),"../pages/oa/flow/temp/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207216.js"),["assets/edit.165429159207216.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/BpmnActions.1654291592072.js","assets/BpmnActions.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/oa/flow/temp/edit3.vue":()=>__vitePreload(()=>import("./edit3.1654291592072.js"),["assets/edit3.1654291592072.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/BpmnActions.1654291592072.js","assets/BpmnActions.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/store.1654291592072.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/oa/flow/temp/edit_new.vue":()=>__vitePreload(()=>import("./edit_new.1654291592072.js"),["assets/edit_new.1654291592072.js","assets/edit_new.1654291592072.css","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css","assets/Modeler.1654291592072.js","assets/Modeler.1654291592072.css","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/oa/flow/temp/index.vue":()=>__vitePreload(()=>import("./index.165429159207222.js"),["assets/index.165429159207222.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),"../pages/sa/agent/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207218.js"),["assets/edit.165429159207218.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css","assets/amap.1654291592072.js"]),"../pages/sa/agent/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207224.js"),["assets/index.165429159207224.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/GenUpload.1654291592072.js"]),"../pages/sa/agent/main/index2.vue":()=>__vitePreload(()=>import("./index2.16542915920722.js"),["assets/index2.16542915920722.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sa/cust/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207219.js"),["assets/edit.165429159207219.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/sa/cust/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207225.js"),["assets/index.165429159207225.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/api/main/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920726.js"),["assets/edit.16542915920726.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/sys/api/main/index.vue":()=>__vitePreload(()=>import("./index.16542915920729.js"),["assets/index.16542915920729.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/api/role/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920727.js"),["assets/edit.16542915920727.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/api/role/index.vue":()=>__vitePreload(()=>import("./index.165429159207210.js"),["assets/index.165429159207210.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/job/log/index.vue":()=>__vitePreload(()=>import("./index.165429159207215.js"),["assets/index.165429159207215.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/view.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/sys/job/log/view.vue":()=>__vitePreload(()=>import("./view.1654291592072.js"),["assets/view.1654291592072.js","assets/edit.16542915920722.js","assets/vue.1654291592072.js"]),"../pages/sys/job/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207211.js"),["assets/edit.165429159207211.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/job/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207214.js"),["assets/index.165429159207214.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/log/login/index.vue":()=>__vitePreload(()=>import("./index.165429159207216.js"),["assets/index.165429159207216.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/view.16542915920722.js","assets/edit.16542915920722.js"]),"../pages/sys/log/login/view.vue":()=>__vitePreload(()=>import("./view.16542915920722.js"),["assets/view.16542915920722.js","assets/edit.16542915920722.js","assets/vue.1654291592072.js"]),"../pages/sys/org/dept/edit.vue":()=>__vitePreload(()=>import("./edit.1654291592072.js"),["assets/edit.1654291592072.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/org/dept/index.vue":()=>__vitePreload(()=>import("./index.16542915920724.js"),["assets/index.16542915920724.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/org/group/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920725.js"),["assets/edit.16542915920725.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/org/group/index.vue":()=>__vitePreload(()=>import("./index.16542915920728.js"),["assets/index.16542915920728.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/org/post/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920724.js"),["assets/edit.16542915920724.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/org/post/index.vue":()=>__vitePreload(()=>import("./index.16542915920727.js"),["assets/index.16542915920727.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/org/user/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920723.js"),["assets/edit.16542915920723.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/org/user/index.vue":()=>__vitePreload(()=>import("./index.16542915920726.js"),["assets/index.16542915920726.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/portal/main/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920728.js"),["assets/edit.16542915920728.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/portal/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207211.js"),["assets/index.165429159207211.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/portal/menu/edit.vue":()=>__vitePreload(()=>import("./edit.16542915920729.js"),["assets/edit.16542915920729.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/sys/portal/menu/index.vue":()=>__vitePreload(()=>import("./index.165429159207212.js"),["assets/index.165429159207212.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.16542915920729.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/sys/portal/role/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207210.js"),["assets/edit.165429159207210.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/OrgModal.1654291592072.js","assets/OrgModal.1654291592072.css","assets/DeptTree.1654291592072.js","assets/DeptTree.1654291592072.css"]),"../pages/sys/portal/role/index.vue":()=>__vitePreload(()=>import("./index.165429159207213.js"),["assets/index.165429159207213.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/sys/todo/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207221.js"),["assets/edit.165429159207221.js","assets/edit.16542915920722.js","assets/vue.1654291592072.js"]),"../pages/sys/todo/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207227.js"),["assets/index.165429159207227.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/allot/check/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207222.js"),["assets/edit.165429159207222.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/allot/check/index.vue":()=>__vitePreload(()=>import("./index.165429159207228.js"),["assets/index.165429159207228.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/allot/drive/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207223.js"),["assets/edit.165429159207223.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/allot/drive/index.vue":()=>__vitePreload(()=>import("./index.165429159207229.js"),["assets/index.165429159207229.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/allot/link/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207224.js"),["assets/edit.165429159207224.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/allot/link/index.vue":()=>__vitePreload(()=>import("./index.165429159207230.js"),["assets/index.165429159207230.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/allot/param/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207225.js"),["assets/edit.165429159207225.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/allot/param/index.vue":()=>__vitePreload(()=>import("./index.165429159207231.js"),["assets/index.165429159207231.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/feat/check/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207226.js"),["assets/edit.165429159207226.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/te/feat/check/index.vue":()=>__vitePreload(()=>import("./index.165429159207232.js"),["assets/index.165429159207232.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/feat/comp/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207227.js"),["assets/edit.165429159207227.js","assets/vue.1654291592072.js"]),"../pages/te/feat/comp/index.vue":()=>__vitePreload(()=>import("./index.165429159207233.js"),["assets/index.165429159207233.js","assets/vue.1654291592072.js"]),"../pages/te/feat/drive/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207228.js"),["assets/edit.165429159207228.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/te/feat/drive/index.vue":()=>__vitePreload(()=>import("./index.165429159207234.js"),["assets/index.165429159207234.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/feat/link/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207229.js"),["assets/edit.165429159207229.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/feat/link/index.vue":()=>__vitePreload(()=>import("./index.165429159207235.js"),["assets/index.165429159207235.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/feat/param/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207230.js"),["assets/edit.165429159207230.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css","assets/xutil.1654291592072.js"]),"../pages/te/feat/param/index.vue":()=>__vitePreload(()=>import("./index.165429159207236.js"),["assets/index.165429159207236.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"]),"../pages/te/feat/screen/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207231.js"),["assets/edit.165429159207231.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/feat/screen/index.vue":()=>__vitePreload(()=>import("./index.165429159207237.js"),["assets/index.165429159207237.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207231.js","assets/edit.16542915920722.js"]),"../pages/te/prod/cate/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207232.js"),["assets/edit.165429159207232.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/prod/cate/index.vue":()=>__vitePreload(()=>import("./index.165429159207238.js"),["assets/index.165429159207238.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207232.js","assets/edit.16542915920722.js"]),"../pages/te/prod/model/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207233.js"),["assets/edit.165429159207233.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/prod/model/index.vue":()=>__vitePreload(()=>import("./index.165429159207239.js"),["assets/index.165429159207239.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207233.js","assets/edit.16542915920722.js"]),"../pages/te/prod/serie/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207234.js"),["assets/edit.165429159207234.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/prod/serie/index.vue":()=>__vitePreload(()=>import("./index.165429159207240.js"),["assets/index.165429159207240.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207234.js","assets/edit.16542915920722.js"]),"../pages/te/prod/test/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207235.js"),["assets/edit.165429159207235.js","assets/vue.1654291592072.js"]),"../pages/te/prod/test/index.vue":()=>__vitePreload(()=>import("./index.165429159207241.js"),["assets/index.165429159207241.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/ProdModal.1654291592072.js","assets/ProdModal.1654291592072.css"]),"../pages/te/prod/test/ProdModal.vue":()=>__vitePreload(()=>import("./ProdModal.1654291592072.js"),["assets/ProdModal.1654291592072.js","assets/ProdModal.1654291592072.css","assets/vue.1654291592072.js"]),"../pages/te/prod/version/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207236.js"),["assets/edit.165429159207236.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/te/prod/version/index.vue":()=>__vitePreload(()=>import("./index.165429159207242.js"),["assets/index.165429159207242.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/Wrap.1654291592072.js","assets/GenTree.1654291592072.js","assets/GenTree.1654291592072.css"]),"../pages/te/tran/cate/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207237.js"),["assets/edit.165429159207237.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js"]),"../pages/te/tran/cate/index.vue":()=>__vitePreload(()=>import("./index.165429159207243.js"),["assets/index.165429159207243.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js","assets/edit.165429159207237.js","assets/edit.16542915920722.js"]),"../pages/te/tran/main/edit.vue":()=>__vitePreload(()=>import("./edit.165429159207238.js"),["assets/edit.165429159207238.js","assets/vue.1654291592072.js","assets/edit.16542915920722.js","assets/GenModal.1654291592072.js","assets/GenModal.1654291592072.css"]),"../pages/te/tran/main/index.vue":()=>__vitePreload(()=>import("./index.165429159207244.js"),["assets/index.165429159207244.js","assets/vue.1654291592072.js","assets/index.16542915920725.js","assets/xutil.1654291592072.js"])},dynamicViewsModules=Object.assign({},oo({},layouModules),oo({},viewsModules));async function initBackEndControlRoutes(){if(window.nextLoading===void 0&&NextLoading.start(),!Session.get("token"))return!1;useUserInfo().setUserInfos();const $=await getBackEndControlRoutes();$===409&&(Session.clear(),location.href="/#/login"),$.portals&&$.portals.length>0&&useUserInfo().setUserInfos2($.portals),useRequestOldRoutes().setRequestOldRoutes($.menus),dynamicRoutes[0].children=await backEndComponent($.menus),await setAddRoute(),await setFilterMenuAndCacheTagsViewRoutes()}async function initBackEndControlRoutesByLogin($){window.nextLoading===void 0&&NextLoading.start(),$.portals&&$.portals.length>0?useUserInfo().setUserInfos2($.portals):useUserInfo().setUserInfos(),useRequestOldRoutes().setRequestOldRoutes($.menus),dynamicRoutes[0].children=await backEndComponent($.menus),await setAddRoute(),await setFilterMenuAndCacheTagsViewRoutes()}async function initBackEndControlRoutesByPortal($){useRequestOldRoutes().setRequestOldRoutes($.menus),dynamicRoutes[0].children=await backEndComponent($.menus),await setAddRoute(),await setFilterMenuAndCacheTagsViewRoutes()}function setFilterMenuAndCacheTagsViewRoutes(){useRoutesList(pinia).setRoutesList(dynamicRoutes[0].children),setCacheTagsViewRoutes()}function setCacheTagsViewRoutes(){useTagsViewRoutes(pinia).setTagsViewRoutes(formatTwoStageRoutes(formatFlatteningRoutes(dynamicRoutes))[0].children)}function setFilterRouteEnd(){let $=formatTwoStageRoutes(formatFlatteningRoutes(dynamicRoutes));return $[0].children=[...$[0].children,...notFoundAndNoPower],$}async function setAddRoute(){await setFilterRouteEnd().forEach($=>{router.addRoute($)})}function getBackEndControlRoutes(){const $=useUserInfo(pinia),{userInfos:k}=storeToRefs($),V=k.value.roles[0];return V==="admin"||V==="sa"?menuApi.getMenuAdmin():menuApi.getMenuTest()}function backEndComponent($){if(!!$)return $.map(k=>(k.component&&(k.component=dynamicImport(dynamicViewsModules,k.component)),k.children&&backEndComponent(k.children),k.name=="Home"&&(k.meta.isAffix=!0),k))}function dynamicImport($,k){const z=Object.keys($).filter(j=>{const oe=j.replace(/..\/pages|../,"");return oe==`${k}.vue`||oe==`/${k}.vue`});if((z==null?void 0:z.length)===1){const j=z[0];return $[j]}if((z==null?void 0:z.length)>1)return!1}const storesThemeConfig=useThemeConfig(pinia),{themeConfig:themeConfig$1}=storeToRefs(storesThemeConfig),{isRequestRoutes}=themeConfig$1.value;isRequestRoutes&&staticRoutes.splice(0,1);const router=createRouter({history:createWebHashHistory(),routes:staticRoutes});function formatFlatteningRoutes($){if($.length<=0)return!1;for(let k=0;k<$.length;k++)$[k].children&&($=$.slice(0,k+1).concat($[k].children,$.slice(k+1)));return $}function formatTwoStageRoutes($){if($.length<=0)return!1;const k=[],V=[];return $.forEach(z=>{z.path==="/"?k.push({component:z.component,name:z.name,path:z.path,redirect:z.redirect,meta:z.meta,children:[]}):(z.path.indexOf("/:")>-1&&(z.meta.isDynamic=!0,z.meta.isDynamicPath=z.path),k[0].children.push(oo({},z)),k[0].meta.isKeepAlive&&z.meta.isKeepAlive&&(V.push(z.name),useKeepALiveNames(pinia).setCacheKeepAlive(V)))}),k}isRequestRoutes||initFrontEndControlRoutes();router.beforeEach(async($,k,V)=>{NProgress.configure({showSpinner:!1}),$.meta.title&&NProgress.start();const z=Session.get("token");if($.path==="/login"&&!z)V(),NProgress.done();else if(!z)V(`/login?redirect=${$.path}¶ms=${JSON.stringify($.query?$.query:$.params)}`),Session.clear(),NProgress.done();else if(z&&$.path==="/login")V("/home"),NProgress.done();else{const j=useRoutesList(pinia),{routesList:oe}=storeToRefs(j);oe.value.length===0?isRequestRoutes&&(await initBackEndControlRoutes(),V(mo(oo({},$),{replace:!0}))):V()}});router.afterEach(()=>{NProgress.done()});var vueI18n_cjs={};/*! -* @intlify/shared v9.1.10 -* (c) 2022 kazuya kawaguchi -* Released under the MIT License. -*/const inBrowser=typeof window!="undefined";let mark,measure;const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format($,...k){return k.length===1&&isObject$1(k[0])&&(k=k[0]),(!k||!k.hasOwnProperty)&&(k={}),$.replace(RE_ARGS,(V,z)=>k.hasOwnProperty(z)?k[z]:"")}const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",makeSymbol=$=>hasSymbol?Symbol($):$,generateFormatCacheKey=($,k,V)=>friendlyJSONstringify({l:$,k,s:V}),friendlyJSONstringify=$=>JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=$=>typeof $=="number"&&isFinite($),isDate=$=>toTypeString($)==="[object Date]",isRegExp=$=>toTypeString($)==="[object RegExp]",isEmptyObject=$=>isPlainObject($)&&Object.keys($).length===0;function warn($,k){typeof console!="undefined"&&(console.warn("[intlify] "+$),k&&console.warn(k.stack))}const assign=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function escapeHtml($){return $.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn$1($,k){return hasOwnProperty$1.call($,k)}const isArray=Array.isArray,isFunction=$=>typeof $=="function",isString=$=>typeof $=="string",isBoolean=$=>typeof $=="boolean",isSymbol=$=>typeof $=="symbol",isObject$1=$=>$!==null&&typeof $=="object",isPromise=$=>isObject$1($)&&isFunction($.then)&&isFunction($.catch),objectToString=Object.prototype.toString,toTypeString=$=>objectToString.call($),isPlainObject=$=>toTypeString($)==="[object Object]",toDisplayString=$=>$==null?"":isArray($)||isPlainObject($)&&$.toString===objectToString?JSON.stringify($,null,2):String($),RANGE=2;function generateCodeFrame($,k=0,V=$.length){const z=$.split(/\r?\n/);let j=0;const oe=[];for(let re=0;re=k){for(let ie=re-RANGE;ie<=re+RANGE||V>j;ie++){if(ie<0||ie>=z.length)continue;const ae=ie+1;oe.push(`${ae}${" ".repeat(3-String(ae).length)}| ${z[ie]}`);const he=z[ie].length;if(ie===re){const le=k-(j-he)+1,ue=Math.max(1,V>j?he-le:V-k);oe.push(" | "+" ".repeat(le)+"^".repeat(ue))}else if(ie>re){if(V>j){const le=Math.max(Math.min(V-j,he),1);oe.push(" | "+"^".repeat(le))}j+=he+1}}break}return oe.join(` -`)}function createEmitter(){const $=new Map;return{events:$,on(V,z){const j=$.get(V);j&&j.push(z)||$.set(V,[z])},off(V,z){const j=$.get(V);j&&j.splice(j.indexOf(z)>>>0,1)},emit(V,z){($.get(V)||[]).slice().map(j=>j(z)),($.get("*")||[]).slice().map(j=>j(V,z))}}}var shared_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,assign,createEmitter,escapeHtml,format,friendlyJSONstringify,generateCodeFrame,generateFormatCacheKey,getGlobalThis,hasOwn:hasOwn$1,inBrowser,isArray,isBoolean,isDate,isEmptyObject,isFunction,isNumber,isObject:isObject$1,isPlainObject,isPromise,isRegExp,isString,isSymbol,makeSymbol,mark,measure,objectToString,toDisplayString,toTypeString,warn},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(shared_esmBundler);/*! -* @intlify/message-resolver v9.1.10 -* (c) 2022 kazuya kawaguchi -* Released under the MIT License. -*/const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn($,k){return hasOwnProperty.call($,k)}const isObject=$=>$!==null&&typeof $=="object",pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],["0"]:[3,0]};pathStateMachine[3]={i:[3,0],["0"]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral($){return literalValueRE.test($)}function stripQuotes($){const k=$.charCodeAt(0),V=$.charCodeAt($.length-1);return k===V&&(k===34||k===39)?$.slice(1,-1):$}function getPathCharType($){if($==null)return"o";switch($.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return $;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 formatSubPath($){const k=$.trim();return $.charAt(0)==="0"&&isNaN(parseInt($))?!1:isLiteral(k)?stripQuotes(k):"*"+k}function parse($){const k=[];let V=-1,z=0,j=0,oe,re,ie,ae,he,le,ue;const de=[];de[0]=()=>{re===void 0?re=ie:re+=ie},de[1]=()=>{re!==void 0&&(k.push(re),re=void 0)},de[2]=()=>{de[0](),j++},de[3]=()=>{if(j>0)j--,z=4,de[0]();else{if(j=0,re===void 0||(re=formatSubPath(re),re===!1))return!1;de[1]()}};function pe(){const $e=$[V+1];if(z===5&&$e==="'"||z===6&&$e==='"')return V++,ie="\\"+$e,de[0](),!0}for(;z!==null;)if(V++,oe=$[V],!(oe==="\\"&&pe())){if(ae=getPathCharType(oe),ue=pathStateMachine[z],he=ue[ae]||ue.l||8,he===8||(z=he[0],he[1]!==void 0&&(le=de[he[1]],le&&(ie=oe,le()===!1))))return;if(z===7)return k}}const cache=new Map;function resolveValue($,k){if(!isObject($))return null;let V=cache.get(k);if(V||(V=parse(k),V&&cache.set(k,V)),!V)return null;const z=V.length;let j=$,oe=0;for(;oe$,DEFAULT_MESSAGE=$=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=$=>$.length===0?"":$.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault($,k){return $=Math.abs($),k===2?$?$>1?1:0:1:$?Math.min($,2):0}function getPluralIndex($){const k=isNumber($.pluralIndex)?$.pluralIndex:-1;return $.named&&(isNumber($.named.count)||isNumber($.named.n))?isNumber($.named.count)?$.named.count:isNumber($.named.n)?$.named.n:k:k}function normalizeNamed($,k){k.count||(k.count=$),k.n||(k.n=$)}function createMessageContext($={}){const k=$.locale,V=getPluralIndex($),z=isObject$1($.pluralRules)&&isString(k)&&isFunction($.pluralRules[k])?$.pluralRules[k]:pluralDefault,j=isObject$1($.pluralRules)&&isString(k)&&isFunction($.pluralRules[k])?pluralDefault:void 0,oe=Ce=>Ce[z(V,Ce.length,j)],re=$.list||[],ie=Ce=>re[Ce],ae=$.named||{};isNumber($.pluralIndex)&&normalizeNamed(V,ae);const he=Ce=>ae[Ce];function le(Ce){const Ie=isFunction($.messages)?$.messages(Ce):isObject$1($.messages)?$.messages[Ce]:!1;return Ie||($.parent?$.parent.message(Ce):DEFAULT_MESSAGE)}const ue=Ce=>$.modifiers?$.modifiers[Ce]:DEFAULT_MODIFIER,de=isPlainObject($.processor)&&isFunction($.processor.normalize)?$.processor.normalize:DEFAULT_NORMALIZE,pe=isPlainObject($.processor)&&isFunction($.processor.interpolate)?$.processor.interpolate:DEFAULT_INTERPOLATE,$e=isPlainObject($.processor)&&isString($.processor.type)?$.processor.type:DEFAULT_MESSAGE_DATA_TYPE,_e={list:ie,named:he,plural:oe,linked:(Ce,Ie)=>{const ze=le(Ce)(_e);return isString(Ie)?ue(Ie)(ze):ze},message:le,type:$e,interpolate:pe,normalize:de};return _e}/*! - * @intlify/message-compiler v9.1.10 - * (c) 2022 kazuya kawaguchi - * Released under the MIT License. - */function createCompileError($,k,V={}){const{domain:z,messages:j,args:oe}=V,re=$,ie=new SyntaxError(String(re));return ie.code=$,k&&(ie.location=k),ie.domain=z,ie}function defaultOnError($){throw $}function createPosition($,k,V){return{line:$,column:k,offset:V}}function createLocation($,k,V){const z={start:$,end:k};return V!=null&&(z.source=V),z}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=` -`,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner($){const k=$;let V=0,z=1,j=1,oe=0;const re=Dt=>k[Dt]===CHAR_CR&&k[Dt+1]===CHAR_LF,ie=Dt=>k[Dt]===CHAR_LF,ae=Dt=>k[Dt]===CHAR_PS,he=Dt=>k[Dt]===CHAR_LS,le=Dt=>re(Dt)||ie(Dt)||ae(Dt)||he(Dt),ue=()=>V,de=()=>z,pe=()=>j,$e=()=>oe,_e=Dt=>re(Dt)||ae(Dt)||he(Dt)?CHAR_LF:k[Dt],Ce=()=>_e(V),Ie=()=>_e(V+oe);function ze(){return oe=0,le(V)&&(z++,j=0),re(V)&&V++,V++,j++,k[V]}function Et(){return re(V+oe)&&oe++,oe++,k[V+oe]}function qe(){V=0,z=1,j=1,oe=0}function Oe(Dt=0){oe=Dt}function Ue(){const Dt=V+oe;for(;Dt!==V;)ze();oe=0}return{index:ue,line:de,column:pe,peekOffset:$e,charAt:_e,currentChar:Ce,currentPeek:Ie,next:ze,peek:Et,reset:qe,resetPeek:Oe,skipToPeek:Ue}}const EOF=void 0,LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer($,k={}){const V=k.location!==!1,z=createScanner($),j=()=>z.index(),oe=()=>createPosition(z.line(),z.column(),z.index()),re=oe(),ie=j(),ae={currentType:14,offset:ie,startLoc:re,endLoc:re,lastType:14,lastOffset:ie,lastStartLoc:re,lastEndLoc:re,braceNest:0,inLinked:!1,text:""},he=()=>ae,{onError:le}=k;function ue(Pn,Hn,eo,...Qn){const ao=he();if(Hn.column+=eo,Hn.offset+=eo,le){const ho=createLocation(ao.startLoc,Hn),uo=createCompileError(Pn,ho,{domain:ERROR_DOMAIN$1,args:Qn});le(uo)}}function de(Pn,Hn,eo){Pn.endLoc=oe(),Pn.currentType=Hn;const Qn={type:Hn};return V&&(Qn.loc=createLocation(Pn.startLoc,Pn.endLoc)),eo!=null&&(Qn.value=eo),Qn}const pe=Pn=>de(Pn,14);function $e(Pn,Hn){return Pn.currentChar()===Hn?(Pn.next(),Hn):(ue(0,oe(),0,Hn),"")}function _e(Pn){let Hn="";for(;Pn.currentPeek()===CHAR_SP||Pn.currentPeek()===CHAR_LF;)Hn+=Pn.currentPeek(),Pn.peek();return Hn}function Ce(Pn){const Hn=_e(Pn);return Pn.skipToPeek(),Hn}function Ie(Pn){if(Pn===EOF)return!1;const Hn=Pn.charCodeAt(0);return Hn>=97&&Hn<=122||Hn>=65&&Hn<=90||Hn===95}function ze(Pn){if(Pn===EOF)return!1;const Hn=Pn.charCodeAt(0);return Hn>=48&&Hn<=57}function Et(Pn,Hn){const{currentType:eo}=Hn;if(eo!==2)return!1;_e(Pn);const Qn=Ie(Pn.currentPeek());return Pn.resetPeek(),Qn}function qe(Pn,Hn){const{currentType:eo}=Hn;if(eo!==2)return!1;_e(Pn);const Qn=Pn.currentPeek()==="-"?Pn.peek():Pn.currentPeek(),ao=ze(Qn);return Pn.resetPeek(),ao}function Oe(Pn,Hn){const{currentType:eo}=Hn;if(eo!==2)return!1;_e(Pn);const Qn=Pn.currentPeek()===LITERAL_DELIMITER;return Pn.resetPeek(),Qn}function Ue(Pn,Hn){const{currentType:eo}=Hn;if(eo!==8)return!1;_e(Pn);const Qn=Pn.currentPeek()===".";return Pn.resetPeek(),Qn}function Dt(Pn,Hn){const{currentType:eo}=Hn;if(eo!==9)return!1;_e(Pn);const Qn=Ie(Pn.currentPeek());return Pn.resetPeek(),Qn}function At(Pn,Hn){const{currentType:eo}=Hn;if(!(eo===8||eo===12))return!1;_e(Pn);const Qn=Pn.currentPeek()===":";return Pn.resetPeek(),Qn}function Lt(Pn,Hn){const{currentType:eo}=Hn;if(eo!==10)return!1;const Qn=()=>{const ho=Pn.currentPeek();return ho==="{"?Ie(Pn.peek()):ho==="@"||ho==="%"||ho==="|"||ho===":"||ho==="."||ho===CHAR_SP||!ho?!1:ho===CHAR_LF?(Pn.peek(),Qn()):Ie(ho)},ao=Qn();return Pn.resetPeek(),ao}function kt(Pn){_e(Pn);const Hn=Pn.currentPeek()==="|";return Pn.resetPeek(),Hn}function Pt(Pn,Hn=!0){const eo=(ao=!1,ho="",uo=!1)=>{const Un=Pn.currentPeek();return Un==="{"?ho==="%"?!1:ao:Un==="@"||!Un?ho==="%"?!0:ao:Un==="%"?(Pn.peek(),eo(ao,"%",!0)):Un==="|"?ho==="%"||uo?!0:!(ho===CHAR_SP||ho===CHAR_LF):Un===CHAR_SP?(Pn.peek(),eo(!0,CHAR_SP,uo)):Un===CHAR_LF?(Pn.peek(),eo(!0,CHAR_LF,uo)):!0},Qn=eo();return Hn&&Pn.resetPeek(),Qn}function jt(Pn,Hn){const eo=Pn.currentChar();return eo===EOF?EOF:Hn(eo)?(Pn.next(),eo):null}function vn(Pn){return jt(Pn,eo=>{const Qn=eo.charCodeAt(0);return Qn>=97&&Qn<=122||Qn>=65&&Qn<=90||Qn>=48&&Qn<=57||Qn===95||Qn===36})}function $n(Pn){return jt(Pn,eo=>{const Qn=eo.charCodeAt(0);return Qn>=48&&Qn<=57})}function wn(Pn){return jt(Pn,eo=>{const Qn=eo.charCodeAt(0);return Qn>=48&&Qn<=57||Qn>=65&&Qn<=70||Qn>=97&&Qn<=102})}function _n(Pn){let Hn="",eo="";for(;Hn=$n(Pn);)eo+=Hn;return eo}function En(Pn){let Hn="";for(;;){const eo=Pn.currentChar();if(eo==="{"||eo==="}"||eo==="@"||eo==="|"||!eo)break;if(eo==="%")if(Pt(Pn))Hn+=eo,Pn.next();else break;else if(eo===CHAR_SP||eo===CHAR_LF)if(Pt(Pn))Hn+=eo,Pn.next();else{if(kt(Pn))break;Hn+=eo,Pn.next()}else Hn+=eo,Pn.next()}return Hn}function Sn(Pn){Ce(Pn);let Hn="",eo="";for(;Hn=vn(Pn);)eo+=Hn;return Pn.currentChar()===EOF&&ue(6,oe(),0),eo}function An(Pn){Ce(Pn);let Hn="";return Pn.currentChar()==="-"?(Pn.next(),Hn+=`-${_n(Pn)}`):Hn+=_n(Pn),Pn.currentChar()===EOF&&ue(6,oe(),0),Hn}function Cn(Pn){Ce(Pn),$e(Pn,"'");let Hn="",eo="";const Qn=ho=>ho!==LITERAL_DELIMITER&&ho!==CHAR_LF;for(;Hn=jt(Pn,Qn);)Hn==="\\"?eo+=Tn(Pn):eo+=Hn;const ao=Pn.currentChar();return ao===CHAR_LF||ao===EOF?(ue(2,oe(),0),ao===CHAR_LF&&(Pn.next(),$e(Pn,"'")),eo):($e(Pn,"'"),eo)}function Tn(Pn){const Hn=Pn.currentChar();switch(Hn){case"\\":case"'":return Pn.next(),`\\${Hn}`;case"u":return Nn(Pn,Hn,4);case"U":return Nn(Pn,Hn,6);default:return ue(3,oe(),0,Hn),""}}function Nn(Pn,Hn,eo){$e(Pn,Hn);let Qn="";for(let ao=0;aoao!=="{"&&ao!=="}"&&ao!==CHAR_SP&&ao!==CHAR_LF;for(;Hn=jt(Pn,Qn);)eo+=Hn;return eo}function On(Pn){let Hn="",eo="";for(;Hn=vn(Pn);)eo+=Hn;return eo}function Ln(Pn){const Hn=(eo=!1,Qn)=>{const ao=Pn.currentChar();return ao==="{"||ao==="%"||ao==="@"||ao==="|"||!ao||ao===CHAR_SP?Qn:ao===CHAR_LF?(Qn+=ao,Pn.next(),Hn(eo,Qn)):(Qn+=ao,Pn.next(),Hn(!0,Qn))};return Hn(!1,"")}function Bn(Pn){Ce(Pn);const Hn=$e(Pn,"|");return Ce(Pn),Hn}function Vn(Pn,Hn){let eo=null;switch(Pn.currentChar()){case"{":return Hn.braceNest>=1&&ue(8,oe(),0),Pn.next(),eo=de(Hn,2,"{"),Ce(Pn),Hn.braceNest++,eo;case"}":return Hn.braceNest>0&&Hn.currentType===2&&ue(7,oe(),0),Pn.next(),eo=de(Hn,3,"}"),Hn.braceNest--,Hn.braceNest>0&&Ce(Pn),Hn.inLinked&&Hn.braceNest===0&&(Hn.inLinked=!1),eo;case"@":return Hn.braceNest>0&&ue(6,oe(),0),eo=Fn(Pn,Hn)||pe(Hn),Hn.braceNest=0,eo;default:let ao=!0,ho=!0,uo=!0;if(kt(Pn))return Hn.braceNest>0&&ue(6,oe(),0),eo=de(Hn,1,Bn(Pn)),Hn.braceNest=0,Hn.inLinked=!1,eo;if(Hn.braceNest>0&&(Hn.currentType===5||Hn.currentType===6||Hn.currentType===7))return ue(6,oe(),0),Hn.braceNest=0,zn(Pn,Hn);if(ao=Et(Pn,Hn))return eo=de(Hn,5,Sn(Pn)),Ce(Pn),eo;if(ho=qe(Pn,Hn))return eo=de(Hn,6,An(Pn)),Ce(Pn),eo;if(uo=Oe(Pn,Hn))return eo=de(Hn,7,Cn(Pn)),Ce(Pn),eo;if(!ao&&!ho&&!uo)return eo=de(Hn,13,xn(Pn)),ue(1,oe(),0,eo.value),Ce(Pn),eo;break}return eo}function Fn(Pn,Hn){const{currentType:eo}=Hn;let Qn=null;const ao=Pn.currentChar();switch((eo===8||eo===9||eo===12||eo===10)&&(ao===CHAR_LF||ao===CHAR_SP)&&ue(9,oe(),0),ao){case"@":return Pn.next(),Qn=de(Hn,8,"@"),Hn.inLinked=!0,Qn;case".":return Ce(Pn),Pn.next(),de(Hn,9,".");case":":return Ce(Pn),Pn.next(),de(Hn,10,":");default:return kt(Pn)?(Qn=de(Hn,1,Bn(Pn)),Hn.braceNest=0,Hn.inLinked=!1,Qn):Ue(Pn,Hn)||At(Pn,Hn)?(Ce(Pn),Fn(Pn,Hn)):Dt(Pn,Hn)?(Ce(Pn),de(Hn,12,On(Pn))):Lt(Pn,Hn)?(Ce(Pn),ao==="{"?Vn(Pn,Hn)||Qn:de(Hn,11,Ln(Pn))):(eo===8&&ue(9,oe(),0),Hn.braceNest=0,Hn.inLinked=!1,zn(Pn,Hn))}}function zn(Pn,Hn){let eo={type:14};if(Hn.braceNest>0)return Vn(Pn,Hn)||pe(Hn);if(Hn.inLinked)return Fn(Pn,Hn)||pe(Hn);const Qn=Pn.currentChar();switch(Qn){case"{":return Vn(Pn,Hn)||pe(Hn);case"}":return ue(5,oe(),0),Pn.next(),de(Hn,3,"}");case"@":return Fn(Pn,Hn)||pe(Hn);default:if(kt(Pn))return eo=de(Hn,1,Bn(Pn)),Hn.braceNest=0,Hn.inLinked=!1,eo;if(Pt(Pn))return de(Hn,0,En(Pn));if(Qn==="%")return Pn.next(),de(Hn,4,"%");break}return eo}function Xn(){const{currentType:Pn,offset:Hn,startLoc:eo,endLoc:Qn}=ae;return ae.lastType=Pn,ae.lastOffset=Hn,ae.lastStartLoc=eo,ae.lastEndLoc=Qn,ae.offset=j(),ae.startLoc=oe(),z.currentChar()===EOF?de(ae,14):zn(z,ae)}return{nextToken:Xn,currentOffset:j,currentPosition:oe,context:he}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence($,k,V){switch($){case"\\\\":return"\\";case"\\'":return"'";default:{const z=parseInt(k||V,16);return z<=55295||z>=57344?String.fromCodePoint(z):"\uFFFD"}}}function createParser($={}){const k=$.location!==!1,{onError:V}=$;function z(Ie,ze,Et,qe,...Oe){const Ue=Ie.currentPosition();if(Ue.offset+=qe,Ue.column+=qe,V){const Dt=createLocation(Et,Ue),At=createCompileError(ze,Dt,{domain:ERROR_DOMAIN,args:Oe});V(At)}}function j(Ie,ze,Et){const qe={type:Ie,start:ze,end:ze};return k&&(qe.loc={start:Et,end:Et}),qe}function oe(Ie,ze,Et,qe){Ie.end=ze,qe&&(Ie.type=qe),k&&Ie.loc&&(Ie.loc.end=Et)}function re(Ie,ze){const Et=Ie.context(),qe=j(3,Et.offset,Et.startLoc);return qe.value=ze,oe(qe,Ie.currentOffset(),Ie.currentPosition()),qe}function ie(Ie,ze){const Et=Ie.context(),{lastOffset:qe,lastStartLoc:Oe}=Et,Ue=j(5,qe,Oe);return Ue.index=parseInt(ze,10),Ie.nextToken(),oe(Ue,Ie.currentOffset(),Ie.currentPosition()),Ue}function ae(Ie,ze){const Et=Ie.context(),{lastOffset:qe,lastStartLoc:Oe}=Et,Ue=j(4,qe,Oe);return Ue.key=ze,Ie.nextToken(),oe(Ue,Ie.currentOffset(),Ie.currentPosition()),Ue}function he(Ie,ze){const Et=Ie.context(),{lastOffset:qe,lastStartLoc:Oe}=Et,Ue=j(9,qe,Oe);return Ue.value=ze.replace(KNOWN_ESCAPES,fromEscapeSequence),Ie.nextToken(),oe(Ue,Ie.currentOffset(),Ie.currentPosition()),Ue}function le(Ie){const ze=Ie.nextToken(),Et=Ie.context(),{lastOffset:qe,lastStartLoc:Oe}=Et,Ue=j(8,qe,Oe);return ze.type!==12?(z(Ie,11,Et.lastStartLoc,0),Ue.value="",oe(Ue,qe,Oe),{nextConsumeToken:ze,node:Ue}):(ze.value==null&&z(Ie,13,Et.lastStartLoc,0,getTokenCaption(ze)),Ue.value=ze.value||"",oe(Ue,Ie.currentOffset(),Ie.currentPosition()),{node:Ue})}function ue(Ie,ze){const Et=Ie.context(),qe=j(7,Et.offset,Et.startLoc);return qe.value=ze,oe(qe,Ie.currentOffset(),Ie.currentPosition()),qe}function de(Ie){const ze=Ie.context(),Et=j(6,ze.offset,ze.startLoc);let qe=Ie.nextToken();if(qe.type===9){const Oe=le(Ie);Et.modifier=Oe.node,qe=Oe.nextConsumeToken||Ie.nextToken()}switch(qe.type!==10&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(qe)),qe=Ie.nextToken(),qe.type===2&&(qe=Ie.nextToken()),qe.type){case 11:qe.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(qe)),Et.key=ue(Ie,qe.value||"");break;case 5:qe.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(qe)),Et.key=ae(Ie,qe.value||"");break;case 6:qe.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(qe)),Et.key=ie(Ie,qe.value||"");break;case 7:qe.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(qe)),Et.key=he(Ie,qe.value||"");break;default:z(Ie,12,ze.lastStartLoc,0);const Oe=Ie.context(),Ue=j(7,Oe.offset,Oe.startLoc);return Ue.value="",oe(Ue,Oe.offset,Oe.startLoc),Et.key=Ue,oe(Et,Oe.offset,Oe.startLoc),{nextConsumeToken:qe,node:Et}}return oe(Et,Ie.currentOffset(),Ie.currentPosition()),{node:Et}}function pe(Ie){const ze=Ie.context(),Et=ze.currentType===1?Ie.currentOffset():ze.offset,qe=ze.currentType===1?ze.endLoc:ze.startLoc,Oe=j(2,Et,qe);Oe.items=[];let Ue=null;do{const Lt=Ue||Ie.nextToken();switch(Ue=null,Lt.type){case 0:Lt.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(Lt)),Oe.items.push(re(Ie,Lt.value||""));break;case 6:Lt.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(Lt)),Oe.items.push(ie(Ie,Lt.value||""));break;case 5:Lt.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(Lt)),Oe.items.push(ae(Ie,Lt.value||""));break;case 7:Lt.value==null&&z(Ie,13,ze.lastStartLoc,0,getTokenCaption(Lt)),Oe.items.push(he(Ie,Lt.value||""));break;case 8:const kt=de(Ie);Oe.items.push(kt.node),Ue=kt.nextConsumeToken||null;break}}while(ze.currentType!==14&&ze.currentType!==1);const Dt=ze.currentType===1?ze.lastOffset:Ie.currentOffset(),At=ze.currentType===1?ze.lastEndLoc:Ie.currentPosition();return oe(Oe,Dt,At),Oe}function $e(Ie,ze,Et,qe){const Oe=Ie.context();let Ue=qe.items.length===0;const Dt=j(1,ze,Et);Dt.cases=[],Dt.cases.push(qe);do{const At=pe(Ie);Ue||(Ue=At.items.length===0),Dt.cases.push(At)}while(Oe.currentType!==14);return Ue&&z(Ie,10,Et,0),oe(Dt,Ie.currentOffset(),Ie.currentPosition()),Dt}function _e(Ie){const ze=Ie.context(),{offset:Et,startLoc:qe}=ze,Oe=pe(Ie);return ze.currentType===14?Oe:$e(Ie,Et,qe,Oe)}function Ce(Ie){const ze=createTokenizer(Ie,assign({},$)),Et=ze.context(),qe=j(0,Et.offset,Et.startLoc);return k&&qe.loc&&(qe.loc.source=Ie),qe.body=_e(ze),Et.currentType!==14&&z(ze,13,Et.lastStartLoc,0,Ie[Et.offset]||""),oe(qe,ze.currentOffset(),ze.currentPosition()),qe}return{parse:Ce}}function getTokenCaption($){if($.type===14)return"EOF";const k=($.value||"").replace(/\r?\n/gu,"\\n");return k.length>10?k.slice(0,9)+"\u2026":k}function createTransformer($,k={}){const V={ast:$,helpers:new Set};return{context:()=>V,helper:oe=>(V.helpers.add(oe),oe)}}function traverseNodes($,k){for(let V=0;V<$.length;V++)traverseNode($[V],k)}function traverseNode($,k){switch($.type){case 1:traverseNodes($.cases,k),k.helper("plural");break;case 2:traverseNodes($.items,k);break;case 6:traverseNode($.key,k),k.helper("linked");break;case 5:k.helper("interpolate"),k.helper("list");break;case 4:k.helper("interpolate"),k.helper("named");break}}function transform($,k={}){const V=createTransformer($);V.helper("normalize"),$.body&&traverseNode($.body,V);const z=V.context();$.helpers=Array.from(z.helpers)}function createCodeGenerator($,k){const{sourceMap:V,filename:z,breakLineCode:j,needIndent:oe}=k,re={source:$.loc.source,filename:z,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:j,needIndent:oe,indentLevel:0},ie=()=>re;function ae(_e,Ce){re.code+=_e}function he(_e,Ce=!0){const Ie=Ce?j:"";ae(oe?Ie+" ".repeat(_e):Ie)}function le(_e=!0){const Ce=++re.indentLevel;_e&&he(Ce)}function ue(_e=!0){const Ce=--re.indentLevel;_e&&he(Ce)}function de(){he(re.indentLevel)}return{context:ie,push:ae,indent:le,deindent:ue,newline:de,helper:_e=>`_${_e}`,needIndent:()=>re.needIndent}}function generateLinkedNode($,k){const{helper:V}=$;$.push(`${V("linked")}(`),generateNode($,k.key),k.modifier&&($.push(", "),generateNode($,k.modifier)),$.push(")")}function generateMessageNode($,k){const{helper:V,needIndent:z}=$;$.push(`${V("normalize")}([`),$.indent(z());const j=k.items.length;for(let oe=0;oe1){$.push(`${V("plural")}([`),$.indent(z());const j=k.cases.length;for(let oe=0;oe{const V=isString(k.mode)?k.mode:"normal",z=isString(k.filename)?k.filename:"message.intl",j=!!k.sourceMap,oe=k.breakLineCode!=null?k.breakLineCode:V==="arrow"?";":` -`,re=k.needIndent?k.needIndent:V!=="arrow",ie=$.helpers||[],ae=createCodeGenerator($,{mode:V,filename:z,sourceMap:j,breakLineCode:oe,needIndent:re});ae.push(V==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),ae.indent(re),ie.length>0&&(ae.push(`const { ${ie.map(ue=>`${ue}: _${ue}`).join(", ")} } = ctx`),ae.newline()),ae.push("return "),generateNode(ae,$),ae.deindent(re),ae.push("}");const{code:he,map:le}=ae.context();return{ast:$,code:he,map:le?le.toJSON():void 0}};function baseCompile($,k={}){const V=assign({},k),j=createParser(V).parse($);return transform(j,V),generate(j,V)}/*! - * @intlify/devtools-if v9.1.10 - * (c) 2022 kazuya kawaguchi - * Released under the MIT License. - */const IntlifyDevToolsHooks={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! -* @intlify/core-base v9.1.10 -* (c) 2022 kazuya kawaguchi -* Released under the MIT License. -*/let devtools=null;function setDevToolsHook($){devtools=$}function getDevToolsHook(){return devtools}function initI18nDevTools($,k,V){devtools&&devtools.emit(IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:$,version:k,meta:V})}const translateDevTools=createDevToolsHook(IntlifyDevToolsHooks.FunctionTranslate);function createDevToolsHook($){return k=>devtools&&devtools.emit($,k)}const warnMessages$1={[0]:"Not found '{key}' key in '{locale}' locale messages.",[1]:"Fall back to translate '{key}' key with '{target}' locale.",[2]:"Cannot format a number value due to not supported Intl.NumberFormat.",[3]:"Fall back to number format '{key}' key with '{target}' locale.",[4]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[5]:"Fall back to datetime format '{key}' key with '{target}' locale."};function getWarnMessage$1($,...k){return format(warnMessages$1[$],...k)}const VERSION$1="9.1.10",NOT_REOSLVED=-1,MISSING_RESOLVE_VALUE="";function getDefaultLinkedModifiers(){return{upper:$=>isString($)?$.toUpperCase():$,lower:$=>isString($)?$.toLowerCase():$,capitalize:$=>isString($)?`${$.charAt(0).toLocaleUpperCase()}${$.substr(1)}`:$}}let _compiler;function registerMessageCompiler($){_compiler=$}let _additionalMeta=null;const setAdditionalMeta=$=>{_additionalMeta=$},getAdditionalMeta=()=>_additionalMeta;let _cid=0;function createCoreContext($={}){const k=isString($.version)?$.version:VERSION$1,V=isString($.locale)?$.locale:"en-US",z=isArray($.fallbackLocale)||isPlainObject($.fallbackLocale)||isString($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:V,j=isPlainObject($.messages)?$.messages:{[V]:{}},oe=isPlainObject($.datetimeFormats)?$.datetimeFormats:{[V]:{}},re=isPlainObject($.numberFormats)?$.numberFormats:{[V]:{}},ie=assign({},$.modifiers||{},getDefaultLinkedModifiers()),ae=$.pluralRules||{},he=isFunction($.missing)?$.missing:null,le=isBoolean($.missingWarn)||isRegExp($.missingWarn)?$.missingWarn:!0,ue=isBoolean($.fallbackWarn)||isRegExp($.fallbackWarn)?$.fallbackWarn:!0,de=!!$.fallbackFormat,pe=!!$.unresolving,$e=isFunction($.postTranslation)?$.postTranslation:null,_e=isPlainObject($.processor)?$.processor:null,Ce=isBoolean($.warnHtmlMessage)?$.warnHtmlMessage:!0,Ie=!!$.escapeParameter,ze=isFunction($.messageCompiler)?$.messageCompiler:_compiler,Et=isFunction($.onWarn)?$.onWarn:warn,qe=$,Oe=isObject$1(qe.__datetimeFormatters)?qe.__datetimeFormatters:new Map,Ue=isObject$1(qe.__numberFormatters)?qe.__numberFormatters:new Map,Dt=isObject$1(qe.__meta)?qe.__meta:{};return _cid++,{version:k,cid:_cid,locale:V,fallbackLocale:z,messages:j,datetimeFormats:oe,numberFormats:re,modifiers:ie,pluralRules:ae,missing:he,missingWarn:le,fallbackWarn:ue,fallbackFormat:de,unresolving:pe,postTranslation:$e,processor:_e,warnHtmlMessage:Ce,escapeParameter:Ie,messageCompiler:ze,onWarn:Et,__datetimeFormatters:Oe,__numberFormatters:Ue,__meta:Dt}}function isTranslateFallbackWarn($,k){return $ instanceof RegExp?$.test(k):$}function isTranslateMissingWarn($,k){return $ instanceof RegExp?$.test(k):$}function handleMissing($,k,V,z,j){const{missing:oe,onWarn:re}=$;if(oe!==null){const ie=oe($,V,k,j);return isString(ie)?ie:k}else return k}function getLocaleChain($,k,V){const z=$;z.__localeChainCache||(z.__localeChainCache=new Map);let j=z.__localeChainCache.get(V);if(!j){j=[];let oe=[V];for(;isArray(oe);)oe=appendBlockToChain(j,oe,k);const re=isArray(k)?k:isPlainObject(k)?k.default?k.default:null:k;oe=isString(re)?[re]:re,isArray(oe)&&appendBlockToChain(j,oe,!1),z.__localeChainCache.set(V,j)}return j}function appendBlockToChain($,k,V){let z=!0;for(let j=0;j$;let compileCache=Object.create(null);function clearCompileCache(){compileCache=Object.create(null)}function compileToFunction($,k={}){{const z=(k.onCacheKey||defaultOnCacheKey)($),j=compileCache[z];if(j)return j;let oe=!1;const re=k.onError||defaultOnError;k.onError=he=>{oe=!0,re(he)};const{code:ie}=baseCompile($,k),ae=new Function(`return ${ie}`)();return oe?ae:compileCache[z]=ae}}function createCoreError($){return createCompileError($,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=$=>isFunction($);function translate($,...k){const{fallbackFormat:V,postTranslation:z,unresolving:j,fallbackLocale:oe,messages:re}=$,[ie,ae]=parseTranslateArgs(...k),he=isBoolean(ae.missingWarn)?ae.missingWarn:$.missingWarn,le=isBoolean(ae.fallbackWarn)?ae.fallbackWarn:$.fallbackWarn,ue=isBoolean(ae.escapeParameter)?ae.escapeParameter:$.escapeParameter,de=!!ae.resolvedMessage,pe=isString(ae.default)||isBoolean(ae.default)?isBoolean(ae.default)?ie:ae.default:V?ie:"",$e=V||pe!=="",_e=isString(ae.locale)?ae.locale:$.locale;ue&&escapeParams(ae);let[Ce,Ie,ze]=de?[ie,_e,re[_e]||{}]:resolveMessageFormat($,ie,_e,oe,le,he),Et=ie;if(!de&&!(isString(Ce)||isMessageFunction(Ce))&&$e&&(Ce=pe,Et=Ce),!de&&(!(isString(Ce)||isMessageFunction(Ce))||!isString(Ie)))return j?NOT_REOSLVED:ie;let qe=!1;const Oe=()=>{qe=!0},Ue=isMessageFunction(Ce)?Ce:compileMessageFormat($,ie,Ie,Ce,Et,Oe);if(qe)return Ce;const Dt=getMessageContextOptions($,Ie,ze,ae),At=createMessageContext(Dt),Lt=evaluateMessage($,Ue,At);return z?z(Lt):Lt}function escapeParams($){isArray($.list)?$.list=$.list.map(k=>isString(k)?escapeHtml(k):k):isObject$1($.named)&&Object.keys($.named).forEach(k=>{isString($.named[k])&&($.named[k]=escapeHtml($.named[k]))})}function resolveMessageFormat($,k,V,z,j,oe){const{messages:re,onWarn:ie}=$,ae=getLocaleChain($,z,V);let he={},le,ue=null;const de="translate";for(let pe=0;pe{throw oe&&oe(re),re},onCacheKey:re=>generateFormatCacheKey(k,V,re)}}function getMessageContextOptions($,k,V,z){const{modifiers:j,pluralRules:oe}=$,ie={locale:k,modifiers:j,pluralRules:oe,messages:ae=>{const he=resolveValue(V,ae);if(isString(he)){let le=!1;const de=compileMessageFormat($,ae,k,he,ae,()=>{le=!0});return le?NOOP_MESSAGE_FUNCTION:de}else return isMessageFunction(he)?he:NOOP_MESSAGE_FUNCTION}};return $.processor&&(ie.processor=$.processor),z.list&&(ie.list=z.list),z.named&&(ie.named=z.named),isNumber(z.plural)&&(ie.pluralIndex=z.plural),ie}function datetime($,...k){const{datetimeFormats:V,unresolving:z,fallbackLocale:j,onWarn:oe}=$,{__datetimeFormatters:re}=$,[ie,ae,he,le]=parseDateTimeArgs(...k),ue=isBoolean(he.missingWarn)?he.missingWarn:$.missingWarn;isBoolean(he.fallbackWarn)?he.fallbackWarn:$.fallbackWarn;const de=!!he.part,pe=isString(he.locale)?he.locale:$.locale,$e=getLocaleChain($,j,pe);if(!isString(ie)||ie==="")return new Intl.DateTimeFormat(pe).format(ae);let _e={},Ce,Ie=null;const ze="datetime format";for(let Oe=0;Oe<$e.length&&(Ce=$e[Oe],_e=V[Ce]||{},Ie=_e[ie],!isPlainObject(Ie));Oe++)handleMissing($,ie,Ce,ue,ze);if(!isPlainObject(Ie)||!isString(Ce))return z?NOT_REOSLVED:ie;let Et=`${Ce}__${ie}`;isEmptyObject(le)||(Et=`${Et}__${JSON.stringify(le)}`);let qe=re.get(Et);return qe||(qe=new Intl.DateTimeFormat(Ce,assign({},Ie,le)),re.set(Et,qe)),de?qe.formatToParts(ae):qe.format(ae)}function parseDateTimeArgs(...$){const[k,V,z,j]=$;let oe={},re={},ie;if(isString(k)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(k))throw createCoreError(16);ie=new Date(k);try{ie.toISOString()}catch{throw createCoreError(16)}}else if(isDate(k)){if(isNaN(k.getTime()))throw createCoreError(15);ie=k}else if(isNumber(k))ie=k;else throw createCoreError(14);return isString(V)?oe.key=V:isPlainObject(V)&&(oe=V),isString(z)?oe.locale=z:isPlainObject(z)&&(re=z),isPlainObject(j)&&(re=j),[oe.key||"",ie,oe,re]}function clearDateTimeFormat($,k,V){const z=$;for(const j in V){const oe=`${k}__${j}`;!z.__datetimeFormatters.has(oe)||z.__datetimeFormatters.delete(oe)}}function number($,...k){const{numberFormats:V,unresolving:z,fallbackLocale:j,onWarn:oe}=$,{__numberFormatters:re}=$,[ie,ae,he,le]=parseNumberArgs(...k),ue=isBoolean(he.missingWarn)?he.missingWarn:$.missingWarn;isBoolean(he.fallbackWarn)?he.fallbackWarn:$.fallbackWarn;const de=!!he.part,pe=isString(he.locale)?he.locale:$.locale,$e=getLocaleChain($,j,pe);if(!isString(ie)||ie==="")return new Intl.NumberFormat(pe).format(ae);let _e={},Ce,Ie=null;const ze="number format";for(let Oe=0;Oe<$e.length&&(Ce=$e[Oe],_e=V[Ce]||{},Ie=_e[ie],!isPlainObject(Ie));Oe++)handleMissing($,ie,Ce,ue,ze);if(!isPlainObject(Ie)||!isString(Ce))return z?NOT_REOSLVED:ie;let Et=`${Ce}__${ie}`;isEmptyObject(le)||(Et=`${Et}__${JSON.stringify(le)}`);let qe=re.get(Et);return qe||(qe=new Intl.NumberFormat(Ce,assign({},Ie,le)),re.set(Et,qe)),de?qe.formatToParts(ae):qe.format(ae)}function parseNumberArgs(...$){const[k,V,z,j]=$;let oe={},re={};if(!isNumber(k))throw createCoreError(14);const ie=k;return isString(V)?oe.key=V:isPlainObject(V)&&(oe=V),isString(z)?oe.locale=z:isPlainObject(z)&&(re=z),isPlainObject(j)&&(re=j),[oe.key||"",ie,oe,re]}function clearNumberFormat($,k,V){const z=$;for(const j in V){const oe=`${k}__${j}`;!z.__numberFormatters.has(oe)||z.__numberFormatters.delete(oe)}}var coreBase_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,MISSING_RESOLVE_VALUE,NOT_REOSLVED,VERSION:VERSION$1,clearCompileCache,clearDateTimeFormat,clearNumberFormat,compileToFunction,createCoreContext,createCoreError,datetime,getAdditionalMeta,getDevToolsHook,getLocaleChain,getWarnMessage:getWarnMessage$1,handleMissing,initI18nDevTools,isMessageFunction,isTranslateFallbackWarn,isTranslateMissingWarn,number,parseDateTimeArgs,parseNumberArgs,parseTranslateArgs,registerMessageCompiler,setAdditionalMeta,setDevToolsHook,translate,translateDevTools,updateFallbackLocale,createCompileError,handleFlatJson,parse,resolveValue,DEFAULT_MESSAGE_DATA_TYPE,createMessageContext},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(coreBase_esmBundler),require$$0=getAugmentedNamespace(vue_runtime_esmBundler);/*! -* vue-i18n v9.1.10 -* (c) 2022 kazuya kawaguchi -* Released under the MIT License. -*/Object.defineProperty(vueI18n_cjs,"__esModule",{value:!0});var shared=require$$0$1,coreBase=require$$1,vue=require$$0;const VERSION="9.1.10",warnMessages={[6]:"Fall back to {type} '{key}' with root locale.",[7]:"Not supported 'preserve'.",[8]:"Not supported 'formatter'.",[9]:"Not supported 'preserveDirectiveContent'.",[10]:"Not supported 'getChoiceIndex'.",[11]:"Component name legacy compatible: '{name}' -> 'i18n'",[12]:"Not found parent scope. use the global scope."};function getWarnMessage($,...k){return shared.format(warnMessages[$],...k)}function createI18nError($,...k){return coreBase.createCompileError($,null,{messages:errorMessages,args:k})}const errorMessages={[14]:"Unexpected return type in composer",[15]:"Invalid argument",[16]:"Must be called at the top of a `setup` function",[17]:"Need to install with `app.use` function",[22]:"Unexpected error",[18]:"Not available in legacy mode",[19]:"Required in value: {0}",[20]:"Invalid value",[21]:"Cannot setup vue-devtools plugin"},DEVTOOLS_META="__INTLIFY_META__",TransrateVNodeSymbol=shared.makeSymbol("__transrateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");shared.makeSymbol("__intlifyMeta");const InejctWithOption=shared.makeSymbol("__injectWithOption");let composerID=0;function defineCoreMissingHandler($){return(k,V,z,j)=>$(V,z,vue.getCurrentInstance()||void 0,j)}function getLocaleMessages($,k){const{messages:V,__i18n:z}=k,j=shared.isPlainObject(V)?V:shared.isArray(z)?{}:{[$]:{}};if(shared.isArray(z)&&z.forEach(({locale:oe,resource:re})=>{oe?(j[oe]=j[oe]||{},deepCopy(re,j[oe])):deepCopy(re,j)}),k.flatJson)for(const oe in j)shared.hasOwn(j,oe)&&coreBase.handleFlatJson(j[oe]);return j}const isNotObjectOrIsArray=$=>!shared.isObject($)||shared.isArray($);function deepCopy($,k){if(isNotObjectOrIsArray($)||isNotObjectOrIsArray(k))throw createI18nError(20);for(const V in $)shared.hasOwn($,V)&&(isNotObjectOrIsArray($[V])||isNotObjectOrIsArray(k[V])?k[V]=$[V]:deepCopy($[V],k[V]))}const getMetaInfo=()=>{const $=vue.getCurrentInstance();return $&&$.type[DEVTOOLS_META]?{[DEVTOOLS_META]:$.type[DEVTOOLS_META]}:null};function createComposer($={}){const{__root:k}=$,V=k===void 0;let z=shared.isBoolean($.inheritLocale)?$.inheritLocale:!0;const j=vue.ref(k&&z?k.locale.value:shared.isString($.locale)?$.locale:"en-US"),oe=vue.ref(k&&z?k.fallbackLocale.value:shared.isString($.fallbackLocale)||shared.isArray($.fallbackLocale)||shared.isPlainObject($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:j.value),re=vue.ref(getLocaleMessages(j.value,$)),ie=vue.ref(shared.isPlainObject($.datetimeFormats)?$.datetimeFormats:{[j.value]:{}}),ae=vue.ref(shared.isPlainObject($.numberFormats)?$.numberFormats:{[j.value]:{}});let he=k?k.missingWarn:shared.isBoolean($.missingWarn)||shared.isRegExp($.missingWarn)?$.missingWarn:!0,le=k?k.fallbackWarn:shared.isBoolean($.fallbackWarn)||shared.isRegExp($.fallbackWarn)?$.fallbackWarn:!0,ue=k?k.fallbackRoot:shared.isBoolean($.fallbackRoot)?$.fallbackRoot:!0,de=!!$.fallbackFormat,pe=shared.isFunction($.missing)?$.missing:null,$e=shared.isFunction($.missing)?defineCoreMissingHandler($.missing):null,_e=shared.isFunction($.postTranslation)?$.postTranslation:null,Ce=shared.isBoolean($.warnHtmlMessage)?$.warnHtmlMessage:!0,Ie=!!$.escapeParameter;const ze=k?k.modifiers:shared.isPlainObject($.modifiers)?$.modifiers:{};let Et=$.pluralRules||k&&k.pluralRules,qe;function Oe(){return coreBase.createCoreContext({version:VERSION,locale:j.value,fallbackLocale:oe.value,messages:re.value,datetimeFormats:ie.value,numberFormats:ae.value,modifiers:ze,pluralRules:Et,missing:$e===null?void 0:$e,missingWarn:he,fallbackWarn:le,fallbackFormat:de,unresolving:!0,postTranslation:_e===null?void 0:_e,warnHtmlMessage:Ce,escapeParameter:Ie,__datetimeFormatters:shared.isPlainObject(qe)?qe.__datetimeFormatters:void 0,__numberFormatters:shared.isPlainObject(qe)?qe.__numberFormatters:void 0,__v_emitter:shared.isPlainObject(qe)?qe.__v_emitter:void 0,__meta:{framework:"vue"}})}qe=Oe(),coreBase.updateFallbackLocale(qe,j.value,oe.value);function Ue(){return[j.value,oe.value,re.value,ie.value,ae.value]}const Dt=vue.computed({get:()=>j.value,set:In=>{j.value=In,qe.locale=j.value}}),At=vue.computed({get:()=>oe.value,set:In=>{oe.value=In,qe.fallbackLocale=oe.value,coreBase.updateFallbackLocale(qe,j.value,In)}}),Lt=vue.computed(()=>re.value),kt=vue.computed(()=>ie.value),Pt=vue.computed(()=>ae.value);function jt(){return shared.isFunction(_e)?_e:null}function vn(In){_e=In,qe.postTranslation=In}function $n(){return pe}function wn(In){In!==null&&($e=defineCoreMissingHandler(In)),pe=In,qe.missing=$e}function _n(In,jn){return In!=="translate"||!jn.resolvedMessage}function En(In,jn,Kn,so,ro,vo){Ue();let go;try{coreBase.setAdditionalMeta(getMetaInfo()),go=In(qe)}finally{coreBase.setAdditionalMeta(null)}if(shared.isNumber(go)&&go===coreBase.NOT_REOSLVED){const[Dn,Yn]=jn();if(k&&shared.isString(Dn)&&_n(Kn,Yn)){ue&&(coreBase.isTranslateFallbackWarn(le,Dn)||coreBase.isTranslateMissingWarn(he,Dn))&&shared.warn(getWarnMessage(6,{key:Dn,type:Kn}));{const{__v_emitter:Gn}=qe;Gn&&ue&&Gn.emit("fallback",{type:Kn,key:Dn,to:"global",groupId:`${Kn}:${Dn}`})}}return k&&ue?so(k):ro(Dn)}else{if(vo(go))return go;throw createI18nError(14)}}function Sn(...In){return En(jn=>coreBase.translate(jn,...In),()=>coreBase.parseTranslateArgs(...In),"translate",jn=>jn.t(...In),jn=>jn,jn=>shared.isString(jn))}function An(...In){const[jn,Kn,so]=In;if(so&&!shared.isObject(so))throw createI18nError(15);return Sn(jn,Kn,shared.assign({resolvedMessage:!0},so||{}))}function Cn(...In){return En(jn=>coreBase.datetime(jn,...In),()=>coreBase.parseDateTimeArgs(...In),"datetime format",jn=>jn.d(...In),()=>coreBase.MISSING_RESOLVE_VALUE,jn=>shared.isString(jn))}function Tn(...In){return En(jn=>coreBase.number(jn,...In),()=>coreBase.parseNumberArgs(...In),"number format",jn=>jn.n(...In),()=>coreBase.MISSING_RESOLVE_VALUE,jn=>shared.isString(jn))}function Nn(In){return In.map(jn=>shared.isString(jn)?vue.createVNode(vue.Text,null,jn,0):jn)}const On={normalize:Nn,interpolate:In=>In,type:"vnode"};function Ln(...In){return En(jn=>{let Kn;const so=jn;try{so.processor=On,Kn=coreBase.translate(so,...In)}finally{so.processor=null}return Kn},()=>coreBase.parseTranslateArgs(...In),"translate",jn=>jn[TransrateVNodeSymbol](...In),jn=>[vue.createVNode(vue.Text,null,jn,0)],jn=>shared.isArray(jn))}function Bn(...In){return En(jn=>coreBase.number(jn,...In),()=>coreBase.parseNumberArgs(...In),"number format",jn=>jn[NumberPartsSymbol](...In),()=>[],jn=>shared.isString(jn)||shared.isArray(jn))}function Vn(...In){return En(jn=>coreBase.datetime(jn,...In),()=>coreBase.parseDateTimeArgs(...In),"datetime format",jn=>jn[DatetimePartsSymbol](...In),()=>[],jn=>shared.isString(jn)||shared.isArray(jn))}function Fn(In){Et=In,qe.pluralRules=Et}function zn(In,jn){const Kn=shared.isString(jn)?jn:j.value,so=Hn(Kn);return coreBase.resolveValue(so,In)!==null}function Xn(In){let jn=null;const Kn=coreBase.getLocaleChain(qe,oe.value,j.value);for(let so=0;so{z&&(j.value=In,qe.locale=In,coreBase.updateFallbackLocale(qe,j.value,oe.value))}),vue.watch(k.fallbackLocale,In=>{z&&(oe.value=In,qe.fallbackLocale=In,coreBase.updateFallbackLocale(qe,j.value,oe.value))}));const qn={id:composerID,locale:Dt,fallbackLocale:At,get inheritLocale(){return z},set inheritLocale(In){z=In,In&&k&&(j.value=k.locale.value,oe.value=k.fallbackLocale.value,coreBase.updateFallbackLocale(qe,j.value,oe.value))},get availableLocales(){return Object.keys(re.value).sort()},messages:Lt,datetimeFormats:kt,numberFormats:Pt,get modifiers(){return ze},get pluralRules(){return Et||{}},get isGlobal(){return V},get missingWarn(){return he},set missingWarn(In){he=In,qe.missingWarn=he},get fallbackWarn(){return le},set fallbackWarn(In){le=In,qe.fallbackWarn=le},get fallbackRoot(){return ue},set fallbackRoot(In){ue=In},get fallbackFormat(){return de},set fallbackFormat(In){de=In,qe.fallbackFormat=de},get warnHtmlMessage(){return Ce},set warnHtmlMessage(In){Ce=In,qe.warnHtmlMessage=In},get escapeParameter(){return Ie},set escapeParameter(In){Ie=In,qe.escapeParameter=In},t:Sn,rt:An,d:Cn,n:Tn,te:zn,tm:Pn,getLocaleMessage:Hn,setLocaleMessage:eo,mergeLocaleMessage:Qn,getDateTimeFormat:ao,setDateTimeFormat:ho,mergeDateTimeFormat:uo,getNumberFormat:Un,setNumberFormat:Zn,mergeNumberFormat:no,getPostTranslationHandler:jt,setPostTranslationHandler:vn,getMissingHandler:$n,setMissingHandler:wn,[TransrateVNodeSymbol]:Ln,[NumberPartsSymbol]:Bn,[DatetimePartsSymbol]:Vn,[SetPluralRulesSymbol]:Fn,[InejctWithOption]:$.__injectWithOption};return qn[EnableEmitter]=In=>{qe.__v_emitter=In},qn[DisableEmitter]=()=>{qe.__v_emitter=void 0},qn}function convertComposerOptions($){const k=shared.isString($.locale)?$.locale:"en-US",V=shared.isString($.fallbackLocale)||shared.isArray($.fallbackLocale)||shared.isPlainObject($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:k,z=shared.isFunction($.missing)?$.missing:void 0,j=shared.isBoolean($.silentTranslationWarn)||shared.isRegExp($.silentTranslationWarn)?!$.silentTranslationWarn:!0,oe=shared.isBoolean($.silentFallbackWarn)||shared.isRegExp($.silentFallbackWarn)?!$.silentFallbackWarn:!0,re=shared.isBoolean($.fallbackRoot)?$.fallbackRoot:!0,ie=!!$.formatFallbackMessages,ae=shared.isPlainObject($.modifiers)?$.modifiers:{},he=$.pluralizationRules,le=shared.isFunction($.postTranslation)?$.postTranslation:void 0,ue=shared.isString($.warnHtmlInMessage)?$.warnHtmlInMessage!=="off":!0,de=!!$.escapeParameterHtml,pe=shared.isBoolean($.sync)?$.sync:!0;$.formatter&&shared.warn(getWarnMessage(8)),$.preserveDirectiveContent&&shared.warn(getWarnMessage(9));let $e=$.messages;if(shared.isPlainObject($.sharedMessages)){const Oe=$.sharedMessages;$e=Object.keys(Oe).reduce((Dt,At)=>{const Lt=Dt[At]||(Dt[At]={});return shared.assign(Lt,Oe[At]),Dt},$e||{})}const{__i18n:_e,__root:Ce,__injectWithOption:Ie}=$,ze=$.datetimeFormats,Et=$.numberFormats,qe=$.flatJson;return{locale:k,fallbackLocale:V,messages:$e,flatJson:qe,datetimeFormats:ze,numberFormats:Et,missing:z,missingWarn:j,fallbackWarn:oe,fallbackRoot:re,fallbackFormat:ie,modifiers:ae,pluralRules:he,postTranslation:le,warnHtmlMessage:ue,escapeParameter:de,inheritLocale:pe,__i18n:_e,__root:Ce,__injectWithOption:Ie}}function createVueI18n($={}){const k=createComposer(convertComposerOptions($)),V={id:k.id,get locale(){return k.locale.value},set locale(z){k.locale.value=z},get fallbackLocale(){return k.fallbackLocale.value},set fallbackLocale(z){k.fallbackLocale.value=z},get messages(){return k.messages.value},get datetimeFormats(){return k.datetimeFormats.value},get numberFormats(){return k.numberFormats.value},get availableLocales(){return k.availableLocales},get formatter(){return shared.warn(getWarnMessage(8)),{interpolate(){return[]}}},set formatter(z){shared.warn(getWarnMessage(8))},get missing(){return k.getMissingHandler()},set missing(z){k.setMissingHandler(z)},get silentTranslationWarn(){return shared.isBoolean(k.missingWarn)?!k.missingWarn:k.missingWarn},set silentTranslationWarn(z){k.missingWarn=shared.isBoolean(z)?!z:z},get silentFallbackWarn(){return shared.isBoolean(k.fallbackWarn)?!k.fallbackWarn:k.fallbackWarn},set silentFallbackWarn(z){k.fallbackWarn=shared.isBoolean(z)?!z:z},get modifiers(){return k.modifiers},get formatFallbackMessages(){return k.fallbackFormat},set formatFallbackMessages(z){k.fallbackFormat=z},get postTranslation(){return k.getPostTranslationHandler()},set postTranslation(z){k.setPostTranslationHandler(z)},get sync(){return k.inheritLocale},set sync(z){k.inheritLocale=z},get warnHtmlInMessage(){return k.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(z){k.warnHtmlMessage=z!=="off"},get escapeParameterHtml(){return k.escapeParameter},set escapeParameterHtml(z){k.escapeParameter=z},get preserveDirectiveContent(){return shared.warn(getWarnMessage(9)),!0},set preserveDirectiveContent(z){shared.warn(getWarnMessage(9))},get pluralizationRules(){return k.pluralRules||{}},__composer:k,t(...z){const[j,oe,re]=z,ie={};let ae=null,he=null;if(!shared.isString(j))throw createI18nError(15);const le=j;return shared.isString(oe)?ie.locale=oe:shared.isArray(oe)?ae=oe:shared.isPlainObject(oe)&&(he=oe),shared.isArray(re)?ae=re:shared.isPlainObject(re)&&(he=re),k.t(le,ae||he||{},ie)},rt(...z){return k.rt(...z)},tc(...z){const[j,oe,re]=z,ie={plural:1};let ae=null,he=null;if(!shared.isString(j))throw createI18nError(15);const le=j;return shared.isString(oe)?ie.locale=oe:shared.isNumber(oe)?ie.plural=oe:shared.isArray(oe)?ae=oe:shared.isPlainObject(oe)&&(he=oe),shared.isString(re)?ie.locale=re:shared.isArray(re)?ae=re:shared.isPlainObject(re)&&(he=re),k.t(le,ae||he||{},ie)},te(z,j){return k.te(z,j)},tm(z){return k.tm(z)},getLocaleMessage(z){return k.getLocaleMessage(z)},setLocaleMessage(z,j){k.setLocaleMessage(z,j)},mergeLocaleMessage(z,j){k.mergeLocaleMessage(z,j)},d(...z){return k.d(...z)},getDateTimeFormat(z){return k.getDateTimeFormat(z)},setDateTimeFormat(z,j){k.setDateTimeFormat(z,j)},mergeDateTimeFormat(z,j){k.mergeDateTimeFormat(z,j)},n(...z){return k.n(...z)},getNumberFormat(z){return k.getNumberFormat(z)},setNumberFormat(z,j){k.setNumberFormat(z,j)},mergeNumberFormat(z,j){k.mergeNumberFormat(z,j)},getChoiceIndex(z,j){return shared.warn(getWarnMessage(10)),-1},__onComponentInstanceCreated(z){const{componentInstanceCreatedListener:j}=$;j&&j(z,V)}};return V.__enableEmitter=z=>{const j=k;j[EnableEmitter]&&j[EnableEmitter](z)},V.__disableEmitter=()=>{const z=k;z[DisableEmitter]&&z[DisableEmitter]()},V}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:$=>$==="parent"||$==="global",default:"parent"},i18n:{type:Object}},Translation={name:"i18n-t",props:shared.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:$=>shared.isNumber($)||!isNaN($)}},baseFormatProps),setup($,k){const{slots:V,attrs:z}=k,j=$.i18n||useI18n({useScope:$.scope,__useComponent:!0}),oe=Object.keys(V).filter(re=>re!=="_");return()=>{const re={};$.locale&&(re.locale=$.locale),$.plural!==void 0&&(re.plural=shared.isString($.plural)?+$.plural:$.plural);const ie=getInterpolateArg(k,oe),ae=j[TransrateVNodeSymbol]($.keypath,ie,re),he=shared.assign({},z);return shared.isString($.tag)||shared.isObject($.tag)?vue.h($.tag,he,ae):vue.h(vue.Fragment,he,ae)}}};function getInterpolateArg({slots:$},k){return k.length===1&&k[0]==="default"?$.default?$.default():[]:k.reduce((V,z)=>{const j=$[z];return j&&(V[z]=j()),V},{})}function renderFormatter($,k,V,z){const{slots:j,attrs:oe}=k;return()=>{const re={part:!0};let ie={};$.locale&&(re.locale=$.locale),shared.isString($.format)?re.key=$.format:shared.isObject($.format)&&(shared.isString($.format.key)&&(re.key=$.format.key),ie=Object.keys($.format).reduce((ue,de)=>V.includes(de)?shared.assign({},ue,{[de]:$.format[de]}):ue,{}));const ae=z($.value,re,ie);let he=[re.key];shared.isArray(ae)?he=ae.map((ue,de)=>{const pe=j[ue.type];return pe?pe({[ue.type]:ue.value,index:de,parts:ae}):[ue.value]}):shared.isString(ae)&&(he=[ae]);const le=shared.assign({},oe);return shared.isString($.tag)||shared.isObject($.tag)?vue.h($.tag,le,he):vue.h(vue.Fragment,le,he)}}const NUMBER_FORMAT_KEYS=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],NumberFormat={name:"i18n-n",props:shared.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,k){const V=$.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter($,k,NUMBER_FORMAT_KEYS,(...z)=>V[NumberPartsSymbol](...z))}},DATETIME_FORMAT_KEYS=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],DatetimeFormat={name:"i18n-d",props:shared.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,k){const V=$.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter($,k,DATETIME_FORMAT_KEYS,(...z)=>V[DatetimePartsSymbol](...z))}};function getComposer$1($,k){const V=$;if($.mode==="composition")return V.__getInstance(k)||$.global;{const z=V.__getInstance(k);return z!=null?z.__composer:$.global.__composer}}function vTDirective($){const k=(V,{instance:z,value:j,modifiers:oe})=>{if(!z||!z.$)throw createI18nError(22);const re=getComposer$1($,z.$);oe.preserve&&shared.warn(getWarnMessage(7));const ie=parseValue(j);V.textContent=re.t(...makeParams(ie))};return{beforeMount:k,beforeUpdate:k}}function parseValue($){if(shared.isString($))return{path:$};if(shared.isPlainObject($)){if(!("path"in $))throw createI18nError(19,"path");return $}else throw createI18nError(20)}function makeParams($){const{path:k,locale:V,args:z,choice:j,plural:oe}=$,re={},ie=z||{};return shared.isString(V)&&(re.locale=V),shared.isNumber(j)&&(re.plural=j),shared.isNumber(oe)&&(re.plural=oe),[k,ie,re]}function apply($,k,...V){const z=shared.isPlainObject(V[0])?V[0]:{},j=!!z.useI18nComponentName,oe=shared.isBoolean(z.globalInstall)?z.globalInstall:!0;oe&&j&&shared.warn(getWarnMessage(11,{name:Translation.name})),oe&&($.component(j?"i18n":Translation.name,Translation),$.component(NumberFormat.name,NumberFormat),$.component(DatetimeFormat.name,DatetimeFormat)),$.directive("t",vTDirective(k))}function defineMixin($,k,V){return{beforeCreate(){const z=vue.getCurrentInstance();if(!z)throw createI18nError(22);const j=this.$options;if(j.i18n){const oe=j.i18n;j.__i18n&&(oe.__i18n=j.__i18n),oe.__root=k,this===this.$root?this.$i18n=mergeToRoot($,oe):(oe.__injectWithOption=!0,this.$i18n=createVueI18n(oe))}else j.__i18n?this===this.$root?this.$i18n=mergeToRoot($,j):this.$i18n=createVueI18n({__i18n:j.__i18n,__injectWithOption:!0,__root:k}):this.$i18n=$;$.__onComponentInstanceCreated(this.$i18n),V.__setInstance(z,this.$i18n),this.$t=(...oe)=>this.$i18n.t(...oe),this.$rt=(...oe)=>this.$i18n.rt(...oe),this.$tc=(...oe)=>this.$i18n.tc(...oe),this.$te=(oe,re)=>this.$i18n.te(oe,re),this.$d=(...oe)=>this.$i18n.d(...oe),this.$n=(...oe)=>this.$i18n.n(...oe),this.$tm=oe=>this.$i18n.tm(oe)},mounted(){},beforeUnmount(){const z=vue.getCurrentInstance();if(!z)throw createI18nError(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,V.__deleteInstance(z),delete this.$i18n}}}function mergeToRoot($,k){$.locale=k.locale||$.locale,$.fallbackLocale=k.fallbackLocale||$.fallbackLocale,$.missing=k.missing||$.missing,$.silentTranslationWarn=k.silentTranslationWarn||$.silentFallbackWarn,$.silentFallbackWarn=k.silentFallbackWarn||$.silentFallbackWarn,$.formatFallbackMessages=k.formatFallbackMessages||$.formatFallbackMessages,$.postTranslation=k.postTranslation||$.postTranslation,$.warnHtmlInMessage=k.warnHtmlInMessage||$.warnHtmlInMessage,$.escapeParameterHtml=k.escapeParameterHtml||$.escapeParameterHtml,$.sync=k.sync||$.sync,$.__composer[SetPluralRulesSymbol](k.pluralizationRules||$.pluralizationRules);const V=getLocaleMessages($.locale,{messages:k.messages,__i18n:k.__i18n});return Object.keys(V).forEach(z=>$.mergeLocaleMessage(z,V[z])),k.datetimeFormats&&Object.keys(k.datetimeFormats).forEach(z=>$.mergeDateTimeFormat(z,k.datetimeFormats[z])),k.numberFormats&&Object.keys(k.numberFormats).forEach(z=>$.mergeNumberFormat(z,k.numberFormats[z])),$}function createI18n($={}){const k=shared.isBoolean($.legacy)?$.legacy:!0,V=!!$.globalInjection,z=new Map,j=k?createVueI18n($):createComposer($),oe=shared.makeSymbol("vue-i18n"),re={get mode(){return k?"legacy":"composition"},async install(ie,...ae){ie.__VUE_I18N_SYMBOL__=oe,ie.provide(ie.__VUE_I18N_SYMBOL__,re),!k&&V&&injectGlobalFields(ie,re.global),apply(ie,re,...ae),k&&ie.mixin(defineMixin(j,j.__composer,re))},get global(){return j},__instances:z,__getInstance(ie){return z.get(ie)||null},__setInstance(ie,ae){z.set(ie,ae)},__deleteInstance(ie){z.delete(ie)}};return re}function useI18n($={}){const k=vue.getCurrentInstance();if(k==null)throw createI18nError(16);if(!k.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(17);const V=vue.inject(k.appContext.app.__VUE_I18N_SYMBOL__);if(!V)throw createI18nError(22);const z=V.mode==="composition"?V.global:V.global.__composer,j=shared.isEmptyObject($)?"__i18n"in k.type?"local":"global":$.useScope?$.useScope:"local";if(j==="global"){let ie=shared.isObject($.messages)?$.messages:{};"__i18nGlobal"in k.type&&(ie=getLocaleMessages(z.locale.value,{messages:ie,__i18n:k.type.__i18nGlobal}));const ae=Object.keys(ie);if(ae.length&&ae.forEach(he=>{z.mergeLocaleMessage(he,ie[he])}),shared.isObject($.datetimeFormats)){const he=Object.keys($.datetimeFormats);he.length&&he.forEach(le=>{z.mergeDateTimeFormat(le,$.datetimeFormats[le])})}if(shared.isObject($.numberFormats)){const he=Object.keys($.numberFormats);he.length&&he.forEach(le=>{z.mergeNumberFormat(le,$.numberFormats[le])})}return z}if(j==="parent"){let ie=getComposer(V,k,$.__useComponent);return ie==null&&(shared.warn(getWarnMessage(12)),ie=z),ie}if(V.mode==="legacy")throw createI18nError(18);const oe=V;let re=oe.__getInstance(k);if(re==null){const ie=k.type,ae=shared.assign({},$);ie.__i18n&&(ae.__i18n=ie.__i18n),z&&(ae.__root=z),re=createComposer(ae),setupLifeCycle(oe,k),oe.__setInstance(k,re)}return re}function getComposer($,k,V=!1){let z=null;const j=k.root;let oe=k.parent;for(;oe!=null;){const re=$;if($.mode==="composition")z=re.__getInstance(oe);else{const ie=re.__getInstance(oe);ie!=null&&(z=ie.__composer),V&&z&&!z[InejctWithOption]&&(z=null)}if(z!=null||j===oe)break;oe=oe.parent}return z}function setupLifeCycle($,k,V){vue.onMounted(()=>{},k),vue.onUnmounted(()=>{$.__deleteInstance(k)},k)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields($,k){const V=Object.create(null);globalExportProps.forEach(z=>{const j=Object.getOwnPropertyDescriptor(k,z);if(!j)throw createI18nError(22);const oe=vue.isRef(j.value)?{get(){return j.value.value},set(re){j.value.value=re}}:{get(){return j.get&&j.get()}};Object.defineProperty(V,z,oe)}),$.config.globalProperties.$i18n=V,globalExportMethods.forEach(z=>{const j=Object.getOwnPropertyDescriptor(k,z);if(!j||!j.value)throw createI18nError(22);Object.defineProperty($.config.globalProperties,`$${z}`,j)})}coreBase.registerMessageCompiler(coreBase.compileToFunction);{const $=shared.getGlobalThis();$.__INTLIFY__=!0,coreBase.setDevToolsHook($.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}vueI18n_cjs.DatetimeFormat=DatetimeFormat;vueI18n_cjs.NumberFormat=NumberFormat;vueI18n_cjs.Translation=Translation;vueI18n_cjs.VERSION=VERSION;var createI18n_1=vueI18n_cjs.createI18n=createI18n,useI18n_1=vueI18n_cjs.useI18n=useI18n;vueI18n_cjs.vTDirective=vTDirective;var zhCn={},zhCn2={};(function($){Object.defineProperty($,"__esModule",{value:!0});var k={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};$.default=k})(zhCn2);(function($){Object.defineProperty($,"__esModule",{value:!0});var k=zhCn2;$.default=k.default})(zhCn);var zhcnLocale=getDefaultExportFromCjs(zhCn),en={},en2={};(function($){Object.defineProperty($,"__esModule",{value:!0});var k={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};$.default=k})(en2);(function($){Object.defineProperty($,"__esModule",{value:!0});var k=en2;$.default=k.default})(en);var enLocale=getDefaultExportFromCjs(en),zhTw={},zhTw2={};(function($){Object.defineProperty($,"__esModule",{value:!0});var k={name:"zh-tw",el:{colorpicker:{confirm:"\u78BA\u8A8D",clear:"\u6E05\u7A7A"},datepicker:{now:"\u73FE\u5728",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u78BA\u8A8D",selectDate:"\u9078\u64C7\u65E5\u671F",selectTime:"\u9078\u64C7\u6642\u9593",startDate:"\u958B\u59CB\u65E5\u671F",startTime:"\u958B\u59CB\u6642\u9593",endDate:"\u7D50\u675F\u65E5\u671F",endTime:"\u7D50\u675F\u6642\u9593",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u5F8C\u4E00\u5E74",prevMonth:"\u4E0A\u500B\u6708",nextMonth:"\u4E0B\u500B\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F09\u4E2D",noMatch:"\u7121\u5339\u914D\u8CC7\u6599",noData:"\u7121\u8CC7\u6599",placeholder:"\u8ACB\u9078\u64C7"},cascader:{noMatch:"\u7121\u5339\u914D\u8CC7\u6599",loading:"\u52A0\u8F09\u4E2D",placeholder:"\u8ACB\u9078\u64C7",noData:"\u7121\u8CC7\u6599"},pagination:{goto:"\u524D\u5F80",pagesize:"\u9805/\u9801",total:"\u5171 {total} \u9805",pageClassifier:"\u9801"},messagebox:{title:"\u63D0\u793A",confirm:"\u78BA\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F38\u5165\u7684\u8CC7\u6599\u4E0D\u7B26\u898F\u5B9A!"},upload:{deleteTip:"\u6309 delete \u9375\u53EF\u522A\u9664",delete:"\u522A\u9664",preview:"\u67E5\u770B\u5716\u7247",continue:"\u7E7C\u7E8C\u4E0A\u50B3"},table:{emptyText:"\u66AB\u7121\u8CC7\u6599",confirmFilter:"\u7BE9\u9078",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8A08"},tree:{emptyText:"\u66AB\u7121\u8CC7\u6599"},transfer:{noMatch:"\u7121\u5339\u914D\u8CC7\u6599",noData:"\u7121\u8CC7\u6599",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8ACB\u8F38\u5165\u641C\u7D22\u5167\u5BB9",noCheckedFormat:"\u5171 {total} \u9805",hasCheckedFormat:"\u5DF2\u9078 {checked}/{total} \u9805"},image:{error:"\u52A0\u8F09\u5931\u6557"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u78BA\u8A8D",cancelButtonText:"\u53D6\u6D88"}}};$.default=k})(zhTw2);(function($){Object.defineProperty($,"__esModule",{value:!0});var k=zhTw2;$.default=k.default})(zhTw);var zhtwLocale=getDefaultExportFromCjs(zhTw),nextZhcn={router:{home:"\u9996\u9875",system:"\u7CFB\u7EDF\u8BBE\u7F6E",systemMenu:"\u83DC\u5355\u7BA1\u7406",systemRole:"\u89D2\u8272\u7BA1\u7406",systemUser:"\u7528\u6237\u7BA1\u7406",systemDept:"\u90E8\u95E8\u7BA1\u7406",systemDic:"\u5B57\u5178\u7BA1\u7406",limits:"\u6743\u9650\u7BA1\u7406",limitsFrontEnd:"\u524D\u7AEF\u63A7\u5236",limitsFrontEndPage:"\u9875\u9762\u6743\u9650",limitsFrontEndBtn:"\u6309\u94AE\u6743\u9650",limitsBackEnd:"\u540E\u7AEF\u63A7\u5236",limitsBackEndEndPage:"\u9875\u9762\u6743\u9650",menu:"\u83DC\u5355\u5D4C\u5957",menu1:"\u83DC\u53551",menu11:"\u83DC\u535511",menu12:"\u83DC\u535512",menu121:"\u83DC\u5355121",menu122:"\u83DC\u5355122",menu13:"\u83DC\u535513",menu2:"\u83DC\u53552",funIndex:"\u529F\u80FD",funTagsView:"tagsView \u64CD\u4F5C",funCountup:"\u6570\u5B57\u6EDA\u52A8",funWangEditor:"Editor \u7F16\u8F91\u5668",funCropper:"\u56FE\u7247\u88C1\u526A",funQrcode:"\u4E8C\u7EF4\u7801\u751F\u6210",funEchartsMap:"\u5730\u7406\u5750\u6807/\u5730\u56FE",funPrintJs:"\u9875\u9762\u6253\u5370",funClipboard:"\u590D\u5236\u526A\u5207",funGridLayout:"\u62D6\u62FD\u5E03\u5C40",funSplitpanes:"\u7A97\u683C\u62C6\u5206\u5668",funDragVerify:"\u9A8C\u8BC1\u5668",pagesIndex:"\u9875\u9762",pagesFiltering:"\u8FC7\u6EE4\u7B5B\u9009\u7EC4\u4EF6",pagesFilteringDetails:"\u8FC7\u6EE4\u7B5B\u9009\u7EC4\u4EF6\u8BE6\u60C5",pagesFilteringDetails1:"\u8FC7\u6EE4\u7B5B\u9009\u7EC4\u4EF6\u8BE6\u60C5111",pagesIocnfont:"ali \u5B57\u4F53\u56FE\u6807",pagesElement:"ele \u5B57\u4F53\u56FE\u6807",pagesAwesome:"awe \u5B57\u4F53\u56FE\u6807",pagesFormAdapt:"\u8868\u5355\u81EA\u9002\u5E94",pagesTableRules:"\u8868\u5355\u8868\u683C\u9A8C\u8BC1",pagesFormI18n:"\u8868\u5355\u56FD\u9645\u5316",pagesFormRules:"\u591A\u8868\u5355\u9A8C\u8BC1",pagesDynamicForm:"\u52A8\u6001\u590D\u6742\u8868\u5355",pagesWorkflow:"\u5DE5\u4F5C\u6D41",pagesListAdapt:"\u5217\u8868\u81EA\u9002\u5E94",pagesWaterfall:"\u7011\u5E03\u5C4F",pagesSteps:"\u6B65\u9AA4\u6761",pagesPreview:"\u5927\u56FE\u9884\u89C8",pagesWaves:"\u6CE2\u6D6A\u6548\u679C",pagesTree:"\u6811\u5F62\u6539\u8868\u683C",pagesDrag:"\u62D6\u52A8\u6307\u4EE4",pagesLazyImg:"\u56FE\u7247\u61D2\u52A0\u8F7D",makeIndex:"\u7EC4\u4EF6\u5C01\u88C5",makeSelector:"\u56FE\u6807\u9009\u62E9\u5668",makeNoticeBar:"\u6EDA\u52A8\u901A\u77E5\u680F",makeSvgDemo:"svgIcon \u6F14\u793A",paramsIndex:"\u8DEF\u7531\u53C2\u6570",paramsCommon:"\u666E\u901A\u8DEF\u7531",paramsDynamic:"\u52A8\u6001\u8DEF\u7531",paramsCommonDetails:"\u666E\u901A\u8DEF\u7531\u8BE6\u60C5",paramsDynamicDetails:"\u52A8\u6001\u8DEF\u7531\u8BE6\u60C5",chartIndex:"\u5927\u6570\u636E\u56FE\u8868",visualizingIndex:"\u6570\u636E\u53EF\u89C6\u5316",visualizingLinkDemo1:"\u6570\u636E\u53EF\u89C6\u5316\u6F14\u793A1",visualizingLinkDemo2:"\u6570\u636E\u53EF\u89C6\u5316\u6F14\u793A2",personal:"\u4E2A\u4EBA\u4E2D\u5FC3",tools:"\u5DE5\u5177\u7C7B\u96C6\u5408",layoutLinkView:"\u5916\u94FE",layoutIfameView:"\u5185\u5D4C iframe"},staticRoutes:{signIn:"\u767B\u5F55",notFound:"\u627E\u4E0D\u5230\u6B64\u9875\u9762",noPower:"\u6CA1\u6709\u6743\u9650"},user:{title0:"\u7EC4\u4EF6\u5927\u5C0F",title1:"\u8BED\u8A00\u5207\u6362",title2:"\u83DC\u5355\u641C\u7D22",title3:"\u5E03\u5C40\u914D\u7F6E",title4:"\u6D88\u606F",title5:"\u5F00\u5168\u5C4F",title6:"\u5173\u5168\u5C4F",dropdownLarge:"\u5927\u578B",dropdownDefault:"\u9ED8\u8BA4",dropdownSmall:"\u5C0F\u578B",dropdown1:"\u9996\u9875",dropdown2:"\u4E2A\u4EBA\u4E2D\u5FC3",dropdown3:"404",dropdown4:"401",dropdown5:"\u9000\u51FA\u767B\u5F55",dropdown6:"\u4EE3\u7801\u4ED3\u5E93",searchPlaceholder:"\u83DC\u5355\u641C\u7D22\uFF1A\u652F\u6301\u4E2D\u6587\u3001\u8DEF\u7531\u8DEF\u5F84",newTitle:"\u901A\u77E5",newBtn:"\u5168\u90E8\u5DF2\u8BFB",newGo:"\u524D\u5F80\u901A\u77E5\u4E2D\u5FC3",newDesc:"\u6682\u65E0\u901A\u77E5",logOutTitle:"\u63D0\u793A",logOutMessage:"\u6B64\u64CD\u4F5C\u5C06\u9000\u51FA\u767B\u5F55, \u662F\u5426\u7EE7\u7EED?",logOutConfirm:"\u786E\u5B9A",logOutCancel:"\u53D6\u6D88",logOutExit:"\u9000\u51FA\u4E2D"},tagsView:{refresh:"\u5237\u65B0",close:"\u5173\u95ED",closeOther:"\u5173\u95ED\u5176\u5B83",closeAll:"\u5168\u90E8\u5173\u95ED",fullscreen:"\u5F53\u524D\u9875\u5168\u5C4F",closeFullscreen:"\u5173\u95ED\u5168\u5C4F"},notFound:{foundTitle:"\u5730\u5740\u8F93\u5165\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5730\u5740~",foundMsg:"\u60A8\u53EF\u4EE5\u5148\u68C0\u67E5\u7F51\u5740\uFF0C\u7136\u540E\u91CD\u65B0\u8F93\u5165\u6216\u7ED9\u6211\u4EEC\u53CD\u9988\u95EE\u9898\u3002",foundBtn:"\u8FD4\u56DE\u9996\u9875"},noAccess:{accessTitle:"\u60A8\u672A\u88AB\u6388\u6743\uFF0C\u6CA1\u6709\u64CD\u4F5C\u6743\u9650~",accessMsg:"\u8054\u7CFB\u65B9\u5F0F\uFF1A\u52A0QQ\u7FA4\u63A2\u8BA8 665452019",accessBtn:"\u91CD\u65B0\u6388\u6743"},layout:{configTitle:"\u5E03\u5C40\u914D\u7F6E",oneTitle:"\u5168\u5C40\u4E3B\u9898",twoTopTitle:"\u9876\u680F\u8BBE\u7F6E",twoMenuTitle:"\u83DC\u5355\u8BBE\u7F6E",twoColumnsTitle:"\u5206\u680F\u8BBE\u7F6E",twoTopBar:"\u9876\u680F\u80CC\u666F",twoTopBarColor:"\u9876\u680F\u9ED8\u8BA4\u5B57\u4F53\u989C\u8272",twoIsTopBarColorGradual:"\u9876\u680F\u80CC\u666F\u6E10\u53D8",twoMenuBar:"\u83DC\u5355\u80CC\u666F",twoMenuBarColor:"\u83DC\u5355\u9ED8\u8BA4\u5B57\u4F53\u989C\u8272",twoIsMenuBarColorGradual:"\u83DC\u5355\u80CC\u666F\u6E10\u53D8",twoColumnsMenuBar:"\u5206\u680F\u83DC\u5355\u80CC\u666F",twoColumnsMenuBarColor:"\u5206\u680F\u83DC\u5355\u9ED8\u8BA4\u5B57\u4F53\u989C\u8272",twoIsColumnsMenuBarColorGradual:"\u5206\u680F\u83DC\u5355\u80CC\u666F\u6E10\u53D8",threeTitle:"\u754C\u9762\u8BBE\u7F6E",threeIsCollapse:"\u83DC\u5355\u6C34\u5E73\u6298\u53E0",threeIsUniqueOpened:"\u83DC\u5355\u624B\u98CE\u7434",threeIsFixedHeader:"\u56FA\u5B9A Header",threeIsClassicSplitMenu:"\u7ECF\u5178\u5E03\u5C40\u5206\u5272\u83DC\u5355",threeIsLockScreen:"\u5F00\u542F\u9501\u5C4F",threeLockScreenTime:"\u81EA\u52A8\u9501\u5C4F(s/\u79D2)",fourTitle:"\u754C\u9762\u663E\u793A",fourIsShowLogo:"\u4FA7\u8FB9\u680F Logo",fourIsBreadcrumb:"\u5F00\u542F Breadcrumb",fourIsBreadcrumbIcon:"\u5F00\u542F Breadcrumb \u56FE\u6807",fourIsTagsview:"\u5F00\u542F Tagsview",fourIsTagsviewIcon:"\u5F00\u542F Tagsview \u56FE\u6807",fourIsCacheTagsView:"\u5F00\u542F TagsView \u7F13\u5B58",fourIsSortableTagsView:"\u5F00\u542F TagsView \u62D6\u62FD",fourIsShareTagsView:"\u5F00\u542F TagsView \u5171\u7528",fourIsFooter:"\u5F00\u542F Footer",fourIsGrayscale:"\u7070\u8272\u6A21\u5F0F",fourIsInvert:"\u8272\u5F31\u6A21\u5F0F",fourIsDark:"\u6DF1\u8272\u6A21\u5F0F",fourIsWartermark:"\u5F00\u542F\u6C34\u5370",fourWartermarkText:"\u6C34\u5370\u6587\u6848",fiveTitle:"\u5176\u5B83\u8BBE\u7F6E",fiveTagsStyle:"Tagsview \u98CE\u683C",fiveAnimation:"\u4E3B\u9875\u9762\u5207\u6362\u52A8\u753B",fiveColumnsAsideStyle:"\u5206\u680F\u9AD8\u4EAE\u98CE\u683C",fiveColumnsAsideLayout:"\u5206\u680F\u5E03\u5C40\u98CE\u683C",sixTitle:"\u5E03\u5C40\u5207\u6362",sixDefaults:"\u9ED8\u8BA4",sixClassic:"\u7ECF\u5178",sixTransverse:"\u6A2A\u5411",sixColumns:"\u5206\u680F",tipText:"\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\uFF0C\u590D\u5236\u5E03\u5C40\u914D\u7F6E\u53BB `src/stores/themeConfig.ts` \u4E2D\u4FEE\u6539\u3002",copyText:"\u4E00\u952E\u590D\u5236\u914D\u7F6E",resetText:"\u4E00\u952E\u6062\u590D\u9ED8\u8BA4",copyTextSuccess:"\u590D\u5236\u6210\u529F\uFF01",copyTextError:"\u590D\u5236\u5931\u8D25\uFF01"}},nextEn={router:{home:"home",system:"system",systemMenu:"systemMenu",systemRole:"systemRole",systemUser:"systemUser",systemDept:"systemDept",systemDic:"systemDic",limits:"limits",limitsFrontEnd:"FrontEnd",limitsFrontEndPage:"FrontEndPage",limitsFrontEndBtn:"FrontEndBtn",limitsBackEnd:"BackEnd",limitsBackEndEndPage:"BackEndEndPage",menu:"menu",menu1:"menu1",menu11:"menu11",menu12:"menu12",menu121:"menu121",menu122:"menu122",menu13:"menu13",menu2:"menu2",funIndex:"function",funTagsView:"funTagsView",funCountup:"countup",funWangEditor:"wangEditor",funCropper:"cropper",funQrcode:"qrcode",funEchartsMap:"EchartsMap",funPrintJs:"PrintJs",funClipboard:"Copy cut",funGridLayout:"Drag layout",funSplitpanes:"Pane splitter",funDragVerify:"Validator",pagesIndex:"pages",pagesFiltering:"Filtering",pagesFilteringDetails:"FilteringDetails",pagesFilteringDetails1:"FilteringDetails1",pagesIocnfont:"iconfont icon",pagesElement:"element icon",pagesAwesome:"awesome icon",pagesFormAdapt:"FormAdapt",pagesTableRules:"pagesTableRules",pagesFormI18n:"FormI18n",pagesFormRules:"Multi form validation",pagesDynamicForm:"Dynamic complex form",pagesWorkflow:"Workflow",pagesListAdapt:"ListAdapt",pagesWaterfall:"Waterfall",pagesSteps:"Steps",pagesPreview:"Large preview",pagesWaves:"Wave effect",pagesTree:"tree alter table",pagesDrag:"Drag command",pagesLazyImg:"Image lazy loading",makeIndex:"makeIndex",makeSelector:"Icon selector",makeNoticeBar:"notification bar",makeSvgDemo:"Svgicon demo",paramsIndex:"Routing parameters",paramsCommon:"General routing",paramsDynamic:"Dynamic routing",paramsCommonDetails:"General routing details",paramsDynamicDetails:"Dynamic routing details",chartIndex:"chartIndex",visualizingIndex:"visualizingIndex",visualizingLinkDemo1:"visualizingLinkDemo1",visualizingLinkDemo2:"visualizingLinkDemo2",personal:"personal",tools:"tools",layoutLinkView:"LinkView",layoutIfameView:"IfameView"},staticRoutes:{signIn:"signIn",notFound:"notFound",noPower:"noPower"},user:{title0:"Component size",title1:"Language switching",title2:"Menu search",title3:"Layout configuration",title4:"news",title5:"Full screen on",title6:"Full screen off",dropdownLarge:"large",dropdownDefault:"default",dropdownSmall:"small",dropdown1:"home page",dropdown2:"Personal Center",dropdown3:"404",dropdown4:"401",dropdown5:"Log out",dropdown6:"Code warehouse",searchPlaceholder:"Menu search: support Chinese, routing path",newTitle:"notice",newBtn:"All read",newGo:"Go to the notification center",newDesc:"No notice",logOutTitle:"Tips",logOutMessage:"This operation will log out. Do you want to continue?",logOutConfirm:"determine",logOutCancel:"cancel",logOutExit:"Exiting"},tagsView:{refresh:"refresh",close:"close",closeOther:"closeOther",closeAll:"closeAll",fullscreen:"fullscreen",closeFullscreen:"closeFullscreen"},notFound:{foundTitle:"Wrong address input, please re-enter the address~",foundMsg:"You can check the web address first, and then re-enter or give us feedback.",foundBtn:"Back to home page"},noAccess:{accessTitle:"You are not authorized to operate~",accessMsg:"Contact information: add QQ group discussion 665452019",accessBtn:"Reauthorization"},layout:{configTitle:"Layout configuration",oneTitle:"Global Themes",twoTopTitle:"top bar set up",twoMenuTitle:"Menu set up",twoColumnsTitle:"Columns set up",twoTopBar:"Top bar background",twoTopBarColor:"Top bar default font color",twoIsTopBarColorGradual:"Top bar gradient",twoMenuBar:"Menu background",twoMenuBarColor:"Menu default font color",twoIsMenuBarColorGradual:"Menu gradient",twoColumnsMenuBar:"Column menu background",twoColumnsMenuBarColor:"Default font color bar menu",twoIsColumnsMenuBarColorGradual:"Column gradient",threeTitle:"Interface settings",threeIsCollapse:"Menu horizontal collapse",threeIsUniqueOpened:"Menu accordion",threeIsFixedHeader:"Fixed header",threeIsClassicSplitMenu:"Classic layout split menu",threeIsLockScreen:"Open the lock screen",threeLockScreenTime:"screen locking(s/s)",fourTitle:"Interface display",fourIsShowLogo:"Sidebar logo",fourIsBreadcrumb:"Open breadcrumb",fourIsBreadcrumbIcon:"Open breadcrumb icon",fourIsTagsview:"Open tagsview",fourIsTagsviewIcon:"Open tagsview Icon",fourIsCacheTagsView:"Enable tagsview cache",fourIsSortableTagsView:"Enable tagsview drag",fourIsShareTagsView:"Enable tagsview sharing",fourIsFooter:"Open footer",fourIsGrayscale:"Grey model",fourIsInvert:"Color weak mode",fourIsDark:"Dark Mode",fourIsWartermark:"Turn on watermark",fourWartermarkText:"Watermark copy",fiveTitle:"Other settings",fiveTagsStyle:"Tagsview style",fiveAnimation:"page animation",fiveColumnsAsideStyle:"Column style",fiveColumnsAsideLayout:"Column layout",sixTitle:"Layout switch",sixDefaults:"One",sixClassic:"Two",sixTransverse:"Three",sixColumns:"Four",tipText:"Click the button below to copy the layout configuration to `/src/stores/themeConfig.ts` It has been modified in.",copyText:"replication configuration",resetText:"restore default",copyTextSuccess:"Copy succeeded!",copyTextError:"Copy failed!"}},nextZhtw={router:{home:"\u9996\u9801",system:"\u7CFB\u7D71\u8A2D\u7F6E",systemMenu:"\u9078\u55AE\u7BA1\u7406",systemRole:"\u89D2\u8272\u7BA1\u7406",systemUser:"\u7528\u6236\u7BA1\u7406",systemDept:"\u90E8\u9580\u7BA1\u7406",systemDic:"\u5B57\u5178\u7BA1\u7406",limits:"\u8A31\u53EF\u6B0A\u7BA1\u7406",limitsFrontEnd:"\u524D\u7AEF\u63A7\u5236",limitsFrontEndPage:"\u9801\u9762\u8A31\u53EF\u6B0A",limitsFrontEndBtn:"\u6309\u9215\u8A31\u53EF\u6B0A",limitsBackEnd:"\u5F8C\u7AEF\u63A7\u5236",limitsBackEndEndPage:"\u9801\u9762\u8A31\u53EF\u6B0A",menu:"\u9078\u55AE\u5D4C\u5957",menu1:"\u9078\u55AE1",menu11:"\u9078\u55AE11",menu12:"\u9078\u55AE12",menu121:"\u9078\u55AE121",menu122:"\u9078\u55AE122",menu13:"\u9078\u55AE13",menu2:"\u9078\u55AE2",funIndex:"\u529F\u80FD",funTagsView:"tagsView \u64CD\u4F5C",funCountup:"\u6578\u4F4D\u6EFE\u52D5",funWangEditor:"Editor \u7DE8\u8F2F\u5668",funCropper:"\u5716\u7247\u88C1\u526A",funQrcode:"\u4E8C\u7DAD\u78BC\u751F\u6210",funEchartsMap:"\u5730\u7406\u5EA7\u6A19/\u5730\u5716",funPrintJs:"\u9801\u9762\u5217\u5370",funClipboard:"\u8907\u88FD\u526A\u5207",funGridLayout:"\u62D6\u62FD\u4F48\u5C40",funSplitpanes:"\u7A97\u683C\u6298\u958B\u5668",funDragVerify:"\u9A57\u8B49\u5668",pagesIndex:"\u9801\u9762",pagesFiltering:"\u904E\u6FFE\u7BE9\u9078\u7D44\u4EF6",pagesFilteringDetails:"\u904E\u6FFE\u7BE9\u9078\u7D44\u4EF6\u8A73\u60C5",pagesFilteringDetails1:"\u904E\u6FFE\u7BE9\u9078\u7D44\u4EF6\u8A73\u60C5111",pagesIocnfont:"ali \u5B57\u9AD4\u5716\u6A19",pagesElement:"ele \u5B57\u9AD4\u5716\u6A19",pagesAwesome:"awe \u5B57\u9AD4\u5716\u6A19",pagesFormAdapt:"\u8868\u55AE\u81EA\u6211\u8ABF\u6574",pagesTableRules:"\u8868\u55AE\u8868\u683C\u9A57\u8B49",pagesFormI18n:"\u8868\u55AE\u570B\u969B\u5316",pagesFormRules:"\u591A\u8868\u55AE\u9A57\u8B49",pagesDynamicForm:"\u52D5\u614B\u8907\u96DC\u8868\u55AE",pagesWorkflow:"\u5DE5\u4F5C\u6D41",pagesListAdapt:"\u6E05\u55AE\u81EA\u6211\u8ABF\u6574",pagesWaterfall:"\u7011\u5E03\u5C4F",pagesSteps:"\u6B65\u9A5F\u689D",pagesPreview:"\u5927\u5716\u9810\u89BD",pagesWaves:"\u6CE2\u6D6A\u6548\u679C",pagesTree:"\u6A39\u5F62\u6539\u8868\u683C",pagesDrag:"\u62D6\u52D5\u6307\u4EE4",pagesLazyImg:"\u5716\u7247\u61F6\u52A0\u8F09",makeIndex:"\u7D44\u4EF6\u5C01\u88DD",makeSelector:"\u5716\u6A19\u9078\u64C7\u5668",makeNoticeBar:"\u6EFE\u52D5\u901A\u77E5\u6B04",makeSvgDemo:"svgIcon \u6F14\u793A",paramsIndex:"\u8DEF\u7531\u53C3\u6578",paramsCommon:"\u666E\u901A\u8DEF\u7531",paramsDynamic:"\u52D5\u614B\u8DEF\u7531",paramsCommonDetails:"\u666E\u901A\u8DEF\u7531\u8A73\u60C5",paramsDynamicDetails:"\u52D5\u614B\u8DEF\u7531\u8A73\u60C5",chartIndex:"\u5927\u8CC7\u6599\u5716\u8868",visualizingIndex:"\u6578\u64DA\u8996\u89BA\u5316",visualizingLinkDemo1:"\u6578\u64DA\u8996\u89BA\u5316\u6F14\u793A1",visualizingLinkDemo2:"\u6578\u64DA\u8996\u89BA\u5316\u6F14\u793A2",personal:"\u500B\u4EBA\u4E2D\u5FC3",tools:"\u5DE5\u5177\u985E\u96C6\u5408",layoutLinkView:"\u5916\u93C8",layoutIfameView:"\u5185\u5D4C iframe"},staticRoutes:{signIn:"\u767B\u5165",notFound:"\u627E\u4E0D\u5230\u6B64\u9801\u9762",noPower:"\u6C92\u6709\u8A31\u53EF\u6B0A"},user:{title0:"\u7D44\u4EF6\u5927\u5C0F",title1:"\u8A9E\u8A00\u5207\u63DB",title2:"\u9078\u55AE\u8490\u7D22",title3:"\u4F48\u5C40\u914D\u5BD8",title4:"\u6D88\u606F",title5:"\u958B\u5168\u5C4F",title6:"\u95DC\u5168\u5C4F",dropdownLarge:"\u5927\u578B",dropdownDefault:"\u9ED8\u8A8D",dropdownSmall:"\u5C0F\u578B",dropdown1:"\u9996\u9801",dropdown2:"\u500B\u4EBA\u4E2D\u5FC3",dropdown3:"404",dropdown4:"401",dropdown5:"\u767B\u51FA",dropdown6:"\u7A0B\u5F0F\u78BC\u5009\u5EAB",searchPlaceholder:"\u9078\u55AE\u8490\u7D22\uFF1A\u652F\u63F4\u4E2D\u6587\u3001\u8DEF\u7531\u8DEF\u5F91",newTitle:"\u901A\u77E5",newBtn:"\u5168\u90E8\u5DF2\u8B80",newGo:"\u524D\u5F80\u901A\u77E5\u4E2D\u5FC3",newDesc:"\u66AB\u7121\u901A\u77E5",logOutTitle:"\u63D0\u793A",logOutMessage:"\u6B64\u64CD\u4F5C\u5C07\u767B\u51FA\uFF0C\u662F\u5426\u7E7C\u7E8C\uFF1F",logOutConfirm:"\u78BA\u5B9A",logOutCancel:"\u53D6\u6D88",logOutExit:"\u9000\u51FA\u4E2D"},tagsView:{refresh:"\u91CD\u7E6A",close:"\u95DC\u9589",closeOther:"\u95DC\u9589\u5176\u5B83",closeAll:"\u5168\u90E8\u95DC\u9589",fullscreen:"\u7576\u524D\u9801\u5168\u5C4F",closeFullscreen:"\u95DC\u9589\u5168\u5C4F"},notFound:{foundTitle:"\u5730\u5740\u8F38\u5165\u932F\u8AA4\uFF0C\u8ACB\u91CD\u65B0\u8F38\u5165\u5730\u5740~",foundMsg:"\u60A8\u53EF\u4EE5\u5148\u6AA2\u67E5\u7DB2\u5740\uFF0C\u7136\u5F8C\u91CD\u65B0\u8F38\u5165\u6216\u7D66\u6211\u5011\u8FF4\u97FF\u554F\u984C\u3002",foundBtn:"\u8FD4\u56DE\u9996\u9801"},noAccess:{accessTitle:"\u60A8\u672A\u88AB\u6388\u6B0A\uFF0C\u6C92\u6709\u64CD\u4F5C\u8A31\u53EF\u6B0A~",accessMsg:"\u806F\u7E6B\u65B9\u5F0F\uFF1A\u52A0QQ\u7FA4\u63A2\u8A0E665452019",accessBtn:"\u91CD\u65B0\u6388\u6B0A"},layout:{configTitle:"\u4F48\u5C40\u914D\u5BD8",oneTitle:"\u5168\u57DF\u4E3B\u984C",twoTopTitle:"\u9802\u6B04\u8A2D\u5B9A",twoMenuTitle:"\u9078\u55AE\u8A2D\u5B9A",twoColumnsTitle:"\u5206\u6B04\u8A2D\u5B9A",twoTopBar:"\u9802\u6B04\u80CC\u666F",twoTopBarColor:"\u9802\u6B04\u9ED8\u8A8D\u5B57\u9AD4\u984F\u8272",twoIsTopBarColorGradual:"\u9802\u6B04\u80CC\u666F\u6F38\u8B8A",twoMenuBar:"\u9078\u55AE\u80CC\u666F",twoMenuBarColor:"\u9078\u55AE\u9ED8\u8A8D\u5B57\u9AD4\u984F\u8272",twoIsMenuBarColorGradual:"\u9078\u55AE\u80CC\u666F\u6F38\u8B8A",twoColumnsMenuBar:"\u5206\u6B04\u9078\u55AE\u80CC\u666F",twoColumnsMenuBarColor:"\u5206\u6B04\u9078\u55AE\u9ED8\u8A8D\u5B57\u9AD4\u984F\u8272",twoIsColumnsMenuBarColorGradual:"\u5206\u6B04\u9078\u55AE\u80CC\u666F\u6F38\u8B8A",threeTitle:"\u4ECB\u9762\u8A2D\u5B9A",threeIsCollapse:"\u9078\u55AE\u6C34\u51C6\u6298\u758A",threeIsUniqueOpened:"\u9078\u55AE\u624B\u98A8\u7434",threeIsFixedHeader:"\u56FA\u5B9A Header",threeIsClassicSplitMenu:"\u7D93\u5178\u4F48\u5C40\u5206\u5272\u9078\u55AE",threeIsLockScreen:"\u958B\u555F\u9396\u5C4F",threeLockScreenTime:"\u81EA\u52D5\u9396\u5C4F(s/\u79D2)",fourTitle:"\u4ECB\u9762\u986F\u793A",fourIsShowLogo:"\u5074\u908A\u6B04 Logo",fourIsBreadcrumb:"\u958B\u555F Breadcrumb",fourIsBreadcrumbIcon:"\u958B\u555F Breadcrumb \u5716\u6A19",fourIsTagsview:"\u958B\u555F Tagsview",fourIsTagsviewIcon:"\u958B\u555F Tagsview \u5716\u6A19",fourIsCacheTagsView:"\u958B\u555F TagsView \u7DE9\u5B58",fourIsSortableTagsView:"\u958B\u555F TagsView \u62D6\u62FD",fourIsShareTagsView:"\u958B\u555F TagsView \u5171\u7528",fourIsFooter:"\u958B\u555F Footer",fourIsGrayscale:"\u7070\u8272\u6A21\u5F0F",fourIsInvert:"\u8272\u5F31\u6A21\u5F0F",fourIsDark:"\u6DF1\u8272\u6A21\u5F0F",fourIsWartermark:"\u958B\u555F\u6D6E\u6C34\u5370",fourWartermarkText:"\u6D6E\u6C34\u5370\u6587\u6848",fiveTitle:"\u5176\u5B83\u8A2D\u5B9A",fiveTagsStyle:"Tagsview \u98A8\u683C",fiveAnimation:"\u4E3B\u9801\u9762\u5207\u63DB\u52D5\u756B",fiveColumnsAsideStyle:"\u5206\u6B04\u9AD8\u4EAE\u98A8\u683C",fiveColumnsAsideLayout:"\u5206\u6B04\u4F48\u5C40\u98A8\u683C",sixTitle:"\u4F48\u5C40\u5207\u63DB",sixDefaults:"\u9ED8\u8A8D",sixClassic:"\u7D93\u5178",sixTransverse:"\u6A6B\u5411",sixColumns:"\u5206\u6B04",tipText:"\u9EDE\u64CA\u4E0B\u65B9\u6309\u9215\uFF0C\u8907\u88FD\u4F48\u5C40\u914D\u5BD8\u53BB`src/stores/themeConfig.ts`\u4E2D\u4FEE\u6539\u3002",copyText:"\u4E00\u9375\u8907\u88FD\u914D\u5BD8",resetText:"\u4E00\u9375\u6062\u5FA9\u9ED8\u8A8D",copyTextSuccess:"\u8907\u88FD\u6210\u529F\uFF01",copyTextError:"\u8907\u88FD\u5931\u6557\uFF01"}},pagesLoginZhcn={label:{one1:"\u7528\u6237\u540D\u767B\u5F55",two2:"\u624B\u673A\u53F7\u767B\u5F55"},link:{one3:"\u7B2C\u4E09\u65B9\u767B\u5F55",two4:"\u53CB\u60C5\u94FE\u63A5"},account:{accountPlaceholder1:"\u7528\u6237\u540D admin \u6216\u4E0D\u8F93\u5747\u4E3A common",accountPlaceholder2:"\u5BC6\u7801\uFF1A123456",accountPlaceholder3:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",accountBtnText:"\u767B \u5F55"},mobile:{placeholder1:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",placeholder2:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",codeText:"\u83B7\u53D6\u9A8C\u8BC1\u7801",btnText:"\u767B \u5F55",msgText:"* \u6E29\u99A8\u63D0\u793A\uFF1A\u5EFA\u8BAE\u4F7F\u7528\u8C37\u6B4C\u3001Microsoft Edge\uFF0C\u7248\u672C 79.0.1072.62 \u53CA\u4EE5\u4E0A\u6D4F\u89C8\u5668\uFF0C360\u6D4F\u89C8\u5668\u8BF7\u4F7F\u7528\u6781\u901F\u6A21\u5F0F"},scan:{text:"\u6253\u5F00\u624B\u673A\u626B\u4E00\u626B\uFF0C\u5FEB\u901F\u767B\u5F55/\u6CE8\u518C"},signInText:"\u6B22\u8FCE\u56DE\u6765\uFF01"},pagesLoginEn={label:{one1:"User name login",two2:"Mobile number"},link:{one3:"Third party login",two4:"Links"},account:{accountPlaceholder1:"The user name admin or not is common",accountPlaceholder2:"Password: 123456",accountPlaceholder3:"Please enter the verification code",accountBtnText:"Sign in"},mobile:{placeholder1:"Please input mobile phone number",placeholder2:"Please enter the verification code",codeText:"Get code",btnText:"Sign in",msgText:"Warm tip: it is recommended to use Google, Microsoft edge, version 79.0.1072.62 and above browsers, and 360 browser, please use speed mode"},scan:{text:"Open the mobile phone to scan and quickly log in / register"},signInText:"welcome back!"},pagesLoginZhtw={label:{one1:"\u7528\u6236\u540D\u767B\u5165",two2:"\u624B\u6A5F\u865F\u767B\u5165"},link:{one3:"\u5354\u529B\u5EE0\u5546\u767B\u5165",two4:"\u53CB\u60C5\u9023\u7D50"},account:{accountPlaceholder1:"\u7528\u6236\u540Dadmin\u6216\u4E0D\u8F38\u5747\u70BAcommon",accountPlaceholder2:"\u5BC6\u78BC\uFF1A123456",accountPlaceholder3:"\u8ACB\u8F38\u5165\u9A57\u8B49\u78BC",accountBtnText:"\u767B\u5165"},mobile:{placeholder1:"\u8ACB\u8F38\u5165\u624B\u6A5F\u865F",placeholder2:"\u8ACB\u8F38\u5165\u9A57\u8B49\u78BC",codeText:"\u7372\u53D6\u9A57\u8B49\u78BC",btnText:"\u767B\u5165",msgText:"* \u6EAB\u99A8\u63D0\u793A\uFF1A\u5EFA\u8B70\u4F7F\u7528\u7A40\u6B4C\u3001Microsoft Edge\uFF0C\u7248\u672C79.0.1072.62\u53CA\u4EE5\u4E0A\u700F\u89BD\u5668\uFF0C360\u700F\u89BD\u5668\u8ACB\u4F7F\u7528\u6975\u901F\u6A21\u5F0F"},scan:{text:"\u6253\u958B\u624B\u6A5F\u6383\u4E00\u6383\uFF0C\u5FEB\u901F\u767B\u9304/\u6CE8\u518C"},signInText:"\u6B61\u8FCE\u56DE\u4F86\uFF01"},pagesFormI18nZhcn={formI18nLabel:{name:"\u59D3\u540D",email:"\u7528\u6237\u5F52\u5C5E\u90E8\u95E8",autograph:"\u767B\u9646\u8D26\u6237\u540D"},formI18nPlaceholder:{name:"\u8BF7\u8F93\u5165\u59D3\u540D",email:"\u8BF7\u8F93\u5165\u7528\u6237\u5F52\u5C5E\u90E8\u95E8",autograph:"\u8BF7\u8F93\u5165\u767B\u9646\u8D26\u6237\u540D"}},pagesFormI18nEn={formI18nLabel:{name:"name",email:"email",autograph:"autograph"},formI18nPlaceholder:{name:"Please enter your name",email:"Please enter the users Department",autograph:"Please enter the login account name"}},pagesFormI18nZhtw={formI18nLabel:{name:"\u59D3\u540D",email:"\u7528\u6236\u6B78\u5C6C\u90E8\u9580",autograph:"\u767B\u5165\u5E33\u6236\u540D"},formI18nPlaceholder:{name:"\u8ACB\u8F38\u5165\u59D3\u540D",email:"\u8ACB\u8F38\u5165\u7528\u6236\u6B78\u5C6C\u90E8\u9580",autograph:"\u8ACB\u8F38\u5165\u767B\u5165\u5E33\u6236\u540D"}};const messages={[zhcnLocale.name]:mo(oo({},zhcnLocale),{message:oo(oo(oo({},nextZhcn),pagesLoginZhcn),pagesFormI18nZhcn)}),[enLocale.name]:mo(oo({},enLocale),{message:oo(oo(oo({},nextEn),pagesLoginEn),pagesFormI18nEn)}),[zhtwLocale.name]:mo(oo({},zhtwLocale),{message:oo(oo(oo({},nextZhtw),pagesLoginZhtw),pagesFormI18nZhtw)})},stores=useThemeConfig(pinia),{themeConfig}=storeToRefs(stores),i18n=createI18n_1({silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1,locale:themeConfig.value.globalI18n,fallbackLocale:zhcnLocale.name,messages});var _export_sfc=($,k)=>{const V=$.__vccOpts||$;for(const[z,j]of k)V[z]=j;return V};const _sfc_main$4=defineComponent({name:"svgIcon",props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup($){const k=["https","http","/src","/assets",""],V=computed(()=>$==null?void 0:$.name),z=computed(()=>{var ie;return(ie=$==null?void 0:$.name)==null?void 0:ie.startsWith("ele-")}),j=computed(()=>k.find(ie=>{var ae;return(ae=$.name)==null?void 0:ae.startsWith(ie)})),oe=computed(()=>`font-size: ${$.size}px;color: ${$.color};`),re=computed(()=>`width: ${$.size}px;height: ${$.size}px`);return{getIconName:V,isShowIconSvg:z,isShowIconImg:j,setIconSvgStyle:oe,setIconImgStyle:re}}}),_hoisted_1$3=["src"];function _sfc_render$4($,k,V,z,j,oe){return $.isShowIconSvg?(openBlock(),createElementBlock("i",{key:0,class:"el-icon",style:normalizeStyle($.setIconSvgStyle)},[(openBlock(),createBlock(resolveDynamicComponent($.getIconName)))],4)):$.isShowIconImg?(openBlock(),createElementBlock("img",{key:1,src:$.getIconName,style:normalizeStyle($.setIconImgStyle)},null,12,_hoisted_1$3)):(openBlock(),createElementBlock("i",{key:2,class:normalizeClass($.getIconName),style:normalizeStyle($.setIconSvgStyle)},null,6))}var SvgIcon=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]);function elSvg($){const k=svg;for(const V in k)$.component(`ele-${k[V].name}`,k[V]);$.component("SvgIcon",SvgIcon)}function useTitle(){const $=useThemeConfig(pinia),{themeConfig:k}=storeToRefs($);nextTick(()=>{let V="",z=k.value.globalTitle;const{path:j,meta:oe}=router.currentRoute.value;j==="/login"?V=oe.title:V=setTagsViewNameI18n(router.currentRoute.value),document.title=`${V} - ${z}`||z})}function setTagsViewNameI18n($){let k="";const{query:V,params:z,meta:j}=$;return(V==null?void 0:V.tagsViewName)||(z==null?void 0:z.tagsViewName)?/zh-cn|en|zh-tw/.test(V==null?void 0:V.tagsViewName)||/zh-cn|en|zh-tw/.test(z==null?void 0:z.tagsViewName)?k=((V==null?void 0:V.tagsViewName)&&JSON.parse(V==null?void 0:V.tagsViewName)||(z==null?void 0:z.tagsViewName)&&JSON.parse(z==null?void 0:z.tagsViewName))[i18n.global.locale]:k=(V==null?void 0:V.tagsViewName)||(z==null?void 0:z.tagsViewName):k=i18n.global.t(j.title),k}const lazyImg=($,k)=>{const V=new IntersectionObserver(z=>{z.forEach(j=>{if(j.isIntersecting){const{img:oe,key:re}=j.target.dataset;j.target.src=oe,j.target.onload=()=>{V.unobserve(j.target),k[re].loading=!1}}})});nextTick(()=>{document.querySelectorAll($).forEach(z=>V.observe(z))})},globalComponentSize=()=>{var V,z;const $=useThemeConfig(pinia),{themeConfig:k}=storeToRefs($);return((V=Local.get("themeConfig"))==null?void 0:V.globalComponentSize)||((z=k.value)==null?void 0:z.globalComponentSize)};function deepClone($){let k;try{k=$.push?[]:{}}catch{k={}}for(let V in $)typeof $[V]=="object"?k[V]=deepClone($[V]):k[V]=$[V];return k}function isMobile(){return!!navigator.userAgent.match(/('phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone')/i)}function handleEmpty($){const k=[];for(const V in $){const z=[];for(const oe in $[V])z.push($[V][oe]);z.filter(oe=>oe==="").length!==z.length&&k.push($[V])}return k}const other={elSvg:$=>{elSvg($)},useTitle:()=>{useTitle()},setTagsViewNameI18n($){return setTagsViewNameI18n($)},lazyImg:($,k)=>{lazyImg($,k)},globalComponentSize:()=>globalComponentSize(),deepClone:$=>deepClone($),isMobile:()=>isMobile(),handleEmpty:$=>handleEmpty($)},cssCdnUrlList=["//at.alicdn.com/t/font_2298093_y6u00apwst.css","//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"],jsCdnUrlList=[];function setCssCdn(){if(cssCdnUrlList.length<=0)return!1;cssCdnUrlList.map($=>{let k=document.createElement("link");k.rel="stylesheet",k.href=$,k.crossOrigin="anonymous",document.getElementsByTagName("head")[0].appendChild(k)})}function setJsCdn(){if(jsCdnUrlList.length<=0)return!1;jsCdnUrlList.map($=>{let k=document.createElement("script");k.src=$,document.body.appendChild(k)})}const setIntroduction={cssCdn:()=>{setCssCdn()},jsCdn:()=>{setJsCdn()}};function formatDate($,k){let V=$.getDay(),z=getWeek($),j=Math.floor(($.getMonth()+3)/3).toString();const oe={"Y+":$.getFullYear().toString(),"m+":($.getMonth()+1).toString(),"d+":$.getDate().toString(),"H+":$.getHours().toString(),"M+":$.getMinutes().toString(),"S+":$.getSeconds().toString(),"q+":j},re={"0":"\u65E5","1":"\u4E00","2":"\u4E8C","3":"\u4E09","4":"\u56DB","5":"\u4E94","6":"\u516D"},ie={"1":"\u4E00","2":"\u4E8C","3":"\u4E09","4":"\u56DB"};/(W+)/.test(k)&&(k=k.replace(RegExp.$1,RegExp.$1.length>1?RegExp.$1.length>2?"\u661F\u671F"+re[V]:"\u5468"+re[V]:re[V])),/(Q+)/.test(k)&&(k=k.replace(RegExp.$1,RegExp.$1.length==4?"\u7B2C"+ie[j]+"\u5B63\u5EA6":ie[j])),/(Z+)/.test(k)&&(k=k.replace(RegExp.$1,RegExp.$1.length==3?"\u7B2C"+z+"\u5468":z+""));for(let ae in oe){let he=new RegExp("("+ae+")").exec(k);he&&(k=k.replace(he[1],RegExp.$1.length==1?oe[ae]:oe[ae].padStart(RegExp.$1.length,"0")))}return k}function getWeek($){let k=new Date($.getTime()),V=k.getDay()||7;k.setDate(k.getDate()-V+1+5);let z=new Date(k.getFullYear(),0,1),j=z.getDay(),oe=1;j!=0&&(oe=7-j+1),z=new Date(k.getFullYear(),0,1+oe);let re=Math.ceil((k.valueOf()-z.valueOf())/864e5);return Math.ceil(re/7)}function formatAxis($){let k=new Date($).getHours();return k<6?"\u51CC\u6668\u597D":k<9?"\u65E9\u4E0A\u597D":k<12?"\u4E0A\u5348\u597D":k<14?"\u4E2D\u5348\u597D":k<17?"\u4E0B\u5348\u597D":k<19?"\u508D\u665A\u597D":k<22?"\u665A\u4E0A\u597D":"\u591C\u91CC\u597D"}var index_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$3=defineComponent({name:"layoutLockScreen",setup(){const{proxy:$}=getCurrentInstance(),k=ref(),V=useThemeConfig(),{themeConfig:z}=storeToRefs(V),j=reactive({transparency:1,downClientY:0,moveDifference:0,isShowLoockLogin:!1,isFlags:!1,querySelectorEl:"",time:{hm:"",s:"",mdq:""},setIntervalTime:0,isShowLockScreen:!1,isShowLockScreenIntervalTime:0,lockScreenPassword:""}),oe=$e=>{j.isFlags=!0,j.downClientY=$e.touches?$e.touches[0].clientY:$e.clientY},re=$e=>{if(j.isFlags){const _e=j.querySelectorEl,Ce=j.transparency-=1/200;if($e.touches?j.moveDifference=$e.touches[0].clientY-j.downClientY:j.moveDifference=$e.clientY-j.downClientY,j.moveDifference>=0)return!1;_e.setAttribute("style",`top:${j.moveDifference}px;cursor:pointer;opacity:${Ce};`),j.moveDifference<-400&&(_e.setAttribute("style",`top:${-_e.clientHeight}px;cursor:pointer;transition:all 0.3s ease;`),j.moveDifference=-_e.clientHeight,setTimeout(()=>{var Ie;_e&&((Ie=_e.parentNode)==null||Ie.removeChild(_e))},300)),j.moveDifference===-_e.clientHeight&&(j.isShowLoockLogin=!0,k.value.focus())}},ie=()=>{j.isFlags=!1,j.transparency=1,j.moveDifference>=-400&&j.querySelectorEl.setAttribute("style","top:0px;opacity:1;transition:all 0.3s ease;")},ae=()=>{nextTick(()=>{j.querySelectorEl=$.$refs.layoutLockScreenDateRef})},he=()=>{j.time.hm=formatDate(new Date,"HH:MM"),j.time.s=formatDate(new Date,"SS"),j.time.mdq=formatDate(new Date,"mm\u6708dd\u65E5\uFF0CWWW")},le=()=>{he(),j.setIntervalTime=window.setInterval(()=>{he()},1e3)},ue=()=>{z.value.isLockScreen?j.isShowLockScreenIntervalTime=window.setInterval(()=>{if(z.value.lockScreenTime<=1)return j.isShowLockScreen=!0,de(),!1;z.value.lockScreenTime--},1e3):clearInterval(j.isShowLockScreenIntervalTime)},de=()=>{z.value.isDrawer=!1,Local.set("themeConfig",z.value)},pe=()=>{z.value.isLockScreen=!1,z.value.lockScreenTime=30,de()};return onMounted(()=>{ae(),le(),ue()}),onUnmounted(()=>{window.clearInterval(j.setIntervalTime),window.clearInterval(j.isShowLockScreenIntervalTime)}),oo({layoutLockScreenInputRef:k,onDown:oe,onMove:re,onEnd:ie,onLockScreenSubmit:pe},toRefs(j))}}),_withScopeId$1=$=>(pushScopeId("data-v-1b3916c8"),$=$(),popScopeId(),$),_hoisted_1$2=_withScopeId$1(()=>createBaseVNode("div",{class:"layout-lock-screen-mask"},null,-1)),_hoisted_2$2={class:"layout-lock-screen"},_hoisted_3$1={class:"layout-lock-screen-date-box"},_hoisted_4$1={class:"layout-lock-screen-date-box-time"},_hoisted_5$1={class:"layout-lock-screen-date-box-minutes"},_hoisted_6$1={class:"layout-lock-screen-date-box-info"},_hoisted_7$1={class:"layout-lock-screen-date-top"},_hoisted_8$1=_withScopeId$1(()=>createBaseVNode("div",{class:"layout-lock-screen-date-top-text"},"\u4E0A\u6ED1\u89E3\u9501",-1)),_hoisted_9$1={class:"layout-lock-screen-login"},_hoisted_10$1={class:"layout-lock-screen-login-box"},_hoisted_11$1=_withScopeId$1(()=>createBaseVNode("div",{class:"layout-lock-screen-login-box-img"},[createBaseVNode("img",{src:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1813762643,1914315241&fm=26&gp=0.jpg"})],-1)),_hoisted_12$1=_withScopeId$1(()=>createBaseVNode("div",{class:"layout-lock-screen-login-box-name"},"Administrator",-1)),_hoisted_13$1={class:"layout-lock-screen-login-box-value"},_hoisted_14$1={class:"layout-lock-screen-login-icon"};function _sfc_render$3($,k,V,z,j,oe){const re=resolveComponent("SvgIcon"),ie=resolveComponent("ele-Right"),ae=resolveComponent("el-icon"),he=resolveComponent("el-button"),le=resolveComponent("el-input");return withDirectives((openBlock(),createElementBlock("div",null,[_hoisted_1$2,createBaseVNode("div",{class:normalizeClass(["layout-lock-screen-img",{"layout-lock-screen-filter":$.isShowLoockLogin}])},null,2),createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",{class:"layout-lock-screen-date",ref:"layoutLockScreenDateRef",onMousedown:k[0]||(k[0]=(...ue)=>$.onDown&&$.onDown(...ue)),onMousemove:k[1]||(k[1]=(...ue)=>$.onMove&&$.onMove(...ue)),onMouseup:k[2]||(k[2]=(...ue)=>$.onEnd&&$.onEnd(...ue)),onTouchstart:k[3]||(k[3]=withModifiers((...ue)=>$.onDown&&$.onDown(...ue),["stop"])),onTouchmove:k[4]||(k[4]=withModifiers((...ue)=>$.onMove&&$.onMove(...ue),["stop"])),onTouchend:k[5]||(k[5]=withModifiers((...ue)=>$.onEnd&&$.onEnd(...ue),["stop"]))},[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("div",_hoisted_4$1,[createTextVNode(toDisplayString$1($.time.hm),1),createBaseVNode("span",_hoisted_5$1,toDisplayString$1($.time.s),1)]),createBaseVNode("div",_hoisted_6$1,toDisplayString$1($.time.mdq),1)]),createBaseVNode("div",_hoisted_7$1,[createVNode(re,{name:"ele-Top"}),_hoisted_8$1])],544),createVNode(Transition,{name:"el-zoom-in-center"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_9$1,[createBaseVNode("div",_hoisted_10$1,[_hoisted_11$1,_hoisted_12$1,createBaseVNode("div",_hoisted_13$1,[createVNode(le,{placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",ref:"layoutLockScreenInputRef",modelValue:$.lockScreenPassword,"onUpdate:modelValue":k[6]||(k[6]=ue=>$.lockScreenPassword=ue),onKeyup:k[7]||(k[7]=withKeys(withModifiers(ue=>$.onLockScreenSubmit(),["stop"]),["enter","native"]))},{append:withCtx(()=>[createVNode(he,{onClick:$.onLockScreenSubmit},{default:withCtx(()=>[createVNode(ae,{class:"el-input__icon"},{default:withCtx(()=>[createVNode(ie)]),_:1})]),_:1},8,["onClick"])]),_:1},8,["modelValue"])])]),createBaseVNode("div",_hoisted_14$1,[createVNode(re,{name:"ele-Microphone",size:20}),createVNode(re,{name:"ele-AlarmClock",size:20}),createVNode(re,{name:"ele-SwitchButton",size:20})])],512),[[vShow,$.isShowLoockLogin]])]),_:1})])],512)),[[vShow,$.isShowLockScreen]])}var LockScreen=_export_sfc(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-1b3916c8"]]);function hexToRgb($){let k="";if(!/^\#?[0-9A-Fa-f]{6}$/.test($))return ElMessage.warning("\u8F93\u5165\u9519\u8BEF\u7684hex");$=$.replace("#",""),k=$.match(/../g);for(let z=0;z<3;z++)k[z]=parseInt(k[z],16);return k}function rgbToHex($,k,V){let z=/^\d{1,3}$/;if(!z.test($)||!z.test(k)||!z.test(V))return ElMessage.warning("\u8F93\u5165\u9519\u8BEF\u7684rgb\u989C\u8272\u503C");let j=[$.toString(16),k.toString(16),V.toString(16)];for(let oe=0;oe<3;oe++)j[oe].length==1&&(j[oe]=`0${j[oe]}`);return`#${j.join("")}`}function getDarkColor($,k){if(!/^\#?[0-9A-Fa-f]{6}$/.test($))return ElMessage.warning("\u8F93\u5165\u9519\u8BEF\u7684hex\u989C\u8272\u503C");let z=hexToRgb($);for(let j=0;j<3;j++)z[j]=Math.floor(z[j]*(1-k));return rgbToHex(z[0],z[1],z[2])}function getLightColor($,k){if(!/^\#?[0-9A-Fa-f]{6}$/.test($))return ElMessage.warning("\u8F93\u5165\u9519\u8BEF\u7684hex\u989C\u8272\u503C");let z=hexToRgb($);for(let j=0;j<3;j++)z[j]=Math.floor((255-z[j])*k+z[j]);return rgbToHex(z[0],z[1],z[2])}function verifyAndSpace($){return $.replace(/(^\s*)|(\s*$)/g,"")}const setWatermark=$=>{const k="1.23452384164.123412416";document.getElementById(k)!==null&&document.body.removeChild(document.getElementById(k));const V=document.createElement("canvas");V.width=200,V.height=130;const z=V.getContext("2d");z.rotate(-20*Math.PI/180),z.font="12px Vedana",z.fillStyle="rgba(200, 200, 200, 0.30)",z.textBaseline="Middle",z.fillText($,V.width/10,V.height/2);const j=document.createElement("div");return j.id=k,j.style.pointerEvents="none",j.style.top="15px",j.style.left="0px",j.style.position="fixed",j.style.zIndex="10000000",j.style.width=`${document.documentElement.clientWidth}px`,j.style.height=`${document.documentElement.clientHeight}px`,j.style.background=`url(${V.toDataURL("image/png")}) left top repeat`,document.body.appendChild(j),k},watermark={set:$=>{let k=setWatermark($);document.getElementById(k)===null&&(k=setWatermark($))},del:()=>{let $="1.23452384164.123412416";document.getElementById($)!==null&&document.body.removeChild(document.getElementById($))}};var clipboard={exports:{}};/*! -* clipboard.js v2.0.11 -* https://clipboardjs.com/ -* -* Licensed MIT © Zeno Rocha -*/(function($,k){(function(z,j){$.exports=j()})(commonjsGlobal,function(){return function(){var V={686:function(oe,re,ie){ie.d(re,{default:function(){return Tn}});var ae=ie(279),he=ie.n(ae),le=ie(370),ue=ie.n(le),de=ie(817),pe=ie.n(de);function $e(Nn){try{return document.execCommand(Nn)}catch{return!1}}var _e=function(xn){var On=pe()(xn);return $e("cut"),On},Ce=_e;function Ie(Nn){var xn=document.documentElement.getAttribute("dir")==="rtl",On=document.createElement("textarea");On.style.fontSize="12pt",On.style.border="0",On.style.padding="0",On.style.margin="0",On.style.position="absolute",On.style[xn?"right":"left"]="-9999px";var Ln=window.pageYOffset||document.documentElement.scrollTop;return On.style.top="".concat(Ln,"px"),On.setAttribute("readonly",""),On.value=Nn,On}var ze=function(xn,On){var Ln=Ie(xn);On.container.appendChild(Ln);var Bn=pe()(Ln);return $e("copy"),Ln.remove(),Bn},Et=function(xn){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ln="";return typeof xn=="string"?Ln=ze(xn,On):xn instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(xn==null?void 0:xn.type)?Ln=ze(xn.value,On):(Ln=pe()(xn),$e("copy")),Ln},qe=Et;function Oe(Nn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oe=function(On){return typeof On}:Oe=function(On){return On&&typeof Symbol=="function"&&On.constructor===Symbol&&On!==Symbol.prototype?"symbol":typeof On},Oe(Nn)}var Ue=function(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},On=xn.action,Ln=On===void 0?"copy":On,Bn=xn.container,Vn=xn.target,Fn=xn.text;if(Ln!=="copy"&&Ln!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Vn!==void 0)if(Vn&&Oe(Vn)==="object"&&Vn.nodeType===1){if(Ln==="copy"&&Vn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ln==="cut"&&(Vn.hasAttribute("readonly")||Vn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Fn)return qe(Fn,{container:Bn});if(Vn)return Ln==="cut"?Ce(Vn):qe(Vn,{container:Bn})},Dt=Ue;function At(Nn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?At=function(On){return typeof On}:At=function(On){return On&&typeof Symbol=="function"&&On.constructor===Symbol&&On!==Symbol.prototype?"symbol":typeof On},At(Nn)}function Lt(Nn,xn){if(!(Nn instanceof xn))throw new TypeError("Cannot call a class as a function")}function kt(Nn,xn){for(var On=0;On0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Bn.action=="function"?Bn.action:this.defaultAction,this.target=typeof Bn.target=="function"?Bn.target:this.defaultTarget,this.text=typeof Bn.text=="function"?Bn.text:this.defaultText,this.container=At(Bn.container)==="object"?Bn.container:document.body}},{key:"listenClick",value:function(Bn){var Vn=this;this.listener=ue()(Bn,"click",function(Fn){return Vn.onClick(Fn)})}},{key:"onClick",value:function(Bn){var Vn=Bn.delegateTarget||Bn.currentTarget,Fn=this.action(Vn)||"copy",zn=Dt({action:Fn,container:this.container,target:this.target(Vn),text:this.text(Vn)});this.emit(zn?"success":"error",{action:Fn,text:zn,trigger:Vn,clearSelection:function(){Vn&&Vn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Bn){return An("action",Bn)}},{key:"defaultTarget",value:function(Bn){var Vn=An("target",Bn);if(Vn)return document.querySelector(Vn)}},{key:"defaultText",value:function(Bn){return An("text",Bn)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Bn){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return qe(Bn,Vn)}},{key:"cut",value:function(Bn){return Ce(Bn)}},{key:"isSupported",value:function(){var Bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Vn=typeof Bn=="string"?[Bn]:Bn,Fn=!!document.queryCommandSupported;return Vn.forEach(function(zn){Fn=Fn&&!!document.queryCommandSupported(zn)}),Fn}}]),On}(he()),Tn=Cn},828:function(oe){var re=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var ie=Element.prototype;ie.matches=ie.matchesSelector||ie.mozMatchesSelector||ie.msMatchesSelector||ie.oMatchesSelector||ie.webkitMatchesSelector}function ae(he,le){for(;he&&he.nodeType!==re;){if(typeof he.matches=="function"&&he.matches(le))return he;he=he.parentNode}}oe.exports=ae},438:function(oe,re,ie){var ae=ie(828);function he(de,pe,$e,_e,Ce){var Ie=ue.apply(this,arguments);return de.addEventListener($e,Ie,Ce),{destroy:function(){de.removeEventListener($e,Ie,Ce)}}}function le(de,pe,$e,_e,Ce){return typeof de.addEventListener=="function"?he.apply(null,arguments):typeof $e=="function"?he.bind(null,document).apply(null,arguments):(typeof de=="string"&&(de=document.querySelectorAll(de)),Array.prototype.map.call(de,function(Ie){return he(Ie,pe,$e,_e,Ce)}))}function ue(de,pe,$e,_e){return function(Ce){Ce.delegateTarget=ae(Ce.target,pe),Ce.delegateTarget&&_e.call(de,Ce)}}oe.exports=le},879:function(oe,re){re.node=function(ie){return ie!==void 0&&ie instanceof HTMLElement&&ie.nodeType===1},re.nodeList=function(ie){var ae=Object.prototype.toString.call(ie);return ie!==void 0&&(ae==="[object NodeList]"||ae==="[object HTMLCollection]")&&"length"in ie&&(ie.length===0||re.node(ie[0]))},re.string=function(ie){return typeof ie=="string"||ie instanceof String},re.fn=function(ie){var ae=Object.prototype.toString.call(ie);return ae==="[object Function]"}},370:function(oe,re,ie){var ae=ie(879),he=ie(438);function le($e,_e,Ce){if(!$e&&!_e&&!Ce)throw new Error("Missing required arguments");if(!ae.string(_e))throw new TypeError("Second argument must be a String");if(!ae.fn(Ce))throw new TypeError("Third argument must be a Function");if(ae.node($e))return ue($e,_e,Ce);if(ae.nodeList($e))return de($e,_e,Ce);if(ae.string($e))return pe($e,_e,Ce);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ue($e,_e,Ce){return $e.addEventListener(_e,Ce),{destroy:function(){$e.removeEventListener(_e,Ce)}}}function de($e,_e,Ce){return Array.prototype.forEach.call($e,function(Ie){Ie.addEventListener(_e,Ce)}),{destroy:function(){Array.prototype.forEach.call($e,function(Ie){Ie.removeEventListener(_e,Ce)})}}}function pe($e,_e,Ce){return he(document.body,$e,_e,Ce)}oe.exports=le},817:function(oe){function re(ie){var ae;if(ie.nodeName==="SELECT")ie.focus(),ae=ie.value;else if(ie.nodeName==="INPUT"||ie.nodeName==="TEXTAREA"){var he=ie.hasAttribute("readonly");he||ie.setAttribute("readonly",""),ie.select(),ie.setSelectionRange(0,ie.value.length),he||ie.removeAttribute("readonly"),ae=ie.value}else{ie.hasAttribute("contenteditable")&&ie.focus();var le=window.getSelection(),ue=document.createRange();ue.selectNodeContents(ie),le.removeAllRanges(),le.addRange(ue),ae=le.toString()}return ae}oe.exports=re},279:function(oe){function re(){}re.prototype={on:function(ie,ae,he){var le=this.e||(this.e={});return(le[ie]||(le[ie]=[])).push({fn:ae,ctx:he}),this},once:function(ie,ae,he){var le=this;function ue(){le.off(ie,ue),ae.apply(he,arguments)}return ue._=ae,this.on(ie,ue,he)},emit:function(ie){var ae=[].slice.call(arguments,1),he=((this.e||(this.e={}))[ie]||[]).slice(),le=0,ue=he.length;for(le;le{const k=($==null?void 0:$.appendToBody)===void 0?!0:$.appendToBody;return{toClipboard(V,z){return new Promise((j,oe)=>{const re=document.createElement("button"),ie=new Clipboard(re,{text:()=>V,action:()=>"copy",container:z!==void 0?z:document.body});ie.on("success",ae=>{ie.destroy(),j(ae)}),ie.on("error",ae=>{ie.destroy(),oe(ae)}),k&&document.body.appendChild(re),re.click(),k&&document.body.removeChild(re)})}}};function commonFunction(){const{t:$}=useI18n_1(),{toClipboard:k}=useClipboard();return{percentFormat:(he,le,ue)=>ue?`${ue}%`:"-",dateFormatYMD:(he,le,ue)=>ue?formatDate(new Date(ue),"YYYY-mm-dd"):"-",dateFormatYMDHMS:(he,le,ue)=>ue?formatDate(new Date(ue),"YYYY-mm-dd HH:MM:SS"):"-",dateFormatHMS:(he,le,ue)=>{if(!ue)return"-";let de=0;return typeof he=="number"&&(de=he),typeof ue=="number"&&(de=ue),formatDate(new Date(de*1e3),"HH:MM:SS")},scaleFormat:(he=0,le=4)=>Number.parseFloat(he).toFixed(le),scale2Format:(he=0)=>Number.parseFloat(he).toFixed(2),copyText:he=>new Promise((le,ue)=>{try{k(he),ElMessage.success($("message.layout.copyTextSuccess")),le(he)}catch(de){ElMessage.error($("message.layout.copyTextError")),ue(de)}})}}var setings_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2=defineComponent({name:"layoutBreadcrumbSeting",setup(){const{proxy:$}=getCurrentInstance(),k=useThemeConfig(),{themeConfig:V}=storeToRefs(k),{copyText:z}=commonFunction(),j=reactive({isMobile:!1}),oe=computed(()=>V.value),re=()=>{if(!oe.value.primary)return ElMessage.warning("\u5168\u5C40\u4E3B\u9898 primary \u989C\u8272\u503C\u4E0D\u80FD\u4E3A\u7A7A");document.documentElement.style.setProperty("--el-color-primary-dark-2",`${getDarkColor(oe.value.primary,.1)}`),document.documentElement.style.setProperty("--el-color-primary",oe.value.primary);for(let En=1;En<=9;En++)document.documentElement.style.setProperty(`--el-color-primary-light-${En}`,`${getLightColor(oe.value.primary,En/10)}`);Pt()},ie=En=>{document.documentElement.style.setProperty(`--next-bg-${En}`,oe.value[En]),En==="menuBar"&&document.documentElement.style.setProperty("--next-bg-menuBar-light-1",getLightColor(oe.value.menuBar,.05)),ae(),he(),le(),Pt()},ae=()=>{ue(".layout-navbars-breadcrumb-index",oe.value.isTopBarColorGradual,oe.value.topBar)},he=()=>{ue(".layout-container .el-aside",oe.value.isMenuBarColorGradual,oe.value.menuBar)},le=()=>{ue(".layout-container .layout-columns-aside",oe.value.isColumnsMenuBarColorGradual,oe.value.columnsMenuBar)},ue=(En,Sn,An)=>{setTimeout(()=>{let Cn=document.querySelector(En);if(!Cn)return!1;document.documentElement.style.setProperty("--el-menu-bg-color",document.documentElement.style.getPropertyValue("--next-bg-menuBar")),Sn?Cn.setAttribute("style",`background:linear-gradient(to bottom left , ${An}, ${getLightColor(An,.6)}) !important;`):Cn.setAttribute("style",""),jt()},200)},de=()=>{Pt()},pe=()=>{oe.value.isFixedHeaderChange=!oe.value.isFixedHeader,jt()},$e=()=>{oe.value.isBreadcrumb=!1,jt(),$.mittBus.emit("getBreadcrumbIndexSetFilterRoutes")},_e=()=>{oe.value.isShowLogoChange=!oe.value.isShowLogo,jt()},Ce=()=>{oe.value.layout==="classic"&&(oe.value.isClassicSplitMenu=!1),jt()},Ie=()=>{$.mittBus.emit("openOrCloseSortable"),jt()},ze=()=>{$.mittBus.emit("openShareTagsView"),jt()},Et=En=>{En==="grayscale"?oe.value.isGrayscale&&(oe.value.isInvert=!1):oe.value.isInvert&&(oe.value.isGrayscale=!1);const Sn=En==="grayscale"?`grayscale(${oe.value.isGrayscale?1:0})`:`invert(${oe.value.isInvert?"80%":"0%"})`;document.body.setAttribute("style",`filter: ${Sn}`),jt()},qe=()=>{const En=document.documentElement;oe.value.isIsDark?En.setAttribute("data-theme","dark"):En.setAttribute("data-theme","")},Oe=()=>{oe.value.isWartermark?watermark.set(oe.value.wartermarkText):watermark.del(),jt()},Ue=En=>{if(oe.value.wartermarkText=verifyAndSpace(En),oe.value.wartermarkText==="")return!1;oe.value.isWartermark&&watermark.set(oe.value.wartermarkText),jt()},Dt=En=>{if(Local.set("oldLayout",En),oe.value.layout===En)return!1;En==="transverse"&&(oe.value.isCollapse=!1),oe.value.layout=En,oe.value.isDrawer=!1,At()},At=()=>{ie("menuBar"),ie("menuBarColor"),ie("topBar"),ie("topBarColor"),ie("columnsMenuBar"),ie("columnsMenuBarColor")},Lt=()=>{oe.value.isFixedHeaderChange=!1,oe.value.isShowLogoChange=!1,oe.value.isDrawer=!1,jt()},kt=()=>{oe.value.isDrawer=!0},Pt=()=>{jt(),vn()},jt=()=>{Local.remove("themeConfig"),Local.set("themeConfig",oe.value)},vn=()=>{Local.set("themeConfigStyle",document.documentElement.style.cssText)},$n=()=>{let En=Local.get("themeConfig");En.isDrawer=!1,z(JSON.stringify(En)).then(()=>{oe.value.isDrawer=!1})},wn=()=>{Local.clear(),window.location.reload()},_n=()=>{ae(),he(),le()};return onMounted(()=>{nextTick(()=>{Local.get("frequency")||At(),Local.set("frequency",1),$.mittBus.on("layoutMobileResize",En=>{oe.value.layout=En.layout,oe.value.isDrawer=!1,At(),j.isMobile=other.isMobile()}),setTimeout(()=>{re(),oe.value.isGrayscale&&Et("grayscale"),oe.value.isInvert&&Et("invert"),oe.value.isIsDark&&qe(),Oe(),Local.get("themeConfig")&&($.$i18n.locale=Local.get("themeConfig").globalI18n),_n()},100)})}),onUnmounted(()=>{$.mittBus.off("layoutMobileResize",()=>{})}),oo({openDrawer:kt,onColorPickerChange:re,onBgColorPickerChange:ie,onTopBarGradualChange:ae,onMenuBarGradualChange:he,onColumnsMenuBarGradualChange:le,onThemeConfigChange:de,onIsFixedHeaderChange:pe,onIsShowLogoChange:_e,getThemeConfig:oe,onDrawerClose:Lt,onAddFilterChange:Et,onAddDarkChange:qe,onWartermarkChange:Oe,onWartermarkTextInput:Ue,onSetLayout:Dt,setLocalThemeConfig:jt,onClassicSplitMenuChange:$e,onIsBreadcrumbChange:Ce,onSortableTagsViewChange:Ie,onShareTagsViewChange:ze,onCopyConfigClick:$n,onResetConfigClick:wn},toRefs(j))}}),_withScopeId=$=>(pushScopeId("data-v-eeef8fe2"),$=$(),popScopeId(),$),_hoisted_1$1={class:"layout-breadcrumb-seting"},_hoisted_2$1={class:"layout-breadcrumb-seting-bar-flex"},_hoisted_3=_withScopeId(()=>createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex-label"},"primary",-1)),_hoisted_4={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_5={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_6={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_7={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_8={class:"layout-breadcrumb-seting-bar-flex"},_hoisted_9={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_10={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_11={class:"layout-breadcrumb-seting-bar-flex"},_hoisted_12={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_13={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_14={class:"layout-breadcrumb-seting-bar-flex mt10"},_hoisted_15={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_16={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_17={class:"layout-breadcrumb-seting-bar-flex"},_hoisted_18={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_19={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_20={class:"layout-breadcrumb-seting-bar-flex"},_hoisted_21={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_22={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_23={class:"layout-breadcrumb-seting-bar-flex mt14"},_hoisted_24={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_25={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_26={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_27={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_28={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_29={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_30={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_31={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_32={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_33={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_34={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_35={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_36={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_37={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_38={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_39={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_40={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_41={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_42={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_43={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_44={class:"layout-breadcrumb-seting-bar-flex mt11"},_hoisted_45={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_46={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_47={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_48={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_49={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_50={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_51={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_52={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_53={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_54={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_55={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_56={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_57={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_58={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_59={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_60={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_61={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_62={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_63={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_64={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_65={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_66={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_67={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_68={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_69={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_70={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_71={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_72={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_73={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_74={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_75={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_76={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_77={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_78={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_79={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_80={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_81={class:"layout-breadcrumb-seting-bar-flex mt14"},_hoisted_82={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_83={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_84={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_85={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_86={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_87={class:"layout-breadcrumb-seting-bar-flex mt15"},_hoisted_88={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_89={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_90={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_91={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_92={class:"layout-breadcrumb-seting-bar-flex-label"},_hoisted_93={class:"layout-breadcrumb-seting-bar-flex-value"},_hoisted_94={class:"layout-drawer-content-flex"},_hoisted_95=_withScopeId(()=>createBaseVNode("aside",{class:"el-aside",style:{width:"20px"}},null,-1)),_hoisted_96=_withScopeId(()=>createBaseVNode("section",{class:"el-container is-vertical"},[createBaseVNode("header",{class:"el-header",style:{height:"10px"}}),createBaseVNode("main",{class:"el-main"})],-1)),_hoisted_97=[_hoisted_95,_hoisted_96],_hoisted_98={class:"layout-tips-box"},_hoisted_99={class:"layout-tips-txt"},_hoisted_100=_withScopeId(()=>createBaseVNode("header",{class:"el-header",style:{height:"10px"}},null,-1)),_hoisted_101=_withScopeId(()=>createBaseVNode("section",{class:"el-container"},[createBaseVNode("aside",{class:"el-aside",style:{width:"20px"}}),createBaseVNode("section",{class:"el-container is-vertical"},[createBaseVNode("main",{class:"el-main"})])],-1)),_hoisted_102=[_hoisted_100,_hoisted_101],_hoisted_103={class:"layout-tips-box"},_hoisted_104={class:"layout-tips-txt"},_hoisted_105=_withScopeId(()=>createBaseVNode("header",{class:"el-header",style:{height:"10px"}},null,-1)),_hoisted_106=_withScopeId(()=>createBaseVNode("section",{class:"el-container"},[createBaseVNode("section",{class:"el-container is-vertical"},[createBaseVNode("main",{class:"el-main"})])],-1)),_hoisted_107=[_hoisted_105,_hoisted_106],_hoisted_108={class:"layout-tips-box"},_hoisted_109={class:"layout-tips-txt"},_hoisted_110=_withScopeId(()=>createBaseVNode("aside",{class:"el-aside-dark",style:{width:"10px"}},null,-1)),_hoisted_111=_withScopeId(()=>createBaseVNode("aside",{class:"el-aside",style:{width:"20px"}},null,-1)),_hoisted_112=_withScopeId(()=>createBaseVNode("section",{class:"el-container is-vertical"},[createBaseVNode("header",{class:"el-header",style:{height:"10px"}}),createBaseVNode("main",{class:"el-main"})],-1)),_hoisted_113=[_hoisted_110,_hoisted_111,_hoisted_112],_hoisted_114={class:"layout-tips-box"},_hoisted_115={class:"layout-tips-txt"},_hoisted_116={class:"copy-config"};function _sfc_render$2($,k,V,z,j,oe){const re=resolveComponent("el-divider"),ie=resolveComponent("el-color-picker"),ae=resolveComponent("el-switch"),he=resolveComponent("el-input-number"),le=resolveComponent("el-input"),ue=resolveComponent("el-option"),de=resolveComponent("el-select"),pe=resolveComponent("el-alert"),$e=resolveComponent("ele-CopyDocument"),_e=resolveComponent("el-icon"),Ce=resolveComponent("el-button"),Ie=resolveComponent("ele-RefreshRight"),ze=resolveComponent("el-scrollbar"),Et=resolveComponent("el-drawer");return openBlock(),createElementBlock("div",_hoisted_1$1,[createVNode(Et,{title:$.$t("message.layout.configTitle"),modelValue:$.getThemeConfig.isDrawer,"onUpdate:modelValue":k[47]||(k[47]=qe=>$.getThemeConfig.isDrawer=qe),direction:"rtl","destroy-on-close":"",size:"260px",onClose:$.onDrawerClose},{default:withCtx(()=>[createVNode(ze,{class:"layout-breadcrumb-seting-bar"},{default:withCtx(()=>[createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.oneTitle")),1)]),_:1}),createBaseVNode("div",_hoisted_2$1,[_hoisted_3,createBaseVNode("div",_hoisted_4,[createVNode(ie,{modelValue:$.getThemeConfig.primary,"onUpdate:modelValue":k[0]||(k[0]=qe=>$.getThemeConfig.primary=qe),size:"default",onChange:$.onColorPickerChange},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_5,[createBaseVNode("div",_hoisted_6,toDisplayString$1($.$t("message.layout.fourIsDark")),1),createBaseVNode("div",_hoisted_7,[createVNode(ae,{modelValue:$.getThemeConfig.isIsDark,"onUpdate:modelValue":k[1]||(k[1]=qe=>$.getThemeConfig.isIsDark=qe),size:"small",onChange:$.onAddDarkChange},null,8,["modelValue","onChange"])])]),createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.twoTopTitle")),1)]),_:1}),createBaseVNode("div",_hoisted_8,[createBaseVNode("div",_hoisted_9,toDisplayString$1($.$t("message.layout.twoTopBar")),1),createBaseVNode("div",_hoisted_10,[createVNode(ie,{modelValue:$.getThemeConfig.topBar,"onUpdate:modelValue":k[2]||(k[2]=qe=>$.getThemeConfig.topBar=qe),size:"default",onChange:k[3]||(k[3]=qe=>$.onBgColorPickerChange("topBar"))},null,8,["modelValue"])])]),createBaseVNode("div",_hoisted_11,[createBaseVNode("div",_hoisted_12,toDisplayString$1($.$t("message.layout.twoTopBarColor")),1),createBaseVNode("div",_hoisted_13,[createVNode(ie,{modelValue:$.getThemeConfig.topBarColor,"onUpdate:modelValue":k[4]||(k[4]=qe=>$.getThemeConfig.topBarColor=qe),size:"default",onChange:k[5]||(k[5]=qe=>$.onBgColorPickerChange("topBarColor"))},null,8,["modelValue"])])]),createBaseVNode("div",_hoisted_14,[createBaseVNode("div",_hoisted_15,toDisplayString$1($.$t("message.layout.twoIsTopBarColorGradual")),1),createBaseVNode("div",_hoisted_16,[createVNode(ae,{modelValue:$.getThemeConfig.isTopBarColorGradual,"onUpdate:modelValue":k[6]||(k[6]=qe=>$.getThemeConfig.isTopBarColorGradual=qe),size:"small",onChange:$.onTopBarGradualChange},null,8,["modelValue","onChange"])])]),createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.twoMenuTitle")),1)]),_:1}),createBaseVNode("div",_hoisted_17,[createBaseVNode("div",_hoisted_18,toDisplayString$1($.$t("message.layout.twoMenuBar")),1),createBaseVNode("div",_hoisted_19,[createVNode(ie,{modelValue:$.getThemeConfig.menuBar,"onUpdate:modelValue":k[7]||(k[7]=qe=>$.getThemeConfig.menuBar=qe),size:"default",onChange:k[8]||(k[8]=qe=>$.onBgColorPickerChange("menuBar"))},null,8,["modelValue"])])]),createBaseVNode("div",_hoisted_20,[createBaseVNode("div",_hoisted_21,toDisplayString$1($.$t("message.layout.twoMenuBarColor")),1),createBaseVNode("div",_hoisted_22,[createVNode(ie,{modelValue:$.getThemeConfig.menuBarColor,"onUpdate:modelValue":k[9]||(k[9]=qe=>$.getThemeConfig.menuBarColor=qe),size:"default",onChange:k[10]||(k[10]=qe=>$.onBgColorPickerChange("menuBarColor"))},null,8,["modelValue"])])]),createBaseVNode("div",_hoisted_23,[createBaseVNode("div",_hoisted_24,toDisplayString$1($.$t("message.layout.twoIsMenuBarColorGradual")),1),createBaseVNode("div",_hoisted_25,[createVNode(ae,{modelValue:$.getThemeConfig.isMenuBarColorGradual,"onUpdate:modelValue":k[11]||(k[11]=qe=>$.getThemeConfig.isMenuBarColorGradual=qe),size:"small",onChange:$.onMenuBarGradualChange},null,8,["modelValue","onChange"])])]),createVNode(re,{"content-position":"left",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="columns"?.5:1})},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.twoColumnsTitle")),1)]),_:1},8,["style"]),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="columns"?.5:1})},[createBaseVNode("div",_hoisted_26,toDisplayString$1($.$t("message.layout.twoColumnsMenuBar")),1),createBaseVNode("div",_hoisted_27,[createVNode(ie,{modelValue:$.getThemeConfig.columnsMenuBar,"onUpdate:modelValue":k[12]||(k[12]=qe=>$.getThemeConfig.columnsMenuBar=qe),size:"default",onChange:k[13]||(k[13]=qe=>$.onBgColorPickerChange("columnsMenuBar")),disabled:$.getThemeConfig.layout!=="columns"},null,8,["modelValue","disabled"])])],4),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="columns"?.5:1})},[createBaseVNode("div",_hoisted_28,toDisplayString$1($.$t("message.layout.twoColumnsMenuBarColor")),1),createBaseVNode("div",_hoisted_29,[createVNode(ie,{modelValue:$.getThemeConfig.columnsMenuBarColor,"onUpdate:modelValue":k[14]||(k[14]=qe=>$.getThemeConfig.columnsMenuBarColor=qe),size:"default",onChange:k[15]||(k[15]=qe=>$.onBgColorPickerChange("columnsMenuBarColor")),disabled:$.getThemeConfig.layout!=="columns"},null,8,["modelValue","disabled"])])],4),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt14",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="columns"?.5:1})},[createBaseVNode("div",_hoisted_30,toDisplayString$1($.$t("message.layout.twoIsColumnsMenuBarColorGradual")),1),createBaseVNode("div",_hoisted_31,[createVNode(ae,{modelValue:$.getThemeConfig.isColumnsMenuBarColorGradual,"onUpdate:modelValue":k[16]||(k[16]=qe=>$.getThemeConfig.isColumnsMenuBarColorGradual=qe),size:"small",onChange:$.onColumnsMenuBarGradualChange,disabled:$.getThemeConfig.layout!=="columns"},null,8,["modelValue","onChange","disabled"])])],4),createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.threeTitle")),1)]),_:1}),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex",style:normalizeStyle({opacity:$.getThemeConfig.layout==="transverse"?.5:1})},[createBaseVNode("div",_hoisted_32,toDisplayString$1($.$t("message.layout.threeIsCollapse")),1),createBaseVNode("div",_hoisted_33,[createVNode(ae,{modelValue:$.getThemeConfig.isCollapse,"onUpdate:modelValue":k[17]||(k[17]=qe=>$.getThemeConfig.isCollapse=qe),disabled:$.getThemeConfig.layout==="transverse",size:"small",onChange:$.onThemeConfigChange},null,8,["modelValue","disabled","onChange"])])],4),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt15",style:normalizeStyle({opacity:$.getThemeConfig.layout==="transverse"?.5:1})},[createBaseVNode("div",_hoisted_34,toDisplayString$1($.$t("message.layout.threeIsUniqueOpened")),1),createBaseVNode("div",_hoisted_35,[createVNode(ae,{modelValue:$.getThemeConfig.isUniqueOpened,"onUpdate:modelValue":k[18]||(k[18]=qe=>$.getThemeConfig.isUniqueOpened=qe),disabled:$.getThemeConfig.layout==="transverse",size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","disabled","onChange"])])],4),createBaseVNode("div",_hoisted_36,[createBaseVNode("div",_hoisted_37,toDisplayString$1($.$t("message.layout.threeIsFixedHeader")),1),createBaseVNode("div",_hoisted_38,[createVNode(ae,{modelValue:$.getThemeConfig.isFixedHeader,"onUpdate:modelValue":k[19]||(k[19]=qe=>$.getThemeConfig.isFixedHeader=qe),size:"small",onChange:$.onIsFixedHeaderChange},null,8,["modelValue","onChange"])])]),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt15",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="classic"?.5:1})},[createBaseVNode("div",_hoisted_39,toDisplayString$1($.$t("message.layout.threeIsClassicSplitMenu")),1),createBaseVNode("div",_hoisted_40,[createVNode(ae,{modelValue:$.getThemeConfig.isClassicSplitMenu,"onUpdate:modelValue":k[20]||(k[20]=qe=>$.getThemeConfig.isClassicSplitMenu=qe),disabled:$.getThemeConfig.layout!=="classic",size:"small",onChange:$.onClassicSplitMenuChange},null,8,["modelValue","disabled","onChange"])])],4),createBaseVNode("div",_hoisted_41,[createBaseVNode("div",_hoisted_42,toDisplayString$1($.$t("message.layout.threeIsLockScreen")),1),createBaseVNode("div",_hoisted_43,[createVNode(ae,{modelValue:$.getThemeConfig.isLockScreen,"onUpdate:modelValue":k[21]||(k[21]=qe=>$.getThemeConfig.isLockScreen=qe),size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_44,[createBaseVNode("div",_hoisted_45,toDisplayString$1($.$t("message.layout.threeLockScreenTime")),1),createBaseVNode("div",_hoisted_46,[createVNode(he,{modelValue:$.getThemeConfig.lockScreenTime,"onUpdate:modelValue":k[22]||(k[22]=qe=>$.getThemeConfig.lockScreenTime=qe),"controls-position":"right",min:1,max:9999,onChange:$.setLocalThemeConfig,size:"default",style:{width:"90px"}},null,8,["modelValue","onChange"])])]),createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.fourTitle")),1)]),_:1}),createBaseVNode("div",_hoisted_47,[createBaseVNode("div",_hoisted_48,toDisplayString$1($.$t("message.layout.fourIsShowLogo")),1),createBaseVNode("div",_hoisted_49,[createVNode(ae,{modelValue:$.getThemeConfig.isShowLogo,"onUpdate:modelValue":k[23]||(k[23]=qe=>$.getThemeConfig.isShowLogo=qe),size:"small",onChange:$.onIsShowLogoChange},null,8,["modelValue","onChange"])])]),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt15",style:normalizeStyle({opacity:$.getThemeConfig.layout==="classic"||$.getThemeConfig.layout==="transverse"?.5:1})},[createBaseVNode("div",_hoisted_50,toDisplayString$1($.$t("message.layout.fourIsBreadcrumb")),1),createBaseVNode("div",_hoisted_51,[createVNode(ae,{modelValue:$.getThemeConfig.isBreadcrumb,"onUpdate:modelValue":k[24]||(k[24]=qe=>$.getThemeConfig.isBreadcrumb=qe),disabled:$.getThemeConfig.layout==="classic"||$.getThemeConfig.layout==="transverse",size:"small",onChange:$.onIsBreadcrumbChange},null,8,["modelValue","disabled","onChange"])])],4),createBaseVNode("div",_hoisted_52,[createBaseVNode("div",_hoisted_53,toDisplayString$1($.$t("message.layout.fourIsBreadcrumbIcon")),1),createBaseVNode("div",_hoisted_54,[createVNode(ae,{modelValue:$.getThemeConfig.isBreadcrumbIcon,"onUpdate:modelValue":k[25]||(k[25]=qe=>$.getThemeConfig.isBreadcrumbIcon=qe),size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_55,[createBaseVNode("div",_hoisted_56,toDisplayString$1($.$t("message.layout.fourIsTagsview")),1),createBaseVNode("div",_hoisted_57,[createVNode(ae,{modelValue:$.getThemeConfig.isTagsview,"onUpdate:modelValue":k[26]||(k[26]=qe=>$.getThemeConfig.isTagsview=qe),size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_58,[createBaseVNode("div",_hoisted_59,toDisplayString$1($.$t("message.layout.fourIsTagsviewIcon")),1),createBaseVNode("div",_hoisted_60,[createVNode(ae,{modelValue:$.getThemeConfig.isTagsviewIcon,"onUpdate:modelValue":k[27]||(k[27]=qe=>$.getThemeConfig.isTagsviewIcon=qe),size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_61,[createBaseVNode("div",_hoisted_62,toDisplayString$1($.$t("message.layout.fourIsCacheTagsView")),1),createBaseVNode("div",_hoisted_63,[createVNode(ae,{modelValue:$.getThemeConfig.isCacheTagsView,"onUpdate:modelValue":k[28]||(k[28]=qe=>$.getThemeConfig.isCacheTagsView=qe),size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","onChange"])])]),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt15",style:normalizeStyle({opacity:$.isMobile?.5:1})},[createBaseVNode("div",_hoisted_64,toDisplayString$1($.$t("message.layout.fourIsSortableTagsView")),1),createBaseVNode("div",_hoisted_65,[createVNode(ae,{modelValue:$.getThemeConfig.isSortableTagsView,"onUpdate:modelValue":k[29]||(k[29]=qe=>$.getThemeConfig.isSortableTagsView=qe),disabled:!!$.isMobile,size:"small",onChange:$.onSortableTagsViewChange},null,8,["modelValue","disabled","onChange"])])],4),createBaseVNode("div",_hoisted_66,[createBaseVNode("div",_hoisted_67,toDisplayString$1($.$t("message.layout.fourIsShareTagsView")),1),createBaseVNode("div",_hoisted_68,[createVNode(ae,{modelValue:$.getThemeConfig.isShareTagsView,"onUpdate:modelValue":k[30]||(k[30]=qe=>$.getThemeConfig.isShareTagsView=qe),size:"small",onChange:$.onShareTagsViewChange},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_69,[createBaseVNode("div",_hoisted_70,toDisplayString$1($.$t("message.layout.fourIsFooter")),1),createBaseVNode("div",_hoisted_71,[createVNode(ae,{modelValue:$.getThemeConfig.isFooter,"onUpdate:modelValue":k[31]||(k[31]=qe=>$.getThemeConfig.isFooter=qe),size:"small",onChange:$.setLocalThemeConfig},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_72,[createBaseVNode("div",_hoisted_73,toDisplayString$1($.$t("message.layout.fourIsGrayscale")),1),createBaseVNode("div",_hoisted_74,[createVNode(ae,{modelValue:$.getThemeConfig.isGrayscale,"onUpdate:modelValue":k[32]||(k[32]=qe=>$.getThemeConfig.isGrayscale=qe),size:"small",onChange:k[33]||(k[33]=qe=>$.onAddFilterChange("grayscale"))},null,8,["modelValue"])])]),createBaseVNode("div",_hoisted_75,[createBaseVNode("div",_hoisted_76,toDisplayString$1($.$t("message.layout.fourIsInvert")),1),createBaseVNode("div",_hoisted_77,[createVNode(ae,{modelValue:$.getThemeConfig.isInvert,"onUpdate:modelValue":k[34]||(k[34]=qe=>$.getThemeConfig.isInvert=qe),size:"small",onChange:k[35]||(k[35]=qe=>$.onAddFilterChange("invert"))},null,8,["modelValue"])])]),createBaseVNode("div",_hoisted_78,[createBaseVNode("div",_hoisted_79,toDisplayString$1($.$t("message.layout.fourIsWartermark")),1),createBaseVNode("div",_hoisted_80,[createVNode(ae,{modelValue:$.getThemeConfig.isWartermark,"onUpdate:modelValue":k[36]||(k[36]=qe=>$.getThemeConfig.isWartermark=qe),size:"small",onChange:$.onWartermarkChange},null,8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_81,[createBaseVNode("div",_hoisted_82,toDisplayString$1($.$t("message.layout.fourWartermarkText")),1),createBaseVNode("div",_hoisted_83,[createVNode(le,{modelValue:$.getThemeConfig.wartermarkText,"onUpdate:modelValue":k[37]||(k[37]=qe=>$.getThemeConfig.wartermarkText=qe),size:"default",style:{width:"90px"},onInput:k[38]||(k[38]=qe=>$.onWartermarkTextInput(qe))},null,8,["modelValue"])])]),createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.fiveTitle")),1)]),_:1}),createBaseVNode("div",_hoisted_84,[createBaseVNode("div",_hoisted_85,toDisplayString$1($.$t("message.layout.fiveTagsStyle")),1),createBaseVNode("div",_hoisted_86,[createVNode(de,{modelValue:$.getThemeConfig.tagsStyle,"onUpdate:modelValue":k[39]||(k[39]=qe=>$.getThemeConfig.tagsStyle=qe),placeholder:"\u8BF7\u9009\u62E9",size:"default",style:{width:"90px"},onChange:$.setLocalThemeConfig},{default:withCtx(()=>[createVNode(ue,{label:"\u98CE\u683C1",value:"tags-style-one"}),createVNode(ue,{label:"\u98CE\u683C4",value:"tags-style-four"}),createVNode(ue,{label:"\u98CE\u683C5",value:"tags-style-five"})]),_:1},8,["modelValue","onChange"])])]),createBaseVNode("div",_hoisted_87,[createBaseVNode("div",_hoisted_88,toDisplayString$1($.$t("message.layout.fiveAnimation")),1),createBaseVNode("div",_hoisted_89,[createVNode(de,{modelValue:$.getThemeConfig.animation,"onUpdate:modelValue":k[40]||(k[40]=qe=>$.getThemeConfig.animation=qe),placeholder:"\u8BF7\u9009\u62E9",size:"default",style:{width:"90px"},onChange:$.setLocalThemeConfig},{default:withCtx(()=>[createVNode(ue,{label:"slide-right",value:"slide-right"}),createVNode(ue,{label:"slide-left",value:"slide-left"}),createVNode(ue,{label:"opacitys",value:"opacitys"})]),_:1},8,["modelValue","onChange"])])]),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt15",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="columns"?.5:1})},[createBaseVNode("div",_hoisted_90,toDisplayString$1($.$t("message.layout.fiveColumnsAsideStyle")),1),createBaseVNode("div",_hoisted_91,[createVNode(de,{modelValue:$.getThemeConfig.columnsAsideStyle,"onUpdate:modelValue":k[41]||(k[41]=qe=>$.getThemeConfig.columnsAsideStyle=qe),placeholder:"\u8BF7\u9009\u62E9",size:"default",style:{width:"90px"},disabled:$.getThemeConfig.layout!=="columns",onChange:$.setLocalThemeConfig},{default:withCtx(()=>[createVNode(ue,{label:"\u5706\u89D2",value:"columns-round"}),createVNode(ue,{label:"\u5361\u7247",value:"columns-card"})]),_:1},8,["modelValue","disabled","onChange"])])],4),createBaseVNode("div",{class:"layout-breadcrumb-seting-bar-flex mt15 mb27",style:normalizeStyle({opacity:$.getThemeConfig.layout!=="columns"?.5:1})},[createBaseVNode("div",_hoisted_92,toDisplayString$1($.$t("message.layout.fiveColumnsAsideLayout")),1),createBaseVNode("div",_hoisted_93,[createVNode(de,{modelValue:$.getThemeConfig.columnsAsideLayout,"onUpdate:modelValue":k[42]||(k[42]=qe=>$.getThemeConfig.columnsAsideLayout=qe),placeholder:"\u8BF7\u9009\u62E9",size:"default",style:{width:"90px"},disabled:$.getThemeConfig.layout!=="columns",onChange:$.setLocalThemeConfig},{default:withCtx(()=>[createVNode(ue,{label:"\u6C34\u5E73",value:"columns-horizontal"}),createVNode(ue,{label:"\u5782\u76F4",value:"columns-vertical"})]),_:1},8,["modelValue","disabled","onChange"])])],4),createVNode(re,{"content-position":"left"},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.$t("message.layout.sixTitle")),1)]),_:1}),createBaseVNode("div",_hoisted_94,[createBaseVNode("div",{class:"layout-drawer-content-item",onClick:k[43]||(k[43]=qe=>$.onSetLayout("defaults"))},[createBaseVNode("section",{class:normalizeClass(["el-container el-circular",{"drawer-layout-active":$.getThemeConfig.layout==="defaults"}])},_hoisted_97,2),createBaseVNode("div",{class:normalizeClass(["layout-tips-warp",{"layout-tips-warp-active":$.getThemeConfig.layout==="defaults"}])},[createBaseVNode("div",_hoisted_98,[createBaseVNode("p",_hoisted_99,toDisplayString$1($.$t("message.layout.sixDefaults")),1)])],2)]),createBaseVNode("div",{class:"layout-drawer-content-item",onClick:k[44]||(k[44]=qe=>$.onSetLayout("classic"))},[createBaseVNode("section",{class:normalizeClass(["el-container is-vertical el-circular",{"drawer-layout-active":$.getThemeConfig.layout==="classic"}])},_hoisted_102,2),createBaseVNode("div",{class:normalizeClass(["layout-tips-warp",{"layout-tips-warp-active":$.getThemeConfig.layout==="classic"}])},[createBaseVNode("div",_hoisted_103,[createBaseVNode("p",_hoisted_104,toDisplayString$1($.$t("message.layout.sixClassic")),1)])],2)]),createBaseVNode("div",{class:"layout-drawer-content-item",onClick:k[45]||(k[45]=qe=>$.onSetLayout("transverse"))},[createBaseVNode("section",{class:normalizeClass(["el-container is-vertical el-circular",{"drawer-layout-active":$.getThemeConfig.layout==="transverse"}])},_hoisted_107,2),createBaseVNode("div",{class:normalizeClass(["layout-tips-warp",{"layout-tips-warp-active":$.getThemeConfig.layout==="transverse"}])},[createBaseVNode("div",_hoisted_108,[createBaseVNode("p",_hoisted_109,toDisplayString$1($.$t("message.layout.sixTransverse")),1)])],2)]),createBaseVNode("div",{class:"layout-drawer-content-item",onClick:k[46]||(k[46]=qe=>$.onSetLayout("columns"))},[createBaseVNode("section",{class:normalizeClass(["el-container el-circular",{"drawer-layout-active":$.getThemeConfig.layout==="columns"}])},_hoisted_113,2),createBaseVNode("div",{class:normalizeClass(["layout-tips-warp",{"layout-tips-warp-active":$.getThemeConfig.layout==="columns"}])},[createBaseVNode("div",_hoisted_114,[createBaseVNode("p",_hoisted_115,toDisplayString$1($.$t("message.layout.sixColumns")),1)])],2)])]),createBaseVNode("div",_hoisted_116,[createVNode(pe,{title:$.$t("message.layout.tipText"),type:"warning",closable:!1},null,8,["title"]),createVNode(Ce,{size:"default",class:"copy-config-btn",type:"primary",ref:"copyConfigBtnRef",onClick:$.onCopyConfigClick},{default:withCtx(()=>[createVNode(_e,{class:"mr5"},{default:withCtx(()=>[createVNode($e)]),_:1}),createTextVNode(" "+toDisplayString$1($.$t("message.layout.copyText")),1)]),_:1},8,["onClick"]),createVNode(Ce,{size:"default",class:"copy-config-btn-reset",type:"info",onClick:$.onResetConfigClick},{default:withCtx(()=>[createVNode(_e,{class:"mr5"},{default:withCtx(()=>[createVNode(Ie)]),_:1}),createTextVNode(" "+toDisplayString$1($.$t("message.layout.resetText")),1)]),_:1},8,["onClick"])])]),_:1})]),_:1},8,["title","modelValue","onClose"])])}var Setings=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-eeef8fe2"]]),closeFull_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$1=defineComponent({name:"layoutCloseFull",setup(){const $=useTagsViewRoutes(),{isTagsViewCurrenFull:k}=storeToRefs($);return{isTagsViewCurrenFull:k,onCloseFullscreen:()=>{$.setCurrenFullscreen(!1)}}}}),_hoisted_1={key:0,class:"layout-navbars-close-full"},_hoisted_2={class:"layout-navbars-close-full-icon"};function _sfc_render$1($,k,V,z,j,oe){const re=resolveComponent("SvgIcon");return $.isTagsViewCurrenFull?(openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(re,{name:"ele-Close",title:$.$t("message.tagsView.closeFullscreen"),onClick:$.onCloseFullscreen},null,8,["title","onClick"])])])):createCommentVNode("",!0)}var CloseFull=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-2701288b"]]);const _sfc_main=defineComponent({name:"app",components:{LockScreen,Setings,CloseFull},setup(){const{proxy:$}=getCurrentInstance(),k=ref(),V=useRoute(),z=useTagsViewRoutes(),j=useThemeConfig(),{themeConfig:oe}=storeToRefs(j),re=reactive({i18nLocale:null}),ie=computed(()=>other.globalComponentSize()),ae=()=>{k.value.openDrawer()};return onBeforeMount(()=>{setIntroduction.cssCdn(),setIntroduction.jsCdn()}),onMounted(()=>{nextTick(()=>{$.mittBus.on("openSetingsDrawer",()=>{ae()}),$.mittBus.on("getI18nConfig",he=>{re.i18nLocale=he}),Local.get("themeConfig")&&(j.setThemeConfig(Local.get("themeConfig")),document.documentElement.style.cssText=Local.get("themeConfigStyle")),Session.get("isTagsViewCurrenFull")&&z.setCurrenFullscreen(Session.get("isTagsViewCurrenFull"))})}),onUnmounted(()=>{$.mittBus.off("openSetingsDrawer",()=>{}),$.mittBus.off("getI18nConfig",()=>{})}),watch$1(()=>V.path,()=>{other.useTitle()},{deep:!0}),oo({themeConfig:oe,setingsRef:k,getGlobalComponentSize:ie},toRefs(re))}});function _sfc_render($,k,V,z,j,oe){const re=resolveComponent("router-view"),ie=resolveComponent("LockScreen"),ae=resolveComponent("Setings"),he=resolveComponent("CloseFull"),le=resolveComponent("el-config-provider");return openBlock(),createBlock(le,{size:$.getGlobalComponentSize,locale:$.i18nLocale},{default:withCtx(()=>[withDirectives(createVNode(re,null,null,512),[[vShow,$.themeConfig.lockScreenTime>1]]),$.themeConfig.isLockScreen?(openBlock(),createBlock(ie,{key:0})):createCommentVNode("",!0),withDirectives(createVNode(ae,{ref:"setingsRef"},null,512),[[vShow,$.themeConfig.lockScreenTime>1]]),$.themeConfig.isLockScreen?createCommentVNode("",!0):(openBlock(),createBlock(he,{key:1}))]),_:1},8,["size","locale"])}var App=_export_sfc(_sfc_main,[["render",_sfc_render]]);function judementSameArr($,k){const V=removeDuplicate($),z=removeDuplicate(k);let j=0;const oe=z.length;for(let re in z)for(let ie in V)z[re]===V[ie]&&j++;return j===oe}function isObjectValueEqual($,k){if(!$||!k)return!1;let V=Object.getOwnPropertyNames($),z=Object.getOwnPropertyNames(k);if(V.length!=z.length)return!1;for(let j=0;j(V[oe[k]]||(V[oe[k]]=oe[k]&&j.push(oe)),j),[])}else return Array.from(new Set([...$]))}function authDirective($){$.directive("auth",{mounted(k,V){useUserInfo().userInfos.authBtnList.some(j=>j===V.value)||k.parentNode.removeChild(k)}}),$.directive("auths",{mounted(k,V){let z=!1;useUserInfo().userInfos.authBtnList.map(oe=>{V.value.map(re=>{oe===re&&(z=!0)})}),z||k.parentNode.removeChild(k)}}),$.directive("auth-all",{mounted(k,V){const z=useUserInfo();judementSameArr(V.value,z.userInfos.authBtnList)||k.parentNode.removeChild(k)}})}function wavesDirective($){$.directive("waves",{mounted(k,V){k.classList.add("waves-effect"),V.value&&k.classList.add(`waves-${V.value}`);function z(oe){let re="";for(let ie in oe)oe.hasOwnProperty(ie)&&(re+=`${ie}:${oe[ie]};`);return re}function j(oe){let re=document.createElement("div");re.classList.add("waves-ripple"),k.appendChild(re);let ie={left:`${oe.layerX}px`,top:`${oe.layerY}px`,opacity:1,transform:`scale(${k.clientWidth/100*10})`,"transition-duration":"750ms","transition-timing-function":"cubic-bezier(0.250, 0.460, 0.450, 0.940)"};re.setAttribute("style",z(ie)),setTimeout(()=>{re.setAttribute("style",z({opacity:0,transform:ie.transform,left:ie.left,top:ie.top})),setTimeout(()=>{re&&k.removeChild(re)},750)},450)}k.addEventListener("mousedown",j,!1)},unmounted(k){k.addEventListener("mousedown",()=>{})}})}function dragDirective($){$.directive("drag",{mounted(k,V){if(!V.value)return!1;const z=document.querySelector(V.value[0]),j=document.querySelector(V.value[1]);j.onmouseover=()=>j.style.cursor="move";function oe(ie,ae){const he=ae==="pc"?ie.clientX-j.offsetLeft:ie.touches[0].clientX-j.offsetLeft,le=ae==="pc"?ie.clientY-j.offsetTop:ie.touches[0].clientY-j.offsetTop,ue=document.body.clientWidth,de=document.documentElement.clientHeight,pe=z.offsetWidth,$e=z.offsetHeight,_e=z.offsetLeft,Ce=ue-z.offsetLeft-pe,Ie=z.offsetTop,ze=de-z.offsetTop-$e;let Et=getComputedStyle(z).left,qe=getComputedStyle(z).top;return Et.includes("%")?(Et=+document.body.clientWidth*(+Et.replace(/\%/g,"")/100),qe=+document.body.clientHeight*(+qe.replace(/\%/g,"")/100)):(Et=+Et.replace(/\px/g,""),qe=+qe.replace(/\px/g,"")),{disX:he,disY:le,minDragDomLeft:_e,maxDragDomLeft:Ce,minDragDomTop:Ie,maxDragDomTop:ze,styL:Et,styT:qe}}function re(ie,ae,he){let{disX:le,disY:ue,minDragDomLeft:de,maxDragDomLeft:pe,minDragDomTop:$e,maxDragDomTop:_e,styL:Ce,styT:Ie}=he,ze=ae==="pc"?ie.clientX-le:ie.touches[0].clientX-le,Et=ae==="pc"?ie.clientY-ue:ie.touches[0].clientY-ue;-ze>de?ze=-de:ze>pe&&(ze=pe),-Et>$e?Et=-$e:Et>_e&&(Et=_e),z.style.cssText+=`;left:${ze+Ce}px;top:${Et+Ie}px;`}j.onmousedown=ie=>{const ae=oe(ie,"pc");document.onmousemove=he=>{re(he,"pc",ae)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},j.ontouchstart=ie=>{const ae=oe(ie,"app");document.ontouchmove=he=>{re(he,"app",ae)},document.ontouchend=()=>{document.ontouchmove=null,document.ontouchend=null}}}})}function directive($){authDirective($),wavesDirective($),dragDirective($)}var designer_umd={exports:{}};(function(module,exports){var Ae=Object.defineProperty,Fe=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Le=($,k,V)=>k in $?Ae($,k,{enumerable:!0,configurable:!0,writable:!0,value:V}):$[k]=V,xe=($,k)=>{for(var V in k||(k={}))Ne.call(k,V)&&Le($,V,k[V]);if(Te)for(var V of Te(k))Ve.call(k,V)&&Le($,V,k[V]);return $},ke=($,k)=>Fe($,Re(k));(function($,k){module.exports=k(require$$0)})(commonjsGlobal,function(require$$0$3){function _interopDefaultLegacy($){return $&&typeof $=="object"&&"default"in $?$:{default:$}}var require$$0__default=_interopDefaultLegacy(require$$0$3),commonjsGlobal$1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof commonjsGlobal!="undefined"?commonjsGlobal:typeof self!="undefined"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}var axios$2={exports:{}},bind$2=function($,k){return function(){for(var V=new Array(arguments.length),z=0;z=0)return;V==="set-cookie"?k[V]=(k[V]?k[V]:[]).concat([z]):k[V]=k[V]?k[V]+", "+z:z}}),k},utils$7=utils$d,isURLSameOrigin$1=utils$7.isStandardBrowserEnv()?function(){var $=/(msie|trident)/i.test(navigator.userAgent),k=document.createElement("a"),V;function z(j){var oe=j;return $&&(k.setAttribute("href",oe),oe=k.href),k.setAttribute("href",oe),{href:k.href,protocol:k.protocol?k.protocol.replace(/:$/,""):"",host:k.host,search:k.search?k.search.replace(/^\?/,""):"",hash:k.hash?k.hash.replace(/^#/,""):"",hostname:k.hostname,port:k.port,pathname:k.pathname.charAt(0)==="/"?k.pathname:"/"+k.pathname}}return V=z(window.location.href),function(j){var oe=utils$7.isString(j)?z(j):j;return oe.protocol===V.protocol&&oe.host===V.host}}():function(){return function(){return!0}}();function Cancel$3($){this.message=$}Cancel$3.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$6=utils$d,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,defaults$5=defaults_1,Cancel$2=Cancel_1,xhr=function($){return new Promise(function(k,V){var z=$.data,j=$.headers,oe=$.responseType,re;function ie(){$.cancelToken&&$.cancelToken.unsubscribe(re),$.signal&&$.signal.removeEventListener("abort",re)}utils$6.isFormData(z)&&delete j["Content-Type"];var ae=new XMLHttpRequest;if($.auth){var he=$.auth.username||"",le=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";j.Authorization="Basic "+btoa(he+":"+le)}var ue=buildFullPath($.baseURL,$.url);ae.open($.method.toUpperCase(),buildURL$1(ue,$.params,$.paramsSerializer),!0),ae.timeout=$.timeout;function de(){if(ae){var $e="getAllResponseHeaders"in ae?parseHeaders(ae.getAllResponseHeaders()):null,_e=!oe||oe==="text"||oe==="json"?ae.responseText:ae.response,Ce={data:_e,status:ae.status,statusText:ae.statusText,headers:$e,config:$,request:ae};settle(function(Ie){k(Ie),ie()},function(Ie){V(Ie),ie()},Ce),ae=null}}if("onloadend"in ae?ae.onloadend=de:ae.onreadystatechange=function(){!ae||ae.readyState!==4||ae.status===0&&!(ae.responseURL&&ae.responseURL.indexOf("file:")===0)||setTimeout(de)},ae.onabort=function(){!ae||(V(createError("Request aborted",$,"ECONNABORTED",ae)),ae=null)},ae.onerror=function(){V(createError("Network Error",$,null,ae)),ae=null},ae.ontimeout=function(){var $e=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",_e=$.transitional||defaults$5.transitional;$.timeoutErrorMessage&&($e=$.timeoutErrorMessage),V(createError($e,$,_e.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",ae)),ae=null},utils$6.isStandardBrowserEnv()){var pe=($.withCredentials||isURLSameOrigin(ue))&&$.xsrfCookieName?cookies.read($.xsrfCookieName):void 0;pe&&(j[$.xsrfHeaderName]=pe)}"setRequestHeader"in ae&&utils$6.forEach(j,function($e,_e){typeof z=="undefined"&&_e.toLowerCase()==="content-type"?delete j[_e]:ae.setRequestHeader(_e,$e)}),utils$6.isUndefined($.withCredentials)||(ae.withCredentials=!!$.withCredentials),oe&&oe!=="json"&&(ae.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&ae.addEventListener("progress",$.onDownloadProgress),typeof $.onUploadProgress=="function"&&ae.upload&&ae.upload.addEventListener("progress",$.onUploadProgress),($.cancelToken||$.signal)&&(re=function($e){!ae||(V(!$e||$e&&$e.type?new Cancel$2("canceled"):$e),ae.abort(),ae=null)},$.cancelToken&&$.cancelToken.subscribe(re),$.signal&&($.signal.aborted?re():$.signal.addEventListener("abort",re))),z||(z=null),ae.send(z)})},utils$5=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset($,k){!utils$5.isUndefined($)&&utils$5.isUndefined($["Content-Type"])&&($["Content-Type"]=k)}function getDefaultAdapter(){var $;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&($=xhr),$}function stringifySafely($,k,V){if(utils$5.isString($))try{return(k||JSON.parse)($),utils$5.trim($)}catch(z){if(z.name!=="SyntaxError")throw z}return(V||JSON.stringify)($)}var defaults$4={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function($,k){return normalizeHeaderName(k,"Accept"),normalizeHeaderName(k,"Content-Type"),utils$5.isFormData($)||utils$5.isArrayBuffer($)||utils$5.isBuffer($)||utils$5.isStream($)||utils$5.isFile($)||utils$5.isBlob($)?$:utils$5.isArrayBufferView($)?$.buffer:utils$5.isURLSearchParams($)?(setContentTypeIfUnset(k,"application/x-www-form-urlencoded;charset=utf-8"),$.toString()):utils$5.isObject($)||k&&k["Content-Type"]==="application/json"?(setContentTypeIfUnset(k,"application/json"),stringifySafely($)):$}],transformResponse:[function($){var k=this.transitional||defaults$4.transitional,V=k&&k.silentJSONParsing,z=k&&k.forcedJSONParsing,j=!V&&this.responseType==="json";if(j||z&&utils$5.isString($)&&$.length)try{return JSON.parse($)}catch(oe){if(j)throw oe.name==="SyntaxError"?enhanceError(oe,this,"E_JSON_PARSE"):oe}return $}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function($){return $>=200&&$<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$5.forEach(["delete","get","head"],function($){defaults$4.headers[$]={}}),utils$5.forEach(["post","put","patch"],function($){defaults$4.headers[$]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$4=utils$d,defaults$3=defaults_1,transformData$1=function($,k,V){var z=this||defaults$3;return utils$4.forEach(V,function(j){$=j.call(z,$,k)}),$},isCancel$1=function($){return!!($&&$.__CANCEL__)},utils$3=utils$d,transformData=transformData$1,isCancel=isCancel$1,defaults$2=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function($){throwIfCancellationRequested($),$.headers=$.headers||{},$.data=transformData.call($,$.data,$.headers,$.transformRequest),$.headers=utils$3.merge($.headers.common||{},$.headers[$.method]||{},$.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(V){delete $.headers[V]});var k=$.adapter||defaults$2.adapter;return k($).then(function(V){return throwIfCancellationRequested($),V.data=transformData.call($,V.data,V.headers,$.transformResponse),V},function(V){return isCancel(V)||(throwIfCancellationRequested($),V&&V.response&&(V.response.data=transformData.call($,V.response.data,V.response.headers,$.transformResponse))),Promise.reject(V)})},utils$2=utils$d,mergeConfig$2=function($,k){k=k||{};var V={};function z(he,le){return utils$2.isPlainObject(he)&&utils$2.isPlainObject(le)?utils$2.merge(he,le):utils$2.isPlainObject(le)?utils$2.merge({},le):utils$2.isArray(le)?le.slice():le}function j(he){if(utils$2.isUndefined(k[he])){if(!utils$2.isUndefined($[he]))return z(void 0,$[he])}else return z($[he],k[he])}function oe(he){if(!utils$2.isUndefined(k[he]))return z(void 0,k[he])}function re(he){if(utils$2.isUndefined(k[he])){if(!utils$2.isUndefined($[he]))return z(void 0,$[he])}else return z(void 0,k[he])}function ie(he){if(he in k)return z($[he],k[he]);if(he in $)return z(void 0,$[he])}var ae={url:oe,method:oe,data:oe,baseURL:re,transformRequest:re,transformResponse:re,paramsSerializer:re,timeout:re,timeoutMessage:re,withCredentials:re,adapter:re,responseType:re,xsrfCookieName:re,xsrfHeaderName:re,onUploadProgress:re,onDownloadProgress:re,decompress:re,maxContentLength:re,maxBodyLength:re,transport:re,httpAgent:re,httpsAgent:re,cancelToken:re,socketPath:re,responseEncoding:re,validateStatus:ie};return utils$2.forEach(Object.keys($).concat(Object.keys(k)),function(he){var le=ae[he]||j,ue=le(he);utils$2.isUndefined(ue)&&le!==ie||(V[he]=ue)}),V},data={version:"0.24.0"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function($,k){validators$1[$]=function(V){return typeof V===$||"a"+(k<1?"n ":" ")+$}});var deprecatedWarnings={};validators$1.transitional=function($,k,V){function z(j,oe){return"[Axios v"+VERSION+"] Transitional option '"+j+"'"+oe+(V?". "+V:"")}return function(j,oe,re){if($===!1)throw new Error(z(oe," has been removed"+(k?" in "+k:"")));return k&&!deprecatedWarnings[oe]&&(deprecatedWarnings[oe]=!0,console.warn(z(oe," has been deprecated since v"+k+" and will be removed in the near future"))),$?$(j,oe,re):!0}};function assertOptions($,k,V){if(typeof $!="object")throw new TypeError("options must be an object");for(var z=Object.keys($),j=z.length;j-- >0;){var oe=z[j],re=k[oe];if(re){var ie=$[oe],ae=ie===void 0||re(ie,oe,$);if(ae!==!0)throw new TypeError("option "+oe+" must be "+ae);continue}if(V!==!0)throw Error("Unknown option "+oe)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$d,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1($){this.defaults=$,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function($){typeof $=="string"?($=arguments[1]||{},$.url=arguments[0]):$=$||{},$=mergeConfig$1(this.defaults,$),$.method?$.method=$.method.toLowerCase():this.defaults.method?$.method=this.defaults.method.toLowerCase():$.method="get";var k=$.transitional;k!==void 0&&validator.assertOptions(k,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var V=[],z=!0;this.interceptors.request.forEach(function(le){typeof le.runWhen=="function"&&le.runWhen($)===!1||(z=z&&le.synchronous,V.unshift(le.fulfilled,le.rejected))});var j=[];this.interceptors.response.forEach(function(le){j.push(le.fulfilled,le.rejected)});var oe;if(!z){var re=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(re,V),re=re.concat(j),oe=Promise.resolve($);re.length;)oe=oe.then(re.shift(),re.shift());return oe}for(var ie=$;V.length;){var ae=V.shift(),he=V.shift();try{ie=ae(ie)}catch(le){he(le);break}}try{oe=dispatchRequest(ie)}catch(le){return Promise.reject(le)}for(;j.length;)oe=oe.then(j.shift(),j.shift());return oe},Axios$1.prototype.getUri=function($){return $=mergeConfig$1(this.defaults,$),buildURL($.url,$.params,$.paramsSerializer).replace(/^\?/,"")},utils$1.forEach(["delete","get","head","options"],function($){Axios$1.prototype[$]=function(k,V){return this.request(mergeConfig$1(V||{},{method:$,url:k,data:(V||{}).data}))}}),utils$1.forEach(["post","put","patch"],function($){Axios$1.prototype[$]=function(k,V,z){return this.request(mergeConfig$1(z||{},{method:$,url:k,data:V}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken($){if(typeof $!="function")throw new TypeError("executor must be a function.");var k;this.promise=new Promise(function(z){k=z});var V=this;this.promise.then(function(z){if(V._listeners){var j,oe=V._listeners.length;for(j=0;jhtml text",customClass:"",onCreated:"",onMounted:""}},{type:"button",icon:"button",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",size:"",displayStyle:"block",disabled:!1,hidden:!1,type:"",plain:!1,round:!1,circle:!1,icon:null,customClass:"",onCreated:"",onMounted:"",onClick:""}},{type:"divider",icon:"divider",formItemFlag:!1,options:{name:"",label:"",columnWidth:"200px",direction:"horizontal",contentPosition:"center",hidden:!1,customClass:"",onCreated:"",onMounted:""}}],advancedFields=[{type:"picture-upload",icon:"picture-upload-field",formItemFlag:!0,options:{name:"",label:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["jpg","jpeg","png"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"file-upload",icon:"file-upload-field",formItemFlag:!0,options:{name:"",label:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",uploadURL:"",uploadTip:"",withCredentials:!1,multipleSelect:!1,showFileList:!0,limit:3,fileMaxSize:5,fileTypes:["doc","docx","xls","xlsx"],customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onBeforeUpload:"",onUploadSuccess:"",onUploadError:"",onFileRemove:"",onValidate:""}},{type:"rich-editor",icon:"rich-editor-field",formItemFlag:!0,options:{name:"",label:"",placeholder:"",labelWidth:null,labelHidden:!1,contentHeight:"200px",disabled:!1,hidden:!1,required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,minLength:null,maxLength:null,showWordLimit:!1,onCreated:"",onMounted:"",onValidate:""}},{type:"cascader",icon:"cascader-field",formItemFlag:!0,options:{name:"",label:"",defaultValue:"",placeholder:"",size:"",labelWidth:null,labelHidden:!1,disabled:!1,hidden:!1,clearable:!0,filterable:!1,optionItems:[{label:"select 1",value:1,children:[{label:"child 1",value:11}]},{label:"select 2",value:2},{label:"select 3",value:3}],required:!1,requiredHint:"",customRule:"",customRuleHint:"",customClass:"",labelIconClass:null,labelIconPosition:"rear",labelTooltip:null,onCreated:"",onMounted:"",onChange:"",onFocus:"",onBlur:"",onValidate:""}}],customFields=[];function addContainerWidgetSchema($){containers.push($)}function addCustomWidgetSchema($){customFields.push($)}const formTemplates=[{title:"\u5355\u5217\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t1.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json1.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u591A\u5217\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t2.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json2.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u5206\u7EC4\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t3.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json3.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u6807\u7B7E\u9875\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t4.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json4.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u4E3B\u4ECE\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t5.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json5.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u54CD\u5E94\u5F0F\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t6.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json6.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u95EE\u5377\u8C03\u67E5\u8868",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t7.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json7.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."},{title:"\u56FA\u5B9A\u8868\u683C\u8868\u5355",imgUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/t8.png",jsonUrl:"https://ks3-cn-beijing.ksyuncs.com/vform-static/form-samples/json8.txt",description:"\u8868\u5355\u6A21\u677F\u8BE6\u7EC6\u8BF4\u660E..."}];var clipboard={exports:{}};/*! -* clipboard.js v2.0.11 -* https://clipboardjs.com/ -* -* Licensed MIT © Zeno Rocha -*/(function($,k){(function(V,z){$.exports=z()})(commonjsGlobal$1,function(){return function(){var V={686:function(oe,re,ie){ie.d(re,{default:function(){return Tn}});var ae=ie(279),he=ie.n(ae),le=ie(370),ue=ie.n(le),de=ie(817),pe=ie.n(de);function $e(Nn){try{return document.execCommand(Nn)}catch{return!1}}var _e=function(Nn){var xn=pe()(Nn);return $e("cut"),xn},Ce=_e;function Ie(Nn){var xn=document.documentElement.getAttribute("dir")==="rtl",On=document.createElement("textarea");On.style.fontSize="12pt",On.style.border="0",On.style.padding="0",On.style.margin="0",On.style.position="absolute",On.style[xn?"right":"left"]="-9999px";var Ln=window.pageYOffset||document.documentElement.scrollTop;return On.style.top="".concat(Ln,"px"),On.setAttribute("readonly",""),On.value=Nn,On}var ze=function(Nn,xn){var On=Ie(Nn);xn.container.appendChild(On);var Ln=pe()(On);return $e("copy"),On.remove(),Ln},Et=function(Nn){var xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},On="";return typeof Nn=="string"?On=ze(Nn,xn):Nn instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Nn==null?void 0:Nn.type)?On=ze(Nn.value,xn):(On=pe()(Nn),$e("copy")),On},qe=Et;function Oe(Nn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oe=function(xn){return typeof xn}:Oe=function(xn){return xn&&typeof Symbol=="function"&&xn.constructor===Symbol&&xn!==Symbol.prototype?"symbol":typeof xn},Oe(Nn)}var Ue=function(){var Nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xn=Nn.action,On=xn===void 0?"copy":xn,Ln=Nn.container,Bn=Nn.target,Vn=Nn.text;if(On!=="copy"&&On!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Bn!==void 0)if(Bn&&Oe(Bn)==="object"&&Bn.nodeType===1){if(On==="copy"&&Bn.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(On==="cut"&&(Bn.hasAttribute("readonly")||Bn.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Vn)return qe(Vn,{container:Ln});if(Bn)return On==="cut"?Ce(Bn):qe(Bn,{container:Ln})},Dt=Ue;function At(Nn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?At=function(xn){return typeof xn}:At=function(xn){return xn&&typeof Symbol=="function"&&xn.constructor===Symbol&&xn!==Symbol.prototype?"symbol":typeof xn},At(Nn)}function Lt(Nn,xn){if(!(Nn instanceof xn))throw new TypeError("Cannot call a class as a function")}function kt(Nn,xn){for(var On=0;On0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Ln.action=="function"?Ln.action:this.defaultAction,this.target=typeof Ln.target=="function"?Ln.target:this.defaultTarget,this.text=typeof Ln.text=="function"?Ln.text:this.defaultText,this.container=At(Ln.container)==="object"?Ln.container:document.body}},{key:"listenClick",value:function(Ln){var Bn=this;this.listener=ue()(Ln,"click",function(Vn){return Bn.onClick(Vn)})}},{key:"onClick",value:function(Ln){var Bn=Ln.delegateTarget||Ln.currentTarget,Vn=this.action(Bn)||"copy",Fn=Dt({action:Vn,container:this.container,target:this.target(Bn),text:this.text(Bn)});this.emit(Fn?"success":"error",{action:Vn,text:Fn,trigger:Bn,clearSelection:function(){Bn&&Bn.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Ln){return An("action",Ln)}},{key:"defaultTarget",value:function(Ln){var Bn=An("target",Ln);if(Bn)return document.querySelector(Bn)}},{key:"defaultText",value:function(Ln){return An("text",Ln)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Ln){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return qe(Ln,Bn)}},{key:"cut",value:function(Ln){return Ce(Ln)}},{key:"isSupported",value:function(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Bn=typeof Ln=="string"?[Ln]:Ln,Vn=!!document.queryCommandSupported;return Bn.forEach(function(Fn){Vn=Vn&&!!document.queryCommandSupported(Fn)}),Vn}}]),On}(he()),Tn=Cn},828:function(oe){var re=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var ie=Element.prototype;ie.matches=ie.matchesSelector||ie.mozMatchesSelector||ie.msMatchesSelector||ie.oMatchesSelector||ie.webkitMatchesSelector}function ae(he,le){for(;he&&he.nodeType!==re;){if(typeof he.matches=="function"&&he.matches(le))return he;he=he.parentNode}}oe.exports=ae},438:function(oe,re,ie){var ae=ie(828);function he(de,pe,$e,_e,Ce){var Ie=ue.apply(this,arguments);return de.addEventListener($e,Ie,Ce),{destroy:function(){de.removeEventListener($e,Ie,Ce)}}}function le(de,pe,$e,_e,Ce){return typeof de.addEventListener=="function"?he.apply(null,arguments):typeof $e=="function"?he.bind(null,document).apply(null,arguments):(typeof de=="string"&&(de=document.querySelectorAll(de)),Array.prototype.map.call(de,function(Ie){return he(Ie,pe,$e,_e,Ce)}))}function ue(de,pe,$e,_e){return function(Ce){Ce.delegateTarget=ae(Ce.target,pe),Ce.delegateTarget&&_e.call(de,Ce)}}oe.exports=le},879:function(oe,re){re.node=function(ie){return ie!==void 0&&ie instanceof HTMLElement&&ie.nodeType===1},re.nodeList=function(ie){var ae=Object.prototype.toString.call(ie);return ie!==void 0&&(ae==="[object NodeList]"||ae==="[object HTMLCollection]")&&"length"in ie&&(ie.length===0||re.node(ie[0]))},re.string=function(ie){return typeof ie=="string"||ie instanceof String},re.fn=function(ie){var ae=Object.prototype.toString.call(ie);return ae==="[object Function]"}},370:function(oe,re,ie){var ae=ie(879),he=ie(438);function le($e,_e,Ce){if(!$e&&!_e&&!Ce)throw new Error("Missing required arguments");if(!ae.string(_e))throw new TypeError("Second argument must be a String");if(!ae.fn(Ce))throw new TypeError("Third argument must be a Function");if(ae.node($e))return ue($e,_e,Ce);if(ae.nodeList($e))return de($e,_e,Ce);if(ae.string($e))return pe($e,_e,Ce);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ue($e,_e,Ce){return $e.addEventListener(_e,Ce),{destroy:function(){$e.removeEventListener(_e,Ce)}}}function de($e,_e,Ce){return Array.prototype.forEach.call($e,function(Ie){Ie.addEventListener(_e,Ce)}),{destroy:function(){Array.prototype.forEach.call($e,function(Ie){Ie.removeEventListener(_e,Ce)})}}}function pe($e,_e,Ce){return he(document.body,$e,_e,Ce)}oe.exports=le},817:function(oe){function re(ie){var ae;if(ie.nodeName==="SELECT")ie.focus(),ae=ie.value;else if(ie.nodeName==="INPUT"||ie.nodeName==="TEXTAREA"){var he=ie.hasAttribute("readonly");he||ie.setAttribute("readonly",""),ie.select(),ie.setSelectionRange(0,ie.value.length),he||ie.removeAttribute("readonly"),ae=ie.value}else{ie.hasAttribute("contenteditable")&&ie.focus();var le=window.getSelection(),ue=document.createRange();ue.selectNodeContents(ie),le.removeAllRanges(),le.addRange(ue),ae=le.toString()}return ae}oe.exports=re},279:function(oe){function re(){}re.prototype={on:function(ie,ae,he){var le=this.e||(this.e={});return(le[ie]||(le[ie]=[])).push({fn:ae,ctx:he}),this},once:function(ie,ae,he){var le=this;function ue(){le.off(ie,ue),ae.apply(he,arguments)}return ue._=ae,this.on(ie,ue,he)},emit:function(ie){var ae=[].slice.call(arguments,1),he=((this.e||(this.e={}))[ie]||[]).slice(),le=0,ue=he.length;for(le;le{$[V]=k[V]})},addWindowResizeHandler=function($){let k=window.onresize;typeof window.onresize!="function"?window.onresize=$:window.onresize=function(){k(),$()}},insertCustomCssToHead=function($,k=""){let V=document.getElementsByTagName("head")[0],z=document.getElementById("vform-custom-css");z&&V.removeChild(z),k&&(z=document.getElementById("vform-custom-css-"+k),z&&V.removeChild(z));let j=document.createElement("style");j.type="text/css",j.rel="stylesheet",j.id=k?"vform-custom-css-"+k:"vform-custom-css";try{j.appendChild(document.createTextNode($))}catch{j.styleSheet.cssText=$}V.appendChild(j)},insertGlobalFunctionsToHtml=function($,k=""){let V=document.getElementsByTagName("body")[0],z=document.getElementById("v_form_global_functions");z&&V.removeChild(z),k&&(z=document.getElementById("v_form_global_functions-"+k),z&&V.removeChild(z));let j=document.createElement("script");j.id=k?"v_form_global_functions-"+k:"v_form_global_functions",j.type="text/javascript",j.innerHTML=$,V.appendChild(j)},loadRemoteScript=function($,k){let V=encodeURIComponent($);if(!document.getElementById(V)){let z=document.createElement("script");z.src=$,z.id=V,document.body.appendChild(z),z.onload=z.onreadystatechange=function(j,oe){(oe||!z.readyState||z.readyState==="loaded"||z.readyState==="complete")&&(z=z.onload=z.onreadystatechange=null,oe||k())}}};function traverseFieldWidgets($,k){$.map(V=>{V.formItemFlag?k(V):V.type==="grid"?V.cols.map(z=>{traverseFieldWidgets(z.widgetList,k)}):V.type==="table"?V.rows.map(z=>{z.cols.map(j=>{traverseFieldWidgets(j.widgetList,k)})}):V.type==="tab"?V.tabs.map(z=>{traverseFieldWidgets(z.widgetList,k)}):(V.type==="sub-form"||V.category==="container")&&traverseFieldWidgets(V.widgetList,k)})}function traverseContainWidgets($,k){$.map(V=>{V.category==="container"&&k(V),V.type==="grid"?V.cols.map(z=>{traverseContainWidgets(z.widgetList,k)}):V.type==="table"?V.rows.map(z=>{z.cols.map(j=>{traverseContainWidgets(j.widgetList,k)})}):V.type==="tab"?V.tabs.map(z=>{traverseContainWidgets(z.widgetList,k)}):(V.type==="sub-form"||V.category==="container")&&traverseContainWidgets(V.widgetList,k)})}function traverseAllWidgets($,k){$.map(V=>{k(V),V.type==="grid"?V.cols.map(z=>{k(z),traverseAllWidgets(z.widgetList,k)}):V.type==="table"?V.rows.map(z=>{z.cols.map(j=>{k(j),traverseAllWidgets(j.widgetList,k)})}):V.type==="tab"?V.tabs.map(z=>{traverseAllWidgets(z.widgetList,k)}):(V.type==="sub-form"||V.category==="container")&&traverseAllWidgets(V.widgetList,k)})}function handleWidgetForTraverse($,k){$.category?traverseFieldWidgetsOfContainer($,k):$.formItemFlag&&k($)}function traverseFieldWidgetsOfContainer($,k){$.type==="grid"?$.cols.forEach(V=>{V.widgetList.forEach(z=>{handleWidgetForTraverse(z,k)})}):$.type==="table"?$.rows.forEach(V=>{V.cols.forEach(z=>{z.widgetList.forEach(j=>{handleWidgetForTraverse(j,k)})})}):$.type==="tab"?$.tabs.forEach(V=>{V.widgetList.forEach(z=>{handleWidgetForTraverse(z,k)})}):$.type==="sub-form"?$.widgetList.forEach(V=>{handleWidgetForTraverse(V,k)}):$.category==="container"&&$.widgetList.forEach(V=>{handleWidgetForTraverse(V,k)})}function getAllFieldWidgets($){let k=[];return traverseFieldWidgets($,V=>{k.push({type:V.type,name:V.options.name,field:V})}),k}function getAllContainerWidgets($){let k=[];return traverseContainWidgets($,V=>{k.push({type:V.type,name:V.options.name,container:V})}),k}function copyToClipboard($,k,V,z,j){const oe=new Clipboard(k.target,{text:()=>$});oe.on("success",()=>{V.success(z),oe.destroy()}),oe.on("error",()=>{V.error(j),oe.destroy()}),oe.onClick(k)}function getQueryParam($){let k=window.location.search.substring(1).split("&");for(let V=0;V{z=isDef(z)&&isDef(z[j])?z[j]:null}),z}let locale=require$$0$3.reactive({lang:localStorage.getItem("v_form_locale")||"zh-CN"});function createI18n($){return{messages:$.messages,$st(k,...V){const z=get(this.messages[locale.lang],k);return typeof z=="function"?z(...V):z!==null?z:k},$st2(k,V){let z=this.messages[locale.lang];const j=get(z,k);return j!==null?j:get(z,V)},setLang(k){locale.lang=k}}}var en={},en2={};(function($){Object.defineProperty($,"__esModule",{value:!0});var k={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};$.default=k})(en2);var require$$0$1=getDefaultExportFromCjs(en2);(function($){Object.defineProperty($,"__esModule",{value:!0});var k=require$$0$1;$.default=k.default})(en);var enLocaleElement=getDefaultExportFromCjs(en),zhCn={},zhCn2={};(function($){Object.defineProperty($,"__esModule",{value:!0});var k={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}};$.default=k})(zhCn2);var require$$0=getDefaultExportFromCjs(zhCn2);(function($){Object.defineProperty($,"__esModule",{value:!0});var k=require$$0;$.default=k.default})(zhCn);var zhLocaleElement=getDefaultExportFromCjs(zhCn),enLocale={application:{"zh-CN":"\u7B80\u4F53\u4E2D\u6587","en-US":"English",productTitle:"Online Form Designer",github:"GitHub",document:"Docs",qqGroup:"WeChat Group",deployment:"Deployment",subscription:"Subscription"},designer:{componentLib:"Components",formLib:"Templates",containerTitle:"Container",dragHandlerHint:"drag container or field to layout center",dragAction:"drag",basicFieldTitle:"Basic Field",advancedFieldTitle:"Advanced Field",customFieldTitle:"Customized Field",noWidgetHint:"Please select a widget from the left list, drag and drop to this container.",widgetLabel:{grid:"Grid",table:"Table",tab:"Tab",section:"Section","sub-form":"SubForm","grid-col":"GridCol","table-cell":"TableCell","tab-pane":"TabPane","data-table":"DataTable",input:"Input",textarea:"Textarea",number:"InputNumber",radio:"Radio",checkbox:"Checkbox",select:"Select",time:"Time","time-range":"Time range",date:"Date","date-range":"Date range",switch:"Switch",rate:"Rate",color:"ColorPicker",slider:"Slider","static-text":"Text","html-text":"HTML",button:"Button",divider:"Divider","picture-upload":"Picture","file-upload":"File","rich-editor":"Rich Editor",cascader:"Cascader",slot:"Slot",custom:"Custom Component"},hint:{selectParentWidget:"Select parent of this widget",moveUpWidget:"Move up this widget",moveDownWidget:"Move down this widget",cloneWidget:"Clone this widget",insertRow:"Insert new row",insertColumn:"Insert new column",remove:"Remove this widget",cellSetting:"Cell setting",dragHandler:"Drag handler",copyField:"Copy field widget",onlyFieldWidgetAcceptable:"Only field widget can be dragged into sub-form",moveUpFirstChildHint:"First child can not be move up",moveDownLastChildHint:"Last child can not be move down",closePreview:"Close",copyJson:"Copy",saveFormJson:"Save As File",copyVueCode:"Copy Vue Code",copyHtmlCode:"Copy HTML Code",copyJsonSuccess:"Copy succeed",importJsonSuccess:"Import succeed",invalidJsonFormat:"Invalid JSON format",jsonVersionMismatch:"Version of JSON mismatch",copyJsonFail:"Copy failed",copyVueCodeSuccess:"Copy succeed",copyVueCodeFail:"Copy failed",copyHtmlCodeSuccess:"Copy succeed",copyHtmlCodeFail:"Copy failed",saveVueCode:"Save Vue File",saveHtmlCode:"Save Html File",getFormData:"Get Data",resetForm:"Reset",disableForm:"Disable",enableForm:"Enable",exportFormData:"Form Data",copyFormData:"Copy",saveFormData:"Save As File",copyVue2SFC:"Copy Vue2",copyVue3SFC:"Copy Vue3",copySFCFail:"Copy failed",copySFCSuccess:"Copy succeed",saveVue2SFC:"Save As Vue2",saveVue3SFC:"Save As Vue3",fileNameForSave:"File name:",saveFileTitle:"Save as File",fileNameInputPlaceholder:"Enter the file name",sampleLoadedSuccess:"Example loaded successfully",sampleLoadedFail:"Sample load failed",loadFormTemplate:"Load This",loadFormTemplateHint:"Are you sure to load this template?",loadFormTemplateSuccess:"Load form template success!",loadFormTemplateFailed:"Load form template failed.",currentNodeCannotBeSelected:"The current node cannot be selected.",widgetSetting:"Widget Config",formSetting:"Form Config",prompt:"Prompt",confirm:"OK",cancel:"Cancel",import:"Import",importJsonHint:"The code to be imported should have the following JSON format.",invalidOptionsData:"Invalid data of options:",lastPaneCannotBeDeleted:"The last pane cannot be deleted.",duplicateName:"Duplicate name: ",nameRequired:"Name required.",numberValidator:"Number",letterValidator:"Letter",letterAndNumberValidator:"LetterAndNumber",mobilePhoneValidator:"MobilePhone",emailValidator:"Email",urlValidator:"URL",noChineseValidator:"Non-Chinese",chineseValidator:"Chinese",rowspanNotConsistentForMergeEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForMergeEntireColumn:"Cells in this column don't have the same colspan, operation failed.",rowspanNotConsistentForDeleteEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForDeleteEntireColumn:"Cells in this column don't have the same colspan, operation failed.",lastColCannotBeDeleted:"The last col cannot be deleted.",lastRowCannotBeDeleted:"The last row cannot be deleted."},toolbar:{undoHint:"Undo",redoHint:"Redo",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"Tree View Of Component Hierarchy",nodeTreeTitle:"Tree View Of Component Hierarchy",clear:"Clear",preview:"Preview",importJson:"Import",exportJson:"Export",exportCode:"Codes",generateCode:"Generate Code",generateSFC:"Generate SFC"},setting:{basicSetting:"Basic Setting",attributeSetting:"Attribute Setting",commonSetting:"Common Setting",advancedSetting:"Advanced Setting",eventSetting:"Event Setting",uniqueName:"Unique Name",editNameHelp:"Press enter to confirm the modification",label:"Label",displayType:"Type",defaultValue:"Default Value",placeholder:"Placeholder",startPlaceholder:"Start Placeholder",endPlaceholder:"End Placeholder",widgetColumnWidth:"Width",widgetSize:"Size",autoFullWidth:"Auto Full Width",showStops:"Show Stops",displayStyle:"Display Style",inlineLayout:"inline",blockLayout:"block",buttonStyle:"Show As Button",border:"Show Border",labelWidth:"Width Of Label",rows:"Rows",labelHidden:"Hide Label",required:"Required",requiredHint:"Failure Hint",validation:"Validation",validationHelp:"Regular expressions supported",validationHint:"Validation Hint",readonly:"Readonly",disabled:"Disabled",hidden:"Hidden",textContent:"Text",htmlContent:"HTML",clearable:"Clearable",editable:"Editable",format:"Format",valueFormat:"Value Format",showPassword:"Show Reveal",filterable:"Filterable",allowCreate:"Allow Create",remote:"Remote Query",automaticDropdown:"Automatic Dropdown",multiple:"Multiple",multipleLimit:"Multiple Limit",contentPosition:"Content Position",plain:"Plain",round:"Round",circle:"Circle",icon:"Icon",optionsSetting:"Options Setting",addOption:"Add Option",importOptions:"Import Options",resetDefault:"Reset Default",uploadSetting:"Upload Setting",uploadURL:"Upload URL",uploadTip:"Tip Content",withCredentials:"Send Cookie",multipleSelect:"File Multi-select",showFileList:"Show File List",limit:"Max Upload Number",fileMaxSize:"Max Size(MB)",fileTypes:"Upload File Types",fileTypesHelp:"Allows to add more file types",headers:"Request Headers",cellWidth:"Width",cellHeight:"Height",gridColHeight:"Height Of Col(px)",gutter:"Gutter(px)",columnSetting:"Cols Setting",colsOfGrid:"Cols Of Grid:",colSpanTitle:"Spans Of Col",colOffsetTitle:"Offset Of Col",colPushTitle:"Push Of Col",colPullTitle:"Pull Of Col",addColumn:"Add Column",responsive:"Responsive",tabPaneSetting:"Tab Panes",addTabPane:"Add Tab Pane",paneActive:"Active",customLabelIcon:"Custom Label",labelIconClass:"Label Icon Class",labelIconPosition:"Label Icon Position",labelTooltip:"Label Tooltip",minValue:"Min Value",maxValue:"Max Value",precision:"Precision",step:"Step",controlsPosition:"Controls Position",minLength:"Min Length",maxLength:"Max Length",showWordLimit:"Show Word Limit",prefixIcon:"Prefix Icon",suffixIcon:"Suffix Icon",inputButton:"Input Button Setting",appendButton:"Append Button",appendButtonDisabled:"Button Disabled",appendButtonIcon:"Append Button Icon",buttonIcon:"Button Icon",switchWidth:"Width of Switch(px)",activeText:"Active Text",inactiveText:"Inactive Text",activeColor:"Active Color",inactiveColor:"Inactive Color",maxStars:"Stars Max Number",lowThreshold:"Low Threshold",highThreshold:"High Threshold",allowHalf:"Allow Half",showText:"Show Text",showScore:"Show Score",range:"Range",vertical:"Vertical",showBlankRow:"Show Blank Row",showRowNumber:"Show Row Number",contentHeight:"Content Area Height",insertColumnToLeft:"insert column to left",insertColumnToRight:"insert column to right",insertRowAbove:"insert row above",insertRowBelow:"insert row below",mergeLeftColumn:"merge left cell",mergeRightColumn:"merge right cell",mergeEntireRow:"merge entire row",mergeRowAbove:"merge cell above",mergeRowBelow:"merge cell below",mergeEntireColumn:"merge entire column",undoMergeCol:"undo merge column",undoMergeRow:"undo merge row",deleteEntireCol:"delete entire column",deleteEntireRow:"delete entire row",widgetName:"Unique Name",formSize:"Size",labelPosition:"Position Of Label",topPosition:"Top",leftPosition:"Left",labelAlign:"Label Align",leftAlign:"Left",centerAlign:"Center",rightAlign:"Right",formCss:"Form CSS",addCss:"Edit",customClass:"Custom Class",globalFunctions:"Global Functions",addEventHandler:"Edit",editWidgetEventHandler:"Edit Widget Event Handler",editFormEventHandler:"Edit Form Event Handler",formSFCSetting:"SFC Setting",formModelName:"Model Name",formRefName:"Ref Name",formRulesName:"Rules Name",syntaxCheckWarning:"Syntax error in the javascript codes, please check again!"}}},zhLocale={application:{"zh-CN":"\u7B80\u4F53\u4E2D\u6587","en-US":"English",productTitle:"\u8868\u5355\u8BBE\u8BA1\u5668",github:"GitHub",document:"\u6587\u6863",qqGroup:"\u6280\u672FWX\u7FA4",deployment:"\u79C1\u6709\u90E8\u7F72",subscription:"\u8BA2\u9605Pro"},designer:{componentLib:"\u7EC4\u4EF6\u5E93",formLib:"\u8868\u5355\u6A21\u677F",containerTitle:"\u5BB9\u5668",dragHandlerHint:"\u9F20\u6807\u62D6\u62FD\u5BB9\u5668\u7EC4\u4EF6\u6216\u5B57\u6BB5\u7EC4\u4EF6\u5E76\u653E\u7F6E\u4E8E\u8868\u5355\u4E2D",dragAction:"\u62D6\u52A8",basicFieldTitle:"\u57FA\u7840\u5B57\u6BB5",advancedFieldTitle:"\u9AD8\u7EA7\u5B57\u6BB5",customFieldTitle:"\u81EA\u5B9A\u4E49\u6269\u5C55\u5B57\u6BB5",noWidgetHint:"\u8BF7\u4ECE\u5DE6\u4FA7\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6, \u7136\u540E\u7528\u9F20\u6807\u62D6\u52A8\u7EC4\u4EF6\u653E\u7F6E\u4E8E\u6B64\u5904.",widgetLabel:{grid:"\u6805\u683C",table:"\u8868\u683C",tab:"\u6807\u7B7E\u9875",section:"\u533A\u5757","sub-form":"\u5B50\u8868\u5355","grid-col":"\u6805\u683C\u5217","table-cell":"\u5355\u5143\u683C","tab-pane":"\u9009\u9879\u5361\u9875","data-table":"\u6570\u636E\u8868\u683C",input:"\u5355\u884C\u8F93\u5165",textarea:"\u591A\u884C\u8F93\u5165",number:"\u8BA1\u6570\u5668",radio:"\u5355\u9009\u9879",checkbox:"\u591A\u9009\u9879",select:"\u4E0B\u62C9\u9009\u9879",time:"\u65F6\u95F4","time-range":"\u65F6\u95F4\u8303\u56F4",date:"\u65E5\u671F","date-range":"\u65E5\u671F\u8303\u56F4",switch:"\u5F00\u5173",rate:"\u8BC4\u5206",color:"\u989C\u8272\u9009\u62E9\u5668",slider:"\u6ED1\u5757","static-text":"\u9759\u6001\u6587\u5B57","html-text":"HTML",button:"\u6309\u94AE",divider:"\u5206\u9694\u7EBF","picture-upload":"\u56FE\u7247","file-upload":"\u6587\u4EF6","rich-editor":"\u5BCC\u6587\u672C",cascader:"\u7EA7\u8054\u9009\u62E9",slot:"\u63D2\u69FD",custom:"Custom Component"},hint:{selectParentWidget:"\u9009\u4E2D\u7236\u7EC4\u4EF6",moveUpWidget:"\u4E0A\u79FB\u7EC4\u4EF6",moveDownWidget:"\u4E0B\u79FB\u7EC4\u4EF6",cloneWidget:"\u590D\u5236\u7EC4\u4EF6",insertRow:"\u63D2\u5165\u65B0\u884C",insertColumn:"\u63D2\u5165\u65B0\u5217",remove:"\u79FB\u9664\u7EC4\u4EF6",cellSetting:"\u5355\u5143\u683C\u64CD\u4F5C",dragHandler:"\u62D6\u62FD\u624B\u67C4",copyField:"\u590D\u5236\u5B57\u6BB5\u7EC4\u4EF6",onlyFieldWidgetAcceptable:"\u5B50\u8868\u5355\u53EA\u80FD\u63A5\u6536\u5B57\u6BB5\u7EC4\u4EF6",moveUpFirstChildHint:"\u5DF2\u7ECF\u79FB\u52A8\u5230\u6700\u4E0A\u9762",moveDownLastChildHint:"\u5DF2\u7ECF\u79FB\u52A8\u5230\u6700\u4E0B\u9762",closePreview:"\u5173\u95ED",copyJson:"\u590D\u5236JSON",saveFormJson:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",copyVueCode:"\u590D\u5236Vue\u4EE3\u7801",copyHtmlCode:"\u590D\u5236HTML\u4EE3\u7801",copyJsonSuccess:"\u590D\u5236JSON\u6210\u529F",importJsonSuccess:"\u5BFC\u5165JSON\u6210\u529F",invalidJsonFormat:"\u65E0\u6548\u7684\u8868\u5355JSON\u683C\u5F0F",jsonVersionMismatch:"\u8868\u5355JSON\u7248\u672C\u53F7\u4E0D\u5339\u914D",copyJsonFail:"\u590D\u5236JSON\u5931\u8D25",copyVueCodeSuccess:"\u590D\u5236Vue\u4EE3\u7801\u6210\u529F",copyVueCodeFail:"\u590D\u5236Vue\u4EE3\u7801\u5931\u8D25",copyHtmlCodeSuccess:"\u590D\u5236HTML\u4EE3\u7801\u6210\u529F",copyHtmlCodeFail:"\u590D\u5236HTML\u4EE3\u7801\u5931\u8D25",saveVueCode:"\u4FDD\u5B58Vue\u6587\u4EF6",saveHtmlCode:"\u4FDD\u5B58Html\u6587\u4EF6",getFormData:"\u83B7\u53D6\u6570\u636E",resetForm:"\u91CD\u7F6E\u8868\u5355",disableForm:"\u7981\u7528\u7F16\u8F91",enableForm:"\u6062\u590D\u7F16\u8F91",exportFormData:"\u8868\u5355\u6570\u636E",copyFormData:"\u590D\u5236JSON",saveFormData:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",copyVue2SFC:"\u590D\u5236Vue2\u4EE3\u7801",copyVue3SFC:"\u590D\u5236Vue3\u4EE3\u7801",copySFCFail:"\u590D\u5236SFC\u4EE3\u7801\u5931\u8D25",copySFCSuccess:"\u590D\u5236SFC\u4EE3\u7801\u6210\u529F",saveVue2SFC:"\u4FDD\u5B58\u4E3AVue2\u7EC4\u4EF6",saveVue3SFC:"\u4FDD\u5B58\u4E3AVue3\u7EC4\u4EF6",fileNameForSave:"\u6587\u4EF6\u540D\uFF1A",saveFileTitle:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",fileNameInputPlaceholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D",sampleLoadedSuccess:"\u8868\u5355\u793A\u4F8B\u52A0\u8F7D\u6210\u529F",sampleLoadedFail:"\u8868\u5355\u793A\u4F8B\u52A0\u8F7D\u5931\u8D25",loadFormTemplate:"\u52A0\u8F7D\u6B64\u6A21\u677F",loadFormTemplateHint:"\u662F\u5426\u52A0\u8F7D\u8FD9\u4E2A\u6A21\u677F\uFF1F\u52A0\u8F7D\u540E\u4F1A\u8986\u76D6\u8BBE\u8BA1\u5668\u5F53\u524D\u8868\u5355\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u201C\u64A4\u9500\u201D\u529F\u80FD\u6062\u590D\u3002",loadFormTemplateSuccess:"\u8868\u5355\u6A21\u677F\u52A0\u8F7D\u6210\u529F",loadFormTemplateFailed:"\u8868\u5355\u6A21\u677F\u52A0\u8F7D\u5931\u8D25",currentNodeCannotBeSelected:"\u5F53\u524D\u7EC4\u4EF6\u8282\u70B9\u4E0D\u53EF\u9009\u62E9",widgetSetting:"\u7EC4\u4EF6\u8BBE\u7F6E",formSetting:"\u8868\u5355\u8BBE\u7F6E",prompt:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",import:"\u5BFC\u5165",importJsonHint:"\u5BFC\u5165\u7684JSON\u5185\u5BB9\u987B\u7B26\u5408\u4E0B\u8FF0\u683C\u5F0F\uFF0C\u4EE5\u4FDD\u8BC1\u987A\u5229\u5BFC\u5165.",invalidOptionsData:"\u65E0\u6548\u7684\u9009\u9879\u6570\u636E:",lastPaneCannotBeDeleted:"\u4EC5\u5269\u4E00\u4E2A\u9009\u9879\u5361\u9875\u4E0D\u53EF\u5220\u9664.",duplicateName:"\u7EC4\u4EF6\u540D\u79F0\u5DF2\u5B58\u5728: ",nameRequired:"\u7EC4\u4EF6\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A",numberValidator:"\u6570\u5B57",letterValidator:"\u5B57\u6BCD",letterAndNumberValidator:"\u6570\u5B57\u5B57\u6BCD",mobilePhoneValidator:"\u624B\u673A\u53F7\u7801",emailValidator:"\u90AE\u7BB1",urlValidator:"\u7F51\u5740",noChineseValidator:"\u975E\u4E2D\u6587\u5B57\u7B26",chineseValidator:"\u4EC5\u4E2D\u6587\u5B57\u7B26",rowspanNotConsistentForMergeEntireRow:"\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u884C.",colspanNotConsistentForMergeEntireColumn:"\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u5217.",rowspanNotConsistentForDeleteEntireRow:"\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u884C.",colspanNotConsistentForDeleteEntireColumn:"\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u5217.",lastColCannotBeDeleted:"\u6700\u540E\u4E00\u5217\u4E0D\u53EF\u5220\u9664.",lastRowCannotBeDeleted:"\u6700\u540E\u4E00\u884C\u4E0D\u53EF\u5220\u9664."},toolbar:{undoHint:"\u64A4\u9500",redoHint:"\u91CD\u505A",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"\u7EC4\u4EF6\u5C42\u6B21\u7ED3\u6784\u6811",nodeTreeTitle:"\u7EC4\u4EF6\u5C42\u6B21\u7ED3\u6784\u6811",clear:"\u6E05\u7A7A",preview:"\u9884\u89C8",importJson:"\u5BFC\u5165JSON",exportJson:"\u5BFC\u51FAJSON",exportCode:"\u5BFC\u51FA\u4EE3\u7801",generateCode:"\u751F\u6210\u4EE3\u7801",generateSFC:"\u751F\u6210SFC"},setting:{basicSetting:"\u57FA\u672C\u5C5E\u6027",attributeSetting:"\u5C5E\u6027\u8BBE\u7F6E",commonSetting:"\u5E38\u89C1\u5C5E\u6027",advancedSetting:"\u9AD8\u7EA7\u5C5E\u6027",eventSetting:"\u4E8B\u4EF6\u5C5E\u6027",uniqueName:"\u552F\u4E00\u540D\u79F0",editNameHelp:"\u4FEE\u6539\u540D\u79F0\u540E\u9700\u6309\u56DE\u8F66\u786E\u8BA4",label:"\u6807\u7B7E",displayType:"\u663E\u793A\u7C7B\u578B",defaultValue:"\u9ED8\u8BA4\u503C",placeholder:"\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8D77\u59CB\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u622A\u6B62\u5360\u4F4D\u5185\u5BB9",widgetColumnWidth:"\u7EC4\u4EF6\u5217\u5BBD",widgetSize:"\u7EC4\u4EF6\u5927\u5C0F",autoFullWidth:"\u81EA\u52A8\u62C9\u4F38\u5BBD\u5EA6",showStops:"\u663E\u793A\u95F4\u65AD\u70B9",displayStyle:"\u663E\u793A\u6837\u5F0F",inlineLayout:"\u884C\u5185",blockLayout:"\u5757",buttonStyle:"\u663E\u793A\u4E3A\u6309\u94AE",border:"\u5E26\u6709\u8FB9\u6846",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",rows:"\u884C\u6570",labelHidden:"\u9690\u85CF\u5B57\u6BB5\u6807\u7B7E",required:"\u5FC5\u586B\u5B57\u6BB5",requiredHint:"\u5FC5\u586B\u6821\u9A8C\u63D0\u793A",validation:"\u5B57\u6BB5\u6821\u9A8C",validationHelp:"\u652F\u6301\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",validationHint:"\u6821\u9A8C\u5931\u8D25\u63D0\u793A",readonly:"\u53EA\u8BFB",disabled:"\u7981\u7528",hidden:"\u9690\u85CF",textContent:"\u9759\u6001\u6587\u5B57",htmlContent:"HTML",clearable:"\u53EF\u6E05\u9664",editable:"\u53EF\u8F93\u5165",format:"\u663E\u793A\u683C\u5F0F",valueFormat:"\u7ED1\u5B9A\u503C\u683C\u5F0F",showPassword:"\u53EF\u663E\u793A\u5BC6\u7801",filterable:"\u53EF\u641C\u7D22\u9009\u9879",allowCreate:"\u5141\u8BB8\u521B\u5EFA\u9009\u9879",remote:"\u53EF\u8FDC\u7A0B\u641C\u7D22",automaticDropdown:"\u81EA\u52A8\u5F39\u51FA\u9009\u9879",multiple:"\u9009\u9879\u53EF\u591A\u9009",multipleLimit:"\u591A\u9009\u6570\u91CF\u9650\u5236",contentPosition:"\u6587\u5B57\u4F4D\u7F6E",plain:"\u6734\u7D20\u6309\u94AE",round:"\u5706\u89D2\u6309\u94AE",circle:"\u5706\u5F62\u6309\u94AE",icon:"\u56FE\u6807",optionsSetting:"\u9009\u9879\u8BBE\u7F6E",addOption:"\u589E\u52A0\u9009\u9879",importOptions:"\u5BFC\u5165\u9009\u9879",resetDefault:"\u91CD\u8BBE\u9009\u4E2D\u9879",uploadSetting:"\u4E0A\u4F20\u53C2\u6570\u8BBE\u7F6E",uploadURL:"\u4E0A\u4F20\u5730\u5740",uploadTip:"\u4E0A\u4F20\u63D0\u793A\u5185\u5BB9",withCredentials:"\u53D1\u9001cookie\u51ED\u8BC1",multipleSelect:"\u6587\u4EF6\u53EF\u591A\u9009",showFileList:"\u663E\u793A\u6587\u4EF6\u5217\u8868",limit:"\u6700\u5927\u4E0A\u4F20\u6570\u91CF",fileMaxSize:"\u6587\u4EF6\u5927\u5C0F\u9650\u5236(MB)",fileTypes:"\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B",fileTypesHelp:"\u652F\u6301\u6DFB\u52A0\u5176\u4ED6\u6587\u4EF6\u7C7B\u578B",headers:"\u4E0A\u4F20\u8BF7\u6C42\u5934",cellWidth:"\u5BBD\u5EA6",cellHeight:"\u9AD8\u5EA6",gridColHeight:"\u6805\u683C\u5217\u7EDF\u4E00\u9AD8\u5EA6(px)",gutter:"\u6805\u683C\u95F4\u9694(px)",columnSetting:"\u6805\u683C\u5C5E\u6027\u8BBE\u7F6E",colsOfGrid:"\u5F53\u524D\u6805\u683C\u5217:",colSpanTitle:"\u6805\u683C\u5BBD\u5EA6",colOffsetTitle:"\u5DE6\u4FA7\u95F4\u9694\u683C\u6570",colPushTitle:"\u53F3\u79FB\u6805\u683C\u6570",colPullTitle:"\u5DE6\u79FB\u6805\u683C\u6570",addColumn:"\u589E\u52A0\u6805\u683C",responsive:"\u54CD\u5E94\u5F0F\u5E03\u5C40",tabPaneSetting:"\u9009\u9879\u5361\u8BBE\u7F6E",addTabPane:"\u589E\u52A0\u9009\u9879\u5361\u9875",paneActive:"\u6FC0\u6D3B",customLabelIcon:"\u5B9A\u5236\u5B57\u6BB5\u6807\u7B7E",labelIconClass:"\u6807\u7B7EIcon\u6837\u5F0F",labelIconPosition:"\u6807\u7B7EIcon\u4F4D\u7F6E",labelTooltip:"\u6807\u7B7E\u6587\u5B57\u63D0\u793A",minValue:"\u6700\u5C0F\u503C",maxValue:"\u6700\u5927\u503C",precision:"\u7CBE\u5EA6",step:"\u589E\u51CF\u6B65\u957F",controlsPosition:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",minLength:"\u6700\u5C0F\u957F\u5EA6",maxLength:"\u6700\u5927\u957F\u5EA6",showWordLimit:"\u663E\u793A\u5B57\u6570\u7EDF\u8BA1",prefixIcon:"\u5934\u90E8Icon",suffixIcon:"\u5C3E\u90E8Icon",inputButton:"\u8F93\u5165\u6846\u6309\u94AE\u8BBE\u7F6E",appendButton:"\u6DFB\u52A0\u540E\u7F6E\u6309\u94AE",appendButtonDisabled:"\u540E\u7F6E\u6309\u94AE\u7981\u7528",appendButtonIcon:"\u540E\u7F6E\u6309\u94AEIcon",buttonIcon:"\u6309\u94AEIcon",switchWidth:"\u5F00\u5173\u5BBD\u5EA6\uFF08\u50CF\u7D20\uFF09",activeText:"\u5F00\u542F\u65F6\u6587\u5B57\u63CF\u8FF0",inactiveText:"\u5173\u95ED\u65F6\u6587\u5B57\u63CF\u8FF0",activeColor:"\u5F00\u542F\u65F6\u80CC\u666F\u8272",inactiveColor:"\u5173\u95ED\u65F6\u80CC\u666F\u8272",maxStars:"\u6700\u5927\u8BC4\u5206\u503C",lowThreshold:"\u4F4E\u5206\u754C\u9650\u503C",highThreshold:"\u9AD8\u5206\u754C\u9650\u503C",allowHalf:"\u5141\u8BB8\u534A\u9009",showText:"\u663E\u793A\u8F85\u52A9\u6587\u5B57",showScore:"\u663E\u793A\u5F53\u524D\u5206\u6570",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u663E\u793A",showBlankRow:"\u9ED8\u8BA4\u663E\u793A\u65B0\u884C",showRowNumber:"\u663E\u793A\u884C\u53F7",contentHeight:"\u5185\u5BB9\u533A\u9AD8\u5EA6",insertColumnToLeft:"\u63D2\u5165\u5DE6\u4FA7\u5217",insertColumnToRight:"\u63D2\u5165\u53F3\u4FA7\u5217",insertRowAbove:"\u63D2\u5165\u4E0A\u65B9\u884C",insertRowBelow:"\u63D2\u5165\u4E0B\u65B9\u884C",mergeLeftColumn:"\u5408\u5E76\u5DE6\u4FA7\u5355\u5143\u683C",mergeRightColumn:"\u5408\u5E76\u53F3\u4FA7\u5355\u5143\u683C",mergeEntireRow:"\u5408\u5E76\u6574\u884C",mergeRowAbove:"\u5408\u5E76\u4E0A\u65B9\u5355\u5143\u683C",mergeRowBelow:"\u5408\u5E76\u4E0B\u65B9\u5355\u5143\u683C",mergeEntireColumn:"\u5408\u5E76\u6574\u5217",undoMergeCol:"\u64A4\u9500\u5217\u5408\u5E76",undoMergeRow:"\u64A4\u9500\u884C\u5408\u5E76",deleteEntireCol:"\u5220\u9664\u6574\u5217",deleteEntireRow:"\u5220\u9664\u6574\u884C",widgetName:"\u7EC4\u4EF6\u552F\u4E00\u540D\u79F0",formSize:"\u5168\u5C40\u7EC4\u4EF6\u5927\u5C0F",labelPosition:"\u6807\u7B7E\u4F4D\u7F6E",topPosition:"\u9876\u90E8",leftPosition:"\u5DE6\u8FB9",labelAlign:"\u5B57\u6BB5\u6807\u7B7E\u5BF9\u9F50",leftAlign:"\u5C45\u5DE6",centerAlign:"\u5C45\u4E2D",rightAlign:"\u5C45\u53F3",formCss:"\u8868\u5355\u5168\u5C40CSS",addCss:"\u7F16\u5199CSS",customClass:"\u81EA\u5B9A\u4E49CSS\u6837\u5F0F",globalFunctions:"\u8868\u5355\u5168\u5C40\u51FD\u6570",addEventHandler:"\u7F16\u5199\u4EE3\u7801",editWidgetEventHandler:"\u7EC4\u4EF6\u4E8B\u4EF6\u5904\u7406",editFormEventHandler:"\u8868\u5355\u4E8B\u4EF6\u5904\u7406",formSFCSetting:"\u751F\u6210SFC\u8BBE\u7F6E",formModelName:"\u6570\u636E\u5BF9\u8C61\u540D\u79F0",formRefName:"\u5F15\u7528\u540D\u79F0",formRulesName:"\u9A8C\u8BC1\u89C4\u5219\u540D\u79F0",syntaxCheckWarning:"JS\u4EE3\u7801\u5B58\u5728\u8BED\u6CD5\u9519\u8BEF\uFF0C\u8BF7\u4ED4\u7EC6\u68C0\u67E5\uFF01"}}},enLocale_render={render:{hint:{prompt:"Prompt",confirm:"OK",cancel:"Cancel",selectPlaceholder:"Pick some item",timePlaceholder:"Select time",startTimePlaceholder:"Start time",endTimePlaceholder:"End time",datePlaceholder:"Select date",startDatePlaceholder:"Start date",endDatePlaceholder:"End date",blankCellContent:"--",uploadError:"Upload error: ",uploadExceed:"The maximum number(${uploadLimit}) of file uploads has been exceeded.",unsupportedFileType:"Unsupported format: ",fileSizeExceed:"File size out of limit: ",refNotFound:"Ref not found: ",fieldRequired:"Input value should be not null.",invalidNumber:"Invalid number format",selectFile:" File...",downloadFile:"Download",removeFile:"Remove",validationFailed:"Form validation failed",subFormAction:"Action",subFormAddAction:"Add",subFormAddActionHint:"add new row",insertSubFormRow:"insert new row",deleteSubFormRow:"delete this row",nonSubFormType:"The type of widget don't match sub-form"}}},zhLocale_render={render:{hint:{prompt:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",selectPlaceholder:"\u8BF7\u9009\u62E9",timePlaceholder:"\u9009\u62E9\u65F6\u95F4",startTimePlaceholder:"\u8D77\u59CB\u65F6\u95F4",endTimePlaceholder:"\u622A\u6B62\u65F6\u95F4",datePlaceholder:"\u9009\u62E9\u65E5\u671F",startDatePlaceholder:"\u8D77\u59CB\u65E5\u671F",endDatePlaceholder:"\u622A\u6B62\u65E5\u671F",blankCellContent:"--",uploadError:"\u4E0A\u4F20\u9519\u8BEF: ",uploadExceed:"\u6700\u5927\u4E0A\u4F20\u6570\u91CF(${uploadLimit})\u5DF2\u8D85\u51FA.",unsupportedFileType:"\u4E0D\u652F\u6301\u683C\u5F0F: ",fileSizeExceed:"\u6587\u4EF6\u5927\u5C0F\u5DF2\u8D85\u51FA: ",refNotFound:"\u7EC4\u4EF6\u672A\u627E\u5230: ",fieldRequired:"\u5B57\u6BB5\u503C\u4E0D\u53EF\u4E3A\u7A7A",invalidNumber:"\u6570\u636E\u683C\u5F0F\u9519\u8BEF",selectFile:" \u9009\u62E9\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D",removeFile:"\u79FB\u9664",validationFailed:"\u8868\u5355\u6570\u636E\u6821\u9A8C\u5931\u8D25",subFormAction:"\u64CD\u4F5C",subFormAddAction:"\u65B0\u589E",subFormAddActionHint:"\u65B0\u589E\u884C",insertSubFormRow:"\u63D2\u5165\u884C",deleteSubFormRow:"\u5220\u9664\u884C",nonSubFormType:"\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355"}}},enLocale_extension={extension:{widgetLabel:{card:"Card",alert:"Alert"},setting:{cardFolded:"Folded",cardShowFold:"Show Fold",cardWidth:"Width Of Card",cardShadow:"Shadow",alertTitle:"Title",alertType:"Type",description:"Description",closable:"Closable",closeText:"Text On Close Btn",center:"Center",showIcon:"Show Icon",effect:"Effect"}}},zhLocale_extension={extension:{widgetLabel:{card:"\u5361\u7247",alert:"\u63D0\u793A"},setting:{cardFolded:"\u662F\u5426\u6536\u8D77",cardShowFold:"\u663E\u793A\u6298\u53E0\u6309\u94AE",cardWidth:"\u5361\u7247\u5BBD\u5EA6",cardShadow:"\u663E\u793A\u9634\u5F71",alertTitle:"\u6807\u9898",alertType:"\u7C7B\u578B",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",closeText:"\u5173\u95ED\u6309\u94AE\u6587\u5B57",center:"\u6587\u5B57\u5C45\u4E2D",showIcon:"\u663E\u793A\u56FE\u6807",effect:"\u663E\u793A\u6548\u679C"}}};const langResources={"en-US":xe(xe(xe(xe({something:{}},enLocaleElement),enLocale),enLocale_render),enLocale_extension),"zh-CN":xe(xe(xe(xe({something:{}},zhLocaleElement),zhLocale),zhLocale_render),zhLocale_extension)},i18n=createI18n({locale:localStorage.getItem("v_form_locale")||"zh-CN",messages:langResources}),changeLocale=function($){i18n.setLang($),localStorage.setItem("v_form_locale",$)},translate=function($){return i18n.$st($)};var i18n$1={methods:{i18nt($){return i18n.$st($)},i18n2t($,k){return i18n.$st2($,k)}}},_export_sfc$1=($,k)=>{const V=$.__vccOpts||$;for(const[z,j]of k)V[z]=j;return V};const _sfc_main$31={name:"FieldPanel",mixins:[i18n$1],components:{},props:{designer:Object},inject:["getBannedWidgets","getDesignerConfig"],data(){return{designerConfig:this.getDesignerConfig(),firstTab:"componentLib",scrollerHeight:0,activeNames:["1","2","3","4"],containers:[],basicFields:[],advancedFields:[],customFields:[],formTemplates}},computed:{},created(){this.loadWidgets()},mounted(){this.scrollerHeight=window.innerHeight-56+"px",addWindowResizeHandler(()=>{this.$nextTick(()=>{this.scrollerHeight=window.innerHeight-56+"px"})})},methods:{isBanned($){return this.getBannedWidgets().indexOf($)>-1},showFormTemplates(){return this.designerConfig.formTemplates===void 0?!0:!!this.designerConfig.formTemplates},loadWidgets(){this.containers=containers.map($=>ke(xe({key:generateId()},$),{displayName:this.i18n2t(`designer.widgetLabel.${$.type}`,`extension.widgetLabel.${$.type}`)})).filter($=>!$.internal&&!this.isBanned($.type)),this.basicFields=basicFields.map($=>ke(xe({key:generateId()},$),{displayName:this.i18n2t(`designer.widgetLabel.${$.type}`,`extension.widgetLabel.${$.type}`)})).filter($=>!this.isBanned($.type)),this.advancedFields=advancedFields.map($=>ke(xe({key:generateId()},$),{displayName:this.i18n2t(`designer.widgetLabel.${$.type}`,`extension.widgetLabel.${$.type}`)})).filter($=>!this.isBanned($.type)),this.customFields=customFields.map($=>ke(xe({key:generateId()},$),{displayName:this.i18n2t(`designer.widgetLabel.${$.type}`,`extension.widgetLabel.${$.type}`)})).filter($=>!this.isBanned($.type))},handleContainerWidgetClone($){return this.designer.copyNewContainerWidget($)},handleFieldWidgetClone($){return this.designer.copyNewFieldWidget($)},checkContainerMove($){return this.designer.checkWidgetMove($)},checkFieldMove($){return this.designer.checkFieldMove($)},onContainerDragEnd($){},addContainerByDbClick($){this.designer.addContainerByDbClick($)},addFieldByDbClick($){this.designer.addFieldByDbClick($)},loadFormTemplate($){this.$confirm(this.i18nt("designer.hint.loadFormTemplateHint"),this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{axios.get($).then(k=>{let V=!1;typeof k.data=="string"?V=this.designer.loadFormJson(JSON.parse(k.data)):k.data.constructor===Object&&(V=this.designer.loadFormJson(k.data)),V&&this.designer.emitHistoryChange(),this.$message.success(this.i18nt("designer.hint.loadFormTemplateSuccess"))}).catch(k=>{this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed")+":"+k)})}).catch(k=>{console.error(k)})}}},_hoisted_1$F={class:"panel-container"},_hoisted_2$s=["title","onDblclick"],_hoisted_3$l=["title","onDblclick"],_hoisted_4$e=["title","onDblclick"],_hoisted_5$c=["title","onDblclick"],_hoisted_6$a=["src"],_hoisted_7$7=["src"],_hoisted_8$6={class:"bottom clear-fix"},_hoisted_9$4={class:"ft-title"};function _sfc_render$31($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon"),ie=require$$0$3.resolveComponent("draggable"),ae=require$$0$3.resolveComponent("el-collapse-item"),he=require$$0$3.resolveComponent("el-collapse"),le=require$$0$3.resolveComponent("el-tab-pane"),ue=require$$0$3.resolveComponent("el-popover"),de=require$$0$3.resolveComponent("el-button"),pe=require$$0$3.resolveComponent("el-card"),$e=require$$0$3.resolveComponent("el-tabs"),_e=require$$0$3.resolveComponent("el-scrollbar");return require$$0$3.openBlock(),require$$0$3.createBlock(_e,{class:"side-scroll-bar",style:require$$0$3.normalizeStyle({height:j.scrollerHeight})},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",_hoisted_1$F,[require$$0$3.createVNode($e,{modelValue:j.firstTab,"onUpdate:modelValue":k[1]||(k[1]=Ce=>j.firstTab=Ce),class:"no-bottom-margin indent-left-margin"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(le,{name:"componentLib"},{label:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("span",null,[require$$0$3.createVNode(re,{"icon-class":"el-set-up"}),require$$0$3.createTextVNode(" "+require$$0$3.toDisplayString($.i18nt("designer.componentLib")),1)])]),default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(he,{modelValue:j.activeNames,"onUpdate:modelValue":k[0]||(k[0]=Ce=>j.activeNames=Ce),class:"widget-collapse"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ae,{name:"1",title:$.i18nt("designer.containerTitle")},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{tag:"ul",list:j.containers,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},clone:oe.handleContainerWidgetClone,"ghost-class":"ghost",sort:!1,move:oe.checkContainerMove,onEnd:oe.onContainerDragEnd},{item:require$$0$3.withCtx(({element:Ce})=>[require$$0$3.createElementVNode("li",{class:"container-widget-item",title:Ce.displayName,onDblclick:Ie=>oe.addContainerByDbClick(Ce)},[require$$0$3.createElementVNode("span",null,[require$$0$3.createVNode(re,{"icon-class":Ce.icon},null,8,["icon-class"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString($.i18n2t(`designer.widgetLabel.${Ce.type}`,`extension.widgetLabel.${Ce.type}`)),1)])],40,_hoisted_2$s)]),_:1},8,["list","clone","move","onEnd"])]),_:1},8,["title"]),require$$0$3.createVNode(ae,{name:"2",title:$.i18nt("designer.basicFieldTitle")},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{tag:"ul",list:j.basicFields,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},move:oe.checkFieldMove,clone:oe.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1},{item:require$$0$3.withCtx(({element:Ce})=>[require$$0$3.createElementVNode("li",{class:"field-widget-item",title:Ce.displayName,onDblclick:Ie=>oe.addFieldByDbClick(Ce)},[require$$0$3.createElementVNode("span",null,[require$$0$3.createVNode(re,{"icon-class":Ce.icon},null,8,["icon-class"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString($.i18n2t(`designer.widgetLabel.${Ce.type}`,`extension.widgetLabel.${Ce.type}`)),1)])],40,_hoisted_3$l)]),_:1},8,["list","move","clone"])]),_:1},8,["title"]),require$$0$3.createVNode(ae,{name:"3",title:$.i18nt("designer.advancedFieldTitle")},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{tag:"ul",list:j.advancedFields,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},move:oe.checkFieldMove,clone:oe.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1},{item:require$$0$3.withCtx(({element:Ce})=>[require$$0$3.createElementVNode("li",{class:"field-widget-item",title:Ce.displayName,onDblclick:Ie=>oe.addFieldByDbClick(Ce)},[require$$0$3.createElementVNode("span",null,[require$$0$3.createVNode(re,{"icon-class":Ce.icon},null,8,["icon-class"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString($.i18n2t(`designer.widgetLabel.${Ce.type}`,`extension.widgetLabel.${Ce.type}`)),1)])],40,_hoisted_4$e)]),_:1},8,["list","move","clone"])]),_:1},8,["title"]),require$$0$3.createVNode(ae,{name:"4",title:$.i18nt("designer.customFieldTitle")},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{tag:"ul",list:j.customFields,"item-key":"key",group:{name:"dragGroup",pull:"clone",put:!1},move:oe.checkFieldMove,clone:oe.handleFieldWidgetClone,"ghost-class":"ghost",sort:!1},{item:require$$0$3.withCtx(({element:Ce})=>[require$$0$3.createElementVNode("li",{class:"field-widget-item",title:Ce.displayName,onDblclick:Ie=>oe.addFieldByDbClick(Ce)},[require$$0$3.createElementVNode("span",null,[require$$0$3.createVNode(re,{"icon-class":Ce.icon},null,8,["icon-class"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString($.i18n2t(`designer.widgetLabel.${Ce.type}`,`extension.widgetLabel.${Ce.type}`)),1)])],40,_hoisted_5$c)]),_:1},8,["list","move","clone"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1}),oe.showFormTemplates()?(require$$0$3.openBlock(),require$$0$3.createBlock(le,{key:0,name:"formLib",style:{padding:"8px"}},{label:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("span",null,[require$$0$3.createVNode(re,{"icon-class":"el-form-template"}),require$$0$3.createTextVNode(" "+require$$0$3.toDisplayString($.i18nt("designer.formLib")),1)])]),default:require$$0$3.withCtx(()=>[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(j.formTemplates,(Ce,Ie)=>(require$$0$3.openBlock(),require$$0$3.createBlock(pe,{"bord-style":{padding:"0"},shadow:"hover",class:"ft-card"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ue,{placement:"right",trigger:"hover"},{reference:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("img",{src:Ce.imgUrl,style:{width:"200px"}},null,8,_hoisted_6$a)]),default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("img",{src:Ce.imgUrl,style:{height:"600px",width:"720px"}},null,8,_hoisted_7$7)]),_:2},1024),require$$0$3.createElementVNode("div",_hoisted_8$6,[require$$0$3.createElementVNode("span",_hoisted_9$4,"#"+require$$0$3.toDisplayString(Ie+1)+" "+require$$0$3.toDisplayString(Ce.title),1),require$$0$3.createVNode(de,{type:"text",class:"right-button",onClick:ze=>oe.loadFormTemplate(Ce.jsonUrl)},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString($.i18nt("designer.hint.loadFormTemplate")),1)]),_:2},1032,["onClick"])])]),_:2},1024))),256))]),_:1})):require$$0$3.createCommentVNode("",!0)]),_:1},8,["modelValue"])])]),_:1},8,["style"])}var WidgetPanel=_export_sfc$1(_sfc_main$31,[["render",_sfc_render$31],["__scopeId","data-v-7058fcb5"]]),emitter={data(){return{vfEvents:{}}},methods:{emit$($,k){this.vfEvents[$]&&this.vfEvents[$].forEach(V=>{V(k)})},on$($,k){this.vfEvents[$]=this.vfEvents[$]||[],this.vfEvents[$].push(k)},off$($,k){if(this.vfEvents[$]){if(k==null){this.vfEvents[$].length=0;return}for(let V=0;V{if(this.widgetRefList[z].$options.componentName===$){let j=this.widgetRefList[z];j.emit$.call(j,k,V)}}),this.refList&&Object.keys(this.refList).forEach(z=>{if(this.refList[z].$options.componentName===$){let j=this.refList[z];j.emit$.call(j,k,V)}})}}};const _sfc_main$30={name:"container-item-wrapper",props:{widget:Object},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}};function _sfc_render$30($,k,V,z,j,oe){return require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{class:require$$0$3.normalizeClass(["container-wrapper",[oe.customClass]])},[require$$0$3.renderSlot($.$slots,"default")],2)}var ContainerItemWrapper=_export_sfc$1(_sfc_main$30,[["render",_sfc_render$30]]),__glob_0_0$3=Object.freeze(Object.defineProperty({__proto__:null,default:ContainerItemWrapper},Symbol.toStringTag,{value:"Module"})),refMixin={methods:{initRefList(){this.refList!==null&&!!this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef($,k){let V=this.refList[$];return!V&&!!k&&this.$message.error(this.i18nt("render.hint.refNotFound")+$),V},getFormRef(){return this.refList.v_form_ref}}};const _sfc_main$2$={name:"static-content-wrapper",mixins:[i18n$1],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},displayStyle:{type:String,default:"block"},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},computed:{selected(){return!!this.designer&&this.field.id===this.designer.selectedId},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""}},methods:{selectField($){this.designer&&(this.designer.setSelected($),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){let $=null;this.parentList.length===1?this.parentWidget&&($=this.parentWidget):this.parentList.length===1+this.indexOfParentList?$=this.parentList[this.indexOfParentList-1]:$=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected($),this.designer.emitHistoryChange()})}}}},_hoisted_1$E={key:0,class:"field-action"},_hoisted_2$r=["title"],_hoisted_3$k=["title"],_hoisted_4$d=["title"],_hoisted_5$b=["title"],_hoisted_6$9={key:1,class:"drag-handler background-opacity"},_hoisted_7$6=["title"],_hoisted_8$5={key:0};function _sfc_render$2$($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon");return require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{class:require$$0$3.normalizeClass(["field-wrapper",{"design-time-bottom-margin":!!this.designer}]),style:require$$0$3.normalizeStyle({display:V.displayStyle})},[require$$0$3.withDirectives(require$$0$3.createElementVNode("div",{class:require$$0$3.normalizeClass(["static-content-item",[oe.selected?"selected":"",oe.customClass]]),style:require$$0$3.normalizeStyle({display:V.displayStyle}),onClick:k[0]||(k[0]=require$$0$3.withModifiers(ie=>oe.selectField(V.field),["stop"]))},[require$$0$3.renderSlot($.$slots,"default",{},void 0,!0)],6),[[require$$0$3.vShow,!V.field.options.hidden||V.designState===!0]]),this.designer?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[V.designer.selectedId===V.field.id?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_1$E,[require$$0$3.createElementVNode("i",{title:$.i18nt("designer.hint.selectParentWidget"),onClick:k[1]||(k[1]=require$$0$3.withModifiers(ie=>oe.selectParentWidget(V.field),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-back"})],8,_hoisted_2$r),!!V.parentList&&V.parentList.length>1?(require$$0$3.openBlock(),require$$0$3.createElementBlock("i",{key:0,title:$.i18nt("designer.hint.moveUpWidget"),onClick:k[2]||(k[2]=require$$0$3.withModifiers(ie=>oe.moveUpWidget(V.field),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-move-up"})],8,_hoisted_3$k)):require$$0$3.createCommentVNode("",!0),!!V.parentList&&V.parentList.length>1?(require$$0$3.openBlock(),require$$0$3.createElementBlock("i",{key:1,title:$.i18nt("designer.hint.moveDownWidget"),onClick:k[3]||(k[3]=require$$0$3.withModifiers(ie=>oe.moveDownWidget(V.field),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-move-down"})],8,_hoisted_4$d)):require$$0$3.createCommentVNode("",!0),require$$0$3.createElementVNode("i",{title:$.i18nt("designer.hint.remove"),onClick:k[4]||(k[4]=require$$0$3.withModifiers((...ie)=>oe.removeFieldWidget&&oe.removeFieldWidget(...ie),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-delete"})],8,_hoisted_5$b)])):require$$0$3.createCommentVNode("",!0),V.designer.selectedId===V.field.id?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_6$9,[require$$0$3.createElementVNode("i",{title:$.i18nt("designer.hint.dragHandler")},[require$$0$3.createVNode(re,{"icon-class":"el-drag-move"})],8,_hoisted_7$6),require$$0$3.createElementVNode("i",null,require$$0$3.toDisplayString($.i18n2t(`designer.widgetLabel.${V.field.type}`,`extension.widgetLabel.${V.field.type}`)),1),V.field.options.hidden===!0?(require$$0$3.openBlock(),require$$0$3.createElementBlock("i",_hoisted_8$5,[require$$0$3.createVNode(re,{"icon-class":"el-hide"})])):require$$0$3.createCommentVNode("",!0)])):require$$0$3.createCommentVNode("",!0)],64)):require$$0$3.createCommentVNode("",!0)],6)}var StaticContentWrapper=_export_sfc$1(_sfc_main$2$,[["render",_sfc_render$2$],["__scopeId","data-v-43c752a8"]]),__glob_0_19$1=Object.freeze(Object.defineProperty({__proto__:null,default:StaticContentWrapper},Symbol.toStringTag,{value:"Module"}));const getRegExp=function($){return{number:"/^\\d+(\\.\\d+)?$/",letter:"/^[A-Za-z]+$/",letterAndNumber:"/^[A-Za-z0-9]+$/",mobilePhone:"/^[1][3-9][0-9]{9}$/",letterStartNumberIncluded:"/^[A-Za-z]+[A-Za-z\\d]*$/",noChinese:"/^[^\u4E00-\u9FA5]+$/",chinese:"/^[\u4E00-\u9FA5]+$/",email:"/^([-_A-Za-z0-9.]+)@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$/",url:"/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/"}[$]},validateFn=function(validatorName,rule,value,callback,defaultErrorMsg){if(isNull(value)||value.length<=0){callback();return}const reg=eval(getRegExp(validatorName));if(reg.test(value))callback();else{let $=rule.errorMsg||defaultErrorMsg;callback(new Error($))}},FormValidators={number($,k,V){validateFn("number",$,k,V,"["+$.label+"]\u5305\u542B\u975E\u6570\u5B57\u5B57\u7B26")},letter($,k,V){validateFn("letter",$,k,V,"["+$.label+"]\u5305\u542B\u975E\u5B57\u6BCD\u5B57\u7B26")},letterAndNumber($,k,V){validateFn("letterAndNumber",$,k,V,"["+$.label+"]\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57")},mobilePhone($,k,V){validateFn("mobilePhone",$,k,V,"["+$.label+"]\u624B\u673A\u53F7\u7801\u683C\u5F0F\u6709\u8BEF")},noBlankStart($,k,V){},noBlankEnd($,k,V){},letterStartNumberIncluded($,k,V){validateFn("letterStartNumberIncluded",$,k,V,"["+$.label+"]\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u53EF\u5305\u542B\u6570\u5B57")},noChinese($,k,V){validateFn("noChinese",$,k,V,"["+$.label+"]\u4E0D\u53EF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26")},chinese($,k,V){validateFn("chinese",$,k,V,"["+$.label+"]\u53EA\u80FD\u8F93\u5165\u4E2D\u6587\u5B57\u7B26")},email($,k,V){validateFn("email",$,k,V,"["+$.label+"]\u90AE\u7BB1\u683C\u5F0F\u6709\u8BEF")},url($,k,V){validateFn("url",$,k,V,"["+$.label+"]URL\u683C\u5F0F\u6709\u8BEF")},regExp(rule,value,callback){if(isNull(value)||value.length<=0){callback();return}const pattern=eval(rule.regExp);if(pattern.test(value))callback();else{let $=rule.errorMsg||"["+rule.label+"]invalid value";callback(new Error($))}}};function mitt($){return{all:$=$||new Map,on:function(k,V){var z=$.get(k);z?z.push(V):$.set(k,[V])},off:function(k,V){var z=$.get(k);z&&(V?z.splice(z.indexOf(V)>>>0,1):$.set(k,[]))},emit:function(k,V){var z=$.get(k);z&&z.slice().map(function(j){j(V)}),(z=$.get("*"))&&z.slice().map(function(j){j(k,V)})}}}const instance=mitt(),eventBus={};eventBus.$on=instance.on,eventBus.$off=instance.off,eventBus.$emit=instance.emit;var fieldMixin={inject:["refList","getFormConfig","globalOptionData","globalModel","getOptionData"],computed:{formConfig(){return this.getFormConfig()},widgetSize(){return this.field.options.size||"default"},subFormName(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag(){return this.parentWidget?this.parentWidget.type==="sub-form":!1},formModel:{cache:!1,get(){return this.globalModel.formModel}}},methods:{getPropName(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name:this.field.options.name},initFieldModel(){if(this.field.formItemFlag){if(!!this.subFormItemFlag&&!this.designState){let $=this.formModel[this.subFormName];($===void 0||$[this.subFormRowIndex]===void 0||$[this.subFormRowIndex][this.field.options.name]===void 0)&&this.field.options.defaultValue!==void 0?(this.fieldModel=this.field.options.defaultValue,$[this.subFormRowIndex][this.field.options.name]=this.field.options.defaultValue):$[this.subFormRowIndex][this.field.options.name]===void 0?(this.fieldModel=null,$[this.subFormRowIndex][this.field.options.name]=null):this.fieldModel=$[this.subFormRowIndex][this.field.options.name],setTimeout(()=>{this.handleOnChangeForSubForm(this.fieldModel,this.oldFieldValue,$,this.subFormRowId)},800),this.oldFieldValue=deepClone(this.fieldModel),this.initFileList();return}this.formModel[this.field.options.name]===void 0&&this.field.options.defaultValue!==void 0?this.fieldModel=this.field.options.defaultValue:this.formModel[this.field.options.name]===void 0?this.formModel[this.field.options.name]=null:this.fieldModel=this.formModel[this.field.options.name],this.oldFieldValue=deepClone(this.fieldModel),this.initFileList()}},initFileList(){this.field.type!=="picture-upload"&&this.field.type!=="file-upload"||this.designState===!0||this.fieldModel&&(Array.isArray(this.fieldModel)?this.fileList=deepClone(this.fieldModel):this.fileList.splice(0,0,deepClone(this.fieldModel)))},initEventHandler(){this.on$("setFormData",$=>{console.log("formModel of globalModel----------",this.globalModel.formModel),this.subFormItemFlag||this.setValue($[this.field.options.name])}),this.on$("field-value-changed",$=>{if(this.subFormItemFlag){let k=this.formModel[this.subFormName];this.handleOnChangeForSubForm($[0],$[1],k,this.subFormRowId)}else this.handleOnChange($[0],$[1])}),this.on$("reloadOptionItems",$=>{($.length===0||$.indexOf(this.field.options.name)>-1)&&this.initOptionItems(!0)})},handleOnCreated(){this.field.options.onCreated&&new Function(this.field.options.onCreated).call(this)},handleOnMounted(){this.field.options.onMounted&&new Function(this.field.options.onMounted).call(this)},registerToRefList($){this.refList!==null&&!!this.field.options.name&&(this.subFormItemFlag&&!this.designState?($&&delete this.refList[$+"@row"+this.subFormRowId],this.refList[this.field.options.name+"@row"+this.subFormRowId]=this):($&&delete this.refList[$],this.refList[this.field.options.name]=this))},unregisterFromRefList(){if(this.refList!==null&&!!this.field.options.name){let $=this.field.options.name;this.subFormItemFlag&&!this.designState?delete this.refList[$+"@row"+this.subFormRowId]:delete this.refList[$]}},initOptionItems($){if(!this.designState&&(this.field.type==="radio"||this.field.type==="checkbox"||this.field.type==="select"||this.field.type==="cascader")){const k=this.getOptionData();!!k&&k.hasOwnProperty(this.field.options.name)&&($?this.reloadOptions(k[this.field.options.name]):this.loadOptions(k[this.field.options.name]))}},refreshDefaultValue(){this.designState===!0&&this.field.options.defaultValue!==void 0&&(this.fieldModel=this.field.options.defaultValue)},clearFieldRules(){!this.field.formItemFlag||this.rules.splice(0,this.rules.length)},buildFieldRules(){if(this.field.formItemFlag){if(this.rules.splice(0,this.rules.length),this.field.options.required&&this.rules.push({required:!0,trigger:["blur"],message:this.field.options.requiredHint||this.i18nt("render.hint.fieldRequired")}),this.field.options.validation){let $=this.field.options.validation;FormValidators[$]?this.rules.push({validator:FormValidators[$],trigger:["blur","change"],label:this.field.options.label,errorMsg:this.field.options.validationHint}):this.rules.push({validator:FormValidators.regExp,trigger:["blur","change"],regExp:$,label:this.field.options.label,errorMsg:this.field.options.validationHint})}if(this.field.options.onValidate){let $=(k,V,z)=>new Function("rule","value","callback",this.field.options.onValidate).call(this,k,V,z);this.rules.push({validator:$,trigger:["blur","change"],label:this.field.options.label})}}},disableChangeValidate(){!this.rules||this.rules.forEach($=>{$.trigger&&$.trigger.splice(0,$.trigger.length)})},enableChangeValidate(){!this.rules||this.rules.forEach($=>{$.trigger&&($.trigger.push("blur"),$.trigger.push("change"))})},disableOptionOfList($,k){!!$&&$.length>0&&$.forEach(V=>{V.value===k&&(V.disabled=!0)})},enableOptionOfList($,k){!!$&&$.length>0&&$.forEach(V=>{V.value===k&&(V.disabled=!1)})},emitFieldDataChange($,k){this.emit$("field-value-changed",[$,k]),this.dispatch("VFormRender","fieldChange",[this.field.options.name,$,k,this.subFormName,this.subFormRowIndex])},syncUpdateFormModel($){if(!this.designState)if(this.subFormItemFlag){let k=(this.formModel[this.subFormName]||[{}])[this.subFormRowIndex];k&&(k[this.field.options.name]=$)}else this.formModel[this.field.options.name]=$},handleChangeEvent($){this.syncUpdateFormModel($),this.emitFieldDataChange($,this.oldFieldValue),this.oldFieldValue=deepClone($),this.dispatch("VFormRender","fieldValidation",[this.getPropName()])},handleFocusCustomEvent($){this.oldFieldValue=deepClone(this.fieldModel),this.field.options.onFocus&&new Function("event",this.field.options.onFocus).call(this,$)},handleBlurCustomEvent($){this.field.options.onBlur&&new Function("event",this.field.options.onBlur).call(this,$)},handleInputCustomEvent($){this.syncUpdateFormModel($),this.dispatch("VFormRender","fieldValidation",[this.getPropName()]),this.field.options.onInput&&new Function("value",this.field.options.onInput).call(this,$)},emitAppendButtonClick(){this.dispatch("VFormRender","appendButtonClick",[this])},handleOnChange($,k){this.field.options.onChange&&new Function("value","oldValue",this.field.options.onChange).call(this,$,k)},handleOnChangeForSubForm($,k,V,z){this.field.options.onChange&&new Function("value","oldValue","subFormData","rowId",this.field.options.onChange).call(this,$,k,V,z)},handleButtonWidgetClick(){this.designState||(this.field.options.onClick?new Function(this.field.options.onClick).call(this):this.dispatch("VFormRender","buttonClick",[this]))},remoteQuery($){this.field.options.onRemoteQuery&&new Function("keyword",this.field.options.onRemoteQuery).call(this,$)},getFormRef(){return this.refList.v_form_ref},getWidgetRef($,k){let V=this.refList[$];return!V&&!!k&&this.$message.error(this.i18nt("render.hint.refNotFound")+$),V},getFieldEditor(){return this.$refs.fieldEditor},setValue($){if(this.field.formItemFlag){let k=deepClone(this.fieldModel);this.fieldModel=$,this.initFileList(),this.syncUpdateFormModel($),this.emitFieldDataChange($,k)}},getValue(){return this.fieldModel},resetField(){let $=this.field.options.defaultValue;this.setValue($),this.$nextTick(()=>{}),(this.field.type==="picture-upload"||this.field.type==="file-upload")&&(this.$refs.fieldEditor.clearFiles(),this.fileList.splice(0,this.fileList.length))},setWidgetOption($,k){this.field.options.hasOwnProperty($)&&(this.field.options[$]=k)},setReadonly($){this.field.options.readonly=$},setDisabled($){this.field.options.disabled=$},setAppendButtonVisible($){this.field.options.appendButton=$},setAppendButtonDisabled($){this.field.options.appendButtonDisabled=$},setHidden($){this.field.options.hidden=$,$?this.clearFieldRules():this.buildFieldRules()},setRequired($){this.field.options.required=$,this.buildFieldRules()},setLabel($){this.field.options.label=$},focus(){!!this.getFieldEditor()&&!!this.getFieldEditor().focus&&this.getFieldEditor().focus()},clearSelectedOptions(){this.field.type!=="checkbox"&&this.field.type!=="radio"&&this.field.type!=="select"||(this.field.type==="checkbox"||this.field.type==="select"&&this.field.options.multiple?this.fieldModel=[]:this.fieldModel="")},loadOptions($){this.field.options.optionItems=deepClone($)},reloadOptions($){this.field.options.optionItems=deepClone($)},disableOption($){this.disableOptionOfList(this.field.options.optionItems,$)},enableOption($){this.enableOptionOfList(this.field.options.optionItems,$)},getOptionItems(){return this.field.options.optionItems},setUploadHeader($,k){this.uploadHeaders[$]=k},setUploadData($,k){this.uploadData[$]=k},setToolbar($){this.customToolbar=$}}};const _sfc_main$2_={name:"button-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2_($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-button"),ie=require$$0$3.resolveComponent("static-content-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,"design-state":V.designState,"display-style":V.field.options.displayStyle,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",type:V.field.options.type,size:$.widgetSize,plain:V.field.options.plain,round:V.field.options.round,circle:V.field.options.circle,icon:V.field.options.icon,disabled:V.field.options.disabled,onClick:$.handleButtonWidgetClick},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString(V.field.options.label),1)]),_:1},8,["type","size","plain","round","circle","icon","disabled","onClick"])]),_:1},8,["designer","field","design-state","display-style","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var buttonWidget=_export_sfc$1(_sfc_main$2_,[["render",_sfc_render$2_],["__scopeId","data-v-1ba2a127"]]),__glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:buttonWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2Z={name:"form-item-wrapper",mixins:[i18n$1],props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""},rules:Array},inject:["getFormConfig"],computed:{formConfig(){return this.getFormConfig()},selected(){return!!this.designer&&this.field.id===this.designer.selectedId},label(){return this.field.options.labelHidden?"":this.field.options.label},labelWidth(){return this.field.options.labelHidden?0:this.field.options.labelWidth?this.field.options.labelWidth:this.designer?this.designer.formConfig.labelWidth:this.formConfig.labelWidth},labelAlign(){return this.field.options.labelAlign?this.field.options.labelAlign:this.designer?this.designer.formConfig.labelAlign||"label-left-align":this.formConfig.labelAlign||"label-left-align"},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""},subFormName(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag(){return this.parentWidget?this.parentWidget.type==="sub-form":!1}},created(){},methods:{selectField($){this.designer&&(this.designer.setSelected($),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){let $=null;this.parentList.length===1?this.parentWidget&&($=this.parentWidget):this.parentList.length===1+this.indexOfParentList?$=this.parentList[this.indexOfParentList-1]:$=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected($),this.designer.emitHistoryChange()})}},getPropName(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name:this.field.options.name}}},_hoisted_1$D={key:0,class:"custom-label"},_hoisted_2$q={key:0,class:"field-action"},_hoisted_3$j=["title"],_hoisted_4$c=["title"],_hoisted_5$a=["title"],_hoisted_6$8=["title"],_hoisted_7$5={key:1,class:"drag-handler background-opacity"},_hoisted_8$4=["title"],_hoisted_9$3={key:0};function _sfc_render$2Z($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon"),ie=require$$0$3.resolveComponent("el-tooltip"),ae=require$$0$3.resolveComponent("el-form-item");return require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{class:require$$0$3.normalizeClass(["field-wrapper",{"design-time-bottom-margin":!!this.designer}])},[V.field.formItemFlag?require$$0$3.withDirectives((require$$0$3.openBlock(),require$$0$3.createBlock(ae,{key:0,label:oe.label,"label-width":oe.labelWidth+"px",title:V.field.options.labelTooltip,rules:V.rules,prop:oe.getPropName(),class:require$$0$3.normalizeClass([oe.selected?"selected":"",oe.labelAlign,oe.customClass,V.field.options.required?"required":""]),onClick:k[0]||(k[0]=require$$0$3.withModifiers(he=>oe.selectField(V.field),["stop"]))},{label:require$$0$3.withCtx(()=>[V.field.options.labelIconClass?(require$$0$3.openBlock(),require$$0$3.createElementBlock("span",_hoisted_1$D,[V.field.options.labelIconPosition==="front"?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[V.field.options.labelTooltip?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[require$$0$3.createVNode(ie,{content:V.field.options.labelTooltip,effect:"light"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":V.field.options.labelIconClass},null,8,["icon-class"])]),_:1},8,["content"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString(oe.label),1)],64)):(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[require$$0$3.createVNode(re,{"icon-class":V.field.options.labelIconClass},null,8,["icon-class"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString(oe.label),1)],64))],64)):V.field.options.labelIconPosition==="rear"?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[V.field.options.labelTooltip?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[require$$0$3.createTextVNode(require$$0$3.toDisplayString(oe.label),1),require$$0$3.createVNode(ie,{content:V.field.options.labelTooltip,effect:"light"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":V.field.options.labelIconClass},null,8,["icon-class"])]),_:1},8,["content"])],64)):(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[require$$0$3.createTextVNode(require$$0$3.toDisplayString(oe.label),1),require$$0$3.createVNode(re,{"icon-class":V.field.options.labelIconClass},null,8,["icon-class"])],64))],64)):require$$0$3.createCommentVNode("",!0)])):require$$0$3.createCommentVNode("",!0)]),default:require$$0$3.withCtx(()=>[require$$0$3.renderSlot($.$slots,"default",{},void 0,!0)]),_:3},8,["label","label-width","title","rules","prop","class"])),[[require$$0$3.vShow,!V.field.options.hidden||V.designState===!0]]):require$$0$3.createCommentVNode("",!0),this.designer?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[V.designer.selectedId===V.field.id?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_2$q,[require$$0$3.createElementVNode("i",{title:$.i18nt("designer.hint.selectParentWidget"),onClick:k[1]||(k[1]=require$$0$3.withModifiers(he=>oe.selectParentWidget(V.field),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-back"})],8,_hoisted_3$j),!!V.parentList&&V.parentList.length>1?(require$$0$3.openBlock(),require$$0$3.createElementBlock("i",{key:0,title:$.i18nt("designer.hint.moveUpWidget"),onClick:k[2]||(k[2]=require$$0$3.withModifiers(he=>oe.moveUpWidget(V.field),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-move-up"})],8,_hoisted_4$c)):require$$0$3.createCommentVNode("",!0),!!V.parentList&&V.parentList.length>1?(require$$0$3.openBlock(),require$$0$3.createElementBlock("i",{key:1,title:$.i18nt("designer.hint.moveDownWidget"),onClick:k[3]||(k[3]=require$$0$3.withModifiers(he=>oe.moveDownWidget(V.field),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-move-down"})],8,_hoisted_5$a)):require$$0$3.createCommentVNode("",!0),require$$0$3.createElementVNode("i",{title:$.i18nt("designer.hint.remove"),onClick:k[4]||(k[4]=require$$0$3.withModifiers((...he)=>oe.removeFieldWidget&&oe.removeFieldWidget(...he),["stop"]))},[require$$0$3.createVNode(re,{"icon-class":"el-delete"})],8,_hoisted_6$8)])):require$$0$3.createCommentVNode("",!0),V.designer.selectedId===V.field.id?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_7$5,[require$$0$3.createElementVNode("i",{title:$.i18nt("designer.hint.dragHandler")},[require$$0$3.createVNode(re,{"icon-class":"el-drag-move"})],8,_hoisted_8$4),require$$0$3.createElementVNode("i",null,require$$0$3.toDisplayString($.i18n2t(`designer.widgetLabel.${V.field.type}`,`extension.widgetLabel.${V.field.type}`)),1),V.field.options.hidden===!0?(require$$0$3.openBlock(),require$$0$3.createElementBlock("i",_hoisted_9$3,[require$$0$3.createVNode(re,{"icon-class":"el-hide"})])):require$$0$3.createCommentVNode("",!0)])):require$$0$3.createCommentVNode("",!0)],64)):require$$0$3.createCommentVNode("",!0)],2)}var FormItemWrapper=_export_sfc$1(_sfc_main$2Z,[["render",_sfc_render$2Z],["__scopeId","data-v-0f4d27ec"]]),__glob_0_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormItemWrapper},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2Y={name:"cascader-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$C={class:"full-width-input"};function _sfc_render$2Y($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-cascader"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",_hoisted_1$C,[require$$0$3.createVNode(re,{ref:"fieldEditor",options:V.field.options.optionItems,modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),disabled:V.field.options.disabled,size:$.widgetSize,clearable:V.field.options.clearable,filterable:V.field.options.filterable,placeholder:V.field.options.placeholder||$.i18nt("render.hint.selectPlaceholder"),onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},null,8,["options","modelValue","disabled","size","clearable","filterable","placeholder","onFocus","onBlur","onChange"])])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var cascaderWidget=_export_sfc$1(_sfc_main$2Y,[["render",_sfc_render$2Y],["__scopeId","data-v-ba76529a"]]),__glob_0_1$3=Object.freeze(Object.defineProperty({__proto__:null,default:cascaderWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2X={name:"checkbox-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2X($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-checkbox-button"),ie=require$$0$3.resolveComponent("el-checkbox"),ae=require$$0$3.resolveComponent("el-checkbox-group"),he=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(he,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ae,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=le=>j.fieldModel=le),disabled:V.field.options.disabled,size:$.widgetSize,onChange:$.handleChangeEvent},{default:require$$0$3.withCtx(()=>[V.field.options.buttonStyle?(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},require$$0$3.renderList(V.field.options.optionItems,(le,ue)=>(require$$0$3.openBlock(),require$$0$3.createBlock(re,{key:ue,label:le.value,disabled:le.disabled,border:V.field.options.border,style:require$$0$3.normalizeStyle({display:V.field.options.displayStyle})},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString(le.label),1)]),_:2},1032,["label","disabled","border","style"]))),128)):(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},require$$0$3.renderList(V.field.options.optionItems,(le,ue)=>(require$$0$3.openBlock(),require$$0$3.createBlock(ie,{key:ue,label:le.value,disabled:le.disabled,border:V.field.options.border,style:require$$0$3.normalizeStyle({display:V.field.options.displayStyle})},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString(le.label),1)]),_:2},1032,["label","disabled","border","style"]))),128))]),_:1},8,["modelValue","disabled","size","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var checkboxWidget=_export_sfc$1(_sfc_main$2X,[["render",_sfc_render$2X],["__scopeId","data-v-716b0a6b"]]),__glob_0_2$3=Object.freeze(Object.defineProperty({__proto__:null,default:checkboxWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2W={name:"color-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2W($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-color-picker"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),size:$.widgetSize,disabled:V.field.options.disabled,onChange:$.handleChangeEvent},null,8,["modelValue","size","disabled","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var colorWidget=_export_sfc$1(_sfc_main$2W,[["render",_sfc_render$2W],["__scopeId","data-v-8d04bd98"]]),__glob_0_3$3=Object.freeze(Object.defineProperty({__proto__:null,default:colorWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2V={name:"date-range-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2V($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-date-picker"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",{class:require$$0$3.normalizeClass([V.field.options.autoFullWidth?"auto-full-width":""])},[require$$0$3.createVNode(re,{ref:"fieldEditor",type:V.field.options.type,modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),disabled:V.field.options.disabled,readonly:V.field.options.readonly,size:$.widgetSize,clearable:V.field.options.clearable,editable:V.field.options.editable,format:V.field.options.format,"value-format":V.field.options.valueFormat,"start-placeholder":V.field.options.startPlaceholder||$.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":V.field.options.endPlaceholder||$.i18nt("render.hint.endDatePlaceholder"),onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},null,8,["type","modelValue","disabled","readonly","size","clearable","editable","format","value-format","start-placeholder","end-placeholder","onFocus","onBlur","onChange"])],2)]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dateRangeWidget=_export_sfc$1(_sfc_main$2V,[["render",_sfc_render$2V],["__scopeId","data-v-21300a07"]]),__glob_0_4$3=Object.freeze(Object.defineProperty({__proto__:null,default:dateRangeWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2U={name:"date-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2U($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-date-picker"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",type:V.field.options.type,modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),class:require$$0$3.normalizeClass([V.field.options.autoFullWidth?"auto-full-width":""]),readonly:V.field.options.readonly,disabled:V.field.options.disabled,size:$.widgetSize,clearable:V.field.options.clearable,editable:V.field.options.editable,format:V.field.options.format,"value-format":V.field.options.valueFormat,placeholder:V.field.options.placeholder||$.i18nt("render.hint.datePlaceholder"),onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},null,8,["type","modelValue","class","readonly","disabled","size","clearable","editable","format","value-format","placeholder","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dateWidget=_export_sfc$1(_sfc_main$2U,[["render",_sfc_render$2U],["__scopeId","data-v-75b85548"]]),__glob_0_5$3=Object.freeze(Object.defineProperty({__proto__:null,default:dateWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2T={name:"divider-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2T($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-divider"),ie=require$$0$3.resolveComponent("static-content-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",direction:"horizontal","content-position":V.field.options.contentPosition},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString(V.field.options.label),1)]),_:1},8,["content-position"])]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dividerWidget=_export_sfc$1(_sfc_main$2T,[["render",_sfc_render$2T],["__scopeId","data-v-09a1b973"]]),__glob_0_6$2=Object.freeze(Object.defineProperty({__proto__:null,default:dividerWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2S={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},_hoisted_1$B=["xlink:href"],_hoisted_2$p={key:0};function _sfc_render$2S($,k,V,z,j,oe){return require$$0$3.openBlock(),require$$0$3.createElementBlock("svg",{class:require$$0$3.normalizeClass(oe.svgClass),"aria-hidden":"true"},[require$$0$3.createElementVNode("use",{"xlink:href":oe.iconName},null,8,_hoisted_1$B),V.title?(require$$0$3.openBlock(),require$$0$3.createElementBlock("title",_hoisted_2$p,require$$0$3.toDisplayString(V.title),1)):require$$0$3.createCommentVNode("",!0)],2)}var SvgIcon=_export_sfc$1(_sfc_main$2S,[["render",_sfc_render$2S],["__scopeId","data-v-1ccd726c"]]);let selectFileText="'"+translate("render.hint.selectFile")+"'";const _sfc_main$2R={name:"file-upload-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{SvgIcon,FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1,styleVariables:{"--select-file-action":selectFileText}}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleFileExceed(){this.field.options.limit,this.$message.warning(eval("`"+this.i18nt("render.hint.uploadExceed")+"`"))},updateUploadFieldModelAndEmitDataChange($){let k=deepClone(this.fieldModel);this.fieldModel=deepClone($),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,k)},beforeFileUpload($){let k=!1,V=$.name.substring($.name.lastIndexOf(".")+1);if(!!this.field.options&&!!this.field.options.fileTypes){let oe=this.field.options.fileTypes;oe.length>0&&(k=oe.some(re=>V.toLowerCase()===re.toLowerCase()))}if(!k)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+V),!1;let z=!1,j=5;return!!this.field.options&&!!this.field.options.fileMaxSize&&(j=this.field.options.fileMaxSize),z=$.size/1024/1024<=j,z?(this.uploadData.key=$.name,this.handleOnBeforeUpload($)):(this.$message.error(this.i18nt("render.hint.fileSizeExceed")+j+"MB"),!1)},handleOnBeforeUpload($){if(this.field.options.onBeforeUpload){let k=new Function("file",this.field.options.onBeforeUpload).call(this,$);return typeof k=="boolean"?k:!0}return!0},handleFileUpload($,k,V){k.status==="success"&&(this.updateUploadFieldModelAndEmitDataChange(V),this.fileList=deepClone(V),this.uploadBtnHidden=V.length>=this.field.options.limit,this.field.options.onUploadSuccess&&new Function("result","file","fileList",this.field.options.onUploadSuccess).call(this,$,k,V))},handleFileRemove($,k){this.fileList=deepClone(k),this.updateUploadFieldModelAndEmitDataChange(k),this.uploadBtnHidden=k.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,$,k)},removeUploadFile($){let k=-1,V=null;this.fileList.forEach((z,j)=>{z.name===$&&(k=j,V=z)}),k>=0&&(this.fileList.splice(k,1),this.updateUploadFieldModelAndEmitDataChange(this.fileList),this.uploadBtnHidden=this.fileList.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,V,this.fileList))},handelUploadError($,k,V){this.field.options.onUploadError?new Function("error","file","fileList",this.field.options.onUploadError).call(this,$,k,V):this.$message({message:this.i18nt("render.hint.uploadError")+$,duration:3e3,type:"error"})}}},_withScopeId$3=$=>(require$$0$3.pushScopeId("data-v-36b4bda4"),$=$(),require$$0$3.popScopeId(),$),_hoisted_1$A={key:0,class:"el-upload__tip"},_hoisted_2$o=_withScopeId$3(()=>require$$0$3.createElementVNode("i",{class:"el-icon-plus avatar-uploader-icon"},null,-1)),_hoisted_3$i={class:"upload-file-list"},_hoisted_4$b=["title"],_hoisted_5$9=["href"],_hoisted_6$7={class:"el-icon-download file-action",title:"i18nt('render.hint.downloadFile')"},_hoisted_7$4=["onClick"];function _sfc_render$2R($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon"),ie=require$$0$3.resolveComponent("el-upload"),ae=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ae,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{ref:"fieldEditor",disabled:V.field.options.disabled,style:require$$0$3.normalizeStyle(j.styleVariables),class:require$$0$3.normalizeClass(["dynamicPseudoAfter",{hideUploadDiv:j.uploadBtnHidden}]),action:V.field.options.uploadURL,headers:j.uploadHeaders,data:j.uploadData,"with-credentials":V.field.options.withCredentials,multiple:V.field.options.multipleSelect,"file-list":j.fileList,"show-file-list":V.field.options.showFileList,limit:V.field.options.limit,"on-exceed":oe.handleFileExceed,"before-upload":oe.beforeFileUpload,"on-success":oe.handleFileUpload,"on-error":oe.handelUploadError,"on-remove":oe.handleFileRemove},{tip:require$$0$3.withCtx(()=>[V.field.options.uploadTip?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_1$A,require$$0$3.toDisplayString(V.field.options.uploadTip),1)):require$$0$3.createCommentVNode("",!0)]),default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":"el-plus"}),_hoisted_2$o]),file:require$$0$3.withCtx(({file:he})=>[require$$0$3.createElementVNode("div",_hoisted_3$i,[require$$0$3.createElementVNode("span",{class:"upload-file-name",title:he.name},require$$0$3.toDisplayString(he.name),9,_hoisted_4$b),require$$0$3.createElementVNode("a",{href:he.url,download:""},[require$$0$3.createElementVNode("span",_hoisted_6$7,[require$$0$3.createVNode(re,{"icon-class":"el-download"})])],8,_hoisted_5$9),V.field.options.disabled?require$$0$3.createCommentVNode("",!0):(require$$0$3.openBlock(),require$$0$3.createElementBlock("span",{key:0,class:"file-action",title:"i18nt('render.hint.removeFile')",onClick:le=>oe.removeUploadFile(he.name)},[require$$0$3.createVNode(re,{"icon-class":"el-delete"})],8,_hoisted_7$4))])]),_:1},8,["disabled","style","action","headers","data","with-credentials","multiple","file-list","show-file-list","class","limit","on-exceed","before-upload","on-success","on-error","on-remove"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var fileUploadWidget=_export_sfc$1(_sfc_main$2R,[["render",_sfc_render$2R],["__scopeId","data-v-36b4bda4"]]),__glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:fileUploadWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2Q={name:"html-text-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$z=["innerHTML"];function _sfc_render$2Q($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("static-content-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(re,{designer:V.designer,field:V.field,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",{ref:"fieldEditor",innerHTML:V.field.options.htmlContent},null,8,_hoisted_1$z)]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var htmlTextWidget=_export_sfc$1(_sfc_main$2Q,[["render",_sfc_render$2Q],["__scopeId","data-v-3d941b4e"]]),__glob_0_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:htmlTextWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2P={name:"input-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType(){return this.field.options.type==="number"?"text":this.field.options.type}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2P($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon"),ie=require$$0$3.resolveComponent("el-button"),ae=require$$0$3.resolveComponent("el-input"),he=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(he,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ae,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=le=>j.fieldModel=le),disabled:V.field.options.disabled,readonly:V.field.options.readonly,size:$.widgetSize,class:"hide-spin-button",type:oe.inputType,"show-password":V.field.options.showPassword,placeholder:V.field.options.placeholder,clearable:V.field.options.clearable,minlength:V.field.options.minLength,maxlength:V.field.options.maxLength,"show-word-limit":V.field.options.showWordLimit,"prefix-icon":V.field.options.prefixIcon,"suffix-icon":V.field.options.suffixIcon,onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onInput:$.handleInputCustomEvent,onChange:$.handleChangeEvent},require$$0$3.createSlots({_:2},[V.field.options.appendButton?{name:"append",fn:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{disabled:V.field.options.disabled||V.field.options.appendButtonDisabled,onClick:$.emitAppendButtonClick},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":V.field.options.buttonIcon},null,8,["icon-class"])]),_:1},8,["disabled","onClick"])])}:void 0]),1032,["modelValue","disabled","readonly","size","type","show-password","placeholder","clearable","minlength","maxlength","show-word-limit","prefix-icon","suffix-icon","onFocus","onBlur","onInput","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var inputWidget=_export_sfc$1(_sfc_main$2P,[["render",_sfc_render$2P],["__scopeId","data-v-f687acbc"]]),__glob_0_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:inputWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2O={name:"number-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2O($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-input-number"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),class:"full-width-input",disabled:V.field.options.disabled,size:$.widgetSize,"controls-position":V.field.options.controlsPosition,placeholder:V.field.options.placeholder,min:V.field.options.min,max:V.field.options.max,precision:V.field.options.precision,step:V.field.options.step,onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},null,8,["modelValue","disabled","size","controls-position","placeholder","min","max","precision","step","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var numberWidget=_export_sfc$1(_sfc_main$2O,[["render",_sfc_render$2O],["__scopeId","data-v-0b9bc82f"]]),__glob_0_11$1=Object.freeze(Object.defineProperty({__proto__:null,default:numberWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2N={name:"picture-upload-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handlePictureExceed(){this.field.options.limit,this.$message.warning(eval("`"+this.i18nt("render.hint.uploadExceed")+"`"))},updateUploadFieldModelAndEmitDataChange($){let k=deepClone(this.fieldModel);this.fieldModel=deepClone($),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,k)},beforePictureUpload($){let k=!1;if(!!this.field.options&&!!this.field.options.fileTypes){let j=this.field.options.fileTypes;j.length>0&&(k=j.some(oe=>$.type==="image/"+oe))}if(!k)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+$.type),!1;let V=!1,z=5;return!!this.field.options&&!!this.field.options.fileMaxSize&&(z=this.field.options.fileMaxSize),V=$.size/1024/1024<=z,V?(this.uploadData.key=$.name,this.handleOnBeforeUpload($)):(this.$message.error(this.$("render.hint.fileSizeExceed")+z+"MB"),!1)},handleOnBeforeUpload($){if(this.field.options.onBeforeUpload){let k=new Function("file",this.field.options.onBeforeUpload).call(this,$);return typeof k=="boolean"?k:!0}return!0},handlePictureUpload($,k,V){k.status==="success"&&(this.updateUploadFieldModelAndEmitDataChange(V),this.fileList=deepClone(V),this.uploadBtnHidden=V.length>=this.field.options.limit,this.field.options.onUploadSuccess&&new Function("result","file","fileList",this.field.options.onUploadSuccess).call(this,$,k,V))},handlePictureRemove($,k){this.fileList=deepClone(k),this.updateUploadFieldModelAndEmitDataChange(k),this.uploadBtnHidden=k.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,$,k)},handelUploadError($,k,V){this.field.options.onUploadError?new Function("error","file","fileList",this.field.options.onUploadError).call(this,$,k,V):this.$message({message:this.i18nt("render.hint.uploadError")+$,duration:3e3,type:"error"})}}},_hoisted_1$y={key:0,class:"el-upload__tip"},_hoisted_2$n={class:"uploader-icon"};function _sfc_render$2N($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon"),ie=require$$0$3.resolveComponent("el-upload"),ae=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ae,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{ref:"fieldEditor",disabled:V.field.options.disabled,action:V.field.options.uploadURL,headers:j.uploadHeaders,data:j.uploadData,"with-credentials":V.field.options.withCredentials,multiple:V.field.options.multipleSelect,"file-list":j.fileList,"show-file-list":V.field.options.showFileList,"list-type":"picture-card",class:require$$0$3.normalizeClass({hideUploadDiv:j.uploadBtnHidden}),limit:V.field.options.limit,"on-exceed":oe.handlePictureExceed,"before-upload":oe.beforePictureUpload,"on-success":oe.handlePictureUpload,"on-error":oe.handelUploadError,"on-remove":oe.handlePictureRemove},{tip:require$$0$3.withCtx(()=>[V.field.options.uploadTip?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_1$y,require$$0$3.toDisplayString(V.field.options.uploadTip),1)):require$$0$3.createCommentVNode("",!0)]),default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",_hoisted_2$n,[require$$0$3.createVNode(re,{"icon-class":"el-plus"})])]),_:1},8,["disabled","action","headers","data","with-credentials","multiple","file-list","show-file-list","class","limit","on-exceed","before-upload","on-success","on-error","on-remove"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var pictureUploadWidget=_export_sfc$1(_sfc_main$2N,[["render",_sfc_render$2N],["__scopeId","data-v-9c3458a4"]]),__glob_0_12$1=Object.freeze(Object.defineProperty({__proto__:null,default:pictureUploadWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2M={name:"radio-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2M($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-radio-button"),ie=require$$0$3.resolveComponent("el-radio"),ae=require$$0$3.resolveComponent("el-radio-group"),he=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(he,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ae,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=le=>j.fieldModel=le),class:require$$0$3.normalizeClass({"radio-group-block":V.field.options.displayStyle==="block"}),disabled:V.field.options.disabled,size:$.widgetSize,onChange:$.handleChangeEvent},{default:require$$0$3.withCtx(()=>[V.field.options.buttonStyle?(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},require$$0$3.renderList(V.field.options.optionItems,(le,ue)=>(require$$0$3.openBlock(),require$$0$3.createBlock(re,{key:ue,label:le.value,disabled:le.disabled,border:V.field.options.border,style:require$$0$3.normalizeStyle({display:V.field.options.displayStyle})},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString(le.label),1)]),_:2},1032,["label","disabled","border","style"]))),128)):(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},require$$0$3.renderList(V.field.options.optionItems,(le,ue)=>(require$$0$3.openBlock(),require$$0$3.createBlock(ie,{key:ue,label:le.value,disabled:le.disabled,border:V.field.options.border,style:require$$0$3.normalizeStyle({display:V.field.options.displayStyle})},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString(le.label),1)]),_:2},1032,["label","disabled","border","style"]))),128))]),_:1},8,["modelValue","class","disabled","size","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var radioWidget=_export_sfc$1(_sfc_main$2M,[["render",_sfc_render$2M],["__scopeId","data-v-253adc5e"]]),__glob_0_13$1=Object.freeze(Object.defineProperty({__proto__:null,default:radioWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2L={name:"rate-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2L($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-rate"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),disabled:V.field.options.disabled,max:V.field.options.max,"low-threshold":V.field.options.lowThreshold,"high-threshold":V.field.options.highThreshold,"allow-half":V.field.options.allowHalf,"show-text":V.field.options.showText,"show-score":V.field.options.showScore,onChange:$.handleChangeEvent},null,8,["modelValue","disabled","max","low-threshold","high-threshold","allow-half","show-text","show-score","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var rateWidget=_export_sfc$1(_sfc_main$2L,[["render",_sfc_render$2L],["__scopeId","data-v-409c0e8b"]]),__glob_0_14$1=Object.freeze(Object.defineProperty({__proto__:null,default:rateWidget},Symbol.toStringTag,{value:"Module"})),quill={exports:{}};/*! -* Quill Editor v1.3.7 -* https://quilljs.com/ -* Copyright (c) 2014, Jason Chen -* Copyright (c) 2013, salesforce.com -*/(function($,k){(function(V,z){$.exports=z()})(typeof self!="undefined"?self:commonjsGlobal$1,function(){return function(V){var z={};function j(oe){if(z[oe])return z[oe].exports;var re=z[oe]={i:oe,l:!1,exports:{}};return V[oe].call(re.exports,re,re.exports,j),re.l=!0,re.exports}return j.m=V,j.c=z,j.d=function(oe,re,ie){j.o(oe,re)||Object.defineProperty(oe,re,{configurable:!1,enumerable:!0,get:ie})},j.n=function(oe){var re=oe&&oe.__esModule?function(){return oe.default}:function(){return oe};return j.d(re,"a",re),re},j.o=function(oe,re){return Object.prototype.hasOwnProperty.call(oe,re)},j.p="",j(j.s=109)}([function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(17),re=j(18),ie=j(19),ae=j(45),he=j(46),le=j(47),ue=j(48),de=j(49),pe=j(12),$e=j(32),_e=j(33),Ce=j(31),Ie=j(1),ze={Scope:Ie.Scope,create:Ie.create,find:Ie.find,query:Ie.query,register:Ie.register,Container:oe.default,Format:re.default,Leaf:ie.default,Embed:ue.default,Scroll:ae.default,Block:le.default,Inline:he.default,Text:de.default,Attributor:{Attribute:pe.default,Class:$e.default,Style:_e.default,Store:Ce.default}};z.default=ze},function(V,z,j){var oe=this&&this.__extends||function(){var Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ie,ze){Ie.__proto__=ze}||function(Ie,ze){for(var Et in ze)ze.hasOwnProperty(Et)&&(Ie[Et]=ze[Et])};return function(Ie,ze){Ce(Ie,ze);function Et(){this.constructor=Ie}Ie.prototype=ze===null?Object.create(ze):(Et.prototype=ze.prototype,new Et)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=function(Ce){oe(Ie,Ce);function Ie(ze){var Et=this;return ze="[Parchment] "+ze,Et=Ce.call(this,ze)||this,Et.message=ze,Et.name=Et.constructor.name,Et}return Ie}(Error);z.ParchmentError=re;var ie={},ae={},he={},le={};z.DATA_KEY="__blot";var ue;(function(Ce){Ce[Ce.TYPE=3]="TYPE",Ce[Ce.LEVEL=12]="LEVEL",Ce[Ce.ATTRIBUTE=13]="ATTRIBUTE",Ce[Ce.BLOT=14]="BLOT",Ce[Ce.INLINE=7]="INLINE",Ce[Ce.BLOCK=11]="BLOCK",Ce[Ce.BLOCK_BLOT=10]="BLOCK_BLOT",Ce[Ce.INLINE_BLOT=6]="INLINE_BLOT",Ce[Ce.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",Ce[Ce.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",Ce[Ce.ANY=15]="ANY"})(ue=z.Scope||(z.Scope={}));function de(Ce,Ie){var ze=$e(Ce);if(ze==null)throw new re("Unable to create "+Ce+" blot");var Et=ze,qe=Ce instanceof Node||Ce.nodeType===Node.TEXT_NODE?Ce:Et.create(Ie);return new Et(qe,Ie)}z.create=de;function pe(Ce,Ie){return Ie===void 0&&(Ie=!1),Ce==null?null:Ce[z.DATA_KEY]!=null?Ce[z.DATA_KEY].blot:Ie?pe(Ce.parentNode,Ie):null}z.find=pe;function $e(Ce,Ie){Ie===void 0&&(Ie=ue.ANY);var ze;if(typeof Ce=="string")ze=le[Ce]||ie[Ce];else if(Ce instanceof Text||Ce.nodeType===Node.TEXT_NODE)ze=le.text;else if(typeof Ce=="number")Ce&ue.LEVEL&ue.BLOCK?ze=le.block:Ce&ue.LEVEL&ue.INLINE&&(ze=le.inline);else if(Ce instanceof HTMLElement){var Et=(Ce.getAttribute("class")||"").split(/\s+/);for(var qe in Et)if(ze=ae[Et[qe]],ze)break;ze=ze||he[Ce.tagName]}return ze==null?null:Ie&ue.LEVEL&ze.scope&&Ie&ue.TYPE&ze.scope?ze:null}z.query=$e;function _e(){for(var Ce=[],Ie=0;Ie1)return Ce.map(function(qe){return _e(qe)});var ze=Ce[0];if(typeof ze.blotName!="string"&&typeof ze.attrName!="string")throw new re("Invalid definition");if(ze.blotName==="abstract")throw new re("Cannot register abstract class");if(le[ze.blotName||ze.attrName]=ze,typeof ze.keyName=="string")ie[ze.keyName]=ze;else if(ze.className!=null&&(ae[ze.className]=ze),ze.tagName!=null){Array.isArray(ze.tagName)?ze.tagName=ze.tagName.map(function(qe){return qe.toUpperCase()}):ze.tagName=ze.tagName.toUpperCase();var Et=Array.isArray(ze.tagName)?ze.tagName:[ze.tagName];Et.forEach(function(qe){(he[qe]==null||ze.className==null)&&(he[qe]=ze)})}return ze}z.register=_e},function(V,z,j){var oe=j(51),re=j(11),ie=j(3),ae=j(20),he=String.fromCharCode(0),le=function(ue){Array.isArray(ue)?this.ops=ue:ue!=null&&Array.isArray(ue.ops)?this.ops=ue.ops:this.ops=[]};le.prototype.insert=function(ue,de){var pe={};return ue.length===0?this:(pe.insert=ue,de!=null&&typeof de=="object"&&Object.keys(de).length>0&&(pe.attributes=de),this.push(pe))},le.prototype.delete=function(ue){return ue<=0?this:this.push({delete:ue})},le.prototype.retain=function(ue,de){if(ue<=0)return this;var pe={retain:ue};return de!=null&&typeof de=="object"&&Object.keys(de).length>0&&(pe.attributes=de),this.push(pe)},le.prototype.push=function(ue){var de=this.ops.length,pe=this.ops[de-1];if(ue=ie(!0,{},ue),typeof pe=="object"){if(typeof ue.delete=="number"&&typeof pe.delete=="number")return this.ops[de-1]={delete:pe.delete+ue.delete},this;if(typeof pe.delete=="number"&&ue.insert!=null&&(de-=1,pe=this.ops[de-1],typeof pe!="object"))return this.ops.unshift(ue),this;if(re(ue.attributes,pe.attributes)){if(typeof ue.insert=="string"&&typeof pe.insert=="string")return this.ops[de-1]={insert:pe.insert+ue.insert},typeof ue.attributes=="object"&&(this.ops[de-1].attributes=ue.attributes),this;if(typeof ue.retain=="number"&&typeof pe.retain=="number")return this.ops[de-1]={retain:pe.retain+ue.retain},typeof ue.attributes=="object"&&(this.ops[de-1].attributes=ue.attributes),this}}return de===this.ops.length?this.ops.push(ue):this.ops.splice(de,0,ue),this},le.prototype.chop=function(){var ue=this.ops[this.ops.length-1];return ue&&ue.retain&&!ue.attributes&&this.ops.pop(),this},le.prototype.filter=function(ue){return this.ops.filter(ue)},le.prototype.forEach=function(ue){this.ops.forEach(ue)},le.prototype.map=function(ue){return this.ops.map(ue)},le.prototype.partition=function(ue){var de=[],pe=[];return this.forEach(function($e){var _e=ue($e)?de:pe;_e.push($e)}),[de,pe]},le.prototype.reduce=function(ue,de){return this.ops.reduce(ue,de)},le.prototype.changeLength=function(){return this.reduce(function(ue,de){return de.insert?ue+ae.length(de):de.delete?ue-de.delete:ue},0)},le.prototype.length=function(){return this.reduce(function(ue,de){return ue+ae.length(de)},0)},le.prototype.slice=function(ue,de){ue=ue||0,typeof de!="number"&&(de=1/0);for(var pe=[],$e=ae.iterator(this.ops),_e=0;_e0&&pe.next(_e.retain-Ce)}for(var Ie=new le($e);de.hasNext()||pe.hasNext();)if(pe.peekType()==="insert")Ie.push(pe.next());else if(de.peekType()==="delete")Ie.push(de.next());else{var ze=Math.min(de.peekLength(),pe.peekLength()),Et=de.next(ze),qe=pe.next(ze);if(typeof qe.retain=="number"){var Oe={};typeof Et.retain=="number"?Oe.retain=ze:Oe.insert=Et.insert;var Ue=ae.attributes.compose(Et.attributes,qe.attributes,typeof Et.retain=="number");if(Ue&&(Oe.attributes=Ue),Ie.push(Oe),!pe.hasNext()&&re(Ie.ops[Ie.ops.length-1],Oe)){var Dt=new le(de.rest());return Ie.concat(Dt).chop()}}else typeof qe.delete=="number"&&typeof Et.retain=="number"&&Ie.push(qe)}return Ie.chop()},le.prototype.concat=function(ue){var de=new le(this.ops.slice());return ue.ops.length>0&&(de.push(ue.ops[0]),de.ops=de.ops.concat(ue.ops.slice(1))),de},le.prototype.diff=function(ue,de){if(this.ops===ue.ops)return new le;var pe=[this,ue].map(function(ze){return ze.map(function(Et){if(Et.insert!=null)return typeof Et.insert=="string"?Et.insert:he;var qe=ze===ue?"on":"with";throw new Error("diff() called "+qe+" non-document")}).join("")}),$e=new le,_e=oe(pe[0],pe[1],de),Ce=ae.iterator(this.ops),Ie=ae.iterator(ue.ops);return _e.forEach(function(ze){for(var Et=ze[1].length;Et>0;){var qe=0;switch(ze[0]){case oe.INSERT:qe=Math.min(Ie.peekLength(),Et),$e.push(Ie.next(qe));break;case oe.DELETE:qe=Math.min(Et,Ce.peekLength()),Ce.next(qe),$e.delete(qe);break;case oe.EQUAL:qe=Math.min(Ce.peekLength(),Ie.peekLength(),Et);var Oe=Ce.next(qe),Ue=Ie.next(qe);re(Oe.insert,Ue.insert)?$e.retain(qe,ae.attributes.diff(Oe.attributes,Ue.attributes)):$e.push(Ue).delete(qe);break}Et-=qe}}),$e.chop()},le.prototype.eachLine=function(ue,de){de=de||` -`;for(var pe=ae.iterator(this.ops),$e=new le,_e=0;pe.hasNext();){if(pe.peekType()!=="insert")return;var Ce=pe.peek(),Ie=ae.length(Ce)-pe.peekLength(),ze=typeof Ce.insert=="string"?Ce.insert.indexOf(de,Ie)-Ie:-1;if(ze<0)$e.push(pe.next());else if(ze>0)$e.push(pe.next(ze));else{if(ue($e,pe.next(1).attributes||{},_e)===!1)return;_e+=1,$e=new le}}$e.length()>0&&ue($e,{},_e)},le.prototype.transform=function(ue,de){if(de=!!de,typeof ue=="number")return this.transformPosition(ue,de);for(var pe=ae.iterator(this.ops),$e=ae.iterator(ue.ops),_e=new le;pe.hasNext()||$e.hasNext();)if(pe.peekType()==="insert"&&(de||$e.peekType()!=="insert"))_e.retain(ae.length(pe.next()));else if($e.peekType()==="insert")_e.push($e.next());else{var Ce=Math.min(pe.peekLength(),$e.peekLength()),Ie=pe.next(Ce),ze=$e.next(Ce);if(Ie.delete)continue;ze.delete?_e.push(ze):_e.retain(Ce,ae.attributes.transform(Ie.attributes,ze.attributes,de))}return _e.chop()},le.prototype.transformPosition=function(ue,de){de=!!de;for(var pe=ae.iterator(this.ops),$e=0;pe.hasNext()&&$e<=ue;){var _e=pe.peekLength(),Ce=pe.peekType();if(pe.next(),Ce==="delete"){ue-=Math.min(_e,ue-$e);continue}else Ce==="insert"&&($e0&&(vn1&&arguments[1]!==void 0?arguments[1]:!1;if($n&&(vn===0||vn>=this.length()-Dt)){var wn=this.clone();return vn===0?(this.parent.insertBefore(wn,this),this):(this.parent.insertBefore(wn,this.next),wn)}else{var _n=re(jt.prototype.__proto__||Object.getPrototypeOf(jt.prototype),"split",this).call(this,vn,$n);return this.cache={},_n}}}]),jt}(de.default.Block);Lt.blotName="block",Lt.tagName="P",Lt.defaultChild="break",Lt.allowedChildren=[Ce.default,de.default.Embed,ze.default];function kt(Pt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Pt==null||(typeof Pt.formats=="function"&&(jt=(0,ae.default)(jt,Pt.formats())),Pt.parent==null||Pt.parent.blotName=="scroll"||Pt.parent.statics.scope!==Pt.statics.scope)?jt:kt(Pt.parent,jt)}z.bubbleFormats=kt,z.BlockEmbed=At,z.default=Lt},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(An){return typeof An}:function(An){return An&&typeof Symbol=="function"&&An.constructor===Symbol&&An!==Symbol.prototype?"symbol":typeof An},re=function(){function An(Cn,Tn){var Nn=[],xn=!0,On=!1,Ln=void 0;try{for(var Bn=Cn[Symbol.iterator](),Vn;!(xn=(Vn=Bn.next()).done)&&(Nn.push(Vn.value),!(Tn&&Nn.length===Tn));xn=!0);}catch(Fn){On=!0,Ln=Fn}finally{try{!xn&&Bn.return&&Bn.return()}finally{if(On)throw Ln}}return Nn}return function(Cn,Tn){if(Array.isArray(Cn))return Cn;if(Symbol.iterator in Object(Cn))return An(Cn,Tn);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ie=function(){function An(Cn,Tn){for(var Nn=0;Nn2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof Cn!="string"){var On=Cn.attrName||Cn.blotName;typeof On=="string"?this.register("formats/"+On,Cn,Tn):Object.keys(Cn).forEach(function(Ln){Nn.register(Ln,Cn[Ln],Tn)})}else this.imports[Cn]!=null&&!xn&&vn.warn("Overwriting "+Cn+" with",Tn),this.imports[Cn]=Tn,(Cn.startsWith("blots/")||Cn.startsWith("formats/"))&&Tn.blotName!=="abstract"?Ie.default.register(Tn):Cn.startsWith("modules")&&typeof Tn.register=="function"&&Tn.register()}}]);function An(Cn){var Tn=this,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(jt(this,An),this.options=wn(Cn,Nn),this.container=this.options.container,this.container==null)return vn.error("Invalid Quill container",Cn);this.options.debug&&An.debug(this.options.debug);var xn=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new pe.default,this.scroll=Ie.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new ue.default(this.scroll),this.selection=new Et.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(pe.default.events.EDITOR_CHANGE,function(Ln){Ln===pe.default.events.TEXT_CHANGE&&Tn.root.classList.toggle("ql-blank",Tn.editor.isBlank())}),this.emitter.on(pe.default.events.SCROLL_UPDATE,function(Ln,Bn){var Vn=Tn.selection.lastRange,Fn=Vn&&Vn.length===0?Vn.index:void 0;_n.call(Tn,function(){return Tn.editor.update(null,Bn,Fn)},Ln)});var On=this.clipboard.convert(`
`+xn+"


");this.setContents(On),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return ie(An,[{key:"addContainer",value:function(Cn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof Cn=="string"){var Nn=Cn;Cn=document.createElement("div"),Cn.classList.add(Nn)}return this.container.insertBefore(Cn,Tn),Cn}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(Cn,Tn,Nn){var xn=this,On=En(Cn,Tn,Nn),Ln=re(On,4);return Cn=Ln[0],Tn=Ln[1],Nn=Ln[3],_n.call(this,function(){return xn.editor.deleteText(Cn,Tn)},Nn,Cn,-1*Tn)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(Cn),this.container.classList.toggle("ql-disabled",!Cn)}},{key:"focus",value:function(){var Cn=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=Cn,this.scrollIntoView()}},{key:"format",value:function(Cn,Tn){var Nn=this,xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe.default.sources.API;return _n.call(this,function(){var On=Nn.getSelection(!0),Ln=new he.default;if(On==null)return Ln;if(Ie.default.query(Cn,Ie.default.Scope.BLOCK))Ln=Nn.editor.formatLine(On.index,On.length,Pt({},Cn,Tn));else{if(On.length===0)return Nn.selection.format(Cn,Tn),Ln;Ln=Nn.editor.formatText(On.index,On.length,Pt({},Cn,Tn))}return Nn.setSelection(On,pe.default.sources.SILENT),Ln},xn)}},{key:"formatLine",value:function(Cn,Tn,Nn,xn,On){var Ln=this,Bn=void 0,Vn=En(Cn,Tn,Nn,xn,On),Fn=re(Vn,4);return Cn=Fn[0],Tn=Fn[1],Bn=Fn[2],On=Fn[3],_n.call(this,function(){return Ln.editor.formatLine(Cn,Tn,Bn)},On,Cn,0)}},{key:"formatText",value:function(Cn,Tn,Nn,xn,On){var Ln=this,Bn=void 0,Vn=En(Cn,Tn,Nn,xn,On),Fn=re(Vn,4);return Cn=Fn[0],Tn=Fn[1],Bn=Fn[2],On=Fn[3],_n.call(this,function(){return Ln.editor.formatText(Cn,Tn,Bn)},On,Cn,0)}},{key:"getBounds",value:function(Cn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Nn=void 0;typeof Cn=="number"?Nn=this.selection.getBounds(Cn,Tn):Nn=this.selection.getBounds(Cn.index,Cn.length);var xn=this.container.getBoundingClientRect();return{bottom:Nn.bottom-xn.top,height:Nn.height,left:Nn.left-xn.left,right:Nn.right-xn.left,top:Nn.top-xn.top,width:Nn.width}}},{key:"getContents",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Cn,Nn=En(Cn,Tn),xn=re(Nn,2);return Cn=xn[0],Tn=xn[1],this.editor.getContents(Cn,Tn)}},{key:"getFormat",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof Cn=="number"?this.editor.getFormat(Cn,Tn):this.editor.getFormat(Cn.index,Cn.length)}},{key:"getIndex",value:function(Cn){return Cn.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(Cn){return this.scroll.leaf(Cn)}},{key:"getLine",value:function(Cn){return this.scroll.line(Cn)}},{key:"getLines",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof Cn!="number"?this.scroll.lines(Cn.index,Cn.length):this.scroll.lines(Cn,Tn)}},{key:"getModule",value:function(Cn){return this.theme.modules[Cn]}},{key:"getSelection",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Cn&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Cn,Nn=En(Cn,Tn),xn=re(Nn,2);return Cn=xn[0],Tn=xn[1],this.editor.getText(Cn,Tn)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(Cn,Tn,Nn){var xn=this,On=arguments.length>3&&arguments[3]!==void 0?arguments[3]:An.sources.API;return _n.call(this,function(){return xn.editor.insertEmbed(Cn,Tn,Nn)},On,Cn)}},{key:"insertText",value:function(Cn,Tn,Nn,xn,On){var Ln=this,Bn=void 0,Vn=En(Cn,0,Nn,xn,On),Fn=re(Vn,4);return Cn=Fn[0],Bn=Fn[2],On=Fn[3],_n.call(this,function(){return Ln.editor.insertText(Cn,Tn,Bn)},On,Cn,Tn.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(Cn,Tn,Nn){this.clipboard.dangerouslyPasteHTML(Cn,Tn,Nn)}},{key:"removeFormat",value:function(Cn,Tn,Nn){var xn=this,On=En(Cn,Tn,Nn),Ln=re(On,4);return Cn=Ln[0],Tn=Ln[1],Nn=Ln[3],_n.call(this,function(){return xn.editor.removeFormat(Cn,Tn)},Nn,Cn)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(Cn){var Tn=this,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe.default.sources.API;return _n.call(this,function(){Cn=new he.default(Cn);var xn=Tn.getLength(),On=Tn.editor.deleteText(0,xn),Ln=Tn.editor.applyDelta(Cn),Bn=Ln.ops[Ln.ops.length-1];Bn!=null&&typeof Bn.insert=="string"&&Bn.insert[Bn.insert.length-1]===` -`&&(Tn.editor.deleteText(Tn.getLength()-1,1),Ln.delete(1));var Vn=On.compose(Ln);return Vn},Nn)}},{key:"setSelection",value:function(Cn,Tn,Nn){if(Cn==null)this.selection.setRange(null,Tn||An.sources.API);else{var xn=En(Cn,Tn,Nn),On=re(xn,4);Cn=On[0],Tn=On[1],Nn=On[3],this.selection.setRange(new ze.Range(Cn,Tn),Nn),Nn!==pe.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(Cn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe.default.sources.API,Nn=new he.default().insert(Cn);return this.setContents(Nn,Tn)}},{key:"update",value:function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pe.default.sources.USER,Tn=this.scroll.update(Cn);return this.selection.update(Cn),Tn}},{key:"updateContents",value:function(Cn){var Tn=this,Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe.default.sources.API;return _n.call(this,function(){return Cn=new he.default(Cn),Tn.editor.applyDelta(Cn,Nn)},Nn,!0)}}]),An}();$n.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$n.events=pe.default.events,$n.sources=pe.default.sources,$n.version="1.3.7",$n.imports={delta:he.default,parchment:Ie.default,"core/module":_e.default,"core/theme":Lt.default};function wn(An,Cn){if(Cn=(0,Oe.default)(!0,{container:An,modules:{clipboard:!0,keyboard:!0,history:!0}},Cn),!Cn.theme||Cn.theme===$n.DEFAULTS.theme)Cn.theme=Lt.default;else if(Cn.theme=$n.import("themes/"+Cn.theme),Cn.theme==null)throw new Error("Invalid theme "+Cn.theme+". Did you register it?");var Tn=(0,Oe.default)(!0,{},Cn.theme.DEFAULTS);[Tn,Cn].forEach(function(On){On.modules=On.modules||{},Object.keys(On.modules).forEach(function(Ln){On.modules[Ln]===!0&&(On.modules[Ln]={})})});var Nn=Object.keys(Tn.modules).concat(Object.keys(Cn.modules)),xn=Nn.reduce(function(On,Ln){var Bn=$n.import("modules/"+Ln);return Bn==null?vn.error("Cannot load "+Ln+" module. Are you sure you registered it?"):On[Ln]=Bn.DEFAULTS||{},On},{});return Cn.modules!=null&&Cn.modules.toolbar&&Cn.modules.toolbar.constructor!==Object&&(Cn.modules.toolbar={container:Cn.modules.toolbar}),Cn=(0,Oe.default)(!0,{},$n.DEFAULTS,{modules:xn},Tn,Cn),["bounds","container","scrollingContainer"].forEach(function(On){typeof Cn[On]=="string"&&(Cn[On]=document.querySelector(Cn[On]))}),Cn.modules=Object.keys(Cn.modules).reduce(function(On,Ln){return Cn.modules[Ln]&&(On[Ln]=Cn.modules[Ln]),On},{}),Cn}function _n(An,Cn,Tn,Nn){if(this.options.strict&&!this.isEnabled()&&Cn===pe.default.sources.USER)return new he.default;var xn=Tn==null?null:this.getSelection(),On=this.editor.delta,Ln=An();if(xn!=null&&(Tn===!0&&(Tn=xn.index),Nn==null?xn=Sn(xn,Ln,Cn):Nn!==0&&(xn=Sn(xn,Tn,Nn,Cn)),this.setSelection(xn,pe.default.sources.SILENT)),Ln.length()>0){var Bn,Vn=[pe.default.events.TEXT_CHANGE,Ln,On,Cn];if((Bn=this.emitter).emit.apply(Bn,[pe.default.events.EDITOR_CHANGE].concat(Vn)),Cn!==pe.default.sources.SILENT){var Fn;(Fn=this.emitter).emit.apply(Fn,Vn)}}return Ln}function En(An,Cn,Tn,Nn,xn){var On={};return typeof An.index=="number"&&typeof An.length=="number"?typeof Cn!="number"?(xn=Nn,Nn=Tn,Tn=Cn,Cn=An.length,An=An.index):(Cn=An.length,An=An.index):typeof Cn!="number"&&(xn=Nn,Nn=Tn,Tn=Cn,Cn=0),(typeof Tn=="undefined"?"undefined":oe(Tn))==="object"?(On=Tn,xn=Nn):typeof Tn=="string"&&(Nn!=null?On[Tn]=Nn:xn=Tn),xn=xn||pe.default.sources.API,[An,Cn,On,xn]}function Sn(An,Cn,Tn,Nn){if(An==null)return null;var xn=void 0,On=void 0;if(Cn instanceof he.default){var Ln=[An.index,An.index+An.length].map(function(zn){return Cn.transformPosition(zn,Nn!==pe.default.sources.USER)}),Bn=re(Ln,2);xn=Bn[0],On=Bn[1]}else{var Vn=[An.index,An.index+An.length].map(function(zn){return zn=0?zn+Tn:Math.max(Cn,zn+Tn)}),Fn=re(Vn,2);xn=Fn[0],On=Fn[1]}return new ze.Range(xn,On-xn)}z.expandConfig=wn,z.overload=En,z.default=$n},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function Ce(Ie,ze){for(var Et=0;Et0){var Et=this.parent.isolate(this.offset(),this.length());this.moveChildren(Et),Et.wrap(this)}}}],[{key:"compare",value:function(ze,Et){var qe=Ie.order.indexOf(ze),Oe=Ie.order.indexOf(Et);return qe>=0||Oe>=0?qe-Oe:ze===Et?0:ze1?Oe-1:0),Dt=1;Dt1&&arguments[1]!==void 0?arguments[1]:{};oe(this,ie),this.quill=ae,this.options=he};re.DEFAULTS={},z.default=re},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=["error","warn","log","info"],re="warn";function ie(he){if(oe.indexOf(he)<=oe.indexOf(re)){for(var le,ue=arguments.length,de=Array(ue>1?ue-1:0),pe=1;pe0&&typeof de[0]!="number")}function ue(de,pe,$e){var _e,Ce;if(he(de)||he(pe)||de.prototype!==pe.prototype)return!1;if(ie(de))return ie(pe)?(de=oe.call(de),pe=oe.call(pe),ae(de,pe,$e)):!1;if(le(de)){if(!le(pe)||de.length!==pe.length)return!1;for(_e=0;_e=0;_e--)if(Ie[_e]!=ze[_e])return!1;for(_e=Ie.length-1;_e>=0;_e--)if(Ce=Ie[_e],!ae(de[Ce],pe[Ce],$e))return!1;return typeof de==typeof pe}},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(1),re=function(){function ie(ae,he,le){le===void 0&&(le={}),this.attrName=ae,this.keyName=he;var ue=oe.Scope.TYPE&oe.Scope.ATTRIBUTE;le.scope!=null?this.scope=le.scope&oe.Scope.LEVEL|ue:this.scope=oe.Scope.ATTRIBUTE,le.whitelist!=null&&(this.whitelist=le.whitelist)}return ie.keys=function(ae){return[].map.call(ae.attributes,function(he){return he.name})},ie.prototype.add=function(ae,he){return this.canAdd(ae,he)?(ae.setAttribute(this.keyName,he),!0):!1},ie.prototype.canAdd=function(ae,he){var le=oe.query(ae,oe.Scope.BLOT&(this.scope|oe.Scope.TYPE));return le==null?!1:this.whitelist==null?!0:typeof he=="string"?this.whitelist.indexOf(he.replace(/["']/g,""))>-1:this.whitelist.indexOf(he)>-1},ie.prototype.remove=function(ae){ae.removeAttribute(this.keyName)},ie.prototype.value=function(ae){var he=ae.getAttribute(this.keyName);return this.canAdd(ae,he)&&he?he:""},ie}();z.default=re},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var oe=function(){function At(Lt,kt){var Pt=[],jt=!0,vn=!1,$n=void 0;try{for(var wn=Lt[Symbol.iterator](),_n;!(jt=(_n=wn.next()).done)&&(Pt.push(_n.value),!(kt&&Pt.length===kt));jt=!0);}catch(En){vn=!0,$n=En}finally{try{!jt&&wn.return&&wn.return()}finally{if(vn)throw $n}}return Pt}return function(Lt,kt){if(Array.isArray(Lt))return Lt;if(Symbol.iterator in Object(Lt))return At(Lt,kt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),re=function(){function At(Lt,kt){for(var Pt=0;Pt=kt+Pt)){var wn=this.newlineIndex(kt,!0)+1,_n=$n-wn+1,En=this.isolate(wn,_n),Sn=En.next;En.format(jt,vn),Sn instanceof Lt&&Sn.formatAt(0,kt-wn+Pt-_n,jt,vn)}}}},{key:"insertAt",value:function(kt,Pt,jt){if(jt==null){var vn=this.descendant(Ie.default,kt),$n=oe(vn,2),wn=$n[0],_n=$n[1];wn.insertAt(_n,Pt)}}},{key:"length",value:function(){var kt=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` -`)?kt:kt+1}},{key:"newlineIndex",value:function(kt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Pt)return this.domNode.textContent.slice(0,kt).lastIndexOf(` -`);var jt=this.domNode.textContent.slice(kt).indexOf(` -`);return jt>-1?kt+jt:-1}},{key:"optimize",value:function(kt){this.domNode.textContent.endsWith(` -`)||this.appendChild(ue.default.create("text",` -`)),ie(Lt.prototype.__proto__||Object.getPrototypeOf(Lt.prototype),"optimize",this).call(this,kt);var Pt=this.next;Pt!=null&&Pt.prev===this&&Pt.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===Pt.statics.formats(Pt.domNode)&&(Pt.optimize(kt),Pt.moveChildren(this),Pt.remove())}},{key:"replace",value:function(kt){ie(Lt.prototype.__proto__||Object.getPrototypeOf(Lt.prototype),"replace",this).call(this,kt),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(Pt){var jt=ue.default.find(Pt);jt==null?Pt.parentNode.removeChild(Pt):jt instanceof ue.default.Embed?jt.remove():jt.unwrap()})}}],[{key:"create",value:function(kt){var Pt=ie(Lt.__proto__||Object.getPrototypeOf(Lt),"create",this).call(this,kt);return Pt.setAttribute("spellcheck",!1),Pt}},{key:"formats",value:function(){return!0}}]),Lt}(pe.default);Dt.blotName="code-block",Dt.tagName="PRE",Dt.TAB=" ",z.Code=Ue,z.default=Dt},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(An){return typeof An}:function(An){return An&&typeof Symbol=="function"&&An.constructor===Symbol&&An!==Symbol.prototype?"symbol":typeof An},re=function(){function An(Cn,Tn){var Nn=[],xn=!0,On=!1,Ln=void 0;try{for(var Bn=Cn[Symbol.iterator](),Vn;!(xn=(Vn=Bn.next()).done)&&(Nn.push(Vn.value),!(Tn&&Nn.length===Tn));xn=!0);}catch(Fn){On=!0,Ln=Fn}finally{try{!xn&&Bn.return&&Bn.return()}finally{if(On)throw Ln}}return Nn}return function(Cn,Tn){if(Array.isArray(Cn))return Cn;if(Symbol.iterator in Object(Cn))return An(Cn,Tn);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ie=function(){function An(Cn,Tn){for(var Nn=0;Nn=xn&&!Fn.endsWith(` -`)&&(Nn=!0),Tn.scroll.insertAt(On,Fn);var zn=Tn.scroll.line(On),Xn=re(zn,2),Pn=Xn[0],Hn=Xn[1],eo=(0,Pt.default)({},(0,ze.bubbleFormats)(Pn));if(Pn instanceof Et.default){var Qn=Pn.descendant(pe.default.Leaf,Hn),ao=re(Qn,1),ho=ao[0];eo=(0,Pt.default)(eo,(0,ze.bubbleFormats)(ho))}Vn=ue.default.attributes.diff(eo,Vn)||{}}else if(oe(Ln.insert)==="object"){var uo=Object.keys(Ln.insert)[0];if(uo==null)return On;Tn.scroll.insertAt(On,uo,Ln.insert[uo])}xn+=Bn}return Object.keys(Vn).forEach(function(Un){Tn.scroll.formatAt(On,Bn,Un,Vn[Un])}),On+Bn},0),Cn.reduce(function(On,Ln){return typeof Ln.delete=="number"?(Tn.scroll.deleteAt(On,Ln.delete),On):On+(Ln.retain||Ln.insert.length||1)},0),this.scroll.batchEnd(),this.update(Cn)}},{key:"deleteText",value:function(Cn,Tn){return this.scroll.deleteAt(Cn,Tn),this.update(new he.default().retain(Cn).delete(Tn))}},{key:"formatLine",value:function(Cn,Tn){var Nn=this,xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(xn).forEach(function(On){if(!(Nn.scroll.whitelist!=null&&!Nn.scroll.whitelist[On])){var Ln=Nn.scroll.lines(Cn,Math.max(Tn,1)),Bn=Tn;Ln.forEach(function(Vn){var Fn=Vn.length();if(!(Vn instanceof _e.default))Vn.format(On,xn[On]);else{var zn=Cn-Vn.offset(Nn.scroll),Xn=Vn.newlineIndex(zn+Bn)-zn+1;Vn.formatAt(zn,Xn,On,xn[On])}Bn-=Fn})}}),this.scroll.optimize(),this.update(new he.default().retain(Cn).retain(Tn,(0,Dt.default)(xn)))}},{key:"formatText",value:function(Cn,Tn){var Nn=this,xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(xn).forEach(function(On){Nn.scroll.formatAt(Cn,Tn,On,xn[On])}),this.update(new he.default().retain(Cn).retain(Tn,(0,Dt.default)(xn)))}},{key:"getContents",value:function(Cn,Tn){return this.delta.slice(Cn,Cn+Tn)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(Cn,Tn){return Cn.concat(Tn.delta())},new he.default)}},{key:"getFormat",value:function(Cn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Nn=[],xn=[];Tn===0?this.scroll.path(Cn).forEach(function(Ln){var Bn=re(Ln,1),Vn=Bn[0];Vn instanceof Et.default?Nn.push(Vn):Vn instanceof pe.default.Leaf&&xn.push(Vn)}):(Nn=this.scroll.lines(Cn,Tn),xn=this.scroll.descendants(pe.default.Leaf,Cn,Tn));var On=[Nn,xn].map(function(Ln){if(Ln.length===0)return{};for(var Bn=(0,ze.bubbleFormats)(Ln.shift());Object.keys(Bn).length>0;){var Vn=Ln.shift();if(Vn==null)return Bn;Bn=En((0,ze.bubbleFormats)(Vn),Bn)}return Bn});return Pt.default.apply(Pt.default,On)}},{key:"getText",value:function(Cn,Tn){return this.getContents(Cn,Tn).filter(function(Nn){return typeof Nn.insert=="string"}).map(function(Nn){return Nn.insert}).join("")}},{key:"insertEmbed",value:function(Cn,Tn,Nn){return this.scroll.insertAt(Cn,Tn,Nn),this.update(new he.default().retain(Cn).insert(vn({},Tn,Nn)))}},{key:"insertText",value:function(Cn,Tn){var Nn=this,xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Tn=Tn.replace(/\r\n/g,` -`).replace(/\r/g,` -`),this.scroll.insertAt(Cn,Tn),Object.keys(xn).forEach(function(On){Nn.scroll.formatAt(Cn,Tn.length,On,xn[On])}),this.update(new he.default().retain(Cn).insert(Tn,(0,Dt.default)(xn)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var Cn=this.scroll.children.head;return Cn.statics.blotName!==Et.default.blotName||Cn.children.length>1?!1:Cn.children.head instanceof Oe.default}},{key:"removeFormat",value:function(Cn,Tn){var Nn=this.getText(Cn,Tn),xn=this.scroll.line(Cn+Tn),On=re(xn,2),Ln=On[0],Bn=On[1],Vn=0,Fn=new he.default;Ln!=null&&(Ln instanceof _e.default?Vn=Ln.newlineIndex(Bn)-Bn+1:Vn=Ln.length()-Bn,Fn=Ln.delta().slice(Bn,Bn+Vn-1).insert(` -`));var zn=this.getContents(Cn,Tn+Vn),Xn=zn.diff(new he.default().insert(Nn).concat(Fn)),Pn=new he.default().retain(Cn).concat(Xn);return this.applyDelta(Pn)}},{key:"update",value:function(Cn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,xn=this.delta;if(Tn.length===1&&Tn[0].type==="characterData"&&Tn[0].target.data.match(wn)&&pe.default.find(Tn[0].target)){var On=pe.default.find(Tn[0].target),Ln=(0,ze.bubbleFormats)(On),Bn=On.offset(this.scroll),Vn=Tn[0].oldValue.replace(Ie.default.CONTENTS,""),Fn=new he.default().insert(Vn),zn=new he.default().insert(On.value()),Xn=new he.default().retain(Bn).concat(Fn.diff(zn,Nn));Cn=Xn.reduce(function(Pn,Hn){return Hn.insert?Pn.insert(Hn.insert,Ln):Pn.push(Hn)},new he.default),this.delta=xn.compose(Cn)}else this.delta=this.getDelta(),(!Cn||!(0,Lt.default)(xn.compose(Cn),this.delta))&&(Cn=xn.diff(this.delta,Nn));return Cn}}]),An}();function En(An,Cn){return Object.keys(Cn).reduce(function(Tn,Nn){return An[Nn]==null||(Cn[Nn]===An[Nn]?Tn[Nn]=Cn[Nn]:Array.isArray(Cn[Nn])?Cn[Nn].indexOf(An[Nn])<0&&(Tn[Nn]=Cn[Nn].concat([An[Nn]])):Tn[Nn]=[Cn[Nn],An[Nn]]),Tn},{})}function Sn(An){return An.reduce(function(Cn,Tn){if(Tn.insert===1){var Nn=(0,Dt.default)(Tn.attributes);return delete Nn.image,Cn.insert({image:Tn.attributes.image},Nn)}if(Tn.attributes!=null&&(Tn.attributes.list===!0||Tn.attributes.bullet===!0)&&(Tn=(0,Dt.default)(Tn),Tn.attributes.list?Tn.attributes.list="ordered":(Tn.attributes.list="bullet",delete Tn.attributes.bullet)),typeof Tn.insert=="string"){var xn=Tn.insert.replace(/\r\n/g,` -`).replace(/\r/g,` -`);return Cn.insert(xn,Tn.attributes)}return Cn.push(Tn)},new he.default)}z.default=_n},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var oe=function(){function At(Lt,kt){var Pt=[],jt=!0,vn=!1,$n=void 0;try{for(var wn=Lt[Symbol.iterator](),_n;!(jt=(_n=wn.next()).done)&&(Pt.push(_n.value),!(kt&&Pt.length===kt));jt=!0);}catch(En){vn=!0,$n=En}finally{try{!jt&&wn.return&&wn.return()}finally{if(vn)throw $n}}return Pt}return function(Lt,kt){if(Array.isArray(Lt))return Lt;if(Symbol.iterator in Object(Lt))return At(Lt,kt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),re=function(){function At(Lt,kt){for(var Pt=0;Pt1&&arguments[1]!==void 0?arguments[1]:0;Et(this,At),this.index=Lt,this.length=kt},Ue=function(){function At(Lt,kt){var Pt=this;Et(this,At),this.emitter=kt,this.scroll=Lt,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=ae.default.create("cursor",this),this.lastRange=this.savedRange=new Oe(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){Pt.mouseDown||setTimeout(Pt.update.bind(Pt,$e.default.sources.USER),1)}),this.emitter.on($e.default.events.EDITOR_CHANGE,function(jt,vn){jt===$e.default.events.TEXT_CHANGE&&vn.length()>0&&Pt.update($e.default.sources.SILENT)}),this.emitter.on($e.default.events.SCROLL_BEFORE_UPDATE,function(){if(Pt.hasFocus()){var jt=Pt.getNativeRange();jt!=null&&jt.start.node!==Pt.cursor.textNode&&Pt.emitter.once($e.default.events.SCROLL_UPDATE,function(){try{Pt.setNativeRange(jt.start.node,jt.start.offset,jt.end.node,jt.end.offset)}catch{}})}}),this.emitter.on($e.default.events.SCROLL_OPTIMIZE,function(jt,vn){if(vn.range){var $n=vn.range,wn=$n.startNode,_n=$n.startOffset,En=$n.endNode,Sn=$n.endOffset;Pt.setNativeRange(wn,_n,En,Sn)}}),this.update($e.default.sources.SILENT)}return re(At,[{key:"handleComposition",value:function(){var Lt=this;this.root.addEventListener("compositionstart",function(){Lt.composing=!0}),this.root.addEventListener("compositionend",function(){if(Lt.composing=!1,Lt.cursor.parent){var kt=Lt.cursor.restore();if(!kt)return;setTimeout(function(){Lt.setNativeRange(kt.startNode,kt.startOffset,kt.endNode,kt.endOffset)},1)}})}},{key:"handleDragging",value:function(){var Lt=this;this.emitter.listenDOM("mousedown",document.body,function(){Lt.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){Lt.mouseDown=!1,Lt.update($e.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Lt,kt){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[Lt])){this.scroll.update();var Pt=this.getNativeRange();if(!(Pt==null||!Pt.native.collapsed||ae.default.query(Lt,ae.default.Scope.BLOCK))){if(Pt.start.node!==this.cursor.textNode){var jt=ae.default.find(Pt.start.node,!1);if(jt==null)return;if(jt instanceof ae.default.Leaf){var vn=jt.split(Pt.start.offset);jt.parent.insertBefore(this.cursor,vn)}else jt.insertBefore(this.cursor,Pt.start.node);this.cursor.attach()}this.cursor.format(Lt,kt),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Lt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Pt=this.scroll.length();Lt=Math.min(Lt,Pt-1),kt=Math.min(Lt+kt,Pt-1)-Lt;var jt=void 0,vn=this.scroll.leaf(Lt),$n=oe(vn,2),wn=$n[0],_n=$n[1];if(wn==null)return null;var En=wn.position(_n,!0),Sn=oe(En,2);jt=Sn[0],_n=Sn[1];var An=document.createRange();if(kt>0){An.setStart(jt,_n);var Cn=this.scroll.leaf(Lt+kt),Tn=oe(Cn,2);if(wn=Tn[0],_n=Tn[1],wn==null)return null;var Nn=wn.position(_n,!0),xn=oe(Nn,2);return jt=xn[0],_n=xn[1],An.setEnd(jt,_n),An.getBoundingClientRect()}else{var On="left",Ln=void 0;return jt instanceof Text?(_n0&&(On="right")),{bottom:Ln.top+Ln.height,height:Ln.height,left:Ln[On],right:Ln[On],top:Ln.top,width:0}}}},{key:"getNativeRange",value:function(){var Lt=document.getSelection();if(Lt==null||Lt.rangeCount<=0)return null;var kt=Lt.getRangeAt(0);if(kt==null)return null;var Pt=this.normalizeNative(kt);return qe.info("getNativeRange",Pt),Pt}},{key:"getRange",value:function(){var Lt=this.getNativeRange();if(Lt==null)return[null,null];var kt=this.normalizedToRange(Lt);return[kt,Lt]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(Lt){var kt=this,Pt=[[Lt.start.node,Lt.start.offset]];Lt.native.collapsed||Pt.push([Lt.end.node,Lt.end.offset]);var jt=Pt.map(function(wn){var _n=oe(wn,2),En=_n[0],Sn=_n[1],An=ae.default.find(En,!0),Cn=An.offset(kt.scroll);return Sn===0?Cn:An instanceof ae.default.Container?Cn+An.length():Cn+An.index(En,Sn)}),vn=Math.min(Math.max.apply(Math,ze(jt)),this.scroll.length()-1),$n=Math.min.apply(Math,[vn].concat(ze(jt)));return new Oe($n,vn-$n)}},{key:"normalizeNative",value:function(Lt){if(!Dt(this.root,Lt.startContainer)||!Lt.collapsed&&!Dt(this.root,Lt.endContainer))return null;var kt={start:{node:Lt.startContainer,offset:Lt.startOffset},end:{node:Lt.endContainer,offset:Lt.endOffset},native:Lt};return[kt.start,kt.end].forEach(function(Pt){for(var jt=Pt.node,vn=Pt.offset;!(jt instanceof Text)&&jt.childNodes.length>0;)if(jt.childNodes.length>vn)jt=jt.childNodes[vn],vn=0;else if(jt.childNodes.length===vn)jt=jt.lastChild,vn=jt instanceof Text?jt.data.length:jt.childNodes.length+1;else break;Pt.node=jt,Pt.offset=vn}),kt}},{key:"rangeToNative",value:function(Lt){var kt=this,Pt=Lt.collapsed?[Lt.index]:[Lt.index,Lt.index+Lt.length],jt=[],vn=this.scroll.length();return Pt.forEach(function($n,wn){$n=Math.min(vn-1,$n);var _n=void 0,En=kt.scroll.leaf($n),Sn=oe(En,2),An=Sn[0],Cn=Sn[1],Tn=An.position(Cn,wn!==0),Nn=oe(Tn,2);_n=Nn[0],Cn=Nn[1],jt.push(_n,Cn)}),jt.length<2&&(jt=jt.concat(jt)),jt}},{key:"scrollIntoView",value:function(Lt){var kt=this.lastRange;if(kt!=null){var Pt=this.getBounds(kt.index,kt.length);if(Pt!=null){var jt=this.scroll.length()-1,vn=this.scroll.line(Math.min(kt.index,jt)),$n=oe(vn,1),wn=$n[0],_n=wn;if(kt.length>0){var En=this.scroll.line(Math.min(kt.index+kt.length,jt)),Sn=oe(En,1);_n=Sn[0]}if(!(wn==null||_n==null)){var An=Lt.getBoundingClientRect();Pt.topAn.bottom&&(Lt.scrollTop+=Pt.bottom-An.bottom)}}}}},{key:"setNativeRange",value:function(Lt,kt){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Lt,jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:kt,vn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(qe.info("setNativeRange",Lt,kt,Pt,jt),!(Lt!=null&&(this.root.parentNode==null||Lt.parentNode==null||Pt.parentNode==null))){var $n=document.getSelection();if($n!=null)if(Lt!=null){this.hasFocus()||this.root.focus();var wn=(this.getNativeRange()||{}).native;if(wn==null||vn||Lt!==wn.startContainer||kt!==wn.startOffset||Pt!==wn.endContainer||jt!==wn.endOffset){Lt.tagName=="BR"&&(kt=[].indexOf.call(Lt.parentNode.childNodes,Lt),Lt=Lt.parentNode),Pt.tagName=="BR"&&(jt=[].indexOf.call(Pt.parentNode.childNodes,Pt),Pt=Pt.parentNode);var _n=document.createRange();_n.setStart(Lt,kt),_n.setEnd(Pt,jt),$n.removeAllRanges(),$n.addRange(_n)}}else $n.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Lt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e.default.sources.API;if(typeof kt=="string"&&(Pt=kt,kt=!1),qe.info("setRange",Lt),Lt!=null){var jt=this.rangeToNative(Lt);this.setNativeRange.apply(this,ze(jt).concat([kt]))}else this.setNativeRange(null);this.update(Pt)}},{key:"update",value:function(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e.default.sources.USER,kt=this.lastRange,Pt=this.getRange(),jt=oe(Pt,2),vn=jt[0],$n=jt[1];if(this.lastRange=vn,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,de.default)(kt,this.lastRange)){var wn;!this.composing&&$n!=null&&$n.native.collapsed&&$n.start.node!==this.cursor.textNode&&this.cursor.restore();var _n=[$e.default.events.SELECTION_CHANGE,(0,le.default)(this.lastRange),(0,le.default)(kt),Lt];if((wn=this.emitter).emit.apply(wn,[$e.default.events.EDITOR_CHANGE].concat(_n)),Lt!==$e.default.sources.SILENT){var En;(En=this.emitter).emit.apply(En,_n)}}}}]),At}();function Dt(At,Lt){try{Lt.parentNode}catch{return!1}return Lt instanceof Text&&(Lt=Lt.parentNode),At.contains(Lt)}z.Range=Oe,z.default=Ue},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function $e(_e,Ce){for(var Ie=0;Ie0&&(pe+=1),[this.parent.domNode,pe]},le.prototype.value=function(){var ue;return ue={},ue[this.statics.blotName]=this.statics.value(this.domNode)||!0,ue},le.scope=ie.Scope.INLINE_BLOT,le}(re.default);z.default=ae},function(V,z,j){var oe=j(11),re=j(3),ie={attributes:{compose:function(he,le,ue){typeof he!="object"&&(he={}),typeof le!="object"&&(le={});var de=re(!0,{},le);ue||(de=Object.keys(de).reduce(function($e,_e){return de[_e]!=null&&($e[_e]=de[_e]),$e},{}));for(var pe in he)he[pe]!==void 0&&le[pe]===void 0&&(de[pe]=he[pe]);return Object.keys(de).length>0?de:void 0},diff:function(he,le){typeof he!="object"&&(he={}),typeof le!="object"&&(le={});var ue=Object.keys(he).concat(Object.keys(le)).reduce(function(de,pe){return oe(he[pe],le[pe])||(de[pe]=le[pe]===void 0?null:le[pe]),de},{});return Object.keys(ue).length>0?ue:void 0},transform:function(he,le,ue){if(typeof he!="object")return le;if(typeof le=="object"){if(!ue)return le;var de=Object.keys(le).reduce(function(pe,$e){return he[$e]===void 0&&(pe[$e]=le[$e]),pe},{});return Object.keys(de).length>0?de:void 0}}},iterator:function(he){return new ae(he)},length:function(he){return typeof he.delete=="number"?he.delete:typeof he.retain=="number"?he.retain:typeof he.insert=="string"?he.insert.length:1}};function ae(he){this.ops=he,this.index=0,this.offset=0}ae.prototype.hasNext=function(){return this.peekLength()<1/0},ae.prototype.next=function(he){he||(he=1/0);var le=this.ops[this.index];if(le){var ue=this.offset,de=ie.length(le);if(he>=de-ue?(he=de-ue,this.index+=1,this.offset=0):this.offset+=he,typeof le.delete=="number")return{delete:he};var pe={};return le.attributes&&(pe.attributes=le.attributes),typeof le.retain=="number"?pe.retain=he:typeof le.insert=="string"?pe.insert=le.insert.substr(ue,he):pe.insert=le.insert,pe}else return{retain:1/0}},ae.prototype.peek=function(){return this.ops[this.index]},ae.prototype.peekLength=function(){return this.ops[this.index]?ie.length(this.ops[this.index])-this.offset:1/0},ae.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},ae.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var he=this.offset,le=this.index,ue=this.next(),de=this.ops.slice(this.index);return this.offset=he,this.index=le,[ue].concat(de)}else return[]},V.exports=ie},function(V,z){var j=function(){function oe(_e,Ce){return Ce!=null&&_e instanceof Ce}var re;try{re=Map}catch{re=function(){}}var ie;try{ie=Set}catch{ie=function(){}}var ae;try{ae=Promise}catch{ae=function(){}}function he(_e,Ce,Ie,ze,Et){typeof Ce=="object"&&(Ie=Ce.depth,ze=Ce.prototype,Et=Ce.includeNonEnumerable,Ce=Ce.circular);var qe=[],Oe=[],Ue=typeof Buffer!="undefined";typeof Ce=="undefined"&&(Ce=!0),typeof Ie=="undefined"&&(Ie=1/0);function Dt(At,Lt){if(At===null)return null;if(Lt===0)return At;var kt,Pt;if(typeof At!="object")return At;if(oe(At,re))kt=new re;else if(oe(At,ie))kt=new ie;else if(oe(At,ae))kt=new ae(function(Cn,Tn){At.then(function(Nn){Cn(Dt(Nn,Lt-1))},function(Nn){Tn(Dt(Nn,Lt-1))})});else if(he.__isArray(At))kt=[];else if(he.__isRegExp(At))kt=new RegExp(At.source,$e(At)),At.lastIndex&&(kt.lastIndex=At.lastIndex);else if(he.__isDate(At))kt=new Date(At.getTime());else{if(Ue&&Buffer.isBuffer(At))return Buffer.allocUnsafe?kt=Buffer.allocUnsafe(At.length):kt=new Buffer(At.length),At.copy(kt),kt;oe(At,Error)?kt=Object.create(At):typeof ze=="undefined"?(Pt=Object.getPrototypeOf(At),kt=Object.create(Pt)):(kt=Object.create(ze),Pt=ze)}if(Ce){var jt=qe.indexOf(At);if(jt!=-1)return Oe[jt];qe.push(At),Oe.push(kt)}oe(At,re)&&At.forEach(function(Cn,Tn){var Nn=Dt(Tn,Lt-1),xn=Dt(Cn,Lt-1);kt.set(Nn,xn)}),oe(At,ie)&&At.forEach(function(Cn){var Tn=Dt(Cn,Lt-1);kt.add(Tn)});for(var vn in At){var $n;Pt&&($n=Object.getOwnPropertyDescriptor(Pt,vn)),!($n&&$n.set==null)&&(kt[vn]=Dt(At[vn],Lt-1))}if(Object.getOwnPropertySymbols)for(var wn=Object.getOwnPropertySymbols(At),vn=0;vn0){if(_n instanceof de.BlockEmbed||Cn instanceof de.BlockEmbed){this.optimize();return}if(_n instanceof Ie.default){var Tn=_n.newlineIndex(_n.length(),!0);if(Tn>-1&&(_n=_n.split(Tn+1),_n===Cn)){this.optimize();return}}else if(Cn instanceof Ie.default){var Nn=Cn.newlineIndex(0);Nn>-1&&Cn.split(Nn+1)}var xn=Cn.children.head instanceof _e.default?null:Cn.children.head;_n.moveChildren(Cn,xn),_n.remove()}this.optimize()}},{key:"enable",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",jt)}},{key:"formatAt",value:function(jt,vn,$n,wn){this.whitelist!=null&&!this.whitelist[$n]||(ie(Pt.prototype.__proto__||Object.getPrototypeOf(Pt.prototype),"formatAt",this).call(this,jt,vn,$n,wn),this.optimize())}},{key:"insertAt",value:function(jt,vn,$n){if(!($n!=null&&this.whitelist!=null&&!this.whitelist[vn])){if(jt>=this.length())if($n==null||he.default.query(vn,he.default.Scope.BLOCK)==null){var wn=he.default.create(this.statics.defaultChild);this.appendChild(wn),$n==null&&vn.endsWith(` -`)&&(vn=vn.slice(0,-1)),wn.insertAt(0,vn,$n)}else{var _n=he.default.create(vn,$n);this.appendChild(_n)}else ie(Pt.prototype.__proto__||Object.getPrototypeOf(Pt.prototype),"insertAt",this).call(this,jt,vn,$n);this.optimize()}}},{key:"insertBefore",value:function(jt,vn){if(jt.statics.scope===he.default.Scope.INLINE_BLOT){var $n=he.default.create(this.statics.defaultChild);$n.appendChild(jt),jt=$n}ie(Pt.prototype.__proto__||Object.getPrototypeOf(Pt.prototype),"insertBefore",this).call(this,jt,vn)}},{key:"leaf",value:function(jt){return this.path(jt).pop()||[null,-1]}},{key:"line",value:function(jt){return jt===this.length()?this.line(jt-1):this.descendant(At,jt)}},{key:"lines",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,$n=function wn(_n,En,Sn){var An=[],Cn=Sn;return _n.children.forEachAt(En,Sn,function(Tn,Nn,xn){At(Tn)?An.push(Tn):Tn instanceof he.default.Container&&(An=An.concat(wn(Tn,Nn,Cn))),Cn-=xn}),An};return $n(this,jt,vn)}},{key:"optimize",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(ie(Pt.prototype.__proto__||Object.getPrototypeOf(Pt.prototype),"optimize",this).call(this,jt,vn),jt.length>0&&this.emitter.emit(ue.default.events.SCROLL_OPTIMIZE,jt,vn))}},{key:"path",value:function(jt){return ie(Pt.prototype.__proto__||Object.getPrototypeOf(Pt.prototype),"path",this).call(this,jt).slice(1)}},{key:"update",value:function(jt){if(this.batch!==!0){var vn=ue.default.sources.USER;typeof jt=="string"&&(vn=jt),Array.isArray(jt)||(jt=this.observer.takeRecords()),jt.length>0&&this.emitter.emit(ue.default.events.SCROLL_BEFORE_UPDATE,vn,jt),ie(Pt.prototype.__proto__||Object.getPrototypeOf(Pt.prototype),"update",this).call(this,jt.concat([])),jt.length>0&&this.emitter.emit(ue.default.events.SCROLL_UPDATE,vn,jt)}}}]),Pt}(he.default.Scroll);Lt.blotName="scroll",Lt.className="ql-editor",Lt.tagName="DIV",Lt.defaultChild="block",Lt.allowedChildren=[pe.default,de.BlockEmbed,Et.default],z.default=Lt},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.SHORTKEY=z.default=void 0;var oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Bn){return typeof Bn}:function(Bn){return Bn&&typeof Symbol=="function"&&Bn.constructor===Symbol&&Bn!==Symbol.prototype?"symbol":typeof Bn},re=function(){function Bn(Vn,Fn){var zn=[],Xn=!0,Pn=!1,Hn=void 0;try{for(var eo=Vn[Symbol.iterator](),Qn;!(Xn=(Qn=eo.next()).done)&&(zn.push(Qn.value),!(Fn&&zn.length===Fn));Xn=!0);}catch(ao){Pn=!0,Hn=ao}finally{try{!Xn&&eo.return&&eo.return()}finally{if(Pn)throw Hn}}return zn}return function(Vn,Fn){if(Array.isArray(Vn))return Vn;if(Symbol.iterator in Object(Vn))return Bn(Vn,Fn);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ie=function(){function Bn(Vn,Fn){for(var zn=0;zn1&&arguments[1]!==void 0?arguments[1]:{},Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pn=Ln(Fn);if(Pn==null||Pn.key==null)return wn.warn("Attempted to add invalid keyboard binding",Pn);typeof zn=="function"&&(zn={handler:zn}),typeof Xn=="function"&&(Xn={handler:Xn}),Pn=(0,pe.default)(Pn,zn,Xn),this.bindings[Pn.key]=this.bindings[Pn.key]||[],this.bindings[Pn.key].push(Pn)}},{key:"listen",value:function(){var Fn=this;this.quill.root.addEventListener("keydown",function(zn){if(!zn.defaultPrevented){var Xn=zn.which||zn.keyCode,Pn=(Fn.bindings[Xn]||[]).filter(function(Dn){return Vn.match(zn,Dn)});if(Pn.length!==0){var Hn=Fn.quill.getSelection();if(!(Hn==null||!Fn.quill.hasFocus())){var eo=Fn.quill.getLine(Hn.index),Qn=re(eo,2),ao=Qn[0],ho=Qn[1],uo=Fn.quill.getLeaf(Hn.index),Un=re(uo,2),Zn=Un[0],no=Un[1],qn=Hn.length===0?[Zn,no]:Fn.quill.getLeaf(Hn.index+Hn.length),In=re(qn,2),jn=In[0],Kn=In[1],so=Zn instanceof Et.default.Text?Zn.value().slice(0,no):"",ro=jn instanceof Et.default.Text?jn.value().slice(Kn):"",vo={collapsed:Hn.length===0,empty:Hn.length===0&&ao.length()<=1,format:Fn.quill.getFormat(Hn),offset:ho,prefix:so,suffix:ro},go=Pn.some(function(Dn){if(Dn.collapsed!=null&&Dn.collapsed!==vo.collapsed||Dn.empty!=null&&Dn.empty!==vo.empty||Dn.offset!=null&&Dn.offset!==vo.offset)return!1;if(Array.isArray(Dn.format)){if(Dn.format.every(function(Yn){return vo.format[Yn]==null}))return!1}else if(oe(Dn.format)==="object"&&!Object.keys(Dn.format).every(function(Yn){return Dn.format[Yn]===!0?vo.format[Yn]!=null:Dn.format[Yn]===!1?vo.format[Yn]==null:(0,ue.default)(Dn.format[Yn],vo.format[Yn])}))return!1;return Dn.prefix!=null&&!Dn.prefix.test(vo.prefix)||Dn.suffix!=null&&!Dn.suffix.test(vo.suffix)?!1:Dn.handler.call(Fn,Hn,vo)!==!0});go&&zn.preventDefault()}}}})}}]),Vn}(Lt.default);En.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},En.DEFAULTS={bindings:{bold:On("bold"),italic:On("italic"),underline:On("underline"),indent:{key:En.keys.TAB,format:["blockquote","indent","list"],handler:function(Bn,Vn){if(Vn.collapsed&&Vn.offset!==0)return!0;this.quill.format("indent","+1",Oe.default.sources.USER)}},outdent:{key:En.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Bn,Vn){if(Vn.collapsed&&Vn.offset!==0)return!0;this.quill.format("indent","-1",Oe.default.sources.USER)}},"outdent backspace":{key:En.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Bn,Vn){Vn.format.indent!=null?this.quill.format("indent","-1",Oe.default.sources.USER):Vn.format.list!=null&&this.quill.format("list",!1,Oe.default.sources.USER)}},"indent code-block":xn(!0),"outdent code-block":xn(!1),"remove tab":{key:En.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Bn){this.quill.deleteText(Bn.index-1,1,Oe.default.sources.USER)}},tab:{key:En.keys.TAB,handler:function(Bn){this.quill.history.cutoff();var Vn=new _e.default().retain(Bn.index).delete(Bn.length).insert(" ");this.quill.updateContents(Vn,Oe.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Bn.index+1,Oe.default.sources.SILENT)}},"list empty enter":{key:En.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Bn,Vn){this.quill.format("list",!1,Oe.default.sources.USER),Vn.format.indent&&this.quill.format("indent",!1,Oe.default.sources.USER)}},"checklist enter":{key:En.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Bn){var Vn=this.quill.getLine(Bn.index),Fn=re(Vn,2),zn=Fn[0],Xn=Fn[1],Pn=(0,pe.default)({},zn.formats(),{list:"checked"}),Hn=new _e.default().retain(Bn.index).insert(` -`,Pn).retain(zn.length()-Xn-1).retain(1,{list:"unchecked"});this.quill.updateContents(Hn,Oe.default.sources.USER),this.quill.setSelection(Bn.index+1,Oe.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:En.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Bn,Vn){var Fn=this.quill.getLine(Bn.index),zn=re(Fn,2),Xn=zn[0],Pn=zn[1],Hn=new _e.default().retain(Bn.index).insert(` -`,Vn.format).retain(Xn.length()-Pn-1).retain(1,{header:null});this.quill.updateContents(Hn,Oe.default.sources.USER),this.quill.setSelection(Bn.index+1,Oe.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Bn,Vn){var Fn=Vn.prefix.length,zn=this.quill.getLine(Bn.index),Xn=re(zn,2),Pn=Xn[0],Hn=Xn[1];if(Hn>Fn)return!0;var eo=void 0;switch(Vn.prefix.trim()){case"[]":case"[ ]":eo="unchecked";break;case"[x]":eo="checked";break;case"-":case"*":eo="bullet";break;default:eo="ordered"}this.quill.insertText(Bn.index," ",Oe.default.sources.USER),this.quill.history.cutoff();var Qn=new _e.default().retain(Bn.index-Hn).delete(Fn+1).retain(Pn.length()-2-Hn).retain(1,{list:eo});this.quill.updateContents(Qn,Oe.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Bn.index-Fn,Oe.default.sources.SILENT)}},"code exit":{key:En.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Bn){var Vn=this.quill.getLine(Bn.index),Fn=re(Vn,2),zn=Fn[0],Xn=Fn[1],Pn=new _e.default().retain(Bn.index+zn.length()-Xn-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Pn,Oe.default.sources.USER)}},"embed left":Sn(En.keys.LEFT,!1),"embed left shift":Sn(En.keys.LEFT,!0),"embed right":Sn(En.keys.RIGHT,!1),"embed right shift":Sn(En.keys.RIGHT,!0)}};function Sn(Bn,Vn){var Fn,zn=Bn===En.keys.LEFT?"prefix":"suffix";return Fn={key:Bn,shiftKey:Vn,altKey:null},Pt(Fn,zn,/^$/),Pt(Fn,"handler",function(Xn){var Pn=Xn.index;Bn===En.keys.RIGHT&&(Pn+=Xn.length+1);var Hn=this.quill.getLeaf(Pn),eo=re(Hn,1),Qn=eo[0];return Qn instanceof Et.default.Embed?(Bn===En.keys.LEFT?Vn?this.quill.setSelection(Xn.index-1,Xn.length+1,Oe.default.sources.USER):this.quill.setSelection(Xn.index-1,Oe.default.sources.USER):Vn?this.quill.setSelection(Xn.index,Xn.length+1,Oe.default.sources.USER):this.quill.setSelection(Xn.index+Xn.length+1,Oe.default.sources.USER),!1):!0}),Fn}function An(Bn,Vn){if(!(Bn.index===0||this.quill.getLength()<=1)){var Fn=this.quill.getLine(Bn.index),zn=re(Fn,1),Xn=zn[0],Pn={};if(Vn.offset===0){var Hn=this.quill.getLine(Bn.index-1),eo=re(Hn,1),Qn=eo[0];if(Qn!=null&&Qn.length()>1){var ao=Xn.formats(),ho=this.quill.getFormat(Bn.index-1,1);Pn=Ie.default.attributes.diff(ao,ho)||{}}}var uo=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Vn.prefix)?2:1;this.quill.deleteText(Bn.index-uo,uo,Oe.default.sources.USER),Object.keys(Pn).length>0&&this.quill.formatLine(Bn.index-uo,uo,Pn,Oe.default.sources.USER),this.quill.focus()}}function Cn(Bn,Vn){var Fn=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Vn.suffix)?2:1;if(!(Bn.index>=this.quill.getLength()-Fn)){var zn={},Xn=0,Pn=this.quill.getLine(Bn.index),Hn=re(Pn,1),eo=Hn[0];if(Vn.offset>=eo.length()-1){var Qn=this.quill.getLine(Bn.index+1),ao=re(Qn,1),ho=ao[0];if(ho){var uo=eo.formats(),Un=this.quill.getFormat(Bn.index,1);zn=Ie.default.attributes.diff(uo,Un)||{},Xn=ho.length()}}this.quill.deleteText(Bn.index,Fn,Oe.default.sources.USER),Object.keys(zn).length>0&&this.quill.formatLine(Bn.index+Xn-1,Fn,zn,Oe.default.sources.USER)}}function Tn(Bn){var Vn=this.quill.getLines(Bn),Fn={};if(Vn.length>1){var zn=Vn[0].formats(),Xn=Vn[Vn.length-1].formats();Fn=Ie.default.attributes.diff(Xn,zn)||{}}this.quill.deleteText(Bn,Oe.default.sources.USER),Object.keys(Fn).length>0&&this.quill.formatLine(Bn.index,1,Fn,Oe.default.sources.USER),this.quill.setSelection(Bn.index,Oe.default.sources.SILENT),this.quill.focus()}function Nn(Bn,Vn){var Fn=this;Bn.length>0&&this.quill.scroll.deleteAt(Bn.index,Bn.length);var zn=Object.keys(Vn.format).reduce(function(Xn,Pn){return Et.default.query(Pn,Et.default.Scope.BLOCK)&&!Array.isArray(Vn.format[Pn])&&(Xn[Pn]=Vn.format[Pn]),Xn},{});this.quill.insertText(Bn.index,` -`,zn,Oe.default.sources.USER),this.quill.setSelection(Bn.index+1,Oe.default.sources.SILENT),this.quill.focus(),Object.keys(Vn.format).forEach(function(Xn){zn[Xn]==null&&(Array.isArray(Vn.format[Xn])||Xn!=="link"&&Fn.quill.format(Xn,Vn.format[Xn],Oe.default.sources.USER))})}function xn(Bn){return{key:En.keys.TAB,shiftKey:!Bn,format:{"code-block":!0},handler:function(Vn){var Fn=Et.default.query("code-block"),zn=Vn.index,Xn=Vn.length,Pn=this.quill.scroll.descendant(Fn,zn),Hn=re(Pn,2),eo=Hn[0],Qn=Hn[1];if(eo!=null){var ao=this.quill.getIndex(eo),ho=eo.newlineIndex(Qn,!0)+1,uo=eo.newlineIndex(ao+Qn+Xn),Un=eo.domNode.textContent.slice(ho,uo).split(` -`);Qn=0,Un.forEach(function(Zn,no){Bn?(eo.insertAt(ho+Qn,Fn.TAB),Qn+=Fn.TAB.length,no===0?zn+=Fn.TAB.length:Xn+=Fn.TAB.length):Zn.startsWith(Fn.TAB)&&(eo.deleteAt(ho+Qn,Fn.TAB.length),Qn-=Fn.TAB.length,no===0?zn-=Fn.TAB.length:Xn-=Fn.TAB.length),Qn+=Zn.length+1}),this.quill.update(Oe.default.sources.USER),this.quill.setSelection(zn,Xn,Oe.default.sources.SILENT)}}}}function On(Bn){return{key:Bn[0].toUpperCase(),shortKey:!0,handler:function(Vn,Fn){this.quill.format(Bn,!Fn.format[Bn],Oe.default.sources.USER)}}}function Ln(Bn){if(typeof Bn=="string"||typeof Bn=="number")return Ln({key:Bn});if((typeof Bn=="undefined"?"undefined":oe(Bn))==="object"&&(Bn=(0,he.default)(Bn,!1)),typeof Bn.key=="string")if(En.keys[Bn.key.toUpperCase()]!=null)Bn.key=En.keys[Bn.key.toUpperCase()];else if(Bn.key.length===1)Bn.key=Bn.key.toUpperCase().charCodeAt(0);else return null;return Bn.shortKey&&(Bn[_n]=Bn.shortKey,delete Bn.shortKey),Bn}z.default=En,z.SHORTKEY=_n},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function Ie(ze,Et){var qe=[],Oe=!0,Ue=!1,Dt=void 0;try{for(var At=ze[Symbol.iterator](),Lt;!(Oe=(Lt=At.next()).done)&&(qe.push(Lt.value),!(Et&&qe.length===Et));Oe=!0);}catch(kt){Ue=!0,Dt=kt}finally{try{!Oe&&At.return&&At.return()}finally{if(Ue)throw Dt}}return qe}return function(ze,Et){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return Ie(ze,Et);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),re=function Ie(ze,Et,qe){ze===null&&(ze=Function.prototype);var Oe=Object.getOwnPropertyDescriptor(ze,Et);if(Oe===void 0){var Ue=Object.getPrototypeOf(ze);return Ue===null?void 0:Ie(Ue,Et,qe)}else{if("value"in Oe)return Oe.value;var Dt=Oe.get;return Dt===void 0?void 0:Dt.call(qe)}},ie=function(){function Ie(ze,Et){for(var qe=0;qe-1}z.default=pe,z.sanitize=$e},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},re=function(){function Ce(Ie,ze){for(var Et=0;Et1&&arguments[1]!==void 0?arguments[1]:!1,Et=this.container.querySelector(".ql-selected");if(Ie!==Et&&(Et!=null&&Et.classList.remove("ql-selected"),Ie!=null&&(Ie.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(Ie.parentNode.children,Ie),Ie.hasAttribute("data-value")?this.label.setAttribute("data-value",Ie.getAttribute("data-value")):this.label.removeAttribute("data-value"),Ie.hasAttribute("data-label")?this.label.setAttribute("data-label",Ie.getAttribute("data-label")):this.label.removeAttribute("data-label"),ze))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":oe(Event))==="object"){var qe=document.createEvent("Event");qe.initEvent("change",!0,!0),this.select.dispatchEvent(qe)}this.close()}}},{key:"update",value:function(){var Ie=void 0;if(this.select.selectedIndex>-1){var ze=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];Ie=this.select.options[this.select.selectedIndex],this.selectItem(ze)}else this.selectItem(null);var Et=Ie!=null&&Ie!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",Et)}}]),Ce}();z.default=_e},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(0),re=wn(oe),ie=j(5),ae=wn(ie),he=j(4),le=wn(he),ue=j(16),de=wn(ue),pe=j(25),$e=wn(pe),_e=j(24),Ce=wn(_e),Ie=j(35),ze=wn(Ie),Et=j(6),qe=wn(Et),Oe=j(22),Ue=wn(Oe),Dt=j(7),At=wn(Dt),Lt=j(55),kt=wn(Lt),Pt=j(42),jt=wn(Pt),vn=j(23),$n=wn(vn);function wn(_n){return _n&&_n.__esModule?_n:{default:_n}}ae.default.register({"blots/block":le.default,"blots/block/embed":he.BlockEmbed,"blots/break":de.default,"blots/container":$e.default,"blots/cursor":Ce.default,"blots/embed":ze.default,"blots/inline":qe.default,"blots/scroll":Ue.default,"blots/text":At.default,"modules/clipboard":kt.default,"modules/history":jt.default,"modules/keyboard":$n.default}),re.default.register(le.default,de.default,Ce.default,qe.default,Ue.default,At.default),z.default=ae.default},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(1),re=function(){function ie(ae){this.domNode=ae,this.domNode[oe.DATA_KEY]={blot:this}}return Object.defineProperty(ie.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),ie.create=function(ae){if(this.tagName==null)throw new oe.ParchmentError("Blot definition missing tagName");var he;return Array.isArray(this.tagName)?(typeof ae=="string"&&(ae=ae.toUpperCase(),parseInt(ae).toString()===ae&&(ae=parseInt(ae))),typeof ae=="number"?he=document.createElement(this.tagName[ae-1]):this.tagName.indexOf(ae)>-1?he=document.createElement(ae):he=document.createElement(this.tagName[0])):he=document.createElement(this.tagName),this.className&&he.classList.add(this.className),he},ie.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},ie.prototype.clone=function(){var ae=this.domNode.cloneNode(!1);return oe.create(ae)},ie.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[oe.DATA_KEY]},ie.prototype.deleteAt=function(ae,he){var le=this.isolate(ae,he);le.remove()},ie.prototype.formatAt=function(ae,he,le,ue){var de=this.isolate(ae,he);if(oe.query(le,oe.Scope.BLOT)!=null&&ue)de.wrap(le,ue);else if(oe.query(le,oe.Scope.ATTRIBUTE)!=null){var pe=oe.create(this.statics.scope);de.wrap(pe),pe.format(le,ue)}},ie.prototype.insertAt=function(ae,he,le){var ue=le==null?oe.create("text",he):oe.create(he,le),de=this.split(ae);this.parent.insertBefore(ue,de)},ie.prototype.insertInto=function(ae,he){he===void 0&&(he=null),this.parent!=null&&this.parent.children.remove(this);var le=null;ae.children.insertBefore(this,he),he!=null&&(le=he.domNode),(this.domNode.parentNode!=ae.domNode||this.domNode.nextSibling!=le)&&ae.domNode.insertBefore(this.domNode,le),this.parent=ae,this.attach()},ie.prototype.isolate=function(ae,he){var le=this.split(ae);return le.split(he),le},ie.prototype.length=function(){return 1},ie.prototype.offset=function(ae){return ae===void 0&&(ae=this.parent),this.parent==null||this==ae?0:this.parent.children.offset(this)+this.parent.offset(ae)},ie.prototype.optimize=function(ae){this.domNode[oe.DATA_KEY]!=null&&delete this.domNode[oe.DATA_KEY].mutations},ie.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},ie.prototype.replace=function(ae){ae.parent!=null&&(ae.parent.insertBefore(this,ae.next),ae.remove())},ie.prototype.replaceWith=function(ae,he){var le=typeof ae=="string"?oe.create(ae,he):ae;return le.replace(this),le},ie.prototype.split=function(ae,he){return ae===0?this:this.next},ie.prototype.update=function(ae,he){},ie.prototype.wrap=function(ae,he){var le=typeof ae=="string"?oe.create(ae,he):ae;return this.parent!=null&&this.parent.insertBefore(le,this.next),le.appendChild(this),le},ie.blotName="abstract",ie}();z.default=re},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(12),re=j(32),ie=j(33),ae=j(1),he=function(){function le(ue){this.attributes={},this.domNode=ue,this.build()}return le.prototype.attribute=function(ue,de){de?ue.add(this.domNode,de)&&(ue.value(this.domNode)!=null?this.attributes[ue.attrName]=ue:delete this.attributes[ue.attrName]):(ue.remove(this.domNode),delete this.attributes[ue.attrName])},le.prototype.build=function(){var ue=this;this.attributes={};var de=oe.default.keys(this.domNode),pe=re.default.keys(this.domNode),$e=ie.default.keys(this.domNode);de.concat(pe).concat($e).forEach(function(_e){var Ce=ae.query(_e,ae.Scope.ATTRIBUTE);Ce instanceof oe.default&&(ue.attributes[Ce.attrName]=Ce)})},le.prototype.copy=function(ue){var de=this;Object.keys(this.attributes).forEach(function(pe){var $e=de.attributes[pe].value(de.domNode);ue.format(pe,$e)})},le.prototype.move=function(ue){var de=this;this.copy(ue),Object.keys(this.attributes).forEach(function(pe){de.attributes[pe].remove(de.domNode)}),this.attributes={}},le.prototype.values=function(){var ue=this;return Object.keys(this.attributes).reduce(function(de,pe){return de[pe]=ue.attributes[pe].value(ue.domNode),de},{})},le}();z.default=he},function(V,z,j){var oe=this&&this.__extends||function(){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ue){le.__proto__=ue}||function(le,ue){for(var de in ue)ue.hasOwnProperty(de)&&(le[de]=ue[de])};return function(le,ue){he(le,ue);function de(){this.constructor=le}le.prototype=ue===null?Object.create(ue):(de.prototype=ue.prototype,new de)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(12);function ie(he,le){var ue=he.getAttribute("class")||"";return ue.split(/\s+/).filter(function(de){return de.indexOf(le+"-")===0})}var ae=function(he){oe(le,he);function le(){return he!==null&&he.apply(this,arguments)||this}return le.keys=function(ue){return(ue.getAttribute("class")||"").split(/\s+/).map(function(de){return de.split("-").slice(0,-1).join("-")})},le.prototype.add=function(ue,de){return this.canAdd(ue,de)?(this.remove(ue),ue.classList.add(this.keyName+"-"+de),!0):!1},le.prototype.remove=function(ue){var de=ie(ue,this.keyName);de.forEach(function(pe){ue.classList.remove(pe)}),ue.classList.length===0&&ue.removeAttribute("class")},le.prototype.value=function(ue){var de=ie(ue,this.keyName)[0]||"",pe=de.slice(this.keyName.length+1);return this.canAdd(ue,pe)?pe:""},le}(re.default);z.default=ae},function(V,z,j){var oe=this&&this.__extends||function(){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ue){le.__proto__=ue}||function(le,ue){for(var de in ue)ue.hasOwnProperty(de)&&(le[de]=ue[de])};return function(le,ue){he(le,ue);function de(){this.constructor=le}le.prototype=ue===null?Object.create(ue):(de.prototype=ue.prototype,new de)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(12);function ie(he){var le=he.split("-"),ue=le.slice(1).map(function(de){return de[0].toUpperCase()+de.slice(1)}).join("");return le[0]+ue}var ae=function(he){oe(le,he);function le(){return he!==null&&he.apply(this,arguments)||this}return le.keys=function(ue){return(ue.getAttribute("style")||"").split(";").map(function(de){var pe=de.split(":");return pe[0].trim()})},le.prototype.add=function(ue,de){return this.canAdd(ue,de)?(ue.style[ie(this.keyName)]=de,!0):!1},le.prototype.remove=function(ue){ue.style[ie(this.keyName)]="",ue.getAttribute("style")||ue.removeAttribute("style")},le.prototype.value=function(ue){var de=ue.style[ie(this.keyName)];return this.canAdd(ue,de)?de:""},le}(re.default);z.default=ae},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function ae(he,le){for(var ue=0;ueAt&&this.stack.undo.length>0){var Lt=this.stack.undo.pop();Dt=Dt.compose(Lt.undo),Oe=Lt.redo.compose(Oe)}else this.lastRecorded=At;this.stack.undo.push({redo:Oe,undo:Dt}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(Oe){this.stack.undo.forEach(function(Ue){Ue.undo=Oe.transform(Ue.undo,!0),Ue.redo=Oe.transform(Ue.redo,!0)}),this.stack.redo.forEach(function(Ue){Ue.undo=Oe.transform(Ue.undo,!0),Ue.redo=Oe.transform(Ue.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),qe}(ue.default);Ce.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function Ie(Et){var qe=Et.ops[Et.ops.length-1];return qe==null?!1:qe.insert!=null?typeof qe.insert=="string"&&qe.insert.endsWith(` -`):qe.attributes!=null?Object.keys(qe.attributes).some(function(Oe){return ie.default.query(Oe,ie.default.Scope.BLOCK)!=null}):!1}function ze(Et){var qe=Et.reduce(function(Ue,Dt){return Ue+=Dt.delete||0,Ue},0),Oe=Et.length()-qe;return Ie(Et)&&(Oe-=1),Oe}z.default=Ce,z.getLastChangeIndex=ze},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var oe=function(){function Nn(xn,On){for(var Ln=0;Ln0&&arguments[0]!==void 0?arguments[0]:"link",Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),Ln!=null?this.textbox.value=Ln:On!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+On)||""),this.root.setAttribute("data-mode",On)}},{key:"restoreFocus",value:function(){var On=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=On}},{key:"save",value:function(){var On=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var Ln=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",On,de.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",On,de.default.sources.USER)),this.quill.root.scrollTop=Ln;break}case"video":On=Cn(On);case"formula":{if(!On)break;var Bn=this.quill.getSelection(!0);if(Bn!=null){var Vn=Bn.index+Bn.length;this.quill.insertEmbed(Vn,this.root.getAttribute("data-mode"),On,de.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Vn+1," ",de.default.sources.USER),this.quill.setSelection(Vn+2,de.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),xn}(At.default);function Cn(Nn){var xn=Nn.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Nn.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return xn?(xn[1]||"https")+"://www.youtube.com/embed/"+xn[2]+"?showinfo=0":(xn=Nn.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(xn[1]||"https")+"://player.vimeo.com/video/"+xn[2]+"/":Nn}function Tn(Nn,xn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;xn.forEach(function(Ln){var Bn=document.createElement("option");Ln===On?Bn.setAttribute("selected","selected"):Bn.setAttribute("value",Ln),Nn.appendChild(Bn)})}z.BaseTooltip=An,z.default=Sn},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function re(){this.head=this.tail=null,this.length=0}return re.prototype.append=function(){for(var ie=[],ae=0;ae1&&this.append.apply(this,ie.slice(1))},re.prototype.contains=function(ie){for(var ae,he=this.iterator();ae=he();)if(ae===ie)return!0;return!1},re.prototype.insertBefore=function(ie,ae){!ie||(ie.next=ae,ae!=null?(ie.prev=ae.prev,ae.prev!=null&&(ae.prev.next=ie),ae.prev=ie,ae===this.head&&(this.head=ie)):this.tail!=null?(this.tail.next=ie,ie.prev=this.tail,this.tail=ie):(ie.prev=null,this.head=this.tail=ie),this.length+=1)},re.prototype.offset=function(ie){for(var ae=0,he=this.head;he!=null;){if(he===ie)return ae;ae+=he.length(),he=he.next}return-1},re.prototype.remove=function(ie){!this.contains(ie)||(ie.prev!=null&&(ie.prev.next=ie.next),ie.next!=null&&(ie.next.prev=ie.prev),ie===this.head&&(this.head=ie.next),ie===this.tail&&(this.tail=ie.prev),this.length-=1)},re.prototype.iterator=function(ie){return ie===void 0&&(ie=this.head),function(){var ae=ie;return ie!=null&&(ie=ie.next),ae}},re.prototype.find=function(ie,ae){ae===void 0&&(ae=!1);for(var he,le=this.iterator();he=le();){var ue=he.length();if(ie$e?he(pe,ie-$e,Math.min(ae,$e+Ce-ie)):he(pe,0,Math.min(Ce,ie+ae-$e)),$e+=Ce}},re.prototype.map=function(ie){return this.reduce(function(ae,he){return ae.push(ie(he)),ae},[])},re.prototype.reduce=function(ie,ae){for(var he,le=this.iterator();he=le();)ae=ie(ae,he);return ae},re}();z.default=oe},function(V,z,j){var oe=this&&this.__extends||function(){var ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,pe){de.__proto__=pe}||function(de,pe){for(var $e in pe)pe.hasOwnProperty($e)&&(de[$e]=pe[$e])};return function(de,pe){ue(de,pe);function $e(){this.constructor=de}de.prototype=pe===null?Object.create(pe):($e.prototype=pe.prototype,new $e)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(17),ie=j(1),ae={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},he=100,le=function(ue){oe(de,ue);function de(pe){var $e=ue.call(this,pe)||this;return $e.scroll=$e,$e.observer=new MutationObserver(function(_e){$e.update(_e)}),$e.observer.observe($e.domNode,ae),$e.attach(),$e}return de.prototype.detach=function(){ue.prototype.detach.call(this),this.observer.disconnect()},de.prototype.deleteAt=function(pe,$e){this.update(),pe===0&&$e===this.length()?this.children.forEach(function(_e){_e.remove()}):ue.prototype.deleteAt.call(this,pe,$e)},de.prototype.formatAt=function(pe,$e,_e,Ce){this.update(),ue.prototype.formatAt.call(this,pe,$e,_e,Ce)},de.prototype.insertAt=function(pe,$e,_e){this.update(),ue.prototype.insertAt.call(this,pe,$e,_e)},de.prototype.optimize=function(pe,$e){var _e=this;pe===void 0&&(pe=[]),$e===void 0&&($e={}),ue.prototype.optimize.call(this,$e);for(var Ce=[].slice.call(this.observer.takeRecords());Ce.length>0;)pe.push(Ce.pop());for(var Ie=function(Oe,Ue){Ue===void 0&&(Ue=!0),!(Oe==null||Oe===_e)&&Oe.domNode.parentNode!=null&&(Oe.domNode[ie.DATA_KEY].mutations==null&&(Oe.domNode[ie.DATA_KEY].mutations=[]),Ue&&Ie(Oe.parent))},ze=function(Oe){Oe.domNode[ie.DATA_KEY]==null||Oe.domNode[ie.DATA_KEY].mutations==null||(Oe instanceof re.default&&Oe.children.forEach(ze),Oe.optimize($e))},Et=pe,qe=0;Et.length>0;qe+=1){if(qe>=he)throw new Error("[Parchment] Maximum optimize iterations reached");for(Et.forEach(function(Oe){var Ue=ie.find(Oe.target,!0);Ue!=null&&(Ue.domNode===Oe.target&&(Oe.type==="childList"?(Ie(ie.find(Oe.previousSibling,!1)),[].forEach.call(Oe.addedNodes,function(Dt){var At=ie.find(Dt,!1);Ie(At,!1),At instanceof re.default&&At.children.forEach(function(Lt){Ie(Lt,!1)})})):Oe.type==="attributes"&&Ie(Ue.prev)),Ie(Ue))}),this.children.forEach(ze),Et=[].slice.call(this.observer.takeRecords()),Ce=Et.slice();Ce.length>0;)pe.push(Ce.pop())}},de.prototype.update=function(pe,$e){var _e=this;$e===void 0&&($e={}),pe=pe||this.observer.takeRecords(),pe.map(function(Ce){var Ie=ie.find(Ce.target,!0);return Ie==null?null:Ie.domNode[ie.DATA_KEY].mutations==null?(Ie.domNode[ie.DATA_KEY].mutations=[Ce],Ie):(Ie.domNode[ie.DATA_KEY].mutations.push(Ce),null)}).forEach(function(Ce){Ce==null||Ce===_e||Ce.domNode[ie.DATA_KEY]==null||Ce.update(Ce.domNode[ie.DATA_KEY].mutations||[],$e)}),this.domNode[ie.DATA_KEY].mutations!=null&&ue.prototype.update.call(this,this.domNode[ie.DATA_KEY].mutations,$e),this.optimize(pe,$e)},de.blotName="scroll",de.defaultChild="block",de.scope=ie.Scope.BLOCK_BLOT,de.tagName="DIV",de}(re.default);z.default=le},function(V,z,j){var oe=this&&this.__extends||function(){var le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,de){ue.__proto__=de}||function(ue,de){for(var pe in de)de.hasOwnProperty(pe)&&(ue[pe]=de[pe])};return function(ue,de){le(ue,de);function pe(){this.constructor=ue}ue.prototype=de===null?Object.create(de):(pe.prototype=de.prototype,new pe)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(18),ie=j(1);function ae(le,ue){if(Object.keys(le).length!==Object.keys(ue).length)return!1;for(var de in le)if(le[de]!==ue[de])return!1;return!0}var he=function(le){oe(ue,le);function ue(){return le!==null&&le.apply(this,arguments)||this}return ue.formats=function(de){if(de.tagName!==ue.tagName)return le.formats.call(this,de)},ue.prototype.format=function(de,pe){var $e=this;de===this.statics.blotName&&!pe?(this.children.forEach(function(_e){_e instanceof re.default||(_e=_e.wrap(ue.blotName,!0)),$e.attributes.copy(_e)}),this.unwrap()):le.prototype.format.call(this,de,pe)},ue.prototype.formatAt=function(de,pe,$e,_e){if(this.formats()[$e]!=null||ie.query($e,ie.Scope.ATTRIBUTE)){var Ce=this.isolate(de,pe);Ce.format($e,_e)}else le.prototype.formatAt.call(this,de,pe,$e,_e)},ue.prototype.optimize=function(de){le.prototype.optimize.call(this,de);var pe=this.formats();if(Object.keys(pe).length===0)return this.unwrap();var $e=this.next;$e instanceof ue&&$e.prev===this&&ae(pe,$e.formats())&&($e.moveChildren(this),$e.remove())},ue.blotName="inline",ue.scope=ie.Scope.INLINE_BLOT,ue.tagName="SPAN",ue}(re.default);z.default=he},function(V,z,j){var oe=this&&this.__extends||function(){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ue){le.__proto__=ue}||function(le,ue){for(var de in ue)ue.hasOwnProperty(de)&&(le[de]=ue[de])};return function(le,ue){he(le,ue);function de(){this.constructor=le}le.prototype=ue===null?Object.create(ue):(de.prototype=ue.prototype,new de)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(18),ie=j(1),ae=function(he){oe(le,he);function le(){return he!==null&&he.apply(this,arguments)||this}return le.formats=function(ue){var de=ie.query(le.blotName).tagName;if(ue.tagName!==de)return he.formats.call(this,ue)},le.prototype.format=function(ue,de){ie.query(ue,ie.Scope.BLOCK)!=null&&(ue===this.statics.blotName&&!de?this.replaceWith(le.blotName):he.prototype.format.call(this,ue,de))},le.prototype.formatAt=function(ue,de,pe,$e){ie.query(pe,ie.Scope.BLOCK)!=null?this.format(pe,$e):he.prototype.formatAt.call(this,ue,de,pe,$e)},le.prototype.insertAt=function(ue,de,pe){if(pe==null||ie.query(de,ie.Scope.INLINE)!=null)he.prototype.insertAt.call(this,ue,de,pe);else{var $e=this.split(ue),_e=ie.create(de,pe);$e.parent.insertBefore(_e,$e)}},le.prototype.update=function(ue,de){navigator.userAgent.match(/Trident/)?this.build():he.prototype.update.call(this,ue,de)},le.blotName="block",le.scope=ie.Scope.BLOCK_BLOT,le.tagName="P",le}(re.default);z.default=ae},function(V,z,j){var oe=this&&this.__extends||function(){var ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(he,le){he.__proto__=le}||function(he,le){for(var ue in le)le.hasOwnProperty(ue)&&(he[ue]=le[ue])};return function(he,le){ae(he,le);function ue(){this.constructor=he}he.prototype=le===null?Object.create(le):(ue.prototype=le.prototype,new ue)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(19),ie=function(ae){oe(he,ae);function he(){return ae!==null&&ae.apply(this,arguments)||this}return he.formats=function(le){},he.prototype.format=function(le,ue){ae.prototype.formatAt.call(this,0,this.length(),le,ue)},he.prototype.formatAt=function(le,ue,de,pe){le===0&&ue===this.length()?this.format(de,pe):ae.prototype.formatAt.call(this,le,ue,de,pe)},he.prototype.formats=function(){return this.statics.formats(this.domNode)},he}(re.default);z.default=ie},function(V,z,j){var oe=this&&this.__extends||function(){var he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ue){le.__proto__=ue}||function(le,ue){for(var de in ue)ue.hasOwnProperty(de)&&(le[de]=ue[de])};return function(le,ue){he(le,ue);function de(){this.constructor=le}le.prototype=ue===null?Object.create(ue):(de.prototype=ue.prototype,new de)}}();Object.defineProperty(z,"__esModule",{value:!0});var re=j(19),ie=j(1),ae=function(he){oe(le,he);function le(ue){var de=he.call(this,ue)||this;return de.text=de.statics.value(de.domNode),de}return le.create=function(ue){return document.createTextNode(ue)},le.value=function(ue){var de=ue.data;return de.normalize&&(de=de.normalize()),de},le.prototype.deleteAt=function(ue,de){this.domNode.data=this.text=this.text.slice(0,ue)+this.text.slice(ue+de)},le.prototype.index=function(ue,de){return this.domNode===ue?de:-1},le.prototype.insertAt=function(ue,de,pe){pe==null?(this.text=this.text.slice(0,ue)+de+this.text.slice(ue),this.domNode.data=this.text):he.prototype.insertAt.call(this,ue,de,pe)},le.prototype.length=function(){return this.text.length},le.prototype.optimize=function(ue){he.prototype.optimize.call(this,ue),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof le&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},le.prototype.position=function(ue,de){return[this.domNode,ue]},le.prototype.split=function(ue,de){if(de===void 0&&(de=!1),!de){if(ue===0)return this;if(ue===this.length())return this.next}var pe=ie.create(this.domNode.splitText(ue));return this.parent.insertBefore(pe,this.next),this.text=this.statics.value(this.domNode),pe},le.prototype.update=function(ue,de){var pe=this;ue.some(function($e){return $e.type==="characterData"&&$e.target===pe.domNode})&&(this.text=this.statics.value(this.domNode))},le.prototype.value=function(){return this.text},le.blotName="text",le.scope=ie.Scope.INLINE_BLOT,le}(re.default);z.default=ae},function(V,z,j){var oe=document.createElement("div");if(oe.classList.toggle("test-class",!1),oe.classList.contains("test-class")){var re=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(ie,ae){return arguments.length>1&&!this.contains(ie)==!ae?ae:re.call(this,ie)}}String.prototype.startsWith||(String.prototype.startsWith=function(ie,ae){return ae=ae||0,this.substr(ae,ie.length)===ie}),String.prototype.endsWith||(String.prototype.endsWith=function(ie,ae){var he=this.toString();(typeof ae!="number"||!isFinite(ae)||Math.floor(ae)!==ae||ae>he.length)&&(ae=he.length),ae-=ie.length;var le=he.indexOf(ie,ae);return le!==-1&&le===ae}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(ie){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof ie!="function")throw new TypeError("predicate must be a function");for(var ae=Object(this),he=ae.length>>>0,le=arguments[1],ue,de=0;deOe.length?qe:Oe,At=qe.length>Oe.length?Oe:qe,Lt=Dt.indexOf(At);if(Lt!=-1)return Ue=[[oe,Dt.substring(0,Lt)],[re,At],[oe,Dt.substring(Lt+At.length)]],qe.length>Oe.length&&(Ue[0][0]=Ue[2][0]=j),Ue;if(At.length==1)return[[j,qe],[oe,Oe]];var kt=pe(qe,Oe);if(kt){var Pt=kt[0],jt=kt[1],vn=kt[2],$n=kt[3],wn=kt[4],_n=ie(Pt,vn),En=ie(jt,$n);return _n.concat([[re,wn]],En)}return he(qe,Oe)}function he(qe,Oe){for(var Ue=qe.length,Dt=Oe.length,At=Math.ceil((Ue+Dt)/2),Lt=At,kt=2*At,Pt=new Array(kt),jt=new Array(kt),vn=0;vnUe)En+=2;else if(On>Dt)_n+=2;else if(wn){var Ln=Lt+$n-Tn;if(Ln>=0&&Ln=Bn)return le(qe,Oe,xn,On)}}}for(var Vn=-Cn+Sn;Vn<=Cn-An;Vn+=2){var Ln=Lt+Vn,Bn;Vn==-Cn||Vn!=Cn&&jt[Ln-1]Ue)An+=2;else if(Fn>Dt)Sn+=2;else if(!wn){var Nn=Lt+$n-Vn;if(Nn>=0&&Nn=Bn)return le(qe,Oe,xn,On)}}}}return[[j,qe],[oe,Oe]]}function le(qe,Oe,Ue,Dt){var At=qe.substring(0,Ue),Lt=Oe.substring(0,Dt),kt=qe.substring(Ue),Pt=Oe.substring(Dt),jt=ie(At,Lt),vn=ie(kt,Pt);return jt.concat(vn)}function ue(qe,Oe){if(!qe||!Oe||qe.charAt(0)!=Oe.charAt(0))return 0;for(var Ue=0,Dt=Math.min(qe.length,Oe.length),At=Dt,Lt=0;UeOe.length?qe:Oe,Dt=qe.length>Oe.length?Oe:qe;if(Ue.length<4||Dt.length*2=En.length?[xn,On,Ln,Bn,Nn]:null}var Lt=At(Ue,Dt,Math.ceil(Ue.length/4)),kt=At(Ue,Dt,Math.ceil(Ue.length/2)),Pt;if(!Lt&&!kt)return null;kt?Lt?Pt=Lt[4].length>kt[4].length?Lt:kt:Pt=kt:Pt=Lt;var jt,vn,$n,wn;qe.length>Oe.length?(jt=Pt[0],vn=Pt[1],$n=Pt[2],wn=Pt[3]):($n=Pt[0],wn=Pt[1],jt=Pt[2],vn=Pt[3]);var _n=Pt[4];return[jt,vn,$n,wn,_n]}function $e(qe){qe.push([re,""]);for(var Oe=0,Ue=0,Dt=0,At="",Lt="",kt;Oe1?(Ue!==0&&Dt!==0&&(kt=ue(Lt,At),kt!==0&&(Oe-Ue-Dt>0&&qe[Oe-Ue-Dt-1][0]==re?qe[Oe-Ue-Dt-1][1]+=Lt.substring(0,kt):(qe.splice(0,0,[re,Lt.substring(0,kt)]),Oe++),Lt=Lt.substring(kt),At=At.substring(kt)),kt=de(Lt,At),kt!==0&&(qe[Oe][1]=Lt.substring(Lt.length-kt)+qe[Oe][1],Lt=Lt.substring(0,Lt.length-kt),At=At.substring(0,At.length-kt))),Ue===0?qe.splice(Oe-Dt,Ue+Dt,[oe,Lt]):Dt===0?qe.splice(Oe-Ue,Ue+Dt,[j,At]):qe.splice(Oe-Ue-Dt,Ue+Dt,[j,At],[oe,Lt]),Oe=Oe-Ue-Dt+(Ue?1:0)+(Dt?1:0)+1):Oe!==0&&qe[Oe-1][0]==re?(qe[Oe-1][1]+=qe[Oe][1],qe.splice(Oe,1)):Oe++,Dt=0,Ue=0,At="",Lt="";break}qe[qe.length-1][1]===""&&qe.pop();var Pt=!1;for(Oe=1;Oe0&&Dt.splice(At+2,0,[kt[0],Pt]),Et(Dt,At,3)}else return qe}function ze(qe){for(var Oe=!1,Ue=function(kt){return kt.charCodeAt(0)>=56320&&kt.charCodeAt(0)<=57343},Dt=function(kt){return kt.charCodeAt(kt.length-1)>=55296&&kt.charCodeAt(kt.length-1)<=56319},At=2;At0&&Lt.push(qe[At]);return Lt}function Et(qe,Oe,Ue){for(var Dt=Oe+Ue-1;Dt>=0&&Dt>=Oe-1;Dt--)if(Dt+1\r?\n +\<"),this.convert();var qn=this.quill.getFormat(this.quill.selection.savedRange.index);if(qn[Dt.default.blotName]){var In=this.container.innerText;return this.container.innerHTML="",new ue.default().insert(In,vn({},Dt.default.blotName,qn[Dt.default.blotName]))}var jn=this.prepareMatching(),Kn=re(jn,2),so=Kn[0],ro=Kn[1],vo=Vn(this.container,so,ro);return Ln(vo,` -`)&&vo.ops[vo.ops.length-1].attributes==null&&(vo=vo.compose(new ue.default().retain(vo.length()-1).delete(1))),En.log("convert",this.container.innerHTML,vo),this.container.innerHTML="",vo}},{key:"dangerouslyPasteHTML",value:function(no,qn){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e.default.sources.API;if(typeof no=="string")this.quill.setContents(this.convert(no),qn),this.quill.setSelection(0,_e.default.sources.SILENT);else{var jn=this.convert(qn);this.quill.updateContents(new ue.default().retain(no).concat(jn),In),this.quill.setSelection(no+jn.length(),_e.default.sources.SILENT)}}},{key:"onPaste",value:function(no){var qn=this;if(!(no.defaultPrevented||!this.quill.isEnabled())){var In=this.quill.getSelection(),jn=new ue.default().retain(In.index),Kn=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(_e.default.sources.SILENT),setTimeout(function(){jn=jn.concat(qn.convert()).delete(In.length),qn.quill.updateContents(jn,_e.default.sources.USER),qn.quill.setSelection(jn.length()-In.length,_e.default.sources.SILENT),qn.quill.scrollingContainer.scrollTop=Kn,qn.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var no=this,qn=[],In=[];return this.matchers.forEach(function(jn){var Kn=re(jn,2),so=Kn[0],ro=Kn[1];switch(so){case Node.TEXT_NODE:In.push(ro);break;case Node.ELEMENT_NODE:qn.push(ro);break;default:[].forEach.call(no.container.querySelectorAll(so),function(vo){vo[Sn]=vo[Sn]||[],vo[Sn].push(ro)});break}}),[qn,In]}}]),Zn}(Et.default);Nn.DEFAULTS={matchers:[],matchVisual:!0};function xn(Un,Zn,no){return(typeof Zn=="undefined"?"undefined":oe(Zn))==="object"?Object.keys(Zn).reduce(function(qn,In){return xn(qn,In,Zn[In])},Un):Un.reduce(function(qn,In){return In.attributes&&In.attributes[Zn]?qn.push(In):qn.insert(In.insert,(0,he.default)({},vn({},Zn,no),In.attributes))},new ue.default)}function On(Un){if(Un.nodeType!==Node.ELEMENT_NODE)return{};var Zn="__ql-computed-style";return Un[Zn]||(Un[Zn]=window.getComputedStyle(Un))}function Ln(Un,Zn){for(var no="",qn=Un.ops.length-1;qn>=0&&no.length-1}function Vn(Un,Zn,no){return Un.nodeType===Un.TEXT_NODE?no.reduce(function(qn,In){return In(Un,qn)},new ue.default):Un.nodeType===Un.ELEMENT_NODE?[].reduce.call(Un.childNodes||[],function(qn,In){var jn=Vn(In,Zn,no);return In.nodeType===Un.ELEMENT_NODE&&(jn=Zn.reduce(function(Kn,so){return so(In,Kn)},jn),jn=(In[Sn]||[]).reduce(function(Kn,so){return so(In,Kn)},jn)),qn.concat(jn)},new ue.default):new ue.default}function Fn(Un,Zn,no){return xn(no,Un,!0)}function zn(Un,Zn){var no=pe.default.Attributor.Attribute.keys(Un),qn=pe.default.Attributor.Class.keys(Un),In=pe.default.Attributor.Style.keys(Un),jn={};return no.concat(qn).concat(In).forEach(function(Kn){var so=pe.default.query(Kn,pe.default.Scope.ATTRIBUTE);so!=null&&(jn[so.attrName]=so.value(Un),jn[so.attrName])||(so=Cn[Kn],so!=null&&(so.attrName===Kn||so.keyName===Kn)&&(jn[so.attrName]=so.value(Un)||void 0),so=Tn[Kn],so!=null&&(so.attrName===Kn||so.keyName===Kn)&&(so=Tn[Kn],jn[so.attrName]=so.value(Un)||void 0))}),Object.keys(jn).length>0&&(Zn=xn(Zn,jn)),Zn}function Xn(Un,Zn){var no=pe.default.query(Un);if(no==null)return Zn;if(no.prototype instanceof pe.default.Embed){var qn={},In=no.value(Un);In!=null&&(qn[no.blotName]=In,Zn=new ue.default().insert(qn,no.formats(Un)))}else typeof no.formats=="function"&&(Zn=xn(Zn,no.blotName,no.formats(Un)));return Zn}function Pn(Un,Zn){return Ln(Zn,` -`)||Zn.insert(` -`),Zn}function Hn(){return new ue.default}function eo(Un,Zn){var no=pe.default.query(Un);if(no==null||no.blotName!=="list-item"||!Ln(Zn,` -`))return Zn;for(var qn=-1,In=Un.parentNode;!In.classList.contains("ql-clipboard");)(pe.default.query(In)||{}).blotName==="list"&&(qn+=1),In=In.parentNode;return qn<=0?Zn:Zn.compose(new ue.default().retain(Zn.length()-1).retain(1,{indent:qn}))}function Qn(Un,Zn){return Ln(Zn,` -`)||(Bn(Un)||Zn.length()>0&&Un.nextSibling&&Bn(Un.nextSibling))&&Zn.insert(` -`),Zn}function ao(Un,Zn){if(Bn(Un)&&Un.nextElementSibling!=null&&!Ln(Zn,` - -`)){var no=Un.offsetHeight+parseFloat(On(Un).marginTop)+parseFloat(On(Un).marginBottom);Un.nextElementSibling.offsetTop>Un.offsetTop+no*1.5&&Zn.insert(` -`)}return Zn}function ho(Un,Zn){var no={},qn=Un.style||{};return qn.fontStyle&&On(Un).fontStyle==="italic"&&(no.italic=!0),qn.fontWeight&&(On(Un).fontWeight.startsWith("bold")||parseInt(On(Un).fontWeight)>=700)&&(no.bold=!0),Object.keys(no).length>0&&(Zn=xn(Zn,no)),parseFloat(qn.textIndent||0)>0&&(Zn=new ue.default().insert(" ").concat(Zn)),Zn}function uo(Un,Zn){var no=Un.data;if(Un.parentNode.tagName==="O:P")return Zn.insert(no.trim());if(no.trim().length===0&&Un.parentNode.classList.contains("ql-clipboard"))return Zn;if(!On(Un.parentNode).whiteSpace.startsWith("pre")){var qn=function(In,jn){return jn=jn.replace(/[^\u00a0]/g,""),jn.length<1&&In?" ":jn};no=no.replace(/\r\n/g," ").replace(/\n/g," "),no=no.replace(/\s\s+/g,qn.bind(qn,!0)),(Un.previousSibling==null&&Bn(Un.parentNode)||Un.previousSibling!=null&&Bn(Un.previousSibling))&&(no=no.replace(/^\s+/,qn.bind(qn,!1))),(Un.nextSibling==null&&Bn(Un.parentNode)||Un.nextSibling!=null&&Bn(Un.nextSibling))&&(no=no.replace(/\s+$/,qn.bind(qn,!1)))}return Zn.insert(no)}z.default=Nn,z.matchAttributor=zn,z.matchBlot=Xn,z.matchNewline=Qn,z.matchSpacing=ao,z.matchText=uo},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function $e(_e,Ce){for(var Ie=0;Ie '},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function $e(_e,Ce){for(var Ie=0;Iede.right&&($e=de.right-pe.right,this.root.style.left=le+$e+"px"),pe.leftde.bottom){var _e=pe.bottom-pe.top,Ce=he.bottom-he.top+_e;this.root.style.top=ue-Ce+"px",this.root.classList.add("ql-flip")}return $e}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),ae}();z.default=ie},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function kt(Pt,jt){var vn=[],$n=!0,wn=!1,_n=void 0;try{for(var En=Pt[Symbol.iterator](),Sn;!($n=(Sn=En.next()).done)&&(vn.push(Sn.value),!(jt&&vn.length===jt));$n=!0);}catch(An){wn=!0,_n=An}finally{try{!$n&&En.return&&En.return()}finally{if(wn)throw _n}}return vn}return function(Pt,jt){if(Array.isArray(Pt))return Pt;if(Symbol.iterator in Object(Pt))return kt(Pt,jt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),re=function kt(Pt,jt,vn){Pt===null&&(Pt=Function.prototype);var $n=Object.getOwnPropertyDescriptor(Pt,jt);if($n===void 0){var wn=Object.getPrototypeOf(Pt);return wn===null?void 0:kt(wn,jt,vn)}else{if("value"in $n)return $n.value;var _n=$n.get;return _n===void 0?void 0:_n.call(vn)}},ie=function(){function kt(Pt,jt){for(var vn=0;vn','','',''].join(""),z.default=At},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(29),re=In(oe),ie=j(36),ae=j(38),he=j(64),le=j(65),ue=In(le),de=j(66),pe=In(de),$e=j(67),_e=In($e),Ce=j(37),Ie=j(26),ze=j(39),Et=j(40),qe=j(56),Oe=In(qe),Ue=j(68),Dt=In(Ue),At=j(27),Lt=In(At),kt=j(69),Pt=In(kt),jt=j(70),vn=In(jt),$n=j(71),wn=In($n),_n=j(72),En=In(_n),Sn=j(73),An=In(Sn),Cn=j(13),Tn=In(Cn),Nn=j(74),xn=In(Nn),On=j(75),Ln=In(On),Bn=j(57),Vn=In(Bn),Fn=j(41),zn=In(Fn),Xn=j(28),Pn=In(Xn),Hn=j(59),eo=In(Hn),Qn=j(60),ao=In(Qn),ho=j(61),uo=In(ho),Un=j(108),Zn=In(Un),no=j(62),qn=In(no);function In(jn){return jn&&jn.__esModule?jn:{default:jn}}re.default.register({"attributors/attribute/direction":ae.DirectionAttribute,"attributors/class/align":ie.AlignClass,"attributors/class/background":Ce.BackgroundClass,"attributors/class/color":Ie.ColorClass,"attributors/class/direction":ae.DirectionClass,"attributors/class/font":ze.FontClass,"attributors/class/size":Et.SizeClass,"attributors/style/align":ie.AlignStyle,"attributors/style/background":Ce.BackgroundStyle,"attributors/style/color":Ie.ColorStyle,"attributors/style/direction":ae.DirectionStyle,"attributors/style/font":ze.FontStyle,"attributors/style/size":Et.SizeStyle},!0),re.default.register({"formats/align":ie.AlignClass,"formats/direction":ae.DirectionClass,"formats/indent":he.IndentClass,"formats/background":Ce.BackgroundStyle,"formats/color":Ie.ColorStyle,"formats/font":ze.FontClass,"formats/size":Et.SizeClass,"formats/blockquote":ue.default,"formats/code-block":Tn.default,"formats/header":pe.default,"formats/list":_e.default,"formats/bold":Oe.default,"formats/code":Cn.Code,"formats/italic":Dt.default,"formats/link":Lt.default,"formats/script":Pt.default,"formats/strike":vn.default,"formats/underline":wn.default,"formats/image":En.default,"formats/video":An.default,"formats/list/item":$e.ListItem,"modules/formula":xn.default,"modules/syntax":Ln.default,"modules/toolbar":Vn.default,"themes/bubble":Zn.default,"themes/snow":qn.default,"ui/icons":zn.default,"ui/picker":Pn.default,"ui/icon-picker":ao.default,"ui/color-picker":eo.default,"ui/tooltip":uo.default},!0),z.default=re.default},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var oe=function(){function _e(Ce,Ie){for(var ze=0;ze0&&this.children.tail.format(Ue,Dt)}},{key:"formats",value:function(){return $e({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(Ue,Dt){if(Ue instanceof ze)re(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"insertBefore",this).call(this,Ue,Dt);else{var At=Dt==null?this.length():Dt.offset(this),Lt=this.split(At);Lt.parent.insertBefore(Ue,Lt)}}},{key:"optimize",value:function(Ue){re(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"optimize",this).call(this,Ue);var Dt=this.next;Dt!=null&&Dt.prev===this&&Dt.statics.blotName===this.statics.blotName&&Dt.domNode.tagName===this.domNode.tagName&&Dt.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(Dt.moveChildren(this),Dt.remove())}},{key:"replace",value:function(Ue){if(Ue.statics.blotName!==this.statics.blotName){var Dt=ae.default.create(this.statics.defaultChild);Ue.moveChildren(Dt),this.appendChild(Dt)}re(Oe.prototype.__proto__||Object.getPrototypeOf(Oe.prototype),"replace",this).call(this,Ue)}}]),Oe}(de.default);Et.blotName="list",Et.scope=ae.default.Scope.BLOCK_BLOT,Et.tagName=["OL","UL"],Et.defaultChild="list-item",Et.allowedChildren=[ze],z.ListItem=ze,z.default=Et},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=j(56),re=ie(oe);function ie(de){return de&&de.__esModule?de:{default:de}}function ae(de,pe){if(!(de instanceof pe))throw new TypeError("Cannot call a class as a function")}function he(de,pe){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe&&(typeof pe=="object"||typeof pe=="function")?pe:de}function le(de,pe){if(typeof pe!="function"&&pe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof pe);de.prototype=Object.create(pe&&pe.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),pe&&(Object.setPrototypeOf?Object.setPrototypeOf(de,pe):de.__proto__=pe)}var ue=function(de){le(pe,de);function pe(){return ae(this,pe),he(this,(pe.__proto__||Object.getPrototypeOf(pe)).apply(this,arguments))}return pe}(re.default);ue.blotName="italic",ue.tagName=["EM","I"],z.default=ue},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function $e(_e,Ce){for(var Ie=0;Ie-1?Et?this.domNode.setAttribute(ze,Et):this.domNode.removeAttribute(ze):re(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"format",this).call(this,ze,Et)}}],[{key:"create",value:function(ze){var Et=re(Ie.__proto__||Object.getPrototypeOf(Ie),"create",this).call(this,ze);return typeof ze=="string"&&Et.setAttribute("src",this.sanitize(ze)),Et}},{key:"formats",value:function(ze){return $e.reduce(function(Et,qe){return ze.hasAttribute(qe)&&(Et[qe]=ze.getAttribute(qe)),Et},{})}},{key:"match",value:function(ze){return/\.(jpe?g|gif|png)$/.test(ze)||/^data:image\/.+;base64/.test(ze)}},{key:"sanitize",value:function(ze){return(0,he.sanitize)(ze,["http","https","data"])?ze:"//:0"}},{key:"value",value:function(ze){return ze.getAttribute("src")}}]),Ie}(ae.default.Embed);_e.blotName="image",_e.tagName="IMG",z.default=_e},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0});var oe=function(){function Ce(Ie,ze){for(var Et=0;Et-1?Et?this.domNode.setAttribute(ze,Et):this.domNode.removeAttribute(ze):re(Ie.prototype.__proto__||Object.getPrototypeOf(Ie.prototype),"format",this).call(this,ze,Et)}}],[{key:"create",value:function(ze){var Et=re(Ie.__proto__||Object.getPrototypeOf(Ie),"create",this).call(this,ze);return Et.setAttribute("frameborder","0"),Et.setAttribute("allowfullscreen",!0),Et.setAttribute("src",this.sanitize(ze)),Et}},{key:"formats",value:function(ze){return $e.reduce(function(Et,qe){return ze.hasAttribute(qe)&&(Et[qe]=ze.getAttribute(qe)),Et},{})}},{key:"sanitize",value:function(ze){return he.default.sanitize(ze)}},{key:"value",value:function(ze){return ze.getAttribute("src")}}]),Ie}(ie.BlockEmbed);_e.blotName="video",_e.className="ql-video",_e.tagName="IFRAME",z.default=_e},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var oe=function(){function Et(qe,Oe){for(var Ue=0;Ue0||this.cachedText==null)&&(this.domNode.innerHTML=At(Lt),this.domNode.normalize(),this.attach()),this.cachedText=Lt)}}]),Dt}($e.default);Et.className="ql-syntax";var qe=new ae.default.Attributor.Class("token","hljs",{scope:ae.default.Scope.INLINE}),Oe=function(Ue){ze(Dt,Ue),oe(Dt,null,[{key:"register",value:function(){le.default.register(qe,!0),le.default.register(Et,!0)}}]);function Dt(At,Lt){Ce(this,Dt);var kt=Ie(this,(Dt.__proto__||Object.getPrototypeOf(Dt)).call(this,At,Lt));if(typeof kt.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Pt=null;return kt.quill.on(le.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Pt),Pt=setTimeout(function(){kt.highlight(),Pt=null},kt.options.interval)}),kt.highlight(),kt}return oe(Dt,[{key:"highlight",value:function(){var At=this;if(!this.quill.selection.composing){this.quill.update(le.default.sources.USER);var Lt=this.quill.getSelection();this.quill.scroll.descendants(Et).forEach(function(kt){kt.highlight(At.options.highlight)}),this.quill.update(le.default.sources.SILENT),Lt!=null&&this.quill.setSelection(Lt,le.default.sources.SILENT)}}}]),Dt}(de.default);Oe.DEFAULTS={highlight:function(){return window.hljs==null?null:function(Ue){var Dt=window.hljs.highlightAuto(Ue);return Dt.value}}(),interval:1e3},z.CodeBlock=Et,z.CodeToken=qe,z.default=Oe},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z){V.exports=' '},function(V,z,j){Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BubbleTooltip=void 0;var oe=function Dt(At,Lt,kt){At===null&&(At=Function.prototype);var Pt=Object.getOwnPropertyDescriptor(At,Lt);if(Pt===void 0){var jt=Object.getPrototypeOf(At);return jt===null?void 0:Dt(jt,Lt,kt)}else{if("value"in Pt)return Pt.value;var vn=Pt.get;return vn===void 0?void 0:vn.call(kt)}},re=function(){function Dt(At,Lt){for(var kt=0;kt0&&wn===le.default.sources.USER){Pt.show(),Pt.root.style.left="0px",Pt.root.style.width="",Pt.root.style.width=Pt.root.offsetWidth+"px";var _n=Pt.quill.getLines(vn.index,vn.length);if(_n.length===1)Pt.position(Pt.quill.getBounds(vn));else{var En=_n[_n.length-1],Sn=Pt.quill.getIndex(En),An=Math.min(En.length()-1,vn.index+vn.length-Sn),Cn=Pt.quill.getBounds(new pe.Range(Sn,An));Pt.position(Cn)}}else document.activeElement!==Pt.textbox&&Pt.quill.hasFocus()&&Pt.hide()}),Pt}return re(At,[{key:"listen",value:function(){var Lt=this;oe(At.prototype.__proto__||Object.getPrototypeOf(At.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Lt.root.classList.remove("ql-editing")}),this.quill.on(le.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Lt.root.classList.contains("ql-hidden")){var kt=Lt.quill.getSelection();kt!=null&&Lt.position(Lt.quill.getBounds(kt))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Lt){var kt=oe(At.prototype.__proto__||Object.getPrototypeOf(At.prototype),"position",this).call(this,Lt),Pt=this.root.querySelector(".ql-tooltip-arrow");if(Pt.style.marginLeft="",kt===0)return kt;Pt.style.marginLeft=-1*kt-Pt.offsetWidth/2+"px"}}]),At}(ue.BaseTooltip);Ue.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=Ue,z.default=Oe},function(V,z,j){V.exports=j(63)}]).default})})(quill);var Quill=getDefaultExportFromCjs(quill.exports);const defaultOptions={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},_sfc_main$2K={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup($,k){const V={editorOption:{},quill:null};let z="";require$$0$3.watch(()=>$.value,ie=>{V.quill&&(ie&&ie!==z?(z=ie,V.quill.pasteHTML(ie)):ie||V.quill.setText(""))}),require$$0$3.watch(()=>$.content,ie=>{V.quill&&(ie&&ie!==z?(z=ie,V.quill.pasteHTML(ie)):ie||V.quill.setText(""))}),require$$0$3.watch(()=>$.disabled,ie=>{V.quill&&V.quill.enable(!ie)});const j=require$$0$3.ref(null),oe=(ie,ae)=>{for(const he in ae)!ie[he]||he!=="modules"?ie[he]=ae[he]:oe(ie[he],ae[he]);return ie},re=()=>{j.value&&(V.editorOption=oe(defaultOptions,$.options),V.editorOption.readOnly=!!$.disabled,V.quill=new Quill(j.value,V.editorOption),$.value&&V.quill.pasteHTML($.value),V.quill.on("selection-change",ie=>{ie?k.emit("focus",V.quill):k.emit("blur",V.quill)}),V.quill.on("text-change",()=>{$.disabled&&V.quill.enable(!1);let ie=j.value.children[0].innerHTML;const ae=V.quill,he=V.quill.getText();ie==="


"&&(ie=""),z=ie,k.emit("update:value",z),k.emit("change",{html:ie,text:he,quill:ae})}),k.emit("ready",V.quill))};return require$$0$3.onBeforeUnmount(()=>{const ie=j.value.previousSibling;ie&&ie.className.indexOf("ql-toolbar")>-1&&ie.parentNode.removeChild(ie)}),require$$0$3.onMounted(()=>{re()}),require$$0$3.onUnmounted(()=>{V.quill=null}),{editor:j}}},_hoisted_1$x={ref:"editor"};function _sfc_render$2K($,k,V,z,j,oe){return require$$0$3.openBlock(),require$$0$3.createElementBlock("section",_hoisted_1$x,null,512)}var quillEditor=_export_sfc$1(_sfc_main$2K,[["render",_sfc_render$2K]]);quillEditor.install=function($){$.component(quillEditor.name,quillEditor)};const _sfc_main$2J={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper,quillEditor},data(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{editorOption(){return{placeholder:this.field.options.placeholder,modules:{}}}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent(){this.oldFieldValue=deepClone(this.fieldModel)},handleRichEditorBlurEvent(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}};function _sfc_render$2J($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("quill-editor"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",null,[require$$0$3.createVNode(re,{value:j.fieldModel,"onUpdate:value":k[0]||(k[0]=ae=>j.fieldModel=ae),options:oe.editorOption,disabled:V.field.options.disabled,onBlur:oe.handleRichEditorBlurEvent,onFocus:oe.handleRichEditorFocusEvent,onChange:oe.handleRichEditorChangeEvent,style:require$$0$3.normalizeStyle(V.field.options.contentHeight?`height: ${V.field.options.contentHeight};`:"")},null,8,["value","options","disabled","onBlur","onFocus","onChange","style"])])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var richEditorWidget=_export_sfc$1(_sfc_main$2J,[["render",_sfc_render$2J],["__scopeId","data-v-a23436fa"]]),__glob_0_15$1=Object.freeze(Object.defineProperty({__proto__:null,default:richEditorWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2I={name:"select-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{allowDefaultFirstOption(){return!!this.field.options.filterable&&!!this.field.options.allowCreate}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2I($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-option"),ie=require$$0$3.resolveComponent("el-select"),ae=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ae,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(ie,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=he=>j.fieldModel=he),class:"full-width-input",disabled:V.field.options.disabled,size:$.widgetSize,clearable:V.field.options.clearable,filterable:V.field.options.filterable,"allow-create":V.field.options.allowCreate,"default-first-option":oe.allowDefaultFirstOption,"automatic-dropdown":V.field.options.automaticDropdown,multiple:V.field.options.multiple,"multiple-limit":V.field.options.multipleLimit,placeholder:V.field.options.placeholder||$.i18nt("render.hint.selectPlaceholder"),remote:V.field.options.remote,"remote-method":$.remoteQuery,onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},{default:require$$0$3.withCtx(()=>[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(V.field.options.optionItems,he=>(require$$0$3.openBlock(),require$$0$3.createBlock(re,{key:he.value,label:he.label,value:he.value,disabled:he.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","disabled","size","clearable","filterable","allow-create","default-first-option","automatic-dropdown","multiple","multiple-limit","placeholder","remote","remote-method","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var selectWidget=_export_sfc$1(_sfc_main$2I,[["render",_sfc_render$2I],["__scopeId","data-v-a99f839c"]]),__glob_0_16$1=Object.freeze(Object.defineProperty({__proto__:null,default:selectWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2H={name:"slider-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2H($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-slider"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),disabled:V.field.options.disabled,"show-stops":V.field.options.showStops,min:V.field.options.min,max:V.field.options.max,step:V.field.options.step,range:V.field.options.range,vertical:V.field.options.vertical,onChange:$.handleChangeEvent},null,8,["modelValue","disabled","show-stops","min","max","step","range","vertical","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var sliderWidget=_export_sfc$1(_sfc_main$2H,[["render",_sfc_render$2H],["__scopeId","data-v-92a76556"]]),__glob_0_17$1=Object.freeze(Object.defineProperty({__proto__:null,default:sliderWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2G={name:"slot-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$w={key:0,class:"slot-title"};function _sfc_render$2G($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("static-content-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(re,{designer:V.designer,field:V.field,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",{class:require$$0$3.normalizeClass([V.designState?"slot-wrapper-design":"slot-wrapper-render"])},[require$$0$3.renderSlot($.$slots,V.field.options.name,{formModel:$.formModel},void 0,!0),V.designState?(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_1$w,require$$0$3.toDisplayString(V.field.options.label),1)):require$$0$3.createCommentVNode("",!0)],2)]),_:3},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var slotWidget=_export_sfc$1(_sfc_main$2G,[["render",_sfc_render$2G],["__scopeId","data-v-95f13fca"]]),__glob_0_18$1=Object.freeze(Object.defineProperty({__proto__:null,default:slotWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2F={name:"static-text-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2F($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("static-content-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(re,{designer:V.designer,field:V.field,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",{ref:"fieldEditor"},require$$0$3.toDisplayString(V.field.options.textContent),513)]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var staticTextWidget=_export_sfc$1(_sfc_main$2F,[["render",_sfc_render$2F],["__scopeId","data-v-7ca36e68"]]),__glob_0_20$1=Object.freeze(Object.defineProperty({__proto__:null,default:staticTextWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2E={name:"switch-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2E($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-switch"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),disabled:V.field.options.disabled,"active-text":V.field.options.activeText,"inactive-text":V.field.options.inactiveText,"active-color":V.field.options.activeColor,"inactive-color":V.field.options.inactiveColor,width:V.field.options.switchWidth,onChange:$.handleChangeEvent},null,8,["modelValue","disabled","active-text","inactive-text","active-color","inactive-color","width","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var switchWidget=_export_sfc$1(_sfc_main$2E,[["render",_sfc_render$2E],["__scopeId","data-v-3529e848"]]),__glob_0_21$1=Object.freeze(Object.defineProperty({__proto__:null,default:switchWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2D={name:"textarea-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2D($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-input"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{type:"textarea",ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),disabled:V.field.options.disabled,readonly:V.field.options.readonly,size:$.widgetSize,placeholder:V.field.options.placeholder,rows:V.field.options.rows,minlength:V.field.options.minLength,maxlength:V.field.options.maxLength,"show-word-limit":V.field.options.showWordLimit,onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onInput:$.handleInputCustomEvent,onChange:$.handleChangeEvent},null,8,["modelValue","disabled","readonly","size","placeholder","rows","minlength","maxlength","show-word-limit","onFocus","onBlur","onInput","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var textareaWidget=_export_sfc$1(_sfc_main$2D,[["render",_sfc_render$2D],["__scopeId","data-v-072d98c8"]]),__glob_0_22$1=Object.freeze(Object.defineProperty({__proto__:null,default:textareaWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2C={name:"time-range-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2C($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-time-picker"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",{class:require$$0$3.normalizeClass([V.field.options.autoFullWidth?"auto-full-width":""])},[require$$0$3.createVNode(re,{ref:"fieldEditor","is-range":"",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),class:require$$0$3.normalizeClass([V.field.options.autoFullWidth?"full-width-input":""]),disabled:V.field.options.disabled,readonly:V.field.options.readonly,size:$.widgetSize,clearable:V.field.options.clearable,editable:V.field.options.editable,format:V.field.options.format,"value-format":"HH:mm:ss","start-placeholder":V.field.options.startPlaceholder||$.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":V.field.options.endPlaceholder||$.i18nt("render.hint.endTimePlaceholder"),onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},null,8,["modelValue","class","disabled","readonly","size","clearable","editable","format","start-placeholder","end-placeholder","onFocus","onBlur","onChange"])],2)]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var timeRangeWidget=_export_sfc$1(_sfc_main$2C,[["render",_sfc_render$2C],["__scopeId","data-v-60824824"]]),__glob_0_23$1=Object.freeze(Object.defineProperty({__proto__:null,default:timeRangeWidget},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2B={name:"time-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2B($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-time-picker"),ie=require$$0$3.resolveComponent("form-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{designer:V.designer,field:V.field,rules:j.rules,"design-state":V.designState,"parent-widget":V.parentWidget,"parent-list":V.parentList,"index-of-parent-list":V.indexOfParentList,"sub-form-row-index":V.subFormRowIndex,"sub-form-col-index":V.subFormColIndex,"sub-form-row-id":V.subFormRowId},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{ref:"fieldEditor",modelValue:j.fieldModel,"onUpdate:modelValue":k[0]||(k[0]=ae=>j.fieldModel=ae),class:require$$0$3.normalizeClass([V.field.options.autoFullWidth?"auto-full-width":""]),disabled:V.field.options.disabled,readonly:V.field.options.readonly,size:$.widgetSize,clearable:V.field.options.clearable,editable:V.field.options.editable,format:V.field.options.format,"value-format":"HH:mm:ss",placeholder:V.field.options.placeholder||$.i18nt("render.hint.timePlaceholder"),onFocus:$.handleFocusCustomEvent,onBlur:$.handleBlurCustomEvent,onChange:$.handleChangeEvent},null,8,["modelValue","class","disabled","readonly","size","clearable","editable","format","placeholder","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var timeWidget=_export_sfc$1(_sfc_main$2B,[["render",_sfc_render$2B],["__scopeId","data-v-417e0c7c"]]),__glob_0_24$1=Object.freeze(Object.defineProperty({__proto__:null,default:timeWidget},Symbol.toStringTag,{value:"Module"}));let comps$1={};const modules$3={"./button-widget.vue":__glob_0_0$2,"./cascader-widget.vue":__glob_0_1$3,"./checkbox-widget.vue":__glob_0_2$3,"./color-widget.vue":__glob_0_3$3,"./date-range-widget.vue":__glob_0_4$3,"./date-widget.vue":__glob_0_5$3,"./divider-widget.vue":__glob_0_6$2,"./file-upload-widget.vue":__glob_0_7$1,"./form-item-wrapper.vue":__glob_0_8$1,"./html-text-widget.vue":__glob_0_9$1,"./input-widget.vue":__glob_0_10$1,"./number-widget.vue":__glob_0_11$1,"./picture-upload-widget.vue":__glob_0_12$1,"./radio-widget.vue":__glob_0_13$1,"./rate-widget.vue":__glob_0_14$1,"./rich-editor-widget.vue":__glob_0_15$1,"./select-widget.vue":__glob_0_16$1,"./slider-widget.vue":__glob_0_17$1,"./slot-widget.vue":__glob_0_18$1,"./static-content-wrapper.vue":__glob_0_19$1,"./static-text-widget.vue":__glob_0_20$1,"./switch-widget.vue":__glob_0_21$1,"./textarea-widget.vue":__glob_0_22$1,"./time-range-widget.vue":__glob_0_23$1,"./time-widget.vue":__glob_0_24$1};for(const $ in modules$3){let k=modules$3[$].default.name;comps$1[k]=modules$3[$].default}const _sfc_main$2A={name:"GridColItem",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin],components:xe({},comps$1),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,colHeight:{type:String,default:null}},inject:["refList","globalModel","getFormConfig","previewState"],data(){return{layoutProps:{span:this.widget.options.span,md:this.widget.options.md||12,sm:this.widget.options.sm||12,xs:this.widget.options.xs||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{formConfig(){return this.getFormConfig()},customClass(){return this.widget.options.customClass||""},colHeightStyle(){return this.colHeight?{height:this.colHeight+"px"}:{}}},created(){this.initLayoutProps(),this.initRefList()},methods:{initLayoutProps(){if(this.widget.options.responsive)if(this.previewState){this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0;let $=this.formConfig.layoutType;$==="H5"?this.layoutProps.span=this.widget.options.xs||12:$==="Pad"?this.layoutProps.span=this.widget.options.sm||12:this.layoutProps.span=this.widget.options.md||12}else this.layoutProps.span=void 0;else this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0}}},_hoisted_1$v={class:"blank-cell"},_hoisted_2$m={class:"invisible-content"};function _sfc_render$2A($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-col");return require$$0$3.withDirectives((require$$0$3.openBlock(),require$$0$3.createBlock(re,require$$0$3.mergeProps({class:["grid-cell",[oe.customClass]]},j.layoutProps,{style:oe.colHeightStyle,key:V.widget.id}),{default:require$$0$3.withCtx(()=>[!!V.widget.widgetList&&V.widget.widgetList.length>0?(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},require$$0$3.renderList(V.widget.widgetList,(ie,ae)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,null,[ie.category==="container"?(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(ie.type+"-item"),{widget:ie,key:ae,"parent-list":V.widget.widgetList,"index-of-parent-list":ae,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),he=>({name:he,fn:require$$0$3.withCtx(le=>[require$$0$3.renderSlot($.$slots,he,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(le)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(ie.type+"-widget"),{field:ie,designer:null,key:ae,"parent-list":V.widget.widgetList,"index-of-parent-list":ae,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),he=>({name:he,fn:require$$0$3.withCtx(le=>[require$$0$3.renderSlot($.$slots,he,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(le)),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256)):(require$$0$3.openBlock(),require$$0$3.createBlock(re,{key:1},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",_hoisted_1$v,[require$$0$3.createElementVNode("span",_hoisted_2$m,require$$0$3.toDisplayString($.i18nt("render.hint.blankCellContent")),1)])]),_:1}))]),_:3},16,["class","style"])),[[require$$0$3.vShow,!V.widget.options.hidden]])}var GridColItem=_export_sfc$1(_sfc_main$2A,[["render",_sfc_render$2A],["__scopeId","data-v-2814d511"]]),__glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:GridColItem},Symbol.toStringTag,{value:"Module"})),containerItemMixin={computed:{customClass(){return this.widget.options.customClass||""},formModel:{cache:!1,get(){return this.globalModel.formModel}}},mounted(){this.callSetHidden()},methods:{unregisterFromRefList(){if(this.refList!==null&&!!this.widget.options.name){let $=this.widget.options.name;delete this.refList[$]}},callSetHidden(){this.widget.options.hidden===!0&&this.setHidden(!0)},setHidden($){this.widget.options.hidden=$;let k=V=>{let z=V.options.name,j=this.getWidgetRef(z);$&&!!j&&!!j.clearFieldRules&&j.clearFieldRules(),!$&&!!j&&!!j.buildFieldRules&&j.buildFieldRules()};traverseFieldWidgetsOfContainer(this.widget,k)},activeTab($){$>=0&&${k.options.active=V===$,V===$&&(this.activeTabName=k.options.name)})},disableTab($){$>=0&&$=0&&$=0&&$=0&&${let V=k.options.name+"@row"+this.rowIdData[$],z=this.getWidgetRef(V);z&&z.setDisabled(!0)})},enableSubFormRow($){this.widget.widgetList.forEach(k=>{let V=k.options.name+"@row"+this.rowIdData[$],z=this.getWidgetRef(V);z&&z.setDisabled(!1)})},disableSubForm(){this.rowIdData.length>0&&this.rowIdData.forEach(($,k)=>{this.disableSubFormRow(k)}),this.actionDisabled=!0},enableSubForm(){this.rowIdData.length>0&&this.rowIdData.forEach(($,k)=>{this.enableSubFormRow(k)}),this.actionDisabled=!1},resetSubForm(){if(this.widget.type==="sub-form"){let $=this.formModel[this.widget.options.name];$&&($.splice(0,$.length),this.rowIdData.splice(0,this.rowIdData.length)),this.widget.options.showBlankRow&&this.addSubFormRow()}},getSubFormValues($=!0){if(this.widget.type==="sub-form")return this.formModel[this.widget.options.name];this.$message.error(this.i18nt("render.hint.nonSubFormType"))}}};const _sfc_main$2z={name:"grid-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:{ContainerItemWrapper,GridColItem},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2z($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("grid-col-item"),ie=require$$0$3.resolveComponent("el-row"),ae=require$$0$3.resolveComponent("container-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ae,{widget:V.widget},{default:require$$0$3.withCtx(()=>[require$$0$3.withDirectives((require$$0$3.openBlock(),require$$0$3.createBlock(ie,{key:V.widget.id,gutter:V.widget.options.gutter,class:require$$0$3.normalizeClass(["grid-container",[$.customClass]]),ref:V.widget.id},{default:require$$0$3.withCtx(()=>[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(V.widget.cols,(he,le)=>(require$$0$3.openBlock(),require$$0$3.createBlock(re,{key:le,widget:he,"parent-list":V.widget.cols,"index-of-parent-list":le,"parent-widget":V.widget,"col-height":V.widget.options.colHeight},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),ue=>({name:ue,fn:require$$0$3.withCtx(de=>[require$$0$3.renderSlot($.$slots,ue,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(de)))])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget","col-height"]))),128))]),_:3},8,["gutter","class"])),[[require$$0$3.vShow,!V.widget.options.hidden]])]),_:3},8,["widget"])}var gridItem=_export_sfc$1(_sfc_main$2z,[["render",_sfc_render$2z]]),__glob_0_2$2=Object.freeze(Object.defineProperty({__proto__:null,default:gridItem},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2y={name:"sub-form-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:xe({ContainerItemWrapper},comps$1),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted(){this.handleSubFormFirstRowAdd()},beforeUnmount(){this.unregisterFromRefList()},methods:{getLabelAlign($,k){return k.options.labelAlign||$.options.labelAlign},registerSubFormToRefList(){this.widget.type==="sub-form"&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData($){if(this.widget.type==="sub-form"){this.rowIdData.splice(0,this.rowIdData.length);let k=this.formModel[this.widget.options.name];!!k&&k.length>0&&(k.forEach(()=>{this.rowIdData.push("id"+generateId())}),$&&setTimeout(()=>{this.handleSubFormRowChange(k)},800))}},addToRowIdData(){this.rowIdData.push("id"+generateId())},insertToRowIdData($){this.rowIdData.splice($,0,"id"+generateId())},deleteFromRowIdData($){this.rowIdData.splice($,1)},getRowIdData(){return this.rowIdData},getWidgetRefOfSubForm($,k){let V=$+"@row"+this.rowIdData[k];return this.getWidgetRef(V)},initFieldSchemaData(){if(this.widget.type!=="sub-form")return;let $=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),$>0)for(let k=0;k<$;k++){let V=[];this.widget.widgetList.forEach(z=>{V.push(this.cloneFieldSchema(z))}),this.fieldSchemaData.push(V)}},addToFieldSchemaData($){let k=[];this.widget.widgetList.forEach(V=>{k.push(this.cloneFieldSchema(V))}),$===void 0?this.fieldSchemaData.push(k):this.fieldSchemaData.splice($,0,k)},deleteFromFieldSchemaData($){this.fieldSchemaData.splice($,1)},cloneFieldSchema($){let k=deepClone($);return k.id=$.type+generateId(),k},initEventHandler(){this.widget.type==="sub-form"&&this.on$("setFormData",$=>{this.initRowIdData(!1),this.initFieldSchemaData();let k=$[this.widget.options.name]||[];setTimeout(()=>{this.handleSubFormRowChange(k)},800)})},handleSubFormFirstRowAdd(){if(this.widget.type==="sub-form"&&!!this.widget.options.showBlankRow&&this.rowIdData.length===1){let $=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd($,this.rowIdData[0]),this.handleSubFormRowChange($)}},addSubFormRow(){let $={};this.widget.widgetList.forEach(V=>{V.formItemFlag&&($[V.options.name]=V.options.defaultValue)});let k=this.formModel[this.widget.options.name]||[];k.push($),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(k,this.rowIdData[k.length-1]),this.handleSubFormRowChange(k)},insertSubFormRow($){let k={};this.widget.widgetList.forEach(z=>{z.formItemFlag&&(k[z.options.name]=z.options.defaultValue)});let V=this.formModel[this.widget.options.name]||[];V.splice($,0,k),this.insertToRowIdData($),this.addToFieldSchemaData($),this.handleSubFormRowInsert(V,this.rowIdData[$]),this.handleSubFormRowChange(V)},deleteSubFormRow($){this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{let k=this.formModel[this.widget.options.name]||[],V=deepClone(k[$]);k.splice($,1),this.deleteFromRowIdData($),this.deleteFromFieldSchemaData($),this.handelSubFormRowDelete(k,V),this.handleSubFormRowChange(k)}).catch(()=>{})},handleSubFormRowChange($){this.widget.options.onSubFormRowChange&&new Function("subFormData",this.widget.options.onSubFormRowChange).call(this,$)},handleSubFormRowAdd($,k){this.widget.options.onSubFormRowAdd&&new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd).call(this,$,k)},handleSubFormRowInsert($,k){this.widget.options.onSubFormRowInsert&&new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert).call(this,$,k)},handelSubFormRowDelete($,k){this.widget.options.onSubFormRowDelete&&new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete).call(this,$,k)}}},_hoisted_1$u={class:"action-header-column"},_hoisted_2$l={class:"action-label"},_hoisted_3$h={key:0,class:"custom-label"},_hoisted_4$a=["title"],_hoisted_5$8={class:"sub-form-action-column hide-label"},_hoisted_6$6={class:"action-button-column"},_hoisted_7$3={key:0,class:"row-number-span"};function _sfc_render$2y($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("svg-icon"),ie=require$$0$3.resolveComponent("el-button"),ae=require$$0$3.resolveComponent("el-tooltip"),he=require$$0$3.resolveComponent("el-row"),le=require$$0$3.resolveComponent("container-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(le,{widget:V.widget},{default:require$$0$3.withCtx(()=>[require$$0$3.withDirectives((require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{key:V.widget.id,class:"sub-form-container"},[require$$0$3.createVNode(he,{class:"header-row"},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",_hoisted_1$u,[require$$0$3.createElementVNode("span",_hoisted_2$l,require$$0$3.toDisplayString($.i18nt("render.hint.subFormAction")),1),require$$0$3.createVNode(ie,{disabled:j.actionDisabled,round:"",type:"primary",size:"small",class:"action-button",onClick:oe.addSubFormRow,title:$.i18nt("render.hint.subFormAddActionHint")},{default:require$$0$3.withCtx(()=>[require$$0$3.createTextVNode(require$$0$3.toDisplayString($.i18nt("render.hint.subFormAddAction")),1),require$$0$3.createVNode(re,{"icon-class":"el-plus"})]),_:1},8,["disabled","onClick","title"])]),(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(V.widget.widgetList,ue=>(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{key:ue.id+"thc",class:require$$0$3.normalizeClass(["field-header-column",[oe.getLabelAlign(V.widget,ue),ue.options.required?"is-required":""]]),style:require$$0$3.normalizeStyle({width:ue.options.columnWidth})},[ue.options.labelIconClass?(require$$0$3.openBlock(),require$$0$3.createElementBlock("span",_hoisted_3$h,[ue.options.labelIconPosition==="front"?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[ue.options.labelTooltip?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[require$$0$3.createVNode(ae,{content:ue.options.labelTooltip,effect:"light"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":ue.options.labelIconClass},null,8,["icon-class"])]),_:2},1032,["content"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString(ue.options.label),1)],64)):(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[require$$0$3.createVNode(re,{"icon-class":ue.options.labelIconClass},null,8,["icon-class"]),require$$0$3.createTextVNode(require$$0$3.toDisplayString(ue.options.label),1)],64))],64)):ue.options.labelIconPosition==="rear"?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[ue.options.labelTooltip?(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:0},[require$$0$3.createTextVNode(require$$0$3.toDisplayString(ue.options.label),1),require$$0$3.createVNode(ae,{content:ue.options.labelTooltip,effect:"light"},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":ue.options.labelIconClass},null,8,["icon-class"])]),_:2},1032,["content"])],64)):(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,{key:1},[require$$0$3.createTextVNode(require$$0$3.toDisplayString(ue.options.label),1),require$$0$3.createVNode(re,{"icon-class":ue.options.labelIconClass},null,8,["icon-class"])],64))],64)):require$$0$3.createCommentVNode("",!0)])):(require$$0$3.openBlock(),require$$0$3.createElementBlock("span",{key:1,title:ue.options.labelTooltip},require$$0$3.toDisplayString(ue.options.label),9,_hoisted_4$a))],6))),128))]),_:1}),(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(j.rowIdData,(ue,de)=>(require$$0$3.openBlock(),require$$0$3.createBlock(he,{class:"sub-form-row",key:ue},{default:require$$0$3.withCtx(()=>[require$$0$3.createElementVNode("div",_hoisted_5$8,[require$$0$3.createElementVNode("div",_hoisted_6$6,[require$$0$3.createVNode(ie,{disabled:j.actionDisabled,circle:"",onClick:pe=>oe.insertSubFormRow(de),title:$.i18nt("render.hint.insertSubFormRow")},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":"el-plus"})]),_:2},1032,["disabled","onClick","title"]),require$$0$3.createVNode(ie,{disabled:j.actionDisabled,circle:"",onClick:pe=>oe.deleteSubFormRow(de),title:$.i18nt("render.hint.deleteSubFormRow")},{default:require$$0$3.withCtx(()=>[require$$0$3.createVNode(re,{"icon-class":"el-delete"})]),_:2},1032,["disabled","onClick","title"]),V.widget.options.showRowNumber?(require$$0$3.openBlock(),require$$0$3.createElementBlock("span",_hoisted_7$3,"#"+require$$0$3.toDisplayString(de+1),1)):require$$0$3.createCommentVNode("",!0)])]),(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(V.widget.widgetList,(pe,$e)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{key:pe.id+"tc"+ue,class:"sub-form-table-column hide-label",style:require$$0$3.normalizeStyle({width:pe.options.columnWidth})},[(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(pe.type+"-widget"),{field:j.fieldSchemaData[de][$e],key:j.fieldSchemaData[de][$e].id,"parent-list":V.widget.widgetList,"index-of-parent-list":$e,"parent-widget":V.widget,"sub-form-row-id":ue,"sub-form-row-index":de,"sub-form-col-index":$e},null,8,["field","parent-list","index-of-parent-list","parent-widget","sub-form-row-id","sub-form-row-index","sub-form-col-index"]))],4))),128))]),_:2},1024))),128))])),[[require$$0$3.vShow,!V.widget.options.hidden]])]),_:1},8,["widget"])}var subFormItem=_export_sfc$1(_sfc_main$2y,[["render",_sfc_render$2y],["__scopeId","data-v-286637ea"]]),__glob_0_3$2=Object.freeze(Object.defineProperty({__proto__:null,default:subFormItem},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2x={name:"tab-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:xe({ContainerItemWrapper},comps$1),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{activeTabName:""}},computed:{visibleTabs(){return this.widget.tabs.filter($=>!$.options.hidden)}},created(){this.initRefList()},mounted(){this.initActiveTab()},beforeUnmount(){this.unregisterFromRefList()},methods:{initActiveTab(){if(this.widget.type==="tab"&&this.widget.tabs.length>0){let $=this.widget.tabs.filter(k=>k.options.active===!0);$.length>0?this.activeTabName=$[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}};function _sfc_render$2x($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-tab-pane"),ie=require$$0$3.resolveComponent("el-tabs"),ae=require$$0$3.resolveComponent("container-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ae,{widget:V.widget},{default:require$$0$3.withCtx(()=>[require$$0$3.withDirectives((require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{key:V.widget.id,class:"tab-container"},[require$$0$3.createVNode(ie,{modelValue:j.activeTabName,"onUpdate:modelValue":k[0]||(k[0]=he=>j.activeTabName=he),type:V.widget.displayType,ref:V.widget.id,class:require$$0$3.normalizeClass([$.customClass])},{default:require$$0$3.withCtx(()=>[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(oe.visibleTabs,(he,le)=>(require$$0$3.openBlock(),require$$0$3.createBlock(re,{key:le,label:he.options.label,disabled:he.options.disabled,name:he.options.name},{default:require$$0$3.withCtx(()=>[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(he.widgetList,(ue,de)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,null,[ue.category==="container"?(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(ue.type+"-item"),{widget:ue,key:de,"parent-list":he.widgetList,"index-of-parent-list":de,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),pe=>({name:pe,fn:require$$0$3.withCtx($e=>[require$$0$3.renderSlot($.$slots,pe,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps($e)))])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(ue.type+"-widget"),{field:ue,key:de,"parent-list":he.widgetList,"index-of-parent-list":de,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),pe=>({name:pe,fn:require$$0$3.withCtx($e=>[require$$0$3.renderSlot($.$slots,pe,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps($e)))])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256))]),_:2},1032,["label","disabled","name"]))),128))]),_:3},8,["modelValue","type","class"])])),[[require$$0$3.vShow,!V.widget.options.hidden]])]),_:3},8,["widget"])}var tabItem=_export_sfc$1(_sfc_main$2x,[["render",_sfc_render$2x]]),__glob_0_4$2=Object.freeze(Object.defineProperty({__proto__:null,default:tabItem},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2w={name:"TableCellItem",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin],components:xe({},comps$1),props:{widget:Object,rowIndex:Number,colIndex:Number},inject:["refList","globalModel"],computed:{customClass(){return this.widget.options.customClass||""}},created(){},methods:{}},_hoisted_1$t=["colspan","rowspan"];function _sfc_render$2w($,k,V,z,j,oe){return require$$0$3.openBlock(),require$$0$3.createElementBlock("td",{class:require$$0$3.normalizeClass(["table-cell",[oe.customClass]]),colspan:V.widget.options.colspan||1,rowspan:V.widget.options.rowspan||1,style:require$$0$3.normalizeStyle({width:V.widget.options.cellWidth+" !important"||"",height:V.widget.options.cellHeight+" !important"||""})},[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(V.widget.widgetList,(re,ie)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,null,[re.category==="container"?(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(re.type+"-item"),{widget:re,key:ie,"parent-list":V.widget.widgetList,"index-of-parent-list":ie,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),ae=>({name:ae,fn:require$$0$3.withCtx(he=>[require$$0$3.renderSlot($.$slots,ae,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(he)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(re.type+"-widget"),{field:re,key:ie,"parent-list":V.widget.widgetList,"index-of-parent-list":ie,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),ae=>({name:ae,fn:require$$0$3.withCtx(he=>[require$$0$3.renderSlot($.$slots,ae,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(he)),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256))],14,_hoisted_1$t)}var TableCellItem=_export_sfc$1(_sfc_main$2w,[["render",_sfc_render$2w],["__scopeId","data-v-276f2d6c"]]),__glob_0_5$2=Object.freeze(Object.defineProperty({__proto__:null,default:TableCellItem},Symbol.toStringTag,{value:"Module"}));const _sfc_main$2v={name:"table-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:{ContainerItemWrapper,TableCellItem},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$2v($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("table-cell-item"),ie=require$$0$3.resolveComponent("container-item-wrapper");return require$$0$3.openBlock(),require$$0$3.createBlock(ie,{widget:V.widget},{default:require$$0$3.withCtx(()=>[require$$0$3.withDirectives((require$$0$3.openBlock(),require$$0$3.createElementBlock("div",{key:V.widget.id,class:"table-container"},[require$$0$3.createElementVNode("table",{ref:V.widget.id,class:require$$0$3.normalizeClass(["table-layout",[$.customClass]])},[require$$0$3.createElementVNode("tbody",null,[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(V.widget.rows,(ae,he)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock("tr",{key:ae.id},[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(ae.cols,(le,ue)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,null,[le.merged?require$$0$3.createCommentVNode("",!0):(require$$0$3.openBlock(),require$$0$3.createBlock(re,{widget:le,key:ue,"parent-list":V.widget.cols,"row-index":he,"col-index":ue,"parent-widget":V.widget},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),de=>({name:de,fn:require$$0$3.withCtx(pe=>[require$$0$3.renderSlot($.$slots,de,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(pe)),void 0,!0)])}))]),1032,["widget","parent-list","row-index","col-index","parent-widget"]))],64))),256))]))),128))])],2)])),[[require$$0$3.vShow,!V.widget.options.hidden]])]),_:3},8,["widget"])}var tableItem=_export_sfc$1(_sfc_main$2v,[["render",_sfc_render$2v],["__scopeId","data-v-dfc6ca8e"]]),__glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:tableItem},Symbol.toStringTag,{value:"Module"}));const modules$2={"./container-item-wrapper.vue":__glob_0_0$3,"./grid-col-item.vue":__glob_0_1$2,"./grid-item.vue":__glob_0_2$2,"./sub-form-item.vue":__glob_0_3$2,"./tab-item.vue":__glob_0_4$2,"./table-cell-item.vue":__glob_0_5$2,"./table-item.vue":__glob_0_6$1};var ContainerItems={install($){for(const k in modules$2){let V=modules$2[k].default.name;$.component(V,modules$2[k].default)}}};const _sfc_main$2u={name:"VFormRender",componentName:"VFormRender",mixins:[emitter,i18n$1],components:xe({},comps$1),props:{formJson:{type:Object,default:()=>buildDefaultFormJson()},formData:{type:Object,default:()=>{}},optionData:{type:Object,default:()=>{}},previewState:{type:Boolean,default:!1}},provide(){return{refList:this.widgetRefList,sfRefList:this.subFormRefList,getFormConfig:()=>this.formJsonObj.formConfig,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig(){return this.formJsonObj.formConfig},widgetList(){return this.formJsonObj.widgetList},labelPosition(){return!!this.formConfig&&!!this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth(){return!!this.formConfig&&!!this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size(){return!!this.formConfig&&!!this.formConfig.size?this.formConfig.size:"default"},customClass(){return!!this.formConfig&&!!this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject(){this.formId="vfRender"+generateId(),this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName($){return $.type+"-item"},getWidgetName($){return $.type+"-widget"},initLocale(){let $=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage($)},insertCustomStyleAndScriptNode(){!!this.formConfig&&!!this.formConfig.cssCode&&insertCustomCssToHead(this.formConfig.cssCode,this.previewState?"":this.formId),!!this.formConfig&&!!this.formConfig.functions&&insertGlobalFunctionsToHtml(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel($){!!$&&$.length>0&&$.forEach(k=>{this.buildDataFromWidget(k)})},buildDataFromWidget($){if($.category==="container")if($.type==="grid")!!$.cols&&$.cols.length>0&&$.cols.forEach(k=>{this.buildDataFromWidget(k)});else if($.type==="table")!!$.rows&&$.rows.length>0&&$.rows.forEach(k=>{!!k.cols&&k.cols.length>0&&k.cols.forEach(V=>{this.buildDataFromWidget(V)})});else if($.type==="tab")!!$.tabs&&$.tabs.length>0&&$.tabs.forEach(k=>{!!k.widgetList&&k.widgetList.length>0&&k.widgetList.forEach(V=>{this.buildDataFromWidget(V)})});else if($.type==="sub-form"){let k=$.options.name;if(this.formData.hasOwnProperty(k)){let V=this.formData[k];this.formDataModel[k]=deepClone(V)}else{let V={};$.options.showBlankRow?($.widgetList.forEach(z=>{z.formItemFlag&&(V[z.options.name]=z.options.defaultValue)}),this.formDataModel[k]=[V]):this.formDataModel[k]=[]}}else $.type==="grid-col"||$.type==="table-cell"?!!$.widgetList&&$.widgetList.length>0&&$.widgetList.forEach(k=>{this.buildDataFromWidget(k)}):!!$.widgetList&&$.widgetList.length>0&&$.widgetList.forEach(k=>{this.buildDataFromWidget(k)});else if($.formItemFlag)if(!this.formData.hasOwnProperty($.options.name))this.formDataModel[$.options.name]=$.options.defaultValue;else{let k=this.formData[$.options.name];this.formDataModel[$.options.name]=deepClone(k)}},addFieldChangeEventHandler(){this.off$("fieldChange"),this.on$("fieldChange",($,k,V,z,j)=>{this.handleFieldDataChange($,k,V,z,j),this.$emit("formChange",$,k,V,this.formDataModel,z,j)})},addFieldValidateEventHandler(){this.off$("fieldValidation"),this.on$("fieldValidation",$=>{this.$refs.renderForm.validateField($)})},registerFormToRefList(){this.widgetRefList.v_form_ref=this},handleFieldDataChange($,k,V,z,j){!!this.formConfig&&!!this.formConfig.onFormDataChange&&new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange).call(this,$,k,V,this.formDataModel,z,j)},handleOnCreated(){!!this.formConfig&&!!this.formConfig.onFormCreated&&new Function(this.formConfig.onFormCreated).call(this)},handleOnMounted(){!!this.formConfig&&!!this.formConfig.onFormMounted&&new Function(this.formConfig.onFormMounted).call(this)},findWidgetAndSetDisabled($,k){let V=this.getWidgetRef($);V?V.setDisabled(k):this.findWidgetOfSubFormAndSetDisabled($,k)},findWidgetOfSubFormAndSetDisabled($,k){this.findWidgetNameInSubForm($).forEach(V=>{let z=this.getWidgetRef(V);z&&z.setDisabled(k)})},findWidgetAndSetHidden($,k){let V=this.getWidgetRef($);V?V.setHidden(k):this.findWidgetOfSubFormAndSetHidden($,k)},findWidgetOfSubFormAndSetHidden($,k){this.findWidgetNameInSubForm($).forEach(V=>{let z=this.getWidgetRef(V);z&&z.setHidden(k)})},findWidgetNameInSubForm($){let k=[],V=null,z=(j,oe)=>{!!j.options&&j.options.name===$&&(V=oe.options.name)};if(traverseFieldWidgets(this.widgetList,z),V){let j=this.getWidgetRef(V);if(j){let oe=j.getRowIdData();!!oe&&oe.length>0&&oe.forEach(re=>{k.push($+"@row"+re)})}}return k},changeLanguage($){changeLocale($)},getNativeForm(){return this.$refs.renderForm},getWidgetRef($,k=!1){let V=this.widgetRefList[$];return!V&&!!k&&this.$message.error(this.i18nt("render.hint.refNotFound")+$),V},clearFormDataModel(){for(let $ in this.formDataModel)delete this.formDataModel[$]},setFormJson($){if($)if(typeof $=="string"||$.constructor===Object){let k=null;if(typeof $=="string"?k=JSON.parse($):k=$,!k.formConfig||!k.widgetList){this.$message.error("Invalid format of form json.");return}this.clearFormDataModel(),this.buildFormModel(k.widgetList),this.formJsonObj.formConfig=k.formConfig,this.formJsonObj.widgetList=k.widgetList,this.$nextTick(()=>{this.initFormObject(),this.handleOnMounted()})}else this.$message.error("Set form json failed.")},reloadOptionData($){let k=[];!!$&&typeof $=="string"?k=[$]:!!$&&Array.isArray($)&&(k=[...$]),this.broadcast("FieldWidget","reloadOptionItems",[k])},getFormData($=!0){if(!$)return this.formDataModel;let k=function(){},V=new window.Promise(function(z,j){k=function(oe,re){re?j(re):z(oe)}});return this.$refs.renderForm.validate(z=>{z?k(this.formDataModel):k(this.formDataModel,this.i18nt("render.hint.validationFailed"))}),V},setFormData($){Object.keys(this.formDataModel).forEach(k=>{!!$&&$.hasOwnProperty(k)&&(this.formDataModel[k]=deepClone($[k]))}),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue($){let k=this.getWidgetRef($);!!k&&!!k.getValue&&k.getValue()},setFieldValue($,k){let V=this.getWidgetRef($);!!V&&!!V.setValue&&V.setValue(k)},getSubFormValues($,k=!0){return this.subFormRefList[$].getSubFormValues(k)},disableForm(){Object.keys(this.widgetRefList).forEach($=>{let k=this.getWidgetRef($);k&&(!!k.widget&&k.widget.type==="sub-form"?k.disableSubForm():k.setDisabled&&k.setDisabled(!0))})},enableForm(){Object.keys(this.widgetRefList).forEach($=>{let k=this.getWidgetRef($);k&&(!!k.widget&&k.widget.type==="sub-form"?k.enableSubForm():k.setDisabled&&k.setDisabled(!1))})},resetForm(){Object.keys(this.subFormRefList).forEach($=>{this.subFormRefList[$].resetSubForm&&this.subFormRefList[$].resetSubForm()}),Object.keys(this.widgetRefList).forEach($=>{let k=this.getWidgetRef($);!!k&&!k.subFormItemFlag&&!!k.resetField&&k.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate($){this.$refs.renderForm.clearValidate($)},validateForm($){this.$refs.renderForm.validate(k=>{$(k)})},validateFields(){},disableWidgets($){$&&(typeof $=="string"?this.findWidgetAndSetDisabled($,!0):Array.isArray($)&&$.forEach(k=>{this.findWidgetAndSetDisabled(k,!0)}))},enableWidgets($){$&&(typeof $=="string"?this.findWidgetAndSetDisabled($,!1):Array.isArray($)&&$.forEach(k=>{this.findWidgetAndSetDisabled(k,!1)}))},hideWidgets($){$&&(typeof $=="string"?this.findWidgetAndSetHidden($,!0):Array.isArray($)&&$.forEach(k=>{this.findWidgetAndSetHidden(k,!0)}))},showWidgets($){$&&(typeof $=="string"?this.findWidgetAndSetHidden($,!1):Array.isArray($)&&$.forEach(k=>{this.findWidgetAndSetHidden(k,!1)}))},getFieldWidgets(){return getAllFieldWidgets(this.formJsonObj.widgetList)},getContainerWidgets(){return getAllContainerWidgets(this.formJsonObj.widgetList)},addEC($,k){this.externalComponents[$]=k},hasEC($){return this.externalComponents.hasOwnProperty($)},getEC($){return this.externalComponents[$]}}};function _sfc_render$2u($,k,V,z,j,oe){const re=require$$0$3.resolveComponent("el-form");return require$$0$3.openBlock(),require$$0$3.createBlock(re,{"label-position":oe.labelPosition,size:oe.size,class:require$$0$3.normalizeClass([[oe.customClass],"render-form"]),"label-width":oe.labelWidth,"validate-on-rule-change":!1,model:j.formDataModel,ref:"renderForm",onSubmit:k[0]||(k[0]=require$$0$3.withModifiers(()=>{},["prevent"]))},{default:require$$0$3.withCtx(()=>[(require$$0$3.openBlock(!0),require$$0$3.createElementBlock(require$$0$3.Fragment,null,require$$0$3.renderList(oe.widgetList,(ie,ae)=>(require$$0$3.openBlock(),require$$0$3.createElementBlock(require$$0$3.Fragment,null,[ie.category==="container"?(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(oe.getContainerWidgetName(ie)),{widget:ie,key:ie.id,"parent-list":oe.widgetList,"index-of-parent-list":ae,"parent-widget":null},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),he=>({name:he,fn:require$$0$3.withCtx(le=>[require$$0$3.renderSlot($.$slots,he,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(le)),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list"])):(require$$0$3.openBlock(),require$$0$3.createBlock(require$$0$3.resolveDynamicComponent(oe.getWidgetName(ie)),{field:ie,"form-model":j.formDataModel,designer:null,key:ie.id,"parent-list":oe.widgetList,"index-of-parent-list":ae,"parent-widget":null},require$$0$3.createSlots({_:2},[require$$0$3.renderList(Object.keys($.$slots),he=>({name:he,fn:require$$0$3.withCtx(le=>[require$$0$3.renderSlot($.$slots,he,require$$0$3.normalizeProps(require$$0$3.guardReactiveProps(le)),void 0,!0)])}))]),1032,["field","form-model","parent-list","index-of-parent-list"]))],64))),256))]),_:3},8,["label-position","size","class","label-width","model"])}var VFormRender=_export_sfc$1(_sfc_main$2u,[["render",_sfc_render$2u],["__scopeId","data-v-35de2ddd"]]),ace$2={exports:{}};(function($,k){(function(){var V="ace",z=function(){return this}();!z&&typeof window!="undefined"&&(z=window);var j=function(le,ue,de){if(typeof le!="string"){j.original?j.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(de=ue),j.modules[le]||(j.payloads[le]=de,j.modules[le]=null)};j.modules={},j.payloads={};var oe=function(le,ue,de){if(typeof ue=="string"){var pe=ae(le,ue);if(pe!=null)return de&&de(),pe}else if(Object.prototype.toString.call(ue)==="[object Array]"){for(var $e=[],_e=0,Ce=ue.length;_e=0?parseFloat((ie.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((ie.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),z.isOldIE=z.isIE&&z.isIE<9,z.isGecko=z.isMozilla=ie.match(/ Gecko\/\d+/),z.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",z.isWebKit=parseFloat(ie.split("WebKit/")[1])||void 0,z.isChrome=parseFloat(ie.split(" Chrome/")[1])||void 0,z.isEdge=parseFloat(ie.split(" Edge/")[1])||void 0,z.isAIR=ie.indexOf("AdobeAIR")>=0,z.isAndroid=ie.indexOf("Android")>=0,z.isChromeOS=ie.indexOf(" CrOS ")>=0,z.isIOS=/iPad|iPhone|iPod/.test(ie)&&!window.MSStream,z.isIOS&&(z.isMac=!0),z.isMobile=z.isIOS||z.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(V,z,j){var oe=V("./useragent"),re="http://www.w3.org/1999/xhtml";z.buildDom=function de(pe,$e,_e){if(typeof pe=="string"&&pe){var Ce=document.createTextNode(pe);return $e&&$e.appendChild(Ce),Ce}if(!Array.isArray(pe))return pe&&pe.appendChild&&$e&&$e.appendChild(pe),pe;if(typeof pe[0]!="string"||!pe[0]){for(var Ie=[],ze=0;ze=1.5:!0,oe.isChromeOS&&(z.HI_DPI=!1),typeof document!="undefined"){var ue=document.createElement("div");z.HI_DPI&&ue.style.transform!==void 0&&(z.HAS_CSS_TRANSFORMS=!0),!oe.isEdge&&typeof ue.style.animationName!="undefined"&&(z.HAS_CSS_ANIMATION=!0),ue=null}z.HAS_CSS_TRANSFORMS?z.translate=function(de,pe,$e){de.style.transform="translate("+Math.round(pe)+"px, "+Math.round($e)+"px)"}:z.translate=function(de,pe,$e){de.style.top=Math.round($e)+"px",de.style.left=Math.round(pe)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(V,z,j){z.inherits=function(oe,re){oe.super_=re,oe.prototype=Object.create(re.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}})},z.mixin=function(oe,re){for(var ie in re)oe[ie]=re[ie];return oe},z.implement=function(oe,re){z.mixin(oe,re)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(V,z,j){var oe=V("./oop"),re=function(){var ie={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},ae,he;for(he in ie.FUNCTION_KEYS)ae=ie.FUNCTION_KEYS[he].toLowerCase(),ie[ae]=parseInt(he,10);for(he in ie.PRINTABLE_KEYS)ae=ie.PRINTABLE_KEYS[he].toLowerCase(),ie[ae]=parseInt(he,10);return oe.mixin(ie,ie.MODIFIER_KEYS),oe.mixin(ie,ie.PRINTABLE_KEYS),oe.mixin(ie,ie.FUNCTION_KEYS),ie.enter=ie.return,ie.escape=ie.esc,ie.del=ie.delete,ie[173]="-",function(){for(var le=["cmd","ctrl","alt","shift"],ue=Math.pow(2,le.length);ue--;)ie.KEY_MODS[ue]=le.filter(function(de){return ue&ie.KEY_MODS[de]}).join("-")+"-"}(),ie.KEY_MODS[0]="",ie.KEY_MODS[-1]="input-",ie}();oe.mixin(z,re),z.keyCodeToString=function(ie){var ae=re[ie];return typeof ae!="string"&&(ae=String.fromCharCode(ie)),ae.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(V,z,j){var oe=V("./keys"),re=V("./useragent"),ie=null,ae=0,he;function le(){he=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){he={passive:!1}}})}catch{}}function ue(){return he==null&&le(),he}function de(Et,qe,Oe){this.elem=Et,this.type=qe,this.callback=Oe}de.prototype.destroy=function(){$e(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var pe=z.addListener=function(Et,qe,Oe,Ue){Et.addEventListener(qe,Oe,ue()),Ue&&Ue.$toDestroy.push(new de(Et,qe,Oe))},$e=z.removeListener=function(Et,qe,Oe){Et.removeEventListener(qe,Oe,ue())};z.stopEvent=function(Et){return z.stopPropagation(Et),z.preventDefault(Et),!1},z.stopPropagation=function(Et){Et.stopPropagation&&Et.stopPropagation()},z.preventDefault=function(Et){Et.preventDefault&&Et.preventDefault()},z.getButton=function(Et){return Et.type=="dblclick"?0:Et.type=="contextmenu"||re.isMac&&Et.ctrlKey&&!Et.altKey&&!Et.shiftKey?2:Et.button},z.capture=function(Et,qe,Oe){var Ue=Et&&Et.ownerDocument||document;function Dt(At){qe&&qe(At),Oe&&Oe(At),$e(Ue,"mousemove",qe),$e(Ue,"mouseup",Dt),$e(Ue,"dragstart",Dt)}return pe(Ue,"mousemove",qe),pe(Ue,"mouseup",Dt),pe(Ue,"dragstart",Dt),Dt},z.addMouseWheelListener=function(Et,qe,Oe){pe(Et,"wheel",function(Ue){var Dt=.15,At=Ue.deltaX||0,Lt=Ue.deltaY||0;switch(Ue.deltaMode){case Ue.DOM_DELTA_PIXEL:Ue.wheelX=At*Dt,Ue.wheelY=Lt*Dt;break;case Ue.DOM_DELTA_LINE:var kt=15;Ue.wheelX=At*kt,Ue.wheelY=Lt*kt;break;case Ue.DOM_DELTA_PAGE:var Pt=150;Ue.wheelX=At*Pt,Ue.wheelY=Lt*Pt;break}qe(Ue)},Oe)},z.addMultiMouseDownListener=function(Et,qe,Oe,Ue,Dt){var At=0,Lt,kt,Pt,jt={2:"dblclick",3:"tripleclick",4:"quadclick"};function vn($n){if(z.getButton($n)!==0?At=0:$n.detail>1?(At++,At>4&&(At=1)):At=1,re.isIE){var wn=Math.abs($n.clientX-Lt)>5||Math.abs($n.clientY-kt)>5;(!Pt||wn)&&(At=1),Pt&&clearTimeout(Pt),Pt=setTimeout(function(){Pt=null},qe[At-1]||600),At==1&&(Lt=$n.clientX,kt=$n.clientY)}if($n._clicks=At,Oe[Ue]("mousedown",$n),At>4)At=0;else if(At>1)return Oe[Ue](jt[At],$n)}Array.isArray(Et)||(Et=[Et]),Et.forEach(function($n){pe($n,"mousedown",vn,Dt)})};var _e=function(Et){return 0|(Et.ctrlKey?1:0)|(Et.altKey?2:0)|(Et.shiftKey?4:0)|(Et.metaKey?8:0)};z.getModifierString=function(Et){return oe.KEY_MODS[_e(Et)]};function Ce(Et,qe,Oe){var Ue=_e(qe);if(!re.isMac&&ie){if(qe.getModifierState&&(qe.getModifierState("OS")||qe.getModifierState("Win"))&&(Ue|=8),ie.altGr)if((3&Ue)!=3)ie.altGr=0;else return;if(Oe===18||Oe===17){var Dt="location"in qe?qe.location:qe.keyLocation;if(Oe===17&&Dt===1)ie[Oe]==1&&(ae=qe.timeStamp);else if(Oe===18&&Ue===3&&Dt===2){var At=qe.timeStamp-ae;At<50&&(ie.altGr=!0)}}}if(Oe in oe.MODIFIER_KEYS&&(Oe=-1),!Ue&&Oe===13){var Dt="location"in qe?qe.location:qe.keyLocation;if(Dt===3&&(Et(qe,Ue,-Oe),qe.defaultPrevented))return}if(re.isChromeOS&&Ue&8){if(Et(qe,Ue,Oe),qe.defaultPrevented)return;Ue&=-9}return!Ue&&!(Oe in oe.FUNCTION_KEYS)&&!(Oe in oe.PRINTABLE_KEYS)?!1:Et(qe,Ue,Oe)}z.addCommandKeyListener=function(Et,qe,Oe){if(re.isOldGecko||re.isOpera&&!("KeyboardEvent"in window)){var Ue=null;pe(Et,"keydown",function(At){Ue=At.keyCode},Oe),pe(Et,"keypress",function(At){return Ce(qe,At,Ue)},Oe)}else{var Dt=null;pe(Et,"keydown",function(At){ie[At.keyCode]=(ie[At.keyCode]||0)+1;var Lt=Ce(qe,At,At.keyCode);return Dt=At.defaultPrevented,Lt},Oe),pe(Et,"keypress",function(At){Dt&&(At.ctrlKey||At.altKey||At.shiftKey||At.metaKey)&&(z.stopEvent(At),Dt=null)},Oe),pe(Et,"keyup",function(At){ie[At.keyCode]=null},Oe),ie||(Ie(),pe(window,"focus",Ie))}};function Ie(){ie=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!re.isOldIE){var ze=1;z.nextTick=function(Et,qe){qe=qe||window;var Oe="zero-timeout-message-"+ze++,Ue=function(Dt){Dt.data==Oe&&(z.stopPropagation(Dt),$e(qe,"message",Ue),Et())};pe(qe,"message",Ue),qe.postMessage(Oe,"*")}}z.$idleBlocked=!1,z.onIdle=function(Et,qe){return setTimeout(function Oe(){z.$idleBlocked?setTimeout(Oe,100):Et()},qe)},z.$idleBlockId=null,z.blockIdle=function(Et){z.$idleBlockId&&clearTimeout(z.$idleBlockId),z.$idleBlocked=!0,z.$idleBlockId=setTimeout(function(){z.$idleBlocked=!1},Et||100)},z.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),z.nextFrame?z.nextFrame=z.nextFrame.bind(window):z.nextFrame=function(Et){setTimeout(Et,17)}}),ace.define("ace/range",["require","exports","module"],function(V,z,j){var oe=function(ie,ae){return ie.row-ae.row||ie.column-ae.column},re=function(ie,ae,he,le){this.start={row:ie,column:ae},this.end={row:he,column:le}};(function(){this.isEqual=function(ie){return this.start.row===ie.start.row&&this.end.row===ie.end.row&&this.start.column===ie.start.column&&this.end.column===ie.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(ie,ae){return this.compare(ie,ae)==0},this.compareRange=function(ie){var ae,he=ie.end,le=ie.start;return ae=this.compare(he.row,he.column),ae==1?(ae=this.compare(le.row,le.column),ae==1?2:ae==0?1:0):ae==-1?-2:(ae=this.compare(le.row,le.column),ae==-1?-1:ae==1?42:0)},this.comparePoint=function(ie){return this.compare(ie.row,ie.column)},this.containsRange=function(ie){return this.comparePoint(ie.start)==0&&this.comparePoint(ie.end)==0},this.intersects=function(ie){var ae=this.compareRange(ie);return ae==-1||ae==0||ae==1},this.isEnd=function(ie,ae){return this.end.row==ie&&this.end.column==ae},this.isStart=function(ie,ae){return this.start.row==ie&&this.start.column==ae},this.setStart=function(ie,ae){typeof ie=="object"?(this.start.column=ie.column,this.start.row=ie.row):(this.start.row=ie,this.start.column=ae)},this.setEnd=function(ie,ae){typeof ie=="object"?(this.end.column=ie.column,this.end.row=ie.row):(this.end.row=ie,this.end.column=ae)},this.inside=function(ie,ae){return this.compare(ie,ae)==0?!(this.isEnd(ie,ae)||this.isStart(ie,ae)):!1},this.insideStart=function(ie,ae){return this.compare(ie,ae)==0?!this.isEnd(ie,ae):!1},this.insideEnd=function(ie,ae){return this.compare(ie,ae)==0?!this.isStart(ie,ae):!1},this.compare=function(ie,ae){return!this.isMultiLine()&&ie===this.start.row?aethis.end.column?1:0:iethis.end.row?1:this.start.row===ie?ae>=this.start.column?0:-1:this.end.row===ie?ae<=this.end.column?0:1:0},this.compareStart=function(ie,ae){return this.start.row==ie&&this.start.column==ae?-1:this.compare(ie,ae)},this.compareEnd=function(ie,ae){return this.end.row==ie&&this.end.column==ae?1:this.compare(ie,ae)},this.compareInside=function(ie,ae){return this.end.row==ie&&this.end.column==ae?1:this.start.row==ie&&this.start.column==ae?-1:this.compare(ie,ae)},this.clipRows=function(ie,ae){if(this.end.row>ae)var he={row:ae+1,column:0};else if(this.end.rowae)var le={row:ae+1,column:0};else if(this.start.row0;)ae&1&&(he+=ie),(ae>>=1)&&(ie+=ie);return he};var oe=/^\s\s*/,re=/\s\s*$/;z.stringTrimLeft=function(ie){return ie.replace(oe,"")},z.stringTrimRight=function(ie){return ie.replace(re,"")},z.copyObject=function(ie){var ae={};for(var he in ie)ae[he]=ie[he];return ae},z.copyArray=function(ie){for(var ae=[],he=0,le=ie.length;heDate.now()-50?!0:oe=!1},cancel:function(){oe=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(V,z,j){var oe=V("../lib/event"),re=V("../lib/useragent"),ie=V("../lib/dom"),ae=V("../lib/lang"),he=V("../clipboard"),le=re.isChrome<18,ue=re.isIE,de=re.isChrome>63,pe=400,$e=V("../lib/keys"),_e=$e.KEY_MODS,Ce=re.isIOS,Ie=Ce?/\s/:/\n/,ze=re.isMobile,Et=function(qe,Oe){var Ue=ie.createElement("textarea");Ue.className="ace_text-input",Ue.setAttribute("wrap","off"),Ue.setAttribute("autocorrect","off"),Ue.setAttribute("autocapitalize","off"),Ue.setAttribute("spellcheck",!1),Ue.style.opacity="0",qe.insertBefore(Ue,qe.firstChild);var Dt=!1,At=!1,Lt=!1,kt=!1,Pt="";ze||(Ue.style.fontSize="1px");var jt=!1,vn=!1,$n="",wn=0,_n=0,En=0;try{var Sn=document.activeElement===Ue}catch{}oe.addListener(Ue,"blur",function(qn){vn||(Oe.onBlur(qn),Sn=!1)},Oe),oe.addListener(Ue,"focus",function(qn){if(!vn){if(Sn=!0,re.isEdge)try{if(!document.hasFocus())return}catch{}Oe.onFocus(qn),re.isEdge?setTimeout(An):An()}},Oe),this.$focusScroll=!1,this.focus=function(){if(Pt||de||this.$focusScroll=="browser")return Ue.focus({preventScroll:!0});var qn=Ue.style.top;Ue.style.position="fixed",Ue.style.top="0px";try{var In=Ue.getBoundingClientRect().top!=0}catch{return}var jn=[];if(In)for(var Kn=Ue.parentElement;Kn&&Kn.nodeType==1;)jn.push(Kn),Kn.setAttribute("ace_nocontext",!0),!Kn.parentElement&&Kn.getRootNode?Kn=Kn.getRootNode().host:Kn=Kn.parentElement;Ue.focus({preventScroll:!0}),In&&jn.forEach(function(so){so.removeAttribute("ace_nocontext")}),setTimeout(function(){Ue.style.position="",Ue.style.top=="0px"&&(Ue.style.top=qn)},0)},this.blur=function(){Ue.blur()},this.isFocused=function(){return Sn},Oe.on("beforeEndOperation",function(){var qn=Oe.curOp,In=qn&&qn.command&&qn.command.name;if(In!="insertstring"){var jn=In&&(qn.docChanged||qn.selectionChanged);Lt&&jn&&($n=Ue.value="",eo()),An()}});var An=Ce?function(qn){if(!(!Sn||Dt&&!qn||kt)){qn||(qn="");var In=` - ab`+qn+`cde fg -`;In!=Ue.value&&(Ue.value=$n=In);var jn=4,Kn=4+(qn.length||(Oe.selection.isEmpty()?0:1));(wn!=jn||_n!=Kn)&&Ue.setSelectionRange(jn,Kn),wn=jn,_n=Kn}}:function(){if(!(Lt||kt)&&!(!Sn&&!xn)){Lt=!0;var qn=0,In=0,jn="";if(Oe.session){var Kn=Oe.selection,so=Kn.getRange(),ro=Kn.cursor.row;if(qn=so.start.column,In=so.end.column,jn=Oe.session.getLine(ro),so.start.row!=ro){var vo=Oe.session.getLine(ro-1);qn=so.start.rowro+1?go.length:In,In+=jn.length+1,jn=jn+` -`+go}else ze&&ro>0&&(jn=` -`+jn,In+=1,qn+=1);jn.length>pe&&(qn=$n.length&&qn.value===$n&&$n&&qn.selectionEnd!==_n},Tn=function(qn){Lt||(Dt?Dt=!1:Cn(Ue)?(Oe.selectAll(),An()):ze&&Ue.selectionStart!=wn&&An())},Nn=null;this.setInputHandler=function(qn){Nn=qn},this.getInputHandler=function(){return Nn};var xn=!1,On=function(qn,In){if(xn&&(xn=!1),At)return An(),qn&&Oe.onPaste(qn),At=!1,"";for(var jn=Ue.selectionStart,Kn=Ue.selectionEnd,so=wn,ro=$n.length-_n,vo=qn,go=qn.length-jn,Dn=qn.length-Kn,Yn=0;so>0&&$n[Yn]==qn[Yn];)Yn++,so--;for(vo=vo.slice(Yn),Yn=1;ro>0&&$n.length-Yn>wn-1&&$n[$n.length-Yn]==qn[qn.length-Yn];)Yn++,ro--;go-=Yn-1,Dn-=Yn-1;var Gn=vo.length-Yn+1;if(Gn<0&&(so=-Gn,Gn=0),vo=vo.slice(0,Gn),!In&&!vo&&!go&&!so&&!ro&&!Dn)return"";kt=!0;var io=!1;return re.isAndroid&&vo==". "&&(vo=" ",io=!0),vo&&!so&&!ro&&!go&&!Dn||jt?Oe.onTextInput(vo):Oe.onTextInput(vo,{extendLeft:so,extendRight:ro,restoreStart:go,restoreEnd:Dn}),kt=!1,$n=qn,wn=jn,_n=Kn,En=Dn,io?` -`:vo},Ln=function(qn){if(Lt)return Hn();if(qn&&qn.inputType){if(qn.inputType=="historyUndo")return Oe.execCommand("undo");if(qn.inputType=="historyRedo")return Oe.execCommand("redo")}var In=Ue.value,jn=On(In,!0);(In.length>pe+100||Ie.test(jn)||ze&&wn<1&&wn==_n)&&An()},Bn=function(qn,In,jn){var Kn=qn.clipboardData||window.clipboardData;if(!(!Kn||le)){var so=ue||jn?"Text":"text/plain";try{return In?Kn.setData(so,In)!==!1:Kn.getData(so)}catch(ro){if(!jn)return Bn(ro,In,!0)}}},Vn=function(qn,In){var jn=Oe.getCopyText();if(!jn)return oe.preventDefault(qn);Bn(qn,jn)?(Ce&&(An(jn),Dt=jn,setTimeout(function(){Dt=!1},10)),In?Oe.onCut():Oe.onCopy(),oe.preventDefault(qn)):(Dt=!0,Ue.value=jn,Ue.select(),setTimeout(function(){Dt=!1,An(),In?Oe.onCut():Oe.onCopy()}))},Fn=function(qn){Vn(qn,!0)},zn=function(qn){Vn(qn,!1)},Xn=function(qn){var In=Bn(qn);he.pasteCancelled()||(typeof In=="string"?(In&&Oe.onPaste(In,qn),re.isIE&&setTimeout(An),oe.preventDefault(qn)):(Ue.value="",At=!0))};oe.addCommandKeyListener(Ue,Oe.onCommandKey.bind(Oe),Oe),oe.addListener(Ue,"select",Tn,Oe),oe.addListener(Ue,"input",Ln,Oe),oe.addListener(Ue,"cut",Fn,Oe),oe.addListener(Ue,"copy",zn,Oe),oe.addListener(Ue,"paste",Xn,Oe),(!("oncut"in Ue)||!("oncopy"in Ue)||!("onpaste"in Ue))&&oe.addListener(qe,"keydown",function(qn){if(!(re.isMac&&!qn.metaKey||!qn.ctrlKey))switch(qn.keyCode){case 67:zn(qn);break;case 86:Xn(qn);break;case 88:Fn(qn);break}},Oe);var Pn=function(qn){if(!(Lt||!Oe.onCompositionStart||Oe.$readOnly)&&(Lt={},!jt)){qn.data&&(Lt.useTextareaForIME=!1),setTimeout(Hn,0),Oe._signal("compositionStart"),Oe.on("mousedown",Qn);var In=Oe.getSelectionRange();In.end.row=In.start.row,In.end.column=In.start.column,Lt.markerRange=In,Lt.selectionStart=wn,Oe.onCompositionStart(Lt),Lt.useTextareaForIME?($n=Ue.value="",wn=0,_n=0):(Ue.msGetInputContext&&(Lt.context=Ue.msGetInputContext()),Ue.getInputContext&&(Lt.context=Ue.getInputContext()))}},Hn=function(){if(!(!Lt||!Oe.onCompositionUpdate||Oe.$readOnly)){if(jt)return Qn();if(Lt.useTextareaForIME)Oe.onCompositionUpdate(Ue.value);else{var qn=Ue.value;On(qn),Lt.markerRange&&(Lt.context&&(Lt.markerRange.start.column=Lt.selectionStart=Lt.context.compositionStartOffset),Lt.markerRange.end.column=Lt.markerRange.start.column+_n-Lt.selectionStart+En)}}},eo=function(qn){!Oe.onCompositionEnd||Oe.$readOnly||(Lt=!1,Oe.onCompositionEnd(),Oe.off("mousedown",Qn),qn&&Ln())};function Qn(){vn=!0,Ue.blur(),Ue.focus(),vn=!1}var ao=ae.delayedCall(Hn,50).schedule.bind(null,null);function ho(qn){qn.keyCode==27&&Ue.value.length_n&&$n[Dn]==` -`?Yn=$e.end:go_n&&$n.slice(0,Dn).split(` -`).length>2?Yn=$e.down:Dn>_n&&$n[Dn-1]==" "?(Yn=$e.right,Gn=_e.option):(Dn>_n||Dn==_n&&_n!=wn&&go==Dn)&&(Yn=$e.right),go!==Dn&&(Gn|=_e.shift),Yn){var io=In.onCommandKey({},Gn,Yn);if(!io&&In.commands){Yn=$e.keyCodeToString(Yn);var fo=In.commands.findKeyCommand(Gn,Yn);fo&&In.execCommand(fo)}wn=go,_n=Dn,An("")}}};document.addEventListener("selectionchange",ro),In.on("destroy",function(){document.removeEventListener("selectionchange",ro)})}};z.TextInput=Et,z.$setUserAgentForTests=function(qe,Oe){ze=qe,Ce=Oe}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(V,z,j){var oe=V("../lib/useragent"),re=0,ie=550;function ae(ue){ue.$clickSelection=null;var de=ue.editor;de.setDefaultHandler("mousedown",this.onMouseDown.bind(ue)),de.setDefaultHandler("dblclick",this.onDoubleClick.bind(ue)),de.setDefaultHandler("tripleclick",this.onTripleClick.bind(ue)),de.setDefaultHandler("quadclick",this.onQuadClick.bind(ue)),de.setDefaultHandler("mousewheel",this.onMouseWheel.bind(ue));var pe=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];pe.forEach(function($e){ue[$e]=this[$e]},this),ue.selectByLines=this.extendSelectionBy.bind(ue,"getLineRange"),ue.selectByWords=this.extendSelectionBy.bind(ue,"getWordRange")}(function(){this.onMouseDown=function(ue){var de=ue.inSelection(),pe=ue.getDocumentPosition();this.mousedownEvent=ue;var $e=this.editor,_e=ue.getButton();if(_e!==0){var Ce=$e.getSelectionRange(),Ie=Ce.isEmpty();(Ie||_e==1)&&$e.selection.moveToPosition(pe),_e==2&&($e.textInput.onContextMenu(ue.domEvent),oe.isMozilla||ue.preventDefault());return}if(this.mousedownEvent.time=Date.now(),de&&!$e.isFocused()&&($e.focus(),this.$focusTimeout&&!this.$clickSelection&&!$e.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(ue);return}return this.captureMouse(ue),this.startSelect(pe,ue.domEvent._clicks>1),ue.preventDefault()},this.startSelect=function(ue,de){ue=ue||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var pe=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?pe.selection.selectToPosition(ue):de||pe.selection.moveToPosition(ue),de||this.select(),pe.renderer.scroller.setCapture&&pe.renderer.scroller.setCapture(),pe.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var ue,de=this.editor,pe=de.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var $e=this.$clickSelection.comparePoint(pe);if($e==-1)ue=this.$clickSelection.end;else if($e==1)ue=this.$clickSelection.start;else{var _e=le(this.$clickSelection,pe);pe=_e.cursor,ue=_e.anchor}de.selection.setSelectionAnchor(ue.row,ue.column)}de.selection.selectToPosition(pe),de.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(ue){var de,pe=this.editor,$e=pe.renderer.screenToTextCoordinates(this.x,this.y),_e=pe.selection[ue]($e.row,$e.column);if(this.$clickSelection){var Ce=this.$clickSelection.comparePoint(_e.start),Ie=this.$clickSelection.comparePoint(_e.end);if(Ce==-1&&Ie<=0)de=this.$clickSelection.end,(_e.end.row!=$e.row||_e.end.column!=$e.column)&&($e=_e.start);else if(Ie==1&&Ce>=0)de=this.$clickSelection.start,(_e.start.row!=$e.row||_e.start.column!=$e.column)&&($e=_e.end);else if(Ce==-1&&Ie==1)$e=_e.end,de=_e.start;else{var ze=le(this.$clickSelection,$e);$e=ze.cursor,de=ze.anchor}pe.selection.setSelectionAnchor(de.row,de.column)}pe.selection.selectToPosition($e),pe.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var ue=he(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),de=Date.now();(ue>re||de-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(ue){var de=ue.getDocumentPosition(),pe=this.editor,$e=pe.session,_e=$e.getBracketRange(de);_e?(_e.isEmpty()&&(_e.start.column--,_e.end.column++),this.setState("select")):(_e=pe.selection.getWordRange(de.row,de.column),this.setState("selectByWords")),this.$clickSelection=_e,this.select()},this.onTripleClick=function(ue){var de=ue.getDocumentPosition(),pe=this.editor;this.setState("selectByLines");var $e=pe.getSelectionRange();$e.isMultiLine()&&$e.contains(de.row,de.column)?(this.$clickSelection=pe.selection.getLineRange($e.start.row),this.$clickSelection.end=pe.selection.getLineRange($e.end.row).end):this.$clickSelection=pe.selection.getLineRange(de.row),this.select()},this.onQuadClick=function(ue){var de=this.editor;de.selectAll(),this.$clickSelection=de.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(ue){if(!ue.getAccelKey()){ue.getShiftKey()&&ue.wheelY&&!ue.wheelX&&(ue.wheelX=ue.wheelY,ue.wheelY=0);var de=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var pe=this.$lastScroll,$e=ue.domEvent.timeStamp,_e=$e-pe.t,Ce=_e?ue.wheelX/_e:pe.vx,Ie=_e?ue.wheelY/_e:pe.vy;_e=1&&de.renderer.isScrollableBy(ue.wheelX*ue.speed,0)&&(Et=!0),ze<=1&&de.renderer.isScrollableBy(0,ue.wheelY*ue.speed)&&(Et=!0),Et)pe.allowed=$e;else if($e-pe.allowedde.session.documentToScreenRow(Lt.row,Lt.column))return Et()}if(Ie!=Ue)if(Ie=Ue.text.join("
"),$e.setHtml(Ie),$e.show(),de._signal("showGutterTooltip",$e),de.on("mousewheel",Et),ue.$tooltipFollowsMouse)qe(Ce);else{var kt=Ce.domEvent.target,Pt=kt.getBoundingClientRect(),jt=$e.getElement().style;jt.left=Pt.right+"px",jt.top=Pt.bottom+"px"}}function Et(){_e&&(_e=clearTimeout(_e)),Ie&&($e.hide(),Ie=null,de._signal("hideGutterTooltip",$e),de.off("mousewheel",Et))}function qe(Oe){$e.setPosition(Oe.x,Oe.y)}ue.editor.setDefaultHandler("guttermousemove",function(Oe){var Ue=Oe.domEvent.target||Oe.domEvent.srcElement;if(oe.hasCssClass(Ue,"ace_fold-widget"))return Et();Ie&&ue.$tooltipFollowsMouse&&qe(Oe),Ce=Oe,!_e&&(_e=setTimeout(function(){_e=null,Ce&&!ue.isMousePressed?ze():Et()},50))}),ie.addListener(de.renderer.$gutter,"mouseout",function(Oe){Ce=null,!(!Ie||_e)&&(_e=setTimeout(function(){_e=null,Et()},50))},de),de.on("changeSession",Et)}function le(ue){ae.call(this,ue)}re.inherits(le,ae),function(){this.setPosition=function(ue,de){var pe=window.innerWidth||document.documentElement.clientWidth,$e=window.innerHeight||document.documentElement.clientHeight,_e=this.getWidth(),Ce=this.getHeight();ue+=15,de+=15,ue+_e>pe&&(ue-=ue+_e-pe),de+Ce>$e&&(de-=20+Ce),ae.prototype.setPosition.call(this,ue,de)}}.call(le.prototype),z.GutterHandler=he}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(V,z,j){var oe=V("../lib/event"),re=V("../lib/useragent"),ie=z.MouseEvent=function(ae,he){this.domEvent=ae,this.editor=he,this.x=this.clientX=ae.clientX,this.y=this.clientY=ae.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){oe.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){oe.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var ae=this.editor,he=ae.getSelectionRange();if(he.isEmpty())this.$inSelection=!1;else{var le=this.getDocumentPosition();this.$inSelection=he.contains(le.row,le.column)}return this.$inSelection},this.getButton=function(){return oe.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=re.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(ie.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(V,z,j){var oe=V("../lib/dom"),re=V("../lib/event"),ie=V("../lib/useragent"),ae=200,he=200,le=5;function ue(pe){var $e=pe.editor,_e=oe.createElement("div");_e.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",_e.textContent="\xA0";var Ce=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];Ce.forEach(function(xn){pe[xn]=this[xn]},this),$e.on("mousedown",this.onMouseDown.bind(pe));var Ie=$e.container,ze,Et,qe,Oe,Ue,Dt,At=0,Lt,kt,Pt,jt,vn;this.onDragStart=function(xn){if(this.cancelDrag||!Ie.draggable){var On=this;return setTimeout(function(){On.startSelect(),On.captureMouse(xn)},0),xn.preventDefault()}Ue=$e.getSelectionRange();var Ln=xn.dataTransfer;Ln.effectAllowed=$e.getReadOnly()?"copy":"copyMove",$e.container.appendChild(_e),Ln.setDragImage&&Ln.setDragImage(_e,0,0),setTimeout(function(){$e.container.removeChild(_e)}),Ln.clearData(),Ln.setData("Text",$e.session.getTextRange()),kt=!0,this.setState("drag")},this.onDragEnd=function(xn){if(Ie.draggable=!1,kt=!1,this.setState(null),!$e.getReadOnly()){var On=xn.dataTransfer.dropEffect;!Lt&&On=="move"&&$e.session.remove($e.getSelectionRange()),$e.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(xn){if(!($e.getReadOnly()||!Tn(xn.dataTransfer)))return Et=xn.clientX,qe=xn.clientY,ze||En(),At++,xn.dataTransfer.dropEffect=Lt=Nn(xn),re.preventDefault(xn)},this.onDragOver=function(xn){if(!($e.getReadOnly()||!Tn(xn.dataTransfer)))return Et=xn.clientX,qe=xn.clientY,ze||(En(),At++),An!==null&&(An=null),xn.dataTransfer.dropEffect=Lt=Nn(xn),re.preventDefault(xn)},this.onDragLeave=function(xn){if(At--,At<=0&&ze)return Sn(),Lt=null,re.preventDefault(xn)},this.onDrop=function(xn){if(Dt){var On=xn.dataTransfer;if(kt)switch(Lt){case"move":Ue.contains(Dt.row,Dt.column)?Ue={start:Dt,end:Dt}:Ue=$e.moveText(Ue,Dt);break;case"copy":Ue=$e.moveText(Ue,Dt,!0);break}else{var Ln=On.getData("Text");Ue={start:Dt,end:$e.session.insert(Dt,Ln)},$e.focus(),Lt=null}return Sn(),re.preventDefault(xn)}},re.addListener(Ie,"dragstart",this.onDragStart.bind(pe),$e),re.addListener(Ie,"dragend",this.onDragEnd.bind(pe),$e),re.addListener(Ie,"dragenter",this.onDragEnter.bind(pe),$e),re.addListener(Ie,"dragover",this.onDragOver.bind(pe),$e),re.addListener(Ie,"dragleave",this.onDragLeave.bind(pe),$e),re.addListener(Ie,"drop",this.onDrop.bind(pe),$e);function $n(xn,On){var Ln=Date.now(),Bn=!On||xn.row!=On.row,Vn=!On||xn.column!=On.column;if(!jt||Bn||Vn)$e.moveCursorToPosition(xn),jt=Ln,vn={x:Et,y:qe};else{var Fn=de(vn.x,vn.y,Et,qe);Fn>le?jt=null:Ln-jt>=he&&($e.renderer.scrollCursorIntoView(),jt=null)}}function wn(xn,On){var Ln=Date.now(),Bn=$e.renderer.layerConfig.lineHeight,Vn=$e.renderer.layerConfig.characterWidth,Fn=$e.renderer.scroller.getBoundingClientRect(),zn={x:{left:Et-Fn.left,right:Fn.right-Et},y:{top:qe-Fn.top,bottom:Fn.bottom-qe}},Xn=Math.min(zn.x.left,zn.x.right),Pn=Math.min(zn.y.top,zn.y.bottom),Hn={row:xn.row,column:xn.column};Xn/Vn<=2&&(Hn.column+=zn.x.left=ae&&$e.renderer.scrollCursorIntoView(Hn):Pt=Ln:Pt=null}function _n(){var xn=Dt;Dt=$e.renderer.screenToTextCoordinates(Et,qe),$n(Dt,xn),wn(Dt,xn)}function En(){Ue=$e.selection.toOrientedRange(),ze=$e.session.addMarker(Ue,"ace_selection",$e.getSelectionStyle()),$e.clearSelection(),$e.isFocused()&&$e.renderer.$cursorLayer.setBlinking(!1),clearInterval(Oe),_n(),Oe=setInterval(_n,20),At=0,re.addListener(document,"mousemove",Cn)}function Sn(){clearInterval(Oe),$e.session.removeMarker(ze),ze=null,$e.selection.fromOrientedRange(Ue),$e.isFocused()&&!kt&&$e.$resetCursorStyle(),Ue=null,Dt=null,At=0,Pt=null,jt=null,re.removeListener(document,"mousemove",Cn)}var An=null;function Cn(){An==null&&(An=setTimeout(function(){An!=null&&ze&&Sn()},20))}function Tn(xn){var On=xn.types;return!On||Array.prototype.some.call(On,function(Ln){return Ln=="text/plain"||Ln=="Text"})}function Nn(xn){var On=["copy","copymove","all","uninitialized"],Ln=["move","copymove","linkmove","all","uninitialized"],Bn=ie.isMac?xn.altKey:xn.ctrlKey,Vn="uninitialized";try{Vn=xn.dataTransfer.effectAllowed.toLowerCase()}catch{}var Fn="none";return Bn&&On.indexOf(Vn)>=0?Fn="copy":Ln.indexOf(Vn)>=0?Fn="move":On.indexOf(Vn)>=0&&(Fn="copy"),Fn}}(function(){this.dragWait=function(){var pe=Date.now()-this.mousedownEvent.time;pe>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var pe=this.editor.container;pe.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(pe){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var pe=this.editor,$e=pe.container;$e.draggable=!0,pe.renderer.$cursorLayer.setBlinking(!1),pe.setStyle("ace_dragging");var _e=ie.isWin?"default":"move";pe.renderer.setCursorStyle(_e),this.setState("dragReady")},this.onMouseDrag=function(pe){var $e=this.editor.container;if(ie.isIE&&this.state=="dragReady"){var _e=de(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);_e>3&&$e.dragDrop()}if(this.state==="dragWait"){var _e=de(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);_e>0&&($e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(pe){if(this.$dragEnabled){this.mousedownEvent=pe;var $e=this.editor,_e=pe.inSelection(),Ce=pe.getButton(),Ie=pe.domEvent.detail||1;if(Ie===1&&Ce===0&&_e){if(pe.editor.inMultiSelectMode&&(pe.getAccelKey()||pe.getShiftKey()))return;this.mousedownEvent.time=Date.now();var ze=pe.domEvent.target||pe.domEvent.srcElement;if("unselectable"in ze&&(ze.unselectable="on"),$e.getDragDelay()){if(ie.isWebKit){this.cancelDrag=!0;var Et=$e.container;Et.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(pe,this.onMouseDrag.bind(this)),pe.defaultPrevented=!0}}}}).call(ue.prototype);function de(pe,$e,_e,Ce){return Math.sqrt(Math.pow(_e-pe,2)+Math.pow(Ce-$e,2))}z.DragdropHandler=ue}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(V,z,j){var oe=V("./mouse_event").MouseEvent,re=V("../lib/event"),ie=V("../lib/dom");z.addTouchListeners=function(ae,he){var le="scroll",ue,de,pe,$e,_e,Ce,Ie=0,ze,Et=0,qe=0,Oe=0,Ue,Dt;function At(){var $n=window.navigator&&window.navigator.clipboard,wn=!1,_n=function(){var Sn=he.getCopyText(),An=he.session.getUndoManager().hasUndo();Dt.replaceChild(ie.buildDom(wn?["span",!Sn&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Sn&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Sn&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$n&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],An&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),Dt.firstChild)},En=function(Sn){var An=Sn.target.getAttribute("action");if(An=="more"||!wn)return wn=!wn,_n();An=="paste"?$n.readText().then(function(Cn){he.execCommand(An,Cn)}):An&&((An=="cut"||An=="copy")&&($n?$n.writeText(he.getCopyText()):document.execCommand("copy")),he.execCommand(An)),Dt.firstChild.style.display="none",wn=!1,An!="openCommandPallete"&&he.focus()};Dt=ie.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Sn){le="menu",Sn.stopPropagation(),Sn.preventDefault(),he.textInput.focus()},ontouchend:function(Sn){Sn.stopPropagation(),Sn.preventDefault(),En(Sn)},onclick:En},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],he.container)}function Lt(){Dt||At();var $n=he.selection.cursor,wn=he.renderer.textToScreenCoordinates($n.row,$n.column),_n=he.renderer.textToScreenCoordinates(0,0).pageX,En=he.renderer.scrollLeft,Sn=he.container.getBoundingClientRect();Dt.style.top=wn.pageY-Sn.top-3+"px",wn.pageX-Sn.left=2?he.selection.getLineRange(ze.row):he.session.getBracketRange(ze);$n&&!$n.isEmpty()?he.selection.setRange($n):he.selection.selectWord(),le="wait"}re.addListener(ae,"contextmenu",function($n){if(Ue){var wn=he.textInput.getElement();wn.focus()}},he),re.addListener(ae,"touchstart",function($n){var wn=$n.touches;if(_e||wn.length>1){clearTimeout(_e),_e=null,pe=-1,le="zoom";return}Ue=he.$mouseHandler.isMousePressed=!0;var _n=he.renderer.layerConfig.lineHeight,En=he.renderer.layerConfig.lineHeight,Sn=$n.timeStamp;$e=Sn;var An=wn[0],Cn=An.clientX,Tn=An.clientY;Math.abs(ue-Cn)+Math.abs(de-Tn)>_n&&(pe=-1),ue=$n.clientX=Cn,de=$n.clientY=Tn,qe=Oe=0;var Nn=new oe($n,he);if(ze=Nn.getDocumentPosition(),Sn-pe<500&&wn.length==1&&!Ie)Et++,$n.preventDefault(),$n.button=0,jt();else{Et=0;var xn=he.selection.cursor,On=he.selection.isEmpty()?xn:he.selection.anchor,Ln=he.renderer.$cursorLayer.getPixelPosition(xn,!0),Bn=he.renderer.$cursorLayer.getPixelPosition(On,!0),Vn=he.renderer.scroller.getBoundingClientRect(),Fn=he.renderer.layerConfig.offset,zn=he.renderer.scrollLeft,Xn=function(eo,Qn){return eo=eo/En,Qn=Qn/_n-.75,eo*eo+Qn*Qn};if($n.clientXHn?"cursor":"anchor"),Hn<3.5?le="anchor":Pn<3.5?le="cursor":le="scroll",_e=setTimeout(Pt,450)}pe=Sn},he),re.addListener(ae,"touchend",function($n){Ue=he.$mouseHandler.isMousePressed=!1,Ce&&clearInterval(Ce),le=="zoom"?(le="",Ie=0):_e?(he.selection.moveToPosition(ze),Ie=0,Lt()):le=="scroll"?(vn(),kt()):Lt(),clearTimeout(_e),_e=null},he),re.addListener(ae,"touchmove",function($n){_e&&(clearTimeout(_e),_e=null);var wn=$n.touches;if(!(wn.length>1||le=="zoom")){var _n=wn[0],En=ue-_n.clientX,Sn=de-_n.clientY;if(le=="wait")if(En*En+Sn*Sn>4)le="cursor";else return $n.preventDefault();ue=_n.clientX,de=_n.clientY,$n.clientX=_n.clientX,$n.clientY=_n.clientY;var An=$n.timeStamp,Cn=An-$e;if($e=An,le=="scroll"){var Tn=new oe($n,he);Tn.speed=1,Tn.wheelX=En,Tn.wheelY=Sn,10*Math.abs(En)1&&(ze=Ce[Ce.length-2]);var qe=le[_e+"Path"];return qe==null?qe=le.basePath:Ie=="/"&&(_e=Ie=""),qe&&qe.slice(-1)!="/"&&(qe+="/"),qe+_e+Ie+ze+this.get("suffix")},z.setModuleUrl=function($e,_e){return le.$moduleUrls[$e]=_e},z.$loading={},z.loadModule=function($e,_e){var Ce,Ie;Array.isArray($e)&&(Ie=$e[0],$e=$e[1]);try{Ce=V($e)}catch{}if(Ce&&!z.$loading[$e])return _e&&_e(Ce);if(z.$loading[$e]||(z.$loading[$e]=[]),z.$loading[$e].push(_e),!(z.$loading[$e].length>1)){var ze=function(){V([$e],function(Et){z._emit("load.module",{name:$e,module:Et});var qe=z.$loading[$e];z.$loading[$e]=null,qe.forEach(function(Oe){Oe&&Oe(Et)})})};if(!z.get("packaged"))return ze();re.loadScript(z.moduleUrl($e,Ie),ze),ue()}};var ue=function(){!le.basePath&&!le.workerPath&&!le.modePath&&!le.themePath&&!Object.keys(le.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),ue=function(){})};de(!0);function de($e){if(!(!he||!he.document)){le.packaged=$e||V.packaged||j.packaged||he.define&&(void 0).packaged;for(var _e={},Ce="",Ie=document.currentScript||document._currentScript,ze=Ie&&Ie.ownerDocument||document,Et=ze.getElementsByTagName("script"),qe=0;qe0)if(Hn==16){for(ao=Qn;ao-1){for(ao=Qn;ao=0&&Bn[Un]==Ue;Un--)On[Un]=oe}}}function Cn(xn,On,Ln){if(!(re=xn){for(Fn=Vn+1;Fn=xn;)Fn++;for(zn=Vn,Xn=Fn-1;zn=On.length||(Fn=Ln[Bn-1])!=Ce&&Fn!=Ie||(zn=On[Bn+1])!=Ce&&zn!=Ie?ze:(ie&&(zn=Ie),zn==Fn?zn:ze);case At:return Fn=Bn>0?Ln[Bn-1]:Et,Fn==Ce&&Bn+10&&Ln[Bn-1]==Ce)return Ce;if(ie)return ze;for(Pn=Bn+1,Xn=On.length;Pn=1425&&Hn<=2303||Hn==64286;if(Fn=On[Pn],eo&&(Fn==_e||Fn==Oe))return _e}return Bn<1||(Fn=On[Bn-1])==Et?ze:Ln[Bn-1];case Et:return ie=!1,ae=!0,oe;case qe:return he=!0,ze;case Pt:case jt:case $n:case wn:case vn:ie=!1;case _n:return ze}}function Nn(xn){var On=xn.charCodeAt(0),Ln=On>>8;return Ln==0?On>191?$e:En[On]:Ln==5?/[\u0591-\u05f4]/.test(xn)?_e:$e:Ln==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(xn)?kt:/[\u0660-\u0669\u066b-\u066c]/.test(xn)?Ie:On==1642?Lt:/[\u06f0-\u06f9]/.test(xn)?Ce:Oe:Ln==32&&On<=8287?Sn[On&255]:Ln==254&&On>=65136?Oe:ze}z.L=$e,z.R=_e,z.EN=Ce,z.ON_R=3,z.AN=4,z.R_H=5,z.B=6,z.RLE=7,z.DOT="\xB7",z.doBidiReorder=function(xn,On,Ln){if(xn.length<2)return{};var Bn=xn.split(""),Vn=new Array(Bn.length),Fn=new Array(Bn.length),zn=[];oe=Ln?pe:de,An(Bn,zn,Bn.length,On);for(var Xn=0;XnOe&&On[Xn]0&&Bn[Xn-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(Bn[Xn])&&(zn[Xn-1]=zn[Xn]=z.R_H,Xn++);Bn[Bn.length-1]===z.DOT&&(zn[Bn.length-1]=z.B),Bn[0]==="\u202B"&&(zn[0]=z.RLE);for(var Xn=0;Xn=0&&(he=this.session.$docRowCache[ue])}return he},this.getSplitIndex=function(){var he=0,le=this.session.$screenRowCache;if(le.length)for(var ue,de=this.session.$getRowCacheIndex(le,this.currentRow);this.currentRow-he>0&&(ue=this.session.$getRowCacheIndex(le,this.currentRow-he-1),ue===de);)de=ue,he++;else he=this.currentRow;return he},this.updateRowLine=function(he,le){he===void 0&&(he=this.getDocumentRow());var ue=he===this.session.getLength()-1,de=ue?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(he),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var pe=this.session.$wrapData[he];pe&&(le===void 0&&(le=this.getSplitIndex()),le>0&&pe.length?(this.wrapIndent=pe.indent,this.wrapOffset=this.wrapIndent*this.charWidths[oe.L],this.line=lele?this.session.getOverwrite()?he:he-1:le,de=oe.getVisualFromLogicalIdx(ue,this.bidiMap),pe=this.bidiMap.bidiLevels,$e=0;!this.session.getOverwrite()&&he<=le&&pe[de]%2!=0&&de++;for(var _e=0;_ele&&pe[de]%2==0&&($e+=this.charWidths[pe[de]]),this.wrapIndent&&($e+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&($e+=this.rtlLineOffset),$e},this.getSelections=function(he,le){var ue=this.bidiMap,de=ue.bidiLevels,pe,$e=[],_e=0,Ce=Math.min(he,le)-this.wrapIndent,Ie=Math.max(he,le)-this.wrapIndent,ze=!1,Et=!1,qe=0;this.wrapIndent&&(_e+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var Oe,Ue=0;Ue=Ce&&Oede+_e/2;){if(de+=_e,pe===$e.length-1){_e=0;break}_e=this.charWidths[$e[++pe]]}return pe>0&&$e[pe-1]%2!=0&&$e[pe]%2==0?(ue0&&$e[pe-1]%2==0&&$e[pe]%2!=0?le=1+(ue>de?this.bidiMap.logicalFromVisual[pe]:this.bidiMap.logicalFromVisual[pe-1]):this.isRtlDir&&pe===$e.length-1&&_e===0&&$e[pe-1]%2==0||!this.isRtlDir&&pe===0&&$e[pe]%2!=0?le=1+this.bidiMap.logicalFromVisual[pe]:(pe>0&&$e[pe-1]%2!=0&&_e!==0&&pe--,le=this.bidiMap.logicalFromVisual[pe]),le===0&&this.isRtlDir&&le++,le+this.wrapIndent}}).call(ae.prototype),z.BidiHandler=ae}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(V,z,j){var oe=V("./lib/oop"),re=V("./lib/lang"),ie=V("./lib/event_emitter").EventEmitter,ae=V("./range").Range,he=function(le){this.session=le,this.doc=le.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var ue=this;this.cursor.on("change",function(de){ue.$cursorChanged=!0,ue.$silent||ue._emit("changeCursor"),!ue.$isEmpty&&!ue.$silent&&ue._emit("changeSelection"),!ue.$keepDesiredColumnOnChange&&de.old.column!=de.value.column&&(ue.$desiredColumn=null)}),this.anchor.on("change",function(){ue.$anchorChanged=!0,!ue.$isEmpty&&!ue.$silent&&ue._emit("changeSelection")})};(function(){oe.implement(this,ie),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(le,ue){this.$isEmpty=!1,this.anchor.setPosition(le,ue)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var le=this.anchor,ue=this.lead;return le.row>ue.row||le.row==ue.row&&le.column>ue.column},this.getRange=function(){var le=this.anchor,ue=this.lead;return this.$isEmpty?ae.fromPoints(ue,ue):this.isBackwards()?ae.fromPoints(ue,le):ae.fromPoints(le,ue)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(le,ue){var de=ue?le.end:le.start,pe=ue?le.start:le.end;this.$setSelection(de.row,de.column,pe.row,pe.column)},this.$setSelection=function(le,ue,de,pe){if(!this.$silent){var $e=this.$isEmpty,_e=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(le,ue),this.cursor.setPosition(de,pe),this.$isEmpty=!ae.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||$e!=this.$isEmpty||_e)&&this._emit("changeSelection")}},this.$moveSelection=function(le){var ue=this.lead;this.$isEmpty&&this.setSelectionAnchor(ue.row,ue.column),le.call(this)},this.selectTo=function(le,ue){this.$moveSelection(function(){this.moveCursorTo(le,ue)})},this.selectToPosition=function(le){this.$moveSelection(function(){this.moveCursorToPosition(le)})},this.moveTo=function(le,ue){this.clearSelection(),this.moveCursorTo(le,ue)},this.moveToPosition=function(le){this.clearSelection(),this.moveCursorToPosition(le)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(le,ue){if(typeof ue=="undefined"){var de=le||this.lead;le=de.row,ue=de.column}return this.session.getWordRange(le,ue)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var le=this.getCursor(),ue=this.session.getAWordRange(le.row,le.column);this.setSelectionRange(ue)},this.getLineRange=function(le,ue){var de=typeof le=="number"?le:this.lead.row,pe,$e=this.session.getFoldLine(de);return $e?(de=$e.start.row,pe=$e.end.row):pe=de,ue===!0?new ae(de,0,pe,this.session.getLine(pe).length):new ae(de,0,pe+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(le,ue,de){var pe=le.column,$e=le.column+ue;return de<0&&(pe=le.column-ue,$e=le.column),this.session.isTabStop(le)&&this.doc.getLine(le.row).slice(pe,$e).split(" ").length-1==ue},this.moveCursorLeft=function(){var le=this.lead.getPosition(),ue;if(ue=this.session.getFoldAt(le.row,le.column,-1))this.moveCursorTo(ue.start.row,ue.start.column);else if(le.column===0)le.row>0&&this.moveCursorTo(le.row-1,this.doc.getLine(le.row-1).length);else{var de=this.session.getTabSize();this.wouldMoveIntoSoftTab(le,de,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-de):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var le=this.lead.getPosition(),ue;if(ue=this.session.getFoldAt(le.row,le.column,1))this.moveCursorTo(ue.end.row,ue.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(ue.column=pe)}}this.moveCursorTo(ue.row,ue.column)},this.moveCursorFileEnd=function(){var le=this.doc.getLength()-1,ue=this.doc.getLine(le).length;this.moveCursorTo(le,ue)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var le=this.lead.row,ue=this.lead.column,de=this.doc.getLine(le),pe=de.substring(ue);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var $e=this.session.getFoldAt(le,ue,1);if($e){this.moveCursorTo($e.end.row,$e.end.column);return}if(this.session.nonTokenRe.exec(pe)&&(ue+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,pe=de.substring(ue)),ue>=de.length){this.moveCursorTo(le,de.length),this.moveCursorRight(),le0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec($e)&&(ue-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(le,ue)},this.$shortWordEndIndex=function(le){var ue=0,de,pe=/\s/,$e=this.session.tokenRe;if($e.lastIndex=0,this.session.tokenRe.exec(le))ue=this.session.tokenRe.lastIndex;else{for(;(de=le[ue])&&pe.test(de);)ue++;if(ue<1){for($e.lastIndex=0;(de=le[ue])&&!$e.test(de);)if($e.lastIndex=0,ue++,pe.test(de))if(ue>2){ue--;break}else{for(;(de=le[ue])&&pe.test(de);)ue++;if(ue>2)break}}}return $e.lastIndex=0,ue},this.moveCursorShortWordRight=function(){var le=this.lead.row,ue=this.lead.column,de=this.doc.getLine(le),pe=de.substring(ue),$e=this.session.getFoldAt(le,ue,1);if($e)return this.moveCursorTo($e.end.row,$e.end.column);if(ue==de.length){var _e=this.doc.getLength();do le++,pe=this.doc.getLine(le);while(le<_e&&/^\s*$/.test(pe));/^\s+/.test(pe)||(pe=""),ue=0}var Ce=this.$shortWordEndIndex(pe);this.moveCursorTo(le,ue+Ce)},this.moveCursorShortWordLeft=function(){var le=this.lead.row,ue=this.lead.column,de;if(de=this.session.getFoldAt(le,ue,-1))return this.moveCursorTo(de.start.row,de.start.column);var pe=this.session.getLine(le).substring(0,ue);if(ue===0){do le--,pe=this.doc.getLine(le);while(le>0&&/^\s*$/.test(pe));ue=pe.length,/\s+$/.test(pe)||(pe="")}var $e=re.stringReverse(pe),_e=this.$shortWordEndIndex($e);return this.moveCursorTo(le,ue-_e)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(le,ue){var de=this.session.documentToScreenPosition(this.lead.row,this.lead.column),pe;if(ue===0&&(le!==0&&(this.session.$bidiHandler.isBidiRow(de.row,this.lead.row)?(pe=this.session.$bidiHandler.getPosLeft(de.column),de.column=Math.round(pe/this.session.$bidiHandler.charWidths[0])):pe=de.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?de.column=this.$desiredColumn:this.$desiredColumn=de.column),le!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var $e=this.session.lineWidgets[this.lead.row];le<0?le-=$e.rowsAbove||0:le>0&&(le+=$e.rowCount-($e.rowsAbove||0))}var _e=this.session.screenToDocumentPosition(de.row+le,de.column,pe);le!==0&&ue===0&&_e.row===this.lead.row&&(_e.column,this.lead.column),this.moveCursorTo(_e.row,_e.column+ue,ue===0)},this.moveCursorToPosition=function(le){this.moveCursorTo(le.row,le.column)},this.moveCursorTo=function(le,ue,de){var pe=this.session.getFoldAt(le,ue,1);pe&&(le=pe.start.row,ue=pe.start.column),this.$keepDesiredColumnOnChange=!0;var $e=this.session.getLine(le);/[\uDC00-\uDFFF]/.test($e.charAt(ue))&&$e.charAt(ue-1)&&(this.lead.row==le&&this.lead.column==ue+1?ue=ue-1:ue=ue+1),this.lead.setPosition(le,ue),this.$keepDesiredColumnOnChange=!1,de||(this.$desiredColumn=null)},this.moveCursorToScreen=function(le,ue,de){var pe=this.session.screenToDocumentPosition(le,ue);this.moveCursorTo(pe.row,pe.column,de)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(le){this.setSelectionRange(le,le.cursor==le.start),this.$desiredColumn=le.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(le){var ue=this.getRange();return le?(le.start.column=ue.start.column,le.start.row=ue.start.row,le.end.column=ue.end.column,le.end.row=ue.end.row):le=ue,le.cursor=this.isBackwards()?le.start:le.end,le.desiredColumn=this.$desiredColumn,le},this.getRangeOfMovements=function(le){var ue=this.getCursor();try{le(this);var de=this.getCursor();return ae.fromPoints(ue,de)}catch{return ae.fromPoints(ue,ue)}finally{this.moveCursorToPosition(ue)}},this.toJSON=function(){if(this.rangeCount)var le=this.ranges.map(function(ue){var de=ue.clone();return de.isBackwards=ue.cursor==ue.start,de});else{var le=this.getRange();le.isBackwards=this.isBackwards()}return le},this.fromJSON=function(le){if(le.start==null)if(this.rangeList&&le.length>1){this.toSingleRange(le[0]);for(var ue=le.length;ue--;){var de=ae.fromPoints(le[ue].start,le[ue].end);le[ue].isBackwards&&(de.cursor=de.start),this.addRange(de,!0)}return}else le=le[0];this.rangeList&&this.toSingleRange(le),this.setSelectionRange(le,le.isBackwards)},this.isEqual=function(le){if((le.length||this.rangeCount)&&le.length!=this.rangeCount)return!1;if(!le.length||!this.ranges)return this.getRange().isEqual(le);for(var ue=this.ranges.length;ue--;)if(!this.ranges[ue].isEqual(le[ue]))return!1;return!0}}).call(he.prototype),z.Selection=he}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(V,z,j){var oe=V("./config"),re=2e3,ie=function(ae){this.states=ae,this.regExps={},this.matchMappings={};for(var he in this.states){for(var le=this.states[he],ue=[],de=0,pe=this.matchMappings[he]={defaultToken:"text"},$e="g",_e=[],Ce=0;Ce1?Ie.onMatch=this.$applyToken:Ie.onMatch=Ie.token),Et>1&&(/\\\d/.test(Ie.regex)?ze=Ie.regex.replace(/\\([0-9]+)/g,function(qe,Oe){return"\\"+(parseInt(Oe,10)+de+1)}):(Et=1,ze=this.removeCapturingGroups(Ie.regex)),!Ie.splitRegex&&typeof Ie.token!="string"&&_e.push(Ie)),pe[de]=Ce,de+=Et,ue.push(ze),Ie.onMatch||(Ie.onMatch=null)}}ue.length||(pe[0]=0,ue.push("$")),_e.forEach(function(qe){qe.splitRegex=this.createSplitterRegexp(qe.regex,$e)},this),this.regExps[he]=new RegExp("("+ue.join(")|(")+")|($)",$e)}};(function(){this.$setMaxTokenCount=function(ae){re=ae|0},this.$applyToken=function(ae){var he=this.splitRegex.exec(ae).slice(1),le=this.token.apply(this,he);if(typeof le=="string")return[{type:le,value:ae}];for(var ue=[],de=0,pe=le.length;deIe){var At=ae.substring(Ie,Dt-Ue.length);Et.type==qe?Et.value+=At:(Et.type&&Ce.push(Et),Et={type:qe,value:At})}for(var Lt=0;Lt<_e.length-2;Lt++)if(_e[Lt+1]!==void 0){Oe=de[pe[Lt]],Oe.onMatch?qe=Oe.onMatch(Ue,ue,le,ae):qe=Oe.token,Oe.next&&(typeof Oe.next=="string"?ue=Oe.next:ue=Oe.next(ue,le),de=this.states[ue],de||(this.reportError("state doesn't exist",ue),ue="start",de=this.states[ue]),pe=this.matchMappings[ue],Ie=Dt,$e=this.regExps[ue],$e.lastIndex=Dt),Oe.consumeLineEnd&&(Ie=Dt);break}if(Ue){if(typeof qe=="string")(!Oe||Oe.merge!==!1)&&Et.type===qe?Et.value+=Ue:(Et.type&&Ce.push(Et),Et={type:qe,value:Ue});else if(qe){Et.type&&Ce.push(Et),Et={type:null,value:""};for(var Lt=0;Ltre){for(ze>2*ae.length&&this.reportError("infinite loop with in ace tokenizer",{startState:he,line:ae});Ie1&&le[0]!==ue&&le.unshift("#tmp",ue),{tokens:Ce,state:le.length?le:ue}},this.reportError=oe.reportError}).call(ie.prototype),z.Tokenizer=ie}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(V,z,j){var oe=V("../lib/lang"),re=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(he,le){if(!le){for(var ue in he)this.$rules[ue]=he[ue];return}for(var ue in he){for(var de=he[ue],pe=0;pe=this.$rowTokens.length;){if(this.$row+=1,ie||(ie=this.$session.getLength()),this.$row>=ie)return this.$row=ie-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var ie=this.$rowTokens,ae=this.$tokenIndex,he=ie[ae].start;if(he!==void 0)return he;for(he=0;ae>0;)ae-=1,he+=ie[ae].value.length;return he},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var ie=this.$rowTokens[this.$tokenIndex],ae=this.getCurrentTokenColumn();return new oe(this.$row,ae,this.$row,ae+ie.value.length)}}).call(re.prototype),z.TokenIterator=re}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(V,z,j){var oe=V("../../lib/oop"),re=V("../behaviour").Behaviour,ie=V("../../token_iterator").TokenIterator,ae=V("../../lib/lang"),he=["text","paren.rparen","rparen","paren","punctuation.operator"],le=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],ue,de={},pe={'"':'"',"'":"'"},$e=function(Ie){var ze=-1;if(Ie.multiSelect&&(ze=Ie.selection.index,de.rangeCount!=Ie.multiSelect.rangeCount&&(de={rangeCount:Ie.multiSelect.rangeCount})),de[ze])return ue=de[ze];ue=de[ze]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},_e=function(Ie,ze,Et,qe){var Oe=Ie.end.row-Ie.start.row;return{text:Et+ze+qe,selection:[0,Ie.start.column+1,Oe,Ie.end.column+(Oe?0:1)]}},Ce=function(Ie){this.add("braces","insertion",function(ze,Et,qe,Oe,Ue){var Dt=qe.getCursorPosition(),At=Oe.doc.getLine(Dt.row);if(Ue=="{"){$e(qe);var Lt=qe.getSelectionRange(),kt=Oe.doc.getTextRange(Lt);if(kt!==""&&kt!=="{"&&qe.getWrapBehavioursEnabled())return _e(Lt,kt,"{","}");if(Ce.isSaneInsertion(qe,Oe))return/[\]\}\)]/.test(At[Dt.column])||qe.inMultiSelectMode||Ie&&Ie.braces?(Ce.recordAutoInsert(qe,Oe,"}"),{text:"{}",selection:[1,1]}):(Ce.recordMaybeInsert(qe,Oe,"{"),{text:"{",selection:[1,1]})}else if(Ue=="}"){$e(qe);var Pt=At.substring(Dt.column,Dt.column+1);if(Pt=="}"){var jt=Oe.$findOpeningBracket("}",{column:Dt.column+1,row:Dt.row});if(jt!==null&&Ce.isAutoInsertedClosing(Dt,At,Ue))return Ce.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(Ue==` -`||Ue==`\r -`){$e(qe);var vn="";Ce.isMaybeInsertedClosing(Dt,At)&&(vn=ae.stringRepeat("}",ue.maybeInsertedBrackets),Ce.clearMaybeInsertedClosing());var Pt=At.substring(Dt.column,Dt.column+1);if(Pt==="}"){var $n=Oe.findMatchingBracket({row:Dt.row,column:Dt.column+1},"}");if(!$n)return null;var wn=this.$getIndent(Oe.getLine($n.row))}else if(vn)var wn=this.$getIndent(At);else{Ce.clearMaybeInsertedClosing();return}var _n=wn+Oe.getTabString();return{text:` -`+_n+` -`+wn+vn,selection:[1,_n.length,1,_n.length]}}else Ce.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(ze,Et,qe,Oe,Ue){var Dt=Oe.doc.getTextRange(Ue);if(!Ue.isMultiLine()&&Dt=="{"){$e(qe);var At=Oe.doc.getLine(Ue.start.row),Lt=At.substring(Ue.end.column,Ue.end.column+1);if(Lt=="}")return Ue.end.column++,Ue;ue.maybeInsertedBrackets--}}),this.add("parens","insertion",function(ze,Et,qe,Oe,Ue){if(Ue=="("){$e(qe);var Dt=qe.getSelectionRange(),At=Oe.doc.getTextRange(Dt);if(At!==""&&qe.getWrapBehavioursEnabled())return _e(Dt,At,"(",")");if(Ce.isSaneInsertion(qe,Oe))return Ce.recordAutoInsert(qe,Oe,")"),{text:"()",selection:[1,1]}}else if(Ue==")"){$e(qe);var Lt=qe.getCursorPosition(),kt=Oe.doc.getLine(Lt.row),Pt=kt.substring(Lt.column,Lt.column+1);if(Pt==")"){var jt=Oe.$findOpeningBracket(")",{column:Lt.column+1,row:Lt.row});if(jt!==null&&Ce.isAutoInsertedClosing(Lt,kt,Ue))return Ce.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(ze,Et,qe,Oe,Ue){var Dt=Oe.doc.getTextRange(Ue);if(!Ue.isMultiLine()&&Dt=="("){$e(qe);var At=Oe.doc.getLine(Ue.start.row),Lt=At.substring(Ue.start.column+1,Ue.start.column+2);if(Lt==")")return Ue.end.column++,Ue}}),this.add("brackets","insertion",function(ze,Et,qe,Oe,Ue){if(Ue=="["){$e(qe);var Dt=qe.getSelectionRange(),At=Oe.doc.getTextRange(Dt);if(At!==""&&qe.getWrapBehavioursEnabled())return _e(Dt,At,"[","]");if(Ce.isSaneInsertion(qe,Oe))return Ce.recordAutoInsert(qe,Oe,"]"),{text:"[]",selection:[1,1]}}else if(Ue=="]"){$e(qe);var Lt=qe.getCursorPosition(),kt=Oe.doc.getLine(Lt.row),Pt=kt.substring(Lt.column,Lt.column+1);if(Pt=="]"){var jt=Oe.$findOpeningBracket("]",{column:Lt.column+1,row:Lt.row});if(jt!==null&&Ce.isAutoInsertedClosing(Lt,kt,Ue))return Ce.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(ze,Et,qe,Oe,Ue){var Dt=Oe.doc.getTextRange(Ue);if(!Ue.isMultiLine()&&Dt=="["){$e(qe);var At=Oe.doc.getLine(Ue.start.row),Lt=At.substring(Ue.start.column+1,Ue.start.column+2);if(Lt=="]")return Ue.end.column++,Ue}}),this.add("string_dquotes","insertion",function(ze,Et,qe,Oe,Ue){var Dt=Oe.$mode.$quotes||pe;if(Ue.length==1&&Dt[Ue]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(Ue)!=-1)return;$e(qe);var At=Ue,Lt=qe.getSelectionRange(),kt=Oe.doc.getTextRange(Lt);if(kt!==""&&(kt.length!=1||!Dt[kt])&&qe.getWrapBehavioursEnabled())return _e(Lt,kt,At,At);if(!kt){var Pt=qe.getCursorPosition(),jt=Oe.doc.getLine(Pt.row),vn=jt.substring(Pt.column-1,Pt.column),$n=jt.substring(Pt.column,Pt.column+1),wn=Oe.getTokenAt(Pt.row,Pt.column),_n=Oe.getTokenAt(Pt.row,Pt.column+1);if(vn=="\\"&&wn&&/escape/.test(wn.type))return null;var En=wn&&/string|escape/.test(wn.type),Sn=!_n||/string|escape/.test(_n.type),An;if($n==At)An=En!==Sn,An&&/string\.end/.test(_n.type)&&(An=!1);else{if(En&&!Sn||En&&Sn)return null;var Cn=Oe.$mode.tokenRe;Cn.lastIndex=0;var Tn=Cn.test(vn);Cn.lastIndex=0;var Nn=Cn.test(vn);if(Tn||Nn||$n&&!/[\s;,.})\]\\]/.test($n))return null;var xn=jt[Pt.column-2];if(vn==At&&(xn==At||Cn.test(xn)))return null;An=!0}return{text:An?At+At:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(ze,Et,qe,Oe,Ue){var Dt=Oe.$mode.$quotes||pe,At=Oe.doc.getTextRange(Ue);if(!Ue.isMultiLine()&&Dt.hasOwnProperty(At)){$e(qe);var Lt=Oe.doc.getLine(Ue.start.row),kt=Lt.substring(Ue.start.column+1,Ue.start.column+2);if(kt==At)return Ue.end.column++,Ue}})};Ce.isSaneInsertion=function(Ie,ze){var Et=Ie.getCursorPosition(),qe=new ie(ze,Et.row,Et.column);if(!this.$matchTokenType(qe.getCurrentToken()||"text",he)){if(/[)}\]]/.test(Ie.session.getLine(Et.row)[Et.column]))return!0;var Oe=new ie(ze,Et.row,Et.column+1);if(!this.$matchTokenType(Oe.getCurrentToken()||"text",he))return!1}return qe.stepForward(),qe.getCurrentTokenRow()!==Et.row||this.$matchTokenType(qe.getCurrentToken()||"text",le)},Ce.$matchTokenType=function(Ie,ze){return ze.indexOf(Ie.type||Ie)>-1},Ce.recordAutoInsert=function(Ie,ze,Et){var qe=Ie.getCursorPosition(),Oe=ze.doc.getLine(qe.row);this.isAutoInsertedClosing(qe,Oe,ue.autoInsertedLineEnd[0])||(ue.autoInsertedBrackets=0),ue.autoInsertedRow=qe.row,ue.autoInsertedLineEnd=Et+Oe.substr(qe.column),ue.autoInsertedBrackets++},Ce.recordMaybeInsert=function(Ie,ze,Et){var qe=Ie.getCursorPosition(),Oe=ze.doc.getLine(qe.row);this.isMaybeInsertedClosing(qe,Oe)||(ue.maybeInsertedBrackets=0),ue.maybeInsertedRow=qe.row,ue.maybeInsertedLineStart=Oe.substr(0,qe.column)+Et,ue.maybeInsertedLineEnd=Oe.substr(qe.column),ue.maybeInsertedBrackets++},Ce.isAutoInsertedClosing=function(Ie,ze,Et){return ue.autoInsertedBrackets>0&&Ie.row===ue.autoInsertedRow&&Et===ue.autoInsertedLineEnd[0]&&ze.substr(Ie.column)===ue.autoInsertedLineEnd},Ce.isMaybeInsertedClosing=function(Ie,ze){return ue.maybeInsertedBrackets>0&&Ie.row===ue.maybeInsertedRow&&ze.substr(Ie.column)===ue.maybeInsertedLineEnd&&ze.substr(0,Ie.column)==ue.maybeInsertedLineStart},Ce.popAutoInsertedClosing=function(){ue.autoInsertedLineEnd=ue.autoInsertedLineEnd.substr(1),ue.autoInsertedBrackets--},Ce.clearMaybeInsertedClosing=function(){ue&&(ue.maybeInsertedBrackets=0,ue.maybeInsertedRow=-1)},oe.inherits(Ce,re),z.CstyleBehaviour=Ce}),ace.define("ace/unicode",["require","exports","module"],function(V,z,j){for(var oe=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],re=0,ie=[],ae=0;ae2?Nn%Ue!=Ue-1:Nn%Ue==0}}else{if(!this.blockComment)return!1;var Lt=this.blockComment.start,wn=this.blockComment.end,At=new RegExp("^(\\s*)(?:"+le.escapeRegExp(Lt)+")"),_n=new RegExp("(?:"+le.escapeRegExp(wn)+")\\s*$"),jt=function(On,Ln){vn(On,Ln)||(!Et||/\S/.test(On))&&(ze.insertInLine({row:Ln,column:On.length},wn),ze.insertInLine({row:Ln,column:Oe},Lt))},kt=function(On,Ln){var Bn;(Bn=On.match(_n))&&ze.removeInLine(Ln,On.length-Bn[0].length,On.length),(Bn=On.match(At))&&ze.removeInLine(Ln,Bn[1].length,Bn[0].length)},vn=function(On,Ln){if(At.test(On))return!0;for(var Bn=_e.getTokens(Ln),Vn=0;VnAn.length&&(Sn=An.length)}),Oe==1/0&&(Oe=Sn,Et=!1,qe=!1),Dt&&Oe%Ue!=0&&(Oe=Math.floor(Oe/Ue)*Ue),En(qe?kt:jt)},this.toggleBlockComment=function($e,_e,Ce,Ie){var ze=this.blockComment;if(ze){!ze.start&&ze[0]&&(ze=ze[0]);var Et=new ue(_e,Ie.row,Ie.column),qe=Et.getCurrentToken();_e.selection;var Oe=_e.selection.toOrientedRange(),Ue,Dt;if(qe&&/comment/.test(qe.type)){for(var At,Lt;qe&&/comment/.test(qe.type);){var kt=qe.value.indexOf(ze.start);if(kt!=-1){var Pt=Et.getCurrentTokenRow(),jt=Et.getCurrentTokenColumn()+kt;At=new de(Pt,jt,Pt,jt+ze.start.length);break}qe=Et.stepBackward()}for(var Et=new ue(_e,Ie.row,Ie.column),qe=Et.getCurrentToken();qe&&/comment/.test(qe.type);){var kt=qe.value.indexOf(ze.end);if(kt!=-1){var Pt=Et.getCurrentTokenRow(),jt=Et.getCurrentTokenColumn()+kt;Lt=new de(Pt,jt,Pt,jt+ze.end.length);break}qe=Et.stepForward()}Lt&&_e.remove(Lt),At&&(_e.remove(At),Ue=At.start.row,Dt=-ze.start.length)}else Dt=ze.start.length,Ue=Ce.start.row,_e.insert(Ce.end,ze.end),_e.insert(Ce.start,ze.start);Oe.start.row==Ue&&(Oe.start.column+=Dt),Oe.end.row==Ue&&(Oe.end.column+=Dt),_e.selection.fromOrientedRange(Oe)}},this.getNextLineIndent=function($e,_e,Ce){return this.$getIndent(_e)},this.checkOutdent=function($e,_e,Ce){return!1},this.autoOutdent=function($e,_e,Ce){},this.$getIndent=function($e){return $e.match(/^\s*/)[0]},this.createWorker=function($e){return null},this.createModeDelegates=function($e){this.$embeds=[],this.$modes={};for(var _e in $e)if($e[_e]){var Ce=$e[_e],Ie=Ce.prototype.$id,ze=oe.$modes[Ie];ze||(oe.$modes[Ie]=ze=new Ce),oe.$modes[_e]||(oe.$modes[_e]=ze),this.$embeds.push(_e),this.$modes[_e]=ze}for(var Et=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],_e=0;_ethis.row)){var ue=he(le,{row:this.row,column:this.column},this.$insertRight);this.setPosition(ue.row,ue.column,!0)}};function ae(le,ue,de){var pe=de?le.column<=ue.column:le.column=this.document.getLength()?(de.row=Math.max(0,this.document.getLength()-1),de.column=this.document.getLine(de.row).length):le<0?(de.row=0,de.column=0):(de.row=le,de.column=Math.min(this.document.getLine(de.row).length,Math.max(0,ue))),ue<0&&(de.column=0),de}}).call(ie.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(V,z,j){var oe=V("./lib/oop"),re=V("./apply_delta").applyDelta,ie=V("./lib/event_emitter").EventEmitter,ae=V("./range").Range,he=V("./anchor").Anchor,le=function(ue){this.$lines=[""],ue.length===0?this.$lines=[""]:Array.isArray(ue)?this.insertMergedLines({row:0,column:0},ue):this.insert({row:0,column:0},ue)};(function(){oe.implement(this,ie),this.setValue=function(ue){var de=this.getLength()-1;this.remove(new ae(0,0,de,this.getLine(de).length)),this.insert({row:0,column:0},ue)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(ue,de){return new he(this,ue,de)},"aaa".split(/a/).length===0?this.$split=function(ue){return ue.replace(/\r\n|\r/g,` -`).split(` -`)}:this.$split=function(ue){return ue.split(/\r\n|\r|\n/)},this.$detectNewLine=function(ue){var de=ue.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=de?de[1]:` -`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r -`;case"unix":return` -`;default:return this.$autoNewLine||` -`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(ue){this.$newLineMode!==ue&&(this.$newLineMode=ue,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(ue){return ue==`\r -`||ue=="\r"||ue==` -`},this.getLine=function(ue){return this.$lines[ue]||""},this.getLines=function(ue,de){return this.$lines.slice(ue,de+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(ue){return this.getLinesForRange(ue).join(this.getNewLineCharacter())},this.getLinesForRange=function(ue){var de;if(ue.start.row===ue.end.row)de=[this.getLine(ue.start.row).substring(ue.start.column,ue.end.column)];else{de=this.getLines(ue.start.row,ue.end.row),de[0]=(de[0]||"").substring(ue.start.column);var pe=de.length-1;ue.end.row-ue.start.row==pe&&(de[pe]=de[pe].substring(0,ue.end.column))}return de},this.insertLines=function(ue,de){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(ue,de)},this.removeLines=function(ue,de){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(ue,de)},this.insertNewLine=function(ue){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(ue,["",""])},this.insert=function(ue,de){return this.getLength()<=1&&this.$detectNewLine(de),this.insertMergedLines(ue,this.$split(de))},this.insertInLine=function(ue,de){var pe=this.clippedPos(ue.row,ue.column),$e=this.pos(ue.row,ue.column+de.length);return this.applyDelta({start:pe,end:$e,action:"insert",lines:[de]},!0),this.clonePos($e)},this.clippedPos=function(ue,de){var pe=this.getLength();ue===void 0?ue=pe:ue<0?ue=0:ue>=pe&&(ue=pe-1,de=void 0);var $e=this.getLine(ue);return de==null&&(de=$e.length),de=Math.min(Math.max(de,0),$e.length),{row:ue,column:de}},this.clonePos=function(ue){return{row:ue.row,column:ue.column}},this.pos=function(ue,de){return{row:ue,column:de}},this.$clipPosition=function(ue){var de=this.getLength();return ue.row>=de?(ue.row=Math.max(0,de-1),ue.column=this.getLine(de-1).length):(ue.row=Math.max(0,ue.row),ue.column=Math.min(Math.max(ue.column,0),this.getLine(ue.row).length)),ue},this.insertFullLines=function(ue,de){ue=Math.min(Math.max(ue,0),this.getLength());var pe=0;ue0,$e=de=0&&this.applyDelta({start:this.pos(ue,this.getLine(ue).length),end:this.pos(ue+1,0),action:"remove",lines:["",""]})},this.replace=function(ue,de){if(ue instanceof ae||(ue=ae.fromPoints(ue.start,ue.end)),de.length===0&&ue.isEmpty())return ue.start;if(de==this.getTextRange(ue))return ue.end;this.remove(ue);var pe;return de?pe=this.insert(ue.start,de):pe=ue.start,pe},this.applyDeltas=function(ue){for(var de=0;de=0;de--)this.revertDelta(ue[de])},this.applyDelta=function(ue,de){var pe=ue.action=="insert";(pe?ue.lines.length<=1&&!ue.lines[0]:!ae.comparePoints(ue.start,ue.end))||(pe&&ue.lines.length>2e4?this.$splitAndapplyLargeDelta(ue,2e4):(re(this.$lines,ue,de),this._signal("change",ue)))},this.$safeApplyDelta=function(ue){var de=this.$lines.length;(ue.action=="remove"&&ue.start.row20){le.running=setTimeout(le.$worker,20);break}}le.currentLine=de,pe==-1&&(pe=de),_e<=pe&&le.fireUpdateEvent(_e,pe)}}};(function(){oe.implement(this,re),this.setTokenizer=function(ae){this.tokenizer=ae,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(ae){this.doc=ae,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(ae,he){var le={first:ae,last:he};this._signal("update",{data:le})},this.start=function(ae){this.currentLine=Math.min(ae||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(ae){var he=ae.start.row,le=ae.end.row-he;if(le===0)this.lines[he]=null;else if(ae.action=="remove")this.lines.splice(he,le+1,null),this.states.splice(he,le+1,null);else{var ue=Array(le+1);ue.unshift(he,1),this.lines.splice.apply(this.lines,ue),this.states.splice.apply(this.states,ue)}this.currentLine=Math.min(he,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(ae){return this.lines[ae]||this.$tokenizeRow(ae)},this.getState=function(ae){return this.currentLine==ae&&this.$tokenizeRow(ae),this.states[ae]||"start"},this.$tokenizeRow=function(ae){var he=this.doc.getLine(ae),le=this.states[ae-1],ue=this.tokenizer.getLineTokens(he,le,ae);return this.states[ae]+""!=ue.state+""?(this.states[ae]=ue.state,this.lines[ae+1]=null,this.currentLine>ae+1&&(this.currentLine=ae+1)):this.currentLine==ae&&(this.currentLine=ae+1),this.lines[ae]=ue.tokens}}).call(ie.prototype),z.BackgroundTokenizer=ie}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(V,z,j){var oe=V("./lib/lang");V("./lib/oop");var re=V("./range").Range,ie=function(ae,he,le){this.setRegexp(ae),this.clazz=he,this.type=le||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(ae){this.regExp+""!=ae+""&&(this.regExp=ae,this.cache=[])},this.update=function(ae,he,le,ue){if(this.regExp)for(var de=ue.firstRow,pe=ue.lastRow,$e=de;$e<=pe;$e++){var _e=this.cache[$e];_e==null&&(_e=oe.getMatchOffsets(le.getLine($e),this.regExp),_e.length>this.MAX_RANGES&&(_e=_e.slice(0,this.MAX_RANGES)),_e=_e.map(function(Ie){return new re($e,Ie.offset,$e,Ie.offset+Ie.length)}),this.cache[$e]=_e.length?_e:"");for(var Ce=_e.length;Ce--;)he.drawSingleLineMarker(ae,_e[Ce].toScreenRange(le),this.clazz,ue)}}}).call(ie.prototype),z.SearchHighlight=ie}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(V,z,j){var oe=V("../range").Range;function re(ie,ae){this.foldData=ie,Array.isArray(ae)?this.folds=ae:ae=this.folds=[ae];var he=ae[ae.length-1];this.range=new oe(ae[0].start.row,ae[0].start.column,he.end.row,he.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(le){le.setFoldLine(this)},this)}(function(){this.shiftRow=function(ie){this.start.row+=ie,this.end.row+=ie,this.folds.forEach(function(ae){ae.start.row+=ie,ae.end.row+=ie})},this.addFold=function(ie){if(ie.sameRow){if(ie.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(ie),this.folds.sort(function(ae,he){return-ae.range.compareEnd(he.start.row,he.start.column)}),this.range.compareEnd(ie.start.row,ie.start.column)>0?(this.end.row=ie.end.row,this.end.column=ie.end.column):this.range.compareStart(ie.end.row,ie.end.column)<0&&(this.start.row=ie.start.row,this.start.column=ie.start.column)}else if(ie.start.row==this.end.row)this.folds.push(ie),this.end.row=ie.end.row,this.end.column=ie.end.column;else if(ie.end.row==this.start.row)this.folds.unshift(ie),this.start.row=ie.start.row,this.start.column=ie.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");ie.foldLine=this},this.containsRow=function(ie){return ie>=this.start.row&&ie<=this.end.row},this.walk=function(ie,ae,he){var le=0,ue=this.folds,de,pe,$e,_e=!0;ae==null&&(ae=this.end.row,he=this.end.column);for(var Ce=0;Ce0)){var _e=re(ae,pe.start);return $e===0?he&&_e!==0?-de-2:de:_e>0||_e===0&&!he?de:-de-1}}return-de-1},this.add=function(ae){var he=!ae.isEmpty(),le=this.pointIndex(ae.start,he);le<0&&(le=-le-1);var ue=this.pointIndex(ae.end,he,le);return ue<0?ue=-ue-1:ue++,this.ranges.splice(le,ue-le,ae)},this.addList=function(ae){for(var he=[],le=ae.length;le--;)he.push.apply(he,this.add(ae[le]));return he},this.substractPoint=function(ae){var he=this.pointIndex(ae);if(he>=0)return this.ranges.splice(he,1)},this.merge=function(){var ae=[],he=this.ranges;he=he.sort(function($e,_e){return re($e.start,_e.start)});for(var le=he[0],ue,de=1;de=0},this.containsPoint=function(ae){return this.pointIndex(ae)>=0},this.rangeAtPoint=function(ae){var he=this.pointIndex(ae);if(he>=0)return this.ranges[he]},this.clipRows=function(ae,he){var le=this.ranges;if(le[0].start.row>he||le[le.length-1].start.row=ue)break}if(ae.action=="insert")for(var Ie=de-ue,ze=-he.column+le.column;$e<_e;$e++){var Ce=pe[$e];if(Ce.start.row>ue)break;if(Ce.start.row==ue&&Ce.start.column>=he.column&&(Ce.start.column==he.column&&this.$bias<=0||(Ce.start.column+=ze,Ce.start.row+=Ie)),Ce.end.row==ue&&Ce.end.column>=he.column){if(Ce.end.column==he.column&&this.$bias<0)continue;Ce.end.column==he.column&&ze>0&&$e<_e-1&&Ce.end.column>Ce.start.column&&Ce.end.column==pe[$e+1].start.column&&(Ce.end.column-=ze),Ce.end.column+=ze,Ce.end.row+=Ie}}else for(var Ie=ue-de,ze=he.column-le.column;$e<_e;$e++){var Ce=pe[$e];if(Ce.start.row>de)break;Ce.end.rowhe.column)&&(Ce.end.column=he.column,Ce.end.row=he.row):(Ce.end.column+=ze,Ce.end.row+=Ie):Ce.end.row>de&&(Ce.end.row+=Ie),Ce.start.rowhe.column)&&(Ce.start.column=he.column,Ce.start.row=he.row):(Ce.start.column+=ze,Ce.start.row+=Ie):Ce.start.row>de&&(Ce.start.row+=Ie)}if(Ie!=0&&$e<_e)for(;$e<_e;$e++){var Ce=pe[$e];Ce.start.row+=Ie,Ce.end.row+=Ie}}}).call(ie.prototype),z.RangeList=ie}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(V,z,j){var oe=V("../range_list").RangeList,re=V("../lib/oop"),ie=z.Fold=function(de,pe){this.foldLine=null,this.placeholder=pe,this.range=de,this.start=de.start,this.end=de.end,this.sameRow=de.start.row==de.end.row,this.subFolds=this.ranges=[]};re.inherits(ie,oe),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(de){this.foldLine=de,this.subFolds.forEach(function(pe){pe.setFoldLine(de)})},this.clone=function(){var de=this.range.clone(),pe=new ie(de,this.placeholder);return this.subFolds.forEach(function($e){pe.subFolds.push($e.clone())}),pe.collapseChildren=this.collapseChildren,pe},this.addSubFold=function(de){if(!this.range.isEqual(de)){he(de,this.start);for(var pe=de.start.row,$e=de.start.column,_e=0,Ce=-1;_e=le)return $e;if($e.end.row>le)return null}return null},this.getNextFoldLine=function(le,ue){var de=this.$foldData,pe=0;for(ue&&(pe=de.indexOf(ue)),pe==-1&&(pe=0),pe;pe=le)return $e}return null},this.getFoldedRowCount=function(le,ue){for(var de=this.$foldData,pe=ue-le+1,$e=0;$e=ue){Ie=le?pe-=ue-Ie:pe=0);break}else Ce>=le&&(Ie>=le?pe-=Ce-Ie:pe-=Ce-le+1)}return pe},this.$addFoldLine=function(le){return this.$foldData.push(le),this.$foldData.sort(function(ue,de){return ue.start.row-de.start.row}),le},this.addFold=function(le,ue){var de=this.$foldData,pe=!1,$e;le instanceof ie?$e=le:($e=new ie(ue,le),$e.collapseChildren=ue.collapseChildren),this.$clipRangeToDocument($e.range);var _e=$e.start.row,Ce=$e.start.column,Ie=$e.end.row,ze=$e.end.column,Et=this.getFoldAt(_e,Ce,1),qe=this.getFoldAt(Ie,ze,-1);if(Et&&qe==Et)return Et.addSubFold($e);Et&&!Et.range.isStart(_e,Ce)&&this.removeFold(Et),qe&&!qe.range.isEnd(Ie,ze)&&this.removeFold(qe);var Oe=this.getFoldsInRange($e.range);Oe.length>0&&(this.removeFolds(Oe),$e.collapseChildren||Oe.forEach(function(Lt){$e.addSubFold(Lt)}));for(var Ue=0;Ue0&&this.foldAll(le.start.row+1,le.end.row,le.collapseChildren-1),le.subFolds=[]},this.expandFolds=function(le){le.forEach(function(ue){this.expandFold(ue)},this)},this.unfold=function(le,ue){var de,pe;if(le==null)de=new oe(0,0,this.getLength(),0),ue==null&&(ue=!0);else if(typeof le=="number")de=new oe(le,0,le,this.getLine(le).length);else if("row"in le)de=oe.fromPoints(le,le);else{if(Array.isArray(le))return pe=[],le.forEach(function(_e){pe=pe.concat(this.unfold(_e))},this),pe;de=le}pe=this.getFoldsInRangeList(de);for(var $e=pe;pe.length==1&&oe.comparePoints(pe[0].start,de.start)<0&&oe.comparePoints(pe[0].end,de.end)>0;)this.expandFolds(pe),pe=this.getFoldsInRangeList(de);if(ue!=!1?this.removeFolds(pe):this.expandFolds(pe),$e.length)return $e},this.isRowFolded=function(le,ue){return!!this.getFoldLine(le,ue)},this.getRowFoldEnd=function(le,ue){var de=this.getFoldLine(le,ue);return de?de.end.row:le},this.getRowFoldStart=function(le,ue){var de=this.getFoldLine(le,ue);return de?de.start.row:le},this.getFoldDisplayLine=function(le,ue,de,pe,$e){pe==null&&(pe=le.start.row),$e==null&&($e=0),ue==null&&(ue=le.end.row),de==null&&(de=this.getLine(ue).length);var _e=this.doc,Ce="";return le.walk(function(Ie,ze,Et,qe){if(!(zeze)break;while($e&&Ce.test($e.type));$e=pe.stepBackward()}else $e=pe.getCurrentToken();return Ie.end.row=pe.getCurrentTokenRow(),Ie.end.column=pe.getCurrentTokenColumn()+$e.value.length-2,Ie}},this.foldAll=function(le,ue,de,pe){de==null&&(de=1e5);var $e=this.foldWidgets;if($e){ue=ue||this.getLength(),le=le||0;for(var _e=le;_e=le&&(_e=Ce.end.row,Ce.collapseChildren=de,this.addFold("...",Ce))}}},this.foldToLevel=function(le){for(this.foldAll();le-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var le=this;this.foldAll(null,null,null,function(ue){for(var de=le.getTokens(ue),pe=0;pe=0;){var _e=de[pe];if(_e==null&&(_e=de[pe]=this.getFoldWidget(pe)),_e=="start"){var Ce=this.getFoldWidgetRange(pe);if($e||($e=Ce),Ce&&Ce.end.row>=le)break}pe--}return{range:pe!==-1&&Ce,firstRange:$e}},this.onFoldWidgetClick=function(le,ue){ue=ue.domEvent;var de={children:ue.shiftKey,all:ue.ctrlKey||ue.metaKey,siblings:ue.altKey},pe=this.$toggleFoldWidget(le,de);if(!pe){var $e=ue.target||ue.srcElement;$e&&/ace_fold-widget/.test($e.className)&&($e.className+=" ace_invalid")}},this.$toggleFoldWidget=function(le,ue){if(this.getFoldWidget){var de=this.getFoldWidget(le),pe=this.getLine(le),$e=de==="end"?-1:1,_e=this.getFoldAt(le,$e===-1?0:pe.length,$e);if(_e)return ue.children||ue.all?this.removeFold(_e):this.expandFold(_e),_e;var Ce=this.getFoldWidgetRange(le,!0);if(Ce&&!Ce.isMultiLine()&&(_e=this.getFoldAt(Ce.start.row,Ce.start.column,1),_e&&Ce.isEqual(_e.range)))return this.removeFold(_e),_e;if(ue.siblings){var Ie=this.getParentFoldRangeData(le);if(Ie.range)var ze=Ie.range.start.row+1,Et=Ie.range.end.row;this.foldAll(ze,Et,ue.all?1e4:0)}else ue.children?(Et=Ce?Ce.end.row:this.getLength(),this.foldAll(le+1,Et,ue.all?1e4:0)):Ce&&(ue.all&&(Ce.collapseChildren=1e4),this.addFold("...",Ce));return Ce}},this.toggleFoldWidget=function(le){var ue=this.selection.getCursor().row;ue=this.getRowFoldStart(ue);var de=this.$toggleFoldWidget(ue,{});if(!de){var pe=this.getParentFoldRangeData(ue,!0);if(de=pe.range||pe.firstRange,de){ue=de.start.row;var $e=this.getFoldAt(ue,this.getLine(ue).length,1);$e?this.removeFold($e):this.addFold("...",de)}}},this.updateFoldWidgets=function(le){var ue=le.start.row,de=le.end.row-ue;if(de===0)this.foldWidgets[ue]=null;else if(le.action=="remove")this.foldWidgets.splice(ue,de+1,null);else{var pe=Array(de+1);pe.unshift(ue,1),this.foldWidgets.splice.apply(this.foldWidgets,pe)}},this.tokenizerUpdateFoldWidgets=function(le){var ue=le.data;ue.first!=ue.last&&this.foldWidgets.length>ue.first&&this.foldWidgets.splice(ue.first,this.foldWidgets.length)}}z.Folding=he}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(V,z,j){var oe=V("../token_iterator").TokenIterator,re=V("../range").Range;function ie(){this.findMatchingBracket=function(ae,he){if(ae.column==0)return null;var le=he||this.getLine(ae.row).charAt(ae.column-1);if(le=="")return null;var ue=le.match(/([\(\[\{])|([\)\]\}])/);return ue?ue[1]?this.$findClosingBracket(ue[1],ae):this.$findOpeningBracket(ue[2],ae):null},this.getBracketRange=function(ae){var he=this.getLine(ae.row),le=!0,ue,de=he.charAt(ae.column-1),pe=de&&de.match(/([\(\[\{])|([\)\]\}])/);if(pe||(de=he.charAt(ae.column),ae={row:ae.row,column:ae.column+1},pe=de&&de.match(/([\(\[\{])|([\)\]\}])/),le=!1),!pe)return null;if(pe[1]){var $e=this.$findClosingBracket(pe[1],ae);if(!$e)return null;ue=re.fromPoints(ae,$e),le||(ue.end.column++,ue.start.column--),ue.cursor=ue.end}else{var $e=this.$findOpeningBracket(pe[2],ae);if(!$e)return null;ue=re.fromPoints($e,ae),le||(ue.start.column++,ue.end.column--),ue.cursor=ue.start}return ue},this.getMatchingBracketRanges=function(ae){var he=this.getLine(ae.row),le=he.charAt(ae.column-1),ue=le&&le.match(/([\(\[\{])|([\)\]\}])/);if(ue||(le=he.charAt(ae.column),ae={row:ae.row,column:ae.column+1},ue=le&&le.match(/([\(\[\{])|([\)\]\}])/)),!ue)return null;var de=new re(ae.row,ae.column-1,ae.row,ae.column),pe=ue[1]?this.$findClosingBracket(ue[1],ae):this.$findOpeningBracket(ue[2],ae);if(!pe)return[de];var $e=new re(pe.row,pe.column,pe.row,pe.column+1);return[de,$e]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(ae,he,le){var ue=this.$brackets[ae],de=1,pe=new oe(this,he.row,he.column),$e=pe.getCurrentToken();if($e||($e=pe.stepForward()),!!$e){le||(le=new RegExp("(\\.?"+$e.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var _e=he.column-pe.getCurrentTokenColumn()-2,Ce=$e.value;;){for(;_e>=0;){var Ie=Ce.charAt(_e);if(Ie==ue){if(de-=1,de==0)return{row:pe.getCurrentTokenRow(),column:_e+pe.getCurrentTokenColumn()}}else Ie==ae&&(de+=1);_e-=1}do $e=pe.stepBackward();while($e&&!le.test($e.type));if($e==null)break;Ce=$e.value,_e=Ce.length-1}return null}},this.$findClosingBracket=function(ae,he,le){var ue=this.$brackets[ae],de=1,pe=new oe(this,he.row,he.column),$e=pe.getCurrentToken();if($e||($e=pe.stepForward()),!!$e){le||(le=new RegExp("(\\.?"+$e.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var _e=he.column-pe.getCurrentTokenColumn();;){for(var Ce=$e.value,Ie=Ce.length;_ejt&&(this.$docRowCache.splice(jt,Pt),this.$screenRowCache.splice(jt,Pt))},this.$getRowCacheIndex=function(kt,Pt){for(var jt=0,vn=kt.length-1;jt<=vn;){var $n=jt+vn>>1,wn=kt[$n];if(Pt>wn)jt=$n+1;else if(Pt=Pt));wn++);return vn=jt[wn],vn?(vn.index=wn,vn.start=$n-vn.value.length,vn):null},this.setUndoManager=function(kt){if(this.$undoManager=kt,this.$informUndoManager&&this.$informUndoManager.cancel(),kt){var Pt=this;kt.addSession(this),this.$syncInformUndoManager=function(){Pt.$informUndoManager.cancel(),Pt.mergeUndoDeltas=!1},this.$informUndoManager=re.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?re.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(kt){this.setOption("useSoftTabs",kt)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(kt){this.setOption("tabSize",kt)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(kt){return this.$useSoftTabs&&kt.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(kt){this.setOption("navigateWithinSoftTabs",kt)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(kt){this.setOption("overwrite",kt)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(kt,Pt){this.$decorations[kt]||(this.$decorations[kt]=""),this.$decorations[kt]+=" "+Pt,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(kt,Pt){this.$decorations[kt]=(this.$decorations[kt]||"").replace(" "+Pt,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(kt){this.$breakpoints=[];for(var Pt=0;Pt0&&(vn=!!jt.charAt(Pt-1).match(this.tokenRe)),vn||(vn=!!jt.charAt(Pt).match(this.tokenRe)),vn)var $n=this.tokenRe;else if(/^\s+$/.test(jt.slice(Pt-1,Pt+1)))var $n=/\s/;else var $n=this.nonTokenRe;var wn=Pt;if(wn>0){do wn--;while(wn>=0&&jt.charAt(wn).match($n));wn++}for(var _n=Pt;_nkt&&(kt=Pt.screenWidth)}),this.lineWidgetWidth=kt},this.$computeWidth=function(kt){if(this.$modified||kt){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var Pt=this.doc.getAllLines(),jt=this.$rowLengthCache,vn=0,$n=0,wn=this.$foldData[$n],_n=wn?wn.start.row:1/0,En=Pt.length,Sn=0;Sn_n){if(Sn=wn.end.row+1,Sn>=En)break;wn=this.$foldData[$n++],_n=wn?wn.start.row:1/0}jt[Sn]==null&&(jt[Sn]=this.$getStringScreenWidth(Pt[Sn])[0]),jt[Sn]>vn&&(vn=jt[Sn])}this.screenWidth=vn}},this.getLine=function(kt){return this.doc.getLine(kt)},this.getLines=function(kt,Pt){return this.doc.getLines(kt,Pt)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(kt){return this.doc.getTextRange(kt||this.selection.getRange())},this.insert=function(kt,Pt){return this.doc.insert(kt,Pt)},this.remove=function(kt){return this.doc.remove(kt)},this.removeFullLines=function(kt,Pt){return this.doc.removeFullLines(kt,Pt)},this.undoChanges=function(kt,Pt){if(kt.length){this.$fromUndo=!0;for(var jt=kt.length-1;jt!=-1;jt--){var vn=kt[jt];vn.action=="insert"||vn.action=="remove"?this.doc.revertDelta(vn):vn.folds&&this.addFolds(vn.folds)}!Pt&&this.$undoSelect&&(kt.selectionBefore?this.selection.fromJSON(kt.selectionBefore):this.selection.setRange(this.$getUndoSelection(kt,!0))),this.$fromUndo=!1}},this.redoChanges=function(kt,Pt){if(kt.length){this.$fromUndo=!0;for(var jt=0;jtkt.end.column&&(wn.start.column+=En),wn.end.row==kt.end.row&&wn.end.column>kt.end.column&&(wn.end.column+=En)),_n&&wn.start.row>=kt.end.row&&(wn.start.row+=_n,wn.end.row+=_n)}if(wn.end=this.insert(wn.start,vn),$n.length){var Sn=kt.start,An=wn.start,_n=An.row-Sn.row,En=An.column-Sn.column;this.addFolds($n.map(function(Nn){return Nn=Nn.clone(),Nn.start.row==Sn.row&&(Nn.start.column+=En),Nn.end.row==Sn.row&&(Nn.end.column+=En),Nn.start.row+=_n,Nn.end.row+=_n,Nn}))}return wn},this.indentRows=function(kt,Pt,jt){jt=jt.replace(/\t/g,this.getTabString());for(var vn=kt;vn<=Pt;vn++)this.doc.insertInLine({row:vn,column:0},jt)},this.outdentRows=function(kt){for(var Pt=kt.collapseRows(),jt=new de(0,0,0,0),vn=this.getTabSize(),$n=Pt.start.row;$n<=Pt.end.row;++$n){var wn=this.getLine($n);jt.start.row=$n,jt.end.row=$n;for(var _n=0;_n0){var vn=this.getRowFoldEnd(Pt+jt);if(vn>this.doc.getLength()-1)return 0;var $n=vn-Pt}else{kt=this.$clipRowToDocument(kt),Pt=this.$clipRowToDocument(Pt);var $n=Pt-kt+1}var wn=new de(kt,0,Pt,Number.MAX_VALUE),_n=this.getFoldsInRange(wn).map(function(Sn){return Sn=Sn.clone(),Sn.start.row+=$n,Sn.end.row+=$n,Sn}),En=jt==0?this.doc.getLines(kt,Pt):this.doc.removeFullLines(kt,Pt);return this.doc.insertFullLines(kt+$n,En),_n.length&&this.addFolds(_n),$n},this.moveLinesUp=function(kt,Pt){return this.$moveLines(kt,Pt,-1)},this.moveLinesDown=function(kt,Pt){return this.$moveLines(kt,Pt,1)},this.duplicateLines=function(kt,Pt){return this.$moveLines(kt,Pt,0)},this.$clipRowToDocument=function(kt){return Math.max(0,Math.min(kt,this.doc.getLength()-1))},this.$clipColumnToRow=function(kt,Pt){return Pt<0?0:Math.min(this.doc.getLine(kt).length,Pt)},this.$clipPositionToDocument=function(kt,Pt){if(Pt=Math.max(0,Pt),kt<0)kt=0,Pt=0;else{var jt=this.doc.getLength();kt>=jt?(kt=jt-1,Pt=this.doc.getLine(jt-1).length):Pt=Math.min(this.doc.getLine(kt).length,Pt)}return{row:kt,column:Pt}},this.$clipRangeToDocument=function(kt){kt.start.row<0?(kt.start.row=0,kt.start.column=0):kt.start.column=this.$clipColumnToRow(kt.start.row,kt.start.column);var Pt=this.doc.getLength()-1;return kt.end.row>Pt?(kt.end.row=Pt,kt.end.column=this.doc.getLine(Pt).length):kt.end.column=this.$clipColumnToRow(kt.end.row,kt.end.column),kt},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(kt){if(kt!=this.$useWrapMode){if(this.$useWrapMode=kt,this.$modified=!0,this.$resetRowCache(0),kt){var Pt=this.getLength();this.$wrapData=Array(Pt),this.$updateWrapData(0,Pt-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(kt,Pt){(this.$wrapLimitRange.min!==kt||this.$wrapLimitRange.max!==Pt)&&(this.$wrapLimitRange={min:kt,max:Pt},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(kt,Pt){var jt=this.$wrapLimitRange;jt.max<0&&(jt={min:Pt,max:Pt});var vn=this.$constrainWrapLimit(kt,jt.min,jt.max);return vn!=this.$wrapLimit&&vn>1?(this.$wrapLimit=vn,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(kt,Pt,jt){return Pt&&(kt=Math.max(Pt,kt)),jt&&(kt=Math.min(jt,kt)),kt},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(kt){this.setWrapLimitRange(kt,kt)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(kt){var Pt=this.$useWrapMode,jt=kt.action,vn=kt.start,$n=kt.end,wn=vn.row,_n=$n.row,En=_n-wn,Sn=null;if(this.$updating=!0,En!=0)if(jt==="remove"){this[Pt?"$wrapData":"$rowLengthCache"].splice(wn,En);var An=this.$foldData;Sn=this.getFoldsInRange(kt),this.removeFolds(Sn);var Cn=this.getFoldLine($n.row),Tn=0;if(Cn){Cn.addRemoveChars($n.row,$n.column,vn.column-$n.column),Cn.shiftRow(-En);var Nn=this.getFoldLine(wn);Nn&&Nn!==Cn&&(Nn.merge(Cn),Cn=Nn),Tn=An.indexOf(Cn)+1}for(Tn;Tn=$n.row&&Cn.shiftRow(-En)}_n=wn}else{var xn=Array(En);xn.unshift(wn,0);var On=Pt?this.$wrapData:this.$rowLengthCache;On.splice.apply(On,xn);var An=this.$foldData,Cn=this.getFoldLine(wn),Tn=0;if(Cn){var Ln=Cn.range.compareInside(vn.row,vn.column);Ln==0?(Cn=Cn.split(vn.row,vn.column),Cn&&(Cn.shiftRow(En),Cn.addRemoveChars(_n,0,$n.column-vn.column))):Ln==-1&&(Cn.addRemoveChars(wn,0,$n.column-vn.column),Cn.shiftRow(En)),Tn=An.indexOf(Cn)+1}for(Tn;Tn=wn&&Cn.shiftRow(En)}}else{En=Math.abs(kt.start.column-kt.end.column),jt==="remove"&&(Sn=this.getFoldsInRange(kt),this.removeFolds(Sn),En=-En);var Cn=this.getFoldLine(wn);Cn&&Cn.addRemoveChars(wn,vn.column,En)}return Pt&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,Pt?this.$updateWrapData(wn,_n):this.$updateRowLengthCache(wn,_n),Sn},this.$updateRowLengthCache=function(kt,Pt,jt){this.$rowLengthCache[kt]=null,this.$rowLengthCache[Pt]=null},this.$updateWrapData=function(kt,Pt){var jt=this.doc.getAllLines(),vn=this.getTabSize(),$n=this.$wrapData,wn=this.$wrapLimit,_n,En,Sn=kt;for(Pt=Math.min(Pt,jt.length-1);Sn<=Pt;)En=this.getFoldLine(Sn,En),En?(_n=[],En.walk(function(An,Cn,Tn,Nn){var xn;if(An!=null){xn=this.$getDisplayTokens(An,_n.length),xn[0]=Et;for(var On=1;OnPt-Nn;){var xn=wn+Pt-Nn;if(kt[xn-1]>=Ue&&kt[xn]>=Ue){Tn(xn);continue}if(kt[xn]==Et||kt[xn]==qe){for(xn;xn!=wn-1&&kt[xn]!=Et;xn--);if(xn>wn){Tn(xn);continue}for(xn=wn+Pt,xn;xn>2)),wn-1);xn>On&&kt[xn]On&&kt[xn]On&&kt[xn]==Oe;)xn--}else for(;xn>On&&kt[xn]On){Tn(++xn);continue}xn=wn+Pt,kt[xn]==ze&&xn--,Tn(xn-Nn)}return vn},this.$getDisplayTokens=function(kt,Pt){var jt=[],vn;Pt=Pt||0;for(var $n=0;$n39&&wn<48||wn>57&&wn<64?jt.push(Oe):wn>=4352&&Lt(wn)?jt.push(Ie,ze):jt.push(Ie)}return jt},this.$getStringScreenWidth=function(kt,Pt,jt){if(Pt==0)return[0,0];Pt==null&&(Pt=1/0),jt=jt||0;var vn,$n;for($n=0;$n=4352&&Lt(vn)?jt+=2:jt+=1,!(jt>Pt));$n++);return[jt,$n]},this.lineWidgets=null,this.getRowLength=function(kt){var Pt=1;return this.lineWidgets&&(Pt+=this.lineWidgets[kt]&&this.lineWidgets[kt].rowCount||0),!this.$useWrapMode||!this.$wrapData[kt]?Pt:this.$wrapData[kt].length+Pt},this.getRowLineCount=function(kt){return!this.$useWrapMode||!this.$wrapData[kt]?1:this.$wrapData[kt].length+1},this.getRowWrapIndent=function(kt){if(this.$useWrapMode){var Pt=this.screenToDocumentPosition(kt,Number.MAX_VALUE),jt=this.$wrapData[Pt.row];return jt.length&&jt[0]=0)var Cn=En[Sn],Tn=this.$docRowCache[Sn],Nn=kt>En[An-1];else var Nn=!An;for(var xn=this.getLength()-1,On=this.getNextFoldLine(Tn),Ln=On?On.start.row:1/0;Cn<=kt&&(_n=this.getRowLength(Tn),!(Cn+_n>kt||Tn>=xn));)Cn+=_n,Tn++,Tn>Ln&&(Tn=On.end.row+1,On=this.getNextFoldLine(Tn,On),Ln=On?On.start.row:1/0),Nn&&(this.$docRowCache.push(Tn),this.$screenRowCache.push(Cn));if(On&&On.start.row<=Tn)vn=this.getFoldDisplayLine(On),Tn=On.start.row;else{if(Cn+_n<=kt||Tn>xn)return{row:xn,column:this.getLine(xn).length};vn=this.getLine(Tn),On=null}var Bn=0,Vn=Math.floor(kt-Cn);if(this.$useWrapMode){var Fn=this.$wrapData[Tn];Fn&&(wn=Fn[Vn],Vn>0&&Fn.length&&(Bn=Fn.indent,$n=Fn[Vn-1]||Fn[Fn.length-1],vn=vn.substring($n)))}return jt!==void 0&&this.$bidiHandler.isBidiRow(Cn+Vn,Tn,Vn)&&(Pt=this.$bidiHandler.offsetToCol(jt)),$n+=this.$getStringScreenWidth(vn,Pt-Bn)[1],this.$useWrapMode&&$n>=wn&&($n=wn-1),On?On.idxToPosition($n):{row:Tn,column:$n}},this.documentToScreenPosition=function(kt,Pt){if(typeof Pt=="undefined")var jt=this.$clipPositionToDocument(kt.row,kt.column);else jt=this.$clipPositionToDocument(kt,Pt);kt=jt.row,Pt=jt.column;var Cn=0,vn=null,$n=null;$n=this.getFoldAt(kt,Pt,1),$n&&(kt=$n.start.row,Pt=$n.start.column);var wn,An=0,_n=this.$docRowCache,En=this.$getRowCacheIndex(_n,kt),Sn=_n.length;if(Sn&&En>=0)var An=_n[En],Cn=this.$screenRowCache[En],Tn=kt>_n[Sn-1];else var Tn=!Sn;for(var Nn=this.getNextFoldLine(An),xn=Nn?Nn.start.row:1/0;An=xn){if(wn=Nn.end.row+1,wn>kt)break;Nn=this.getNextFoldLine(wn,Nn),xn=Nn?Nn.start.row:1/0}else wn=An+1;Cn+=this.getRowLength(An),An=wn,Tn&&(this.$docRowCache.push(An),this.$screenRowCache.push(Cn))}var On="";Nn&&An>=xn?(On=this.getFoldDisplayLine(Nn,kt,Pt),vn=Nn.start.row):(On=this.getLine(kt).substring(0,Pt),vn=kt);var Ln=0;if(this.$useWrapMode){var Bn=this.$wrapData[vn];if(Bn){for(var Vn=0;On.length>=Bn[Vn];)Cn++,Vn++;On=On.substring(Bn[Vn-1]||0,On.length),Ln=Vn>0?Bn.indent:0}}return this.lineWidgets&&this.lineWidgets[An]&&this.lineWidgets[An].rowsAbove&&(Cn+=this.lineWidgets[An].rowsAbove),{row:Cn,column:Ln+this.$getStringScreenWidth(On)[0]}},this.documentToScreenColumn=function(kt,Pt){return this.documentToScreenPosition(kt,Pt).column},this.documentToScreenRow=function(kt,Pt){return this.documentToScreenPosition(kt,Pt).row},this.getScreenLength=function(){var kt=0,Pt=null;if(this.$useWrapMode)for(var jt=this.$wrapData.length,vn=0,$n=0,Pt=this.$foldData[$n++],wn=Pt?Pt.start.row:1/0;vnwn&&(vn=Pt.end.row+1,Pt=this.$foldData[$n++],wn=Pt?Pt.start.row:1/0)}else{kt=this.getLength();for(var En=this.$foldData,$n=0;$njt));wn++);return[vn,wn]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=Lt;function Lt(kt){return kt<4352?!1:kt>=4352&&kt<=4447||kt>=4515&&kt<=4519||kt>=4602&&kt<=4607||kt>=9001&&kt<=9002||kt>=11904&&kt<=11929||kt>=11931&&kt<=12019||kt>=12032&&kt<=12245||kt>=12272&&kt<=12283||kt>=12288&&kt<=12350||kt>=12353&&kt<=12438||kt>=12441&&kt<=12543||kt>=12549&&kt<=12589||kt>=12593&&kt<=12686||kt>=12688&&kt<=12730||kt>=12736&&kt<=12771||kt>=12784&&kt<=12830||kt>=12832&&kt<=12871||kt>=12880&&kt<=13054||kt>=13056&&kt<=19903||kt>=19968&&kt<=42124||kt>=42128&&kt<=42182||kt>=43360&&kt<=43388||kt>=44032&&kt<=55203||kt>=55216&&kt<=55238||kt>=55243&&kt<=55291||kt>=63744&&kt<=64255||kt>=65040&&kt<=65049||kt>=65072&&kt<=65106||kt>=65108&&kt<=65126||kt>=65128&&kt<=65131||kt>=65281&&kt<=65376||kt>=65504&&kt<=65510}}.call(Ce.prototype),V("./edit_session/folding").Folding.call(Ce.prototype),V("./edit_session/bracket_match").BracketMatch.call(Ce.prototype),ae.defineOptions(Ce.prototype,"session",{wrap:{set:function(Ie){if(!Ie||Ie=="off"?Ie=!1:Ie=="free"?Ie=!0:Ie=="printMargin"?Ie=-1:typeof Ie=="string"&&(Ie=parseInt(Ie,10)||!1),this.$wrap!=Ie)if(this.$wrap=Ie,!Ie)this.setUseWrapMode(!1);else{var ze=typeof Ie=="number"?Ie:null;this.setWrapLimitRange(ze,ze),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(Ie){Ie=Ie=="auto"?this.$mode.type!="text":Ie!="text",Ie!=this.$wrapAsCode&&(this.$wrapAsCode=Ie,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(Ie){this.$useWorker=Ie,this.$stopWorker(),Ie&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(Ie){Ie=parseInt(Ie),Ie>0&&this.$tabSize!==Ie&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=Ie,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(Ie){this.setFoldStyle(Ie)},handlesSet:!0},overwrite:{set:function(Ie){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(Ie){this.doc.setNewLineMode(Ie)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(Ie){this.setMode(Ie)},get:function(){return this.$modeId},handlesSet:!0}}),z.EditSession=Ce}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(V,z,j){var oe=V("./lib/lang"),re=V("./lib/oop"),ie=V("./range").Range,ae=function(){this.$options={}};(function(){this.set=function(le){return re.mixin(this.$options,le),this},this.getOptions=function(){return oe.copyObject(this.$options)},this.setOptions=function(le){this.$options=le},this.find=function(le){var ue=this.$options,de=this.$matchIterator(le,ue);if(!de)return!1;var pe=null;return de.forEach(function($e,_e,Ce,Ie){return pe=new ie($e,_e,Ce,Ie),_e==Ie&&ue.start&&ue.start.start&&ue.skipCurrent!=!1&&pe.isEqual(ue.start)?(pe=null,!1):!0}),pe},this.findAll=function(le){var ue=this.$options;if(!ue.needle)return[];this.$assembleRegExp(ue);var de=ue.range,pe=de?le.getLines(de.start.row,de.end.row):le.doc.getAllLines(),$e=[],_e=ue.re;if(ue.$isMultiLine){var Ce=_e.length,Ie=pe.length-Ce,ze;e:for(var Et=_e.offset||0;Et<=Ie;Et++){for(var qe=0;qeDt||($e.push(ze=new ie(Et,Dt,Et+Ce-1,At)),Ce>2&&(Et=Et+Ce-2))}}else for(var Lt=0;Ltvn&&$e[qe].end.row==de.end.row;)qe--;for($e=$e.slice(Lt,qe+1),Lt=0,qe=$e.length;Lt=Ie;Dt--)if(Oe(Dt,Number.MAX_VALUE,Ue))return;if(ue.wrap!=!1){for(Dt=ze,Ie=Ce.row;Dt>=Ie;Dt--)if(Oe(Dt,Number.MAX_VALUE,Ue))return}}};else var Et=function(Ue){var Dt=Ce.row;if(!Oe(Dt,Ce.column,Ue)){for(Dt=Dt+1;Dt<=ze;Dt++)if(Oe(Dt,0,Ue))return;if(ue.wrap!=!1){for(Dt=Ie,ze=Ce.row;Dt<=ze;Dt++)if(Oe(Dt,0,Ue))return}}};if(ue.$isMultiLine)var qe=de.length,Oe=function(Ue,Dt,At){var Lt=pe?Ue-qe+1:Ue;if(!(Lt<0||Lt+qe>le.getLength())){var kt=le.getLine(Lt),Pt=kt.search(de[0]);if(!(!pe&&PtDt)&&At(Lt,Pt,Lt+qe-1,vn))return!0}}};else if(pe)var Oe=function(Ue,Dt,At){var Lt=le.getLine(Ue),kt=[],Pt,jt=0;for(de.lastIndex=0;Pt=de.exec(Lt);){var vn=Pt[0].length;if(jt=Pt.index,!vn){if(jt>=Lt.length)break;de.lastIndex=jt+=1}if(Pt.index+vn>Dt)break;kt.push(Pt.index,vn)}for(var $n=kt.length-1;$n>=0;$n-=2){var wn=kt[$n-1],vn=kt[$n];if(At(Ue,wn,Ue,wn+vn))return!0}};else var Oe=function(Ue,Dt,At){var Lt=le.getLine(Ue),kt,Pt;for(de.lastIndex=Dt;Pt=de.exec(Lt);){var jt=Pt[0].length;if(kt=Pt.index,At(Ue,kt,Ue,kt+jt))return!0;if(!jt&&(de.lastIndex=kt+=1,kt>=Lt.length))return!1}};return{forEach:Et}}}).call(ae.prototype);function he(le,ue){function de(pe){return/\w/.test(pe)||ue.regExp?"\\b":""}return de(le[0])+le+de(le[le.length-1])}z.Search=ae}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(V,z,j){var oe=V("../lib/keys"),re=V("../lib/useragent"),ie=oe.KEY_MODS;function ae(le,ue){this.platform=ue||(re.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(le),this.$singleCommand=!0}function he(le,ue){ae.call(this,le,ue),this.$singleCommand=!1}he.prototype=ae.prototype,function(){this.addCommand=function(ue){this.commands[ue.name]&&this.removeCommand(ue),this.commands[ue.name]=ue,ue.bindKey&&this._buildKeyHash(ue)},this.removeCommand=function(ue,de){var pe=ue&&(typeof ue=="string"?ue:ue.name);ue=this.commands[pe],de||delete this.commands[pe];var $e=this.commandKeyBinding;for(var _e in $e){var Ce=$e[_e];if(Ce==ue)delete $e[_e];else if(Array.isArray(Ce)){var Ie=Ce.indexOf(ue);Ie!=-1&&(Ce.splice(Ie,1),Ce.length==1&&($e[_e]=Ce[0]))}}},this.bindKey=function(ue,de,pe){if(typeof ue=="object"&&ue&&(pe==null&&(pe=ue.position),ue=ue[this.platform]),!!ue){if(typeof de=="function")return this.addCommand({exec:de,bindKey:ue,name:de.name||ue});ue.split("|").forEach(function($e){var _e="";if($e.indexOf(" ")!=-1){var Ce=$e.split(/\s+/);$e=Ce.pop(),Ce.forEach(function(Et){var qe=this.parseKeys(Et),Oe=ie[qe.hashId]+qe.key;_e+=(_e?" ":"")+Oe,this._addCommandToBinding(_e,"chainKeys")},this),_e+=" "}var Ie=this.parseKeys($e),ze=ie[Ie.hashId]+Ie.key;this._addCommandToBinding(_e+ze,de,pe)},this)}};function le(ue){return typeof ue=="object"&&ue.bindKey&&ue.bindKey.position||(ue.isDefault?-100:0)}this._addCommandToBinding=function(ue,de,pe){var $e=this.commandKeyBinding,_e;if(!de)delete $e[ue];else if(!$e[ue]||this.$singleCommand)$e[ue]=de;else{Array.isArray($e[ue])?(_e=$e[ue].indexOf(de))!=-1&&$e[ue].splice(_e,1):$e[ue]=[$e[ue]],typeof pe!="number"&&(pe=le(de));var Ce=$e[ue];for(_e=0;_epe)break}Ce.splice(_e,0,de)}},this.addCommands=function(ue){ue&&Object.keys(ue).forEach(function(de){var pe=ue[de];if(pe){if(typeof pe=="string")return this.bindKey(pe,de);typeof pe=="function"&&(pe={exec:pe}),typeof pe=="object"&&(pe.name||(pe.name=de),this.addCommand(pe))}},this)},this.removeCommands=function(ue){Object.keys(ue).forEach(function(de){this.removeCommand(ue[de])},this)},this.bindKeys=function(ue){Object.keys(ue).forEach(function(de){this.bindKey(de,ue[de])},this)},this._buildKeyHash=function(ue){this.bindKey(ue.bindKey,ue)},this.parseKeys=function(ue){var de=ue.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(ze){return ze}),pe=de.pop(),$e=oe[pe];if(oe.FUNCTION_KEYS[$e])pe=oe.FUNCTION_KEYS[$e].toLowerCase();else if(de.length){if(de.length==1&&de[0]=="shift")return{key:pe.toUpperCase(),hashId:-1}}else return{key:pe,hashId:-1};for(var _e=0,Ce=de.length;Ce--;){var Ie=oe.KEY_MODS[de[Ce]];if(Ie==null)return typeof console!="undefined"&&console.error("invalid modifier "+de[Ce]+" in "+ue),!1;_e|=Ie}return{key:pe,hashId:_e}},this.findKeyCommand=function(ue,de){var pe=ie[ue]+de;return this.commandKeyBinding[pe]},this.handleKeyboard=function(ue,de,pe,$e){if(!($e<0)){var _e=ie[de]+pe,Ce=this.commandKeyBinding[_e];return ue.$keyChain&&(ue.$keyChain+=" "+_e,Ce=this.commandKeyBinding[ue.$keyChain]||Ce),Ce&&(Ce=="chainKeys"||Ce[Ce.length-1]=="chainKeys")?(ue.$keyChain=ue.$keyChain||_e,{command:"null"}):(ue.$keyChain&&((!de||de==4)&&pe.length==1?ue.$keyChain=ue.$keyChain.slice(0,-_e.length-1):(de==-1||$e>0)&&(ue.$keyChain="")),{command:Ce})}},this.getStatusText=function(ue,de){return de.$keyChain||""}}.call(ae.prototype),z.HashHandler=ae,z.MultiHashHandler=he}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(V,z,j){var oe=V("../lib/oop"),re=V("../keyboard/hash_handler").MultiHashHandler,ie=V("../lib/event_emitter").EventEmitter,ae=function(he,le){re.call(this,le,he),this.byName=this.commands,this.setDefaultHandler("exec",function(ue){return ue.command.exec(ue.editor,ue.args||{})})};oe.inherits(ae,re),function(){oe.implement(this,ie),this.exec=function(he,le,ue){if(Array.isArray(he)){for(var de=he.length;de--;)if(this.exec(he[de],le,ue))return!0;return!1}if(typeof he=="string"&&(he=this.commands[he]),!he||le&&le.$readOnly&&!he.readOnly||this.$checkCommandState!=!1&&he.isAvailable&&!he.isAvailable(le))return!1;var pe={editor:le,command:he,args:ue};return pe.returnValue=this._emit("exec",pe),this._signal("afterExec",pe),pe.returnValue!==!1},this.toggleRecording=function(he){if(!this.$inReplay)return he&&he._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(le){this.macro.push([le.command,le.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(he){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(he);try{this.$inReplay=!0,this.macro.forEach(function(le){typeof le=="string"?this.exec(le,he):this.exec(le[0],he,le[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(he){return he.map(function(le){return typeof le[0]!="string"&&(le[0]=le[0].name),le[1]||(le=le[0]),le})}}.call(ae.prototype),z.CommandManager=ae}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(V,z,j){var oe=V("../lib/lang"),re=V("../config"),ie=V("../range").Range;function ae(le,ue){return{win:le,mac:ue}}z.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:ae("Ctrl-,","Command-,"),exec:function(le){re.loadModule("ace/ext/settings_menu",function(ue){ue.init(le),le.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:ae("Alt-E","F4"),exec:function(le){re.loadModule("./ext/error_marker",function(ue){ue.showErrorMarker(le,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:ae("Alt-Shift-E","Shift-F4"),exec:function(le){re.loadModule("./ext/error_marker",function(ue){ue.showErrorMarker(le,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:ae("Ctrl-A","Command-A"),exec:function(le){le.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:ae(null,"Ctrl-L"),exec:function(le){le.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:ae("Ctrl-L","Command-L"),exec:function(le,ue){typeof ue=="number"&&!isNaN(ue)&&le.gotoLine(ue),le.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:ae("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(le){le.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:ae("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(le){le.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:ae("F2","F2"),exec:function(le){le.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:ae("Alt-F2","Alt-F2"),exec:function(le){le.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:ae(null,"Ctrl-Command-Option-0"),exec:function(le){le.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:ae(null,"Ctrl-Command-Option-0"),exec:function(le){le.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:ae("Alt-0","Command-Option-0"),exec:function(le){le.session.foldAll(),le.session.unfold(le.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:ae("Alt-Shift-0","Command-Option-Shift-0"),exec:function(le){le.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:ae("Ctrl-K","Command-G"),exec:function(le){le.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:ae("Ctrl-Shift-K","Command-Shift-G"),exec:function(le){le.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:ae("Alt-K","Ctrl-G"),exec:function(le){le.selection.isEmpty()?le.selection.selectWord():le.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:ae("Alt-Shift-K","Ctrl-Shift-G"),exec:function(le){le.selection.isEmpty()?le.selection.selectWord():le.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:ae("Ctrl-F","Command-F"),exec:function(le){re.loadModule("ace/ext/searchbox",function(ue){ue.Search(le)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(le){le.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:ae("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(le){le.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:ae("Ctrl-Home","Command-Home|Command-Up"),exec:function(le){le.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:ae("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(le){le.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:ae("Up","Up|Ctrl-P"),exec:function(le,ue){le.navigateUp(ue.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:ae("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(le){le.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:ae("Ctrl-End","Command-End|Command-Down"),exec:function(le){le.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:ae("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(le){le.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:ae("Down","Down|Ctrl-N"),exec:function(le,ue){le.navigateDown(ue.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:ae("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(le){le.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:ae("Ctrl-Left","Option-Left"),exec:function(le){le.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:ae("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(le){le.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:ae("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(le){le.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:ae("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(le){le.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:ae("Left","Left|Ctrl-B"),exec:function(le,ue){le.navigateLeft(ue.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:ae("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(le){le.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:ae("Ctrl-Right","Option-Right"),exec:function(le){le.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:ae("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(le){le.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:ae("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(le){le.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:ae("Shift-Right","Shift-Right"),exec:function(le){le.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:ae("Right","Right|Ctrl-F"),exec:function(le,ue){le.navigateRight(ue.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(le){le.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:ae(null,"Option-PageDown"),exec:function(le){le.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:ae("PageDown","PageDown|Ctrl-V"),exec:function(le){le.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(le){le.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:ae(null,"Option-PageUp"),exec:function(le){le.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(le){le.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:ae("Ctrl-Up",null),exec:function(le){le.renderer.scrollBy(0,-2*le.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:ae("Ctrl-Down",null),exec:function(le){le.renderer.scrollBy(0,2*le.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(le){le.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(le){le.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:ae("Ctrl-Alt-E","Command-Option-E"),exec:function(le){le.commands.toggleRecording(le)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:ae("Ctrl-Shift-E","Command-Shift-E"),exec:function(le){le.commands.replay(le)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:ae("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(le){le.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:ae("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(le){le.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:ae("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(le){le.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:ae(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(le){},readOnly:!0},{name:"cut",description:"Cut",exec:function(le){var ue=le.$copyWithEmptySelection&&le.selection.isEmpty(),de=ue?le.selection.getLineRange():le.selection.getRange();le._emit("cut",de),de.isEmpty()||le.session.remove(de),le.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(le,ue){le.$handlePaste(ue)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:ae("Ctrl-D","Command-D"),exec:function(le){le.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:ae("Ctrl-Shift-D","Command-Shift-D"),exec:function(le){le.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:ae("Ctrl-Alt-S","Command-Alt-S"),exec:function(le){le.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:ae("Ctrl-/","Command-/"),exec:function(le){le.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:ae("Ctrl-Shift-/","Command-Shift-/"),exec:function(le){le.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:ae("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(le){le.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:ae("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(le){le.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:ae("Ctrl-H","Command-Option-F"),exec:function(le){re.loadModule("ace/ext/searchbox",function(ue){ue.Search(le,!0)})}},{name:"undo",description:"Undo",bindKey:ae("Ctrl-Z","Command-Z"),exec:function(le){le.undo()}},{name:"redo",description:"Redo",bindKey:ae("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(le){le.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:ae("Alt-Shift-Up","Command-Option-Up"),exec:function(le){le.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:ae("Alt-Up","Option-Up"),exec:function(le){le.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:ae("Alt-Shift-Down","Command-Option-Down"),exec:function(le){le.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:ae("Alt-Down","Option-Down"),exec:function(le){le.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:ae("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(le){le.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:ae("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(le){le.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:ae("Shift-Delete",null),exec:function(le){if(le.selection.isEmpty())le.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:ae("Alt-Backspace","Command-Backspace"),exec:function(le){le.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:ae("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(le){le.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:ae("Ctrl-Shift-Backspace",null),exec:function(le){var ue=le.selection.getRange();ue.start.column=0,le.session.remove(ue)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:ae("Ctrl-Shift-Delete",null),exec:function(le){var ue=le.selection.getRange();ue.end.column=Number.MAX_VALUE,le.session.remove(ue)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:ae("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(le){le.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:ae("Ctrl-Delete","Alt-Delete"),exec:function(le){le.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:ae("Shift-Tab","Shift-Tab"),exec:function(le){le.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:ae("Tab","Tab"),exec:function(le){le.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:ae("Ctrl-[","Ctrl-["),exec:function(le){le.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:ae("Ctrl-]","Ctrl-]"),exec:function(le){le.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(le,ue){le.insert(ue)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(le,ue){le.insert(oe.stringRepeat(ue.text||"",ue.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:ae(null,"Ctrl-O"),exec:function(le){le.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:ae("Alt-Shift-X","Ctrl-T"),exec:function(le){le.transposeLetters()},multiSelectAction:function(le){le.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:ae("Ctrl-U","Ctrl-U"),exec:function(le){le.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:ae("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(le){le.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:ae(null,null),exec:function(le){le.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:ae("Ctrl-Shift-L","Command-Shift-L"),exec:function(le){var ue=le.selection.getRange();ue.start.column=ue.end.column=0,ue.end.row++,le.selection.setRange(ue,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:ae(null,null),exec:function(le){for(var ue=le.selection.isBackwards(),de=ue?le.selection.getSelectionLead():le.selection.getSelectionAnchor(),pe=ue?le.selection.getSelectionAnchor():le.selection.getSelectionLead(),$e=le.session.doc.getLine(de.row).length,_e=le.session.doc.getTextRange(le.selection.getRange()),Ce=_e.replace(/\n\s*/," ").length,Ie=le.session.doc.getLine(de.row),ze=de.row+1;ze<=pe.row+1;ze++){var Et=oe.stringTrimLeft(oe.stringTrimRight(le.session.doc.getLine(ze)));Et.length!==0&&(Et=" "+Et),Ie+=Et}pe.row+10?(le.selection.moveCursorTo(de.row,de.column),le.selection.selectTo(de.row,de.column+Ce)):($e=le.session.doc.getLine(de.row).length>$e?$e+1:$e,le.selection.moveCursorTo(de.row,$e))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:ae(null,null),exec:function(le){var ue=le.session.doc.getLength()-1,de=le.session.doc.getLine(ue).length,pe=le.selection.rangeList.ranges,$e=[];pe.length<1&&(pe=[le.selection.getRange()]);for(var _e=0;_e=jt.lastRow||Pt.end.row<=jt.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}kt=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var vn=this.selection.toJSON();this.curOp.selectionAfter=vn,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(vn),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(At){if(this.$mergeUndoDeltas){var Lt=this.prevOp,kt=this.$mergeableCommands,Pt=Lt.command&&At.command.name==Lt.command.name;if(At.command.name=="insertstring"){var jt=At.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),Pt=Pt&&this.mergeNextCommand&&(!/\s/.test(jt)||/\s/.test(Lt.args)),this.mergeNextCommand=!0}else Pt=Pt&&kt.indexOf(At.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(Pt=!1),Pt?this.session.mergeUndoDeltas=!0:kt.indexOf(At.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(At,Lt){if(At&&typeof At=="string"&&At!="ace"){this.$keybindingId=At;var kt=this;Et.loadModule(["keybinding",At],function(Pt){kt.$keybindingId==At&&kt.keyBinding.setKeyboardHandler(Pt&&Pt.handler),Lt&&Lt()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(At),Lt&&Lt()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(At){if(this.session!=At){this.curOp&&this.endOperation(),this.curOp={};var Lt=this.session;if(Lt){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var kt=this.session.getSelection();kt.off("changeCursor",this.$onCursorChange),kt.off("changeSelection",this.$onSelectionChange)}this.session=At,At?(this.$onDocumentChange=this.onDocumentChange.bind(this),At.on("change",this.$onDocumentChange),this.renderer.setSession(At),this.$onChangeMode=this.onChangeMode.bind(this),At.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),At.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),At.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),At.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),At.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),At.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=At.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(At)),this._signal("changeSession",{session:At,oldSession:Lt}),this.curOp=null,Lt&&Lt._signal("changeEditor",{oldEditor:this}),At&&At._signal("changeEditor",{editor:this}),At&&At.bgTokenizer&&At.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(At,Lt){return this.session.doc.setValue(At),Lt?Lt==1?this.navigateFileEnd():Lt==-1&&this.navigateFileStart():this.selectAll(),At},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(At){this.renderer.onResize(At)},this.setTheme=function(At,Lt){this.renderer.setTheme(At,Lt)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(At){this.renderer.setStyle(At)},this.unsetStyle=function(At){this.renderer.unsetStyle(At)},this.getFontSize=function(){return this.getOption("fontSize")||re.computedStyle(this.container).fontSize},this.setFontSize=function(At){this.setOption("fontSize",At)},this.$highlightBrackets=function(){if(!this.$highlightPending){var At=this;this.$highlightPending=!0,setTimeout(function(){At.$highlightPending=!1;var Lt=At.session;if(!(!Lt||!Lt.bgTokenizer)){Lt.$bracketHighlight&&(Lt.$bracketHighlight.markerIds.forEach(function(jt){Lt.removeMarker(jt)}),Lt.$bracketHighlight=null);var kt=Lt.getMatchingBracketRanges(At.getCursorPosition());if(!kt&&Lt.$mode.getMatching&&(kt=Lt.$mode.getMatching(At.session)),!!kt){var Pt="ace_bracket";Array.isArray(kt)?kt.length==1&&(Pt="ace_error_bracket"):kt=[kt],kt.length==2&&(_e.comparePoints(kt[0].end,kt[1].start)==0?kt=[_e.fromPoints(kt[0].start,kt[1].end)]:_e.comparePoints(kt[0].start,kt[1].end)==0&&(kt=[_e.fromPoints(kt[1].start,kt[0].end)])),Lt.$bracketHighlight={ranges:kt,markerIds:kt.map(function(jt){return Lt.addMarker(jt,Pt,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var At=this;this.$highlightTagPending=!0,setTimeout(function(){At.$highlightTagPending=!1;var Lt=At.session;if(!(!Lt||!Lt.bgTokenizer)){var kt=At.getCursorPosition(),Pt=new qe(At.session,kt.row,kt.column),jt=Pt.getCurrentToken();if(!jt||!/\b(?:tag-open|tag-name)/.test(jt.type)){Lt.removeMarker(Lt.$tagHighlight),Lt.$tagHighlight=null;return}if(!(jt.type.indexOf("tag-open")!==-1&&(jt=Pt.stepForward(),!jt))){var vn=jt.value,$n=jt.value,wn=0,_n=Pt.stepBackward();if(_n.value==="<")do _n=jt,jt=Pt.stepForward(),jt&&(jt.type.indexOf("tag-name")!==-1?($n=jt.value,vn===$n&&(_n.value==="<"?wn++:_n.value===""&&wn--);while(jt&&wn>=0);else{do if(jt=_n,_n=Pt.stepBackward(),jt){if(jt.type.indexOf("tag-name")!==-1)vn===jt.value&&(_n.value==="<"?wn++:_n.value===""){for(var En=0,Sn=_n;Sn;){if(Sn.type.indexOf("tag-name")!==-1&&Sn.value===vn){wn--;break}else if(Sn.value==="<")break;Sn=Pt.stepBackward(),En++}for(var An=0;An1)&&(Lt=!1)),At.$highlightLineMarker&&!Lt)At.removeMarker(At.$highlightLineMarker.id),At.$highlightLineMarker=null;else if(!At.$highlightLineMarker&&Lt){var kt=new _e(Lt.row,Lt.column,Lt.row,1/0);kt.id=At.addMarker(kt,"ace_active-line","screenLine"),At.$highlightLineMarker=kt}else Lt&&(At.$highlightLineMarker.start.row=Lt.row,At.$highlightLineMarker.end.row=Lt.row,At.$highlightLineMarker.start.column=Lt.column,At._signal("changeBackMarker"))},this.onSelectionChange=function(At){var Lt=this.session;if(Lt.$selectionMarker&&Lt.removeMarker(Lt.$selectionMarker),Lt.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var kt=this.selection.getRange(),Pt=this.getSelectionStyle();Lt.$selectionMarker=Lt.addMarker(kt,"ace_selection",Pt)}var jt=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(jt),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var At=this.session,Lt=this.getSelectionRange();if(!(Lt.isEmpty()||Lt.isMultiLine())){var kt=Lt.start.column,Pt=Lt.end.column,jt=At.getLine(Lt.start.row),vn=jt.substring(kt,Pt);if(!(vn.length>5e3||!/[\w\d]/.test(vn))){var $n=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:vn}),wn=jt.substring(kt-1,Pt+1);if($n.test(wn))return $n}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(At){this.renderer.updateText(),this._emit("changeMode",At)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var At=this.getSelectedText(),Lt=this.session.doc.getNewLineCharacter(),kt=!1;if(!At&&this.$copyWithEmptySelection){kt=!0;for(var Pt=this.selection.getAllRanges(),jt=0;jtSn.search(/\S|$/)){var wn=Sn.substr(jt.column).search(/\S|$/);kt.doc.removeInLine(jt.row,jt.column,jt.column+wn)}}this.clearSelection();var _n=jt.column,En=kt.getState(jt.row),Sn=kt.getLine(jt.row),An=Pt.checkOutdent(En,Sn,At);if(kt.insert(jt,At),vn&&vn.selection&&(vn.selection.length==2?this.selection.setSelectionRange(new _e(jt.row,_n+vn.selection[0],jt.row,_n+vn.selection[1])):this.selection.setSelectionRange(new _e(jt.row+vn.selection[0],vn.selection[1],jt.row+vn.selection[2],vn.selection[3]))),this.$enableAutoIndent){if(kt.getDocument().isNewLine(At)){var Cn=Pt.getNextLineIndent(En,Sn.slice(0,jt.column),kt.getTabString());kt.insert({row:jt.row+1,column:0},Cn)}An&&Pt.autoOutdent(En,kt,jt.row)}},this.autoIndent=function(){var At=this.session,Lt=At.getMode(),kt,Pt;if(this.selection.isEmpty())kt=0,Pt=At.doc.getLength()-1;else{var jt=this.getSelectionRange();kt=jt.start.row,Pt=jt.end.row}for(var vn="",$n="",wn="",_n,En,Sn,An=At.getTabString(),Cn=kt;Cn<=Pt;Cn++)Cn>0&&(vn=At.getState(Cn-1),$n=At.getLine(Cn-1),wn=Lt.getNextLineIndent(vn,$n,An)),_n=At.getLine(Cn),En=Lt.$getIndent(_n),wn!==En&&(En.length>0&&(Sn=new _e(Cn,0,Cn,En.length),At.remove(Sn)),wn.length>0&&At.insert({row:Cn,column:0},wn)),Lt.autoOutdent(vn,At,Cn)},this.onTextInput=function(At,Lt){if(!Lt)return this.keyBinding.onTextInput(At);this.startOperation({command:{name:"insertstring"}});var kt=this.applyComposition.bind(this,At,Lt);this.selection.rangeCount?this.forEachSelection(kt):kt(),this.endOperation()},this.applyComposition=function(At,Lt){if(Lt.extendLeft||Lt.extendRight){var kt=this.selection.getRange();kt.start.column-=Lt.extendLeft,kt.end.column+=Lt.extendRight,kt.start.column<0&&(kt.start.row--,kt.start.column+=this.session.getLine(kt.start.row).length+1),this.selection.setRange(kt),!At&&!kt.isEmpty()&&this.remove()}if((At||!this.selection.isEmpty())&&this.insert(At,!0),Lt.restoreStart||Lt.restoreEnd){var kt=this.selection.getRange();kt.start.column-=Lt.restoreStart,kt.end.column-=Lt.restoreEnd,this.selection.setRange(kt)}},this.onCommandKey=function(At,Lt,kt){return this.keyBinding.onCommandKey(At,Lt,kt)},this.setOverwrite=function(At){this.session.setOverwrite(At)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(At){this.setOption("scrollSpeed",At)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(At){this.setOption("dragDelay",At)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(At){this.setOption("selectionStyle",At)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(At){this.setOption("highlightActiveLine",At)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(At){this.setOption("highlightGutterLine",At)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(At){this.setOption("highlightSelectedWord",At)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(At){this.renderer.setAnimatedScroll(At)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(At){this.renderer.setShowInvisibles(At)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(At){this.renderer.setDisplayIndentGuides(At)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(At){this.renderer.setShowPrintMargin(At)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(At){this.renderer.setPrintMarginColumn(At)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(At){this.setOption("readOnly",At)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(At){this.setOption("behavioursEnabled",At)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(At){this.setOption("wrapBehavioursEnabled",At)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(At){this.setOption("showFoldWidgets",At)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(At){this.setOption("fadeFoldWidgets",At)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(At){this.selection.isEmpty()&&(At=="left"?this.selection.selectLeft():this.selection.selectRight());var Lt=this.getSelectionRange();if(this.getBehavioursEnabled()){var kt=this.session,Pt=kt.getState(Lt.start.row),jt=kt.getMode().transformAction(Pt,"deletion",this,kt,Lt);if(Lt.end.column===0){var vn=kt.getTextRange(Lt);if(vn[vn.length-1]==` -`){var $n=kt.getLine(Lt.end.row);/^\s+$/.test($n)&&(Lt.end.column=$n.length)}}jt&&(Lt=jt)}this.session.remove(Lt),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var At=this.getSelectionRange();At.start.column==At.end.column&&At.start.row==At.end.row&&(At.end.column=0,At.end.row++),this.session.remove(At),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var At=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(At)},this.transposeLetters=function(){if(this.selection.isEmpty()){var At=this.getCursorPosition(),Lt=At.column;if(Lt!==0){var kt=this.session.getLine(At.row),Pt,jt;Ltwn.toLowerCase()?1:0});for(var jt=new _e(0,0,0,0),Pt=At.first;Pt<=At.last;Pt++){var vn=Lt.getLine(Pt);jt.start.row=Pt,jt.end.row=Pt,jt.end.column=vn.length,Lt.replace(jt,kt[Pt-At.first])}},this.toggleCommentLines=function(){var At=this.session.getState(this.getCursorPosition().row),Lt=this.$getSelectedRows();this.session.getMode().toggleCommentLines(At,this.session,Lt.first,Lt.last)},this.toggleBlockComment=function(){var At=this.getCursorPosition(),Lt=this.session.getState(At.row),kt=this.getSelectionRange();this.session.getMode().toggleBlockComment(Lt,this.session,kt,At)},this.getNumberAt=function(At,Lt){var kt=/[\-]?[0-9]+(?:\.[0-9]+)?/g;kt.lastIndex=0;for(var Pt=this.session.getLine(At);kt.lastIndex=Lt){var vn={value:jt[0],start:jt.index,end:jt.index+jt[0].length};return vn}}return null},this.modifyNumber=function(At){var Lt=this.selection.getCursor().row,kt=this.selection.getCursor().column,Pt=new _e(Lt,kt-1,Lt,kt),jt=this.session.getTextRange(Pt);if(!isNaN(parseFloat(jt))&&isFinite(jt)){var vn=this.getNumberAt(Lt,kt);if(vn){var $n=vn.value.indexOf(".")>=0?vn.start+vn.value.indexOf(".")+1:vn.end,wn=vn.start+vn.value.length-$n,_n=parseFloat(vn.value);_n*=Math.pow(10,wn),$n!==vn.end&&kt<$n?At*=Math.pow(10,vn.end-kt-1):At*=Math.pow(10,vn.end-kt),_n+=At,_n/=Math.pow(10,wn);var En=_n.toFixed(wn),Sn=new _e(Lt,vn.start,Lt,vn.end);this.session.replace(Sn,En),this.moveCursorTo(Lt,Math.max(vn.start+1,kt+En.length-vn.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var At=this.selection.getCursor().row,Lt=this.selection.getCursor().column;this.selection.selectWord();var kt=this.getSelectedText(),Pt=this.selection.getWordRange().start.column,jt=kt.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),vn=Lt-Pt-1;vn<0&&(vn=0);var $n=0,wn=0,_n=this;kt.match(/[A-Za-z0-9_]+/)&&jt.forEach(function(Ln,Bn){wn=$n+Ln.length,vn>=$n&&vn<=wn&&(kt=Ln,_n.selection.clearSelection(),_n.moveCursorTo(At,$n+Pt),_n.selection.selectTo(At,wn+Pt)),$n=wn});for(var En=this.$toggleWordPairs,Sn,An=0;AnTn+1)break;Tn=Nn.last}for(Sn--,wn=this.session.$moveLines(Cn,Tn,Lt?0:At),Lt&&At==-1&&(An=Sn+1);An<=Sn;)$n[An].moveBy(wn,0),An++;Lt||(wn=0),_n+=wn}jt.fromOrientedRange(jt.ranges[0]),jt.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(At){return At=(At||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(At.start.row),last:this.session.getRowFoldEnd(At.end.row)}},this.onCompositionStart=function(At){this.renderer.showComposition(At)},this.onCompositionUpdate=function(At){this.renderer.setCompositionText(At)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(At){return At>=this.getFirstVisibleRow()&&At<=this.getLastVisibleRow()},this.isRowFullyVisible=function(At){return At>=this.renderer.getFirstFullyVisibleRow()&&At<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(At,Lt){var kt=this.renderer,Pt=this.renderer.layerConfig,jt=At*Math.floor(Pt.height/Pt.lineHeight);Lt===!0?this.selection.$moveSelection(function(){this.moveCursorBy(jt,0)}):Lt===!1&&(this.selection.moveCursorBy(jt,0),this.selection.clearSelection());var vn=kt.scrollTop;kt.scrollBy(0,jt*Pt.lineHeight),Lt!=null&&kt.scrollCursorIntoView(null,.5),kt.animateScrolling(vn)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(At){this.renderer.scrollToRow(At)},this.scrollToLine=function(At,Lt,kt,Pt){this.renderer.scrollToLine(At,Lt,kt,Pt)},this.centerSelection=function(){var At=this.getSelectionRange(),Lt={row:Math.floor(At.start.row+(At.end.row-At.start.row)/2),column:Math.floor(At.start.column+(At.end.column-At.start.column)/2)};this.renderer.alignCursor(Lt,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(At,Lt){this.selection.moveCursorTo(At,Lt)},this.moveCursorToPosition=function(At){this.selection.moveCursorToPosition(At)},this.jumpToMatching=function(At,Lt){var kt=this.getCursorPosition(),Pt=new qe(this.session,kt.row,kt.column),jt=Pt.getCurrentToken(),vn=jt||Pt.stepForward();if(vn){var $n,wn=!1,_n={},En=kt.column-vn.start,Sn,An={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(vn.value.match(/[{}()\[\]]/g)){for(;En=0;--vn)this.$tryReplace(kt[vn],At)&&Pt++;return this.selection.setSelectionRange(jt),Pt},this.$tryReplace=function(At,Lt){var kt=this.session.getTextRange(At);return Lt=this.$search.replace(kt,Lt),Lt!==null?(At.end=this.session.replace(At,Lt),At):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(At,Lt,kt){Lt||(Lt={}),typeof At=="string"||At instanceof RegExp?Lt.needle=At:typeof At=="object"&&oe.mixin(Lt,At);var Pt=this.selection.getRange();Lt.needle==null&&(At=this.session.getTextRange(Pt)||this.$search.$options.needle,At||(Pt=this.session.getWordRange(Pt.start.row,Pt.start.column),At=this.session.getTextRange(Pt)),this.$search.set({needle:At})),this.$search.set(Lt),Lt.start||this.$search.set({start:Pt});var jt=this.$search.find(this.session);if(Lt.preventScroll)return jt;if(jt)return this.revealRange(jt,kt),jt;Lt.backwards?Pt.start=Pt.end:Pt.end=Pt.start,this.selection.setRange(Pt)},this.findNext=function(At,Lt){this.find({skipCurrent:!0,backwards:!1},At,Lt)},this.findPrevious=function(At,Lt){this.find(At,{skipCurrent:!0,backwards:!0},Lt)},this.revealRange=function(At,Lt){this.session.unfold(At),this.selection.setSelectionRange(At);var kt=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(At.start,At.end,.5),Lt!==!1&&this.renderer.animateScrolling(kt)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(At){At.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(At){if(At){var Lt,kt=this,Pt=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var jt=this.$scrollAnchor;jt.style.cssText="position:absolute",this.container.insertBefore(jt,this.container.firstChild);var vn=this.on("changeSelection",function(){Pt=!0}),$n=this.renderer.on("beforeRender",function(){Pt&&(Lt=kt.renderer.container.getBoundingClientRect())}),wn=this.renderer.on("afterRender",function(){if(Pt&&Lt&&(kt.isFocused()||kt.searchBox&&kt.searchBox.isFocused())){var _n=kt.renderer,En=_n.$cursorLayer.$pixelPos,Sn=_n.layerConfig,An=En.top-Sn.offset;En.top>=0&&An+Lt.top<0?Pt=!0:En.topwindow.innerHeight?Pt=!1:Pt=null,Pt!=null&&(jt.style.top=An+"px",jt.style.left=En.left+"px",jt.style.height=Sn.lineHeight+"px",jt.scrollIntoView(Pt)),Pt=Lt=null}});this.setAutoScrollEditorIntoView=function(_n){_n||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",vn),this.renderer.off("afterRender",wn),this.renderer.off("beforeRender",$n))}}},this.$resetCursorStyle=function(){var At=this.$cursorStyle||"ace",Lt=this.renderer.$cursorLayer;!Lt||(Lt.setSmoothBlinking(/smooth/.test(At)),Lt.isBlinking=!this.$readOnly&&At!="wide",re.setCssClass(Lt.element,"ace_slim-cursors",/slim/.test(At)))},this.prompt=function(At,Lt,kt){var Pt=this;Et.loadModule("./ext/prompt",function(jt){jt.prompt(Pt,At,Lt,kt)})}}.call(Ue.prototype),Et.defineOptions(Ue.prototype,"editor",{selectionStyle:{set:function(At){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:At})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(At){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(At){this.textInput.setReadOnly(At),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(At){this.textInput.setCopyWithEmptySelection(At)},initialValue:!1},cursorStyle:{set:function(At){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(At){this.setAutoScrollEditorIntoView(At)}},keyboardHandler:{set:function(At){this.setKeyboardHandler(At)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(At){this.session.setValue(At)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(At){this.setSession(At)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(At){this.renderer.$gutterLayer.setShowLineNumbers(At),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),At&&this.$relativeLineNumbers?Dt.attach(this):Dt.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(At){this.$showLineNumbers&&At?Dt.attach(this):Dt.detach(this)}},placeholder:{set:function(At){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var Lt=this.session&&(this.renderer.$composition||this.getValue());if(Lt&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),re.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!Lt&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),re.addCssClass(this.container,"ace_hasPlaceholder");var kt=re.createElement("div");kt.className="ace_placeholder",kt.textContent=this.$placeholder||"",this.renderer.placeholderNode=kt,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!Lt&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var Dt={getText:function(At,Lt){return(Math.abs(At.selection.lead.row-Lt)||Lt+1+(Lt<9?"\xB7":""))+""},getWidth:function(At,Lt,kt){return Math.max(Lt.toString().length,(kt.lastRow+1).toString().length,2)*kt.characterWidth},update:function(At,Lt){Lt.renderer.$loop.schedule(Lt.renderer.CHANGE_GUTTER)},attach:function(At){At.renderer.$gutterLayer.$renderer=this,At.on("changeSelection",this.update),this.update(null,At)},detach:function(At){At.renderer.$gutterLayer.$renderer==this&&(At.renderer.$gutterLayer.$renderer=null),At.off("changeSelection",this.update),this.update(null,At)}};z.Editor=Ue}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(V,z,j){var oe=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(Oe){this.$session=Oe},this.add=function(Oe,Ue,Dt){this.$fromUndo||Oe!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),(Ue===!1||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),Oe.id=this.$rev=++this.$maxRev),(Oe.action=="remove"||Oe.action=="insert")&&(this.$lastDelta=Oe),this.lastDeltas.push(Oe))},this.addSelection=function(Oe,Ue){this.selections.push({value:Oe,rev:Ue||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(Oe,Ue){Ue==null&&(Ue=this.$rev+1);for(var Dt=this.$undoStack,At=Dt.length;At--;){var Lt=Dt[At][0];if(Lt.id<=Oe)break;Lt.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(Oe){Oe==null&&(Oe=this.$rev),this.mark=Oe},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(Oe){return Oe?ue(Oe):ue(this.$undoStack)+` ---- -`+ue(this.$redoStack)}}).call(oe.prototype);function re(Oe,Ue){for(var Dt=Ue;Dt--;){var At=Oe[Dt];if(At&&!At[0].ignore){for(;Dt"+Oe.end.row+":"+Oe.end.column}function pe(Oe,Ue){var Dt=Oe.action=="insert",At=Ue.action=="insert";if(Dt&&At)if(ae(Ue.start,Oe.end)>=0)Ce(Ue,Oe,-1);else if(ae(Ue.start,Oe.start)<=0)Ce(Oe,Ue,1);else return null;else if(Dt&&!At)if(ae(Ue.start,Oe.end)>=0)Ce(Ue,Oe,-1);else if(ae(Ue.end,Oe.start)<=0)Ce(Oe,Ue,-1);else return null;else if(!Dt&&At)if(ae(Ue.start,Oe.start)>=0)Ce(Ue,Oe,1);else if(ae(Ue.start,Oe.start)<=0)Ce(Oe,Ue,1);else return null;else if(!Dt&&!At)if(ae(Ue.start,Oe.start)>=0)Ce(Ue,Oe,1);else if(ae(Ue.end,Oe.start)<=0)Ce(Oe,Ue,-1);else return null;return[Ue,Oe]}function $e(Oe,Ue){for(var Dt=Oe.length;Dt--;)for(var At=0;At=0?Ce(Oe,Ue,-1):(ae(Oe.start,Ue.start)<=0||Ce(Oe,ie.fromPoints(Ue.start,Oe.start),-1),Ce(Ue,Oe,1));else if(!Dt&&At)ae(Ue.start,Oe.end)>=0?Ce(Ue,Oe,-1):(ae(Ue.start,Oe.start)<=0||Ce(Ue,ie.fromPoints(Oe.start,Ue.start),-1),Ce(Oe,Ue,1));else if(!Dt&&!At)if(ae(Ue.start,Oe.end)>=0)Ce(Ue,Oe,-1);else if(ae(Ue.end,Oe.start)<=0)Ce(Oe,Ue,-1);else{var Lt,kt;return ae(Oe.start,Ue.start)<0&&(Lt=Oe,Oe=ze(Oe,Ue.start)),ae(Oe.end,Ue.end)>0&&(kt=ze(Oe,Ue.end)),Ie(Ue.end,Oe.start,Oe.end,-1),kt&&!Lt&&(Oe.lines=kt.lines,Oe.start=kt.start,Oe.end=kt.end,kt=Oe),[Ue,Lt,kt].filter(Boolean)}return[Ue,Oe]}function Ce(Oe,Ue,Dt){Ie(Oe.start,Ue.start,Ue.end,Dt),Ie(Oe.end,Ue.start,Ue.end,Dt)}function Ie(Oe,Ue,Dt,At){Oe.row==(At==1?Ue:Dt).row&&(Oe.column+=At*(Dt.column-Ue.column)),Oe.row+=At*(Dt.row-Ue.row)}function ze(Oe,Ue){var Dt=Oe.lines,At=Oe.end;Oe.end=he(Ue);var Lt=Oe.end.row-Oe.start.row,kt=Dt.splice(Lt,Dt.length),Pt=Lt?Ue.column:Ue.column-Oe.start.column;Dt.push(kt[0].substring(0,Pt)),kt[0]=kt[0].substr(Pt);var jt={start:he(Ue),end:At,lines:kt,action:Oe.action};return jt}function Et(Oe,Ue){Ue=le(Ue);for(var Dt=Oe.length;Dt--;){for(var At=Oe[Dt],Lt=0;LtIe&&(qe=Ce.end.row+1,Ce=pe.getNextFoldLine(qe,Ce),Ie=Ce?Ce.start.row:1/0),qe>_e){for(;this.$lines.getLength()>Et+1;)this.$lines.pop();break}ze=this.$lines.get(++Et),ze?ze.row=qe:(ze=this.$lines.createCell(qe,de,this.session,ue),this.$lines.push(ze)),this.$renderCell(ze,de,Ce,qe),qe++}this._signal("afterRender"),this.$updateGutterWidth(de)},this.$updateGutterWidth=function(de){var pe=this.session,$e=pe.gutterRenderer||this.$renderer,_e=pe.$firstLineNumber,Ce=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||pe.$useWrapMode)&&(Ce=pe.getLength()+_e-1);var Ie=$e?$e.getWidth(pe,Ce,de):Ce.toString().length*de.characterWidth,ze=this.$padding||this.$computePadding();Ie+=ze.left+ze.right,Ie!==this.gutterWidth&&!isNaN(Ie)&&(this.gutterWidth=Ie,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",Ie))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var de=this.session.selection.getCursor();this.$cursorRow!==de.row&&(this.$cursorRow=de.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var de=this.session.selection.cursor.row;if(this.$cursorRow=de,!(this.$cursorCell&&this.$cursorCell.row==de)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var pe=this.$lines.cells;this.$cursorCell=null;for(var $e=0;$e=this.$cursorRow){if(_e.row>this.$cursorRow){var Ce=this.session.getFoldLine(this.$cursorRow);if($e>0&&Ce&&Ce.start.row==pe[$e-1].row)_e=pe[$e-1];else break}_e.element.className="ace_gutter-active-line "+_e.element.className,this.$cursorCell=_e;break}}}}},this.scrollLines=function(de){var pe=this.config;if(this.config=de,this.$updateCursorRow(),this.$lines.pageChanged(pe,de))return this.update(de);this.$lines.moveContainer(de);var $e=Math.min(de.lastRow+de.gutterOffset,this.session.getLength()-1),_e=this.oldLastRow;if(this.oldLastRow=$e,!pe||_e0;Ce--)this.$lines.shift();if(_e>$e)for(var Ce=this.session.getFoldedRowCount($e+1,_e);Ce>0;Ce--)this.$lines.pop();de.firstRow_e&&this.$lines.push(this.$renderLines(de,_e+1,$e)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(de)},this.$renderLines=function(de,pe,$e){for(var _e=[],Ce=pe,Ie=this.session.getNextFoldLine(Ce),ze=Ie?Ie.start.row:1/0;Ce>ze&&(Ce=Ie.end.row+1,Ie=this.session.getNextFoldLine(Ce,Ie),ze=Ie?Ie.start.row:1/0),!(Ce>$e);){var Et=this.$lines.createCell(Ce,de,this.session,ue);this.$renderCell(Et,de,Ie,Ce),_e.push(Et),Ce++}return _e},this.$renderCell=function(de,pe,$e,_e){var Ce=de.element,Ie=this.session,ze=Ce.childNodes[0],Et=Ce.childNodes[1],qe=Ie.$firstLineNumber,Oe=Ie.$breakpoints,Ue=Ie.$decorations,Dt=Ie.gutterRenderer||this.$renderer,At=this.$showFoldWidgets&&Ie.foldWidgets,Lt=$e?$e.start.row:Number.MAX_VALUE,kt="ace_gutter-cell ";if(this.$highlightGutterLine&&(_e==this.$cursorRow||$e&&_e=Lt&&this.$cursorRow<=$e.end.row)&&(kt+="ace_gutter-active-line ",this.$cursorCell!=de&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=de)),Oe[_e]&&(kt+=Oe[_e]),Ue[_e]&&(kt+=Ue[_e]),this.$annotations[_e]&&(kt+=this.$annotations[_e].className),Ce.className!=kt&&(Ce.className=kt),At){var Pt=At[_e];Pt==null&&(Pt=At[_e]=Ie.getFoldWidget(_e))}if(Pt){var kt="ace_fold-widget ace_"+Pt;Pt=="start"&&_e==Lt&&_e<$e.end.row?kt+=" ace_closed":kt+=" ace_open",Et.className!=kt&&(Et.className=kt);var jt=pe.lineHeight+"px";oe.setStyle(Et.style,"height",jt),oe.setStyle(Et.style,"display","inline-block")}else Et&&oe.setStyle(Et.style,"display","none");var vn=(Dt?Dt.getText(Ie,_e):_e+qe).toString();return vn!==ze.data&&(ze.data=vn),oe.setStyle(de.element.style,"height",this.$lines.computeLineHeight(_e,pe,Ie)+"px"),oe.setStyle(de.element.style,"top",this.$lines.computeLineTop(_e,pe,Ie)+"px"),de.text=vn,de},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(de){this.$highlightGutterLine=de},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(de){this.$renderer=!de&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(de){de?oe.addCssClass(this.element,"ace_folding-enabled"):oe.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=de,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var de=oe.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(de.borderLeftWidth)||0)+(parseInt(de.paddingLeft)||0)+1,this.$padding.right=(parseInt(de.borderRightWidth)||0)+(parseInt(de.paddingRight)||0),this.$padding},this.getRegion=function(de){var pe=this.$padding||this.$computePadding(),$e=this.element.getBoundingClientRect();if(de.x$e.right-pe.right)return"foldWidgets"}}).call(le.prototype);function ue(de){var pe=document.createTextNode("");de.appendChild(pe);var $e=oe.createElement("span");return de.appendChild($e),de}z.Gutter=le}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(V,z,j){var oe=V("../range").Range,re=V("../lib/dom"),ie=function(ae){this.element=re.createElement("div"),this.element.className="ace_layer ace_marker-layer",ae.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(he){this.$padding=he},this.setSession=function(he){this.session=he},this.setMarkers=function(he){this.markers=he},this.elt=function(he,le){var ue=this.i!=-1&&this.element.childNodes[this.i];ue?this.i++:(ue=document.createElement("div"),this.element.appendChild(ue),this.i=-1),ue.style.cssText=le,ue.className=he},this.update=function(he){if(he){this.config=he,this.i=0;var le;for(var ue in this.markers){var de=this.markers[ue];if(!de.range){de.update(le,this,this.session,he);continue}var pe=de.range.clipRows(he.firstRow,he.lastRow);if(!pe.isEmpty())if(pe=pe.toScreenRange(this.session),de.renderer){var $e=this.$getTop(pe.start.row,he),_e=this.$padding+pe.start.column*he.characterWidth;de.renderer(le,pe,_e,$e,he)}else de.type=="fullLine"?this.drawFullLineMarker(le,pe,de.clazz,he):de.type=="screenLine"?this.drawScreenLineMarker(le,pe,de.clazz,he):pe.isMultiLine()?de.type=="text"?this.drawTextMarker(le,pe,de.clazz,he):this.drawMultiLineMarker(le,pe,de.clazz,he):this.drawSingleLineMarker(le,pe,de.clazz+" ace_start ace_br15",he)}if(this.i!=-1)for(;this.iqe,Ie==Ce),de,Ie==Ce?0:1,pe)},this.drawMultiLineMarker=function(he,le,ue,de,pe){var $e=this.$padding,_e=de.lineHeight,Ce=this.$getTop(le.start.row,de),Ie=$e+le.start.column*de.characterWidth;if(pe=pe||"",this.session.$bidiHandler.isBidiRow(le.start.row)){var ze=le.clone();ze.end.row=ze.start.row,ze.end.column=this.session.getLine(ze.start.row).length,this.drawBidiSingleLineMarker(he,ze,ue+" ace_br1 ace_start",de,null,pe)}else this.elt(ue+" ace_br1 ace_start","height:"+_e+"px;right:0;top:"+Ce+"px;left:"+Ie+"px;"+(pe||""));if(this.session.$bidiHandler.isBidiRow(le.end.row)){var ze=le.clone();ze.start.row=ze.end.row,ze.start.column=0,this.drawBidiSingleLineMarker(he,ze,ue+" ace_br12",de,null,pe)}else{Ce=this.$getTop(le.end.row,de);var Et=le.end.column*de.characterWidth;this.elt(ue+" ace_br12","height:"+_e+"px;width:"+Et+"px;top:"+Ce+"px;left:"+$e+"px;"+(pe||""))}if(_e=(le.end.row-le.start.row-1)*de.lineHeight,!(_e<=0)){Ce=this.$getTop(le.start.row+1,de);var qe=(le.start.column?1:0)|(le.end.column?0:8);this.elt(ue+(qe?" ace_br"+qe:""),"height:"+_e+"px;right:0;top:"+Ce+"px;left:"+$e+"px;"+(pe||""))}},this.drawSingleLineMarker=function(he,le,ue,de,pe,$e){if(this.session.$bidiHandler.isBidiRow(le.start.row))return this.drawBidiSingleLineMarker(he,le,ue,de,pe,$e);var _e=de.lineHeight,Ce=(le.end.column+(pe||0)-le.start.column)*de.characterWidth,Ie=this.$getTop(le.start.row,de),ze=this.$padding+le.start.column*de.characterWidth;this.elt(ue,"height:"+_e+"px;width:"+Ce+"px;top:"+Ie+"px;left:"+ze+"px;"+($e||""))},this.drawBidiSingleLineMarker=function(he,le,ue,de,pe,$e){var _e=de.lineHeight,Ce=this.$getTop(le.start.row,de),Ie=this.$padding,ze=this.session.$bidiHandler.getSelections(le.start.column,le.end.column);ze.forEach(function(Et){this.elt(ue,"height:"+_e+"px;width:"+Et.width+(pe||0)+"px;top:"+Ce+"px;left:"+(Ie+Et.left)+"px;"+($e||""))},this)},this.drawFullLineMarker=function(he,le,ue,de,pe){var $e=this.$getTop(le.start.row,de),_e=de.lineHeight;le.start.row!=le.end.row&&(_e+=this.$getTop(le.end.row,de)-$e),this.elt(ue,"height:"+_e+"px;top:"+$e+"px;left:0;right:0;"+(pe||""))},this.drawScreenLineMarker=function(he,le,ue,de,pe){var $e=this.$getTop(le.start.row,de),_e=de.lineHeight;this.elt(ue,"height:"+_e+"px;top:"+$e+"px;left:0;right:0;"+(pe||""))}}).call(ie.prototype),z.Marker=ie}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(V,z,j){var oe=V("../lib/oop"),re=V("../lib/dom"),ie=V("../lib/lang"),ae=V("./lines").Lines,he=V("../lib/event_emitter").EventEmitter,le=function(ue){this.dom=re,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",ue.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new ae(this.element)};(function(){oe.implement(this,he),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var ue=this.session.doc,de=ue.getNewLineCharacter()==` -`&&ue.getNewLineMode()!="windows",pe=de?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=pe)return this.EOL_CHAR=pe,!0},this.setPadding=function(ue){this.$padding=ue,this.element.style.margin="0 "+ue+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(ue){this.$fontMetrics=ue,this.$fontMetrics.on("changeCharacterSize",function(de){this._signal("changeCharacterSize",de)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(ue){this.session=ue,ue&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(ue){return this.showInvisibles==ue?!1:(this.showInvisibles=ue,typeof ue=="string"?(this.showSpaces=/tab/i.test(ue),this.showTabs=/space/i.test(ue),this.showEOL=/eol/i.test(ue)):this.showSpaces=this.showTabs=this.showEOL=ue,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(ue){return this.displayIndentGuides==ue?!1:(this.displayIndentGuides=ue,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var ue=this.session.getTabSize();this.tabSize=ue;for(var de=this.$tabStrings=[0],pe=1;peOe&&(ze=Et.end.row+1,Et=this.session.getNextFoldLine(ze,Et),Oe=Et?Et.start.row:1/0),!(ze>_e);){var Ue=Ce[Ie++];if(Ue){this.dom.removeChildren(Ue),this.$renderLine(Ue,ze,ze==Oe?Et:!1),qe&&(Ue.style.top=this.$lines.computeLineTop(ze,ue,this.session)+"px");var Dt=ue.lineHeight*this.session.getRowLength(ze)+"px";Ue.style.height!=Dt&&(qe=!0,Ue.style.height=Dt)}ze++}if(qe)for(;Ie0;_e--)this.$lines.shift();if(de.lastRow>ue.lastRow)for(var _e=this.session.getFoldedRowCount(ue.lastRow+1,de.lastRow);_e>0;_e--)this.$lines.pop();ue.firstRowde.lastRow&&this.$lines.push(this.$renderLinesFragment(ue,de.lastRow+1,ue.lastRow))},this.$renderLinesFragment=function(ue,de,pe){for(var $e=[],_e=de,Ce=this.session.getNextFoldLine(_e),Ie=Ce?Ce.start.row:1/0;_e>Ie&&(_e=Ce.end.row+1,Ce=this.session.getNextFoldLine(_e,Ce),Ie=Ce?Ce.start.row:1/0),!(_e>pe);){var ze=this.$lines.createCell(_e,ue,this.session),Et=ze.element;this.dom.removeChildren(Et),re.setStyle(Et.style,"height",this.$lines.computeLineHeight(_e,ue,this.session)+"px"),re.setStyle(Et.style,"top",this.$lines.computeLineTop(_e,ue,this.session)+"px"),this.$renderLine(Et,_e,_e==Ie?Ce:!1),this.$useLineGroups()?Et.className="ace_line_group":Et.className="ace_line",$e.push(ze),_e++}return $e},this.update=function(ue){this.$lines.moveContainer(ue),this.config=ue;for(var de=ue.firstRow,pe=ue.lastRow,$e=this.$lines;$e.getLength();)$e.pop();$e.push(this.$renderLinesFragment(ue,de,pe))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(ue,de,pe,$e){for(var _e=this,Ce=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,Ie=this.dom.createFragment(this.element),ze,Et=0;ze=Ce.exec($e);){var qe=ze[1],Oe=ze[2],Ue=ze[3],Dt=ze[4],At=ze[5];if(!(!_e.showSpaces&&Oe)){var Lt=Et!=ze.index?$e.slice(Et,ze.index):"";if(Et=ze.index+ze[0].length,Lt&&Ie.appendChild(this.dom.createTextNode(Lt,this.element)),qe){var kt=_e.session.getScreenTabSize(de+ze.index);Ie.appendChild(_e.$tabStrings[kt].cloneNode(!0)),de+=kt-1}else if(Oe)if(_e.showSpaces){var Pt=this.dom.createElement("span");Pt.className="ace_invisible ace_invisible_space",Pt.textContent=ie.stringRepeat(_e.SPACE_CHAR,Oe.length),Ie.appendChild(Pt)}else Ie.appendChild(this.com.createTextNode(Oe,this.element));else if(Ue){var Pt=this.dom.createElement("span");Pt.className="ace_invisible ace_invisible_space ace_invalid",Pt.textContent=ie.stringRepeat(_e.SPACE_CHAR,Ue.length),Ie.appendChild(Pt)}else if(Dt){de+=1;var Pt=this.dom.createElement("span");Pt.style.width=_e.config.characterWidth*2+"px",Pt.className=_e.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",Pt.textContent=_e.showSpaces?_e.SPACE_CHAR:Dt,Ie.appendChild(Pt)}else if(At){de+=1;var Pt=this.dom.createElement("span");Pt.style.width=_e.config.characterWidth*2+"px",Pt.className="ace_cjk",Pt.textContent=At,Ie.appendChild(Pt)}}}if(Ie.appendChild(this.dom.createTextNode(Et?$e.slice(Et):$e,this.element)),this.$textToken[pe.type])ue.appendChild(Ie);else{var jt="ace_"+pe.type.replace(/\./g," ace_"),Pt=this.dom.createElement("span");pe.type=="fold"&&(Pt.style.width=pe.value.length*this.config.characterWidth+"px"),Pt.className=jt,Pt.appendChild(Ie),ue.appendChild(Pt)}return de+$e.length},this.renderIndentGuide=function(ue,de,pe){var $e=de.search(this.$indentGuideRe);if($e<=0||$e>=pe)return de;if(de[0]==" "){$e-=$e%this.tabSize;for(var _e=$e/this.tabSize,Ce=0;Ce<_e;Ce++)ue.appendChild(this.$tabStrings[" "].cloneNode(!0));return de.substr($e)}else if(de[0]==" "){for(var Ce=0;Ce<$e;Ce++)ue.appendChild(this.$tabStrings[" "].cloneNode(!0));return de.substr($e)}return de},this.$createLineElement=function(ue){var de=this.dom.createElement("div");return de.className="ace_line",de.style.height=this.config.lineHeight+"px",de},this.$renderWrappedLine=function(ue,de,pe){var $e=0,_e=0,Ce=pe[0],Ie=0,ze=this.$createLineElement();ue.appendChild(ze);for(var Et=0;Et=Ce;)Ie=this.$renderToken(ze,Ie,qe,Oe.substring(0,Ce-$e)),Oe=Oe.substring(Ce-$e),$e=Ce,ze=this.$createLineElement(),ue.appendChild(ze),ze.appendChild(this.dom.createTextNode(ie.stringRepeat("\xA0",pe.indent),this.element)),_e++,Ie=0,Ce=pe[_e]||Number.MAX_VALUE;Oe.length!=0&&($e+=Oe.length,Ie=this.$renderToken(ze,Ie,qe,Oe))}}pe[pe.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(ze,Ie,null,"",!0)},this.$renderSimpleLine=function(ue,de){var pe=0,$e=de[0],_e=$e.value;this.displayIndentGuides&&(_e=this.renderIndentGuide(ue,_e)),_e&&(pe=this.$renderToken(ue,pe,$e,_e));for(var Ce=1;Cethis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(ue,pe,$e,_e);pe=this.$renderToken(ue,pe,$e,_e)}},this.$renderOverflowMessage=function(ue,de,pe,$e,_e){pe&&this.$renderToken(ue,de,pe,$e.slice(0,this.MAX_LINE_LENGTH-de));var Ce=this.dom.createElement("span");Ce.className="ace_inline_button ace_keyword ace_toggle_wrap",Ce.textContent=_e?"":"",ue.appendChild(Ce)},this.$renderLine=function(ue,de,pe){if(!pe&&pe!=!1&&(pe=this.session.getFoldLine(de)),pe)var $e=this.$getFoldLineTokens(de,pe);else var $e=this.session.getTokens(de);var _e=ue;if($e.length){var Ce=this.session.getRowSplitData(de);if(Ce&&Ce.length){this.$renderWrappedLine(ue,$e,Ce);var _e=ue.lastChild}else{var _e=ue;this.$useLineGroups()&&(_e=this.$createLineElement(),ue.appendChild(_e)),this.$renderSimpleLine(_e,$e)}}else this.$useLineGroups()&&(_e=this.$createLineElement(),ue.appendChild(_e));if(this.showEOL&&_e){pe&&(de=pe.end.row);var Ie=this.dom.createElement("span");Ie.className="ace_invisible ace_invisible_eol",Ie.textContent=de==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,_e.appendChild(Ie)}},this.$getFoldLineTokens=function(ue,de){var pe=this.session,$e=[];function _e(Ie,ze,Et){for(var qe=0,Oe=0;Oe+Ie[qe].value.lengthEt-ze&&(Ue=Ue.substring(0,Et-ze)),$e.push({type:Ie[qe].type,value:Ue}),Oe=ze+Ue.length,qe+=1}for(;OeEt?$e.push({type:Ie[qe].type,value:Ue.substring(0,Et-Oe)}):$e.push(Ie[qe]),Oe+=Ue.length,qe+=1}}var Ce=pe.getTokens(ue);return de.walk(function(Ie,ze,Et,qe,Oe){Ie!=null?$e.push({type:"fold",value:Ie}):(Oe&&(Ce=pe.getTokens(ze)),Ce.length&&_e(Ce,qe,Et))},de.end.row,this.session.getLine(de.end.row).length),$e},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(le.prototype),z.Text=le}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(V,z,j){var oe=V("../lib/dom"),re=function(ie){this.element=oe.createElement("div"),this.element.className="ace_layer ace_cursor-layer",ie.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),oe.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(ie){for(var ae=this.cursors,he=ae.length;he--;)oe.setStyle(ae[he].style,"opacity",ie?"":"0")},this.$startCssAnimation=function(){for(var ie=this.cursors,ae=ie.length;ae--;)ie[ae].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&oe.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,oe.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(ie){this.$padding=ie},this.setSession=function(ie){this.session=ie},this.setBlinking=function(ie){ie!=this.isBlinking&&(this.isBlinking=ie,this.restartTimer())},this.setBlinkInterval=function(ie){ie!=this.blinkInterval&&(this.blinkInterval=ie,this.restartTimer())},this.setSmoothBlinking=function(ie){ie!=this.smoothBlinking&&(this.smoothBlinking=ie,oe.setCssClass(this.element,"ace_smooth-blinking",ie),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var ie=oe.createElement("div");return ie.className="ace_cursor",this.element.appendChild(ie),this.cursors.push(ie),ie},this.removeCursor=function(){if(this.cursors.length>1){var ie=this.cursors.pop();return ie.parentNode.removeChild(ie),ie}},this.hideCursor=function(){this.isVisible=!1,oe.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,oe.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var ie=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,oe.removeCssClass(this.element,"ace_smooth-blinking")),ie(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&oe.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),oe.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var ae=function(){this.timeoutId=setTimeout(function(){ie(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){ie(!0),ae()},this.blinkInterval),ae()}},this.getPixelPosition=function(ie,ae){if(!this.config||!this.session)return{left:0,top:0};ie||(ie=this.session.selection.getCursor());var he=this.session.documentToScreenPosition(ie),le=this.$padding+(this.session.$bidiHandler.isBidiRow(he.row,ie.row)?this.session.$bidiHandler.getPosLeft(he.column):he.column*this.config.characterWidth),ue=(he.row-(ae?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:le,top:ue}},this.isCursorInView=function(ie,ae){return ie.top>=0&&ie.topie.height+ie.offset||de.top<0)&&he>1)){var pe=this.cursors[le++]||this.addCursor(),$e=pe.style;this.drawCursor?this.drawCursor(pe,de,ie,ae[he],this.session):this.isCursorInView(de,ie)?(oe.setStyle($e,"display","block"),oe.translate(pe,de.left,de.top),oe.setStyle($e,"width",Math.round(ie.characterWidth)+"px"),oe.setStyle($e,"height",ie.lineHeight+"px")):oe.setStyle($e,"display","none")}}for(;this.cursors.length>le;)this.removeCursor();var _e=this.session.getOverwrite();this.$setOverwrite(_e),this.$pixelPos=de,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(ie){ie!=this.overwrite&&(this.overwrite=ie,ie?oe.addCssClass(this.element,"ace_overwrite-cursors"):oe.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(re.prototype),z.Cursor=re}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(V,z,j){var oe=V("./lib/oop"),re=V("./lib/dom"),ie=V("./lib/event"),ae=V("./lib/event_emitter").EventEmitter,he=32768,le=function(pe){this.element=re.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=re.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),pe.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,ie.addListener(this.element,"scroll",this.onScroll.bind(this)),ie.addListener(this.element,"mousedown",ie.preventDefault)};(function(){oe.implement(this,ae),this.setVisible=function(pe){this.element.style.display=pe?"":"none",this.isVisible=pe,this.coeff=1}}).call(le.prototype);var ue=function(pe,$e){le.call(this,pe),this.scrollTop=0,this.scrollHeight=0,$e.$scrollbarWidth=this.width=re.scrollbarWidth(pe.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};oe.inherits(ue,le),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var pe=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-pe)/(this.coeff-pe)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(pe){this.element.style.height=pe+"px"},this.setInnerHeight=this.setScrollHeight=function(pe){this.scrollHeight=pe,pe>he?(this.coeff=he/pe,pe=he):this.coeff!=1&&(this.coeff=1),this.inner.style.height=pe+"px"},this.setScrollTop=function(pe){this.scrollTop!=pe&&(this.skipEvent=!0,this.scrollTop=pe,this.element.scrollTop=pe*this.coeff)}}.call(ue.prototype);var de=function(pe,$e){le.call(this,pe),this.scrollLeft=0,this.height=$e.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};oe.inherits(de,le),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(pe){this.element.style.width=pe+"px"},this.setInnerWidth=function(pe){this.inner.style.width=pe+"px"},this.setScrollWidth=function(pe){this.inner.style.width=pe+"px"},this.setScrollLeft=function(pe){this.scrollLeft!=pe&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=pe)}}.call(de.prototype),z.ScrollBar=ue,z.ScrollBarV=ue,z.ScrollBarH=de,z.VScrollBar=ue,z.HScrollBar=de}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(V,z,j){var oe=V("./lib/event"),re=function(ie,ae){this.onRender=ie,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=ae||window;var he=this;this._flush=function(le){he.pending=!1;var ue=he.changes;if(ue&&(oe.blockIdle(100),he.changes=0,he.onRender(ue)),he.changes){if(he.$recursionLimit--<0)return;he.schedule()}else he.$recursionLimit=2}};(function(){this.schedule=function(ie){this.changes=this.changes|ie,this.changes&&!this.pending&&(oe.nextFrame(this._flush),this.pending=!0)},this.clear=function(ie){var ae=this.changes;return this.changes=0,ae}}).call(re.prototype),z.RenderLoop=re}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(V,z,j){var oe=V("../lib/oop"),re=V("../lib/dom"),ie=V("../lib/lang"),ae=V("../lib/event"),he=V("../lib/useragent"),le=V("../lib/event_emitter").EventEmitter,ue=256,de=typeof ResizeObserver=="function",pe=200,$e=z.FontMetrics=function(_e){this.el=re.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=re.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=re.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),_e.appendChild(this.el),this.$measureNode.textContent=ie.stringRepeat("X",ue),this.$characterSize={width:0,height:0},de?this.$addObserver():this.checkForSizeChanges()};(function(){oe.implement(this,le),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(_e,Ce){_e.width=_e.height="auto",_e.left=_e.top="0px",_e.visibility="hidden",_e.position="absolute",_e.whiteSpace="pre",he.isIE<8?_e["font-family"]="inherit":_e.font="inherit",_e.overflow=Ce?"hidden":"visible"},this.checkForSizeChanges=function(_e){if(_e===void 0&&(_e=this.$measureSizes()),_e&&(this.$characterSize.width!==_e.width||this.$characterSize.height!==_e.height)){this.$measureNode.style.fontWeight="bold";var Ce=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=_e,this.charSizes=Object.create(null),this.allowBoldFonts=Ce&&Ce.width===_e.width&&Ce.height===_e.height,this._emit("changeCharacterSize",{data:_e})}},this.$addObserver=function(){var _e=this;this.$observer=new window.ResizeObserver(function(Ce){_e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var _e=this;return this.$pollSizeChangesTimer=ae.onIdle(function Ce(){_e.checkForSizeChanges(),ae.onIdle(Ce,500)},500)},this.setPolling=function(_e){_e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(_e){var Ce={height:(_e||this.$measureNode).clientHeight,width:(_e||this.$measureNode).clientWidth/ue};return Ce.width===0||Ce.height===0?null:Ce},this.$measureCharWidth=function(_e){this.$main.textContent=ie.stringRepeat(_e,ue);var Ce=this.$main.getBoundingClientRect();return Ce.width/ue},this.getCharacterWidth=function(_e){var Ce=this.charSizes[_e];return Ce===void 0&&(Ce=this.charSizes[_e]=this.$measureCharWidth(_e)/this.$characterSize.width),Ce},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function _e(Ce){return!Ce||!Ce.parentElement?1:(window.getComputedStyle(Ce).zoom||1)*_e(Ce.parentElement)},this.$initTransformMeasureNodes=function(){var _e=function(Ce,Ie){return["div",{style:"position: absolute;top:"+Ce+"px;left:"+Ie+"px;"}]};this.els=re.buildDom([_e(0,0),_e(pe,0),_e(0,pe),_e(pe,pe)],this.el)},this.transformCoordinates=function(_e,Ce){if(_e){var Ie=this.$getZoom(this.el);_e=Oe(1/Ie,_e)}function ze(An,Cn,Tn){var Nn=An[1]*Cn[0]-An[0]*Cn[1];return[(-Cn[1]*Tn[0]+Cn[0]*Tn[1])/Nn,(+An[1]*Tn[0]-An[0]*Tn[1])/Nn]}function Et(An,Cn){return[An[0]-Cn[0],An[1]-Cn[1]]}function qe(An,Cn){return[An[0]+Cn[0],An[1]+Cn[1]]}function Oe(An,Cn){return[An*Cn[0],An*Cn[1]]}this.els||this.$initTransformMeasureNodes();function Ue(An){var Cn=An.getBoundingClientRect();return[Cn.left,Cn.top]}var Dt=Ue(this.els[0]),At=Ue(this.els[1]),Lt=Ue(this.els[2]),kt=Ue(this.els[3]),Pt=ze(Et(kt,At),Et(kt,Lt),Et(qe(At,Lt),qe(kt,Dt))),jt=Oe(1+Pt[0],Et(At,Dt)),vn=Oe(1+Pt[1],Et(Lt,Dt));if(Ce){var $n=Ce,wn=Pt[0]*$n[0]/pe+Pt[1]*$n[1]/pe+1,_n=qe(Oe($n[0],jt),Oe($n[1],vn));return qe(Oe(1/wn/pe,_n),Dt)}var En=Et(_e,Dt),Sn=ze(Et(jt,Oe(Pt[0],En)),Et(vn,Oe(Pt[1],En)),En);return Oe(pe,Sn)}}).call($e.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(V,z,j){var oe=V("./lib/oop"),re=V("./lib/dom"),ie=V("./config"),ae=V("./layer/gutter").Gutter,he=V("./layer/marker").Marker,le=V("./layer/text").Text,ue=V("./layer/cursor").Cursor,de=V("./scrollbar").HScrollBar,pe=V("./scrollbar").VScrollBar,$e=V("./renderloop").RenderLoop,_e=V("./layer/font_metrics").FontMetrics,Ce=V("./lib/event_emitter").EventEmitter,Ie=`.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}`,ze=V("./lib/useragent"),Et=ze.isIE;re.importCssString(Ie,"ace_editor.css",!1);var qe=function(Oe,Ue){var Dt=this;this.container=Oe||re.createElement("div"),re.addCssClass(this.container,"ace_editor"),re.HI_DPI&&re.addCssClass(this.container,"ace_hidpi"),this.setTheme(Ue),ie.get("useStrictCSP")==null&&ie.set("useStrictCSP",!1),this.$gutter=re.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=re.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=re.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new ae(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new he(this.content);var At=this.$textLayer=new le(this.content);this.canvas=At.element,this.$markerFront=new he(this.content),this.$cursorLayer=new ue(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new pe(this.container,this),this.scrollBarH=new de(this.container,this),this.scrollBarV.on("scroll",function(Lt){Dt.$scrollAnimation||Dt.session.setScrollTop(Lt.data-Dt.scrollMargin.top)}),this.scrollBarH.on("scroll",function(Lt){Dt.$scrollAnimation||Dt.session.setScrollLeft(Lt.data-Dt.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new _e(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(Lt){Dt.updateCharacterSize(),Dt.onResize(!0,Dt.gutterWidth,Dt.$size.width,Dt.$size.height),Dt._signal("changeCharacterSize",Lt)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!ze.isIOS,this.$loop=new $e(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),ie.resetOptions(this),ie._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,oe.implement(this,Ce),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),re.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(Oe){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=Oe,Oe&&this.scrollMargin.top&&Oe.getScrollTop()<=0&&Oe.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(Oe),this.$markerBack.setSession(Oe),this.$markerFront.setSession(Oe),this.$gutterLayer.setSession(Oe),this.$textLayer.setSession(Oe),Oe&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(Oe,Ue,Dt){if(Ue===void 0&&(Ue=1/0),this.$changedLines?(this.$changedLines.firstRow>Oe&&(this.$changedLines.firstRow=Oe),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(Oe){Oe?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(Oe,Ue,Dt,At){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=Oe?1:0;var Lt=this.container;At||(At=Lt.clientHeight||Lt.scrollHeight),Dt||(Dt=Lt.clientWidth||Lt.scrollWidth);var kt=this.$updateCachedSize(Oe,Ue,Dt,At);if(!this.$size.scrollerHeight||!Dt&&!At)return this.resizing=0;Oe&&(this.$gutterLayer.$padding=null),Oe?this.$renderChanges(kt|this.$changes,!0):this.$loop.schedule(kt|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(Oe,Ue,Dt,At){At-=this.$extraHeight||0;var Lt=0,kt=this.$size,Pt={width:kt.width,height:kt.height,scrollerHeight:kt.scrollerHeight,scrollerWidth:kt.scrollerWidth};if(At&&(Oe||kt.height!=At)&&(kt.height=At,Lt|=this.CHANGE_SIZE,kt.scrollerHeight=kt.height,this.$horizScroll&&(kt.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",Lt=Lt|this.CHANGE_SCROLL),Dt&&(Oe||kt.width!=Dt)){Lt|=this.CHANGE_SIZE,kt.width=Dt,Ue==null&&(Ue=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=Ue,re.setStyle(this.scrollBarH.element.style,"left",Ue+"px"),re.setStyle(this.scroller.style,"left",Ue+this.margin.left+"px"),kt.scrollerWidth=Math.max(0,Dt-Ue-this.scrollBarV.getWidth()-this.margin.h),re.setStyle(this.$gutter.style,"left",this.margin.left+"px");var jt=this.scrollBarV.getWidth()+"px";re.setStyle(this.scrollBarH.element.style,"right",jt),re.setStyle(this.scroller.style,"right",jt),re.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||Oe)&&(Lt|=this.CHANGE_FULL)}return kt.$dirty=!Dt||!At,Lt&&this._signal("resize",Pt),Lt},this.onGutterResize=function(Oe){var Ue=this.$showGutter?Oe:0;Ue!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,Ue,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var Oe=this.$size.scrollerWidth-this.$padding*2,Ue=Math.floor(Oe/this.characterWidth);return this.session.adjustWrapLimit(Ue,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(Oe){this.setOption("animatedScroll",Oe)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(Oe){this.setOption("showInvisibles",Oe),this.session.$bidiHandler.setShowInvisibles(Oe)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(Oe){this.setOption("displayIndentGuides",Oe)},this.setShowPrintMargin=function(Oe){this.setOption("showPrintMargin",Oe)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(Oe){this.setOption("printMarginColumn",Oe)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(Oe){return this.setOption("showGutter",Oe)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(Oe){this.setOption("fadeFoldWidgets",Oe)},this.setHighlightGutterLine=function(Oe){this.setOption("highlightGutterLine",Oe)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var Oe=re.createElement("div");Oe.className="ace_layer ace_print-margin-layer",this.$printMarginEl=re.createElement("div"),this.$printMarginEl.className="ace_print-margin",Oe.appendChild(this.$printMarginEl),this.content.insertBefore(Oe,this.content.firstChild)}var Ue=this.$printMarginEl.style;Ue.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",Ue.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var Oe=this.textarea.style,Ue=this.$composition;if(!this.$keepTextAreaAtCursor&&!Ue){re.translate(this.textarea,-100,0);return}var Dt=this.$cursorLayer.$pixelPos;if(Dt){Ue&&Ue.markerRange&&(Dt=this.$cursorLayer.getPixelPosition(Ue.markerRange.start,!0));var At=this.layerConfig,Lt=Dt.top,kt=Dt.left;Lt-=At.offset;var Pt=Ue&&Ue.useTextareaForIME?this.lineHeight:Et?0:1;if(Lt<0||Lt>At.height-Pt){re.translate(this.textarea,0,0);return}var jt=1,vn=this.$size.height-Pt;if(!Ue)Lt+=this.lineHeight;else if(Ue.useTextareaForIME){var $n=this.textarea.value;jt=this.characterWidth*this.session.$getStringScreenWidth($n)[0]}else Lt+=this.lineHeight+2;kt-=this.scrollLeft,kt>this.$size.scrollerWidth-jt&&(kt=this.$size.scrollerWidth-jt),kt+=this.gutterWidth+this.margin.left,re.setStyle(Oe,"height",Pt+"px"),re.setStyle(Oe,"width",jt+"px"),re.translate(this.textarea,Math.min(kt,this.$size.scrollerWidth-jt),Math.min(Lt,vn))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var Oe=this.layerConfig,Ue=Oe.lastRow,Dt=this.session.documentToScreenRow(Ue,0)*Oe.lineHeight;return Dt-this.session.getScrollTop()>Oe.height-Oe.lineHeight?Ue-1:Ue},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(Oe){this.$padding=Oe,this.$textLayer.setPadding(Oe),this.$cursorLayer.setPadding(Oe),this.$markerFront.setPadding(Oe),this.$markerBack.setPadding(Oe),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(Oe,Ue,Dt,At){var Lt=this.scrollMargin;Lt.top=Oe|0,Lt.bottom=Ue|0,Lt.right=At|0,Lt.left=Dt|0,Lt.v=Lt.top+Lt.bottom,Lt.h=Lt.left+Lt.right,Lt.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-Lt.top),this.updateFull()},this.setMargin=function(Oe,Ue,Dt,At){var Lt=this.margin;Lt.top=Oe|0,Lt.bottom=Ue|0,Lt.right=At|0,Lt.left=Dt|0,Lt.v=Lt.top+Lt.bottom,Lt.h=Lt.left+Lt.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(Oe){this.setOption("hScrollBarAlwaysVisible",Oe)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(Oe){this.setOption("vScrollBarAlwaysVisible",Oe)},this.$updateScrollBarV=function(){var Oe=this.layerConfig.maxHeight,Ue=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(Oe-=(Ue-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>Oe-Ue&&(Oe=this.scrollTop+Ue,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(Oe+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(Oe,Ue){if(this.$changes&&(Oe|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!Oe&&!Ue){this.$changes|=Oe;return}if(this.$size.$dirty)return this.$changes|=Oe,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",Oe),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var Dt=this.layerConfig;if(Oe&this.CHANGE_FULL||Oe&this.CHANGE_SIZE||Oe&this.CHANGE_TEXT||Oe&this.CHANGE_LINES||Oe&this.CHANGE_SCROLL||Oe&this.CHANGE_H_SCROLL){if(Oe|=this.$computeLayerConfig()|this.$loop.clear(),Dt.firstRow!=this.layerConfig.firstRow&&Dt.firstRowScreen==this.layerConfig.firstRowScreen){var At=this.scrollTop+(Dt.firstRow-this.layerConfig.firstRow)*this.lineHeight;At>0&&(this.scrollTop=At,Oe=Oe|this.CHANGE_SCROLL,Oe|=this.$computeLayerConfig()|this.$loop.clear())}Dt=this.layerConfig,this.$updateScrollBarV(),Oe&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),re.translate(this.content,-this.scrollLeft,-Dt.offset);var Lt=Dt.width+2*this.$padding+"px",kt=Dt.minHeight+"px";re.setStyle(this.content.style,"width",Lt),re.setStyle(this.content.style,"height",kt)}if(Oe&this.CHANGE_H_SCROLL&&(re.translate(this.content,-this.scrollLeft,-Dt.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),Oe&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(Dt),this.$showGutter&&this.$gutterLayer.update(Dt),this.$markerBack.update(Dt),this.$markerFront.update(Dt),this.$cursorLayer.update(Dt),this.$moveTextAreaToCursor(),this._signal("afterRender",Oe);return}if(Oe&this.CHANGE_SCROLL){this.$changedLines=null,Oe&this.CHANGE_TEXT||Oe&this.CHANGE_LINES?this.$textLayer.update(Dt):this.$textLayer.scrollLines(Dt),this.$showGutter&&(Oe&this.CHANGE_GUTTER||Oe&this.CHANGE_LINES?this.$gutterLayer.update(Dt):this.$gutterLayer.scrollLines(Dt)),this.$markerBack.update(Dt),this.$markerFront.update(Dt),this.$cursorLayer.update(Dt),this.$moveTextAreaToCursor(),this._signal("afterRender",Oe);return}Oe&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(Dt),this.$showGutter&&this.$gutterLayer.update(Dt)):Oe&this.CHANGE_LINES?(this.$updateLines()||Oe&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(Dt):Oe&this.CHANGE_TEXT||Oe&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(Dt):Oe&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(Dt),Oe&this.CHANGE_CURSOR&&(this.$cursorLayer.update(Dt),this.$moveTextAreaToCursor()),Oe&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(Dt),Oe&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(Dt),this._signal("afterRender",Oe)},this.$autosize=function(){var Oe=this.session.getScreenLength()*this.lineHeight,Ue=this.$maxLines*this.lineHeight,Dt=Math.min(Ue,Math.max((this.$minLines||1)*this.lineHeight,Oe))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(Dt+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&Dt>this.$maxPixelHeight&&(Dt=this.$maxPixelHeight);var At=Dt<=2*this.lineHeight,Lt=!At&&Oe>Ue;if(Dt!=this.desiredHeight||this.$size.height!=this.desiredHeight||Lt!=this.$vScroll){Lt!=this.$vScroll&&(this.$vScroll=Lt,this.scrollBarV.setVisible(Lt));var kt=this.container.clientWidth;this.container.style.height=Dt+"px",this.$updateCachedSize(!0,this.$gutterWidth,kt,Dt),this.desiredHeight=Dt,this._signal("autosize")}},this.$computeLayerConfig=function(){var Oe=this.session,Ue=this.$size,Dt=Ue.height<=2*this.lineHeight,At=this.session.getScreenLength(),Lt=At*this.lineHeight,kt=this.$getLongestLine(),Pt=!Dt&&(this.$hScrollBarAlwaysVisible||Ue.scrollerWidth-kt-2*this.$padding<0),jt=this.$horizScroll!==Pt;jt&&(this.$horizScroll=Pt,this.scrollBarH.setVisible(Pt));var vn=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var $n=Ue.scrollerHeight+this.lineHeight,wn=!this.$maxLines&&this.$scrollPastEnd?(Ue.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;Lt+=wn;var _n=this.scrollMargin;this.session.setScrollTop(Math.max(-_n.top,Math.min(this.scrollTop,Lt-Ue.scrollerHeight+_n.bottom))),this.session.setScrollLeft(Math.max(-_n.left,Math.min(this.scrollLeft,kt+2*this.$padding-Ue.scrollerWidth+_n.right)));var En=!Dt&&(this.$vScrollBarAlwaysVisible||Ue.scrollerHeight-Lt+wn<0||this.scrollTop>_n.top),Sn=vn!==En;Sn&&(this.$vScroll=En,this.scrollBarV.setVisible(En));var An=this.scrollTop%this.lineHeight,Cn=Math.ceil($n/this.lineHeight)-1,Tn=Math.max(0,Math.round((this.scrollTop-An)/this.lineHeight)),Nn=Tn+Cn,xn,On,Ln=this.lineHeight;Tn=Oe.screenToDocumentRow(Tn,0);var Bn=Oe.getFoldLine(Tn);Bn&&(Tn=Bn.start.row),xn=Oe.documentToScreenRow(Tn,0),On=Oe.getRowLength(Tn)*Ln,Nn=Math.min(Oe.screenToDocumentRow(Nn,0),Oe.getLength()-1),$n=Ue.scrollerHeight+Oe.getRowLength(Nn)*Ln+On,An=this.scrollTop-xn*Ln;var Vn=0;return(this.layerConfig.width!=kt||jt)&&(Vn=this.CHANGE_H_SCROLL),(jt||Sn)&&(Vn|=this.$updateCachedSize(!0,this.gutterWidth,Ue.width,Ue.height),this._signal("scrollbarVisibilityChanged"),Sn&&(kt=this.$getLongestLine())),this.layerConfig={width:kt,padding:this.$padding,firstRow:Tn,firstRowScreen:xn,lastRow:Nn,lineHeight:Ln,characterWidth:this.characterWidth,minHeight:$n,maxHeight:Lt,offset:An,gutterOffset:Ln?Math.max(0,Math.ceil((An+Ue.height-Ue.scrollerHeight)/Ln)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(kt-this.$padding),Vn},this.$updateLines=function(){if(this.$changedLines){var Oe=this.$changedLines.firstRow,Ue=this.$changedLines.lastRow;this.$changedLines=null;var Dt=this.layerConfig;if(!(Oe>Dt.lastRow+1)&&!(Uethis.$textLayer.MAX_LINE_LENGTH&&(Oe=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(Oe*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(Oe,Ue){this.$gutterLayer.addGutterDecoration(Oe,Ue)},this.removeGutterDecoration=function(Oe,Ue){this.$gutterLayer.removeGutterDecoration(Oe,Ue)},this.updateBreakpoints=function(Oe){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(Oe){this.$gutterLayer.setAnnotations(Oe),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(Oe,Ue,Dt){this.scrollCursorIntoView(Oe,Dt),this.scrollCursorIntoView(Ue,Dt)},this.scrollCursorIntoView=function(Oe,Ue,Dt){if(this.$size.scrollerHeight!==0){var At=this.$cursorLayer.getPixelPosition(Oe),Lt=At.left,kt=At.top,Pt=Dt&&Dt.top||0,jt=Dt&&Dt.bottom||0,vn=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;vn+Pt>kt?(Ue&&vn+Pt>kt+this.lineHeight&&(kt-=Ue*this.$size.scrollerHeight),kt===0&&(kt=-this.scrollMargin.top),this.session.setScrollTop(kt)):vn+this.$size.scrollerHeight-jtLt?(Lt=1-this.scrollMargin.top||Ue>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||Oe<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||Oe>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(Oe,Ue){var Dt;if(this.$hasCssTransforms){Dt={top:0,left:0};var At=this.$fontMetrics.transformCoordinates([Oe,Ue]);Oe=At[1]-this.gutterWidth-this.margin.left,Ue=At[0]}else Dt=this.scroller.getBoundingClientRect();var Lt=Oe+this.scrollLeft-Dt.left-this.$padding,kt=Lt/this.characterWidth,Pt=Math.floor((Ue+this.scrollTop-Dt.top)/this.lineHeight),jt=this.$blockCursor?Math.floor(kt):Math.round(kt);return{row:Pt,column:jt,side:kt-jt>0?1:-1,offsetX:Lt}},this.screenToTextCoordinates=function(Oe,Ue){var Dt;if(this.$hasCssTransforms){Dt={top:0,left:0};var At=this.$fontMetrics.transformCoordinates([Oe,Ue]);Oe=At[1]-this.gutterWidth-this.margin.left,Ue=At[0]}else Dt=this.scroller.getBoundingClientRect();var Lt=Oe+this.scrollLeft-Dt.left-this.$padding,kt=Lt/this.characterWidth,Pt=this.$blockCursor?Math.floor(kt):Math.round(kt),jt=Math.floor((Ue+this.scrollTop-Dt.top)/this.lineHeight);return this.session.screenToDocumentPosition(jt,Math.max(Pt,0),Lt)},this.textToScreenCoordinates=function(Oe,Ue){var Dt=this.scroller.getBoundingClientRect(),At=this.session.documentToScreenPosition(Oe,Ue),Lt=this.$padding+(this.session.$bidiHandler.isBidiRow(At.row,Oe)?this.session.$bidiHandler.getPosLeft(At.column):Math.round(At.column*this.characterWidth)),kt=At.row*this.lineHeight;return{pageX:Dt.left+Lt-this.scrollLeft,pageY:Dt.top+kt-this.scrollTop}},this.visualizeFocus=function(){re.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){re.removeCssClass(this.container,"ace_focus")},this.showComposition=function(Oe){this.$composition=Oe,Oe.cssText||(Oe.cssText=this.textarea.style.cssText),Oe.useTextareaForIME==null&&(Oe.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(re.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):Oe.markerId=this.session.addMarker(Oe.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(Oe){var Ue=this.session.selection.cursor;this.addToken(Oe,"composition_placeholder",Ue.row,Ue.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),re.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var Oe=this.session.selection.cursor;this.removeExtraToken(Oe.row,Oe.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(Oe,Ue,Dt,At){var Lt=this.session;Lt.bgTokenizer.lines[Dt]=null;var kt={type:Ue,value:Oe},Pt=Lt.getTokens(Dt);if(At==null)Pt.push(kt);else for(var jt=0,vn=0;vn50&&pe.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:pe}))}}).call(ue.prototype);var de=function(pe,$e,_e){var Ce=null,Ie=!1,ze=Object.create(ie),Et=[],qe=new ue({messageBuffer:Et,terminate:function(){},postMessage:function(Ue){Et.push(Ue),Ce&&(Ie?setTimeout(Oe):Oe())}});qe.setEmitSync=function(Ue){Ie=Ue};var Oe=function(){var Ue=Et.shift();Ue.command?Ce[Ue.command].apply(Ce,Ue.args):Ue.event&&ze._signal(Ue.event,Ue.data)};return ze.postMessage=function(Ue){qe.onMessage({data:Ue})},ze.callback=function(Ue,Dt){this.postMessage({type:"call",id:Dt,data:Ue})},ze.emit=function(Ue,Dt){this.postMessage({type:"event",name:Ue,data:Dt})},ae.loadModule(["worker",$e],function(Ue){for(Ce=new Ue[_e](ze);Et.length;)Oe()}),qe};z.UIWorkerClient=de,z.WorkerClient=ue,z.createWorker=le}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(V,z,j){var oe=V("./range").Range,re=V("./lib/event_emitter").EventEmitter,ie=V("./lib/oop"),ae=function(he,le,ue,de,pe,$e){var _e=this;this.length=le,this.session=he,this.doc=he.getDocument(),this.mainClass=pe,this.othersClass=$e,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=de,this.$onCursorChange=function(){setTimeout(function(){_e.onCursorChange()})},this.$pos=ue;var Ce=he.getUndoManager().$undoStack||he.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Ce.length,this.setup(),he.selection.on("changeCursor",this.$onCursorChange)};(function(){ie.implement(this,re),this.setup=function(){var he=this,le=this.doc,ue=this.session;this.selectionBefore=ue.selection.toJSON(),ue.selection.inMultiSelectMode&&ue.selection.toSingleRange(),this.pos=le.createAnchor(this.$pos.row,this.$pos.column);var de=this.pos;de.$insertRight=!0,de.detach(),de.markerId=ue.addMarker(new oe(de.row,de.column,de.row,de.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(pe){var $e=le.createAnchor(pe.row,pe.column);$e.$insertRight=!0,$e.detach(),he.others.push($e)}),ue.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var he=this.session,le=this;this.othersActive=!0,this.others.forEach(function(ue){ue.markerId=he.addMarker(new oe(ue.row,ue.column,ue.row,ue.column+le.length),le.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var he=0;he=this.pos.column&&le.start.column<=this.pos.column+this.length+1,pe=le.start.column-this.pos.column;if(this.updateAnchors(he),de&&(this.length+=ue),de&&!this.session.$fromUndo){if(he.action==="insert")for(var $e=this.others.length-1;$e>=0;$e--){var _e=this.others[$e],Ce={row:_e.row,column:_e.column+pe};this.doc.insertMergedLines(Ce,he.lines)}else if(he.action==="remove")for(var $e=this.others.length-1;$e>=0;$e--){var _e=this.others[$e],Ce={row:_e.row,column:_e.column+pe};this.doc.remove(new oe(Ce.row,Ce.column,Ce.row,Ce.column-ue))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(he){this.pos.onChange(he);for(var le=this.others.length;le--;)this.others[le].onChange(he);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var he=this,le=this.session,ue=function(pe,$e){le.removeMarker(pe.markerId),pe.markerId=le.addMarker(new oe(pe.row,pe.column,pe.row,pe.column+he.length),$e,null,!1)};ue(this.pos,this.mainClass);for(var de=this.others.length;de--;)ue(this.others[de],this.othersClass)}},this.onCursorChange=function(he){if(!(this.$updating||!this.session)){var le=this.session.selection.getCursor();le.row===this.pos.row&&le.column>=this.pos.column&&le.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",he)):(this.hideOtherMarkers(),this._emit("cursorLeave",he))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var he=this.session.getUndoManager(),le=(he.$undoStack||he.$undostack).length-this.$undoStackDepth,ue=0;ue1?re.multiSelect.joinSelections():re.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(re){re.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(re){re.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(re){re.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],z.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(re){re.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(re){return re&&re.inMultiSelectMode}}];var oe=V("../keyboard/hash_handler").HashHandler;z.keyboardHandler=new oe(z.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(V,z,j){var oe=V("./range_list").RangeList,re=V("./range").Range,ie=V("./selection").Selection,ae=V("./mouse/multi_select_handler").onMouseDown,he=V("./lib/event"),le=V("./lib/lang"),ue=V("./commands/multi_select_commands");z.commands=ue.defaultCommands.concat(ue.multiSelectCommands);var de=V("./search").Search,pe=new de;function $e(qe,Oe,Ue){return pe.$options.wrap=!0,pe.$options.needle=Oe,pe.$options.backwards=Ue==-1,pe.find(qe)}var _e=V("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(_e.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(qe,Oe){if(qe){if(!this.inMultiSelectMode&&this.rangeCount===0){var Ue=this.toOrientedRange();if(this.rangeList.add(Ue),this.rangeList.add(qe),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),Oe||this.fromOrientedRange(qe);this.rangeList.removeAll(),this.rangeList.add(Ue),this.$onAddRange(Ue)}qe.cursor||(qe.cursor=qe.end);var Dt=this.rangeList.add(qe);return this.$onAddRange(qe),Dt.length&&this.$onRemoveRange(Dt),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),Oe||this.fromOrientedRange(qe)}},this.toSingleRange=function(qe){qe=qe||this.ranges[0];var Oe=this.rangeList.removeAll();Oe.length&&this.$onRemoveRange(Oe),qe&&this.fromOrientedRange(qe)},this.substractPoint=function(qe){var Oe=this.rangeList.substractPoint(qe);if(Oe)return this.$onRemoveRange(Oe),Oe[0]},this.mergeOverlappingRanges=function(){var qe=this.rangeList.merge();qe.length&&this.$onRemoveRange(qe)},this.$onAddRange=function(qe){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(qe),this._signal("addRange",{range:qe})},this.$onRemoveRange=function(qe){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var Oe=this.rangeList.ranges.pop();qe.push(Oe),this.rangeCount=0}for(var Ue=qe.length;Ue--;){var Dt=this.ranges.indexOf(qe[Ue]);this.ranges.splice(Dt,1)}this._signal("removeRange",{ranges:qe}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),Oe=Oe||this.ranges[0],Oe&&!Oe.isEqual(this.getRange())&&this.fromOrientedRange(Oe)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new oe,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var qe=this.ranges.length?this.ranges:[this.getRange()],Oe=[],Ue=0;Ue1){var qe=this.rangeList.ranges,Oe=qe[qe.length-1],Ue=re.fromPoints(qe[0].start,Oe.end);this.toSingleRange(),this.setSelectionRange(Ue,Oe.cursor==Oe.start)}else{var Dt=this.session.documentToScreenPosition(this.cursor),At=this.session.documentToScreenPosition(this.anchor),Lt=this.rectangularRangeBlock(Dt,At);Lt.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(qe,Oe,Ue){var Dt=[],At=qe.column0;)An--;if(An>0)for(var Cn=0;Dt[Cn].isEmpty();)Cn++;for(var Tn=An;Tn>=Cn;Tn--)Dt[Tn].isEmpty()&&Dt.splice(Tn,1)}return Dt}}.call(ie.prototype);var Ce=V("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(qe){qe.cursor||(qe.cursor=qe.end);var Oe=this.getSelectionStyle();return qe.marker=this.session.addMarker(qe,"ace_selection",Oe),this.session.$selectionMarkers.push(qe),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,qe},this.removeSelectionMarker=function(qe){if(qe.marker){this.session.removeMarker(qe.marker);var Oe=this.session.$selectionMarkers.indexOf(qe);Oe!=-1&&this.session.$selectionMarkers.splice(Oe,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(qe){for(var Oe=this.session.$selectionMarkers,Ue=qe.length;Ue--;){var Dt=qe[Ue];if(Dt.marker){this.session.removeMarker(Dt.marker);var At=Oe.indexOf(Dt);At!=-1&&Oe.splice(At,1)}}this.session.selectionMarkerCount=Oe.length},this.$onAddRange=function(qe){this.addSelectionMarker(qe.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(qe){this.removeSelectionMarkers(qe.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(qe){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(ue.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(qe){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(ue.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(qe){var Oe=qe.command,Ue=qe.editor;if(Ue.multiSelect){if(Oe.multiSelectAction)Oe.multiSelectAction=="forEach"?Dt=Ue.forEachSelection(Oe,qe.args):Oe.multiSelectAction=="forEachLine"?Dt=Ue.forEachSelection(Oe,qe.args,!0):Oe.multiSelectAction=="single"?(Ue.exitMultiSelectMode(),Dt=Oe.exec(Ue,qe.args||{})):Dt=Oe.multiSelectAction(Ue,qe.args||{});else{var Dt=Oe.exec(Ue,qe.args||{});Ue.multiSelect.addRange(Ue.multiSelect.toOrientedRange()),Ue.multiSelect.mergeOverlappingRanges()}return Dt}},this.forEachSelection=function(qe,Oe,Ue){if(!this.inVirtualSelectionMode){var Dt=Ue&&Ue.keepOrder,At=Ue==!0||Ue&&Ue.$byLines,Lt=this.session,kt=this.selection,Pt=kt.rangeList,jt=(Dt?kt:Pt).ranges,vn;if(!jt.length)return qe.exec?qe.exec(this,Oe||{}):qe(this,Oe||{});var $n=kt._eventRegistry;kt._eventRegistry={};var wn=new ie(Lt);this.inVirtualSelectionMode=!0;for(var _n=jt.length;_n--;){if(At)for(;_n>0&&jt[_n].start.row==jt[_n-1].end.row;)_n--;wn.fromOrientedRange(jt[_n]),wn.index=_n,this.selection=Lt.selection=wn;var En=qe.exec?qe.exec(this,Oe||{}):qe(this,Oe||{});!vn&&En!==void 0&&(vn=En),wn.toOrientedRange(jt[_n])}wn.detach(),this.selection=Lt.selection=kt,this.inVirtualSelectionMode=!1,kt._eventRegistry=$n,kt.mergeOverlappingRanges(),kt.ranges[0]&&kt.fromOrientedRange(kt.ranges[0]);var Sn=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Sn&&Sn.from==Sn.to&&this.renderer.animateScrolling(Sn.from),vn}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var qe="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var Oe=this.multiSelect.rangeList.ranges,Ue=[],Dt=0;Dt0);kt<0&&(kt=0),Pt>=vn&&(Pt=vn-1)}var wn=this.session.removeFullLines(kt,Pt);wn=this.$reAlignText(wn,jt),this.session.insert({row:kt,column:0},wn.join(` -`)+` -`),jt||(Lt.start.column=0,Lt.end.column=wn[wn.length-1].length),this.selection.setRange(Lt)}else{At.forEach(function(An){Oe.substractPoint(An.cursor)});var _n=0,En=1/0,Sn=Ue.map(function(An){var Cn=An.cursor,Tn=qe.getLine(Cn.row),Nn=Tn.substr(Cn.column).search(/\S/g);return Nn==-1&&(Nn=0),Cn.column>_n&&(_n=Cn.column),Nnxn?qe.insert(Tn,le.stringRepeat(" ",Nn-xn)):qe.remove(new re(Tn.row,Tn.column,Tn.row,Tn.column-Nn+xn)),An.start.column=An.end.column=_n,An.start.row=An.end.row=Tn.row,An.cursor=An.end}),Oe.fromOrientedRange(Ue[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(qe,Oe){var Ue=!0,Dt=!0,At,Lt,kt;return qe.map(function(wn){var _n=wn.match(/(\s*)(.*?)(\s*)([=:].*)/);return _n?At==null?(At=_n[1].length,Lt=_n[2].length,kt=_n[3].length,_n):(At+Lt+kt!=_n[1].length+_n[2].length+_n[3].length&&(Dt=!1),At!=_n[1].length&&(Ue=!1),At>_n[1].length&&(At=_n[1].length),Lt<_n[2].length&&(Lt=_n[2].length),kt>_n[3].length&&(kt=_n[3].length),_n):[wn]}).map(Oe?jt:Ue?Dt?vn:jt:$n);function Pt(wn){return le.stringRepeat(" ",wn)}function jt(wn){return wn[2]?Pt(At)+wn[2]+Pt(Lt-wn[2].length+kt)+wn[4].replace(/^([=:])\s+/,"$1 "):wn[0]}function vn(wn){return wn[2]?Pt(At+Lt-wn[2].length)+wn[2]+Pt(kt)+wn[4].replace(/^([=:])\s+/,"$1 "):wn[0]}function $n(wn){return wn[2]?Pt(At)+wn[2]+Pt(kt)+wn[4].replace(/^([=:])\s+/,"$1 "):wn[0]}}}).call(Ce.prototype);function Ie(qe,Oe){return qe.row==Oe.row&&qe.column==Oe.column}z.onSessionChange=function(qe){var Oe=qe.session;Oe&&!Oe.multiSelect&&(Oe.$selectionMarkers=[],Oe.selection.$initRangeList(),Oe.multiSelect=Oe.selection),this.multiSelect=Oe&&Oe.multiSelect;var Ue=qe.oldSession;Ue&&(Ue.multiSelect.off("addRange",this.$onAddRange),Ue.multiSelect.off("removeRange",this.$onRemoveRange),Ue.multiSelect.off("multiSelect",this.$onMultiSelect),Ue.multiSelect.off("singleSelect",this.$onSingleSelect),Ue.multiSelect.lead.off("change",this.$checkMultiselectChange),Ue.multiSelect.anchor.off("change",this.$checkMultiselectChange)),Oe&&(Oe.multiSelect.on("addRange",this.$onAddRange),Oe.multiSelect.on("removeRange",this.$onRemoveRange),Oe.multiSelect.on("multiSelect",this.$onMultiSelect),Oe.multiSelect.on("singleSelect",this.$onSingleSelect),Oe.multiSelect.lead.on("change",this.$checkMultiselectChange),Oe.multiSelect.anchor.on("change",this.$checkMultiselectChange)),Oe&&this.inMultiSelectMode!=Oe.selection.inMultiSelectMode&&(Oe.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function ze(qe){qe.$multiselectOnSessionChange||(qe.$onAddRange=qe.$onAddRange.bind(qe),qe.$onRemoveRange=qe.$onRemoveRange.bind(qe),qe.$onMultiSelect=qe.$onMultiSelect.bind(qe),qe.$onSingleSelect=qe.$onSingleSelect.bind(qe),qe.$multiselectOnSessionChange=z.onSessionChange.bind(qe),qe.$checkMultiselectChange=qe.$checkMultiselectChange.bind(qe),qe.$multiselectOnSessionChange(qe),qe.on("changeSession",qe.$multiselectOnSessionChange),qe.on("mousedown",ae),qe.commands.addCommands(ue.defaultCommands),Et(qe))}function Et(qe){if(!qe.textInput)return;var Oe=qe.textInput.getElement(),Ue=!1;he.addListener(Oe,"keydown",function(At){var Lt=At.keyCode==18&&!(At.ctrlKey||At.shiftKey||At.metaKey);qe.$blockSelectEnabled&&Lt?Ue||(qe.renderer.setMouseCursor("crosshair"),Ue=!0):Ue&&Dt()},qe),he.addListener(Oe,"keyup",Dt,qe),he.addListener(Oe,"blur",Dt,qe);function Dt(At){Ue&&(qe.renderer.setMouseCursor(""),Ue=!1)}}z.MultiSelect=ze,V("./config").defineOptions(Ce.prototype,"editor",{enableMultiselect:{set:function(qe){ze(this),qe?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",ae)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",ae))},value:!0},enableBlockSelect:{set:function(qe){this.$blockSelectEnabled=qe},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(V,z,j){var oe=V("../../range").Range,re=z.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(ie,ae,he){var le=ie.getLine(he);return this.foldingStartMarker.test(le)?"start":ae=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(le)?"end":""},this.getFoldWidgetRange=function(ie,ae,he){return null},this.indentationBlock=function(ie,ae,he){var le=/\S/,ue=ie.getLine(ae),de=ue.search(le);if(de!=-1){for(var pe=he||ue.length,$e=ie.getLength(),_e=ae,Ce=ae;++ae<$e;){var Ie=ie.getLine(ae).search(le);if(Ie!=-1){if(Ie<=de){var ze=ie.getTokenAt(ae,0);if(!ze||ze.type!=="string")break}Ce=ae}}if(Ce>_e){var Et=ie.getLine(Ce).length;return new oe(_e,pe,Ce,Et)}}},this.openingBracketBlock=function(ie,ae,he,le,ue){var de={row:he,column:le+1},pe=ie.$findClosingBracket(ae,de,ue);if(pe){var $e=ie.foldWidgets[pe.row];return $e==null&&($e=ie.getFoldWidget(pe.row)),$e=="start"&&pe.row>de.row&&(pe.row--,pe.column=ie.getLine(pe.row).length),oe.fromPoints(de,pe)}},this.closingBracketBlock=function(ie,ae,he,le,ue){var de={row:he,column:le},pe=ie.$findOpeningBracket(ae,de);if(pe)return pe.column++,de.column--,oe.fromPoints(pe,de)}}).call(re.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(V,z,j){z.isDark=!1,z.cssClass="ace-tm",z.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',z.$id="ace/theme/textmate";var oe=V("../lib/dom");oe.importCssString(z.cssText,z.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(V,z,j){var oe=V("./lib/dom");function re(ie){this.session=ie,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(ie){var ae;return this.lineWidgets?ae=this.lineWidgets[ie]&&this.lineWidgets[ie].rowCount||0:ae=0,!this.$useWrapMode||!this.$wrapData[ie]?1+ae:this.$wrapData[ie].length+1+ae},this.$getWidgetScreenLength=function(){var ie=0;return this.lineWidgets.forEach(function(ae){ae&&ae.rowCount&&!ae.hidden&&(ie+=ae.rowCount)}),ie},this.$onChangeEditor=function(ie){this.attach(ie.editor)},this.attach=function(ie){ie&&ie.widgetManager&&ie.widgetManager!=this&&ie.widgetManager.detach(),this.editor!=ie&&(this.detach(),this.editor=ie,ie&&(ie.widgetManager=this,ie.renderer.on("beforeRender",this.measureWidgets),ie.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(ie){var ae=this.editor;if(ae){this.editor=null,ae.widgetManager=null,ae.renderer.off("beforeRender",this.measureWidgets),ae.renderer.off("afterRender",this.renderWidgets);var he=this.session.lineWidgets;he&&he.forEach(function(le){le&&le.el&&le.el.parentNode&&(le._inDocument=!1,le.el.parentNode.removeChild(le.el))})}},this.updateOnFold=function(ie,ae){var he=ae.lineWidgets;if(!(!he||!ie.action)){for(var le=ie.data,ue=le.start.row,de=le.end.row,pe=ie.action=="add",$e=ue+1;$eae[he].column&&he++,de.unshift(he,0),ae.splice.apply(ae,de),this.$updateRows()}}},this.$updateRows=function(){var ie=this.session.lineWidgets;if(ie){var ae=!0;ie.forEach(function(he,le){if(he)for(ae=!1,he.row=le;he.$oldWidget;)he.$oldWidget.row=le,he=he.$oldWidget}),ae&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(ie){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var ae=this.session.lineWidgets[ie.row];return ae&&(ie.$oldWidget=ae,ae.el&&ae.el.parentNode&&(ae.el.parentNode.removeChild(ae.el),ae._inDocument=!1)),this.session.lineWidgets[ie.row]=ie,ie},this.addLineWidget=function(ie){if(this.$registerLineWidget(ie),ie.session=this.session,!this.editor)return ie;var ae=this.editor.renderer;ie.html&&!ie.el&&(ie.el=oe.createElement("div"),ie.el.innerHTML=ie.html),ie.el&&(oe.addCssClass(ie.el,"ace_lineWidgetContainer"),ie.el.style.position="absolute",ie.el.style.zIndex=5,ae.container.appendChild(ie.el),ie._inDocument=!0,ie.coverGutter||(ie.el.style.zIndex=3),ie.pixelHeight==null&&(ie.pixelHeight=ie.el.offsetHeight)),ie.rowCount==null&&(ie.rowCount=ie.pixelHeight/ae.layerConfig.lineHeight);var he=this.session.getFoldAt(ie.row,0);if(ie.$fold=he,he){var le=this.session.lineWidgets;ie.row==he.end.row&&!le[he.start.row]?le[he.start.row]=ie:ie.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:ie.row}}}),this.$updateRows(),this.renderWidgets(null,ae),this.onWidgetChanged(ie),ie},this.removeLineWidget=function(ie){if(ie._inDocument=!1,ie.session=null,ie.el&&ie.el.parentNode&&ie.el.parentNode.removeChild(ie.el),ie.editor&&ie.editor.destroy)try{ie.editor.destroy()}catch{}if(this.session.lineWidgets){var ae=this.session.lineWidgets[ie.row];if(ae==ie)this.session.lineWidgets[ie.row]=ie.$oldWidget,ie.$oldWidget&&this.onWidgetChanged(ie.$oldWidget);else for(;ae;){if(ae.$oldWidget==ie){ae.$oldWidget=ie.$oldWidget;break}ae=ae.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:ie.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(ie){for(var ae=this.session.lineWidgets,he=ae&&ae[ie],le=[];he;)le.push(he),he=he.$oldWidget;return le},this.onWidgetChanged=function(ie){this.session._changedWidgets.push(ie),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(ie,ae){var he=this.session._changedWidgets,le=ae.layerConfig;if(!(!he||!he.length)){for(var ue=1/0,de=0;de0&&!le[ue];)ue--;this.firstRow=he.firstRow,this.lastRow=he.lastRow,ae.$cursorLayer.config=he;for(var pe=ue;pe<=de;pe++){var $e=le[pe];if(!(!$e||!$e.el)){if($e.hidden){$e.el.style.top=-100-($e.pixelHeight||0)+"px";continue}$e._inDocument||($e._inDocument=!0,ae.container.appendChild($e.el));var _e=ae.$cursorLayer.getPixelPosition({row:pe,column:0},!0).top;$e.coverLine||(_e+=he.lineHeight*this.session.getRowLineCount($e.row)),$e.el.style.top=_e-he.offset+"px";var Ce=$e.coverGutter?0:ae.gutterWidth;$e.fixedWidth||(Ce-=ae.scrollLeft),$e.el.style.left=Ce+"px",$e.fullWidth&&$e.screenWidth&&($e.el.style.minWidth=he.width+2*he.padding+"px"),$e.fixedWidth?$e.el.style.right=ae.scrollBar.getWidth()+"px":$e.el.style.right=""}}}}}).call(re.prototype),z.LineWidgets=re}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(V,z,j){var oe=V("../line_widgets").LineWidgets,re=V("../lib/dom"),ie=V("../range").Range;function ae(le,ue,de){for(var pe=0,$e=le.length-1;pe<=$e;){var _e=pe+$e>>1,Ce=de(ue,le[_e]);if(Ce>0)pe=_e+1;else if(Ce<0)$e=_e-1;else return _e}return-(pe+1)}function he(le,ue,de){var pe=le.getAnnotations().sort(ie.comparePoints);if(pe.length){var $e=ae(pe,{row:ue,column:-1},ie.comparePoints);$e<0&&($e=-$e-1),$e>=pe.length?$e=de>0?0:pe.length-1:$e===0&&de<0&&($e=pe.length-1);var _e=pe[$e];if(!(!_e||!de)){if(_e.row===ue){do _e=pe[$e+=de];while(_e&&_e.row===ue);if(!_e)return pe.slice()}var Ce=[];ue=_e.row;do Ce[de<0?"unshift":"push"](_e),_e=pe[$e+=de];while(_e&&_e.row==ue);return Ce.length&&Ce}}}z.showErrorMarker=function(le,ue){var de=le.session;de.widgetManager||(de.widgetManager=new oe(de),de.widgetManager.attach(le));var pe=le.getCursorPosition(),$e=pe.row,_e=de.widgetManager.getWidgetsAtRow($e).filter(function(At){return At.type=="errorMarker"})[0];_e?_e.destroy():$e-=ue;var Ce=he(de,$e,ue),Ie;if(Ce){var ze=Ce[0];pe.column=(ze.pos&&typeof ze.column!="number"?ze.pos.sc:ze.column)||0,pe.row=ze.row,Ie=le.renderer.$gutterLayer.$annotations[pe.row]}else{if(_e)return;Ie={text:["Looks good!"],className:"ace_ok"}}le.session.unfold(pe.row),le.selection.moveToPosition(pe);var Et={row:pe.row,fixedWidth:!0,coverGutter:!0,el:re.createElement("div"),type:"errorMarker"},qe=Et.el.appendChild(re.createElement("div")),Oe=Et.el.appendChild(re.createElement("div"));Oe.className="error_widget_arrow "+Ie.className;var Ue=le.renderer.$cursorLayer.getPixelPosition(pe).left;Oe.style.left=Ue+le.renderer.gutterWidth-5+"px",Et.el.className="error_widget_wrapper",qe.className="error_widget "+Ie.className,qe.innerHTML=Ie.text.join("
"),qe.appendChild(re.createElement("div"));var Dt=function(At,Lt,kt){if(Lt===0&&(kt==="esc"||kt==="return"))return Et.destroy(),{command:"null"}};Et.destroy=function(){le.$mouseHandler.isMousePressed||(le.keyBinding.removeKeyboardHandler(Dt),de.widgetManager.removeLineWidget(Et),le.off("changeSelection",Et.destroy),le.off("changeSession",Et.destroy),le.off("mouseup",Et.destroy),le.off("change",Et.destroy))},le.keyBinding.addKeyboardHandler(Dt),le.on("changeSelection",Et.destroy),le.on("changeSession",Et.destroy),le.on("mouseup",Et.destroy),le.on("change",Et.destroy),le.session.widgetManager.addLineWidget(Et),Et.el.onmousedown=le.focus.bind(le),le.renderer.scrollCursorIntoView(null,.5,{bottom:Et.el.offsetHeight})},re.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(V,z,j){V("./lib/fixoldbrowsers");var oe=V("./lib/dom"),re=V("./lib/event"),ie=V("./range").Range,ae=V("./editor").Editor,he=V("./edit_session").EditSession,le=V("./undomanager").UndoManager,ue=V("./virtual_renderer").VirtualRenderer;V("./worker/worker_client"),V("./keyboard/hash_handler"),V("./placeholder"),V("./multi_select"),V("./mode/folding/fold_mode"),V("./theme/textmate"),V("./ext/error_marker"),z.config=V("./config"),z.require=V,z.edit=function(de,pe){if(typeof de=="string"){var $e=de;if(de=document.getElementById($e),!de)throw new Error("ace.edit can't find div #"+$e)}if(de&&de.env&&de.env.editor instanceof ae)return de.env.editor;var _e="";if(de&&/input|textarea/i.test(de.tagName)){var Ce=de;_e=Ce.value,de=oe.createElement("pre"),Ce.parentNode.replaceChild(de,Ce)}else de&&(_e=de.textContent,de.innerHTML="");var Ie=z.createEditSession(_e),ze=new ae(new ue(de),Ie,pe),Et={document:Ie,editor:ze,onResize:ze.resize.bind(ze,null)};return Ce&&(Et.textarea=Ce),re.addListener(window,"resize",Et.onResize),ze.on("destroy",function(){re.removeListener(window,"resize",Et.onResize),Et.editor.container.env=null}),ze.container.env=ze.env=Et,ze},z.createEditSession=function(de,pe){var $e=new he(de,pe);return $e.setUndoManager(new le),$e},z.Range=ie,z.Editor=ae,z.EditSession=he,z.UndoManager=le,z.VirtualRenderer=ue,z.version=z.config.version}),function(){ace.require(["ace/ace"],function(V){V&&(V.config.init(!0),V.define=ace.define),window.ace||(window.ace=V);for(var z in V)V.hasOwnProperty(z)&&(window.ace[z]=V[z]);window.ace.default=window.ace,$&&($.exports=window.ace)})}()})(ace$2);var ace$1=ace$2.exports,themeSqlserver={exports:{}};(function($,k){ace.define("ace/theme/sqlserver",["require","exports","module","ace/lib/dom"],function(V,z,j){z.isDark=!1,z.cssClass="ace-sqlserver",z.cssText='.ace-sqlserver .ace_gutter {background: #ebebeb;color: #333;overflow: hidden;}.ace-sqlserver .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-sqlserver {background-color: #FFFFFF;color: black;}.ace-sqlserver .ace_identifier {color: black;}.ace-sqlserver .ace_keyword {color: #0000FF;}.ace-sqlserver .ace_numeric {color: black;}.ace-sqlserver .ace_storage {color: #11B7BE;}.ace-sqlserver .ace_keyword.ace_operator,.ace-sqlserver .ace_lparen,.ace-sqlserver .ace_rparen,.ace-sqlserver .ace_punctuation {color: #808080;}.ace-sqlserver .ace_set.ace_statement {color: #0000FF;text-decoration: underline;}.ace-sqlserver .ace_cursor {color: black;}.ace-sqlserver .ace_invisible {color: rgb(191, 191, 191);}.ace-sqlserver .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-sqlserver .ace_constant.ace_language {color: #979797;}.ace-sqlserver .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-sqlserver .ace_invalid {background-color: rgb(153, 0, 0);color: white;}.ace-sqlserver .ace_support.ace_function {color: #FF00FF;}.ace-sqlserver .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-sqlserver .ace_class {color: #008080;}.ace-sqlserver .ace_support.ace_other {color: #6D79DE;}.ace-sqlserver .ace_variable.ace_parameter {font-style: italic;color: #FD971F;}.ace-sqlserver .ace_comment {color: #008000;}.ace-sqlserver .ace_constant.ace_numeric {color: black;}.ace-sqlserver .ace_variable {color: rgb(49, 132, 149);}.ace-sqlserver .ace_xml-pe {color: rgb(104, 104, 91);}.ace-sqlserver .ace_support.ace_storedprocedure {color: #800000;}.ace-sqlserver .ace_heading {color: rgb(12, 7, 255);}.ace-sqlserver .ace_list {color: rgb(185, 6, 144);}.ace-sqlserver .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-sqlserver .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-sqlserver .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-sqlserver .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-sqlserver .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-sqlserver .ace_gutter-active-line {background-color: #dcdcdc;}.ace-sqlserver .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-sqlserver .ace_meta.ace_tag {color: #0000FF;}.ace-sqlserver .ace_string.ace_regex {color: #FF0000;}.ace-sqlserver .ace_string {color: #FF0000;}.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {color: #994409;}.ace-sqlserver .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var oe=V("../lib/dom");oe.importCssString(z.cssText,z.cssClass,!1)}),function(){ace.require(["ace/theme/sqlserver"],function(V){$&&($.exports=V)})}()})(themeSqlserver);var modeJavascript={exports:{}};(function($,k){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(V,z,j){var oe=V("../lib/oop"),re=V("./text_highlight_rules").TextHighlightRules,ie=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},ie.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};oe.inherits(ie,re),ie.getTagRule=function(ae){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},ie.getStartRule=function(ae){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:ae}},ie.getEndRule=function(ae){return{token:"comment.doc",regex:"\\*\\/",next:ae}},z.DocCommentHighlightRules=ie}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(V,z,j){function oe(){var de=le.replace("\\d","\\d\\-"),pe={onMatch:function(_e,Ce,Ie){var ze=_e.charAt(1)=="/"?2:1;return ze==1?(Ce!=this.nextState?Ie.unshift(this.next,this.nextState,0):Ie.unshift(this.next),Ie[2]++):ze==2&&Ce==this.nextState&&(Ie[1]--,(!Ie[1]||Ie[1]<0)&&(Ie.shift(),Ie.shift())),[{type:"meta.tag.punctuation."+(ze==1?"":"end-")+"tag-open.xml",value:_e.slice(0,ze)},{type:"meta.tag.tag-name.xml",value:_e.substr(ze)}]},regex:"",onMatch:function(_e,Ce,Ie){return Ce==Ie[0]&&Ie.shift(),_e.length==2&&(Ie[0]==this.nextState&&Ie[1]--,(!Ie[1]||Ie[1]<0)&&Ie.splice(0,2)),this.next=Ie[0]||"start",[{type:this.token,value:_e}]},nextState:"jsx"},$e,re("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:de},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},pe],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function re(de){return[{token:"comment",regex:/\/\*/,next:[ae.getTagRule(),{token:"comment",regex:"\\*\\/",next:de||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[ae.getTagRule(),{token:"comment",regex:"$|^",next:de||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var ie=V("../lib/oop"),ae=V("./doc_comment_highlight_rules").DocCommentHighlightRules,he=V("./text_highlight_rules").TextHighlightRules,le="[a-zA-Z\\$_\xA1-\uFFFF][a-zA-Z\\d\\$_\xA1-\uFFFF]*",ue=function(de){var pe=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),$e="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",_e="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[ae.getStartRule("doc-start"),re("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+le+")(\\.)(prototype)(\\.)("+le+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+le+")(\\.)("+le+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+le+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+le+")(\\.)("+le+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+le+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+le+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+$e+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:pe,regex:le},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+le+")(\\.)("+le+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:le},{regex:"",token:"empty",next:"no_regex"}],start:[ae.getStartRule("doc-start"),re("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:le},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:_e},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:_e},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!de||!de.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(Ce,Ie,ze){if(this.next=Ce=="{"?this.nextState:"",Ce=="{"&&ze.length)ze.unshift("start",Ie);else if(Ce=="}"&&ze.length&&(ze.shift(),this.next=ze.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return Ce=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:_e},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!de||de.jsx!=0)&&oe.call(this)),this.embedRules(ae,"doc-",[ae.getEndRule("no_regex")]),this.normalizeRules()};ie.inherits(ue,he),z.JavaScriptHighlightRules=ue}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(V,z,j){var oe=V("../range").Range,re=function(){};(function(){this.checkOutdent=function(ie,ae){return/^\s+$/.test(ie)?/^\s*\}/.test(ae):!1},this.autoOutdent=function(ie,ae){var he=ie.getLine(ae),le=he.match(/^(\s*\})/);if(!le)return 0;var ue=le[1].length,de=ie.findMatchingBracket({row:ae,column:ue});if(!de||de.row==ae)return 0;var pe=this.$getIndent(ie.getLine(de.row));ie.replace(new oe(ae,0,ae,ue-1),pe)},this.$getIndent=function(ie){return ie.match(/^\s*/)[0]}}).call(re.prototype),z.MatchingBraceOutdent=re}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(V,z,j){var oe=V("../../lib/oop"),re=V("../../range").Range,ie=V("./fold_mode").FoldMode,ae=z.FoldMode=function(he){he&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+he.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+he.end)))};oe.inherits(ae,ie),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(he,le,ue){var de=he.getLine(ue);if(this.singleLineBlockCommentRe.test(de)&&!this.startRegionRe.test(de)&&!this.tripleStarBlockCommentRe.test(de))return"";var pe=this._getFoldWidgetBase(he,le,ue);return!pe&&this.startRegionRe.test(de)?"start":pe},this.getFoldWidgetRange=function(he,le,ue,de){var pe=he.getLine(ue);if(this.startRegionRe.test(pe))return this.getCommentRegionBlock(he,pe,ue);var $e=pe.match(this.foldingStartMarker);if($e){var _e=$e.index;if($e[1])return this.openingBracketBlock(he,$e[1],ue,_e);var Ce=he.getCommentFoldRange(ue,_e+$e[0].length,1);return Ce&&!Ce.isMultiLine()&&(de?Ce=this.getSectionRange(he,ue):le!="all"&&(Ce=null)),Ce}if(le!=="markbegin"){var $e=pe.match(this.foldingStopMarker);if($e){var _e=$e.index+$e[0].length;return $e[1]?this.closingBracketBlock(he,$e[1],ue,_e):he.getCommentFoldRange(ue,_e,-1)}}},this.getSectionRange=function(he,le){var ue=he.getLine(le),de=ue.search(/\S/),pe=le,$e=ue.length;le+=1;for(var _e=le,Ce=he.getLength();++leIe)break;var ze=this.getFoldWidgetRange(he,"all",le);if(ze){if(ze.start.row<=pe)break;if(ze.isMultiLine())le=ze.end.row;else if(de==Ie)break}_e=le}}return new re(pe,$e,_e,he.getLine(_e).length)},this.getCommentRegionBlock=function(he,le,ue){for(var de=le.search(/\s*$/),pe=he.getLength(),$e=ue,_e=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Ce=1;++ue$e)return new re($e,de,ze,le.length)}}.call(ae.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(V,z,j){var oe=V("../lib/oop"),re=V("./text").Mode,ie=V("./javascript_highlight_rules").JavaScriptHighlightRules,ae=V("./matching_brace_outdent").MatchingBraceOutdent,he=V("../worker/worker_client").WorkerClient,le=V("./behaviour/cstyle").CstyleBehaviour,ue=V("./folding/cstyle").FoldMode,de=function(){this.HighlightRules=ie,this.$outdent=new ae,this.$behaviour=new le,this.foldingRules=new ue};oe.inherits(de,re),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(pe,$e,_e){var Ce=this.$getIndent($e),Ie=this.getTokenizer().getLineTokens($e,pe),ze=Ie.tokens,Et=Ie.state;if(ze.length&&ze[ze.length-1].type=="comment")return Ce;if(pe=="start"||pe=="no_regex"){var qe=$e.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);qe&&(Ce+=_e)}else if(pe=="doc-start"){if(Et=="start"||Et=="no_regex")return"";var qe=$e.match(/^\s*(\/?)\*/);qe&&(qe[1]&&(Ce+=" "),Ce+="* ")}return Ce},this.checkOutdent=function(pe,$e,_e){return this.$outdent.checkOutdent($e,_e)},this.autoOutdent=function(pe,$e,_e){this.$outdent.autoOutdent($e,_e)},this.createWorker=function(pe){var $e=new he(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return $e.attachToDocument(pe.getDocument()),$e.on("annotate",function(_e){pe.setAnnotations(_e.data)}),$e.on("terminate",function(){pe.clearAnnotations()}),$e},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(de.prototype),z.Mode=de}),function(){ace.require(["ace/mode/javascript"],function(V){$&&($.exports=V)})}()})(modeJavascript);var modeJson={exports:{}};(function($,k){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(V,z,j){var oe=V("../lib/oop"),re=V("./text_highlight_rules").TextHighlightRules,ie=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};oe.inherits(ie,re),z.JsonHighlightRules=ie}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(V,z,j){var oe=V("../range").Range,re=function(){};(function(){this.checkOutdent=function(ie,ae){return/^\s+$/.test(ie)?/^\s*\}/.test(ae):!1},this.autoOutdent=function(ie,ae){var he=ie.getLine(ae),le=he.match(/^(\s*\})/);if(!le)return 0;var ue=le[1].length,de=ie.findMatchingBracket({row:ae,column:ue});if(!de||de.row==ae)return 0;var pe=this.$getIndent(ie.getLine(de.row));ie.replace(new oe(ae,0,ae,ue-1),pe)},this.$getIndent=function(ie){return ie.match(/^\s*/)[0]}}).call(re.prototype),z.MatchingBraceOutdent=re}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(V,z,j){var oe=V("../../lib/oop"),re=V("../../range").Range,ie=V("./fold_mode").FoldMode,ae=z.FoldMode=function(he){he&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+he.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+he.end)))};oe.inherits(ae,ie),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(he,le,ue){var de=he.getLine(ue);if(this.singleLineBlockCommentRe.test(de)&&!this.startRegionRe.test(de)&&!this.tripleStarBlockCommentRe.test(de))return"";var pe=this._getFoldWidgetBase(he,le,ue);return!pe&&this.startRegionRe.test(de)?"start":pe},this.getFoldWidgetRange=function(he,le,ue,de){var pe=he.getLine(ue);if(this.startRegionRe.test(pe))return this.getCommentRegionBlock(he,pe,ue);var $e=pe.match(this.foldingStartMarker);if($e){var _e=$e.index;if($e[1])return this.openingBracketBlock(he,$e[1],ue,_e);var Ce=he.getCommentFoldRange(ue,_e+$e[0].length,1);return Ce&&!Ce.isMultiLine()&&(de?Ce=this.getSectionRange(he,ue):le!="all"&&(Ce=null)),Ce}if(le!=="markbegin"){var $e=pe.match(this.foldingStopMarker);if($e){var _e=$e.index+$e[0].length;return $e[1]?this.closingBracketBlock(he,$e[1],ue,_e):he.getCommentFoldRange(ue,_e,-1)}}},this.getSectionRange=function(he,le){var ue=he.getLine(le),de=ue.search(/\S/),pe=le,$e=ue.length;le+=1;for(var _e=le,Ce=he.getLength();++leIe)break;var ze=this.getFoldWidgetRange(he,"all",le);if(ze){if(ze.start.row<=pe)break;if(ze.isMultiLine())le=ze.end.row;else if(de==Ie)break}_e=le}}return new re(pe,$e,_e,he.getLine(_e).length)},this.getCommentRegionBlock=function(he,le,ue){for(var de=le.search(/\s*$/),pe=he.getLength(),$e=ue,_e=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Ce=1;++ue$e)return new re($e,de,ze,le.length)}}.call(ae.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(V,z,j){var oe=V("../lib/oop"),re=V("./text").Mode,ie=V("./json_highlight_rules").JsonHighlightRules,ae=V("./matching_brace_outdent").MatchingBraceOutdent,he=V("./behaviour/cstyle").CstyleBehaviour,le=V("./folding/cstyle").FoldMode,ue=V("../worker/worker_client").WorkerClient,de=function(){this.HighlightRules=ie,this.$outdent=new ae,this.$behaviour=new he,this.foldingRules=new le};oe.inherits(de,re),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(pe,$e,_e){var Ce=this.$getIndent($e);if(pe=="start"){var Ie=$e.match(/^.*[\{\(\[]\s*$/);Ie&&(Ce+=_e)}return Ce},this.checkOutdent=function(pe,$e,_e){return this.$outdent.checkOutdent($e,_e)},this.autoOutdent=function(pe,$e,_e){this.$outdent.autoOutdent($e,_e)},this.createWorker=function(pe){var $e=new ue(["ace"],"ace/mode/json_worker","JsonWorker");return $e.attachToDocument(pe.getDocument()),$e.on("annotate",function(_e){pe.setAnnotations(_e.data)}),$e.on("terminate",function(){pe.clearAnnotations()}),$e},this.$id="ace/mode/json"}.call(de.prototype),z.Mode=de}),function(){ace.require(["ace/mode/json"],function(V){$&&($.exports=V)})}()})(modeJson);var modeCss={exports:{}};(function($,k){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(V,z,j){var oe=V("../lib/oop");V("../lib/lang");var re=V("./text_highlight_rules").TextHighlightRules,ie=z.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",ae=z.supportFunction="rgb|rgba|url|attr|counter|counters",he=z.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",le=z.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",ue=z.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",de=z.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",pe=z.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",$e=z.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",_e=function(){var Ce=this.createKeywordMapper({"support.function":ae,"support.constant":he,"support.type":ie,"support.constant.color":le,"support.constant.fonts":ue},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:de},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+de+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:de},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:pe},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:$e},{include:"url"},{token:Ce,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};oe.inherits(_e,re),z.CssHighlightRules=_e}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(V,z,j){var oe=V("../range").Range,re=function(){};(function(){this.checkOutdent=function(ie,ae){return/^\s+$/.test(ie)?/^\s*\}/.test(ae):!1},this.autoOutdent=function(ie,ae){var he=ie.getLine(ae),le=he.match(/^(\s*\})/);if(!le)return 0;var ue=le[1].length,de=ie.findMatchingBracket({row:ae,column:ue});if(!de||de.row==ae)return 0;var pe=this.$getIndent(ie.getLine(de.row));ie.replace(new oe(ae,0,ae,ue-1),pe)},this.$getIndent=function(ie){return ie.match(/^\s*/)[0]}}).call(re.prototype),z.MatchingBraceOutdent=re}),ace.define("ace/mode/css_completions",["require","exports","module"],function(V,z,j){var oe={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},re=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var ie=document.createElement("c").style;for(var ae in ie)if(typeof ie[ae]=="string"){var he=ae.replace(/[A-Z]/g,function(le){return"-"+le.toLowerCase()});oe.hasOwnProperty(he)||(oe[he]=1)}}this.completionsDefined=!0},this.getCompletions=function(ie,ae,he,le){if(this.completionsDefined||this.defineCompletions(),ie==="ruleset"||ae.$mode.$id=="ace/mode/scss"){var ue=ae.getLine(he.row).substr(0,he.column);return/:[^;]+$/.test(ue)?(/([\w\-]+):[^:]*$/.test(ue),this.getPropertyValueCompletions(ie,ae,he,le)):this.getPropertyCompletions(ie,ae,he,le)}return[]},this.getPropertyCompletions=function(ie,ae,he,le){var ue=Object.keys(oe);return ue.map(function(de){return{caption:de,snippet:de+": $0;",meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(ie,ae,he,le){var ue=ae.getLine(he.row).substr(0,he.column),de=(/([\w\-]+):[^:]*$/.exec(ue)||{})[1];if(!de)return[];var pe=[];return de in oe&&typeof oe[de]=="object"&&(pe=Object.keys(oe[de])),pe.map(function($e){return{caption:$e,snippet:$e,meta:"property value",score:1e6}})}}).call(re.prototype),z.CssCompletions=re}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(V,z,j){var oe=V("../../lib/oop");V("../behaviour").Behaviour;var re=V("./cstyle").CstyleBehaviour,ie=V("../../token_iterator").TokenIterator,ae=function(){this.inherit(re),this.add("colon","insertion",function(he,le,ue,de,pe){if(pe===":"&&ue.selection.isEmpty()){var $e=ue.getCursorPosition(),_e=new ie(de,$e.row,$e.column),Ce=_e.getCurrentToken();if(Ce&&Ce.value.match(/\s+/)&&(Ce=_e.stepBackward()),Ce&&Ce.type==="support.type"){var Ie=de.doc.getLine($e.row),ze=Ie.substring($e.column,$e.column+1);if(ze===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(Ie.substring($e.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(he,le,ue,de,pe){var $e=de.doc.getTextRange(pe);if(!pe.isMultiLine()&&$e===":"){var _e=ue.getCursorPosition(),Ce=new ie(de,_e.row,_e.column),Ie=Ce.getCurrentToken();if(Ie&&Ie.value.match(/\s+/)&&(Ie=Ce.stepBackward()),Ie&&Ie.type==="support.type"){var ze=de.doc.getLine(pe.start.row),Et=ze.substring(pe.end.column,pe.end.column+1);if(Et===";")return pe.end.column++,pe}}}),this.add("semicolon","insertion",function(he,le,ue,de,pe){if(pe===";"&&ue.selection.isEmpty()){var $e=ue.getCursorPosition(),_e=de.doc.getLine($e.row),Ce=_e.substring($e.column,$e.column+1);if(Ce===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(he,le,ue,de,pe){if(pe==="!"&&ue.selection.isEmpty()){var $e=ue.getCursorPosition(),_e=de.doc.getLine($e.row);if(/^\s*(;|}|$)/.test(_e.substring($e.column)))return{text:"!important",selection:[10,10]}}})};oe.inherits(ae,re),z.CssBehaviour=ae}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(V,z,j){var oe=V("../../lib/oop"),re=V("../../range").Range,ie=V("./fold_mode").FoldMode,ae=z.FoldMode=function(he){he&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+he.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+he.end)))};oe.inherits(ae,ie),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(he,le,ue){var de=he.getLine(ue);if(this.singleLineBlockCommentRe.test(de)&&!this.startRegionRe.test(de)&&!this.tripleStarBlockCommentRe.test(de))return"";var pe=this._getFoldWidgetBase(he,le,ue);return!pe&&this.startRegionRe.test(de)?"start":pe},this.getFoldWidgetRange=function(he,le,ue,de){var pe=he.getLine(ue);if(this.startRegionRe.test(pe))return this.getCommentRegionBlock(he,pe,ue);var $e=pe.match(this.foldingStartMarker);if($e){var _e=$e.index;if($e[1])return this.openingBracketBlock(he,$e[1],ue,_e);var Ce=he.getCommentFoldRange(ue,_e+$e[0].length,1);return Ce&&!Ce.isMultiLine()&&(de?Ce=this.getSectionRange(he,ue):le!="all"&&(Ce=null)),Ce}if(le!=="markbegin"){var $e=pe.match(this.foldingStopMarker);if($e){var _e=$e.index+$e[0].length;return $e[1]?this.closingBracketBlock(he,$e[1],ue,_e):he.getCommentFoldRange(ue,_e,-1)}}},this.getSectionRange=function(he,le){var ue=he.getLine(le),de=ue.search(/\S/),pe=le,$e=ue.length;le+=1;for(var _e=le,Ce=he.getLength();++leIe)break;var ze=this.getFoldWidgetRange(he,"all",le);if(ze){if(ze.start.row<=pe)break;if(ze.isMultiLine())le=ze.end.row;else if(de==Ie)break}_e=le}}return new re(pe,$e,_e,he.getLine(_e).length)},this.getCommentRegionBlock=function(he,le,ue){for(var de=le.search(/\s*$/),pe=he.getLength(),$e=ue,_e=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Ce=1;++ue$e)return new re($e,de,ze,le.length)}}.call(ae.prototype)}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(V,z,j){var oe=V("../lib/oop"),re=V("./text").Mode,ie=V("./css_highlight_rules").CssHighlightRules,ae=V("./matching_brace_outdent").MatchingBraceOutdent,he=V("../worker/worker_client").WorkerClient,le=V("./css_completions").CssCompletions,ue=V("./behaviour/css").CssBehaviour,de=V("./folding/cstyle").FoldMode,pe=function(){this.HighlightRules=ie,this.$outdent=new ae,this.$behaviour=new ue,this.$completer=new le,this.foldingRules=new de};oe.inherits(pe,re),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function($e,_e,Ce){var Ie=this.$getIndent(_e),ze=this.getTokenizer().getLineTokens(_e,$e).tokens;if(ze.length&&ze[ze.length-1].type=="comment")return Ie;var Et=_e.match(/^.*\{\s*$/);return Et&&(Ie+=Ce),Ie},this.checkOutdent=function($e,_e,Ce){return this.$outdent.checkOutdent(_e,Ce)},this.autoOutdent=function($e,_e,Ce){this.$outdent.autoOutdent(_e,Ce)},this.getCompletions=function($e,_e,Ce,Ie){return this.$completer.getCompletions($e,_e,Ce,Ie)},this.createWorker=function($e){var _e=new he(["ace"],"ace/mode/css_worker","Worker");return _e.attachToDocument($e.getDocument()),_e.on("annotate",function(Ce){$e.setAnnotations(Ce.data)}),_e.on("terminate",function(){$e.clearAnnotations()}),_e},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(pe.prototype),z.Mode=pe}),function(){ace.require(["ace/mode/css"],function(V){$&&($.exports=V)})}()})(modeCss);var extLanguage_tools={exports:{}};(function($,k){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(V,z,j){function oe(Oe){var Ue=new Date().toLocaleString("en-us",Oe);return Ue.length==1?"0"+Ue:Ue}var re=V("./lib/dom"),ie=V("./lib/oop"),ae=V("./lib/event_emitter").EventEmitter,he=V("./lib/lang"),le=V("./range").Range,ue=V("./range_list").RangeList,de=V("./keyboard/hash_handler").HashHandler,pe=V("./tokenizer").Tokenizer,$e=V("./clipboard"),_e={CURRENT_WORD:function(Oe){return Oe.session.getTextRange(Oe.session.getWordRange())},SELECTION:function(Oe,Ue,Dt){var At=Oe.session.getTextRange();return Dt?At.replace(/\n\r?([ \t]*\S)/g,` -`+Dt+"$1"):At},CURRENT_LINE:function(Oe){return Oe.session.getLine(Oe.getCursorPosition().row)},PREV_LINE:function(Oe){return Oe.session.getLine(Oe.getCursorPosition().row-1)},LINE_INDEX:function(Oe){return Oe.getCursorPosition().row},LINE_NUMBER:function(Oe){return Oe.getCursorPosition().row+1},SOFT_TABS:function(Oe){return Oe.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(Oe){return Oe.session.getTabSize()},CLIPBOARD:function(Oe){return $e.getText&&$e.getText()},FILENAME:function(Oe){return/[^/\\]*$/.exec(this.FILEPATH(Oe))[0]},FILENAME_BASE:function(Oe){return/[^/\\]*$/.exec(this.FILEPATH(Oe))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(Oe){return this.FILEPATH(Oe).replace(/[^/\\]*$/,"")},FILEPATH:function(Oe){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(Oe){var Ue=Oe.session.$mode||{};return Ue.blockComment&&Ue.blockComment.start||""},BLOCK_COMMENT_END:function(Oe){var Ue=Oe.session.$mode||{};return Ue.blockComment&&Ue.blockComment.end||""},LINE_COMMENT:function(Oe){var Ue=Oe.session.$mode||{};return Ue.lineCommentStart||""},CURRENT_YEAR:oe.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:oe.bind(null,{year:"2-digit"}),CURRENT_MONTH:oe.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:oe.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:oe.bind(null,{month:"short"}),CURRENT_DATE:oe.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:oe.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:oe.bind(null,{weekday:"short"}),CURRENT_HOUR:oe.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:oe.bind(null,{minute:"2-digit"}),CURRENT_SECOND:oe.bind(null,{second:"2-digit"})};_e.SELECTED_TEXT=_e.SELECTION;var Ce=function(){this.snippetMap={},this.snippetNameMap={}};(function(){ie.implement(this,ae),this.getTokenizer=function(){return Ce.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function Oe(At){return At=At.substr(1),/^\d+$/.test(At)?[{tabstopId:parseInt(At,10)}]:[{text:At}]}function Ue(At){return"(?:[^\\\\"+At+"]|\\\\.)"}var Dt={regex:"/("+Ue("/")+"+)/",onMatch:function(At,Lt,kt){var Pt=kt[0];return Pt.fmtString=!0,Pt.guard=At.slice(1,-1),Pt.flag="",""},next:"formatString"};return Ce.$tokenizer=new pe({start:[{regex:/\\./,onMatch:function(At,Lt,kt){var Pt=At[1];return(Pt=="}"&&kt.length||"`$\\".indexOf(Pt)!=-1)&&(At=Pt),[At]}},{regex:/}/,onMatch:function(At,Lt,kt){return[kt.length?kt.shift():At]}},{regex:/\$(?:\d+|\w+)/,onMatch:Oe},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(At,Lt,kt){var Pt=Oe(At.substr(1));return kt.unshift(Pt[0]),Pt},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+Ue("\\|")+"*\\|",onMatch:function(At,Lt,kt){var Pt=At.slice(1,-1).replace(/\\[,|\\]|,/g,function(jt){return jt.length==2?jt[1]:"\0"}).split("\0").map(function(jt){return{value:jt}});return kt[0].choices=Pt,[Pt[0]]},next:"start"},Dt,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(At,Lt,kt){return kt.length&&kt[0].expectElse?(kt[0].expectElse=!1,kt[0].ifEnd={elseEnd:kt[0]},[kt[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(At,Lt,kt){var Pt=At[1];return Pt=="}"&&kt.length||"`$\\".indexOf(Pt)!=-1?At=Pt:Pt=="n"?At=` -`:Pt=="t"?At=" ":"ulULE".indexOf(Pt)!=-1&&(At={changeCase:Pt,local:Pt>"a"}),[At]}},{regex:"/\\w*}",onMatch:function(At,Lt,kt){var Pt=kt.shift();return Pt&&(Pt.flag=At.slice(1,-1)),this.next=Pt&&Pt.tabstopId?"start":"",[Pt||At]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(At,Lt,kt){return[{text:At.slice(1)}]}},{regex:/\${\w+/,onMatch:function(At,Lt,kt){var Pt={text:At.slice(2)};return kt.unshift(Pt),[Pt]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(At,Lt,kt){var Pt=kt.shift();return this.next=Pt&&Pt.tabstopId?"start":"",[Pt||At]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(At,Lt,kt){var Pt=kt[0];return Pt.formatFunction=At.slice(2,-1),[kt.shift()]},next:"formatString"},Dt,{regex:/:[\?\-+]?/,onMatch:function(At,Lt,kt){At[1]=="+"&&(kt[0].ifEnd=kt[0]),At[1]=="?"&&(kt[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),Ce.$tokenizer},this.tokenizeTmSnippet=function(Oe,Ue){return this.getTokenizer().getLineTokens(Oe,Ue).tokens.map(function(Dt){return Dt.value||Dt})},this.getVariableValue=function(Oe,Ue,Dt){if(/^\d+$/.test(Ue))return(this.variables.__||{})[Ue]||"";if(/^[A-Z]\d+$/.test(Ue))return(this.variables[Ue[0]+"__"]||{})[Ue.substr(1)]||"";if(Ue=Ue.replace(/^TM_/,""),!this.variables.hasOwnProperty(Ue))return"";var At=this.variables[Ue];return typeof At=="function"&&(At=this.variables[Ue](Oe,Ue,Dt)),At==null?"":At},this.variables=_e,this.tmStrFormat=function(Oe,Ue,Dt){if(!Ue.fmt)return Oe;var At=Ue.flag||"",Lt=Ue.guard;Lt=new RegExp(Lt,At.replace(/[^gim]/g,""));var kt=typeof Ue.fmt=="string"?this.tokenizeTmSnippet(Ue.fmt,"formatString"):Ue.fmt,Pt=this,jt=Oe.replace(Lt,function(){var vn=Pt.variables.__;Pt.variables.__=[].slice.call(arguments);for(var $n=Pt.resolveVariables(kt,Dt),wn="E",_n=0;_n<$n.length;_n++){var En=$n[_n];if(typeof En=="object")if($n[_n]="",En.changeCase&&En.local){var Sn=$n[_n+1];Sn&&typeof Sn=="string"&&(En.changeCase=="u"?$n[_n]=Sn[0].toUpperCase():$n[_n]=Sn[0].toLowerCase(),$n[_n+1]=Sn.substr(1))}else En.changeCase&&(wn=En.changeCase);else wn=="U"?$n[_n]=En.toUpperCase():wn=="L"&&($n[_n]=En.toLowerCase())}return Pt.variables.__=vn,$n.join("")});return jt},this.tmFormatFunction=function(Oe,Ue,Dt){return Ue.formatFunction=="upcase"?Oe.toUpperCase():Ue.formatFunction=="downcase"?Oe.toLowerCase():Oe},this.resolveVariables=function(Oe,Ue){function Dt(wn){var _n=Oe.indexOf(wn,Pt+1);_n!=-1&&(Pt=_n)}for(var At=[],Lt="",kt=!0,Pt=0;Pt1?(Nn=zn[zn.length-1].length,Tn+=zn.length-1):Nn+=Fn.length,xn+=Fn}else Fn&&(Fn.start?Fn.end={row:Tn,column:Nn}:Fn.start={row:Tn,column:Nn})});var On=Oe.getSelectionRange(),Ln=Oe.session.replace(On,xn),Bn=new Ie(Oe),Vn=Oe.inVirtualSelectionMode&&Oe.selection.index;Bn.addTabstops(vn,On.start,Ln,Vn)},this.insertSnippet=function(Oe,Ue){var Dt=this;if(Oe.inVirtualSelectionMode)return Dt.insertSnippetForSelection(Oe,Ue);Oe.forEachSelection(function(){Dt.insertSnippetForSelection(Oe,Ue)},null,{keepOrder:!0}),Oe.tabstopManager&&Oe.tabstopManager.tabNext()},this.$getScope=function(Oe){var Ue=Oe.session.$mode.$id||"";if(Ue=Ue.split("/").pop(),Ue==="html"||Ue==="php"){Ue==="php"&&!Oe.session.$mode.inlinePhp&&(Ue="html");var Dt=Oe.getCursorPosition(),At=Oe.session.getState(Dt.row);typeof At=="object"&&(At=At[0]),At.substring&&(At.substring(0,3)=="js-"?Ue="javascript":At.substring(0,4)=="css-"?Ue="css":At.substring(0,4)=="php-"&&(Ue="php"))}return Ue},this.getActiveScopes=function(Oe){var Ue=this.$getScope(Oe),Dt=[Ue],At=this.snippetMap;return At[Ue]&&At[Ue].includeScopes&&Dt.push.apply(Dt,At[Ue].includeScopes),Dt.push("_"),Dt},this.expandWithTab=function(Oe,Ue){var Dt=this,At=Oe.forEachSelection(function(){return Dt.expandSnippetForSelection(Oe,Ue)},null,{keepOrder:!0});return At&&Oe.tabstopManager&&Oe.tabstopManager.tabNext(),At},this.expandSnippetForSelection=function(Oe,Ue){var Dt=Oe.getCursorPosition(),At=Oe.session.getLine(Dt.row),Lt=At.substring(0,Dt.column),kt=At.substr(Dt.column),Pt=this.snippetMap,jt;return this.getActiveScopes(Oe).some(function(vn){var $n=Pt[vn];return $n&&(jt=this.findMatchingSnippet($n,Lt,kt)),!!jt},this),jt?(Ue&&Ue.dryRun||(Oe.session.doc.removeInLine(Dt.row,Dt.column-jt.replaceBefore.length,Dt.column+jt.replaceAfter.length),this.variables.M__=jt.matchBefore,this.variables.T__=jt.matchAfter,this.insertSnippetForSelection(Oe,jt.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(Oe,Ue,Dt){for(var At=Oe.length;At--;){var Lt=Oe[At];if(!(Lt.startRe&&!Lt.startRe.test(Ue))&&!(Lt.endRe&&!Lt.endRe.test(Dt))&&!(!Lt.startRe&&!Lt.endRe))return Lt.matchBefore=Lt.startRe?Lt.startRe.exec(Ue):[""],Lt.matchAfter=Lt.endRe?Lt.endRe.exec(Dt):[""],Lt.replaceBefore=Lt.triggerRe?Lt.triggerRe.exec(Ue)[0]:"",Lt.replaceAfter=Lt.endTriggerRe?Lt.endTriggerRe.exec(Dt)[0]:"",Lt}},this.snippetMap={},this.snippetNameMap={},this.register=function(Oe,Ue){function Dt(vn){return vn&&!/^\^?\(.*\)\$?$|^\\b$/.test(vn)&&(vn="(?:"+vn+")"),vn||""}function At(vn,$n,wn){return vn=Dt(vn),$n=Dt($n),wn?(vn=$n+vn,vn&&vn[vn.length-1]!="$"&&(vn+="$")):(vn+=$n,vn&&vn[0]!="^"&&(vn="^"+vn)),new RegExp(vn)}function Lt(vn){vn.scope||(vn.scope=Ue||"_"),Ue=vn.scope,kt[Ue]||(kt[Ue]=[],Pt[Ue]={});var $n=Pt[Ue];if(vn.name){var wn=$n[vn.name];wn&&jt.unregister(wn),$n[vn.name]=vn}kt[Ue].push(vn),vn.prefix&&(vn.tabTrigger=vn.prefix),!vn.content&&vn.body&&(vn.content=Array.isArray(vn.body)?vn.body.join(` -`):vn.body),vn.tabTrigger&&!vn.trigger&&(!vn.guard&&/^\w/.test(vn.tabTrigger)&&(vn.guard="\\b"),vn.trigger=he.escapeRegExp(vn.tabTrigger)),!(!vn.trigger&&!vn.guard&&!vn.endTrigger&&!vn.endGuard)&&(vn.startRe=At(vn.trigger,vn.guard,!0),vn.triggerRe=new RegExp(vn.trigger),vn.endRe=At(vn.endTrigger,vn.endGuard,!0),vn.endTriggerRe=new RegExp(vn.endTrigger))}var kt=this.snippetMap,Pt=this.snippetNameMap,jt=this;Oe||(Oe=[]),Array.isArray(Oe)?Oe.forEach(Lt):Object.keys(Oe).forEach(function(vn){Lt(Oe[vn])}),this._signal("registerSnippets",{scope:Ue})},this.unregister=function(Oe,Ue){function Dt(kt){var Pt=Lt[kt.scope||Ue];if(Pt&&Pt[kt.name]){delete Pt[kt.name];var jt=At[kt.scope||Ue],vn=jt&&jt.indexOf(kt);vn>=0&&jt.splice(vn,1)}}var At=this.snippetMap,Lt=this.snippetNameMap;Oe.content?Dt(Oe):Array.isArray(Oe)&&Oe.forEach(Dt)},this.parseSnippetFile=function(Oe){Oe=Oe.replace(/\r/g,"");for(var Ue=[],Dt={},At=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,Lt;Lt=At.exec(Oe);){if(Lt[1])try{Dt=JSON.parse(Lt[1]),Ue.push(Dt)}catch{}if(Lt[4])Dt.content=Lt[4].replace(/^\t/gm,""),Ue.push(Dt),Dt={};else{var kt=Lt[2],Pt=Lt[3];if(kt=="regex"){var jt=/\/((?:[^\/\\]|\\.)*)|$/g;Dt.guard=jt.exec(Pt)[1],Dt.trigger=jt.exec(Pt)[1],Dt.endTrigger=jt.exec(Pt)[1],Dt.endGuard=jt.exec(Pt)[1]}else kt=="snippet"?(Dt.tabTrigger=Pt.match(/^\S*/)[0],Dt.name||(Dt.name=Pt)):kt&&(Dt[kt]=Pt)}}return Ue},this.getSnippetByName=function(Oe,Ue){var Dt=this.snippetNameMap,At;return this.getActiveScopes(Ue).some(function(Lt){var kt=Dt[Lt];return kt&&(At=kt[Oe]),!!At},this),At}}).call(Ce.prototype);var Ie=function(Oe){if(Oe.tabstopManager)return Oe.tabstopManager;Oe.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=he.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(Oe)};(function(){this.attach=function(Oe){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=Oe,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(Oe){for(var Ue=Oe.action[0]=="r",Dt=this.selectedTabstop||{},At=Dt.parents||{},Lt=(this.tabstops||[]).slice(),kt=0;kt2&&(this.tabstops.length&&Pt.push(Pt.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,Pt))},this.addTabstopMarkers=function(Oe){var Ue=this.editor.session;Oe.forEach(function(Dt){Dt.markerId||(Dt.markerId=Ue.addMarker(Dt,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(Oe){var Ue=this.editor.session;Oe.forEach(function(Dt){Ue.removeMarker(Dt.markerId),Dt.markerId=null})},this.removeRange=function(Oe){var Ue=Oe.tabstop.indexOf(Oe);Ue!=-1&&Oe.tabstop.splice(Ue,1),Ue=this.ranges.indexOf(Oe),Ue!=-1&&this.ranges.splice(Ue,1),Ue=Oe.tabstop.rangeList.ranges.indexOf(Oe),Ue!=-1&&Oe.tabstop.splice(Ue,1),this.editor.session.removeMarker(Oe.markerId),Oe.tabstop.length||(Ue=this.tabstops.indexOf(Oe.tabstop),Ue!=-1&&this.tabstops.splice(Ue,1),this.tabstops.length||this.detach())},this.keyboardHandler=new de,this.keyboardHandler.bindKeys({Tab:function(Oe){z.snippetManager&&z.snippetManager.expandWithTab(Oe)||(Oe.tabstopManager.tabNext(1),Oe.renderer.scrollCursorIntoView())},"Shift-Tab":function(Oe){Oe.tabstopManager.tabNext(-1),Oe.renderer.scrollCursorIntoView()},Esc:function(Oe){Oe.tabstopManager.detach()}})}).call(Ie.prototype);var ze=function(Oe,Ue){Oe.row==0&&(Oe.column+=Ue.column),Oe.row+=Ue.row},Et=function(Oe,Ue){Oe.row==Ue.row&&(Oe.column-=Ue.column),Oe.row-=Ue.row};re.importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}","snippets.css",!1),z.snippetManager=new Ce;var qe=V("./editor").Editor;(function(){this.insertSnippet=function(Oe,Ue){return z.snippetManager.insertSnippet(this,Oe,Ue)},this.expandSnippet=function(Oe){return z.snippetManager.expandWithTab(this,Oe)}}).call(qe.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(V,z,j){var oe=V("../virtual_renderer").VirtualRenderer,re=V("../editor").Editor,ie=V("../range").Range,ae=V("../lib/event"),he=V("../lib/lang"),le=V("../lib/dom"),ue=function(pe){var $e=new oe(pe);$e.$maxLines=4;var _e=new re($e);return _e.setHighlightActiveLine(!1),_e.setShowPrintMargin(!1),_e.renderer.setShowGutter(!1),_e.renderer.setHighlightGutterLine(!1),_e.$mouseHandler.$focusTimeout=0,_e.$highlightTagPending=!0,_e},de=function(pe){var $e=le.createElement("div"),_e=new ue($e);pe&&pe.appendChild($e),$e.style.display="none",_e.renderer.content.style.cursor="default",_e.renderer.setStyle("ace_autocomplete"),_e.setOption("displayIndentGuides",!1),_e.setOption("dragDelay",150);var Ce=function(){};_e.focus=Ce,_e.$isFocused=!0,_e.renderer.$cursorLayer.restartTimer=Ce,_e.renderer.$cursorLayer.element.style.opacity=0,_e.renderer.$maxLines=8,_e.renderer.$keepTextAreaAtCursor=!1,_e.setHighlightActiveLine(!1),_e.session.highlight(""),_e.session.$searchHighlight.clazz="ace_highlight-marker",_e.on("mousedown",function(Dt){var At=Dt.getDocumentPosition();_e.selection.moveToPosition(At),Et.start.row=Et.end.row=At.row,Dt.stop()});var Ie,ze=new ie(-1,0,-1,1/0),Et=new ie(-1,0,-1,1/0);Et.id=_e.session.addMarker(Et,"ace_active-line","fullLine"),_e.setSelectOnHover=function(Dt){Dt?ze.id&&(_e.session.removeMarker(ze.id),ze.id=null):ze.id=_e.session.addMarker(ze,"ace_line-hover","fullLine")},_e.setSelectOnHover(!1),_e.on("mousemove",function(Dt){if(!Ie){Ie=Dt;return}if(!(Ie.x==Dt.x&&Ie.y==Dt.y)){Ie=Dt,Ie.scrollTop=_e.renderer.scrollTop;var At=Ie.getDocumentPosition().row;ze.start.row!=At&&(ze.id||_e.setRow(At),Oe(At))}}),_e.renderer.on("beforeRender",function(){if(Ie&&ze.start.row!=-1){Ie.$pos=null;var Dt=Ie.getDocumentPosition().row;ze.id||_e.setRow(Dt),Oe(Dt,!0)}}),_e.renderer.on("afterRender",function(){var Dt=_e.getRow(),At=_e.renderer.$textLayer,Lt=At.element.childNodes[Dt-At.config.firstRow];Lt!==At.selectedNode&&At.selectedNode&&le.removeCssClass(At.selectedNode,"ace_selected"),At.selectedNode=Lt,Lt&&le.addCssClass(Lt,"ace_selected")});var qe=function(){Oe(-1)},Oe=function(Dt,At){Dt!==ze.start.row&&(ze.start.row=ze.end.row=Dt,At||_e.session._emit("changeBackMarker"),_e._emit("changeHoverMarker"))};_e.getHoveredRow=function(){return ze.start.row},ae.addListener(_e.container,"mouseout",qe),_e.on("hide",qe),_e.on("changeSelection",qe),_e.session.doc.getLength=function(){return _e.data.length},_e.session.doc.getLine=function(Dt){var At=_e.data[Dt];return typeof At=="string"?At:At&&At.value||""};var Ue=_e.session.bgTokenizer;return Ue.$tokenizeRow=function(Dt){function At(An,Cn){An&&kt.push({type:(Lt.className||"")+(Cn||""),value:An})}var Lt=_e.data[Dt],kt=[];if(!Lt)return kt;typeof Lt=="string"&&(Lt={value:Lt});for(var Pt=Lt.caption||Lt.value||Lt.name,jt=Pt.toLowerCase(),vn=(_e.filterText||"").toLowerCase(),$n=0,wn=0,_n=0;_n<=vn.length;_n++)if(_n!=wn&&(Lt.matchMask&1<<_n||_n==vn.length)){var En=vn.slice(wn,_n);wn=_n;var Sn=jt.indexOf(En,$n);if(Sn==-1)continue;At(Pt.slice($n,Sn),""),$n=Sn+En.length,At(Pt.slice(Sn,$n),"completion-highlight")}return At(Pt.slice($n,Pt.length),""),Lt.meta&&kt.push({type:"completion-meta",value:Lt.meta}),Lt.message&&kt.push({type:"completion-message",value:Lt.message}),kt},Ue.$updateOnChange=Ce,Ue.start=Ce,_e.session.$computeWidth=function(){return this.screenWidth=0},_e.isOpen=!1,_e.isTopdown=!1,_e.autoSelect=!0,_e.filterText="",_e.data=[],_e.setData=function(Dt,At){_e.filterText=At||"",_e.setValue(he.stringRepeat(` -`,Dt.length),-1),_e.data=Dt||[],_e.setRow(0)},_e.getData=function(Dt){return _e.data[Dt]},_e.getRow=function(){return Et.start.row},_e.setRow=function(Dt){Dt=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,Dt)),Et.start.row!=Dt&&(_e.selection.clearSelection(),Et.start.row=Et.end.row=Dt||0,_e.session._emit("changeBackMarker"),_e.moveCursorTo(Dt||0,0),_e.isOpen&&_e._signal("select"))},_e.on("changeSelection",function(){_e.isOpen&&_e.setRow(_e.selection.lead.row),_e.renderer.scrollCursorIntoView()}),_e.hide=function(){this.container.style.display="none",this._signal("hide"),_e.isOpen=!1},_e.show=function(Dt,At,Lt){var kt=this.container,Pt=window.innerHeight,jt=window.innerWidth,vn=this.renderer,$n=vn.$maxLines*At*1.4,wn=Dt.top+this.$borderSize,_n=wn>Pt/2&&!Lt;_n&&wn+At+$n>Pt?(vn.$maxPixelHeight=wn-2*this.$borderSize,kt.style.top="",kt.style.bottom=Pt-wn+"px",_e.isTopdown=!1):(wn+=At,vn.$maxPixelHeight=Pt-wn-.2*At,kt.style.top=wn+"px",kt.style.bottom="",_e.isTopdown=!0),kt.style.display="";var En=Dt.left;En+kt.offsetWidth>jt&&(En=jt-kt.offsetWidth),kt.style.left=En+"px",this._signal("show"),Ie=null,_e.isOpen=!0},_e.goTo=function(Dt){var At=this.getRow(),Lt=this.session.getLength()-1;switch(Dt){case"up":At=At<=0?Lt:At-1;break;case"down":At=At>=Lt?-1:At+1;break;case"start":At=0;break;case"end":At=Lt}this.setRow(At)},_e.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},_e.$imageSize=0,_e.$borderSize=1,_e};le.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css",!1),z.AcePopup=de,z.$singleLineEditor=ue}),ace.define("ace/autocomplete/util",["require","exports","module"],function(V,z,j){z.parForEach=function(re,ie,ae){var he=0,le=re.length;le===0&&ae();for(var ue=0;ue=0&&ae.test(re[le]);le--)he.push(re[le]);return he.reverse().join("")},z.retrieveFollowingIdentifier=function(re,ie,ae){ae=ae||oe;for(var he=[],le=ie;lethis.filterText&&$e.lastIndexOf(this.filterText,0)===0)var _e=this.filtered;else var _e=this.all;this.filterText=$e,_e=this.filterCompletions(_e,this.filterText),_e=_e.sort(function(Ie,ze){return ze.exactMatch-Ie.exactMatch||ze.$score-Ie.$score||(Ie.caption||Ie.value).localeCompare(ze.caption||ze.value)});var Ce=null;_e=_e.filter(function(Ie){var ze=Ie.snippet||Ie.caption||Ie.value;return ze===Ce?!1:(Ce=ze,!0)}),this.filtered=_e},this.filterCompletions=function($e,_e){var Ce=[],Ie=_e.toUpperCase(),ze=_e.toLowerCase();e:for(var Et=0,qe;qe=$e[Et];Et++){var Oe=qe.caption||qe.value||qe.snippet;if(Oe){var Ue=-1,Dt=0,At=0,Lt,kt;if(this.exactMatch){if(_e!==Oe.substr(0,_e.length))continue e}else{var Pt=Oe.toLowerCase().indexOf(ze);if(Pt>-1)At=Pt;else for(var jt=0;jt<_e.length;jt++){var vn=Oe.indexOf(ze[jt],Ue+1),$n=Oe.indexOf(Ie[jt],Ue+1);if(Lt=vn>=0&&($n<0||vn<$n)?vn:$n,Lt<0)continue e;kt=Lt-Ue-1,kt>0&&(Ue===-1&&(At+=10),At+=kt,Dt|=1<",ae.escapeHTML(Oe.caption),"","
",ae.escapeHTML(de(Oe.snippet))].join(""))}},$e=[pe,le,ue];z.setCompleters=function(Oe){$e.length=0,Oe&&$e.push.apply($e,Oe)},z.addCompleter=function(Oe){$e.push(Oe)},z.textCompleter=le,z.keyWordCompleter=ue,z.snippetCompleter=pe;var _e={name:"expandSnippet",exec:function(Oe){return oe.expandWithTab(Oe)},bindKey:"Tab"},Ce=function(Oe,Ue){Ie(Ue.session.$mode)},Ie=function(Oe){typeof Oe=="string"&&(Oe=ie.$modes[Oe]),Oe&&(oe.files||(oe.files={}),ze(Oe.$id,Oe.snippetFileId),Oe.modes&&Oe.modes.forEach(Ie))},ze=function(Oe,Ue){!Ue||!Oe||oe.files[Oe]||(oe.files[Oe]={},ie.loadModule(Ue,function(Dt){!Dt||(oe.files[Oe]=Dt,!Dt.snippets&&Dt.snippetText&&(Dt.snippets=oe.parseSnippetFile(Dt.snippetText)),oe.register(Dt.snippets||[],Dt.scope),Dt.includeScopes&&(oe.snippetMap[Dt.scope].includeScopes=Dt.includeScopes,Dt.includeScopes.forEach(function(At){Ie("ace/mode/"+At)})))}))},Et=function(Oe){var Ue=Oe.editor,Dt=Ue.completer&&Ue.completer.activated;if(Oe.command.name==="backspace")Dt&&!he.getCompletionPrefix(Ue)&&Ue.completer.detach();else if(Oe.command.name==="insertstring"){var At=he.getCompletionPrefix(Ue);if(At&&!Dt){var Lt=re.for(Ue);Lt.autoInsert=!1,Lt.showPopup(Ue)}}},qe=V("../editor").Editor;V("../config").defineOptions(qe.prototype,"editor",{enableBasicAutocompletion:{set:function(Oe){Oe?(this.completers||(this.completers=Array.isArray(Oe)?Oe:$e),this.commands.addCommand(re.startCommand)):this.commands.removeCommand(re.startCommand)},value:!1},enableLiveAutocompletion:{set:function(Oe){Oe?(this.completers||(this.completers=Array.isArray(Oe)?Oe:$e),this.commands.on("afterExec",Et)):this.commands.removeListener("afterExec",Et)},value:!1},enableSnippets:{set:function(Oe){Oe?(this.commands.addCommand(_e),this.on("changeMode",Ce),Ce(null,this)):(this.commands.removeCommand(_e),this.off("changeMode",Ce))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(V){$&&($.exports=V)})}()})(extLanguage_tools);const VARIANT_FORM_VERSION="3.0.8",MOCK_CASE_URL="https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/",ACE_BASE_PATH="https://ks3-cn-beijing.ksyun.com/vform2021/ace-mini",BEAUTIFIER_PATH="https://ks3-cn-beijing.ksyun.com/vform2021/js-beautify/1.14.0/beautifier.min.js",_sfc_main$2t={name:"CodeEditor",props:{modelValue:{type:String},readonly:{type:Boolean,default:!1},mode:{type:String,default:"javascript"},userWorker:{type:Boolean,default:!0}},emits:["update:modelValue"],mounted(){ace$1.config.set("basePath",ACE_BASE_PATH),this.addAutoCompletion(ace$1),this.aceEditor=ace$1.edit(this.$refs.ace,{maxLines:20,minLines:5,fontSize:12,theme:this.themePath,mode:this.modePath,tabSize:2,readOnly:this.readonly,highlightActiveLine:!0,value:this.codeValue}),this.aceEditor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0}),this.mode==="json"?this.setJsonMode():this.mode==="css"&&this.setCssMode(),this.userWorker||this.aceEditor.getSession().setUseWorker(!1),this.aceEditor.getSession().on("change",$=>{this.$emit("update:modelValue",this.aceEditor.getValue())})},data(){return{aceEditor:null,themePath:"ace/theme/sqlserver",modePath:"ace/mode/javascript",codeValue:this.modelValue}},watch:{},methods:{addAutoCompletion($){let k=[{meta:"VForm API",caption:"getWidgetRef",value:"getWidgetRef()",score:1},{meta:"VForm API",caption:"getFormRef",value:"getFormRef()",score:1}];$.require("ace/ext/language_tools").addCompleter({getCompletions:function(V,z,j,oe,re){return oe.length===0?re(null,[]):re(null,k)}})},setJsonMode(){this.aceEditor.getSession().setMode("ace/mode/json")},setCssMode(){this.aceEditor.getSession().setMode("ace/mode/css")},getEditorAnnotations(){return this.aceEditor.getSession().getAnnotations()},setValue($){this.aceEditor.getSession().setValue($)}}},_hoisted_1$s={class:"ace-container"},_hoisted_2$k={class:"ace-editor",ref:"ace"};function _sfc_render$2t($,k,V,z,j,oe){return require$$0$3.openBlock(),require$$0$3.createElementBlock("div",_hoisted_1$s,[require$$0$3.createElementVNode("div",_hoisted_2$k,null,512)])}var CodeEditor=_export_sfc$1(_sfc_main$2t,[["render",_sfc_render$2t],["__scopeId","data-v-335e1214"]]);const generateCode=function($,k="vue"){let V=JSON.stringify($);return k==="html"?` - - - - - VForm Demo - - - - - - -
- - - Submit -
- - - - - - -
- - - - - - - - - - - - - diff --git a/vboot-web/src/main/resources/vms/java/controller.java.vm b/vboot-web/src/main/resources/vms/java/controller.java.vm new file mode 100644 index 0000000..ab19cf5 --- /dev/null +++ b/vboot-web/src/main/resources/vms/java/controller.java.vm @@ -0,0 +1,115 @@ +package ${packageName}.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import ${packageName}.domain.${ClassName}; +import ${packageName}.service.I${ClassName}Service; +import com.ruoyi.common.utils.poi.ExcelUtil; +#if($table.crud || $table.sub) +import com.ruoyi.common.core.page.TableDataInfo; +#elseif($table.tree) +#end + +/** + * ${functionName}Controller + * + * @author ${author} + * @date ${datetime} + */ +@RestController +@RequestMapping("/${moduleName}/${businessName}") +public class ${ClassName}Controller extends BaseController +{ + @Autowired + private I${ClassName}Service ${className}Service; + + /** + * 查询${functionName}列表 + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") + @GetMapping("/list") +#if($table.crud || $table.sub) + public TableDataInfo list(${ClassName} ${className}) + { + startPage(); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return getDataTable(list); + } +#elseif($table.tree) + public AjaxResult list(${ClassName} ${className}) + { + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return AjaxResult.success(list); + } +#end + + /** + * 导出${functionName}列表 + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") + @Log(title = "${functionName}", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ${ClassName} ${className}) + { + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); + util.exportExcel(response, list, "${functionName}数据"); + } + + /** + * 获取${functionName}详细信息 + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") + @GetMapping(value = "/{${pkColumn.javaField}}") + public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) + { + return AjaxResult.success(${className}Service.select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField})); + } + + /** + * 新增${functionName} + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") + @Log(title = "${functionName}", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ${ClassName} ${className}) + { + return toAjax(${className}Service.insert${ClassName}(${className})); + } + + /** + * 修改${functionName} + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") + @Log(title = "${functionName}", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ${ClassName} ${className}) + { + return toAjax(${className}Service.update${ClassName}(${className})); + } + + /** + * 删除${functionName} + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") + @Log(title = "${functionName}", businessType = BusinessType.DELETE) + @DeleteMapping("/{${pkColumn.javaField}s}") + public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) + { + return toAjax(${className}Service.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s)); + } +} diff --git a/vboot-web/src/main/resources/vms/java/domain.java.vm b/vboot-web/src/main/resources/vms/java/domain.java.vm new file mode 100644 index 0000000..bd51c17 --- /dev/null +++ b/vboot-web/src/main/resources/vms/java/domain.java.vm @@ -0,0 +1,105 @@ +package ${packageName}.domain; + +#foreach ($import in $importList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +#if($table.crud || $table.sub) +import com.ruoyi.common.core.domain.BaseEntity; +#elseif($table.tree) +import com.ruoyi.common.core.domain.TreeEntity; +#end + +/** + * ${functionName}对象 ${tableName} + * + * @author ${author} + * @date ${datetime} + */ +#if($table.crud || $table.sub) +#set($Entity="BaseEntity") +#elseif($table.tree) +#set($Entity="TreeEntity") +#end +public class ${ClassName} extends ${Entity} +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) + /** $column.columnComment */ +#if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") +#else + @Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#if($table.sub) + /** $table.subTable.functionName信息 */ + private List<${subClassName}> ${subclassName}List; + +#end +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + public void set${AttrName}($column.javaType $column.javaField) + { + this.$column.javaField = $column.javaField; + } + + public $column.javaType get${AttrName}() + { + return $column.javaField; + } +#end +#end + +#if($table.sub) + public List<${subClassName}> get${subClassName}List() + { + return ${subclassName}List; + } + + public void set${subClassName}List(List<${subClassName}> ${subclassName}List) + { + this.${subclassName}List = ${subclassName}List; + } + +#end + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) +#foreach ($column in $columns) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + .append("${column.javaField}", get${AttrName}()) +#end +#if($table.sub) + .append("${subclassName}List", get${subClassName}List()) +#end + .toString(); + } +} diff --git a/vboot-web/src/main/resources/vms/java/mapper.java.vm b/vboot-web/src/main/resources/vms/java/mapper.java.vm new file mode 100644 index 0000000..7e7d7c2 --- /dev/null +++ b/vboot-web/src/main/resources/vms/java/mapper.java.vm @@ -0,0 +1,91 @@ +package ${packageName}.mapper; + +import java.util.List; +import ${packageName}.domain.${ClassName}; +#if($table.sub) +import ${packageName}.domain.${subClassName}; +#end + +/** + * ${functionName}Mapper接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface ${ClassName}Mapper +{ + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return ${functionName} + */ + public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + public List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + public int insert${ClassName}(${ClassName} ${className}); + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + public int update${ClassName}(${ClassName} ${className}); + + /** + * 删除${functionName} + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return 结果 + */ + public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的数据主键集合 + * @return 结果 + */ + public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); +#if($table.sub) + + /** + * 批量删除${subTable.functionName} + * + * @param ${pkColumn.javaField}s 需要删除的数据主键集合 + * @return 结果 + */ + public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); + + /** + * 批量新增${subTable.functionName} + * + * @param ${subclassName}List ${subTable.functionName}列表 + * @return 结果 + */ + public int batch${subClassName}(List<${subClassName}> ${subclassName}List); + + + /** + * 通过${functionName}主键删除${subTable.functionName}信息 + * + * @param ${pkColumn.javaField} ${functionName}ID + * @return 结果 + */ + public int delete${subClassName}By${subTableFkClassName}(${pkColumn.javaType} ${pkColumn.javaField}); +#end +} diff --git a/vboot-web/src/main/resources/vms/java/service.java.vm b/vboot-web/src/main/resources/vms/java/service.java.vm new file mode 100644 index 0000000..264882b --- /dev/null +++ b/vboot-web/src/main/resources/vms/java/service.java.vm @@ -0,0 +1,61 @@ +package ${packageName}.service; + +import java.util.List; +import ${packageName}.domain.${ClassName}; + +/** + * ${functionName}Service接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface I${ClassName}Service +{ + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return ${functionName} + */ + public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + public List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + public int insert${ClassName}(${ClassName} ${className}); + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + public int update${ClassName}(${ClassName} ${className}); + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的${functionName}主键集合 + * @return 结果 + */ + public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); + + /** + * 删除${functionName}信息 + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return 结果 + */ + public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); +} diff --git a/vboot-web/src/main/resources/vms/java/serviceImpl.java.vm b/vboot-web/src/main/resources/vms/java/serviceImpl.java.vm new file mode 100644 index 0000000..14746e1 --- /dev/null +++ b/vboot-web/src/main/resources/vms/java/serviceImpl.java.vm @@ -0,0 +1,169 @@ +package ${packageName}.service.impl; + +import java.util.List; +#foreach ($column in $columns) +#if($column.javaField == 'createTime' || $column.javaField == 'updateTime') +import com.ruoyi.common.utils.DateUtils; +#break +#end +#end +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +#if($table.sub) +import java.util.ArrayList; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.transaction.annotation.Transactional; +import ${packageName}.domain.${subClassName}; +#end +import ${packageName}.mapper.${ClassName}Mapper; +import ${packageName}.domain.${ClassName}; +import ${packageName}.service.I${ClassName}Service; + +/** + * ${functionName}Service业务层处理 + * + * @author ${author} + * @date ${datetime} + */ +@Service +public class ${ClassName}ServiceImpl implements I${ClassName}Service +{ + @Autowired + private ${ClassName}Mapper ${className}Mapper; + + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return ${functionName} + */ + @Override + public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}) + { + return ${className}Mapper.select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField}); + } + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + @Override + public List<${ClassName}> select${ClassName}List(${ClassName} ${className}) + { + return ${className}Mapper.select${ClassName}List(${className}); + } + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int insert${ClassName}(${ClassName} ${className}) + { +#foreach ($column in $columns) +#if($column.javaField == 'createTime') + ${className}.setCreateTime(DateUtils.getNowDate()); +#end +#end +#if($table.sub) + int rows = ${className}Mapper.insert${ClassName}(${className}); + insert${subClassName}(${className}); + return rows; +#else + return ${className}Mapper.insert${ClassName}(${className}); +#end + } + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int update${ClassName}(${ClassName} ${className}) + { +#foreach ($column in $columns) +#if($column.javaField == 'updateTime') + ${className}.setUpdateTime(DateUtils.getNowDate()); +#end +#end +#if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}()); + insert${subClassName}(${className}); +#end + return ${className}Mapper.update${ClassName}(${className}); + } + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的${functionName}主键 + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s) + { +#if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaField}s); +#end + return ${className}Mapper.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s); + } + + /** + * 删除${functionName}信息 + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}) + { +#if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${pkColumn.javaField}); +#end + return ${className}Mapper.delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField}); + } +#if($table.sub) + + /** + * 新增${subTable.functionName}信息 + * + * @param ${className} ${functionName}对象 + */ + public void insert${subClassName}(${ClassName} ${className}) + { + List<${subClassName}> ${subclassName}List = ${className}.get${subClassName}List(); + ${pkColumn.javaType} ${pkColumn.javaField} = ${className}.get${pkColumn.capJavaField}(); + if (StringUtils.isNotNull(${subclassName}List)) + { + List<${subClassName}> list = new ArrayList<${subClassName}>(); + for (${subClassName} ${subclassName} : ${subclassName}List) + { + ${subclassName}.set${subTableFkClassName}(${pkColumn.javaField}); + list.add(${subclassName}); + } + if (list.size() > 0) + { + ${className}Mapper.batch${subClassName}(list); + } + } + } +#end +} diff --git a/vboot-web/src/main/resources/vms/java/sub-domain.java.vm b/vboot-web/src/main/resources/vms/java/sub-domain.java.vm new file mode 100644 index 0000000..a3f53eb --- /dev/null +++ b/vboot-web/src/main/resources/vms/java/sub-domain.java.vm @@ -0,0 +1,76 @@ +package ${packageName}.domain; + +#foreach ($import in $subImportList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * ${subTable.functionName}对象 ${subTableName} + * + * @author ${author} + * @date ${datetime} + */ +public class ${subClassName} extends BaseEntity +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) + /** $column.columnComment */ +#if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") +#else + @Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + public void set${AttrName}($column.javaType $column.javaField) + { + this.$column.javaField = $column.javaField; + } + + public $column.javaType get${AttrName}() + { + return $column.javaField; + } +#end +#end + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) +#foreach ($column in $subTable.columns) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + .append("${column.javaField}", get${AttrName}()) +#end + .toString(); + } +} diff --git a/vboot-web/src/main/resources/vms/js/api.js.vm b/vboot-web/src/main/resources/vms/js/api.js.vm new file mode 100644 index 0000000..9295524 --- /dev/null +++ b/vboot-web/src/main/resources/vms/js/api.js.vm @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询${functionName}列表 +export function list${BusinessName}(query) { + return request({ + url: '/${moduleName}/${businessName}/list', + method: 'get', + params: query + }) +} + +// 查询${functionName}详细 +export function get${BusinessName}(${pkColumn.javaField}) { + return request({ + url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField}, + method: 'get' + }) +} + +// 新增${functionName} +export function add${BusinessName}(data) { + return request({ + url: '/${moduleName}/${businessName}', + method: 'post', + data: data + }) +} + +// 修改${functionName} +export function update${BusinessName}(data) { + return request({ + url: '/${moduleName}/${businessName}', + method: 'put', + data: data + }) +} + +// 删除${functionName} +export function del${BusinessName}(${pkColumn.javaField}) { + return request({ + url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField}, + method: 'delete' + }) +} diff --git a/vboot-web/src/main/resources/vms/main/api.java.vm b/vboot-web/src/main/resources/vms/main/api.java.vm new file mode 100644 index 0000000..b989f5b --- /dev/null +++ b/vboot-web/src/main/resources/vms/main/api.java.vm @@ -0,0 +1,44 @@ +package ${packageName}; + +import vboot.core.common.api.R; +import vboot.core.common.dao.Sqler; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("${table.name.replace("_","/")}") +public class ${table.bunam}Api { + + @GetMapping + public R get(String name) { + Sqler sqler = new Sqler("${table.name}"); + sqler.addLike("t.name", name); + return R.ok(service.findPageData(sqler)); + } + + + @GetMapping("one/{id}") + public R getOne(@PathVariable String id) { + ${table.bunam} main = service.findOne(id); + return R.ok(main); + } + + @PostMapping + public R post(@RequestBody ${table.bunam} main) { + return R.ok(service.insert(main).getId()); + } + + @PutMapping + public R put(@RequestBody ${table.bunam} main) { + return R.ok(service.update(main).getId()); + } + + @DeleteMapping("{ids}") + public R delete(@PathVariable String[] ids) { + return R.ok(service.delete(ids)); + } + + @Autowired + private ${table.bunam}Service service; + +} diff --git a/vboot-web/src/main/resources/vms/main/edit.vue.vm b/vboot-web/src/main/resources/vms/main/edit.vue.vm new file mode 100644 index 0000000..fe27fac --- /dev/null +++ b/vboot-web/src/main/resources/vms/main/edit.vue.vm @@ -0,0 +1,73 @@ + + + diff --git a/vboot-web/src/main/resources/vms/main/entity.java.vm b/vboot-web/src/main/resources/vms/main/entity.java.vm new file mode 100644 index 0000000..d8edaae --- /dev/null +++ b/vboot-web/src/main/resources/vms/main/entity.java.vm @@ -0,0 +1,39 @@ +package ${packageName}; + +import lombok.Getter; +import lombok.Setter; +import vboot.core.common.entity.BaseMainEntity; + +import javax.persistence.*; +import java.util.ArrayList; +import java.util.List; + +@Entity +@Getter +@Setter +public class $table.bunam extends BaseMainEntity { + +#foreach ($field in $fields) + #if($field.type=="string") + @Column(length = $field.length) + private String $field.name; + + #elseif($field.type=="int") + private Integer $field.name; + + #elseif($field.type=="long") + private Long $field.name; + + #elseif($field.type=="bool") + private Boolean $field.name; + + #elseif($field.type=="date") + private Date $field.name; + + #elseif($field.type=="decimal") + private BigDecimal $field.name; + + #end +#end + +} diff --git a/vboot-web/src/main/resources/vms/main/index.vue.vm b/vboot-web/src/main/resources/vms/main/index.vue.vm new file mode 100644 index 0000000..01edf50 --- /dev/null +++ b/vboot-web/src/main/resources/vms/main/index.vue.vm @@ -0,0 +1,70 @@ + + + diff --git a/vboot-web/src/main/resources/vms/main/repo.java.vm b/vboot-web/src/main/resources/vms/main/repo.java.vm new file mode 100644 index 0000000..2f6f279 --- /dev/null +++ b/vboot-web/src/main/resources/vms/main/repo.java.vm @@ -0,0 +1,9 @@ +package ${packageName}; + +import org.springframework.data.jpa.repository.JpaRepository; + +public interface ${table.bunam}Repo extends JpaRepository<${table.bunam},String> { + + +} + diff --git a/vboot-web/src/main/resources/vms/main/service.java.vm b/vboot-web/src/main/resources/vms/main/service.java.vm new file mode 100644 index 0000000..af26a16 --- /dev/null +++ b/vboot-web/src/main/resources/vms/main/service.java.vm @@ -0,0 +1,21 @@ +package ${packageName}; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import vboot.core.common.service.BaseMainService; + +import javax.annotation.PostConstruct; + +@Service +public class ${table.bunam}Service extends BaseMainService<${table.bunam}> { + + @Autowired + private ${table.bunam}Repo repo; + + @PostConstruct + public void initDao() { + super.setRepo(repo); + } + +} + diff --git a/vboot-web/src/main/resources/vms/sql/sql.vm b/vboot-web/src/main/resources/vms/sql/sql.vm new file mode 100644 index 0000000..0575583 --- /dev/null +++ b/vboot-web/src/main/resources/vms/sql/sql.vm @@ -0,0 +1,22 @@ +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate(), '', null, '${functionName}菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', sysdate(), '', null, ''); \ No newline at end of file diff --git a/vboot-web/src/main/resources/vms/vue/index-tree.vue.vm b/vboot-web/src/main/resources/vms/vue/index-tree.vue.vm new file mode 100644 index 0000000..3def704 --- /dev/null +++ b/vboot-web/src/main/resources/vms/vue/index-tree.vue.vm @@ -0,0 +1,502 @@ + + + diff --git a/vboot-web/src/main/resources/vms/vue/index.vue.vm b/vboot-web/src/main/resources/vms/vue/index.vue.vm new file mode 100644 index 0000000..e9a1fae --- /dev/null +++ b/vboot-web/src/main/resources/vms/vue/index.vue.vm @@ -0,0 +1,598 @@ + + + diff --git a/vboot-web/src/main/resources/vms/vue/v3/index-tree.vue.vm b/vboot-web/src/main/resources/vms/vue/v3/index-tree.vue.vm new file mode 100644 index 0000000..862297c --- /dev/null +++ b/vboot-web/src/main/resources/vms/vue/v3/index-tree.vue.vm @@ -0,0 +1,486 @@ + + + diff --git a/vboot-web/src/main/resources/vms/vue/v3/index.vue.vm b/vboot-web/src/main/resources/vms/vue/v3/index.vue.vm new file mode 100644 index 0000000..a363ef3 --- /dev/null +++ b/vboot-web/src/main/resources/vms/vue/v3/index.vue.vm @@ -0,0 +1,596 @@ + + + diff --git a/vboot-web/src/main/resources/vms/vue/v3/readme.txt b/vboot-web/src/main/resources/vms/vue/v3/readme.txt new file mode 100644 index 0000000..ecf6683 --- /dev/null +++ b/vboot-web/src/main/resources/vms/vue/v3/readme.txt @@ -0,0 +1 @@ +���ʹ�õ���RuoYi-Vue3ǰ�ˣ���ô��Ҫ����һ�´�Ŀ¼��ģ��index.vue.vm��index-tree.vue.vm�ļ����ϼ�vueĿ¼�� \ No newline at end of file diff --git a/vboot-web/src/main/resources/vms/xml/mapper.xml.vm b/vboot-web/src/main/resources/vms/xml/mapper.xml.vm new file mode 100644 index 0000000..0ceb3d8 --- /dev/null +++ b/vboot-web/src/main/resources/vms/xml/mapper.xml.vm @@ -0,0 +1,135 @@ + + + + + +#foreach ($column in $columns) + +#end + +#if($table.sub) + + + + + + +#foreach ($column in $subTable.columns) + +#end + +#end + + + select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName} + + + + + + + + insert into ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + $column.columnName, +#end +#end + + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + #{$column.javaField}, +#end +#end + + + + + update ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName) + $column.columnName = #{$column.javaField}, +#end +#end + + where ${pkColumn.columnName} = #{${pkColumn.javaField}} + + + + delete from ${tableName} where ${pkColumn.columnName} = #{${pkColumn.javaField}} + + + + delete from ${tableName} where ${pkColumn.columnName} in + + #{${pkColumn.javaField}} + + +#if($table.sub) + + + delete from ${subTableName} where ${subTableFkName} in + + #{${subTableFkclassName}} + + + + + delete from ${subTableName} where ${subTableFkName} = #{${subTableFkclassName}} + + + + insert into ${subTableName}(#foreach($column in $subTable.columns) $column.columnName#if($foreach.count != $subTable.columns.size()),#end#end) values + + (#foreach($column in $subTable.columns) #{item.$column.javaField}#if($foreach.count != $subTable.columns.size()),#end#end) + + +#end + \ No newline at end of file