!function(p){"use strict";function i(){this.v="2.8.0-rc.14"}function h(e,t){t=t||"log",p.console&&console[t]&&console[t]("layui error hint: "+e)}var e,y=p.document,m={modules:{},status:{},timeout:10,event:{}},t=p.layui_global||{},g=(e=y.currentscript?y.currentscript.src:function(){for(var e,t=y.scripts,n=t.length-1,i=n;01e3*m.timeout/4?h(c+" is not a valid module","error"):void(m.status[c]?f():settimeout(e,4))}())}function f(){t.push(layui[c]),11e3*m.timeout/4?h(c+" is not a valid module","error"):void("string"==typeof m.modules[c]&&m.status[c]?f():settimeout(e,4))}():((a=y.createelement("script")).async=!0,a.charset="utf-8",a.src=o+((l=!0===m.version?m.v||(new date).gettime():m.version||"")?"?v="+l:""),s.appendchild(a),!a.attachevent||a.attachevent.tostring&&a.attachevent.tostring().indexof("[native code")<0||v?a.addeventlistener("load",function(e){d(e,o)},!1):a.attachevent("onreadystatechange",function(e){d(e,o)}),m.modules[c]=o)),r},i.prototype.disuse=function(e){var n=this;return e=n.isarray(e)?e:[e],n.each(e,function(e,t){m.status[t],delete n[t],delete x[t],delete n.modules[t],delete m.status[t],delete m.modules[t]}),n},i.prototype.getstyle=function(e,t){return(e=e.currentstyle||p.getcomputedstyle(e,null))[e.getpropertyvalue?"getpropertyvalue":"getattribute"](t)},i.prototype.link=function(i,a,e){var o=this,t=y.getelementsbytagname("head")[0],n=y.createelement("link"),e=((e="string"==typeof a?a:e)||i).replace(/\.|\//g,""),r=n.id="layuicss-"+e,l="creating",s=0;return n.rel="stylesheet",n.href=i+(m.debug?"?v="+(new date).gettime():""),n.media="all",y.getelementbyid(r)||t.appendchild(n),"function"==typeof a&&function e(t){var n=y.getelementbyid(r);return++s>1e3*m.timeout/100?h(i+" timeout"):void(1989===parseint(o.getstyle(n,"width"))?(t===l&&n.removeattribute("lay-status"),n.getattribute("lay-status")===l?settimeout(e,100):a()):(n.setattribute("lay-status",l),settimeout(function(){e(l)},100)))}(),o},i.prototype.addcss=function(e,t,n){return layui.link(m.dir+"css/"+e,t,n)},m.callback={},i.prototype.factory=function(e){if(layui[e])return"function"==typeof m.callback[e]?m.callback[e]:null},i.prototype.img=function(e,t,n){var i=new image;if(i.src=e,i.complete)return t(i);i.onload=function(){i.onload=null,"function"==typeof t&&t(i)},i.onerror=function(e){i.onerror=null,"function"==typeof n&&n(e)}},i.prototype.config=function(e){for(var t in e=e||{})m[t]=e[t];return this},i.prototype.modules=function(){var e,t={};for(e in x)t[e]=x[e];return t}(),i.prototype.extend=function(e){for(var t in e=e||{})this[t]||this.modules[t]?h(t+" module already exists","error"):this.modules[t]=e[t];return this},i.prototype.router=i.prototype.hash=function(e){var n={path:[],search:{},hash:((e=e||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)&&(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(e,function(e,t){/^\w+=/.test(t)?(t=t.split("="),n.search[t[0]]=t[1]):n.path.push(t)})),n},i.prototype.url=function(e){var a,t;return{pathname:(e?((e.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(a={},t=(e?((e.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),this.each(t,function(e,t){var n=t.indexof("="),i=n<0?t.substr(0,t.length):0!==n&&t.substr(0,n);i&&(a[i]=0(u.innerheight||f.documentelement.clientheight)},d.position=function(e,t,n){var i,a,o,r,l,s,c;t&&(n=n||{},e!==f&&e!==d("body")[0]||(n.clicktype="right"),l="right"===n.clicktype?{left:(l=n.e||u.event||{}).clientx,top:l.clienty,right:l.clientx,bottom:l.clienty}:e.getboundingclientrect(),s=t.offsetwidth,c=t.offsetheight,i=function(e){return f.body[e=e?"scrollleft":"scrolltop"]|f.documentelement[e]},o=l.left,r=l.bottom,"center"===n.align?o-=(s-e.offsetwidth)/2:"right"===n.align&&(o=o-s+e.offsetwidth),(o=o+s+5>(a=function(e){return f.documentelement[e?"clientwidth":"clientheight"]})("width")?a("width")-s-5:o)<5&&(o=5),r+c+5>a()&&(l.top>c+5?r=l.top-c-10:"right"===n.clicktype?(r=a()-c-10)<0&&(r=0):r=5),(s=n.position)&&(t.style.position=s),t.style.left=o+("fixed"===s?0:i(1))+"px",t.style.top=r+("fixed"===s?0:i())+"px",d.hasscrollbar()||(c=t.getboundingclientrect(),!n.system_reload&&c.bottom+5>a()&&(n.system_reload=!0,settimeout(function(){d.position(e,t,n)},50))))},d.options=function(t,n){if(n="object"==typeof n?n:{attr:n},t===f)return{};var t=d(t),i=n.attr||"lay-options",t=t.attr(i);try{return new function("return "+(t||"{}"))()}catch(e){return layui.hint().error(n.errortext||[i+'="'+t+'"',"\n parseerror: "+e].join("\n"),"error"),{}}},d.istopelem=function(n){var e=[f,d("body")[0]],i=!1;return d.each(e,function(e,t){if(t===n)return i=!0}),i},a.addstr=function(n,e){return n=n.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),d.each(e,function(e,t){new regexp("\\b"+t+"\\b").test(n)||(n=n+" "+t)}),n.replace(/^\s|\s$/,"")},a.removestr=function(n,e){return n=n.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),d.each(e,function(e,t){(t=new regexp("\\b"+t+"\\b")).test(n)&&(n=n.replace(t,""))}),n.replace(/\s+/," ").replace(/^\s|\s$/,"")},a.prototype.find=function(i){var a=this,o=0,r=[],l="object"==typeof i;return this.each(function(e,t){for(var n=l?t.contains(i):t.queryselectorall(i||null);o]|&(?=#[a-za-z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},error:function(e,t){var n="laytpl error: ";return"object"==typeof console&&console.error(n+e+"\n"+(t||"")),n+e}},l=r.exp,n=(t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var n=e,i=l("^"+o.open+"#",""),a=l(o.close+"$","");e='"use strict";var view = "'+e.replace(/\s+|\r|\t|\n/g," ").replace(l(o.open+"#"),o.open+"# ").replace(l(o.close+"}"),"} "+o.close).replace(/\\/g,"\\\\").replace(l(o.open+"!(.+?)!"+o.close),function(e){return e.replace(l("^"+o.open+"!"),"").replace(l("!"+o.close),"").replace(l(o.open+"|"+o.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(r.query(),function(e){return'";'+(e=e.replace(i,"").replace(a,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(r.query(1),function(e){var t='"+laytpl.escape(';return e.replace(/\s/g,"")===o.open+o.close?"":(e=e.replace(l(o.open+"|"+o.close),""),/^=/.test(e)?e=e.replace(/^=/,""):/^-/.test(e)&&(e=e.replace(/^-/,""),t='"+('),t+e.replace(/\\(.)/g,"$1")+')+"')})+'";return view;';try{return this.cache=e=new function("d, laytpl",e),e(t,r)}catch(e){return delete this.cache,r.error(e,n)}},t.pt.render=function(e,t){return e?(e=this.cache?this.cache(e,r):this.parse(this.tpl,e),t?void t(e):e):r.error("no data")},function(e){return"string"!=typeof e?r.error("template not found"):new t(e)});n.config=function(e){for(var t in e=e||{})o[t]=e[t]},n.v="1.2.0",e("laytpl",n)}),layui.define(function(e){"use strict";function t(e){this.config=e||{},this.config.index=++d.index,this.render(!0)}var o=document,r="getelementbyid",u="getelementsbytagname",s="layui-disabled",d=(t.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},t.prototype.view=function(){var n,i,a=this.config,o=a.groups="groups"in a?number(a.groups)||0:5,r=(a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=number(a.count)||0,a.curr=number(a.curr)||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=number(a.limit)||10,a.pages=math.ceil(a.count/a.limit)||1,a.curr>a.pages?a.curr=a.pages:a.curr<1&&(a.curr=1),o<0?o=1:o>a.pages&&(o=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页",a.pages>o?math.ceil((a.curr+(1'+a.prev+"":"",page:function(){var e=[];if(a.count<1)return"";1'+(a.first||1)+"");var t=math.floor((o-1)/2),n=1a.pages?a.pages:t:o;for(i-n…');n<=i;n++)n===a.curr?e.push('"+n+""):e.push(''+n+"");return a.pages>o&&a.pages>i&&!1!==a.last&&(i+1…'),0!==o)&&e.push(''+(a.last||a.pages)+""),e.join("")}(),next:a.next?''+a.next+"":"",count:'共 '+a.count+" 条",limit:(n=['"),refresh:['','',""].join(""),skip:['到第','','页',""].join("")};return['
',(i=[],layui.each(a.layout,function(e,t){l[t]&&i.push(l[t])}),i.join("")),"
"].join("")},t.prototype.jump=function(e,t){if(e){var n=this,i=n.config,a=e.children,o=e[u]("button")[0],r=e[u]("input")[0],e=e[u]("select")[0],l=function(){var e=number(r.value.replace(/\s|\d/g,""));e&&(i.curr=e,n.render())};if(t)return l();for(var s=0,c=a.length;si.pages||(i.curr=e,n.render())});e&&d.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=math.ceil(i.count/e)),i.limit=e,n.render()}),o&&d.on(o,"click",function(){l()})}},t.prototype.skip=function(n){var i,e;n&&(i=this,e=n[u]("input")[0])&&d.on(e,"keyup",function(e){var t=this.value,e=e.keycode;/^(37|38|39|40)$/.test(e)||(/\d/.test(t)&&(this.value=t.replace(/\d/,"")),13===e&&i.jump(n,!0))})},t.prototype.render=function(e){var t=this,n=t.config,i=t.type(),a=t.view(),i=(2===i?n.elem&&(n.elem.innerhtml=a):3===i?n.elem.html(a):o[r](n.elem)&&(o[r](n.elem).innerhtml=a),n.jump&&n.jump(n,e),o[r]("layui-laypage-"+n.index));t.jump(i),n.hash&&!e&&(location.hash="!"+n.hash+"="+n.curr),t.skip(i)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(t,e,n){return t.attachevent?t.attachevent("on"+e,function(e){e.target=e.srcelement,n.call(t,e)}):t.addeventlistener(e,n,!1),this}});e("laypage",d)}),function(a,g){"use strict";function v(e){var t=this,n=(t.index=++x.index,t.config=lay.extend({},t.config,x.config,e),lay(e.elem||t.config.elem));if(1请重新选择",invaliddate:"不在有效日期或时间范围内",formaterror:["日期格式不合法
必须遵循下述格式:
","
已为你重置"],preview:"当前选中的结果"},en:{weeks:["su","mo","tu","we","th","fr","sa"],time:["hours","minutes","seconds"],timetips:"select time",starttime:"start time",endtime:"end time",datetips:"select date",month:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tools:{confirm:"confirm",clear:"clear",now:"now"},timeout:"end time cannot be less than start time
please re-select",invaliddate:"invalid date",formaterror:["the date format error
must be followed:
","
it has been reset"],preview:"the selected result"}};return e[this.config.lang]||e.cn},v.prototype.init=function(){var e,r=this,l=r.config,t="static"===l.position,n={year:"yyyy",month:"yyyy-mm",date:"yyyy-mm-dd",time:"hh:mm:ss",datetime:"yyyy-mm-dd hh:mm:ss"};l.elem=lay(l.elem),l.eventelem=lay(l.eventelem),l.elem[0]&&((e=s.that[l.elem.attr("lay-key")])&&e.destroy&&e.destroy(),"array"!==layui.type(l.theme)&&(l.theme=[l.theme]),l.fullpanel&&("datetime"!==l.type||l.range)&&delete l.fullpanel,r.rangestr=l.range?"string"==typeof l.range?l.range:"-":"",r.rangelinked=!(!l.range||!l.rangelinked||"date"!==l.type&&"datetime"!==l.type),r.autocalendarmodel=function(){var e=r.rangelinked;return r.rangelinked=l.range&&("date"===l.type||"datetime"===l.type)&&(!r.startdate||!r.enddate||r.startdate&&r.enddate&&r.startdate.year===r.enddate.year&&r.startdate.month===r.enddate.month),lay(r.elem)[r.rangelinked?"addclass":"removeclass"]("layui-laydate-linkage"),r.rangelinked!=e},r.autocalendarmodel.auto=r.rangelinked&&"auto"===l.rangelinked,"array"===layui.type(l.range)&&(r.rangeelem=[lay(l.range[0]),lay(l.range[1])]),n[l.type]||(a.console&&console.error&&console.error("laydate type error:'"+l.type+"' is not supported"),l.type="date"),l.format===n.date&&(l.format=n[l.type]||n.date),r.format=s.formatarr(l.format),l.weekstart&&!/^[0-6]$/.test(l.weekstart)&&(e=r.lang(),l.weekstart=e.weeks.indexof(l.weekstart),-1===l.weekstart)&&(l.weekstart=0),r.exp_if="",r.exp_split="",lay.each(r.format,function(e,t){e=new regexp(d).test(t)?"\\d{"+(new regexp(d).test(r.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t,r.exp_if=r.exp_if+e,r.exp_split=r.exp_split+"("+e+")"}),r.exp_if_one=new regexp("^"+r.exp_if+"$"),r.exp_if=new regexp("^"+(l.range?r.exp_if+"\\s\\"+r.rangestr+"\\s"+r.exp_if:r.exp_if)+"$"),r.exp_split=new regexp("^"+r.exp_split+"$",""),r.isinput(l.elem[0])||"focus"===l.trigger&&(l.trigger="click"),l.elem.attr("lay-key",r.index),l.eventelem.attr("lay-key",r.index),l.mark=lay.extend({},l.calendar&&"cn"===l.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-10-1":"国庆","0-12-25":"圣诞"}:{},l.mark),lay.each(["min","max"],function(e,t){var n,i,a=[],o="number"==typeof l[t]?(n=l[t],i=new date,i=r.newdate({year:i.getfullyear(),month:i.getmonth(),date:i.getdate(),hours:e?23:0,minutes:e?59:0,seconds:e?59:0}).gettime(),a=[(e=new date(n?n<864e5?i+864e5*n:n:i)).getfullyear(),e.getmonth()+1,e.getdate()],[e.gethours(),e.getminutes(),e.getseconds()]):(a=(l[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),(l[t].match(/\d+:\d+:\d+/)||[""])[0].split(":"));l[t]={year:0|a[0]||(new date).getfullyear(),month:a[1]?(0|a[1])-1:(new date).getmonth(),date:0|a[2]||(new date).getdate(),hours:0|o[0],minutes:0|o[1],seconds:0|o[2]}}),r.elemid="layui-laydate"+l.elem.attr("lay-key"),(l.show||t)&&r.render(),t||r.events(),l.value)&&l.isinitvalue&&("date"===layui.type(l.value)?r.setvalue(r.parse(0,r.systemdate(l.value))):r.setvalue(l.value))},v.prototype.render=function(){var n,i,a,o,r=this,l=r.config,s=r.lang(),c="static"===l.position,u=r.elem=lay.elem("div",{id:r.elemid,class:["layui-laydate",l.range?" layui-laydate-range":"",r.rangelinked?" layui-laydate-linkage":"",c?" "+b:"",l.fullpanel?" laydate-theme-fullpanel":"",(n="",lay.each(l.theme,function(e,t){"default"===t||/^#/.test(t)||(n+=" laydate-theme-"+t)}),n)].join("")}),d=r.elemmain=[],f=r.elemheader=[],p=r.elemcont=[],h=r.table=[],e=r.footer=lay.elem("div",{class:"layui-laydate-footer"}),t=r.shortcut=lay.elem("ul",{class:"layui-laydate-shortcut"}),y=(l.zindex&&(u.style.zindex=l.zindex),lay.each(new array(2),function(e){if(!l.range&&0'+s.timetips+""),(l.range||"datetime"!==l.type||l.fullpanel)&&y.push(''),lay.each(l.btns,function(e,t){var n=s.tools[t]||"btn";l.range&&"now"===t||(c&&"clear"===t&&(n="cn"===l.lang?"重置":"reset"),i.push(''+n+""))}),y.push('"),y.join(""))),l.shortcuts&&(u.appendchild(t),lay(t).html((a=[],lay.each(l.shortcuts,function(e,t){a.push('
  • '+t.text+"
  • ")}),a.join(""))).find("li").on("click",function(e){var t=(l.shortcuts[this.dataset.index]||{}).value||[],i=(layui.isarray(t)||(t=[t]),l.type);(t=(lay.each(t,function(e,t){var n=[l.datetime,r.enddate][e];"time"===i&&"date"!==layui.type(t)?r.exp_if.test(t)&&(t=(t.match(r.exp_split)||[]).slice(1),lay.extend(n,{hours:0|t[0],minutes:0|t[2],seconds:0|t[4]})):lay.extend(n,r.systemdate("date"===layui.type(t)?t:new date(t))),"time"!==i&&"datetime"!==i||(r[["starttime","endtime"][e]]={hours:n.hours,minutes:n.minutes,seconds:n.seconds}),0===e?r.startdate=lay.extend({},n):r.endstate=!0,"year"===i||"month"===i||"time"===i?r.listym[e]=[n.year,n.month+1]:e&&r.autocalendarmodel.auto&&r.autocalendarmodel()}),r.checkdate("limit").calendar(null,null,"init"),lay(r.footer).find("."+d).removeclass(k)))&&"date"===t.attr("lay-type")&&t[0].click(),r.done(null,"change"),lay(this).addclass(w),"static"!==l.position&&!l.range&&l.autoconfirm&&("date"===i?r.choose(lay(u).find("td.layui-this")):"year"!==i&&"month"!==i||lay(d[0]).find("."+s+" li."+w+":not(.laydate-disabled)")[0]&&r.setvalue(r.parse()).done().remove())})),lay.each(d,function(e,t){u.appendchild(t)}),l.showbottom&&u.appendchild(e),lay.elem("style")),m=[],t=(lay.each(l.theme,function(e,t){/^#/.test(t)&&(o=!0,m.push(["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} li.layui-this,#{{id}} td.layui-this>div{background-color:{{theme}} !important;}",-1!==l.theme.indexof("circle")?"":"#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,r.elemid).replace(/{{theme}}/g,t)))}),l.shortcuts&&l.range&&m.push("#{{id}}.layui-laydate-range{width: 628px;}".replace(/{{id}}/g,r.elemid)),m.length&&(m=m.join(""),"stylesheet"in y?(y.setattribute("type","text/css"),y.stylesheet.csstext=m):y.innerhtml=m,o&&lay(u).addclass("laydate-theme-molv"),u.appendchild(y)),r.remove(v.thiselemdate),x.thisid=l.id,c?l.elem.append(u):(g.body.appendchild(u),r.position()),l.shade?'
    ':"");u.insertadjacenthtml("beforebegin",t),r.checkdate().calendar(null,0,"init"),r.changeevent(),v.thiselemdate=r.elemid,r.renderadditional(),"function"==typeof l.ready&&l.ready(lay.extend({},l.datetime,{month:l.datetime.month+1})),r.preview()},v.prototype.remove=function(e){var t=this,n=t.config,i=lay("#"+(e||t.elemid));return i[0]&&(i.hasclass(b)||t.checkdate(function(){i.remove(),delete t.startdate,delete t.enddate,delete t.endstate,delete t.starttime,delete t.endtime,delete x.thisid,"function"==typeof n.close&&n.close(t)}),lay("."+a).remove()),t},v.prototype.position=function(){var e=this.config;return lay.position(this.bindelem||e.elem[0],this.elem,{position:e.position}),this},v.prototype.hint=function(e){var t=this,n=(t.config,lay.elem("div",{class:r}));t.elem&&(n.innerhtml=e||"",lay(t.elem).find("."+r).remove(),t.elem.appendchild(n),cleartimeout(t.hintimer),t.hintimer=settimeout(function(){lay(t.elem).find("."+r).remove()},3e3))},v.prototype.getasym=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),11h[1]&&(e.year=h[1],l=!0),11i)&&(e.date=i,l=!0)}function n(i,a,o){var r=["starttime","endtime"];a=(a.match(s.exp_split)||[]).slice(1),o=o||0,c.range&&(s[r[o]]=s[r[o]]||{}),lay.each(s.format,function(e,t){var n=parsefloat(a[e]);a[e].lengths.getdatetime(c.max)?(d=c.datetime=lay.extend({},c.max),r=!0):s.getdatetime(d)s.getdatetime(c.max))&&(s.enddate=lay.extend({},c.max),r=!0),s.starttime={hours:c.datetime.hours,minutes:c.datetime.minutes,seconds:c.datetime.seconds},s.endtime={hours:s.enddate.hours,minutes:s.enddate.minutes,seconds:s.enddate.seconds},"month"===c.type)&&(c.datetime.date=1,s.enddate.date=1),r&&p&&(s.setvalue(s.parse()),s.hint("value "+u.invaliddate+u.formaterror[1])),s.startdate=s.startdate||p&&lay.extend({},c.datetime),s.autocalendarmodel.auto&&s.autocalendarmodel(),s.endstate=!c.range||!s.rangelinked||!(!s.startdate||!s.enddate),e&&e()),s},v.prototype.mark=function(e,n){var i,t=this.config;return lay.each(t.mark,function(e,t){(e=e.split("-"))[0]!=n[0]&&0!=e[0]||e[1]!=n[1]&&0!=e[1]||e[2]!=n[2]||(i=t||n[2])}),i&&e.find("div").html(''+i+""),this},v.prototype.holidays=function(i,a){var e=this.config,o=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(n,e){lay.each(e,function(e,t){t===i.attr("lay-ymd")&&i.find("div").html('"+a[2]+"")})}),this},v.prototype.limit=function(t){t=t||{};var a=this,e=a.config,o={},n=t.index>(t.time?0:41)?a.enddate:e.datetime;return lay.each({now:lay.extend({},n,t.date||{}),min:e.min,max:e.max},function(e,n){var i;o[e]=a.newdate(lay.extend({year:n.year,month:"year"===t.type?0:n.month,date:"year"===t.type||"month"===t.type?1:n.date},(i={},lay.each(t.time,function(e,t){i[t]=n[t]}),i))).gettime()}),n=o.nowh[1]&&(s.year=h[1],l.hint(u.invaliddate)),l.firstdate||(l.firstdate=lay.extend({},s)),c.setfullyear(s.year,s.month,1),a=(c.getday()+(7-i.weekstart))%7,o=x.getenddate(s.month||12,s.year),r=x.getenddate(s.month+1,s.year),lay.each(f,function(e,t){var n=[s.year,s.month],i=0;(t=lay(t)).removeattr("class"),e"+n[2]+""),l.mark(t,n).holidays(t,n).limit({elem:t,date:{year:n[0],month:n[1]-1,date:n[2]},index:e})}),lay(p[0]).attr("lay-ym",s.year+"-"+(s.month+1)),lay(p[1]).attr("lay-ym",s.year+"-"+(s.month+1)),"cn"===i.lang?(lay(p[0]).attr("lay-type","year").html(s.year+" 年"),lay(p[1]).attr("lay-type","month").html(s.month+1+" 月")):(lay(p[0]).attr("lay-type","month").html(u.month[s.month]),lay(p[1]).attr("lay-type","year").html(s.year)),d&&(i.range?!e&&"init"===n||(l.listym=[[(l.startdate||i.datetime).year,(l.startdate||i.datetime).month+1],[l.enddate.year,l.enddate.month+1]],l.list(i.type,0).list(i.type,1),"time"===i.type?l.setbtnstatus("时间",lay.extend({},l.systemdate(),l.starttime),lay.extend({},l.systemdate(),l.endtime)):l.setbtnstatus(!0)):(l.listym=[[s.year,s.month+1]],l.list(i.type,0))),i.range&&"init"===n&&(l.rangelinked?(c=l.getasym(s.year,s.month,t?"sub":null),l.calendar(lay.extend({},s,{year:c[0],month:c[1]}),1-t)):l.calendar(null,1-t)),i.range||(f=["hours","minutes","seconds"],l.limit({elem:lay(l.footer).find(".laydate-btns-now"),date:l.systemdate(),index:0,time:f}),l.limit({elem:lay(l.footer).find(t),index:0,time:f})),l.setbtnstatus(),lay(l.shortcut).find("li."+w).removeclass(w),i.range&&!d&&"init"!==n&&l.stamprange(),l},v.prototype.list=function(i,a){var o,r,e,l,s=this,c=s.config,u=s.rangelinked?c.datetime:[c.datetime,s.enddate][a],d=s.lang(),t=c.range&&"date"!==c.type&&"datetime"!==c.type,f=lay.elem("ul",{class:c+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[i]}),n=s.elemheader[a],p=lay(n[2]).find("span"),h=s.elemcont[a||0],y=lay(h).find("."+c)[0],m="cn"===c.lang,g=m?"年":"",v=s.listym[a]||{},x=["hours","minutes","seconds"],b=["starttime","endtime"][a];return v[0]<1&&(v[0]=1),"year"===i?(e=o=v[0]-7,o<1&&(e=o=1),lay.each(new array(15),function(e){var t=lay.elem("li",{"lay-ym":o}),n={year:o,month:0,date:1};o==v[0]&&lay(t).addclass(w),t.innerhtml=o+g,f.appendchild(t),s.limit({elem:lay(t),date:n,index:a,type:i}),o++}),lay(p[m?0:1]).attr("lay-ym",o-8+"-"+v[1]).html(e+g+" - "+(o-1)+g)):"month"===i?(lay.each(new array(12),function(e){var t=lay.elem("li",{"lay-ym":e}),n={year:v[0],month:e,date:1};e+1==v[1]&&lay(t).addclass(w),t.innerhtml=d.month[e]+(m?"月":""),f.appendchild(t),s.limit({elem:lay(t),date:n,index:a,type:i})}),lay(p[m?0:1]).attr("lay-ym",v[0]+"-"+v[1]).html(v[0]+g)):"time"===i&&(r=function(){lay(f).find("ol").each(function(n,e){lay(e).find("li").each(function(e,t){s.limit({elem:lay(t),date:[{hours:e},{hours:s[b].hours,minutes:e},{hours:s[b].hours,minutes:s[b].minutes,seconds:e}][n],index:a,time:[["hours"],["hours","minutes"],["hours","minutes","seconds"]][n]})})}),c.range||s.limit({elem:lay(s.footer).find(t),date:s[b],inedx:0,time:["hours","minutes","seconds"]})},c.range?s[b]||(s[b]="starttime"===b?u:s.enddate):s[b]=u,lay.each([24,60,60],function(t,e){var n=lay.elem("li"),i=["

    "+d.time[t]+"

      "];lay.each(new array(e),function(e){i.push(""+lay.digit(e,2)+"")}),n.innerhtml=i.join("")+"
    ",f.appendchild(n)}),r()),y&&h.removechild(y),h.appendchild(f),"year"===i||"month"===i?(lay(s.elemmain[a]).addclass("laydate-ym-show"),lay(f).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasclass(k)||(s.rangelinked?lay.extend(u,{year:"year"===i?e:v[0],month:"year"===i?v[1]-1:e}):u[i]=e,"year"===c.type||"month"===c.type?(lay(f).find("."+w).removeclass(w),lay(this).addclass(w),"month"===c.type&&"year"===i&&(s.listym[a][0]=e,t&&((a?s.enddate:u).year=e),s.list("month",a))):(s.checkdate("limit").calendar(u,a,"init"),s.closelist()),s.setbtnstatus(),!c.range&&c.autoconfirm&&("month"===c.type&&"month"===i||"year"===c.type&&"year"===i)&&s.setvalue(s.parse()).done().remove(),s.autocalendarmodel.auto&&!s.rangelinked?s.choose(lay(h).find("td.layui-this"),a):s.endstate&&s.done(null,"change"),lay(s.footer).find("."+d).removeclass(k))})):(e=lay.elem("span",{class:e}),l=function(){lay(f).find("ol").each(function(e){var n=this,t=lay(n).find("li");n.scrolltop=30*(s[b][x[e]]-2),n.scrolltop<=0&&t.each(function(e,t){if(!lay(this).hasclass(k))return n.scrolltop=30*(e-2),!0})})},p=lay(n[2]).find("."+e),l(),e.innerhtml=c.range?[d.starttime,d.endtime][a]:d.timetips,lay(s.elemmain[a]).addclass("laydate-time-show"),p[0]&&p.remove(),n[2].appendchild(e),lay(f).find("ol").each(function(t){var n=this;lay(n).find("li").on("click",function(){var e=0|this.innerhtml;lay(this).hasclass(k)||(c.range?s[b][x[t]]=e:u[x[t]]=e,lay(n).find("."+w).removeclass(w),lay(this).addclass(w),r(),l(),(s.enddate||"time"===c.type||"datetime"===c.type&&c.fullpanel)&&s.done(null,"change"),s.setbtnstatus())})})),s},v.prototype.listym=[],v.prototype.closelist=function(){var n=this;n.config,lay.each(n.elemcont,function(e,t){lay(this).find("."+c).remove(),lay(n.elemmain[e]).removeclass("laydate-ym-show laydate-time-show")}),lay(n.elem).find("."+e).remove()},v.prototype.setbtnstatus=function(e,t,n){var i=this,a=i.config,o=i.lang(),r=lay(i.footer).find(t);a.range&&"time"!==a.type&&(t=t||(i.rangelinked?i.startdate:a.datetime),n=n||i.enddate,a=!i.endstate||i.newdate(t).gettime()>i.newdate(n).gettime(),i.limit({date:t})||i.limit({date:n})?r.addclass(k):r[a?"addclass":"removeclass"](k),e)&&a&&i.hint("string"==typeof e?o.timeout.replace(/\u65e5\u671f/g,e):o.timeout)},v.prototype.parse=function(e,t){var n=this,i=n.config,t=t||("end"==e?lay.extend({},n.enddate,n.endtime):i.range?lay.extend({},n.rangelinked?n.startdate:i.datetime,n.starttime):i.datetime),t=x.parse(t,n.format,1);return i.range&&void 0===e?t+" "+n.rangestr+" "+n.parse("end"):t},v.prototype.newdate=function(e){return e=e||{},new date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},v.prototype.getdatetime=function(e){return this.newdate(e).gettime()},v.prototype.setvalue=function(e){var t=this,n=t.config,i=t.bindelem||n.elem[0];return"static"!==n.position&&(e=e||"",t.isinput(i)?lay(i).val(e):(n=t.rangeelem)?("array"!==layui.type(e)&&(e=e.split(" "+t.rangestr+" ")),n[0].val(e[0]||""),n[1].val(e[1]||"")):(0===lay(i).find("*").length&&lay(i).html(e),lay(i).attr("lay-date",e))),t},v.prototype.preview=function(){var e,t=this,n=t.config;n.ispreview&&(e=lay(t.elem).find("."+l),n=!n.range||(t.rangelinked?t.endstate:t.enddate)?t.parse():"",e.html(n),e.html())&&(e.css({color:"var(--color-primary)"}),settimeout(function(){e.css({color:"#777"})},300))},v.prototype.renderadditional=function(){this.config.fullpanel&&this.list("time",0)},v.prototype.stamprange=function(){var i,a=this,o=a.config,r=a.rangelinked?a.startdate:o.datetime,e=lay(a.elem).find("td");o.range&&!a.endstate&&lay(a.footer).find(t).addclass(k),r=r&&a.newdate({year:r.year,month:r.month,date:r.date}).gettime(),i=a.endstate&&a.enddate&&a.newdate({year:a.enddate.year,month:a.enddate.month,date:a.enddate.date}).gettime(),lay.each(e,function(e,t){var n=lay(t).attr("lay-ymd").split("-"),n=a.newdate({year:n[0],month:n[1]-1,date:n[2]}).gettime();o.rangelinked&&!a.startdate&&n===a.newdate(a.systemdate()).gettime()&&lay(t).addclass(lay(t).hasclass(c)||lay(t).hasclass(u)?"":"laydate-day-now"),lay(t).removeclass(l+" "+w),n!==r&&n!==i||(a.rangelinked||!a.rangelinked&&(e<42?n===r:n===i))&&lay(t).addclass(lay(t).hasclass(c)||lay(t).hasclass(u)?l:w),ri.getdatetime(a.max)&&(i[t]={hours:a.max.hours,minutes:a.max.minutes,seconds:a.max.seconds},lay.extend(o,i[t])))}),n||(i.startdate=lay.extend({},o)),i.endstate&&!i.limit({date:i.thisdatetime(1-n)})&&(((r=i.endstate&&i.autocalendarmodel.auto?i.autocalendarmodel():r)||i.rangelinked&&i.endstate)&&i.newdate(i.startdate)>i.newdate(i.enddate)&&(e=i.startdate.year===i.enddate.year&&i.startdate.month===i.enddate.month&&i.startdate.date===i.enddate.date,l=i.startdate,i.startdate=lay.extend({},i.enddate,e?{}:i.starttime),a.datetime=lay.extend({},i.startdate),i.enddate=lay.extend({},l,e?{}:i.endtime),e)&&(l=i.starttime,i.starttime=i.endtime,i.endtime=l),r)&&(a.datetime=lay.extend({},i.startdate)),i.rangelinked?(e=lay.extend({},o),!t||n||r||(l=i.getasym(o.year,o.month,"sub"),lay.extend(a.datetime,{year:l[0],month:l[1]})),i.calendar(e,t,r?"init":null)):i.calendar(null,n,r?"init":null),i.endstate&&i.done(null,"change")):"static"===a.position?i.calendar().done().done(null,"change"):"date"===a.type?a.autoconfirm?i.setvalue(i.parse()).done().remove():i.calendar().done(null,"change"):"datetime"===a.type&&i.calendar().done(null,"change"))},v.prototype.tool=function(t,e){var n=this,i=n.config,a=n.lang(),o=i.datetime,r="static"===i.position,l={datetime:function(){lay(t).hasclass(k)||(n.list("time",0),i.range&&n.list("time",1),lay(t).attr("lay-type","date").html(n.lang().datetips))},date:function(){n.closelist(),lay(t).attr("lay-type","datetime").html(n.lang().timetips)},clear:function(){r&&(lay.extend(o,n.firstdate),n.calendar()),i.range&&(delete i.datetime,delete n.enddate,delete n.starttime,delete n.endtime),n.setvalue(""),n.done(null,"onclear").done(["",{},{}]).remove()},now:function(){var e=new date;if(lay(t).hasclass(k))return n.hint(a.tools.now+", "+a.invaliddate);lay.extend(o,n.systemdate(),{hours:e.gethours(),minutes:e.getminutes(),seconds:e.getseconds()}),n.setvalue(n.parse()),r&&n.calendar(),n.done(null,"onnow").done().remove()},confirm:function(){if(i.range){if(lay(t).hasclass(k))return n.hint("time"===i.type?a.timeout.replace(/\u65e5\u671f/g,"时间"):a.timeout)}else if(lay(t).hasclass(k))return n.hint(a.invaliddate);n.setvalue(n.parse()),n.done(null,"onconfirm").done().remove()}};l[e]&&l[e]()},v.prototype.change=function(i){function e(e){var t=lay(s).find(".laydate-year-list")[0],n=lay(s).find(".laydate-month-list")[0];return t&&(c[0]=e?c[0]-15:c[0]+15,a.list("year",i)),n&&(e?c[0]--:c[0]++,a.list("month",i)),(t||n)&&(lay.extend(r,{year:c[0]}),l&&(r.year=c[0]),o.range||a.done(null,"change"),o.range||a.limit({elem:lay(a.footer).find(t),date:{year:c[0]}})),a.setbtnstatus(),t||n}var a=this,o=a.config,r=a.thisdatetime(i),l=o.range&&("year"===o.type||"month"===o.type),s=a.elemcont[i||0],c=a.listym[i];return{prevyear:function(){e("sub")||(a.rangelinked?(o.datetime.year--,a.checkdate("limit").calendar(null,null,"init")):(r.year--,a.checkdate("limit").calendar(null,i),a.autocalendarmodel.auto?a.choose(lay(s).find("td.layui-this"),i):a.done(null,"change")))},prevmonth:function(){a.rangelinked&&(r=o.datetime);var e=a.getasym(r.year,r.month,"sub");lay.extend(r,{year:e[0],month:e[1]}),a.checkdate("limit").calendar(null,null,"init"),a.rangelinked||(a.autocalendarmodel.auto?a.choose(lay(s).find("td.layui-this"),i):a.done(null,"change"))},nextmonth:function(){a.rangelinked&&(r=o.datetime);var e=a.getasym(r.year,r.month);lay.extend(r,{year:e[0],month:e[1]}),a.checkdate("limit").calendar(null,null,"init"),a.rangelinked||(a.autocalendarmodel.auto?a.choose(lay(s).find("td.layui-this"),i):a.done(null,"change"))},nextyear:function(){e()||(a.rangelinked?(o.datetime.year++,a.checkdate("limit").calendar(null,0,"init")):(r.year++,a.checkdate("limit").calendar(null,i),a.autocalendarmodel.auto?a.choose(lay(s).find("td.layui-this"),i):a.done(null,"change")))}}},v.prototype.changeevent=function(){var a=this;a.config,lay(a.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(a.elemheader,function(i,e){lay(e[0]).on("click",function(e){a.change(i).prevyear()}),lay(e[1]).on("click",function(e){a.change(i).prevmonth()}),lay(e[2]).find("span").on("click",function(e){var t=(n=lay(this)).attr("lay-ym"),n=n.attr("lay-type");t&&(t=t.split("-"),a.listym[i]=[0|t[0],0|t[1]],a.list(n,i),lay(a.footer).find("."+d).addclass(k))}),lay(e[3]).on("click",function(e){a.change(i).nextmonth()}),lay(e[4]).on("click",function(e){a.change(i).nextyear()})}),lay.each(a.table,function(e,t){lay(t).find("td").on("click",function(){a.choose(lay(this),e)})}),lay(a.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");a.tool(this,e)})},v.prototype.isinput=function(e){return/input|textarea/.test(e.tagname.tolocalelowercase())||/input|textarea/.test(e.tagname)},v.prototype.events=function(){var e,t=this,n=t.config;n.elem[0]&&!n.elem[0].eventhandler&&(n.elem.on(n.trigger,e=function(){x.thisid!==n.id&&(t.bindelem=this,t.render())}),n.elem[0].eventhandler=!0,n.eventelem.on(n.trigger,e),t.destroy=function(){t.remove(),n.elem.off(n.trigger,e),n.elem.removeattr("lay-key"),n.elem[0].eventhandler=!1,n.eventelem.off(n.trigger,e),n.eventelem.removeattr("lay-key"),delete s.that[n.id]})},s.that={},s.getthis=function(e){var t=s.that[e];return!t&&i&&layui.hint().error(e?n+" instance with id '"+e+"' not found":"id argument required"),t},o.run=function(i){i(g).on("mousedown",function(e){var t,n;x.thisid&&(t=s.getthis(x.thisid))&&(n=t.config,e.target!==n.elem[0])&&e.target!==n.eventelem[0]&&e.target!==i(n.closestop)[0]&&t.remove()}).on("keydown",function(e){var t;x.thisid&&(t=s.getthis(x.thisid))&&"static"!==t.config.position&&13===e.keycode&&i("#"+t.elemid)[0]&&t.elemid===v.thiselemdate&&(e.preventdefault(),i(t.footer).find(t)[0].click())}),i(a).on("resize",function(){if(x.thisid){var e=s.getthis(x.thisid);if(e)return!(!e.elem||!i(".layui-laydate")[0])&&void e.position()}})},x.render=function(e){return e=new v(e),s.call(e)},x.getinst=function(e){if(e=s.getthis(e))return e.inst},x.parse=function(n,i,a){return n=n||{},i=((i="string"==typeof i?s.formatarr(i):i)||[]).concat(),lay.each(i,function(e,t){/yyyy|y/.test(t)?i[e]=lay.digit(n.year,t.length):/mm|m/.test(t)?i[e]=lay.digit(n.month+(a||0),t.length):/dd|d/.test(t)?i[e]=lay.digit(n.date,t.length):/hh|h/.test(t)?i[e]=lay.digit(n.hours,t.length):/mm|m/.test(t)?i[e]=lay.digit(n.minutes,t.length):/ss|s/.test(t)&&(i[e]=lay.digit(n.seconds,t.length))}),i.join("")},x.getenddate=function(e,t){var n=new date;return n.setfullyear(t||n.getfullyear(),e||n.getmonth()+1,1),new date(n.gettime()-864e5).getdate()},x.close=function(e){if(e=s.getthis(e||x.thisid))return e.remove()},x.destroy=function(e){if(e=s.getthis(e||x.thisid))return e.destroy()},i?(x.ready(),layui.define("lay",function(e){x.path=layui.cache.dir,o.run(lay),e(n,x)})):"function"==typeof define&&define.amd?define(function(){return o.run(lay),x}):(x.ready(),o.run(a.lay),a.laydate=x)}(window,window.document),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new error("jquery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(w,e){function t(e,t){return t.touppercase()}var d=[],h=w.document,u=d.slice,y=d.concat,l=d.push,a=d.indexof,n={},i=n.tostring,m=n.hasownproperty,g={},o="1.12.4",k=function(e,t){return new k.fn.init(e,t)},r=/^[\s\ufeff\xa0]+|[\s\ufeff\xa0]+$/g,s=/^-ms-/,c=/-([\da-z])/gi;function f(e){var t=!!e&&"length"in e&&e.length,n=k.type(e);return"function"!==n&&!k.iswindow(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&i|56320)}function t(){k()}var e,h,b,o,i,y,f,m,w,s,c,k,c,a,t,g,r,l,v,e="sizzle"+ +new date,x=n.document,d=0,u=0,p=ae(),l=ae(),s=ae(),a=function(e,t){return e===t&&(c=!0),0},n={}.hasownproperty,m=[],j=m.pop,i=m.push,h=m.push,f=m.slice,_=function(e,t){for(var n=0,i=e.length;n+~]|"+p+")"+p+"*"),x=new regexp("="+p+"*([^\\]'\"]*?)"+p+"*\\]","g"),v=new regexp(w),u=new regexp("^"+o+"$"),g={id:new regexp("^#("+o+")"),class:new regexp("^\\.("+o+")"),tag:new regexp("^("+o+"|[*])"),attr:new regexp("^"+r),pseudo:new regexp("^"+w),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+p+"*(even|odd|(([+-]|)(\\d*)n|)"+p+"*(?:([+-]|)"+p+"*(\\d+)|))"+p+"*\\)|)","i"),bool:new regexp("^(?:"+q+")$","i"),needscontext:new regexp("^"+p+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+p+"*((?:-\\d)?\\d*)"+p+"*\\)|)(?=[^-]|$)","i")},k=/^(?:input|select|textarea|button)$/i,j=/^h\d$/i,q=/^[^{]+\{\s*\[native \w/,z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new regexp("\\\\([\\da-f]{1,6}"+p+"?|("+p+")|.)","ig");try{h.apply(m=f.call(x.childnodes),x.childnodes),m[x.childnodes.length].nodetype}catch(e){h={apply:m.length?function(e,t){i.apply(e,f.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,n,i){var a,o,r,l,s,c,u,d,f=t&&t.ownerdocument,p=t?t.nodetype:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!i&&((t?t.ownerdocument||t:x)!==c&&k(t),t=t||c,t)){if(11!==p&&(c=z.exec(e)))if(a=c[1]){if(9===p){if(!(r=t.getelementbyid(a)))return n;if(r.id===a)return n.push(r),n}else if(f&&(r=f.getelementbyid(a))&&v(t,r)&&r.id===a)return n.push(r),n}else{if(c[2])return h.apply(n,t.getelementsbytagname(e)),n;if((a=c[3])&&h.getelementsbyclassname&&t.getelementsbyclassname)return h.apply(n,t.getelementsbyclassname(a)),n}if(h.qsa&&!s[e+" "]&&(!g||!g.test(e))){if(1!==p)f=t,d=e;else if("object"!==t.nodename.tolowercase()){for((l=t.getattribute("id"))?l=l.replace(te,"\\$&"):t.setattribute("id",l=e),o=(u=y(e)).length,s=u.test(l)?"#"+l:"[id='"+l+"']";o--;)u[o]=s+" "+fe(u[o]);d=u.join(","),f=ee.test(e)&&ue(t.parentnode)||t}if(d)try{return h.apply(n,f.queryselectorall(d)),n}catch(e){}finally{l===e&&t.removeattribute("id")}}}return m(e.replace(z,"$1"),t,n,i)}function ae(){var n=[];function i(e,t){return n.push(e+" ")>b.cachelength&&delete i[n.shift()],i[e+" "]=t}return i}function oe(e){return e[e]=!0,e}function re(e){var t=c.createelement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentnode&&t.parentnode.removechild(t)}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)b.attrhandle[n[i]]=t}function se(e,t){var n=t&&e,i=n&&1===e.nodetype&&1===t.nodetype&&(~t.sourceindex||1<<31)-(~e.sourceindex||1<<31);if(i)return i;if(n)for(;n=n.nextsibling;)if(n===t)return-1;return e?1:-1}function ce(r){return oe(function(o){return o=+o,oe(function(e,t){for(var n,i=r([],e.length,o),a=i.length;a--;)e[n=i[a]]&&(e[n]=!(t[n]=e[n]))})})}function ue(e){return e&&void 0!==e.getelementsbytagname&&e}for(e in h=ie.support={},i=ie.isxml=function(e){return!!(e=e&&(e.ownerdocument||e).documentelement)&&"html"!==e.nodename},k=ie.setdocument=function(e){return(e=e?e.ownerdocument||e:x)!==c&&9===e.nodetype&&e.documentelement&&(a=(c=e).documentelement,t=!i(c),(e=c.defaultview)&&e.top!==e&&(e.addeventlistener?e.addeventlistener("unload",t,!1):e.attachevent&&e.attachevent("onunload",t)),h.attributes=re(function(e){return e.classname="i",!e.getattribute("classname")}),h.getelementsbytagname=re(function(e){return e.appendchild(c.createcomment("")),!e.getelementsbytagname("*").length}),h.getelementsbyclassname=q.test(c.getelementsbyclassname),h.getbyid=re(function(e){return a.appendchild(e).id=e,!c.getelementsbyname||!c.getelementsbyname(e).length}),h.getbyid?(b.find.id=function(e,t){if(void 0!==t.getelementbyid&&t)return(e=t.getelementbyid(e))?[e]:[]},b.filter.id=function(e){var t=e.replace(ne,d);return function(e){return e.getattribute("id")===t}}):(delete b.find.id,b.filter.id=function(e){var t=e.replace(ne,d);return function(e){return(e=void 0!==e.getattributenode&&e.getattributenode("id"))&&e.value===t}}),b.find.tag=h.getelementsbytagname?function(e,t){return void 0!==t.getelementsbytagname?t.getelementsbytagname(e):h.qsa?t.queryselectorall(e):void 0}:function(e,t){var n,i=[],a=0,o=t.getelementsbytagname(e);if("*"!==e)return o;for(;n=o[a++];)1===n.nodetype&&i.push(n);return i},b.find.class=h.getelementsbyclassname&&function(e,t){if(void 0!==t.getelementsbyclassname&&t)return t.getelementsbyclassname(e)},r=[],g=[],(h.qsa=q.test(c.queryselectorall))&&(re(function(e){a.appendchild(e).innerhtml="",e.queryselectorall("[msallowcapture^='']").length&&g.push("[*^$]="+p+"*(?:''|\"\")"),e.queryselectorall("[selected]").length||g.push("\\["+p+"*(?:value|"+q+")"),e.queryselectorall("[id~="+e+"-]").length||g.push("~="),e.queryselectorall(":checked").length||g.push(":checked"),e.queryselectorall("a#"+e+"+*").length||g.push(".#.+[+~]")}),re(function(e){var t=c.createelement("input");t.setattribute("type","hidden"),e.appendchild(t).setattribute("name","d"),e.queryselectorall("[name=d]").length&&g.push("name"+p+"*[*^$|!~]?="),e.queryselectorall(":enabled").length||g.push(":enabled",":disabled"),e.queryselectorall("*,:x"),g.push(",.*:")})),(h.matchesselector=q.test(l=a.matches||a.webkitmatchesselector||a.mozmatchesselector||a.omatchesselector||a.msmatchesselector))&&re(function(e){h.disconnectedmatch=l.call(e,"div"),l.call(e,"[s!='']:x"),r.push("!=",w)}),g=g.length&&new regexp(g.join("|")),r=r.length&&new regexp(r.join("|")),e=q.test(a.comparedocumentposition),v=e||q.test(a.contains)?function(e,t){var n=9===e.nodetype?e.documentelement:e;return e===(t=t&&t.parentnode)||!(!t||1!==t.nodetype||!(n.contains?n.contains(t):e.comparedocumentposition&&16&e.comparedocumentposition(t)))}:function(e,t){if(t)for(;t=t.parentnode;)if(t===e)return!0;return!1},a=e?function(e,t){var n;return e===t?(c=!0,0):!e.comparedocumentposition-!t.comparedocumentposition||(1&(n=(e.ownerdocument||e)===(t.ownerdocument||t)?e.comparedocumentposition(t):1)||!h.sortdetached&&t.comparedocumentposition(e)===n?e===c||e.ownerdocument===x&&v(x,e)?-1:t===c||t.ownerdocument===x&&v(x,t)?1:s?_(s,e)-_(s,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,a=e.parentnode,o=t.parentnode,r=[e],l=[t];if(!a||!o)return e===c?-1:t===c?1:a?-1:o?1:s?_(s,e)-_(s,t):0;if(a===o)return se(e,t);for(n=e;n=n.parentnode;)r.unshift(n);for(n=t;n=n.parentnode;)l.unshift(n);for(;r[i]===l[i];)i++;return i?se(r[i],l[i]):r[i]===x?-1:l[i]===x?1:0}),c},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesselector=function(e,t){if((e.ownerdocument||e)!==c&&k(e),t=t.replace(x,"='$1']"),h.matchesselector&&t&&!s[t+" "]&&(!r||!r.test(t))&&(!g||!g.test(t)))try{var n=l.call(e,t);if(n||h.disconnectedmatch||e.document&&11!==e.document.nodetype)return n}catch(e){}return 0":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(e){return e[1]=e[1].replace(ne,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,d),"~="===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]||ie.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]&&ie.error(e[0]),e},pseudo:function(e){var t,n=!e[6]&&e[2];return g.child.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&v.test(n)&&(t=(t=y(n,!0))&&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(ne,d).tolowercase();return"*"===e?function(){return!0}:function(e){return e.nodename&&e.nodename.tolowercase()===t}},class:function(e){var t=p[e+" "];return t||(t=new regexp("(^|"+p+")"+e+"("+p+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.classname&&e.classname||void 0!==e.getattribute&&e.getattribute("class")||"")})},attr:function(t,n,i){return function(e){return null==(e=ie.attr(e,t))?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexof(i):"*="===n?i&&-1(?:<\/\1>|)$/,c=/^.[^:#\[\.,]*$/;function t(e,n,i){if(k.isfunction(n))return k.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodetype)return k.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(c.test(n))return k.filter(n,e,i);n=k.filter(n,e)}return k.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/,l=((k.fn.init=function(e,t,n){if(e){if(n=n||e,"string"!=typeof e)return e.nodetype?(this.context=this[0]=e,this.length=1,this):k.isfunction(e)?void 0!==n.ready?n.ready(e):e(k):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),k.makearray(e,this));if(!(i="<"===e.charat(0)&&">"===e.charat(e.length-1)&&3<=e.length?[null,e,null]:d.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parsehtml(i[1],t&&t.nodetype?t.ownerdocument||t:h,!0)),b.test(i[1])&&k.isplainobject(t))for(var i in t)k.isfunction(this[i])?this[i](t[i]):this.attr(i,t[i])}else{if((n=h.getelementbyid(i[2]))&&n.parentnode){if(n.id!==i[2])return e.find(e);this.length=1,this[0]=n}this.context=h,this.selector=e}}return this}).prototype=k.fn,e=k(h),/^(?:parents|prev(?:until|all))/),s={children:!0,contents:!0,next:!0,prev:!0};function a(e,t){for(;(e=e[t])&&1!==e.nodetype;);return e}k.fn.extend({has:function(e){var t,n=k(e,this),i=n.length;return this.filter(function(){for(t=0;t
    a",g.leadingwhitespace=3===gt.firstchild.nodetype,g.tbody=!gt.getelementsbytagname("tbody").length,g.htmlserialize=!!gt.getelementsbytagname("link").length,g.html5clone="<:nav>"!==h.createelement("nav").clonenode(!0).outerhtml,_t.type="checkbox",_t.checked=!0,mt.appendchild(_t),g.appendchecked=_t.checked,gt.innerhtml="",g.noclonechecked=!!gt.clonenode(!0).lastchild.defaultvalue,mt.appendchild(gt),(_t=h.createelement("input")).setattribute("type","radio"),_t.setattribute("checked","checked"),_t.setattribute("name","t"),gt.appendchild(_t),g.checkclone=gt.clonenode(!0).clonenode(!0).lastchild.checked,g.nocloneevent=!!gt.addeventlistener,gt[k.expando]=1,g.attributes=!gt.getattribute(k.expando);var ee={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:g.htmlserialize?[0,"",""]:[1,"x
    ","
    "]};function te(e,t){var n,i,a=0,o=void 0!==e.getelementsbytagname?e.getelementsbytagname(t||"*"):void 0!==e.queryselectorall?e.queryselectorall(t||"*"):void 0;if(!o)for(o=[],n=e.childnodes||e;null!=(i=n[a]);a++)!t||k.nodename(i,t)?o.push(i):k.merge(o,te(i,t));return void 0===t||t&&k.nodename(e,t)?k.merge([e],o):o}function ne(e,t){for(var n,i=0;null!=(n=e[i]);i++)k._data(n,"globaleval",!t||k._data(t[i],"globaleval"))}ee.optgroup=ee.option,ee.tbody=ee.tfoot=ee.colgroup=ee.caption=ee.thead,ee.th=ee.td;var ie=/<|&#?\w+;/,ae=/"!==d[1]||ae.test(r)?0:s:s.firstchild)&&r.childnodes.length;o--;)k.nodename(u=r.childnodes[o],"tbody")&&!u.childnodes.length&&r.removechild(u);for(k.merge(h,s.childnodes),s.textcontent="";s.firstchild;)s.removechild(s.firstchild);s=p.lastchild}else h.push(t.createtextnode(r));for(s&&p.removechild(s),g.appendchecked||k.grep(te(h,"input"),oe),y=0;r=h[y++];)if(i&&-1]","i"),we=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ke=/\s*$/g,de=z(h).appendchild(h.createelement("div"));function le(e,t){return k.nodename(e,"table")&&k.nodename(11!==t.nodetype?t:t.firstchild,"tr")?e.getelementsbytagname("tbody")[0]||e.appendchild(e.ownerdocument.createelement("tbody")):e}function se(e){return e.type=(null!==k.find.attr(e,"type"))+"/"+e.type,e}function ae(e){var t=te.exec(e.type);return t?e.type=t[1]:e.removeattribute("type"),e}function ne(e,t){if(1===t.nodetype&&k.hasdata(e)){var n,i,a,e=k._data(e),o=k._data(t,e),r=e.events;if(r)for(n in delete o.handle,o.events={},r)for(i=0,a=r[n].length;i")},clone:function(e,t,n){var i,a,o,r,l,s=k.contains(e.ownerdocument,e);if(g.html5clone||k.isxmldoc(e)||!be.test("<"+e.nodename+">")?o=e.clonenode(!0):(de.innerhtml=e.outerhtml,de.removechild(o=de.firstchild)),!(g.nocloneevent&&g.noclonechecked||1!==e.nodetype&&11!==e.nodetype||k.isxmldoc(e)))for(i=te(o),l=te(e),r=0;null!=(a=l[r]);++r)if(i[r]){u=p=void 0;var c,u,d,f=a,p=i[r];if(1===p.nodetype){if(c=p.nodename.tolowercase(),!g.nocloneevent&&p[k.expando]){for(u in(d=k._data(p)).events)k.removeevent(p,u,d.handle);p.removeattribute(k.expando)}"script"===c&&p.text!==f.text?(se(p).text=f.text,ae(p)):"object"===c?(p.parentnode&&(p.outerhtml=f.outerhtml),g.html5clone&&f.innerhtml&&!k.trim(p.innerhtml)&&(p.innerhtml=f.innerhtml)):"input"===c&&u.test(f.type)?(p.defaultchecked=p.checked=f.checked,p.value!==f.value&&(p.value=f.value)):"option"===c?p.defaultselected=p.selected=f.defaultselected:"input"!==c&&"textarea"!==c||(p.defaultvalue=f.defaultvalue)}}if(t)if(n)for(l=l||te(e),i=i||te(o),r=0;null!=(a=l[r]);r++)ne(a,i[r]);else ne(e,o);return 0<(i=te(o,"script")).length&&ne(i,!s&&te(e,"script")),i=l=a=null,o},cleandata:function(e,t){for(var n,i,a,o,r=0,l=k.expando,s=k.cache,c=g.attributes,u=k.event.special;null!=(n=e[r]);r++)if((t||f(n))&&(o=(a=n[l])&&s[a])){if(o.events)for(i in o.events)u[i]?k.event.remove(n,i):k.removeevent(n,i,o.handle);s[a]&&(delete s[a],c||void 0===n.removeattribute?n[l]=void 0:n.removeattribute(l),d.push(a))}}}),k.fn.extend({dommanip:me,detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return v(this,function(e){return void 0===e?k.text(this):this.empty().append((this[0]&&this[0].ownerdocument||h).createtextnode(e))},null,e,arguments.length)},append:function(){return me(this,arguments,function(e){1!==this.nodetype&&11!==this.nodetype&&9!==this.nodetype||le(this,e).appendchild(e)})},prepend:function(){return me(this,arguments,function(e){var t;1!==this.nodetype&&11!==this.nodetype&&9!==this.nodetype||(t=le(this,e)).insertbefore(e,t.firstchild)})},before:function(){return me(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this)})},after:function(){return me(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this.nextsibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodetype&&k.cleandata(te(e,!1));e.firstchild;)e.removechild(e.firstchild);e.options&&k.nodename(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return v(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodetype?t.innerhtml.replace(xe,""):void 0;if("string"==typeof e&&!ke.test(e)&&(g.htmlserialize||!be.test(e))&&(g.leadingwhitespace||!j.test(e))&&!ee[(g.exec(e)||["",""])[1].tolowercase()]){e=k.htmlprefilter(e);try{for(;n")).appendto(t.documentelement))[0].contentwindow||ie[0].contentdocument).document).write(),t.close(),n=fe(e,t),ie.detach()),he[e]=n),n}function qe(e,t,n,i){var a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,i||[]),t)e.style[a]=o[a];return i}var pe,oe,re,we,be,ze,$e,ye,xe=/^margin/,ve=new regexp("^("+o+")(?!px)[a-z%]+$","i"),ue=h.documentelement;function ge(){var e,t=h.documentelement;t.appendchild($e),ye.style.csstext="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",pe=re=ze=!1,oe=be=!0,w.getcomputedstyle&&(e=w.getcomputedstyle(ye),pe="1%"!==(e||{}).top,ze="2px"===(e||{}).marginleft,re="4px"===(e||{width:"4px"}).width,ye.style.marginright="50%",oe="4px"===(e||{marginright:"4px"}).marginright,(e=ye.appendchild(h.createelement("div"))).style.csstext=ye.style.csstext="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginright=e.style.width="0",ye.style.width="1px",be=!parsefloat((w.getcomputedstyle(e)||{}).marginright),ye.removechild(e)),ye.style.display="none",(we=0===ye.getclientrects().length)&&(ye.style.display="",ye.innerhtml="
    t
    ",ye.childnodes[0].style.bordercollapse="separate",(e=ye.getelementsbytagname("td"))[0].style.csstext="margin:0;border:0;padding:0;display:none",we=0===e[0].offsetheight)&&(e[0].style.display="",e[1].style.display="none",we=0===e[0].offsetheight),t.removechild($e)}$e=h.createelement("div"),(ye=h.createelement("div")).style&&(ye.style.csstext="float:left;opacity:.5",g.opacity="0.5"===ye.style.opacity,g.cssfloat=!!ye.style.cssfloat,ye.style.backgroundclip="content-box",ye.clonenode(!0).style.backgroundclip="",g.clearclonestyle="content-box"===ye.style.backgroundclip,($e=h.createelement("div")).style.csstext="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",ye.innerhtml="",$e.appendchild(ye),g.boxsizing=""===ye.style.boxsizing||""===ye.style.mozboxsizing||""===ye.style.webkitboxsizing,k.extend(g,{reliablehiddenoffsets:function(){return null==pe&&ge(),we},boxsizingreliable:function(){return null==pe&&ge(),re},pixelmarginright:function(){return null==pe&&ge(),oe},pixelposition:function(){return null==pe&&ge(),pe},reliablemarginright:function(){return null==pe&&ge(),be},reliablemarginleft:function(){return null==pe&&ge(),ze}}));var ke,je,qe=/^(top|right|bottom|left)$/;function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}w.getcomputedstyle?(ke=function(e){var t=e.ownerdocument.defaultview;return(t=t&&t.opener?t:w).getcomputedstyle(e)},je=function(e,t,n){var i,a,o=e.style;return""!==(a=(n=n||ke(e))?n.getpropertyvalue(t)||n[t]:void 0)&&void 0!==a||k.contains(e.ownerdocument,e)||(a=k.style(e,t)),n&&!g.pixelmarginright()&&ve.test(a)&&xe.test(t)&&(e=o.width,t=o.minwidth,i=o.maxwidth,o.minwidth=o.maxwidth=o.width=a,a=n.width,o.width=e,o.minwidth=t,o.maxwidth=i),void 0===a?a:a+""}):ue.currentstyle&&(ke=function(e){return e.currentstyle},je=function(e,t,n){var i,a,o,r=e.style;return null==(n=(n=n||ke(e))?n[t]:void 0)&&r&&r[t]&&(n=r[t]),ve.test(n)&&!qe.test(t)&&(i=r.left,(o=(a=e.runtimestyle)&&a.left)&&(a.left=e.currentstyle.left),r.left="fontsize"===t?"1em":n,n=r.pixelleft+"px",r.left=i,o)&&(a.left=o),void 0===n?n:n+""||"auto"});var et=/alpha\([^)]*\)/i,tt=/opacity\s*=\s*([^)]*)/i,nt=/^(none|table(?!-c[ea]).+)/,it=new regexp("^("+o+")(.*)$","i"),at={position:"absolute",visibility:"hidden",display:"block"},ot={letterspacing:"0",fontweight:"400"},rt=["webkit","o","moz","ms"],lt=h.createelement("div").style;function st(e){if(e in lt)return e;for(var t=e.charat(0).touppercase()+e.slice(1),n=rt.length;n--;)if((e=rt[n]+t)in lt)return e}function ct(e,t){for(var n,i,a,o=[],r=0,l=e.length;r
    a",sn=_t.getelementsbytagname("a")[0],mt.setattribute("type","checkbox"),_t.appendchild(mt),(sn=_t.getelementsbytagname("a")[0]).style.csstext="top:1px",g.getsetattribute="t"!==_t.classname,g.style=/top/.test(sn.getattribute("style")),g.hrefnormalized="/a"===sn.getattribute("href"),g.checkon=!!mt.value,g.optselected=o.selected,g.enctype=!!h.createelement("form").enctype,gt.disabled=!0,g.optdisabled=!o.disabled,(mt=h.createelement("input")).setattribute("value",""),g.input=""===mt.getattribute("value"),mt.value="t",mt.setattribute("type","radio"),g.radiovalue="t"===mt.value;var tt=/\r/g,et=/[\x20\t\r\n\f]+/g;k.fn.extend({val:function(t){var n,e,i,a=this[0];return arguments.length?(i=k.isfunction(t),this.each(function(e){1!==this.nodetype||(null==(e=i?t.call(this,e,k(this).val()):t)?e="":"number"==typeof e?e+="":k.isarray(e)&&(e=k.map(e,function(e){return null==e?"":e+""})),(n=k.valhooks[this.type]||k.valhooks[this.nodename.tolowercase()])&&"set"in n&&void 0!==n.set(this,e,"value"))||(this.value=e)})):a?(n=k.valhooks[a.type]||k.valhooks[a.nodename.tolowercase()])&&"get"in n&&void 0!==(e=n.get(a,"value"))?e:"string"==typeof(e=a.value)?e.replace(tt,""):null==e?"":e:void 0}}),k.extend({valhooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:k.trim(k.text(e)).replace(et," ")}},select:{get:function(e){for(var t,n=e.options,i=e.selectedindex,a="select-one"===e.type||i<0,o=a?null:[],r=a?i+1:n.length,l=i<0?r:a?i:0;l").append(k.parsehtml(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,o||[e.responsetext,t,e])})}),this)},k.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.filters.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setoffset:function(e,t,n){var i,a,o,r,l=k.css(e,"position"),s=k(e),c={};"static"===l&&(e.style.position="relative"),o=s.offset(),i=k.css(e,"top"),r=k.css(e,"left"),l=("absolute"===l||"fixed"===l)&&-1'+(r?a.title[0]:a.title)+"":"";return a.zindex=o,t([a.shade?'
    ':"",'
    '+(e&&2!=a.type?"":r)+"'+(i=["layui-icon-tips","layui-icon-ok","layui-icon-close-fill","layui-icon-help","layui-icon-password","layui-icon-face-cry","layui-icon-face-smile"],o="layui-anim layui-anim-rotate layui-anim-loop",0==a.type&&-1!==a.icon?'':3==a.type?(n=["layui-icon-loading","layui-icon-loading-1"],2==a.icon?'
    ':''):"")+((1!=a.type||!e)&&a.content||"")+'
    '+(i=[],l&&(i.push(''),i.push('')),a.closebtn&&i.push(''),i.join(""))+"
    "+(a.btn?function(){var e="";"string"==typeof a.btn&&(a.btn=[a.btn]);for(var t=0,n=a.btn.length;t'+a.btn[t]+"";return'
    '+e+"
    "}():"")+(a.resize?'':"")+""],r,y('
    ')),this},t.pt.creat=function(){var e,i=this,a=i.config,o=i.index,r="object"==typeof(s=a.content),l=y("body");if(!a.id||!y("."+d[0]).find("#"+a.id)[0]){switch(a.removefocus&&document.activeelement.blur(),"string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),a.shift&&(a.anim=a.shift),6==m.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:u.btn[0],m.closeall("dialog");break;case 2:var s=a.content=r?a.content:[a.content||"","auto"];a.content='';break;case 3:delete a.title,delete a.closebtn,-1===a.icon&&a.icon,m.closeall("loading");break;case 4:r||(a.content=[a.content,"body"]),a.follow=a.content[1],a.content=a.content[0]+'',delete a.title,a.tips="object"==typeof a.tips?a.tips:[a.tips,!0],a.tipsmore||m.closeall("tips")}i.vessel(r,function(e,t,n){l.append(e[0]),r?2==a.type||4==a.type?y("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addclass("layui-layer-wrap").wrap(e[1]),y("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),y("#"+d.move)[0]||l.append(u.moveelem=n),i.layero=y("#"+d[0]+o),i.shadeo=y("#"+d.shade+o),a.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),i.shadeo.css({"background-color":a.shade[1]||"#000",opacity:a.shade[0]||a.shade}),2==a.type&&6==m.ie&&i.layero.find("iframe").attr("src",s[0]),4==a.type?i.tips():(i.offset(),parseint(u.getstyle(document.getelementbyid(d.move),"z-index"))||(i.layero.css("visibility","hidden"),m.ready(function(){i.offset(),i.layero.css("visibility","visible")}))),!a.fixed||u.events.resize[i.index]||(u.events.resize[i.index]=function(){i.resize()},c.on("resize",u.events.resize[i.index])),a.time<=0||settimeout(function(){m.close(i.index)},a.time),i.move().callback(),d.anim[a.anim]&&(e="layer-anim "+d.anim[a.anim],i.layero.addclass(e).one("webkitanimationend mozanimationend msanimationend oanimationend animationend",function(){y(this).removeclass(e)})),a.isoutanim&&i.layero.data("isoutanim",!0)}},t.pt.resize=function(){var e=this,t=e.config;e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(e.index),4==t.type&&e.tips()},t.pt.auto=function(e){var t=this.config,n=y("#"+d[0]+e),i=(""===t.area[0]&&0t.maxwidth)&&n.width(t.maxwidth),[n.innerwidth(),n.innerheight()]),a=n.find(d[1]).outerheight()||0,o=n.find("."+d[6]).outerheight()||0,e=function(e){(e=n.find(e)).height(i[1]-a-o-2*(0|parsefloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxheight?(i[1]=t.maxheight,e("."+d[5])):t.fixed&&i[1]>=c.height()&&(i[1]=c.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,n=e.layero,i=[n.outerwidth(),n.outerheight()],a="object"==typeof t.offset;e.offsettop=(c.height()-i[1])/2,e.offsetleft=(c.width()-i[0])/2,a?(e.offsettop=t.offset[0],e.offsetleft=t.offset[1]||e.offsetleft):"auto"!==t.offset&&("t"===t.offset?e.offsettop=0:"r"===t.offset?e.offsetleft=c.width()-i[0]:"b"===t.offset?e.offsettop=c.height()-i[1]:"l"===t.offset?e.offsetleft=0:"lt"===t.offset?(e.offsettop=0,e.offsetleft=0):"lb"===t.offset?(e.offsettop=c.height()-i[1],e.offsetleft=0):"rt"===t.offset?(e.offsettop=0,e.offsetleft=c.width()-i[0]):"rb"===t.offset?(e.offsettop=c.height()-i[1],e.offsetleft=c.width()-i[0]):e.offsettop=t.offset),t.fixed||(e.offsettop=/%$/.test(e.offsettop)?c.height()*parsefloat(e.offsettop)/100:parsefloat(e.offsettop),e.offsetleft=/%$/.test(e.offsetleft)?c.width()*parsefloat(e.offsetleft)/100:parsefloat(e.offsetleft),e.offsettop+=c.scrolltop(),e.offsetleft+=c.scrollleft()),"min"===n.data("maxminstatus")&&(e.offsettop=c.height()-(n.find(d[1]).outerheight()||0),e.offsetleft=n.css("left")),n.css({top:e.offsettop,left:e.offsetleft})},t.pt.tips=function(){var e=this.config,t=this.layero,n=[t.outerwidth(),t.outerheight()],i={width:(o=(o=y(e.follow))[0]?o:y("body")).outerwidth(),height:o.outerheight(),top:o.offset().top,left:o.offset().left},a=t.find(".layui-layer-tipsg"),o=e.tips[0];e.tips[1]||a.remove(),i.autoleft=function(){0c.width()&&(a=c.width()-180-(u.minstackarr.edgeindex=u.minstackarr.edgeindex||0,u.minstackarr.edgeindex+=3))<0&&(a=0),t.minstack&&(r.left=a,r.top=c.height()-n,i||u.minstackindex++,l.attr("minleft",a)),l.attr("position",o),m.style(e,r,!0),l.find(".layui-layer-min").hide(),"page"===l.attr("type")&&l.find(d[4]).hide(),u.rescollbar(e),s.hide())},m.restore=function(e){var t=y("#"+d[0]+e),n=y("#"+d.shade+e),i=t.attr("area").split(","),a=t.attr("type");t.removedata("maxminstatus"),m.style(e,{width:i[0],height:i[1],top:parsefloat(i[2]),left:parsefloat(i[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeclass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===a&&t.find(d[4]).show(),u.rescollbar(e),n.show()},m.full=function(t){var n=y("#"+d[0]+t),e=n.data("maxminstatus");"max"!==e&&("min"===e&&m.restore(t),n.data("maxminstatus","max"),u.record(n),d.html.attr("layer-full")||d.html.css("overflow","hidden").attr("layer-full",t),cleartimeout(void 0),settimeout(function(){var e="fixed"===n.css("position");m.style(t,{top:e?0:c.scrolltop(),left:e?0:c.scrollleft(),width:"100%",height:"100%"},!0),n.find(".layui-layer-min").hide()},100))},m.title=function(e,t){y("#"+d[0]+(t||m.index)).find(d[1]).html(e)},m.close=function(i,a){var e,o,t,r=(e=y("."+d[0]).find("#"+i).closest("."+d[0]))[0]?(i=e.attr("times"),e):y("#"+d[0]+i),l=r.attr("type");r[0]&&(o="layui-layer-wrap",t=function(){if(l===u.type[1]&&"object"===r.attr("contype")){r.children(":not(."+d[5]+")").remove();for(var e=r.find("."+o),t=0;t<2;t++)e.unwrap();e.css("display",e.data("display")).removeclass(o)}else{if(l===u.type[2])try{var n=y("#"+d[4]+i)[0];n.contentwindow.document.write(""),n.contentwindow.close(),r.find("."+d[5])[0].removechild(n)}catch(e){}r[0].innerhtml="",r.remove()}"function"==typeof u.end[i]&&u.end[i](),delete u.end[i],"function"==typeof a&&a(),u.events.resize[i]&&(c.off("resize",u.events.resize[i]),delete u.events.resize[i])},r.data("isoutanim")&&r.addclass("layer-anim layer-anim-close"),y("#layui-layer-moves, #"+d.shade+i).remove(),6==m.ie&&u.reselect(),u.rescollbar(i),"string"==typeof r.attr("minleft")&&(u.minstackindex--,u.minstackarr.push(r.attr("minleft"))),m.ie&&m.ie<10||!r.data("isoutanim")?t():settimeout(function(){t()},200))},m.closeall=function(n,i){"function"==typeof n&&(i=n,n=null);var a=y("."+d[0]);y.each(a,function(e){var t=y(this);(n?t.attr("type")===n:1)&&m.close(t.attr("times"),e===a.length-1?i:null)}),0===a.length&&"function"==typeof i&&i()},m.closelast=function(e){m.close(y(".layui-layer-"+(e=e||"page")+":last").attr("times"))},m.cache||{});m.prompt=function(n,i){var e="",t="";"function"==typeof(n=n||{})&&(i=n),n.area&&(e='style="width: '+(o=n.area)[0]+"; height: "+o[1]+';"',delete n.area),n.placeholder&&(t=' placeholder="'+n.placeholder+'"');var a,o=2==n.formtype?'":'",r=n.success;return delete n.success,m.open(y.extend({type:1,btn:["确定","取消"],content:o,skin:"layui-layer-prompt"+h("prompt"),maxwidth:c.width(),success:function(e){(a=e.find(".layui-layer-input")).val(n.value||"").focus(),"function"==typeof r&&r(e)},resize:!1,yes:function(e){var t=a.val();t.length>(n.maxlength||500)?m.tips("最多输入"+(n.maxlength||500)+"个字数",a,{tips:1}):i&&i(t,e,a)}},n))},m.tab=function(i){var a=(i=i||{}).tab||{},o="layui-this",r=i.success;return delete i.success,m.open(y.extend({type:1,skin:"layui-layer-tab"+h("tab"),resize:!1,title:function(){var e=a.length,t=1,n="";if(0'+a[0].title+"";t"+a[t].title+"";return n}(),content:'
      '+function(){var e=a.length,t=1,n="";if(0'+(a[0].content||"no content")+"";t'+(a[t].content||"no content")+"";return n}()+"
    ",success:function(e){var t=e.find(".layui-layer-title").children(),n=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stoppropagation?e.stoppropagation():e.cancelbubble=!0;var t=(e=y(this)).index();e.addclass(o).siblings().removeclass(o),n.eq(t).show().siblings().hide(),"function"==typeof i.change&&i.change(t)}),"function"==typeof r&&r(e)}},i))},m.photos=function(i,e,a){var o={};if((i=i||{}).photos){var t=(u=!("string"==typeof i.photos||i.photos instanceof y))?i.photos:{},r=t.data||[],l=t.start||0,s=(o.imgindex=1+(0|l),i.img=i.img||"img",i.success);if(delete i.success,u){if(0===r.length)return m.msg("没有图片")}else{var n=y(i.photos),c=function(){r=[],n.find(i.img).each(function(e){var t=y(this);t.attr("layer-index",e),r.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(c(),0===r.length)return;if(e||n.on("click",i.img,function(){c();var e=y(this).attr("layer-index");m.photos(y.extend(i,{photos:{start:e,data:r,tab:i.tab},full:i.full}),!0)}),!e)return}o.imgprev=function(e){o.imgindex--,o.imgindex<1&&(o.imgindex=r.length),o.tabimg(e)},o.imgnext=function(e,t){o.imgindex++,o.imgindex>r.length&&(o.imgindex=1,t)||o.tabimg(e)},o.keyup=function(e){var t;o.end||(t=e.keycode,e.preventdefault(),37===t?o.imgprev(!0):39===t?o.imgnext(!0):27===t&&m.close(o.index))},o.tabimg=function(e){if(!(r.length<=1))return t.start=o.imgindex-1,m.close(o.index),m.photos(i,!0,e)},o.event=function(){o.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventdefault(),o.imgprev(!0)}),o.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventdefault(),o.imgnext(!0)}),y(document).on("keyup",o.keyup)},o.loadi=m.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1});var u=r[l].src,d=function(e){m.close(o.loadi);var t,n=r[l].alt||"";a&&(i.anim=-1),o.index=m.open(y.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[y(p).width()-100,y(p).height()-100],!i.full&&(t[0]'+n+''+(t=['
    '],1','','',"
    "].join("")),i.hidefooter||t.push(['
    ','
    ',"

    "+n+"

    ",""+o.imgindex+" / "+r.length+"",'查看原图',"
    ","
    "].join("")),t.push(""),t.join(""))+"",success:function(e,t){o.bigimg=e.find(".layui-layer-phimg"),o.imgsee=e.find(".layui-layer-imgbar"),o.event(e),i.tab&&i.tab(r[l],e),"function"==typeof s&&s(e)},end:function(){o.end=!0,y(document).off("keyup",o.keyup)}},i))},f=new image;f.src=u,f.complete?d(f):(f.onload=function(){f.onload=null,d(f)},f.onerror=function(e){f.onerror=null,m.close(o.loadi),m.msg("当前图片地址异常
    是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1").addclass(o));layui.each(i.bars,function(e,t){var n=u('
  • ');n.addclass(t.icon).attr({"lay-type":t.type,style:t.style||"background-color: "+i.bgcolor}).html(t.content),n.on("click",function(){var e=u(this).attr("lay-type");"top"===e&&("body"===i.target?u("html,body"):s).animate({scrolltop:0},i.duration),"function"==typeof i.click&&i.click.call(this,e)}),"object"===layui.type(i.on)&&layui.each(i.on,function(e,t){n.on(e,function(){var e=u(this).attr("lay-type");"function"==typeof t&&t.call(this,e)})}),"top"===t.type&&(n.addclass("layui-fixbar-top"),a=n),c.append(n)}),l.find("."+o).remove(),"object"==typeof i.css&&c.css(i.css),l.append(c),a&&(e=function e(){return s.scrolltop()>=i.margin?t||(a.show(),t=1):t&&(a.hide(),t=0),e}()),s.on("scroll",function(){e&&(cleartimeout(n),n=settimeout(function(){e()},100))})},countdown:function(e,t,n){var i=this,a="function"==typeof t,o=new date(e).gettime(),r=new date(!t||a?(new date).gettime():t).gettime(),o=o-r,l=[math.floor(o/864e5),math.floor(o/36e5)%24,math.floor(o/6e4)%60,math.floor(o/1e3)%60],a=(a&&(n=t),settimeout(function(){i.countdown(e,r+1e3,n)},1e3));return n&&n(0]|&(?=#[a-za-z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},unescape:function(e){return null!=e||(e=""),(e+="").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/g,"'").replace(/\"/g,'"')},openwin:function(e){var t=(e=e||{}).window||window.open(e.url||"",e.target,e.specs);e.url||(t.document.open("text/html","replace"),t.document.write(e.content||""),t.document.close())},tovisiblearea:function(e){var t,n,i,a,o,r,l,s;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollelem[0]&&e.thiselem[0]&&(t=e.scrollelem,l=e.thiselem,i=(o="y"===e.type)?"top":"left",a=t[n=o?"scrolltop":"scrollleft"](),o=t[o?"height":"width"](),r=t.offset()[i],s={},(l=l.offset()[i]-r)>o-e.margin||l."+y;t.prototype.config={trigger:"click",content:"",classname:"",style:"",show:!1,isallowspread:!0,isspreaditem:!0,data:[],delay:300,shade:0},t.prototype.reload=function(e){this.config=u.extend({},this.config,e),this.init(!0)},t.prototype.init=function(e){var t,n=this,i=n.config,a=u(i.elem);return 1",(n="href"in t?''+o+"":o,i?'
    '+n+("parent"===r?'':"group"===r&&s.isallowspread?'':"")+"
    ":'
    '+n+"
    "),"
  • "].join(""))).data("item",t),i&&(a=u('
    '),n=u("
      "),"parent"===r?(a.append(c(n,t.child)),o.append(a)):o.append(c(n,t.child))),l.append(o))}),l},n=['
      ',"
      "].join("");!(e=!("contextmenu"!==s.trigger&&!lay.istopelem(s.elem[0]))||e)&&s.elem.data(f+"_opened")||(o.elemview=u(n),o.elemview.append(s.content||(e=u('
        '),0no menu'),e)),s.classname&&o.elemview.addclass(s.classname),s.style&&o.elemview.attr("style",s.style),p.thisid=s.id,o.remove(),t.append(o.elemview),s.elem.data(f+"_opened",!0),n=s.shade?'
        ':"",o.elemview.before(n),o.position(),(h.prevelem=o.elemview).data("prevelem",s.elem),o.elemview.find(".layui-menu").on(r,function(e){layui.stope(e)}),o.elemview.find(".layui-menu li").on("click",function(e){var t=u(this),n=t.data("item")||{},i=n.child&&0i.width()&&(n.addclass(w),(t=n[0].getboundingclientrect()).left<0)&&n.removeclass(w),t.bottom>i.height())&&n.eq(0).css("margin-top",-(t.bottom-i.height()+5))}).on("mouseleave",a,function(e){var t=u(this).children("."+b);t.removeclass(w),t.css("margin-top",0)}),p.close=function(e){return(e=h.getthis(e))?(e.remove(),h.call(e)):this},p.reload=function(e,t){return(e=h.getthis(e))?(e.reload(t),h.call(e)):this},p.render=function(e){return e=new t(e),h.call(e)},e(l,p)}),layui.define(["jquery","lay"],function(e){"use strict";function t(e){this.index=++f.index,this.config=v.extend({},this.config,f.config,e),this.render()}var v=layui.$,d=layui.lay,f={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){return this.config=v.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="slider",p="layui-disabled",x="layui-slider-bar",b="layui-slider-wrap",w="layui-slider-wrap-btn",k="layui-slider-tips",c="layui-slider-input-txt",t="layui-slider-hover";t.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"var(--color-primary)"},t.prototype.render=function(){var i=this,a=i.config;if(1<(e=v(a.elem)).length)return layui.each(e,function(){f.render(v.extend({},a,{elem:this}))}),i;v.extend(a,d.options(e[0])),a.step<1&&(a.step=1),a.maxa.min?e:a.min,a.value[1]=t>a.min?t:a.min,a.value[0]=a.value[0]>a.max?a.max:a.value[0],a.value[1]=a.value[1]>a.max?a.max:a.value[1],t=math.floor((a.value[0]-a.min)/(a.max-a.min)*100),n=(r=math.floor((a.value[1]-a.min)/(a.max-a.min)*100))-t+"%",t+="%",r+="%"):("object"==typeof a.value&&(a.value=math.min.apply(null,a.value)),a.valuea.max&&(a.value=a.max),n=math.floor((a.value-a.min)/(a.max-a.min)*100)+"%");var o,e=a.disabled?"#c2c2c2":a.theme,t='
        '+(a.tips?'
        ':"")+'
        '+(a.range?'
        ':"")+"
        ",n=v(a.elem),r=n.next(".layui-slider");if(r[0]&&r.remove(),i.elemtemp=v(t),a.range?(i.elemtemp.find("."+b).eq(0).data("value",a.value[0]),i.elemtemp.find("."+b).eq(1).data("value",a.value[1])):i.elemtemp.find("."+b).data("value",a.value),n.html(i.elemtemp),"vertical"===a.type&&i.elemtemp.height(a.height+"px"),a.showstep){for(var l=(a.max-a.min)/a.step,s="",c=1;c<1+l;c++){var u=100*c/l;u<100&&(s+='
        ')}i.elemtemp.append(s)}a.input&&!a.range&&(e=v('
        '),n.css("position","relative"),n.append(e),n.find("."+c).children("input").val(a.value),"vertical"===a.type?e.css({left:0,top:-48}):i.elemtemp.css("margin-right",e.outerwidth()+15)),a.disabled?(i.elemtemp.addclass(p),i.elemtemp.find("."+w).addclass(p)):i.slide(),i.elemtemp.find("."+w).on("mouseover",function(){var e="vertical"===a.type?a.height:i.elemtemp[0].offsetwidth,t=i.elemtemp.find("."+b),n=("vertical"===a.type?e-v(this).parent()[0].offsettop-t.height():v(this).parent()[0].offsetleft)/e*100,t=v(this).parent().data("value"),e=a.settips?a.settips(t):t;i.elemtemp.find("."+k).html(e),cleartimeout(o),o=settimeout(function(){"vertical"===a.type?i.elemtemp.find("."+k).css({bottom:n+"%","margin-bottom":"20px",display:"inline-block"}):i.elemtemp.find("."+k).css({left:n+"%",display:"inline-block"})},300)}).on("mouseout",function(){cleartimeout(o),i.elemtemp.find("."+k).css("display","none")})},t.prototype.slide=function(e,t,n){function l(){return"vertical"===u.type?u.height:d[0].offsetwidth}function s(e,t,n){e=(e=100<(e=100i[1]&&i.reverse(),c.value=u.range?i:o,u.change&&u.change(c.value),"done"===n&&u.done&&u.done(c.value)}var c=this,u=c.config,d=c.elemtemp,f=d.find("."+b),p=d.next(".layui-slider-input"),h=p.children("."+c).children("input").val(),y=100/((u.max-u.min)/math.ceil(u.step)),m=function(e){var t=e/l()*100/y,n=math.round(t)*y;return e==l()?math.ceil(t)*y:n},g=v(['
        l()?l():t)/l()*100/y;s(t,o),r.addclass(t),d.find("."+k).show(),e.preventdefault()},t=function(){r.removeclass(t),d.find("."+k).hide()},n=function(){t(),g.remove(),u.done&&u.done(c.value)},v("#lay-slider-moving")[0]||v("body").append(g),g.on("mousemove",e),g.on("mouseup",n).on("mouseleave",n)})}),d.on("click",function(e){var t=v("."+w),n=v(this);!t.is(event.target)&&0===t.has(event.target).length&&t.length&&(n=(t=(t=(t="vertical"===u.type?l()-e.clienty+n.offset().top-v(window).scrolltop():e.clientx-n.offset().left-v(window).scrollleft())<0?0:t)>l()?l():t)/l()*100/y,t=u.range?"vertical"===u.type?math.abs(t-parseint(v(f[0]).css("bottom")))>math.abs(t-parseint(v(f[1]).css("bottom")))?1:0:math.abs(t-f[0].offsetleft)>math.abs(t-f[1].offsetleft)?1:0:0,s(n,t,"done"),e.preventdefault())}),p.children(".layui-slider-input-btn").children("i").each(function(t){v(this).on("click",function(){h=p.children("."+c).children("input").val();var e=((h=1==t?h-u.stepu.max?u.max:number(h)+u.step)-u.min)/(u.max-u.min)*100/y;s(e,0,"done")})});function i(){var e=this.value,e=(e=(e=(e=isnan(e)?0:e)u.max?u.max:e,((this.value=e)-u.min)/(u.max-u.min)*100/y);s(e,0,"done")}p.children("."+c).children("input").on("keydown",function(e){13===e.keycode&&(e.preventdefault(),i.call(this))}).on("change",i)},t.prototype.events=function(){this.config},f.render=function(e){return e=new t(e),function(){var n=this,i=n.config;return{setvalue:function(e,t){return e=(e=e>i.max?i.max:e)',"",'','',"","","
        "].join("")),i=t.elem=c(t.elem);t.size&&n.addclass("layui-colorpicker-"+t.size),i.addclass("layui-inline").html(e.elemcolorbox=n),t.id="id"in t?t.id:i.attr("id")||e.index,e.color=e.elemcolorbox.find("."+d)[0].style.background,e.events()},o.prototype.renderpicker=function(){var n,e=this,t=e.config,i=e.elemcolorbox[0],a=e.elempicker=c(['
        ','
        ','
        ','
        ','
        ','
        ',"
        ",'
        ','
        ',"
        ","
        ",'
        ','
        ','
        ',"
        ","
        ",t.predefine?(n=['
        '],layui.each(t.colors,function(e,t){n.push(['
        ','
        ',"
        "].join(""))}),n.push("
        "),n.join("")):"",'
        ','
        ','',"
        ",'
        ','','',"","
        "].join(""));e.elemcolorbox.find("."+d)[0],c(c)[0]&&c(c).data("index")==e.index?e.removepicker(o.thiselemind):(e.removepicker(o.thiselemind),c("body").append(a)),r.thisid=t.id,o.thiselemind=e.index,o.thiscolor=i.style.background,e.position(),e.pickerevents()},o.prototype.removepicker=function(e){var t=this.config;return(e=c("#layui-colorpicker"+(e||this.index)))[0]&&(e.remove(),delete r.thisid,"function"==typeof t.close)&&t.close(this.color),this},o.prototype.position=function(){var e=this,t=e.config;return a.position(e.bindelem||e.elemcolorbox[0],e.elempicker[0],{position:t.position,align:"center"}),e},o.prototype.val=function(){var e,t=this,n=(t.config,t.elemcolorbox.find("."+d)),i=t.elempicker.find("."+i),a=n[0].style.backgroundcolor;a?(e=x(k(a)),n=n.attr("lay-type"),t.select(e.h,e.s,e.b),"torgb"===n&&i.find("input").val(a),"rgba"===n&&(e=k(a),3===(a.match(/[0-9]{1,3}/g)||[]).length?(i.find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", 1)"),t.elempicker.find("."+m).css("left",280)):(i.find("input").val(a),n=280*a.slice(a.lastindexof(",")+1,a.length-1),t.elempicker.find("."+m).css("left",n)),t.elempicker.find("."+n)[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))")):(t.select(0,100,100),i.find("input").val(""),t.elempicker.find("."+n)[0].style.background="",t.elempicker.find("."+m).css("left",280))},o.prototype.side=function(){function c(e,t,n,i){o.select(e,t,n);var a=b({h:e,s:t,b:n}),e=w({h:e,s:t,b:n}),t=o.elempicker.find("."+i).find("input");v.addclass(t).removeclass(e),l[0].style.background="rgb("+a.r+", "+a.g+", "+a.b+")","torgb"===s?t.val("rgb("+a.r+", "+a.g+", "+a.b+")"):"rgba"===s?(p.css("left",280*i),t.val("rgba("+a.r+", "+a.g+", "+a.b+", "+i+")"),l[0].style.background="rgba("+a.r+", "+a.g+", "+a.b+", "+i+")",f[0].style.background="linear-gradient(to right, rgba("+a.r+", "+a.g+", "+a.b+", 0), rgb("+a.r+", "+a.g+", "+a.b+"))"):t.val("#"+e),r.change&&r.change(o.elempicker.find("."+i).find("input").val())}function t(e){c("#lay-colorpicker-moving")[0]||c("body").append(a),a.on("mousemove",e),a.on("mouseup",function(){a.remove()}).on("mouseleave",function(){a.remove()})}var o=this,r=o.config,l=o.elemcolorbox.find("."+d),s=l.attr("lay-type"),u=o.elempicker.find(".layui-colorpicker-side"),e=o.elempicker.find("."+s),d=o.elempicker.find("."+a),i=o.elempicker.find("."+j),f=o.elempicker.find("."+n),p=o.elempicker.find("."+m),h=e[0].offsettop/180*360,y=100-(i[0].offsettop+3)/180*100,m=(i[0].offsetleft+3)/260*100,g=math.round(p[0].offsetleft/280*100)/100,v=o.elemcolorbox.find("."+l),n=o.elempicker.find(".layui-colorpicker-pre").children("div"),a=c(['
        '].join(""));e.on("mousedown",function(e){var i=this.offsettop,a=e.clienty;t(function(e){var t=i+(e.clienty-a),n=(t=(n=u[0].offsetheight)<(t=t<0?0:t)?n:t)/180*360;c(h=n,m,y,g),e.preventdefault()}),e.preventdefault()}),u.on("click",function(e){var t=((t=(t=e.clienty-c(this).offset().top)<0?0:t)>this.offsetheight?this.offsetheight:t)/180*360;c(h=t,m,y,g),e.preventdefault()}),i.on("mousedown",function(e){var o=this.offsettop,r=this.offsetleft,l=e.clienty,s=e.clientx;layui.stope(e),t(function(e){var t=o+(e.clienty-l),n=r+(e.clientx-s),i=d[0].offsetheight-3,a=((n=(a=d[0].offsetwidth-3)<(n=n<-3?-3:n)?a:n)+3)/260*100,n=100-((t=i<(t=t<-3?-3:t)?i:t)+3)/180*100;c(h,m=a,y=n,g),e.preventdefault()}),e.preventdefault()}),d.on("mousedown",function(e){var t=e.clienty-c(this).offset().top-3+h.scrolltop(),n=e.clientx-c(this).offset().left-3+h.scrollleft(),n=((t=t<-3?-3:t)>this.offsetheight-3&&(t=this.offsetheight-3),(((n=n<-3?-3:n)>this.offsetwidth-3?this.offsetwidth-3:n)+3)/260*100);c(h,m=n,y=t=100-(t+3)/180*100,g),layui.stope(e),e.preventdefault(),i.trigger(e,"mousedown")}),p.on("mousedown",function(e){var i=this.offsetleft,a=e.clientx;t(function(e){var t=i+(e.clientx-a),n=((n=f[0].offsetwidth)<(t=t<0?0:t)&&(t=n),math.round(t/280*100)/100);c(h,m,y,g=n),e.preventdefault()}),e.preventdefault()}),f.on("click",function(e){var t=((t=(t=e.clientx-c(this).offset().left)<0?0:t)>this.offsetwidth&&(t=this.offsetwidth),math.round(t/280*100)/100);c(h,m,y,g=t),e.preventdefault()}),n.each(function(){c(this).on("click",function(){c(this).parent(".layui-colorpicker-pre").addclass("selected").siblings().removeclass("selected");var e=this.style.backgroundcolor,t=x(k(e)),n=e.slice(e.lastindexof(",")+1,e.length-1);h=t.h,m=t.s,y=t.b,3===(e.match(/[0-9]{1,3}/g)||[]).length&&(n=1),g=n,c(t.h,t.s,t.b,n)})})},o.prototype.select=function(e,t,n,i){this.config;var a=w({h:e,s:100,b:100}),e=(w({h:e,s:t,b:n}),e/360*180),n=180-n/100*180-3,t=t/100*260-3;this.elempicker.find("."+s).css("top",e),this.elempicker.find("."+a)[0].style.background="#"+a,this.elempicker.find("."+j).css({top:n,left:t})},o.prototype.pickerevents=function(){var l=this,s=l.config,c=l.elemcolorbox.find("."+d),u=l.elempicker.find("."+i+" input"),n={clear:function(e){c[0].style.background="",l.elemcolorbox.find("."+l).removeclass(t).addclass(e),l.color="",s.done&&s.done(""),l.removepicker()},confirm:function(e,t){var n,i,a,o,r=u.val();-1>16,g:(65280&a)>>8,b:255&a},i=x(o),c[0].style.background=n="#"+w(i),l.elemcolorbox.find("."+l).removeclass(e).addclass(t)),"change"===t?(l.select(i.h,i.s,i.b,t),s.change&&s.change(n)):(l.color=r,s.done&&s.done(r),l.removepicker())}};l.elempicker.on("click","*[colorpicker-events]",function(){var e=c(this),t=e.attr("colorpicker-events");n[t]&&n[t].call(this,e)}),u.on("keyup",function(e){var t=c(this);n.confirm.call(this,t,13===e.keycode?null:"change")})},o.prototype.events=function(){var e=this;e.config,e.elemcolorbox.on("click",function(){e.renderpicker(),c(c)[0]&&(e.val(),e.side())})},u.on(t,function(e){var t,n,i;r.thisid&&(t=l.getthis(r.thisid))&&(n=t.config,i=t.elemcolorbox.find("."+d),c(e.target).hasclass(s)||c(e.target).parents("."+s)[0]||c(e.target).hasclass(c.replace(/\./g,""))||c(e.target).parents(c)[0]||t.elempicker&&(t.color?(e=x(k(t.color)),t.select(e.h,e.s,e.b)):t.elemcolorbox.find("."+l).removeclass(t).addclass(e),i[0].style.background=t.color||"","function"==typeof n.cancel&&n.cancel(t.color),t.removepicker()))}),h.on("resize",function(){if(r.thisid){var e=l.getthis(r.thisid);if(e)return!(!e.elempicker||!c(c)[0])&&void e.position()}}),l.that={},l.getthis=function(e){var t=l.that[e];return t||n.error(e?i+" instance with id '"+e+"' not found":"id argument required"),t},r.render=function(e){return e=new o(e),l.call(e)},e(i,r)}),layui.define("jquery",function(e){"use strict";function t(){this.config={}}var u=layui.$,d=(layui.hint(),layui.device()),l="element",s="layui-this",f="layui-show",r=".layui-tab-title",p=(t.prototype.set=function(e){return u.extend(!0,this.config,e),this},t.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},t.prototype.tabadd=function(e,t){var n,i=(e=u(".layui-tab[lay-filter="+e+"]")).children(r),a=i.children(".layui-tab-bar"),e=e.children(".layui-tab-content"),o=""+(t.title||"unnaming")+"";return a[0]?a.before(o):i.append(o),e.append('
        '+(t.content||"")+"
        "),x.hidetabmore(!0),x.tabauto(),this},t.prototype.tabdelete=function(e,t){return e=u(".layui-tab[lay-filter="+e+"]").children(r).find('>li[lay-id="'+t+'"]'),x.tabdelete(null,e),this},t.prototype.tabchange=function(e,t){return e=u(".layui-tab[lay-filter="+e+"]").children(r).find('>li[lay-id="'+t+'"]'),x.tabclick.call(e[0],{lielem:e}),this},t.prototype.tab=function(n){n=n||{},i.on("click",n.headerelem,function(e){var t=u(this).index();x.tabclick.call(this,{index:t,options:n})})},t.prototype.progress=function(e,t){var n=(e=u("."+(n="layui-progress")+"[lay-filter="+e+"]").find("."+n+"-bar")).find("."+n+"-text");return e.css("width",function(){return/^.+\/.+$/.test(t)?100*new function("return "+t)()+"%":t}).attr("lay-percent",t),n.text(t),this},".layui-nav"),h="layui-nav-item",a="layui-nav-bar",y="layui-nav-tree",m="layui-nav-child",g="layui-nav-more",v="layui-anim layui-anim-upbit",x={tabclick:function(e){var t=(e=e||{}).options||{},n=e.lielem||u(this),i=t.headerelem?n.parent():n.parents(".layui-tab").eq(0),t=t.bodyelem?u(t.bodyelem):i.children(".layui-tab-content").children(".layui-tab-item"),a="javascript:;"!==(a=n.find("a")).attr("href")&&"_blank"===a.attr("target"),o="string"==typeof n.attr("lay-unselect"),r=i.attr("lay-filter"),e="index"in e?e.index:n.parent().children("li").index(n);a||o||(n.addclass(s).siblings().removeclass(s),t.eq(e).addclass(f).siblings().removeclass(f)),layui.event.call(this,l,"tab("+r+")",{elem:i,index:e})},tabdelete:function(e,t){var n=(t=t||u(this).parent()).index(),i=t.closest(".layui-tab"),a=i.children(".layui-tab-content").children(".layui-tab-item"),o=i.attr("lay-filter");t.hasclass(s)&&(t.next()[0]&&t.next().is("li")?x.tabclick.call(t.next()[0],{index:n+1}):t.prev()[0]&&t.prev().is("li")&&x.tabclick.call(t.prev()[0],null,n-1)),t.remove(),a.eq(n).remove(),settimeout(function(){x.tabauto()},50),layui.event.call(this,l,"tabdelete("+o+")",{elem:i,index:n})},tabauto:function(){var i="layui-tab-bar",a="layui-tab-close",o=this;u(".layui-tab").each(function(){var e=u(this),t=e.children(".layui-tab-title"),n=(e.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),n=u('');o===window&&8!=d.ie&&x.hidetabmore(!0),e.attr("lay-allowclose")&&t.find("li").each(function(){var e,t=u(this);t.find("."+a)[0]||((e=u('')).on("click",x.tabdelete),t.append(e))}),"string"!=typeof e.attr("lay-unauto")&&(t.prop("scrollwidth")>t.outerwidth()+1?t.find("."+i)[0]||(t.append(n),e.attr("overflow",""),n.on("click",function(e){t[this.title?"removeclass":"addclass"]("layui-tab-more"),this.title=this.title?"":"收缩"})):(t.find("."+i).remove(),e.removeattr("overflow")))})},hidetabmore:function(e){var t=u(".layui-tab-title");!0!==e&&"tabmore"===u(e.target).attr("lay-stope")||(t.removeclass("layui-tab-more"),t.find(".layui-tab-bar").attr("title",""))},clickthis:function(){var e=u(this),t=e.parents(p),n=t.attr("lay-filter"),i=e.parent(),a=e.siblings("."+m),o="string"==typeof i.attr("lay-unselect");"javascript:;"!==e.attr("href")&&"_blank"===e.attr("target")||o||a[0]||(t.find("."+s).removeclass(s),i.addclass(s)),t.hasclass(y)&&(a.removeclass(v),a[0])&&(i["none"===a.css("display")?"addclass":"removeclass"](h+"ed"),"all"===t.attr("lay-shrink"))&&i.siblings().removeclass(h+"ed"),layui.event.call(this,l,"nav("+n+")",e)},collapse:function(){var e=u(this),t=e.find(".layui-colla-icon"),n=e.siblings(".layui-colla-content"),i=e.parents(".layui-collapse").eq(0),a=i.attr("lay-filter"),o="none"===n.css("display");"string"==typeof i.attr("lay-accordion")&&((i=i.children(".layui-colla-item").children("."+f)).siblings(".layui-colla-title").children(".layui-colla-icon").html(""),i.removeclass(f)),n[o?"addclass":"removeclass"](f),t.html(o?"":""),layui.event.call(this,l,"collapse("+a+")",{title:e,content:n,show:o})}},n=(t.prototype.render=t.prototype.init=function(e,t){var n=t?'[lay-filter="'+t+'"]':"";return(t={tab:function(){x.tabauto.call({})},nav:function(){var r={},l={},s={},c="layui-nav-title";u(p+n).each(function(e){var t=u(this),n=u(''),i=t.find("."+h);t.find("."+a)[0]||(t.append(n),(t.hasclass(y)?i.find("dd,>."+c):i).on("mouseenter",function(){!function(e,t,n){var i,a=u(this),o=a.find("."+m);t.hasclass(y)?o[0]||(i=a.children("."+c),e.css({top:a.offset().top-t.offset().top,height:(i[0]?i:a).outerheight(),opacity:1})):(o.addclass(v),o.hasclass("layui-nav-child-c")&&o.css({left:-(o.outerwidth()-a.width())/2}),o[0]?e.css({left:e.position().left+e.width()/2,width:0,opacity:0}):e.css({left:a.position().left+parsefloat(a.css("marginleft")),top:a.position().top+a.height()-e.height()}),r[n]=settimeout(function(){e.css({width:o[0]?0:a.width(),opacity:o[0]?0:1})},d.ie&&d.ie<10?0:200),cleartimeout(s[n]),"block"===o.css("display")&&cleartimeout(l[n]),l[n]=settimeout(function(){o.addclass(f),a.find("."+g).addclass(g+"d")},300))}.call(this,n,t,e)}).on("mouseleave",function(){t.hasclass(y)?n.css({height:0,opacity:0}):(cleartimeout(l[e]),l[e]=settimeout(function(){t.find("."+m).removeclass(f),t.find("."+g).removeclass(g+"d")},300))}),t.on("mouseleave",function(){cleartimeout(r[e]),s[e]=settimeout(function(){t.hasclass(y)||n.css({width:0,left:n.position().left+n.width()/2,opacity:0})},200)})),i.find("a").each(function(){var e=u(this);e.parent(),e.siblings("."+m)[0]&&!e.children("."+g)[0]&&e.append(''),e.off("click",x.clickthis).on("click",x.clickthis)})})},breadcrumb:function(){u(".layui-breadcrumb"+n).each(function(){var e=u(this),t="lay-separator",n=e.attr(t)||"/",i=e.find("a");i.next("span["+t+"]")[0]||(i.each(function(e){e!==i.length-1&&u(this).after(""+n+"")}),e.css("visibility","visible"))})},progress:function(){var i="layui-progress";u("."+i+n).each(function(){var e=u(this),t=e.find(".layui-progress-bar"),n=t.attr("lay-percent");t.css("width",function(){return/^.+\/.+$/.test(n)?100*new function("return "+n)()+"%":n}),e.attr("lay-showpercent")&&settimeout(function(){t.html(''+n+"")},350)})},collapse:function(){u(".layui-collapse"+n).each(function(){u(this).find(".layui-colla-item").each(function(){var e=(t=u(this)).find(".layui-colla-title"),t="none"===t.find(".layui-colla-content").css("display");e.find(".layui-colla-icon").remove(),e.append(''+(t?"":"")+""),e.off("click",x.collapse).on("click",x.collapse)})})}})[e]?t[e]():layui.each(t,function(e,t){t()})},new t),i=u(document);u(function(){n.render()}),i.on("click",".layui-tab-title li",x.tabclick),i.on("click",x.hidetabmore),u(window).on("resize",x.tabauto),e(l,n)}),layui.define(["lay","layer"],function(e){"use strict";function g(e){this.config=v.extend({},this.config,n.config,e),this.render()}var v=layui.$,t=layui.layer,x=layui.device(),n={config:{},set:function(e){return this.config=v.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,i,e,t)}},i="upload",a="layui-upload-file",o="layui-upload-form",b="layui-upload-iframe",w="layui-upload-choose";g.prototype.config={accept:"images",exts:"",auto:!0,bindaction:"",url:"",force:"",field:"file",acceptmime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},g.prototype.render=function(e){(e=this.config).elem=v(e.elem),e.bindaction=v(e.bindaction),this.file(),this.events()},g.prototype.file=function(){var e=this,t=e.config,n=e.elemfile=v(['"].join("")),i=t.elem.next();(i.hasclass(a)||i.hasclass(o))&&i.remove(),x.ie&&x.ie<10&&t.elem.wrap('
        '),e.isfile()?(e.elemfile=t.elem,t.field=t.elem[0].name):t.elem.after(n),x.ie&&x.ie<10&&e.initie()},g.prototype.initie=function(){var n,e=this.config,t=v(''),i=v(['
        ',"
        "].join(""));v("#"+b)[0]||v("body").append(t),e.elem.next().hasclass(o)||(this.elemfile.wrap(i),e.elem.next("."+o).append((n=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,n.push('')}),n.join(""))))},g.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},g.prototype.isfile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagname.tolocalelowercase()&&"file"===e.type},g.prototype.preview=function(i){window.filereader&&layui.each(this.choosefiles,function(e,t){var n=new filereader;n.readasdataurl(t),n.onload=function(){i&&i(e,t,this.result)}})},g.prototype.upload=function(e,t){function n(){return e||l.files||l.choosefiles||c.files}var i,a,o,r,l=this,s=l.config,c=l.elemfile[0],u=function(){function t(){s.multiple&&a+o===l.filelength&&"function"==typeof s.alldone&&s.alldone({total:l.filelength,successful:a,failed:o})}var a=0,o=0,e=n();layui.each(e,function(n,e){var i=new formdata,e=(layui.each(s.data,function(e,t){t="function"==typeof t?t():t,i.append(e,t)}),i.append(s.field,e),{url:s.url,type:"post",data:i,contenttype:!1,processdata:!1,datatype:"json",headers:s.headers||{},success:function(e){a++,d(n,e),t()},error:function(e){o++,l.msg("request url is abnormal: "+(e.statustext||"error")),f(n),t()}});"function"==typeof s.progress&&(e.xhr=function(){var e=v.ajaxsettings.xhr();return e.upload.addeventlistener("progress",function(e){var t;e.lengthcomputable&&(t=math.floor(e.loaded/e.total*100),s.progress(t,(s.item||s.elem)[0],e,n))}),e}),v.ajax(e)})},d=function(e,t){if(l.elemfile.next("."+w).remove(),c.value="","json"===s.force&&"object"!=typeof t)try{t=json.parse(t)}catch(e){return t={},l.msg("please return json data format")}"function"==typeof s.done&&s.done(t,e||0,function(e){l.upload(e)})},f=function(e){s.auto&&(c.value=""),"function"==typeof s.error&&s.error(e||0,function(e){l.upload(e)})},p=s.exts,h=(a=[],layui.each(e||l.choosefiles,function(e,t){a.push(t.name)}),a),y={preview:function(e){l.preview(e)},upload:function(e,t){var n={};n[e]=t,l.upload(n)},pushfile:function(){return l.files=l.files||{},layui.each(l.choosefiles,function(e,t){l.files[e]=t}),l.files},resetfile:function(e,t,n){t=new file([t],n),l.files=l.files||{},l.files[e]=t}},m={file:"文件",images:"图片",video:"视频",audio:"音频"}[s.accept]||"文件";if(0!==(h=0===h.length?c.value.match(/[^\/\\]+\..+/g)||[]:h).length){switch(s.accept){case"file":layui.each(h,function(e,t){if(p&&!regexp(".\\.("+p+")$","i").test(escape(t)))return i=!0});break;case"video":layui.each(h,function(e,t){if(!regexp(".\\.("+(p||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(t)))return i=!0});break;case"audio":layui.each(h,function(e,t){if(!regexp(".\\.("+(p||"mp3|wav|mid")+")$","i").test(escape(t)))return i=!0});break;default:layui.each(h,function(e,t){if(!regexp(".\\.("+(p||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(t)))return i=!0})}return i?(l.msg("选择的"+m+"中包含不支持的格式"),c.value=""):"choose"!==t&&!s.auto||(s.choose&&s.choose(y),"choose"!==t)?(l.filelength=(o=0,m=n(),layui.each(m,function(){o++}),o),s.number&&l.filelength>s.number?l.msg("同时最多只能上传: "+s.number+" 个文件
        您当前已经选择了: "+l.filelength+" 个文件"):01024*s.size&&(t=1<=(t=s.size/1024)?t.tofixed(2)+"mb":s.size+"kb",c.value="",r=t)}),r)?l.msg("文件大小不能超过 "+r):void(s.before&&!1===s.before(y)||(!x.ie||9'+e+"")}function o(){var e=v(this);(e.attr("lay-data")||e.attr("lay-options"))&&(r.config=v.extend({},l,lay.options(this,{attr:e.attr("lay-data")?"lay-data":null})))}var r=this,l=r.config;l.elem.off("upload.start").on("upload.start",function(){var e=v(this);o.call(this),r.config.item=e,r.elemfile[0].click()}),x.ie&&x.ie<10||l.elem.off("upload.over").on("upload.over",function(){v(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){v(this).removeattr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var n=v(this),t=t.originalevent.datatransfer.files||[];n.removeattr("lay-over"),o.call(this),i(t),l.auto?r.upload():a(t)}),r.elemfile.off("upload.change").on("upload.change",function(){var e=this.files||[];o.call(this),i(e),l.auto?r.upload():a(e)}),l.bindaction.off("upload.action").on("upload.action",function(){r.upload()}),l.elem.data("haveevents")||(r.elemfile.on("change",function(){v(this).trigger("upload.change")}),l.elem.on("click",function(){r.isfile()||v(this).trigger("upload.start")}),l.drag&&l.elem.on("dragover",function(e){e.preventdefault(),v(this).trigger("upload.over")}).on("dragleave",function(e){v(this).trigger("upload.leave")}).on("drop",function(e){e.preventdefault(),v(this).trigger("upload.drop",e)}),l.bindaction.on("click",function(){v(this).trigger("upload.action")}),l.elem.data("haveevents",!0))},n.render=function(e){return e=new g(e),function(){var t=this;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}.call(e)},e(i,n)}),layui.define(["lay","layer","util"],function(e){"use strict";var t=layui.$,p=layui.layer,e=layui.util,o=layui.hint(),d=(layui.device(),"form"),s=".layui-form",l="layui-this",s="layui-hide",a="layui-disabled",t=((n=function(){this.config={verify:{required:[/[\s]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-za-z0-9_\.\-])+\@(([a-za-z0-9\-])+\.)+([a-za-z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/,"链接格式不正确"],number:function(e){if(!e||isnan(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|x|\d)$)/,"请输入正确的身份证号"]},autocomplete:null}}).prototype.set=function(e){return t.extend(!0,this.config,e),this},n.prototype.verify=function(e){return t.extend(!0,this.config.verify,e),this},n.prototype.getformelem=function(e){return t(s+(e?'[lay-filter="'+e+'"]':""))},n.prototype.on=function(e,t){return layui.onevent.call(this,d,e,t)},n.prototype.val=function(e,n){return this.getformelem(e).each(function(e,t){var i=t(this);layui.each(n,function(e,t){var n;(e=i.find('[name="'+e+'"]'))[0]&&("checkbox"===(n=e[0].type)?e[0].checked=t:"radio"===n?e.each(function(){this.value==t&&(this.checked=!0)}):e.val(t))})}),r.render(null,e),this.getvalue(e)},n.prototype.getvalue=function(e,t){t=t||this.getformelem(e);var i={},a={},e=t.find("input,select,textarea");return layui.each(e,function(e,t){var n;t(this),t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name&&(/^.*\[\]$/.test(t.name)&&(n=t.name.match(/^(.*)\[\]$/g)[0],i[n]=0|i[n],n=t.name.replace(/^(.*)\[\]$/,"$1["+i[n]+++"]")),/^(checkbox|radio)$/.test(t.type)&&!t.checked||(a[n||t.name]=t.value))}),a},n.prototype.render=function(e,t){var n=this.config,i=t(s+(t?'[lay-filter="'+t+'"]':"")),a={input:function(e){e=e||i.find("input,textarea"),n.autocomplete&&e.attr("autocomplete",n.autocomplete),i.find("input[lay-affix],textarea[lay-affix]").each(function(){function o(e,t){(e=t(e))[0]&&e[t.trim(t)?"removeclass":"addclass"](s)}function a(t){t=t.extend({},u[l]||{value:l},t,lay.options(r[0]));var n=t('
        '),e=t(''),i=(n.append(e),t.split&&n.addclass("layui-input-split"),r.next("."+c)),a=(i[0]&&i.remove(),r.next("."+s));a[0]?((i=a.find("."+c))[0]&&i.remove(),a.prepend(n),r.css("padding-right",function(){return(r.closest(".layui-input-group")[0]?0:a.outerwidth())+n.outerwidth()})):(n.addclass(s),r.after(n)),"auto"===t.show&&o(n,r.val()),r.on("input propertychange",function(){var e=this.value;"auto"===t.show&&o(n,e)}),e.on("click",function(){var e=r.attr("lay-filter");t(this).hasclass(a)||("function"==typeof t.click&&t.click.call(this,r,t),layui.event.call(this,d,"input-affix("+e+")",{elem:r[0],affix:l,options:t}))})}var r=t(this),l=r.attr("lay-affix"),s="layui-input-suffix",c="layui-input-affix",e=r.is("[disabled]")||r.is("[readonly]"),u={eye:{value:"eye-invisible",click:function(e,t){var n="lay_form_input_affix_show",i=e.data(n);e.attr("type",i?"password":"text").data(n,!i),a({value:i?"eye-invisible":"eye"})}},clear:{value:"clear",click:function(e){e.val("").focus(),o(t(this).parent(),null)},show:"auto",disabled:e}};a()})},select:function(e){function b(e,t){t(e.target).parent().hasclass(k)&&!t||t("."+w).removeclass(w+"ed "+w+"up"),0}var w="layui-form-select",k="layui-select-title",c="layui-select-none",e=e||i.find("select");e.each(function(e,t){var n=t(this),i=n.next("."+w),a=this.disabled,o=t.value,r=t(t.options[t.selectedindex]),t=t.options[0];if(!n.data("layui-init")){if(n.data("layui-init",!0),"string"==typeof n.attr("lay-ignore"))return n.show();var l,s="string"==typeof n.attr("lay-search"),c="string"==typeof n.attr("lay-remote"),t=t&&!t.value&&t.innerhtml||"请选择",r=t(['
        ','
        ','','
        ','
        ',(t=n.find("*"),l=[],layui.each(t,function(e,t){var n=t.tagname.tolowercase();0!==e||t.value||"optgroup"===n?l.push("optgroup"===n?"
        "+t.label+"
        ":'
        '+t.trim(t.innerhtml)+"
        "):l.push('
        '+t.trim(t.innerhtml||"请选择")+"
        ")}),0===l.length&&l.push('
        没有选项
        '),l.join("")+"
        "),"
        "].join(""));i[0]&&i.remove(),n.after(r),function(i,e,t){function n(){return v.children("dd")}var l,r,s,a,c,u,o,d,f,p,h,y=t(this),m=i.find("."+k),g=m.find("input"),v=i.find("dl"),x=v.children("dt");this.selectedindex;e||(r=y.attr("lay-search"),s=y.attr("lay-remote")||null,a=function(){var e=i.offset().top+i.outerheight()+5-n.scrolltop(),t=v.outerheight();h=y[0].selectedindex,i.addclass(w+"ed"),n().removeclass(s),x.removeclass(s),l=null,n().removeclass(l),0<=h&&n().eq(h).addclass(l),e+t>n.height()&&t<=e&&i.addclass(w+"up"),u()},c=function(e){i.removeclass(w+"ed "+w+"up"),g.blur(),l=null,e||o(g.val(),function(e){var t=y[0].selectedindex;e&&(f=t(y[0].options[t]).html(),0===t&&f===g.attr("placeholder")&&(f=""),g.val(f||""))})},u=function(){var e,t,n=v.children("dd."+l);n[0]&&(e=n.position().top,t=v.height(),n=n.height(),t'+e.escape(""+t.label)+""),i.push('
        '+e.escape(""+t.label)+"
        ")}),y.html(n.join("")),v.html(i.join("")),t&&v.children('dd[lay-value="'+t+'"]').trigger("click")})},(f=y.attr("lay-init-value"))&&d(f),p=null,(t||s)&&g.on("input propertychange",function(e){var t=this.value;if(9===(e=e.keycode)||13===e||37===e||38===e||39===e||40===e)return!1;s?(p&&cleartimeout(p),p=settimeout(function(){d(null,t)},500)):(o(t,function(e){e?v.find("."+c)[0]||v.append('

        无匹配项

        '):v.find("."+c).remove()},"keyup"),""===t&&(y.val(""),v.find("."+l).removeclass(l),(y[0].options[0]||{}).value||v.children("dd:eq(0)").addclass(l),v.find("."+c).remove()),u())}).on("blur",function(e){var t=y[0].selectedindex;f=t(y[0].options[t]).html(),0===t&&f===g.attr("placeholder")&&(f=""),settimeout(function(){o(g.val(),function(e){f||g.val("")},"blur")},200)}),v.on("click","dd",function(){var e=t(this),t=e.attr("lay-value"),n=y.attr("lay-filter");return e.hasclass(a)||(e.hasclass("layui-select-tips")?g.val(""):(g.val(e.text()),e.addclass(l)),e.siblings().removeclass(l),y.val(t).removeclass("layui-form-danger"),layui.event.call(this,d,"select("+n+")",{elem:y[0],value:t,othis:i}),c(!0)),!1}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",b).on("click",b))}.call(this,r,a,s)}})},checkbox:function(e){var s={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],switch:["layui-form-switch","layui-form-onswitch","switch"]},e=e||i.find("input[type=checkbox]"),c={primary:!0,tag:!0,switch:!0};e.each(function(e,t){var n=t(this),i=n.attr("lay-skin")||"primary",a=t.trim(t.title||(t.title=n.attr("lay-text")||"")).split("|"),o=this.disabled,r=s[i=c[i]?i:"primary"]||s.checkbox;if("string"==typeof n.attr("lay-ignore"))return n.show();var l=n.next("."+r[0]),t=t(['
        ",(o={checkbox:[a[0]?""+e.escape(a[0])+"":"",''].join(""),switch:""+((t.checked?a[0]:a[1])||"")+""})[i]||o.checkbox,"
        "].join(""));l[0]&&l.remove(),n.after(t),function(n,i){var a=t(this);n.on("click",function(){var e=a.attr("lay-filter"),t=(a.attr("title")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,n.removeclass(i[1]).find("em").text(t[1])):(a[0].checked=!0,n.addclass(i[1]).find("em").text(t[0])),layui.event.call(a[0],d,i[2]+"("+e+")",{elem:a[0],value:a[0].value,othis:n}))})}.call(this,t,r)})},radio:function(e){var r="layui-form-radio",l=["",""];(e=e||i.find("input[type=radio]")).each(function(e,t){var n=t(this),i=n.next("."+r),a=this.disabled;if("string"==typeof n.attr("lay-ignore"))return n.show();i[0]&&i.remove(),a=t(['
        ',''+l[t.checked?0:1]+"","
        "+(i=e.escape(t.title||""),i="string"==typeof n.next().attr("lay-radio")?n.next().html():i)+"
        ","
        "].join("")),n.after(a),function(i){var a=t(this),o="layui-anim-scalespring";i.on("click",function(){var e=a[0].name,t=a.parents(s),n=a.attr("lay-filter"),e=t.find("input[name="+e.replace(/(\.|#|\[|\])/g,"\\$1")+"]");a[0].disabled||(layui.each(e,function(){var e=t(this).next("."+r);this.checked=!1,e.removeclass(r+"ed"),e.find(".layui-icon").removeclass(o).html(l[1])}),a[0].checked=!0,i.addclass(r+"ed"),i.find(".layui-icon").addclass(o).html(l[0]),layui.event.call(a[0],d,"radio("+n+")",{elem:a[0],value:a[0].value,othis:i}))})}.call(this,a)})}},t=function(){layui.each(a,function(e,t){t()})};return"object"===layui.type(e)?t(e).is(s)?(i=t(e),t()):e.each(function(e,t){var n=t(t);n.closest(s).length&&("select"===t.tagname?a.select(n):"input"===t.tagname&&("checkbox"===(t=t.type)||"radio"===t?a[t](n):a.input(n)))}):e?a[e]?a[e]():o.error('不支持的 "'+e+'" 表单渲染'):t(),this},n.prototype.validate=function(e){var u=null,d=r.config.verify,f="layui-form-danger";return!(e=t(e))[0]||(void 0!==e.attr("lay-verify")||!1!==this.validate(e.find("*[lay-verify]")))&&(layui.each(e,function(e,r){var l=t(this),t=(l.attr("lay-verify")||"").split("|"),s=l.attr("lay-vertype"),c=l.val();if(l.removeclass(f),layui.each(t,function(e,t){var n="",i=d[t];if(i){var a="function"==typeof i?n=i(c,r):!i[0].test(c),o="select"===r.tagname.tolowercase()||/^(checkbox|radio)$/.test(r.type),n=n||i[1];if("required"===t&&(n=l.attr("lay-reqtext")||n),a)return"tips"===s?p.tips(n,"string"!=typeof l.attr("lay-ignore")&&o?l.next():l,{tips:1}):"alert"===s?p.alert(n,{title:"提示",shadeclose:!0}):/\bstring|number\b/.test(typeof n)&&p.msg(n,{icon:5,shift:6}),settimeout(function(){(o?l.next().find("input"):r).focus()},7),l.addclass(f),u=!0}}),u)return u}),!u)},n.prototype.submit=function(e,t){var n,i=t(this),e="string"==typeof e?e:i.attr("lay-filter"),a=this.getformelem?this.getformelem(e):i.parents(s).eq(0),o=a.find("*[lay-verify]");return!!r.validate(o)&&(n=r.getvalue(null,a),o={elem:this.getformelem?window.event&&window.event.target:this,form:(this.getformelem?a:i.parents("form"))[0],field:n},"function"==typeof t&&t(o),layui.event.call(this,d,"submit("+e+")",o))}),r=new n,n=t(document),n=t(window);t(function(){r.render()}),n.on("reset",s,function(){var e=t(this).attr("lay-filter");settimeout(function(){r.render(null,e)},50)}),n.on("submit",s,t).on("click","*[lay-submit]",t),e(d,r)}),layui.define(["lay","laytpl","laypage","form","util"],function(e){"use strict";function p(e){var t=m.that[e];return t||f.error(e?"the table instance with id '"+e+"' not found":"id argument required"),t||null}function a(e){var t=m.config[e];return t||f.error(e?"the table instance with id '"+e+"' not found":"id argument required"),t||null}function v(e){var t=this.config||{},n=(e=e||{}).item3,i=e.content;return(t=(("escape"in n?n:t).escape&&(i=k.escape(i)),e.text&&n.exporttemplet||n.templet||n.toolbar))&&(i="function"==typeof t?t.call(n,e.tpldata,e.obj):x(w(t).html()||string(i)).render(w.extend({lay_col:n},e.tpldata))),e.text?w("
        "+i+"
        ").text():i}function t(e){return['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(e=e||{}).fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':"","{{# var issort = !(item2.colgroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
        ','
        ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{-item2.title||""}}',"{{# if(issort){ }}",'',"{{# } }}","{{# } }}","
        ","
        "].join("")}function n(e){this.index=++c.index,this.config=w.extend({},this.config,c.config,e),this.render()}var w=layui.$,s=layui.lay,x=layui.laytpl,r=layui.laypage,b=layui.layer,h=layui.form,k=layui.util,f=layui.hint(),y=layui.device(),c={config:{checkname:"lay_checked",indexname:"lay_index",numbersname:"lay_num",disabledname:"lay_disabled"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){return this.config=w.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,g,e,t)}},m=function(){var n=this,e=n.config,i=e.id||e.index;return i&&(m.that[i]=n,m.config[i]=e),{config:e,loading:function(e){n.loading(!e)},reload:function(e,t){n.reload.call(n,e,t)},reloaddata:function(e,t){c.reloaddata(i,e,t)},setcolswidth:function(){n.setcolswidth.call(n)},resize:function(){n.resize.call(n)}}},g="table",o=".layui-table",t="layui-hide",l="layui-hide-v",c="layui-none",e="layui-table-view",u=".layui-table-header",d=".layui-table-body",d=".layui-table-pageview",l=".layui-table-sort",s="layui-table-edit",a="layui-table-hover",n="laytable-cell-group",m="layui-table-col-special",j="layui-table-tool-panel",i="lay_table_move_dict",i=['',"","
        "].join(""),h=[,"{{# if(d.data.toolbar){ }}",'
        ','
        ','
        ',"
        ","{{# } }}",'
        ',"{{# if(d.data.loading){ }}",'
        ','',"
        ","{{# } }}","{{# var left, right; }}",'
        ',t(),"
        ",'
        ',i,"
        ","{{# if(left){ }}",'
        ','
        ',t({fixed:!0}),"
        ",'
        ',i,"
        ","
        ","{{# }; }}","{{# if(right){ }}",'
        ','
        ',t({fixed:"right"}),'
        ',"
        ",'
        ',i,"
        ","
        ","{{# }; }}","
        ","{{# if(d.data.totalrow){ }}",'
        ','','',"
        ","
        ","{{# } }}",'
        ','
        ',"
        ",""].join(""),f=w(window),_=w(document),q=(n.prototype.config={limit:10,loading:!0,escape:!0,cellminwidth:60,cellmaxwidth:number.max_value,edittrigger:"click",defaulttoolbar:["filter","exports","print"],defaultcontextmenu:!0,autoscrolltop:!0,autocolumnwidth:!1,autosort:!0,text:{none:"无数据"},cols:[]},string.prototype.contentwidth=function(e,t,n){n=n||!1;var t=t||e.css("font"),i=w("
        "),n=(n?i.text(this):i.html(this),i.css({position:"absolute",float:"left","white-space":"nowrap",visibility:"hidden",font:t}).appendto(e),i.width());return i.remove(),n},n.prototype.render=function(e){var t=this,n=t.config;if(n.elem=w(n.elem),n.where=n.where||{},n.id="id"in n?n.id:n.elem.attr("id")||t.index,n.request=w.extend({pagename:"page",limitname:"limit"},n.request),n.response=w.extend({statusname:"code",statuscode:0,msgname:"msg",dataname:"data",totalrowname:"totalrow",countname:"count"},n.response),null!==n.page&&"object"==typeof n.page&&(n.limit=n.page.limit||n.limit,n.limits=n.page.limits||n.limits,t.page=n.page.curr=n.page.curr||1,delete n.page.elem,delete n.page.jump),!n.elem[0])return t;if(n.elem.attr("lay-filter")||n.elem.attr("lay-filter",n.id),"reloaddata"===e)return t.pulldata(t.page,{type:"reloaddata"});n.index=t.index,t.key=n.id||n.index,t.setinit(),n.height&&/^full-\d+$/.test(n.height)?(t.fullheightgap=n.height.split("-")[1],n.height=f.height()-t.fullheightgap):n.height&&/^#\w+\s*-\d+$/.test(n.height)&&(e=n.height.split("-"),t.parentheightgap=e.pop(),t.parentdiv=e.join("-"),n.height=w(t.parentdiv).height()-t.parentheightgap);var i=(e=n.elem).next("."+e),a=t.elem=w("
        "),o=(a.addclass((o=[e,e+"-"+t.index,"layui-form","layui-border-box"],n.classname&&o.push(n.classname),o.join(" "))).attr({"lay-filter":"lay-table-form-df-"+t.index,"lay-id":n.id,style:(o=[],n.width&&o.push("width:"+n.width+"px;"),n.height&&o.push("height:"+n.height+"px;"),o.join(""))}).html(x(h).render({data:n,index:t.index})),t.laybody?t.laybody.scrollleft():0);i[0]&&i.remove(),e.after(a),t.laytool=a.find(".layui-table-tool"),t.laybox=a.find(".layui-table-box"),t.layheader=a.find(u),t.laymain=a.find(".layui-table-main"),t.laybody=a.find(d),t.layfixed=a.find(".layui-table-fixed"),t.layfixleft=a.find(".layui-table-fixed-l"),t.layfixright=a.find(".layui-table-fixed-r"),t.laytotal=a.find(".layui-table-total"),t.laypage=a.find(".layui-table-page"),t.rendertoolbar(),t.renderpagebar(),t.fullsize(),t.pulldata(t.page),t.events(),t.laybody[0].scrollleft=o},n.prototype.initopts=function(e){this.config,e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||{checkbox:50,radio:50,space:30,numbers:60}[e.type])},n.prototype.setinit=function(e){var i,n,l=this,s=l.config;if(s.clientwidth=s.width||(i=function(e){var t,n=(e=e||s.elem.parent()).width();try{t="none"===e.css("display")}catch(e){}return!e[0]||n&&!t?n:i(e.parent())})(),"width"===e)return s.clientwidth;s.height=s.maxheight||s.height,s.css&&-1===s.css.indexof(e)&&(n=s.css.split("}"),layui.each(n,function(e,t){t&&(n[e]="."+e+"-"+l.index+" "+t)}),s.css=n.join("}"));var c=function(n,e,i,a){var o,r;a?(a.key=[s.index,n,i].join("-"),a.hide=a.hide||!1,a.colspan=a.colspan||0,a.rowspan=a.rowspan||0,l.initopts(a),(o=n+(parseint(a.rowspan)||1))
        ','
        ','
        '].join(""),n=this.laytool.find(".layui-table-tool-temp"),i=("default"===e.toolbar?n.html(t):"string"==typeof e.toolbar&&(t=w(e.toolbar).html()||"")&&n.html(x(t).render(e)),{filter:{title:"筛选列",layevent:"laytable_cols",icon:"layui-icon-cols"},exports:{title:"导出",layevent:"laytable_export",icon:"layui-icon-export"},print:{title:"打印",layevent:"laytable_print",icon:"layui-icon-print"}}),a=[];"object"==typeof e.defaulttoolbar&&layui.each(e.defaulttoolbar,function(e,t){(t="string"==typeof t?i[t]:t)&&a.push('
        ')}),this.laytool.find(".layui-table-tool-self").html(a.join(""))},n.prototype.renderpagebar=function(){var e,t=this.config,n=this.laypagebar=w('
        ');t.pagebar&&((e=w(t.pagebar).html()||"")&&n.append(x(e).render(t)),this.laypage.append(n))},n.prototype.setparentcol=function(e,t){var n=this.config,i=this.layheader.find('th[data-key="'+t+'"]'),a=parseint(i.attr("colspan"))||0;i[0]&&(t=t.split("-"),t=n.cols[t[1]][t[2]],e?a--:a++,i.attr("colspan",a),i[1<=a||!e?"removeclass":"addclass"](t),t.colspan=a,t.hide=1<=a||!e,n=i.data("parentkey"))&&this.setparentcol(e,n)},n.prototype.setcolspatch=function(){var n=this,e=n.config;layui.each(e.cols,function(e,t){layui.each(t,function(e,t){t.hide&&n.setparentcol(t.hide,t.parentkey)})})},n.prototype.setgroupwidth=function(i){var e,a=this;a.config.cols.length<=1||((e=a.layheader.find((i?"th[data-key="+i.data("parentkey")+"]>":"")+"."+n)).css("width",0),layui.each(e.get().reverse(),function(){var e=w(this),t=e.parent().data("key"),n=0;a.layheader.eq(0).find("th[data-parentkey="+t+"]").width(function(e,t){w(this).hasclass(t)||0table").width("auto"),d.autocolumnwidth&&(l=w("body"),g=u.elem.children(".layui-table-box").children(".layui-table-header").children("table").children("thead").children("tr").children("th"),e=u.elem.children(".layui-table-box").children(".layui-table-fixed").children(".layui-table-header").children("table").children("thead").children("tr").children("th"),s=u.elem.children(".layui-table-box").children(".layui-table-body").children("table").children("tbody").children("tr"),c=u.elem.children(".layui-table-total").find("tr"),g.add(e).on("dblclick",function(e){var t=w(this),e=e.clientx-t.offset().left,n=t.attr("data-key").split("-"),n=u.config.cols[n[1]][n[2]];b(t,0 tbody > tr"),e.each(function(e,t){w(t).find("table > tbody > tr").each(function(e,t){e=r.find("td:first").get(e).getboundingclientrect().height,w(t).find("td:first").css({height:e+"px"})})}),u.loading(!0)},n.prototype.resize=function(){this.fullsize(),this.setcolswidth(),this.scrollpatch()},n.prototype.reload=function(e,t,n){var i=this;e=e||{},delete i.haveinit,layui.each(e,function(e,t){"array"===layui.type(t)&&delete i.config[e]}),i.config=w.extend(t,{},i.config,e),i.render(n)},n.prototype.errorview=function(e){var t=this,n=t.laymain.find("."+c),e=w('
        '+(e||"error")+"
        ");n[0]&&(t.laynone.remove(),n.remove()),t.layfixed.addclass(t),t.laymain.find("tbody").html(""),t.laymain.append(t.laynone=e),t.laytotal.addclass(l),t.laypage.find(d).addclass(l),c.cache[t.key]=[],t.synccheckall()},n.prototype.page=1,n.prototype.pulldata=function(t,n){function i(){"object"==typeof r.initsort&&o.sort({field:r.initsort.field,type:r.initsort.type,reloadtype:n.type})}var e,a,o=this,r=o.config,l=r.request,s=r.response;n=n||{},"function"==typeof r.before&&r.before(r),o.starttime=(new date).gettime(),r.url?(e={},r.page&&(e[l.pagename]=t,e[l.limitname]=r.limit),l=w.extend(e,r.where),r.contenttype&&0==r.contenttype.indexof("application/json")&&(l=json.stringify(l)),o.loading(),w.ajax({type:r.method||"get",url:r.url,contenttype:r.contenttype,data:l,datatype:r.datatype||"json",jsonpcallback:r.jsonpcallback,headers:r.headers||{},success:function(e){(e="function"==typeof r.parsedata&&r.parsedata(e)||e)[s.statusname]!=s.statuscode?(o.renderform(),o.errorview(e[s.msgname]||'返回的数据不符合规范,正确的成功状态码应为:"'+s.statusname+'": '+s.statuscode)):(o.renderdata({res:e,curr:t,count:e[s.countname],type:n.type}),i(),r.time=(new date).gettime()-o.starttime+" ms"),o.setcolswidth(),"function"==typeof r.done&&r.done(e,t,e[s.countname])},error:function(e,t){o.errorview("请求异常,错误提示:"+t),o.renderform(),o.setcolswidth(),"function"==typeof r.error&&r.error(e,t)}})):"array"===layui.type(r.data)&&(e={},l=t*r.limit-r.limit,a=r.data.concat(),e[s.dataname]=r.page?a.splice(l,r.limit):a,e[s.countname]=r.data.length,"object"==typeof r.totalrow&&(e[s.totalrowname]=w.extend({},r.totalrow)),o.renderdata({res:e,curr:t,count:e[s.countname],type:n.type}),i(),o.setcolswidth(),"function"==typeof r.done)&&r.done(e,t,e[s.countname])},n.prototype.eachcols=function(e){return c.eachcols(null,e,this.config.cols),this},n.prototype.col=function(e){try{return e=e.split("-"),this.config.cols[e[1]][e[2]]||{}}catch(e){return f.error(e),{}}},n.prototype.renderdata=function(e){function t(){var d;if(p.has_set_cols_patch||f.setcolspatch(),p.has_set_cols_patch=!0,!o&&f.sortkey)return f.sort({field:f.sortkey.field,type:f.sortkey.sort,pull:!0,reloadtype:e.type});layui.each(h,function(r,l){var i=[],s=[],c=[],u=r+p.limit*(a-1)+1;if("object"!=typeof l){h[r]=l={lay_key:l};try{c.cache[f.key][r]=l}catch(e){}}"array"===layui.type(l)&&0===l.length||(l[c.config.numbersname]=u,o||(l[c.config.indexname]=r),f.eachcols(function(e,a){var t,e=a.field||e,n=a.key,o=l[e];null!=o||(o=""),a.colgroup||(t=['','
        "+function(){var e,t=w.extend(!0,{lay_col:a},l),n=c.config.checkname,i=c.config.disabledname;switch(a.type){case"checkbox":return'';case"radio":return t[n]&&(d=r),'';case"numbers":return u}return a.toolbar?x(w(a.toolbar).html()||"").render(t):v.call(f,{item3:a,content:o,tpldata:t})}(),"
        "].join(""),i.push(t),a.fixed&&"right"!==a.fixed&&s.push(t),"right"===a.fixed&&c.push(t))}),y.push(''+i.join("")+""),m.push(''+s.join("")+""),g.push(''+c.join("")+""))}),!p.autoscrolltop||"fixed"===p.scrollpos&&"reloaddata"===e.type||f.laybody.scrolltop(0),"reset"===p.scrollpos&&f.laybody.scrollleft(0),f.laymain.find("."+c).remove(),f.laymain.find("tbody").html(y.join("")),f.layfixleft.find("tbody").html(m.join("")),f.layfixright.find("tbody").html(g.join("")),f.renderform(),"number"==typeof d&&f.setrowchecked({type:"radio",index:d},!0),f.synccheckall(),f.fullsize(),f.haveinit?f.scrollpatch():settimeout(function(){f.scrollpatch()},50),f.haveinit=!0,b.close(f.tipsindex)}var f=this,p=f.config,n=e.res,a=e.curr,i=e.count,o=e.sort,h=n[p.response.dataname]||[],n=n[p.response.totalrowname],y=[],m=[],g=[];return c.cache[f.key]=h,f.laytotal[0==h.length?"addclass":"removeclass"](l),f.laypage[p.page||p.pagebar?"removeclass":"addclass"](t),f.laypage.find(d)[!p.page||0==i||0===h.length&&1==a?"addclass":"removeclass"](l),0===h.length?(f.renderform(),f.errorview(p.text.none)):(f.layfixleft.removeclass(t),o?t():(t(),f.rendertotal(h,n),f.laytotal&&f.laytotal.removeclass(t),void(p.page&&(p.page=w.extend({elem:"layui-table-page"+p.index,count:i,limit:p.limit,limits:p.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(f.page=e.curr,p.limit=e.limit,f.pulldata(e.curr))}},p.page),p.page.count=i,r.render(p.page)))))},n.prototype.rendertotal=function(e,r){var l,s=this,c=s.config,u={};c.totalrow&&(layui.each(e,function(e,i){"array"===layui.type(i)&&0===i.length||s.eachcols(function(e,t){var e=t.field||e,n=i[e];t.totalrow&&(u[e]=(u[e]||0)+(parsefloat(n)||0))})}),s.datatotal=[],l=[],s.eachcols(function(e,t){var n,e=t.field||e,i=r&&r[t.field],a="totalrowdecimals"in t?t.totalrowdecimals:2,a=u[e]?parsefloat(u[e]||0).tofixed(a):"",a=(n=t.totalrowtext||"",(o={lay_col:t})[e]=a,o=t.totalrow&&v.call(s,{item3:t,content:a,tpldata:o})||n,i||o),o=(t.field&&s.datatotal.push({field:t.field,total:w("
        "+a+"
        ").text()}),['','
        "+("string"==typeof(n=t.totalrow||c.totalrow)?x(n).render(w.extend({total_nums:i||u[e],total_row:r||{},lay_col:t},t)):a),"
        "].join(""));l.push(o)}),e=s.laytotal.find(".layui-table-patch"),s.laytotal.find("tbody").html(""+l.join("")+(e.length?e.get(0).outerhtml:"")+""))},n.prototype.getcolelem=function(e,t){return this.config,e.eq(0).find(".laytable-cell-"+t+":eq(0)")},n.prototype.renderform=function(e){this.config;var t=this.elem.attr("lay-filter");h.render(e,t)},n.prototype.setrowchecked=function(n,e){var i=this.config,t="layui-table-click",a=this.laybody.find("tr"+("all"===n.index?"":'[data-index="'+n.index+'"]'));"checkbox"!==(n=w.extend({type:"checkbox",checked:!0},n)).type&&"all"!==n.index&&a.addclass(t).siblings("tr").removeclass(t),n.selectedstyle||e||(t=c.cache[this.key],layui.each(t,function(e,t){n.index===e||"all"===n.index?t[i.checkname]=n.checked:"radio"===n.type&&delete t[i.checkname]}),a.find('input[lay-type="'+({radio:"laytableradio",checkbox:"laytablecheckbox"}[n.type]||"checkbox")+'"]').prop("checked",n.checked),this.synccheckall(),this.renderform(n.type))},n.prototype.sort=function(a){var e,t=this,n={},i=t.config,o=i.elem.attr("lay-filter"),r=c.cache[t.key];"string"==typeof(a=a||{}).field&&(l=a.field,t.layheader.find("th").each(function(e,t){var n=w(this),i=n.data("field");if(i===a.field)return a.field=n,l=i,!1}));try{var l=l||a.field.data("field"),s=a.field.data("key");if(t.sortkey&&!a.pull&&l===t.sortkey.field&&a.type===t.sortkey.sort)return;var c=t.layheader.find("th .laytable-cell-"+s).find(l);t.layheader.find("th").find(l).removeattr("lay-sort"),c.attr("lay-sort",a.type||null),t.layfixed.find("th")}catch(e){f.error("table modules: sort field '"+l+"' not matched")}t.sortkey={field:l,sort:a.type},i.autosort&&("asc"===a.type?e=layui.sort(r,l):"desc"===a.type?e=layui.sort(r,l,!0):(e=layui.sort(r,c.config.indexname),delete t.sortkey,delete i.initsort)),n[i.response.dataname]=e||r,t.renderdata({res:n,curr:t.page,count:t.count,sort:!0,type:a.reloadtype}),a.fromevent&&(i.initsort={field:l,type:a.type},layui.event.call(a.field,g,"sort("+o+")",w.extend({config:i},i.initsort)))},n.prototype.loading=function(e){this.config.loading&&(e?(this.layinit&&this.layinit.remove(),delete this.layinit,this.laybox.find(".layui-table-init").remove()):(this.layinit=w(['
        ','',"
        "].join("")),this.laybox.append(this.layinit)))},n.prototype.setcheckdata=function(e,t){var n=this.config,i=c.cache[this.key];i[e]&&"array"!==layui.type(i[e])&&(i[e][n.checkname]=t)},n.prototype.synccheckall=function(){function e(n){return t.eachcols(function(e,t){"checkbox"===t.type&&(t[i.checkname]=n)}),n}var t=this,i=t.config,n=t.layheader.find('input[name="laytablecheckbox"]');n[0]&&(c.checkstatus(t.key).isall?(n[0].checked||(n.prop("checked",!0),t.renderform("checkbox")),e(!0)):(n[0].checked&&(n.prop("checked",!1),t.renderform("checkbox")),e(!1)))},n.prototype.getcssrule=function(n,i){var e=(e=(e=this.elem.find("style")[0]).sheet||e.stylesheet||{}).cssrules||e.rules;layui.each(e,function(e,t){if(t.selectortext===".laytable-cell-"+n)return i(t),!0})},n.prototype.fullsize=function(){var e,n,i=this,t=i.config,a=t.height;i.fullheightgap?(a=f.height()-i.fullheightgap,i.elem.css("height",a=a<135?135:a)):i.parentdiv&&i.parentheightgap&&(a=w(i.parentdiv).height()-i.parentheightgap,i.elem.css("height",a=a<135?135:a)),1
        ')).find("div").css({width:n}),e.find("tr").append(t)):e.find(".layui-table-patch").remove()};o(e.layheader),o(e.laytotal),o=e.laymain.height()-i,e.layfixed.find(d).css("height",t.height()>=o?o:"auto"),e.layfixright[c.cache[e.key]&&c.cache[e.key].length&&0':''))[0].value=e.data("content")||i[n]||a.text(),e.find("."+s)[0]||e.append(o),o.focus(),t)&&layui.stope(t))}var u=this,d=u.config,s=d.elem.attr("lay-filter"),e=u.layheader.find("th"),f=".layui-table-cell",r=w("body"),l={},c=(u.laytool.on("click","*[lay-event]",function(e){function t(e){var t=w(e.list),n=w('
          ');n.html(t),d.height&&n.css("max-height",d.height-(u.laytool.outerheight()||50)),i.find("."+j)[0]||i.append(n),u.renderform(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,t)}var n,i=w(this),a=i.attr("lay-event");switch(layui.stope(e),_.trigger("table.tool.panel.remove"),b.close(u.tipsindex),a){case"laytable_cols":t({list:(n=[],u.eachcols(function(e,t){t.field&&"normal"==t.type&&n.push('
        • "+(t.fieldtitle||t.title||t.field)+"
        • ").text())+'" lay-filter="lay_table_tool_cols">')}),n.join("")),done:function(){h.on("checkbox(lay_table_tool_cols)",function(e){var e=w(e.elem),t=this.checked,n=e.data("key"),i=u.col(n),a=i.hide,e=e.data("parentkey");i.key&&(i.hide=!t,u.elem.find('*[data-key="'+n+'"]')[t?"removeclass":"addclass"](t),a!=i.hide&&u.setparentcol(!t,e),u.resize(),layui.event.call(this,g,"coltoggled("+s+")",{col:i,config:d}))})}});break;case"laytable_export":y.ie?b.tips("导出功能不支持 ie,请用 chrome 等高级浏览器导出",this,{tips:3}):t({list:['
        • 导出 csv 格式文件
        • ','
        • 导出 xls 格式文件
        • '].join(""),done:function(e,t){t.on("click",function(){var e=w(this).data("type");c.exportfile.call(u,d.id,null,e)})}});break;case"laytable_print":var o=window.open("about:blank","_blank"),r=[""].join(""),l=w(u.layheader.html());l.append(u.laymain.find("table").html()),l.append(u.laytotal.find("table").html()),l.find("th.layui-table-patch").remove(),l.find("thead>tr>th."+m).filter(function(e,t){return!w(t).children("."+n).length}).remove(),l.find("tbody>tr>td."+m).remove(),o.document.write(r+l.prop("outerhtml")),o.document.close(),o.print(),o.close()}layui.event.call(this,g,"toolbar("+s+")",w.extend({event:a,config:d},{}))}),u.laypagebar.on("click","*[lay-event]",function(e){var t=w(this).attr("lay-event");layui.event.call(this,g,"pagebar("+s+")",w.extend({event:t,config:d},{}))}),e.on("mousemove",function(e){var t=w(this),n=t.offset().left,e=e.clientx-n;t.data("unresize")||m.eventmoveelem||(l.allowresize=t.width()-e<=10,r.css("cursor",l.allowresize?"col-resize":""))}).on("mouseleave",function(){w(this),m.eventmoveelem||r.css("cursor","")}).on("mousedown",function(e){var t,n=w(this);l.allowresize&&(t=n.data("key"),e.preventdefault(),l.offset=[e.clientx,e.clienty],u.getcssrule(t,function(e){var t=e.style.width||n.outerwidth();l.rule=e,l.rulewidth=parsefloat(t),l.minwidth=n.data("minwidth")||d.cellminwidth,l.maxwidth=n.data("maxwidth")||d.cellmaxwidth}),n.data(i,l),m.eventmoveelem=n)}),m.docevent||_.on("mousemove",function(e){var t,n;m.eventmoveelem&&(t=m.eventmoveelem.data(i)||{},m.eventmoveelem.data("resizing",1),e.preventdefault(),t.rule)&&(e=t.rulewidth+e.clientx-t.offset[0],n=m.eventmoveelem.closest("."+e).attr("lay-id"),n=p(n))&&((e=et.maxwidth&&(e=t.maxwidth),t.rule.style.width=e+"px",n.setgroupwidth(m.eventmoveelem),b.close(u.tipsindex))}).on("mouseup",function(e){var t,n,i,a,o;m.eventmoveelem&&(i=(t=m.eventmoveelem).closest("."+e).attr("lay-id"),n=p(i))&&(i=t.data("key"),a=n.col(i),o=n.config.elem.attr("lay-filter"),l={},r.css("cursor",""),n.scrollpatch(),t.removedata(i),delete m.eventmoveelem,n.getcssrule(i,function(e){a.width=parsefloat(e.style.width),layui.event.call(t[0],g,"colresized("+o+")",{col:a,config:n.config})}))}),m.docevent=!0,e.on("click",function(e){var t=w(this),n=t.find(l),i=n.attr("lay-sort");if(!n[0]||1===t.data("resizing"))return t.removedata("resizing");u.sort({field:t,type:"asc"===i?"desc":"desc"===i?null:"asc",fromevent:!0})}).find(l+" .layui-edge ").on("click",function(e){var t=(n=w(this)).index(),n=n.parents("th").eq(0).data("field");layui.stope(e),0===t?u.sort({field:n,type:"asc",fromevent:!0}):u.sort({field:n,type:"desc",fromevent:!0})}),u.commonmember=function(e){var t=w(this).parents("tr").eq(0).data("index"),s=u.laybody.find('tr[data-index="'+t+'"]'),c=(c=c.cache[u.key]||[])[t]||{},n={tr:s,config:d,data:c.clearcachekey(c),index:t,del:function(){c.cache[u.key][t]=[],s.remove(),u.scrollpatch()},update:function(e,l){e=e||{},layui.each(e,function(i,a){var o=s.children('td[data-field="'+i+'"]'),r=o.children(f);c[i]=n.data[i]=a,u.eachcols(function(e,t){var n;t.field==i?(r.html(v.call(u,{item3:t,content:a,tpldata:w.extend({lay_col:t},c)})),o.data("content",a)):l&&(t.templet||t.toolbar)&&(e=s.children('td[data-field="'+(t.field||e)+'"]'),n=c[t.field],e.children(f).html(v.call(u,{item3:t,content:n,tpldata:w.extend({lay_col:t},c)})),e.data("content",n))})}),u.renderform()},setrowchecked:function(e){u.setrowchecked(w.extend({index:t},e))}};return w.extend(n,e)}),t=(u.elem.on("click",'input[name="laytablecheckbox"]+',function(){var e=w(this).prev(),t=u.laybody.find('input[name="laytablecheckbox"]'),n=e.parents("tr").eq(0).data("index"),i=e[0].checked,a="laytableallchoose"===e.attr("lay-filter");e[0].disabled||(a?(t.each(function(e,t){t.checked=i,u.setcheckdata(e,i)}),u.synccheckall(),u.renderform("checkbox")):(u.setcheckdata(n,i),u.synccheckall()),layui.event.call(e[0],g,"checkbox("+s+")",c.call(e[0],{checked:i,type:a?"all":"one"})))}),u.elem.on("click",'input[lay-type="laytableradio"]+',function(){var e=w(this).prev(),t=e[0].checked,n=e.parents("tr").eq(0).data("index");e[0].disabled||(u.setrowchecked({type:"radio",index:n}),layui.event.call(e[0],g,"radio("+s+")",c.call(e[0],{checked:t})))}),u.laybody.on("mouseenter","tr[data-index]",function(){var e=w(this),t=e.index();e.data("off")||u.laybody.find("tr:eq("+t+")").addclass(a)}).on("mouseleave","tr[data-index]",function(){var e=w(this),t=e.index();e.data("off")||u.laybody.find("tr:eq("+t+")").removeclass(a)}).on("click","tr[data-index]",function(){t.call(this,"row")}).on("dblclick","tr[data-index]",function(){t.call(this,"rowdouble")}).on("contextmenu","tr[data-index]",function(e){d.defaultcontextmenu||e.preventdefault(),t.call(this,"rowcontextmenu")}),function(e){var t=w(this);t.data("off")||layui.event.call(this,g,e+"("+s+")",c.call(t.children("td")[0]))}),i=(u.laybody.on("change","."+s,function(){var e=(i=w(this)).parent(),t=this.value,n=i.parent().data("field"),i=i.closest("tr[data-index]").data("index"),i=c.cache[u.key][i],a=c.call(e[0],{value:t,field:n,oldvalue:i[n],td:e,reedit:function(){settimeout(function(){o(a.td);var e={};e[n]=a.oldvalue,a.update(e)})},getcol:function(){return u.col(e.data("key"))}});(i={})[n]=t,a.update(i),layui.event.call(e[0],g,"edit("+s+")",a)}).on("blur","."+s,function(){w(this).remove()}),u.laybody.on(d.edittrigger,"td[data-field]",function(e){o(this,e)}).on("mouseenter","td[data-field]",function(){n.call(this)}).on("mouseleave","td[data-field]",function(){n.call(this,"hide")}),"layui-table-grid-down"),n=function(e){var t=w(this),n=t.children(f);t.data("off")||(e?t.find(".layui-table-grid-down").remove():!(n.prop("scrollwidth")>n.outerwidth()||0
          '))},a=(u.laybody.on("click","."+i,function(e){var t=w(this).parent().children(f);u.tipsindex=b.tips(['
          ',t.html(),"
          ",''].join(""),t[0],{tips:[3,""],time:-1,anim:-1,maxwidth:y.ios||y.android?300:u.elem.width()/2,isoutanim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){b.close(t)})}}),layui.stope(e)}),function(e){var t=w(this),n=t.parents("tr").eq(0).data("index");layui.event.call(this,g,(e||"tool")+"("+s+")",c.call(this,{event:t.attr("lay-event")})),u.setrowchecked({type:"radio",index:n},!0)});u.laybody.on("click","*[lay-event]",function(e){a.call(this),layui.stope(e)}).on("dblclick","*[lay-event]",function(e){a.call(this,"tooldouble"),layui.stope(e)}),u.laymain.on("scroll",function(){var e=(t=w(this)).scrollleft(),t=t.scrolltop();u.layheader.scrollleft(e),u.laytotal.scrollleft(e),u.layfixed.find(d).scrolltop(t),b.close(u.tipsindex)}),f.on("resize",function(){u.resize()})},_.on("click",function(){_.trigger("table.remove.tool.panel")}),_.on("table.remove.tool.panel",function(){w("."+j).remove()}),c.init=function(i,r){r=r||{};var e="object"==typeof i?i:w("string"==typeof i?'table[lay-filter="'+i+'"]':o+"[lay-data], "+o+"[lay-options]"),l="table element property lay-data configuration item has a syntax error: ";return e.each(function(){var a,e=w(this),t=e.attr("lay-data"),t=s.options(this,{attr:t?"lay-data":null,errortext:l+(t||e.attr("lay-options"))}),o=w.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},c.config,r,t),n=(i&&e.hide(),e.find("thead>tr").each(function(i){o.cols[i]=[],w(this).children().each(function(e){var t=(n=w(this)).attr("lay-data"),t=s.options(this,{attr:t?"lay-data":null,errortext:l+(t||n.attr("lay-options"))}),n=w.extend({title:n.text(),colspan:parseint(n.attr("colspan"))||0,rowspan:parseint(n.attr("rowspan"))||0},t);o.cols[i].push(n)})}),e.find("tbody>tr")),t=c.render(o);!n.length||r.data||t.config.url||(a=0,c.eachcols(t.config.id,function(e,i){n.each(function(e){o.data[e]=o.data[e]||{};var t=w(this),n=i.field;o.data[e][n]=t.children("td").eq(a).html()}),a++}),t.reloaddata({data:o.data}))}),this},m.that={},m.config={},function(n,i,e,a){var o,r;a.colgroup&&(o=0,n++,a.child_cols=[],r=e+(parseint(a.rowspan)||1),layui.each(i[r],function(e,t){t.parentkey?t.parentkey===a.key&&(t.parent_col_index=n,a.child_cols.push(t),q(n,i,r,t)):t.parent_col_index||1<=o&&o==(a.colspan||1)||(t.parent_col_index=n,a.child_cols.push(t),o+=t.hide?0:parseint(1td').filter('[data-field="'+e+'"]')}}})).replace(/"/g,'""'),o.push(n='"'+n+'\t"')))}),l.push(o.join(","))}),c&&layui.each(c.datatotal,function(e,t){s[t.field]||i.push(t.total+"\t")}),r.join(",")+"\r\n"+l.join("\r\n")+"\r\n"+i.join(","))),d.download=(n.title||o.title||"table_"+(o.index||""))+"."+a,document.body.appendchild(d),d.click(),document.body.removechild(d)},c.getoptions=function(e){return w.extend(!0,{},a(e))},c.hidecol=function(e,a){var o=p(e);o&&("boolean"===layui.type(a)?o.eachcols(function(e,t){var n=t.key,i=o.col(n),t=t.parentkey;i.hide!=a&&(i=i.hide=a,o.elem.find('*[data-key="'+n+'"]')[i?"addclass":"removeclass"](t),o.setparentcol(i,t))}):layui.each(a,function(e,a){o.eachcols(function(e,t){var n,i;a.field===t.field&&(n=t.key,i=o.col(n),t=t.parentkey,"hide"in a)&&i.hide!=a.hide&&(i=i.hide=!!a.hide,o.elem.find('*[data-key="'+n+'"]')[i?"addclass":"removeclass"](t),o.setparentcol(i,t))})}),w("."+j).remove(),o.resize())},c.reload=function(e,t,n,i){if(a(e))return(e=p(e)).reload(t,n,i),m.call(e)},c.reloaddata=function(){var n=w.extend([],arguments),i=(n[3]="reloaddata",new regexp("^("+["data","url","method","contenttype","datatype","jsonpcallback","headers","where","page","limit","request","response","parsedata","scrollpos"].join("|")+")$"));return layui.each(n[1],function(e,t){i.test(e)||delete n[1][e]}),c.reload.apply(null,n)},c.render=function(e){return e=new n(e),m.call(e)},c.clearcachekey=function(e){return delete(e=w.extend({},e))[c.config.checkname],delete e[c.config.indexname],delete e[c.config.numbersname],delete e[c.config.disabledname],e},w(function(){c.init()}),e(g,c)}),layui.define(["laytpl","form"],function(e){"use strict";function t(e){return['
          ','
          ','","
          ","{{# if(d.data.showsearch){ }}",'","{{# } }}",'
            ',"
            "].join("")}function n(e){this.index=++r.index,this.config=c.extend({},this.config,r.config,e),this.render()}var c=layui.$,a=layui.laytpl,i=layui.form,o="transfer",r={config:{},index:layui[o]?layui[o].index+1e4:0,set:function(e){return this.config=c.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,o,e,t)}},l=function(){var t=this,e=t.config,n=e.id||t.index;return l.that[n]=t,{config:l.config[n]=e,reload:function(e){t.reload.call(t,e)},getdata:function(){return t.getdata.call(t)}}},u="layui-hide",d="layui-btn-disabled",s="layui-none",f="layui-transfer-box",p="layui-transfer-header",h="layui-transfer-search",y="layui-transfer-data",m=['
            ',t({index:0,checkallname:"laytransferleftcheckall"}),'
            ','",'","
            ",t({index:1,checkallname:"laytransferrightcheckall"}),"
            "].join("");n.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showsearch:!1,id:"",text:{none:"无数据",searchnone:"无匹配数据"}},n.prototype.reload=function(e){this.config=c.extend({},this.config,e),this.render()},n.prototype.render=function(){var e=this,t=e.config,n=e.elem=c(a(m).render({data:t,index:e.index})),i=t.elem=c(t.elem);i[0]&&(t.data=t.data||[],t.value=t.value||[],t.id="id"in t?t.id:elem.attr("id")||e.index,e.key=t.id,i.html(e.elem),e.laybox=e.elem.find("."+f),e.layheader=e.elem.find("."+p),e.laysearch=e.elem.find("."+h),e.laydata=n.find("."+y),e.laybtn=n.find(".layui-transfer-active .layui-btn"),e.laybox.css({width:t.width,height:t.height}),e.laydata.css({height:(i=t.height-e.layheader.outerheight(),t.showsearch&&(i-=e.laysearch.outerheight()),i-2)}),e.renderdata(),e.events())},n.prototype.renderdata=function(){var i=(this.config,[{checkname:"laytransferleftcheck",views:[]},{checkname:"laytransferrightcheck",views:[]}]);this.parsedata(function(e){var t=e.selected?1:0,n=["
          • ",'',"
          • "].join("");i[t].views.push(n),delete e.selected}),this.laydata.eq(0).html(i[0].views.join("")),this.laydata.eq(1).html(i[1].views.join("")),this.rendercheckbtn()},n.prototype.renderform=function(e){i.render(e,"lay-transfer-"+this.index)},n.prototype.rendercheckbtn=function(r){var l=this,s=l.config;r=r||{},l.laybox.each(function(e){var t=(n=c(this)).find("."+y),n=n.find("."+p).find('input[type="checkbox"]'),i=t.find('input[type="checkbox"]'),a=0,o=!1;i.each(function(){var e=c(this).data("hide");(this.checked||this.disabled||e)&&a++,this.checked&&!e&&(o=!0)}),n.prop("checked",o&&a===i.length),l.laybtn.eq(e)[o?"removeclass":"addclass"](d),r.stopnone||(i=t.children("li:not(."+u+")").length,l.noneview(t,i?"":s.text.none))}),l.renderform("checkbox")},n.prototype.noneview=function(e,t){var n=c('

            '+(t||"")+"

            ");e.find("."+s)[0]&&e.find("."+s).remove(),t.replace(/\s/g,"")&&e.append(n)},n.prototype.setvalue=function(){var e=this.config,t=[];return this.laybox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){c(this).data("hide")||t.push(this.value)}),e.value=t,this},n.prototype.parsedata=function(t){var i=this.config,a=[];return layui.each(i.data,function(e,n){n=("function"==typeof i.parsedata?i.parsedata(n):n)||n,a.push(n=c.extend({},n)),layui.each(i.value,function(e,t){t==n.value&&(n.selected=!0)}),t&&t(n)}),i.data=a,this},n.prototype.getdata=function(e){var t=this.config,i=[];return this.setvalue(),layui.each(e||t.value,function(e,n){layui.each(t.data,function(e,t){delete t.selected,n==t.value&&i.push(t)})}),i},n.prototype.transfer=function(e,t){var n,i=this,a=i.config,o=i.laybox.eq(e),r=[];""!==(t=(t?((n=t.find('input[type="checkbox"]'))[0].checked=!1,o.siblings("."+f).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value),i.setvalue()):o.each(function(e){c(this).find("."+y).children("li").each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=t.data("hide");t[0].checked&&!n&&(t[0].checked=!1,o.siblings("."+f).find("."+y).append(e.clone()),e.remove(),r.push(t[0].value)),i.setvalue()})}),i.rendercheckbtn(),o.siblings("."+f).find("."+h+" input"))).val()&&t.trigger("keyup"),a.onchange&&a.onchange(i.getdata(r),e)},n.prototype.events=function(){var a=this,o=a.config;a.elem.on("click",'input[lay-filter="laytransfercheckbox"]+',function(){var e=c(this).prev(),t=e[0].checked,n=e.parents("."+f).eq(0).find("."+y);e[0].disabled||("all"===e.attr("lay-type")&&n.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=t)}),settimeout(function(){a.rendercheckbtn({stopnone:!0})},0))}),a.elem.on("dblclick","."+y+">li",function(e){var t=c(this),n=t.children('input[type="checkbox"]'),i=t.parent().parent();n[0].disabled||a.transfer(i.data("index"),t)}),a.laybtn.on("click",function(){var e=c(this),t=e.data("index");e.hasclass(d)||a.transfer(t)}),a.laysearch.find("input").on("keyup",function(){var i=this.value,e=c(this).parents("."+h).eq(0).siblings("."+y),t=((t=e.children("li")).each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=t[0].title;e[(n=("cs"!==o.showsearch&&(n=n.tolowercase(),i=i.tolowercase()),-1!==n.indexof(i)))?"removeclass":"addclass"](u),t.data("hide",!n)}),a.rendercheckbtn(),t.length===e.children("li."+u).length);a.noneview(e,t?o.text.searchnone:"")})},l.that={},l.config={},r.reload=function(e,t){return(e=l.that[e]).reload(t),l.call(e)},r.getdata=function(e){return l.that[e].getdata()},r.render=function(e){return e=new n(e),l.call(e)},e(o,r)}),layui.define("form",function(e){"use strict";function t(e){this.index=++a.index,this.config=f.extend({},this.config,a.config,e),this.render()}var f=layui.$,n=layui.form,p=layui.layer,i="tree",a={config:{},index:layui.tree?layui.tree.index+1e4:0,set:function(e){return this.config=f.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,i,e,t)}},o=function(){var t=this,e=t.config,n=e.id||t.index;return o.that[n]=t,{config:o.config[n]=e,reload:function(e){t.reload.call(t,e)},getchecked:function(){return t.getchecked.call(t)},setchecked:function(e){return t.setchecked.call(t,e)}}},h="layui-hide",u="layui-disabled",y="layui-tree-set",m="layui-tree-iconclick",g="layui-icon-addition",v="layui-icon-subtraction",x="layui-tree-entry",b="layui-tree-main",w="layui-tree-txt",k="layui-tree-pack",c="layui-tree-spread",t="layui-tree-setlineshort",e="layui-tree-showline",d="layui-tree-lineextend";t.prototype.config={data:[],showcheckbox:!1,showline:!0,accordion:!1,onlyiconcontrol:!1,isjump:!1,edit:!1,text:{defaultnodename:"未命名",none:"无数据"}},t.prototype.reload=function(e){var n=this;layui.each(e,function(e,t){"array"===layui.type(t)&&delete n.config[e]}),n.config=f.extend(!0,{},n.config,e),n.render()},t.prototype.render=function(){var e=this,t=e.config,n=(e.checkids=[],f('
            ')),i=(e.tree(n),t.elem=f(t.elem));if(i[0]){if(e.key=t.id||e.index,e.elem=n,e.elemnone=f('
            '+t.text.none+"
            "),i.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemnone);t.showcheckbox&&e.renderform("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=f(this);e.parent(".layui-tree-pack")[0]||e.addclass("layui-tree-sethide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasclass("layui-tree-lineextend")&&e.addclass(t),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addclass(t)}),e.events()}},t.prototype.renderform=function(e){n.render(e,"lay-tree-"+this.index)},t.prototype.tree=function(l,e){var s=this,c=s.config,e=e||c.data;layui.each(e,function(e,t){var n,i,a=t.children&&0"),r=f(['
            ','
            ','
            ',c.showline?a?'':'':'',c.showcheckbox?'':"",c.isjump&&t.href?''+(t.title||t.label||c.text.defaultnodename)+"":''+(t.title||t.label||c.text.defaultnodename)+"","
            ",c.edit?(n={add:'',update:'',del:''},i=['
            '],!0===c.edit&&(c.edit=["update","del"]),"object"==typeof c.edit?(layui.each(c.edit,function(e,t){i.push(n[t]||"")}),i.join("")+"
            "):void 0):"","
            "].join(""));a&&(r.append(o),s.tree(o,t.children)),l.append(r),r.prev("."+y)[0]&&r.prev().children(".layui-tree-pack").addclass("layui-tree-showline"),a||r.parent(".layui-tree-pack").addclass("layui-tree-lineextend"),s.spread(r,t),c.showcheckbox&&(t.checked&&s.checkids.push(t.id),s.checkclick(r,t)),c.edit&&s.operate(r,t)})},t.prototype.spread=function(i,e){var a=this.config,t=(o=i.children("."+x)).children("."+b),n=o.find("."+m),o=o.find("."+w),r=a.onlyiconcontrol?n:t,l="";r.on("click",function(e){var t=i.children("."+k),n=(r.children(".layui-icon")[0]?r:r.find(".layui-tree-icon")).children(".layui-icon");t[0]?i.hasclass(c)?(i.removeclass(c),t.slideup(200),n.removeclass(v).addclass(g)):(i.addclass(c),t.slidedown(200),n.addclass(v).removeclass(g),a.accordion&&((t=i.siblings("."+y)).removeclass(c),t.children("."+k).slideup(200),t.find(".layui-tree-icon").children(".layui-icon").removeclass(v).addclass(g))):l="normal"}),o.on("click",function(){f(this).hasclass(u)||(l=i.hasclass(c)?a.onlyiconcontrol?"open":"close":a.onlyiconcontrol?"close":"open",a.click&&a.click({elem:i,state:l,data:e}))})},t.prototype.setcheckbox=function(e,t,n){this.config;var a,o=n.prop("checked");n.prop("disabled")||("object"!=typeof t.children&&!e.find("."+k)[0]||e.find("."+k).find('input[same="layuitreecheck"]').each(function(){this.disabled||(this.checked=o)}),(a=function(e){var t,n,i;e.parents("."+y)[0]&&(n=(e=e.parent("."+k)).parent(),i=e.prev().find('input[same="layuitreecheck"]'),o?i.prop("checked",o):(e.find('input[same="layuitreecheck"]').each(function(){this.checked&&(t=!0)}),t||i.prop("checked",!1)),a(n))})(e),this.renderform("checkbox"))},t.prototype.checkclick=function(n,i){var a=this,o=a.config;n.children("."+x).children("."+b).on("click",'input[same="layuitreecheck"]+',function(e){layui.stope(e);var t=(e=f(this).prev()).prop("checked");e.prop("disabled")||(a.setcheckbox(n,i,e),o.oncheck&&o.oncheck({elem:n,checked:t,data:i}))})},t.prototype.operate=function(s,o){var c=this,u=c.config,e=s.children("."+x),d=e.children("."+b);e.children(".layui-tree-btngroup").on("click",".layui-icon",function(e){layui.stope(e);var t,n,i,a,e=f(this).data("type"),r=s.children("."+k),l={data:o,type:e,elem:s};"add"==e?(r[0]||(u.showline?(d.find("."+m).addclass("layui-tree-icon"),d.find("."+m).children(".layui-icon").addclass(g).removeclass("layui-icon-file")):d.find(".layui-tree-iconarrow").removeclass(h),s.append('
            ')),i=u.operate&&u.operate(l),(a={}).title=u.text.defaultnodename,a.id=i,c.tree(s.children("."+k),[a]),u.showline&&(r[0]?(r.hasclass(d)||r.addclass(d),s.find("."+k).each(function(){f(this).children("."+y).last().addclass(t)}),(r.children("."+y).last().prev().hasclass(t)?r.children("."+y).last().prev():r.children("."+y).last()).removeclass(t),!s.parent("."+k)[0]&&s.next()[0]&&r.children("."+y).last().removeclass(t)):(i=s.siblings("."+y),n=1,a=s.parent("."+k),layui.each(i,function(e,t){f(t).children("."+k)[0]||(n=0)}),(1==n?(i.children("."+k).addclass(e),i.children("."+k).children("."+y).removeclass(t),s.children("."+k).addclass(e),a.removeclass(d),a.children("."+y).last().children("."+k).children("."+y).last()):s.children("."+k).children("."+y)).addclass(t))),u.showcheckbox&&(d.find('input[same="layuitreecheck"]')[0].checked&&(s.children("."+k).children("."+y).last().find('input[same="layuitreecheck"]')[0].checked=!0),c.renderform("checkbox"))):"update"==e?(i=d.children("."+w).html(),d.children("."+w).html(""),d.append(''),d.children(".layui-tree-editinput").val(i).focus(),t=function(e){var t=e.val().trim()||u.text.defaultnodename;e.remove(),d.children("."+w).html(t),l.data.title=t,u.operate&&u.operate(l)},d.children(".layui-tree-editinput").blur(function(){t(f(this))}),d.children(".layui-tree-editinput").on("keydown",function(e){13===e.keycode&&(e.preventdefault(),t(f(this)))})):p.confirm('确认删除该节点 "'+(o.title||"")+'" 吗?',function(e){var o,n,t;u.operate&&u.operate(l),l.status="remove",p.close(e),s.prev("."+y)[0]||s.next("."+y)[0]||s.parent("."+k)[0]?(s.siblings("."+y).children("."+x)[0]?(u.showcheckbox&&(o=function(e){var t,n,i,a;e.parents("."+y)[0]&&(t=e.siblings("."+y).children("."+x),n=(e=e.parent("."+k).prev()).find('input[same="layuitreecheck"]')[0],i=1,(a=0)==n.checked)&&(t.each(function(e,t){0!=(t=f(t).find('input[same="layuitreecheck"]')[0]).checked||t.disabled||(i=0),t.disabled||(a=1)}),1==i)&&1==a&&(n.checked=!0,c.renderform("checkbox"),o(e.parent("."+y)))})(s),u.showline&&(e=s.siblings("."+y),n=1,t=s.parent("."+k),layui.each(e,function(e,t){f(t).children("."+k)[0]||(n=0)}),1==n?(r[0]||(t.removeclass(d),e.children("."+k).addclass(e),e.children("."+k).children("."+y).removeclass(t)),(s.next()[0]?t.children("."+y).last():s.prev()).children("."+k).children("."+y).last().addclass(t),s.next()[0]||s.parents("."+y)[1]||s.parents("."+y).eq(0).next()[0]||s.prev("."+y).addclass(t)):!s.next()[0]&&s.hasclass(t)&&s.prev().addclass(t))):(e=s.parent("."+k).prev(),u.showline?(e.find("."+m).removeclass("layui-tree-icon"),e.find("."+m).children(".layui-icon").removeclass(v).addclass("layui-icon-file"),(t=e.parents("."+k).eq(0)).addclass(d),t.children("."+y).each(function(){f(this).children("."+k).children("."+y).last().addclass(t)})):e.find(".layui-tree-iconarrow").addclass(h),s.parents("."+y).eq(0).removeclass(c),s.parent("."+k).remove()),s.remove()):(s.remove(),c.elem.append(c.elemnone))})})},t.prototype.events=function(){var t=this,a=t.config;t.elem.find(".layui-tree-checkedfirst"),t.setchecked(t.checkids),t.elem.find(".layui-tree-search").on("keyup",function(){var n=(e=f(this)).val(),e=e.nextall(),i=[];e.find("."+w).each(function(){var t,e=f(this).parents("."+x);-1!=f(this).html().indexof(n)&&(i.push(f(this).parent()),(t=function(e){e.addclass("layui-tree-searchshow"),e.parent("."+k)[0]&&t(e.parent("."+k).parent("."+y))})(e.parent("."+y)))}),e.find("."+x).each(function(){var e=f(this).parent("."+y);e.hasclass("layui-tree-searchshow")||e.addclass(h)}),0==e.find(".layui-tree-searchshow").length&&t.elem.append(t.elemnone),a.onsearch&&a.onsearch({elem:i})}),t.elem.find(".layui-tree-search").on("keydown",function(){f(this).nextall().find("."+x).each(function(){f(this).parent("."+y).removeclass("layui-tree-searchshow "+h)}),f(".layui-tree-emptytext")[0]&&f(".layui-tree-emptytext").remove()})},t.prototype.getchecked=function(){var e=this.config,t=[],n=[],a=(this.elem.find(".layui-form-checked").each(function(){t.push(f(this).prev()[0].value)}),function(e,i){layui.each(e,function(e,n){layui.each(t,function(e,t){if(n.id==t)return delete(t=f.extend({},n)).children,i.push(t),n.children&&(t.children=[],a(n.children,t.children)),!0})})});return a(f.extend({},e.data),n),n},t.prototype.setchecked=function(o){this.config,this.elem.find("."+y).each(function(e,t){var n=f(this).data("id"),i=f(t).children("."+x).find('input[same="layuitreecheck"]'),a=i.next();if("number"==typeof o){if(n.tostring()==o.tostring())return i[0].checked||a.click(),!1}else"object"==typeof o&&layui.each(o,function(e,t){if(t.tostring()==n.tostring()&&!i[0].checked)return a.click(),!0})})},o.that={},o.config={},a.reload=function(e,t){return(e=o.that[e]).reload(t),o.call(e)},a.getchecked=function(e){return o.that[e].getchecked()},a.setchecked=function(e,t){return o.that[e].setchecked(t)},a.render=function(e){return e=new t(e),o.call(e)},e(i,a)}),layui.define(["jquery","lay"],function(e){"use strict";function t(e){this.config=a.extend({},this.config,o.config,e),this.render()}var a=layui.$,i=layui.lay,o=(layui.hint(),layui.device(),{config:{},set:function(e){return this.config=a.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,l,e,t)}}),l="carousel",s="layui-this",c="layui-carousel-left",u="layui-carousel-right",d="layui-carousel-prev",f="layui-carousel-next",r="layui-carousel-arrow",p="layui-carousel-ind";t.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},t.prototype.render=function(){var e=this,t=e.config,n=a(t.elem);if(1*[carousel-item]>*"),t.index<0&&(t.index=0),t.index>=e.elemitem.length&&(t.index=e.elemitem.length-1),t.interval<800&&(t.interval=800),t.full?t.elem.css({position:"fixed",width:"100%",height:"100%",zindex:9999}):t.elem.css({width:t.width,height:t.height}),t.elem.attr("lay-anim",t.anim),e.elemitem.eq(t.index).addclass(s),e.elemitem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},t.prototype.reload=function(e){clearinterval(this.timer),this.config=a.extend({},this.config,e),this.render()},t.prototype.previndex=function(){var e=this.config.index-1;return e<0?this.elemitem.length-1:e},t.prototype.nextindex=function(){var e=this.config.index+1;return e>=this.elemitem.length?0:e},t.prototype.addindex=function(e){var t=this.config;t.index=t.index+(e=e||1),t.index>=this.elemitem.length&&(t.index=0)},t.prototype.subindex=function(e){var t=this.config;t.index=t.index-(e=e||1),t.index<0&&(t.index=this.elemitem.length-1)},t.prototype.autoplay=function(){var e=this,t=e.config;t.autoplay&&(clearinterval(e.timer),e.timer=setinterval(function(){e.slide()},t.interval))},t.prototype.arrow=function(){var t=this,e=t.config,n=a(['",'"].join(""));e.elem.attr("lay-arrow",e.arrow),e.elem.find("."+r)[0]&&e.elem.find("."+r).remove(),e.elem.append(n),n.on("click",function(){var e=a(this).attr("lay-type");t.slide(e)})},t.prototype.goto=function(e){var t=this.config;e>t.index?this.slide("add",e-t.index):e
              ',(t=[],layui.each(e.elemitem,function(e){t.push("")}),t.join("")),"
            "].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+p)[0]&&n.elem.find("."+p).remove(),n.elem.append(i),"updown"===n.anim&&i.css("margin-top",-i.height()/2),i.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){e.goto(a(this).index())})},t.prototype.slide=function(e,t){var n=this,i=n.elemitem,a=n.config,o=a.index,r=a.elem.attr("lay-filter");n.haveslide||("sub"===e?(n.subindex(t),i.eq(a.index).addclass(d),settimeout(function(){i.eq(o).addclass(u),i.eq(a.index).addclass(u)},50)):(n.addindex(t),i.eq(a.index).addclass(f),settimeout(function(){i.eq(o).addclass(c),i.eq(a.index).addclass(c)},50)),settimeout(function(){i.removeclass(s+" "+d+" "+f+" "+c+" "+u),i.eq(a.index).addclass(s),n.haveslide=!1},300),n.elemind.find("li").eq(a.index).addclass(s).siblings().removeclass(s),n.haveslide=!0,e={index:a.index,previndex:o,item:i.eq(a.index)},"function"==typeof a.change&&a.change(e),layui.event.call(this,l,"change("+r+")",e))},t.prototype.events=function(){var e=this,t=e.config;t.elem.data("haveevents")||(t.elem.on("mouseenter",function(){"always"!==e.config.autoplay&&clearinterval(e.timer)}).on("mouseleave",function(){"always"!==e.config.autoplay&&e.autoplay()}),t.elem.data("haveevents",!0))},o.render=function(e){return new t(e)},e(l,o)}),layui.define(["jquery","lay"],function(e){"use strict";function t(e){this.index=++c.index,this.config=l.extend({},this.config,c.config,e),this.render()}var l=layui.jquery,s=layui.lay,c={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){return this.config=l.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="rate",u="layui-icon-rate",d="layui-icon-rate-solid",r="layui-icon-rate-half",f="layui-icon-rate-solid layui-icon-rate-half",p="layui-icon-rate layui-icon-rate-half";t.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},t.prototype.render=function(){var e=this.config,t=l(e.elem);if(1e.length&&(e.value=e.length),parseint(e.value)===e.value||e.half||(e.value=math.ceil(e.value)-e.value<.5?math.ceil(e.value):math.floor(e.value)),'
              "),a=1;a<=e.length;a++){var o='
            • ";e.half&&parseint(e.value)!==e.value&&a==math.ceil(e.value)?i=i+'
            • ":i+=o}i+="
            "+(e.text?''+e.value+"星":"")+"";var r=(t=e.elem).next(".layui-rate");r[0]&&r.remove(),this.elemtemp=l(i),e.span=this.elemtemp.next("span"),e.settext&&e.settext(e.value),t.html(this.elemtemp),t.addclass("layui-inline"),e.readonly||this.action()},t.prototype.setvalue=function(e){this.config.value=e,this.render()},t.prototype.action=function(){var i=this.config,a=this.elemtemp,o=a.find("i").width();a.children("li").each(function(e){var t=e+1,n=l(this);n.on("click",function(e){i.value=t,i.half&&e.pagex-l(this).offset().left<=o/2&&(i.value=i.value-.5),i.text&&a.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.settext&&i.settext(i.value)}),n.on("mousemove",function(e){a.find("i").each(function(){l(this).addclass(u).removeclass(f)}),a.find("i:lt("+t+")").each(function(){l(this).addclass(d).removeclass(p)}),i.half&&e.pagex-l(this).offset().left<=o/2&&n.children("i").addclass(r).removeclass(d)}),n.on("mouseleave",function(){a.find("i").each(function(){l(this).addclass(u).removeclass(f)}),a.find("i:lt("+math.floor(i.value)+")").each(function(){l(this).addclass(d).removeclass(p)}),i.half&&parseint(i.value)!==i.value&&a.children("li:eq("+math.floor(i.value)+")").children("i").addclass(r).removeclass("layui-icon-rate-solid layui-icon-rate")})})},t.prototype.events=function(){this.config},c.render=function(e){return e=new t(e),function(){var t=this;return{setvalue:function(e){t.setvalue.call(t,e)},config:t.config}}.call(e)},e(n,c)}),layui.define("jquery",function(e){"use strict";function t(e){}var y=layui.$;t.prototype.load=function(e){var i,a,o,t,r,n,l,s,c,u,d,f,p=0,h=y((e=e||{}).elem);if(h[0])return t=y(e.scrollelem||document),r=e.mb||50,n=!("isauto"in e)||e.isauto,l=e.end||"没有更多了",s=e.scrollelem&&e.scrollelem!==document,c=y('"),h.find(".layui-flow-more")[0]||h.append(c),u=function(e,t){e=y(e),c.before(e),(t=0==t||null)?c.html(l):c.find("a").html("加载更多"),a=t,i=null,f&&f()},(d=function(){i=!0,c.find("a").html(''),"function"==typeof e.done&&e.done(++p,u)})(),c.find("a").on("click",function(){y(this),a||i||d()}),e.islazyimg&&(f=this.lazyimg({elem:e.elem+" img",scrollelem:e.scrollelem})),n&&t.on("scroll",function(){var t=y(this),n=t.scrolltop();o&&cleartimeout(o),!a&&h.width()&&(o=settimeout(function(){var e=(s?t:y(window)).height();(s?t.prop("scrollheight"):document.documentelement.scrollheight)-n-e<=r&&(i||d())},100))}),this},t.prototype.lazyimg=function(e){function s(t,e){var n,i=d.scrolltop(),e=i+e,a=p?t.offset().top-d.offset().top+i:t.offset().top;i<=a&&a<=e&&t.attr("lay-src")&&(n=t.attr("lay-src"),layui.img(n,function(){var e=c.lazyimg.elem.eq(u);t.attr("src",n).removeattr("lay-src"),e[0]&&o(e),u++},function(){c.lazyimg.elem.eq(u),t.removeattr("lay-src")}))}var t,c=this,u=0,d=y((e=e||{}).scrollelem||document),f=e.elem||"img",p=e.scrollelem&&e.scrollelem!==document,o=function(e,t){var n=(p?t||d:y(window)).height(),i=d.scrolltop(),a=i+n;if(c.lazyimg.elem=y(f),e)s(e,n);else for(var o=0;o"),preview:"preview"}};e("code",function(e){var x=e=w.extend(!0,{},t,e);e.elem=w(e.elem),e.elem[0]&&layui.each(e.elem.get().reverse(),function(e,t){var i,n,a,o,r,l,s,c,u,d,f=w(t),p=w.extend(!0,{},x,lay.options(t),(i={},layui.each(["title","height","encode","skin","about"],function(e,t){var n=f.attr("lay-"+t);"string"==typeof n&&(i[t]=n)}),i)),h=f.data("code")||(n=[],f.children("textarea").each(function(){n.push(b(this.value))}),0===n.length&&n.push(b(f.html())),n),y=(f.data("code",h),p.preview&&(t="lay-code-df-"+e,a=p.layout||["code","preview"],o="iframe"===p.preview,v=w('
            '),d=w('
            '),r=w('
            '),l=w('
            '),s=w('
            '),g=f.parent("."+e.elem_preview),y=f.prev("."+e.elem_tab),m=f.next("."+e.elem_item+"-preview"),p.id&&v.attr("id",p.id),v.addclass(p.classname),d.attr("lay-filter",t),layui.each(a,function(e,t){var n=w('
          • ');0===e&&n.addclass("layui-this"),n.html(p.text[t]),r.append(n)}),c={full:{classname:"screen-full",title:["最大化显示","还原显示"],event:function(e,t){var n=e.closest("."+e.elem_preview),i="layui-icon-"+this.classname,a="layui-icon-screen-restore",o=this.title,r=w("html,body"),l="layui-scollbar-hide";e.hasclass(i)?(n.addclass(e.elem_full),e.removeclass(i).addclass(a),e.attr("title",o[1]),r.addclass(l)):(n.removeclass(e.elem_full),e.removeclass(a).addclass(i),e.attr("title",o[0]),r.removeclass(l))}},window:{classname:"release",title:["在新窗口预览"],event:function(e,t){k.openwin({content:h.join("")})}}},s.on("click",">i",function(){var e=w(this),t=e.data("type");"function"==typeof c[t].event&&c[t].event(e,t),"function"==typeof p.toolsevent&&p.toolsevent(e,t)}),layui.each(p.tools,function(e,t){var n=c[t]&&c[t].classname||t,i=c[t].title||[""];s.append('')}),y[0]&&y.remove(),m[0]&&m.remove(),g[0]&&f.unwrap(),d.append(r),p.tools&&d.append(s),f.wrap(v).addclass(e.elem_item).before(d),o&&l.html(""),u=function(e){var t=e.children("iframe")[0],n=(o&&t?t.srcdoc=h.join(""):e.html(h.join("")),{container:e,render:function(){t.render(e.find(".layui-form")),c.render()}});settimeout(function(){"function"==typeof p.done&&p.done(n)},3)},"preview"===a[0]?(l.addclass(e.elem_show),f.before(l),u(l)):f.addclass(e.elem_show).after(l),p.codestyle=[p.style,p.codestyle].join(""),p.previewstyle=[p.style,p.previewstyle].join(""),l.attr("style",p.previewstyle),c.on("tab("+t+")",function(e){var t=w(this),n=w(e.elem).closest("."+e.elem_preview).find("."+e.elem_item),e=n.eq(e.index);n.removeclass(e.elem_show),e.addclass(e.elem_show),"preview"===t.attr("lay-id")&&u(e)})),p.ln?"ol":"ul"),m=w("<"+y+' class="layui-code-'+y+'">'),g=w('
            '),v=(f.addclass("layui-code-view layui-box"),p.skin&&("notepad"===p.skin&&(p.skin="dark"),f.removeclass("layui-code-dark layui-code-light"),f.addclass("layui-code-"+p.skin)),k.escape(h.join(""))),v=(v=p.encode?k.escape(v):v).replace(/[\r\t\n]+/g,"
          • ");f.html(m.html("
          • "+v+"
          • ")),p.header&&!f.children("."+e.elem_title)[0]&&(g.html(p.title+(p.about?'
            '+p.about+"
            ":"")),f.prepend(g)),p.elem.length===e+1&&"function"==typeof p.alldone&&p.alldone(),0<(d=math.floor(m.find("li").length/100))&&m.css("margin-left",d+"px"),p.height&&m.css("max-height",p.height),m.attr("style",p.codestyle)})})}),layui["layui.all"]||layui.addcss("modules/code.css?v=3","skincodecss");