From 9cfea6c4e8b962e68d78740a5175e68964150dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=94=9F=E9=BE=99?= Date: Tue, 15 Dec 2020 18:53:13 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat(=E5=A2=9E=E5=8A=A0=E7=BB=84=E7=9A=84?= =?UTF-8?q?=E6=A6=82=E5=BF=B5)=EF=BC=9A=E5=A2=9E=E5=8A=A0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E7=BB=84=EF=BC=8C=E5=8F=AF=E4=BB=A5=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E9=9C=80=E6=B1=82=E9=80=89=E6=8B=A9=E4=B8=8D=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E7=BB=84=E7=9A=84=E6=A8=A1=E6=9D=BF=EF=BC=8C=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=BB=99=E6=95=B0=E6=8D=AE=E6=BA=90=E9=85=8D=E7=BD=AE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=9A=84=E5=8C=85=E5=90=8D=E3=80=81=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=89=8D=E7=BC=80=E3=80=81=E4=BB=A5=E5=8F=8A=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E5=B9=B6=E4=B8=94=E8=BF=98=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=9C=A8=E9=A1=B5=E9=9D=A2=E5=AE=9E=E6=97=B6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/router/index.js | 14 ++ front/src/views/generate/index.vue | 126 +++++++++++++++++- front/src/views/group/index.vue | 124 +++++++++++++++++ front/src/views/template/edit.vue | 38 ++++++ front/src/views/template/index.vue | 11 +- front/vue.config.js | 3 +- .../com/gitee/gen/common/GeneratorParam.java | 10 ++ .../controller/TemplateConfigController.java | 13 +- .../controller/TemplateGroupController.java | 88 ++++++++++++ .../gitee/gen/entity/DatasourceConfig.java | 110 ++++++++++----- .../com/gitee/gen/entity/TemplateConfig.java | 70 +++++++--- .../com/gitee/gen/entity/TemplateGroup.java | 60 +++++++++ .../java/com/gitee/gen/gen/SQLContext.java | 22 +++ .../gen/mapper/TemplateConfigMapper.java | 9 +- .../gitee/gen/mapper/TemplateGroupMapper.java | 72 ++++++++++ .../gitee/gen/service/GeneratorService.java | 7 + .../gen/service/TemplateConfigService.java | 11 +- .../gen/service/TemplateGroupService.java | 107 +++++++++++++++ gen/src/main/resources/application.properties | 2 +- .../mybatis/DatasourceConfigMapper.xml | 99 ++++++++++---- .../mybatis/TemplateConfigMapper.xml | 80 ++++++++--- .../resources/mybatis/TemplateGroupMapper.xml | 106 +++++++++++++++ gen/src/main/resources/public/index.html | 2 +- .../{app.e2731d09.css => app.aa6ee3c8.css} | 0 ...64c242.css => chunk-34242e28.2864c242.css} | 0 ...069daf.css => chunk-4295c974.e2948cc9.css} | 2 +- ...54e507.css => chunk-44188c88.a254e507.css} | 0 ...s.2aad8290.css => chunk-libs.dc0bbd27.css} | 2 +- .../public/static/js/app.0cd732f6.js | 1 + .../public/static/js/app.3a6801a7.js | 1 - .../static/js/chunk-0a388286.be225d9f.js | 1 - ...3b6b1643.js => chunk-2d0efd67.7dba06b9.js} | 0 .../static/js/chunk-2d228903.4316af3a.js | 1 + .../static/js/chunk-2d228903.72e29674.js | 1 - .../static/js/chunk-34242e28.ce617928.js | 1 + .../static/js/chunk-4295c974.c99d0862.js | 1 + .../static/js/chunk-44188c88.3620cd3a.js | 1 + .../static/js/chunk-4de1c2b6.2c1febca.js | 1 - .../static/js/chunk-4de1c2b6.9c50e0a4.js | 1 + ...2b9ec4ce.js => chunk-53ca05b2.017ee717.js} | 6 +- .../static/js/chunk-5fb3a2ba.79829237.js | 1 - .../static/js/chunk-70c97e3b.3c1cab1d.js | 1 - .../static/js/chunk-74aeca77.f3100fa9.js | 1 + ...ibs.3c441178.js => chunk-libs.62e97045.js} | 20 +-- readme.md | 8 +- 45 files changed, 1088 insertions(+), 147 deletions(-) create mode 100644 front/src/views/group/index.vue create mode 100644 gen/src/main/java/com/gitee/gen/controller/TemplateGroupController.java create mode 100644 gen/src/main/java/com/gitee/gen/entity/TemplateGroup.java create mode 100644 gen/src/main/java/com/gitee/gen/mapper/TemplateGroupMapper.java create mode 100644 gen/src/main/java/com/gitee/gen/service/TemplateGroupService.java create mode 100644 gen/src/main/resources/mybatis/TemplateGroupMapper.xml rename gen/src/main/resources/public/static/css/{app.e2731d09.css => app.aa6ee3c8.css} (100%) rename gen/src/main/resources/public/static/css/{chunk-0a388286.2864c242.css => chunk-34242e28.2864c242.css} (100%) rename gen/src/main/resources/public/static/css/{chunk-5fb3a2ba.36069daf.css => chunk-4295c974.e2948cc9.css} (57%) rename gen/src/main/resources/public/static/css/{chunk-70c97e3b.a254e507.css => chunk-44188c88.a254e507.css} (100%) rename gen/src/main/resources/public/static/css/{chunk-libs.2aad8290.css => chunk-libs.dc0bbd27.css} (70%) create mode 100644 gen/src/main/resources/public/static/js/app.0cd732f6.js delete mode 100644 gen/src/main/resources/public/static/js/app.3a6801a7.js delete mode 100644 gen/src/main/resources/public/static/js/chunk-0a388286.be225d9f.js rename gen/src/main/resources/public/static/js/{chunk-2d0efd67.3b6b1643.js => chunk-2d0efd67.7dba06b9.js} (100%) create mode 100644 gen/src/main/resources/public/static/js/chunk-2d228903.4316af3a.js delete mode 100644 gen/src/main/resources/public/static/js/chunk-2d228903.72e29674.js create mode 100644 gen/src/main/resources/public/static/js/chunk-34242e28.ce617928.js create mode 100644 gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js create mode 100644 gen/src/main/resources/public/static/js/chunk-44188c88.3620cd3a.js delete mode 100644 gen/src/main/resources/public/static/js/chunk-4de1c2b6.2c1febca.js create mode 100644 gen/src/main/resources/public/static/js/chunk-4de1c2b6.9c50e0a4.js rename gen/src/main/resources/public/static/js/{chunk-53ca05b2.2b9ec4ce.js => chunk-53ca05b2.017ee717.js} (55%) delete mode 100644 gen/src/main/resources/public/static/js/chunk-5fb3a2ba.79829237.js delete mode 100644 gen/src/main/resources/public/static/js/chunk-70c97e3b.3c1cab1d.js create mode 100644 gen/src/main/resources/public/static/js/chunk-74aeca77.f3100fa9.js rename gen/src/main/resources/public/static/js/{chunk-libs.3c441178.js => chunk-libs.62e97045.js} (35%) diff --git a/front/src/router/index.js b/front/src/router/index.js index 380a73a..c2cc072 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -70,6 +70,20 @@ export const constantRoutes = [ } ] }, + { + path: '/group', + component: Layout, + meta: { title: '模板组管理', icon: 'table' }, + redirect: '/group/list', + children: [ + { + path: 'list', + name: 'List', + component: () => import('@/views/group/index'), + meta: { title: '模板组管理' } + } + ] + }, { path: '/template', component: Layout, diff --git a/front/src/views/generate/index.vue b/front/src/views/generate/index.vue index 6bd1df7..e245ada 100644 --- a/front/src/views/generate/index.vue +++ b/front/src/views/generate/index.vue @@ -26,7 +26,10 @@ 新建数据源 - + + + + @@ -57,13 +60,29 @@ /> - +

选择模板

+ + + + + > + + + {{scope.row.name}} + + 生成代码
@@ -118,6 +142,29 @@ + + + + + + + + + + + + 测试连接 保存 @@ -142,17 +189,25 @@ .el-table .hidden-row { display: none; } + #templateSelect { + .el-input { width: 100%;} + } diff --git a/front/src/views/template/edit.vue b/front/src/views/template/edit.vue index a092796..de55475 100644 --- a/front/src/views/template/edit.vue +++ b/front/src/views/template/edit.vue @@ -10,6 +10,22 @@ size="mini" label-position="top" > + + + + + + + @@ -88,13 +104,19 @@ export default { components: { codemirror }, data() { return { + groupData: {}, formData: { id: 0, + groupId: '', + groupName: '', name: '', fileName: '', content: '' }, formRules: { + groupId: [ + { required: true, message: '不能为空', trigger: 'blur' } + ], name: [ { required: true, message: '不能为空', trigger: 'blur' } ], @@ -131,6 +153,7 @@ export default { }) } this.loadVelocityVar() + this.loadGroups() }, methods: { loadVelocityVar() { @@ -150,6 +173,21 @@ export default { }) }) }, + loadGroups() { + this.post(`/group/list/`, {}, function(resp) { + this.groupData = resp.data + }) + }, + onDataGroupChange(groupId){ + console.log(groupId) + this.formData.groupId = groupId; + this.groupData.find((item)=>{ + if(item.id === groupId){ + this.formData.groupName = item.groupName + } + }); + console.log(this.formData.groupName) + }, onExpressionClick(exp) { const codemirror = this.$refs.editor.codemirror // 插入表达式 diff --git a/front/src/views/template/index.vue b/front/src/views/template/index.vue index a5e9665..6cd36f7 100644 --- a/front/src/views/template/index.vue +++ b/front/src/views/template/index.vue @@ -6,6 +6,11 @@ border highlight-current-row > + config.devtool('cheap-source-map') + // config => config.devtool('cheap-source-map') + config => config.devtool('source-map') ) config diff --git a/gen/src/main/java/com/gitee/gen/common/GeneratorParam.java b/gen/src/main/java/com/gitee/gen/common/GeneratorParam.java index e0177b4..d4ecd38 100644 --- a/gen/src/main/java/com/gitee/gen/common/GeneratorParam.java +++ b/gen/src/main/java/com/gitee/gen/common/GeneratorParam.java @@ -14,6 +14,8 @@ public class GeneratorParam { private String packageName; + private String delPrefix; + private String charset = "UTF-8"; public int getDatasourceConfigId() { @@ -48,6 +50,14 @@ public class GeneratorParam { this.packageName = packageName; } + public String getDelPrefix() { + return delPrefix; + } + + public void setDelPrefix(String delPrefix) { + this.delPrefix = delPrefix; + } + public String getCharset() { return charset; } diff --git a/gen/src/main/java/com/gitee/gen/controller/TemplateConfigController.java b/gen/src/main/java/com/gitee/gen/controller/TemplateConfigController.java index f0ae980..ab8c1a8 100644 --- a/gen/src/main/java/com/gitee/gen/controller/TemplateConfigController.java +++ b/gen/src/main/java/com/gitee/gen/controller/TemplateConfigController.java @@ -4,12 +4,15 @@ import com.gitee.gen.common.Action; import com.gitee.gen.common.Result; import com.gitee.gen.entity.TemplateConfig; import com.gitee.gen.service.TemplateConfigService; +import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; 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 java.util.List; + /** * @author tanghc */ @@ -32,8 +35,14 @@ public class TemplateConfigController { } @RequestMapping("/list") - public Result list() { - return Action.ok(templateConfigService.listAll()); + public Result list(String groupId) { + List templateConfigs = null; + if(StringUtils.isEmpty(groupId)){ + templateConfigs = templateConfigService.listAll(); + }else { + templateConfigs = templateConfigService.listByGroupId(groupId); + } + return Action.ok(templateConfigs); } @RequestMapping("/update") diff --git a/gen/src/main/java/com/gitee/gen/controller/TemplateGroupController.java b/gen/src/main/java/com/gitee/gen/controller/TemplateGroupController.java new file mode 100644 index 0000000..e56560e --- /dev/null +++ b/gen/src/main/java/com/gitee/gen/controller/TemplateGroupController.java @@ -0,0 +1,88 @@ +package com.gitee.gen.controller; + +import com.gitee.gen.common.Action; +import com.gitee.gen.common.Result; +import com.gitee.gen.entity.TemplateGroup; +import com.gitee.gen.service.TemplateGroupService; +import org.springframework.beans.factory.annotation.Autowired; +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 java.util.List; + +/** + * @author : zsljava + * @date Date : 2020-12-15 9:51 + * @Description: TODO + */ +@RestController +@RequestMapping("group") +public class TemplateGroupController { + + @Autowired + private TemplateGroupService templateGroupService; + + /** + * 查询所有记录 + * + * @return 返回集合,没有返回空List + */ + @RequestMapping("list") + public Result listAll() { + List templateGroups = templateGroupService.listAll(); + return Action.ok(templateGroups); + } + + + /** + * 根据主键查询 + * + * @param id 主键 + * @return 返回记录,没有返回null + */ + @RequestMapping("get/{id}") + public Result get(@PathVariable("id") int id) { + TemplateGroup group = templateGroupService.getById(id); + return Action.ok(group); + } + + /** + * 新增,忽略null字段 + * + * @param templateGroup 新增的记录 + * @return 返回影响行数 + */ + @RequestMapping("add") + public Result insert(@RequestBody TemplateGroup templateGroup) { + templateGroupService.insertIgnoreNull(templateGroup); + return Action.ok(templateGroup); + } + + /** + * 修改,忽略null字段 + * + * @param templateGroup 修改的记录 + * @return 返回影响行数 + */ + @RequestMapping("update") + public Result update(@RequestBody TemplateGroup templateGroup) { +// templateGroupService.updateIgnoreNull(templateGroup); + templateGroupService.updateGroup(templateGroup); + return Action.ok(); + } + + /** + * 删除记录 + * + * @param templateGroup 待删除的记录 + * @return 返回影响行数 + */ + @RequestMapping("del") + public Result delete(@RequestBody TemplateGroup templateGroup) { + templateGroupService.deleteGroup(templateGroup); + return Action.ok(); + } + +} \ No newline at end of file diff --git a/gen/src/main/java/com/gitee/gen/entity/DatasourceConfig.java b/gen/src/main/java/com/gitee/gen/entity/DatasourceConfig.java index 3fbb859..e222938 100644 --- a/gen/src/main/java/com/gitee/gen/entity/DatasourceConfig.java +++ b/gen/src/main/java/com/gitee/gen/entity/DatasourceConfig.java @@ -1,7 +1,7 @@ package com.gitee.gen.entity; -import com.gitee.gen.gen.DbType; +import java.util.Objects; /** * 数据源配置表 @@ -24,110 +24,148 @@ public class DatasourceConfig { private String password; /** 是否已删除,1:已删除,0:未删除 */ private Integer isDeleted; + /** 包名*/ + private String packageName; + /** 删除的前缀*/ + private String delPrefix; + /** 代码生成器模板组id*/ + private String groupId; + + public Integer getId() { + return id; + } public void setId(Integer id) { this.id = id; } - public Integer getId() { - return this.id; + public Integer getDbType() { + return dbType; } public void setDbType(Integer dbType) { this.dbType = dbType; } - public Integer getDbType() { - return this.dbType; + public String getDriverClass() { + return driverClass; } public void setDriverClass(String driverClass) { this.driverClass = driverClass; } - public String getDriverClass() { - DbType dbType = DbType.of(this.dbType); - if (dbType == null) { - return "unknown"; - } - return dbType.getDriverClass(); + public String getDbName() { + return dbName; } public void setDbName(String dbName) { this.dbName = dbName; } - public String getDbName() { - return this.dbName; + public String getHost() { + return host; } public void setHost(String host) { this.host = host; } - public String getHost() { - return this.host; + public Integer getPort() { + return port; } public void setPort(Integer port) { this.port = port; } - public Integer getPort() { - return this.port; + public String getUsername() { + return username; } public void setUsername(String username) { this.username = username; } - public String getUsername() { - return this.username; + public String getPassword() { + return password; } public void setPassword(String password) { this.password = password; } - public String getPassword() { - return this.password; + public Integer getIsDeleted() { + return isDeleted; } public void setIsDeleted(Integer isDeleted) { this.isDeleted = isDeleted; } - public Integer getIsDeleted() { - return this.isDeleted; + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; } + public String getDelPrefix() { + return delPrefix; + } + + public void setDelPrefix(String delPrefix) { + this.delPrefix = delPrefix; + } + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) {return false;} + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; DatasourceConfig that = (DatasourceConfig) o; - return id.equals(that.id); + return Objects.equals(id, that.id) && + Objects.equals(dbType, that.dbType) && + Objects.equals(driverClass, that.driverClass) && + Objects.equals(dbName, that.dbName) && + Objects.equals(host, that.host) && + Objects.equals(port, that.port) && + Objects.equals(username, that.username) && + Objects.equals(password, that.password) && + Objects.equals(isDeleted, that.isDeleted) && + Objects.equals(packageName, that.packageName) && + Objects.equals(delPrefix, that.delPrefix) && + Objects.equals(groupId, that.groupId); } @Override public int hashCode() { - return java.util.Objects.hash(id); + return Objects.hash(id, dbType, driverClass, dbName, host, port, username, password, isDeleted, packageName, delPrefix, groupId); } @Override public String toString() { return "DatasourceConfig{" + "id=" + id + - ",dbType='" + dbType + "'" + - ",driverClass='" + driverClass + "'" + - ",dbName='" + dbName + "'" + - ",host='" + host + "'" + - ",port='" + port + "'" + - ",username='" + username + "'" + - ",password='" + password + "'" + - ",isDeleted='" + isDeleted + "'" + + ", dbType=" + dbType + + ", driverClass='" + driverClass + '\'' + + ", dbName='" + dbName + '\'' + + ", host='" + host + '\'' + + ", port=" + port + + ", username='" + username + '\'' + + ", password='" + password + '\'' + + ", isDeleted=" + isDeleted + + ", packageName='" + packageName + '\'' + + ", delPrefix='" + delPrefix + '\'' + + ", groupId='" + groupId + '\'' + '}'; } - } \ No newline at end of file diff --git a/gen/src/main/java/com/gitee/gen/entity/TemplateConfig.java b/gen/src/main/java/com/gitee/gen/entity/TemplateConfig.java index afc6987..1b73a0b 100644 --- a/gen/src/main/java/com/gitee/gen/entity/TemplateConfig.java +++ b/gen/src/main/java/com/gitee/gen/entity/TemplateConfig.java @@ -1,11 +1,15 @@ package com.gitee.gen.entity; +import java.util.Objects; + /** * 模板表 */ public class TemplateConfig { private Integer id; + private Integer groupId; + private String groupName; /** 模板名称 */ private String name; /** 文件名称 */ @@ -15,69 +19,91 @@ public class TemplateConfig { /** 是否删除,1:已删除,0:未删除 */ private Integer isDeleted; + public Integer getId() { + return id; + } + public void setId(Integer id) { this.id = id; } - public Integer getId() { - return this.id; + public Integer getGroupId() { + return groupId; + } + + public void setGroupId(Integer groupId) { + this.groupId = groupId; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getName() { + return name; } public void setName(String name) { this.name = name; } - public String getName() { - return this.name; + public String getFileName() { + return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } - public String getFileName() { - return this.fileName; + public String getContent() { + return content; } public void setContent(String content) { this.content = content; } - public String getContent() { - return this.content; + public Integer getIsDeleted() { + return isDeleted; } public void setIsDeleted(Integer isDeleted) { this.isDeleted = isDeleted; } - public Integer getIsDeleted() { - return this.isDeleted; - } - - @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) {return false;} + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; TemplateConfig that = (TemplateConfig) o; - return id.equals(that.id); + return Objects.equals(id, that.id) && + Objects.equals(groupId, that.groupId) && + Objects.equals(groupName, that.groupName) && + Objects.equals(name, that.name) && + Objects.equals(fileName, that.fileName) && + Objects.equals(content, that.content) && + Objects.equals(isDeleted, that.isDeleted); } @Override public int hashCode() { - return java.util.Objects.hash(id); + return Objects.hash(id, groupId, groupName, name, fileName, content, isDeleted); } @Override public String toString() { return "TemplateConfig{" + "id=" + id + - ",name='" + name + "'" + - ",fileName='" + fileName + "'" + - ",content='" + content + "'" + - ",isDeleted='" + isDeleted + "'" + + ", groupId=" + groupId + + ", groupName='" + groupName + '\'' + + ", name='" + name + '\'' + + ", fileName='" + fileName + '\'' + + ", content='" + content + '\'' + + ", isDeleted=" + isDeleted + '}'; } - } \ No newline at end of file diff --git a/gen/src/main/java/com/gitee/gen/entity/TemplateGroup.java b/gen/src/main/java/com/gitee/gen/entity/TemplateGroup.java new file mode 100644 index 0000000..e963001 --- /dev/null +++ b/gen/src/main/java/com/gitee/gen/entity/TemplateGroup.java @@ -0,0 +1,60 @@ +package com.gitee.gen.entity; + +/** + * @author : zsljava + * @date Date : 2020-12-15 9:49 + * @Description: TODO + */ +public class TemplateGroup { + private Integer id; + private String groupName; + private Integer isDeleted; + + public void setId(Integer id) { + this.id = id; + } + + public Integer getId() { + return this.id; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getGroupName() { + return this.groupName; + } + + public void setIsDeleted(Integer isDeleted) { + this.isDeleted = isDeleted; + } + + public Integer getIsDelete() { + return this.isDeleted; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) {return false;} + TemplateGroup that = (TemplateGroup) o; + return id.equals(that.id); + } + + @Override + public int hashCode() { + return java.util.Objects.hash(id); + } + + @Override + public String toString() { + return "TemplateGroup{" + + "id=" + id + + ",groupName='" + groupName + "'" + + ",isDelete='" + isDeleted + "'" + + '}'; + } + +} \ No newline at end of file diff --git a/gen/src/main/java/com/gitee/gen/gen/SQLContext.java b/gen/src/main/java/com/gitee/gen/gen/SQLContext.java index 0f73b64..d50991e 100644 --- a/gen/src/main/java/com/gitee/gen/gen/SQLContext.java +++ b/gen/src/main/java/com/gitee/gen/gen/SQLContext.java @@ -1,6 +1,7 @@ package com.gitee.gen.gen; import com.gitee.gen.util.FieldUtil; +import org.apache.commons.lang.StringUtils; /** * SQL上下文,这里可以取到表,字段信息
@@ -17,6 +18,12 @@ public class SQLContext { * 包名 */ private String packageName; + + /** + * 删除的前缀 + */ + private String delPrefix; + /** * 数据库名 */ @@ -54,6 +61,13 @@ public class SQLContext { */ public String getJavaBeanNameLF() { String tableName = tableDefinition.getTableName(); + if(delPrefix != null){ + String[] split = delPrefix.split(","); + for (String prefix : split){ + tableName = tableName.startsWith(prefix) && !StringUtils.isEmpty(prefix) ? tableName.replace(prefix, "") : tableName; + } + } + tableName = FieldUtil.underlineFilter(tableName); tableName = FieldUtil.dotFilter(tableName); return FieldUtil.lowerFirstLetter(tableName); @@ -99,6 +113,14 @@ public class SQLContext { this.packageName = packageName; } + public String getDelPrefix() { + return delPrefix; + } + + public void setDelPrefix(String delPrefix) { + this.delPrefix = delPrefix; + } + public String getDbName() { return dbName; } diff --git a/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java b/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java index cccc52e..7f9142e 100644 --- a/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java +++ b/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java @@ -1,10 +1,10 @@ package com.gitee.gen.mapper; -import java.util.List; - import com.gitee.gen.entity.TemplateConfig; import org.apache.ibatis.annotations.Mapper; +import java.util.List; + @Mapper public interface TemplateConfigMapper { @@ -66,4 +66,9 @@ public interface TemplateConfigMapper { */ int delete(TemplateConfig templateConfig); + List listByGroupId(String groupId); + + int updateGroupNameByGroupId(Integer groupId, String groupName); + + int deleteByGroupId(Integer id); } \ No newline at end of file diff --git a/gen/src/main/java/com/gitee/gen/mapper/TemplateGroupMapper.java b/gen/src/main/java/com/gitee/gen/mapper/TemplateGroupMapper.java new file mode 100644 index 0000000..7e2e5e6 --- /dev/null +++ b/gen/src/main/java/com/gitee/gen/mapper/TemplateGroupMapper.java @@ -0,0 +1,72 @@ +package com.gitee.gen.mapper; + +import com.gitee.gen.entity.TemplateGroup; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * @author : zsljava + * @date Date : 2020-12-15 9:50 + * @Description: TODO + */ +@Mapper +public interface TemplateGroupMapper { + + /** + * 查询所有记录 + * + * @return 返回集合,没有返回空List + */ + List listAll(); + + + /** + * 根据主键查询 + * + * @param id 主键 + * @return 返回记录,没有返回null + */ + TemplateGroup getById(Integer id); + + /** + * 新增,插入所有字段 + * + * @param templateGroup 新增的记录 + * @return 返回影响行数 + */ + int insert(TemplateGroup templateGroup); + + /** + * 新增,忽略null字段 + * + * @param templateGroup 新增的记录 + * @return 返回影响行数 + */ + int insertIgnoreNull(TemplateGroup templateGroup); + + /** + * 修改,修改所有字段 + * + * @param templateGroup 修改的记录 + * @return 返回影响行数 + */ + int update(TemplateGroup templateGroup); + + /** + * 修改,忽略null字段 + * + * @param templateGroup 修改的记录 + * @return 返回影响行数 + */ + int updateIgnoreNull(TemplateGroup templateGroup); + + /** + * 删除记录 + * + * @param templateGroup 待删除的记录 + * @return 返回影响行数 + */ + int delete(TemplateGroup templateGroup); + +} \ No newline at end of file diff --git a/gen/src/main/java/com/gitee/gen/service/GeneratorService.java b/gen/src/main/java/com/gitee/gen/service/GeneratorService.java index fac0936..2995a3c 100644 --- a/gen/src/main/java/com/gitee/gen/service/GeneratorService.java +++ b/gen/src/main/java/com/gitee/gen/service/GeneratorService.java @@ -40,6 +40,7 @@ public class GeneratorService { for (SQLContext sqlContext : contextList) { setPackageName(sqlContext, generatorParam.getPackageName()); + setDelPrefix(sqlContext, generatorParam.getDelPrefix()); for (int tcId : generatorParam.getTemplateConfigIdList()) { TemplateConfig template = templateConfigService.getById(tcId); String folder = template.getName(); @@ -90,6 +91,12 @@ public class GeneratorService { } } + private void setDelPrefix(SQLContext sqlContext, String delPrefix) { + if (StringUtils.hasText(delPrefix)) { + sqlContext.setDelPrefix(delPrefix); + } + } + private String doGenerator(SQLContext sqlContext, String template) { if (template == null) { return ""; diff --git a/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java b/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java index b7864cb..50368f3 100644 --- a/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java +++ b/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java @@ -26,10 +26,10 @@ public class TemplateConfigService { } public void insert(TemplateConfig templateConfig) { - TemplateConfig existObj = templateConfigMapper.getByName(templateConfig.getName()); - if (existObj != null) { - throw new RuntimeException("模板名称已存在"); - } +// TemplateConfig existObj = templateConfigMapper.getByName(templateConfig.getName()); +// if (existObj != null) { +// throw new RuntimeException("模板名称已存在"); +// } templateConfig.setIsDeleted(0); templateConfigMapper.insert(templateConfig); } @@ -46,4 +46,7 @@ public class TemplateConfigService { templateConfigMapper.delete(templateConfig); } + public List listByGroupId(String groupId) { + return templateConfigMapper.listByGroupId(groupId); + } } diff --git a/gen/src/main/java/com/gitee/gen/service/TemplateGroupService.java b/gen/src/main/java/com/gitee/gen/service/TemplateGroupService.java new file mode 100644 index 0000000..2c2ea1f --- /dev/null +++ b/gen/src/main/java/com/gitee/gen/service/TemplateGroupService.java @@ -0,0 +1,107 @@ +package com.gitee.gen.service; + +import com.gitee.gen.entity.TemplateGroup; +import com.gitee.gen.mapper.TemplateConfigMapper; +import com.gitee.gen.mapper.TemplateGroupMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @author : zsljava + * @date Date : 2020-12-15 9:50 + * @Description: TODO + */ +@Service +public class TemplateGroupService { + + @Autowired + private TemplateGroupMapper templateGroupMapper; + + @Autowired + private TemplateConfigMapper templateConfigMapper; + + /** + * 查询所有记录 + * + * @return 返回集合,没有返回空List + */ + public List listAll() { + return templateGroupMapper.listAll(); + } + + + /** + * 根据主键查询 + * + * @param id 主键 + * @return 返回记录,没有返回null + */ + public TemplateGroup getById(Integer id) { + return templateGroupMapper.getById(id); + } + + /** + * 新增,插入所有字段 + * + * @param templateGroup 新增的记录 + * @return 返回影响行数 + */ + public int insert(TemplateGroup templateGroup) { + return templateGroupMapper.insert(templateGroup); + } + + /** + * 新增,忽略null字段 + * + * @param templateGroup 新增的记录 + * @return 返回影响行数 + */ + public int insertIgnoreNull(TemplateGroup templateGroup) { + templateGroup.setIsDeleted(0); + return templateGroupMapper.insertIgnoreNull(templateGroup); + } + + /** + * 修改,修改所有字段 + * + * @param templateGroup 修改的记录 + * @return 返回影响行数 + */ + public int update(TemplateGroup templateGroup) { + return templateGroupMapper.update(templateGroup); + } + + /** + * 修改,忽略null字段 + * + * @param templateGroup 修改的记录 + * @return 返回影响行数 + */ + public int updateIgnoreNull(TemplateGroup templateGroup) { + return templateGroupMapper.updateIgnoreNull(templateGroup); + } + + /** + * 删除记录 + * + * @param templateGroup 待删除的记录 + * @return 返回影响行数 + */ + public int delete(TemplateGroup templateGroup) { + return templateGroupMapper.delete(templateGroup); + } + + public int updateGroup(TemplateGroup templateGroup) { + int count = updateIgnoreNull(templateGroup); + templateConfigMapper.updateGroupNameByGroupId(templateGroup.getId(), templateGroup.getGroupName()); + return count; + } + + public int deleteGroup(TemplateGroup templateGroup) { + int delete = templateGroupMapper.delete(templateGroup); + templateConfigMapper.deleteByGroupId(templateGroup.getId()); + return delete; + } +} \ No newline at end of file diff --git a/gen/src/main/resources/application.properties b/gen/src/main/resources/application.properties index a58d372..7c660e5 100644 --- a/gen/src/main/resources/application.properties +++ b/gen/src/main/resources/application.properties @@ -1,5 +1,5 @@ spring.application.name=gen -server.port=6969 +server.port=9999 spring.datasource.driver-class-name=org.sqlite.JDBC spring.datasource.url=jdbc:sqlite:gen.db diff --git a/gen/src/main/resources/mybatis/DatasourceConfigMapper.xml b/gen/src/main/resources/mybatis/DatasourceConfigMapper.xml index eb247ed..b035c5f 100644 --- a/gen/src/main/resources/mybatis/DatasourceConfigMapper.xml +++ b/gen/src/main/resources/mybatis/DatasourceConfigMapper.xml @@ -2,15 +2,18 @@ - - - - - - - - - + + + + + + + + + + + + @@ -24,20 +27,22 @@ , t.username , t.password , t.is_deleted + , t.package_name + , t.del_prefix + , t.group_id - SELECT - + FROM datasource_config t WHERE id = #{id} @@ -56,6 +61,9 @@ username, password, is_deleted, + package_name, + del_prefix, + group_id, #{dbType}, @@ -66,6 +74,9 @@ #{username}, #{password}, #{isDeleted}, + #{packageName}, + #{delPrefix}, + #{groupId}, @@ -100,32 +111,50 @@ is_deleted, + + package_name, + + + del_prefix, + + + group_id, + - + #{dbType}, - + #{driverClass}, - + #{dbName}, - + #{host}, - + #{port}, - + #{username}, - + #{password}, - + #{isDeleted}, + + #{packageName}, + + + #{delPrefix}, + + + #{groupId}, + @@ -141,6 +170,9 @@ username=#{username}, password=#{password}, is_deleted=#{isDeleted}, + package_name=#{packageName}, + del_prefix=#{delPrefix}, + group_id=#{groupId}, WHERE id = #{id} @@ -150,30 +182,39 @@ UPDATE datasource_config - + db_type=#{dbType}, - + driver_class=#{driverClass}, - + db_name=#{dbName}, - + host=#{host}, - + port=#{port}, - + username=#{username}, - + password=#{password}, - + is_deleted=#{isDeleted}, + + package_name=#{packageName}, + + + del_prefix=#{delPrefix}, + + + group_id=#{groupId}, + WHERE id = #{id} diff --git a/gen/src/main/resources/mybatis/TemplateConfigMapper.xml b/gen/src/main/resources/mybatis/TemplateConfigMapper.xml index bea2b02..6776cb2 100644 --- a/gen/src/main/resources/mybatis/TemplateConfigMapper.xml +++ b/gen/src/main/resources/mybatis/TemplateConfigMapper.xml @@ -2,16 +2,20 @@ - - - - - + + + + + + + t.id + , t.group_id + , t.group_name , t.name , t.file_name , t.content @@ -21,9 +25,9 @@ - SELECT - + FROM template_config t WHERE id = #{id} @@ -47,12 +51,16 @@ > INSERT INTO template_config + group_id, + group_name, name, file_name, content, is_deleted, + #{groupId}, + #{groupName}, #{name}, #{fileName}, #{content}, @@ -67,6 +75,12 @@ INSERT INTO template_config + + group_id, + + + group_name, + name, @@ -81,16 +95,22 @@ - + + #{groupId}, + + + #{groupName}, + + #{name}, - + #{fileName}, - + #{content}, - + #{isDeleted}, @@ -100,6 +120,8 @@ UPDATE template_config + group_id=#{groupId}, + group_name=#{groupName}, name=#{name}, file_name=#{fileName}, content=#{content}, @@ -113,16 +135,22 @@ UPDATE template_config - + + group_id=#{groupId}, + + + group_name=#{groupName}, + + name=#{name}, - + file_name=#{fileName}, - + content=#{content}, - + is_deleted=#{isDeleted}, @@ -137,5 +165,23 @@ WHERE id = #{id} + + + + UPDATE template_config + SET group_name = #{groupName} + WHERE group_id = #{groupId} + + + + UPDATE template_config + SET is_deleted=1 + WHERE group_id = #{groupId} + \ No newline at end of file diff --git a/gen/src/main/resources/mybatis/TemplateGroupMapper.xml b/gen/src/main/resources/mybatis/TemplateGroupMapper.xml new file mode 100644 index 0000000..ff375d1 --- /dev/null +++ b/gen/src/main/resources/mybatis/TemplateGroupMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + t.id + , t.group_name + , t.is_deleted + + + + + + + + + + + INSERT INTO template_group + + group_name, + is_deleted, + + + #{groupName}, + #{isDeleted}, + + + + + + INSERT INTO template_group + + + + group_name, + + + is_deleted, + + + + + #{groupName}, + + + #{isDeleted}, + + + + + + + UPDATE template_group + + group_name=#{groupName}, + is_deleted=#{isDeleted}, + + WHERE id = #{id} + + + + + + UPDATE template_group + + + group_name=#{groupName}, + + + is_deleted=#{isDeleted}, + + + WHERE id = #{id} + + + + + + UPDATE template_group + SET is_deleted = 1 + WHERE id = #{id} + + + + \ No newline at end of file diff --git a/gen/src/main/resources/public/index.html b/gen/src/main/resources/public/index.html index d049c84..2414f01 100644 --- a/gen/src/main/resources/public/index.html +++ b/gen/src/main/resources/public/index.html @@ -1 +1 @@ -代码生成工具
\ No newline at end of file +代码生成工具
\ No newline at end of file diff --git a/gen/src/main/resources/public/static/css/app.e2731d09.css b/gen/src/main/resources/public/static/css/app.aa6ee3c8.css similarity index 100% rename from gen/src/main/resources/public/static/css/app.e2731d09.css rename to gen/src/main/resources/public/static/css/app.aa6ee3c8.css diff --git a/gen/src/main/resources/public/static/css/chunk-0a388286.2864c242.css b/gen/src/main/resources/public/static/css/chunk-34242e28.2864c242.css similarity index 100% rename from gen/src/main/resources/public/static/css/chunk-0a388286.2864c242.css rename to gen/src/main/resources/public/static/css/chunk-34242e28.2864c242.css diff --git a/gen/src/main/resources/public/static/css/chunk-5fb3a2ba.36069daf.css b/gen/src/main/resources/public/static/css/chunk-4295c974.e2948cc9.css similarity index 57% rename from gen/src/main/resources/public/static/css/chunk-5fb3a2ba.36069daf.css rename to gen/src/main/resources/public/static/css/chunk-4295c974.e2948cc9.css index 510cb6a..02ed69e 100644 --- a/gen/src/main/resources/public/static/css/chunk-5fb3a2ba.36069daf.css +++ b/gen/src/main/resources/public/static/css/chunk-4295c974.e2948cc9.css @@ -1 +1 @@ -.code-gen{margin:0 auto;width:70%}.code-gen .el-input{width:450px}.code-gen .el-row h4{text-align:center}.code-gen .el-row .el-button{margin-top:20px}.el-table .hidden-row{display:none} \ No newline at end of file +.code-gen{margin:0 auto;width:70%}.code-gen .el-input{width:450px}.code-gen .el-row h4{text-align:center}.code-gen .el-row .el-button{margin-top:20px}.el-table .hidden-row{display:none}#templateSelect .el-input{width:100%} \ No newline at end of file diff --git a/gen/src/main/resources/public/static/css/chunk-70c97e3b.a254e507.css b/gen/src/main/resources/public/static/css/chunk-44188c88.a254e507.css similarity index 100% rename from gen/src/main/resources/public/static/css/chunk-70c97e3b.a254e507.css rename to gen/src/main/resources/public/static/css/chunk-44188c88.a254e507.css diff --git a/gen/src/main/resources/public/static/css/chunk-libs.2aad8290.css b/gen/src/main/resources/public/static/css/chunk-libs.dc0bbd27.css similarity index 70% rename from gen/src/main/resources/public/static/css/chunk-libs.2aad8290.css rename to gen/src/main/resources/public/static/css/chunk-libs.dc0bbd27.css index 2c7985b..eca9610 100644 --- a/gen/src/main/resources/public/static/css/chunk-libs.2aad8290.css +++ b/gen/src/main/resources/public/static/css/chunk-libs.dc0bbd27.css @@ -1 +1 @@ -/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;-webkit-box-shadow:0 0 10px #29d,0 0 5px #29d;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;-webkit-box-sizing:border-box;box-sizing:border-box;border:2px solid transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.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-gutter-filler,.CodeMirror-scrollbar-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 #000;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-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-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-type,.cm-s-default .cm-variable-3{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-invalidchar,.cm-s-default .cm-error{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:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display: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{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-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-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}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{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:rgba(255,255,0,.4)}.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} \ No newline at end of file +/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;-webkit-box-shadow:0 0 10px #29d,0 0 5px #29d;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;-webkit-box-sizing:border-box;box-sizing:border-box;border:2px solid transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.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-gutter-filler,.CodeMirror-scrollbar-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 #000;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-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-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-type,.cm-s-default .cm-variable-3{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-invalidchar,.cm-s-default .cm-error{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:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{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{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-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-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}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{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:rgba(255,255,0,.4)}.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} \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/app.0cd732f6.js b/gen/src/main/resources/public/static/js/app.0cd732f6.js new file mode 100644 index 0000000..b42deab --- /dev/null +++ b/gen/src/main/resources/public/static/js/app.0cd732f6.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0cb8":function(e,t,n){},"186a":function(e,t,n){"use strict";n("dc52")},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},2536:function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});r.a.add(s);t["default"]=s},"4e05":function(e,t,n){"use strict";n("d090")},"4f02":function(e,t,n){},"50be":function(e,t,n){"use strict";n("2536")},"51ff":function(e,t,n){var a={"./dashboard.svg":"f782","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function i(e){var t=o(e);return n(t)}function o(e){var t=a[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),i=(n("f5df"),n("5c96")),o=n.n(i),r=(n("0fae"),n("f0d9")),s=n.n(r),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},u=[],l={name:"App"},d=l,h=n("2877"),m=Object(h["a"])(d,c,u,!1,null,null,null),f=m.exports,p=n("2f62"),v=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),b=v,g=n("a78e"),w=n.n(g),x={sidebar:{opened:!w.a.get("sidebarStatus")||!!+w.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},y={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?w.a.set("sidebarStatus",1):w.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){w.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},C={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:x,mutations:y,actions:C},k=n("83d6"),z=n.n(k),S=z.a.showSettings,B=z.a.fixedHeader,O=z.a.sidebarLogo,H={showSettings:S,fixedHeader:B,sidebarLogo:O},M={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},T={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},E={namespaced:!0,state:H,mutations:M,actions:T},L=n("bc3a"),$=n.n(L),A="sop-admin-token";function V(){return w.a.get(A)}function j(e){return w.a.set(A,e)}function P(){return w.a.remove(A)}var N=$.a.create({baseURL:"",withCredentials:!0,timeout:5e3});N.interceptors.request.use((function(e){return xt.getters.token&&(e.headers["X-Token"]=V()),e}),(function(e){return console.log(e),Promise.reject(e)})),N.interceptors.response.use((function(e){var t=e.data;return 2e4!==t.code?(Object(i["Message"])({message:t.message||"error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||i["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){xt.dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(t.message||"error")):t}),(function(e){return console.log("err"+e),Object(i["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}));var I=N;function D(e){return I({url:"/user/login",method:"post",data:e})}function R(e){return I({url:"/user/info",method:"get",params:{token:e}})}function q(){return I({url:"/user/logout",method:"post"})}var G=n("8c4f"),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},U=[],K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container"}),e._v(" "),n("div",{staticClass:"right-menu"},[n("el-link",{attrs:{type:"primary",underline:!1,href:"https://gitee.com/durcframework/code-gen",target:"_blank"}},[e._v("Git")])],1)],1)},J=[],W=n("5530"),X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},Y=[],Q=n("bd11"),Z=n.n(Q),ee={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=Z.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},te=ee,ne=(n("976b"),Object(h["a"])(te,X,Y,!1,null,"33d79dae",null)),ae=ne.exports,ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},oe=[],re={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},se=re,ce=(n("186a"),Object(h["a"])(se,ie,oe,!1,null,"49e15297",null)),ue=ce.exports,le={components:{Breadcrumb:ae,Hamburger:ue},computed:Object(W["a"])({},Object(p["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},doLogout:function(){this.logout()}}},de=le,he=(n("7efc"),Object(h["a"])(de,K,J,!1,null,"58ce17d6",null)),me=he.exports,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},pe=[],ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),e._v(" "),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},be=[],ge={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"代码生成工具",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},we=ge,xe=(n("4e05"),Object(h["a"])(we,ve,be,!1,null,"4a3d5d44",null)),ye=xe.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],ke=n("df7c"),ze=n.n(ke);function Se(e){return/^(https?:|mailto:|tel:)/.test(e)}var Be,Oe,He={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&o.push(e("svg-icon",{attrs:{"icon-class":a}})),i&&o.push(e("span",{slot:"title"},[i])),o}},Me=He,Te=Object(h["a"])(Me,Be,Oe,!1,null,null,null),Ee=Te.exports,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},$e=[],Ae={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Se(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},Ve=Ae,je=Object(h["a"])(Ve,Le,$e,!1,null,null,null),Pe=je.exports,Ne={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Ie={name:"SidebarItem",components:{Item:Ee,AppLink:Pe},mixins:[Ne],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(W["a"])(Object(W["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Se(e)?e:Se(this.basePath)?this.basePath:ze.a.resolve(this.basePath,e)}}},De=Ie,Re=Object(h["a"])(De,Ce,_e,!1,null,null,null),qe=Re.exports,Ge=n("cf1e"),Fe=n.n(Ge),Ue={components:{SidebarItem:qe,Logo:ye},computed:Object(W["a"])(Object(W["a"])({},Object(p["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Fe.a},isCollapse:function(){return!this.sidebar.opened}})},Ke=Ue,Je=Object(h["a"])(Ke,fe,pe,!1,null,null,null),We=Je.exports,Xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Ye=[],Qe={name:"AppMain",computed:{key:function(){return this.$route.fullPath}}},Ze=Qe,et=(n("50be"),Object(h["a"])(Ze,Xe,Ye,!1,null,"43c24f68",null)),tt=et.exports,nt=document,at=nt.body,it=992,ot={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&xt.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(xt.dispatch("app/toggleDevice","mobile"),xt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=at.getBoundingClientRect();return e.width-1'});r.a.add(s);t["default"]=s},"976b":function(e,t,n){"use strict";n("f14a")},"9f2b":function(e,t,n){"use strict";n("bf90")},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});r.a.add(s);t["default"]=s},bf90:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d090:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(s);t["default"]=s},dc52:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},f14a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});r.a.add(s);t["default"]=s}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/app.3a6801a7.js b/gen/src/main/resources/public/static/js/app.3a6801a7.js deleted file mode 100644 index 81e751a..0000000 --- a/gen/src/main/resources/public/static/js/app.3a6801a7.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0cb8":function(e,t,n){},"186a":function(e,t,n){"use strict";var a=n("dc52"),i=n.n(a);i.a},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},2536:function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});r.a.add(s);t["default"]=s},"4e05":function(e,t,n){"use strict";var a=n("d090"),i=n.n(a);i.a},"4f02":function(e,t,n){},"50be":function(e,t,n){"use strict";var a=n("2536"),i=n.n(a);i.a},"51ff":function(e,t,n){var a={"./dashboard.svg":"f782","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./tree.svg":"93cd","./user.svg":"b3b5"};function i(e){var t=o(e);return n(t)}function o(e){var t=a[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),i=(n("f5df"),n("5c96")),o=n.n(i),r=(n("0fae"),n("f0d9")),s=n.n(r),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},u=[],l={name:"App"},d=l,h=n("2877"),m=Object(h["a"])(d,c,u,!1,null,null,null),f=m.exports,p=n("2f62"),v=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),b=v,g=n("a78e"),w=n.n(g),x={sidebar:{opened:!w.a.get("sidebarStatus")||!!+w.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},y={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?w.a.set("sidebarStatus",1):w.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){w.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},C={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:x,mutations:y,actions:C},k=n("83d6"),z=n.n(k),S=z.a.showSettings,B=z.a.fixedHeader,O=z.a.sidebarLogo,H={showSettings:S,fixedHeader:B,sidebarLogo:O},M={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},T={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},E={namespaced:!0,state:H,mutations:M,actions:T},L=n("bc3a"),$=n.n(L),A="sop-admin-token";function V(){return w.a.get(A)}function j(e){return w.a.set(A,e)}function P(){return w.a.remove(A)}var N=$.a.create({baseURL:"",withCredentials:!0,timeout:5e3});N.interceptors.request.use((function(e){return xt.getters.token&&(e.headers["X-Token"]=V()),e}),(function(e){return console.log(e),Promise.reject(e)})),N.interceptors.response.use((function(e){var t=e.data;return 2e4!==t.code?(Object(i["Message"])({message:t.message||"error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||i["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){xt.dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(t.message||"error")):t}),(function(e){return console.log("err"+e),Object(i["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}));var I=N;function D(e){return I({url:"/user/login",method:"post",data:e})}function R(e){return I({url:"/user/info",method:"get",params:{token:e}})}function q(){return I({url:"/user/logout",method:"post"})}var G=n("8c4f"),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},U=[],K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container"}),e._v(" "),n("div",{staticClass:"right-menu"},[n("el-link",{attrs:{type:"primary",underline:!1,href:"https://gitee.com/durcframework/code-gen",target:"_blank"}},[e._v("Git")])],1)],1)},J=[],W=n("db72"),X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},Y=[],Q=n("bd11"),Z=n.n(Q),ee={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=Z.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},te=ee,ne=(n("976b"),Object(h["a"])(te,X,Y,!1,null,"33d79dae",null)),ae=ne.exports,ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},oe=[],re={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},se=re,ce=(n("186a"),Object(h["a"])(se,ie,oe,!1,null,"49e15297",null)),ue=ce.exports,le={components:{Breadcrumb:ae,Hamburger:ue},computed:Object(W["a"])({},Object(p["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},doLogout:function(){this.logout()}}},de=le,he=(n("7efc"),Object(h["a"])(de,K,J,!1,null,"58ce17d6",null)),me=he.exports,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},pe=[],ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),e._v(" "),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},be=[],ge={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"代码生成工具",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},we=ge,xe=(n("4e05"),Object(h["a"])(we,ve,be,!1,null,"4a3d5d44",null)),ye=xe.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],ke=n("df7c"),ze=n.n(ke);function Se(e){return/^(https?:|mailto:|tel:)/.test(e)}var Be,Oe,He={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&o.push(e("svg-icon",{attrs:{"icon-class":a}})),i&&o.push(e("span",{slot:"title"},[i])),o}},Me=He,Te=Object(h["a"])(Me,Be,Oe,!1,null,null,null),Ee=Te.exports,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},$e=[],Ae={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Se(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},Ve=Ae,je=Object(h["a"])(Ve,Le,$e,!1,null,null,null),Pe=je.exports,Ne={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Ie={name:"SidebarItem",components:{Item:Ee,AppLink:Pe},mixins:[Ne],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(W["a"])(Object(W["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Se(e)?e:Se(this.basePath)?this.basePath:ze.a.resolve(this.basePath,e)}}},De=Ie,Re=Object(h["a"])(De,Ce,_e,!1,null,null,null),qe=Re.exports,Ge=n("cf1e"),Fe=n.n(Ge),Ue={components:{SidebarItem:qe,Logo:ye},computed:Object(W["a"])(Object(W["a"])({},Object(p["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Fe.a},isCollapse:function(){return!this.sidebar.opened}})},Ke=Ue,Je=Object(h["a"])(Ke,fe,pe,!1,null,null,null),We=Je.exports,Xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Ye=[],Qe={name:"AppMain",computed:{key:function(){return this.$route.fullPath}}},Ze=Qe,et=(n("50be"),Object(h["a"])(Ze,Xe,Ye,!1,null,"43c24f68",null)),tt=et.exports,nt=document,at=nt.body,it=992,ot={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&xt.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(xt.dispatch("app/toggleDevice","mobile"),xt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=at.getBoundingClientRect();return e.width-1'});r.a.add(s);t["default"]=s},"976b":function(e,t,n){"use strict";var a=n("f14a"),i=n.n(a);i.a},"9f2b":function(e,t,n){"use strict";var a=n("bf90"),i=n.n(a);i.a},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});r.a.add(s);t["default"]=s},bf90:function(e,t,n){},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d090:function(e,t,n){},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(s);t["default"]=s},dc52:function(e,t,n){},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);t["default"]=s},f14a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),r=n.n(o),s=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});r.a.add(s);t["default"]=s}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-0a388286.be225d9f.js b/gen/src/main/resources/public/static/js/chunk-0a388286.be225d9f.js deleted file mode 100644 index e089da4..0000000 --- a/gen/src/main/resources/public/static/js/chunk-0a388286.be225d9f.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a388286"],{"281d":function(t,e,n){"use strict";var a=n("56b8"),s=n.n(a);s.a},"56b8":function(t,e,n){},9406:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard-container"},[n("div",{staticClass:"dashboard-text"},[t._v("欢迎使用代码生成工具")])])}],c=(n("281d"),n("2877")),r={},i=Object(c["a"])(r,a,s,!1,null,"22edc0ee",null);e["default"]=i.exports}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-2d0efd67.3b6b1643.js b/gen/src/main/resources/public/static/js/chunk-2d0efd67.7dba06b9.js similarity index 100% rename from gen/src/main/resources/public/static/js/chunk-2d0efd67.3b6b1643.js rename to gen/src/main/resources/public/static/js/chunk-2d0efd67.7dba06b9.js diff --git a/gen/src/main/resources/public/static/js/chunk-2d228903.4316af3a.js b/gen/src/main/resources/public/static/js/chunk-2d228903.4316af3a.js new file mode 100644 index 0000000..f31c5a5 --- /dev/null +++ b/gen/src/main/resources/public/static/js/chunk-2d228903.4316af3a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228903"],{da5e:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:t.onAdd}},[t._v("新增模板")]),t._v(" "),n("el-table",{attrs:{data:t.tableData,border:"","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"groupName",label:"组名称",width:"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"模板名称",width:"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"fileName",label:"文件名称"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.onTableUpdate(e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.onTableDelete(e.row)}}},[t._v("删除")])]}}])})],1)],1)},a=[],i=(n("7f7f"),{data:function(){return{tableData:[]}},created:function(){this.loadTable()},methods:{loadTable:function(){this.groupId=this.$route.query.groupId,"undefined"===typeof this.groupId&&(this.groupId=""),this.post("/template/list?groupId=".concat(this.groupId),{},(function(t){this.tableData=t.data}))},onTableUpdate:function(t){this.goRoute("edit/".concat(t.id))},onTableDelete:function(t){this.confirm("确认要删除【".concat(t.name,"】吗?"),(function(e){this.post("/template/del",t,(function(){e(),this.tip("删除成功"),this.loadTable()}))}))},onAdd:function(){this.goRoute("edit/0")}}}),l=i,r=n("2877"),u=Object(r["a"])(l,o,a,!1,null,null,null);e["default"]=u.exports}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-2d228903.72e29674.js b/gen/src/main/resources/public/static/js/chunk-2d228903.72e29674.js deleted file mode 100644 index be782d3..0000000 --- a/gen/src/main/resources/public/static/js/chunk-2d228903.72e29674.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228903"],{da5e:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:t.onAdd}},[t._v("新增模板")]),t._v(" "),n("el-table",{attrs:{data:t.tableData,border:"","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"name",label:"模板名称",width:"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"fileName",label:"文件名称"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.onTableUpdate(e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.onTableDelete(e.row)}}},[t._v("删除")])]}}])})],1)],1)},o=[],l=(n("7f7f"),{data:function(){return{tableData:[]}},created:function(){this.loadTable()},methods:{loadTable:function(){this.post("/template/list",{},(function(t){this.tableData=t.data}))},onTableUpdate:function(t){this.goRoute("edit/".concat(t.id))},onTableDelete:function(t){this.confirm("确认要删除【".concat(t.name,"】吗?"),(function(e){this.post("/template/del",t,(function(){e(),this.tip("删除成功"),this.loadTable()}))}))},onAdd:function(){this.goRoute("edit/0")}}}),i=l,c=n("2877"),r=Object(c["a"])(i,a,o,!1,null,null,null);e["default"]=r.exports}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-34242e28.ce617928.js b/gen/src/main/resources/public/static/js/chunk-34242e28.ce617928.js new file mode 100644 index 0000000..8773c4f --- /dev/null +++ b/gen/src/main/resources/public/static/js/chunk-34242e28.ce617928.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34242e28"],{"281d":function(t,e,n){"use strict";n("56b8")},"56b8":function(t,e,n){},9406:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},c=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard-container"},[n("div",{staticClass:"dashboard-text"},[t._v("欢迎使用代码生成工具")])])}],a=(n("281d"),n("2877")),i={},r=Object(a["a"])(i,s,c,!1,null,"22edc0ee",null);e["default"]=r.exports}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js b/gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js new file mode 100644 index 0000000..b4ddcd6 --- /dev/null +++ b/gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4295c974"],{"067a":function(a,e,t){"use strict";t.r(e);var o=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-container code-gen"},[t("el-form",{ref:"genForm",staticClass:"gen-form",attrs:{model:a.clientParam,size:"mini","label-width":"150px"}},[t("el-form-item",{attrs:{label:"选择数据源",prop:"datasourceConfigId",rules:{required:!0,message:"请选择数据源"}}},[t("el-select",{attrs:{placeholder:"选择数据源"},on:{change:a.onDataSourceChange},model:{value:a.clientParam.datasourceConfigId,callback:function(e){a.$set(a.clientParam,"datasourceConfigId",e)},expression:"clientParam.datasourceConfigId"}},a._l(a.datasourceConfigList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.dbName+"("+e.host+")",value:e.id}},[t("span",{staticStyle:{float:"left"}},[a._v(a._s(e.dbName+"("+e.host+")")+" ")]),a._v(" "),t("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t("el-tooltip",{attrs:{placement:"top",content:"Duplicate"}},[t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-document-copy"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDuplicate(e)}}})],1),a._v(" "),t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceUpdate(e)}}}),a._v(" "),t("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDelete(e)}}})],1)])})),1),a._v(" "),t("el-button",{attrs:{type:"text"},on:{click:a.onDataSourceAdd}},[a._v("新建数据源")])],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"包名(package)"}},[t("el-input",{attrs:{placeholder:"可选,如:cn.studyjava.xxx","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.packageName,callback:function(e){a.$set(a.clientParam,"packageName",e)},expression:"clientParam.packageName"}})],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"删除前缀"}},[t("el-input",{attrs:{placeholder:"可选,如:sys_user对应Java类为User(多前缀逗号隔开)","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.delPrefix,callback:function(e){a.$set(a.clientParam,"delPrefix",e)},expression:"clientParam.delPrefix"}})],1)],1),a._v(" "),t("el-row",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("h4",[a._v("选择表")]),a._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{"prefix-icon":"el-icon-search",clearable:"",size:"mini",placeholder:"过滤表"},model:{value:a.tableSearch,callback:function(e){a.tableSearch=e},expression:"tableSearch"}}),a._v(" "),t("el-table",{attrs:{data:a.tableListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.tableRowClassName},on:{"selection-change":a.onTableListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"tableName",label:"表名"}})],1)],1),a._v(" "),t("el-col",{attrs:{span:12,id:"templateSelect"}},[t("h4",[a._v("选择模板")]),a._v(" "),t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.clientParam.groupName,callback:function(e){a.$set(a.clientParam,"groupName",e)},expression:"clientParam.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1),a._v(" "),t("el-table",{attrs:{data:a.templateListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.templateTableRowClassName},on:{"selection-change":a.onTemplateListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"name",label:"模板名称"},scopedSlots:a._u([{key:"default",fn:function(e){return t("span",{},[a._v("\n "+a._s(e.row.name)+"\n ")])}}])})],1),a._v(" "),t("el-button",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{type:"primary"},on:{click:a.onGenerate}},[a._v("生成代码")])],1)],1),a._v(" "),t("el-dialog",{attrs:{title:a.datasourceTitle,visible:a.datasourceDlgShow},on:{"update:visible":function(e){a.datasourceDlgShow=e}}},[t("el-form",{ref:"datasourceForm",attrs:{model:a.datasourceFormData,rules:a.datasourceRule,size:"mini","label-width":"120px"}},[t("el-form-item",{attrs:{label:"数据库类型"}},[t("el-select",{attrs:{filterable:"","default-first-option":""},model:{value:a.datasourceFormData.dbType,callback:function(e){a.$set(a.datasourceFormData,"dbType",e)},expression:"datasourceFormData.dbType"}},a._l(a.dbTypeConfig,(function(a){return t("el-option",{key:a.dbType,attrs:{label:a.label,value:a.dbType}})})),1)],1),a._v(" "),t("el-form-item",{attrs:{label:"Host",prop:"host"}},[t("el-input",{attrs:{placeholder:"地址","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.host,callback:function(e){a.$set(a.datasourceFormData,"host",e)},expression:"datasourceFormData.host"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Port",prop:"port"}},[t("el-input",{attrs:{placeholder:"端口","show-word-limit":"",maxlength:"10"},model:{value:a.datasourceFormData.port,callback:function(e){a.$set(a.datasourceFormData,"port",e)},expression:"datasourceFormData.port"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Database",prop:"dbName"}},[t("el-input",{attrs:{placeholder:"数据库","show-word-limit":"",maxlength:"64"},model:{value:a.datasourceFormData.dbName,callback:function(e){a.$set(a.datasourceFormData,"dbName",e)},expression:"datasourceFormData.dbName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Username",prop:"username"}},[t("el-input",{attrs:{placeholder:"用户名","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.username,callback:function(e){a.$set(a.datasourceFormData,"username",e)},expression:"datasourceFormData.username"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Password",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.password,callback:function(e){a.$set(a.datasourceFormData,"password",e)},expression:"datasourceFormData.password"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"包名",prop:"packageName"}},[t("el-input",{attrs:{placeholder:"包名(package)","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.packageName,callback:function(e){a.$set(a.datasourceFormData,"packageName",e)},expression:"datasourceFormData.packageName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"删除前缀",prop:"delPrefix"}},[t("el-input",{attrs:{placeholder:"删除前缀(表名sys_user删除前缀sys_对应bean为User)多前缀逗号隔开","show-word-limit":"",maxlength:"200"},model:{value:a.datasourceFormData.delPrefix,callback:function(e){a.$set(a.datasourceFormData,"delPrefix",e)},expression:"datasourceFormData.delPrefix"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"代码生成器模板",prop:"delPrefix"}},[t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.datasourceFormData.groupName,callback:function(e){a.$set(a.datasourceFormData,"groupName",e)},expression:"datasourceFormData.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1)],1),a._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"success"},on:{click:a.onDatasourceTest}},[a._v("测试连接")]),a._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:a.onDatasourceSave}},[a._v("保存")])],1)],1)],1)],1)},r=[],l=(t("7514"),t("456d"),t("ac6a"),{data:function(){return{groupId:"",groupData:{},showTable:!0,clientParam:{datasourceConfigId:"",tableNames:[],templateConfigIdList:[],packageName:null,delPrefix:null,groupId:"",groupName:""},tableSearch:"",datasourceConfigList:[],tableListData:[],templateListData:[],datasourceTitle:"新建连接",datasourceDlgShow:!1,datasourceFormData:{id:0,dbType:1,host:"",port:"",username:"",password:"",dbName:"",packageName:"",delPrefix:"",groupId:"",groupName:""},dbTypeConfig:[],datasourceRule:{host:[{required:!0,message:"不能为空",trigger:"blur"}],port:[{required:!0,message:"不能为空",trigger:"blur"}],username:[{required:!0,message:"不能为空",trigger:"blur"}],password:[{required:!0,message:"不能为空",trigger:"blur"}],dbName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadDataSource(),this.loadTemplate(),this.loadDbType(),this.loadGroups()},methods:{tableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,0===this.tableSearch.length||e.tableName&&e.tableName.indexOf(this.tableSearch)>-1?"":(e.hidden=!0,"hidden-row")},templateTableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,""==this.groupId||this.groupId<=0||e.groupId&&e.groupId==this.groupId?"":(e.hidden=!0,"hidden-row")},loadGroups:function(){this.post("/group/list/",{},(function(a){this.groupData=a.data}))},loadDataSource:function(){var a=this;this.post("/datasource/list",{},(function(e){a.datasourceConfigList=e.data}))},loadTemplate:function(){var a=this;this.post("/template/list",{},(function(e){a.templateListData=e.data}))},loadDbType:function(){var a=this;this.post("/datasource/dbtype",{},(function(e){a.dbTypeConfig=e.data}))},onDataSourceAdd:function(){var a=this;this.datasourceTitle="新建连接",Object.keys(this.datasourceFormData).forEach((function(e){a.datasourceFormData[e]=""})),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onTableListSelect:function(a){this.clientParam.tableNames=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.tableName}))},onTemplateListSelect:function(a){this.clientParam.templateConfigIdList=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.id}))},onDataSourceChange:function(a){var e=this;this.clientParam.datasourceConfigId=a,this.datasourceConfigList.find((function(t){t.id===a&&(e.clientParam.packageName=t.packageName,e.clientParam.delPrefix=t.delPrefix,e.groupId=t.groupId,e.groupData.find((function(a){a.id==t.groupId&&(e.clientParam.groupName=a.groupName)})),console.log("this.clientParam.groupName="+e.clientParam.groupName))})),this.post("/datasource/table/".concat(a),{},(function(a){e.showTable=!0,e.tableListData=a.data}))},onDataSourceUpdate:function(a){var e=this;this.datasourceTitle="修改连接",Object.assign(this.datasourceFormData,a),this.groupData.find((function(t){t.id==a.groupId&&(e.datasourceFormData.groupName=t.groupName)})),this.datasourceDlgShow=!0},onDataSourceDuplicate:function(a){this.datasourceTitle="".concat(a.host," Copy"),Object.assign(this.datasourceFormData,a),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onDataSourceDelete:function(a){this.confirm("确认要删除 ".concat(a.dbName," 吗?"),(function(e){var t={id:a.id};this.post("/datasource/del",t,(function(){e(),location.reload()}))}))},onGenerate:function(){var a=this;this.$refs.genForm.validate((function(e){if(e){if(0===a.clientParam.tableNames.length)return void a.tip("请勾选表","error");if(0===a.clientParam.templateConfigIdList.length)return void a.tip("请勾选模板","error");var t=JSON.stringify(a.clientParam);a.goRoute("result/".concat(t))}}))},onDatasourceTest:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.tip("连接成功")}))}))},onDataGroupChange:function(a){""!=a&&(this.groupId=a,this.datasourceFormData.groupId=a)},onDatasourceSave:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.datasourceFormData.id?a.post("/datasource/update",a.datasourceFormData,(function(a){location.reload()})):a.post("/datasource/add",a.datasourceFormData,(function(e){a.tip("添加成功"),a.loadDataSource(),a.datasourceDlgShow=!1}))}))}))}}}),s=l,i=(t("1764"),t("2877")),n=Object(i["a"])(s,o,r,!1,null,null,null);e["default"]=n.exports},"0a49":function(a,e,t){var o=t("9b43"),r=t("626a"),l=t("4bf8"),s=t("9def"),i=t("cd1c");a.exports=function(a,e){var t=1==a,n=2==a,c=3==a,u=4==a,d=6==a,m=5==a||d,p=e||i;return function(e,i,f){for(var h,g,b=l(e),v=r(b),D=o(i,f,3),w=s(v.length),y=0,x=t?p(e,w):n?p(e,0):void 0;w>y;y++)if((m||y in v)&&(h=v[y],g=D(h,y,b),a))if(t)x[y]=g;else if(g)switch(a){case 3:return!0;case 5:return h;case 6:return y;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},1169:function(a,e,t){var o=t("2d95");a.exports=Array.isArray||function(a){return"Array"==o(a)}},1764:function(a,e,t){"use strict";t("aa8f")},"456d":function(a,e,t){var o=t("4bf8"),r=t("0d58");t("5eda")("keys",(function(){return function(a){return r(o(a))}}))},"5eda":function(a,e,t){var o=t("5ca1"),r=t("8378"),l=t("79e5");a.exports=function(a,e){var t=(r.Object||{})[a]||Object[a],s={};s[a]=e(t),o(o.S+o.F*l((function(){t(1)})),"Object",s)}},7514:function(a,e,t){"use strict";var o=t("5ca1"),r=t("0a49")(5),l="find",s=!0;l in[]&&Array(1)[l]((function(){s=!1})),o(o.P+o.F*s,"Array",{find:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}}),t("9c6c")(l)},aa8f:function(a,e,t){},cd1c:function(a,e,t){var o=t("e853");a.exports=function(a,e){return new(o(a))(e)}},e853:function(a,e,t){var o=t("d3f4"),r=t("1169"),l=t("2b4c")("species");a.exports=function(a){var e;return r(a)&&(e=a.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&(e=e[l],null===e&&(e=void 0))),void 0===e?Array:e}}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-44188c88.3620cd3a.js b/gen/src/main/resources/public/static/js/chunk-44188c88.3620cd3a.js new file mode 100644 index 0000000..f08125c --- /dev/null +++ b/gen/src/main/resources/public/static/js/chunk-44188c88.3620cd3a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44188c88"],{"0a49":function(e,t,a){var n=a("9b43"),r=a("626a"),o=a("4bf8"),i=a("9def"),l=a("cd1c");e.exports=function(e,t){var a=1==e,s=2==e,c=3==e,u=4==e,f=6==e,m=5==e||f,p=t||l;return function(t,l,d){for(var v,h,g=o(t),b=r(g),k=n(l,d,3),y=i(b.length),_=0,x=a?p(t,y):s?p(t,0):void 0;y>_;_++)if((m||_ in b)&&(v=b[_],h=k(v,_,g),e))if(a)x[_]=h;else if(h)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(u)return!1;return f?-1:c||u?u:x}}},1169:function(e,t,a){var n=a("2d95");e.exports=Array.isArray||function(e){return"Array"==n(e)}},"2c8b":function(e,t,a){},7514:function(e,t,a){"use strict";var n=a("5ca1"),r=a("0a49")(5),o="find",i=!0;o in[]&&Array(1)[o]((function(){i=!1})),n(n.P+n.F*i,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")(o)},"92a7":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-backtop"),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("el-form",{ref:"dialogForm",attrs:{rules:e.formRules,model:e.formData,size:"mini","label-position":"top"}},[a("el-form-item",{attrs:{prop:"groupId",label:"组名称"}},[a("el-select",{attrs:{placeholder:"选择模板所在组"},on:{change:e.onDataGroupChange},model:{value:e.formData.groupId,callback:function(t){e.$set(e.formData,"groupId",t)},expression:"formData.groupId"}},e._l(e.groupData,(function(e){return a("el-option",{key:e.id,attrs:{label:""+e.groupName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"name",label:"模板名称"}},[a("el-input",{attrs:{"show-word-limit":"",maxlength:"64"},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"fileName",label:"文件名称"}},[a("el-input",{attrs:{placeholder:"可使用velocity变量","show-word-limit":"",maxlength:"100"},model:{value:e.formData.fileName,callback:function(t){e.$set(e.formData,"fileName",t)},expression:"formData.fileName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"content",label:"模板内容"}},[a("el-link",{attrs:{type:"primary",underline:!1,href:"https://www.cnblogs.com/codingsilence/archive/2011/03/29/2146580.html",target:"_blank"}},[e._v("Velocity语法")]),e._v(" "),a("codemirror",{ref:"editor",attrs:{options:e.cmOptions},model:{value:e.formData.content,callback:function(t){e.$set(e.formData,"content",t)},expression:"formData.content"}})],1)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onSave}},[e._v("保 存")]),e._v(" "),a("el-button",{on:{click:function(t){return e.goRoute("/template/list")}}},[e._v("返 回")])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("h3",[e._v("Velocity变量")]),e._v(" "),a("p",{staticClass:"velocity-tip"},[e._v("\n 点击变量直接插入\n ")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.onTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.velocityConfig,(function(e){return a("el-tab-pane",{key:e.name,attrs:{label:e.label,name:e.name,content:e}})})),1),e._v(" "),e._l(e.treeData,(function(t){return a("div",{key:t.expression,staticClass:"velocity-var"},[t.children?a("div",[a("h4",[e._v(e._s(t.expression))]),e._v(" "),e._l(t.children,(function(t){return a("li",{key:t.expression},[a("a",{on:{click:function(a){return e.onExpressionClick(t.expression)}}},[e._v(e._s(t.expression))]),e._v(":"+e._s(t.text)+"\n ")])}))],2):a("div",[a("li",[a("a",{on:{click:function(a){return e.onExpressionClick(t.expression)}}},[e._v(e._s(t.expression))]),e._v(":"+e._s(t.text)+"\n ")])])])}))],2)],1)],1)},r=[],o=(a("7514"),a("8f94"));a("bbca");a("fe46");var i={components:{codemirror:o["codemirror"]},data:function(){return{groupData:{},formData:{id:0,groupId:"",groupName:"",name:"",fileName:"",content:""},formRules:{groupId:[{required:!0,message:"不能为空",trigger:"blur"}],name:[{required:!0,message:"不能为空",trigger:"blur"}],fileName:[{required:!0,message:"不能为空",trigger:"blur"}],content:[{required:!0,message:"不能为空",trigger:"blur"}]},cmOptions:{value:"",mode:"text/velocity",theme:"neat",lineNumbers:!0,readOnly:!1},isVelocityBarFixed:!1,activeName:"java",treeData:[],velocityConfig:[],defaultProps:{children:"children",label:"text"}}},created:function(){var e=this.$route.params.id||0;e>0&&this.post("/template/get/".concat(e),{},(function(e){this.formData=e.data})),this.loadVelocityVar(),this.loadGroups()},methods:{loadVelocityVar:function(){var e=this;this.getFile("velocity/java.json?q=".concat((new Date).getTime()),(function(t){e.velocityConfig.push({name:"java",label:"Java变量",data:t.data}),e.treeData=t.data})),this.getFile("velocity/csharp.json?q=".concat((new Date).getTime()),(function(t){e.velocityConfig.push({name:"csharp",label:"C#变量",data:t.data})}))},loadGroups:function(){this.post("/group/list/",{},(function(e){this.groupData=e.data}))},onDataGroupChange:function(e){var t=this;console.log(e),this.formData.groupId=e,this.groupData.find((function(a){a.id===e&&(t.formData.groupName=a.groupName)})),console.log(this.formData.groupName)},onExpressionClick:function(e){var t=this.$refs.editor.codemirror;t.replaceSelection(e),t.focus()},onSave:function(){var e=this;this.$refs.dialogForm.validate((function(t){if(t){var a=e.formData.id?"update":"add",n="/template/".concat(a);e.post(n,e.formData,(function(t){"add"===a&&(e.formData.id=t.data.id),e.tip("保存成功")}))}}))},onTabClick:function(e){var t=e.$attrs.content;this.treeData=t.data}}},l=i,s=(a("acc7"),a("2877")),c=Object(s["a"])(l,n,r,!1,null,null,null);t["default"]=c.exports},acc7:function(e,t,a){"use strict";a("2c8b")},bbca:function(e,t,a){},cd1c:function(e,t,a){var n=a("e853");e.exports=function(e,t){return new(n(e))(t)}},e853:function(e,t,a){var n=a("d3f4"),r=a("1169"),o=a("2b4c")("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),n(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},fe46:function(e,t,a){(function(e){e(a("56b3"))})((function(e){"use strict";e.defineMode("velocity",(function(){function e(e){for(var t={},a=e.split(" "),n=0;n!?:\/|]/;function o(e,t,a){return t.tokenize=a,a(e,t)}function i(e,i){var u=i.beforeParams;i.beforeParams=!1;var f=e.next();if("'"==f&&!i.inString&&i.inParams)return i.lastTokenWasBuiltin=!1,o(e,i,l(f));if('"'!=f){if(/[\[\]{}\(\),;\.]/.test(f))return"("==f&&u?i.inParams=!0:")"==f&&(i.inParams=!1,i.lastTokenWasBuiltin=!0),null;if(/\d/.test(f))return i.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==f&&e.eat("*"))return i.lastTokenWasBuiltin=!1,o(e,i,s);if("#"==f&&e.match(/ *\[ *\[/))return i.lastTokenWasBuiltin=!1,o(e,i,c);if("#"==f&&e.eat("#"))return i.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==f)return e.eatWhile(/[\w\d\$_\.{}-]/),n&&n.propertyIsEnumerable(e.current())?"keyword":(i.lastTokenWasBuiltin=!0,i.beforeParams=!0,"builtin");if(r.test(f))return i.lastTokenWasBuiltin=!1,e.eatWhile(r),"operator";e.eatWhile(/[\w\$_{}@]/);var m=e.current();return t&&t.propertyIsEnumerable(m)?"keyword":a&&a.propertyIsEnumerable(m)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!a||!a.propertyIsEnumerable(m.toLowerCase()))?(i.beforeParams=!0,i.lastTokenWasBuiltin=!1,"keyword"):i.inString?(i.lastTokenWasBuiltin=!1,"string"):e.pos>m.length&&"."==e.string.charAt(e.pos-m.length-1)&&i.lastTokenWasBuiltin?"builtin":(i.lastTokenWasBuiltin=!1,null)}return i.lastTokenWasBuiltin=!1,i.inString?(i.inString=!1,"string"):i.inParams?o(e,i,l(f)):void 0}function l(e){return function(t,a){var n,r=!1,o=!1;while(null!=(n=t.next())){if(n==e&&!r){o=!0;break}if('"'==e&&"$"==t.peek()&&!r){a.inString=!0,o=!0;break}r=!r&&"\\"==n}return o&&(a.tokenize=i),"string"}}function s(e,t){var a,n=!1;while(a=e.next()){if("#"==a&&n){t.tokenize=i;break}n="*"==a}return"comment"}function c(e,t){var a,n=0;while(a=e.next()){if("#"==a&&2==n){t.tokenize=i;break}"]"==a?n++:" "!=a&&(n=0)}return"meta"}return{startState:function(){return{tokenize:i,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}})),e.defineMIME("text/velocity","velocity")}))}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-4de1c2b6.2c1febca.js b/gen/src/main/resources/public/static/js/chunk-4de1c2b6.2c1febca.js deleted file mode 100644 index 7ac4d78..0000000 --- a/gen/src/main/resources/public/static/js/chunk-4de1c2b6.2c1febca.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4de1c2b6"],{"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("97ef"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"c095f994",null);s["default"]=r.exports},"97ef":function(t,s,a){"use strict";var e=a("d3f45"),c=a.n(e);c.a},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},d3f45:function(t,s,a){}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-4de1c2b6.9c50e0a4.js b/gen/src/main/resources/public/static/js/chunk-4de1c2b6.9c50e0a4.js new file mode 100644 index 0000000..564dbda --- /dev/null +++ b/gen/src/main/resources/public/static/js/chunk-4de1c2b6.9c50e0a4.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4de1c2b6"],{"26fc":function(t,s,e){t.exports=e.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"wscn-http404-container"},[e("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),e("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),e("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:e("a36b"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child left",attrs:{src:e("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child mid",attrs:{src:e("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child right",attrs:{src:e("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n "),e("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(e("97ef"),e("2877")),r=Object(n["a"])(l,a,c,!1,null,"c095f994",null);s["default"]=r.exports},"97ef":function(t,s,e){"use strict";e("d3f45")},a36b:function(t,s,e){t.exports=e.p+"static/img/404.a57b6f31.png"},d3f45:function(t,s,e){}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-53ca05b2.2b9ec4ce.js b/gen/src/main/resources/public/static/js/chunk-53ca05b2.017ee717.js similarity index 55% rename from gen/src/main/resources/public/static/js/chunk-53ca05b2.2b9ec4ce.js rename to gen/src/main/resources/public/static/js/chunk-53ca05b2.017ee717.js index 2aefc2a..5ebee88 100644 --- a/gen/src/main/resources/public/static/js/chunk-53ca05b2.2b9ec4ce.js +++ b/gen/src/main/resources/public/static/js/chunk-53ca05b2.017ee717.js @@ -1,8 +1,10 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53ca05b2"],{"1fb5":function(e,t,r){"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=m;for(var n=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function d(e,t,r){return 3*(t+r)/4-r}function f(e){var t,r,n=u(e),o=n[0],s=n[1],l=new a(d(e,o,s)),c=0,f=s>0?o-4:o;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,i=[],a=t;al?l:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21a6":function(e,t,r){(function(r){var n,i,a;(function(r,o){i=[],n=o,a="function"===typeof n?n.apply(t,i):n,void 0===a||(e.exports=a)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){s(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,r){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):i(l.href)?n(e,t,r):a(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),r);else if(i(e))n(e,r,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);var a="application/octet-stream"===e.type,s=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&s)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var c=o.URL||o.webkitURL,d=c.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){c.revokeObjectURL(d)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s}))}).call(this,r("c8ba"))},"4ba6":function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";function t(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=i,this.prev=a}function r(e,r,n,i){var a=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(a=e.context.indented),e.context=new t(a,r,n,i,null,e.context)}function n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function a(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function o(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,C=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,I=l.isReservedIdentifier||!1;function R(e,t){var r=e.next();if(w[r]){var n=w[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=O(r),t.tokenize(e,t);if(E.test(r))return u=r,null;if(A.test(r)){if(e.backUp(1),e.match(z))return"number";e.next()}if("/"==r){if(e.eat("*"))return t.tokenize=B,B(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(r)){while(!e.match(/^\/[\/*]/,!1)&&e.eat(T));return"operator"}if(e.eatWhile(C),S)while(e.match(S))e.eatWhile(C);var i=e.current();return s(p,i)?(s(b,i)&&(u="newstatement"),s(y,i)&&(c=!0),"keyword"):s(m,i)?"type":s(g,i)||I&&I(i)?(s(b,i)&&(u="newstatement"),"builtin"):s(v,i)?"atom":"variable"}function O(e){return function(t,r){var n,i=!1,a=!1;while(null!=(n=t.next())){if(n==e&&!i){a=!0;break}i=!i&&"\\"==n}return(a||!i&&!_)&&(r.tokenize=null),"string"}}function B(e,t){var r,n=!1;while(r=e.next()){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function P(e,t){l.typeFirstDefinitions&&e.eol()&&a(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var o=t.context;if(e.sol()&&(null==o.align&&(o.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return P(e,t),null;u=c=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==o.align&&(o.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))while("statement"==t.context.type)n(t);else if("{"==u)r(t,e.column(),"}");else if("["==u)r(t,e.column(),"]");else if("("==u)r(t,e.column(),")");else if("}"==u){while("statement"==o.type)o=n(t);"}"==o.type&&(o=n(t));while("statement"==o.type)o=n(t)}else u==o.type?n(t):k&&(("}"==o.type||"top"==o.type)&&";"!=u||"statement"==o.type&&"newstatement"==u)&&r(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&a(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),w.token){var d=w.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,P(e,t),s},indent:function(t,r){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var n=t.context,i=r&&r.charAt(0),a=i==n.type;if("statement"==n.type&&"}"==i&&(n=n.prev),l.dontIndentStatements)while("statement"==n.type&&l.dontIndentStatements.test(n.info))n=n.prev;if(w.indent){var o=w.indent(t,n,r,d);if("number"==typeof o)return o}var s=n.prev&&"switch"==n.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){while("top"!=n.type&&"}"!=n.type)n=n.prev;return n.indented}return"statement"==n.type?n.indented+("{"==i?0:f):!n.align||h&&")"==n.type?")"!=n.type||a?n.indented+(a?0:d)+(a||!s||/^(?:case|default)\b/.test(r)?0:d):n.indented+f:n.column+(a?0:1)},electricInput:x?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=o("int long char short double float unsigned signed void bool"),h=o("SEL instancetype id Class Protocol BOOL");function p(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return p(e)||s(h,e)}var g="case do else for if switch while struct enum union",b="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=y;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function v(e,t){return"type"==t.prevToken&&"type"}function w(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function _(e){return e.eatWhile(/[\w\.']/),"number"}function k(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],t.tokenize=E,E(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function x(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function S(e,t){var r;while(null!=(r=e.next()))if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function E(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),n=e.match(new RegExp(".*?\\)"+r+'"'));return n?t.tokenize=null:e.skipToEnd(),"string"}function A(t,r){"string"==typeof t&&(t=[t]);var n=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&n.push(t)}i(r.keywords),i(r.types),i(r.builtin),i(r.atoms),n.length&&(r.helperType=t[0],e.registerHelper("hintWords",t[0],n));for(var a=0;a!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=z,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,r){var n=r.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(r.context=new t(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),A("text/x-kotlin",{name:"clike",keywords:o("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:o("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:o("catch class do else finally for if where try while enum"),defKeywords:o("class val var object interface fun"),atoms:o("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=C(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,r,n){var i=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),A(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:o("for while do if else struct"),builtin:o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),A("text/x-nesc",{name:"clike",keywords:o(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:p,blockKeywords:o(g),atoms:o("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),A("text/x-objectivec",{name:"clike",keywords:o(l+" "+c),types:m,builtin:o(d),blockKeywords:o(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:o(b+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":v},modeProps:{fold:["brace","include"]}}),A("text/x-objectivec++",{name:"clike",keywords:o(l+" "+c+" "+u),types:m,builtin:o(d),blockKeywords:o(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:o(b+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":v,u:k,U:k,L:k,R:k,0:_,1:_,2:_,3:_,4:_,5:_,6:_,7:_,8:_,9:_,token:function(e,t,r){if("variable"==r&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),A("text/x-squirrel",{name:"clike",keywords:o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:p,blockKeywords:o("case catch class else for foreach if switch try while"),defKeywords:o("function local class"),typeFirstDefinitions:!0,atoms:o("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var I=null;function R(e){return function(t,r){var n,i=!1,a=!1;while(!t.eol()){if(!i&&t.match('"')&&("single"==e||t.match('""'))){a=!0;break}if(!i&&t.match("``")){I=R(e),a=!0;break}n=t.next(),i="single"==e&&!i&&"\\"==n}return a&&(r.tokenize=null),"string"}}A("text/x-ceylon",{name:"clike",keywords:o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:o("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:o("class dynamic function interface module object package value"),builtin:o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:o("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=R(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!I||!e.match("`"))&&(t.tokenize=I,I=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}))},"74bb":function(e,t,r){(function(e){e(r("56b3"),r("d69f"),r("eb0c"))})((function(e){"use strict";e.defineMode("htmlembedded",(function(t,r){var n=r.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:r.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(e){return e.skipTo(n)||e.skipToEnd(),"comment"}}},{open:r.open||r.scriptStartRegex||"<%",close:r.close||r.scriptEndRegex||"%>",mode:e.getMode(t,r.scriptingModeSpec)})}),"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}))},"7b00":function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";function t(e){for(var t={},r=0;r*\/]/.test(r)?_(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?_("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?_(null,r):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=S),_("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),_("property","word")):_(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),_("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?_("variable-2","variable-definition"):_("variable-2","variable")):e.match(/^\w+-/)?_("meta","meta"):void 0}function x(e){return function(t,r){var n,i=!1;while(null!=(n=t.next())){if(n==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==n}return(n==e||!i&&")"!=e)&&(r.tokenize=null),_("string","string")}}function S(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=x(")"),_(null,"(")}function E(e,t,r){this.type=e,this.indent=t,this.prev=r}function A(e,t,r,n){return e.context=new E(r,t.indentation()+(!1===n?0:o),e.context),r}function z(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function T(e,t,r){return R[r.context.type](e,t,r)}function C(e,t,r,n){for(var i=n||1;i>0;i--)r.context=r.context.prev;return T(e,t,r)}function I(e){var t=e.current().toLowerCase();a=b.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var R={top:function(e,t,r){if("{"==e)return A(r,t,"block");if("}"==e&&r.context.prev)return z(r);if(w&&/@component/i.test(e))return A(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return A(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return A(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return A(r,t,"at");if("hash"==e)a="builtin";else if("word"==e)a="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return A(r,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return A(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return f.hasOwnProperty(n)?(a="property","maybeprop"):h.hasOwnProperty(n)?(a="string-2","maybeprop"):y?(a=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(a+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?R.top(e,t,r):(a="error","block")},maybeprop:function(e,t,r){return":"==e?A(r,t,"prop"):T(e,t,r)},prop:function(e,t,r){if(";"==e)return z(r);if("{"==e&&y)return A(r,t,"propBlock");if("}"==e||"{"==e)return C(e,t,r);if("("==e)return A(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)I(t);else if("interpolation"==e)return A(r,t,"interpolation")}else a+=" error";return"prop"},propBlock:function(e,t,r){return"}"==e?z(r):"word"==e?(a="property","maybeprop"):r.context.type},parens:function(e,t,r){return"{"==e||"}"==e?C(e,t,r):")"==e?z(r):"("==e?A(r,t,"parens"):"interpolation"==e?A(r,t,"interpolation"):("word"==e&&I(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(a="variable-3",r.context.type):T(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&l.hasOwnProperty(t.current())?(a="tag",r.context.type):R.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return A(r,t,"atBlock_parens");if("}"==e||";"==e)return C(e,t,r);if("{"==e)return z(r)&&A(r,t,y?"block":"top");if("interpolation"==e)return A(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();a="only"==n||"not"==n||"and"==n||"or"==n?"keyword":u.hasOwnProperty(n)?"attribute":c.hasOwnProperty(n)?"property":d.hasOwnProperty(n)?"keyword":f.hasOwnProperty(n)?"property":h.hasOwnProperty(n)?"string-2":b.hasOwnProperty(n)?"atom":g.hasOwnProperty(n)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?C(e,t,r):"{"==e?z(r)&&A(r,t,y?"block":"top",!1):("word"==e&&(a="error"),r.context.type)},atBlock_parens:function(e,t,r){return")"==e?z(r):"{"==e||"}"==e?C(e,t,r,2):R.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return"{"==e?A(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(a="variable","restricted_atBlock_before"):T(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,z(r)):"word"==e?(a="@font-face"==r.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(a="variable","keyframes"):"{"==e?A(r,t,"top"):T(e,t,r)},at:function(e,t,r){return";"==e?z(r):"{"==e||"}"==e?C(e,t,r):("word"==e?a="tag":"hash"==e&&(a="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?z(r):"{"==e||";"==e?C(e,t,r):("word"==e?a="variable":"variable"!=e&&"("!=e&&")"!=e&&(a="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new E(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||k)(e,t);return r&&"object"==typeof r&&(i=r[1],r=r[0]),a=r,"comment"!=i&&(t.state=R[t.state](i,e,t)),a},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-o)):(r=r.prev,i=r.indent)),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:v,fold:"brace"}}));var r=["domain","regexp","url","url-prefix"],n=t(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(i),o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(o),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(c),f=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],h=t(f),p=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=t(p),g=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],b=t(g),y=["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(y),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],_=t(w),k=r.concat(i).concat(o).concat(l).concat(c).concat(f).concat(y).concat(w);function x(e,t){var r,n=!1;while(null!=(r=e.next())){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.registerHelper("hintWords","css",k),e.defineMIME("text/css",{documentTypes:n,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:m,counterDescriptors:b,colorKeywords:v,valueKeywords:_,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x,x(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:_,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:_,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:a,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:m,counterDescriptors:b,colorKeywords:v,valueKeywords:_,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x,x(e,t))}},name:"css",helperType:"gss"})}))},9152:function(e,t){t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=u}return(h?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?f/l:f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*m}},b639:function(e,t,r){"use strict";(function(e){ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53ca05b2"],{"1fb5":function(e,t,r){"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=m;for(var n=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function d(e,t,r){return 3*(t+r)/4-r}function f(e){var t,r,n=u(e),o=n[0],s=n[1],l=new a(d(e,o,s)),c=0,f=s>0?o-4:o;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,i=[],a=t;al?l:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21a6":function(e,t,r){(function(r){var n,i,a;(function(r,o){i=[],n=o,a="function"===typeof n?n.apply(t,i):n,void 0===a||(e.exports=a)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,r){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?a(l):i(l.href)?n(e,t,r):a(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),r);else if(i(e))n(e,r,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){a(s)}))}}:function(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});o.saveAs=l.saveAs=l,e.exports=l}))}).call(this,r("c8ba"))},"4ba6":function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";function t(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.info=n,this.align=i,this.prev=a}function r(e,r,n,i){var a=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(a=e.context.indented),e.context=new t(a,r,n,i,null,e.context)}function n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function i(e,t,r){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,r))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function a(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function o(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/,C=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,I=l.isReservedIdentifier||!1;function R(e,t){var r=e.next();if(w[r]){var n=w[r](e,t);if(!1!==n)return n}if('"'==r||"'"==r)return t.tokenize=O(r),t.tokenize(e,t);if(E.test(r)){if(e.backUp(1),e.match(z))return"number";e.next()}if(A.test(r))return u=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=P,P(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(r)){while(!e.match(/^\/[\/*]/,!1)&&e.eat(T));return"operator"}if(e.eatWhile(C),S)while(e.match(S))e.eatWhile(C);var i=e.current();return s(p,i)?(s(b,i)&&(u="newstatement"),s(y,i)&&(c=!0),"keyword"):s(m,i)?"type":s(g,i)||I&&I(i)?(s(b,i)&&(u="newstatement"),"builtin"):s(v,i)?"atom":"variable"}function O(e){return function(t,r){var n,i=!1,a=!1;while(null!=(n=t.next())){if(n==e&&!i){a=!0;break}i=!i&&"\\"==n}return(a||!i&&!k)&&(r.tokenize=null),"string"}}function P(e,t){var r,n=!1;while(r=e.next()){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function B(e,t){l.typeFirstDefinitions&&e.eol()&&a(t.context)&&(t.typeAtEndOfLine=i(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var o=t.context;if(e.sol()&&(null==o.align&&(o.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return B(e,t),null;u=c=null;var s=(t.tokenize||R)(e,t);if("comment"==s||"meta"==s)return s;if(null==o.align&&(o.align=!0),";"==u||":"==u||","==u&&e.match(/^\s*(?:\/\/.*)?$/,!1))while("statement"==t.context.type)n(t);else if("{"==u)r(t,e.column(),"}");else if("["==u)r(t,e.column(),"]");else if("("==u)r(t,e.column(),")");else if("}"==u){while("statement"==o.type)o=n(t);"}"==o.type&&(o=n(t));while("statement"==o.type)o=n(t)}else u==o.type?n(t):_&&(("}"==o.type||"top"==o.type)&&";"!=u||"statement"==o.type&&"newstatement"==u)&&r(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&i(e,t,e.start)&&a(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),w.token){var d=w.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=c?"def":s||u,B(e,t),s},indent:function(t,r){if(t.tokenize!=R&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var n=t.context,i=r&&r.charAt(0),a=i==n.type;if("statement"==n.type&&"}"==i&&(n=n.prev),l.dontIndentStatements)while("statement"==n.type&&l.dontIndentStatements.test(n.info))n=n.prev;if(w.indent){var o=w.indent(t,n,r,d);if("number"==typeof o)return o}var s=n.prev&&"switch"==n.prev.info;if(l.allmanIndentation&&/[{(]/.test(i)){while("top"!=n.type&&"}"!=n.type)n=n.prev;return n.indented}return"statement"==n.type?n.indented+("{"==i?0:f):!n.align||h&&")"==n.type?")"!=n.type||a?n.indented+(a?0:d)+(a||!s||/^(?:case|default)\b/.test(r)?0:d):n.indented+f:n.column+(a?0:1)},electricInput:x?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}}));var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",u="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",c="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",f=o("int long char short double float unsigned signed void bool"),h=o("SEL instancetype id Class Protocol BOOL");function p(e){return s(f,e)||/.+_t$/.test(e)}function m(e){return p(e)||s(h,e)}var g="case do else for if switch while struct enum union",b="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var r,n=null;r=e.peek();){if("\\"==r&&e.match(/^.$/)){n=y;break}if("/"==r&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=n,"meta"}function v(e,t){return"type"==t.prevToken&&"type"}function w(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function k(e){return e.eatWhile(/[\w\.']/),"number"}function _(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var r=e.match(/"([^\s\\()]{0,16})\(/);return!!r&&(t.cpp11RawStringDelim=r[1],t.tokenize=A,A(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function x(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function S(e,t){var r;while(null!=(r=e.next()))if('"'==r&&!e.eat('"')){t.tokenize=null;break}return"string"}function A(e,t){var r=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),n=e.match(new RegExp(".*?\\)"+r+'"'));return n?t.tokenize=null:e.skipToEnd(),"string"}function E(t,r){"string"==typeof t&&(t=[t]);var n=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&n.push(t)}i(r.keywords),i(r.types),i(r.builtin),i(r.atoms),n.length&&(r.helperType=t[0],e.registerHelper("hintWords",t[0],n));for(var a=0;a!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=z,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,r){var n=r.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(r.context=new t(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),E("text/x-kotlin",{name:"clike",keywords:o("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:o("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:o("catch class do else finally for if where try while enum"),defKeywords:o("class val var object interface fun"),atoms:o("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=C(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=T(1),t.tokenize(e,t))},indent:function(e,t,r,n){var i=r&&r.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=r?"operator"==e.prevToken&&"}"!=r&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*n+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(r||"").charAt(0)?0:n):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),E(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:o("for while do if else struct"),builtin:o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),E("text/x-nesc",{name:"clike",keywords:o(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:p,blockKeywords:o(g),atoms:o("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),E("text/x-objectivec",{name:"clike",keywords:o(l+" "+c),types:m,builtin:o(d),blockKeywords:o(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:o(b+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":v},modeProps:{fold:["brace","include"]}}),E("text/x-objectivec++",{name:"clike",keywords:o(l+" "+c+" "+u),types:m,builtin:o(d),blockKeywords:o(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:o(b+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:o("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:w,hooks:{"#":y,"*":v,u:_,U:_,L:_,R:_,0:k,1:k,2:k,3:k,4:k,5:k,6:k,7:k,8:k,9:k,token:function(e,t,r){if("variable"==r&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),E("text/x-squirrel",{name:"clike",keywords:o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:p,blockKeywords:o("case catch class else for foreach if switch try while"),defKeywords:o("function local class"),typeFirstDefinitions:!0,atoms:o("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var I=null;function R(e){return function(t,r){var n,i=!1,a=!1;while(!t.eol()){if(!i&&t.match('"')&&("single"==e||t.match('""'))){a=!0;break}if(!i&&t.match("``")){I=R(e),a=!0;break}n=t.next(),i="single"==e&&!i&&"\\"==n}return a&&(r.tokenize=null),"string"}}E("text/x-ceylon",{name:"clike",keywords:o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:o("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:o("class dynamic function interface module object package value"),builtin:o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:o("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=R(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!I||!e.match("`"))&&(t.tokenize=I,I=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,r){if(("variable"==r||"type"==r)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}))},"74bb":function(e,t,r){(function(e){e(r("56b3"),r("d69f"),r("eb0c"))})((function(e){"use strict";e.defineMode("htmlembedded",(function(t,r){var n=r.closeComment||"--%>";return e.multiplexingMode(e.getMode(t,"htmlmixed"),{open:r.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(e){return e.skipTo(n)||e.skipToEnd(),"comment"}}},{open:r.open||r.scriptStartRegex||"<%",close:r.close||r.scriptEndRegex||"%>",mode:e.getMode(t,r.scriptingModeSpec)})}),"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})}))},"7b00":function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";function t(e){for(var t={},r=0;r*\/]/.test(r)?_(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?_("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?_(null,r):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=A),_("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),_("property","word")):_(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),_("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?_("variable-2","variable-definition"):_("variable-2","variable")):e.match(/^\w+-/)?_("meta","meta"):void 0}function S(e){return function(t,r){var n,i=!1;while(null!=(n=t.next())){if(n==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==n}return(n==e||!i&&")"!=e)&&(r.tokenize=null),_("string","string")}}function A(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=S(")"),_(null,"(")}function E(e,t,r){this.type=e,this.indent=t,this.prev=r}function z(e,t,r,n){return e.context=new E(r,t.indentation()+(!1===n?0:o),e.context),r}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function C(e,t,r){return O[r.context.type](e,t,r)}function I(e,t,r,n){for(var i=n||1;i>0;i--)r.context=r.context.prev;return C(e,t,r)}function R(e){var t=e.current().toLowerCase();a=b.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var O={top:function(e,t,r){if("{"==e)return z(r,t,"block");if("}"==e&&r.context.prev)return T(r);if(w&&/@component/i.test(e))return z(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return z(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return z(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return z(r,t,"at");if("hash"==e)a="builtin";else if("word"==e)a="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return z(r,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return z(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return f.hasOwnProperty(n)?(a="property","maybeprop"):h.hasOwnProperty(n)?(a=k?"string-2":"property","maybeprop"):y?(a=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(a+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?O.top(e,t,r):(a="error","block")},maybeprop:function(e,t,r){return":"==e?z(r,t,"prop"):C(e,t,r)},prop:function(e,t,r){if(";"==e)return T(r);if("{"==e&&y)return z(r,t,"propBlock");if("}"==e||"{"==e)return I(e,t,r);if("("==e)return z(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)R(t);else if("interpolation"==e)return z(r,t,"interpolation")}else a+=" error";return"prop"},propBlock:function(e,t,r){return"}"==e?T(r):"word"==e?(a="property","maybeprop"):r.context.type},parens:function(e,t,r){return"{"==e||"}"==e?I(e,t,r):")"==e?T(r):"("==e?z(r,t,"parens"):"interpolation"==e?z(r,t,"interpolation"):("word"==e&&R(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(a="variable-3",r.context.type):C(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&l.hasOwnProperty(t.current())?(a="tag",r.context.type):O.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return z(r,t,"atBlock_parens");if("}"==e||";"==e)return I(e,t,r);if("{"==e)return T(r)&&z(r,t,y?"block":"top");if("interpolation"==e)return z(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();a="only"==n||"not"==n||"and"==n||"or"==n?"keyword":u.hasOwnProperty(n)?"attribute":c.hasOwnProperty(n)?"property":d.hasOwnProperty(n)?"keyword":f.hasOwnProperty(n)?"property":h.hasOwnProperty(n)?k?"string-2":"property":b.hasOwnProperty(n)?"atom":g.hasOwnProperty(n)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?I(e,t,r):"{"==e?T(r)&&z(r,t,y?"block":"top",!1):("word"==e&&(a="error"),r.context.type)},atBlock_parens:function(e,t,r){return")"==e?T(r):"{"==e||"}"==e?I(e,t,r,2):O.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return"{"==e?z(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(a="variable","restricted_atBlock_before"):C(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,T(r)):"word"==e?(a="@font-face"==r.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(a="variable","keyframes"):"{"==e?z(r,t,"top"):C(e,t,r)},at:function(e,t,r){return";"==e?T(r):"{"==e||"}"==e?I(e,t,r):("word"==e?a="tag":"hash"==e&&(a="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?T(r):"{"==e||";"==e?I(e,t,r):("word"==e?a="variable":"variable"!=e&&"("!=e&&")"!=e&&(a="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new E(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||x)(e,t);return r&&"object"==typeof r&&(i=r[1],r=r[0]),a=r,"comment"!=i&&(t.state=O[t.state](i,e,t)),a},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),i=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(i=Math.max(0,r.indent-o)):(r=r.prev,i=r.indent)),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:v,fold:"brace"}}));var r=["domain","regexp","url","url-prefix"],n=t(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(i),o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],s=t(o),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(c),f=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],h=t(f),p=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=t(p),g=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],b=t(g),y=["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(y),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],k=t(w),_=r.concat(i).concat(o).concat(l).concat(c).concat(f).concat(y).concat(w);function x(e,t){var r,n=!1;while(null!=(r=e.next())){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.registerHelper("hintWords","css",_),e.defineMIME("text/css",{documentTypes:n,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:m,counterDescriptors:b,colorKeywords:v,valueKeywords:k,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x,x(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:k,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:k,fontProperties:m,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:a,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:m,counterDescriptors:b,colorKeywords:v,valueKeywords:k,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x,x(e,t))}},name:"css",helperType:"gss"})}))},9152:function(e,t){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=u}return(h?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?f/l:f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(o=o<0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*m}},b639:function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var n=r("1fb5"),i=r("9152"),a=r("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return G(e).length;t=(""+t).toLowerCase(),n=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return R(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var d=!0,f=0;fi&&(n=i)):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return P(n)}t.Buffer=u,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return f(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),d=0;di)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":return z(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return C(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function P(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function W(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function Z(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Y(e,t,r,n,a){return a||Z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function K(e,t,r,n,a){return a||Z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256))n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);var n=this[e],i=1,a=0;while(++a=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);var n=t,i=1,a=this[e+--n];while(n>0&&(i*=256))a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var a=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+a]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):W(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return Y(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return Y(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return K(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return K(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(e){for(var t=[],r=0;r>8,i=r%256,a.push(i),a.push(n)}return a}function Q(e){return n.toByteArray(V(e))}function ee(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this,r("c8ba"))},bbca:function(e,t,r){},c4e3:function(e,t,r){(function(t,r){var n;!function(t){e.exports=t()}((function(){return function e(t,r,i){function a(s,l){if(!r[s]){if(!t[s]){var u="function"==typeof n&&n;if(!l&&u)return n(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};t[s][0].call(d.exports,(function(e){var r=t[s][1][e];return a(r||e)}),d,d.exports,e,t,r,i)}return r[s].exports}for(var o="function"==typeof n&&n,s=0;s>2,s=(3&t)<<4|r>>4,l=1>6:64,u=2>4,r=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),f[c++]=t,64!==s&&(f[c++]=r),64!==l&&(f[c++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a=e("./stream/DataLengthProbe"),s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r>>=8;return n}function i(e,t,r,i,o,c){var d,f,h=e.file,p=e.compression,m=c!==s.utf8encode,g=a.transformTo("string",c(h.name)),b=a.transformTo("string",s.utf8encode(h.name)),y=h.comment,v=a.transformTo("string",c(y)),w=a.transformTo("string",s.utf8encode(y)),_=b.length!==h.name.length,k=w.length!==y.length,x="",S="",E="",A=h.dir,z=h.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!_&&!k||(C|=2048);var I=0,R=0;A&&(I|=16),"UNIX"===o?(R=798,I|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,A)):(R=20,I|=function(e){return 63&(e||0)}(h.dosPermissions)),d=z.getUTCHours(),d<<=6,d|=z.getUTCMinutes(),d<<=5,d|=z.getUTCSeconds()/2,f=z.getUTCFullYear()-1980,f<<=4,f|=z.getUTCMonth()+1,f<<=5,f|=z.getUTCDate(),_&&(S=n(1,1)+n(l(g),4)+b,x+="up"+n(S.length,2)+S),k&&(E=n(1,1)+n(l(v),4)+w,x+="uc"+n(E.length,2)+E);var O="";return O+="\n\0",O+=n(C,2),O+=p.magic,O+=n(d,2),O+=n(f,2),O+=n(T.crc32,4),O+=n(T.compressedSize,4),O+=n(T.uncompressedSize,4),O+=n(g.length,2),O+=n(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+O+g+x,dirRecord:u.CENTRAL_FILE_HEADER+n(R,2)+O+n(v.length,2)+"\0\0\0\0"+n(I,4)+n(i,4)+g+x+v}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,r,n){"use strict";var i=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),u=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,r){return new u.Promise((function(n,a){var o=[],l=e._internalType,u=e._outputType,c=e._mimeType;e.on("data",(function(e,t){o.push(e),r&&r(t)})).on("error",(function(e){o=[],a(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(u,function(e,r){var n,i=0,a=null,o=0;for(n=0;n>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,o=e.length,l=new Array(2*o);for(t=r=0;t>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,o),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){return e}function u(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=n,o=i+r;e^=-1;for(var s=i;s>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,d=0,f=-2,h=-1,p=4,m=2,g=8,b=9,y=286,v=30,w=19,_=2*y+1,k=15,x=3,S=258,E=S+x+1,A=42,z=113,T=1,C=2,I=3,R=4;function O(e,t){return e.msg=l[t],t}function B(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function M(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,D(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function U(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+S,h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===h&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&al&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,r,n,a,l,u,c,d,f,h,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-E)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,f=a,h=void 0,h=u.avail_in,f=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===u)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,M(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-E&&(M(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?I:R):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),T)})),new Z(4,4,8,4,j),new Z(4,5,16,8,j),new Z(4,6,32,32,j),new Z(4,4,16,16,W),new Z(8,16,32,32,W),new Z(8,16,128,128,W),new Z(8,32,128,256,W),new Z(32,128,258,1024,W),new Z(32,258,258,4096,W)],r.deflateInit=function(e,t){return V(e,t,g,15,8,0)},r.deflateInit2=V,r.deflateReset=q,r.deflateResetKeep=K,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},r.deflate=function(e,t){var r,i,o,l;if(!e||!e.state||5>8&255),N(i,i.gzhead.time>>16&255),N(i,i.gzhead.time>>24&255),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(N(i,255&i.gzhead.extra.length),N(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(N(i,0),N(i,0),N(i,0),N(i,0),N(i,0),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,3),i.status=z);else{var h=g+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=z,U(i,h),0!==i.strstart&&(U(i,e.adler>>>16),U(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),D(e),o=i.pending,i.pending!==i.pending_buf_size));)N(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),D(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),D(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&D(e),i.pending+2<=i.pending_buf_size&&(N(i,255&e.adler),N(i,e.adler>>8&255),e.adler=0,i.status=z)):i.status=z),0!==i.pending){if(D(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&B(t)<=B(r)&&t!==c)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===u)return T;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?I:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?T:C}(i,t):3===i.strategy?function(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=S){if(F(e),e.lookahead<=S&&t===u)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=a._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(M(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?I:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?T:C}(i,t):n[i.level].func(i,t);if(p!==I&&p!==R||(i.status=666),p===T||p===I)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===C&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(P(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),D(e),0===e.avail_out))return i.last_flush=-1,d}return t!==c?d:i.wrap<=0?1:(2===i.wrap?(N(i,255&e.adler),N(i,e.adler>>8&255),N(i,e.adler>>16&255),N(i,e.adler>>24&255),N(i,255&e.total_in),N(i,e.total_in>>8&255),N(i,e.total_in>>16&255),N(i,e.total_in>>24&255)):(U(i,e.adler>>>16),U(i,65535&e.adler)),D(e),0=r.w_size&&(0===s&&(P(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,p-r.w_size,r.w_size,0),t=h,p=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(r);r.lookahead>=x;){for(n=r.strstart,a=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=w=v>>>24,p-=w,0===(w=v>>>16&255))A[a++]=65535&v;else{if(!(16&w)){if(0==(64&w)){v=m[(65535&v)+(h&(1<>>=w,p-=w),p<15&&(h+=E[n++]<>>=w=v>>>24,p-=w,!(16&(w=v>>>16&255))){if(0==(64&w)){v=g[(65535&v)+(h&(1<>>=w,p-=w,(w=a-o)>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,c):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=a(r.check,F,2,0),_=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,D=8+(15&(w>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=a(r.check,F,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(A=r.length)&&(A=y),A&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,g,A,D)),512&r.flags&&(r.check=a(r.check,h,A,g)),y-=A,g+=A,r.length-=A),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(A=0;D=h[g+A++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D)),D&&A>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}e.adler=r.check=m(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=y,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(A=r.length){if(y>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,286>>=3,_-=3}for(;r.have<19;)r.lens[j[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},M=s(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,M){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,R=65535&L,!((C=L>>>24)<=_);){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}if(R<16)w>>>=C,_-=C,r.lens[r.have++]=R;else{if(16===R){for(U=C+2;_>>=C,_-=C,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}D=r.lens[r.have-1],A=3+(3&w),w>>>=2,_-=2}else if(17===R){for(U=C+3;_>>=C)),w>>>=3,_-=3}else{for(U=C+7;_>>=C)),w>>>=7,_-=7}if(r.have+A>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;A--;)r.lens[r.have++]=D}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},M=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,M){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},M=s(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,M){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=y&&258<=v){e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=y,r.hold=w,r.bits=_,o(e,x),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,h=e.input,y=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(L=r.lencode[w&(1<>>16&255,R=65535&L,!((C=L>>>24)<=_);){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}if(I&&0==(240&I)){for(O=C,B=I,P=R;I=(L=r.lencode[P+((w&(1<>O)])>>>16&255,R=65535&L,!(O+(C=L>>>24)<=_);){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=C,_-=C,r.back+=C,r.length=R,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(U=r.extra;_>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(L=r.distcode[w&(1<>>16&255,R=65535&L,!((C=L>>>24)<=_);){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}if(0==(240&I)){for(O=C,B=I,P=R;I=(L=r.distcode[P+((w&(1<>O)])>>>16&255,R=65535&L,!(O+(C=L>>>24)<=_);){if(0===y)break e;y--,w+=h[g++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=C,_-=C,r.back+=C,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(U=r.extra;_>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break e;if(A=x-v,r.offset>A){if((A=r.offset-A)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}z=A>r.wnext?(A-=r.wnext,r.wsize-A):r.wnext-A,A>r.length&&(A=r.length),T=r.window}else T=p,z=b-r.offset,A=r.length;for(vy?(w=N[U+d[S]],B[P+d[S]]):(w=96,0),h=1<>C)+(p-=h)]=v<<24|w<<16|_|0,0!==p;);for(h=1<>=1;if(0!==h?(O&=h-1,O+=h):O=0,S++,0==--D[x]){if(x===A)break;x=t[r+d[S]]}if(z>>7)]}function N(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function U(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function j(e,t,r){var n,i,a=new Array(p+1),o=0;for(n=1;n<=p;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function W(e){var t;for(t=0;t>1;1<=r;r--)K(e,a,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,K(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?X(e,t,r,n):4===e.strategy||s===o?(U(e,2+(n?1:0),3),q(e,E,A)):(U(e,4+(n?1:0),3),function(e,t,r,n){var i;for(U(e,t-257,5),U(e,r-1,5),U(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+u+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){U(e,2,3),L(e,b,E),function(e){16===e.bi_valid?(N(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,r("b639").Buffer,r("c8ba"))},d5e0:function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";var t={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},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(n,i){var a,o,s=n.indentUnit,l={},u=i.htmlMode?t:r;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function r(r){return t.tokenize=r,r(e,t)}var n,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(p("atom","]]>")):null:e.match("--")?r(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(a=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==i?(n=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),n?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function f(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=d,a=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return a="equals",null;if("<"==r){t.tokenize=d,t.state=v,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=h(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,r){while(!t.eol())if(t.next()==e){r.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(r,n){while(!r.eol()){if(r.match(t)){n.tokenize=d;break}r.next()}return e}}function m(e){return function(t,r){var n;while(null!=(n=t.next())){if("<"==n)return r.tokenize=m(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=d;break}return r.tokenize=m(e-1),r.tokenize(t,r)}}return"meta"}}function g(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function b(e){e.context&&(e.context=e.context.prev)}function y(e,t){var r;while(1){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;b(e)}}function v(e,t,r){return"openTag"==e?(r.tagStart=t.column(),w):"closeTag"==e?_:v}function w(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",S):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",S(e,t,r)):(o="error",w)}function _(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&b(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(o="tag",k):(o="tag error",x)}return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",k(e,t,r)):(o="error",x)}function k(e,t,r){return"endTag"!=e?(o="error",k):(b(r),v)}function x(e,t,r){return o="error",k(e,t,r)}function S(e,t,r){if("word"==e)return o="attribute",E;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?y(r,n):(y(r,n),r.context=new g(r,n,i==r.indented)),v}return o="error",S}function E(e,t,r){return"equals"==e?A:(l.allowMissing||(o="error"),S(e,t,r))}function A(e,t,r){return"string"==e?z:"word"==e&&l.allowUnquoted?(o="string",S):(o="error",S(e,t,r))}function z(e,t,r){return"string"==e?z:S(e,t,r)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:v,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var r=t.tokenize(e,t);return(r||a)&&"comment"!=r&&(o=null,t.state=t.state(a||r,e,t),o&&(r="error"==o?r+" error":o)),r},indent:function(t,r,n){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)r.tagName&&t.push(r.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},d69f:function(e,t,r){(function(e){e(r("56b3"),r("d5e0"),r("f9d4"),r("7b00"))})((function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function r(e,t,r){var n=e.current(),i=n.search(t);return i>-1?e.backUp(n.length-i):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}var n={};function i(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function a(e,t){var r=e.match(i(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"","i")}function s(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],a=i.length-1;a>=0;a--)n.unshift(i[a])}function l(e,t){for(var r=0;r=0;f--)u.script.unshift(["type",d[f].matches,d[f].mode]);function h(t,i){var s,c=a.token(t,i.htmlState),d=/\btag\b/.test(c);if(d&&!/[<>\s\/]/.test(t.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&d&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var p=">"==t.current()&&l(u[f[1]],f[2]),m=e.getMode(n,p),g=o(f[1],!0),b=o(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=h,t.localState=t.localMode=null,null):r(e,b,t.localMode.token(e,t.localState))},i.localMode=m,i.localState=e.startState(m,a.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return c}return{startState:function(){var t=e.startState(a);return{token:h,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(a,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?a.indent(t.htmlState,r,n):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||a}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}))},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},eb0c:function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";e.multiplexingMode=function(t){var r=Array.prototype.slice.call(arguments,1);function n(e,t,r,n){if("string"==typeof t){var i=e.indexOf(t,r);return n&&i>-1?i+t.length:i}var a=t.exec(r?e.slice(r):e);return a?a.index+r+(n?a[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(r){return{outer:e.copyState(t,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner)}},token:function(i,a){if(a.innerActive){var o=a.innerActive;u=i.string;if(!o.close&&i.sol())return a.innerActive=a.inner=null,this.token(i,a);f=o.close?n(u,o.close,i.pos,o.parseDelimiters):-1;if(f==i.pos&&!o.parseDelimiters)return i.match(o.close),a.innerActive=a.inner=null,o.delimStyle&&o.delimStyle+" "+o.delimStyle+"-close";f>-1&&(i.string=u.slice(0,f));var s=o.mode.token(i,a.inner);return f>-1&&(i.string=u),f==i.pos&&o.parseDelimiters&&(a.innerActive=a.inner=null),o.innerStyle&&(s=s?s+" "+o.innerStyle:o.innerStyle),s}for(var l=1/0,u=i.string,c=0;c!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){var t,r=!1,n=!1;while(null!=(t=e.next())){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function m(e,t,r){return n=e,i=r,t}function g(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=b(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):et(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=v,v(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(c))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(f.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var i=d[n];return m(i.type,i.style,n)}if("async"==n&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",n)}return m("variable","variable",n)}}function b(e){return function(t,r){var n,i=!1;if(s&&"@"==t.peek()&&t.match(h))return r.tokenize=g,m("jsonld-keyword","meta");while(null!=(n=t.next())){if(n==e&&!i)break;i=!i&&"\\"==n}return i||(r.tokenize=g),m("string","string")}}function y(e,t){var r,n=!1;while(r=e.next()){if("/"==r&&n){t.tokenize=g;break}n="*"==r}return m("comment","comment")}function v(e,t){var r,n=!1;while(null!=(r=e.next())){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r}return m("quasi","string-2",e.current())}var w="([{}])";function _(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,a=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),l=w.indexOf(s);if(l>=0&&l<3){if(!i){++o;break}if(0==--i){"("==s&&(a=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))a=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;var d=e.string.charAt(o-1);if(d==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(a&&!i){++o;break}}a&&!i&&(t.fatArrowAt=o)}}var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=a,null!=n&&(this.align=n)}function S(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,i){var a=e.cc;A.state=e,A.stream=i,A.marked=null,A.cc=a,A.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);while(1){var o=a.length?a.pop():l?Y:W;if(o(r,n)){while(a.length&&a[a.length-1].lex)a.pop()();return A.marked?A.marked:"variable"==r&&S(e,n)?"variable-2":t}}}var A={state:null,column:null,marked:null,cc:null};function z(){for(var e=arguments.length-1;e>=0;e--)A.cc.push(arguments[e])}function T(){return z.apply(null,arguments),!0}function C(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function I(e){var t=A.state;if(A.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=R(e,t.context);if(null!=n)return void(t.context=n)}else if(!C(e,t.localVars))return void(t.localVars=new P(e,t.localVars));r.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new P(e,t.globalVars))}function R(e,t){if(t){if(t.block){var r=R(e,t.prev);return r?r==t.prev?t:new B(r,t.vars,!0):null}return C(e,t.vars)?t:new B(t.prev,new P(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function B(e,t,r){this.prev=e,this.vars=t,this.block=r}function P(e,t){this.name=e,this.next=t}var D=new P("this",new P("arguments",null));function M(){A.state.context=new B(A.state.context,A.state.localVars,!1),A.state.localVars=D}function N(){A.state.context=new B(A.state.context,A.state.localVars,!0),A.state.localVars=null}function U(){A.state.localVars=A.state.context.vars,A.state.context=A.state.context.prev}function L(e,t){var r=function(){var r=A.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new x(n,A.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function F(){var e=A.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){function t(r){return r==e?T():";"==e||"}"==r||")"==r||"]"==r?z():T(t)}return t}function W(e,t){return"var"==e?T(L("vardef",t),Se,j(";"),F):"keyword a"==e?T(L("form"),q,W,F):"keyword b"==e?T(L("form"),W,F):"keyword d"==e?A.stream.match(/^\s*$/,!1)?T():T(L("stat"),$,j(";"),F):"debugger"==e?T(j(";")):"{"==e?T(L("}"),N,de,F,U):";"==e?T():"if"==e?("else"==A.state.lexical.info&&A.state.cc[A.state.cc.length-1]==F&&A.state.cc.pop()(),T(L("form"),q,W,F,Ie)):"function"==e?T(Pe):"for"==e?T(L("form"),Re,W,F):"class"==e||u&&"interface"==t?(A.marked="keyword",T(L("form","class"==e?e:t),Le,F)):"variable"==e?u&&"declare"==t?(A.marked="keyword",T(W)):u&&("module"==t||"enum"==t||"type"==t)&&A.stream.match(/^\s*\w/,!1)?(A.marked="keyword","enum"==t?T(Xe):"type"==t?T(Me,j("operator"),ge,j(";")):T(L("form"),Ee,j("{"),L("}"),de,F,F)):u&&"namespace"==t?(A.marked="keyword",T(L("form"),Y,W,F)):u&&"abstract"==t?(A.marked="keyword",T(W)):T(L("stat"),ie):"switch"==e?T(L("form"),q,j("{"),L("}","switch"),N,de,F,F,U):"case"==e?T(Y,j(":")):"default"==e?T(j(":")):"catch"==e?T(L("form"),M,Z,W,F,U):"export"==e?T(L("stat"),Ze,F):"import"==e?T(L("stat"),Ke,F):"async"==e?T(W):"@"==t?T(Y,W):z(L("stat"),Y,j(";"),F)}function Z(e){if("("==e)return T(Ne,j(")"))}function Y(e,t){return V(e,t,!1)}function K(e,t){return V(e,t,!0)}function q(e){return"("!=e?z():T(L(")"),$,j(")"),F)}function V(e,t,r){if(A.state.fatArrowAt==A.stream.start){var n=r?ee:Q;if("("==e)return T(M,L(")"),ue(Ne,")"),F,j("=>"),n,U);if("variable"==e)return z(M,Ee,j("=>"),n,U)}var i=r?G:H;return k.hasOwnProperty(e)?T(i):"function"==e?T(Pe,i):"class"==e||u&&"interface"==t?(A.marked="keyword",T(L("form"),Ue,F)):"keyword c"==e||"async"==e?T(r?K:Y):"("==e?T(L(")"),$,j(")"),F,i):"operator"==e||"spread"==e?T(r?K:Y):"["==e?T(L("]"),Ge,F,i):"{"==e?ce(oe,"}",null,i):"quasi"==e?z(X,i):"new"==e?T(te(r)):"import"==e?T(Y):T()}function $(e){return e.match(/[;\}\)\],]/)?z():z(Y)}function H(e,t){return","==e?T($):G(e,t,!1)}function G(e,t,r){var n=0==r?H:G,i=0==r?Y:K;return"=>"==e?T(M,r?ee:Q,U):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?T(n):u&&"<"==t&&A.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(L(">"),ue(ge,">"),F,n):"?"==t?T(Y,j(":"),i):T(i):"quasi"==e?z(X,n):";"!=e?"("==e?ce(K,")","call",n):"."==e?T(ae,n):"["==e?T(L("]"),$,j("]"),F,n):u&&"as"==t?(A.marked="keyword",T(ge,n)):"regexp"==e?(A.state.lastType=A.marked="operator",A.stream.backUp(A.stream.pos-A.stream.start-1),T(i)):void 0:void 0}function X(e,t){return"quasi"!=e?z():"${"!=t.slice(t.length-2)?T(X):T(Y,J)}function J(e){if("}"==e)return A.marked="string-2",A.state.tokenize=v,T(X)}function Q(e){return _(A.stream,A.state),z("{"==e?W:Y)}function ee(e){return _(A.stream,A.state),z("{"==e?W:K)}function te(e){return function(t){return"."==t?T(e?ne:re):"variable"==t&&u?T(_e,e?G:H):z(e?K:Y)}}function re(e,t){if("target"==t)return A.marked="keyword",T(H)}function ne(e,t){if("target"==t)return A.marked="keyword",T(G)}function ie(e){return":"==e?T(F,W):z(H,j(";"),F)}function ae(e){if("variable"==e)return A.marked="property",T()}function oe(e,t){return"async"==e?(A.marked="property",T(oe)):"variable"==e||"keyword"==A.style?(A.marked="property","get"==t||"set"==t?T(se):(u&&A.state.fatArrowAt==A.stream.start&&(r=A.stream.match(/^\s*:\s*/,!1))&&(A.state.fatArrowAt=A.stream.pos+r[0].length),T(le))):"number"==e||"string"==e?(A.marked=s?"property":A.style+" property",T(le)):"jsonld-keyword"==e?T(le):u&&O(t)?(A.marked="keyword",T(oe)):"["==e?T(Y,fe,j("]"),le):"spread"==e?T(K,le):"*"==t?(A.marked="keyword",T(oe)):":"==e?z(le):void 0;var r}function se(e){return"variable"!=e?z(le):(A.marked="property",T(Pe))}function le(e){return":"==e?T(K):"("==e?z(Pe):void 0}function ue(e,t,r){function n(i,a){if(r?r.indexOf(i)>-1:","==i){var o=A.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),T((function(r,n){return r==t||n==t?z():z(e)}),n)}return i==t||a==t?T():r&&r.indexOf(";")>-1?z(e):T(j(t))}return function(r,i){return r==t||i==t?T():z(e,n)}}function ce(e,t,r){for(var n=3;n"),ge):void 0}function be(e){if("=>"==e)return T(ge)}function ye(e,t){return"variable"==e||"keyword"==A.style?(A.marked="property",T(ye)):"?"==t||"number"==e||"string"==e?T(ye):":"==e?T(ge):"["==e?T(j("variable"),he,j("]"),ye):"("==e?z(De,ye):void 0}function ve(e,t){return"variable"==e&&A.stream.match(/^\s*[?:]/,!1)||"?"==t?T(ve):":"==e?T(ge):"spread"==e?T(ve):z(ge)}function we(e,t){return"<"==t?T(L(">"),ue(ge,">"),F,we):"|"==t||"."==e||"&"==t?T(ge):"["==e?T(ge,j("]"),we):"extends"==t||"implements"==t?(A.marked="keyword",T(ge)):"?"==t?T(ge,j(":"),ge):void 0}function _e(e,t){if("<"==t)return T(L(">"),ue(ge,">"),F,we)}function ke(){return z(ge,xe)}function xe(e,t){if("="==t)return T(ge)}function Se(e,t){return"enum"==t?(A.marked="keyword",T(Xe)):z(Ee,fe,Te,Ce)}function Ee(e,t){return u&&O(t)?(A.marked="keyword",T(Ee)):"variable"==e?(I(t),T()):"spread"==e?T(Ee):"["==e?ce(ze,"]"):"{"==e?ce(Ae,"}"):void 0}function Ae(e,t){return"variable"!=e||A.stream.match(/^\s*:/,!1)?("variable"==e&&(A.marked="property"),"spread"==e?T(Ee):"}"==e?z():"["==e?T(Y,j("]"),j(":"),Ae):T(j(":"),Ee,Te)):(I(t),T(Te))}function ze(){return z(Ee,Te)}function Te(e,t){if("="==t)return T(K)}function Ce(e){if(","==e)return T(Se)}function Ie(e,t){if("keyword b"==e&&"else"==t)return T(L("form","else"),W,F)}function Re(e,t){return"await"==t?T(Re):"("==e?T(L(")"),Oe,F):void 0}function Oe(e){return"var"==e?T(Se,Be):"variable"==e?T(Be):z(Be)}function Be(e,t){return")"==e?T():";"==e?T(Be):"in"==t||"of"==t?(A.marked="keyword",T(Y,Be)):z(Y,Be)}function Pe(e,t){return"*"==t?(A.marked="keyword",T(Pe)):"variable"==e?(I(t),T(Pe)):"("==e?T(M,L(")"),ue(Ne,")"),F,pe,W,U):u&&"<"==t?T(L(">"),ue(ke,">"),F,Pe):void 0}function De(e,t){return"*"==t?(A.marked="keyword",T(De)):"variable"==e?(I(t),T(De)):"("==e?T(M,L(")"),ue(Ne,")"),F,pe,U):u&&"<"==t?T(L(">"),ue(ke,">"),F,De):void 0}function Me(e,t){return"keyword"==e||"variable"==e?(A.marked="type",T(Me)):"<"==t?T(L(">"),ue(ke,">"),F):void 0}function Ne(e,t){return"@"==t&&T(Y,Ne),"spread"==e?T(Ne):u&&O(t)?(A.marked="keyword",T(Ne)):u&&"this"==e?T(fe,Te):z(Ee,fe,Te)}function Ue(e,t){return"variable"==e?Le(e,t):Fe(e,t)}function Le(e,t){if("variable"==e)return I(t),T(Fe)}function Fe(e,t){return"<"==t?T(L(">"),ue(ke,">"),F,Fe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(A.marked="keyword"),T(u?ge:Y,Fe)):"{"==e?T(L("}"),je,F):void 0}function je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&O(t))&&A.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(A.marked="keyword",T(je)):"variable"==e||"keyword"==A.style?(A.marked="property",T(We,je)):"number"==e||"string"==e?T(We,je):"["==e?T(Y,fe,j("]"),We,je):"*"==t?(A.marked="keyword",T(je)):u&&"("==e?z(De,je):";"==e||","==e?T(je):"}"==e?T():"@"==t?T(Y,je):void 0}function We(e,t){if("?"==t)return T(We);if(":"==e)return T(ge,Te);if("="==t)return T(K);var r=A.state.lexical.prev,n=r&&"interface"==r.info;return z(n?De:Pe)}function Ze(e,t){return"*"==t?(A.marked="keyword",T(He,j(";"))):"default"==t?(A.marked="keyword",T(Y,j(";"))):"{"==e?T(ue(Ye,"}"),He,j(";")):z(W)}function Ye(e,t){return"as"==t?(A.marked="keyword",T(j("variable"))):"variable"==e?z(K,Ye):void 0}function Ke(e){return"string"==e?T():"("==e?z(Y):z(qe,Ve,He)}function qe(e,t){return"{"==e?ce(qe,"}"):("variable"==e&&I(t),"*"==t&&(A.marked="keyword"),T($e))}function Ve(e){if(","==e)return T(qe,Ve)}function $e(e,t){if("as"==t)return A.marked="keyword",T(qe)}function He(e,t){if("from"==t)return A.marked="keyword",T(Y)}function Ge(e){return"]"==e?T():z(ue(K,"]"))}function Xe(){return z(L("form"),Ee,j("{"),L("}"),ue(Je,"}"),F,F)}function Je(){return z(Ee,Te)}function Qe(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function et(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return U.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-a,0,"block",!1),localVars:r.localVars,context:r.localVars&&new B(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),_(e,t)),t.tokenize!=y&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",E(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=n&&n.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==F)l=l.prev;else if(c!=Ie)break}while(("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==H||i==G)&&!/^[,\.=+\-*:?[\(]/.test(n)))l=l.prev;o&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+a:"stat"==d?l.indented+(Qe(t,n)?o||a:0):"switch"!=l.info||f||0==r.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:a):l.indented+(/^(?:case|default)\b/.test(n)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=Y&&t!=K||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}))}}]); \ No newline at end of file +var n=r("1fb5"),i=r("9152"),a=r("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return G(e).length;t=(""+t).toLowerCase(),n=!0}}function k(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return R(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;as&&(r=s-l),a=r;a>=0;a--){for(var d=!0,f=0;fi&&(n=i)):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return B(n)}t.Buffer=u,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return f(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),d=0;di)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":return z(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return C(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function B(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function W(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function Z(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function K(e,t,r,n,a){return a||Z(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function Y(e,t,r,n,a){return a||Z(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256))n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);var n=this[e],i=1,a=0;while(++a=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||L(e,t,this.length);var n=t,i=1,a=this[e+--n];while(n>0&&(i*=256))a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var a=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+a]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):W(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return K(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return K(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return Y(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return Y(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(e){for(var t=[],r=0;r>8,i=r%256,a.push(i),a.push(n)}return a}function Q(e){return n.toByteArray(V(e))}function ee(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this,r("c8ba"))},bbca:function(e,t,r){},c4e3:function(e,t,r){(function(t,r){var n;!function(t){e.exports=t()}((function(){return function e(t,r,i){function a(s,l){if(!r[s]){if(!t[s]){var u="function"==typeof n&&n;if(!l&&u)return n(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=r[s]={exports:{}};t[s][0].call(d.exports,(function(e){var r=t[s][1][e];return a(r||e)}),d,d.exports,e,t,r,i)}return r[s].exports}for(var o="function"==typeof n&&n,s=0;s>2,s=(3&t)<<4|r>>4,l=1>6:64,u=2>4,r=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),f[c++]=t,64!==s&&(f[c++]=r),64!==l&&(f[c++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a=e("./stream/DataLengthProbe"),s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var a=i,o=n+r;e^=-1;for(var s=n;s>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r>>=8;return n}function i(e,t,r,i,o,c){var d,f,h=e.file,p=e.compression,m=c!==s.utf8encode,g=a.transformTo("string",c(h.name)),b=a.transformTo("string",s.utf8encode(h.name)),y=h.comment,v=a.transformTo("string",c(y)),w=a.transformTo("string",s.utf8encode(y)),k=b.length!==h.name.length,_=w.length!==y.length,x="",S="",A="",E=h.dir,z=h.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var C=0;t&&(C|=8),m||!k&&!_||(C|=2048);var I=0,R=0;E&&(I|=16),"UNIX"===o?(R=798,I|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,E)):(R=20,I|=function(e){return 63&(e||0)}(h.dosPermissions)),d=z.getUTCHours(),d<<=6,d|=z.getUTCMinutes(),d<<=5,d|=z.getUTCSeconds()/2,f=z.getUTCFullYear()-1980,f<<=4,f|=z.getUTCMonth()+1,f<<=5,f|=z.getUTCDate(),k&&(S=n(1,1)+n(l(g),4)+b,x+="up"+n(S.length,2)+S),_&&(A=n(1,1)+n(l(v),4)+w,x+="uc"+n(A.length,2)+A);var O="";return O+="\n\0",O+=n(C,2),O+=p.magic,O+=n(d,2),O+=n(f,2),O+=n(T.crc32,4),O+=n(T.compressedSize,4),O+=n(T.uncompressedSize,4),O+=n(g.length,2),O+=n(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+O+g+x,dirRecord:u.CENTRAL_FILE_HEADER+n(R,2)+O+n(v.length,2)+"\0\0\0\0"+n(I,4)+n(i,4)+g+x+v}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,r,n){"use strict";var i=e("../utils"),a=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),u=e("../external"),c=null;if(l.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,r){return new u.Promise((function(n,a){var o=[],l=e._internalType,u=e._outputType,c=e._mimeType;e.on("data",(function(e,t){o.push(e),r&&r(t)})).on("error",(function(e){o=[],a(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(u,function(e,r){var n,i=0,a=null,o=0;for(n=0;n>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,o=e.length,l=new Array(2*o);for(t=r=0;t>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,o),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){return e}function u(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=n,o=i+r;e^=-1;for(var s=i;s>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,d=0,f=-2,h=-1,p=4,m=2,g=8,b=9,y=286,v=30,w=19,k=2*y+1,_=15,x=3,S=258,A=S+x+1,E=42,z=113,T=1,C=2,I=3,R=4;function O(e,t){return e.msg=l[t],t}function P(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function M(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,D(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function U(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-A?e.strstart-(e.w_size-A):0,u=e.window,c=e.w_mask,d=e.prev,f=e.strstart+S,h=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===h&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do{}while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&al&&0!=--i);return o<=e.lookahead?o:e.lookahead}function F(e){var t,r,n,a,l,u,c,d,f,h,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-A)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,f=a,h=void 0,h=u.avail_in,f=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(F(e),0===e.lookahead&&t===u)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,M(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-A&&(M(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?I:R):(e.strstart>e.block_start&&(M(e,!1),e.strm.avail_out),T)})),new Z(4,4,8,4,j),new Z(4,5,16,8,j),new Z(4,6,32,32,j),new Z(4,4,16,16,W),new Z(8,16,32,32,W),new Z(8,16,128,128,W),new Z(8,32,128,256,W),new Z(32,128,258,1024,W),new Z(32,258,258,4096,W)],r.deflateInit=function(e,t){return V(e,t,g,15,8,0)},r.deflateInit2=V,r.deflateReset=q,r.deflateResetKeep=Y,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},r.deflate=function(e,t){var r,i,o,l;if(!e||!e.state||5>8&255),N(i,i.gzhead.time>>16&255),N(i,i.gzhead.time>>24&255),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(N(i,255&i.gzhead.extra.length),N(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(N(i,0),N(i,0),N(i,0),N(i,0),N(i,0),N(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),N(i,3),i.status=z);else{var h=g+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=z,U(i,h),0!==i.strstart&&(U(i,e.adler>>>16),U(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),D(e),o=i.pending,i.pending!==i.pending_buf_size));)N(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),D(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),D(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexo&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&D(e),i.pending+2<=i.pending_buf_size&&(N(i,255&e.adler),N(i,e.adler>>8&255),e.adler=0,i.status=z)):i.status=z),0!==i.pending){if(D(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&P(t)<=P(r)&&t!==c)return O(e,-5);if(666===i.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(F(e),0===e.lookahead)){if(t===u)return T;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(M(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?I:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?T:C}(i,t):3===i.strategy?function(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=S){if(F(e),e.lookahead<=S&&t===u)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=a._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(M(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(M(e,!0),0===e.strm.avail_out?I:R):e.last_lit&&(M(e,!1),0===e.strm.avail_out)?T:C}(i,t):n[i.level].func(i,t);if(p!==I&&p!==R||(i.status=666),p===T||p===I)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===C&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(B(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),D(e),0===e.avail_out))return i.last_flush=-1,d}return t!==c?d:i.wrap<=0?1:(2===i.wrap?(N(i,255&e.adler),N(i,e.adler>>8&255),N(i,e.adler>>16&255),N(i,e.adler>>24&255),N(i,255&e.total_in),N(i,e.total_in>>8&255),N(i,e.total_in>>16&255),N(i,e.total_in>>24&255)):(U(i,e.adler>>>16),U(i,65535&e.adler)),D(e),0=r.w_size&&(0===s&&(B(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,p-r.w_size,r.w_size,0),t=h,p=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,F(r);r.lookahead>=x;){for(n=r.strstart,a=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=w=v>>>24,p-=w,0===(w=v>>>16&255))E[a++]=65535&v;else{if(!(16&w)){if(0==(64&w)){v=m[(65535&v)+(h&(1<>>=w,p-=w),p<15&&(h+=A[n++]<>>=w=v>>>24,p-=w,!(16&(w=v>>>16&255))){if(0==(64&w)){v=g[(65535&v)+(h&(1<>>=w,p-=w,(w=a-o)<_){if(c<(w=_-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=f,(x=0)===d){if(x+=u-w,w>3,h&=(1<<(p-=k<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,c):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=a(r.check,F,2,0),k=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=30;break}if(k-=4,D=8+(15&(w>>>=4)),0===r.wbits)r.wbits=D;else if(D>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),k=w=0,r.mode=3;case 3:for(;k<32;){if(0===y)break e;y--,w+=h[g++]<>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=a(r.check,F,4,0)),k=w=0,r.mode=4;case 4:for(;k<16;){if(0===y)break e;y--,w+=h[g++]<>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=a(r.check,F,2,0)),k=w=0,r.mode=5;case 5:if(1024&r.flags){for(;k<16;){if(0===y)break e;y--,w+=h[g++]<>>8&255,r.check=a(r.check,F,2,0)),k=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(E=r.length)&&(E=y),E&&(r.head&&(D=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,g,E,D)),512&r.flags&&(r.check=a(r.check,h,E,g)),y-=E,g+=E,r.length-=E),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(E=0;D=h[g+E++],r.head&&D&&r.length<65536&&(r.head.name+=String.fromCharCode(D)),D&&E>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;k<32;){if(0===y)break e;y--,w+=h[g++]<>>=7&k,k-=7&k,r.mode=27;break}for(;k<3;){if(0===y)break e;y--,w+=h[g++]<>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6!==t)break;w>>>=2,k-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,k-=2;break;case 14:for(w>>>=7&k,k-=7&k;k<32;){if(0===y)break e;y--,w+=h[g++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,k=w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(E=r.length){if(y>>=5,k-=5,r.ndist=1+(31&w),w>>>=5,k-=5,r.ncode=4+(15&w),w>>>=4,k-=4,286>>=3,k-=3}for(;r.have<19;)r.lens[j[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},M=s(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,M){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,R=65535&L,!((C=L>>>24)<=k);){if(0===y)break e;y--,w+=h[g++]<>>=C,k-=C,r.lens[r.have++]=R;else{if(16===R){for(U=C+2;k>>=C,k-=C,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}D=r.lens[r.have-1],E=3+(3&w),w>>>=2,k-=2}else if(17===R){for(U=C+3;k>>=C)),w>>>=3,k-=3}else{for(U=C+7;k>>=C)),w>>>=7,k-=7}if(r.have+E>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;E--;)r.lens[r.have++]=D}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},M=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,M){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},M=s(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,M){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=y&&258<=v){e.next_out=b,e.avail_out=v,e.next_in=g,e.avail_in=y,r.hold=w,r.bits=k,o(e,x),b=e.next_out,p=e.output,v=e.avail_out,g=e.next_in,h=e.input,y=e.avail_in,w=r.hold,k=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;I=(L=r.lencode[w&(1<>>16&255,R=65535&L,!((C=L>>>24)<=k);){if(0===y)break e;y--,w+=h[g++]<>O)])>>>16&255,R=65535&L,!(O+(C=L>>>24)<=k);){if(0===y)break e;y--,w+=h[g++]<>>=O,k-=O,r.back+=O}if(w>>>=C,k-=C,r.back+=C,r.length=R,0===I){r.mode=26;break}if(32&I){r.back=-1,r.mode=12;break}if(64&I){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&I,r.mode=22;case 22:if(r.extra){for(U=r.extra;k>>=r.extra,k-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;I=(L=r.distcode[w&(1<>>16&255,R=65535&L,!((C=L>>>24)<=k);){if(0===y)break e;y--,w+=h[g++]<>O)])>>>16&255,R=65535&L,!(O+(C=L>>>24)<=k);){if(0===y)break e;y--,w+=h[g++]<>>=O,k-=O,r.back+=O}if(w>>>=C,k-=C,r.back+=C,64&I){e.msg="invalid distance code",r.mode=30;break}r.offset=R,r.extra=15&I,r.mode=24;case 24:if(r.extra){for(U=r.extra;k>>=r.extra,k-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break e;if(E=x-v,r.offset>E){if((E=r.offset-E)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}z=E>r.wnext?(E-=r.wnext,r.wsize-E):r.wnext-E,E>r.length&&(E=r.length),T=r.window}else T=p,z=b-r.offset,E=r.length;for(vy?(w=N[U+d[S]],P[B+d[S]]):(w=96,0),h=1<>C)+(p-=h)]=v<<24|w<<16|k|0,0!==p;);for(h=1<>=1;if(0!==h?(O&=h-1,O+=h):O=0,S++,0==--D[x]){if(x===E)break;x=t[r+d[S]]}if(z>>7)]}function N(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function U(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function j(e,t,r){var n,i,a=new Array(p+1),o=0;for(n=1;n<=p;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=F(a[s]++,s))}}function W(e){var t;for(t=0;t>1;1<=r;r--)Y(e,a,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Y(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,Y(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?X(e,t,r,n):4===e.strategy||s===o?(U(e,2+(n?1:0),3),q(e,A,E)):(U(e,4+(n?1:0),3),function(e,t,r,n){var i;for(U(e,t-257,5),U(e,r-1,5),U(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+u+1)]++,e.dyn_dtree[2*M(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){U(e,2,3),L(e,b,A),function(e){16===e.bi_valid?(N(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,r("b639").Buffer,r("c8ba"))},d5e0:function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";var t={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},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(n,i){var a,o,s=n.indentUnit,l={},u=i.htmlMode?t:r;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function r(r){return t.tokenize=r,r(e,t)}var n,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(p("atom","]]>")):null:e.match("--")?r(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(a=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==i?(n=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),n?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function f(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=d,a=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return a="equals",null;if("<"==r){t.tokenize=d,t.state=v,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=h(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,r){while(!t.eol())if(t.next()==e){r.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(r,n){while(!r.eol()){if(r.match(t)){n.tokenize=d;break}r.next()}return e}}function m(e){return function(t,r){var n;while(null!=(n=t.next())){if("<"==n)return r.tokenize=m(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=d;break}return r.tokenize=m(e-1),r.tokenize(t,r)}}return"meta"}}function g(e,t,r){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function b(e){e.context&&(e.context=e.context.prev)}function y(e,t){var r;while(1){if(!e.context)return;if(r=e.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(t))return;b(e)}}function v(e,t,r){return"openTag"==e?(r.tagStart=t.column(),w):"closeTag"==e?k:v}function w(e,t,r){return"word"==e?(r.tagName=t.current(),o="tag",S):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",S(e,t,r)):(o="error",w)}function k(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&b(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(o="tag",_):(o="tag error",x)}return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",_(e,t,r)):(o="error",x)}function _(e,t,r){return"endTag"!=e?(o="error",_):(b(r),v)}function x(e,t,r){return o="error",_(e,t,r)}function S(e,t,r){if("word"==e)return o="attribute",A;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(n)?y(r,n):(y(r,n),r.context=new g(r,n,i==r.indented)),v}return o="error",S}function A(e,t,r){return"equals"==e?E:(l.allowMissing||(o="error"),S(e,t,r))}function E(e,t,r){return"string"==e?z:"word"==e&&l.allowUnquoted?(o="string",S):(o="error",S(e,t,r))}function z(e,t,r){return"string"==e?z:S(e,t,r)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:v,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;a=null;var r=t.tokenize(e,t);return(r||a)&&"comment"!=r&&(o=null,t.state=t.state(a||r,e,t),o&&(r="error"==o?r+" error":o)),r},indent:function(t,r,n){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)t.push(r.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},d69f:function(e,t,r){(function(e){e(r("56b3"),r("d5e0"),r("f9d4"),r("7b00"))})((function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function r(e,t,r){var n=e.current(),i=n.search(t);return i>-1?e.backUp(n.length-i):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}var n={};function i(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function a(e,t){var r=e.match(i(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"","i")}function s(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),i=e[r],a=i.length-1;a>=0;a--)n.unshift(i[a])}function l(e,t){for(var r=0;r=0;f--)u.script.unshift(["type",d[f].matches,d[f].mode]);function h(t,i){var s,c=a.token(t,i.htmlState),d=/\btag\b/.test(c);if(d&&!/[<>\s\/]/.test(t.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&d&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var p=">"==t.current()&&l(u[f[1]],f[2]),m=e.getMode(n,p),g=o(f[1],!0),b=o(f[1],!1);i.token=function(e,t){return e.match(g,!1)?(t.token=h,t.localState=t.localMode=null,null):r(e,b,t.localMode.token(e,t.localState))},i.localMode=m,i.localState=e.startState(m,a.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return c}return{startState:function(){var t=e.startState(a);return{token:h,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(a,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?a.indent(t.htmlState,r,n):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||a}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}))},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},eb0c:function(e,t,r){(function(e){e(r("56b3"))})((function(e){"use strict";e.multiplexingMode=function(t){var r=Array.prototype.slice.call(arguments,1);function n(e,t,r,n){if("string"==typeof t){var i=e.indexOf(t,r);return n&&i>-1?i+t.length:i}var a=t.exec(r?e.slice(r):e);return a?a.index+r+(n?a[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(r){return{outer:e.copyState(t,r.outer),innerActive:r.innerActive,inner:r.innerActive&&e.copyState(r.innerActive.mode,r.inner)}},token:function(i,a){if(a.innerActive){var o=a.innerActive;u=i.string;if(!o.close&&i.sol())return a.innerActive=a.inner=null,this.token(i,a);f=o.close?n(u,o.close,i.pos,o.parseDelimiters):-1;if(f==i.pos&&!o.parseDelimiters)return i.match(o.close),a.innerActive=a.inner=null,o.delimStyle&&o.delimStyle+" "+o.delimStyle+"-close";f>-1&&(i.string=u.slice(0,f));var s=o.mode.token(i,a.inner);return f>-1&&(i.string=u),f==i.pos&&o.parseDelimiters&&(a.innerActive=a.inner=null),o.innerStyle&&(s=s?s+" "+o.innerStyle:o.innerStyle),s}for(var l=1/0,u=i.string,c=0;c!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e){var t,r=!1,n=!1;while(null!=(t=e.next())){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function m(e,t,r){return n=e,i=r,t}function g(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=b(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):et(e,t,1)?(p(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=v,v(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(c))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(f.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var i=d[n];return m(i.type,i.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",n)}return m("variable","variable",n)}}function b(e){return function(t,r){var n,i=!1;if(s&&"@"==t.peek()&&t.match(h))return r.tokenize=g,m("jsonld-keyword","meta");while(null!=(n=t.next())){if(n==e&&!i)break;i=!i&&"\\"==n}return i||(r.tokenize=g),m("string","string")}}function y(e,t){var r,n=!1;while(r=e.next()){if("/"==r&&n){t.tokenize=g;break}n="*"==r}return m("comment","comment")}function v(e,t){var r,n=!1;while(null!=(r=e.next())){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r}return m("quasi","string-2",e.current())}var w="([{}])";function k(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(u){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,a=!1,o=r-1;o>=0;--o){var s=e.string.charAt(o),l=w.indexOf(s);if(l>=0&&l<3){if(!i){++o;break}if(0==--i){"("==s&&(a=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))a=!0;else if(/["'\/`]/.test(s))for(;;--o){if(0==o)return;var d=e.string.charAt(o-1);if(d==s&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(a&&!i){++o;break}}a&&!i&&(t.fatArrowAt=o)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function x(e,t,r,n,i,a){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=a,null!=n&&(this.align=n)}function S(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function A(e,t,r,n,i){var a=e.cc;E.state=e,E.stream=i,E.marked=null,E.cc=a,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);while(1){var o=a.length?a.pop():l?K:W;if(o(r,n)){while(a.length&&a[a.length-1].lex)a.pop()();return E.marked?E.marked:"variable"==r&&S(e,n)?"variable-2":t}}}var E={state:null,column:null,marked:null,cc:null};function z(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function T(){return z.apply(null,arguments),!0}function C(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function I(e){var t=E.state;if(E.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=R(e,t.context);if(null!=n)return void(t.context=n)}else if(!C(e,t.localVars))return void(t.localVars=new B(e,t.localVars));r.globalVars&&!C(e,t.globalVars)&&(t.globalVars=new B(e,t.globalVars))}function R(e,t){if(t){if(t.block){var r=R(e,t.prev);return r?r==t.prev?t:new P(r,t.vars,!0):null}return C(e,t.vars)?t:new P(t.prev,new B(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function P(e,t,r){this.prev=e,this.vars=t,this.block=r}function B(e,t){this.name=e,this.next=t}var D=new B("this",new B("arguments",null));function M(){E.state.context=new P(E.state.context,E.state.localVars,!1),E.state.localVars=D}function N(){E.state.context=new P(E.state.context,E.state.localVars,!0),E.state.localVars=null}function U(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function L(e,t){var r=function(){var r=E.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new x(n,E.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function F(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function j(e){function t(r){return r==e?T():";"==e||"}"==r||")"==r||"]"==r?z():T(t)}return t}function W(e,t){return"var"==e?T(L("vardef",t),Se,j(";"),F):"keyword a"==e?T(L("form"),q,W,F):"keyword b"==e?T(L("form"),W,F):"keyword d"==e?E.stream.match(/^\s*$/,!1)?T():T(L("stat"),$,j(";"),F):"debugger"==e?T(j(";")):"{"==e?T(L("}"),N,de,F,U):";"==e?T():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==F&&E.state.cc.pop()(),T(L("form"),q,W,F,Ie)):"function"==e?T(Be):"for"==e?T(L("form"),Re,W,F):"class"==e||u&&"interface"==t?(E.marked="keyword",T(L("form","class"==e?e:t),Le,F)):"variable"==e?u&&"declare"==t?(E.marked="keyword",T(W)):u&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?T(Xe):"type"==t?T(Me,j("operator"),ge,j(";")):T(L("form"),Ae,j("{"),L("}"),de,F,F)):u&&"namespace"==t?(E.marked="keyword",T(L("form"),K,W,F)):u&&"abstract"==t?(E.marked="keyword",T(W)):T(L("stat"),ie):"switch"==e?T(L("form"),q,j("{"),L("}","switch"),N,de,F,F,U):"case"==e?T(K,j(":")):"default"==e?T(j(":")):"catch"==e?T(L("form"),M,Z,W,F,U):"export"==e?T(L("stat"),Ze,F):"import"==e?T(L("stat"),Ye,F):"async"==e?T(W):"@"==t?T(K,W):z(L("stat"),K,j(";"),F)}function Z(e){if("("==e)return T(Ne,j(")"))}function K(e,t){return V(e,t,!1)}function Y(e,t){return V(e,t,!0)}function q(e){return"("!=e?z():T(L(")"),$,j(")"),F)}function V(e,t,r){if(E.state.fatArrowAt==E.stream.start){var n=r?ee:Q;if("("==e)return T(M,L(")"),ue(Ne,")"),F,j("=>"),n,U);if("variable"==e)return z(M,Ae,j("=>"),n,U)}var i=r?G:H;return _.hasOwnProperty(e)?T(i):"function"==e?T(Be,i):"class"==e||u&&"interface"==t?(E.marked="keyword",T(L("form"),Ue,F)):"keyword c"==e||"async"==e?T(r?Y:K):"("==e?T(L(")"),$,j(")"),F,i):"operator"==e||"spread"==e?T(r?Y:K):"["==e?T(L("]"),Ge,F,i):"{"==e?ce(oe,"}",null,i):"quasi"==e?z(X,i):"new"==e?T(te(r)):"import"==e?T(K):T()}function $(e){return e.match(/[;\}\)\],]/)?z():z(K)}function H(e,t){return","==e?T($):G(e,t,!1)}function G(e,t,r){var n=0==r?H:G,i=0==r?K:Y;return"=>"==e?T(M,r?ee:Q,U):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?T(n):u&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(L(">"),ue(ge,">"),F,n):"?"==t?T(K,j(":"),i):T(i):"quasi"==e?z(X,n):";"!=e?"("==e?ce(Y,")","call",n):"."==e?T(ae,n):"["==e?T(L("]"),$,j("]"),F,n):u&&"as"==t?(E.marked="keyword",T(ge,n)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),T(i)):void 0:void 0}function X(e,t){return"quasi"!=e?z():"${"!=t.slice(t.length-2)?T(X):T(K,J)}function J(e){if("}"==e)return E.marked="string-2",E.state.tokenize=v,T(X)}function Q(e){return k(E.stream,E.state),z("{"==e?W:K)}function ee(e){return k(E.stream,E.state),z("{"==e?W:Y)}function te(e){return function(t){return"."==t?T(e?ne:re):"variable"==t&&u?T(ke,e?G:H):z(e?Y:K)}}function re(e,t){if("target"==t)return E.marked="keyword",T(H)}function ne(e,t){if("target"==t)return E.marked="keyword",T(G)}function ie(e){return":"==e?T(F,W):z(H,j(";"),F)}function ae(e){if("variable"==e)return E.marked="property",T()}function oe(e,t){return"async"==e?(E.marked="property",T(oe)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?T(se):(u&&E.state.fatArrowAt==E.stream.start&&(r=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+r[0].length),T(le))):"number"==e||"string"==e?(E.marked=s?"property":E.style+" property",T(le)):"jsonld-keyword"==e?T(le):u&&O(t)?(E.marked="keyword",T(oe)):"["==e?T(K,fe,j("]"),le):"spread"==e?T(Y,le):"*"==t?(E.marked="keyword",T(oe)):":"==e?z(le):void 0;var r}function se(e){return"variable"!=e?z(le):(E.marked="property",T(Be))}function le(e){return":"==e?T(Y):"("==e?z(Be):void 0}function ue(e,t,r){function n(i,a){if(r?r.indexOf(i)>-1:","==i){var o=E.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),T((function(r,n){return r==t||n==t?z():z(e)}),n)}return i==t||a==t?T():r&&r.indexOf(";")>-1?z(e):T(j(t))}return function(r,i){return r==t||i==t?T():z(e,n)}}function ce(e,t,r){for(var n=3;n"),ge):void 0}function be(e){if("=>"==e)return T(ge)}function ye(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",T(ye)):"?"==t||"number"==e||"string"==e?T(ye):":"==e?T(ge):"["==e?T(j("variable"),he,j("]"),ye):"("==e?z(De,ye):void 0}function ve(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?T(ve):":"==e?T(ge):"spread"==e?T(ve):z(ge)}function we(e,t){return"<"==t?T(L(">"),ue(ge,">"),F,we):"|"==t||"."==e||"&"==t?T(ge):"["==e?T(ge,j("]"),we):"extends"==t||"implements"==t?(E.marked="keyword",T(ge)):"?"==t?T(ge,j(":"),ge):void 0}function ke(e,t){if("<"==t)return T(L(">"),ue(ge,">"),F,we)}function _e(){return z(ge,xe)}function xe(e,t){if("="==t)return T(ge)}function Se(e,t){return"enum"==t?(E.marked="keyword",T(Xe)):z(Ae,fe,Te,Ce)}function Ae(e,t){return u&&O(t)?(E.marked="keyword",T(Ae)):"variable"==e?(I(t),T()):"spread"==e?T(Ae):"["==e?ce(ze,"]"):"{"==e?ce(Ee,"}"):void 0}function Ee(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?T(Ae):"}"==e?z():"["==e?T(K,j("]"),j(":"),Ee):T(j(":"),Ae,Te)):(I(t),T(Te))}function ze(){return z(Ae,Te)}function Te(e,t){if("="==t)return T(Y)}function Ce(e){if(","==e)return T(Se)}function Ie(e,t){if("keyword b"==e&&"else"==t)return T(L("form","else"),W,F)}function Re(e,t){return"await"==t?T(Re):"("==e?T(L(")"),Oe,F):void 0}function Oe(e){return"var"==e?T(Se,Pe):"variable"==e?T(Pe):z(Pe)}function Pe(e,t){return")"==e?T():";"==e?T(Pe):"in"==t||"of"==t?(E.marked="keyword",T(K,Pe)):z(K,Pe)}function Be(e,t){return"*"==t?(E.marked="keyword",T(Be)):"variable"==e?(I(t),T(Be)):"("==e?T(M,L(")"),ue(Ne,")"),F,pe,W,U):u&&"<"==t?T(L(">"),ue(_e,">"),F,Be):void 0}function De(e,t){return"*"==t?(E.marked="keyword",T(De)):"variable"==e?(I(t),T(De)):"("==e?T(M,L(")"),ue(Ne,")"),F,pe,U):u&&"<"==t?T(L(">"),ue(_e,">"),F,De):void 0}function Me(e,t){return"keyword"==e||"variable"==e?(E.marked="type",T(Me)):"<"==t?T(L(">"),ue(_e,">"),F):void 0}function Ne(e,t){return"@"==t&&T(K,Ne),"spread"==e?T(Ne):u&&O(t)?(E.marked="keyword",T(Ne)):u&&"this"==e?T(fe,Te):z(Ae,fe,Te)}function Ue(e,t){return"variable"==e?Le(e,t):Fe(e,t)}function Le(e,t){if("variable"==e)return I(t),T(Fe)}function Fe(e,t){return"<"==t?T(L(">"),ue(_e,">"),F,Fe):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(E.marked="keyword"),T(u?ge:K,Fe)):"{"==e?T(L("}"),je,F):void 0}function je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&O(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",T(je)):"variable"==e||"keyword"==E.style?(E.marked="property",T(We,je)):"number"==e||"string"==e?T(We,je):"["==e?T(K,fe,j("]"),We,je):"*"==t?(E.marked="keyword",T(je)):u&&"("==e?z(De,je):";"==e||","==e?T(je):"}"==e?T():"@"==t?T(K,je):void 0}function We(e,t){if("?"==t)return T(We);if(":"==e)return T(ge,Te);if("="==t)return T(Y);var r=E.state.lexical.prev,n=r&&"interface"==r.info;return z(n?De:Be)}function Ze(e,t){return"*"==t?(E.marked="keyword",T(He,j(";"))):"default"==t?(E.marked="keyword",T(K,j(";"))):"{"==e?T(ue(Ke,"}"),He,j(";")):z(W)}function Ke(e,t){return"as"==t?(E.marked="keyword",T(j("variable"))):"variable"==e?z(Y,Ke):void 0}function Ye(e){return"string"==e?T():"("==e?z(K):z(qe,Ve,He)}function qe(e,t){return"{"==e?ce(qe,"}"):("variable"==e&&I(t),"*"==t&&(E.marked="keyword"),T($e))}function Ve(e){if(","==e)return T(qe,Ve)}function $e(e,t){if("as"==t)return E.marked="keyword",T(qe)}function He(e,t){if("from"==t)return E.marked="keyword",T(K)}function Ge(e){return"]"==e?T():z(ue(Y,"]"))}function Xe(){return z(L("form"),Ae,j("{"),L("}"),ue(Je,"}"),F,F)}function Je(){return z(Ae,Te)}function Qe(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function et(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return U.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-a,0,"block",!1),localVars:r.localVars,context:r.localVars&&new P(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),k(e,t)),t.tokenize!=y&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",A(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==y||t.tokenize==v)return e.Pass;if(t.tokenize!=g)return 0;var i,s=n&&n.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==F)l=l.prev;else if(c!=Ie)break}while(("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==H||i==G)&&!/^[,\.=+\-*:?[\(]/.test(n)))l=l.prev;o&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+a:"stat"==d?l.indented+(Qe(t,n)?o||a:0):"switch"!=l.info||f||0==r.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:a):l.indented+(/^(?:case|default)\b/.test(n)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=K&&t!=Y||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}))}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-5fb3a2ba.79829237.js b/gen/src/main/resources/public/static/js/chunk-5fb3a2ba.79829237.js deleted file mode 100644 index a75ab7f..0000000 --- a/gen/src/main/resources/public/static/js/chunk-5fb3a2ba.79829237.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fb3a2ba"],{"067a":function(a,t,e){"use strict";e.r(t);var o=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"app-container code-gen"},[e("el-form",{ref:"genForm",staticClass:"gen-form",attrs:{model:a.clientParam,size:"mini","label-width":"150px"}},[e("el-form-item",{attrs:{label:"选择数据源",prop:"datasourceConfigId",rules:{required:!0,message:"请选择数据源"}}},[e("el-select",{attrs:{placeholder:"选择数据源"},on:{change:a.onDataSourceChange},model:{value:a.clientParam.datasourceConfigId,callback:function(t){a.$set(a.clientParam,"datasourceConfigId",t)},expression:"clientParam.datasourceConfigId"}},a._l(a.datasourceConfigList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.dbName+"("+t.host+")",value:t.id}},[e("span",{staticStyle:{float:"left"}},[a._v(a._s(t.dbName+"("+t.host+")")+" ")]),a._v(" "),e("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e("el-tooltip",{attrs:{placement:"top",content:"Duplicate"}},[e("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-document-copy"},on:{click:function(e){return e.stopPropagation(),a.onDataSourceDuplicate(t)}}})],1),a._v(" "),e("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(e){return e.stopPropagation(),a.onDataSourceUpdate(t)}}}),a._v(" "),e("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(e){return e.stopPropagation(),a.onDataSourceDelete(t)}}})],1)])})),1),a._v(" "),e("el-button",{attrs:{type:"text"},on:{click:a.onDataSourceAdd}},[a._v("新建数据源")])],1),a._v(" "),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"包名(package)"}},[e("el-input",{attrs:{placeholder:"可选,如:com.gitee.xxx","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.packageName,callback:function(t){a.$set(a.clientParam,"packageName",t)},expression:"clientParam.packageName"}})],1)],1),a._v(" "),e("el-row",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("h4",[a._v("选择表")]),a._v(" "),e("el-input",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{"prefix-icon":"el-icon-search",clearable:"",size:"mini",placeholder:"过滤表"},model:{value:a.tableSearch,callback:function(t){a.tableSearch=t},expression:"tableSearch"}}),a._v(" "),e("el-table",{attrs:{data:a.tableListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.tableRowClassName},on:{"selection-change":a.onTableListSelect}},[e("el-table-column",{attrs:{type:"selection"}}),a._v(" "),e("el-table-column",{attrs:{prop:"tableName",label:"表名"}})],1)],1),a._v(" "),e("el-col",{attrs:{span:12}},[e("h4",[a._v("选择模板")]),a._v(" "),e("el-table",{attrs:{data:a.templateListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall()},on:{"selection-change":a.onTemplateListSelect}},[e("el-table-column",{attrs:{type:"selection"}}),a._v(" "),e("el-table-column",{attrs:{prop:"name",label:"模板名称"}})],1),a._v(" "),e("el-button",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{type:"primary"},on:{click:a.onGenerate}},[a._v("生成代码")])],1)],1),a._v(" "),e("el-dialog",{attrs:{title:a.datasourceTitle,visible:a.datasourceDlgShow},on:{"update:visible":function(t){a.datasourceDlgShow=t}}},[e("el-form",{ref:"datasourceForm",attrs:{model:a.datasourceFormData,rules:a.datasourceRule,size:"mini","label-width":"120px"}},[e("el-form-item",{attrs:{label:"数据库类型"}},[e("el-select",{attrs:{filterable:"","default-first-option":""},model:{value:a.datasourceFormData.dbType,callback:function(t){a.$set(a.datasourceFormData,"dbType",t)},expression:"datasourceFormData.dbType"}},a._l(a.dbTypeConfig,(function(a){return e("el-option",{key:a.dbType,attrs:{label:a.label,value:a.dbType}})})),1)],1),a._v(" "),e("el-form-item",{attrs:{label:"Host",prop:"host"}},[e("el-input",{attrs:{placeholder:"地址","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.host,callback:function(t){a.$set(a.datasourceFormData,"host",t)},expression:"datasourceFormData.host"}})],1),a._v(" "),e("el-form-item",{attrs:{label:"Port",prop:"port"}},[e("el-input",{attrs:{placeholder:"端口","show-word-limit":"",maxlength:"10"},model:{value:a.datasourceFormData.port,callback:function(t){a.$set(a.datasourceFormData,"port",t)},expression:"datasourceFormData.port"}})],1),a._v(" "),e("el-form-item",{attrs:{label:"Database",prop:"dbName"}},[e("el-input",{attrs:{placeholder:"数据库","show-word-limit":"",maxlength:"64"},model:{value:a.datasourceFormData.dbName,callback:function(t){a.$set(a.datasourceFormData,"dbName",t)},expression:"datasourceFormData.dbName"}})],1),a._v(" "),e("el-form-item",{attrs:{label:"Username",prop:"username"}},[e("el-input",{attrs:{placeholder:"用户名","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.username,callback:function(t){a.$set(a.datasourceFormData,"username",t)},expression:"datasourceFormData.username"}})],1),a._v(" "),e("el-form-item",{attrs:{label:"Password",prop:"password"}},[e("el-input",{attrs:{type:"password",placeholder:"密码","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.password,callback:function(t){a.$set(a.datasourceFormData,"password",t)},expression:"datasourceFormData.password"}})],1),a._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"success"},on:{click:a.onDatasourceTest}},[a._v("测试连接")]),a._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:a.onDatasourceSave}},[a._v("保存")])],1)],1)],1)],1)},r=[],l={data:function(){return{showTable:!1,clientParam:{datasourceConfigId:"",tableNames:[],templateConfigIdList:[],packageName:""},tableSearch:"",datasourceConfigList:[],tableListData:[],templateListData:[],datasourceTitle:"新建连接",datasourceDlgShow:!1,datasourceFormData:{id:0,dbType:1,host:"",port:"",username:"",password:"",dbName:""},dbTypeConfig:[],datasourceRule:{host:[{required:!0,message:"不能为空",trigger:"blur"}],port:[{required:!0,message:"不能为空",trigger:"blur"}],username:[{required:!0,message:"不能为空",trigger:"blur"}],password:[{required:!0,message:"不能为空",trigger:"blur"}],dbName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadDataSource(),this.loadTemplate(),this.loadDbType()},methods:{tableRowClassName:function(a){var t=a.row;a.index;return t.hidden=!1,0===this.tableSearch.length||t.tableName&&t.tableName.indexOf(this.tableSearch)>-1?"":(t.hidden=!0,"hidden-row")},loadDataSource:function(){var a=this;this.post("/datasource/list",{},(function(t){a.datasourceConfigList=t.data}))},loadTemplate:function(){var a=this;this.post("/template/list",{},(function(t){a.templateListData=t.data}))},loadDbType:function(){var a=this;this.post("/datasource/dbtype",{},(function(t){a.dbTypeConfig=t.data}))},onDataSourceAdd:function(){this.datasourceTitle="新建连接",this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onTableListSelect:function(a){this.clientParam.tableNames=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.tableName}))},onTemplateListSelect:function(a){this.clientParam.templateConfigIdList=a.map((function(a){return a.id}))},onDataSourceChange:function(a){var t=this;this.clientParam.datasourceConfigId=a,this.post("/datasource/table/".concat(a),{},(function(a){t.showTable=!0,t.tableListData=a.data}))},onDataSourceUpdate:function(a){this.datasourceTitle="修改连接",Object.assign(this.datasourceFormData,a),this.datasourceDlgShow=!0},onDataSourceDuplicate:function(a){this.datasourceTitle="".concat(a.host," Copy"),Object.assign(this.datasourceFormData,a),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onDataSourceDelete:function(a){this.confirm("确认要删除 ".concat(a.dbName," 吗?"),(function(t){var e={id:a.id};this.post("/datasource/del",e,(function(){t(),location.reload()}))}))},onGenerate:function(){var a=this;this.$refs.genForm.validate((function(t){if(t){if(0===a.clientParam.tableNames.length)return void a.tip("请勾选表","error");if(0===a.clientParam.templateConfigIdList.length)return void a.tip("请勾选模板","error");var e=JSON.stringify(a.clientParam);a.goRoute("result/".concat(e))}}))},onDatasourceTest:function(){var a=this;this.$refs.datasourceForm.validate((function(t){t&&a.post("/datasource/test",a.datasourceFormData,(function(t){a.tip("连接成功")}))}))},onDatasourceSave:function(){var a=this;this.$refs.datasourceForm.validate((function(t){t&&a.post("/datasource/test",a.datasourceFormData,(function(t){a.datasourceFormData.id?a.post("/datasource/update",a.datasourceFormData,(function(a){location.reload()})):a.post("/datasource/add",a.datasourceFormData,(function(t){a.tip("添加成功"),a.loadDataSource(),a.datasourceDlgShow=!1}))}))}))}}},s=l,i=(e("1764"),e("2877")),n=Object(i["a"])(s,o,r,!1,null,null,null);t["default"]=n.exports},1764:function(a,t,e){"use strict";var o=e("aa8f"),r=e.n(o);r.a},aa8f:function(a,t,e){}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-70c97e3b.3c1cab1d.js b/gen/src/main/resources/public/static/js/chunk-70c97e3b.3c1cab1d.js deleted file mode 100644 index 9dc8cc7..0000000 --- a/gen/src/main/resources/public/static/js/chunk-70c97e3b.3c1cab1d.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70c97e3b"],{"2c8b":function(e,t,a){},"92a7":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-backtop"),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:16}},[a("el-form",{ref:"dialogForm",attrs:{rules:e.formRules,model:e.formData,size:"mini","label-position":"top"}},[a("el-form-item",{attrs:{prop:"name",label:"模板名称"}},[a("el-input",{attrs:{"show-word-limit":"",maxlength:"64"},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"fileName",label:"文件名称"}},[a("el-input",{attrs:{placeholder:"可使用velocity变量","show-word-limit":"",maxlength:"100"},model:{value:e.formData.fileName,callback:function(t){e.$set(e.formData,"fileName",t)},expression:"formData.fileName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"content",label:"模板内容"}},[a("el-link",{attrs:{type:"primary",underline:!1,href:"https://www.cnblogs.com/codingsilence/archive/2011/03/29/2146580.html",target:"_blank"}},[e._v("Velocity语法")]),e._v(" "),a("codemirror",{ref:"editor",attrs:{options:e.cmOptions},model:{value:e.formData.content,callback:function(t){e.$set(e.formData,"content",t)},expression:"formData.content"}})],1)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onSave}},[e._v("保 存")]),e._v(" "),a("el-button",{on:{click:function(t){return e.goRoute("/template/list")}}},[e._v("返 回")])],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("h3",[e._v("Velocity变量")]),e._v(" "),a("p",{staticClass:"velocity-tip"},[e._v("\n 点击变量直接插入\n ")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.onTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.velocityConfig,(function(e){return a("el-tab-pane",{key:e.name,attrs:{label:e.label,name:e.name,content:e}})})),1),e._v(" "),e._l(e.treeData,(function(t){return a("div",{key:t.expression,staticClass:"velocity-var"},[t.children?a("div",[a("h4",[e._v(e._s(t.expression))]),e._v(" "),e._l(t.children,(function(t){return a("li",{key:t.expression},[a("a",{on:{click:function(a){return e.onExpressionClick(t.expression)}}},[e._v(e._s(t.expression))]),e._v(":"+e._s(t.text)+"\n ")])}))],2):a("div",[a("li",[a("a",{on:{click:function(a){return e.onExpressionClick(t.expression)}}},[e._v(e._s(t.expression))]),e._v(":"+e._s(t.text)+"\n ")])])])}))],2)],1)],1)},r=[],i=a("8f94");a("bbca");a("fe46");var o={components:{codemirror:i["codemirror"]},data:function(){return{formData:{id:0,name:"",fileName:"",content:""},formRules:{name:[{required:!0,message:"不能为空",trigger:"blur"}],fileName:[{required:!0,message:"不能为空",trigger:"blur"}],content:[{required:!0,message:"不能为空",trigger:"blur"}]},cmOptions:{value:"",mode:"text/velocity",theme:"neat",lineNumbers:!0,readOnly:!1},isVelocityBarFixed:!1,activeName:"java",treeData:[],velocityConfig:[],defaultProps:{children:"children",label:"text"}}},created:function(){var e=this.$route.params.id||0;e>0&&this.post("/template/get/".concat(e),{},(function(e){this.formData=e.data})),this.loadVelocityVar()},methods:{loadVelocityVar:function(){var e=this;this.getFile("velocity/java.json?q=".concat((new Date).getTime()),(function(t){e.velocityConfig.push({name:"java",label:"Java变量",data:t.data}),e.treeData=t.data})),this.getFile("velocity/csharp.json?q=".concat((new Date).getTime()),(function(t){e.velocityConfig.push({name:"csharp",label:"C#变量",data:t.data})}))},onExpressionClick:function(e){var t=this.$refs.editor.codemirror;t.replaceSelection(e),t.focus()},onSave:function(){var e=this;this.$refs.dialogForm.validate((function(t){if(t){var a=e.formData.id?"update":"add",n="/template/".concat(a);e.post(n,e.formData,(function(t){"add"===a&&(e.formData.id=t.data.id),e.tip("保存成功")}))}}))},onTabClick:function(e){var t=e.$attrs.content;this.treeData=t.data}}},l=o,s=(a("acc7"),a("2877")),c=Object(s["a"])(l,n,r,!1,null,null,null);t["default"]=c.exports},acc7:function(e,t,a){"use strict";var n=a("2c8b"),r=a.n(n);r.a},bbca:function(e,t,a){},fe46:function(e,t,a){(function(e){e(a("56b3"))})((function(e){"use strict";e.defineMode("velocity",(function(){function e(e){for(var t={},a=e.split(" "),n=0;n!?:\/|]/;function i(e,t,a){return t.tokenize=a,a(e,t)}function o(e,o){var u=o.beforeParams;o.beforeParams=!1;var f=e.next();if("'"==f&&!o.inString&&o.inParams)return o.lastTokenWasBuiltin=!1,i(e,o,l(f));if('"'!=f){if(/[\[\]{}\(\),;\.]/.test(f))return"("==f&&u?o.inParams=!0:")"==f&&(o.inParams=!1,o.lastTokenWasBuiltin=!0),null;if(/\d/.test(f))return o.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==f&&e.eat("*"))return o.lastTokenWasBuiltin=!1,i(e,o,s);if("#"==f&&e.match(/ *\[ *\[/))return o.lastTokenWasBuiltin=!1,i(e,o,c);if("#"==f&&e.eat("#"))return o.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==f)return e.eatWhile(/[\w\d\$_\.{}-]/),n&&n.propertyIsEnumerable(e.current())?"keyword":(o.lastTokenWasBuiltin=!0,o.beforeParams=!0,"builtin");if(r.test(f))return o.lastTokenWasBuiltin=!1,e.eatWhile(r),"operator";e.eatWhile(/[\w\$_{}@]/);var m=e.current();return t&&t.propertyIsEnumerable(m)?"keyword":a&&a.propertyIsEnumerable(m)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!a||!a.propertyIsEnumerable(m.toLowerCase()))?(o.beforeParams=!0,o.lastTokenWasBuiltin=!1,"keyword"):o.inString?(o.lastTokenWasBuiltin=!1,"string"):e.pos>m.length&&"."==e.string.charAt(e.pos-m.length-1)&&o.lastTokenWasBuiltin?"builtin":(o.lastTokenWasBuiltin=!1,null)}return o.lastTokenWasBuiltin=!1,o.inString?(o.inString=!1,"string"):o.inParams?i(e,o,l(f)):void 0}function l(e){return function(t,a){var n,r=!1,i=!1;while(null!=(n=t.next())){if(n==e&&!r){i=!0;break}if('"'==e&&"$"==t.peek()&&!r){a.inString=!0,i=!0;break}r=!r&&"\\"==n}return i&&(a.tokenize=o),"string"}}function s(e,t){var a,n=!1;while(a=e.next()){if("#"==a&&n){t.tokenize=o;break}n="*"==a}return"comment"}function c(e,t){var a,n=0;while(a=e.next()){if("#"==a&&2==n){t.tokenize=o;break}"]"==a?n++:" "!=a&&(n=0)}return"meta"}return{startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}})),e.defineMIME("text/velocity","velocity")}))}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-74aeca77.f3100fa9.js b/gen/src/main/resources/public/static/js/chunk-74aeca77.f3100fa9.js new file mode 100644 index 0000000..c3657d9 --- /dev/null +++ b/gen/src/main/resources/public/static/js/chunk-74aeca77.f3100fa9.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74aeca77"],{"84f25":function(t,o,e){"use strict";e.r(o);var a=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"app-container"},[e("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:t.onTableAdd}},[t._v("新增模板组")]),t._v(" "),e("el-table",{attrs:{data:t.tableData,border:"","highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"groupName",label:"模板组名称"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(o){return[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.onSelectTemplate(o.row)}}},[t._v("查看模板")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.onTableUpdate(o.row)}}},[t._v("修改")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.onTableDelete(o.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("el-dialog",{attrs:{title:t.groupTitle,visible:t.groupDlgShow},on:{"update:visible":function(o){t.groupDlgShow=o}}},[e("el-form",{ref:"dialogForm",attrs:{model:t.formData,rules:t.formRules,size:"mini","label-width":"120px"}},[e("el-form-item",{attrs:{prop:"name",label:"模板组名称"}},[e("el-input",{attrs:{"show-word-limit":"",maxlength:"100"},model:{value:t.formData.groupName,callback:function(o){t.$set(t.formData,"groupName",o)},expression:"formData.groupName"}})],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("保 存")])],1)],1)],1)],1)},i=[],n={data:function(){return{tableData:[],groupTitle:"",groupDlgShow:!1,formData:{id:0,groupName:""},formRules:{groupName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadTable()},methods:{loadTable:function(){this.post("/group/list",{},(function(t){this.tableData=t.data}))},onTableAdd:function(t){this.groupTitle="增加模板组",this.formData={id:0,groupName:""},this.groupDlgShow=!0},onTableUpdate:function(t){this.groupTitle="修改模板组",this.post("/group/get/".concat(t.id),{},(function(t){this.formData=t.data})),this.groupDlgShow=!0},onTableDelete:function(t){this.confirm("确认要删除【".concat(t.groupName,"】吗?"),(function(o){this.post("/group/del",t,(function(){o(),this.tip("删除成功"),this.loadTable()}))}))},onAdd:function(){this.goRoute("edit/0")},onSelectTemplate:function(t){this.goRoute("/template/list?groupId=".concat(t.id))},onSave:function(){var t=this;this.$refs.dialogForm.validate((function(o){if(o){console.log(t.formData.id);var e=t.formData.id?"update":"add";console.log(e);var a="/group/".concat(e);t.post(a,t.formData,(function(o){"add"===e&&(t.formData.id=o.data.id),t.tip("保存成功"),t.loadTable(),t.groupDlgShow=!1}))}}))}}},l=n,r=e("2877"),u=Object(r["a"])(l,a,i,!1,null,null,null);o["default"]=u.exports}}]); \ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-libs.3c441178.js b/gen/src/main/resources/public/static/js/chunk-libs.62e97045.js similarity index 35% rename from gen/src/main/resources/public/static/js/chunk-libs.3c441178.js rename to gen/src/main/resources/public/static/js/chunk-libs.62e97045.js index 460a87f..b37e634 100644 --- a/gen/src/main/resources/public/static/js/chunk-libs.3c441178.js +++ b/gen/src/main/resources/public/static/js/chunk-libs.62e97045.js @@ -1,29 +1,29 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),u=n("ebfd").KEY,c=n("294c"),l=n("dbdb"),f=n("45f2"),d=n("62a0"),h=n("5168"),p=n("ccb9"),v=n("6718"),m=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),w=n("241e"),x=n("36c3"),C=n("1bc3"),_=n("aebd"),S=n("a159"),k=n("0395"),O=n("bf0b"),T=n("9aa9"),A=n("d9f6"),L=n("c3a1"),E=O.f,M=A.f,N=k.f,j=r.Symbol,P=r.JSON,D=P&&P.stringify,R="prototype",F=h("_hidden"),I=h("toPrimitive"),$={}.propertyIsEnumerable,W=l("symbol-registry"),H=l("symbols"),B=l("op-symbols"),z=Object[R],U="function"==typeof j&&!!T.f,q=r.QObject,G=!q||!q[R]||!q[R].findChild,V=o&&c((function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=E(z,e);r&&delete z[e],M(t,e,n),r&&t!==z&&M(z,e,r)}:M,K=function(t){var e=H[t]=S(j[R]);return e._k=t,e},X=U&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Y=function(t,e,n){return t===z&&Y(B,e,n),y(t),e=C(e,!0),y(n),i(H,e)?(n.enumerable?(i(t,F)&&t[F][e]&&(t[F][e]=!1),n=S(n,{enumerable:_(0,!1)})):(i(t,F)||M(t,F,_(1,{})),t[F][e]=!0),V(t,e,n)):M(t,e,n)},J=function(t,e){y(t);var n,r=m(e=x(e)),i=0,o=r.length;while(o>i)Y(t,n=r[i++],e[n]);return t},Z=function(t,e){return void 0===e?S(t):J(S(t),e)},Q=function(t){var e=$.call(this,t=C(t,!0));return!(this===z&&i(H,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(H,t)||i(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=C(e,!0),t!==z||!i(H,e)||i(B,e)){var n=E(t,e);return!n||!i(H,e)||i(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){var e,n=N(x(t)),r=[],o=0;while(n.length>o)i(H,e=n[o++])||e==F||e==u||r.push(e);return r},nt=function(t){var e,n=t===z,r=N(n?B:x(t)),o=[],a=0;while(r.length>a)!i(H,e=r[a++])||n&&!i(z,e)||o.push(H[e]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(B,n),i(this,F)&&i(this[F],t)&&(this[F][t]=!1),V(this,t,_(1,n))};return o&&G&&V(z,t,{configurable:!0,set:e}),K(t)},s(j[R],"toString",(function(){return this._k})),O.f=tt,A.f=Y,n("6abf").f=k.f=et,n("355d").f=Q,T.f=nt,o&&!n("b8e3")&&s(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return K(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)h(rt[it++]);for(var ot=L(h.store),at=0;ot.length>at;)v(ot[at++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=j(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=c((function(){T.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return T.f(w(t))}}),P&&a(a.S+a.F*(!U||c((function(){var t=j();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,D.apply(P,r)}}),j[R][I]||n("35e8")(j[R],I,j[R].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,w){u(n,e,g);var x,C,_,S=function(t){if(!d&&t in A)return A[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",O=y==v,T=!1,A=t.prototype,L=A[f]||A[h]||y&&A[y],E=L||S(y),M=y?O?S("entries"):E:void 0,N="Array"==e&&A.entries||L;if(N&&(_=l(N.call(new t)),_!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[f]||a(_,f,m))),O&&L&&L.name!==v&&(T=!0,E=function(){return L.call(this)}),r&&!w||!d&&!T&&A[f]||a(A,f,E),s[e]=E,s[k]=m,y)if(x={values:O?E:S(v),keys:b?E:S(p),entries:M},w)for(C in x)C in A||o(A,C,x[C]);else i(i.P+i.F*(d||T),e,x);return x}},"0395":function(t,e,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"044b":function(t,e){function n(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function r(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&n(t.slice(0,0))} +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"014b":function(t,e,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),u=n("ebfd").KEY,c=n("294c"),l=n("dbdb"),f=n("45f2"),d=n("62a0"),h=n("5168"),p=n("ccb9"),v=n("6718"),m=n("47ee"),g=n("9003"),y=n("e4ae"),b=n("f772"),w=n("241e"),x=n("36c3"),C=n("1bc3"),S=n("aebd"),_=n("a159"),k=n("0395"),O=n("bf0b"),T=n("9aa9"),A=n("d9f6"),L=n("c3a1"),E=O.f,M=A.f,N=k.f,j=r.Symbol,P=r.JSON,D=P&&P.stringify,R="prototype",F=h("_hidden"),$=h("toPrimitive"),I={}.propertyIsEnumerable,W=l("symbol-registry"),H=l("symbols"),B=l("op-symbols"),z=Object[R],U="function"==typeof j&&!!T.f,q=r.QObject,G=!q||!q[R]||!q[R].findChild,V=o&&c((function(){return 7!=_(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=E(z,e);r&&delete z[e],M(t,e,n),r&&t!==z&&M(z,e,r)}:M,K=function(t){var e=H[t]=_(j[R]);return e._k=t,e},X=U&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Y=function(t,e,n){return t===z&&Y(B,e,n),y(t),e=C(e,!0),y(n),i(H,e)?(n.enumerable?(i(t,F)&&t[F][e]&&(t[F][e]=!1),n=_(n,{enumerable:S(0,!1)})):(i(t,F)||M(t,F,S(1,{})),t[F][e]=!0),V(t,e,n)):M(t,e,n)},J=function(t,e){y(t);var n,r=m(e=x(e)),i=0,o=r.length;while(o>i)Y(t,n=r[i++],e[n]);return t},Z=function(t,e){return void 0===e?_(t):J(_(t),e)},Q=function(t){var e=I.call(this,t=C(t,!0));return!(this===z&&i(H,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(H,t)||i(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=C(e,!0),t!==z||!i(H,e)||i(B,e)){var n=E(t,e);return!n||!i(H,e)||i(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){var e,n=N(x(t)),r=[],o=0;while(n.length>o)i(H,e=n[o++])||e==F||e==u||r.push(e);return r},nt=function(t){var e,n=t===z,r=N(n?B:x(t)),o=[],a=0;while(r.length>a)!i(H,e=r[a++])||n&&!i(z,e)||o.push(H[e]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(B,n),i(this,F)&&i(this[F],t)&&(this[F][t]=!1),V(this,t,S(1,n))};return o&&G&&V(z,t,{configurable:!0,set:e}),K(t)},s(j[R],"toString",(function(){return this._k})),O.f=tt,A.f=Y,n("6abf").f=k.f=et,n("355d").f=Q,T.f=nt,o&&!n("b8e3")&&s(z,"propertyIsEnumerable",Q,!0),p.f=function(t){return K(h(t))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)h(rt[it++]);for(var ot=L(h.store),at=0;ot.length>at;)v(ot[at++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=j(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=c((function(){T.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return T.f(w(t))}}),P&&a(a.S+a.F*(!U||c((function(){var t=j();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,D.apply(P,r)}}),j[R][$]||n("35e8")(j[R],$,j[R].valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,w){u(n,e,g);var x,C,S,_=function(t){if(!d&&t in A)return A[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",O=y==v,T=!1,A=t.prototype,L=A[f]||A[h]||y&&A[y],E=L||_(y),M=y?O?_("entries"):E:void 0,N="Array"==e&&A.entries||L;if(N&&(S=l(N.call(new t)),S!==Object.prototype&&S.next&&(c(S,k,!0),r||"function"==typeof S[f]||a(S,f,m))),O&&L&&L.name!==v&&(T=!0,E=function(){return L.call(this)}),r&&!w||!d&&!T&&A[f]||a(A,f,E),s[e]=E,s[k]=m,y)if(x={values:O?E:_(v),keys:b?E:_(p),entries:M},w)for(C in x)C in A||o(A,C,x[C]);else i(i.P+i.F*(d||T),e,x);return x}},"0395":function(t,e,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"044b":function(t,e){function n(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function r(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&n(t.slice(0,0))} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ -t.exports=function(t){return null!=t&&(n(t)||r(t)||!!t._isBuffer)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},"0a06":function(t,e,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),a=n("5270");function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(r,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=u(r),o=n("f893"),a=u(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},1173:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"17ed":function(t,e,n){t.exports={default:n("d8d6"),__esModule:!0}},1991:function(t,e,n){var r,i,o,a=n("9b43"),s=n("31f4"),u=n("fab2"),c=n("230e"),l=n("7726"),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){b.call(t.data)};d&&h||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete g[t]},"process"==n("2d95")(f)?r=function(t){f.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):r=y in c("script")?function(t){u.appendChild(c("script"))[y]=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:d,clear:h}},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r>>0,1)},emit:function(e,n){(t[e]||[]).map((function(t){t(n)})),(t["*"]||[]).map((function(t){t(e,n)}))}}}var i=t((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),o=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,u={};u[a.name]=a.uri,u[s.name]=s.uri;var c,l=function(t,e){void 0===t&&(t="");var r=n(u,e||{}),i=o(r);return""+t+""},f=i.svg,d=i.xlink,h={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; ")},c[f.name]=f.uri,c[d.name]=d.uri,c)},p=function(t){this.config=n(h,t||{}),this.symbols=[]};p.prototype.add=function(t){var e=this,n=e.symbols,r=this.find(t.id);return r?(n[n.indexOf(r)]=t,!1):(n.push(t),!0)},p.prototype.remove=function(t){var e=this,n=e.symbols,r=this.find(t);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},p.prototype.has=function(t){return null!==this.find(t)},p.prototype.stringify=function(){var t=this.config,e=t.attrs,n=this.symbols.map((function(t){return t.stringify()})).join("");return l(n,e)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var v=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};v.prototype.stringify=function(){return this.content},v.prototype.toString=function(){return this.stringify()},v.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var m=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n},g=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return m(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(v),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(t){return Array.prototype.slice.call(t,0)},w=navigator.userAgent,x={isChrome:/chrome/i.test(w),isFirefox:/firefox/i.test(w),isIE:/msie/i.test(w)||/trident/i.test(w),isEdge:/edge/i.test(w)},C=function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!1,!1,e),window.dispatchEvent(n)},_=function(t){var e=[];return b(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)})),e},S=function(t){return(t||window.location.href).split("#")[0]},k=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,n,r){C(t,{oldUrl:r,newUrl:n})}))}])},O="linearGradient, radialGradient, pattern",T=function(t,e){return void 0===e&&(e=O),b(t.querySelectorAll("symbol")).forEach((function(t){b(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t};function A(t,e){var n=b(t).reduce((function(t,n){if(!n.attributes)return t;var r=b(n.attributes),i=e?r.filter(e):r;return t.concat(i)}),[]);return n}var L=i.xlink.uri,E="xlink:href",M=/[{}|\\\^\[\]`"<>]/g;function N(t){return t.replace(M,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}function j(t,e,n){return b(t).forEach((function(t){var r=t.getAttribute(E);if(r&&0===r.indexOf(e)){var i=r.replace(e,n);t.setAttributeNS(L,E,i)}})),t}var P,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],R=D.map((function(t){return"["+t+"]"})).join(","),F=function(t,e,n,r){var i=N(n),o=N(r),a=t.querySelectorAll(R),s=A(a,(function(t){var e=t.localName,n=t.value;return-1!==D.indexOf(e)&&-1!==n.indexOf("url("+i)}));s.forEach((function(t){return t.value=t.value.replace(i,o)})),j(e,i,o)},I={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},$=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,n(y,e));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(e),s.syncUrlsWithBaseTag){var u=document.getElementsByTagName("base")[0].getAttribute("href");o.on(I.MOUNT,(function(){return i.updateUrls("#",u)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,c),s.locationChangeAngularEmitter&&k(s.locationChangeEvent),o.on(I.MOUNT,(function(t){s.moveGradientsOutsideSymbol&&T(t)})),o.on(I.SYMBOL_MOUNT,(function(t){s.moveGradientsOutsideSymbol&&T(t.parentNode),(x.isIE||x.isEdge)&&_(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this,n=e.config;"undefined"===typeof t.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof t.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof t.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=x.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,n=e.oldUrl,r=e.newUrl;this.updateUrls(n,r)},e.prototype.add=function(e){var n=this,r=t.prototype.add.call(this,e);return this.isMounted&&r&&(e.mount(n.node),this._emitter.emit(I.SYMBOL_MOUNT,e.node)),r},e.prototype.attach=function(t){var e=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t;return n.node=r,this.symbols.forEach((function(t){t.mount(n.node),e._emitter.emit(I.SYMBOL_MOUNT,t.node)})),b(r.querySelectorAll("symbol")).forEach((function(t){var e=g.createFromExistingNode(t);e.node=t,n.add(e)})),this._emitter.emit(I.MOUNT,r),r},e.prototype.destroy=function(){var t=this,e=t.config,n=t.symbols,r=t._emitter;n.forEach((function(t){return t.destroy()})),r.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t,i=n.render();return this.node=i,e&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(I.MOUNT,i),i},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return F(this.node,n,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(p),W=t((function(t){ +t.exports=function(t){return null!=t&&(n(t)||r(t)||!!t._isBuffer)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},"0a06":function(t,e,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),a=n("5270");function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(r,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0fc9":function(t,e,n){var r=n("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=u(r),o=n("f893"),a=u(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"17ed":function(t,e,n){t.exports={default:n("d8d6"),__esModule:!0}},1991:function(t,e,n){var r,i,o,a=n("9b43"),s=n("31f4"),u=n("fab2"),c=n("230e"),l=n("7726"),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){b.call(t.data)};d&&h||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete g[t]},"process"==n("2d95")(f)?r=function(t){f.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):r=y in c("script")?function(t){u.appendChild(c("script"))[y]=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:d,clear:h}},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r>>0,1)},emit:function(e,n){(t[e]||[]).map((function(t){t(n)})),(t["*"]||[]).map((function(t){t(e,n)}))}}}var i=t((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),o=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,u={};u[a.name]=a.uri,u[s.name]=s.uri;var c,l=function(t,e){void 0===t&&(t="");var r=n(u,e||{}),i=o(r);return""+t+""},f=i.svg,d=i.xlink,h={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; ")},c[f.name]=f.uri,c[d.name]=d.uri,c)},p=function(t){this.config=n(h,t||{}),this.symbols=[]};p.prototype.add=function(t){var e=this,n=e.symbols,r=this.find(t.id);return r?(n[n.indexOf(r)]=t,!1):(n.push(t),!0)},p.prototype.remove=function(t){var e=this,n=e.symbols,r=this.find(t);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},p.prototype.has=function(t){return null!==this.find(t)},p.prototype.stringify=function(){var t=this.config,e=t.attrs,n=this.symbols.map((function(t){return t.stringify()})).join("");return l(n,e)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var v=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};v.prototype.stringify=function(){return this.content},v.prototype.toString=function(){return this.stringify()},v.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var m=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n},g=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return m(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(v),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(t){return Array.prototype.slice.call(t,0)},w=navigator.userAgent,x={isChrome:/chrome/i.test(w),isFirefox:/firefox/i.test(w),isIE:/msie/i.test(w)||/trident/i.test(w),isEdge:/edge/i.test(w)},C=function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!1,!1,e),window.dispatchEvent(n)},S=function(t){var e=[];return b(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)})),e},_=function(t){return(t||window.location.href).split("#")[0]},k=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,n,r){C(t,{oldUrl:r,newUrl:n})}))}])},O="linearGradient, radialGradient, pattern",T=function(t,e){return void 0===e&&(e=O),b(t.querySelectorAll("symbol")).forEach((function(t){b(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t};function A(t,e){var n=b(t).reduce((function(t,n){if(!n.attributes)return t;var r=b(n.attributes),i=e?r.filter(e):r;return t.concat(i)}),[]);return n}var L=i.xlink.uri,E="xlink:href",M=/[{}|\\\^\[\]`"<>]/g;function N(t){return t.replace(M,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}function j(t,e,n){return b(t).forEach((function(t){var r=t.getAttribute(E);if(r&&0===r.indexOf(e)){var i=r.replace(e,n);t.setAttributeNS(L,E,i)}})),t}var P,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],R=D.map((function(t){return"["+t+"]"})).join(","),F=function(t,e,n,r){var i=N(n),o=N(r),a=t.querySelectorAll(R),s=A(a,(function(t){var e=t.localName,n=t.value;return-1!==D.indexOf(e)&&-1!==n.indexOf("url("+i)}));s.forEach((function(t){return t.value=t.value.replace(i,o)})),j(e,i,o)},$={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},I=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,n(y,e));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(e),s.syncUrlsWithBaseTag){var u=document.getElementsByTagName("base")[0].getAttribute("href");o.on($.MOUNT,(function(){return i.updateUrls("#",u)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,c),s.locationChangeAngularEmitter&&k(s.locationChangeEvent),o.on($.MOUNT,(function(t){s.moveGradientsOutsideSymbol&&T(t)})),o.on($.SYMBOL_MOUNT,(function(t){s.moveGradientsOutsideSymbol&&T(t.parentNode),(x.isIE||x.isEdge)&&S(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this,n=e.config;"undefined"===typeof t.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof t.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof t.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=x.isFirefox)},e.prototype._handleLocationChange=function(t){var e=t.detail,n=e.oldUrl,r=e.newUrl;this.updateUrls(n,r)},e.prototype.add=function(e){var n=this,r=t.prototype.add.call(this,e);return this.isMounted&&r&&(e.mount(n.node),this._emitter.emit($.SYMBOL_MOUNT,e.node)),r},e.prototype.attach=function(t){var e=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t;return n.node=r,this.symbols.forEach((function(t){t.mount(n.node),e._emitter.emit($.SYMBOL_MOUNT,t.node)})),b(r.querySelectorAll("symbol")).forEach((function(t){var e=g.createFromExistingNode(t);e.node=t,n.add(e)})),this._emitter.emit($.MOUNT,r),r},e.prototype.destroy=function(){var t=this,e=t.config,n=t.symbols,r=t._emitter;n.forEach((function(t){return t.destroy()})),r.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t,i=n.render();return this.node=i,e&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit($.MOUNT,i),i},e.prototype.render=function(){return m(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return F(this.node,n,_(t)+"#",_(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(p),W=t((function(t){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ -!function(e,n){t.exports=n()}(0,(function(){var t,e=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,t=function(){n.removeEventListener(i,t),o=1;while(t=e.shift())t()}),function(t){o?setTimeout(t,0):e.push(t)}}))})),H="__SVG_SPRITE_NODE__",B="__SVG_SPRITE__",z=!!window[B];z?P=window[B]:(P=new $({attrs:{id:H}}),window[B]=P);var U=function(){var t=document.getElementById(H);t?P.attach(t):P.mount(document.body,!0)};document.body?U():W(U);var q=P;return q}))}).call(this,n("c8ba"))},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e)&&(t=n("b50d")),t}var u={adapter:s(),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n("4362"))},"24c5":function(t,e,n){"use strict";var r,i,o,a,s=n("b8e3"),u=n("e53d"),c=n("d864"),l=n("40c3"),f=n("63b6"),d=n("f772"),h=n("79aa"),p=n("1173"),v=n("a22a"),m=n("f201"),g=n("4178").set,y=n("aba2")(),b=n("656e"),w=n("4439"),x=n("bc13"),C=n("cd78"),_="Promise",S=u.TypeError,k=u.process,O=k&&k.versions,T=O&&O.v8||"",A=u[_],L="process"==l(k),E=function(){},M=i=b.f,N=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n("5168")("species")]=function(t){t(E,E)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==T.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(r){}}(),j=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&F(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=j(n))?o.call(n,u,c):u(n)):c(r)}catch(f){l&&!a&&l.exit(),c(f)}};while(n.length>o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)}))}},D=function(t){g.call(u,(function(){var e,n,r,i=t._v,o=R(t);if(o&&(e=w((function(){L?k.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=L||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){g.call(u,(function(){var e;L?k.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},$=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=j(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c($,r,1),c(I,r,1))}catch(i){I.call(r,i)}})):(n._v=t,n._s=1,P(n,!1))}catch(r){I.call({_w:n,_d:!1},r)}}};N||(A=function(t){p(this,A,_,"_h"),h(t),r.call(this);try{t(c($,this,1),c(I,this,1))}catch(e){I.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(A.prototype,{then:function(t,e){var n=M(m(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c($,t,1),this.reject=c(I,t,1)},b.f=M=function(t){return t===A||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!N,{Promise:A}),n("45f2")(A,_),n("4c95")(_),a=n("584a")[_],f(f.S+f.F*!N,_,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!N),_,{resolve:function(t){return C(s&&this===a?A:this,t)}}),f(f.S+f.F*!(N&&n("4ee1")((function(t){A.all(t)["catch"](E)}))),_,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,o=w((function(){var n=[],o=0,a=1;v(t,!1,(function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=w((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"268f":function(t,e,n){t.exports=n("fde4")},"27ee":function(t,e,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",c=(""+s).split(u);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){ +!function(e,n){t.exports=n()}(0,(function(){var t,e=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,t=function(){n.removeEventListener(i,t),o=1;while(t=e.shift())t()}),function(t){o?setTimeout(t,0):e.push(t)}}))})),H="__SVG_SPRITE_NODE__",B="__SVG_SPRITE__",z=!!window[B];z?P=window[B]:(P=new I({attrs:{id:H}}),window[B]=P);var U=function(){var t=document.getElementById(H);t?P.attach(t):P.mount(document.body,!0)};document.body?U():W(U);var q=P;return q}))}).call(this,n("c8ba"))},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e)&&(t=n("b50d")),t}var u={adapter:s(),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n("4362"))},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"27ee":function(t,e,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",c=(""+s).split(u);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){ /*! * Vue.js v2.6.10 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function l(t){return"[object Object]"===c.call(t)}function f(t){return"[object RegExp]"===c.call(t)}function d(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var C=/-(\w)/g,_=x((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),S=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,O=x((function(t){return t.replace(k,"-$1").toLowerCase()}));function T(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var L=Function.prototype.bind?A:T;function E(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(Y)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(_a){}var ut=function(){return void 0===K&&(K=!Y&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),K},ct=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,dt="undefined"!==typeof Symbol&<(Symbol)&&"undefined"!==typeof Reflect&<(Reflect.ownKeys);ft="undefined"!==typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=j,pt=0,vt=function(){this.id=pt++,this.subs=[]};vt.prototype.addSub=function(t){this.subs.push(t)},vt.prototype.removeSub=function(t){y(this.subs,t)},vt.prototype.depend=function(){vt.target&&vt.target.addDep(this)},vt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===O(t)){var u=te(String,i.type);(u<0||s0&&(a=Te(a,(e||"")+"_"+n),Oe(a[0])&&Oe(c)&&(l[u]=Ct(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Oe(c)?l[u]=Ct(c.text+a):""!==a&&l.push(Ct(a)):Oe(a)&&Oe(c)?l[u]=Ct(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Le(t){var e=Ee(t.$options.inject,t);e&&(Lt(!1),Object.keys(e).forEach((function(n){Pt(t,n,e[n])})),Lt(!0))}function Ee(t,e){if(t){for(var n=Object.create(null),r=dt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=Pe(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function Pe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ke(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Kn=function(){return Xn.now()})}function Yn(){var t,e;for(Vn=Kn(),Un=!0,Wn.sort((function(t,e){return t.id-e.id})),qn=0;qnqn&&Wn[n].id>t.id)n--;Wn.splice(n+1,0,t)}else Wn.push(t);zn||(zn=!0,pe(Yn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=V(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(_a){if(!this.user)throw _a;ee(_a,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),yt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(_a){ee(_a,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:j,set:j};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):jt(t._data={},!0),e.computed&&lr(t,e.computed),e.watch&&e.watch!==ot&&vr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Lt(!1);var a=function(o){i.push(o);var a=Yt(o,e,n,t);Pt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Lt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?ur(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&w(r,o)||U(o)||ir(t,"_data",o)}jt(e,!0)}function ur(t,e){gt();try{return t.call(e,e)}catch(_a){return ee(_a,e,"data()"),{}}finally{yt()}}var cr={lazy:!0};function lr(t,e){var n=t._computedWatchers=Object.create(null),r=ut();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||j,j,cr)),i in t||fr(t,i,o)}}function fr(t,e,n){var r=!ut();"function"===typeof n?(rr.get=r?dr(e):hr(n),rr.set=j):(rr.get=n.get?r&&!1!==n.cache?dr(e):hr(n.get):j,rr.set=n.set||j),Object.defineProperty(t,e,rr)}function dr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),vt.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:L(e[n],t)}function vr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=E(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function kr(t){t.mixin=function(t){return this.options=Kt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Kt(n.options,t),a["super"]=n,a.options.props&&Tr(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,W.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=M({},a.options),i[r]=a,a}}function Tr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)fr(t.prototype,n,e[n])}function Lr(t){W.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Er(t){return t&&(t.Ctor.options.name||t.tag)}function Mr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Nr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Er(a.componentOptions);s&&!e(s)&&jr(n,o,r,i)}}}function jr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}br(_r),gr(_r),Ln(_r),jn(_r),yn(_r);var Pr=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Pr,exclude:Pr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)jr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Nr(t,(function(t){return Mr(e,t)}))})),this.$watch("exclude",(function(e){Nr(t,(function(t){return!Mr(e,t)}))}))},render:function(){var t=this.$slots.default,e=_n(t),n=e&&e.componentOptions;if(n){var r=Er(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Mr(o,r))||a&&r&&Mr(a,r))return e;var s=this,u=s.cache,c=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,y(c,l),c.push(l)):(u[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&jr(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function Fr(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:M,mergeOptions:Kt,defineReactive:Pt},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return jt(t),t},t.options=Object.create(null),W.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,Rr),Sr(t),kr(t),Or(t),Lr(t)}Fr(_r),Object.defineProperty(_r.prototype,"$isServer",{get:ut}),Object.defineProperty(_r.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_r,"FunctionalRenderContext",{value:Je}),_r.version="2.6.10";var Ir=m("style,class"),$r=m("input,textarea,option,select,progress"),Wr=function(t,e,n){return"value"===n&&$r(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Hr=m("contenteditable,draggable,spellcheck"),Br=m("events,caret,typing,plaintext-only"),zr=function(t,e){return Kr(e)||"false"===e?"false":"contenteditable"===t&&Br(e)?e:"true"},Ur=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",Gr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Vr=function(t){return Gr(t)?t.slice(6,t.length):""},Kr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Yr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Yr(e,n.data));return Jr(e.staticClass,e.class)}function Yr(t,e){return{staticClass:Zr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Jr(t,e){return i(t)||i(e)?Zr(t,Qr(e)):""}function Zr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):u(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function li(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function fi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function di(t,e){return document.createElementNS(ni[t],e)}function hi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function vi(t,e,n){t.insertBefore(e,n)}function mi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function yi(t){return t.parentNode}function bi(t){return t.nextSibling}function wi(t){return t.tagName}function xi(t,e){t.textContent=e}function Ci(t,e){t.setAttribute(e,"")}var _i=Object.freeze({createElement:fi,createElementNS:di,createTextNode:hi,createComment:pi,insertBefore:vi,removeChild:mi,appendChild:gi,parentNode:yi,nextSibling:bi,tagName:wi,setTextContent:xi,setStyleScope:Ci}),Si={create:function(t,e){ki(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ki(t,!0),ki(e))},destroy:function(t){ki(t,!0)}};function ki(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Oi=new bt("",{},[]),Ti=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Li(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Li(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ei(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Mi(t){var e,n,a={},u=t.modules,c=t.nodeOps;for(e=0;ev?(f=r(n[y+1])?null:n[y+1].elm,_(t,f,n,p,y,o)):p>y&&k(t,e,d,v)}function A(t,e,n,r){for(var o=n;o-1?Bi(t,e,n):Ur(e)?Kr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Hr(e)?t.setAttribute(e,zr(e,n)):Gr(e)?Kr(n)?t.removeAttributeNS(qr,Vr(e)):t.setAttributeNS(qr,e,n):Bi(t,e,n)}function Bi(t,e,n){if(Kr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var zi={create:Wi,update:Wi};function Ui(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),u=n._transitionClasses;i(u)&&(s=Zr(s,Qr(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Gi={create:Ui,update:Ui},Vi="__r",Ki="__c";function Xi(t){if(i(t[Vi])){var e=tt?"change":"input";t[e]=[].concat(t[Vi],t[e]||[]),delete t[Vi]}i(t[Ki])&&(t.change=[].concat(t[Ki],t.change||[]),delete t[Ki])}function Yi(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Ji=ae&&!(it&&Number(it[1])<=53);function Zi(t,e,n,r){if(Ji){var i=Vn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};qi=e.elm,Xi(n),we(n,i,Zi,Qi,Yi,e.context),qi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in i(u.__ob__)&&(u=e.data.domProps=M({},u)),s)n in u||(a[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML=""+o+"";var l=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(_a){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(_a){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},uo=x((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function co(t){var e=lo(t.style);return t.staticStyle?M(t.staticStyle,e):e}function lo(t){return Array.isArray(t)?N(t):"string"===typeof t?uo(t):t}function fo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&M(r,n)}(n=co(t.data))&&M(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&M(r,n);return r}var ho,po=/^--/,vo=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(vo.test(n))t.style.setProperty(O(e),n.replace(vo,""),"important");else{var r=yo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(xo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function _o(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function So(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&M(e,ko(t.name||"v")),M(e,t),e}return"string"===typeof t?ko(t):void 0}}var ko=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=Y&&!et,To="transition",Ao="animation",Lo="transition",Eo="transitionend",Mo="animation",No="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Lo="WebkitTransition",Eo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mo="WebkitAnimation",No="webkitAnimationEnd"));var jo=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Po(t){jo((function(){jo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Co(t,e))}function Ro(t,e){t._transitionClasses&&y(t._transitionClasses,e),_o(t,e)}function Fo(t,e,n){var r=$o(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===To?Eo:No,u=0,c=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++u>=a&&c()};setTimeout((function(){u0&&(n=To,l=a,f=o.length):e===Ao?c>0&&(n=Ao,l=c,f=u.length):(l=Math.max(a,c),n=l>0?a>c?To:Ao:null,f=n?n===To?o.length:u.length:0);var d=n===To&&Io.test(r[Lo+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function Wo(t,e){while(t.length1}function Go(t,e){!0!==e.data.show&&Bo(e)}var Vo=Y?{create:Go,activate:Go,remove:function(t,e){!0!==t.data.show?zo(t,e):e()}}:{},Ko=[zi,Gi,no,so,wo,Vo],Xo=Ko.concat($i),Yo=Mi({nodeOps:_i,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Jo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xe(n,"postpatch",(function(){Jo.componentUpdated(t,e,n)})):Zo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Zo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Zo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Bo(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Bo(n,(function(){t.style.display=t.__vOriginalDisplay})):zo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Jo,show:aa},ua={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(_n(e.children)):t}function la(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[_(o)]=i[o];return e}function fa(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function da(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||Cn(t)},va=function(t){return"show"===t.name},ma={name:"transition",props:ua,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(da(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return fa(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=la(this),c=this._vnode,l=ca(c);if(o.data.directives&&o.data.directives.some(va)&&(o.data.show=!0),l&&l.data&&!ha(o,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=M({},u);if("out-in"===r)return this._leaving=!0,xe(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),fa(t,i);if("in-out"===r){if(Cn(o))return c;var d,h=function(){d()};xe(u,"afterEnter",h),xe(u,"enterCancelled",h),xe(f,"delayLeave",(function(t){d=t}))}}return i}}},ga=M({tag:String,moveClass:String},ua);delete ga.mode;var ya={props:ga,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Mn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=la(this),s=0;s=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var C=/-(\w)/g,S=x((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),_=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),k=/\B([A-Z])/g,O=x((function(t){return t.replace(k,"-$1").toLowerCase()}));function T(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var L=Function.prototype.bind?A:T;function E(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function M(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(Y)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var ut=function(){return void 0===K&&(K=!Y&&!J&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),K},ct=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"===typeof t&&/native code/.test(t.toString())}var ft,dt="undefined"!==typeof Symbol&<(Symbol)&&"undefined"!==typeof Reflect&<(Reflect.ownKeys);ft="undefined"!==typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=j,pt=0,vt=function(){this.id=pt++,this.subs=[]};vt.prototype.addSub=function(t){this.subs.push(t)},vt.prototype.removeSub=function(t){y(this.subs,t)},vt.prototype.depend=function(){vt.target&&vt.target.addDep(this)},vt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===O(t)){var u=te(String,i.type);(u<0||s0&&(a=Te(a,(e||"")+"_"+n),Oe(a[0])&&Oe(c)&&(l[u]=Ct(c.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Oe(c)?l[u]=Ct(c.text+a):""!==a&&l.push(Ct(a)):Oe(a)&&Oe(c)?l[u]=Ct(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Le(t){var e=Ee(t.$options.inject,t);e&&(Lt(!1),Object.keys(e).forEach((function(n){Pt(t,n,e[n])})),Lt(!0))}function Ee(t,e){if(t){for(var n=Object.create(null),r=dt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=Pe(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function Pe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:ke(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?E(n):n;for(var r=E(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Kn=function(){return Xn.now()})}function Yn(){var t,e;for(Vn=Kn(),Un=!0,Wn.sort((function(t,e){return t.id-e.id})),qn=0;qnqn&&Wn[n].id>t.id)n--;Wn.splice(n+1,0,t)}else Wn.push(t);zn||(zn=!0,pe(Yn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ft,this.newDepIds=new ft,this.expression="","function"===typeof e?this.getter=e:(this.getter=V(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),yt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:j,set:j};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):jt(t._data={},!0),e.computed&&lr(t,e.computed),e.watch&&e.watch!==ot&&vr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Lt(!1);var a=function(o){i.push(o);var a=Yt(o,e,n,t);Pt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Lt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?ur(e,t):e||{},l(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&w(r,o)||U(o)||ir(t,"_data",o)}jt(e,!0)}function ur(t,e){gt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{yt()}}var cr={lazy:!0};function lr(t,e){var n=t._computedWatchers=Object.create(null),r=ut();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||j,j,cr)),i in t||fr(t,i,o)}}function fr(t,e,n){var r=!ut();"function"===typeof n?(rr.get=r?dr(e):hr(n),rr.set=j):(rr.get=n.get?r&&!1!==n.cache?dr(e):hr(n.get):j,rr.set=n.set||j),Object.defineProperty(t,e,rr)}function dr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),vt.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:L(e[n],t)}function vr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=E(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function kr(t){t.mixin=function(t){return this.options=Kt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Kt(n.options,t),a["super"]=n,a.options.props&&Tr(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,W.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=M({},a.options),i[r]=a,a}}function Tr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)fr(t.prototype,n,e[n])}function Lr(t){W.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Er(t){return t&&(t.Ctor.options.name||t.tag)}function Mr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Nr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Er(a.componentOptions);s&&!e(s)&&jr(n,o,r,i)}}}function jr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}br(Sr),gr(Sr),Ln(Sr),jn(Sr),yn(Sr);var Pr=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Pr,exclude:Pr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)jr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Nr(t,(function(t){return Mr(e,t)}))})),this.$watch("exclude",(function(e){Nr(t,(function(t){return!Mr(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=Er(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Mr(o,r))||a&&r&&Mr(a,r))return e;var s=this,u=s.cache,c=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,y(c,l),c.push(l)):(u[l]=e,c.push(l),this.max&&c.length>parseInt(this.max)&&jr(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function Fr(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:M,mergeOptions:Kt,defineReactive:Pt},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return jt(t),t},t.options=Object.create(null),W.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,M(t.options.components,Rr),_r(t),kr(t),Or(t),Lr(t)}Fr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:ut}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Je}),Sr.version="2.6.10";var $r=m("style,class"),Ir=m("input,textarea,option,select,progress"),Wr=function(t,e,n){return"value"===n&&Ir(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Hr=m("contenteditable,draggable,spellcheck"),Br=m("events,caret,typing,plaintext-only"),zr=function(t,e){return Kr(e)||"false"===e?"false":"contenteditable"===t&&Br(e)?e:"true"},Ur=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",Gr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Vr=function(t){return Gr(t)?t.slice(6,t.length):""},Kr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Yr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Yr(e,n.data));return Jr(e.staticClass,e.class)}function Yr(t,e){return{staticClass:Zr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Jr(t,e){return i(t)||i(e)?Zr(t,Qr(e)):""}function Zr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):u(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function li(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function fi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function di(t,e){return document.createElementNS(ni[t],e)}function hi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function vi(t,e,n){t.insertBefore(e,n)}function mi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function yi(t){return t.parentNode}function bi(t){return t.nextSibling}function wi(t){return t.tagName}function xi(t,e){t.textContent=e}function Ci(t,e){t.setAttribute(e,"")}var Si=Object.freeze({createElement:fi,createElementNS:di,createTextNode:hi,createComment:pi,insertBefore:vi,removeChild:mi,appendChild:gi,parentNode:yi,nextSibling:bi,tagName:wi,setTextContent:xi,setStyleScope:Ci}),_i={create:function(t,e){ki(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ki(t,!0),ki(e))},destroy:function(t){ki(t,!0)}};function ki(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Oi=new bt("",{},[]),Ti=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Li(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Li(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ei(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Mi(t){var e,n,a={},u=t.modules,c=t.nodeOps;for(e=0;ev?(f=r(n[y+1])?null:n[y+1].elm,S(t,f,n,p,y,o)):p>y&&k(t,e,d,v)}function A(t,e,n,r){for(var o=n;o-1?Bi(t,e,n):Ur(e)?Kr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Hr(e)?t.setAttribute(e,zr(e,n)):Gr(e)?Kr(n)?t.removeAttributeNS(qr,Vr(e)):t.setAttributeNS(qr,e,n):Bi(t,e,n)}function Bi(t,e,n){if(Kr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var zi={create:Wi,update:Wi};function Ui(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),u=n._transitionClasses;i(u)&&(s=Zr(s,Qr(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Gi={create:Ui,update:Ui},Vi="__r",Ki="__c";function Xi(t){if(i(t[Vi])){var e=tt?"change":"input";t[e]=[].concat(t[Vi],t[e]||[]),delete t[Vi]}i(t[Ki])&&(t.change=[].concat(t[Ki],t.change||[]),delete t[Ki])}function Yi(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Ji=ae&&!(it&&Number(it[1])<=53);function Zi(t,e,n,r){if(Ji){var i=Vn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};qi=e.elm,Xi(n),we(n,i,Zi,Qi,Yi,e.context),qi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in i(u.__ob__)&&(u=e.data.domProps=M({},u)),s)n in u||(a[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML=""+o+"";var l=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return v(n)!==v(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},uo=x((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function co(t){var e=lo(t.style);return t.staticStyle?M(t.staticStyle,e):e}function lo(t){return Array.isArray(t)?N(t):"string"===typeof t?uo(t):t}function fo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&M(r,n)}(n=co(t.data))&&M(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&M(r,n);return r}var ho,po=/^--/,vo=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(vo.test(n))t.style.setProperty(O(e),n.replace(vo,""),"important");else{var r=yo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(xo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function _o(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&M(e,ko(t.name||"v")),M(e,t),e}return"string"===typeof t?ko(t):void 0}}var ko=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=Y&&!et,To="transition",Ao="animation",Lo="transition",Eo="transitionend",Mo="animation",No="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Lo="WebkitTransition",Eo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mo="WebkitAnimation",No="webkitAnimationEnd"));var jo=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Po(t){jo((function(){jo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Co(t,e))}function Ro(t,e){t._transitionClasses&&y(t._transitionClasses,e),So(t,e)}function Fo(t,e,n){var r=Io(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===To?Eo:No,u=0,c=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++u>=a&&c()};setTimeout((function(){u0&&(n=To,l=a,f=o.length):e===Ao?c>0&&(n=Ao,l=c,f=u.length):(l=Math.max(a,c),n=l>0?a>c?To:Ao:null,f=n?n===To?o.length:u.length:0);var d=n===To&&$o.test(r[Lo+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function Wo(t,e){while(t.length1}function Go(t,e){!0!==e.data.show&&Bo(e)}var Vo=Y?{create:Go,activate:Go,remove:function(t,e){!0!==t.data.show?zo(t,e):e()}}:{},Ko=[zi,Gi,no,so,wo,Vo],Xo=Ko.concat(Ii),Yo=Mi({nodeOps:Si,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Jo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xe(n,"postpatch",(function(){Jo.componentUpdated(t,e,n)})):Zo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Zo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Zo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Bo(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Bo(n,(function(){t.style.display=t.__vOriginalDisplay})):zo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Jo,show:aa},ua={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(Sn(e.children)):t}function la(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function fa(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function da(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||Cn(t)},va=function(t){return"show"===t.name},ma={name:"transition",props:ua,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(da(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return fa(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=la(this),c=this._vnode,l=ca(c);if(o.data.directives&&o.data.directives.some(va)&&(o.data.show=!0),l&&l.data&&!ha(o,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=M({},u);if("out-in"===r)return this._leaving=!0,xe(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),fa(t,i);if("in-out"===r){if(Cn(o))return c;var d,h=function(){d()};xe(u,"afterEnter",h),xe(u,"enterCancelled",h),xe(f,"delayLeave",(function(t){d=t}))}}return i}}},ga=M({tag:String,moveClass:String},ua);delete ga.mode;var ya={props:ga,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Mn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=la(this),s=0;s=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",(function(){return M}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)})))}function a(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function s(t){return null!==t&&"object"===typeof t}function u(t){return t&&"function"===typeof t.then}var c=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(t,e){this._children[t]=e},c.prototype.removeChild=function(t){delete this._children[t]},c.prototype.getChild=function(t){return this._children[t]},c.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},c.prototype.forEachChild=function(t){a(this._children,t)},c.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},c.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},c.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(c.prototype,l);var f=function(t){this.register([],t,!1)};function d(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;d(t.concat(r),e.getChild(r),n.modules[r])}}f.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},f.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},f.prototype.update=function(t){d([],this.root,t)},f.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new c(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&a(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},f.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var h;var p=function(t){var e=this;void 0===t&&(t={}),!h&&"undefined"!==typeof window&&window.Vue&&A(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h;var i=this,a=this,s=a.dispatch,u=a.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;b(this,c,[],this._modules.root),y(this,c),n.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:h.config.devtools;l&&o(this)},v={state:{configurable:!0}};function m(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;b(t,n,[],t._modules.root,!0),y(t,n,e)}function y(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};a(i,(function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=h.config.silent;h.config.silent=!0,t._vm=new h({data:{$$state:e},computed:o}),h.config.silent=s,t.strict&&k(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function b(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=O(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){h.set(s,u,r.state)}))}var c=r.context=w(t,a,n);r.forEachMutation((function(e,n){var r=a+n;C(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;_(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;S(t,r,e,c)})),r.forEachChild((function(r,o){b(t,e,n.concat(o),r,i)}))}function w(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return x(t,e)}},state:{get:function(){return O(t.state,n)}}}),i}function x(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}function C(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function _(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return u(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function S(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function k(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function T(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function A(t){h&&t===h||(h=t,r(h))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(t){0},p.prototype.commit=function(t,e,n){var r=this,i=T(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},p.prototype.dispatch=function(t,e){var n=this,r=T(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return u.then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}return t}))}},p.prototype.subscribe=function(t){return m(t,this._subscribers)},p.prototype.subscribeAction=function(t){var e="function"===typeof t?{before:t}:t;return m(e,this._actionSubscribers)},p.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},p.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},p.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),b(this,this.state,t,this._modules.get(t),n.preserveState),y(this,this.state)},p.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=O(e.state,t.slice(0,-1));h.delete(n,t[t.length-1])})),g(this)},p.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},p.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(p.prototype,v);var L=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=R(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),E=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=R(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),M=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||R(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=R(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),j=function(t){return{mapState:L.bind(null,t),mapGetters:M.bind(null,t),mapMutations:E.bind(null,t),mapActions:N.bind(null,t)}};function P(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function D(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function R(t,e,n){var r=t._modulesNamespaceMap[n];return r}var F={Store:p,install:A,version:"3.1.0",mapState:L,mapMutations:E,mapGetters:M,mapActions:N,createNamespacedHelpers:j};e["a"]=F},3024:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),u=n("8f60"),c=n("45f2"),l=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,w){u(n,e,g);var x,C,_,S=function(t){if(!d&&t in A)return A[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",O=y==v,T=!1,A=t.prototype,L=A[f]||A[h]||y&&A[y],E=L||S(y),M=y?O?S("entries"):E:void 0,N="Array"==e&&A.entries||L;if(N&&(_=l(N.call(new t)),_!==Object.prototype&&_.next&&(c(_,k,!0),r||"function"==typeof _[f]||a(_,f,m))),O&&L&&L.name!==v&&(T=!0,E=function(){return L.call(this)}),r&&!w||!d&&!T&&A[f]||a(A,f,E),s[e]=E,s[k]=m,y)if(x={values:O?E:S(v),keys:b?E:S(p),entries:M},w)for(C in x)C in A||o(A,C,x[C]);else i(i.P+i.F*(d||T),e,x);return x}},"31f4":function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"323e":function(t,e,n){var r,i; +function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",(function(){return M}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)})))}function a(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function s(t){return null!==t&&"object"===typeof t}function u(t){return t&&"function"===typeof t.then}var c=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(t,e){this._children[t]=e},c.prototype.removeChild=function(t){delete this._children[t]},c.prototype.getChild=function(t){return this._children[t]},c.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},c.prototype.forEachChild=function(t){a(this._children,t)},c.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},c.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},c.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(c.prototype,l);var f=function(t){this.register([],t,!1)};function d(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;d(t.concat(r),e.getChild(r),n.modules[r])}}f.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},f.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},f.prototype.update=function(t){d([],this.root,t)},f.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new c(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&a(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},f.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var h;var p=function(t){var e=this;void 0===t&&(t={}),!h&&"undefined"!==typeof window&&window.Vue&&A(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h;var i=this,a=this,s=a.dispatch,u=a.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;b(this,c,[],this._modules.root),y(this,c),n.forEach((function(t){return t(e)}));var l=void 0!==t.devtools?t.devtools:h.config.devtools;l&&o(this)},v={state:{configurable:!0}};function m(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;b(t,n,[],t._modules.root,!0),y(t,n,e)}function y(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};a(i,(function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var s=h.config.silent;h.config.silent=!0,t._vm=new h({data:{$$state:e},computed:o}),h.config.silent=s,t.strict&&k(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function b(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=O(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){h.set(s,u,r.state)}))}var c=r.context=w(t,a,n);r.forEachMutation((function(e,n){var r=a+n;C(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;S(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;_(t,r,e,c)})),r.forEachChild((function(r,o){b(t,e,n.concat(o),r,i)}))}function w(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:r?t.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return x(t,e)}},state:{get:function(){return O(t.state,n)}}}),i}function x(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}function C(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function S(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return u(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function _(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function k(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function T(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function A(t){h&&t===h||(h=t,r(h))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(t){0},p.prototype.commit=function(t,e,n){var r=this,i=T(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(s,r.state)})))},p.prototype.dispatch=function(t,e){var n=this,r=T(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return u.then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}return t}))}},p.prototype.subscribe=function(t){return m(t,this._subscribers)},p.prototype.subscribeAction=function(t){var e="function"===typeof t?{before:t}:t;return m(e,this._actionSubscribers)},p.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},p.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},p.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),b(this,this.state,t,this._modules.get(t),n.preserveState),y(this,this.state)},p.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=O(e.state,t.slice(0,-1));h.delete(n,t[t.length-1])})),g(this)},p.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},p.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(p.prototype,v);var L=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=R(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),E=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=R(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),M=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||R(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=D((function(t,e){var n={};return P(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=R(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),j=function(t){return{mapState:L.bind(null,t),mapGetters:M.bind(null,t),mapMutations:E.bind(null,t),mapActions:N.bind(null,t)}};function P(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function D(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function R(t,e,n){var r=t._modulesNamespaceMap[n];return r}var F={Store:p,install:A,version:"3.1.0",mapState:L,mapMutations:E,mapGetters:M,mapActions:N,createNamespacedHelpers:j};e["a"]=F},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),u=n("8f60"),c=n("45f2"),l=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,w){u(n,e,g);var x,C,S,_=function(t){if(!d&&t in A)return A[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",O=y==v,T=!1,A=t.prototype,L=A[f]||A[h]||y&&A[y],E=L||_(y),M=y?O?_("entries"):E:void 0,N="Array"==e&&A.entries||L;if(N&&(S=l(N.call(new t)),S!==Object.prototype&&S.next&&(c(S,k,!0),r||"function"==typeof S[f]||a(S,f,m))),O&&L&&L.name!==v&&(T=!0,E=function(){return L.call(this)}),r&&!w||!d&&!T&&A[f]||a(A,f,E),s[e]=E,s[k]=m,y)if(x={values:O?E:_(v),keys:b?E:_(p),entries:M},w)for(C in x)C in A||o(A,C,x[C]);else i(i.P+i.F*(d||T),e,x);return x}},"31f4":function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"323e":function(t,e,n){var r,i; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t={version:"0.2.0"},e=t.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:'
'};function n(t,e,n){return tn?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var o;return o="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},o.transition="all "+n+"ms "+i,o}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var u=t.render(!s),c=u.querySelector(e.barSelector),l=e.speed,f=e.easing;return u.offsetWidth,o((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),a(c,i(r,l,f)),1===r?(a(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){a(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var o,s=i.querySelector(e.barSelector),c=n?"-100":r(t.status||0),l=document.querySelector(e.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),e.showSpinner||(o=i.querySelector(e.spinnerSelector),o&&f(o)),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(i),i},t.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&f(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);while(i--)if(r=t[i]+o,r in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function s(t,e){var n="string"==typeof t?t:l(t);return n.indexOf(" "+e+" ")>=0}function u(t,e){var n=l(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function c(t,e){var n,r=l(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function l(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function f(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"32a6":function(t,e,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(t){return i(r(t))}}))},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"33a4":function(t,e,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),i=n("25eb");t.exports=function(t){return r(i(t))}},3702:function(t,e,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"3b8d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("795b"),i=n.n(r);function o(t,e,n,r,o,a,s){try{var u=t[a](s),c=u.value}catch(l){return void n(l)}u.done?e(c):i.a.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new i.a((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)}))}}},"3c11":function(t,e,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),a=n("f201"),s=n("cd78");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},"3c4e":function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||u(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function u(t){return t.$$typeof===s}function c(t){return Array.isArray(t)?[]:{}}function l(t,e){var n=e&&!0===e.clone;return n&&r(t)?h(c(t),t,e):t}function f(t,e,n){var i=t.slice();return e.forEach((function(e,o){"undefined"===typeof i[o]?i[o]=l(e,n):r(e)?i[o]=h(t[o],e,n):-1===t.indexOf(e)&&i.push(l(e,n))})),i}function d(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=l(t[e],n)})),Object.keys(e).forEach((function(o){r(e[o])&&t[o]?i[o]=h(t[o],e[o],n):i[o]=l(e[o],n)})),i}function h(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(t,e,n)}return d(t,e,n)}return l(e,n)}h.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return h(t,n,e)}))};var p=h;t.exports=p},"3f6b":function(t,e,n){t.exports={default:n("51b6"),__esModule:!0}},"40c3":function(t,e,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},4178:function(t,e,n){var r,i,o,a=n("d864"),s=n("3024"),u=n("32fc"),c=n("1ec9"),l=n("e53d"),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){b.call(t.data)};d&&h||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},h=function(t){delete g[t]},"process"==n("6b4c")(f)?r=function(t){f.nextTick(a(b,t,1))}:v&&v.now?r=function(t){v.now(a(b,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):r=y in c("script")?function(t){u.appendChild(c("script"))[y]=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:d,clear:h}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r=n("3f6b"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default||function(t){for(var e=1;e0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(t,e,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),u=o.f,c=0;while(s.length>c)u.call(t,a=s[c++])&&e.push(a)}return e}},"481b":function(t,e){t.exports={}},"4a59":function(t,e,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),u=n("27ee"),c={},l={};e=t.exports=function(t,e,n,f,d){var h,p,v,m,g=d?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(h=s(t.length);h>b;b++)if(m=e?y(a(p=t[b])[0],p[1]):y(t[b]),m===c||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if(m=i(v,y,p.value,e),m===c||m===l)return m};e.BREAK=c,e.RETURN=l},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4c95":function(t,e,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),a=n("8e60"),s=n("5168")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(a){}return n}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5168:function(t,e,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),u=n("e683");function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){c(t),t.baseURL&&!s(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return c(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"551c":function(t,e,n){"use strict";var r,i,o,a,s=n("2d00"),u=n("7726"),c=n("9b43"),l=n("23c6"),f=n("5ca1"),d=n("d3f4"),h=n("d8e8"),p=n("f605"),v=n("4a59"),m=n("ebd6"),g=n("1991").set,y=n("8079")(),b=n("a5b8"),w=n("9c80"),x=n("a25f"),C=n("bcaa"),_="Promise",S=u.TypeError,k=u.process,O=k&&k.versions,T=O&&O.v8||"",A=u[_],L="process"==l(k),E=function(){},M=i=b.f,N=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(E,E)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==T.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(r){}}(),j=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&F(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=j(n))?o.call(n,u,c):u(n)):c(r)}catch(f){l&&!a&&l.exit(),c(f)}};while(n.length>o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)}))}},D=function(t){g.call(u,(function(){var e,n,r,i=t._v,o=R(t);if(o&&(e=w((function(){L?k.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=L||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){g.call(u,(function(){var e;L?k.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},I=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},$=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=j(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c($,r,1),c(I,r,1))}catch(i){I.call(r,i)}})):(n._v=t,n._s=1,P(n,!1))}catch(r){I.call({_w:n,_d:!1},r)}}};N||(A=function(t){p(this,A,_,"_h"),h(t),r.call(this);try{t(c($,this,1),c(I,this,1))}catch(e){I.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(A.prototype,{then:function(t,e){var n=M(m(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c($,t,1),this.reject=c(I,t,1)},b.f=M=function(t){return t===A||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!N,{Promise:A}),n("7f20")(A,_),n("7a56")(_),a=n("8378")[_],f(f.S+f.F*!N,_,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!N),_,{resolve:function(t){return C(s&&this===a?A:this,t)}}),f(f.S+f.F*!(N&&n("5cc5")((function(t){A.all(t)["catch"](E)}))),_,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,o=w((function(){var n=[],o=0,a=1;v(t,!1,(function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=w((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),i=n("62a0");t.exports=function(t){return r[t]||(r[t]=i(t))}},"56b3":function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(t),c=u&&/Qt\/\d+\.\d+/.test(t),l=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),v=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),m=/Android/.test(t),g=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=v||/Mac/.test(e),b=/\bCrOS\b/.test(t),w=/win/i.test(e),x=f&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,u=!0);var C=y&&(c||f&&(null==x||x<12.11)),_=n||a&&s>=9;function S(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var k,O=function(t,e){var n=t.className,r=S(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return T(t).appendChild(e)}function L(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}v?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(D=function(t){try{t.select()}catch(e){}});var $=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function W(t,e){for(var n=0;n=e)return r+Math.min(a,e-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=e)return r}}var V=[""];function K(t){while(V.length<=t)V.push(X(V)+" ");return V[t]}function X(t){return t[t.length-1]}function Y(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\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 ot(t){return t.charCodeAt(0)>=768&&it.test(t)}function at(t,e,n){while((n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}function ut(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;oe||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}var ct=null;function lt(t,e,n){var r;ct=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:ct=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:ct=i)}return null!=r?r:ct}var ft=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function u(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var c="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var l=t.length,f=[],d=0;d-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function gt(t,e){var n=vt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function xt(t){t.prototype.on=function(t,e){pt(this,t,e)},t.prototype.off=function(t,e){mt(this,t,e)}}function Ct(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function _t(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function St(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function kt(t){Ct(t),_t(t)}function Ot(t){return t.target||t.srcElement}function Tt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var At,Lt,Et=function(){if(a&&s<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}();function Mt(t){if(null==At){var e=L("span","​");A(t,L("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(At=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=At?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Nt(t){if(null!=Lt)return Lt;var e=A(t,document.createTextNode("AخA")),n=k(e,0,1).getBoundingClientRect(),r=k(e,1,2).getBoundingClientRect();return T(t),!(!n||n.left==n.right)&&(Lt=r.right-n.right<3)}var jt=3!="\n\nb".split(/\n/).length?function(t){var e=0,n=[],r=t.length;while(e<=r){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Pt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(n){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Dt=function(){var t=L("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Rt=null;function Ft(t){if(null!=Rt)return Rt;var e=A(t,L("span","x")),n=e.getBoundingClientRect(),r=k(e,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-r.left)>1}var It={},$t={};function Wt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),It[t]=e}function Ht(t,e){$t[t]=e}function Bt(t){if("string"==typeof t&&$t.hasOwnProperty(t))t=$t[t];else if(t&&"string"==typeof t.name&&$t.hasOwnProperty(t.name)){var e=$t[t.name];"string"==typeof e&&(e={name:e}),t=Q(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Bt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Bt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function zt(t,e){e=Bt(e);var n=It[e.name];if(!n)return zt(t,"text/plain");var r=n(t,e);if(Ut.hasOwnProperty(e.name)){var i=Ut[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Ut={};function qt(t,e){var n=Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={};F(e,n)}function Gt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(t,e){var n;while(t.innerMode){if(n=t.innerMode(e),!n||n.mode==t)break;e=n.state,t=n.mode}return n||{mode:t,state:e}}function Kt(t,e,n){return!t.startState||t.startState(e,n)}var Xt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Yt(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");var n=t;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e=t.first&&en?ie(n,Yt(t,n).text.length):de(e,Yt(t,e.line).text.length)}function de(t,e){var n=t.ch;return null==n||n>e?ie(t.line,e):n<0?ie(t.line,0):t}function he(t,e){for(var n=[],r=0;r=this.string.length},Xt.prototype.sol=function(){return this.pos==this.lineStart},Xt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xt.prototype.next=function(){if(this.pose},Xt.prototype.eatSpace=function(){var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t},Xt.prototype.skipToEnd=function(){this.pos=this.string.length},Xt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Xt.prototype.backUp=function(t){this.pos-=t},Xt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t},o=this.string.substr(this.pos,t.length);if(i(o)==i(t))return!1!==e&&(this.pos+=t.length),!0},Xt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Xt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Xt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var pe=function(t,e){this.state=t,this.lookAhead=e},ve=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function me(t,e,n,r){var i=[t.state.modeGen],o={};ke(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],u=1,c=0;n.state=!0,ke(t,e.text,s.mode,n,(function(t,e){var n=u;while(ct&&i.splice(u,1,t,i[u+1],r),u+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,u-n,t,"overlay "+e),u=n+2;else for(;nt.options.maxHighlightLength&&Gt(t.doc.mode,r.state),o=me(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ye(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new ve(r,!0,e);var o=Oe(t,e,n),a=o>r.first&&Yt(r,o-1).stateAfter,s=a?ve.fromSaved(r,a,o):new ve(r,Kt(r.mode),o);return r.iter(o,e,(function(n){be(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ve.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ve.prototype.baseToken=function(t){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=t)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ve.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ve.fromSaved=function(t,e,n){return e instanceof pe?new ve(t,Gt(t.mode,e.state),n,e.lookAhead):new ve(t,Gt(t.mode,e),n)},ve.prototype.save=function(t){var e=!1!==t?Gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pe(e,this.maxLookAhead):e};var Ce=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function _e(t,e,n,r){var i,o=t.doc,a=o.mode;e=fe(o,e);var s,u=Yt(o,e.line),c=ye(t,e.line,n),l=new Xt(u.text,t.options.tabSize,c);r&&(s=[]);while((r||l.post.options.maxHighlightLength?(s=!1,a&&be(t,e,r,f.pos),f.pos=e.length,u=null):u=Se(xe(n,f,r.state,d),o),d){var h=d[0].name;h&&(u="m-"+(u?h+" "+u:h))}if(!s||l!=u){while(ca;--s){if(s<=o.first)return o.first;var u=Yt(o,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof pe?c.lookAhead:0)<=o.modeFrontier))return s;var l=I(u.text,null,t.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}function Te(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Yt(t,r).stateAfter;if(i&&(!(i instanceof pe)||r+i.lookAhead=e:o.to>e);(r||(r=[])).push(new Ne(a,o.from,u?null:o.to))}}return r}function Fe(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e);if(s||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=e:o.from0&&s)for(var w=0;w0)){var l=[u,1],f=oe(c.from,s.from),d=oe(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&l.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&l.push({from:s.to,to:c.to}),i.splice.apply(i,l),u+=l.length-3}}return i}function He(t){var e=t.markedSpans;if(e){for(var n=0;ne)&&(!n||qe(n,o.marker)<0)&&(n=o.marker)}return n}function Ye(t,e,n,r,i){var o=Yt(t,e),a=Le&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||l<=0&&f>=0)&&(l<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?oe(c.to,n)>=0:oe(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?oe(c.from,r)<=0:oe(c.from,r)<0)))return!0}}}function Je(t){var e;while(e=Ve(t))t=e.find(-1,!0).line;return t}function Ze(t){var e;while(e=Ke(t))t=e.find(1,!0).line;return t}function Qe(t){var e,n;while(e=Ke(t))t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function tn(t,e){var n=Yt(t,e),r=Je(n);return n==r?e:te(r)}function en(t,e){if(e>t.lastLine())return e;var n,r=Yt(t,e);if(!nn(t,r))return e;while(n=Ke(r))r=n.find(1,!0).line;return te(r)+1}function nn(t,e){var n=Le&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var un=function(t,e,n){this.text=t,Be(this,e),this.height=n?n(this):1};function cn(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),He(t),Be(t,n);var i=r?r(t):1;i!=t.height&&Qt(t,i)}function ln(t){t.parent=null,He(t)}un.prototype.lineNo=function(){return te(this)},xt(un);var fn={},dn={};function hn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?dn:fn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function pn(t,e){var n=E("span",null,null,u?"padding-right: .1px":null),r={pre:E("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=mn,Nt(t.display.measure)&&(a=dt(o,t.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[];var s=e!=t.display.externalMeasured&&te(o);wn(o,r,ge(t,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Mt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(u){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return gt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function vn(t){var e=L("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function mn(t,e,n,r,i,o,u){if(e){var c,l=t.splitSpaces?gn(e,t.trailingSpace):e,f=t.cm.state.specialChars,d=!1;if(f.test(e)){c=document.createDocumentFragment();var h=0;while(1){f.lastIndex=h;var p=f.exec(e),v=p?p.index-h:e.length-h;if(v){var m=document.createTextNode(l.slice(h,h+v));a&&s<9?c.appendChild(L("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+v,m),t.col+=v,t.pos+=v}if(!p)break;h+=v+1;var g=void 0;if("\t"==p[0]){var y=t.cm.options.tabSize,b=y-t.col%y;g=c.appendChild(L("span",K(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),t.col+=b}else"\r"==p[0]||"\n"==p[0]?(g=c.appendChild(L("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",p[0]),t.col+=1):(g=t.cm.options.specialCharPlaceholder(p[0]),g.setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(L("span",[g])):c.appendChild(g),t.col+=1);t.map.push(t.pos,t.pos+1,g),t.pos++}}else t.col+=e.length,c=document.createTextNode(l),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(d=!0),t.pos+=e.length;if(t.trailingSpace=32==l.charCodeAt(e.length-1),n||r||i||d||o){var w=n||"";r&&(w+=r),i&&(w+=i);var x=L("span",[c],w,o);if(u)for(var C in u)u.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,u[C]);return t.content.appendChild(x)}t.content.appendChild(c)}}function gn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;ic&&f.from<=c)break;if(f.to>=l)return t(n,r,i,o,a,s,u);t(n,r.slice(0,f.to-c),i,o,null,s,u),o=null,r=r.slice(f.to-c),c=f.to}}}function bn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function wn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,u,c,l,f,d,h=i.length,p=0,v=1,m="",g=0;;){if(g==p){u=c=l=s="",d=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&g>x.to&&(g=x.to,c=""),C.className&&(u+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(l+=" "+C.startStyle),C.endStyle&&x.to==g&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((d||(d={})).title=C.title),C.attributes)for(var _ in C.attributes)(d||(d={}))[_]=C.attributes[_];C.collapsed&&(!f||qe(f.marker,C)<0)&&(f=x)}else x.from>p&&g>x.from&&(g=x.from)}if(b)for(var S=0;S=h)break;var O=Math.min(h,g);while(1){if(m){var T=p+m.length;if(!f){var A=T>O?m.slice(0,O-p):m;e.addToken(e,A,a?a+u:u,l,p+A.length==g?c:"",s,d)}if(T>=O){m=m.slice(O-p),p=O;break}p=T,l=""}m=i.slice(o,o=n[v++]),a=hn(n[v++],e.cm.options)}}else for(var L=1;L2&&o.push((u.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;rn)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Zn(t,e){e=Je(e);var n=te(e),r=t.display.externalMeasured=new xn(t.doc,e,n);r.lineN=n;var i=r.built=pn(t,r);return r.text=i.pre,A(t.display.lineMeasure,i.pre),r}function Qn(t,e,n,r){return nr(t,er(t,e),n,r)}function tr(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&ee)&&(o=u-s,i=o-1,e>=u&&(a="right")),null!=i){if(r=t[c+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(c&&t[c-2]==t[c-3]&&t[c-1].insertLeft)r=t[2+(c-=3)],a="left";if("right"==n&&i==u-s)while(c=0;i--)if((n=t[i]).left!=n.right)break;return n}function sr(t,e,n,r){var i,o=or(e.map,n,r),u=o.node,c=o.start,l=o.end,f=o.collapse;if(3==u.nodeType){for(var d=0;d<4;d++){while(c&&ot(e.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+l0&&(f=r="right"),i=t.options.lineWrapping&&(h=u.getClientRects()).length>1?h["right"==r?h.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=u.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Lr(t.display),top:p.top,bottom:p.bottom}:ir}for(var v=i.top-e.rect.top,m=i.bottom-e.rect.top,g=(v+m)/2,y=e.view.measure.heights,b=0;b=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function l(t,e,n){var r=s[e],i=1==r.level;return a(n?t-1:t,i!=n)}var f=lt(s,u,c),d=ct,h=l(u,f,"before"==c);return null!=d&&(h.other=l(u,d,"before"!=c)),h}function br(t,e){var n=0;e=fe(t.doc,e),t.options.lineWrapping||(n=Lr(t.display)*e.ch);var r=Yt(t.doc,e.line),i=on(r)+Un(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(t,e,n,r,i){var o=ie(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function xr(t,e,n){var r=t.doc;if(n+=t.display.viewOffset,n<0)return wr(r.first,0,null,-1,-1);var i=ee(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Yt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Yt(r,i);;){var s=kr(t,a,i,e,n),u=Xe(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var c=u.find(1);if(c.line==i)return c;a=Yt(r,i=c.line)}}function Cr(t,e,n,r){r-=pr(e);var i=e.text.length,o=st((function(e){return nr(t,n,e-1).bottom<=r}),i,0);return i=st((function(e){return nr(t,n,e).top>r}),o,i),{begin:o,end:i}}function _r(t,e,n,r){n||(n=er(t,e));var i=vr(t,e,nr(t,n,r),"line").top;return Cr(t,e,n,i)}function Sr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function kr(t,e,n,r,i){i-=on(e);var o=er(t,e),a=pr(e),s=0,u=e.text.length,c=!0,l=dt(e,t.doc.direction);if(l){var f=(t.options.lineWrapping?Tr:Or)(t,e,n,o,l,r,i);c=1!=f.level,s=c?f.from:f.to-1,u=c?f.to:f.from-1}var d,h,p=null,v=null,m=st((function(e){var n=nr(t,o,e);return n.top+=a,n.bottom+=a,!!Sr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,v=n),!0)}),s,u),g=!1;if(v){var y=r-v.left=w.bottom?1:0}return m=at(e.text,m,1),wr(n,m,h,g,r-d)}function Or(t,e,n,r,i,o,a){var s=st((function(s){var u=i[s],c=1!=u.level;return Sr(yr(t,ie(n,c?u.to:u.from,c?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var c=1!=u.level,l=yr(t,ie(n,c?u.from:u.to,c?"after":"before"),"line",e,r);Sr(l,o,a,!0)&&l.top>a&&(u=i[s-1])}return u}function Tr(t,e,n,r,i,o,a){var s=Cr(t,e,r,a),u=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var l=null,f=null,d=0;d=c||h.to<=u)){var p=1!=h.level,v=nr(t,r,p?Math.min(c,h.to)-1:Math.max(u,h.from)).right,m=vm)&&(l=h,f=m)}}return l||(l=i[i.length-1]),l.fromc&&(l={from:l.from,to:c,level:l.level}),l}function Ar(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==rr){rr=L("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)rr.appendChild(document.createTextNode("x")),rr.appendChild(L("br"));rr.appendChild(document.createTextNode("x"))}A(t.measure,rr);var n=rr.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),T(t.measure),n||1}function Lr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=L("span","xxxxxxxxxx"),n=L("pre",[e],"CodeMirror-line-like");A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Er(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Mr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Mr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Nr(t){var e=Ar(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Lr(t.display)-3);return function(i){if(nn(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=Yt(t.doc,c.line).text).length==c.ch){var l=I(u,u.length,t.options.tabSize)-u.length;c=ie(c.line,Math.max(0,Math.round((o-Gn(t.display).left)/Lr(t.display))-l))}return c}function Dr(t,e){if(e>=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Le&&tn(t.doc,e)i.viewFrom?Ir(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)Ir(t);else if(e<=i.viewFrom){var o=$r(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Ir(t)}else if(n>=i.viewTo){var a=$r(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Ir(t)}else{var s=$r(t,e,e,-1),u=$r(t,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(Cn(t,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):Ir(t)}var c=i.externalMeasured;c&&(n=i.lineN&&e=r.viewTo)){var o=r.view[Dr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function Ir(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function $r(t,e,n,r){var i,o=Dr(t,e),a=t.display.view;if(!Le||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,u=0;u0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}while(tn(t.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Wr(t,e,n){var r=t.display,i=r.view;0==i.length||e>=r.viewTo||n<=r.viewFrom?(r.view=Cn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=Cn(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Dr(t,n)))),r.viewTo=n}function Hr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().line0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Kr(t){t.state.focused||(t.display.input.focus(),Yr(t))}function Xr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Jr(t))}),100)}function Yr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(gt(t,"focus",t,e),t.state.focused=!0,j(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),u&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Vr(t))}function Jr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(gt(t,"blur",t,e),t.state.focused=!1,O(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Zr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Qt(i.line,u),Qr(i.line),i.rest))for(var h=0;ht.display.sizerWidth){var p=Math.ceil(c/Lr(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Qr(t){if(t.widgets)for(var e=0;e=a&&(o=ee(e,on(Yt(e,u))-t.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function ei(t,e){if(!yt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=L("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Un(t.display))+"px;\n height: "+(e.bottom-e.top+Vn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}function ni(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(e=e.ch?ie(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?ie(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=yr(t,e),u=n&&n!=e?yr(t,n):s;i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r};var c=ii(t,i),l=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=c.scrollTop&&(fi(t,c.scrollTop),Math.abs(t.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(hi(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ri(t,e){var n=ii(t,e);null!=n.scrollTop&&fi(t,n.scrollTop),null!=n.scrollLeft&&hi(t,n.scrollLeft)}function ii(t,e){var n=t.display,r=Ar(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Xn(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+qn(n),u=e.tops-r;if(e.topi+o){var l=Math.min(e.top,(c?s:e.bottom)-o);l!=i&&(a.scrollTop=l)}var f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,d=Kn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),h=e.right-e.left>d;return h&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.leftd+f-3&&(a.scrollLeft=e.right+(h?0:10)-d),a}function oi(t,e){null!=e&&(ci(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function ai(t){ci(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function si(t,e,n){null==e&&null==n||ci(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function ui(t,e){ci(t),t.curOp.scrollToPos=e}function ci(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=br(t,e.from),r=br(t,e.to);li(t,n,r,e.margin)}}function li(t,e,n,r){var i=ii(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});si(t,i.scrollLeft,i.scrollTop)}function fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Bi(t,{top:e}),di(t,e,!0),n&&Bi(t),Pi(t,100))}function di(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function hi(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Gi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function pi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+qn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var vi=function(t,e,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),pt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),pt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},vi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var t=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},vi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},vi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var mi=function(){};function gi(t,e){e||(e=pi(t));var n=t.display.barWidth,r=t.display.barHeight;yi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Zr(t),yi(t,pi(t)),n=t.display.barWidth,r=t.display.barHeight}function yi(t,e){var n=t.display,r=n.scrollbars.update(e);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&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var bi={native:vi,null:mi};function wi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new bi[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),pt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?hi(t,e):fi(t,e)}),t),t.display.scrollbars.addClass&&j(t.display.wrapper,t.display.scrollbars.addClass)}var xi=0;function Ci(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++xi},Sn(t.curOp)}function _i(t){var e=t.curOp;e&&On(e,(function(t){for(var e=0;e=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Ri(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Oi(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function Ti(t){var e=t.cm,n=e.display;t.updatedDisplay&&Zr(e),t.barMeasure=pi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Qn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Vn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Kn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Ai(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ye(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Gt(e.mode,r.state):null,u=me(t,o,r,!0);s&&(r.state=s),o.styles=u.styles;var c=o.styleClasses,l=u.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),d=0;!f&&dn)return Pi(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Ei(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(t))return!1;Vi(t)&&(Ir(t),e.dims=Er(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Le&&(o=tn(t.doc,o),a=en(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Wr(t,o,a),n.viewOffset=on(Yt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var u=Hr(t);if(!s&&0==u&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ii(t);return u>4&&(n.lineDiv.style.display="none"),zi(t,n.updateLineNumbers,e.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,$i(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Pi(t,400)),n.updateLineNumbers=null,!0}function Hi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Kn(t))r&&(e.visible=ti(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+qn(t.display)-Xn(t),n.top)}),e.visible=ti(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Wi(t,e))break;Zr(t);var i=pi(t);Br(t),gi(t,i),qi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Bi(t,e){var n=new Ri(t,e);if(Wi(t,n)){Zr(t),Hi(t,n);var r=pi(t);Br(t),gi(t,r),qi(t,r),n.finish()}}function zi(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return u&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,l=r.viewFrom,f=0;f-1&&(h=!1),En(t,d,l,n)),h&&(T(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(re(t.options,l)))),a=d.node.nextSibling}else{var p=In(t,d,l,n);o.insertBefore(p,a)}l+=d.size}while(a)a=s(a)}function Ui(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function qi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Vn(t)+"px"}function Gi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Mr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&c||o&&l){if(o&&y&&u)t:for(var d=e.target,h=a.view;d!=s;d=d.parentNode)for(var p=0;p=0&&oe(t,r.to())<=0)return n}return-1};var io=function(t,e){this.anchor=t,this.head=e};function oo(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=W(e,i);for(var o=1;o0:u>=0){var c=ce(s.from(),a.from()),l=ue(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new io(f?l:c,f?c:l))}}return new ro(e,n)}function ao(t,e){return new ro([new io(t,e||t)],0)}function so(t){return t.text?ie(t.from.line+t.text.length-1,X(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function uo(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return so(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=so(e).ch-e.to.ch),ie(n,r)}function co(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,p-1),t.insert(s.line+1,g)}An(t,"change",t,e)}function go(t,e,n){function r(t,i,o){if(t.linked)for(var a=0;a1&&!t.done[t.done.length-2].ranges?(t.done.pop(),X(t.done)):void 0}function ko(t,e,n,r){var i=t.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=So(i,i.lastOp==r)))a=X(o.changes),0==oe(e.from,e.to)&&0==oe(e.from,a.to)?a.to=so(e):o.changes.push(Co(t,e));else{var u=X(i.done);u&&u.ranges||Ao(t.sel,i.done),o={changes:[Co(t,e)],generation:i.generation},i.done.push(o);while(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=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||gt(t,"historyAdded")}function Oo(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function To(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Oo(t,o,X(i.done),e))?i.done[i.done.length-1]=e:Ao(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&_o(i.undone)}function Ao(t,e){var n=X(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Lo(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Eo(t){if(!t)return null;for(var e,n=0;n-1&&(X(s)[f]=c[f],delete c[f])}}}return r}function Po(t,e,n,r){if(r){var i=t.anchor;if(n){var o=oe(e,i)<0;o!=oe(n,i)<0?(i=e,e=n):o!=oe(e,n)<0&&(e=n)}return new io(i,e)}return new io(n||e,e)}function Do(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ho(t,new ro([Po(t.sel.primary(),e,n,i)],0),r)}function Ro(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:s.to>e.ch))){if(i&&(gt(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),d=void 0;if((r<0?l:c)&&(f=Ko(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(d=oe(f,n))&&(r<0?d<0:d>0))return Go(t,f,e,r,i)}var h=u.find(r<0?-1:1);return(r<0?c:l)&&(h=Ko(t,h,r,h.line==e.line?o:null)),h?Go(t,h,e,r,i):null}}return e}function Vo(t,e,n,r,i){var o=r||1,a=Go(t,e,n,o,i)||!i&&Go(t,e,n,o,!0)||Go(t,e,n,-o,i)||!i&&Go(t,e,n,-o,!0);return a||(t.cantEdit=!0,ie(t.first,0))}function Ko(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?fe(t,ie(e.line-1)):null:n>0&&e.ch==(r||Yt(t,e.line)).text.length?e.line=0;--i)Zo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Zo(t,e)}}function Zo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=co(t,e);ko(t,e,n,t.cm?t.cm.curOp.id:NaN),ea(t,e,n,Ie(t,e));var r=[];go(t,(function(t,n){n||-1!=W(r,t.history)||(aa(t.history,e),r.push(t.history)),ea(t,e,null,Ie(t,e))}))}}function Qo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,u="undo"==e?o.undone:o.done,c=0;c=0;--h){var p=d(h);if(p)return p.v}}}}function ta(t,e){if(0!=e&&(t.first+=e,t.sel=new ro(Y(t.sel.ranges,(function(t){return new io(ie(t.anchor.line+e,t.anchor.ch),ie(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Rr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:ie(o,Yt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Jt(t,e.from,e.to),n||(n=co(t,e)),t.cm?na(t.cm,e,r):mo(t,e,r),Bo(t,n,z),t.cantEdit&&Vo(t,ie(t.firstLine(),0))&&(t.cantEdit=!1)}}function na(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,u=o.line;t.options.lineWrapping||(u=te(Je(Yt(r,o.line))),r.iter(u,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&bt(t),mo(r,e,n,Nr(t)),t.options.lineWrapping||(r.iter(u,o.line+e.text.length,(function(t){var e=an(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),Te(r,o.line),Pi(t,400);var c=e.text.length-(a.line-o.line)-1;e.full?Rr(t):o.line!=a.line||1!=e.text.length||vo(t.doc,e)?Rr(t,o.line,a.line+1,c):Fr(t,o.line,"text");var l=wt(t,"changes"),f=wt(t,"change");if(f||l){var d={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};f&&An(t,"change",t,d),l&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}function ra(t,e,n,r,i){var o;r||(r=n),oe(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),Jo(t,{from:n,to:r,text:e,origin:i})}function ia(t,e,n,r){n1||!(this.children[0]instanceof ua))){var s=[];this.collapse(s),this.children=[new ua(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var a=i.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ye(t,e.line,e,n,o)||e.line!=n.line&&Ye(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Me()}o.addToHistory&&ko(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,u=e.line,c=t.cm;if(t.iter(u,n.line+1,(function(t){c&&o.collapsed&&!c.options.lineWrapping&&Je(t)==c.display.maxLine&&(s=!0),o.collapsed&&u!=e.line&&Qt(t,0),De(t,new Ne(o,u==e.line?e.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){nn(t,e)&&Qt(e,0)})),o.clearOnEnter&&pt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ee(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Rr(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=e.line;l<=n.line;l++)Fr(c,l,"text");o.atomic&&Uo(c.doc),An(c,"markerAdded",c,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Ci(t),wt(this,"clear")){var n=this.find();n&&An(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=l,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Rr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Uo(t.doc)),t&&An(t,"markerCleared",t,this,r,i),e&&_i(t),this.parent&&this.parent.clear()}},pa.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;u--)Jo(this,r[u]);s?Wo(this,s):this.cm&&ai(this.cm)})),undo:ji((function(){Qo(this,"undo")})),redo:ji((function(){Qo(this,"redo")})),undoSelection:ji((function(){Qo(this,"undo",!0)})),redoSelection:ji((function(){Qo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=fe(this,t),e=fe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&i!=t.line||null!=u.from&&i==e.line&&u.from>=e.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),fe(this,ie(n,e))},indexFromPos:function(t){t=fe(this,t);var e=t.ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),Bo(e.doc,ao(n,n)),d)for(var h=0;h=0;e--)ra(t.doc,"",r[e].from,r[e].to,"+delete");ai(t)}))}function Ga(t,e,n){var r=at(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Va(t,e,n){var r=Ga(t,e.ch,n);return null==r?null:new ie(e.line,r,n<0?"after":"before")}function Ka(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=dt(n,e.doc.direction);if(o){var a,s=i<0?X(o):o[0],u=i<0==(1==s.level),c=u?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=er(e,n);a=i<0?n.text.length-1:0;var f=nr(e,l,a).top;a=st((function(t){return nr(e,l,t).top==f}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Ga(n,a,1))}else a=i<0?s.to:s.from;return new ie(r,a,c)}}return new ie(r,i<0?n.text.length:0,i<0?"before":"after")}function Xa(t,e,n,r){var i=dt(e,t.doc.direction);if(!i)return Va(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lt(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=l.begin)){var h=f?"before":"after";return new ie(n.line,d,h)}}var p=function(t,e,r){for(var o=function(t,e){return e?new ie(n.line,u(t,1),"before"):new ie(n.line,t,"after")};t>=0&&t0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c0?l.end:u(l.begin,-1);return null==m||r>0&&m==e.text.length||(v=p(r>0?0:i.length-1,r,c(m)),!v)?null:v}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa["default"]=y?Fa.macDefault:Fa.pcDefault;var Ya={selectAll:Xo,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),z)},killLine:function(t){return qa(t,(function(e){if(e.empty()){var n=Yt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ie(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ie(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Yt(t.doc,i.line-1).text;a&&(i=new ie(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ie(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Ei(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?xs(t,r,e,o):_s(t,r,e,o)}function xs(t,e,n,r){var i=t.display,o=!1,c=Mi(t,(function(e){u&&(i.scroller.draggable=!1),t.state.draggingText=!1,mt(i.wrapper.ownerDocument,"mouseup",c),mt(i.wrapper.ownerDocument,"mousemove",l),mt(i.scroller,"dragstart",f),mt(i.scroller,"drop",c),o||(Ct(e),r.addNew||Do(t.doc,n,null,null,r.extend),u&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),l=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pt(i.wrapper.ownerDocument,"mouseup",c),pt(i.wrapper.ownerDocument,"mousemove",l),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",c),Xr(t),setTimeout((function(){return i.input.focus()}),20)}function Cs(t,e,n){if("char"==n)return new io(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new io(ie(e.line,0),fe(t.doc,ie(e.line+1,0)));var r=n(t,e);return new io(r.from,r.to)}function _s(t,e,n,r){var i=t.display,o=t.doc;Ct(e);var a,s,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new io(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new io(n,n)),n=Pr(t,e,!0,!0),s=-1;else{var l=Cs(t,n,r.unit);a=r.extend?Po(a,l.anchor,l.head,r.extend):l}r.addNew?-1==s?(s=c.length,Ho(o,oo(t,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Ho(o,oo(t,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Fo(o,s,a,U):(s=0,Ho(o,new ro([a],0),U),u=o.sel);var f=n;function d(e){if(0!=oe(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],c=t.options.tabSize,l=I(Yt(o,n.line).text,n.ch,c),d=I(Yt(o,e.line).text,e.ch,c),h=Math.min(l,d),p=Math.max(l,d),v=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=m;v++){var g=Yt(o,v).text,y=G(g,h,c);h==p?i.push(new io(ie(v,y),ie(v,y))):g.length>y&&i.push(new io(ie(v,y),ie(v,G(g,p,c))))}i.length||i.push(new io(n,n)),Ho(o,oo(t,u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,w=a,x=Cs(t,e,r.unit),C=w.anchor;oe(x.anchor,C)>0?(b=x.head,C=ce(w.from(),x.anchor)):(b=x.anchor,C=ue(w.to(),x.head));var _=u.ranges.slice(0);_[s]=Ss(t,new io(fe(o,C),b)),Ho(o,oo(t,_,s),U)}}var h=i.wrapper.getBoundingClientRect(),p=0;function v(e){var n=++p,a=Pr(t,e,!0,"rectangle"==r.unit);if(a)if(0!=oe(a,f)){t.curOp.focus=N(),d(a);var s=ti(i,o);(a.line>=s.to||a.lineh.bottom?20:0;u&&setTimeout(Mi(t,(function(){p==n&&(i.scroller.scrollTop+=u,v(e))})),50)}}function m(e){t.state.selectingText=!1,p=1/0,e&&(Ct(e),i.input.focus()),mt(i.wrapper.ownerDocument,"mousemove",g),mt(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var g=Mi(t,(function(t){0!==t.buttons&&Tt(t)?v(t):m(t)})),y=Mi(t,m);t.state.selectingText=y,pt(i.wrapper.ownerDocument,"mousemove",g),pt(i.wrapper.ownerDocument,"mouseup",y)}function Ss(t,e){var n=e.anchor,r=e.head,i=Yt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var o=dt(i);if(!o)return e;var a=lt(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var u,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var l=lt(o,r.ch,r.sticky),f=l-a||(r.ch-n.ch)*(1==s.level?-1:1);u=l==c-1||l==c?f<0:f>0}var d=o[c+(u?-1:0)],h=u==(1==d.level),p=h?d.from:d.to,v=h?"after":"before";return n.ch==p&&n.sticky==v?e:new io(new ie(n.line,p,v),r)}function ks(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(d){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&Ct(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!wt(t,n))return St(e);o-=s.top-a.viewOffset;for(var u=0;u=i){var l=ee(t.doc,o),f=t.display.gutterSpecs[u];return gt(t,n,t,l,f.className,e),St(e)}}}function Os(t,e){return ks(t,e,"gutterClick",!0)}function Ts(t,e){zn(t.display,e)||As(t,e)||yt(t,e,"contextmenu")||_||t.display.input.onContextMenu(e)}function As(t,e){return!!wt(t,"gutterContextMenu")&&ks(t,e,"gutterContextMenu",!1)}function Ls(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(t)}vs.prototype.compare=function(t,e,n){return this.time+ps>t&&0==oe(e,this.pos)&&n==this.button};var Es={toString:function(){return"CodeMirror.Init"}},Ms={},Ns={};function js(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=Es&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Es,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,ho(t)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){po(t),fr(t),Rr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(ie(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(t.doc,e,n[i],ie(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Es&&t.refresh()})),n("specialCharPlaceholder",vn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ls(t),Yi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Ua(e),i=n!=Es&&Ua(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ds,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Ki(e,t.options.lineNumbers),Yi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Mr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return gi(t)}),!0),n("scrollbarStyle","native",(function(t){wi(t),gi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Ki(t.options.gutters,e),Yi(t)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(t){return t}),Yi,!0),n("showCursorWhenSelecting",!1,Br,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Jr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Ps),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Br,!0),n("singleCursorHeightPerLine",!0,Br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Ps(t,e,n){var r=n&&n!=Es;if(!e!=!r){var i=t.display.dragFunctions,o=e?pt:mt;o(t.display.scroller,"dragstart",i.start),o(t.display.scroller,"dragenter",i.enter),o(t.display.scroller,"dragover",i.over),o(t.display.scroller,"dragleave",i.leave),o(t.display.scroller,"drop",i.drop)}}function Ds(t){t.options.lineWrapping?(j(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(O(t.display.wrapper,"CodeMirror-wrap"),sn(t)),jr(t),Rr(t),fr(t),setTimeout((function(){return gi(t)}),100)}function Rs(t,e){var n=this;if(!(this instanceof Rs))return new Rs(t,e);this.options=e=e?F(e):{},F(Ms,e,!1);var r=e.value;"string"==typeof r?r=new Ca(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Rs.inputStyles[e.inputStyle](this),o=this.display=new Ji(t,r,i,e);for(var c in o.wrapper.CodeMirror=this,Ls(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(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 $,keySeq:null,specialChars:null},e.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Fs(this),Ea(),Ci(this),this.curOp.forceUpdate=!0,yo(this,r),e.autofocus&&!g||this.hasFocus()?setTimeout(R(Yr,this),20):Jr(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,e[c],Es);Vi(this),e.finishInit&&e.finishInit(this);for(var l=0;l400}pt(e.scroller,"touchstart",(function(i){if(!yt(t,i)&&!o(i)&&!Os(t,i)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),pt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),pt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!zn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=t.coordsChar(e.activeTouch,"page");o=!r.prev||u(r,r.prev)?new io(a,a):!r.prev.prev||u(r,r.prev.prev)?t.findWordAt(a):new io(ie(a.line,0),fe(t.doc,ie(a.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),Ct(n)}i()})),pt(e.scroller,"touchcancel",i),pt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(fi(t,e.scroller.scrollTop),hi(t,e.scroller.scrollLeft,!0),gt(t,"scroll",t))})),pt(e.scroller,"mousewheel",(function(e){return no(t,e)})),pt(e.scroller,"DOMMouseScroll",(function(e){return no(t,e)})),pt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){yt(t,e)||kt(e)},over:function(e){yt(t,e)||(Oa(t,e),kt(e))},start:function(e){return ka(t,e)},drop:Mi(t,Sa),leave:function(e){yt(t,e)||Ta(t)}};var c=e.input.getField();pt(c,"keyup",(function(e){return ls.call(t,e)})),pt(c,"keydown",Mi(t,us)),pt(c,"keypress",Mi(t,fs)),pt(c,"focus",(function(e){return Yr(t,e)})),pt(c,"blur",(function(e){return Jr(t,e)}))}Rs.defaults=Ms,Rs.optionHandlers=Ns;var Is=[];function $s(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=ye(t,e).state:n="prev");var a=t.options.tabSize,s=Yt(o,e),u=I(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(i,s.text.slice(l.length),s.text),c==B||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?I(Yt(o,e-1).text,null,a):0:"add"==n?c=u+t.options.indentUnit:"subtract"==n?c=u-t.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var f="",d=0;if(t.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)d+=a,f+="\t";if(da,u=jt(e),c=null;if(s&&r.ranges.length>1)if(Ws&&Ws.text.join("\n")==e){if(r.ranges.length%Ws.text.length==0){c=[];for(var l=0;l=0;d--){var h=r.ranges[d],p=h.from(),v=h.to();h.empty()&&(n&&n>0?p=ie(p.line,p.ch-n):t.state.overwrite&&!s?v=ie(v.line,Math.min(Yt(o,v.line).text.length,v.ch+X(u).length)):s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==u.join("\n")&&(p=v=ie(p.line,0)));var m={from:p,to:v,text:c?c[d%c.length]:u,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};Jo(t.doc,m),An(t,"inputRead",t,m)}e&&!s&&Us(t,e),ai(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function zs(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Ei(e,(function(){return Bs(e,n,0,null,"paste")})),!0}function Us(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.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 o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=$s(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Yt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=$s(t,i.head.line,"smart"));a&&An(t,"electricInput",t,i.head.line)}}}function qs(t){for(var e=[],n=[],r=0;rn&&($s(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u0&&Fo(this.doc,r,new io(o,c[r].to()),z)}}})),getTokenAt:function(t,e){return _e(this,t,e)},getLineTokens:function(t,e){return _e(this,ie(t),e,!0)},getTokenTypeAt:function(t){t=fe(this.doc,t);var e,n=ge(this,Yt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(t=o,i=!0),r=Yt(this.doc,t)}else r=t;return vr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o=this.display;t=yr(this,fe(this.doc,t));var a=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==r)a=t.top;else if("above"==r||"near"==r){var u=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(a=t.bottom),s+e.offsetWidth>c&&(s=c-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==i?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+e.offsetWidth,bottom:a+e.offsetHeight})},triggerOnKeyDown:Ni(us),triggerOnKeyPress:Ni(fs),triggerOnKeyUp:ls,triggerOnMouseDown:Ni(gs),execCommand:function(t){if(Ya.hasOwnProperty(t))return Ya[t].call(null,this)},triggerElectric:Ni((function(t){Us(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=fe(this.doc,t),a=0;a0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&jr(this),gt(this,"refresh",this)})),swapDoc:Ni((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,t),fr(this),this.display.input.reset(),si(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,An(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},xt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}function Xs(t,e,n,r,i){var o=e,a=n,s=Yt(t,e.line),u=i&&"rtl"==t.direction?-n:n;function c(){var n=e.line+u;return!(n=t.first+t.size)&&(e=new ie(n,e.ch,e.sticky),s=Yt(t,n))}function l(r){var o;if(o=i?Xa(t.cm,s,e,n):Va(s,e,n),null==o){if(r||!c())return!1;e=Ka(i,t.cm,s,e.line,u)}else e=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;;p=!1){if(n<0&&!l(!p))break;var v=s.text.charAt(e.ch)||"\n",m=nt(v,h)?"w":d&&"\n"==v?"n":!d||/\s/.test(v)?null:"p";if(!d||p||m||(m="s"),f&&f!=m){n<0&&(n=1,l(),e.sticky="after");break}if(m&&(f=m),n>0&&!l(!p))break}var g=Vo(t,e,o,a,!0);return ae(o,g)&&(g.hitSide=!0),g}function Ys(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(u-.5*Ar(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;;){if(o=xr(t,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Js=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(t,e){var n=tr(t,e.line);if(!n||n.hidden)return null;var r=Yt(t.doc,e.line),i=Jn(n,r,e.line),o=dt(r,t.doc.direction),a="left";if(o){var s=lt(o,e.ch);a=s%2?"right":"left"}var u=or(i.map,e.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function Qs(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function tu(t,e){return e&&(t.bad=!0),t}function eu(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),u=!1;function c(t){return function(e){return e.id==t}}function l(){a&&(o+=s,u&&(o+=s),a=u=!1)}function f(t){t&&(l(),o+=t)}function d(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void f(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(ie(r,0),ie(i+1,0),c(+h));return void(p.length&&(o=p[0].find(0))&&f(Jt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var v=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;v&&l();for(var m=0;m=e.display.viewTo||o.line=e.display.viewFrom&&Zs(e,i)||{node:u[0].measure.map[2],offset:0},l=o.liner.firstLine()&&(a=ie(a.line-1,Yt(r.doc,a.line-1).length)),s.ch==Yt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(t=Dr(r,a.line))?(e=te(i.view[0].line),n=i.view[0].node):(e=te(i.view[t].line),n=i.view[t-1].node.nextSibling);var u,c,l=Dr(r,s.line);if(l==i.view.length-1?(u=i.viewTo-1,c=i.lineDiv.lastChild):(u=te(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;var f=r.doc.splitLines(eu(r,n,c,e,u)),d=Jt(r.doc,ie(e,0),ie(u,Yt(r.doc,u).text.length));while(f.length>1&&d.length>1)if(X(f)==X(d))f.pop(),d.pop(),u--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),e++}var h=0,p=0,v=f[0],m=d[0],g=Math.min(v.length,m.length);while(ha.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1))h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var x=ie(e,h),C=ie(u,d.length?X(d).length-p:0);return f.length>1||f[0]||oe(x,C)?(ra(r.doc,f,x,C,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Ei(this.cm,(function(){return Rr(t.cm)}))},Js.prototype.setUneditable=function(t){t.contentEditable="false"},Js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,Bs)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var iu=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new $,this.hasSelection=!1,this.composing=null};function ou(t,e){if(e=e?F(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=N();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(pt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(u){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(mt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Rs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function au(t){t.off=mt,t.on=pt,t.wheelEventPixels=eo,t.Doc=Ca,t.splitLines=jt,t.countColumn=I,t.findColumn=G,t.isWordChar=et,t.Pass=B,t.signal=gt,t.Line=un,t.changeEnd=so,t.scrollbarModel=bi,t.Pos=ie,t.cmpPos=oe,t.modes=It,t.mimeModes=$t,t.resolveMode=Bt,t.getMode=zt,t.modeExtensions=Ut,t.extendMode=qt,t.copyState=Gt,t.startState=Kt,t.innerMode=Vt,t.commands=Ya,t.keyMap=Fa,t.keyName=za,t.isModifierKey=Ha,t.lookupKey=Wa,t.normalizeKeyMap=$a,t.StringStream=Xt,t.SharedTextMarker=ma,t.TextMarker=pa,t.LineWidget=la,t.e_preventDefault=Ct,t.e_stopPropagation=_t,t.e_stop=kt,t.addClass=j,t.contains=M,t.rmClass=O,t.keyNames=ja}iu.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!yt(r,t)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=qs(r);Hs({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,z):(n.prevInput="",i.value=e.text.join("\n"),D(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),v&&(i.style.width="0px"),pt(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),pt(i,"paste",(function(t){yt(r,t)||zs(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pt(i,"cut",o),pt(i,"copy",o),pt(t.scroller,"paste",(function(e){if(!zn(t,e)&&!yt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),pt(t.lineSpace,"selectstart",(function(e){zn(t,e)||Ct(e)})),pt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},iu.prototype.createField=function(t){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild},iu.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},iu.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=zr(t);if(t.options.moveInputWithCursor){var i=yr(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},iu.prototype.showSelection=function(t){var e=this.cm,n=e.display;A(n.cursorDiv,t.cursors),A(n.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},iu.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},iu.prototype.getField=function(){return this.textarea},iu.prototype.supportsTouch=function(){return!1},iu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||N()!=this.textarea))try{this.textarea.focus()}catch(t){}},iu.prototype.blur=function(){this.textarea.blur()},iu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},iu.prototype.receivedFocus=function(){this.slowPoll()},iu.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},iu.prototype.fastPoll=function(){var t=!1,e=this;function n(){var r=e.poll();r||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},iu.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Pt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var u=0,c=Math.min(r.length,i.length);while(u1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},iu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},iu.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},iu.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Pr(n,t),c=r.scroller.scrollTop;if(o&&!f){var l=n.options.resetSelectionOnContextMenu;l&&-1==n.doc.sel.contains(o)&&Mi(n,Ho)(n.doc,ao(o),z);var d,h=i.style.cssText,p=e.wrapper.style.cssText,v=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-v.top-5)+"px; left: "+(t.clientX-v.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(d=window.scrollY),r.input.focus(),u&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),_){kt(t);var m=function(){mt(window,"mouseup",m),setTimeout(y,20)};pt(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Mi(n,Xo)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},iu.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},iu.prototype.setUneditable=function(){},iu.prototype.needsContentAttribute=!1,js(Rs),Ks(Rs);var su="iter insert remove copy getEditor constructor".split(" ");for(var uu in Ca.prototype)Ca.prototype.hasOwnProperty(uu)&&W(su,uu)<0&&(Rs.prototype[uu]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ca.prototype[uu]));return xt(Ca),Rs.inputStyles={textarea:iu,contenteditable:Js},Rs.defineMode=function(t){Rs.defaults.mode||"null"==t||(Rs.defaults.mode=t),Wt.apply(this,arguments)},Rs.defineMIME=Ht,Rs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(t,e){Rs.prototype[t]=e},Rs.defineDocExtension=function(t,e){Ca.prototype[t]=e},Rs.fromTextArea=ou,au(Rs),Rs.version="5.56.0",Rs}))},"584a":function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,u=arguments;function c(){o=Number(new Date),n.apply(a,u)}function l(){i=void 0}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>t?c():!0!==e&&(i=setTimeout(r?l:c,void 0===r?t-s:t))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),a}},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},"5bba":function(t,e,n){n("9d98");var r=n("584a").Object;t.exports=function(t,e){return r.defineProperties(t,e)}},"5c95":function(t,e,n){var r=n("35e8");t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",c=function(t,e,n){var l,f,d,h,p=t&c.F,v=t&c.G,m=t&c.S,g=t&c.P,y=t&c.B,b=v?r:m?r[e]||(r[e]={}):(r[e]||{})[u],w=v?i:i[e]||(i[e]={}),x=w[u]||(w[u]={});for(l in v&&(n=e),n)f=!p&&b&&void 0!==b[l],d=(f?b:n)[l],h=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,t&c.U),w[l]!=d&&o(w,l,h),g&&x[l]!=d&&(x[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(a){}return n}},"5e83":function(t,e,n){t.exports=n("8580")},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u="prototype",c=function(t,e,n){var l,f,d,h=t&c.F,p=t&c.G,v=t&c.S,m=t&c.P,g=t&c.B,y=t&c.W,b=p?i:i[e]||(i[e]={}),w=b[u],x=p?r:v?r[e]:(r[e]||{})[u];for(l in p&&(n=e),n)f=!h&&x&&void 0!==x[l],f&&s(b,l)||(d=f?x[l]:n[l],b[l]=p&&"function"!=typeof x[l]?n[l]:g&&f?o(d,r):y&&x[l]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[l]=d,t&c.R&&w&&!w[l]&&a(w,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"656e":function(t,e,n){"use strict";var r=n("79aa");function i(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},6718:function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"696e":function(t,e,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),t.exports=n("584a").Promise},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=c.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,L=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new T(e,n,this);A.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){L.prototype[t]=function(){var e;return(e=A.get(this))[t].apply(e,arguments)}}));var E=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();e["default"]=E}.call(this,n("c8ba"))},"71c1":function(t,e,n){var r=n("3a38"),i=n("25eb");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),u=n("626a"),c=Object.assign;t.exports=!c||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){var n=s(t),c=arguments.length,l=1,f=o.f,d=a.f;while(c>l){var h,p=u(arguments[l++]),v=f?i(p).concat(f(p)):i(p),m=v.length,g=0;while(m>g)h=v[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},"765d":function(t,e,n){n("6718")("observable")},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(t,e,n){t.exports=n("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b3e":function(t,e,n){"use strict";var r,i=n("a3de"); + * @license MIT */(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t={version:"0.2.0"},e=t.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:'
'};function n(t,e,n){return tn?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var o;return o="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},o.transition="all "+n+"ms "+i,o}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var u=t.render(!s),c=u.querySelector(e.barSelector),l=e.speed,f=e.easing;return u.offsetWidth,o((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),a(c,i(r,l,f)),1===r?(a(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){a(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var o,s=i.querySelector(e.barSelector),c=n?"-100":r(t.status||0),l=document.querySelector(e.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),e.showSpinner||(o=i.querySelector(e.spinnerSelector),o&&f(o)),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(i),i},t.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&f(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);while(i--)if(r=t[i]+o,r in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function s(t,e){var n="string"==typeof t?t:l(t);return n.indexOf(" "+e+" ")>=0}function u(t,e){var n=l(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function c(t,e){var n,r=l(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function l(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function f(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"33a4":function(t,e,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),i=n("25eb");t.exports=function(t){return r(i(t))}},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"3c4e":function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||u(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function u(t){return t.$$typeof===s}function c(t){return Array.isArray(t)?[]:{}}function l(t,e){var n=e&&!0===e.clone;return n&&r(t)?h(c(t),t,e):t}function f(t,e,n){var i=t.slice();return e.forEach((function(e,o){"undefined"===typeof i[o]?i[o]=l(e,n):r(e)?i[o]=h(t[o],e,n):-1===t.indexOf(e)&&i.push(l(e,n))})),i}function d(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=l(t[e],n)})),Object.keys(e).forEach((function(o){r(e[o])&&t[o]?i[o]=h(t[o],e[o],n):i[o]=l(e[o],n)})),i}function h(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(t,e,n)}return d(t,e,n)}return l(e,n)}h.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return h(t,n,e)}))};var p=h;t.exports=p},"3f6b":function(t,e,n){t.exports={default:n("51b6"),__esModule:!0}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r=n("3f6b"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default||function(t){for(var e=1;e0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"47ee":function(t,e,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),u=o.f,c=0;while(s.length>c)u.call(t,a=s[c++])&&e.push(a)}return e}},"481b":function(t,e){t.exports={}},"4a59":function(t,e,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),u=n("27ee"),c={},l={};e=t.exports=function(t,e,n,f,d){var h,p,v,m,g=d?function(){return t}:u(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(h=s(t.length);h>b;b++)if(m=e?y(a(p=t[b])[0],p[1]):y(t[b]),m===c||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if(m=i(v,y,p.value,e),m===c||m===l)return m};e.BREAK=c,e.RETURN=l},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5168:function(t,e,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),u=n("e683");function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){c(t),t.baseURL&&!s(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return c(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"551c":function(t,e,n){"use strict";var r,i,o,a,s=n("2d00"),u=n("7726"),c=n("9b43"),l=n("23c6"),f=n("5ca1"),d=n("d3f4"),h=n("d8e8"),p=n("f605"),v=n("4a59"),m=n("ebd6"),g=n("1991").set,y=n("8079")(),b=n("a5b8"),w=n("9c80"),x=n("a25f"),C=n("bcaa"),S="Promise",_=u.TypeError,k=u.process,O=k&&k.versions,T=O&&O.v8||"",A=u[S],L="process"==l(k),E=function(){},M=i=b.f,N=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(E,E)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==T.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(r){}}(),j=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&F(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(_("Promise-chain cycle")):(o=j(n))?o.call(n,u,c):u(n)):c(r)}catch(f){l&&!a&&l.exit(),c(f)}};while(n.length>o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)}))}},D=function(t){g.call(u,(function(){var e,n,r,i=t._v,o=R(t);if(o&&(e=w((function(){L?k.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=L||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){g.call(u,(function(){var e;L?k.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},$=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=j(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c(I,r,1),c($,r,1))}catch(i){$.call(r,i)}})):(n._v=t,n._s=1,P(n,!1))}catch(r){$.call({_w:n,_d:!1},r)}}};N||(A=function(t){p(this,A,S,"_h"),h(t),r.call(this);try{t(c(I,this,1),c($,this,1))}catch(e){$.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(A.prototype,{then:function(t,e){var n=M(m(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(I,t,1),this.reject=c($,t,1)},b.f=M=function(t){return t===A||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!N,{Promise:A}),n("7f20")(A,S),n("7a56")(S),a=n("8378")[S],f(f.S+f.F*!N,S,{reject:function(t){var e=M(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!N),S,{resolve:function(t){return C(s&&this===a?A:this,t)}}),f(f.S+f.F*!(N&&n("5cc5")((function(t){A.all(t)["catch"](E)}))),S,{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,o=w((function(){var n=[],o=0,a=1;v(t,!1,(function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=w((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5530:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=15&&(f=!1,u=!0);var C=y&&(c||f&&(null==x||x<12.11)),S=n||a&&s>=9;function _(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var k,O=function(t,e){var n=t.className,r=_(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return T(t).appendChild(e)}function L(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}v?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(D=function(t){try{t.select()}catch(e){}});var I=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function W(t,e){for(var n=0;n=e)return r+Math.min(a,e-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=e)return r}}var V=[""];function K(t){while(V.length<=t)V.push(X(V)+" ");return V[t]}function X(t){return t[t.length-1]}function Y(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\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 ot(t){return t.charCodeAt(0)>=768&&it.test(t)}function at(t,e,n){while((n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}function ut(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;oe||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}var ct=null;function lt(t,e,n){var r;ct=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:ct=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:ct=i)}return null!=r?r:ct}var ft=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function u(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var c="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var l=t.length,f=[],d=0;d-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function gt(t,e){var n=vt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function xt(t){t.prototype.on=function(t,e){pt(this,t,e)},t.prototype.off=function(t,e){mt(this,t,e)}}function Ct(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function St(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function _t(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function kt(t){Ct(t),St(t)}function Ot(t){return t.target||t.srcElement}function Tt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var At,Lt,Et=function(){if(a&&s<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}();function Mt(t){if(null==At){var e=L("span","​");A(t,L("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(At=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=At?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Nt(t){if(null!=Lt)return Lt;var e=A(t,document.createTextNode("AخA")),n=k(e,0,1).getBoundingClientRect(),r=k(e,1,2).getBoundingClientRect();return T(t),!(!n||n.left==n.right)&&(Lt=r.right-n.right<3)}var jt=3!="\n\nb".split(/\n/).length?function(t){var e=0,n=[],r=t.length;while(e<=r){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Pt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(n){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Dt=function(){var t=L("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Rt=null;function Ft(t){if(null!=Rt)return Rt;var e=A(t,L("span","x")),n=e.getBoundingClientRect(),r=k(e,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-r.left)>1}var $t={},It={};function Wt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),$t[t]=e}function Ht(t,e){It[t]=e}function Bt(t){if("string"==typeof t&&It.hasOwnProperty(t))t=It[t];else if(t&&"string"==typeof t.name&&It.hasOwnProperty(t.name)){var e=It[t.name];"string"==typeof e&&(e={name:e}),t=Q(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Bt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Bt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function zt(t,e){e=Bt(e);var n=$t[e.name];if(!n)return zt(t,"text/plain");var r=n(t,e);if(Ut.hasOwnProperty(e.name)){var i=Ut[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Ut={};function qt(t,e){var n=Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={};F(e,n)}function Gt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(t,e){var n;while(t.innerMode){if(n=t.innerMode(e),!n||n.mode==t)break;e=n.state,t=n.mode}return n||{mode:t,state:e}}function Kt(t,e,n){return!t.startState||t.startState(e,n)}var Xt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Yt(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");var n=t;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e=t.first&&en?ie(n,Yt(t,n).text.length):de(e,Yt(t,e.line).text.length)}function de(t,e){var n=t.ch;return null==n||n>e?ie(t.line,e):n<0?ie(t.line,0):t}function he(t,e){for(var n=[],r=0;r=this.string.length},Xt.prototype.sol=function(){return this.pos==this.lineStart},Xt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xt.prototype.next=function(){if(this.pose},Xt.prototype.eatSpace=function(){var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t},Xt.prototype.skipToEnd=function(){this.pos=this.string.length},Xt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Xt.prototype.backUp=function(t){this.pos-=t},Xt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t},o=this.string.substr(this.pos,t.length);if(i(o)==i(t))return!1!==e&&(this.pos+=t.length),!0},Xt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Xt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Xt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var pe=function(t,e){this.state=t,this.lookAhead=e},ve=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function me(t,e,n,r){var i=[t.state.modeGen],o={};ke(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],u=1,c=0;n.state=!0,ke(t,e.text,s.mode,n,(function(t,e){var n=u;while(ct&&i.splice(u,1,t,i[u+1],r),u+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,u-n,t,"overlay "+e),u=n+2;else for(;nt.options.maxHighlightLength&&Gt(t.doc.mode,r.state),o=me(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ye(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new ve(r,!0,e);var o=Oe(t,e,n),a=o>r.first&&Yt(r,o-1).stateAfter,s=a?ve.fromSaved(r,a,o):new ve(r,Kt(r.mode),o);return r.iter(o,e,(function(n){be(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ve.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ve.prototype.baseToken=function(t){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=t)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ve.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ve.fromSaved=function(t,e,n){return e instanceof pe?new ve(t,Gt(t.mode,e.state),n,e.lookAhead):new ve(t,Gt(t.mode,e),n)},ve.prototype.save=function(t){var e=!1!==t?Gt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pe(e,this.maxLookAhead):e};var Ce=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Se(t,e,n,r){var i,o=t.doc,a=o.mode;e=fe(o,e);var s,u=Yt(o,e.line),c=ye(t,e.line,n),l=new Xt(u.text,t.options.tabSize,c);r&&(s=[]);while((r||l.post.options.maxHighlightLength?(s=!1,a&&be(t,e,r,f.pos),f.pos=e.length,u=null):u=_e(xe(n,f,r.state,d),o),d){var h=d[0].name;h&&(u="m-"+(u?h+" "+u:h))}if(!s||l!=u){while(ca;--s){if(s<=o.first)return o.first;var u=Yt(o,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof pe?c.lookAhead:0)<=o.modeFrontier))return s;var l=$(u.text,null,t.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}function Te(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Yt(t,r).stateAfter;if(i&&(!(i instanceof pe)||r+i.lookAhead=e:o.to>e);(r||(r=[])).push(new Ne(a,o.from,u?null:o.to))}}return r}function Fe(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e);if(s||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=e:o.from0&&s)for(var w=0;w0)){var l=[u,1],f=oe(c.from,s.from),d=oe(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&l.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&l.push({from:s.to,to:c.to}),i.splice.apply(i,l),u+=l.length-3}}return i}function He(t){var e=t.markedSpans;if(e){for(var n=0;ne)&&(!n||qe(n,o.marker)<0)&&(n=o.marker)}return n}function Ye(t,e,n,r,i){var o=Yt(t,e),a=Le&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||l<=0&&f>=0)&&(l<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?oe(c.to,n)>=0:oe(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?oe(c.from,r)<=0:oe(c.from,r)<0)))return!0}}}function Je(t){var e;while(e=Ve(t))t=e.find(-1,!0).line;return t}function Ze(t){var e;while(e=Ke(t))t=e.find(1,!0).line;return t}function Qe(t){var e,n;while(e=Ke(t))t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function tn(t,e){var n=Yt(t,e),r=Je(n);return n==r?e:te(r)}function en(t,e){if(e>t.lastLine())return e;var n,r=Yt(t,e);if(!nn(t,r))return e;while(n=Ke(r))r=n.find(1,!0).line;return te(r)+1}function nn(t,e){var n=Le&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var un=function(t,e,n){this.text=t,Be(this,e),this.height=n?n(this):1};function cn(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),He(t),Be(t,n);var i=r?r(t):1;i!=t.height&&Qt(t,i)}function ln(t){t.parent=null,He(t)}un.prototype.lineNo=function(){return te(this)},xt(un);var fn={},dn={};function hn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?dn:fn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function pn(t,e){var n=E("span",null,null,u?"padding-right: .1px":null),r={pre:E("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=mn,Nt(t.display.measure)&&(a=dt(o,t.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[];var s=e!=t.display.externalMeasured&&te(o);wn(o,r,ge(t,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Mt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(u){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return gt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function vn(t){var e=L("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function mn(t,e,n,r,i,o,u){if(e){var c,l=t.splitSpaces?gn(e,t.trailingSpace):e,f=t.cm.state.specialChars,d=!1;if(f.test(e)){c=document.createDocumentFragment();var h=0;while(1){f.lastIndex=h;var p=f.exec(e),v=p?p.index-h:e.length-h;if(v){var m=document.createTextNode(l.slice(h,h+v));a&&s<9?c.appendChild(L("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+v,m),t.col+=v,t.pos+=v}if(!p)break;h+=v+1;var g=void 0;if("\t"==p[0]){var y=t.cm.options.tabSize,b=y-t.col%y;g=c.appendChild(L("span",K(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),t.col+=b}else"\r"==p[0]||"\n"==p[0]?(g=c.appendChild(L("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",p[0]),t.col+=1):(g=t.cm.options.specialCharPlaceholder(p[0]),g.setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(L("span",[g])):c.appendChild(g),t.col+=1);t.map.push(t.pos,t.pos+1,g),t.pos++}}else t.col+=e.length,c=document.createTextNode(l),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(d=!0),t.pos+=e.length;if(t.trailingSpace=32==l.charCodeAt(e.length-1),n||r||i||d||o||u){var w=n||"";r&&(w+=r),i&&(w+=i);var x=L("span",[c],w,o);if(u)for(var C in u)u.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,u[C]);return t.content.appendChild(x)}t.content.appendChild(c)}}function gn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;ic&&f.from<=c)break;if(f.to>=l)return t(n,r,i,o,a,s,u);t(n,r.slice(0,f.to-c),i,o,null,s,u),o=null,r=r.slice(f.to-c),c=f.to}}}function bn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function wn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,u,c,l,f,d,h=i.length,p=0,v=1,m="",g=0;;){if(g==p){u=c=l=s="",d=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&g>x.to&&(g=x.to,c=""),C.className&&(u+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(l+=" "+C.startStyle),C.endStyle&&x.to==g&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((d||(d={})).title=C.title),C.attributes)for(var S in C.attributes)(d||(d={}))[S]=C.attributes[S];C.collapsed&&(!f||qe(f.marker,C)<0)&&(f=x)}else x.from>p&&g>x.from&&(g=x.from)}if(b)for(var _=0;_=h)break;var O=Math.min(h,g);while(1){if(m){var T=p+m.length;if(!f){var A=T>O?m.slice(0,O-p):m;e.addToken(e,A,a?a+u:u,l,p+A.length==g?c:"",s,d)}if(T>=O){m=m.slice(O-p),p=O;break}p=T,l=""}m=i.slice(o,o=n[v++]),a=hn(n[v++],e.cm.options)}}else for(var L=1;L2&&o.push((u.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;rn)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Zn(t,e){e=Je(e);var n=te(e),r=t.display.externalMeasured=new xn(t.doc,e,n);r.lineN=n;var i=r.built=pn(t,r);return r.text=i.pre,A(t.display.lineMeasure,i.pre),r}function Qn(t,e,n,r){return nr(t,er(t,e),n,r)}function tr(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&ee)&&(o=u-s,i=o-1,e>=u&&(a="right")),null!=i){if(r=t[c+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(c&&t[c-2]==t[c-3]&&t[c-1].insertLeft)r=t[2+(c-=3)],a="left";if("right"==n&&i==u-s)while(c=0;i--)if((n=t[i]).left!=n.right)break;return n}function sr(t,e,n,r){var i,o=or(e.map,n,r),u=o.node,c=o.start,l=o.end,f=o.collapse;if(3==u.nodeType){for(var d=0;d<4;d++){while(c&&ot(e.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+l0&&(f=r="right"),i=t.options.lineWrapping&&(h=u.getClientRects()).length>1?h["right"==r?h.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=u.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Lr(t.display),top:p.top,bottom:p.bottom}:ir}for(var v=i.top-e.rect.top,m=i.bottom-e.rect.top,g=(v+m)/2,y=e.view.measure.heights,b=0;b=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function l(t,e,n){var r=s[e],i=1==r.level;return a(n?t-1:t,i!=n)}var f=lt(s,u,c),d=ct,h=l(u,f,"before"==c);return null!=d&&(h.other=l(u,d,"before"!=c)),h}function br(t,e){var n=0;e=fe(t.doc,e),t.options.lineWrapping||(n=Lr(t.display)*e.ch);var r=Yt(t.doc,e.line),i=on(r)+Un(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(t,e,n,r,i){var o=ie(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function xr(t,e,n){var r=t.doc;if(n+=t.display.viewOffset,n<0)return wr(r.first,0,null,-1,-1);var i=ee(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Yt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Yt(r,i);;){var s=kr(t,a,i,e,n),u=Xe(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var c=u.find(1);if(c.line==i)return c;a=Yt(r,i=c.line)}}function Cr(t,e,n,r){r-=pr(e);var i=e.text.length,o=st((function(e){return nr(t,n,e-1).bottom<=r}),i,0);return i=st((function(e){return nr(t,n,e).top>r}),o,i),{begin:o,end:i}}function Sr(t,e,n,r){n||(n=er(t,e));var i=vr(t,e,nr(t,n,r),"line").top;return Cr(t,e,n,i)}function _r(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function kr(t,e,n,r,i){i-=on(e);var o=er(t,e),a=pr(e),s=0,u=e.text.length,c=!0,l=dt(e,t.doc.direction);if(l){var f=(t.options.lineWrapping?Tr:Or)(t,e,n,o,l,r,i);c=1!=f.level,s=c?f.from:f.to-1,u=c?f.to:f.from-1}var d,h,p=null,v=null,m=st((function(e){var n=nr(t,o,e);return n.top+=a,n.bottom+=a,!!_r(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,v=n),!0)}),s,u),g=!1;if(v){var y=r-v.left=w.bottom?1:0}return m=at(e.text,m,1),wr(n,m,h,g,r-d)}function Or(t,e,n,r,i,o,a){var s=st((function(s){var u=i[s],c=1!=u.level;return _r(yr(t,ie(n,c?u.to:u.from,c?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var c=1!=u.level,l=yr(t,ie(n,c?u.from:u.to,c?"after":"before"),"line",e,r);_r(l,o,a,!0)&&l.top>a&&(u=i[s-1])}return u}function Tr(t,e,n,r,i,o,a){var s=Cr(t,e,r,a),u=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var l=null,f=null,d=0;d=c||h.to<=u)){var p=1!=h.level,v=nr(t,r,p?Math.min(c,h.to)-1:Math.max(u,h.from)).right,m=vm)&&(l=h,f=m)}}return l||(l=i[i.length-1]),l.fromc&&(l={from:l.from,to:c,level:l.level}),l}function Ar(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==rr){rr=L("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)rr.appendChild(document.createTextNode("x")),rr.appendChild(L("br"));rr.appendChild(document.createTextNode("x"))}A(t.measure,rr);var n=rr.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),T(t.measure),n||1}function Lr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=L("span","xxxxxxxxxx"),n=L("pre",[e],"CodeMirror-line-like");A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Er(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Mr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Mr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Nr(t){var e=Ar(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Lr(t.display)-3);return function(i){if(nn(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=Yt(t.doc,c.line).text).length==c.ch){var l=$(u,u.length,t.options.tabSize)-u.length;c=ie(c.line,Math.max(0,Math.round((o-Gn(t.display).left)/Lr(t.display))-l))}return c}function Dr(t,e){if(e>=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Le&&tn(t.doc,e)i.viewFrom?$r(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)$r(t);else if(e<=i.viewFrom){var o=Ir(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):$r(t)}else if(n>=i.viewTo){var a=Ir(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):$r(t)}else{var s=Ir(t,e,e,-1),u=Ir(t,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(Cn(t,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):$r(t)}var c=i.externalMeasured;c&&(n=i.lineN&&e=r.viewTo)){var o=r.view[Dr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function $r(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ir(t,e,n,r){var i,o=Dr(t,e),a=t.display.view;if(!Le||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,u=0;u0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}while(tn(t.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Wr(t,e,n){var r=t.display,i=r.view;0==i.length||e>=r.viewTo||n<=r.viewFrom?(r.view=Cn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=Cn(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Dr(t,n)))),r.viewTo=n}function Hr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().line0?e.blinker=setInterval((function(){t.hasFocus()||Jr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Kr(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Yr(t))}function Xr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Jr(t))}),100)}function Yr(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(gt(t,"focus",t,e),t.state.focused=!0,j(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),u&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Vr(t))}function Jr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(gt(t,"blur",t,e),t.state.focused=!1,O(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Zr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||d<-.005)&&(Qt(i.line,u),Qr(i.line),i.rest))for(var h=0;ht.display.sizerWidth){var p=Math.ceil(c/Lr(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Qr(t){if(t.widgets)for(var e=0;e=a&&(o=ee(e,on(Yt(e,u))-t.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function ei(t,e){if(!yt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=L("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Un(t.display))+"px;\n height: "+(e.bottom-e.top+Vn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}function ni(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(e=e.ch?ie(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?ie(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=yr(t,e),u=n&&n!=e?yr(t,n):s;i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r};var c=ii(t,i),l=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=c.scrollTop&&(fi(t,c.scrollTop),Math.abs(t.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(hi(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ri(t,e){var n=ii(t,e);null!=n.scrollTop&&fi(t,n.scrollTop),null!=n.scrollLeft&&hi(t,n.scrollLeft)}function ii(t,e){var n=t.display,r=Ar(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Xn(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+qn(n),u=e.tops-r;if(e.topi+o){var l=Math.min(e.top,(c?s:e.bottom)-o);l!=i&&(a.scrollTop=l)}var f=t.options.fixedGutter?0:n.gutters.offsetWidth,d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-f,h=Kn(t)-n.gutters.offsetWidth,p=e.right-e.left>h;return p&&(e.right=e.left+h),e.left<10?a.scrollLeft=0:e.lefth+d-3&&(a.scrollLeft=e.right+(p?0:10)-h),a}function oi(t,e){null!=e&&(ci(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function ai(t){ci(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function si(t,e,n){null==e&&null==n||ci(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function ui(t,e){ci(t),t.curOp.scrollToPos=e}function ci(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=br(t,e.from),r=br(t,e.to);li(t,n,r,e.margin)}}function li(t,e,n,r){var i=ii(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});si(t,i.scrollLeft,i.scrollTop)}function fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Bi(t,{top:e}),di(t,e,!0),n&&Bi(t),Pi(t,100))}function di(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function hi(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Gi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function pi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+qn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var vi=function(t,e,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),pt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),pt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},vi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var t=y&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new I,this.disableVert=new I},vi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},vi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var mi=function(){};function gi(t,e){e||(e=pi(t));var n=t.display.barWidth,r=t.display.barHeight;yi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Zr(t),yi(t,pi(t)),n=t.display.barWidth,r=t.display.barHeight}function yi(t,e){var n=t.display,r=n.scrollbars.update(e);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&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var bi={native:vi,null:mi};function wi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new bi[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),pt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?hi(t,e):fi(t,e)}),t),t.display.scrollbars.addClass&&j(t.display.wrapper,t.display.scrollbars.addClass)}var xi=0;function Ci(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++xi},_n(t.curOp)}function Si(t){var e=t.curOp;e&&On(e,(function(t){for(var e=0;e=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Ri(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Oi(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function Ti(t){var e=t.cm,n=e.display;t.updatedDisplay&&Zr(e),t.barMeasure=pi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Qn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Vn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Kn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Ai(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ye(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Gt(e.mode,r.state):null,u=me(t,o,r,!0);s&&(r.state=s),o.styles=u.styles;var c=o.styleClasses,l=u.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),d=0;!f&&dn)return Pi(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Ei(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(t))return!1;Vi(t)&&($r(t),e.dims=Er(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Le&&(o=tn(t.doc,o),a=en(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Wr(t,o,a),n.viewOffset=on(Yt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var u=Hr(t);if(!s&&0==u&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=$i(t);return u>4&&(n.lineDiv.style.display="none"),zi(t,n.updateLineNumbers,e.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ii(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Pi(t,400)),n.updateLineNumbers=null,!0}function Hi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Kn(t))r&&(e.visible=ti(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+qn(t.display)-Xn(t),n.top)}),e.visible=ti(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Wi(t,e))break;Zr(t);var i=pi(t);Br(t),gi(t,i),qi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Bi(t,e){var n=new Ri(t,e);if(Wi(t,n)){Zr(t),Hi(t,n);var r=pi(t);Br(t),gi(t,r),qi(t,r),n.finish()}}function zi(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return u&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,l=r.viewFrom,f=0;f-1&&(h=!1),En(t,d,l,n)),h&&(T(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(re(t.options,l)))),a=d.node.nextSibling}else{var p=$n(t,d,l,n);o.insertBefore(p,a)}l+=d.size}while(a)a=s(a)}function Ui(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function qi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Vn(t)+"px"}function Gi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Mr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&c||o&&l){if(o&&y&&u)t:for(var d=e.target,h=a.view;d!=s;d=d.parentNode)for(var p=0;p=0&&oe(t,r.to())<=0)return n}return-1};var io=function(t,e){this.anchor=t,this.head=e};function oo(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=W(e,i);for(var o=1;o0:u>=0){var c=ce(s.from(),a.from()),l=ue(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new io(f?l:c,f?c:l))}}return new ro(e,n)}function ao(t,e){return new ro([new io(t,e||t)],0)}function so(t){return t.text?ie(t.from.line+t.text.length-1,X(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function uo(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return so(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=so(e).ch-e.to.ch),ie(n,r)}function co(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,p-1),t.insert(s.line+1,g)}An(t,"change",t,e)}function go(t,e,n){function r(t,i,o){if(t.linked)for(var a=0;a1&&!t.done[t.done.length-2].ranges?(t.done.pop(),X(t.done)):void 0}function ko(t,e,n,r){var i=t.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=_o(i,i.lastOp==r)))a=X(o.changes),0==oe(e.from,e.to)&&0==oe(e.from,a.to)?a.to=so(e):o.changes.push(Co(t,e));else{var u=X(i.done);u&&u.ranges||Ao(t.sel,i.done),o={changes:[Co(t,e)],generation:i.generation},i.done.push(o);while(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=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||gt(t,"historyAdded")}function Oo(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function To(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Oo(t,o,X(i.done),e))?i.done[i.done.length-1]=e:Ao(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&So(i.undone)}function Ao(t,e){var n=X(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Lo(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Eo(t){if(!t)return null;for(var e,n=0;n-1&&(X(s)[f]=c[f],delete c[f])}}}return r}function Po(t,e,n,r){if(r){var i=t.anchor;if(n){var o=oe(e,i)<0;o!=oe(n,i)<0?(i=e,e=n):o!=oe(e,n)<0&&(e=n)}return new io(i,e)}return new io(n||e,e)}function Do(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ho(t,new ro([Po(t.sel.primary(),e,n,i)],0),r)}function Ro(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:s.to>e.ch))){if(i&&(gt(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),d=void 0;if((r<0?l:c)&&(f=Ko(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(d=oe(f,n))&&(r<0?d<0:d>0))return Go(t,f,e,r,i)}var h=u.find(r<0?-1:1);return(r<0?c:l)&&(h=Ko(t,h,r,h.line==e.line?o:null)),h?Go(t,h,e,r,i):null}}return e}function Vo(t,e,n,r,i){var o=r||1,a=Go(t,e,n,o,i)||!i&&Go(t,e,n,o,!0)||Go(t,e,n,-o,i)||!i&&Go(t,e,n,-o,!0);return a||(t.cantEdit=!0,ie(t.first,0))}function Ko(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?fe(t,ie(e.line-1)):null:n>0&&e.ch==(r||Yt(t,e.line)).text.length?e.line=0;--i)Zo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Zo(t,e)}}function Zo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=co(t,e);ko(t,e,n,t.cm?t.cm.curOp.id:NaN),ea(t,e,n,$e(t,e));var r=[];go(t,(function(t,n){n||-1!=W(r,t.history)||(aa(t.history,e),r.push(t.history)),ea(t,e,null,$e(t,e))}))}}function Qo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,u="undo"==e?o.undone:o.done,c=0;c=0;--h){var p=d(h);if(p)return p.v}}}}function ta(t,e){if(0!=e&&(t.first+=e,t.sel=new ro(Y(t.sel.ranges,(function(t){return new io(ie(t.anchor.line+e,t.anchor.ch),ie(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Rr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:ie(o,Yt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Jt(t,e.from,e.to),n||(n=co(t,e)),t.cm?na(t.cm,e,r):mo(t,e,r),Bo(t,n,z),t.cantEdit&&Vo(t,ie(t.firstLine(),0))&&(t.cantEdit=!1)}}function na(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,u=o.line;t.options.lineWrapping||(u=te(Je(Yt(r,o.line))),r.iter(u,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&bt(t),mo(r,e,n,Nr(t)),t.options.lineWrapping||(r.iter(u,o.line+e.text.length,(function(t){var e=an(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),Te(r,o.line),Pi(t,400);var c=e.text.length-(a.line-o.line)-1;e.full?Rr(t):o.line!=a.line||1!=e.text.length||vo(t.doc,e)?Rr(t,o.line,a.line+1,c):Fr(t,o.line,"text");var l=wt(t,"changes"),f=wt(t,"change");if(f||l){var d={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};f&&An(t,"change",t,d),l&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}function ra(t,e,n,r,i){var o;r||(r=n),oe(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),Jo(t,{from:n,to:r,text:e,origin:i})}function ia(t,e,n,r){n1||!(this.children[0]instanceof ua))){var s=[];this.collapse(s),this.children=[new ua(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var a=i.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ye(t,e.line,e,n,o)||e.line!=n.line&&Ye(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Me()}o.addToHistory&&ko(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,u=e.line,c=t.cm;if(t.iter(u,n.line+1,(function(t){c&&o.collapsed&&!c.options.lineWrapping&&Je(t)==c.display.maxLine&&(s=!0),o.collapsed&&u!=e.line&&Qt(t,0),De(t,new Ne(o,u==e.line?e.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){nn(t,e)&&Qt(e,0)})),o.clearOnEnter&&pt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ee(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Rr(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=e.line;l<=n.line;l++)Fr(c,l,"text");o.atomic&&Uo(c.doc),An(c,"markerAdded",c,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Ci(t),wt(this,"clear")){var n=this.find();n&&An(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=l,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Rr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Uo(t.doc)),t&&An(t,"markerCleared",t,this,r,i),e&&Si(t),this.parent&&this.parent.clear()}},pa.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;u--)Jo(this,r[u]);s?Wo(this,s):this.cm&&ai(this.cm)})),undo:ji((function(){Qo(this,"undo")})),redo:ji((function(){Qo(this,"redo")})),undoSelection:ji((function(){Qo(this,"undo",!0)})),redoSelection:ji((function(){Qo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=fe(this,t),e=fe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&i!=t.line||null!=u.from&&i==e.line&&u.from>=e.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),fe(this,ie(n,e))},indexFromPos:function(t){t=fe(this,t);var e=t.ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),Bo(e.doc,ao(n,n)),d)for(var h=0;h=0;e--)ra(t.doc,"",r[e].from,r[e].to,"+delete");ai(t)}))}function Ga(t,e,n){var r=at(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Va(t,e,n){var r=Ga(t,e.ch,n);return null==r?null:new ie(e.line,r,n<0?"after":"before")}function Ka(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=dt(n,e.doc.direction);if(o){var a,s=i<0?X(o):o[0],u=i<0==(1==s.level),c=u?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=er(e,n);a=i<0?n.text.length-1:0;var f=nr(e,l,a).top;a=st((function(t){return nr(e,l,t).top==f}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Ga(n,a,1))}else a=i<0?s.to:s.from;return new ie(r,a,c)}}return new ie(r,i<0?n.text.length:0,i<0?"before":"after")}function Xa(t,e,n,r){var i=dt(e,t.doc.direction);if(!i)return Va(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=lt(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&d>=l.begin)){var h=f?"before":"after";return new ie(n.line,d,h)}}var p=function(t,e,r){for(var o=function(t,e){return e?new ie(n.line,u(t,1),"before"):new ie(n.line,t,"after")};t>=0&&t0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c0?l.end:u(l.begin,-1);return null==m||r>0&&m==e.text.length||(v=p(r>0?0:i.length-1,r,c(m)),!v)?null:v}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa["default"]=y?Fa.macDefault:Fa.pcDefault;var Ya={selectAll:Xo,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),z)},killLine:function(t){return qa(t,(function(e){if(e.empty()){var n=Yt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ie(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ie(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Yt(t.doc,i.line-1).text;a&&(i=new ie(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ie(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Ei(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?xs(t,r,e,o):Ss(t,r,e,o)}function xs(t,e,n,r){var i=t.display,o=!1,c=Mi(t,(function(e){u&&(i.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Xr(t)),mt(i.wrapper.ownerDocument,"mouseup",c),mt(i.wrapper.ownerDocument,"mousemove",l),mt(i.scroller,"dragstart",f),mt(i.scroller,"drop",c),o||(Ct(e),r.addNew||Do(t.doc,n,null,null,r.extend),u&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),l=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,pt(i.wrapper.ownerDocument,"mouseup",c),pt(i.wrapper.ownerDocument,"mousemove",l),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",c),t.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Cs(t,e,n){if("char"==n)return new io(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new io(ie(e.line,0),fe(t.doc,ie(e.line+1,0)));var r=n(t,e);return new io(r.from,r.to)}function Ss(t,e,n,r){a&&Xr(t);var i=t.display,o=t.doc;Ct(e);var s,u,c=o.sel,l=c.ranges;if(r.addNew&&!r.extend?(u=o.sel.contains(n),s=u>-1?l[u]:new io(n,n)):(s=o.sel.primary(),u=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new io(n,n)),n=Pr(t,e,!0,!0),u=-1;else{var f=Cs(t,n,r.unit);s=r.extend?Po(s,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=l.length,Ho(o,oo(t,l.concat([s]),u),{scroll:!1,origin:"*mouse"})):l.length>1&&l[u].empty()&&"char"==r.unit&&!r.extend?(Ho(o,oo(t,l.slice(0,u).concat(l.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Fo(o,u,s,U):(u=0,Ho(o,new ro([s],0),U),c=o.sel);var d=n;function h(e){if(0!=oe(d,e))if(d=e,"rectangle"==r.unit){for(var i=[],a=t.options.tabSize,l=$(Yt(o,n.line).text,n.ch,a),f=$(Yt(o,e.line).text,e.ch,a),h=Math.min(l,f),p=Math.max(l,f),v=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=m;v++){var g=Yt(o,v).text,y=G(g,h,a);h==p?i.push(new io(ie(v,y),ie(v,y))):g.length>y&&i.push(new io(ie(v,y),ie(v,G(g,p,a))))}i.length||i.push(new io(n,n)),Ho(o,oo(t,c.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,w=s,x=Cs(t,e,r.unit),C=w.anchor;oe(x.anchor,C)>0?(b=x.head,C=ce(w.from(),x.anchor)):(b=x.anchor,C=ue(w.to(),x.head));var S=c.ranges.slice(0);S[u]=_s(t,new io(fe(o,C),b)),Ho(o,oo(t,S,u),U)}}var p=i.wrapper.getBoundingClientRect(),v=0;function m(e){var n=++v,a=Pr(t,e,!0,"rectangle"==r.unit);if(a)if(0!=oe(a,d)){t.curOp.focus=N(),h(a);var s=ti(i,o);(a.line>=s.to||a.linep.bottom?20:0;u&&setTimeout(Mi(t,(function(){v==n&&(i.scroller.scrollTop+=u,m(e))})),50)}}function g(e){t.state.selectingText=!1,v=1/0,e&&(Ct(e),i.input.focus()),mt(i.wrapper.ownerDocument,"mousemove",y),mt(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Mi(t,(function(t){0!==t.buttons&&Tt(t)?m(t):g(t)})),b=Mi(t,g);t.state.selectingText=b,pt(i.wrapper.ownerDocument,"mousemove",y),pt(i.wrapper.ownerDocument,"mouseup",b)}function _s(t,e){var n=e.anchor,r=e.head,i=Yt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var o=dt(i);if(!o)return e;var a=lt(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var u,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var l=lt(o,r.ch,r.sticky),f=l-a||(r.ch-n.ch)*(1==s.level?-1:1);u=l==c-1||l==c?f<0:f>0}var d=o[c+(u?-1:0)],h=u==(1==d.level),p=h?d.from:d.to,v=h?"after":"before";return n.ch==p&&n.sticky==v?e:new io(new ie(n.line,p,v),r)}function ks(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(d){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&Ct(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!wt(t,n))return _t(e);o-=s.top-a.viewOffset;for(var u=0;u=i){var l=ee(t.doc,o),f=t.display.gutterSpecs[u];return gt(t,n,t,l,f.className,e),_t(e)}}}function Os(t,e){return ks(t,e,"gutterClick",!0)}function Ts(t,e){zn(t.display,e)||As(t,e)||yt(t,e,"contextmenu")||S||t.display.input.onContextMenu(e)}function As(t,e){return!!wt(t,"gutterContextMenu")&&ks(t,e,"gutterContextMenu",!1)}function Ls(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(t)}vs.prototype.compare=function(t,e,n){return this.time+ps>t&&0==oe(e,this.pos)&&n==this.button};var Es={toString:function(){return"CodeMirror.Init"}},Ms={},Ns={};function js(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=Es&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Es,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,ho(t)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){po(t),fr(t),Rr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(ie(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(t.doc,e,n[i],ie(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Es&&t.refresh()})),n("specialCharPlaceholder",vn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ls(t),Yi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Ua(e),i=n!=Es&&Ua(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ds,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Ki(e,t.options.lineNumbers),Yi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Mr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return gi(t)}),!0),n("scrollbarStyle","native",(function(t){wi(t),gi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Ki(t.options.gutters,e),Yi(t)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(t){return t}),Yi,!0),n("showCursorWhenSelecting",!1,Br,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Jr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Ps),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Br,!0),n("singleCursorHeightPerLine",!0,Br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Ps(t,e,n){var r=n&&n!=Es;if(!e!=!r){var i=t.display.dragFunctions,o=e?pt:mt;o(t.display.scroller,"dragstart",i.start),o(t.display.scroller,"dragenter",i.enter),o(t.display.scroller,"dragover",i.over),o(t.display.scroller,"dragleave",i.leave),o(t.display.scroller,"drop",i.drop)}}function Ds(t){t.options.lineWrapping?(j(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(O(t.display.wrapper,"CodeMirror-wrap"),sn(t)),jr(t),Rr(t),fr(t),setTimeout((function(){return gi(t)}),100)}function Rs(t,e){var n=this;if(!(this instanceof Rs))return new Rs(t,e);this.options=e=e?F(e):{},F(Ms,e,!1);var r=e.value;"string"==typeof r?r=new Ca(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Rs.inputStyles[e.inputStyle](this),o=this.display=new Ji(t,r,i,e);for(var c in o.wrapper.CodeMirror=this,Ls(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(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 I,keySeq:null,specialChars:null},e.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Fs(this),Ea(),Ci(this),this.curOp.forceUpdate=!0,yo(this,r),e.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Jr(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,e[c],Es);Vi(this),e.finishInit&&e.finishInit(this);for(var l=0;l<$s.length;++l)$s[l](this);Si(this),u&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Fs(t){var e=t.display;pt(e.scroller,"mousedown",Mi(t,gs)),pt(e.scroller,"dblclick",a&&s<11?Mi(t,(function(e){if(!yt(t,e)){var n=Pr(t,e);if(n&&!Os(t,e)&&!zn(t.display,e)){Ct(e);var r=t.findWordAt(n);Do(t.doc,r.anchor,r.head)}}})):function(e){return yt(t,e)||Ct(e)}),pt(e.scroller,"contextmenu",(function(e){return Ts(t,e)})),pt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||Ts(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),r=e.activeTouch,r.end=+new Date)}function o(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function u(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}pt(e.scroller,"touchstart",(function(i){if(!yt(t,i)&&!o(i)&&!Os(t,i)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),pt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),pt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!zn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=t.coordsChar(e.activeTouch,"page");o=!r.prev||u(r,r.prev)?new io(a,a):!r.prev.prev||u(r,r.prev.prev)?t.findWordAt(a):new io(ie(a.line,0),fe(t.doc,ie(a.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),Ct(n)}i()})),pt(e.scroller,"touchcancel",i),pt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(fi(t,e.scroller.scrollTop),hi(t,e.scroller.scrollLeft,!0),gt(t,"scroll",t))})),pt(e.scroller,"mousewheel",(function(e){return no(t,e)})),pt(e.scroller,"DOMMouseScroll",(function(e){return no(t,e)})),pt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){yt(t,e)||kt(e)},over:function(e){yt(t,e)||(Oa(t,e),kt(e))},start:function(e){return ka(t,e)},drop:Mi(t,_a),leave:function(e){yt(t,e)||Ta(t)}};var c=e.input.getField();pt(c,"keyup",(function(e){return ls.call(t,e)})),pt(c,"keydown",Mi(t,us)),pt(c,"keypress",Mi(t,fs)),pt(c,"focus",(function(e){return Yr(t,e)})),pt(c,"blur",(function(e){return Jr(t,e)}))}Rs.defaults=Ms,Rs.optionHandlers=Ns;var $s=[];function Is(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=ye(t,e).state:n="prev");var a=t.options.tabSize,s=Yt(o,e),u=$(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(i,s.text.slice(l.length),s.text),c==B||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?$(Yt(o,e-1).text,null,a):0:"add"==n?c=u+t.options.indentUnit:"subtract"==n?c=u-t.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var f="",d=0;if(t.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)d+=a,f+="\t";if(da,u=jt(e),c=null;if(s&&r.ranges.length>1)if(Ws&&Ws.text.join("\n")==e){if(r.ranges.length%Ws.text.length==0){c=[];for(var l=0;l=0;d--){var h=r.ranges[d],p=h.from(),v=h.to();h.empty()&&(n&&n>0?p=ie(p.line,p.ch-n):t.state.overwrite&&!s?v=ie(v.line,Math.min(Yt(o,v.line).text.length,v.ch+X(u).length)):s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==u.join("\n")&&(p=v=ie(p.line,0)));var m={from:p,to:v,text:c?c[d%c.length]:u,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};Jo(t.doc,m),An(t,"inputRead",t,m)}e&&!s&&Us(t,e),ai(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function zs(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Ei(e,(function(){return Bs(e,n,0,null,"paste")})),!0}function Us(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.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 o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Is(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Yt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Is(t,i.head.line,"smart"));a&&An(t,"electricInput",t,i.head.line)}}}function qs(t){for(var e=[],n=[],r=0;rn&&(Is(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u0&&Fo(this.doc,r,new io(o,c[r].to()),z)}}})),getTokenAt:function(t,e){return Se(this,t,e)},getLineTokens:function(t,e){return Se(this,ie(t),e,!0)},getTokenTypeAt:function(t){t=fe(this.doc,t);var e,n=ge(this,Yt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(t=o,i=!0),r=Yt(this.doc,t)}else r=t;return vr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o=this.display;t=yr(this,fe(this.doc,t));var a=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==r)a=t.top;else if("above"==r||"near"==r){var u=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(a=t.bottom),s+e.offsetWidth>c&&(s=c-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==i?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+e.offsetWidth,bottom:a+e.offsetHeight})},triggerOnKeyDown:Ni(us),triggerOnKeyPress:Ni(fs),triggerOnKeyUp:ls,triggerOnMouseDown:Ni(gs),execCommand:function(t){if(Ya.hasOwnProperty(t))return Ya[t].call(null,this)},triggerElectric:Ni((function(t){Us(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=fe(this.doc,t),a=0;a0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&jr(this),gt(this,"refresh",this)})),swapDoc:Ni((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,t),fr(this),this.display.input.reset(),si(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,An(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},xt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}function Xs(t,e,n,r,i){var o=e,a=n,s=Yt(t,e.line),u=i&&"rtl"==t.direction?-n:n;function c(){var n=e.line+u;return!(n=t.first+t.size)&&(e=new ie(n,e.ch,e.sticky),s=Yt(t,n))}function l(o){var a;if("codepoint"==r){var l=s.text.charCodeAt(e.ch+(r>0?0:-1));a=isNaN(l)?null:new ie(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(l>=55296&&l<56320?2:1))),-n)}else a=i?Xa(t.cm,s,e,n):Va(s,e,n);if(null==a){if(o||!c())return!1;e=Ka(i,t.cm,s,e.line,u)}else e=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;;p=!1){if(n<0&&!l(!p))break;var v=s.text.charAt(e.ch)||"\n",m=nt(v,h)?"w":d&&"\n"==v?"n":!d||/\s/.test(v)?null:"p";if(!d||p||m||(m="s"),f&&f!=m){n<0&&(n=1,l(),e.sticky="after");break}if(m&&(f=m),n>0&&!l(!p))break}var g=Vo(t,e,o,a,!0);return ae(o,g)&&(g.hitSide=!0),g}function Ys(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(u-.5*Ar(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;;){if(o=xr(t,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Js=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new I,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(t,e){var n=tr(t,e.line);if(!n||n.hidden)return null;var r=Yt(t.doc,e.line),i=Jn(n,r,e.line),o=dt(r,t.doc.direction),a="left";if(o){var s=lt(o,e.ch);a=s%2?"right":"left"}var u=or(i.map,e.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function Qs(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function tu(t,e){return e&&(t.bad=!0),t}function eu(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),u=!1;function c(t){return function(e){return e.id==t}}function l(){a&&(o+=s,u&&(o+=s),a=u=!1)}function f(t){t&&(l(),o+=t)}function d(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void f(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(ie(r,0),ie(i+1,0),c(+h));return void(p.length&&(o=p[0].find(0))&&f(Jt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var v=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;v&&l();for(var m=0;m=e.display.viewTo||o.line=e.display.viewFrom&&Zs(e,i)||{node:u[0].measure.map[2],offset:0},l=o.liner.firstLine()&&(a=ie(a.line-1,Yt(r.doc,a.line-1).length)),s.ch==Yt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(t=Dr(r,a.line))?(e=te(i.view[0].line),n=i.view[0].node):(e=te(i.view[t].line),n=i.view[t-1].node.nextSibling);var u,c,l=Dr(r,s.line);if(l==i.view.length-1?(u=i.viewTo-1,c=i.lineDiv.lastChild):(u=te(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;var f=r.doc.splitLines(eu(r,n,c,e,u)),d=Jt(r.doc,ie(e,0),ie(u,Yt(r.doc,u).text.length));while(f.length>1&&d.length>1)if(X(f)==X(d))f.pop(),d.pop(),u--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),e++}var h=0,p=0,v=f[0],m=d[0],g=Math.min(v.length,m.length);while(ha.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1))h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var x=ie(e,h),C=ie(u,d.length?X(d).length-p:0);return f.length>1||f[0]||oe(x,C)?(ra(r.doc,f,x,C,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Ei(this.cm,(function(){return Rr(t.cm)}))},Js.prototype.setUneditable=function(t){t.contentEditable="false"},Js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,Bs)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var iu=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new I,this.hasSelection=!1,this.composing=null};function ou(t,e){if(e=e?F(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=N();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(pt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(u){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(mt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Rs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function au(t){t.off=mt,t.on=pt,t.wheelEventPixels=eo,t.Doc=Ca,t.splitLines=jt,t.countColumn=$,t.findColumn=G,t.isWordChar=et,t.Pass=B,t.signal=gt,t.Line=un,t.changeEnd=so,t.scrollbarModel=bi,t.Pos=ie,t.cmpPos=oe,t.modes=$t,t.mimeModes=It,t.resolveMode=Bt,t.getMode=zt,t.modeExtensions=Ut,t.extendMode=qt,t.copyState=Gt,t.startState=Kt,t.innerMode=Vt,t.commands=Ya,t.keyMap=Fa,t.keyName=za,t.isModifierKey=Ha,t.lookupKey=Wa,t.normalizeKeyMap=Ia,t.StringStream=Xt,t.SharedTextMarker=ma,t.TextMarker=pa,t.LineWidget=la,t.e_preventDefault=Ct,t.e_stopPropagation=St,t.e_stop=kt,t.addClass=j,t.contains=M,t.rmClass=O,t.keyNames=ja}iu.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!yt(r,t)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=qs(r);Hs({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,z):(n.prevInput="",i.value=e.text.join("\n"),D(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),v&&(i.style.width="0px"),pt(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),pt(i,"paste",(function(t){yt(r,t)||zs(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pt(i,"cut",o),pt(i,"copy",o),pt(t.scroller,"paste",(function(e){if(!zn(t,e)&&!yt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),pt(t.lineSpace,"selectstart",(function(e){zn(t,e)||Ct(e)})),pt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},iu.prototype.createField=function(t){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild},iu.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},iu.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=zr(t);if(t.options.moveInputWithCursor){var i=yr(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},iu.prototype.showSelection=function(t){var e=this.cm,n=e.display;A(n.cursorDiv,t.cursors),A(n.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},iu.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},iu.prototype.getField=function(){return this.textarea},iu.prototype.supportsTouch=function(){return!1},iu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||N()!=this.textarea))try{this.textarea.focus()}catch(t){}},iu.prototype.blur=function(){this.textarea.blur()},iu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},iu.prototype.receivedFocus=function(){this.slowPoll()},iu.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},iu.prototype.fastPoll=function(){var t=!1,e=this;function n(){var r=e.poll();r||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},iu.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Pt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var u=0,c=Math.min(r.length,i.length);while(u1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},iu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},iu.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},iu.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Pr(n,t),c=r.scroller.scrollTop;if(o&&!f){var l=n.options.resetSelectionOnContextMenu;l&&-1==n.doc.sel.contains(o)&&Mi(n,Ho)(n.doc,ao(o),z);var d,h=i.style.cssText,p=e.wrapper.style.cssText,v=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-v.top-5)+"px; left: "+(t.clientX-v.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(d=window.scrollY),r.input.focus(),u&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),S){kt(t);var m=function(){mt(window,"mouseup",m),setTimeout(y,20)};pt(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Mi(n,Xo)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},iu.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},iu.prototype.setUneditable=function(){},iu.prototype.needsContentAttribute=!1,js(Rs),Ks(Rs);var su="iter insert remove copy getEditor constructor".split(" ");for(var uu in Ca.prototype)Ca.prototype.hasOwnProperty(uu)&&W(su,uu)<0&&(Rs.prototype[uu]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ca.prototype[uu]));return xt(Ca),Rs.inputStyles={textarea:iu,contenteditable:Js},Rs.defineMode=function(t){Rs.defaults.mode||"null"==t||(Rs.defaults.mode=t),Wt.apply(this,arguments)},Rs.defineMIME=Ht,Rs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(t,e){Rs.prototype[t]=e},Rs.defineDocExtension=function(t,e){Ca.prototype[t]=e},Rs.fromTextArea=ou,au(Rs),Rs.version="5.58.3",Rs}))},"584a":function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,u=arguments;function c(){o=Number(new Date),n.apply(a,u)}function l(){i=void 0}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>t?c():!0!==e&&(i=setTimeout(r?l:c,void 0===r?t-s:t))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),a}},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",c=function(t,e,n){var l,f,d,h,p=t&c.F,v=t&c.G,m=t&c.S,g=t&c.P,y=t&c.B,b=v?r:m?r[e]||(r[e]={}):(r[e]||{})[u],w=v?i:i[e]||(i[e]={}),x=w[u]||(w[u]={});for(l in v&&(n=e),n)f=!p&&b&&void 0!==b[l],d=(f?b:n)[l],h=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,t&c.U),w[l]!=d&&o(w,l,h),g&&x[l]!=d&&(x[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(a){}return n}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u="prototype",c=function(t,e,n){var l,f,d,h=t&c.F,p=t&c.G,v=t&c.S,m=t&c.P,g=t&c.B,y=t&c.W,b=p?i:i[e]||(i[e]={}),w=b[u],x=p?r:v?r[e]:(r[e]||{})[u];for(l in p&&(n=e),n)f=!h&&x&&void 0!==x[l],f&&s(b,l)||(d=f?x[l]:n[l],b[l]=p&&"function"!=typeof x[l]?n[l]:g&&f?o(d,r):y&&x[l]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[l]=d,t&c.R&&w&&!w[l]&&a(w,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6718:function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=c.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,L=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new T(e,n,this);A.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){L.prototype[t]=function(){var e;return(e=A.get(this))[t].apply(e,arguments)}}));var E=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();e["default"]=E}.call(this,n("c8ba"))},"71c1":function(t,e,n){var r=n("3a38"),i=n("25eb");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),u=n("626a"),c=Object.assign;t.exports=!c||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){var n=s(t),c=arguments.length,l=1,f=o.f,d=a.f;while(c>l){var h,p=u(arguments[l++]),v=f?i(p).concat(f(p)):i(p),m=v.length,g=0;while(m>g)h=v[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},"765d":function(t,e,n){n("6718")("observable")},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b3e":function(t,e,n){"use strict";var r,i=n("a3de"); /** * Checks if an event is supported in the current execution environment. * @@ -38,23 +38,23 @@ function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreat * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ -function o(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var r,i;u&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},8580:function(t,e,n){n("ee6d"),t.exports=n("584a").Object.getOwnPropertyDescriptors},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8c4f":function(t,e,n){"use strict"; +function o(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var r,i;u&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8c4f":function(t,e,n){"use strict"; /*! * vue-router v3.0.6 * (c) 2019 Evan You * @license MIT - */function r(t,e){0}function i(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){for(var n in e)t[n]=e[n];return t}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;var u=i.$createElement,c=n.name,l=i.$route,f=i._routerViewCache||(i._routerViewCache={}),d=0,h=!1;while(i&&i._routerRoot!==i){var p=i.$vnode&&i.$vnode.data;p&&(p.routerView&&d++,p.keepAlive&&i._inactive&&(h=!0)),i=i.$parent}if(a.routerViewDepth=d,h)return u(f[c],a,r);var v=l.matched[d];if(!v)return f[c]=null,u();var m=f[c]=v.components[c];a.registerRouteInstance=function(t,e){var n=v.instances[c];(e&&n!==t||!e&&n===t)&&(v.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){v.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[c]&&(v.instances[c]=t.componentInstance)};var g=a.props=s(l,v.props&&v.props[c]);if(g){g=a.props=o({},g);var y=a.attrs=a.attrs||{};for(var b in g)m.props&&b in m.props||(y[b]=g[b],delete g[b])}return u(m,a,r)}};function s(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var u=/[!'()*]/g,c=function(t){return"%"+t.charCodeAt(0).toString(16)},l=/%2C/g,f=function(t){return encodeURIComponent(t).replace(u,c).replace(l,",")},d=decodeURIComponent;function h(t,e,n){void 0===e&&(e={});var r,i=n||p;try{r=i(t||"")}catch(a){r={}}for(var o in e)r[o]=e[o];return r}function p(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=d(n.shift()),i=n.length>0?d(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function v(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return f(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(f(e)):r.push(f(e)+"="+f(t)))})),r.join("&")}return f(e)+"="+f(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function g(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=y(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:x(e,i),matched:t?w(t):[]};return n&&(a.redirectedFrom=x(n,i)),Object.freeze(a)}function y(t){if(Array.isArray(t))return t.map(y);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=y(t[n]);return e}return t}var b=g(null,{path:"/"});function w(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function x(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||v;return(n||"/")+o(r)+i}function C(t,e){return e===b?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&_(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params)))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"===typeof r&&"object"===typeof i?_(r,i):String(r)===String(i)}))}function S(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&k(t.query,e.query)}function k(t,e){for(var n in e)if(!(n in t))return!1;return!0}var O,T=[String,Object],A=[String,Array],L={name:"RouterLink",props:{to:{type:T,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:A,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,s=i.route,u=i.href,c={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,p=null==this.activeClass?d:this.activeClass,v=null==this.exactActiveClass?h:this.exactActiveClass,m=a.path?g(null,a,null,n):s;c[v]=C(r,m),c[p]=this.exact?c[v]:S(r,m);var y=function(t){E(t)&&(e.replace?n.replace(a):n.push(a))},b={click:E};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=y})):b[this.event]=y;var w={class:c};if("a"===this.tag)w.on=b,w.attrs={href:u};else{var x=M(this.$slots.default);if(x){x.isStatic=!1;var _=x.data=o({},x.data);_.on=b;var k=x.data.attrs=o({},x.data.attrs);k.href=u}else w.on=b}return t(this.tag,w,this.$slots.default)}};function E(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function M(t){if(t)for(var e,n=0;n=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function R(t){return t.replace(/\/\//g,"/")}var F=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},I=rt,$=U,W=q,H=K,B=nt,z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=z.exec(t))){var u=n[0],c=n[1],l=n.index;if(a+=t.slice(o,l),o=l+u.length,c)a+=c[1];else{var f=t[o],d=n[2],h=n[3],p=n[4],v=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=f&&f!==d,b="+"===m||"*"===m,w="?"===m||"*"===m,x=n[2]||s,C=p||v;r.push({name:h||i++,prefix:d||"",delimiter:x,optional:w,repeat:b,partial:y,asterisk:!!g,pattern:C?Y(C):g?".*":"[^"+X(x)+"]+?"})}}return o-1&&(s.params[d]=n.params[d]);if(c)return s.path=ot(c.path,s.params,'named route "'+u+'"'),l(c,s,a)}else if(s.path){s.params={};for(var h=0;h=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Pt(t){return function(e,n,r){var o=!1,a=0,s=null;Dt(t,(function(t,e,n,u){if("function"===typeof t&&void 0===t.cid){o=!0,a++;var c,l=$t((function(e){It(e)&&(e=e.default),t.resolved="function"===typeof e?e:O.extend(e),n.components[u]=e,a--,a<=0&&r()})),f=$t((function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=i(t)?t:new Error(e),r(s))}));try{c=t(l,f)}catch(h){f(h)}if(c)if("function"===typeof c.then)c.then(l,f);else{var d=c.component;d&&"function"===typeof d.then&&d.then(l,f)}}})),o||r()}}function Dt(t,e){return Rt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Rt(t){return Array.prototype.concat.apply([],t)}var Ft="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function It(t){return t.__esModule||Ft&&"Module"===t[Symbol.toStringTag]}function $t(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Wt=function(t,e){this.router=t,this.base=Ht(e),this.current=b,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ht(t){if(!t)if(j){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function Bt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function re(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function ie(t){kt?Mt(re(t)):window.location.hash=t}function oe(t){kt?Nt(re(t)):window.location.replace(re(t))}var ae=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Wt),se=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ft(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!kt&&!1!==t.fallback,this.fallback&&(e="hash"),j||(e="abstract"),this.mode=e,e){case"history":this.history=new Jt(this,t.base);break;case"hash":this.history=new Qt(this,t.base,this.fallback);break;case"abstract":this.history=new ae(this,t.base);break;default:0}},ue={currentRoute:{configurable:!0}};function ce(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function le(t,e,n){var r="hash"===n?"#"+e:e;return t?R(t+"/"+r):r}se.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ue.currentRoute.get=function(){return this.history&&this.history.current},se.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Jt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Qt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},se.prototype.beforeEach=function(t){return ce(this.beforeHooks,t)},se.prototype.beforeResolve=function(t){return ce(this.resolveHooks,t)},se.prototype.afterEach=function(t){return ce(this.afterHooks,t)},se.prototype.onReady=function(t,e){this.history.onReady(t,e)},se.prototype.onError=function(t){this.history.onError(t)},se.prototype.push=function(t,e,n){this.history.push(t,e,n)},se.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},se.prototype.go=function(t){this.history.go(t)},se.prototype.back=function(){this.go(-1)},se.prototype.forward=function(){this.go(1)},se.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},se.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=lt(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=le(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},se.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==b&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(se.prototype,ue),se.install=N,se.version="3.0.6",j&&window.Vue&&window.Vue.use(se),e["a"]=se},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8eb7":function(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,v,m,g=!1;function y(){if(!g){g=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),y=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(h=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),f=/Android/i.exec(t),v=/FBAN\/\w+;/i.exec(t),m=/Mobile/i.exec(t),d=!!/Win64/.exec(t),e){n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,o=e[4]?parseFloat(e[4]):NaN,o?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);u=!w||parseFloat(w[1].replace("_","."))}else u=!1;c=!!y[2],l=!!y[3]}else u=c=l=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||c},osx:function(){return y()||u},linux:function(){return y()||l},iphone:function(){return y()||h},mobile:function(){return y()||h||p||f||m},nativeApp:function(){return y()||v},android:function(){return y()||f},ipad:function(){return y()||p}};t.exports=b},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"8f94":function(t,e,n){!function(e,r){t.exports=r(n("56b3"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;rl){var h,p=u(arguments[l++]),v=f?i(p).concat(f(p)):i(p),m=v.length,g=0;while(m>g)h=v[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},9619:function(t,e,n){var r=n("597f"),i=n("0e15");t.exports={throttle:r,debounce:i}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"===typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{l=e.regeneratorRuntime=c?t.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(N([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=S.prototype=C.prototype=Object.create(m);_.prototype=b.constructor=S,S.constructor=_,S[u]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},k(O.prototype),O.prototype[s]=function(){return this},l.AsyncIterator=O,l.async=function(t,e,n,r){var i=new O(w(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(b),b[u]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=N,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var i=e&&e.prototype instanceof C?e:C,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=T(t,n,a),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function C(){}function _(){}function S(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function O(t){function e(n,r,o,a){var s=x(t[n],t,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),a)}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function T(t,e,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return j()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=x(t,e,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9fa6":function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}function o(t){for(var e,n,o=String(t),a="",s=0,u=r;o.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&e>>8-s%1*8)){if(n=o.charCodeAt(s+=3/4),n>255)throw new i;e=e<<8|n}return a}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=o},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,u=function(){};function c(){for(var t=arguments.length,e=Array(t),n=0;n=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),u=e[r];r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},_={integer:function(t){return _.number(t)&&parseInt(t,10)===t},float:function(t){return _.number(t)&&!_.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!_.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(C.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(C.url)},hex:function(t){return"string"===typeof t&&!!t.match(C.hex)}};function S(t,e,n,r,i){if(t.required&&void 0===e)b(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?_[s](e)||r.push(c(i.messages.types[s],t.fullField,t.type)):s&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(c(i.messages.types[s],t.fullField,t.type))}}var k=S;function O(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,f=null,d="number"===typeof e,h="string"===typeof e,p=Array.isArray(e);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=e.length),h&&(l=e.replace(u,"_").length),o?l!==t.len&&r.push(c(i.messages[f].len,t.fullField,t.len)):a&&!s&&lt.max?r.push(c(i.messages[f].max,t.fullField,t.max)):a&&s&&(lt.max)&&r.push(c(i.messages[f].range,t.fullField,t.min,t.max))}var T=O,A="enum";function L(t,e,n,r,i){t[A]=Array.isArray(t[A])?t[A]:[],-1===t[A].indexOf(e)&&r.push(c(i.messages[A],t.fullField,t[A].join(", ")))}var E=L;function M(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(c(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(c(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var N=M,j={required:b,whitespace:x,type:k,range:T,enum:E,pattern:N};function P(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"string")&&!t.required)return n();j.required(t,e,r,o,i,"string"),f(e,"string")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i),j.pattern(t,e,r,o,i),!0===t.whitespace&&j.whitespace(t,e,r,o,i))}n(o)}var D=P;function R(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var F=R;function I(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var $=I;function W(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var H=W;function B(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),f(e)||j.type(t,e,r,o,i)}n(o)}var z=B;function U(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var q=U;function G(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var V=G;function K(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"array")&&!t.required)return n();j.required(t,e,r,o,i,"array"),f(e,"array")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var X=K;function Y(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var J=Y,Z="enum";function Q(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),e&&j[Z](t,e,r,o,i)}n(o)}var tt=Q;function et(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"string")&&!t.required)return n();j.required(t,e,r,o,i),f(e,"string")||j.pattern(t,e,r,o,i)}n(o)}var nt=et;function rt(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();if(j.required(t,e,r,o,i),!f(e)){var s=void 0;s="number"===typeof e?new Date(e):e,j.type(t,s,r,o,i),s&&j.range(t,s.getTime(),r,o,i)}}n(o)}var it=rt;function ot(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);j.required(t,e,r,o,i,s),n(o)}var at=ot;function st(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(f(e,o)&&!t.required)return n();j.required(t,e,r,a,i,o),f(e,o)||j.type(t,e,r,a,i)}n(a)}var ut=st,ct={string:D,method:F,number:$,boolean:H,regexp:z,integer:q,float:V,array:X,object:J,enum:tt,pattern:nt,date:it,url:ut,hex:ut,email:ut,required:at};function lt(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ft=lt();function dt(t){this.rules=null,this._messages=ft,this.define(t)}dt.prototype={messages:function(t){return t&&(this._messages=g(lt(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,l=r;if("function"===typeof s&&(l=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===ft&&(f=lt()),g(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},y=s.keys||Object.keys(this.rules);y.forEach((function(n){d=e.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var b={};v(p,s,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&u("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(m(n)),s.first&&l.length)return b[n.field]=1,e(l);if(r){if(n.required&&!t.value)return l=n.message?[].concat(n.message).map(m(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],e(l);var f={};if(n.defaultField)for(var d in t.value)t.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,t.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var v=new dt(f);v.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),v.validate(t.value,t.rule.options||s,(function(t){e(t&&t.length?l.concat(t):t)}))}else e(l)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var f=n.validator(n,t.value,l,t.source,s);f&&f.then&&f.then((function(){return l()}),(function(t){return l(t)}))}),(function(t){w(t)}))}else l&&l();function w(t){var e=void 0,n=void 0,r=[],i={};function o(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;eb;b++)if(m=e?y(a(p=t[b])[0],p[1]):y(t[b]),m===c||m===l)return m}else for(v=g.call(t);!(p=v.next()).done;)if(m=i(v,y,p.value,e),m===c||m===l)return m};e.BREAK=c,e.RETURN=l},a25f:function(t,e,n){var r=n("7726"),i=r.navigator;t.exports=i&&i.userAgent||""},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(t,e,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},a4bb:function(t,e,n){t.exports=n("8aae")},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function i(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},a5d8:function(t,e,n){},a78e:function(t,e,n){var r,i; + */function r(t,e){0}function i(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){for(var n in e)t[n]=e[n];return t}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;var u=i.$createElement,c=n.name,l=i.$route,f=i._routerViewCache||(i._routerViewCache={}),d=0,h=!1;while(i&&i._routerRoot!==i){var p=i.$vnode&&i.$vnode.data;p&&(p.routerView&&d++,p.keepAlive&&i._inactive&&(h=!0)),i=i.$parent}if(a.routerViewDepth=d,h)return u(f[c],a,r);var v=l.matched[d];if(!v)return f[c]=null,u();var m=f[c]=v.components[c];a.registerRouteInstance=function(t,e){var n=v.instances[c];(e&&n!==t||!e&&n===t)&&(v.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){v.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[c]&&(v.instances[c]=t.componentInstance)};var g=a.props=s(l,v.props&&v.props[c]);if(g){g=a.props=o({},g);var y=a.attrs=a.attrs||{};for(var b in g)m.props&&b in m.props||(y[b]=g[b],delete g[b])}return u(m,a,r)}};function s(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var u=/[!'()*]/g,c=function(t){return"%"+t.charCodeAt(0).toString(16)},l=/%2C/g,f=function(t){return encodeURIComponent(t).replace(u,c).replace(l,",")},d=decodeURIComponent;function h(t,e,n){void 0===e&&(e={});var r,i=n||p;try{r=i(t||"")}catch(a){r={}}for(var o in e)r[o]=e[o];return r}function p(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=d(n.shift()),i=n.length>0?d(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function v(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return f(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(f(e)):r.push(f(e)+"="+f(t)))})),r.join("&")}return f(e)+"="+f(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function g(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=y(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:x(e,i),matched:t?w(t):[]};return n&&(a.redirectedFrom=x(n,i)),Object.freeze(a)}function y(t){if(Array.isArray(t))return t.map(y);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=y(t[n]);return e}return t}var b=g(null,{path:"/"});function w(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function x(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||v;return(n||"/")+o(r)+i}function C(t,e){return e===b?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&S(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params)))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"===typeof r&&"object"===typeof i?S(r,i):String(r)===String(i)}))}function _(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&k(t.query,e.query)}function k(t,e){for(var n in e)if(!(n in t))return!1;return!0}var O,T=[String,Object],A=[String,Array],L={name:"RouterLink",props:{to:{type:T,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:A,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,s=i.route,u=i.href,c={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,p=null==this.activeClass?d:this.activeClass,v=null==this.exactActiveClass?h:this.exactActiveClass,m=a.path?g(null,a,null,n):s;c[v]=C(r,m),c[p]=this.exact?c[v]:_(r,m);var y=function(t){E(t)&&(e.replace?n.replace(a):n.push(a))},b={click:E};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=y})):b[this.event]=y;var w={class:c};if("a"===this.tag)w.on=b,w.attrs={href:u};else{var x=M(this.$slots.default);if(x){x.isStatic=!1;var S=x.data=o({},x.data);S.on=b;var k=x.data.attrs=o({},x.data.attrs);k.href=u}else w.on=b}return t(this.tag,w,this.$slots.default)}};function E(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function M(t){if(t)for(var e,n=0;n=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function R(t){return t.replace(/\/\//g,"/")}var F=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},$=rt,I=U,W=q,H=K,B=nt,z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=z.exec(t))){var u=n[0],c=n[1],l=n.index;if(a+=t.slice(o,l),o=l+u.length,c)a+=c[1];else{var f=t[o],d=n[2],h=n[3],p=n[4],v=n[5],m=n[6],g=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=f&&f!==d,b="+"===m||"*"===m,w="?"===m||"*"===m,x=n[2]||s,C=p||v;r.push({name:h||i++,prefix:d||"",delimiter:x,optional:w,repeat:b,partial:y,asterisk:!!g,pattern:C?Y(C):g?".*":"[^"+X(x)+"]+?"})}}return o-1&&(s.params[d]=n.params[d]);if(c)return s.path=ot(c.path,s.params,'named route "'+u+'"'),l(c,s,a)}else if(s.path){s.params={};for(var h=0;h=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Pt(t){return function(e,n,r){var o=!1,a=0,s=null;Dt(t,(function(t,e,n,u){if("function"===typeof t&&void 0===t.cid){o=!0,a++;var c,l=It((function(e){$t(e)&&(e=e.default),t.resolved="function"===typeof e?e:O.extend(e),n.components[u]=e,a--,a<=0&&r()})),f=It((function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=i(t)?t:new Error(e),r(s))}));try{c=t(l,f)}catch(h){f(h)}if(c)if("function"===typeof c.then)c.then(l,f);else{var d=c.component;d&&"function"===typeof d.then&&d.then(l,f)}}})),o||r()}}function Dt(t,e){return Rt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Rt(t){return Array.prototype.concat.apply([],t)}var Ft="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function $t(t){return t.__esModule||Ft&&"Module"===t[Symbol.toStringTag]}function It(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Wt=function(t,e){this.router=t,this.base=Ht(e),this.current=b,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ht(t){if(!t)if(j){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function Bt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function re(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function ie(t){kt?Mt(re(t)):window.location.hash=t}function oe(t){kt?Nt(re(t)):window.location.replace(re(t))}var ae=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Wt),se=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=ft(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!kt&&!1!==t.fallback,this.fallback&&(e="hash"),j||(e="abstract"),this.mode=e,e){case"history":this.history=new Jt(this,t.base);break;case"hash":this.history=new Qt(this,t.base,this.fallback);break;case"abstract":this.history=new ae(this,t.base);break;default:0}},ue={currentRoute:{configurable:!0}};function ce(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function le(t,e,n){var r="hash"===n?"#"+e:e;return t?R(t+"/"+r):r}se.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ue.currentRoute.get=function(){return this.history&&this.history.current},se.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Jt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Qt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},se.prototype.beforeEach=function(t){return ce(this.beforeHooks,t)},se.prototype.beforeResolve=function(t){return ce(this.resolveHooks,t)},se.prototype.afterEach=function(t){return ce(this.afterHooks,t)},se.prototype.onReady=function(t,e){this.history.onReady(t,e)},se.prototype.onError=function(t){this.history.onError(t)},se.prototype.push=function(t,e,n){this.history.push(t,e,n)},se.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},se.prototype.go=function(t){this.history.go(t)},se.prototype.back=function(){this.go(-1)},se.prototype.forward=function(){this.go(1)},se.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},se.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=lt(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=le(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},se.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==b&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(se.prototype,ue),se.install=N,se.version="3.0.6",j&&window.Vue&&window.Vue.use(se),e["a"]=se},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8eb7":function(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,v,m,g=!1;function y(){if(!g){g=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),y=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(h=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),f=/Android/i.exec(t),v=/FBAN\/\w+;/i.exec(t),m=/Mobile/i.exec(t),d=!!/Win64/.exec(t),e){n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,o=e[4]?parseFloat(e[4]):NaN,o?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);u=!w||parseFloat(w[1].replace("_","."))}else u=!1;c=!!y[2],l=!!y[3]}else u=c=l=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||c},osx:function(){return y()||u},linux:function(){return y()||l},iphone:function(){return y()||h},mobile:function(){return y()||h||p||f||m},nativeApp:function(){return y()||v},android:function(){return y()||f},ipad:function(){return y()||p}};t.exports=b},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"8f94":function(t,e,n){!function(e,r){t.exports=r(n("56b3"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;rl){var h,p=u(arguments[l++]),v=f?i(p).concat(f(p)):i(p),m=v.length,g=0;while(m>g)h=v[g++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},9619:function(t,e,n){var r=n("597f"),i=n("0e15");t.exports={throttle:r,debounce:i}},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"===typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{l=e.regeneratorRuntime=c?t.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(N([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=_.prototype=C.prototype=Object.create(m);S.prototype=b.constructor=_,_.constructor=S,_[u]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(b),t},l.awrap=function(t){return{__await:t}},k(O.prototype),O.prototype[s]=function(){return this},l.AsyncIterator=O,l.async=function(t,e,n,r){var i=new O(w(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(b),b[u]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=N,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,n,r){var i=e&&e.prototype instanceof C?e:C,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=T(t,n,a),o}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function C(){}function S(){}function _(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function O(t){function e(n,r,o,a){var s=x(t[n],t,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),a)}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function T(t,e,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return j()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=x(t,e,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=x(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function N(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9fa6":function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}function o(t){for(var e,n,o=String(t),a="",s=0,u=r;o.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&e>>8-s%1*8)){if(n=o.charCodeAt(s+=3/4),n>255)throw new i;e=e<<8|n}return a}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=o},a159:function(t,e,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("1ec9")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,u=function(){};function c(){for(var t=arguments.length,e=Array(t),n=0;n=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),u=e[r];r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S={integer:function(t){return S.number(t)&&parseInt(t,10)===t},float:function(t){return S.number(t)&&!S.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!S.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(C.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(C.url)},hex:function(t){return"string"===typeof t&&!!t.match(C.hex)}};function _(t,e,n,r,i){if(t.required&&void 0===e)b(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?S[s](e)||r.push(c(i.messages.types[s],t.fullField,t.type)):s&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(c(i.messages.types[s],t.fullField,t.type))}}var k=_;function O(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,f=null,d="number"===typeof e,h="string"===typeof e,p=Array.isArray(e);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=e.length),h&&(l=e.replace(u,"_").length),o?l!==t.len&&r.push(c(i.messages[f].len,t.fullField,t.len)):a&&!s&&lt.max?r.push(c(i.messages[f].max,t.fullField,t.max)):a&&s&&(lt.max)&&r.push(c(i.messages[f].range,t.fullField,t.min,t.max))}var T=O,A="enum";function L(t,e,n,r,i){t[A]=Array.isArray(t[A])?t[A]:[],-1===t[A].indexOf(e)&&r.push(c(i.messages[A],t.fullField,t[A].join(", ")))}var E=L;function M(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(c(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(c(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var N=M,j={required:b,whitespace:x,type:k,range:T,enum:E,pattern:N};function P(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"string")&&!t.required)return n();j.required(t,e,r,o,i,"string"),f(e,"string")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i),j.pattern(t,e,r,o,i),!0===t.whitespace&&j.whitespace(t,e,r,o,i))}n(o)}var D=P;function R(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var F=R;function $(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var I=$;function W(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var H=W;function B(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),f(e)||j.type(t,e,r,o,i)}n(o)}var z=B;function U(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var q=U;function G(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var V=G;function K(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"array")&&!t.required)return n();j.required(t,e,r,o,i,"array"),f(e,"array")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var X=K;function Y(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var J=Y,Z="enum";function Q(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();j.required(t,e,r,o,i),e&&j[Z](t,e,r,o,i)}n(o)}var tt=Q;function et(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e,"string")&&!t.required)return n();j.required(t,e,r,o,i),f(e,"string")||j.pattern(t,e,r,o,i)}n(o)}var nt=et;function rt(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(f(e)&&!t.required)return n();if(j.required(t,e,r,o,i),!f(e)){var s=void 0;s="number"===typeof e?new Date(e):e,j.type(t,s,r,o,i),s&&j.range(t,s.getTime(),r,o,i)}}n(o)}var it=rt;function ot(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);j.required(t,e,r,o,i,s),n(o)}var at=ot;function st(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(f(e,o)&&!t.required)return n();j.required(t,e,r,a,i,o),f(e,o)||j.type(t,e,r,a,i)}n(a)}var ut=st,ct={string:D,method:F,number:I,boolean:H,regexp:z,integer:q,float:V,array:X,object:J,enum:tt,pattern:nt,date:it,url:ut,hex:ut,email:ut,required:at};function lt(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ft=lt();function dt(t){this.rules=null,this._messages=ft,this.define(t)}dt.prototype={messages:function(t){return t&&(this._messages=g(lt(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,l=r;if("function"===typeof s&&(l=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===ft&&(f=lt()),g(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},y=s.keys||Object.keys(this.rules);y.forEach((function(n){d=e.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var b={};v(p,s,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;if(Array.isArray(l)||(l=[l]),l.length&&u("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(m(n)),s.first&&l.length)return b[n.field]=1,e(l);if(r){if(n.required&&!t.value)return l=n.message?[].concat(n.message).map(m(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],e(l);var f={};if(n.defaultField)for(var d in t.value)t.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,t.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var v=new dt(f);v.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),v.validate(t.value,t.rule.options||s,(function(t){e(t&&t.length?l.concat(t):t)}))}else e(l)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var f=n.validator(n,t.value,l,t.source,s);f&&f.then&&f.then((function(){return l()}),(function(t){return l(t)}))}),(function(t){w(t)}))}else l&&l();function w(t){var e=void 0,n=void 0,r=[],i={};function o(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e1){if(o=t({path:"/"},r.defaults,o),"number"===typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(m){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var u="";for(var c in o)o[c]&&(u+="; "+c,!0!==o[c]&&(u+="="+o[c]));return document.cookie=e+"="+i+u}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,d=0;d1){if(o=t({path:"/"},r.defaults,o),"number"===typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(m){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape);var u="";for(var c in o)o[c]&&(u+="; "+c,!0!==o[c]&&(u+="="+o[c]));return document.cookie=e+"="+i+u}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,d=0;d0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),c=u,l=n(1),f=n.n(l),d=n(2),h=n.n(d),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=h()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function w(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e["default"]=b}])["default"]}))},b447:function(t,e,n){var r=n("3a38"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),a=n("c345"),s=n("3934"),u=n("2d83"),c="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||n("9fa6");t.exports=function(t){return new Promise((function(e,l){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest,p="onreadystatechange",v=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in h||s(t.url)||(h=new window.XDomainRequest,p="onload",v=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+c(m+":"+g)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[p]=function(){if(h&&(4===h.readyState||v)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,o={data:r,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};i(e,l,o),h=null}},h.onerror=function(){l(u("Network Error",t,null,h)),h=null},h.ontimeout=function(){l(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=n("7aac"),b=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(w){if("json"!==t.responseType)throw w}"function"===typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),l(t),h=null)})),void 0===f&&(f=null),h.send(f)}))}},b8e3:function(t,e){t.exports=!0},ba99:function(t,e,n){var r=n("6abf"),i=n("9aa9"),o=n("e4ae"),a=n("e53d").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},bc13:function(t,e,n){var r=n("e53d"),i=r.navigator;t.exports=i&&i.userAgent||""},bc3a:function(t,e,n){t.exports=n("cee4")},bcaa:function(t,e,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},bd11:function(t,e){t.exports=v,t.exports.parse=o,t.exports.compile=a,t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var n="/",r="./",i=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function o(t,e){var o,a=[],s=0,l=0,f="",d=e&&e.delimiter||n,h=e&&e.delimiters||r,p=!1;while(null!==(o=i.exec(t))){var v=o[0],m=o[1],g=o.index;if(f+=t.slice(l,g),l=g+v.length,m)f+=m[1],p=!0;else{var y="",b=t[l],w=o[2],x=o[3],C=o[4],_=o[5];if(!p&&f.length){var S=f.length-1;h.indexOf(f[S])>-1&&(y=f[S],f=f.slice(0,S))}f&&(a.push(f),f="",p=!1);var k=""!==y&&void 0!==b&&b!==y,O="+"===_||"*"===_,T="?"===_||"*"===_,A=y||d,L=x||C;a.push({name:w||s++,prefix:y,delimiter:A,optional:T,repeat:O,partial:k,pattern:L?c(L):"[^"+u(A)+"]+?"})}}return(f||l-1;else{var g=m.repeat?"(?:"+m.pattern+")(?:"+u(m.delimiter)+"(?:"+m.pattern+"))*":m.pattern;e&&e.push(m),m.optional?m.partial?h+=u(m.prefix)+"("+g+")?":h+="(?:"+u(m.prefix)+"("+g+"))?":h+=u(m.prefix)+"("+g+")"}}return s?(o||(h+="(?:"+c+")?"),h+="$"===d?"$":"(?="+d+")"):(o||(h+="(?:"+c+"(?="+d+"))?"),p||(h+="(?="+c+"|"+d+")")),new RegExp(h,l(i))}function v(t,e,n){return t instanceof RegExp?f(t,e):Array.isArray(t)?d(t,e,n):h(t,e,n)}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf0b:function(t,e,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),u=n("794b"),c=Object.getOwnPropertyDescriptor;e.f=n("8e60")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},bf90d:function(t,e,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(t,e){return i(r(t),e)}}))},c098:function(t,e,n){t.exports=n("d4af")},c207:function(t,e){},c345:function(t,e,n){"use strict";var r=n("c532"),i=["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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=n("044b"),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function s(t){return"[object ArrayBuffer]"===o.call(t)}function u(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function l(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return"undefined"===typeof t}function h(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===o.call(t)}function v(t){return"[object File]"===o.call(t)}function m(t){return"[object Blob]"===o.call(t)}function g(t){return"[object Function]"===o.call(t)}function y(t){return h(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},cd78:function(t,e,n){var r=n("e4ae"),i=n("f772"),o=n("656e");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},ce7e:function(t,e,n){var r=n("63b6"),i=n("584a"),o=n("294c");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("2444");function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(a);u.Axios=o,u.create=function(t){return s(r.merge(a,t))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(t){return Promise.all(t)},u.spread=n("0df6"),t.exports=u,t.exports.default=u},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function u(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}u.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=u},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d847:function(t,e,n){t.exports=n("5bba")},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,n){n("1654"),n("6c1c"),t.exports=n("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},db72:function(t,e,n){"use strict";var r=n("85f2"),i=n.n(r),o=n("d847"),a=n.n(o),s=n("5e83"),u=n.n(s),c=n("268f"),l=n.n(c),f=n("e265"),d=n.n(f),h=n("a4bb"),p=n.n(h);function v(t,e,n){return e in t?i()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){var n=p()(t);if(d.a){var r=d()(t);e&&(r=r.filter((function(e){return l()(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e017:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var n=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}var i=r((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},u=s.arrayMerge||r;return a?Array.isArray(t)?u(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))})),o=r((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),a=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},s=o.svg,u=o.xlink,c={};c[s.name]=s.uri,c[u.name]=u.uri;var l=function(t,e){void 0===t&&(t="");var n=i(c,e||{}),r=a(n);return""+t+""},f=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return n(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,r),e}(t);return f}))}).call(this,n("c8ba"))},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(t,e,n){t.exports=n("ed33")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6f3:function(t,e,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},ebfd:function(t,e,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return c&&p.NEED&&u(t)&&!o(t,r)&&l(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},ee6d:function(t,e,n){var r=n("63b6"),i=n("ba99"),o=n("36c3"),a=n("bf0b"),s=n("20fd");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){var e,n,r=o(t),u=a.f,c=i(r),l={},f=0;while(c.length>f)n=u(r,e=c[f++]),void 0!==n&&s(l,e,n);return l}})},f201:function(t,e,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},f5df:function(t,e,n){},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f893:function(t,e,n){t.exports={default:n("f921"),__esModule:!0}},f921:function(t,e,n){n("014b"),n("c207"),n("69d3"),n("765d"),t.exports=n("584a").Symbol},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fde4:function(t,e,n){n("bf90d");var r=n("584a").Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}}}]); \ No newline at end of file +(function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),c=u,l=n(1),f=n.n(l),d=n(2),h=n.n(d),p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=h()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function w(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e["default"]=b}])["default"]}))},b447:function(t,e,n){var r=n("3a38"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),a=n("c345"),s=n("3934"),u=n("2d83"),c="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||n("9fa6");t.exports=function(t){return new Promise((function(e,l){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest,p="onreadystatechange",v=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in h||s(t.url)||(h=new window.XDomainRequest,p="onload",v=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+c(m+":"+g)}if(h.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[p]=function(){if(h&&(4===h.readyState||v)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,o={data:r,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};i(e,l,o),h=null}},h.onerror=function(){l(u("Network Error",t,null,h)),h=null},h.ontimeout=function(){l(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var y=n("7aac"),b=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(w){if("json"!==t.responseType)throw w}"function"===typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),l(t),h=null)})),void 0===f&&(f=null),h.send(f)}))}},b8e3:function(t,e){t.exports=!0},bc3a:function(t,e,n){t.exports=n("cee4")},bcaa:function(t,e,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},bd11:function(t,e){t.exports=v,t.exports.parse=o,t.exports.compile=a,t.exports.tokensToFunction=s,t.exports.tokensToRegExp=p;var n="/",r="./",i=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function o(t,e){var o,a=[],s=0,l=0,f="",d=e&&e.delimiter||n,h=e&&e.delimiters||r,p=!1;while(null!==(o=i.exec(t))){var v=o[0],m=o[1],g=o.index;if(f+=t.slice(l,g),l=g+v.length,m)f+=m[1],p=!0;else{var y="",b=t[l],w=o[2],x=o[3],C=o[4],S=o[5];if(!p&&f.length){var _=f.length-1;h.indexOf(f[_])>-1&&(y=f[_],f=f.slice(0,_))}f&&(a.push(f),f="",p=!1);var k=""!==y&&void 0!==b&&b!==y,O="+"===S||"*"===S,T="?"===S||"*"===S,A=y||d,L=x||C;a.push({name:w||s++,prefix:y,delimiter:A,optional:T,repeat:O,partial:k,pattern:L?c(L):"[^"+u(A)+"]+?"})}}return(f||l-1;else{var g=m.repeat?"(?:"+m.pattern+")(?:"+u(m.delimiter)+"(?:"+m.pattern+"))*":m.pattern;e&&e.push(m),m.optional?m.partial?h+=u(m.prefix)+"("+g+")?":h+="(?:"+u(m.prefix)+"("+g+"))?":h+=u(m.prefix)+"("+g+")"}}return s?(o||(h+="(?:"+c+")?"),h+="$"===d?"$":"(?="+d+")"):(o||(h+="(?:"+c+"(?="+d+"))?"),p||(h+="(?="+c+"|"+d+")")),new RegExp(h,l(i))}function v(t,e,n){return t instanceof RegExp?f(t,e):Array.isArray(t)?d(t,e,n):h(t,e,n)}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bf0b:function(t,e,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),u=n("794b"),c=Object.getOwnPropertyDescriptor;e.f=n("8e60")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},c098:function(t,e,n){t.exports=n("d4af")},c207:function(t,e){},c345:function(t,e,n){"use strict";var r=n("c532"),i=["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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");t.exports=n("30f1")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(t,e,n){var r=n("e6f3"),i=n("1691");t.exports=Object.keys||function(t){return r(t,i)}},c401:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=n("044b"),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function s(t){return"[object ArrayBuffer]"===o.call(t)}function u(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function l(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return"undefined"===typeof t}function h(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===o.call(t)}function v(t){return"[object File]"===o.call(t)}function m(t){return"[object Blob]"===o.call(t)}function g(t){return"[object Function]"===o.call(t)}function y(t){return h(t)&&g(t.pipe)}function b(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),a(t))for(var n=0,r=t.length;n=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ccb9:function(t,e,n){e.f=n("5168")},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("2444");function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(a);u.Axios=o,u.create=function(t){return s(r.merge(a,t))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(t){return Promise.all(t)},u.spread=n("0df6"),t.exports=u,t.exports.default=u},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function u(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}u.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=u},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,n){n("1654"),n("6c1c"),t.exports=n("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e017:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var n=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}var i=r((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},u=s.arrayMerge||r;return a?Array.isArray(t)?u(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))})),o=r((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),a=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},s=o.svg,u=o.xlink,c={};c[s.name]=s.uri,c[u.name]=u.uri;var l=function(t,e){void 0===t&&(t="");var n=i(c,e||{}),r=a(n);return""+t+""},f=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return n(l(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,r),e}(t);return f}))}).call(this,n("c8ba"))},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6f3:function(t,e,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},ebd6:function(t,e,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},ebfd:function(t,e,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return c&&p.NEED&&u(t)&&!o(t,r)&&l(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},f5df:function(t,e,n){},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f893:function(t,e,n){t.exports={default:n("f921"),__esModule:!0}},f921:function(t,e,n){n("014b"),n("c207"),n("69d3"),n("765d"),t.exports=n("584a").Symbol},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement}}]); \ No newline at end of file diff --git a/readme.md b/readme.md index 1a1ba83..a9d90bb 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ - 前往[发行版页面](https://gitee.com/durcframework/code-gen/releases),下载最新版本zip文件 - 解压zip,如果是Mac/Linux操作系统,运行`startup.sh`文件启动,Windows操作系统运行cmd输入`java -jar gen.jar`启动 -- 浏览器访问`http://localhost:6969/` +- 浏览器访问`http://localhost:9999/` 默认端口是6969,更改端口号按如下方式: @@ -25,7 +25,7 @@ `docker pull tanghc2020/gen:latest` -下载完毕后,执行`docker run --name gen -p 6969:6969 -d <镜像ID>` +下载完毕后,执行`docker run --name gen -p 9999:9999 -d <镜像ID>` 浏览器访问`http://ip:6969/` @@ -33,7 +33,7 @@ clone代码,然后执行`docker-build.sh`脚本 -执行`docker run --name gen -p 6969:6969 -d <镜像ID>` +执行`docker run --name gen -p 9999:9999 -d <镜像ID>` ## 其它 @@ -67,7 +67,7 @@ Mac/Linux系统可直接执行`build.sh`进行构建,构建结果在`dist`文 - 执行`mvn clean package`,在`gen/target`下会生成一个`gen-xx-SNAPSHOT.jar`(xx表示本号) - 将`gen-xx-SNAPSHOT.jar`和db下的`gen.db`放在同一个文件夹下 - 执行`java -jar gen-xx-SNAPSHOT.jar` - - 浏览器访问`http://localhost:6969/` + - 浏览器访问`http://localhost:9999/` ## 效果图 -- Gitee From 9adc48a8b7999c5675e618ead2272c646d1e3881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=94=9F=E9=BE=99?= Date: Tue, 15 Dec 2020 18:55:26 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat(port)=EF=BC=9A=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA9999?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/.env.development | 2 +- readme.md | 4 ++-- script/startup.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/front/.env.development b/front/.env.development index 1294942..1bf53cd 100644 --- a/front/.env.development +++ b/front/.env.development @@ -2,7 +2,7 @@ ENV = 'development' # base api -VUE_APP_BASE_API = 'http://localhost:6969' +VUE_APP_BASE_API = 'http://localhost:9999' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # to control whether the babel-plugin-dynamic-import-node plugin is enabled. diff --git a/readme.md b/readme.md index a9d90bb..3540b40 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ - 解压zip,如果是Mac/Linux操作系统,运行`startup.sh`文件启动,Windows操作系统运行cmd输入`java -jar gen.jar`启动 - 浏览器访问`http://localhost:9999/` -默认端口是6969,更改端口号按如下方式: +默认端口是9999,更改端口号按如下方式: - Mac/Linux操作系统:打开`startup.sh`文件,修改`--server.port`参数值 - Windows操作系统:可执行:`java -jar gen.jar --server.port=端口号` @@ -27,7 +27,7 @@ 下载完毕后,执行`docker run --name gen -p 9999:9999 -d <镜像ID>` -浏览器访问`http://ip:6969/` +浏览器访问`http://ip:9999/` - 方式二:本地构建镜像 diff --git a/script/startup.sh b/script/startup.sh index 0f61f2f..c8d922e 100644 --- a/script/startup.sh +++ b/script/startup.sh @@ -3,4 +3,4 @@ # 先关闭服务 sh shutdown.sh # --server.port:启动端口 -nohup java -jar -Xms128m -Xmx128m gen.jar --server.port=6969 >/dev/null 2>&1 & +nohup java -jar -Xms128m -Xmx128m gen.jar --server.port=9999 >/dev/null 2>&1 & -- Gitee From 5e65d7efcdd6b6b97d145f8d3b983fb35c5c628a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=94=9F=E9=BE=99?= Date: Wed, 16 Dec 2020 11:53:16 +0800 Subject: [PATCH 3/7] =?UTF-8?q?feat(html)=EF=BC=9A=E4=B8=8D=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=95=B0=E6=8D=AE=E6=BA=90=E9=9A=90=E8=97=8F=E8=A1=A8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/generate/index.vue | 2 +- gen/src/main/resources/public/index.html | 2 +- .../{chunk-4295c974.c99d0862.js => chunk-4295c974.3e5c1d0d.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename gen/src/main/resources/public/static/js/{chunk-4295c974.c99d0862.js => chunk-4295c974.3e5c1d0d.js} (99%) diff --git a/front/src/views/generate/index.vue b/front/src/views/generate/index.vue index e245ada..aa8cb4b 100644 --- a/front/src/views/generate/index.vue +++ b/front/src/views/generate/index.vue @@ -199,7 +199,7 @@ export default { return { groupId: '', groupData: {}, - showTable: true, + showTable: false, clientParam: { datasourceConfigId: '', tableNames: [], diff --git a/gen/src/main/resources/public/index.html b/gen/src/main/resources/public/index.html index 2414f01..c0ecbaf 100644 --- a/gen/src/main/resources/public/index.html +++ b/gen/src/main/resources/public/index.html @@ -1 +1 @@ -代码生成工具
\ No newline at end of file +代码生成工具
\ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js b/gen/src/main/resources/public/static/js/chunk-4295c974.3e5c1d0d.js similarity index 99% rename from gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js rename to gen/src/main/resources/public/static/js/chunk-4295c974.3e5c1d0d.js index b4ddcd6..0c73c72 100644 --- a/gen/src/main/resources/public/static/js/chunk-4295c974.c99d0862.js +++ b/gen/src/main/resources/public/static/js/chunk-4295c974.3e5c1d0d.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4295c974"],{"067a":function(a,e,t){"use strict";t.r(e);var o=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-container code-gen"},[t("el-form",{ref:"genForm",staticClass:"gen-form",attrs:{model:a.clientParam,size:"mini","label-width":"150px"}},[t("el-form-item",{attrs:{label:"选择数据源",prop:"datasourceConfigId",rules:{required:!0,message:"请选择数据源"}}},[t("el-select",{attrs:{placeholder:"选择数据源"},on:{change:a.onDataSourceChange},model:{value:a.clientParam.datasourceConfigId,callback:function(e){a.$set(a.clientParam,"datasourceConfigId",e)},expression:"clientParam.datasourceConfigId"}},a._l(a.datasourceConfigList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.dbName+"("+e.host+")",value:e.id}},[t("span",{staticStyle:{float:"left"}},[a._v(a._s(e.dbName+"("+e.host+")")+" ")]),a._v(" "),t("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t("el-tooltip",{attrs:{placement:"top",content:"Duplicate"}},[t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-document-copy"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDuplicate(e)}}})],1),a._v(" "),t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceUpdate(e)}}}),a._v(" "),t("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDelete(e)}}})],1)])})),1),a._v(" "),t("el-button",{attrs:{type:"text"},on:{click:a.onDataSourceAdd}},[a._v("新建数据源")])],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"包名(package)"}},[t("el-input",{attrs:{placeholder:"可选,如:cn.studyjava.xxx","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.packageName,callback:function(e){a.$set(a.clientParam,"packageName",e)},expression:"clientParam.packageName"}})],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"删除前缀"}},[t("el-input",{attrs:{placeholder:"可选,如:sys_user对应Java类为User(多前缀逗号隔开)","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.delPrefix,callback:function(e){a.$set(a.clientParam,"delPrefix",e)},expression:"clientParam.delPrefix"}})],1)],1),a._v(" "),t("el-row",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("h4",[a._v("选择表")]),a._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{"prefix-icon":"el-icon-search",clearable:"",size:"mini",placeholder:"过滤表"},model:{value:a.tableSearch,callback:function(e){a.tableSearch=e},expression:"tableSearch"}}),a._v(" "),t("el-table",{attrs:{data:a.tableListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.tableRowClassName},on:{"selection-change":a.onTableListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"tableName",label:"表名"}})],1)],1),a._v(" "),t("el-col",{attrs:{span:12,id:"templateSelect"}},[t("h4",[a._v("选择模板")]),a._v(" "),t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.clientParam.groupName,callback:function(e){a.$set(a.clientParam,"groupName",e)},expression:"clientParam.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1),a._v(" "),t("el-table",{attrs:{data:a.templateListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.templateTableRowClassName},on:{"selection-change":a.onTemplateListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"name",label:"模板名称"},scopedSlots:a._u([{key:"default",fn:function(e){return t("span",{},[a._v("\n "+a._s(e.row.name)+"\n ")])}}])})],1),a._v(" "),t("el-button",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{type:"primary"},on:{click:a.onGenerate}},[a._v("生成代码")])],1)],1),a._v(" "),t("el-dialog",{attrs:{title:a.datasourceTitle,visible:a.datasourceDlgShow},on:{"update:visible":function(e){a.datasourceDlgShow=e}}},[t("el-form",{ref:"datasourceForm",attrs:{model:a.datasourceFormData,rules:a.datasourceRule,size:"mini","label-width":"120px"}},[t("el-form-item",{attrs:{label:"数据库类型"}},[t("el-select",{attrs:{filterable:"","default-first-option":""},model:{value:a.datasourceFormData.dbType,callback:function(e){a.$set(a.datasourceFormData,"dbType",e)},expression:"datasourceFormData.dbType"}},a._l(a.dbTypeConfig,(function(a){return t("el-option",{key:a.dbType,attrs:{label:a.label,value:a.dbType}})})),1)],1),a._v(" "),t("el-form-item",{attrs:{label:"Host",prop:"host"}},[t("el-input",{attrs:{placeholder:"地址","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.host,callback:function(e){a.$set(a.datasourceFormData,"host",e)},expression:"datasourceFormData.host"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Port",prop:"port"}},[t("el-input",{attrs:{placeholder:"端口","show-word-limit":"",maxlength:"10"},model:{value:a.datasourceFormData.port,callback:function(e){a.$set(a.datasourceFormData,"port",e)},expression:"datasourceFormData.port"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Database",prop:"dbName"}},[t("el-input",{attrs:{placeholder:"数据库","show-word-limit":"",maxlength:"64"},model:{value:a.datasourceFormData.dbName,callback:function(e){a.$set(a.datasourceFormData,"dbName",e)},expression:"datasourceFormData.dbName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Username",prop:"username"}},[t("el-input",{attrs:{placeholder:"用户名","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.username,callback:function(e){a.$set(a.datasourceFormData,"username",e)},expression:"datasourceFormData.username"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Password",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.password,callback:function(e){a.$set(a.datasourceFormData,"password",e)},expression:"datasourceFormData.password"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"包名",prop:"packageName"}},[t("el-input",{attrs:{placeholder:"包名(package)","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.packageName,callback:function(e){a.$set(a.datasourceFormData,"packageName",e)},expression:"datasourceFormData.packageName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"删除前缀",prop:"delPrefix"}},[t("el-input",{attrs:{placeholder:"删除前缀(表名sys_user删除前缀sys_对应bean为User)多前缀逗号隔开","show-word-limit":"",maxlength:"200"},model:{value:a.datasourceFormData.delPrefix,callback:function(e){a.$set(a.datasourceFormData,"delPrefix",e)},expression:"datasourceFormData.delPrefix"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"代码生成器模板",prop:"delPrefix"}},[t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.datasourceFormData.groupName,callback:function(e){a.$set(a.datasourceFormData,"groupName",e)},expression:"datasourceFormData.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1)],1),a._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"success"},on:{click:a.onDatasourceTest}},[a._v("测试连接")]),a._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:a.onDatasourceSave}},[a._v("保存")])],1)],1)],1)],1)},r=[],l=(t("7514"),t("456d"),t("ac6a"),{data:function(){return{groupId:"",groupData:{},showTable:!0,clientParam:{datasourceConfigId:"",tableNames:[],templateConfigIdList:[],packageName:null,delPrefix:null,groupId:"",groupName:""},tableSearch:"",datasourceConfigList:[],tableListData:[],templateListData:[],datasourceTitle:"新建连接",datasourceDlgShow:!1,datasourceFormData:{id:0,dbType:1,host:"",port:"",username:"",password:"",dbName:"",packageName:"",delPrefix:"",groupId:"",groupName:""},dbTypeConfig:[],datasourceRule:{host:[{required:!0,message:"不能为空",trigger:"blur"}],port:[{required:!0,message:"不能为空",trigger:"blur"}],username:[{required:!0,message:"不能为空",trigger:"blur"}],password:[{required:!0,message:"不能为空",trigger:"blur"}],dbName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadDataSource(),this.loadTemplate(),this.loadDbType(),this.loadGroups()},methods:{tableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,0===this.tableSearch.length||e.tableName&&e.tableName.indexOf(this.tableSearch)>-1?"":(e.hidden=!0,"hidden-row")},templateTableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,""==this.groupId||this.groupId<=0||e.groupId&&e.groupId==this.groupId?"":(e.hidden=!0,"hidden-row")},loadGroups:function(){this.post("/group/list/",{},(function(a){this.groupData=a.data}))},loadDataSource:function(){var a=this;this.post("/datasource/list",{},(function(e){a.datasourceConfigList=e.data}))},loadTemplate:function(){var a=this;this.post("/template/list",{},(function(e){a.templateListData=e.data}))},loadDbType:function(){var a=this;this.post("/datasource/dbtype",{},(function(e){a.dbTypeConfig=e.data}))},onDataSourceAdd:function(){var a=this;this.datasourceTitle="新建连接",Object.keys(this.datasourceFormData).forEach((function(e){a.datasourceFormData[e]=""})),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onTableListSelect:function(a){this.clientParam.tableNames=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.tableName}))},onTemplateListSelect:function(a){this.clientParam.templateConfigIdList=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.id}))},onDataSourceChange:function(a){var e=this;this.clientParam.datasourceConfigId=a,this.datasourceConfigList.find((function(t){t.id===a&&(e.clientParam.packageName=t.packageName,e.clientParam.delPrefix=t.delPrefix,e.groupId=t.groupId,e.groupData.find((function(a){a.id==t.groupId&&(e.clientParam.groupName=a.groupName)})),console.log("this.clientParam.groupName="+e.clientParam.groupName))})),this.post("/datasource/table/".concat(a),{},(function(a){e.showTable=!0,e.tableListData=a.data}))},onDataSourceUpdate:function(a){var e=this;this.datasourceTitle="修改连接",Object.assign(this.datasourceFormData,a),this.groupData.find((function(t){t.id==a.groupId&&(e.datasourceFormData.groupName=t.groupName)})),this.datasourceDlgShow=!0},onDataSourceDuplicate:function(a){this.datasourceTitle="".concat(a.host," Copy"),Object.assign(this.datasourceFormData,a),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onDataSourceDelete:function(a){this.confirm("确认要删除 ".concat(a.dbName," 吗?"),(function(e){var t={id:a.id};this.post("/datasource/del",t,(function(){e(),location.reload()}))}))},onGenerate:function(){var a=this;this.$refs.genForm.validate((function(e){if(e){if(0===a.clientParam.tableNames.length)return void a.tip("请勾选表","error");if(0===a.clientParam.templateConfigIdList.length)return void a.tip("请勾选模板","error");var t=JSON.stringify(a.clientParam);a.goRoute("result/".concat(t))}}))},onDatasourceTest:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.tip("连接成功")}))}))},onDataGroupChange:function(a){""!=a&&(this.groupId=a,this.datasourceFormData.groupId=a)},onDatasourceSave:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.datasourceFormData.id?a.post("/datasource/update",a.datasourceFormData,(function(a){location.reload()})):a.post("/datasource/add",a.datasourceFormData,(function(e){a.tip("添加成功"),a.loadDataSource(),a.datasourceDlgShow=!1}))}))}))}}}),s=l,i=(t("1764"),t("2877")),n=Object(i["a"])(s,o,r,!1,null,null,null);e["default"]=n.exports},"0a49":function(a,e,t){var o=t("9b43"),r=t("626a"),l=t("4bf8"),s=t("9def"),i=t("cd1c");a.exports=function(a,e){var t=1==a,n=2==a,c=3==a,u=4==a,d=6==a,m=5==a||d,p=e||i;return function(e,i,f){for(var h,g,b=l(e),v=r(b),D=o(i,f,3),w=s(v.length),y=0,x=t?p(e,w):n?p(e,0):void 0;w>y;y++)if((m||y in v)&&(h=v[y],g=D(h,y,b),a))if(t)x[y]=g;else if(g)switch(a){case 3:return!0;case 5:return h;case 6:return y;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},1169:function(a,e,t){var o=t("2d95");a.exports=Array.isArray||function(a){return"Array"==o(a)}},1764:function(a,e,t){"use strict";t("aa8f")},"456d":function(a,e,t){var o=t("4bf8"),r=t("0d58");t("5eda")("keys",(function(){return function(a){return r(o(a))}}))},"5eda":function(a,e,t){var o=t("5ca1"),r=t("8378"),l=t("79e5");a.exports=function(a,e){var t=(r.Object||{})[a]||Object[a],s={};s[a]=e(t),o(o.S+o.F*l((function(){t(1)})),"Object",s)}},7514:function(a,e,t){"use strict";var o=t("5ca1"),r=t("0a49")(5),l="find",s=!0;l in[]&&Array(1)[l]((function(){s=!1})),o(o.P+o.F*s,"Array",{find:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}}),t("9c6c")(l)},aa8f:function(a,e,t){},cd1c:function(a,e,t){var o=t("e853");a.exports=function(a,e){return new(o(a))(e)}},e853:function(a,e,t){var o=t("d3f4"),r=t("1169"),l=t("2b4c")("species");a.exports=function(a){var e;return r(a)&&(e=a.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&(e=e[l],null===e&&(e=void 0))),void 0===e?Array:e}}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4295c974"],{"067a":function(a,e,t){"use strict";t.r(e);var o=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-container code-gen"},[t("el-form",{ref:"genForm",staticClass:"gen-form",attrs:{model:a.clientParam,size:"mini","label-width":"150px"}},[t("el-form-item",{attrs:{label:"选择数据源",prop:"datasourceConfigId",rules:{required:!0,message:"请选择数据源"}}},[t("el-select",{attrs:{placeholder:"选择数据源"},on:{change:a.onDataSourceChange},model:{value:a.clientParam.datasourceConfigId,callback:function(e){a.$set(a.clientParam,"datasourceConfigId",e)},expression:"clientParam.datasourceConfigId"}},a._l(a.datasourceConfigList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.dbName+"("+e.host+")",value:e.id}},[t("span",{staticStyle:{float:"left"}},[a._v(a._s(e.dbName+"("+e.host+")")+" ")]),a._v(" "),t("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t("el-tooltip",{attrs:{placement:"top",content:"Duplicate"}},[t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-document-copy"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDuplicate(e)}}})],1),a._v(" "),t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceUpdate(e)}}}),a._v(" "),t("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDelete(e)}}})],1)])})),1),a._v(" "),t("el-button",{attrs:{type:"text"},on:{click:a.onDataSourceAdd}},[a._v("新建数据源")])],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"包名(package)"}},[t("el-input",{attrs:{placeholder:"可选,如:cn.studyjava.xxx","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.packageName,callback:function(e){a.$set(a.clientParam,"packageName",e)},expression:"clientParam.packageName"}})],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"删除前缀"}},[t("el-input",{attrs:{placeholder:"可选,如:sys_user对应Java类为User(多前缀逗号隔开)","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.delPrefix,callback:function(e){a.$set(a.clientParam,"delPrefix",e)},expression:"clientParam.delPrefix"}})],1)],1),a._v(" "),t("el-row",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("h4",[a._v("选择表")]),a._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{"prefix-icon":"el-icon-search",clearable:"",size:"mini",placeholder:"过滤表"},model:{value:a.tableSearch,callback:function(e){a.tableSearch=e},expression:"tableSearch"}}),a._v(" "),t("el-table",{attrs:{data:a.tableListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.tableRowClassName},on:{"selection-change":a.onTableListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"tableName",label:"表名"}})],1)],1),a._v(" "),t("el-col",{attrs:{span:12,id:"templateSelect"}},[t("h4",[a._v("选择模板")]),a._v(" "),t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.clientParam.groupName,callback:function(e){a.$set(a.clientParam,"groupName",e)},expression:"clientParam.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1),a._v(" "),t("el-table",{attrs:{data:a.templateListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.templateTableRowClassName},on:{"selection-change":a.onTemplateListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"name",label:"模板名称"},scopedSlots:a._u([{key:"default",fn:function(e){return t("span",{},[a._v("\n "+a._s(e.row.name)+"\n ")])}}])})],1),a._v(" "),t("el-button",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{type:"primary"},on:{click:a.onGenerate}},[a._v("生成代码")])],1)],1),a._v(" "),t("el-dialog",{attrs:{title:a.datasourceTitle,visible:a.datasourceDlgShow},on:{"update:visible":function(e){a.datasourceDlgShow=e}}},[t("el-form",{ref:"datasourceForm",attrs:{model:a.datasourceFormData,rules:a.datasourceRule,size:"mini","label-width":"120px"}},[t("el-form-item",{attrs:{label:"数据库类型"}},[t("el-select",{attrs:{filterable:"","default-first-option":""},model:{value:a.datasourceFormData.dbType,callback:function(e){a.$set(a.datasourceFormData,"dbType",e)},expression:"datasourceFormData.dbType"}},a._l(a.dbTypeConfig,(function(a){return t("el-option",{key:a.dbType,attrs:{label:a.label,value:a.dbType}})})),1)],1),a._v(" "),t("el-form-item",{attrs:{label:"Host",prop:"host"}},[t("el-input",{attrs:{placeholder:"地址","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.host,callback:function(e){a.$set(a.datasourceFormData,"host",e)},expression:"datasourceFormData.host"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Port",prop:"port"}},[t("el-input",{attrs:{placeholder:"端口","show-word-limit":"",maxlength:"10"},model:{value:a.datasourceFormData.port,callback:function(e){a.$set(a.datasourceFormData,"port",e)},expression:"datasourceFormData.port"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Database",prop:"dbName"}},[t("el-input",{attrs:{placeholder:"数据库","show-word-limit":"",maxlength:"64"},model:{value:a.datasourceFormData.dbName,callback:function(e){a.$set(a.datasourceFormData,"dbName",e)},expression:"datasourceFormData.dbName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Username",prop:"username"}},[t("el-input",{attrs:{placeholder:"用户名","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.username,callback:function(e){a.$set(a.datasourceFormData,"username",e)},expression:"datasourceFormData.username"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Password",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.password,callback:function(e){a.$set(a.datasourceFormData,"password",e)},expression:"datasourceFormData.password"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"包名",prop:"packageName"}},[t("el-input",{attrs:{placeholder:"包名(package)","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.packageName,callback:function(e){a.$set(a.datasourceFormData,"packageName",e)},expression:"datasourceFormData.packageName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"删除前缀",prop:"delPrefix"}},[t("el-input",{attrs:{placeholder:"删除前缀(表名sys_user删除前缀sys_对应bean为User)多前缀逗号隔开","show-word-limit":"",maxlength:"200"},model:{value:a.datasourceFormData.delPrefix,callback:function(e){a.$set(a.datasourceFormData,"delPrefix",e)},expression:"datasourceFormData.delPrefix"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"代码生成器模板",prop:"delPrefix"}},[t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.datasourceFormData.groupName,callback:function(e){a.$set(a.datasourceFormData,"groupName",e)},expression:"datasourceFormData.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1)],1),a._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"success"},on:{click:a.onDatasourceTest}},[a._v("测试连接")]),a._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:a.onDatasourceSave}},[a._v("保存")])],1)],1)],1)],1)},r=[],l=(t("7514"),t("456d"),t("ac6a"),{data:function(){return{groupId:"",groupData:{},showTable:!1,clientParam:{datasourceConfigId:"",tableNames:[],templateConfigIdList:[],packageName:null,delPrefix:null,groupId:"",groupName:""},tableSearch:"",datasourceConfigList:[],tableListData:[],templateListData:[],datasourceTitle:"新建连接",datasourceDlgShow:!1,datasourceFormData:{id:0,dbType:1,host:"",port:"",username:"",password:"",dbName:"",packageName:"",delPrefix:"",groupId:"",groupName:""},dbTypeConfig:[],datasourceRule:{host:[{required:!0,message:"不能为空",trigger:"blur"}],port:[{required:!0,message:"不能为空",trigger:"blur"}],username:[{required:!0,message:"不能为空",trigger:"blur"}],password:[{required:!0,message:"不能为空",trigger:"blur"}],dbName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadDataSource(),this.loadTemplate(),this.loadDbType(),this.loadGroups()},methods:{tableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,0===this.tableSearch.length||e.tableName&&e.tableName.indexOf(this.tableSearch)>-1?"":(e.hidden=!0,"hidden-row")},templateTableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,""==this.groupId||this.groupId<=0||e.groupId&&e.groupId==this.groupId?"":(e.hidden=!0,"hidden-row")},loadGroups:function(){this.post("/group/list/",{},(function(a){this.groupData=a.data}))},loadDataSource:function(){var a=this;this.post("/datasource/list",{},(function(e){a.datasourceConfigList=e.data}))},loadTemplate:function(){var a=this;this.post("/template/list",{},(function(e){a.templateListData=e.data}))},loadDbType:function(){var a=this;this.post("/datasource/dbtype",{},(function(e){a.dbTypeConfig=e.data}))},onDataSourceAdd:function(){var a=this;this.datasourceTitle="新建连接",Object.keys(this.datasourceFormData).forEach((function(e){a.datasourceFormData[e]=""})),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onTableListSelect:function(a){this.clientParam.tableNames=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.tableName}))},onTemplateListSelect:function(a){this.clientParam.templateConfigIdList=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.id}))},onDataSourceChange:function(a){var e=this;this.clientParam.datasourceConfigId=a,this.datasourceConfigList.find((function(t){t.id===a&&(e.clientParam.packageName=t.packageName,e.clientParam.delPrefix=t.delPrefix,e.groupId=t.groupId,e.groupData.find((function(a){a.id==t.groupId&&(e.clientParam.groupName=a.groupName)})),console.log("this.clientParam.groupName="+e.clientParam.groupName))})),this.post("/datasource/table/".concat(a),{},(function(a){e.showTable=!0,e.tableListData=a.data}))},onDataSourceUpdate:function(a){var e=this;this.datasourceTitle="修改连接",Object.assign(this.datasourceFormData,a),this.groupData.find((function(t){t.id==a.groupId&&(e.datasourceFormData.groupName=t.groupName)})),this.datasourceDlgShow=!0},onDataSourceDuplicate:function(a){this.datasourceTitle="".concat(a.host," Copy"),Object.assign(this.datasourceFormData,a),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onDataSourceDelete:function(a){this.confirm("确认要删除 ".concat(a.dbName," 吗?"),(function(e){var t={id:a.id};this.post("/datasource/del",t,(function(){e(),location.reload()}))}))},onGenerate:function(){var a=this;this.$refs.genForm.validate((function(e){if(e){if(0===a.clientParam.tableNames.length)return void a.tip("请勾选表","error");if(0===a.clientParam.templateConfigIdList.length)return void a.tip("请勾选模板","error");var t=JSON.stringify(a.clientParam);a.goRoute("result/".concat(t))}}))},onDatasourceTest:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.tip("连接成功")}))}))},onDataGroupChange:function(a){""!=a&&(this.groupId=a,this.datasourceFormData.groupId=a)},onDatasourceSave:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.datasourceFormData.id?a.post("/datasource/update",a.datasourceFormData,(function(a){location.reload()})):a.post("/datasource/add",a.datasourceFormData,(function(e){a.tip("添加成功"),a.loadDataSource(),a.datasourceDlgShow=!1}))}))}))}}}),s=l,i=(t("1764"),t("2877")),n=Object(i["a"])(s,o,r,!1,null,null,null);e["default"]=n.exports},"0a49":function(a,e,t){var o=t("9b43"),r=t("626a"),l=t("4bf8"),s=t("9def"),i=t("cd1c");a.exports=function(a,e){var t=1==a,n=2==a,c=3==a,u=4==a,d=6==a,m=5==a||d,p=e||i;return function(e,i,f){for(var h,g,b=l(e),v=r(b),D=o(i,f,3),w=s(v.length),y=0,x=t?p(e,w):n?p(e,0):void 0;w>y;y++)if((m||y in v)&&(h=v[y],g=D(h,y,b),a))if(t)x[y]=g;else if(g)switch(a){case 3:return!0;case 5:return h;case 6:return y;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},1169:function(a,e,t){var o=t("2d95");a.exports=Array.isArray||function(a){return"Array"==o(a)}},1764:function(a,e,t){"use strict";t("aa8f")},"456d":function(a,e,t){var o=t("4bf8"),r=t("0d58");t("5eda")("keys",(function(){return function(a){return r(o(a))}}))},"5eda":function(a,e,t){var o=t("5ca1"),r=t("8378"),l=t("79e5");a.exports=function(a,e){var t=(r.Object||{})[a]||Object[a],s={};s[a]=e(t),o(o.S+o.F*l((function(){t(1)})),"Object",s)}},7514:function(a,e,t){"use strict";var o=t("5ca1"),r=t("0a49")(5),l="find",s=!0;l in[]&&Array(1)[l]((function(){s=!1})),o(o.P+o.F*s,"Array",{find:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}}),t("9c6c")(l)},aa8f:function(a,e,t){},cd1c:function(a,e,t){var o=t("e853");a.exports=function(a,e){return new(o(a))(e)}},e853:function(a,e,t){var o=t("d3f4"),r=t("1169"),l=t("2b4c")("species");a.exports=function(a){var e;return r(a)&&(e=a.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&(e=e[l],null===e&&(e=void 0))),void 0===e?Array:e}}}]); \ No newline at end of file -- Gitee From a34fedafe3c72170e37e353edef3cae660e7d577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=94=9F=E9=BE=99?= Date: Wed, 16 Dec 2020 13:48:45 +0800 Subject: [PATCH 4/7] =?UTF-8?q?feat(template)=EF=BC=9A=E6=9B=BF=E6=8D=A2ge?= =?UTF-8?q?n.db,=20mysql.sql,=20=E6=96=B0=E5=A2=9E=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=A8=A1=E6=9D=BF=E5=90=8D=E7=A7=B0+?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=BB=84=E4=B8=8D=E8=83=BD=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/mysql.sql | 26 ++++++++++++------ .../gen/mapper/TemplateConfigMapper.java | 2 +- .../gen/service/TemplateConfigService.java | 10 +++---- gen/src/main/resources/gen.db | Bin 69632 -> 94208 bytes .../mybatis/TemplateConfigMapper.xml | 4 +-- 5 files changed, 26 insertions(+), 16 deletions(-) diff --git a/db/mysql.sql b/db/mysql.sql index b0abf8d..0f471b7 100644 --- a/db/mysql.sql +++ b/db/mysql.sql @@ -2,7 +2,6 @@ CREATE DATABASE IF NOT EXISTS `gen` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `gen`; - CREATE TABLE `datasource_config` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `db_type` int(11) NOT NULL DEFAULT '0' COMMENT '数据库类型,1:MySql, 2:Oracle, 3:sqlserver', @@ -13,12 +12,16 @@ CREATE TABLE `datasource_config` ( `username` varchar(64) NOT NULL DEFAULT '' COMMENT '数据库用户名', `password` varchar(64) NOT NULL DEFAULT '' COMMENT '数据库密码', `is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否已删除,1:已删除,0:未删除', + `package_name` varchar(100) DEFAULT NULL COMMENT '包名', + `del_prefix` varchar(200) DEFAULT NULL COMMENT '删除前缀', + `group_id` int(11) DEFAULT NULL COMMENT '模板组id', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='数据源配置表'; - CREATE TABLE `template_config` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `group_id` int(11) DEFAULT NULL COMMENT '模板组Id', + `group_name` varchar(100) DEFAULT NULL COMMENT '模板组名称', `name` varchar(64) NOT NULL DEFAULT '' COMMENT '模板名称', `file_name` varchar(128) NOT NULL DEFAULT '' COMMENT '文件名称', `content` text NOT NULL COMMENT '内容', @@ -26,12 +29,19 @@ CREATE TABLE `template_config` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='模板表'; -INSERT INTO `template_config` (`id`, `name`, `file_name`, `content`, `is_deleted`) VALUES - (1,'entity','${context.javaBeanName}.java','package ${context.packageName}.entity;\n\n#if(${table.hasDateField})\nimport java.util.Date;\n#end\n#if(${table.hasLocalDateField})\nimport java.time.LocalDate;\n#end\n#if(${table.hasLocalDateTimeField})\nimport java.time.LocalDateTime;\n#end\n#if(${table.hasBigDecimalField})\nimport java.math.BigDecimal;\n#end\n\n#if( "${table.comment}" != "" )\n/**\n * ${table.comment}\n */\n#end\npublic class ${context.javaBeanName} {\n#foreach($column in $columns)\n#if( "${column.comment}" != "" )\n /** ${column.comment} */\n#end\n private ${column.javaTypeBox} ${column.javaFieldName};\n#end\n\n#foreach(${column} in ${columns})\n public void set${column.javaFieldNameUF}(${column.javaTypeBox} ${column.javaFieldName}) {\n this.${column.javaFieldName} = ${column.javaFieldName};\n }\n \n public ${column.javaTypeBox} get${column.javaFieldNameUF}() {\n return this.${column.javaFieldName};\n }\n \n#end\n\n @Override\n public boolean equals(Object o) {\n if (this == o) { return true; }\n if (o == null || getClass() != o.getClass()) {return false;}\n ${context.javaBeanName} that = (${context.javaBeanName}) o;\n return ${pk.javaFieldName}.equals(that.${pk.javaFieldName});\n }\n\n @Override\n public int hashCode() {\n return java.util.Objects.hash(${pk.javaFieldName});\n }\n \n @Override\n public String toString() {\n return "${context.javaBeanName}{" +\n#foreach(${column} in ${columns})\n #if($velocityCount == 1)\n "${column.javaFieldName}=" + ${column.javaFieldName} +\n #else\n ",${column.javaFieldName}=\'" + ${column.javaFieldName} + "\'" + \n #end\n#end\n \'}\';\n }\n \n}',0), - (2,'mybatis','${context.javaBeanName}Mapper.xml','#set($jq="$")\n\n\n\n \n #foreach($column in $columns) \n \n #end\n \n \n \n \n #foreach($column in $columns)\n #if($velocityCount > 1),#end t.${column.columnName}\n #end\n \n \n \n \n \n \n \n\n \n \n INSERT INTO ${table.tableName}\n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n ${column.columnName},\n #end \n #end\n \n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n #{${column.javaFieldName}}, \n #end \n #end\n \n \n \n \n \n INSERT INTO ${table.tableName} \n \n\n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n \n ${column.columnName},\n \n #end \n #end\n \n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n \n #{${column.javaFieldName}}, \n \n #end \n #end\n \n \n\n \n \n UPDATE ${table.tableName}\n \n #foreach($column in $columns) \n #if(!${column.isPk}) \n ${column.columnName}=#{${column.javaFieldName}}, \n #end \n #end\n \n WHERE ${pk.columnName} = #{${pk.javaFieldName}}\n \n \n \n \n \n UPDATE ${table.tableName}\n \n #foreach($column in $columns) \n #if(!${column.isPk}) \n \n ${column.columnName}=#{${column.javaFieldName}}, \n \n #end \n #end\n \n WHERE ${pk.columnName} = #{${pk.javaFieldName}}\n \n\n \n \n \n UPDATE ${table.tableName}\n SET is_deleted=1\n WHERE ${pk.columnName} = #{${pk.javaFieldName}}\n \n\n\n',0), - (3,'dao','${context.javaBeanName}Mapper.java','package ${context.packageName}.mapper;\n\nimport java.util.List;\nimport org.apache.ibatis.annotations.Mapper;\nimport ${context.packageName}.entity.${context.javaBeanName};\n\n@Mapper\npublic interface ${context.javaBeanName}Mapper {\n\n /**\n * 查询所有记录\n *\n * @return 返回集合,没有返回空List\n */\n List<${context.javaBeanName}> listAll();\n\n\n /**\n * 根据主键查询\n *\n * @param id 主键\n * @return 返回记录,没有返回null\n */\n ${context.javaBeanName} getById(${pk.javaTypeBox} ${pk.javaFieldName});\n \n /**\n * 新增,插入所有字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n int insert(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 新增,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n int insertIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 修改,修改所有字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n int update(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 修改,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n int updateIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 删除记录\n *\n * @param ${context.javaBeanNameLF} 待删除的记录\n * @return 返回影响行数\n */\n int delete(${context.javaBeanName} ${context.javaBeanNameLF});\n \n}',0), - (4,'service','${context.javaBeanName}Service','package ${context.packageName}.mapper;\n\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.mapper.${context.javaBeanName}Mapper;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.List;\n\n@Service\npublic class ${context.javaBeanName}Service {\n\n @Autowired\n private ${context.javaBeanName}Mapper ${context.javaBeanNameLF}Mapper;\n\n /**\n * 查询所有记录\n *\n * @return 返回集合,没有返回空List\n */\n public List<${context.javaBeanName}> listAll() {\n return ${context.javaBeanNameLF}Mapper.listAll();\n }\n\n\n /**\n * 根据主键查询\n *\n * @param id 主键\n * @return 返回记录,没有返回null\n */\n public ${context.javaBeanName} getById(${pk.javaTypeBox} ${pk.javaFieldName}) {\n return ${context.javaBeanNameLF}Mapper.getById(${pk.javaFieldName});\n }\n \n /**\n * 新增,插入所有字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n public int insert(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.insert(${context.javaBeanNameLF});\n }\n \n /**\n * 新增,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n public int insertIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.insertIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,修改所有字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n public int update(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.update(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n public int updateIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.updateIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 删除记录\n *\n * @param ${context.javaBeanNameLF} 待删除的记录\n * @return 返回影响行数\n */\n public int delete(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.delete(${context.javaBeanNameLF});\n }\n \n}',0), - (5,'controller','${context.javaBeanName}Controller','package ${context.packageName}.mapper;\n\nimport java.util.List;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestBody;\nimport org.springframework.web.bind.annotation.RestController;\n\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.service.${context.javaBeanName}Service;\n\n@RestController\npublic class ${context.javaBeanName}Controller {\n\n @Autowired\n private ${context.javaBeanName}Service ${context.javaBeanNameLF}Service;\n\n /**\n * 查询所有记录\n *\n * @return 返回集合,没有返回空List\n */\n @RequestMapping("list")\n public List<${context.javaBeanName}> listAll() {\n return ${context.javaBeanNameLF}Service.listAll();\n }\n\n\n /**\n * 根据主键查询\n *\n * @param id 主键\n * @return 返回记录,没有返回null\n */\n @RequestMapping("getById")\n public ${context.javaBeanName} getById(${pk.javaTypeBox} ${pk.javaFieldName}) {\n return ${context.javaBeanNameLF}Service.getById(${pk.javaFieldName});\n }\n \n /**\n * 新增,插入所有字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n @RequestMapping("insert")\n public int insert(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.insert(${context.javaBeanNameLF});\n }\n \n /**\n * 新增,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n @RequestMapping("insert")\n public int insertIgnoreNull(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.insertIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,修改所有字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n @RequestMapping("update")\n public int update(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.update(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n @RequestMapping("updateIgnoreNull")\n public int updateIgnoreNull(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.updateIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 删除记录\n *\n * @param ${context.javaBeanNameLF} 待删除的记录\n * @return 返回影响行数\n */\n @RequestMapping("delete")\n public int delete(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.delete(${context.javaBeanNameLF});\n }\n \n}',0); +CREATE TABLE `template_group` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `group_name` varchar(100) DEFAULT NULL COMMENT '模板组名称', + `is_deleted` int(11) DEFAULT NULL COMMENT '是否删除,1:已删除,0:未删除', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='模板组表'; + +INSERT INTO `template_config` (`id`, `group_id`, `group_name`, `name`, `file_name`, `content`, `is_deleted`) VALUES + (1, 1, 'default', 'entity','${context.javaBeanName}.java','package ${context.packageName}.entity;\n\n#if(${table.hasDateField})\nimport java.util.Date;\n#end\n#if(${table.hasLocalDateField})\nimport java.time.LocalDate;\n#end\n#if(${table.hasLocalDateTimeField})\nimport java.time.LocalDateTime;\n#end\n#if(${table.hasBigDecimalField})\nimport java.math.BigDecimal;\n#end\n\n#if( "${table.comment}" != "" )\n/**\n * ${table.comment}\n */\n#end\npublic class ${context.javaBeanName} {\n#foreach($column in $columns)\n#if( "${column.comment}" != "" )\n /** ${column.comment} */\n#end\n private ${column.javaTypeBox} ${column.javaFieldName};\n#end\n\n#foreach(${column} in ${columns})\n public void set${column.javaFieldNameUF}(${column.javaTypeBox} ${column.javaFieldName}) {\n this.${column.javaFieldName} = ${column.javaFieldName};\n }\n \n public ${column.javaTypeBox} get${column.javaFieldNameUF}() {\n return this.${column.javaFieldName};\n }\n \n#end\n\n @Override\n public boolean equals(Object o) {\n if (this == o) { return true; }\n if (o == null || getClass() != o.getClass()) {return false;}\n ${context.javaBeanName} that = (${context.javaBeanName}) o;\n return ${pk.javaFieldName}.equals(that.${pk.javaFieldName});\n }\n\n @Override\n public int hashCode() {\n return java.util.Objects.hash(${pk.javaFieldName});\n }\n \n @Override\n public String toString() {\n return "${context.javaBeanName}{" +\n#foreach(${column} in ${columns})\n #if($velocityCount == 1)\n "${column.javaFieldName}=" + ${column.javaFieldName} +\n #else\n ",${column.javaFieldName}=\'" + ${column.javaFieldName} + "\'" + \n #end\n#end\n \'}\';\n }\n \n}',0), + (2, 1, 'default', 'mybatis','${context.javaBeanName}Mapper.xml','#set($jq="$")\n\n\n\n \n #foreach($column in $columns) \n \n #end\n \n \n \n \n #foreach($column in $columns)\n #if($velocityCount > 1),#end t.${column.columnName}\n #end\n \n \n \n \n \n \n \n\n \n \n INSERT INTO ${table.tableName}\n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n ${column.columnName},\n #end \n #end\n \n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n #{${column.javaFieldName}}, \n #end \n #end\n \n \n \n \n \n INSERT INTO ${table.tableName} \n \n\n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n \n ${column.columnName},\n \n #end \n #end\n \n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n \n #{${column.javaFieldName}}, \n \n #end \n #end\n \n \n\n \n \n UPDATE ${table.tableName}\n \n #foreach($column in $columns) \n #if(!${column.isPk}) \n ${column.columnName}=#{${column.javaFieldName}}, \n #end \n #end\n \n WHERE ${pk.columnName} = #{${pk.javaFieldName}}\n \n \n \n \n \n UPDATE ${table.tableName}\n \n #foreach($column in $columns) \n #if(!${column.isPk}) \n \n ${column.columnName}=#{${column.javaFieldName}}, \n \n #end \n #end\n \n WHERE ${pk.columnName} = #{${pk.javaFieldName}}\n \n\n \n \n \n UPDATE ${table.tableName}\n SET is_deleted=1\n WHERE ${pk.columnName} = #{${pk.javaFieldName}}\n \n\n\n',0), + (3, 1, 'default', 'dao','${context.javaBeanName}Mapper.java','package ${context.packageName}.mapper;\n\nimport java.util.List;\nimport org.apache.ibatis.annotations.Mapper;\nimport ${context.packageName}.entity.${context.javaBeanName};\n\n@Mapper\npublic interface ${context.javaBeanName}Mapper {\n\n /**\n * 查询所有记录\n *\n * @return 返回集合,没有返回空List\n */\n List<${context.javaBeanName}> listAll();\n\n\n /**\n * 根据主键查询\n *\n * @param id 主键\n * @return 返回记录,没有返回null\n */\n ${context.javaBeanName} getById(${pk.javaTypeBox} ${pk.javaFieldName});\n \n /**\n * 新增,插入所有字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n int insert(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 新增,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n int insertIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 修改,修改所有字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n int update(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 修改,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n int updateIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF});\n \n /**\n * 删除记录\n *\n * @param ${context.javaBeanNameLF} 待删除的记录\n * @return 返回影响行数\n */\n int delete(${context.javaBeanName} ${context.javaBeanNameLF});\n \n}',0), + (4, 1, 'default', 'service','${context.javaBeanName}Service','package ${context.packageName}.mapper;\n\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.mapper.${context.javaBeanName}Mapper;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport java.util.List;\n\n@Service\npublic class ${context.javaBeanName}Service {\n\n @Autowired\n private ${context.javaBeanName}Mapper ${context.javaBeanNameLF}Mapper;\n\n /**\n * 查询所有记录\n *\n * @return 返回集合,没有返回空List\n */\n public List<${context.javaBeanName}> listAll() {\n return ${context.javaBeanNameLF}Mapper.listAll();\n }\n\n\n /**\n * 根据主键查询\n *\n * @param id 主键\n * @return 返回记录,没有返回null\n */\n public ${context.javaBeanName} getById(${pk.javaTypeBox} ${pk.javaFieldName}) {\n return ${context.javaBeanNameLF}Mapper.getById(${pk.javaFieldName});\n }\n \n /**\n * 新增,插入所有字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n public int insert(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.insert(${context.javaBeanNameLF});\n }\n \n /**\n * 新增,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n public int insertIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.insertIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,修改所有字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n public int update(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.update(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n public int updateIgnoreNull(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.updateIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 删除记录\n *\n * @param ${context.javaBeanNameLF} 待删除的记录\n * @return 返回影响行数\n */\n public int delete(${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Mapper.delete(${context.javaBeanNameLF});\n }\n \n}',0), + (5, 1, 'default', 'controller','${context.javaBeanName}Controller','package ${context.packageName}.mapper;\n\nimport java.util.List;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestBody;\nimport org.springframework.web.bind.annotation.RestController;\n\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.service.${context.javaBeanName}Service;\n\n@RestController\npublic class ${context.javaBeanName}Controller {\n\n @Autowired\n private ${context.javaBeanName}Service ${context.javaBeanNameLF}Service;\n\n /**\n * 查询所有记录\n *\n * @return 返回集合,没有返回空List\n */\n @RequestMapping("list")\n public List<${context.javaBeanName}> listAll() {\n return ${context.javaBeanNameLF}Service.listAll();\n }\n\n\n /**\n * 根据主键查询\n *\n * @param id 主键\n * @return 返回记录,没有返回null\n */\n @RequestMapping("getById")\n public ${context.javaBeanName} getById(${pk.javaTypeBox} ${pk.javaFieldName}) {\n return ${context.javaBeanNameLF}Service.getById(${pk.javaFieldName});\n }\n \n /**\n * 新增,插入所有字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n @RequestMapping("insert")\n public int insert(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.insert(${context.javaBeanNameLF});\n }\n \n /**\n * 新增,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 新增的记录\n * @return 返回影响行数\n */\n @RequestMapping("insert")\n public int insertIgnoreNull(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.insertIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,修改所有字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n @RequestMapping("update")\n public int update(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.update(${context.javaBeanNameLF});\n }\n \n /**\n * 修改,忽略null字段\n *\n * @param ${context.javaBeanNameLF} 修改的记录\n * @return 返回影响行数\n */\n @RequestMapping("updateIgnoreNull")\n public int updateIgnoreNull(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.updateIgnoreNull(${context.javaBeanNameLF});\n }\n \n /**\n * 删除记录\n *\n * @param ${context.javaBeanNameLF} 待删除的记录\n * @return 返回影响行数\n */\n @RequestMapping("delete")\n public int delete(@RequestBody ${context.javaBeanName} ${context.javaBeanNameLF}) {\n return ${context.javaBeanNameLF}Service.delete(${context.javaBeanNameLF});\n }\n \n}',0); diff --git a/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java b/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java index 7f9142e..1b099e0 100644 --- a/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java +++ b/gen/src/main/java/com/gitee/gen/mapper/TemplateConfigMapper.java @@ -8,7 +8,7 @@ import java.util.List; @Mapper public interface TemplateConfigMapper { - TemplateConfig getByName(String name); + TemplateConfig getByNameAndGroupId(String name, Integer groupId); /** * 查询所有记录 diff --git a/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java b/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java index 50368f3..17f7ef9 100644 --- a/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java +++ b/gen/src/main/java/com/gitee/gen/service/TemplateConfigService.java @@ -26,16 +26,16 @@ public class TemplateConfigService { } public void insert(TemplateConfig templateConfig) { -// TemplateConfig existObj = templateConfigMapper.getByName(templateConfig.getName()); -// if (existObj != null) { -// throw new RuntimeException("模板名称已存在"); -// } + TemplateConfig existObj = templateConfigMapper.getByNameAndGroupId(templateConfig.getName(), templateConfig.getGroupId()); + if (existObj != null) { + throw new RuntimeException("模板名称已存在"); + } templateConfig.setIsDeleted(0); templateConfigMapper.insert(templateConfig); } public void update(TemplateConfig templateConfig) { - TemplateConfig existObj = templateConfigMapper.getByName(templateConfig.getName()); + TemplateConfig existObj = templateConfigMapper.getByNameAndGroupId(templateConfig.getName(), templateConfig.getGroupId()); if (existObj != null && !Objects.equals(templateConfig.getId(), existObj.getId())) { throw new RuntimeException("模板名称已存在"); } diff --git a/gen/src/main/resources/gen.db b/gen/src/main/resources/gen.db index ca3318427aeb2d7088c6259a0fca21808d002214..54721386934256acc2b8accd533912e2367b16c2 100644 GIT binary patch delta 1482 zcma)6Uu@e%96ra6|0VIIOViLqsE(=BMlEU6Y77{aC=mW^r4?N!ZAg$g@in+}<6yhn z3Ys(*#9ja;%>ZpkXwx1hF=-HG71{%cJ@K?hg!ZthQpE%Cz!1`S7!RE7CODmt@aeP8 z_xs)5_kF)RpSeh#*$UQEeFy-MzzARn7-D05I*mYf{~r zGr+(1hQK5yCWsHz=2>CnnZ)yp`Po8VEX+PPmlq{Pwq#RZHOi=1)~icuMG{9NyeLYl zB8h6%LKS3)^9u!W{_xyf^Nx@d#@(<|Dq3qbBsFjHNkLK!^#n4CWlc6ssVRmMoP-mq z@(NDCU$pd=ZdyCtnr`4Op2kb7CNjE7yi~)pPwIx^CWa-|EGkGt7QzEK{UDB)kINP0 ztt%GtM+!S!kXEc2Xh}UK`9>>-zFI3fGG3W4Y5FP|=;(`xWmstvBd*Y-g(;$MPOakB=)?w9qMQG&eb!@j^bO9nW{j zuI~*oiLo)_{dDte{CK} z;o2s#E2&XG6m`@F;C=iC{qO<2k460gnV4h79@;dtDq%$RkIXXZ(jQ3(e{D#>vZfxgK*-5`SX!Zy#0k*qGK0l0!|>c@O`2i zxHfW|aEuK(P7}dx5ZrFrw}buXlC+z9=*p{|T(kN2-r;uY)1SGGdlVa>F97-ueW7K4 zO!v>SEFcDB`Du=_kZDcj96~quC&seN@(FqP-P&=t^P-A0Wgh=6PH%{evwZsKsr{T_u&&p6Yx5K*YU__uvo%6cRdG)2;gSoLxFgljbym8zLH&8GvC&-<>lvJ2|bq6I&6yS%Pac4B1PG_!GY6!~2f_f_yNsG@^i5`qZrQ`8<6cAXFD}h*e zcR`7jF%wsDYqxgdapkzK6UR>CCjAiE$;64B#Bu(KeC#)omZq6z@}*z$rN49U-6s|x zKuV$K9)e}B`1_50s{sQysBMSAs0aX@iEaX@iEaX@iE zaX@jPB?qp$Thlw9-Tdt4uIDbgg_*K3GWLc3@qLH;a|ia0jpYtZ9O=)E9Ns&T8`(cG zcJK?6d-omQJDJ;ep#Q*uTz`N67mgg`icXxQhA<$~id*SPFv4;_dnnK@r6EErAR&RdS#Y^xV3w$9MsQV zy04o$^6KAmp1a0EwOl}7qSRS)F81fyG@@RCo7|e7@_sJa2!g;1(RKW*0pUG(6Z8;X%XewQ}JzJe531qWG|sNA*i_ zKyg5EKyg5EKyg5EKyg5EKyg5EKyg5EKylzNk^@_||6gj;_CHbEKDYhP+y5lKewv&5 zmD@`EOI@40Q;&S*^~2jr1#9;eZtuJ7>K6)&g;AqWIRyi1{bZq9HEjN@S}0yD%o!|5 zDWC9!`T|dRG?OtGxCNPt(QB?*)=!v@d(?Yu*>idU8Rre%oGG}bqZcX_%f&aV;^?9} zKXH?)V3jo8B|Uf>AsHkb6Xj&8wVAS61!wonYy9?2q-vn!cQI=^QR4Dk5uVJqKz z=jOZLUwPr{E8ltH=JofMKYCTZ@e&-f4Yy`j*v*fxEx+;RtvCK@`Q_*T_?s73e)cxy z;156fuU}E~WsZC%O@9qGp?sK?@phzK&i0}aQCi;maOI`zH$M3Ft!vi>U2$5f1-r07 zrwbxcGL51cF&ZniaycNd32ki7a7UMpm$JLBR4;OQn8pdksCBsxfsjuoO`}}m(g6C? zQTo6A-tza~q>8`w%JOsX2&OLop5$O{a?TqD*e!Bc` zFWr3m#g$jz3)+T*7YGARFkCbvQQkw+9hMN(+q_B3AAj`8tM3pOH?Tp+=PH(MoB|QI zp=mchzP@tpL-dyTvYy@&C9Ju(YE@XmjoaCz_4d|nY0z!$t>x$6y7l@GBcs6|{bE)~ z7Iqp;%fEe2WM6X+iSxWQ_E7z;1Dm>2e|`FQJGLz>@#P?yRBs)+yinfd7#O`5o*vS6 zYrUDl$MJ~aEY!jJF{JI)`!$B6LaSs}=7zL$)04R)8hd;=Gq`j7^w{(hQxlAdg^Ep` z8$EG+jA^-iURJGRZOZ4zr^lIG5BBT*`TWEwjcN0)TOEidEV(5wV{U&=6sqH)#!#EA zgN~paEOrKn_2-*}RkPVrCg{+HGwDIwaB5{24=}|KX`=7Alw~nf&VXQUW1S_#!D`BAuv}a_Hg#pZ+ygwJq!$+@;X_3)sAD zdC~0ZPCYvD`h(j9Spi$Z(`~(-4TmTI3*|0z7UIW`+4T8>GmZ&^uSE4;Z_`0#i@gZF zJet{MR7&w|C#+(j+$^taE*QF>VwD1>kvNHfXd#p;xu8*VZrmuE3x#r0Dez^T*MlUo z2;Le7DHCicS_=!{PhDd>hnS|Z-VEQ@?7{LDO^{)G@`4?5uOwUwnsf_xNG%1$r$WdA zL?TWG?XUP6D@8`U_lZbX;n;vK3X)LQg?1XUV0s$tHhdoVLX5#i71X&H%Rd~*Lt3_S z(ZWUv6A87GQxYlg++>~4Xa1Yj2Lt>uf06q%iU6I&GFDWs&@Tz1Vz3 zUijIGR8hO!i?$*Hn=-13OMfPP>@=oL+bkJ;Xv^wnEUS#YKZD0bq3mQ&&s;EyF0-f# zng!@%&ay1k!iI+U3+B~q*NmgA9!Y0WBH9_TXP%)QCBH= zC4=__WuT9&HJEw?FCChqFwM58jB+=x@T_ZNZDXz_z9iKdT5PC#Uzxk2vByFKxalBC z^BHx~C|gD7Sz}fWZA3rr#rR3{vi*VK%VB*8Wj7OX)S6E3GSIVBKwq*X*N1vq7Qr)6V+J%S_<; zFj(G4lrWM`Ia7&WygeeH$B4l^svj1T6HqCX#pUOIeCz6uLxjQ!3*(x$5>n;VAh2?W z5#L^b9qF?ZCnm96#lSt*ulB?H-Kskm^{IVaPTXHK7lWQcW#|IdkME_O9} zhZ6$!Wl$7xbtR^xW57J?rajisr`HZGWmr!L9?g)~CYBim2!Eu00vXjBXvD|+e6#*#CnxmYALE0LQ2#Anj%ytXdO+vUX4{2GAIkj2-wb%RVtzsy=Pa94P`ER*P5lQ$Y zx6>b1rgOX`STc37-Yb*%Z$ll|$LZn|gg+c)rNKxfs^y#zX~0)UPMn)K%T{kkP_&$P z*4?6TiQadA7?UW9Hu9Z!Fs;}7ytJX;?Q;OKETmE}Lv(2%(lBa}YBDYtlpQ}oC zpfo4RIOhIq4{U`pdHhEwx1BZYMYCv7qXMDz*FpJK4hOz!iBypRB6K+D7t){^6c$O= zdK|50$`qBf*8lu6$ad;rhg_MPr4bH4+l%@Pc599fAT$G~nO z-h(76`VO0HsS3F}Zqs-xH_K^%Ycyd|`NFV4-&$LDiH9ckY7 z^2y({MdD`!4R*6wLI(TLY`{YAEw_1le*|o!ClR~{WN0z%LMBKJc2+Vz+>H3YILqF_W;lGkC*kT*ZE!g5~l67wlQ-Bbw zb5r9KzTbHMAO_SR4uOZ$LOE``yW``DTa3e<5*q4UU5Jl`p*HNT!GKR14Z$#=(*iVs zC-3yAfoLAg3$8~FxOiz|Hs?Lp(ooybfq_bM7rT=8B&R#w!LUv4%7FK>SJyR6lV-zq zB*2%bMsgYkY?6#1zb__2N_au*5)yc&!dIc;q%N$6@-w>hpwI~Uuoho$n=GW$%?CA| z;!U#vpkQb(2=27SIJFQY55p8Ym=`wsVW!Ui!OMI3{GavIdxYBuxw+I;{6ASh)JJhZ zaX@iEaX@iEaX@iEaX@iEaX@iEaX@k4FPj6T|8MSMsr0q(AL5t##5kbh|Dz}ea7Bs6 ztgHC{Aa{*=PM3{+qGp_l-=?~i^qd-3iO&nNEMqC)$z(67%oJ_usR z)}hg1NQL&R(EiSypdpp3>{R(SRfYD4_Umo9ni5;(NAiy_NBj?e7V;z%KG%0Kw7*^F zUlso!V5zG3|71W!8I#`uWGjsW760#<$~&|JcNpHO;{Q8jn2P`Rk0>ZkdQIG0)fn3{ z0{fn@m51giIucm3)x1OgwXCN-u5Fw-K9Ogu%7Tjj2j74h8spwwi~r}hhc-D6ib`A^ zI(~``8s%KcER?M|PBLQyz>Y5i08l)fra!!B(Sb$NF>%wZ?krV`UW%`ZXMUPu*>a4W zRml|rEq^h$V3i8xA&ui!dTEaFG(#E?^$d5?vKO*FqBi>8(<_pBQIA9*a7z~?c?29e z>(x!^y+T2`T`L=aISa}`Ed=k&g&9bIgAL zQx?pM={@rZYqXFt3Vpj>*)(BAcrDzNBb&-!Et1WJ**F?}??HAH}i>V}LSOQ;NLlv%0PT((F;(8%`yvN2XP!6JH8 z4CZC`bKV5cgLp2P)Yrc#Vo&Drk`I>5Mdp+(gzL^)77)EO#-X`9Nq~Iur(SwN{7lVt ztqOy%LXN$pQrcmz77{%S07ka*i|2WrB1d8=gdjGg0o7}vU@vKYp;l#_kG->nMME3D z@$q-r@=yLfp)3SknTw)e{#HmZJ&ovoTXzz*T|>3&Ld z^W9&r{PZ7h{^Gfn*M5P2w_f{s-=Y3be)LKPL&LbtFUcqwvjxC<^JSMnO$g1EM1yy_ zR8>6WUB@Wc#d(?%XjBi#rJ7Q=GeTJqh#D2g0oKzaFb#Q8A!!GY?Q#2kmZY!yn=ba#7}76YCRz@+n52?8O+I+Vf}Xr8r-3(B)SdFp~j zd_XMpc|y%2stI&EIyCywW~a)AhW!#Da+J)IPMt&&696UCY1qm3$t6qnqgCOgpA$Dw zAd9D6$kIX*iL!cx9?&C;;`NCX!IVlJ5PrY=%7v%v6@Xh$V+PKGbrF&UUbGItY;&%{ z5x4a~uxJWEJ3&+{+Q-FisgZUtb=JhbC;~CW4%S^ zQ|)~$&N#-1RxWa)NLi?BR+zW9*BcT?pCErD6Bmzhe`)ijUe?4r z7W+6S)MNT$p=^R+Bb(*lV!chM>hgJ*nS#qT+XRzCGUZKpNjznbvsU9q=xjX<J3g)#)oA`1>gI~Dtc^nIMRM6`9;E%E|u_K4% z66q5%1%Hp(-&QH+V9i2V_+(7O5F)mSpzP+-|(UfNsNUcdS7yYaMA8Knh-OQ)C> zybAhQq>O-5Vra>W1gOhI)pCER2hvXE_3G}tQOWwVAuS!407Js&&4^;{;cE*e2(K?* z5?oJ1^2e7S`YtOLS1X8@fZOls?*Xy2krXWQQ=u4-A)o)e|6QktSSAXtSpP!fh7t6B zWR8{>9$@*A+X0<3Da%P(aOOgpWwrHQRN&%*7@q|^N5D?eINTl~ixRJWq9dKaKzHOp zHkP^>eLR^iY4(Wp<^$AK&(s0fAk_o%|L@xJht!roZ2n)R|6`t2`af=|BH)c75=}% z|9|7n#Jgo_OCh~Pf}pG>=TvoWi%m3ZdHdv~UM*B-u> z$g{h70;}-TNO1t$l>fiF+7HIK&aW?A3$Unn;h_hjs;>4^ zSNpX(3l>Ml4gNKe%L-{Oj(>bR*JsH8-(QUDf%#71{|g@~h5wKHLz`S08Xi0TxS@wF z9cuz-4ljQkOguVBBPDxT)&(riNmTg%i7p~_c{4?GsBqo|3jbf>|A(hWag{^EP+iwB z_1(xqx1lKf|Hy^Wa0GyB1HV%mPM7e|UgF-fjV3Z0)*FQX4^>fpK5ZOO{{PDV-`i^` z|9^j7qu>SQ|4(59%Ku;a|11B0<^NBMgy%>oVosF*zw-YNNkyZ0DF1(W)q0T#Nnscf zU-`fjUitr1Fp~2BSN{J9KU4ny6a{j}{QnjHe{+kC!vFU`jZPM-Rl|n!lfwT`Cr8|N z>h~E(l=r<2SGdE&$_rm#`OXW=KY4BC`uoBtahKup*Wjttv`HK1K&kNm6VLvH9~kZ_ z4!OJfFiq?2Em07_A0qg2>{tX?F409;;s5&%8eR|8-#V}faT}+9w`1GF(oDfMohH+d zn4$H{3*}wF)XDC?@HEbkwBF3%<9Ngt4ckGCIzVmoevKIwY^u!4+>mx|dNOxJV~-DK z26v919-Dq*YJxEl*TJUFjh;9@#x#ZhPfBiUPX{CjOvi{3CCCzSm>B`wp=<8>86K|s z2D*=7yGx<>7qAn#|3$N_JN4+q>kn=d$9zq?yPfzPQ2^p|IEKd+mvAQZ`GPZ!82d@n zD3@T)k)b;j+o#uDv#it0qZtlk5zFSo_b25ga2MTAu}T37|Gzm}6HUnh5{-w^M1W$v zPk;(#E~1NqB-C}&02dmyE(d{Qpf`7gO7o@Spl94k!*N4k!*N4%|@=d?U4` zJM}k5|9K>Rl2Ac&W4mbQCOjEADyQ&rEIKs@Ix0J5TmlNGW6iqymmI4Cb*54PzD>1I z6q{g?5r6s)l9?-9;~`K~q4RjVXpQY0Vw%Q)i<8a+HfYePEf5^1z}2KD@f=*K<4N;= zS|8$1Zk0LBeDfM_1J4a&62n)V`GQ>?vuF$L^!fy^isITxH*Glu?Xk?hM%t_al=Deq z>XcMQvjL9mELRY<-lwo5kqz}X*!&%By+aCzr_a{0-^FJ9C@Bx&&8|>is762#U4Q1j z?$je+{O`l*#hMZHKIs^v(&P*Sh>n*rV@7~+3gA-$b(Ju#Fi+=5h6-i{;I0xURf52> z0kcxZ^C688#xyn{!DyqnX8|Itv0!n$VSv|CHjTreN#tKq@+#H<$@hkkq}3sRN#nj( zuzbCyrW0^{qpahe$i6D*YhHD*x(Hp#CcA^j{AwBFcHSzN3_E1`2nML*E>U6*!92kB z9RvjPQ7ym&_K|%P(10b|{oyG|b;6Dxq1%%M7z{G8Nf52CMCCiC1mynh)FdLHsUH-{~eHe3nY#)9O^grdN;h@c-p~V08 z-j)kXz`n*TNXX88d`WToAos>1{s$d)A0wPwFZnSdD_7*0okN;cAz}oirJurUY>;S* z4`Q@1oKngu-P$J{YH~TwacuD(5cq%m{=YlA<5Ptz4k!*N4k!+6Fb4t%$g>Ip@-qhk ziED|NP+Wv}QN%w(?681Y9dXmR^~OIfzx+Hf&{lr-HvEyqrGU5%fpGq0j>t_%3jeQD zKd=q~#nkZ3TIIPe+ez-zVc?$plH?>@3^3}tT_mBBH zH2*W~o0@=3Bx?^zOt^R)_y*)r;i1@sJEgUP3t_p)YGvrPaGIy;B}Y2bXepyqppyqs z&`O=^8o`Z3y+?U{^^D+YxY=)ghmB-r@<{>`^rN(byTon=4z+a(TMcErd#`n_G zq|;=`v;iAUHMc8}ZL7*uXj49~H+)DOT(2d3h{*D|CTIGr)|$&9Y;iB=-R5_Qgyg{` zLV>7p;(ot4=l#Gf@nt=cgKH1nO60xJ-x?)cYQ=Y-<87Z7=tvO`uUT-C)a0CtT;|m$(f^>Hm%ADxo8V4)y>42b;ZKhX4Qo diff --git a/gen/src/main/resources/mybatis/TemplateConfigMapper.xml b/gen/src/main/resources/mybatis/TemplateConfigMapper.xml index 6776cb2..25279ee 100644 --- a/gen/src/main/resources/mybatis/TemplateConfigMapper.xml +++ b/gen/src/main/resources/mybatis/TemplateConfigMapper.xml @@ -30,11 +30,11 @@ WHERE t.is_deleted = 0 - SELECT FROM template_config t - WHERE name = #{name} + WHERE name = #{name} and group_id = #{groupId} -- Gitee From 26d5acef79550e34e7b8b77787756b4776288053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=94=9F=E9=BE=99?= Date: Wed, 16 Dec 2020 14:11:41 +0800 Subject: [PATCH 5/7] =?UTF-8?q?feat(template)=EF=BC=9A=E6=9B=BF=E6=8D=A2ge?= =?UTF-8?q?n.db,=20mysql.sql,=20=E6=96=B0=E5=A2=9E=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=A8=A1=E6=9D=BF=E5=90=8D=E7=A7=B0+?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=BB=84=E4=B8=8D=E8=83=BD=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/src/main/resources/gen.db | Bin 94208 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 gen/src/main/resources/gen.db diff --git a/gen/src/main/resources/gen.db b/gen/src/main/resources/gen.db deleted file mode 100644 index 54721386934256acc2b8accd533912e2367b16c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94208 zcmeI5U2q%Mb$~&UlDM!ax^Y#F>jz)0G-E<07oycBnG#_5BPd})kqSk%)kBA~1TM*y z7FcL^L5Wo`lP0#uo{{Q|BROL$bu2fUIO#-IGRf3-qNs0u>T{o(mk1EmK4dzb=}TUE z?!Eg9EdB`U$Mu1<#A5H?Ip00^-o1wlo>O0+)oe;u3^T9V+Nx!g%q(5X8if^YweG_H>4nVXVumbEPR(YBT$e7Bp@BFdvX+yH zRGSNOVMxkf3ByvuW)` z5bc6tg8mJf*Q})+)u~N=L=o*2)$BQSl{%U%X8ziRMD?YjNmsOsGV!mjnntO(#Gud2 zEoQ!)Szt8|#1rwK^!}ks6T#w00115h2>jjW_w3%ENc4Q`1wOUgG+)$Jn=bLGBK&Dz zcv25124{3)S&F0u10lJs*pRV5}SXAe3b%v)-Oscn(j{Kd|eoQ>5H}N7RYSVg0nPvjGN-} zasjtJ|J3v0r_W43vl5@&xr{aQqP*y>PJfJ#ah?2lE9;aP-50FC>5jkN^@u z0!RP}AOR$R1dsp{Kmter2_OL^fCP{L5aAark&$tpmV)Pdh?Yys%c@1EdG(eok`BVR5U846 z8#*MKg~ybMb801c;e*=B(4lpz8(GcXm^MlUn~amu#4wYD*or5wC_e{J4wXeYCMlCF zm4xQUYo)CI;O6Fs?^j;=;K8>)2nY&KF=uTqtFBr0q^`@vQ#CD5f&2@u=AeNjoyyE+ zrWaW={KXq&XHrTlWc5;xLh+Sa)j3J&_`>`Na_AC&SW4kPx$wkhd@U{rFp5J}jB540 zkE>U1-TUZQ53b(Y{QG~dyzy4$%C+i0+}ONzyK?7Rqz0?hp4ym!2dEorK#Hmfz-(%= zE@quyJg1yh*H!j$%D7m5h&oDt^_9#*1^_^lfxaVYa`2KT$8nA7IgX_qqyp!h$s2E0 zUb!jyu-4?X0zB0&dQzOq^~&<66EE6|^I$q}M}fx`!O*x}!Ly5y%6LpswZM~Q=<{=Q zX@Q#X@M`XBbi+!^wppSww;r&nnYmM$ zg+=z<`+S6f2&1-5El#xBqz_66HXQ{HPCUxTrNIAh_S$a@@ss~V4qS+CbcssgcSJ8$=TDHQ>3*X ztQz+vDsMJ{w4;$*TkxIN%q}of6gqM<2$iv!YTy}UNB(N_ddFE@1sxH z7fkNI^Kwheo>?uxBsy1OlU3b-&cZ`oSNH7N9eZx(M<@DEQFC3(Ql^w|w4QN0sm^c! z({po$21s5lg6)sR<6545v!qeB=HqCrMQPDUqfrR!4i~|Zz%W-8t7vM4)fG0K!BipK!9oi=|~<%M$)wo&cB74C3S^m*TwFCp>xhN6=y&W`#zDh2jlTXOEX%Fubnh z;luo$942D5tG@ot>i1t4D~6NeW|%OkT`~(~^X}Ek^>-g!f3@Fbn8@^?pJc0J{rOGw{w;;f`Y3DB916v=5Tx`3yJ;*}fY#maF(ET~psQ4}gV z(m8Krf{zDS&xu$$z3U-$1(6zc3oxFX>>*vFr7ja^wH@--E_V%u-f~t|fBNVYMP22A zs$4n}mo`Y}t=pCN-(_m?byD=cm`xnTJRAa3v}({Hq{^#;$tYwzBy2U6J3p&@_sZst z%hhYQqsYP672x*Hf^`!hxl>EXRvH_2r@)%F0~#e-Q>)y)bN|{+W(H3LGk=zURP)9vuCI{=jmOKje9BNh9GrM|U^mTzb z7rp?E&+xaRhUrKE2_OL^fCP{L5dpBJPMWBfq`L_cihcE^B!sv0%Cd^uh;zxZ zxv$nCFWsE(drDg&Hnr?Pz+4u|%n!>(4x|Z-9p=Qjb;~*LEdCjfvRfBGvnC_N%+ywV zgl;Mie(Qelv9T*&v`zLQ7;%$-4sqT3h-7uK*LHFat0C$K4cZ1Bur#+Y7qO!do(+W9 zwodTle!4Mium1vq>kU`=TXZN}5f6(8B^IYqVLrDo1qib`ee&4kB8$UY8;Dp8sFX$R zaY@7$Y`eQ_#}f}78|;+8Q0H;OYR5vljliq^fR7pt{xD#{ltBfaz0;V(Oy*QlP!C1A z=Cz60ocCPQ*}Sd;{n%!Yuq$~_a=E1rhHZ3L`s|%v?P{1t&4%q*fM-$l;?xb;C>w$D zo|y%_?hk;<-QYr@_z9G^p3l1($x6KwLsqvs@AF0VsE#jh_NB{{S0VIF~kN^@u0!RP}AOR$R1dsp{Kmter2_OL^fCP{L5?VM_`kR%10UbGb! z)@h2Wg*i1(%O})gk(&IP6KsozuMs&z;kQIgjInrJ%NGsPCafBzWNW%It6BD#d)Y8o z6%`7uQAJx;ZOu~DLcy@%%qUojXwJ**3l(ard8988VM5dsFP4^dElV^I*IZGvG$4C~ zmgEw|GD#jjEP|^XCeg(UEe*bk5$izu;GfbG&E|~?gdG~7N`nwOVzgqdu zYrp^X@{U3kA)OSiG;}ZLn^7RUdF-~+yoz(TA1Sk=fB@kLg$W<##Q8m>( z1Xm&VKKj*ztGA+M6l&DS$f9=n0ydD1tWtYwVSWr;LkbfLa$r4djQQ zFhQ1Y-LAatYd0Ci$Ec7WVQCvwyLb0i_3Fpa zTjHdf-V!xzxwk|lsqIv$+uqt1g|@Y~f}xf=9ZZ$qydsKkxrantq%HPP`Lfx=7Nch~ zZx6VOk(k{ZjL&vfB2fX%pe&S^8|H0IwT`Ja8u>i%Da$Ne zqb!p|oKMn+Vcrwr@Z1b>ayTh)IE!djS1qf-^jLPQwU@3jl7awx$o&O{Zh zJ2xrKgn-qWHN~wzE=|m@Q`6LPluss3^UH>z!%ZQf=S!+?4b3l~rCFO8tO++N9R#i% zVy%#LnkNvqWwS)bNI8_xV42vGNxtz7c55-stP2DNt27kwyDDMdulhdj{ z^$3=h!g7P$jT>V%aN#2xJO!an3#-I7#7R_}FbzafyCjnr0|VHx{rW*7@u_j0>PA+x zH>Qme=m`Bd3gbuOb=MD>avJJxWa7}OBpsyCv#f&QXiF}qUuaqdk$F0=sgM&!?6P*> zUnsvIx}BMM`MvZGw&*-J|1bO9MJK<(HzN)BIJ=;WdHo>F4MT^{o`*2Faw4Ak5?mrM zS}fSTq~%fNh)if9YviCK((>uW<0D^`$(P3CsRPI6rx(wh%n%~BN#x||so9xnB9A1K zPSXnPjFQP?i^qs)jT}{uB$JsrnaFFlUHpr1#+;pV3yvHe5tS-%QHG$fDW{DBY~U=| zI8hO^x8a_RPfZbHNyq{5e5I60E!ZZ)1s=U|O10>MdqpNTYy=uM(R{Dw1PgAuc6e6L zP8>;yn4JT`h{XlIXN9nmrUAQFdjry8v;P#^|M%?tT@3!?3ke_rB!C3|e-XI)r@Q!) ze(Faj+$9~{JnLGPHdxY6iPU!XlVUlA{iNgB^lR+ME7`oXXr%d4?D<8R6V-wpQDJoj zoPP9zVV+Z#;qKg0z{_bH=0?D&s!Wz_h9aqLJ4?(SzEBXs8j1vxq$<^`sU8;!28WWhYsNmQPg>xy^Sq%#0okh!hNvQ zp9Cj!fLvGZ<_>{1b!!Xvbt`J!dPcYIn2%)Em5+2w^jfyql;acOG_N7KW%qf9{F=7Y z9<^?*Z|i>fNM5jkN^@u0*{@*WPg9G=hZ$5Cw>O)$Mx}ayI<_iTTzEt_+P?=1O6X3KbvkB<5lw(=hKfR#Vi-MmZ9qb&B? z^^~1GxSRjcQEq$l&)M?*f8XH0#RmUp@OOj%4k!3R0!RP}AOR$R1dsp{Kmter2_OL^ zfCQdw0{uJtV*C0psD;&dUtjE5N&MbqZ*O1hK)+GYwE`W^Nz=XE7}Rymtn&ML>?55mIV_=E4h jjlT2+ Date: Wed, 16 Dec 2020 14:33:04 +0800 Subject: [PATCH 6/7] =?UTF-8?q?feat(index.vue)=EF=BC=9A=E8=A1=A8=E5=90=8D?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E5=BF=BD=E7=95=A5=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/generate/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/views/generate/index.vue b/front/src/views/generate/index.vue index aa8cb4b..5ade20a 100644 --- a/front/src/views/generate/index.vue +++ b/front/src/views/generate/index.vue @@ -263,7 +263,7 @@ export default { return '' } // console.log("tablerow="+row.tableName +","+ row.tableName.indexOf(this.tableName)+","+(!(row.tableName && row.tableName.indexOf(this.tableSearch) > -1))) - if (!(row.tableName && row.tableName.indexOf(this.tableSearch) > -1)) { + if (!(row.tableName && row.tableName.toLowerCase().indexOf(this.tableSearch.toLowerCase()) > -1)) { row.hidden = true return 'hidden-row'; } -- Gitee From e103baf63ef0afdb13c9c6ae3d021e8b430c9f98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=94=9F=E9=BE=99?= Date: Wed, 16 Dec 2020 15:17:25 +0800 Subject: [PATCH 7/7] =?UTF-8?q?feat(index.vue)=EF=BC=9A=E8=A1=A8=E5=90=8D?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E5=BF=BD=E7=95=A5=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/src/main/resources/public/index.html | 2 +- .../{chunk-4295c974.3e5c1d0d.js => chunk-4295c974.39ccd245.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename gen/src/main/resources/public/static/js/{chunk-4295c974.3e5c1d0d.js => chunk-4295c974.39ccd245.js} (64%) diff --git a/gen/src/main/resources/public/index.html b/gen/src/main/resources/public/index.html index c0ecbaf..c446db1 100644 --- a/gen/src/main/resources/public/index.html +++ b/gen/src/main/resources/public/index.html @@ -1 +1 @@ -代码生成工具
\ No newline at end of file +代码生成工具
\ No newline at end of file diff --git a/gen/src/main/resources/public/static/js/chunk-4295c974.3e5c1d0d.js b/gen/src/main/resources/public/static/js/chunk-4295c974.39ccd245.js similarity index 64% rename from gen/src/main/resources/public/static/js/chunk-4295c974.3e5c1d0d.js rename to gen/src/main/resources/public/static/js/chunk-4295c974.39ccd245.js index 0c73c72..fc641de 100644 --- a/gen/src/main/resources/public/static/js/chunk-4295c974.3e5c1d0d.js +++ b/gen/src/main/resources/public/static/js/chunk-4295c974.39ccd245.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4295c974"],{"067a":function(a,e,t){"use strict";t.r(e);var o=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-container code-gen"},[t("el-form",{ref:"genForm",staticClass:"gen-form",attrs:{model:a.clientParam,size:"mini","label-width":"150px"}},[t("el-form-item",{attrs:{label:"选择数据源",prop:"datasourceConfigId",rules:{required:!0,message:"请选择数据源"}}},[t("el-select",{attrs:{placeholder:"选择数据源"},on:{change:a.onDataSourceChange},model:{value:a.clientParam.datasourceConfigId,callback:function(e){a.$set(a.clientParam,"datasourceConfigId",e)},expression:"clientParam.datasourceConfigId"}},a._l(a.datasourceConfigList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.dbName+"("+e.host+")",value:e.id}},[t("span",{staticStyle:{float:"left"}},[a._v(a._s(e.dbName+"("+e.host+")")+" ")]),a._v(" "),t("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t("el-tooltip",{attrs:{placement:"top",content:"Duplicate"}},[t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-document-copy"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDuplicate(e)}}})],1),a._v(" "),t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceUpdate(e)}}}),a._v(" "),t("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDelete(e)}}})],1)])})),1),a._v(" "),t("el-button",{attrs:{type:"text"},on:{click:a.onDataSourceAdd}},[a._v("新建数据源")])],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"包名(package)"}},[t("el-input",{attrs:{placeholder:"可选,如:cn.studyjava.xxx","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.packageName,callback:function(e){a.$set(a.clientParam,"packageName",e)},expression:"clientParam.packageName"}})],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"删除前缀"}},[t("el-input",{attrs:{placeholder:"可选,如:sys_user对应Java类为User(多前缀逗号隔开)","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.delPrefix,callback:function(e){a.$set(a.clientParam,"delPrefix",e)},expression:"clientParam.delPrefix"}})],1)],1),a._v(" "),t("el-row",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("h4",[a._v("选择表")]),a._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{"prefix-icon":"el-icon-search",clearable:"",size:"mini",placeholder:"过滤表"},model:{value:a.tableSearch,callback:function(e){a.tableSearch=e},expression:"tableSearch"}}),a._v(" "),t("el-table",{attrs:{data:a.tableListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.tableRowClassName},on:{"selection-change":a.onTableListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"tableName",label:"表名"}})],1)],1),a._v(" "),t("el-col",{attrs:{span:12,id:"templateSelect"}},[t("h4",[a._v("选择模板")]),a._v(" "),t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.clientParam.groupName,callback:function(e){a.$set(a.clientParam,"groupName",e)},expression:"clientParam.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1),a._v(" "),t("el-table",{attrs:{data:a.templateListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.templateTableRowClassName},on:{"selection-change":a.onTemplateListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"name",label:"模板名称"},scopedSlots:a._u([{key:"default",fn:function(e){return t("span",{},[a._v("\n "+a._s(e.row.name)+"\n ")])}}])})],1),a._v(" "),t("el-button",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{type:"primary"},on:{click:a.onGenerate}},[a._v("生成代码")])],1)],1),a._v(" "),t("el-dialog",{attrs:{title:a.datasourceTitle,visible:a.datasourceDlgShow},on:{"update:visible":function(e){a.datasourceDlgShow=e}}},[t("el-form",{ref:"datasourceForm",attrs:{model:a.datasourceFormData,rules:a.datasourceRule,size:"mini","label-width":"120px"}},[t("el-form-item",{attrs:{label:"数据库类型"}},[t("el-select",{attrs:{filterable:"","default-first-option":""},model:{value:a.datasourceFormData.dbType,callback:function(e){a.$set(a.datasourceFormData,"dbType",e)},expression:"datasourceFormData.dbType"}},a._l(a.dbTypeConfig,(function(a){return t("el-option",{key:a.dbType,attrs:{label:a.label,value:a.dbType}})})),1)],1),a._v(" "),t("el-form-item",{attrs:{label:"Host",prop:"host"}},[t("el-input",{attrs:{placeholder:"地址","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.host,callback:function(e){a.$set(a.datasourceFormData,"host",e)},expression:"datasourceFormData.host"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Port",prop:"port"}},[t("el-input",{attrs:{placeholder:"端口","show-word-limit":"",maxlength:"10"},model:{value:a.datasourceFormData.port,callback:function(e){a.$set(a.datasourceFormData,"port",e)},expression:"datasourceFormData.port"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Database",prop:"dbName"}},[t("el-input",{attrs:{placeholder:"数据库","show-word-limit":"",maxlength:"64"},model:{value:a.datasourceFormData.dbName,callback:function(e){a.$set(a.datasourceFormData,"dbName",e)},expression:"datasourceFormData.dbName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Username",prop:"username"}},[t("el-input",{attrs:{placeholder:"用户名","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.username,callback:function(e){a.$set(a.datasourceFormData,"username",e)},expression:"datasourceFormData.username"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Password",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.password,callback:function(e){a.$set(a.datasourceFormData,"password",e)},expression:"datasourceFormData.password"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"包名",prop:"packageName"}},[t("el-input",{attrs:{placeholder:"包名(package)","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.packageName,callback:function(e){a.$set(a.datasourceFormData,"packageName",e)},expression:"datasourceFormData.packageName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"删除前缀",prop:"delPrefix"}},[t("el-input",{attrs:{placeholder:"删除前缀(表名sys_user删除前缀sys_对应bean为User)多前缀逗号隔开","show-word-limit":"",maxlength:"200"},model:{value:a.datasourceFormData.delPrefix,callback:function(e){a.$set(a.datasourceFormData,"delPrefix",e)},expression:"datasourceFormData.delPrefix"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"代码生成器模板",prop:"delPrefix"}},[t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.datasourceFormData.groupName,callback:function(e){a.$set(a.datasourceFormData,"groupName",e)},expression:"datasourceFormData.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1)],1),a._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"success"},on:{click:a.onDatasourceTest}},[a._v("测试连接")]),a._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:a.onDatasourceSave}},[a._v("保存")])],1)],1)],1)],1)},r=[],l=(t("7514"),t("456d"),t("ac6a"),{data:function(){return{groupId:"",groupData:{},showTable:!1,clientParam:{datasourceConfigId:"",tableNames:[],templateConfigIdList:[],packageName:null,delPrefix:null,groupId:"",groupName:""},tableSearch:"",datasourceConfigList:[],tableListData:[],templateListData:[],datasourceTitle:"新建连接",datasourceDlgShow:!1,datasourceFormData:{id:0,dbType:1,host:"",port:"",username:"",password:"",dbName:"",packageName:"",delPrefix:"",groupId:"",groupName:""},dbTypeConfig:[],datasourceRule:{host:[{required:!0,message:"不能为空",trigger:"blur"}],port:[{required:!0,message:"不能为空",trigger:"blur"}],username:[{required:!0,message:"不能为空",trigger:"blur"}],password:[{required:!0,message:"不能为空",trigger:"blur"}],dbName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadDataSource(),this.loadTemplate(),this.loadDbType(),this.loadGroups()},methods:{tableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,0===this.tableSearch.length||e.tableName&&e.tableName.indexOf(this.tableSearch)>-1?"":(e.hidden=!0,"hidden-row")},templateTableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,""==this.groupId||this.groupId<=0||e.groupId&&e.groupId==this.groupId?"":(e.hidden=!0,"hidden-row")},loadGroups:function(){this.post("/group/list/",{},(function(a){this.groupData=a.data}))},loadDataSource:function(){var a=this;this.post("/datasource/list",{},(function(e){a.datasourceConfigList=e.data}))},loadTemplate:function(){var a=this;this.post("/template/list",{},(function(e){a.templateListData=e.data}))},loadDbType:function(){var a=this;this.post("/datasource/dbtype",{},(function(e){a.dbTypeConfig=e.data}))},onDataSourceAdd:function(){var a=this;this.datasourceTitle="新建连接",Object.keys(this.datasourceFormData).forEach((function(e){a.datasourceFormData[e]=""})),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onTableListSelect:function(a){this.clientParam.tableNames=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.tableName}))},onTemplateListSelect:function(a){this.clientParam.templateConfigIdList=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.id}))},onDataSourceChange:function(a){var e=this;this.clientParam.datasourceConfigId=a,this.datasourceConfigList.find((function(t){t.id===a&&(e.clientParam.packageName=t.packageName,e.clientParam.delPrefix=t.delPrefix,e.groupId=t.groupId,e.groupData.find((function(a){a.id==t.groupId&&(e.clientParam.groupName=a.groupName)})),console.log("this.clientParam.groupName="+e.clientParam.groupName))})),this.post("/datasource/table/".concat(a),{},(function(a){e.showTable=!0,e.tableListData=a.data}))},onDataSourceUpdate:function(a){var e=this;this.datasourceTitle="修改连接",Object.assign(this.datasourceFormData,a),this.groupData.find((function(t){t.id==a.groupId&&(e.datasourceFormData.groupName=t.groupName)})),this.datasourceDlgShow=!0},onDataSourceDuplicate:function(a){this.datasourceTitle="".concat(a.host," Copy"),Object.assign(this.datasourceFormData,a),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onDataSourceDelete:function(a){this.confirm("确认要删除 ".concat(a.dbName," 吗?"),(function(e){var t={id:a.id};this.post("/datasource/del",t,(function(){e(),location.reload()}))}))},onGenerate:function(){var a=this;this.$refs.genForm.validate((function(e){if(e){if(0===a.clientParam.tableNames.length)return void a.tip("请勾选表","error");if(0===a.clientParam.templateConfigIdList.length)return void a.tip("请勾选模板","error");var t=JSON.stringify(a.clientParam);a.goRoute("result/".concat(t))}}))},onDatasourceTest:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.tip("连接成功")}))}))},onDataGroupChange:function(a){""!=a&&(this.groupId=a,this.datasourceFormData.groupId=a)},onDatasourceSave:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.datasourceFormData.id?a.post("/datasource/update",a.datasourceFormData,(function(a){location.reload()})):a.post("/datasource/add",a.datasourceFormData,(function(e){a.tip("添加成功"),a.loadDataSource(),a.datasourceDlgShow=!1}))}))}))}}}),s=l,i=(t("1764"),t("2877")),n=Object(i["a"])(s,o,r,!1,null,null,null);e["default"]=n.exports},"0a49":function(a,e,t){var o=t("9b43"),r=t("626a"),l=t("4bf8"),s=t("9def"),i=t("cd1c");a.exports=function(a,e){var t=1==a,n=2==a,c=3==a,u=4==a,d=6==a,m=5==a||d,p=e||i;return function(e,i,f){for(var h,g,b=l(e),v=r(b),D=o(i,f,3),w=s(v.length),y=0,x=t?p(e,w):n?p(e,0):void 0;w>y;y++)if((m||y in v)&&(h=v[y],g=D(h,y,b),a))if(t)x[y]=g;else if(g)switch(a){case 3:return!0;case 5:return h;case 6:return y;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},1169:function(a,e,t){var o=t("2d95");a.exports=Array.isArray||function(a){return"Array"==o(a)}},1764:function(a,e,t){"use strict";t("aa8f")},"456d":function(a,e,t){var o=t("4bf8"),r=t("0d58");t("5eda")("keys",(function(){return function(a){return r(o(a))}}))},"5eda":function(a,e,t){var o=t("5ca1"),r=t("8378"),l=t("79e5");a.exports=function(a,e){var t=(r.Object||{})[a]||Object[a],s={};s[a]=e(t),o(o.S+o.F*l((function(){t(1)})),"Object",s)}},7514:function(a,e,t){"use strict";var o=t("5ca1"),r=t("0a49")(5),l="find",s=!0;l in[]&&Array(1)[l]((function(){s=!1})),o(o.P+o.F*s,"Array",{find:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}}),t("9c6c")(l)},aa8f:function(a,e,t){},cd1c:function(a,e,t){var o=t("e853");a.exports=function(a,e){return new(o(a))(e)}},e853:function(a,e,t){var o=t("d3f4"),r=t("1169"),l=t("2b4c")("species");a.exports=function(a){var e;return r(a)&&(e=a.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&(e=e[l],null===e&&(e=void 0))),void 0===e?Array:e}}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4295c974"],{"067a":function(a,e,t){"use strict";t.r(e);var o=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"app-container code-gen"},[t("el-form",{ref:"genForm",staticClass:"gen-form",attrs:{model:a.clientParam,size:"mini","label-width":"150px"}},[t("el-form-item",{attrs:{label:"选择数据源",prop:"datasourceConfigId",rules:{required:!0,message:"请选择数据源"}}},[t("el-select",{attrs:{placeholder:"选择数据源"},on:{change:a.onDataSourceChange},model:{value:a.clientParam.datasourceConfigId,callback:function(e){a.$set(a.clientParam,"datasourceConfigId",e)},expression:"clientParam.datasourceConfigId"}},a._l(a.datasourceConfigList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.dbName+"("+e.host+")",value:e.id}},[t("span",{staticStyle:{float:"left"}},[a._v(a._s(e.dbName+"("+e.host+")")+" ")]),a._v(" "),t("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t("el-tooltip",{attrs:{placement:"top",content:"Duplicate"}},[t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-document-copy"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDuplicate(e)}}})],1),a._v(" "),t("el-link",{staticStyle:{"margin-right":"20px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceUpdate(e)}}}),a._v(" "),t("el-link",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:function(t){return t.stopPropagation(),a.onDataSourceDelete(e)}}})],1)])})),1),a._v(" "),t("el-button",{attrs:{type:"text"},on:{click:a.onDataSourceAdd}},[a._v("新建数据源")])],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"包名(package)"}},[t("el-input",{attrs:{placeholder:"可选,如:cn.studyjava.xxx","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.packageName,callback:function(e){a.$set(a.clientParam,"packageName",e)},expression:"clientParam.packageName"}})],1),a._v(" "),t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{label:"删除前缀"}},[t("el-input",{attrs:{placeholder:"可选,如:sys_user对应Java类为User(多前缀逗号隔开)","show-word-limit":"",maxlength:"100"},model:{value:a.clientParam.delPrefix,callback:function(e){a.$set(a.clientParam,"delPrefix",e)},expression:"clientParam.delPrefix"}})],1)],1),a._v(" "),t("el-row",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("h4",[a._v("选择表")]),a._v(" "),t("el-input",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{"prefix-icon":"el-icon-search",clearable:"",size:"mini",placeholder:"过滤表"},model:{value:a.tableSearch,callback:function(e){a.tableSearch=e},expression:"tableSearch"}}),a._v(" "),t("el-table",{attrs:{data:a.tableListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.tableRowClassName},on:{"selection-change":a.onTableListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"tableName",label:"表名"}})],1)],1),a._v(" "),t("el-col",{attrs:{span:12,id:"templateSelect"}},[t("h4",[a._v("选择模板")]),a._v(" "),t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.clientParam.groupName,callback:function(e){a.$set(a.clientParam,"groupName",e)},expression:"clientParam.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1),a._v(" "),t("el-table",{attrs:{data:a.templateListData,border:"","cell-style":a.cellStyleSmall(),"header-cell-style":a.headCellStyleSmall(),"row-class-name":a.templateTableRowClassName},on:{"selection-change":a.onTemplateListSelect}},[t("el-table-column",{attrs:{type:"selection"}}),a._v(" "),t("el-table-column",{attrs:{prop:"name",label:"模板名称"},scopedSlots:a._u([{key:"default",fn:function(e){return t("span",{},[a._v("\n "+a._s(e.row.name)+"\n ")])}}])})],1),a._v(" "),t("el-button",{directives:[{name:"show",rawName:"v-show",value:a.showTable,expression:"showTable"}],attrs:{type:"primary"},on:{click:a.onGenerate}},[a._v("生成代码")])],1)],1),a._v(" "),t("el-dialog",{attrs:{title:a.datasourceTitle,visible:a.datasourceDlgShow},on:{"update:visible":function(e){a.datasourceDlgShow=e}}},[t("el-form",{ref:"datasourceForm",attrs:{model:a.datasourceFormData,rules:a.datasourceRule,size:"mini","label-width":"120px"}},[t("el-form-item",{attrs:{label:"数据库类型"}},[t("el-select",{attrs:{filterable:"","default-first-option":""},model:{value:a.datasourceFormData.dbType,callback:function(e){a.$set(a.datasourceFormData,"dbType",e)},expression:"datasourceFormData.dbType"}},a._l(a.dbTypeConfig,(function(a){return t("el-option",{key:a.dbType,attrs:{label:a.label,value:a.dbType}})})),1)],1),a._v(" "),t("el-form-item",{attrs:{label:"Host",prop:"host"}},[t("el-input",{attrs:{placeholder:"地址","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.host,callback:function(e){a.$set(a.datasourceFormData,"host",e)},expression:"datasourceFormData.host"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Port",prop:"port"}},[t("el-input",{attrs:{placeholder:"端口","show-word-limit":"",maxlength:"10"},model:{value:a.datasourceFormData.port,callback:function(e){a.$set(a.datasourceFormData,"port",e)},expression:"datasourceFormData.port"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Database",prop:"dbName"}},[t("el-input",{attrs:{placeholder:"数据库","show-word-limit":"",maxlength:"64"},model:{value:a.datasourceFormData.dbName,callback:function(e){a.$set(a.datasourceFormData,"dbName",e)},expression:"datasourceFormData.dbName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Username",prop:"username"}},[t("el-input",{attrs:{placeholder:"用户名","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.username,callback:function(e){a.$set(a.datasourceFormData,"username",e)},expression:"datasourceFormData.username"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"Password",prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.password,callback:function(e){a.$set(a.datasourceFormData,"password",e)},expression:"datasourceFormData.password"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"包名",prop:"packageName"}},[t("el-input",{attrs:{placeholder:"包名(package)","show-word-limit":"",maxlength:"100"},model:{value:a.datasourceFormData.packageName,callback:function(e){a.$set(a.datasourceFormData,"packageName",e)},expression:"datasourceFormData.packageName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"删除前缀",prop:"delPrefix"}},[t("el-input",{attrs:{placeholder:"删除前缀(表名sys_user删除前缀sys_对应bean为User)多前缀逗号隔开","show-word-limit":"",maxlength:"200"},model:{value:a.datasourceFormData.delPrefix,callback:function(e){a.$set(a.datasourceFormData,"delPrefix",e)},expression:"datasourceFormData.delPrefix"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"代码生成器模板",prop:"delPrefix"}},[t("el-select",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{placeholder:"选择模板所在组",size:"mini"},on:{change:a.onDataGroupChange},model:{value:a.datasourceFormData.groupName,callback:function(e){a.$set(a.datasourceFormData,"groupName",e)},expression:"datasourceFormData.groupName"}},a._l(a.groupData,(function(a){return t("el-option",{key:a.id,attrs:{label:""+a.groupName,value:a.id}})})),1)],1),a._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"success"},on:{click:a.onDatasourceTest}},[a._v("测试连接")]),a._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:a.onDatasourceSave}},[a._v("保存")])],1)],1)],1)],1)},r=[],l=(t("7514"),t("456d"),t("ac6a"),{data:function(){return{groupId:"",groupData:{},showTable:!1,clientParam:{datasourceConfigId:"",tableNames:[],templateConfigIdList:[],packageName:null,delPrefix:null,groupId:"",groupName:""},tableSearch:"",datasourceConfigList:[],tableListData:[],templateListData:[],datasourceTitle:"新建连接",datasourceDlgShow:!1,datasourceFormData:{id:0,dbType:1,host:"",port:"",username:"",password:"",dbName:"",packageName:"",delPrefix:"",groupId:"",groupName:""},dbTypeConfig:[],datasourceRule:{host:[{required:!0,message:"不能为空",trigger:"blur"}],port:[{required:!0,message:"不能为空",trigger:"blur"}],username:[{required:!0,message:"不能为空",trigger:"blur"}],password:[{required:!0,message:"不能为空",trigger:"blur"}],dbName:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.loadDataSource(),this.loadTemplate(),this.loadDbType(),this.loadGroups()},methods:{tableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,0===this.tableSearch.length||e.tableName&&e.tableName.toLowerCase().indexOf(this.tableSearch.toLowerCase())>-1?"":(e.hidden=!0,"hidden-row")},templateTableRowClassName:function(a){var e=a.row;a.index;return e.hidden=!1,""==this.groupId||this.groupId<=0||e.groupId&&e.groupId==this.groupId?"":(e.hidden=!0,"hidden-row")},loadGroups:function(){this.post("/group/list/",{},(function(a){this.groupData=a.data}))},loadDataSource:function(){var a=this;this.post("/datasource/list",{},(function(e){a.datasourceConfigList=e.data}))},loadTemplate:function(){var a=this;this.post("/template/list",{},(function(e){a.templateListData=e.data}))},loadDbType:function(){var a=this;this.post("/datasource/dbtype",{},(function(e){a.dbTypeConfig=e.data}))},onDataSourceAdd:function(){var a=this;this.datasourceTitle="新建连接",Object.keys(this.datasourceFormData).forEach((function(e){a.datasourceFormData[e]=""})),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onTableListSelect:function(a){this.clientParam.tableNames=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.tableName}))},onTemplateListSelect:function(a){this.clientParam.templateConfigIdList=a.filter((function(a){return void 0===a.hidden||!1===a.hidden})).map((function(a){return a.id}))},onDataSourceChange:function(a){var e=this;this.clientParam.datasourceConfigId=a,this.datasourceConfigList.find((function(t){t.id===a&&(e.clientParam.packageName=t.packageName,e.clientParam.delPrefix=t.delPrefix,e.groupId=t.groupId,e.groupData.find((function(a){a.id==t.groupId&&(e.clientParam.groupName=a.groupName)})),console.log("this.clientParam.groupName="+e.clientParam.groupName))})),this.post("/datasource/table/".concat(a),{},(function(a){e.showTable=!0,e.tableListData=a.data}))},onDataSourceUpdate:function(a){var e=this;this.datasourceTitle="修改连接",Object.assign(this.datasourceFormData,a),this.groupData.find((function(t){t.id==a.groupId&&(e.datasourceFormData.groupName=t.groupName)})),this.datasourceDlgShow=!0},onDataSourceDuplicate:function(a){this.datasourceTitle="".concat(a.host," Copy"),Object.assign(this.datasourceFormData,a),this.datasourceFormData.id=0,this.datasourceDlgShow=!0},onDataSourceDelete:function(a){this.confirm("确认要删除 ".concat(a.dbName," 吗?"),(function(e){var t={id:a.id};this.post("/datasource/del",t,(function(){e(),location.reload()}))}))},onGenerate:function(){var a=this;this.$refs.genForm.validate((function(e){if(e){if(0===a.clientParam.tableNames.length)return void a.tip("请勾选表","error");if(0===a.clientParam.templateConfigIdList.length)return void a.tip("请勾选模板","error");var t=JSON.stringify(a.clientParam);a.goRoute("result/".concat(t))}}))},onDatasourceTest:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.tip("连接成功")}))}))},onDataGroupChange:function(a){""!=a&&(this.groupId=a,this.datasourceFormData.groupId=a)},onDatasourceSave:function(){var a=this;this.$refs.datasourceForm.validate((function(e){e&&a.post("/datasource/test",a.datasourceFormData,(function(e){a.datasourceFormData.id?a.post("/datasource/update",a.datasourceFormData,(function(a){location.reload()})):a.post("/datasource/add",a.datasourceFormData,(function(e){a.tip("添加成功"),a.loadDataSource(),a.datasourceDlgShow=!1}))}))}))}}}),s=l,i=(t("1764"),t("2877")),n=Object(i["a"])(s,o,r,!1,null,null,null);e["default"]=n.exports},"0a49":function(a,e,t){var o=t("9b43"),r=t("626a"),l=t("4bf8"),s=t("9def"),i=t("cd1c");a.exports=function(a,e){var t=1==a,n=2==a,c=3==a,u=4==a,d=6==a,m=5==a||d,p=e||i;return function(e,i,f){for(var h,g,b=l(e),v=r(b),D=o(i,f,3),w=s(v.length),y=0,x=t?p(e,w):n?p(e,0):void 0;w>y;y++)if((m||y in v)&&(h=v[y],g=D(h,y,b),a))if(t)x[y]=g;else if(g)switch(a){case 3:return!0;case 5:return h;case 6:return y;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},1169:function(a,e,t){var o=t("2d95");a.exports=Array.isArray||function(a){return"Array"==o(a)}},1764:function(a,e,t){"use strict";t("aa8f")},"456d":function(a,e,t){var o=t("4bf8"),r=t("0d58");t("5eda")("keys",(function(){return function(a){return r(o(a))}}))},"5eda":function(a,e,t){var o=t("5ca1"),r=t("8378"),l=t("79e5");a.exports=function(a,e){var t=(r.Object||{})[a]||Object[a],s={};s[a]=e(t),o(o.S+o.F*l((function(){t(1)})),"Object",s)}},7514:function(a,e,t){"use strict";var o=t("5ca1"),r=t("0a49")(5),l="find",s=!0;l in[]&&Array(1)[l]((function(){s=!1})),o(o.P+o.F*s,"Array",{find:function(a){return r(this,a,arguments.length>1?arguments[1]:void 0)}}),t("9c6c")(l)},aa8f:function(a,e,t){},cd1c:function(a,e,t){var o=t("e853");a.exports=function(a,e){return new(o(a))(e)}},e853:function(a,e,t){var o=t("d3f4"),r=t("1169"),l=t("2b4c")("species");a.exports=function(a){var e;return r(a)&&(e=a.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&(e=e[l],null===e&&(e=void 0))),void 0===e?Array:e}}}]); \ No newline at end of file -- Gitee