作者 钟来

初始提交

正在显示 23 个修改的文件 包含 1632 行增加8 行删除
1 -# 项目相关配置 jhlt: # 名称 name: zhonglai # 版本 version: 3.8.2 # 版权年份 copyrightYear: 2022 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) profile: D:/ruoyi/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数组计算 char 字符验证 captchaType: math # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 port: 8061 servlet: # 应用的访问路径 context-path: / tomcat: # tomcat的URI编码 uri-encoding: UTF-8 # 连接数满后的排队数,默认为100 accept-count: 1000 threads: # tomcat最大线程数,默认为200 max: 800 # Tomcat启动初始化的线程数,默认值10 min-spare: 100 # 日志配置 logging: level: com.ruoyi: debug org.springframework: warn # Spring配置 spring: # 资源信息 messages: # 国际化资源文件路径 basename: i18n/messages profiles: active: druid # 文件上传 servlet: multipart: # 单个文件大小 max-file-size: 10MB # 设置总上传的文件大小 max-request-size: 20MB # 服务模块 devtools: restart: # 热部署开关 enabled: true ##redic配置 redis: database: 1 # Redis服务器地址 写你的ip host: 47.112.163.61 # Redis服务器连接端口 port: 9527 # Redis服务器连接密码(默认为空) password: Luhui586 # 连接池最大连接数(使用负值表示没有限制 类似于mysql的连接池 jedis: pool: max-active: 200 # 连接池最大阻塞等待时间(使用负值表示没有限制) 表示连接池的链接拿完了 现在去申请需要等待的时间 max-wait: -1 # 连接池中的最大空闲连接 max-idle: 10 # 连接池中的最小空闲连接 min-idle: 0 # 连接超时时间(毫秒) 去链接redis服务端 timeout: 6000 # MyBatis配置 mybatis: # 搜索指定包别名 typeAliasesPackage: com.ruoyi.**.domain,com.zhonglai.luhui.**.domain # 配置mapper的扫描,找到所有的mapper.xml映射文件 mapperLocations: classpath*:mapper/**/*Mapper.xml # 加载全局的配置文件 configLocation: classpath:mybatis/mybatis-config.xml # PageHelper分页插件 pagehelper: helperDialect: mysql supportMethodsArguments: true params: count=countSql # Swagger配置 swagger: # 是否开启swagger enabled: true # 请求前缀 pathMapping: /dev-api # 防止XSS攻击 xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) excludes: /system/notice # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* sys: ## // 对于登录login 注册register 验证码captchaImage 允许匿名访问 antMatchers: /** redis: field: "lh:mqttservice:" isText: false # NameServer地址 rocketmq: name-server: 47.115.144.179:9876 # 默认的消息组 producer: group: deviceCommand send-message-timeout: 30000 send-topic: lh-http-service-deviceCommand-test send-tags: 1  
  1 +# 项目相关配置 jhlt: # 名称 name: zhonglai # 版本 version: 3.8.2 # 版权年份 copyrightYear: 2022 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) profile: D:/ruoyi/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数组计算 char 字符验证 captchaType: math # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 port: 8065 servlet: # 应用的访问路径 context-path: / tomcat: # tomcat的URI编码 uri-encoding: UTF-8 # 连接数满后的排队数,默认为100 accept-count: 1000 threads: # tomcat最大线程数,默认为200 max: 800 # Tomcat启动初始化的线程数,默认值10 min-spare: 100 # 日志配置 logging: level: com.ruoyi: debug org.springframework: warn # Spring配置 spring: # 资源信息 messages: # 国际化资源文件路径 basename: i18n/messages profiles: active: druid # 文件上传 servlet: multipart: # 单个文件大小 max-file-size: 10MB # 设置总上传的文件大小 max-request-size: 20MB # 服务模块 devtools: restart: # 热部署开关 enabled: true ##redic配置 redis: database: 1 # Redis服务器地址 写你的ip host: 47.112.163.61 # Redis服务器连接端口 port: 9527 # Redis服务器连接密码(默认为空) password: Luhui586 # 连接池最大连接数(使用负值表示没有限制 类似于mysql的连接池 jedis: pool: max-active: 200 # 连接池最大阻塞等待时间(使用负值表示没有限制) 表示连接池的链接拿完了 现在去申请需要等待的时间 max-wait: -1 # 连接池中的最大空闲连接 max-idle: 10 # 连接池中的最小空闲连接 min-idle: 0 # 连接超时时间(毫秒) 去链接redis服务端 timeout: 6000 # MyBatis配置 mybatis: # 搜索指定包别名 typeAliasesPackage: com.ruoyi.**.domain,com.zhonglai.luhui.**.domain # 配置mapper的扫描,找到所有的mapper.xml映射文件 mapperLocations: classpath*:mapper/**/*Mapper.xml # 加载全局的配置文件 configLocation: classpath:mybatis/mybatis-config.xml # PageHelper分页插件 pagehelper: helperDialect: mysql supportMethodsArguments: true params: count=countSql # Swagger配置 swagger: # 是否开启swagger enabled: true # 请求前缀 pathMapping: /dev-api # 防止XSS攻击 xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) excludes: /system/notice # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* sys: ## // 对于登录login 注册register 验证码captchaImage 允许匿名访问 antMatchers: /** redis: field: "lh:mqttservice:" isText: false # NameServer地址 rocketmq: name-server: 47.115.144.179:9876 # 默认的消息组 producer: group: deviceCommand send-message-timeout: 30000 send-topic: lh-http-service-deviceCommand-test send-tags: 1
@@ -16,5 +16,56 @@ @@ -16,5 +16,56 @@
16 <maven.compiler.target>8</maven.compiler.target> 16 <maven.compiler.target>8</maven.compiler.target>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18 </properties> 18 </properties>
  19 + <dependencies>
  20 + <dependency>
  21 + <groupId>com.zhonglai.luhui</groupId>
  22 + <artifactId>lh-common-datasource</artifactId>
  23 + </dependency>
  24 + <dependency>
  25 + <groupId>com.zhonglai.luhui</groupId>
  26 + <artifactId>lh-public-dao</artifactId>
  27 + </dependency>
  28 + <dependency>
  29 + <groupId>com.zhonglai.luhui</groupId>
  30 + <artifactId>lh-common-swagger</artifactId>
  31 + </dependency>
  32 + <!-- 核心模块-->
  33 + <dependency>
  34 + <groupId>com.zhonglai.luhui</groupId>
  35 + <artifactId>ruoyi-framework</artifactId>
  36 + </dependency>
  37 + <dependency>
  38 + <groupId>com.zhonglai.luhui</groupId>
  39 + <artifactId>ruoyi-generator</artifactId>
  40 + </dependency>
  41 + <dependency>
  42 + <groupId>org.aspectj</groupId>
  43 + <artifactId>aspectjweaver</artifactId>
  44 + </dependency>
  45 + <dependency>
  46 + <groupId>org.aspectj</groupId>
  47 + <artifactId>aspectjrt</artifactId>
  48 + </dependency>
19 49
  50 + <dependency>
  51 + <groupId>cn.hutool</groupId>
  52 + <artifactId>hutool-all</artifactId>
  53 + </dependency>
  54 + <dependency>
  55 + <groupId>com.jcraft</groupId>
  56 + <artifactId>jsch</artifactId>
  57 + </dependency>
  58 +
  59 + <dependency>
  60 + <groupId>javax.mail</groupId>
  61 + <artifactId>mail</artifactId>
  62 + <version>1.4.5</version>
  63 + </dependency>
  64 +
  65 + <!-- SpringBoot集成thymeleaf模板 -->
  66 + <dependency>
  67 + <groupId>org.springframework.boot</groupId>
  68 + <artifactId>spring-boot-starter-thymeleaf</artifactId>
  69 + </dependency>
  70 + </dependencies>
20 </project> 71 </project>
1 -package com.zhonglai.zl;  
2 -  
3 -public class Main {  
4 - public static void main(String[] args) {  
5 - System.out.println("Hello world!");  
6 - }  
7 -}  
  1 +package com.zhonglai.zl.email.forwarding;
  2 +
  3 +import com.ruoyi.framework.config.ResourcesConfig;
  4 +import org.springframework.boot.SpringApplication;
  5 +import org.springframework.boot.autoconfigure.SpringBootApplication;
  6 +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  7 +import org.springframework.context.annotation.ComponentScan;
  8 +import org.springframework.context.annotation.FilterType;
  9 +import org.springframework.scheduling.annotation.EnableScheduling;
  10 +
  11 +@ComponentScan(basePackages = {
  12 + "com.ruoyi.common",
  13 + "com.ruoyi.framework",
  14 + "com.zhonglai.luhui.datasource",
  15 + "com.zhonglai.luhui.dao",
  16 + "com.ruoyi.generator",
  17 + "com.zhonglai.zl.email.forwarding",
  18 +}
  19 + ,excludeFilters = {@ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE,classes = {ResourcesConfig.class})}
  20 +)
  21 +@EnableScheduling
  22 +@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
  23 +public class Main {
  24 + public static void main(String[] args) {
  25 + SpringApplication.run(Main.class,args);
  26 + System.out.println("启动成功");
  27 + }
  28 +}
  1 +package com.zhonglai.zl.email.forwarding.config;
  2 +
  3 +import cn.hutool.extra.mail.MailAccount;
  4 +import cn.hutool.extra.mail.MailUtil;
  5 +import org.springframework.context.annotation.Bean;
  6 +import org.springframework.context.annotation.Configuration;
  7 +
  8 +
  9 +@Configuration
  10 +public class EmailConfig {
  11 + @Bean
  12 + public MailAccount sandMailAccount()
  13 + {
  14 + MailAccount account = new MailAccount();
  15 + account.setHost("smtp.orangeshp.com");
  16 + account.setPort(25);
  17 + account.setAuth(true);
  18 + account.setFrom("laikunkeji@orangeshp.com");
  19 + account.setUser("laikunkeji@orangeshp.com");
  20 + account.setPass("zhl123456");
  21 + return account;
  22 + }
  23 +
  24 + @Bean
  25 + public MailAccount listenerMailAccount()
  26 + {
  27 + MailAccount account = new MailAccount();
  28 + account.setHost("smtp.orangeshp.com");
  29 + account.setPort(143);
  30 + account.setAuth(true);
  31 + account.setFrom("zhonglai@orangeshp.com");
  32 + account.setUser("zhonglai@orangeshp.com");
  33 + account.setPass("zhl123456");
  34 + return account;
  35 + }
  36 +
  37 +
  38 + public static void main(String[] args) {
  39 + com.zhonglai.zl.email.forwarding.util.MailUtil.readFolderNewTiktokMessage("zhonglai@orangeshp.com", "zhl123456", System.currentTimeMillis());
  40 + }
  41 +}
  1 +package com.zhonglai.zl.email.forwarding.config;
  2 +
  3 +import com.ruoyi.common.config.RuoYiConfig;
  4 +import io.swagger.annotations.ApiOperation;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.context.annotation.Bean;
  7 +import org.springframework.context.annotation.Configuration;
  8 +import springfox.documentation.builders.ApiInfoBuilder;
  9 +import springfox.documentation.builders.PathSelectors;
  10 +import springfox.documentation.builders.RequestHandlerSelectors;
  11 +import springfox.documentation.service.Contact;
  12 +import springfox.documentation.spi.DocumentationType;
  13 +import springfox.documentation.spring.web.plugins.Docket;
  14 +import springfox.documentation.swagger2.annotations.EnableSwagger2;
  15 +
  16 +
  17 +@Configuration
  18 +@EnableSwagger2
  19 +public class SwaggerConfig {
  20 + /** 系统基础配置 */
  21 + @Autowired
  22 + private RuoYiConfig ruoyiConfig;
  23 + @Bean
  24 + public Docket createRestApi() {
  25 + return new Docket(DocumentationType.SWAGGER_2)
  26 + .groupName("服务器运维管理")
  27 + .apiInfo(
  28 + new ApiInfoBuilder().title("标题:服务器运维管理")
  29 + .description("服务器运维管理")
  30 + .contact(new Contact(ruoyiConfig.getName(), null, null))
  31 + .version("版本号:" + ruoyiConfig.getVersion())
  32 + .build()
  33 + )
  34 + .select()
  35 + .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
  36 + .paths(PathSelectors.any())
  37 + .build();
  38 + }
  39 +
  40 +
  41 +}
  1 +package com.zhonglai.zl.email.forwarding.controller;
  2 +
  3 +import java.util.List;
  4 +import javax.servlet.http.HttpServletResponse;
  5 +
  6 +import io.swagger.annotations.Api;
  7 +import io.swagger.annotations.ApiOperation;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +import org.springframework.web.bind.annotation.GetMapping;
  10 +import org.springframework.web.bind.annotation.PostMapping;
  11 +import org.springframework.web.bind.annotation.PutMapping;
  12 +import org.springframework.web.bind.annotation.DeleteMapping;
  13 +import org.springframework.web.bind.annotation.PathVariable;
  14 +import org.springframework.web.bind.annotation.RequestBody;
  15 +import org.springframework.web.bind.annotation.RequestMapping;
  16 +import org.springframework.web.bind.annotation.RestController;
  17 +import com.ruoyi.common.annotation.Log;
  18 +import com.zhonglai.luhui.action.BaseController;
  19 +import com.ruoyi.common.core.domain.AjaxResult;
  20 +import com.ruoyi.common.enums.BusinessType;
  21 +import com.zhonglai.zl.email.forwarding.domain.RelayDomains;
  22 +import com.zhonglai.zl.email.forwarding.service.IRelayDomainsService;
  23 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  24 +import com.ruoyi.common.core.page.TableDataInfo;
  25 +
  26 +/**
  27 + * 转发地址管理Controller
  28 + *
  29 + * @author 钟来
  30 + * @date 2023-08-19
  31 + */
  32 +@Api(tags = "转发地址管理")
  33 +@RestController
  34 +@RequestMapping("/relay/RelayDomains")
  35 +public class RelayDomainsController extends BaseController
  36 +{
  37 + @Autowired
  38 + private IRelayDomainsService relayDomainsService;
  39 +
  40 + /**
  41 + * 查询转发地址管理列表
  42 + */
  43 + @ApiOperation("查询转发地址管理列表")
  44 + @GetMapping("/list")
  45 + public TableDataInfo list(RelayDomains relayDomains)
  46 + {
  47 + startPage();
  48 + List<RelayDomains> list = relayDomainsService.selectRelayDomainsList(relayDomains);
  49 + return getDataTable(list);
  50 + }
  51 +
  52 + /**
  53 + * 导出转发地址管理列表
  54 + */
  55 + @ApiOperation("导出转发地址管理列表")
  56 + @Log(title = "转发地址管理", businessType = BusinessType.EXPORT)
  57 + @PostMapping("/export")
  58 + public void export(HttpServletResponse response, RelayDomains relayDomains)
  59 + {
  60 + List<RelayDomains> list = relayDomainsService.selectRelayDomainsList(relayDomains);
  61 + ExcelUtil<RelayDomains> util = new ExcelUtil<RelayDomains>(RelayDomains.class);
  62 + util.exportExcel(response, list, "转发地址管理数据");
  63 + }
  64 +
  65 + /**
  66 + * 获取转发地址管理详细信息
  67 + */
  68 + @ApiOperation("获取转发地址管理详细信息")
  69 + @GetMapping(value = "/{id}")
  70 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  71 + {
  72 + return AjaxResult.success(relayDomainsService.selectRelayDomainsById(id));
  73 + }
  74 +
  75 + /**
  76 + * 新增转发地址管理
  77 + */
  78 + @ApiOperation("新增转发地址管理")
  79 + @Log(title = "转发地址管理", businessType = BusinessType.INSERT)
  80 + @PostMapping
  81 + public AjaxResult add(@RequestBody RelayDomains relayDomains)
  82 + {
  83 + return toAjax(relayDomainsService.insertRelayDomains(relayDomains));
  84 + }
  85 +
  86 + /**
  87 + * 修改转发地址管理
  88 + */
  89 + @ApiOperation("修改转发地址管理")
  90 + @Log(title = "转发地址管理", businessType = BusinessType.UPDATE)
  91 + @PutMapping
  92 + public AjaxResult edit(@RequestBody RelayDomains relayDomains)
  93 + {
  94 + return toAjax(relayDomainsService.updateRelayDomains(relayDomains));
  95 + }
  96 +
  97 + /**
  98 + * 删除转发地址管理
  99 + */
  100 + @ApiOperation("删除转发地址管理")
  101 + @Log(title = "转发地址管理", businessType = BusinessType.DELETE)
  102 + @DeleteMapping("/{ids}")
  103 + public AjaxResult remove(@PathVariable Integer[] ids)
  104 + {
  105 + return toAjax(relayDomainsService.deleteRelayDomainsByIds(ids));
  106 + }
  107 +}
  1 +package com.zhonglai.zl.email.forwarding.domain;
  2 +
  3 +import com.ruoyi.common.annotation.Excel;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +import com.ruoyi.common.annotation.PublicSQLConfig;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +import org.apache.commons.lang3.builder.ToStringBuilder;
  9 +import org.apache.commons.lang3.builder.ToStringStyle;
  10 +
  11 +/**
  12 + * 【请填写功能名称】对象 relay_domains
  13 + *
  14 + * @author 钟来
  15 + * @date 2023-08-19
  16 + */
  17 +@ApiModel("转发地址")
  18 +public class RelayDomains extends BaseEntity
  19 +{
  20 + @PublicSQLConfig(isSelect=false)
  21 + private static final long serialVersionUID = 1L;
  22 +
  23 + /** */
  24 + @ApiModelProperty("主键id")
  25 + private Integer id;
  26 +
  27 + /** */
  28 + @ApiModelProperty("发送的邮件地址")
  29 + private String sender_address;
  30 +
  31 + /** */
  32 + @ApiModelProperty("转发的邮件地址")
  33 + private String destination_server;
  34 +
  35 + public void setId(Integer id)
  36 + {
  37 + this.id = id;
  38 + }
  39 +
  40 + public Integer getId()
  41 + {
  42 + return id;
  43 + }
  44 + public void setSender_address(String sender_address)
  45 + {
  46 + this.sender_address = sender_address;
  47 + }
  48 +
  49 + public String getSender_address()
  50 + {
  51 + return sender_address;
  52 + }
  53 + public void setDestination_server(String destination_server)
  54 + {
  55 + this.destination_server = destination_server;
  56 + }
  57 +
  58 + public String getDestination_server()
  59 + {
  60 + return destination_server;
  61 + }
  62 +
  63 + @Override
  64 + public String toString() {
  65 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  66 + .append("id", getId())
  67 + .append("sender_address", getSender_address())
  68 + .append("destination_server", getDestination_server())
  69 + .toString();
  70 + }
  71 +}
  1 +package com.zhonglai.zl.email.forwarding.dto;
  2 +
  3 +import lombok.Data;
  4 +
  5 +@Data
  6 +public class MailDto {
  7 + private String to;
  8 + private String subject;
  9 + private String content;
  10 +}
  1 +package com.zhonglai.zl.email.forwarding.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.zl.email.forwarding.domain.RelayDomains;
  5 +
  6 +/**
  7 + * 【请填写功能名称】Mapper接口
  8 + *
  9 + * @author 钟来
  10 + * @date 2023-08-19
  11 + */
  12 +public interface RelayDomainsMapper
  13 +{
  14 + /**
  15 + * 查询【请填写功能名称】
  16 + *
  17 + * @param id 【请填写功能名称】主键
  18 + * @return 【请填写功能名称】
  19 + */
  20 + public RelayDomains selectRelayDomainsById(Integer id);
  21 +
  22 + /**
  23 + * 查询【请填写功能名称】
  24 + *
  25 + * @param sender_address 【请填写功能名称】主键
  26 + * @return 【请填写功能名称】
  27 + */
  28 + public RelayDomains selectRelayDomainsBySenderAddress(String sender_address);
  29 +
  30 + /**
  31 + * 查询【请填写功能名称】列表
  32 + *
  33 + * @param relayDomains 【请填写功能名称】
  34 + * @return 【请填写功能名称】集合
  35 + */
  36 + public List<RelayDomains> selectRelayDomainsList(RelayDomains relayDomains);
  37 +
  38 + /**
  39 + * 新增【请填写功能名称】
  40 + *
  41 + * @param relayDomains 【请填写功能名称】
  42 + * @return 结果
  43 + */
  44 + public int insertRelayDomains(RelayDomains relayDomains);
  45 +
  46 + /**
  47 + * 修改【请填写功能名称】
  48 + *
  49 + * @param relayDomains 【请填写功能名称】
  50 + * @return 结果
  51 + */
  52 + public int updateRelayDomains(RelayDomains relayDomains);
  53 +
  54 + /**
  55 + * 删除【请填写功能名称】
  56 + *
  57 + * @param id 【请填写功能名称】主键
  58 + * @return 结果
  59 + */
  60 + public int deleteRelayDomainsById(Integer id);
  61 +
  62 + /**
  63 + * 批量删除【请填写功能名称】
  64 + *
  65 + * @param ids 需要删除的数据主键集合
  66 + * @return 结果
  67 + */
  68 + public int deleteRelayDomainsByIds(Integer[] ids);
  69 +}
  1 +package com.zhonglai.zl.email.forwarding.service;
  2 +
  3 +import cn.hutool.extra.mail.MailAccount;
  4 +import com.sun.mail.imap.IMAPFolder;
  5 +import com.sun.mail.imap.IMAPMessage;
  6 +import com.sun.mail.imap.IMAPStore;
  7 +import com.sun.mail.imap.protocol.ENVELOPE;
  8 +import com.zhonglai.zl.email.forwarding.domain.RelayDomains;
  9 +import com.zhonglai.zl.email.forwarding.util.MailUtil;
  10 +import org.slf4j.Logger;
  11 +import org.slf4j.LoggerFactory;
  12 +import org.springframework.beans.factory.annotation.Autowired;
  13 +import org.springframework.stereotype.Service;
  14 +
  15 +import javax.annotation.PostConstruct;
  16 +import javax.mail.*;
  17 +import javax.mail.internet.InternetAddress;
  18 +import java.util.Properties;
  19 +import java.util.concurrent.ScheduledExecutorService;
  20 +import java.util.concurrent.TimeUnit;
  21 +
  22 +
  23 +/**
  24 + * 邮件转发服务
  25 + */
  26 +@Service
  27 +public class EmailForwardingService {
  28 + private static final Logger log = LoggerFactory.getLogger(EmailForwardingService.class);
  29 +
  30 + @Autowired
  31 + private MailAccount sandMailAccount; //发送通道
  32 + @Autowired
  33 + private MailAccount listenerMailAccount; //接收通道
  34 + @Autowired
  35 + private ScheduledExecutorService scheduledExecutorService; //定时器
  36 + @Autowired
  37 + private IRelayDomainsService iRelayDomainsService;
  38 + private IMAPStore store = null;
  39 + private IMAPFolder folder = null;
  40 + @PostConstruct
  41 + public void run()
  42 + {
  43 + //5秒钟接收一次邮件
  44 + scheduledExecutorService.scheduleWithFixedDelay(() -> {
  45 + if(null != store && null != folder && store.isConnected() && folder.isOpen())
  46 + {
  47 + try {
  48 + getIMAP();
  49 + } catch (MessagingException e) {
  50 + log.error("邮件内容读取异常",e);
  51 + return;
  52 + }
  53 + }else{
  54 + log.info("邮件连接关闭,重新初始化");
  55 + close();
  56 + try {
  57 + init(listenerMailAccount.getPort(),listenerMailAccount.getHost(),listenerMailAccount.getFrom(),listenerMailAccount.getPass());
  58 + } catch (MessagingException e) {
  59 + log.error("邮件连接失败",e);
  60 + return;
  61 + }
  62 + }
  63 + },1,5, TimeUnit.SECONDS);
  64 +
  65 + }
  66 +
  67 + private void init(int port, String host, String username, String password) throws MessagingException {
  68 + Properties props = MailUtil.getProperties(host, port);
  69 + Session session = MailUtil.getSession(props);
  70 + store = MailUtil.connectIMAP(session, host, port, username, password);
  71 + folder = (IMAPFolder)store.getFolder("INBOX");
  72 + folder.open(Folder.READ_WRITE);
  73 + }
  74 +
  75 + public void getIMAP() throws MessagingException {
  76 +// int size = folder.getMessageCount();
  77 +
  78 + Message[] mess = folder.getMessages();
  79 + log.info("可读取邮件数量:"+mess.length);
  80 + for(int i = mess.length - 1; i >= 0; --i) {
  81 + Message message = mess[i];
  82 + if(forward(message))
  83 + {
  84 + delete(message);
  85 + }
  86 + }
  87 + folder.expunge();
  88 + }
  89 +
  90 + /**
  91 + * 转发邮件
  92 + * @param message
  93 + * @return
  94 + */
  95 + private boolean forward( Message message)
  96 + {
  97 + try {
  98 + String from = ((InternetAddress)message.getFrom()[0]).getAddress();
  99 +
  100 + Address[] recipients = message.getRecipients(Message.RecipientType.TO);
  101 + String to = ((InternetAddress) recipients[recipients.length-1]).getAddress();
  102 +
  103 + if(to.equals(from))
  104 + {
  105 + return true;
  106 + }
  107 + String subject = message.getSubject();
  108 + String forwardedContent = "From: " + from + "\n\n" + message.getContent();
  109 + RelayDomains relayDomains = iRelayDomainsService.selectRelayDomainsBySenderAddress(to);
  110 + if(null == relayDomains)
  111 + {
  112 + return true;
  113 + }
  114 + cn.hutool.extra.mail.MailUtil.send(sandMailAccount,relayDomains.getDestination_server(),subject,forwardedContent,true);
  115 + return true;
  116 + } catch (Exception e) {
  117 + log.error("转发邮件出错",e);
  118 + }
  119 + return false;
  120 +
  121 + }
  122 +
  123 + /**
  124 + * 删除邮件
  125 + * @param message
  126 + * @return
  127 + */
  128 + private boolean delete(Message message)
  129 + {
  130 + // 标记为已删除的邮件将在关闭文件夹时被删除
  131 + try {
  132 + // 标记邮件为已读
  133 + message.setFlag(Flags.Flag.SEEN, true);
  134 + // 删除被转发的邮件
  135 + message.setFlag(Flags.Flag.DELETED, true);
  136 + } catch (Exception e) {
  137 + log.error("删除邮件出错",e);
  138 + }
  139 + return false;
  140 + }
  141 +
  142 + public void close()
  143 + {
  144 + try {
  145 + if (folder != null) {
  146 + folder.close(true);
  147 + }
  148 +
  149 + if (store != null) {
  150 + store.close();
  151 + }
  152 + } catch (MessagingException var27) {
  153 + var27.printStackTrace();
  154 + }
  155 + }
  156 +}
  1 +package com.zhonglai.zl.email.forwarding.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.zl.email.forwarding.domain.RelayDomains;
  5 +
  6 +/**
  7 + * 【请填写功能名称】Service接口
  8 + *
  9 + * @author 钟来
  10 + * @date 2023-08-19
  11 + */
  12 +public interface IRelayDomainsService
  13 +{
  14 + /**
  15 + * 查询【请填写功能名称】
  16 + *
  17 + * @param id 【请填写功能名称】主键
  18 + * @return 【请填写功能名称】
  19 + */
  20 + public RelayDomains selectRelayDomainsById(Integer id);
  21 +
  22 + /**
  23 + * 查询【请填写功能名称】
  24 + *
  25 + * @param sender_address 【请填写功能名称】主键
  26 + * @return 【请填写功能名称】
  27 + */
  28 + public RelayDomains selectRelayDomainsBySenderAddress(String sender_address);
  29 +
  30 + /**
  31 + * 查询【请填写功能名称】列表
  32 + *
  33 + * @param relayDomains 【请填写功能名称】
  34 + * @return 【请填写功能名称】集合
  35 + */
  36 + public List<RelayDomains> selectRelayDomainsList(RelayDomains relayDomains);
  37 +
  38 + /**
  39 + * 新增【请填写功能名称】
  40 + *
  41 + * @param relayDomains 【请填写功能名称】
  42 + * @return 结果
  43 + */
  44 + public int insertRelayDomains(RelayDomains relayDomains);
  45 +
  46 + /**
  47 + * 修改【请填写功能名称】
  48 + *
  49 + * @param relayDomains 【请填写功能名称】
  50 + * @return 结果
  51 + */
  52 + public int updateRelayDomains(RelayDomains relayDomains);
  53 +
  54 + /**
  55 + * 批量删除【请填写功能名称】
  56 + *
  57 + * @param ids 需要删除的【请填写功能名称】主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteRelayDomainsByIds(Integer[] ids);
  61 +
  62 + /**
  63 + * 删除【请填写功能名称】信息
  64 + *
  65 + * @param id 【请填写功能名称】主键
  66 + * @return 结果
  67 + */
  68 + public int deleteRelayDomainsById(Integer id);
  69 +}
  1 +package com.zhonglai.zl.email.forwarding.service.impl;
  2 +
  3 +import java.util.List;
  4 +
  5 +import com.zhonglai.luhui.datasource.enums.DataSource;
  6 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.stereotype.Service;
  9 +import com.zhonglai.zl.email.forwarding.mapper.RelayDomainsMapper;
  10 +import com.zhonglai.zl.email.forwarding.domain.RelayDomains;
  11 +import com.zhonglai.zl.email.forwarding.service.IRelayDomainsService;
  12 +
  13 +/**
  14 + * 【请填写功能名称】Service业务层处理
  15 + *
  16 + * @author 钟来
  17 + * @date 2023-08-19
  18 + */
  19 +@Service
  20 +public class RelayDomainsServiceImpl implements IRelayDomainsService
  21 +{
  22 + @Autowired
  23 + private RelayDomainsMapper relayDomainsMapper;
  24 +
  25 + /**
  26 + * 查询【请填写功能名称】
  27 + *
  28 + * @param id 【请填写功能名称】主键
  29 + * @return 【请填写功能名称】
  30 + */
  31 + @DataSource(DataSourceType.MASTER)
  32 + @Override
  33 + public RelayDomains selectRelayDomainsById(Integer id)
  34 + {
  35 + return relayDomainsMapper.selectRelayDomainsById(id);
  36 + }
  37 +
  38 + /**
  39 + * 查询【请填写功能名称】
  40 + *
  41 + * @param sender_address 【请填写功能名称】主键
  42 + * @return 【请填写功能名称】
  43 + */
  44 + @DataSource(DataSourceType.MASTER)
  45 + @Override
  46 + public RelayDomains selectRelayDomainsBySenderAddress(String sender_address)
  47 + {
  48 + return relayDomainsMapper.selectRelayDomainsBySenderAddress(sender_address);
  49 + }
  50 +
  51 + /**
  52 + * 查询【请填写功能名称】列表
  53 + *
  54 + * @param relayDomains 【请填写功能名称】
  55 + * @return 【请填写功能名称】
  56 + */
  57 + @DataSource(DataSourceType.MASTER)
  58 + @Override
  59 + public List<RelayDomains> selectRelayDomainsList(RelayDomains relayDomains)
  60 + {
  61 + return relayDomainsMapper.selectRelayDomainsList(relayDomains);
  62 + }
  63 +
  64 + /**
  65 + * 新增【请填写功能名称】
  66 + *
  67 + * @param relayDomains 【请填写功能名称】
  68 + * @return 结果
  69 + */
  70 + @DataSource(DataSourceType.MASTER)
  71 + @Override
  72 + public int insertRelayDomains(RelayDomains relayDomains)
  73 + {
  74 + return relayDomainsMapper.insertRelayDomains(relayDomains);
  75 + }
  76 +
  77 + /**
  78 + * 修改【请填写功能名称】
  79 + *
  80 + * @param relayDomains 【请填写功能名称】
  81 + * @return 结果
  82 + */
  83 + @DataSource(DataSourceType.MASTER)
  84 + @Override
  85 + public int updateRelayDomains(RelayDomains relayDomains)
  86 + {
  87 + return relayDomainsMapper.updateRelayDomains(relayDomains);
  88 + }
  89 +
  90 + /**
  91 + * 批量删除【请填写功能名称】
  92 + *
  93 + * @param ids 需要删除的【请填写功能名称】主键
  94 + * @return 结果
  95 + */
  96 + @DataSource(DataSourceType.MASTER)
  97 + @Override
  98 + public int deleteRelayDomainsByIds(Integer[] ids)
  99 + {
  100 + return relayDomainsMapper.deleteRelayDomainsByIds(ids);
  101 + }
  102 +
  103 + /**
  104 + * 删除【请填写功能名称】信息
  105 + *
  106 + * @param id 【请填写功能名称】主键
  107 + * @return 结果
  108 + */
  109 + @DataSource(DataSourceType.MASTER)
  110 + @Override
  111 + public int deleteRelayDomainsById(Integer id)
  112 + {
  113 + return relayDomainsMapper.deleteRelayDomainsById(id);
  114 + }
  115 +}
  1 +package com.zhonglai.zl.email.forwarding.util;
  2 +
  3 +import com.sun.mail.imap.IMAPFolder;
  4 +import com.sun.mail.imap.IMAPStore;
  5 +import com.sun.net.ssl.internal.ssl.Provider;
  6 +
  7 +import javax.mail.*;
  8 +import javax.mail.event.MessageCountAdapter;
  9 +import javax.mail.event.MessageCountEvent;
  10 +import javax.mail.event.MessageCountListener;
  11 +import java.security.Security;
  12 +import java.util.Properties;
  13 +
  14 +public class MailUtil {
  15 + public static Properties getProperties(String host, int port) {
  16 + Properties props = System.getProperties();
  17 + props.setProperty("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
  18 + props.setProperty("mail.imap.socketFactory.port", port + "");
  19 + props.setProperty("mail.store.protocol", "imap");
  20 + props.setProperty("mail.imap.host", host);
  21 + props.setProperty("mail.imap.port", port + "");
  22 + props.setProperty("mail.imap.auth.login.disable", "true");
  23 + return props;
  24 + }
  25 +
  26 + public static Session getSession(Properties props) {
  27 + Session session = Session.getDefaultInstance(props, (Authenticator)null);
  28 + session.setDebug(false);
  29 + return session;
  30 + }
  31 +
  32 + public static IMAPStore connectIMAP(Session session, String host, Integer port, String username, String password) throws MessagingException {
  33 + IMAPStore store = (IMAPStore)session.getStore("imap");
  34 + store.connect(host, port, username, password);
  35 + return store;
  36 + }
  37 +
  38 + public static String getIMAP(Session session, int port, String host, String username, String password, long time) {
  39 + IMAPStore store = null;
  40 + IMAPFolder folder = null;
  41 +
  42 + try {
  43 + store = connectIMAP(session, host, port, username, password);
  44 + folder = (IMAPFolder)store.getFolder("INBOX");
  45 + folder.open(Folder.READ_WRITE);
  46 + int size = folder.getMessageCount();
  47 + System.out.println("这里是打印的条数==" + size);
  48 + Message[] mess = folder.getMessages();
  49 +
  50 + for(int i = mess.length - 1; i >= 0; --i) {
  51 + String from = mess[i].getFrom()[0].toString();
  52 + String to = mess[i].getRecipients(Message.RecipientType.TO)[0].toString();
  53 + String subject = mess[i].getSubject();
  54 + long date = mess[i].getSentDate().getTime();
  55 + // 删除被转发的邮件
  56 + mess[i].setFlag(Flags.Flag.DELETED, true);
  57 + String var16;
  58 + if (date < time) {
  59 + var16 = null;
  60 + return var16;
  61 + }
  62 +
  63 + if (from.startsWith("TikTok")&& subject.endsWith("is your verification code") && date > time) {
  64 + var16 = subject.replace(" is your verification code","");
  65 + return var16;
  66 + }
  67 + }
  68 +
  69 + return null;
  70 + } catch (MessagingException var28) {
  71 + var28.printStackTrace();
  72 + return null;
  73 + } finally {
  74 + try {
  75 + if (folder != null) {
  76 + folder.close(false);
  77 + }
  78 +
  79 + if (store != null) {
  80 + store.close();
  81 + }
  82 + } catch (MessagingException var27) {
  83 + var27.printStackTrace();
  84 + }
  85 +
  86 + }
  87 + }
  88 +
  89 + public static String readFolderNewTiktokMessage(String username, String password, long time) {
  90 + String host = "imap." + username.split("@")[1];
  91 + int port = 143;
  92 + Security.addProvider(new Provider());
  93 + Properties props = getProperties(host, port);
  94 + Session session = getSession(props);
  95 + String code = getIMAP(session, port, host, username, password, time);
  96 + return code;
  97 + }
  98 +
  99 + public static IMAPFolder getIMAPFolder(String username,String password) throws MessagingException {
  100 + String host = "imap." + username.split("@")[1];
  101 + int port = 143;
  102 + Security.addProvider(new Provider());
  103 + Properties props = getProperties(host, port);
  104 + Session session = getSession(props);
  105 + IMAPStore store = connectIMAP(session, host, port, username, password);
  106 + IMAPFolder folder = (IMAPFolder)store.getFolder("INBOX");
  107 + folder.open(2);
  108 + return folder;
  109 + }
  110 +}
  1 +# 数据源配置
  2 +spring:
  3 + datasource:
  4 + type: com.alibaba.druid.pool.DruidDataSource
  5 + driverClassName: com.mysql.cj.jdbc.Driver
  6 + druid:
  7 + # 主库数据源
  8 + master:
  9 + url: jdbc:mysql://114.215.126.2:3306/ewomail?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10 + username: luhui
  11 + password: Luhui586
  12 + # 从库数据源
  13 + slave:
  14 + # 从数据源开关/默认关闭
  15 + enabled: false
  16 + url:
  17 + username:
  18 + password:
  19 + # 初始连接数
  20 + initialSize: 5
  21 + # 最小连接池数量
  22 + minIdle: 10
  23 + # 最大连接池数量
  24 + maxActive: 20
  25 + # 配置获取连接等待超时的时间
  26 + maxWait: 60000
  27 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  28 + timeBetweenEvictionRunsMillis: 60000
  29 + # 配置一个连接在池中最小生存的时间,单位是毫秒
  30 + minEvictableIdleTimeMillis: 300000
  31 + # 配置一个连接在池中最大生存的时间,单位是毫秒
  32 + maxEvictableIdleTimeMillis: 900000
  33 + # 配置检测连接是否有效
  34 + validationQuery: SELECT 1 FROM DUAL
  35 + testWhileIdle: true
  36 + testOnBorrow: false
  37 + testOnReturn: false
  38 + webStatFilter:
  39 + enabled: true
  40 + statViewServlet:
  41 + enabled: true
  42 + # 设置白名单,不填则允许所有访问
  43 + allow:
  44 + url-pattern: /druid/*
  45 + # 控制台管理用户名和密码
  46 + login-username: ruoyi
  47 + login-password: 123456
  48 + filter:
  49 + stat:
  50 + enabled: true
  51 + # 慢SQL记录
  52 + log-slow-sql: true
  53 + slow-sql-millis: 1000
  54 + merge-sql: true
  55 + wall:
  56 + config:
  57 + multi-statement-allow: true
  1 +# 项目相关配置 jhlt: # 名称 name: zhonglai # 版本 version: 3.8.2 # 版权年份 copyrightYear: 2022 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) profile: uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数组计算 char 字符验证 captchaType: math # 开发环境配置 server: # 服务器的HTTP端口,默认为8080 port: 8066 servlet: # 应用的访问路径 context-path: / tomcat: # tomcat的URI编码 uri-encoding: UTF-8 # 连接数满后的排队数,默认为100 accept-count: 1000 threads: # tomcat最大线程数,默认为200 max: 800 # Tomcat启动初始化的线程数,默认值10 min-spare: 100 # 日志配置 logging: level: com.ruoyi: debug org.springframework: warn # Spring配置 spring: # 模板引擎 thymeleaf: mode: HTML encoding: utf-8 # 禁用缓存 cache: false prefix: classpath:/static/ suffix: .html # 资源信息 messages: # 国际化资源文件路径 basename: i18n/messages profiles: active: druid # 文件上传 servlet: multipart: # 单个文件大小 max-file-size: 10MB # 设置总上传的文件大小 max-request-size: 20MB # 服务模块 devtools: restart: # 热部署开关 enabled: true # redis 配置 redis: # 地址 host: 47.112.163.61 # 端口,默认为6379 port: 9527 # 数据库索引 database: 1 # 密码 password: Luhui586 # 连接超时时间 timeout: 10s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms # MyBatis配置 mybatis: # 搜索指定包别名 typeAliasesPackage: com.ruoyi.**.domain,com.zhonglai.**.domain # 配置mapper的扫描,找到所有的mapper.xml映射文件 mapperLocations: classpath*:mapper/**/*Mapper.xml # 加载全局的配置文件 configLocation: classpath:mybatis/mybatis-config.xml # PageHelper分页插件 pagehelper: helperDialect: mysql supportMethodsArguments: true params: count=countSql # Swagger配置 swagger: # 是否开启swagger enabled: true # 请求前缀 pathMapping: /dev-api # 防止XSS攻击 xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) excludes: /system/notice # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* sys: ## // 对于登录login 注册register 验证码captchaImage 允许匿名访问 antMatchers: /register,/captchaImage,/getCacheObject,/v2/api-docs domainname: http://120.79.198.245:8062
  1 +<!DOCTYPE html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <title>Title</title>
  6 +</head>
  7 +<body>
  8 +<div>
  9 + <div><input type="text" id="destination_server"/><button onclick="setDestinationServer()">设置转发邮箱</button></div>
  10 +</div>
  11 +</body>
  12 +
  13 +<script src="js/jquery.min.js"></script>
  14 +<script src="js/common.js"></script>
  15 +<script>
  16 + function setDestinationServer()
  17 + {
  18 + var number = $("#number").val();
  19 + $.ajax({
  20 + type: "GET",
  21 + url: url + "/camera/setNumber/"+number,
  22 + });
  23 + }
  24 +
  25 +</script>
  26 +</html>
  1 +/**
  2 + * 通用方法封装处理
  3 + * Copyright (c) 2019 ruoyi
  4 + */
  5 +
  6 +var startLayDate;
  7 +var endLayDate;
  8 +$(function() {
  9 +
  10 + // layer扩展皮肤
  11 + if (window.layer !== undefined) {
  12 + layer.config({
  13 + extend: 'moon/style.css',
  14 + skin: 'layer-ext-moon'
  15 + });
  16 + }
  17 +
  18 + // 回到顶部绑定
  19 + if ($.fn.toTop !== undefined) {
  20 + $('#scroll-up').toTop();
  21 + }
  22 +
  23 + // select2复选框事件绑定
  24 + if ($.fn.select2 !== undefined) {
  25 + $.fn.select2.defaults.set( "theme", "bootstrap" );
  26 + $("select.form-control:not(.noselect2)").each(function () {
  27 + $(this).select2().on("change", function () {
  28 + $(this).valid();
  29 + })
  30 + })
  31 + }
  32 +
  33 + // iCheck单选框及复选框事件绑定
  34 + if ($.fn.iCheck !== undefined) {
  35 + $(".check-box:not(.noicheck),.radio-box:not(.noicheck)").each(function() {
  36 + $(this).iCheck({
  37 + checkboxClass: 'icheckbox-blue',
  38 + radioClass: 'iradio-blue',
  39 + })
  40 + })
  41 + }
  42 +
  43 + // 取消回车自动提交表单
  44 + $(document).on("keypress", ":input:not(textarea):not([type=submit])", function(event) {
  45 + if (event.keyCode == 13) {
  46 + event.preventDefault();
  47 + }
  48 + });
  49 +
  50 + // laydate 时间控件绑定
  51 + if ($(".select-time").length > 0) {
  52 + layui.use('laydate', function() {
  53 + var laydate = layui.laydate;
  54 + startLayDate = laydate.render({
  55 + elem: '#startTime',
  56 + max: $('#endTime').val(),
  57 + theme: 'molv',
  58 + type: $('#startTime').attr("data-type") || 'date',
  59 + trigger: 'click',
  60 + done: function(value, date) {
  61 + // 结束时间大于开始时间
  62 + if (value !== '') {
  63 + endLayDate.config.min.year = date.year;
  64 + endLayDate.config.min.month = date.month - 1;
  65 + endLayDate.config.min.date = date.date;
  66 + } else {
  67 + endLayDate.config.min.year = '';
  68 + endLayDate.config.min.month = '';
  69 + endLayDate.config.min.date = '';
  70 + }
  71 + }
  72 + });
  73 + endLayDate = laydate.render({
  74 + elem: '#endTime',
  75 + min: $('#startTime').val(),
  76 + theme: 'molv',
  77 + type: $('#endTime').attr("data-type") || 'date',
  78 + trigger: 'click',
  79 + done: function(value, date) {
  80 + // 开始时间小于结束时间
  81 + if (value !== '') {
  82 + startLayDate.config.max.year = date.year;
  83 + startLayDate.config.max.month = date.month - 1;
  84 + startLayDate.config.max.date = date.date;
  85 + } else {
  86 + startLayDate.config.max.year = '2099';
  87 + startLayDate.config.max.month = '12';
  88 + startLayDate.config.max.date = '31';
  89 + }
  90 + }
  91 + });
  92 + });
  93 + }
  94 +
  95 + // laydate time-input 时间控件绑定
  96 + if ($(".time-input").length > 0) {
  97 + layui.use('laydate', function () {
  98 + var com = layui.laydate;
  99 + $(".time-input").each(function (index, item) {
  100 + var time = $(item);
  101 + // 控制控件外观
  102 + var type = time.attr("data-type") || 'date';
  103 + // 控制回显格式
  104 + var format = time.attr("data-format") || 'yyyy-MM-dd';
  105 + // 控制日期控件按钮
  106 + var buttons = time.attr("data-btn") || 'clear|now|confirm', newBtnArr = [];
  107 + // 日期控件选择完成后回调处理
  108 + var callback = time.attr("data-callback") || {};
  109 + if (buttons) {
  110 + if (buttons.indexOf("|") > 0) {
  111 + var btnArr = buttons.split("|"), btnLen = btnArr.length;
  112 + for (var j = 0; j < btnLen; j++) {
  113 + if ("clear" === btnArr[j] || "now" === btnArr[j] || "confirm" === btnArr[j]) {
  114 + newBtnArr.push(btnArr[j]);
  115 + }
  116 + }
  117 + } else {
  118 + if ("clear" === buttons || "now" === buttons || "confirm" === buttons) {
  119 + newBtnArr.push(buttons);
  120 + }
  121 + }
  122 + } else {
  123 + newBtnArr = ['clear', 'now', 'confirm'];
  124 + }
  125 + com.render({
  126 + elem: item,
  127 + theme: 'molv',
  128 + trigger: 'click',
  129 + type: type,
  130 + format: format,
  131 + btns: newBtnArr,
  132 + done: function (value, data) {
  133 + if (typeof window[callback] != 'undefined'
  134 + && window[callback] instanceof Function) {
  135 + window[callback](value, data);
  136 + }
  137 + }
  138 + });
  139 + });
  140 + });
  141 + }
  142 +
  143 + // tree 关键字搜索绑定
  144 + if ($("#keyword").length > 0) {
  145 + $("#keyword").bind("focus", function focusKey(e) {
  146 + if ($("#keyword").hasClass("empty")) {
  147 + $("#keyword").removeClass("empty");
  148 + }
  149 + }).bind("blur", function blurKey(e) {
  150 + if ($("#keyword").val() === "") {
  151 + $("#keyword").addClass("empty");
  152 + }
  153 + $.tree.searchNode(e);
  154 + }).bind("input propertychange", $.tree.searchNode);
  155 + }
  156 +
  157 + // tree表格树 展开/折叠
  158 + var expandFlag;
  159 + $("#expandAllBtn").click(function() {
  160 + var dataExpand = $.common.isEmpty(table.options.expandAll) ? true : table.options.expandAll;
  161 + expandFlag = $.common.isEmpty(expandFlag) ? dataExpand : expandFlag;
  162 + if (!expandFlag) {
  163 + $.bttTable.bootstrapTreeTable('expandAll');
  164 + } else {
  165 + $.bttTable.bootstrapTreeTable('collapseAll');
  166 + }
  167 + expandFlag = expandFlag ? false: true;
  168 + })
  169 +
  170 + // 按下ESC按钮关闭弹层
  171 + $('body', document).on('keyup', function(e) {
  172 + if (e.which === 27) {
  173 + $.modal.closeAll();
  174 + }
  175 + });
  176 +});
  177 +
  178 +(function ($) {
  179 + 'use strict';
  180 + $.fn.toTop = function(opt) {
  181 + var elem = this;
  182 + var win = (opt && opt.hasOwnProperty('win')) ? opt.win : $(window);
  183 + var doc = (opt && opt.hasOwnProperty('doc')) ? opt.doc : $('html, body');
  184 + var options = $.extend({
  185 + autohide: true,
  186 + offset: 50,
  187 + speed: 500,
  188 + position: true,
  189 + right: 15,
  190 + bottom: 5
  191 + }, opt);
  192 + elem.css({
  193 + 'cursor': 'pointer'
  194 + });
  195 + if (options.autohide) {
  196 + elem.css('display', 'none');
  197 + }
  198 + if (options.position) {
  199 + elem.css({
  200 + 'position': 'fixed',
  201 + 'right': options.right,
  202 + 'bottom': options.bottom,
  203 + });
  204 + }
  205 + elem.click(function() {
  206 + doc.animate({
  207 + scrollTop: 0
  208 + }, options.speed);
  209 + });
  210 + win.scroll(function() {
  211 + var scrolling = win.scrollTop();
  212 + if (options.autohide) {
  213 + if (scrolling > options.offset) {
  214 + elem.fadeIn(options.speed);
  215 + } else elem.fadeOut(options.speed);
  216 + }
  217 + });
  218 + };
  219 +})(jQuery);
  220 +
  221 +/** 刷新选项卡 */
  222 +var refreshItem = function(){
  223 + var topWindow = $(window.parent.document);
  224 + var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
  225 + var target = $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow);
  226 + var url = target.attr('src');
  227 + target.attr('src', url).ready();
  228 +}
  229 +
  230 +/** 关闭选项卡 */
  231 +var closeItem = function(dataId){
  232 + var topWindow = $(window.parent.document);
  233 + if($.common.isNotEmpty(dataId)){
  234 + window.parent.$.modal.closeLoading();
  235 + // 根据dataId关闭指定选项卡
  236 + $('.menuTab[data-id="' + dataId + '"]', topWindow).remove();
  237 + // 移除相应tab对应的内容区
  238 + $('.mainContent .RuoYi_iframe[data-id="' + dataId + '"]', topWindow).remove();
  239 + return;
  240 + }
  241 + var panelUrl = window.frameElement.getAttribute('data-panel');
  242 + $('.page-tabs-content .active i', topWindow).click();
  243 + if($.common.isNotEmpty(panelUrl)){
  244 + $('.menuTab[data-id="' + panelUrl + '"]', topWindow).addClass('active').siblings('.menuTab').removeClass('active');
  245 + $('.mainContent .RuoYi_iframe', topWindow).each(function() {
  246 + if ($(this).data('id') == panelUrl) {
  247 + $(this).show().siblings('.RuoYi_iframe').hide();
  248 + return false;
  249 + }
  250 + });
  251 + }
  252 +}
  253 +
  254 +/** 创建选项卡 */
  255 +function createMenuItem(dataUrl, menuName, isRefresh) {
  256 + var panelUrl = window.frameElement.getAttribute('data-id'),
  257 + dataIndex = $.common.random(1, 100),
  258 + flag = true;
  259 + if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false;
  260 + var topWindow = $(window.parent.document);
  261 + // 选项卡菜单已存在
  262 + $('.menuTab', topWindow).each(function() {
  263 + if ($(this).data('id') == dataUrl) {
  264 + if (!$(this).hasClass('active')) {
  265 + $(this).addClass('active').siblings('.menuTab').removeClass('active');
  266 + scrollToTab(this);
  267 + $('.page-tabs-content').animate({ marginLeft: ""}, "fast");
  268 + // 显示tab对应的内容区
  269 + $('.mainContent .RuoYi_iframe', topWindow).each(function() {
  270 + if ($(this).data('id') == dataUrl) {
  271 + $(this).show().siblings('.RuoYi_iframe').hide();
  272 + return false;
  273 + }
  274 + });
  275 + }
  276 + if (isRefresh) {
  277 + refreshTab();
  278 + }
  279 + flag = false;
  280 + return false;
  281 + }
  282 + });
  283 + // 选项卡菜单不存在
  284 + if (flag) {
  285 + var str = '<a href="javascript:;" class="active menuTab noactive" data-id="' + dataUrl + '" data-panel="' + panelUrl + '">' + menuName + ' <i class="fa fa-times-circle"></i></a>';
  286 + $('.menuTab', topWindow).removeClass('active');
  287 +
  288 + // 添加选项卡对应的iframe
  289 + var str1 = '<iframe class="RuoYi_iframe" name="iframe' + dataIndex + '" width="100%" height="100%" src="' + dataUrl + '" frameborder="0" data-id="' + dataUrl + '" data-panel="' + panelUrl + '" seamless></iframe>';
  290 + $('.mainContent', topWindow).find('iframe.RuoYi_iframe').hide().parents('.mainContent').append(str1);
  291 +
  292 + window.parent.$.modal.loading("数据加载中,请稍候...");
  293 + $('.mainContent iframe:visible', topWindow).on('load', function() {
  294 + window.parent.$.modal.closeLoading();
  295 + });
  296 +
  297 + // 添加选项卡
  298 + $('.menuTabs .page-tabs-content', topWindow).append(str);
  299 + scrollToTab($('.menuTab.active', topWindow));
  300 + }
  301 + return false;
  302 +}
  303 +
  304 +// 刷新iframe
  305 +function refreshTab() {
  306 + var topWindow = $(window.parent.document);
  307 + var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
  308 + var target = $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow);
  309 + var url = target.attr('src');
  310 + target.attr('src', url).ready();
  311 +}
  312 +
  313 +// 滚动到指定选项卡
  314 +function scrollToTab(element) {
  315 + var topWindow = $(window.parent.document);
  316 + var marginLeftVal = calSumWidth($(element).prevAll()),
  317 + marginRightVal = calSumWidth($(element).nextAll());
  318 + // 可视区域非tab宽度
  319 + var tabOuterWidth = calSumWidth($(".content-tabs", topWindow).children().not(".menuTabs"));
  320 + //可视区域tab宽度
  321 + var visibleWidth = $(".content-tabs", topWindow).outerWidth(true) - tabOuterWidth;
  322 + //实际滚动宽度
  323 + var scrollVal = 0;
  324 + if ($(".page-tabs-content", topWindow).outerWidth() < visibleWidth) {
  325 + scrollVal = 0;
  326 + } else if (marginRightVal <= (visibleWidth - $(element).outerWidth(true) - $(element).next().outerWidth(true))) {
  327 + if ((visibleWidth - $(element).next().outerWidth(true)) > marginRightVal) {
  328 + scrollVal = marginLeftVal;
  329 + var tabElement = element;
  330 + while ((scrollVal - $(tabElement).outerWidth()) > ($(".page-tabs-content", topWindow).outerWidth() - visibleWidth)) {
  331 + scrollVal -= $(tabElement).prev().outerWidth();
  332 + tabElement = $(tabElement).prev();
  333 + }
  334 + }
  335 + } else if (marginLeftVal > (visibleWidth - $(element).outerWidth(true) - $(element).prev().outerWidth(true))) {
  336 + scrollVal = marginLeftVal - $(element).prev().outerWidth(true);
  337 + }
  338 + $('.page-tabs-content', topWindow).animate({ marginLeft: 0 - scrollVal + 'px' }, "fast");
  339 +}
  340 +
  341 +// 计算元素集合的总宽度
  342 +function calSumWidth(elements) {
  343 + var width = 0;
  344 + $(elements).each(function() {
  345 + width += $(this).outerWidth(true);
  346 + });
  347 + return width;
  348 +}
  349 +
  350 +// 返回当前激活的Tab页面关联的iframe的Windows对象
  351 +function activeWindow() {
  352 + var topWindow = $(window.parent.document);
  353 + var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
  354 + if (!currentId) {
  355 + return window.parent;
  356 + }
  357 + return $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
  358 +}
  359 +
  360 +/** 密码规则范围验证 */
  361 +function checkpwd(chrtype, password) {
  362 + if (chrtype == 1) {
  363 + if(!$.common.numValid(password)){
  364 + $.modal.alertWarning("密码只能为0-9数字");
  365 + return false;
  366 + }
  367 + } else if (chrtype == 2) {
  368 + if(!$.common.enValid(password)){
  369 + $.modal.alertWarning("密码只能为a-z和A-Z字母");
  370 + return false;
  371 + }
  372 + } else if (chrtype == 3) {
  373 + if(!$.common.enNumValid(password)){
  374 + $.modal.alertWarning("密码必须包含字母以及数字");
  375 + return false;
  376 + }
  377 + } else if (chrtype == 4) {
  378 + if(!$.common.charValid(password)){
  379 + $.modal.alertWarning("密码必须包含字母、数字、以及特殊符号<font color='red'>~!@#$%^&*()-=_+</font>");
  380 + return false;
  381 + }
  382 + }
  383 + return true;
  384 +}
  385 +
  386 +// 日志打印封装处理
  387 +var log = {
  388 + log: function(msg) {
  389 + console.log(msg);
  390 + },
  391 + info: function(msg) {
  392 + console.info(msg);
  393 + },
  394 + warn: function(msg) {
  395 + console.warn(msg);
  396 + },
  397 + error: function(msg) {
  398 + console.error(msg);
  399 + }
  400 +};
  401 +
  402 +// 本地缓存处理
  403 +var storage = {
  404 + set: function(key, value) {
  405 + window.localStorage.setItem(key, value);
  406 + },
  407 + get: function(key) {
  408 + return window.localStorage.getItem(key);
  409 + },
  410 + remove: function(key) {
  411 + window.localStorage.removeItem(key);
  412 + },
  413 + clear: function() {
  414 + window.localStorage.clear();
  415 + }
  416 +};
  417 +
  418 +// 主子表操作封装处理
  419 +var sub = {
  420 + editRow: function() {
  421 + var dataColumns = [];
  422 + for (var columnIndex = 0; columnIndex < table.options.columns.length; columnIndex++) {
  423 + if (table.options.columns[columnIndex].visible != false) {
  424 + dataColumns.push(table.options.columns[columnIndex]);
  425 + }
  426 + }
  427 + var params = new Array();
  428 + var data = $("#" + table.options.id).bootstrapTable('getData');
  429 + var count = data.length;
  430 + for (var dataIndex = 0; dataIndex < count; dataIndex++) {
  431 + var columns = $('#' + table.options.id + ' tr[data-index="' + dataIndex + '"] td');
  432 + var obj = new Object();
  433 + for (var i = 0; i < columns.length; i++) {
  434 + var inputValue = $(columns[i]).find('input');
  435 + var selectValue = $(columns[i]).find('select');
  436 + var textareaValue = $(columns[i]).find('textarea');
  437 + var key = dataColumns[i].field;
  438 + if ($.common.isNotEmpty(inputValue.val())) {
  439 + obj[key] = inputValue.val();
  440 + } else if ($.common.isNotEmpty(selectValue.val())) {
  441 + obj[key] = selectValue.val();
  442 + } else if ($.common.isNotEmpty(textareaValue.val())) {
  443 + obj[key] = textareaValue.val();
  444 + } else {
  445 + if (key == "index" && $.common.isNotEmpty(data[dataIndex].index)) {
  446 + obj[key] = data[dataIndex].index;
  447 + } else {
  448 + obj[key] = "";
  449 + }
  450 + }
  451 + }
  452 + var item = data[dataIndex];
  453 + var extendObj = $.extend({}, item, obj);
  454 + params.push({ index: dataIndex, row: extendObj });
  455 + }
  456 + $("#" + table.options.id).bootstrapTable("updateRow", params);
  457 + },
  458 + delRow: function(column) {
  459 + sub.editRow();
  460 + var subColumn = $.common.isEmpty(column) ? "index" : column;
  461 + var ids = $.table.selectColumns(subColumn);
  462 + if (ids.length == 0) {
  463 + $.modal.alertWarning("请至少选择一条记录");
  464 + return;
  465 + }
  466 + $("#" + table.options.id).bootstrapTable('remove', { field: subColumn, values: ids });
  467 + },
  468 + delRowByIndex: function(value) {
  469 + sub.editRow();
  470 + $("#" + table.options.id).bootstrapTable('remove', { field: "index", values: [value] });
  471 + sub.editRow();
  472 + },
  473 + addRow: function(row, tableId) {
  474 + var currentId = $.common.isEmpty(tableId) ? table.options.id : tableId;
  475 + table.set(currentId);
  476 + var count = $("#" + currentId).bootstrapTable('getData').length;
  477 + sub.editRow();
  478 + $("#" + currentId).bootstrapTable('insertRow', { index: count + 1, row: row });
  479 + }
  480 +};
  481 +
  482 +// 动态加载css文件
  483 +function loadCss(file, headElem) {
  484 + var link = document.createElement('link');
  485 + link.href = file;
  486 + link.rel = 'stylesheet';
  487 + link.type = 'text/css';
  488 + if (headElem) headElem.appendChild(link);
  489 + else document.getElementsByTagName('head')[0].appendChild(link);
  490 +}
  491 +
  492 +// 动态加载js文件
  493 +function loadJs(file, headElem) {
  494 + var script = document.createElement('script');
  495 + script.src = file;
  496 + script.type = 'text/javascript';
  497 + if (headElem) headElem.appendChild(script);
  498 + else document.getElementsByTagName('head')[0].appendChild(script);
  499 +}
  500 +
  501 +// 禁止后退键(Backspace)
  502 +window.onload = function() {
  503 + document.getElementsByTagName("body")[0].onkeydown = function() {
  504 + // 获取事件对象
  505 + var elem = event.relatedTarget || event.srcElement || event.target || event.currentTarget;
  506 + // 判断按键为backSpace键
  507 + if (event.keyCode == 8) {
  508 + // 判断是否需要阻止按下键盘的事件默认传递
  509 + var name = elem.nodeName;
  510 + var className = elem.className;
  511 + // 屏蔽特定的样式名称
  512 + if (className.indexOf('note-editable') != -1)
  513 + {
  514 + return true;
  515 + }
  516 + if (name != 'INPUT' && name != 'TEXTAREA') {
  517 + return _stopIt(event);
  518 + }
  519 + var type_e = elem.type.toUpperCase();
  520 + if (name == 'INPUT' && (type_e != 'TEXT' && type_e != 'TEXTAREA' && type_e != 'PASSWORD' && type_e != 'FILE' && type_e != 'SEARCH' && type_e != 'NUMBER' && type_e != 'EMAIL' && type_e != 'URL')) {
  521 + return _stopIt(event);
  522 + }
  523 + if (name == 'INPUT' && (elem.readOnly == true || elem.disabled == true)) {
  524 + return _stopIt(event);
  525 + }
  526 + }
  527 + };
  528 +};
  529 +function _stopIt(e) {
  530 + if (e.returnValue) {
  531 + e.returnValue = false;
  532 + }
  533 + if (e.preventDefault) {
  534 + e.preventDefault();
  535 + }
  536 + return false;
  537 +}
  538 +
  539 +/** 设置全局ajax处理 */
  540 +$.ajaxSetup({
  541 + complete: function(XMLHttpRequest, textStatus) {
  542 + if (textStatus == 'timeout') {
  543 + $.modal.alertWarning("服务器超时,请稍后再试!");
  544 + $.modal.enable();
  545 + $.modal.closeLoading();
  546 + } else if (textStatus == "parsererror" || textStatus == "error") {
  547 + $.modal.alertWarning("服务器错误,请联系管理员!");
  548 + $.modal.enable();
  549 + $.modal.closeLoading();
  550 + }
  551 + }
  552 +});
  1 +/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
  2 +!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document){throw Error("jQuery requires a window with a document")}return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e,t,n){n=n||Te;var r,i,o=n.createElement("script");if(o.text=e,t){for(r in Ce){i=t[r]||t.getAttribute&&t.getAttribute(r),i&&o.setAttribute(r,i)}}n.head.appendChild(o).parentNode.removeChild(o)}function r(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?he[ge.call(e)]||"object":typeof e}function i(e){var t=!!e&&"length" in e&&e.length,n=r(e);return be(e)||we(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t,n){return be(t)?Se.grep(e,function(e,r){return !!t.call(e,r,e)!==n}):t.nodeType?Se.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Se.grep(e,function(e){return de.call(t,e)>-1!==n}):Se.filter(t,e,n)}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;){}return e}function u(e){var t={};return Se.each(e.match(Re)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function c(e){throw e}function f(e,t,n,r){var i;try{e&&be(i=e.promise)?i.call(e).done(t).fail(n):e&&be(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function p(){Te.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),Se.ready()}function d(e,t){return t.toUpperCase()}function h(e){return e.replace(Fe,"ms-").replace($e,d)}function g(){this.expando=Se.expando+g.uid++}function m(e){return"true"===e?!0:"false"===e?!1:"null"===e?null:e===+e+""?+e:Ue.test(e)?JSON.parse(e):e}function v(e,t,n){var r;if(void 0===n&&1===e.nodeType){if(r="data-"+t.replace(Xe,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=m(n)}catch(i){}ze.set(e,t,n)}else{n=void 0}}return n}function y(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Se.css(e,t,"")},u=s(),l=n&&n[3]||(Se.cssNumber[t]?"":"px"),c=e.nodeType&&(Se.cssNumber[t]||"px"!==l&&+u)&&Ge.exec(Se.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;){Se.style(e,t,c+l),(1-o)*(1-(o=s()/u||0.5))<=0&&(a=0),c/=o}c=2*c,Se.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function x(e){var t,n=e.ownerDocument,r=e.nodeName,i=et[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=Se.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),et[r]=i,i)}function b(e,t){for(var n,r,i=[],o=0,a=e.length;a>o;o++){r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=_e.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Ze(r)&&(i[o]=x(r))):"none"!==n&&(i[o]="none",_e.set(r,"display",n)))}for(o=0;a>o;o++){null!=i[o]&&(e[o].style.display=i[o])}return e}function w(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&o(e,t)?Se.merge([e],n):n}function T(e,t){for(var n=0,r=e.length;r>n;n++){_e.set(e[n],"globalEval",!t||_e.get(t[n],"globalEval"))}}function C(e,t,n,i,o){for(var a,s,u,l,c,f,p=t.createDocumentFragment(),d=[],h=0,g=e.length;g>h;h++){if(a=e[h],a||0===a){if("object"===r(a)){Se.merge(d,a.nodeType?[a]:a)}else{if(ot.test(a)){for(s=s||p.appendChild(t.createElement("div")),u=(nt.exec(a)||["",""])[1].toLowerCase(),l=it[u]||it._default,s.innerHTML=l[1]+Se.htmlPrefilter(a)+l[2],f=l[0];f--;){s=s.lastChild}Se.merge(d,s.childNodes),s=p.firstChild,s.textContent=""}else{d.push(t.createTextNode(a))}}}}for(p.textContent="",h=0;a=d[h++];){if(i&&Se.inArray(a,i)>-1){o&&o.push(a)}else{if(c=Je(a),s=w(p.appendChild(a),"script"),c&&T(s),n){for(f=0;a=s[f++];){rt.test(a.type||"")&&n.push(a)}}}}return p}function E(){return !0}function S(){return !1}function k(e,t){return e===A()==("focus"===t)}function A(){try{return Te.activeElement}catch(e){}}function N(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t){N(e,s,n,r,t[s],o)}return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1){i=S}else{if(!i){return e}}return 1===o&&(a=i,i=function(e){return Se().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=Se.guid++)),e.each(function(){Se.event.add(this,t,i,r,n)})}function j(e,t,n){return n?(_e.set(e,t,!1),void Se.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=_e.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length){(Se.event.special[t]||{}).delegateType&&e.stopPropagation()}else{if(o=ce.call(arguments),_e.set(this,t,o),r=n(this,t),this[t](),i=_e.get(this,t),o!==i||r?_e.set(this,t,!1):i={},o!==i){return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}}}else{o.length&&(_e.set(this,t,{value:Se.event.trigger(Se.extend(o[0],Se.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}}})):void (void 0===_e.get(e,t)&&Se.event.add(e,t,E))}function D(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")?Se(e).children("tbody")[0]||e:e}function q(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function L(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function H(e,t){var n,r,i,o,a,s,u;if(1===t.nodeType){if(_e.hasData(e)&&(o=_e.get(e),u=o.events)){_e.remove(t,"handle events");for(i in u){for(n=0,r=u[i].length;r>n;n++){Se.event.add(t,i,u[i][n])}}}ze.hasData(e)&&(a=ze.access(e),s=Se.extend({},a),ze.set(t,s))}}function O(e,t){var n=t.nodeName.toLowerCase();"input"===n&&tt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function P(e,t,r,i){t=fe(t);var o,a,s,u,l,c,f=0,p=e.length,d=p-1,h=t[0],g=be(h);if(g||p>1&&"string"==typeof h&&!xe.checkClone&&ut.test(h)){return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),P(o,t,r,i)})}if(p&&(o=C(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=Se.map(w(o,"script"),q),u=s.length;p>f;f++){l=o,f!==d&&(l=Se.clone(l,!0,!0),u&&Se.merge(s,w(l,"script"))),r.call(e[f],l,f)}if(u){for(c=s[s.length-1].ownerDocument,Se.map(s,L),f=0;u>f;f++){l=s[f],rt.test(l.type||"")&&!_e.access(l,"globalEval")&&Se.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Se._evalUrl&&!l.noModule&&Se._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):n(l.textContent.replace(lt,""),l,c))}}}return e}function R(e,t,n){for(var r,i=t?Se.filter(t,e):e,o=0;null!=(r=i[o]);o++){n||1!==r.nodeType||Se.cleanData(w(r)),r.parentNode&&(n&&Je(r)&&T(w(r,"script")),r.parentNode.removeChild(r))}return e}function M(e,t,n){var r,i,o,a,s=ft.test(t),u=e.style;return n=n||pt(e),n&&(a=n.getPropertyValue(t)||n[t],s&&(a=a.replace(mt,"$1")),""!==a||Je(e)||(a=Se.style(e,t)),!xe.pixelBoxStyles()&&ct.test(a)&&ht.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function I(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function W(e){for(var t=e[0].toUpperCase()+e.slice(1),n=vt.length;n--;){if(e=vt[n]+t,e in yt){return e}}}function F(e){var t=Se.cssProps[e]||xt[e];return t?t:e in yt?e:xt[e]=W(e)||e}function B(e,t,n){var r=Ge.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function _(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content")){return 0}for(;4>a;a+=2){"margin"===n&&(u+=Se.css(e,n+Ye[a],!0,i)),r?("content"===n&&(u-=Se.css(e,"padding"+Ye[a],!0,i)),"margin"!==n&&(u-=Se.css(e,"border"+Ye[a]+"Width",!0,i))):(u+=Se.css(e,"padding"+Ye[a],!0,i),"padding"!==n?u+=Se.css(e,"border"+Ye[a]+"Width",!0,i):s+=Se.css(e,"border"+Ye[a]+"Width",!0,i))}return !r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-0.5))||0),u}function z(e,t,n){var r=pt(e),i=!xe.boxSizingReliable()||n,a=i&&"border-box"===Se.css(e,"boxSizing",!1,r),s=a,u=M(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(ct.test(u)){if(!n){return u}u="auto"}return(!xe.boxSizingReliable()&&a||!xe.reliableTrDimensions()&&o(e,"tr")||"auto"===u||!parseFloat(u)&&"inline"===Se.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===Se.css(e,"boxSizing",!1,r),s=l in e,s&&(u=e[l])),u=parseFloat(u)||0,u+_(e,t,n||(a?"border":"content"),s,r,u)+"px"}function U(e,t,n,r,i){return new U.prototype.init(e,t,n,r,i)}function X(){Et&&(Te.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(X):e.setTimeout(X,Se.fx.interval),Se.fx.tick())}function V(){return e.setTimeout(function(){Ct=void 0}),Ct=Date.now()}function G(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t){n=Ye[r],i["margin"+n]=i["padding"+n]=e}return t&&(i.opacity=i.width=e),i}function Y(e,t,n){for(var r,i=(K.tweeners[t]||[]).concat(K.tweeners["*"]),o=0,a=i.length;a>o;o++){if(r=i[o].call(n,t,e)){return r}}}function Q(e,t,n){var r,i,o,a,s,u,l,c,f="width" in t||"height" in t,p=this,d={},h=e.style,g=e.nodeType&&Ze(e),m=_e.get(e,"fxshow");n.queue||(a=Se._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,Se.queue(e,"fx").length||a.empty.fire()})}));for(r in t){if(i=t[r],St.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r]){continue}g=!0}d[r]=m&&m[r]||Se.style(e,r)}}if(u=!Se.isEmptyObject(t),u||!Se.isEmptyObject(d)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],l=m&&m.display,null==l&&(l=_e.get(e,"display")),c=Se.css(e,"display"),"none"===c&&(l?c=l:(b([e],!0),l=e.style.display||l,c=Se.css(e,"display"),b([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Se.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in d){u||(m?"hidden" in m&&(g=m.hidden):m=_e.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&b([e],!0),p.done(function(){g||b([e]),_e.remove(e,"fxshow");for(r in d){Se.style(e,r,d[r])}})),u=Y(g?m[r]:0,r,p),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}}function J(e,t){var n,r,i,o,a;for(n in e){if(r=h(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=Se.cssHooks[r],a&&"expand" in a){o=a.expand(o),delete e[r];for(n in o){n in e||(e[n]=o[n],t[n]=i)}}else{t[r]=i}}}function K(e,t,n){var r,i,o=0,a=K.prefilters.length,s=Se.Deferred().always(function(){delete u.elem}),u=function(){if(i){return !1}for(var t=Ct||V(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++){l.tweens[a].run(o)}return s.notifyWith(e,[l,o,n]),1>o&&u?n:(u||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Se.extend({},t),opts:Se.extend(!0,{specialEasing:{},easing:Se.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ct||V(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Se.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i){return this}for(i=!0;r>n;n++){l.tweens[n].run(1)}return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(J(c,l.opts.specialEasing);a>o;o++){if(r=K.prefilters[o].call(l,e,c,l.opts)){return be(r.stop)&&(Se._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r}}return Se.map(c,Y,l),be(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Se.fx.timer(Se.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function Z(e){var t=e.match(Re)||[];return t.join(" ")}function ee(e){return e.getAttribute&&e.getAttribute("class")||""}function te(e){return Array.isArray(e)?e:"string"==typeof e?e.match(Re)||[]:[]}function ne(e,t,n,i){var o;if(Array.isArray(t)){Se.each(t,function(t,r){n||Mt.test(e)?i(e,r):ne(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)})}else{if(n||"object"!==r(t)){i(e,t)}else{for(o in t){ne(e+"["+o+"]",t[o],n,i)}}}}function re(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Re)||[];if(be(n)){for(;r=o[i++];){"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}}}function ie(e,t,n,r){function i(s){var u;return o[s]=!0,Se.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Yt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function oe(e,t){var n,r,i=Se.ajaxSettings.flatOptions||{};for(n in t){void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n])}return r&&Se.extend(!0,e,r),e}function ae(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];){u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"))}if(r){for(i in s){if(s[i]&&s[i].test(r)){u.unshift(i);break}}}if(u[0] in n){o=u[0]}else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function se(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1]){for(a in e.converters){l[a.toLowerCase()]=e.converters[a]}}for(o=c.shift();o;){if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift()){if("*"===o){o=u}else{if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a){for(i in l){if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}}}if(a!==!0){if(a&&e["throws"]){t=a(t)}else{try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}}}}}}return{state:"success",data:t}}var ue=[],le=Object.getPrototypeOf,ce=ue.slice,fe=ue.flat?function(e){return ue.flat.call(e)}:function(e){return ue.concat.apply([],e)},pe=ue.push,de=ue.indexOf,he={},ge=he.toString,me=he.hasOwnProperty,ve=me.toString,ye=ve.call(Object),xe={},be=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},we=function(e){return null!=e&&e===e.window},Te=e.document,Ce={type:!0,src:!0,nonce:!0,noModule:!0},Ee="3.6.1",Se=function(e,t){return new Se.fn.init(e,t)};Se.fn=Se.prototype={jquery:Ee,constructor:Se,length:0,toArray:function(){return ce.call(this)},get:function(e){return null==e?ce.call(this):0>e?this[e+this.length]:this[e]},pushStack:function(e){var t=Se.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Se.each(this,e)},map:function(e){return this.pushStack(Se.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ce.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Se.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Se.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:pe,sort:ue.sort,splice:ue.splice},Se.extend=Se.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||be(a)||(a={}),s===u&&(a=this,s--);u>s;s++){if(null!=(e=arguments[s])){for(t in e){r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(Se.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||Se.isPlainObject(n)?n:{},i=!1,a[t]=Se.extend(l,o,r)):void 0!==r&&(a[t]=r))}}}return a},Se.extend({expando:"jQuery"+(Ee+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return e&&"[object Object]"===ge.call(e)?(t=le(e))?(n=me.call(t,"constructor")&&t.constructor,"function"==typeof n&&ve.call(n)===ye):!0:!1},isEmptyObject:function(e){var t;for(t in e){return !1}return !0},globalEval:function(e,t,r){n(e,{nonce:t&&t.nonce},r)},each:function(e,t){var n,r=0;if(i(e)){for(n=e.length;n>r&&t.call(e[r],r,e[r])!==!1;r++){}}else{for(r in e){if(t.call(e[r],r,e[r])===!1){break}}}return e},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?Se.merge(n,"string"==typeof e?[e]:e):pe.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:de.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++){e[i++]=t[r]}return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;a>o;o++){r=!t(e[o],o),r!==s&&i.push(e[o])}return i},map:function(e,t,n){var r,o,a=0,s=[];if(i(e)){for(r=e.length;r>a;a++){o=t(e[a],a,n),null!=o&&s.push(o)}}else{for(a in e){o=t(e[a],a,n),null!=o&&s.push(o)}}return fe(s)},guid:1,support:xe}),"function"==typeof Symbol&&(Se.fn[Symbol.iterator]=ue[Symbol.iterator]),Se.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){he["[object "+t+"]"]=t.toLowerCase()});var ke=function(e){function t(e,t,n,r){var i,o,a,s,u,l,c,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h){return n}if(!r&&(L(t),t=t||H,P)){if(11!==h&&(u=xe.exec(e))){if(i=u[1]){if(9===h){if(!(a=t.getElementById(i))){return n}if(a.id===i){return n.push(a),n}}else{if(p&&(a=p.getElementById(i))&&W(t,a)&&a.id===i){return n.push(a),n}}}else{if(u[2]){return Z.apply(n,t.getElementsByTagName(e)),n}if((i=u[3])&&T.getElementsByClassName&&t.getElementsByClassName){return Z.apply(n,t.getElementsByClassName(i)),n}}}if(T.qsa&&!V[e+" "]&&(!R||!R.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(c=e,p=t,1===h&&(fe.test(e)||ce.test(e))){for(p=be.test(e)&&f(t.parentNode)||t,p===t&&T.scope||((s=t.getAttribute("id"))?s=s.replace(Ce,Ee):t.setAttribute("id",s=F)),l=k(e),o=l.length;o--;){l[o]=(s?"#"+s:":scope")+" "+d(l[o])}c=l.join(",")}try{return Z.apply(n,p.querySelectorAll(c)),n}catch(g){V(e,!0)}finally{s===F&&t.removeAttribute("id")}}}return N(e.replace(ue,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=H.createElement("fieldset");try{return !!e(t)}catch(n){return !1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;){C.attrHandle[n[r]]=t}}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r){return r}if(n){for(;n=n.nextSibling;){if(n===t){return -1}}}return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form" in t?t.parentNode&&t.disabled===!1?"label" in t?"label" in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ke(t)===e:t.disabled===e:"label" in t?t.disabled===e:!1}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;){n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}})})}function f(e){return e&&void 0!==e.getElementsByTagName&&e}function p(){}function d(e){for(var t=0,n=e.length,r="";n>t;t++){r+=e[t].value}return r}function h(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=_++;return t.first?function(t,n,i){for(;t=t[r];){if(1===t.nodeType||a){return e(t,n,i)}}return !1}:function(t,n,u){var l,c,f,p=[B,s];if(u){for(;t=t[r];){if((1===t.nodeType||a)&&e(t,n,u)){return !0}}}else{for(;t=t[r];){if(1===t.nodeType||a){if(f=t[F]||(t[F]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase()){t=t[r]||t}else{if((l=c[o])&&l[0]===B&&l[1]===s){return p[2]=l[2]}if(c[o]=p,p[2]=e(t,n,u)){return !0}}}}}return !1}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;){if(!e[i](t,n,r)){return !1}}return !0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;o>i;i++){t(e,n[i],r)}return r}function v(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++){(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s))}return a}function y(e,t,n,i,o,a){return i&&!i[F]&&(i=y(i)),o&&!o[F]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:v(g,p,e,s,u),x=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,x,s,u),i){for(l=v(x,d),i(l,[],s,u),c=l.length;c--;){(f=l[c])&&(x[d[c]]=!(y[d[c]]=f))}}if(r){if(o||e){if(o){for(l=[],c=x.length;c--;){(f=x[c])&&l.push(y[c]=f)}o(null,x=[],l,u)}for(c=x.length;c--;){(f=x[c])&&(l=o?te(r,f):p[c])>-1&&(r[l]=!(a[l]=f))}}}else{x=v(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Z.apply(a,x)}})}function x(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,u=h(function(e){return e===t},a,!0),l=h(function(e){return te(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==j)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];i>s;s++){if(n=C.relative[e[s].type]){c=[h(g(c),n)]}else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[F]){for(r=++s;i>r&&!C.relative[e[r].type];r++){}return y(s>1&&g(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ue,"$1"),n,r>s&&x(e.slice(s,r)),i>r&&x(e=e.slice(r)),i>r&&d(e))}c.push(n)}}return g(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,p,d=0,h="0",g=r&&[],m=[],y=j,x=r||o&&C.find.TAG("*",l),b=B+=null==y?1:Math.random()||0.1,w=x.length;for(l&&(j=a==H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument==H||(L(c),s=!P);p=e[f++];){if(p(c,a||H,s)){u.push(c);break}}l&&(B=b)}i&&((c=!p&&c)&&d--,r&&g.push(c))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];){p(g,m,a,s)}if(r){if(d>0){for(;h--;){g[h]||m[h]||(m[h]=J.call(u))}}m=v(m)}Z.apply(u,m),l&&!r&&m.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(B=b,j=y),g};return i?r(a):a}var w,T,C,E,S,k,A,N,j,D,q,L,H,O,P,R,M,I,W,F="sizzle"+1*new Date,$=e.document,B=0,_=0,z=n(),U=n(),X=n(),V=n(),G=function(e,t){return e===t&&(q=!0),0},Y={}.hasOwnProperty,Q=[],J=Q.pop,K=Q.push,Z=Q.push,ee=Q.slice,te=function(e,t){for(var n=0,r=e.length;r>n;n++){if(e[n]===t){return n}}return -1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+",oe="\\["+re+"*("+ie+")(?:"+re+"*([*^$|!~]?=)"+re+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+re+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=RegExp(re+"+","g"),ue=RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),le=RegExp("^"+re+"*,"+re+"*"),ce=RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),fe=RegExp(re+"|>"),pe=RegExp(ae),de=RegExp("^"+ie+"$"),he={ID:RegExp("^#("+ie+")"),CLASS:RegExp("^\\.("+ie+")"),TAG:RegExp("^("+ie+"|[*])"),ATTR:RegExp("^"+oe),PSEUDO:RegExp("^"+ae),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:RegExp("^(?:"+ne+")$","i"),needsContext:RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},ge=/HTML$/i,me=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,xe=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,we=RegExp("\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\([^\\r\\n\\f])","g"),Te=function(e,t){var n="0x"+e.slice(1)-65536;return t?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ee=function(e,t){return t?"\x00"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Se=function(){L()},ke=h(function(e){return e.disabled===!0&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Z.apply(Q=ee.call($.childNodes),$.childNodes),Q[$.childNodes.length].nodeType}catch(Ae){Z={apply:Q.length?function(e,t){K.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];){}e.length=n-1}}}T=t.support={},S=t.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return !ge.test(t||n&&n.nodeName||"HTML")},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:$;return r!=H&&9===r.nodeType&&r.documentElement?(H=r,O=H.documentElement,P=!S(H),$!=H&&(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Se,!1):n.attachEvent&&n.attachEvent("onunload",Se)),T.scope=i(function(e){return O.appendChild(e).appendChild(H.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),T.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),T.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),T.getElementsByClassName=ye.test(H.getElementsByClassName),T.getById=i(function(e){return O.appendChild(e).id=F,!H.getElementsByName||!H.getElementsByName(F).length}),T.getById?(C.filter.ID=function(e){var t=e.replace(we,Te);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(we,Te);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e){return[o]}for(i=t.getElementsByName(e),r=0;o=i[r++];){if(n=o.getAttributeNode("id"),n&&n.value===e){return[o]}}}return[]}}),C.find.TAG=T.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):T.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];){1===n.nodeType&&r.push(n)}return r}return o},C.find.CLASS=T.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&P?t.getElementsByClassName(e):void 0},M=[],R=[],(T.qsa=ye.test(H.querySelectorAll))&&(i(function(e){var t;O.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+re+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+re+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+F+"-]").length||R.push("~="),t=H.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||R.push("\\["+re+"*name"+re+"*="+re+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||R.push(".#.+[+~]"),e.querySelectorAll("\\\f"),R.push("[\\r\\n\\f]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+re+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(T.matchesSelector=ye.test(I=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){T.disconnectedMatch=I.call(e,"*"),I.call(e,"[s!='']:x"),M.push("!=",ae)}),R=R.length&&RegExp(R.join("|")),M=M.length&&RegExp(M.join("|")),t=ye.test(O.compareDocumentPosition),W=t||ye.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t){for(;t=t.parentNode;){if(t===e){return !0}}}return !1},G=t?function(e,t){if(e===t){return q=!0,0}var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!T.sortDetached&&t.compareDocumentPosition(e)===n?e==H||e.ownerDocument==$&&W($,e)?-1:t==H||t.ownerDocument==$&&W($,t)?1:D?te(D,e)-te(D,t):0:4&n?-1:1)}:function(e,t){if(e===t){return q=!0,0}var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o){return e==H?-1:t==H?1:i?-1:o?1:D?te(D,e)-te(D,t):0}if(i===o){return a(e,t)}for(n=e;n=n.parentNode;){s.unshift(n)}for(n=t;n=n.parentNode;){u.unshift(n)}for(;s[r]===u[r];){r++}return r?a(s[r],u[r]):s[r]==$?-1:u[r]==$?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(L(e),T.matchesSelector&&P&&!V[n+" "]&&(!M||!M.test(n))&&(!R||!R.test(n))){try{var r=I.call(e,n);if(r||T.disconnectedMatch||e.document&&11!==e.document.nodeType){return r}}catch(i){V(n,!0)}}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!=H&&L(e),W(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=H&&L(e);var n=C.attrHandle[t.toLowerCase()],r=n&&Y.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:T.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Ce,Ee)},t.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(q=!T.detectDuplicates,D=!T.sortStable&&e.slice(0),e.sort(G),q){for(;t=e[i++];){t===e[i]&&(r=n.push(i))}for(;r--;){e.splice(n[r],1)}}return D=null,e},E=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent){return e.textContent}for(e=e.firstChild;e;e=e.nextSibling){n+=E(e)}}else{if(3===i||4===i){return e.nodeValue}}}else{for(;t=e[r++];){n+=E(t)}}return n},C=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Te).toLowerCase();return"*"===e?function(){return !0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=RegExp("(^|"+re+")"+e+"("+re+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return !!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,x=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];){if(s?p.nodeName.toLowerCase()===v:1===p.nodeType){return !1}}h=g="only"===e&&!h&&"nextSibling"}return !0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=m,f=p[F]||(p[F]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d&&l[2],p=d&&m.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();){if(1===p.nodeType&&++x&&p===t){c[e]=[B,d,x];break}}}else{if(y&&(p=t,f=p[F]||(p[F]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),l=c[e]||[],d=l[0]===B&&l[1],x=d),x===!1){for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++x||(y&&(f=p[F]||(p[F]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),c[e]=[B,x]),p!==t));){}}}return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[F]?o(n):o.length>1?(i=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;){r=te(e,i[a]),e[r]=!(t[r]=i[a])}}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=A(e.replace(ue,"$1"));return i[F]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;){(o=a[s])&&(e[s]=!(t[s]=o))}}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Te),function(t){return(t.textContent||E(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Te).toLowerCase(),function(t){var n;do{if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}}while((t=t.parentNode)&&1===t.nodeType);return !1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return !1}}return !0},parent:function(e){return !C.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2){e.push(n)}return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2){e.push(n)}return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n>t?t:n;--r>=0;){e.push(r)}return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r<t;){e.push(r)}return e})}},C.pseudos.nth=C.pseudos.eq;for(w in {radio:!0,checkbox:!0,file:!0,password:!0,image:!0}){C.pseudos[w]=s(w)}for(w in {submit:!0,reset:!0}){C.pseudos[w]=u(w)}return p.prototype=C.filters=C.pseudos,C.setFilters=new p,k=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=U[e+" "];if(c){return n?0:c.slice(0)}for(s=e,u=[],l=C.preFilter;s;){(!r||(i=le.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ue," ")}),s=s.slice(r.length));for(a in C.filter){!(i=he[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length))}if(!r){break}}return n?s.length:s?t.error(e):U(e,u).slice(0)},A=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=k(e)),n=t.length;n--;){o=x(t[n]),o[F]?r.push(o):i.push(o)}o=X(e,b(i,r)),o.selector=e}return o},N=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&k(e=l.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&P&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(we,Te),t)||[])[0],!t){return n}l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);){if((u=C.find[s])&&(r=u(a.matches[0].replace(we,Te),be.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e){return Z.apply(n,r),n}break}}}return(l||A(e,c))(r,t,!P,n,!t||be.test(e)&&f(t.parentNode)||t),n},T.sortStable=F.split("").sort(G).join("")===F,T.detectDuplicates=!!q,L(),T.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),T.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(ne,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Se.find=ke,Se.expr=ke.selectors,Se.expr[":"]=Se.expr.pseudos,Se.uniqueSort=Se.unique=ke.uniqueSort,Se.text=ke.getText,Se.isXMLDoc=ke.isXML,Se.contains=ke.contains,Se.escapeSelector=ke.escape;var Ae=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;){if(1===e.nodeType){if(i&&Se(e).is(n)){break}r.push(e)}}return r},Ne=function(e,t){for(var n=[];e;e=e.nextSibling){1===e.nodeType&&e!==t&&n.push(e)}return n},je=Se.expr.match.needsContext,De=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Se.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Se.find.matchesSelector(r,e)?[r]:[]:Se.find.matches(e,Se.grep(t,function(e){return 1===e.nodeType}))},Se.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e){return this.pushStack(Se(e).filter(function(){for(t=0;r>t;t++){if(Se.contains(i[t],this)){return !0}}}))}for(n=this.pushStack([]),t=0;r>t;t++){Se.find(e,i[t],n)}return r>1?Se.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return !!a(this,"string"==typeof e&&je.test(e)?Se(e):e||[],!1).length}});var qe,Le=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,He=Se.fn.init=function(e,t,n){var r,i;if(!e){return this}if(n=n||qe,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Le.exec(e),!r||!r[1]&&t){return !t||t.jquery?(t||n).find(e):this.constructor(t).find(e)}if(r[1]){if(t=t instanceof Se?t[0]:t,Se.merge(this,Se.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Te,!0)),De.test(r[1])&&Se.isPlainObject(t)){for(r in t){be(this[r])?this[r](t[r]):this.attr(r,t[r])}}return this}return i=Te.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):be(e)?void 0!==n.ready?n.ready(e):e(Se):Se.makeArray(e,this)};He.prototype=Se.fn,qe=Se(Te);var Oe=/^(?:parents|prev(?:Until|All))/,Pe={children:!0,contents:!0,next:!0,prev:!0};Se.fn.extend({has:function(e){var t=Se(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++){if(Se.contains(this,t[e])){return !0}}})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&Se(e);if(!je.test(e)){for(;i>r;r++){for(n=this[r];n&&n!==t;n=n.parentNode){if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Se.find.matchesSelector(n,e))){o.push(n);break}}}}return this.pushStack(o.length>1?Se.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?de.call(Se(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Se.uniqueSort(Se.merge(this.get(),Se(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Se.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ae(e,"parentNode")},parentsUntil:function(e,t,n){return Ae(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return Ae(e,"nextSibling")},prevAll:function(e){return Ae(e,"previousSibling")},nextUntil:function(e,t,n){return Ae(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ae(e,"previousSibling",n)},siblings:function(e){return Ne((e.parentNode||{}).firstChild,e)},children:function(e){return Ne(e.firstChild)},contents:function(e){return null!=e.contentDocument&&le(e.contentDocument)?e.contentDocument:(o(e,"template")&&(e=e.content||e),Se.merge([],e.childNodes))}},function(e,t){Se.fn[e]=function(n,r){var i=Se.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Se.filter(r,i)),this.length>1&&(Pe[e]||Se.uniqueSort(i),Oe.test(e)&&i.reverse()),this.pushStack(i)}});var Re=/[^\x20\t\r\n\f]+/g;Se.Callbacks=function(e){e="string"==typeof e?u(e):Se.extend({},e);var t,n,i,o,a=[],s=[],l=-1,c=function(){for(o=o||e.once,i=t=!0;s.length;l=-1){for(n=s.shift();++l<a.length;){a[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=a.length,n=!1)}}e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},f={add:function(){return a&&(n&&!t&&(l=a.length-1,s.push(n)),function i(t){Se.each(t,function(t,n){be(n)?e.unique&&f.has(n)||a.push(n):n&&n.length&&"string"!==r(n)&&i(n)})}(arguments),n&&!t&&c()),this},remove:function(){return Se.each(arguments,function(e,t){for(var n;(n=Se.inArray(t,a,n))>-1;){a.splice(n,1),l>=n&&l--}}),this},has:function(e){return e?Se.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return !a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return !!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return !!i}};return f},Se.extend({Deferred:function(t){var n=[["notify","progress",Se.Callbacks("memory"),Se.Callbacks("memory"),2],["resolve","done",Se.Callbacks("once memory"),Se.Callbacks("once memory"),0,"resolved"],["reject","fail",Se.Callbacks("once memory"),Se.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return Se.Deferred(function(t){Se.each(n,function(n,r){var i=be(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&be(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,u=arguments,f=function(){var e,f;if(!(a>t)){if(e=r.apply(s,u),e===n.promise()){throw new TypeError("Thenable self-resolution")}f=e&&("object"==typeof e||"function"==typeof e)&&e.then,be(f)?i?f.call(e,o(a,n,l,i),o(a,n,c,i)):(a++,f.call(e,o(a,n,l,i),o(a,n,c,i),o(a,n,l,n.notifyWith))):(r!==l&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},p=i?f:function(){try{f()}catch(e){Se.Deferred.exceptionHook&&Se.Deferred.exceptionHook(e,p.stackTrace),t+1>=a&&(r!==c&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?p():(Se.Deferred.getStackHook&&(p.stackTrace=Se.Deferred.getStackHook()),e.setTimeout(p))}}var a=0;return Se.Deferred(function(e){n[0][3].add(o(0,e,be(i)?i:l,e.notifyWith)),n[1][3].add(o(0,e,be(t)?t:l)),n[2][3].add(o(0,e,be(r)?r:c))}).promise()},promise:function(e){return null!=e?Se.extend(e,i):i}},o={};return Se.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ce.call(arguments),o=Se.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ce.call(arguments):n,--t||o.resolveWith(r,i)}};if(1>=t&&(f(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||be(i[n]&&i[n].then))){return o.then()}for(;n--;){f(i[n],a(n),o.reject)}return o.promise()}});var Me=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Se.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Me.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Se.readyException=function(t){e.setTimeout(function(){throw t})};var Ie=Se.Deferred();Se.fn.ready=function(e){return Ie.then(e)["catch"](function(e){Se.readyException(e)}),this},Se.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--Se.readyWait:Se.isReady)||(Se.isReady=!0,e!==!0&&--Se.readyWait>0||Ie.resolveWith(Te,[Se]))}}),Se.ready.then=Ie.then,"complete"===Te.readyState||"loading"!==Te.readyState&&!Te.documentElement.doScroll?e.setTimeout(Se.ready):(Te.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var We=function(e,t,n,i,o,a,s){var u=0,l=e.length,c=null==n;if("object"===r(n)){o=!0;for(u in n){We(e,t,u,n[u],!0,a,s)}}else{if(void 0!==i&&(o=!0,be(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(Se(e),n)})),t)){for(;l>u;u++){t(e[u],n,s?i:i.call(e[u],u,t(e[u],n)))}}}return o?e:c?t.call(e):l?t(e[0],n):a},Fe=/^-ms-/,$e=/-([a-z])/g,Be=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};g.uid=1,g.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Be(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t){i[h(t)]=n}else{for(r in t){i[h(r)]=t[r]}}return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][h(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(h):(t=h(t),t=t in r?[t]:t.match(Re)||[]),n=t.length;for(;n--;){delete r[t[n]]}}(void 0===t||Se.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!Se.isEmptyObject(t)}};var _e=new g,ze=new g,Ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Xe=/[A-Z]/g;Se.extend({hasData:function(e){return ze.hasData(e)||_e.hasData(e)},data:function(e,t,n){return ze.access(e,t,n)},removeData:function(e,t){ze.remove(e,t)},_data:function(e,t,n){return _e.access(e,t,n)},_removeData:function(e,t){_e.remove(e,t)}}),Se.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ze.get(o),1===o.nodeType&&!_e.get(o,"hasDataAttrs"))){for(n=a.length;n--;){a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=h(r.slice(5)),v(o,r,i[r])))}_e.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ze.set(this,e)}):We(this,function(t){var n;if(o&&void 0===t){if(n=ze.get(o,e),void 0!==n){return n}if(n=v(o,e),void 0!==n){return n}}else{this.each(function(){ze.set(this,e,t)})}},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ze.remove(this,e)})}}),Se.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=_e.get(e,t),n&&(!r||Array.isArray(n)?r=_e.access(e,t,Se.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Se.queue(e,t),r=n.length,i=n.shift(),o=Se._queueHooks(e,t),a=function(){Se.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _e.get(e,n)||_e.access(e,n,{empty:Se.Callbacks("once memory").add(function(){_e.remove(e,[t+"queue",n])})})}}),Se.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Se.queue(this[0],e):void 0===t?this:this.each(function(){var n=Se.queue(this,e,t);Se._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Se.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Se.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Se.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;){n=_e.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s))}return s(),i.promise(t)}});var Ve=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ge=RegExp("^(?:([+-])=|)("+Ve+")([a-z%]*)$","i"),Ye=["Top","Right","Bottom","Left"],Qe=Te.documentElement,Je=function(e){return Se.contains(e.ownerDocument,e)},Ke={composed:!0};Qe.getRootNode&&(Je=function(e){return Se.contains(e.ownerDocument,e)||e.getRootNode(Ke)===e.ownerDocument});var Ze=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&Je(e)&&"none"===Se.css(e,"display")},et={};Se.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ze(this)?Se(this).show():Se(this).hide()})}});var tt=/^(?:checkbox|radio)$/i,nt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rt=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=Te.createDocumentFragment(),t=e.appendChild(Te.createElement("div")),n=Te.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),xe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",xe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",xe.option=!!t.lastChild}();var it={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};it.tbody=it.tfoot=it.colgroup=it.caption=it.thead,it.th=it.td,xe.option||(it.optgroup=it.option=[1,"<select multiple='multiple'>","</select>"]);var ot=/<|&#?\w+;/,at=/^([^.]*)(?:\.(.+)|)/;Se.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=_e.get(e);if(Be(e)){for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&Se.find.matchesSelector(Qe,i),n.guid||(n.guid=Se.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==Se&&Se.event.triggered!==t.type?Se.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Re)||[""],l=t.length;l--;){s=at.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d&&(f=Se.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=Se.event.special[d]||{},c=Se.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Se.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),Se.event.global[d]=!0)}}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=_e.hasData(e)&&_e.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Re)||[""],l=t.length;l--;){if(s=at.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){for(f=Se.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;){c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c))}a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||Se.removeEvent(e,d,m.handle),delete u[d])}else{for(d in u){Se.event.remove(e,d+t[l],n,r,!0)}}}Se.isEmptyObject(u)&&_e.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=Array(arguments.length),u=Se.event.fix(e),l=(_e.get(this,"events")||Object.create(null))[u.type]||[],c=Se.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++){s[t]=arguments[t]}if(u.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,u)!==!1){for(a=Se.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();){for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();){(!u.rnamespace||o.namespace===!1||u.rnamespace.test(o.namespace))&&(u.handleObj=o,u.data=o.data,r=((Se.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(u.result=r)===!1&&(u.preventDefault(),u.stopPropagation()))}}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1)){for(;l!==this;l=l.parentNode||this){if(1===l.nodeType&&("click"!==e.type||l.disabled!==!0)){for(o=[],a={},n=0;u>n;n++){r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?Se(i,this).index(l)>-1:Se.find(i,this,null,[l]).length),a[i]&&o.push(r)}o.length&&s.push({elem:l,handlers:o})}}}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(Se.Event.prototype,e,{enumerable:!0,configurable:!0,get:be(t)?function(){return this.originalEvent?t(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[e]:void 0},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Se.expando]?e:new Se.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return tt.test(t.type)&&t.click&&o(t,"input")&&j(t,"click",E),!1},trigger:function(e){var t=this||e;return tt.test(t.type)&&t.click&&o(t,"input")&&j(t,"click"),!0},_default:function(e){var t=e.target;return tt.test(t.type)&&t.click&&o(t,"input")&&_e.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Se.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Se.Event=function(e,t){return this instanceof Se.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?E:S,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Se.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),void (this[Se.expando]=!0)):new Se.Event(e,t)},Se.Event.prototype={constructor:Se.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=E,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=E,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=E,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Se.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Se.event.addProp),Se.each({focus:"focusin",blur:"focusout"},function(e,t){Se.event.special[e]={setup:function(){return j(this,e,k),!1},trigger:function(){return j(this,e),!0},_default:function(t){return _e.get(t.target,e)},delegateType:t}}),Se.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Se.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!Se.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Se.fn.extend({on:function(e,t,n,r){return N(this,e,t,n,r)},one:function(e,t,n,r){return N(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj){return r=e.handleObj,Se(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this}if("object"==typeof e){for(i in e){this.off(i,t,e[i])}return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=S),this.each(function(){Se.event.remove(this,e,n,t)})}});var st=/<script|<style|<link/i,ut=/checked\s*(?:[^=]|=\s*.checked.)/i,lt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;Se.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=Je(e);if(!(xe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Se.isXMLDoc(e))){for(a=w(s),o=w(e),r=0,i=o.length;i>r;r++){O(o[r],a[r])}}if(t){if(n){for(o=o||w(e),a=a||w(s),r=0,i=o.length;i>r;r++){H(o[r],a[r])}}else{H(e,s)}}return a=w(s,"script"),a.length>0&&T(a,!u&&w(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Se.event.special,o=0;void 0!==(n=e[o]);o++){if(Be(n)){if(t=n[_e.expando]){if(t.events){for(r in t.events){i[r]?Se.event.remove(n,r):Se.removeEvent(n,r,t.handle)}}n[_e.expando]=void 0}n[ze.expando]&&(n[ze.expando]=void 0)}}}}),Se.fn.extend({detach:function(e){return R(this,e,!0)},remove:function(e){return R(this,e)},text:function(e){return We(this,function(e){return void 0===e?Se.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=D(this,e);t.appendChild(e)}})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=D(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){1===e.nodeType&&(Se.cleanData(w(e,!1)),e.textContent="")}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Se.clone(this,e,t)})},html:function(e){return We(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType){return t.innerHTML}if("string"==typeof e&&!st.test(e)&&!it[(nt.exec(e)||["",""])[1].toLowerCase()]){e=Se.htmlPrefilter(e);try{for(;r>n;n++){t=this[n]||{},1===t.nodeType&&(Se.cleanData(w(t,!1)),t.innerHTML=e)}t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return P(this,arguments,function(t){var n=this.parentNode;Se.inArray(this,e)<0&&(Se.cleanData(w(this)),n&&n.replaceChild(t,this))},e)}}),Se.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Se.fn[e]=function(e){for(var n,r=[],i=Se(e),o=i.length-1,a=0;o>=a;a++){n=a===o?this:this.clone(!0),Se(i[a])[t](n),pe.apply(r,n.get())}return this.pushStack(r)}});var ct=RegExp("^("+Ve+")(?!px)[a-z%]+$","i"),ft=/^--/,pt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},dt=function(e,t,n){var r,i,o={};for(i in t){o[i]=e.style[i],e.style[i]=t[i]}r=n.call(e);for(i in t){e.style[i]=o[i]}return r},ht=RegExp(Ye.join("|"),"i"),gt="[\\x20\\t\\r\\n\\f]",mt=RegExp("^"+gt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+gt+"+$","g");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Qe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),Qe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=Te.createElement("div"),c=Te.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",xe.clearCloneStyle="content-box"===c.style.backgroundClip,Se.extend(xe,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=Te.createElement("table"),n=Te.createElement("tr"),r=Te.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",Qe.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,Qe.removeChild(t)),s}}))}();var vt=["Webkit","Moz","ms"],yt=Te.createElement("div").style,xt={},bt=/^(none|table(?!-c[ea]).+)/,wt={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"};Se.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=M(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h(t),u=ft.test(t),l=e.style;return u||(t=F(s)),a=Se.cssHooks[t]||Se.cssHooks[s],void 0===n?a&&"get" in a&&void 0!==(i=a.get(e,!1,r))?i:l[t]:(o=typeof n,"string"===o&&(i=Ge.exec(n))&&i[1]&&(n=y(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(Se.cssNumber[s]?"":"px")),xe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set" in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=h(t),u=ft.test(t);return u||(t=F(s)),a=Se.cssHooks[t]||Se.cssHooks[s],a&&"get" in a&&(i=a.get(e,!0,n)),void 0===i&&(i=M(e,t,r)),"normal"===i&&t in Tt&&(i=Tt[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),Se.each(["height","width"],function(e,t){Se.cssHooks[t]={get:function(e,n,r){return n?!bt.test(Se.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?z(e,t,r):dt(e,wt,function(){return z(e,t,r)}):void 0},set:function(e,n,r){var i,o=pt(e),a=!xe.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===Se.css(e,"boxSizing",!1,o),l=r?_(e,t,r,u,o):0;return u&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-_(e,t,"border",!1,o)-0.5)),l&&(i=Ge.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=Se.css(e,t)),B(e,n,l)}}}),Se.cssHooks.marginLeft=I(xe.reliableMarginLeft,function(e,t){return t?(parseFloat(M(e,"marginLeft"))||e.getBoundingClientRect().left-dt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),Se.each({margin:"",padding:"",border:"Width"},function(e,t){Se.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++){i[e+Ye[r]+t]=o[r]||o[r-2]||o[0]}return i}},"margin"!==e&&(Se.cssHooks[e+t].set=B)}),Se.fn.extend({css:function(e,t){return We(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=pt(e),i=t.length;i>a;a++){o[t[a]]=Se.css(e,t[a],!1,r)}return o}return void 0!==n?Se.style(e,t,n):Se.css(e,t)},e,t,arguments.length>1)}}),Se.Tween=U,U.prototype={constructor:U,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||Se.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Se.cssNumber[n]?"":"px")},cur:function(){var e=U.propHooks[this.prop];return e&&e.get?e.get(this):U.propHooks._default.get(this)},run:function(e){var t,n=U.propHooks[this.prop];return this.options.duration?this.pos=t=Se.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):U.propHooks._default.set(this),this}},U.prototype.init.prototype=U.prototype,U.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Se.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){Se.fx.step[e.prop]?Se.fx.step[e.prop](e):1!==e.elem.nodeType||!Se.cssHooks[e.prop]&&null==e.elem.style[F(e.prop)]?e.elem[e.prop]=e.now:Se.style(e.elem,e.prop,e.now+e.unit)}}},U.propHooks.scrollTop=U.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Se.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2},_default:"swing"},Se.fx=U.prototype.init,Se.fx.step={};var Ct,Et,St=/^(?:toggle|show|hide)$/,kt=/queueHooks$/;Se.Animation=Se.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,Ge.exec(t),n),n}]},tweener:function(e,t){be(e)?(t=e,e=["*"]):e=e.match(Re);for(var n,r=0,i=e.length;i>r;r++){n=e[r],K.tweeners[n]=K.tweeners[n]||[],K.tweeners[n].unshift(t)}},prefilters:[Q],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),Se.speed=function(e,t,n){var r=e&&"object"==typeof e?Se.extend({},e):{complete:n||!n&&t||be(e)&&e,duration:e,easing:n&&t||t&&!be(t)&&t};return Se.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in Se.fx.speeds?r.duration=Se.fx.speeds[r.duration]:r.duration=Se.fx.speeds._default),(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){be(r.old)&&r.old.call(this),r.queue&&Se.dequeue(this,r.queue)},r},Se.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ze).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Se.isEmptyObject(e),o=Se.speed(t,n,r),a=function(){var t=K(this,Se.extend({},e),o);(i||_e.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=Se.timers,a=_e.get(this);if(i){a[i]&&a[i].stop&&r(a[i])}else{for(i in a){a[i]&&a[i].stop&&kt.test(i)&&r(a[i])}}for(i=o.length;i--;){o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1))}(t||!n)&&Se.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=_e.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=Se.timers,a=r?r.length:0;for(n.finish=!0,Se.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;){o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1))}for(t=0;a>t;t++){r[t]&&r[t].finish&&r[t].finish.call(this)}delete n.finish})}}),Se.each(["toggle","show","hide"],function(e,t){var n=Se.fn[t];Se.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(G(t,!0),e,r,i)}}),Se.each({slideDown:G("show"),slideUp:G("hide"),slideToggle:G("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Se.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Se.timers=[],Se.fx.tick=function(){var e,t=0,n=Se.timers;for(Ct=Date.now();t<n.length;t++){e=n[t],e()||n[t]!==e||n.splice(t--,1)}n.length||Se.fx.stop(),Ct=void 0},Se.fx.timer=function(e){Se.timers.push(e),Se.fx.start()},Se.fx.interval=13,Se.fx.start=function(){Et||(Et=!0,X())},Se.fx.stop=function(){Et=null},Se.fx.speeds={slow:600,fast:200,_default:400},Se.fn.delay=function(t,n){return t=Se.fx?Se.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=Te.createElement("input"),t=Te.createElement("select"),n=t.appendChild(Te.createElement("option"));e.type="checkbox",xe.checkOn=""!==e.value,xe.optSelected=n.selected,e=Te.createElement("input"),e.value="t",e.type="radio",xe.radioValue="t"===e.value}();var At,Nt=Se.expr.attrHandle;Se.fn.extend({attr:function(e,t){return We(this,Se.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Se.removeAttr(this,e)})}}),Se.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o){return void 0===e.getAttribute?Se.prop(e,t,n):(1===o&&Se.isXMLDoc(e)||(i=Se.attrHooks[t.toLowerCase()]||(Se.expr.match.bool.test(t)?At:void 0)),void 0!==n?null===n?void Se.removeAttr(e,t):i&&"set" in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get" in i&&null!==(r=i.get(e,t))?r:(r=Se.find.attr(e,t),null==r?void 0:r))}},attrHooks:{type:{set:function(e,t){if(!xe.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Re);if(i&&1===e.nodeType){for(;n=i[r++];){e.removeAttribute(n)}}}}),At={set:function(e,t,n){return t===!1?Se.removeAttr(e,n):e.setAttribute(n,n),n}},Se.each(Se.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Nt[t]||Se.find.attr;Nt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=Nt[a],Nt[a]=i,i=null!=n(e,t,r)?a:null,Nt[a]=o),i}});var jt=/^(?:input|select|textarea|button)$/i,Dt=/^(?:a|area)$/i;Se.fn.extend({prop:function(e,t){return We(this,Se.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Se.propFix[e]||e]})}}),Se.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o){return 1===o&&Se.isXMLDoc(e)||(t=Se.propFix[t]||t,i=Se.propHooks[t]),void 0!==n?i&&"set" in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get" in i&&null!==(r=i.get(e,t))?r:e[t]}},propHooks:{tabIndex:{get:function(e){var t=Se.find.attr(e,"tabindex");return t?parseInt(t,10):jt.test(e.nodeName)||Dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),xe.optSelected||(Se.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Se.propFix[this.toLowerCase()]=this}),Se.fn.extend({addClass:function(e){var t,n,r,i,o,a;return be(e)?this.each(function(t){Se(this).addClass(e.call(this,t,ee(this)))}):(t=te(e),t.length?this.each(function(){if(r=ee(this),n=1===this.nodeType&&" "+Z(r)+" "){for(o=0;o<t.length;o++){i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ")}a=Z(n),r!==a&&this.setAttribute("class",a)}}):this)},removeClass:function(e){var t,n,r,i,o,a;return be(e)?this.each(function(t){Se(this).removeClass(e.call(this,t,ee(this)))}):arguments.length?(t=te(e),t.length?this.each(function(){if(r=ee(this),n=1===this.nodeType&&" "+Z(r)+" "){for(o=0;o<t.length;o++){for(i=t[o];n.indexOf(" "+i+" ")>-1;){n=n.replace(" "+i+" "," ")}}a=Z(n),r!==a&&this.setAttribute("class",a)}}):this):this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return be(e)?this.each(function(n){Se(this).toggleClass(e.call(this,n,ee(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=te(e),this.each(function(){if(s){for(o=Se(this),i=0;i<n.length;i++){r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r)}}else{(void 0===e||"boolean"===a)&&(r=ee(this),r&&_e.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||e===!1?"":_e.get(this,"__className__")||""))}}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];){if(1===n.nodeType&&(" "+Z(ee(n))+" ").indexOf(t)>-1){return !0}}return !1}});var qt=/\r/g;Se.fn.extend({val:function(e){var t,n,r,i=this[0];if(arguments.length){return r=be(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,Se(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Se.map(i,function(e){return null==e?"":e+""})),t=Se.valHooks[this.type]||Se.valHooks[this.nodeName.toLowerCase()],t&&"set" in t&&void 0!==t.set(this,i,"value")||(this.value=i))})}if(i){return t=Se.valHooks[i.type]||Se.valHooks[i.nodeName.toLowerCase()],t&&"get" in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(qt,""):null==n?"":n)}}}),Se.extend({valHooks:{option:{get:function(e){var t=Se.find.attr(e,"value");return null!=t?t:Z(Se.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?a+1:i.length;for(r=0>a?l:s?a:0;l>r;r++){if(n=i[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(t=Se(n).val(),s){return t}u.push(t)}}return u},set:function(e,t){for(var n,r,i=e.options,o=Se.makeArray(t),a=i.length;a--;){r=i[a],(r.selected=Se.inArray(Se.valHooks.option.get(r),o)>-1)&&(n=!0)}return n||(e.selectedIndex=-1),o}}}}),Se.each(["radio","checkbox"],function(){Se.valHooks[this]={set:function(e,t){return Array.isArray(t)?e.checked=Se.inArray(Se(e).val(),t)>-1:void 0}},xe.checkOn||(Se.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),xe.focusin="onfocusin" in e;var Lt=/^(?:focusinfocus|focusoutblur)$/,Ht=function(e){e.stopPropagation()};Se.extend(Se.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,p,d=[r||Te],h=me.call(t,"type")?t.type:t,g=me.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=r=r||Te,3!==r.nodeType&&8!==r.nodeType&&!Lt.test(h+Se.event.triggered)&&(h.indexOf(".")>-1&&(g=h.split("."),h=g.shift(),g.sort()),l=h.indexOf(":")<0&&"on"+h,t=t[Se.expando]?t:new Se.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Se.makeArray(n,[t]),f=Se.event.special[h]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!we(r)){for(u=f.delegateType||h,Lt.test(u+h)||(a=a.parentNode);a;a=a.parentNode){d.push(a),s=a}s===(r.ownerDocument||Te)&&d.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();){p=a,t.type=o>1?u:f.bindType||h,c=(_e.get(a,"events")||Object.create(null))[t.type]&&_e.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Be(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault())}return t.type=h,i||t.isDefaultPrevented()||f._default&&f._default.apply(d.pop(),n)!==!1||!Be(r)||l&&be(r[h])&&!we(r)&&(s=r[l],s&&(r[l]=null),Se.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,Ht),r[h](),t.isPropagationStopped()&&p.removeEventListener(h,Ht),Se.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=Se.extend(new Se.Event,n,{type:e,isSimulated:!0});Se.event.trigger(r,null,t)}}),Se.fn.extend({trigger:function(e,t){return this.each(function(){Se.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Se.event.trigger(e,t,n,!0):void 0}}),xe.focusin||Se.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Se.event.simulate(t,e.target,Se.event.fix(e))};Se.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=_e.access(r,t);i||r.addEventListener(e,n,!0),_e.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=_e.access(r,t)-1;i?_e.access(r,t,i):(r.removeEventListener(e,n,!0),_e.remove(r,t))}}});var Ot=e.location,Pt={guid:Date.now()},Rt=/\?/;Se.parseXML=function(t){var n,r;if(!t||"string"!=typeof t){return null}try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(i){}return r=n&&n.getElementsByTagName("parsererror")[0],(!n||r)&&Se.error("Invalid XML: "+(r?Se.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Mt=/\[\]$/,It=/\r?\n/g,Wt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;Se.param=function(e,t){var n,r=[],i=function(e,t){var n=be(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e){return""}if(Array.isArray(e)||e.jquery&&!Se.isPlainObject(e)){Se.each(e,function(){i(this.name,this.value)})}else{for(n in e){ne(n,e[n],t,i)}}return r.join("&")},Se.fn.extend({serialize:function(){var e=this.serializeArray(),t=$("input[type=radio],input[type=checkbox]",this),n={};return $.each(t,function(){n.hasOwnProperty(this.name)||0==$("input[name='"+this.name+"']:checked").length&&(n[this.name]="",e.push({name:this.name,value:""}))}),Se.param(e)},serializeArray:function(){return this.map(function(){var e=Se.prop(this,"elements");return e?Se.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Se(this).is(":disabled")&&Ft.test(this.nodeName)&&!Wt.test(e)&&(this.checked||!tt.test(e))}).map(function(e,t){var n=Se(this).val();return null==n?null:Array.isArray(n)?Se.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}});var $t=/%20/g,Bt=/#.*$/,_t=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Gt={},Yt={},Qt="*/".concat("*"),Jt=Te.createElement("a");Jt.href=Ot.href,Se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:Ut.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?oe(oe(e,Se.ajaxSettings),t):oe(Se.ajaxSettings,e)},ajaxPrefilter:re(Gt),ajaxTransport:re(Yt),ajax:function(t,n){function r(t,n,r,s){var l,p,d,b,w,T=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",C.readyState=t>0?4:0,l=t>=200&&300>t||304===t,r&&(b=ae(h,C,r)),!l&&Se.inArray("script",h.dataTypes)>-1&&Se.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),b=se(h,b,C,l),l?(h.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(Se.lastModified[o]=w),w=C.getResponseHeader("etag"),w&&(Se.etag[o]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,p=b.data,d=b.error,l=!d)):(d=T,(t||!T)&&(T="error",0>t&&(t=0))),C.status=t,C.statusText=(n||T)+"",l?v.resolveWith(g,[p,T,C]):v.rejectWith(g,[C,T,d]),C.statusCode(x),x=void 0,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?p:d]),y.fireWith(g,[C,T]),f&&(m.trigger("ajaxComplete",[C,h]),--Se.active||Se.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=Se.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?Se(g):Se.event,v=Se.Deferred(),y=Se.Callbacks("once memory"),x=h.statusCode||{},b={},w={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s){for(s={};t=zt.exec(a);){s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2])}}t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e){if(c){C.always(e[C.status])}else{for(t in e){x[t]=[x[t],e[t]]}}}return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(v.promise(C),h.url=((t||h.url||Ot.href)+"").replace(Vt,Ot.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Re)||[""],null==h.crossDomain){l=Te.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Jt.protocol+"//"+Jt.host!=l.protocol+"//"+l.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Se.param(h.data,h.traditional)),ie(Gt,h,n,C),c){return C}f=Se.event&&h.global,f&&0===Se.active++&&Se.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Xt.test(h.type),o=h.url.replace(Bt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace($t,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Rt.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(_t,"$1"),d=(Rt.test(o)?"&":"?")+"_="+Pt.guid+++d),h.url=o+d),h.ifModified&&(Se.lastModified[o]&&C.setRequestHeader("If-Modified-Since",Se.lastModified[o]),Se.etag[o]&&C.setRequestHeader("If-None-Match",Se.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Qt+"; q=0.01":""):h.accepts["*"]);for(p in h.headers){C.setRequestHeader(p,h.headers[p])}if(h.beforeSend&&(h.beforeSend.call(g,C,h)===!1||c)){return C.abort()}if(T="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),i=ie(Yt,h,n,C)){if(C.readyState=1,f&&m.trigger("ajaxSend",[C,h]),c){return C}h.async&&h.timeout>0&&(u=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,i.send(b,r)}catch(E){if(c){throw E}r(-1,E)}}else{r(-1,"No Transport")}return C},getJSON:function(e,t,n){return Se.get(e,t,n,"json")},getScript:function(e,t){return Se.get(e,void 0,t,"script")}}),Se.each(["get","post"],function(e,t){Se[t]=function(e,n,r,i){return be(n)&&(i=i||r,r=n,n=void 0),Se.ajax(Se.extend({url:e,type:t,dataType:i,data:n,success:r},Se.isPlainObject(e)&&e))}}),Se.ajaxPrefilter(function(e){var t;for(t in e.headers){"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}}),Se._evalUrl=function(e,t,n){return Se.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Se.globalEval(e,t,n)}})},Se.fn.extend({wrapAll:function(e){var t;return this[0]&&(be(e)&&(e=e.call(this[0])),t=Se(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;){e=e.firstElementChild}return e}).append(this)),this},wrapInner:function(e){return be(e)?this.each(function(t){Se(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Se(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=be(e);return this.each(function(n){Se(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Se(this).replaceWith(this.childNodes)}),this}}),Se.expr.pseudos.hidden=function(e){return !Se.expr.pseudos.visible(e)},Se.expr.pseudos.visible=function(e){return !!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Se.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Kt={0:200,1223:204},Zt=Se.ajaxSettings.xhr();xe.cors=!!Zt&&"withCredentials" in Zt,xe.ajax=Zt=!!Zt,Se.ajaxTransport(function(t){var n,r;return xe.cors||Zt&&!t.crossDomain?{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields){for(a in t.xhrFields){s[a]=t.xhrFields[a]}}t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i){s.setRequestHeader(a,i[a])}n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n){throw u}}},abort:function(){n&&n()}}:void 0}),Se.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Se.globalEval(e),e}}}),Se.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Se.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=Se("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),Te.head.appendChild(t[0])},abort:function(){n&&n()}}}});var en=[],tn=/(=)\?(?=&|$)|\?\?/;Se.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||Se.expando+"_"+Pt.guid++;return this[e]=!0,e}}),Se.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(tn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=be(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(tn,"$1"+i):t.jsonp!==!1&&(t.url+=(Rt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Se.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?Se(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,en.push(i)),a&&be(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),xe.createHTMLDocument=function(){var e=Te.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),Se.parseHTML=function(e,t,n){if("string"!=typeof e){return[]}"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(xe.createHTMLDocument?(t=Te.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=Te.location.href,t.head.appendChild(r)):t=Te),i=De.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=C([e],t,o),o&&o.length&&Se(o).remove(),Se.merge([],i.childNodes))},Se.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Z(e.slice(s)),e=e.slice(0,s)),be(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&Se.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?Se("<div>").append(Se.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},Se.expr.pseudos.animated=function(e){return Se.grep(Se.timers,function(t){return e===t.elem}).length},Se.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=Se.css(e,"position"),f=Se(e),p={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=Se.css(e,"top"),u=Se.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),be(t)&&(t=t.call(e,n,Se.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using" in t?t.using.call(e,p):f.css(p)}},Se.fn.extend({offset:function(e){if(arguments.length){return void 0===e?this:this.each(function(t){Se.offset.setOffset(this,e,t)})}var t,n,r=this[0];if(r){return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===Se.css(r,"position")){t=r.getBoundingClientRect()}else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Se.css(e,"position");){e=e.parentNode}e&&e!==r&&1===e.nodeType&&(i=Se(e).offset(),i.top+=Se.css(e,"borderTopWidth",!0),i.left+=Se.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-Se.css(r,"marginTop",!0),left:t.left-i.left-Se.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Se.css(e,"position");){e=e.offsetParent}return e||Qe})}}),Se.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Se.fn[e]=function(r){return We(this,function(e,r,i){var o;return we(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i?o?o[t]:e[r]:void (o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),Se.each(["top","left"],function(e,t){Se.cssHooks[t]=I(xe.pixelPosition,function(e,n){return n?(n=M(e,t),ct.test(n)?Se(e).position()[t]+"px":n):void 0})}),Se.each({Height:"height",Width:"width"},function(e,t){Se.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Se.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return We(this,function(t,n,i){var o;return we(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?Se.css(t,n,s):Se.style(t,n,i,s)},t,a?i:void 0,a)}})}),Se.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Se.fn[t]=function(e){return this.on(t,e)}}),Se.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Se.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){Se.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var nn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Se.proxy=function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),be(e)?(r=ce.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ce.call(arguments)))},i.guid=e.guid=e.guid||Se.guid++,i):void 0},Se.holdReady=function(e){e?Se.readyWait++:Se.ready(!0)},Se.isArray=Array.isArray,Se.parseJSON=JSON.parse,Se.nodeName=o,Se.isFunction=be,Se.isWindow=we,Se.camelCase=h,Se.type=r,Se.now=Date.now,Se.isNumeric=function(e){var t=Se.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Se.trim=function(e){return null==e?"":(e+"").replace(nn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Se});var rn=e.jQuery,on=e.$;return Se.noConflict=function(t){return e.$===Se&&(e.$=on),t&&e.jQuery===Se&&(e.jQuery=rn),Se},void 0===t&&(e.jQuery=e.$=Se),Se});
  1 +#错误消息
  2 +not.null=* 必须填写
  3 +user.jcaptcha.error=验证码错误
  4 +user.jcaptcha.expire=验证码已失效
  5 +user.not.exists=用户不存在/密码错误
  6 +user.password.not.match=用户不存在/密码错误
  7 +user.password.retry.limit.count=密码输入错误{0}次
  8 +user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定10分钟
  9 +user.password.delete=对不起,您的账号已被删除
  10 +user.blocked=用户已封禁,请联系管理员
  11 +role.blocked=角色已封禁,请联系管理员
  12 +user.logout.success=退出成功
  13 +
  14 +length.not.valid=长度必须在{min}到{max}个字符之间
  15 +
  16 +user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头
  17 +user.password.not.valid=* 5-50个字符
  18 +
  19 +user.email.not.valid=邮箱格式错误
  20 +user.mobile.phone.number.not.valid=手机号格式错误
  21 +user.login.success=登录成功
  22 +user.register.success=注册成功
  23 +user.notfound=请重新登录
  24 +user.forcelogout=管理员强制退出,请重新登录
  25 +user.unknown.error=未知错误,请重新登录
  26 +
  27 +##文件上传消息
  28 +upload.exceed.maxSize=上传的文件大小超出限制的文件大小!<br/>允许的文件最大大小是:{0}MB!
  29 +upload.filename.exceed.length=上传的文件名最长{0}个字符
  30 +
  31 +##权限
  32 +no.permission=您没有数据的权限,请联系管理员添加权限 [{0}]
  33 +no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}]
  34 +no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}]
  35 +no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
  36 +no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
  37 +no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.zl.email.forwarding.mapper.RelayDomainsMapper">
  6 +
  7 + <resultMap type="RelayDomains" id="RelayDomainsResult">
  8 + <result property="id" column="id" />
  9 + <result property="sender_address" column="sender_address" />
  10 + <result property="destination_server" column="destination_server" />
  11 + </resultMap>
  12 +
  13 + <sql id="selectRelayDomainsVo">
  14 + select `id`, `sender_address`, `destination_server` from relay_domains
  15 + </sql>
  16 +
  17 + <select id="selectRelayDomainsList" parameterType="RelayDomains" resultMap="RelayDomainsResult">
  18 + <include refid="selectRelayDomainsVo"/>
  19 + <where>
  20 + <if test="id != null "> and id = #{id}</if>
  21 + <if test="sender_address != null and sender_address != ''"> and sender_address like concat('%', #{sender_address}, '%')</if>
  22 + <if test="destination_server != null and destination_server != ''"> and destination_server like concat('%', #{destination_server}, '%')</if>
  23 + </where>
  24 + </select>
  25 +
  26 + <select id="selectRelayDomainsById" parameterType="Integer" resultMap="RelayDomainsResult">
  27 + <include refid="selectRelayDomainsVo"/>
  28 + where id = #{id}
  29 + </select>
  30 +
  31 + <select id="selectRelayDomainsBySenderAddress" parameterType="String" resultMap="RelayDomainsResult">
  32 + <include refid="selectRelayDomainsVo"/>
  33 + where sender_address = #{sender_address}
  34 + </select>
  35 +
  36 + <insert id="insertRelayDomains" parameterType="RelayDomains" useGeneratedKeys="true" keyProperty="id">
  37 + insert into relay_domains
  38 + <trim prefix="(" suffix=")" suffixOverrides=",">
  39 + <if test="sender_address != null and sender_address != ''">sender_address,</if>
  40 + <if test="destination_server != null and destination_server != ''">destination_server,</if>
  41 + </trim>
  42 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  43 + <if test="sender_address != null and sender_address != ''">#{sender_address},</if>
  44 + <if test="destination_server != null and destination_server != ''">#{destination_server},</if>
  45 + </trim>
  46 + </insert>
  47 +
  48 + <update id="updateRelayDomains" parameterType="RelayDomains">
  49 + update relay_domains
  50 + <trim prefix="SET" suffixOverrides=",">
  51 + <if test="sender_address != null and sender_address != ''">sender_address = #{sender_address},</if>
  52 + <if test="destination_server != null and destination_server != ''">destination_server = #{destination_server},</if>
  53 + </trim>
  54 + where id = #{id}
  55 + </update>
  56 +
  57 + <delete id="deleteRelayDomainsById" parameterType="Integer">
  58 + delete from relay_domains where id = #{id}
  59 + </delete>
  60 +
  61 + <delete id="deleteRelayDomainsByIds" parameterType="String">
  62 + delete from relay_domains where id in
  63 + <foreach item="id" collection="array" open="(" separator="," close=")">
  64 + #{id}
  65 + </foreach>
  66 + </delete>
  67 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE configuration
  3 +PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-config.dtd">
  5 +<configuration>
  6 + <!-- 全局参数 -->
  7 + <settings>
  8 + <!-- 使全局的映射器启用或禁用缓存 -->
  9 + <setting name="cacheEnabled" value="true" />
  10 + <!-- 允许JDBC 支持自动生成主键 -->
  11 + <setting name="useGeneratedKeys" value="true" />
  12 + <!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
  13 + <setting name="defaultExecutorType" value="SIMPLE" />
  14 + <!-- 指定 MyBatis 所用日志的具体实现 -->
  15 + <setting name="logImpl" value="SLF4J" />
  16 + <!-- 使用驼峰命名法转换字段 -->
  17 + <!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
  18 + </settings>
  19 +
  20 +</configuration>