/** layui-v2.5.6 mit license by https://www.layui.com */ ;!function(e){"use strict";var t=document,n={modules:{},status:{},timeout:10,event:{}},r=function(){this.v="2.5.6"},o=function(){var e=t.currentscript?t.currentscript.src:function(){for(var e,n=t.scripts,r=n.length-1,o=r;o>0;o--)if("interactive"===n[o].readystate){e=n[o].src;break}return e||n[r].src}();return e.substring(0,e.lastindexof("/")+1)}(),a=function(t){e.console&&console.error&&console.error("layui hint: "+t)},i="undefined"!=typeof opera&&"[object opera]"===opera.tostring(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};r.prototype.cache=n,r.prototype.define=function(e,t){var r=this,o="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(r,o){e(r,o),n.callback[r]=function(){t(e)}}),this};return o&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?a.call(r):(r.use(e,a),r)},r.prototype.use=function(e,r,l){function c(e,t){var r="playstation 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||r.test((e.currenttarget||e.srcelement).readystate))&&(n.modules[d]=t,y.removechild(h),function o(){return++m>1e3*n.timeout/4?a(d+" is not a valid module"):void(n.status[d]?s():settimeout(o,4))}())}function s(){l.push(layui[d]),e.length>1?p.use(e.slice(1),r,l):"function"==typeof r&&r.apply(layui,l)}var p=this,f=n.dir=n.dir?n.dir:o,y=t.getelementsbytagname("head")[0];e="string"==typeof e?[e]:e,window.jquery&&jquery.fn.on&&(p.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jquery);var d=e[0],m=0;if(l=l||[],n.host=n.host||(f.match(/\/\/([\s\s]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[d]||!layui["layui.all"]&&layui["layui.mobile"]&&u[d])return s(),p;var v=(u[d]?f+"lay/":/^\{\/\}/.test(p.modules[d])?"":n.base||"")+(p.modules[d]||d)+".js";if(v=v.replace(/^\{\/\}/,""),!n.modules[d]&&layui[d]&&(n.modules[d]=v),n.modules[d])!function g(){return++m>1e3*n.timeout/4?a(d+" is not a valid module"):void("string"==typeof n.modules[d]&&n.status[d]?s():settimeout(g,4))}();else{var h=t.createelement("script");h.async=!0,h.charset="utf-8",h.src=v+function(){var e=n.version===!0?n.v||(new date).gettime():n.version||"";return e?"?v="+e:""}(),y.appendchild(h),!h.attachevent||h.attachevent.tostring&&h.attachevent.tostring().indexof("[native code")<0||i?h.addeventlistener("load",function(e){c(e,v)},!1):h.attachevent("onreadystatechange",function(e){c(e,v)}),n.modules[d]=v}return p},r.prototype.getstyle=function(t,n){var r=t.currentstyle?t.currentstyle:e.getcomputedstyle(t,null);return r[r.getpropertyvalue?"getpropertyvalue":"getattribute"](n)},r.prototype.link=function(e,r,o){var i=this,u=t.createelement("link"),l=t.getelementsbytagname("head")[0];"string"==typeof r&&(o=r);var c=(o||e).replace(/\.|\//g,""),s=u.id="layuicss-"+c,p=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new date).gettime():""),u.media="all",t.getelementbyid(s)||l.appendchild(u),"function"!=typeof r?i:(function f(){return++p>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseint(i.getstyle(t.getelementbyid(s),"width"))?function(){r()}():settimeout(f,100))}(),i)},n.callback={},r.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},r.prototype.addcss=function(e,t,r){return layui.link(n.dir+"css/"+e,t,r)},r.prototype.img=function(e,t,n){var r=new image;return r.src=e,r.complete?t(r):(r.onload=function(){r.onload=null,"function"==typeof t&&t(r)},void(r.onerror=function(e){r.onerror=null,"function"==typeof n&&n(e)}))},r.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},r.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),r.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},r.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},r.prototype.url=function(e){var t=this,n={pathname:function(){var t=e?function(){var t=(e.match(/\.[^.]+?\/.+/)||[])[0]||"";return t.replace(/^[^\/]+/,"").replace(/\?.+/,"")}():location.pathname;return t.replace(/^\//,"").split("/")}(),search:function(){var n={},r=(e?function(){var t=(e.match(/\?.+/)||[])[0]||"";return t.replace(/\#.+/,"")}():location.search).replace(/^\?+/,"").split("&");return t.each(r,function(e,t){var r=t.indexof("="),o=function(){return r<0?t.substr(0,t.length):0!==r&&t.substr(0,r)}();o&&(n[o]=r>0?t.substr(r+1):null)}),n}(),hash:t.router(function(){return e?(e.match(/#.+/)||[])[0]||"":location.hash}())};return n},r.prototype.data=function(t,n,r){if(t=t||"layui",r=r||localstorage,e.json&&e.json.parse){if(null===n)return delete r[t];n="object"==typeof n?n:{key:n};try{var o=json.parse(r[t])}catch(a){var o={}}return"value"in n&&(o[n.key]=n.value),n.remove&&delete o[n.key],r[t]=json.stringify(o),n.key?o[n.key]:o}},r.prototype.sessiondata=function(e,t){return this.data(e,t,sessionstorage)},r.prototype.device=function(t){var n=navigator.useragent.tolowercase(),r=function(e){var t=new regexp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},o={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.activexobject||"activexobject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:r("micromessenger")};return t&&!o[t]&&(o[t]=r(t)),o.android=/android/.test(n),o.ios="ios"===o.os,o.mobile=!(!o.android&&!o.ios),o},r.prototype.hint=function(){return{error:a}},r.prototype.each=function(e,t){var n,r=this;if("function"!=typeof t)return r;if(e=e||[],e.constructor===object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;na?1:o/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="laytpl error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var a=document,t="getelementbyid",n="getelementsbytagname",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\d/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keycode;/^(37|38|39|40)$/.test(i)||(/\d/.test(n)&&(this.value=n.replace(/\d/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerhtml=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerhtml=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachevent?e.attachevent("on"+a,function(a){a.target=a.srcelement,t.call(e,a)}):e.addeventlistener(a,t,!1),this}};e(i,s)});!function(){"use strict";var e=window.layui&&layui.define,t={getpath:function(){var e=document.currentscript?document.currentscript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readystate){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastindexof("/")+1)}(),getstyle:function(e,t){var n=e.currentstyle?e.currentstyle:window.getcomputedstyle(e,null);return n[n.getpropertyvalue?"getpropertyvalue":"getattribute"](t)},link:function(e,a,i){if(n.path){var r=document.getelementsbytagname("head")[0],o=document.createelement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getelementbyid(l)||r.appendchild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: invalid"):void(1989===parseint(t.getstyle(document.getelementbyid(l),"width"))?a():settimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getpath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期
建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",d=".laydate-btns-time",t=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new c(e)},c=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.queryselectorall(e||null));t0)return n[0].getattribute(e)}():n.each(function(n,a){a.setattribute(e,t)})},c.prototype.removeattr=function(e){return this.each(function(t,n){n.removeattribute(e)})},c.prototype.html=function(e){return this.each(function(t,n){n.innerhtml=e})},c.prototype.val=function(e){return this.each(function(t,n){n.value=e})},c.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendchild(e):n.innerhtml=n.innerhtml+e})},c.prototype.remove=function(e){return this.each(function(t,n){e?n.removechild(e):n.parentnode.removechild(n)})},c.prototype.on=function(e,t){return this.each(function(n,a){a.attachevent?a.attachevent("on"+e,function(e){e.target=e.srcelement,t.call(a,e)}):a.addeventlistener(e,t,!1)})},c.prototype.off=function(e,t){return this.each(function(n,a){a.detachevent?a.detachevent("on"+e,t):a.removeeventlistener(e,t,!1)})},t.isleapyear=function(e){return e%4===0&&e%100!==0||e%400===0},t.prototype.config={type:"date",range:!1,format:"yyyy-mm-dd",value:null,isinitvalue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showbottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zindex:null,done:null,change:null},t.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timetips:"选择时间",starttime:"开始时间",endtime:"结束时间",datetips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},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"}}};return n[t.lang]||n.cn},t.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|mm|m|dd|d|hh|h|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-mm",date:"yyyy-mm-dd",time:"hh:mm:ss",datetime:"yyyy-mm-dd hh:mm:ss"};t.elem=w(t.elem),t.eventelem=w(t.eventelem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new regexp(n+"|.","g"))||[],e.exp_if="",e.exp_split="",w.each(e.format,function(t,a){var i=new regexp(n).test(a)?"\\d{"+function(){return new regexp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.exp_if=e.exp_if+i,e.exp_split=e.exp_split+"("+i+")"}),e.exp_if=new regexp("^"+(t.range?e.exp_if+"\\s\\"+t.range+"\\s"+e.exp_if:e.exp_if)+"$"),e.exp_split=new regexp("^"+e.exp_split+"$",""),e.isinput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventelem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.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-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new date).gettime(),s=864e5,l=new date(r?r0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerhtml="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerhtml="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendchild(t),e.appendchild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerhtml="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerhtml="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendchild(t)}),m.appendchild(u),w.each(new array(6),function(e){var t=c.insertrow(0);w.each(new array(7),function(a){if(0===e){var i=w.elem("th");i.innerhtml=n.weeks[a],u.appendchild(i)}t.insertcell(a)})}),c.insertbefore(m,c.children[0]),d.appendchild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendchild(a),r[e].appendchild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push(''+n.timetips+""),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"reset"),i.push(''+o+""))}),e.push('"),e.join("")}()),w.each(r,function(e,t){i.appendchild(t)}),t.showbottom&&i.appendchild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemid).replace(/{{theme}}/g,t.theme);"stylesheet"in m?(m.setattribute("type","text/css"),m.stylesheet.csstext=u):m.innerhtml=u,w(i).addclass("laydate-theme-molv"),i.appendchild(m)}e.remove(t.thiselemdate),a?t.elem.append(i):(document.body.appendchild(i),e.position()),e.checkdate().calendar(),e.changeevent(),t.thiselemdate=e.elemid,"function"==typeof t.ready&&t.ready(w.extend({},t.datetime,{month:t.datetime.month+1}))},t.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemid)));return n.hasclass(c)||t.checkdate(function(){n.remove()}),t},t.prototype.position=function(){var e=this,t=e.config,n=e.bindelem||t.elem[0],a=n.getboundingclientrect(),i=e.elem.offsetwidth,r=e.elem.offsetheight,o=function(e){return e=e?"scrollleft":"scrolltop",document.body[e]|document.documentelement[e]},s=function(e){return document.documentelement[e?"clientwidth":"clientheight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},t.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));t.elem&&(n.innerhtml=e||"",w(t.elem).find("."+h).remove(),t.elem.appendchild(n),cleartimeout(t.hintimer),t.hintimer=settimeout(function(){w(t.elem).find("."+h).remove()},3e3))},t.prototype.getasym=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},t.prototype.systemdate=function(e){var t=e||new date;return{year:t.getfullyear(),month:t.getmonth(),date:t.getdate(),hours:e?e.gethours():0,minutes:e?e.getminutes():0,seconds:e?e.getseconds():0}},t.prototype.checkdate=function(e){var t,a,i=this,r=(new date,i.config),o=r.datetime=r.datetime||i.systemdate(),s=i.bindelem||r.elem[0],l=(i.isinput(s)?"val":"html",i.isinput(s)?s.value:"static"===r.position?"":s.innerhtml),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getenddate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["starttime","endtime"];t=(t.match(i.exp_split)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parsefloat(t[s]);t[s].length必须遵循下述格式:
"+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"
已为你重置"),a=!0):l&&l.constructor===date?r.datetime=i.systemdate(l):(r.datetime=i.systemdate(),delete i.startstate,delete i.endstate,delete i.startdate,delete i.enddate,delete i.starttime,delete i.endtime),c(o),a&&l&&i.setvalue(r.range?i.enddate?i.parse():"":i.parse()),e&&e(),i)},t.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html(''+n+""),a},t.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"enddate":"datetime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newdate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).gettime()}),i=l.nowl.max,e&&e[i?"addclass":"removeclass"](s),i},t.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.datetime,c=new date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemheader[h][2]).find("span");if(l.yeard[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstdate||(r.firstdate=w.extend({},l)),c.setfullyear(l.year,l.month,1),t=c.getday(),a=n.getenddate(l.month||12,l.year),i=n.getenddate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeattr("class"),e=t&&e=n.firstdate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),m++}),w(u[f?0:1]).attr("lay-ym",m-8+"-"+t[1]).html(b+p+" - "+(m-1+p))}else if("month"===e)w.each(new array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:t[0],month:e};e+1==t[1]&&w(i).addclass(o),i.innerhtml=r.month[e]+(f?"月":""),d.appendchild(i),t[0]=n.firstdate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",t[0]+"-"+t[1]).html(t[0]+p);else if("time"===e){var e=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["

"+r.time[e]+"

    "];w.each(new array(t),function(t){i.push(""+w.digit(t,2)+"")}),a.innerhtml=i.join("")+"
",d.appendchild(a)}),e()}if(y&&h.removechild(y),h.appendchild(d),"year"===e||"month"===e)w(n.elemmain[t]).addclass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasclass(s)){if(0===t)i[e]=r,l&&(n.startdate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.enddate[e]=r;else{var c="year"===e?n.getasym(r,t[1]-1,"sub"):n.getasym(t[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeclass(o),w(this).addclass(o),"month"===a.type&&"year"===e&&(n.listym[t][0]=r,l&&(n[["startdate","enddate"][t]].year=r),n.list("month",t))):(n.checkdate("limit").calendar(),n.closelist()),n.setbtnstatus(),a.range||n.done(null,"change"),w(n.footer).find(d).removeclass(s)}});else{var s=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrolltop=30*(n[x][c[e]]-2),t.scrolltop<=0&&a.each(function(e,n){if(!w(this).hasclass(s))return t.scrolltop=30*(e-2),!0})})},h=w(c[2]).find("."+v);k(),s.innerhtml=a.range?[r.starttime,r.endtime][t]:r.timetips,w(n.elemmain[t]).addclass("laydate-time-show"),h[0]&&h.remove(),c[2].appendchild(s),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerhtml;w(this).hasclass(s)||(a.range?n[x][c[e]]=r:i[c[e]]=r,w(t).find("."+o).removeclass(o),w(this).addclass(o),e(),k(),(n.enddate||"time"===a.type)&&n.done(null,"change"),n.setbtnstatus())})})}return n},t.prototype.listym=[],t.prototype.closelist=function(){var e=this;e.config;w.each(e.elemcont,function(t,n){w(this).find("."+m).remove(),w(e.elemmain[t]).removeclass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},t.prototype.setbtnstatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startdate,n=n||i.enddate,a=i.newdate(t).gettime()>i.newdate(n).gettime(),i.limit(null,t)||i.limit(null,n)?o.addclass(s):o[a?"addclass":"removeclass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},t.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.enddate,n.endtime):a.range?w.extend({},n.startdate,n.starttime):a.datetime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/mm|m/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/hh|h/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},t.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)},t.prototype.setvalue=function(e){var t=this,n=t.config,a=t.bindelem||n.elem[0],i=t.isinput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},t.prototype.stamprange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.enddate&&w(n.footer).find(g).addclass(s),n.enddate)return e=n.newdate({year:n.startdate.year,month:n.startdate.month,date:n.startdate.date}).gettime(),t=n.newdate({year:n.enddate.year,month:n.enddate.month,date:n.enddate.date}).gettime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newdate({year:r[0],month:r[1]-1,date:r[2]}).gettime();w(i).removeclass(u+" "+o),s!==e&&s!==t||w(i).addclass(w(i).hasclass(y)||w(i).hasclass(f)?u:o),s>e&&s0&&t-1 in e)}function r(e,t,n){if(pe.isfunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodetype)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inarray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodetype);return e}function o(e){var t={};return pe.each(e.match(de)||[],function(e,n){t[n]=!0}),t}function a(){re.addeventlistener?(re.removeeventlistener("domcontentloaded",s),e.removeeventlistener("load",s)):(re.detachevent("onreadystatechange",s),e.detachevent("onload",s))}function s(){(re.addeventlistener||"load"===e.event.type||"complete"===re.readystate)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodetype){var r="data-"+t.replace(_e,"-$1").tolowercase();if(n=e.getattribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parsejson(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isemptyobject(e[t]))&&"tojson"!==t)return!1;return!0}function c(e,t,n,r){if(he(e)){var i,o,a=pe.expando,s=e.nodetype,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{tojson:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelcase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelcase(t)])):i=o,i}}function f(e,t,n){if(he(e)){var r,i,o=e.nodetype,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isarray(t)?t=t.concat(pe.map(t,pe.camelcase)):t in r?t=[t]:(t=pe.camelcase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isemptyobject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleandata([e],!0):fe.deleteexpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssnumber[t]?"":"px"),c=(pe.cssnumber[t]||"px"!==l&&+u)&&me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createdocumentfragment();if(n.createelement)for(;t.length;)n.createelement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getelementsbytagname?e.getelementsbytagname(t||"*"):"undefined"!=typeof e.queryselectorall?e.queryselectorall(t||"*"):void 0;if(!o)for(o=[],n=e.childnodes||e;null!=(r=n[i]);i++)!t||pe.nodename(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodename(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globaleval",!t||pe._data(t[r],"globaleval"))}function m(e){be.test(e.type)&&(e.defaultchecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x"!==f[1]||ve.test(a)?0:u:u.firstchild,o=a&&a.childnodes.length;o--;)pe.nodename(c=a.childnodes[o],"tbody")&&!c.childnodes.length&&a.removechild(c);for(pe.merge(v,u.childnodes),u.textcontent="";u.firstchild;)u.removechild(u.firstchild);u=y.lastchild}else v.push(t.createtextnode(a));for(u&&y.removechild(u),fe.appendchecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inarray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerdocument,a),u=h(y.appendchild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeelement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function t(e,t){return pe.nodename(e,"table")&&pe.nodename(11!==t.nodetype?t:t.firstchild,"tr")?e.getelementsbytagname("tbody")[0]||e.appendchild(e.ownerdocument.createelement("tbody")):e}function c(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function e(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeattribute("type"),e}function n(e,t){if(1===t.nodetype&&pe.hasdata(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r1&&"string"==typeof p&&!fe.checkclone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),s(o,t,n,r)});if(f&&(l=y(t,e[0].ownerdocument,!1,e,r),i=l.firstchild,1===l.childnodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),c),a=s.length;c")).appendto(t.documentelement),t=(ut[0].contentwindow||ut[0].contentdocument).document,t.write(),t.close(),n=d(e,t),ut.detach()),lt[e]=n),n}function l(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function h(e){if(e in et)return e;for(var t=e.charat(0).touppercase()+e.slice(1),n=ct.length;n--;)if(e=ct[n]+t,e in et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isemptyobject:function(e){var t;for(t in e)return!1;return!0},isplainobject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodetype||pe.iswindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isprototypeof"))return!1}catch(n){return!1}if(!fe.ownfirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globaleval:function(t){t&&pe.trim(t)&&(e.execscript||function(t){e.eval.call(e,t)})(t)},camelcase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodename:function(e,t){return e.nodename&&e.nodename.tolowercase()===t.tolowercase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;it.cachelength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[p]=!0,e}function i(e){var t=h.createelement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentnode&&t.parentnode.removechild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)t.attrhandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodetype&&1===t.nodetype&&(~t.sourceindex||v)-(~e.sourceindex||v);if(r)return r;if(n)for(;n=n.nextsibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodename.tolowercase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodename.tolowercase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getelementsbytagname&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=t.relative[e[0].type],a=o||t.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==a)||((t=n).nodetype?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=a,x=r||o&&t.find.tag("*",l),b=w+=null==v?1:math.random()||.1,w=x.length;for(l&&(a=a===h||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerdocument===h||(l(c),s=!_);d=e[f++];)if(d(c,a||h,s)){u.push(c);break}l&&(w=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=g.call(u));y=m(y)}q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniquesort(u)}return l&&(w=b,a=v),g};return i?r(a):a}var b,w,t,c,e,n,k,s,a,d,j,l,h,q,_,f,m,o,r,p="sizzle"+1*new date,b=e.document,w=0,i=0,$=n(),z=n(),x=n(),u=function(e,t){return e===t&&(j=!0),0},v=1<<31,y={}.hasownproperty,j=[],g=j.pop,k=j.push,q=j.push,z=j.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new regexp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new regexp(oe),de=new regexp("^"+re+"$"),pe={id:new regexp("^#("+re+")"),class:new regexp("^\\.("+re+")"),tag:new regexp("^("+re+"|[*])"),attr:new regexp("^"+ie),pseudo:new regexp("^"+oe),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new regexp("^(?:"+te+")$","i"),needscontext:new regexp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new regexp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?string.fromcharcode(r+65536):string.fromcharcode(r>>10|55296,1023&r|56320)},te=function(){l()};try{q.apply(j=z.call(b.childnodes),b.childnodes),j[b.childnodes.length].nodetype}catch(ce){q={apply:j.length?function(e,t){k.apply(e,z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},e=t.isxml=function(e){var t=e&&(e.ownerdocument||e).documentelement;return!!t&&"html"!==t.nodename},l=t.setdocument=function(e){var t,n,r=e?e.ownerdocument||e:b;return r!==h&&9===r.nodetype&&r.documentelement?(h=r,q=h.documentelement,_=!e(h),(n=h.defaultview)&&n.top!==n&&(n.addeventlistener?n.addeventlistener("unload",te,!1):n.attachevent&&n.attachevent("onunload",te)),w.attributes=i(function(e){return e.classname="i",!e.getattribute("classname")}),w.getelementsbytagname=i(function(e){return e.appendchild(h.createcomment("")),!e.getelementsbytagname("*").length}),w.getelementsbyclassname=me.test(h.getelementsbyclassname),w.getbyid=i(function(e){return q.appendchild(e).id=p,!h.getelementsbyname||!h.getelementsbyname(p).length}),w.getbyid?(t.find.id=function(e,t){if("undefined"!=typeof t.getelementbyid&&_){var n=t.getelementbyid(e);return n?[n]:[]}},t.filter.id=function(e){var t=e.replace(be,we);return function(e){return e.getattribute("id")===t}}):(delete t.find.id,t.filter.id=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getattributenode&&e.getattributenode("id");return n&&n.value===t}}),t.find.tag=w.getelementsbytagname?function(e,t){return"undefined"!=typeof t.getelementsbytagname?t.getelementsbytagname(e):w.qsa?t.queryselectorall(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getelementsbytagname(e);if("*"===e){for(;n=o[i++];)1===n.nodetype&&r.push(n);return r}return o},t.find.class=w.getelementsbyclassname&&function(e,t){if("undefined"!=typeof t.getelementsbyclassname&&_)return t.getelementsbyclassname(e)},m=[],f=[],(w.qsa=me.test(h.queryselectorall))&&(i(function(e){q.appendchild(e).innerhtml="",e.queryselectorall("[msallowcapture^='']").length&&f.push("[*^$]="+ne+"*(?:''|\"\")"),e.queryselectorall("[selected]").length||f.push("\\["+ne+"*(?:value|"+te+")"),e.queryselectorall("[id~="+p+"-]").length||f.push("~="),e.queryselectorall(":checked").length||f.push(":checked"),e.queryselectorall("a#"+p+"+*").length||f.push(".#.+[+~]")}),i(function(e){var t=h.createelement("input");t.setattribute("type","hidden"),e.appendchild(t).setattribute("name","d"),e.queryselectorall("[name=d]").length&&f.push("name"+ne+"*[*^$|!~]?="),e.queryselectorall(":enabled").length||f.push(":enabled",":disabled"),e.queryselectorall("*,:x"),f.push(",.*:")})),(w.matchesselector=me.test(o=q.matches||q.webkitmatchesselector||q.mozmatchesselector||q.omatchesselector||q.msmatchesselector))&&i(function(e){w.disconnectedmatch=o.call(e,"div"),o.call(e,"[s!='']:x"),m.push("!=",oe)}),f=f.length&&new regexp(f.join("|")),m=m.length&&new regexp(m.join("|")),t=me.test(q.comparedocumentposition),r=t||me.test(q.contains)?function(e,t){var n=9===e.nodetype?e.documentelement:e,r=t&&t.parentnode;return e===r||!(!r||1!==r.nodetype||!(n.contains?n.contains(r):e.comparedocumentposition&&16&e.comparedocumentposition(r)))}:function(e,t){if(t)for(;t=t.parentnode;)if(t===e)return!0;return!1},u=t?function(e,t){if(e===t)return j=!0,0;var n=!e.comparedocumentposition-!t.comparedocumentposition;return n?n:(n=(e.ownerdocument||e)===(t.ownerdocument||t)?e.comparedocumentposition(t):1,1&n||!w.sortdetached&&t.comparedocumentposition(e)===n?e===h||e.ownerdocument===b&&r(b,e)?-1:t===h||t.ownerdocument===b&&r(b,t)?1:d?ee(d,e)-ee(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentnode,o=t.parentnode,s=[e],u=[t];if(!i||!o)return e===h?-1:t===h?1:i?-1:o?1:d?ee(d,e)-ee(d,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentnode;)s.unshift(n);for(n=t;n=n.parentnode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===b?-1:u[r]===b?1:0},h):h},t.matches=function(e,n){return t(e,null,null,n)},t.matchesselector=function(e,n){if((e.ownerdocument||e)!==h&&l(e),n=n.replace(ce,"='$1']"),w.matchesselector&&_&&!x[n+" "]&&(!m||!m.test(n))&&(!f||!f.test(n)))try{var r=o.call(e,n);if(r||w.disconnectedmatch||e.document&&11!==e.document.nodetype)return r}catch(i){}return t(n,h,null,[e]).length>0},t.contains=function(e,t){return(e.ownerdocument||e)!==h&&l(e),r(e,t)},t.attr=function(e,t){(e.ownerdocument||e)!==h&&l(e);var n=t.attrhandle[t.tolowercase()],r=n&&y.call(t.attrhandle,t.tolowercase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getattribute(t):(r=e.getattributenode(t))&&r.specified?r.value:null},t.error=function(e){throw new error("syntax error, unrecognized expression: "+e)},t.uniquesort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectduplicates,d=!w.sortstable&&e.slice(0),e.sort(u),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return d=null,e},c=t.gettext=function(e){var t,n="",r=0,i=e.nodetype;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textcontent)return e.textcontent;for(e=e.firstchild;e;e=e.nextsibling)n+=c(e)}else if(3===i||4===i)return e.nodevalue}else for(;t=e[r++];)n+=c(t);return n},t=t.selectors={cachelength:50,createpseudo:r,match:pe,attrhandle:{},find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},child:function(e){return e[1]=e[1].tolowercase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},pseudo:function(e){var t,n=!e[6]&&e[2];return pe.child.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=n(n,!0))&&(t=n.indexof(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{tag:function(e){var t=e.replace(be,we).tolowercase();return"*"===e?function(){return!0}:function(e){return e.nodename&&e.nodename.tolowercase()===t}},class:function(e){var t=$[e+" "];return t||(t=new regexp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.classname&&e.classname||"undefined"!=typeof e.getattribute&&e.getattribute("class")||"")})},attr:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexof(r):"*="===n?r&&o.indexof(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexof(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},child:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentnode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextsibling":"previoussibling",m=t.parentnode,y=s&&t.nodename.tolowercase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodename.tolowercase()===y:1===d.nodetype)return!1;h=g="only"===e&&!h&&"nextsibling"}return!0}if(h=[a?m.firstchild:m.lastchild],a&&v){for(d=m,f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}), l=c[e]||[],p=l[0]===w&&l[1],x=p&&l[2],d=p&&m.childnodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodetype&&++x&&d===t){c[e]=[w,p,x];break}}else if(v&&(d=t,f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}),l=c[e]||[],p=l[0]===w&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodename.tolowercase()!==y:1!==d.nodetype)||!++x||(v&&(f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}),c[e]=[w,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},pseudo:function(e,n){var i,o=t.pseudos[e]||t.setfilters[e.tolowercase()]||t.error("unsupported pseudo: "+e);return o[p]?o(n):o.length>1?(i=[e,e,"",n],t.setfilters.hasownproperty(e.tolowercase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[p]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textcontent||t.innertext||c(t)).indexof(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).tolowercase(),function(t){var n;do if(n=_?t.lang:t.getattribute("xml:lang")||t.getattribute("lang"))return n=n.tolowercase(),n===e||0===n.indexof(e+"-");while((t=t.parentnode)&&1===t.nodetype);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===h.activeelement&&(!h.hasfocus||h.hasfocus())&&!!(e.type||e.href||~e.tabindex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodename.tolowercase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentnode&&e.parentnode.selectedindex,e.selected===!0},empty:function(e){for(e=e.firstchild;e;e=e.nextsibling)if(e.nodetype<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return ge.test(e.nodename)},input:function(e){return he.test(e.nodename)},button:function(e){var t=e.nodename.tolowercase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodename.tolowercase()&&"text"===e.type&&(null==(t=e.getattribute("type"))||"text"===t.tolowercase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"id"===(a=o[0]).type&&w.getbyid&&9===t.nodetype&&_&&t.relative[o[1].type]){if(t=(t.find.id(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentnode),e=e.slice(o.shift().value.length)}for(i=pe.needscontext.test(e)?0:o.length;i--&&(a=o[i],!t.relative[s=a.type]);)if((u=t.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentnode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentnode)||t),n},w.sortstable=p.split("").sort(u).join("")===p,w.detectduplicates=!!j,l(),w.sortdetached=i(function(e){return 1&e.comparedocumentposition(h.createelement("div"))}),i(function(e){return e.innerhtml="","#"===e.firstchild.getattribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getattribute(t,"type"===t.tolowercase()?1:2)}),w.attributes&&i(function(e){return e.innerhtml="",e.firstchild.setattribute("value",""),""===e.firstchild.getattribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodename.tolowercase())return e.defaultvalue}),i(function(e){return null==e.getattribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.tolowercase():(r=e.getattributenode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniquesort=pe.unique=ve.uniquesort,pe.text=ve.gettext,pe.isxmldoc=ve.isxml,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodetype;)if(1===e.nodetype){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextsibling)1===e.nodetype&&e!==t&&n.push(e);return n},we=pe.expr.match.needscontext,te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodetype?pe.find.matchesselector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodetype}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushstack(pe(e).filter(function(){for(t=0;t1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushstack(r(this,e||[],!1))},not:function(e){return this.pushstack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var ee,ne=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ee,"string"==typeof e){if(r="<"===e.charat(0)&&">"===e.charat(e.length-1)&&e.length>=3?[null,e,null]:ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parsehtml(r[1],t&&t.nodetype?t.ownerdocument||t:re,!0)),te.test(r[1])&&pe.isplainobject(t))for(r in t)pe.isfunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getelementbyid(r[2]),i&&i.parentnode){if(i.id!==r[2])return ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodetype?(this.context=this[0]=e,this.length=1,this):pe.isfunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makearray(e,this))};ke.prototype=pe.fn,ee=pe(re);var se=/^(?:parents|prev(?:until|all))/,ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodetype&&pe.find.matchesselector(n,e))){o.push(n);break}return this.pushstack(o.length>1?pe.uniquesort(o):o)},index:function(e){return e?"string"==typeof e?pe.inarray(this[0],pe(e)):pe.inarray(e.jquery?e[0]:e,this):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(e,t){return this.pushstack(pe.uniquesort(pe.merge(this.get(),pe(e,t))))},addback:function(e){return this.add(null==e?this.prevobject:this.prevobject.filter(e))}}),pe.each({parent:function(e){var t=e.parentnode;return t&&11!==t.nodetype?t:null},parents:function(e){return xe(e,"parentnode")},parentsuntil:function(e,t,n){return xe(e,"parentnode",n)},next:function(e){return i(e,"nextsibling")},prev:function(e){return i(e,"previoussibling")},nextall:function(e){return xe(e,"nextsibling")},prevall:function(e){return xe(e,"previoussibling")},nextuntil:function(e,t,n){return xe(e,"nextsibling",n)},prevuntil:function(e,t,n){return xe(e,"previoussibling",n)},siblings:function(e){return be((e.parentnode||{}).firstchild,e)},children:function(e){return be(e.firstchild)},contents:function(e){return pe.nodename(e,"iframe")?e.contentdocument||e.contentwindow.document:pe.merge([],e.childnodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(ae[e]||(i=pe.uniquesort(i)),se.test(e)&&(i=i.reverse())),this.pushstack(i)}});var de=/\s+/g;pe.callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inarray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},firewith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.firewith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({deferred:function(e){var t=[["resolve","done",pe.callbacks("once memory"),"resolved"],["reject","fail",pe.callbacks("once memory"),"rejected"],["notify","progress",pe.callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.deferred(function(n){pe.each(t,function(t,o){var a=pe.isfunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isfunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"with"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"with"](this===i?r:this,arguments),this},i[o[0]+"with"]=a.firewith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isfunction(e.promise)?a:0,u=1===s?e:pe.deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifywith(n,r):--s||u.resolvewith(n,r)}};if(a>1)for(t=new array(a),n=new array(a),r=new array(a);i0||(je.resolvewith(re,[pe]),pe.fn.triggerhandler&&(pe(re).triggerhandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.deferred(),"complete"===re.readystate||"loading"!==re.readystate&&!re.documentelement.doscroll)e.settimeout(pe.ready);else if(re.addeventlistener)re.addeventlistener("domcontentloaded",s),e.addeventlistener("load",s);else{re.attachevent("onreadystatechange",s),e.attachevent("onload",s);var n=!1;try{n=null==e.frameelement&&re.documentelement}catch(r){}n&&n.doscroll&&!function i(){if(!pe.isready){try{n.doscroll("left")}catch(t){return e.settimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var le;for(le in pe(fe))break;fe.ownfirst="0"===le,fe.inlineblockneedslayout=!1,pe(function(){var e,t,n,r;n=re.getelementsbytagname("body")[0],n&&n.style&&(t=re.createelement("div"),r=re.createelement("div"),r.style.csstext="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendchild(r).appendchild(t),"undefined"!=typeof t.style.zoom&&(t.style.csstext="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineblockneedslayout=e=3===t.offsetwidth,e&&(n.style.zoom=1)),n.removechild(r))}),function(){var e=re.createelement("div");fe.deleteexpando=!0;try{delete e.test}catch(t){fe.deleteexpando=!1}e=null}();var he=function(e){var t=pe.nodata[(e.nodename+" ").tolowercase()],n=+e.nodetype||1;return(1===n||9===n)&&(!t||t!==!0&&e.getattribute("classid")===t)},qe=/^(?:\{[\w\w]*\}|\[[\w\w]*\])$/,_e=/([a-z])/g;pe.extend({cache:{},nodata:{"applet ":!0,"embed ":!0,"object ":"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},hasdata:function(e){return e=e.nodetype?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removedata:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removedata:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodetype&&!pe._data(o,"parsedattrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexof("data-")&&(r=pe.camelcase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedattrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removedata:function(e){return this.each(function(){pe.removedata(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isarray(n)?r=pe._data(e,t,pe.makearray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queuehooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queuehooks:function(e,t){var n=t+"queuehooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.callbacks("once memory").add(function(){pe._removedata(e,t+"queue"),pe._removedata(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
a",fe.leadingwhitespace=3===e.firstchild.nodetype,fe.tbody=!e.getelementsbytagname("tbody").length,fe.htmlserialize=!!e.getelementsbytagname("link").length,fe.html5clone="<:nav>"!==re.createelement("nav").clonenode(!0).outerhtml,n.type="checkbox",n.checked=!0,t.appendchild(n),fe.appendchecked=n.checked,e.innerhtml="",fe.noclonechecked=!!e.clonenode(!0).lastchild.defaultvalue,t.appendchild(e),n=re.createelement("input"),n.setattribute("type","radio"),n.setattribute("checked","checked"),n.setattribute("name","t"),e.appendchild(n),fe.checkclone=e.clonenode(!0).clonenode(!0).lastchild.checked,fe.nocloneevent=!!e.addeventlistener,e[pe.expando]=1,fe.attributes=!e.getattribute(pe.expando)}();var xe={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:fe.htmlserialize?[0,"",""]:[1,"x
","
"]};xe.optgroup=xe.option,xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td;var ue=/<|&#?\w+;/,ve=/-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexof(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.event(p,"object"==typeof t&&t),t.istrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new regexp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makearray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.nobubble&&!pe.iswindow(r)){for(u=l.delegatetype||p,ke.test(u+p)||(s=s.parentnode);s;s=s.parentnode)d.push(s),c=s;c===(r.ownerdocument||re)&&d.push(c.defaultview||c.parentwindow||e)}for(f=0;(s=d[f++])&&!t.ispropagationstopped();)t.type=f>1?u:l.bindtype||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&he(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventdefault());if(t.type=p,!i&&!t.isdefaultprevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&he(r)&&a&&r[p]&&!pe.iswindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegatetarget=this,!l.predispatch||l.predispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.ispropagationstopped();)for(e.currenttarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isimmediatepropagationstopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleobj=o,e.data=o.data,r=((pe.event.special[o.origtype]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventdefault(),e.stoppropagation()));return l.postdispatch&&l.postdispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegatecount,u=e.target;if(s&&u.nodetype&&("click"!==e.type||isnan(e.button)||e.button<1))for(;u!=this;u=u.parentnode||this)if(1===u.nodetype&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/\s*$/g,at=p(re),st=at.appendchild(re.createelement("div"));pe.extend({htmlprefilter:function(e){return e.replace(tt,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerdocument,e);if(fe.html5clone||pe.isxmldoc(e)||!et.test("<"+e.nodename+">")?o=e.clonenode(!0):(st.innerhtml=e.outerhtml,st.removechild(o=st.firstchild)),!(fe.nocloneevent&&fe.noclonechecked||1!==e.nodetype&&11!==e.nodetype||pe.isxmldoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)n(i,r[a]);else n(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleandata:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||he(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeevent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeattribute?n[s]=void 0:n.removeattribute(s),ne.push(i))}}}),pe.fn.extend({dommanip:s,detach:function(e){return a(this,e,!0)},remove:function(e){return a(this,e)},text:function(e){return pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerdocument||re).createtextnode(e))},null,e,arguments.length)},append:function(){return s(this,arguments,function(e){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var t=t(this,e);t.appendchild(e)}})},prepend:function(){return s(this,arguments,function(e){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var t=t(this,e);t.insertbefore(e,t.firstchild)}})},before:function(){return s(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this)})},after:function(){return s(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&&pe.cleandata(h(e,!1));e.firstchild;)e.removechild(e.firstchild);e.options&&pe.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 pe.clone(this,e,t)})},html:function(e){return pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodetype?t.innerhtml.replace(ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlserialize||!et.test(e))&&(fe.leadingwhitespace||!$e.test(e))&&!xe[(we.exec(e)||["",""])[1].tolowercase()]){e=pe.htmlprefilter(e);try{for(;nt",t=l.getelementsbytagname("td"),t[0].style.csstext="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetheight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetheight)),f.removechild(u)}var n,r,i,o,a,s,u=re.createelement("div"),l=re.createelement("div");l.style&&(l.style.csstext="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssfloat=!!l.style.cssfloat,l.style.backgroundclip="content-box",l.clonenode(!0).style.backgroundclip="",fe.clearclonestyle="content-box"===l.style.backgroundclip,u=re.createelement("div"),u.style.csstext="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerhtml="",u.appendchild(l),fe.boxsizing=""===l.style.boxsizing||""===l.style.mozboxsizing||""===l.style.webkitboxsizing,pe.extend(fe,{reliablehiddenoffsets:function(){return null==n&&t(),o},boxsizingreliable:function(){return null==n&&t(),i},pixelmarginright:function(){return null==n&&t(),r},pixelposition:function(){return null==n&&t(),n},reliablemarginright:function(){return null==n&&t(),a},reliablemarginleft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getcomputedstyle?(ht=function(t){var n=t.ownerdocument.defaultview;return n&&n.opener||(n=e),n.getcomputedstyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getpropertyvalue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerdocument,e)||(a=pe.style(e,t)),n&&!fe.pixelmarginright()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minwidth,o=s.maxwidth,s.minwidth=s.maxwidth=s.width=a,a=n.width,s.width=r,s.minwidth=i,s.maxwidth=o),void 0===a?a:a+""}):pt.currentstyle&&(ht=function(e){return e.currentstyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimestyle,o=i&&i.left,o&&(i.left=e.currentstyle.left),s.left="fontsize"===t?"1em":a,a=s.pixelleft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new regexp("^("+fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},tt={letterspacing:"0",fontweight:"400"},ct=["webkit","o","moz","ms"],et=re.createelement("div").style;pe.extend({csshooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssnumber:{animationiterationcount:!0,columncount:!0,fillopacity:!0,flexgrow:!0,flexshrink:!0,fontweight:!0,lineheight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zindex:!0,zoom:!0},cssprops:{"float":fe.cssfloat?"cssfloat":"stylefloat"},style:function(e,t,n,r){if(e&&3!==e.nodetype&&8!==e.nodetype&&e.style){var i,o,a,s=pe.camelcase(t),u=e.style;if(t=pe.cssprops[s]||(pe.cssprops[s]=h(s)||s),a=pe.csshooks[t]||pe.csshooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssnumber[s]?"":"px")),fe.clearclonestyle||""!==n||0!==t.indexof("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelcase(t);return t=pe.cssprops[s]||(pe.cssprops[s]=h(s)||s),a=pe.csshooks[t]||pe.csshooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(i=parsefloat(o),n===!0||isfinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.csshooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetwidth?dt(e,wt,function(){return m(e,t,r)}):m(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?f(e,t,r,fe.boxsizing&&"border-box"===pe.css(e,"boxsizing",!1,i),i):0)}}}),fe.opacity||(pe.csshooks.opacity={get:function(e,t){return vt.test((t&&e.currentstyle?e.currentstyle.filter:e.style.filter)||"")?.01*parsefloat(regexp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentstyle,i=pe.isnumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeattribute&&(n.removeattribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.csshooks.marginright=l(fe.reliablemarginright,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginright"])}),pe.csshooks.marginleft=l(fe.reliablemarginleft,function(e,t){if(t)return(parsefloat(gt(e,"marginleft"))||(pe.contains(e.ownerdocument,e)?e.getboundingclientrect().left-dt(e,{marginleft:0},function(){return e.getboundingclientrect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"width"},function(e,t){pe.csshooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.csshooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isarray(t)){for(r=ht(e),i=t.length;a1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?pe(this).show():pe(this).hide()})}}),pe.tween=o,o.prototype={constructor:o,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssnumber[n]?"":"px")},cur:function(){var e=o.prophooks[this.prop];return e&&e.get?e.get(this):o.prophooks._default.get(this)},run:function(e){var t,n=o.prophooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):o.prophooks._default.set(this),this}},o.prototype.init.prototype=o.prototype,o.prophooks={_default:{get:function(e){var t;return 1!==e.elem.nodetype||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodetype||null==e.elem.style[pe.cssprops[e.prop]]&&!pe.csshooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},o.prophooks.scrolltop=o.prophooks.scrollleft={set:function(e){e.elem.nodetype&&e.elem.parentnode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-math.cos(e*math.pi)/2},_default:"swing"},pe.fx=o.prototype.init,pe.fx.step={};var nt,kt,st=/^(?:toggle|show|hide)$/,at=/queuehooks$/;pe.animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createtween(e,t);return d(n.elem,e,me.exec(t),n),n}]},tweener:function(e,t){pe.isfunction(e)?(t=e,e=["*"]):e=e.match(de);for(var n,r=0,i=e.length;r
a",e=n.getelementsbytagname("a")[0],t.setattribute("type","checkbox"),n.appendchild(t),e=n.getelementsbytagname("a")[0],e.style.csstext="top:1px",fe.getsetattribute="t"!==n.classname,fe.style=/top/.test(e.getattribute("style")),fe.hrefnormalized="/a"===e.getattribute("href"),fe.checkon=!!t.value,fe.optselected=i.selected,fe.enctype=!!re.createelement("form").enctype,r.disabled=!0,fe.optdisabled=!i.disabled,t=re.createelement("input"),t.setattribute("value",""),fe.input=""===t.getattribute("value"),t.value="t",t.setattribute("type","radio"),fe.radiovalue="t"===t.value}();var dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isfunction(e),this.each(function(n){var i;1===this.nodetype&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isarray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valhooks[this.type]||pe.valhooks[this.nodename.tolowercase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valhooks[i.type]||pe.valhooks[i.nodename.tolowercase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(dt,""):null==n?"":n)}}}),pe.extend({valhooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedindex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)try{r.selected=n=!0}catch(s){r.scrollheight}else r.selected=!1;return n||(e.selectedindex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valhooks[this]={set:function(e,t){if(pe.isarray(t))return e.checked=pe.inarray(pe(e).val(),t)>-1}},fe.checkon||(pe.valhooks[this].get=function(e){return null===e.getattribute("value")?"on":e.value})});var lt,ht,qt=pe.expr.attrhandle,_t=/^(?:checked|selected)$/i,ft=fe.getsetattribute,mt=fe.input;pe.fn.extend({attr:function(e,t){return pe(this,pe.attr,e,t,arguments.length>1)},removeattr:function(e){return this.each(function(){pe.removeattr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodetype;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getattribute?pe.prop(e,t,n):(1===o&&pe.isxmldoc(e)||(t=t.tolowercase(),i=pe.attrhooks[t]||(pe.expr.match.bool.test(t)?ht:lt)),void 0!==n?null===n?void pe.removeattr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setattribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrhooks:{type:{set:function(e,t){if(!fe.radiovalue&&"radio"===t&&pe.nodename(e,"input")){var n=e.value;return e.setattribute("type",t),n&&(e.value=n),t}}}},removeattr:function(e,t){var n,r,i=0,o=t&&t.match(de);if(o&&1===e.nodetype)for(;n=o[i++];)r=pe.propfix[n]||n,pe.expr.match.bool.test(n)?mt&&ft||!_t.test(n)?e[r]=!1:e[pe.camelcase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeattribute(ft?n:r)}}),ht={set:function(e,t,n){return t===!1?pe.removeattr(e,n):mt&&ft||!_t.test(n)?e.setattribute(!ft&&pe.propfix[n]||n,n):e[pe.camelcase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;mt&&ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.tolowercase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelcase("default-"+t)]?t.tolowercase():null}}),mt&&ft||(pe.attrhooks.value={set:function(e,t,n){return pe.nodename(e,"input")?void(e.defaultvalue=t):lt&<.set(e,t,n)}}),ft||(lt={set:function(e,t,n){var r=e.getattributenode(n);if(r||e.setattributenode(r=e.ownerdocument.createattribute(n)),r.value=t+="","value"===n||t===e.getattribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getattributenode(t))&&""!==r.value?r.value:null},pe.valhooks.button={get:function(e,t){var n=e.getattributenode(t);if(n&&n.specified)return n.value},set:lt.set},pe.attrhooks.contenteditable={set:function(e,t,n){lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrhooks[t]={set:function(e,n){if(""===n)return e.setattribute(t,"auto"),n}}})),fe.style||(pe.attrhooks.style={get:function(e){return e.style.csstext||void 0},set:function(e,t){return e.style.csstext=t+""}});var ot=/^(?:input|select|textarea|button|object)$/i,rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return pe(this,pe.prop,e,t,arguments.length>1)},removeprop:function(e){return e=pe.propfix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodetype;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isxmldoc(e)||(t=pe.propfix[t]||t,i=pe.prophooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},prophooks:{tabindex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseint(t,10):ot.test(e.nodename)||rt.test(e.nodename)&&e.href?0:-1}}},propfix:{"for":"htmlfor","class":"classname"}}),fe.hrefnormalized||pe.each(["href","src"],function(e,t){pe.prophooks[t]={get:function(e){return e.getattribute(t,4)}}}),fe.optselected||(pe.prophooks.selected={get:function(e){var t=e.parentnode;return t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex),null},set:function(e){var t=e.parentnode;t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex)}}),pe.each(["tabindex","readonly","maxlength","cellspacing","cellpadding","rowspan","colspan","usemap","frameborder","contenteditable"],function(){pe.propfix[this.tolowercase()]=this}),fe.enctype||(pe.propfix.enctype="encoding");var pt=/[\t\r\n\f]/g;pe.fn.extend({addclass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isfunction(e))return this.each(function(t){pe(this).addclass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(de)||[];n=this[u++];)if(i=z(n),r=1===n.nodetype&&(" "+i+" ").replace(pt," ")){for(a=0;o=t[a++];)r.indexof(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeclass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isfunction(e))return this.each(function(t){pe(this).removeclass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(de)||[];n=this[u++];)if(i=z(n),r=1===n.nodetype&&(" "+i+" ").replace(pt," ")){for(a=0;o=t[a++];)for(;r.indexof(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleclass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addclass(e):this.removeclass(e):pe.isfunction(e)?this.each(function(n){pe(this).toggleclass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(de)||[];t=o[r++];)i.hasclass(t)?i.removeclass(t):i.addclass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__classname__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__classname__")||""))})},hasclass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodetype&&(" "+z(n)+" ").replace(pt," ").indexof(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var bt=e.location,wt=pe.now(),it=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fa-f]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[ee][+-]?\d+|)/g;pe.parsejson=function(t){if(e.json&&e.json.parse)return e.json.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?function("return "+i)():pe.error("invalid json: "+t)},pe.parsexml=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.domparser?(r=new e.domparser,n=r.parsefromstring(t,"text/xml")):(n=new e.activexobject("microsoft.xmldom"),n.async="false",n.loadxml(t))}catch(i){n=void 0}return n&&n.documentelement&&!n.getelementsbytagname("parsererror").length||pe.error("invalid xml: "+t),n};var zt=/#.*$/,xt=/([?&])_=[^&]*/,ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yt=/^(?:get|head)$/,jt=/^\/\//,gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,kt={},qt={},zt="*/".concat("*"),en=bt.href,tn=gt.exec(en.tolowercase())||[];pe.extend({active:0,lastmodified:{},etag:{},ajaxsettings:{url:en,type:"get",islocal:vt.test(tn[1]),global:!0,processdata:!0,async:!0,contenttype:"application/x-www-form-urlencoded; charset=utf-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responsefields:{xml:"responsexml",text:"responsetext",json:"responsejson"},converters:{"* text":string,"text html":!0,"text json":pe.parsejson,"text xml":pe.parsexml},flatoptions:{url:!0,context:!0}},ajaxsetup:function(e,t){return t?v(v(e,pe.ajaxsettings),t):v(pe.ajaxsettings,e)},ajaxprefilter:x(kt),ajaxtransport:x(qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,c=n;2!==b&&(b=2,u&&e.cleartimeout(u),c=void 0,s=i||"",t.readystate=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=y(d,t,r)),x=j(d,x,t,o),o?(d.ifmodified&&(w=t.getresponseheader("last-modified"),w&&(pe.lastmodified[a]=w),w=t.getresponseheader("etag"),w&&(pe.etag[a]=w)),204===t||"head"===d.type?c="nocontent":304===t?c="notmodified":(c=x.state,f=x.data,v=x.error,o=!v)):(v=c,!t&&c||(c="error",t<0&&(t=0))),t.status=t,t.statustext=(n||c)+"",o?g.resolvewith(p,[f,c,t]):g.rejectwith(p,[t,c,v]),t.statuscode(y),y=void 0,l&&h.trigger(o?"ajaxsuccess":"ajaxerror",[t,d,o?f:v]),m.firewith(p,[t,c]),l&&(h.trigger("ajaxcomplete",[t,d]),--pe.active||pe.event.trigger("ajaxstop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxsetup({},n),p=d.context||d,h=d.context&&(p.nodetype||p.jquery)?pe(p):pe.event,g=pe.deferred(),m=pe.callbacks("once memory"),y=d.statuscode||{},v={},x={},b=0,w="canceled",t={readystate:0,getresponseheader:function(e){var t;if(2===b){if(!f)for(f={};t=ut.exec(s);)f[t[1].tolowercase()]=t[2];t=f[e.tolowercase()]}return null==t?null:t},getallresponseheaders:function(){return 2===b?s:null},setrequestheader:function(e,t){var n=e.tolowercase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overridemimetype:function(e){return b||(d.mimetype=e),this},statuscode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else t.always(e[t.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(t).complete=m.add,t.success=t.done,t.error=t.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.datatypes=pe.trim(d.datatype||"*").tolowercase().match(de)||[""],null==d.crossdomain&&(i=gt.exec(d.url.tolowercase()),d.crossdomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processdata&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),u(kt,d,n,t),2===b)return t;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxstart"),d.type=d.type.touppercase(),d.hascontent=!yt.test(d.type),a=d.url,d.hascontent||(d.data&&(a=d.url+=(it.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=xt.test(a)?a.replace(xt,"$1_="+wt++):a+(it.test(a)?"&":"?")+"_="+wt++)),d.ifmodified&&(pe.lastmodified[a]&&t.setrequestheader("if-modified-since",pe.lastmodified[a]),pe.etag[a]&&t.setrequestheader("if-none-match",pe.etag[a])),(d.data&&d.hascontent&&d.contenttype!==!1||n.contenttype)&&t.setrequestheader("content-type",d.contenttype),t.setrequestheader("accept",d.datatypes[0]&&d.accepts[d.datatypes[0]]?d.accepts[d.datatypes[0]]+("*"!==d.datatypes[0]?", "+zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)t.setrequestheader(o,d.headers[o]);if(d.beforesend&&(d.beforesend.call(p,t,d)===!1||2===b))return t.abort();w="abort";for(o in{success:1,error:1,complete:1})t[o](d[o]);if(c=u(qt,d,n,t)){if(t.readystate=1,l&&h.trigger("ajaxsend",[t,d]),2===b)return t;d.async&&d.timeout>0&&(u=e.settimeout(function(){t.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(c){if(!(b<2))throw c;r(-1,c)}}else r(-1,"no transport");return t},getjson:function(e,t,n){return pe.get(e,t,n,"json")},getscript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isfunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,datatype:i,data:n,success:r},pe.isplainobject(e)&&e))}}),pe._evalurl=function(e){return pe.ajax({url:e,type:"get",datatype:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapall:function(e){if(pe.isfunction(e))return this.each(function(t){pe(this).wrapall(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerdocument).eq(0).clone(!0);this[0].parentnode&&t.insertbefore(this[0]),t.map(function(){for(var e=this;e.firstchild&&1===e.firstchild.nodetype;)e=e.firstchild;return e}).append(this)}return this},wrapinner:function(e){return pe.isfunction(e)?this.each(function(t){pe(this).wrapinner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapall(e):t.append(e)})},wrap:function(e){var t=pe.isfunction(e);return this.each(function(n){pe(this).wrapall(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodename(this,"body")||pe(this).replacewith(this.childnodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliablehiddenoffsets()?e.offsetwidth<=0&&e.offsetheight<=0&&!e.getclientrects().length:k(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isfunction(t)?t():null==t?"":t,r[r.length]=encodeuricomponent(e)+"="+encodeuricomponent(t)};if(void 0===t&&(t=pe.ajaxsettings&&pe.ajaxsettings.traditional),pe.isarray(e)||e.jquery&&!pe.isplainobject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializearray())},serializearray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makearray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodename)&&!an.test(e)&&(this.checked||!be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isarray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxsettings.xhr=void 0!==e.activexobject?function(){return this.islocal?ee():re.documentmode>8?z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&z()||ee()}:z;var un=0,ln={},cn=pe.ajaxsettings.xhr();e.attachevent&&e.attachevent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withcredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxtransport(function(t){if(!t.crossdomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrfields)for(o in t.xhrfields)a[o]=t.xhrfields[o];t.mimetype&&a.overridemimetype&&a.overridemimetype(t.mimetype),t.crossdomain||r["x-requested-with"]||(r["x-requested-with"]="xmlhttprequest");for(o in r)void 0!==r[o]&&a.setrequestheader(o,r[o]+"");a.send(t.hascontent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readystate))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readystate&&a.abort();else{l={},o=a.status,"string"==typeof a.responsetext&&(l.text=a.responsetext);try{u=a.statustext}catch(c){u=""}o||!t.islocal||t.crossdomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getallresponseheaders())},t.async?4===a.readystate?e.settimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxsetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globaleval(e),e}}}),pe.ajaxprefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossdomain&&(e.type="get",e.global=!1)}),pe.ajaxtransport("script",function(e){if(e.crossdomain){var t,n=re.head||pe("head")[0]||re.documentelement;return{send:function(r,i){t=re.createelement("script"),t.async=!0,e.scriptcharset&&(t.charset=e.scriptcharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readystate||/loaded|complete/.test(t.readystate))&&(t.onload=t.onreadystatechange=null,t.parentnode&&t.parentnode.removechild(t),t=null,n||i(200,"success"))},n.insertbefore(t,n.firstchild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxsetup({jsonp:"callback",jsonpcallback:function(){var e=fn.pop()||pe.expando+"_"+wt++;return this[e]=!0,e}}),pe.ajaxprefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contenttype||"").indexof("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.datatypes[0])return i=t.jsonpcallback=pe.isfunction(t.jsonpcallback)?t.jsonpcallback():t.jsonpcallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(it.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.datatypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeprop(i):e[i]=o,t[i]&&(t.jsonpcallback=n.jsonpcallback,fn.push(i)),a&&pe.isfunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parsehtml=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=te.exec(e),i=!n&&[];return r?[t.createelement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childnodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexof(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isfunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="post"),a.length>0&&pe.ajax({url:e,type:i||"get",datatype:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("
").append(pe.parsehtml(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responsetext,t,e])})}),this},pe.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setoffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inarray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parsefloat(o)||0,i=parsefloat(u)||0),pe.isfunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setoffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerdocument;if(o)return t=o.documentelement,pe.contains(t,i)?("undefined"!=typeof i.getboundingclientrect&&(r=i.getboundingclientrect()),n=te(o),{top:r.top+(n.pageyoffset||t.scrolltop)-(t.clienttop||0),left:r.left+(n.pagexoffset||t.scrollleft)-(t.clientleft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getboundingclientrect():(e=this.offsetparent(),t=this.offset(),pe.nodename(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"bordertopwidth",!0),n.left+=pe.css(e[0],"borderleftwidth",!0)),{top:t.top-n.top-pe.css(r,"margintop",!0),left:t.left-n.left-pe.css(r,"marginleft",!0)}}},offsetparent:function(){return this.map(function(){ for(var e=this.offsetparent;e&&!pe.nodename(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetparent;return e||pt})}}),pe.each({scrollleft:"pagexoffset",scrolltop:"pageyoffset"},function(e,t){var n=/y/.test(t);pe.fn[e]=function(r){return pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentelement[r]:e[r]:void(o?o.scrollto(n?pe(o).scrollleft():i,n?i:pe(o).scrolltop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.csshooks[t]=l(fe.pixelposition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({height:"height",width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return pe(this,function(t,n,r){var i;return pe.iswindow(t)?t.document.documentelement["client"+e]:9===t.nodetype?(i=t.documentelement,math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andself=pe.fn.addback,layui.define(function(e){layui.$=pe,e("jquery",pe)}),pe});!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getpath:function(){var e=document.currentscript?document.currentscript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readystate){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastindexof("/")+1)}(),config:{},end:{},minindex:0,minleft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getstyle:function(t,i){var n=t.currentstyle?t.currentstyle:e.getcomputedstyle(t,null);return n[n.getpropertyvalue?"getpropertyvalue":"getattribute"](i)},link:function(t,i,n){if(r.path){var a=document.getelementsbytagname("head")[0],s=document.createelement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getelementbyid(f)||a.appendchild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: invalid"):void(1989===parseint(o.getstyle(document.getelementbyid(f),"width"))?i():settimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.useragent.tolowercase();return!!(e.activexobject||"activexobject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getpath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closebtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closebtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxwidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():settimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closebtn:1,time:0,zindex:19891014,maxwidth:360,anim:0,isoutanim:!0,icon:-1,movetype:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zindex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
'+(f?r.title[0]:r.title)+"
":"";return r.zindex=s,t([r.shade?'
':"",'
'+(e&&2!=r.type?"":u)+'
'+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
'+function(){var e=c?'':"";return r.closebtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
'+e+"
"}():"")+(r.resize?'':"")+"
"],u,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeall("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='';break;case 3:delete t.title,delete t.closebtn,t.icon===-1&&0===t.icon,r.closeall("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsmore||r.closeall("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addclass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveelem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||settimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addclass(u).one("webkitanimationend mozanimationend msanimationend oanimationend animationend",function(){i(this).removeclass(u)})}t.isoutanim&&e.layero.data("isoutanim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxwidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerwidth()),o.outerwidth()>a.maxwidth&&o.width(a.maxwidth));var s=[o.innerwidth(),o.innerheight()],f=o.find(l[1]).outerheight()||0,c=o.find("."+l[6]).outerheight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parsefloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxheight>0&&o.outerheight()>a.maxheight?(s[1]=a.maxheight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerwidth(),i.outerheight()],o="object"==typeof t.offset;e.offsettop=(n.height()-a[1])/2,e.offsetleft=(n.width()-a[0])/2,o?(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=n.width()-a[0]:"b"===t.offset?e.offsettop=n.height()-a[1]:"l"===t.offset?e.offsetleft=0:"lt"===t.offset?(e.offsettop=0,e.offsetleft=0):"lb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=0):"rt"===t.offset?(e.offsettop=0,e.offsetleft=n.width()-a[0]):"rb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=n.width()-a[0]):e.offsettop=t.offset),t.fixed||(e.offsettop=/%$/.test(e.offsettop)?n.height()*parsefloat(e.offsettop)/100:parsefloat(e.offsettop),e.offsetleft=/%$/.test(e.offsetleft)?n.width()*parsefloat(e.offsetleft)/100:parsefloat(e.offsetleft),e.offsettop+=n.scrolltop(),e.offsetleft+=n.scrollleft()),i.attr("minleft")&&(e.offsettop=n.height()-(i.find(l[1]).outerheight()||0),e.offsetleft=i.css("left")),i.css({top:e.offsettop,left:e.offsetleft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerwidth(),a.outerheight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerwidth(),height:r.outerheight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-tipsg"),c=t.tips[0];t.tips[1]||f.remove(),s.autoleft=function(){s.left+o[0]-n.width()>0?(s.tipleft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipleft=s.left},s.where=[function(){s.autoleft(),s.tiptop=s.top-o[1]-10,f.removeclass("layui-layer-tipsb").addclass("layui-layer-tipst").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left+s.width+10,s.tiptop=s.top,f.removeclass("layui-layer-tipsl").addclass("layui-layer-tipsr").css("border-bottom-color",t.tips[1])},function(){s.autoleft(),s.tiptop=s.top+s.height+10,f.removeclass("layui-layer-tipst").addclass("layui-layer-tipsb").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left-o[0]-10,s.tiptop=s.top,f.removeclass("layui-layer-tipsr").addclass("layui-layer-tipsl").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrolltop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrolltop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closebtn?"30px":""}),a.css({left:s.tipleft-(t.fixed?n.scrollleft():0),top:s.tiptop-(t.fixed?n.scrolltop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventdefault(),t.move&&(c.movestart=!0,c.offset=[e.clientx-parsefloat(s.css("left")),e.clienty-parsefloat(s.css("top"))],o.moveelem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventdefault(),c.resizestart=!0,c.offset=[e.clientx,e.clienty],c.area=[s.outerwidth(),s.outerheight()],o.moveelem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.movestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1],l="fixed"===s.css("position");if(i.preventdefault(),c.stx=l?0:n.scrollleft(),c.sty=l?0:n.scrolltop(),!t.moveout){var f=n.width()-s.outerwidth()+c.stx,u=n.height()-s.outerheight()+c.sty;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1];i.preventdefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isresize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.movestart&&(delete c.movestart,o.moveelem.hide(),t.moveend&&t.moveend(s)),c.resizestart&&(delete c.resizestart,o.moveelem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openlayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.ie6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeclose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasclass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),settimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeattr("layer").show(),n=null})},s.pt.ie6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openlayer=function(){var e=this;r.zindex=e.config.zindex,r.settop=function(e){var t=function(){r.zindex++,e.css("z-index",r.zindex+1)};return r.zindex=parseint(e[0].style.zindex),e.on("mousedown",t),r.zindex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parsefloat(e.css("margin-left"))];e.find(".layui-layer-max").addclass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeproperty?l.html[0].style.removeproperty("overflow"):l.html[0].style.removeattribute("overflow"),l.html.removeattr("layer-full"))},e.layer=r,r.getchildframe=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getframeindex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeauto=function(e){if(e){var t=r.getchildframe("html",e).outerheight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerheight()||0,o=n.find("."+l[6]).outerheight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframesrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerheight()||0,c=a.find("."+l[6]).outerheight()||0;a.attr("minleft");s!==o.type[3]&&s!==o.type[4]&&(n||(parsefloat(t.width)<=260&&(t.width=260),parsefloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerheight(),s===o.type[2]?a.find("iframe").css({height:parsefloat(t.height)-f-c}):r.css({height:parsefloat(t.height)-f-c-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerheight()||0,f=a.attr("minleft")||181*o.minindex+"px",c=a.css("position");o.record(a),o.minleft[0]&&(f=o.minleft[0],o.minleft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minleft")||o.minindex++,a.attr("minleft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parsefloat(n[0]),height:parsefloat(n[1]),top:parsefloat(n[2]),left:parsefloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeclass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),cleartimeout(t),t=settimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrolltop(),left:t?0:n.scrollleft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("contype")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeclass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentwindow.document.write(""),f.contentwindow.close(),t.find("."+l[5])[0].removechild(f)}catch(c){}t[0].innerhtml="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isoutanim")&&t.addclass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minleft")&&(o.minindex--,o.minleft.push(t.attr("minleft"))),r.ie&&r.ie<10||!t.data("isoutanim")?f():settimeout(function(){f()},200)}},r.closeall=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formtype?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxwidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
    '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return a}()+"
",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0;var a=i(this),o=a.index();a.addclass(n).siblings().removeclass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgindex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgindex--,s.imgindex<1&&(s.imgindex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgindex++,s.imgindex>u.length&&(s.imgindex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keycode;e.preventdefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgindex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventdefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventdefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
'+(u.length>1?'':"")+'
'+(u[d].alt||"")+""+s.imgindex+"/"+u.length+"
",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jquery),r}):function(){o.run(e.jquery),r.ready()}()}(window);layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabadd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
  • "+(i.title||"unnaming")+"
  • ";return s[0]?s.before(r):n.append(r),o.append('
    '+(i.content||"")+"
    "),f.hidetabmore(!0),f.tabauto(),this},s.prototype.tabdelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabdelete(null,s),this},s.prototype.tabchange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabclick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerelem,function(i){var e=a(this).index();f.tabclick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabclick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerelem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyelem?a(o.bodyelem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addclass(l).siblings().removeclass(l),u.eq(i).addclass(n).siblings().removeclass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabdelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasclass(l)&&(n.next()[0]?f.tabclick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabclick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),settimeout(function(){f.tabauto()},50),layui.event.call(this,e,"tabdelete("+c+")",{elem:o,index:s})},tabauto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hidetabmore(!0),s.attr("lay-allowclose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabdelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollwidth")>o.outerwidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeclass":"addclass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeattr("overflow")})},hidetabmore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeclass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickthis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeclass(l),s.addclass(l)),i.hasclass(u)&&(c.removeclass(h),c[0]&&(s["none"===c.css("display")?"addclass":"removeclass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeclass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeclass(n)}l[r?"addclass":"removeclass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabauto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasclass(u)?l.css({top:c.position().top,height:c.children("a").outerheight(),opacity:1}):(f.addclass(h),l.css({left:c.position().left+parsefloat(c.css("marginleft")),top:c.position().top+c.height()-l.height()}),e[r]=settimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),cleartimeout(p[r]),"block"===f.css("display")&&cleartimeout(s[r]),s[r]=settimeout(function(){f.addclass(n),c.find("."+y).addclass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasclass(u)||(cleartimeout(s[i]),s[i]=settimeout(function(){l.find("."+d).removeclass(n),l.find("."+y).removeclass(y+"d")},300))}),l.on("mouseleave",function(){cleartimeout(e[i]),p[i]=settimeout(function(){l.hasclass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickthis).on("click",f.clickthis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new function("return "+l)()+"%":l}()),i.attr("lay-showpercent")&&settimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabclick),b.on("click",f.hidetabmore),a(window).on("resize",f.tabauto),t(e,p)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),o=layui.device(),a={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,a.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindaction:"",url:"",field:"file",acceptmime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindaction=t(e.bindaction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemfile=t(['"].join("")),a=i.elem.next();(a.hasclass(u)||a.hasclass(c))&&a.remove(),o.ie&&o.ie<10&&i.elem.wrap('
    '),e.isfile()?(e.elemfile=i.elem,i.field=i.elem[0].name):i.elem.after(n),o.ie&&o.ie<10&&e.initie()},p.prototype.initie=function(){var e=this,i=e.config,n=t(''),o=t(['
    ',"
    "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasclass(c)||(e.elemfile.wrap(o),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isfile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagname.tolocalelowercase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.filereader&&layui.each(t.choosefiles,function(t,i){var n=new filereader;n.readasdataurl(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,a=this,l=a.config,r=a.elemfile[0],u=function(){var i=0,n=0,o=e||a.files||a.choosefiles||r.files,u=function(){l.multiple&&i+n===a.filelength&&"function"==typeof l.alldone&&l.alldone({total:a.filelength,successful:i,aborted:n})};layui.each(o,function(e,o){var r=new formdata;r.append(l.field,o),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)});var c={url:l.url,type:"post",data:r,contenttype:!1,processdata:!1,datatype:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,a.msg("请求上传接口出现异常"),m(e),u()}};"function"==typeof l.progress&&(c.xhr=function(){var e=t.ajaxsettings.xhr();return e.upload.addeventlistener("progress",function(e){if(e.lengthcomputable){var t=math.floor(e.loaded/e.total*100);l.progress(t,l.item[0],e)}}),e}),t.ajax(c)})},c=function(){var e=t("#"+f);a.elemfile.parent().submit(),clearinterval(p.timer),p.timer=setinterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){a.msg("获取上传后的响应信息出现异常"),clearinterval(p.timer),m()}t&&(clearinterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(a.elemfile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=json.parse(t)}catch(i){return t={},a.msg("请对上传接口返回有效json")}"function"==typeof l.done&&l.done(t,e||0,function(e){a.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){a.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||a.choosefiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){a.preview(e)},upload:function(e,t){var i={};i[e]=t,a.upload(i)},pushfile:function(){return a.files=a.files||{},layui.each(a.choosefiles,function(e,t){a.files[e]=t}),a.files},resetfile:function(e,t,i){var n=new file([t],i);a.files=a.files||{},a.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),o.ie?o.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!regexp("\\w\\.("+h+")$","i").test(escape(v)))return a.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!regexp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return a.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!regexp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return a.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){regexp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return a.msg("选择的图片中包含不支持的格式"),r.value=""}if(a.filelength=function(){var t=0,i=e||a.files||a.choosefiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&a.filelength>l.number)return a.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(o.ie&&o.ie<10)){var f;if(layui.each(a.choosefiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.tofixed(2)+"mb":l.size+"kb",r.value="",f=i}}),f)return a.msg("文件不能超过"+f)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindaction;var i=this,e=i.config=t.extend({},i.config,a.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptmime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,a=function(t){e.choosefiles={},layui.each(t,function(t,i){var n=(new date).gettime();e.choosefiles[n+"-"+t]=i})},l=function(t,n){var o=e.elemfile,a=t.length>1?t.length+"个文件":(t[0]||{}).name||o[0].value.match(/[^\/\\]+\..+/g)||[]||"";o.next().hasclass(s)&&o.next().remove(),e.upload(null,"choose"),e.isfile()||i.choose||o.after(''+a+"")};i.elem.off("upload.start").on("upload.start",function(){var o=t(this),a=o.attr("lay-data");if(a)try{a=new function("return "+a)(),e.config=t.extend({},i,a)}catch(l){n.error("upload element property lay-data configuration item has a syntax error: "+a)}e.config.item=o,e.elemfile[0].click()}),o.ie&&o.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeattr("lay-over")}).off("upload.drop").on("upload.drop",function(n,o){var r=t(this),u=o.originalevent.datatransfer.files||[];r.removeattr("lay-over"),a(u),i.auto?e.upload(u):l(u)}),e.elemfile.off("upload.change").on("upload.change",function(){var t=this.files||[];a(t),i.auto?e.upload():l(t)}),i.bindaction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveevents")||(e.elemfile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isfile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventdefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventdefault(),t(this).trigger("upload.drop",e)}),i.bindaction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveevents",!0))},a.render=function(e){var t=new p(e);return l.call(t)},e(r,a)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setvalue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",m="layui-slider-input-btn",p="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.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:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.maxt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var m=math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='
    '+(t.tips?'
    ':"")+'
    '+(t.range?'
    ':"")+"
    ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemtemp=i(f),t.range?(e.elemtemp.find("."+o).eq(0).data("value",t.value[0]),e.elemtemp.find("."+o).eq(1).data("value",t.value[1])):e.elemtemp.find("."+o).data("value",t.value),h.html(e.elemtemp),"vertical"===t.type&&e.elemtemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x')}e.elemtemp.append(b)}if(t.input&&!t.range){var w=i('
    ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemtemp.css("margin-right",w.outerwidth()+15)}t.disabled?(e.elemtemp.addclass(l),e.elemtemp.find("."+u).addclass(l)):e.slide(),e.elemtemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemtemp[0].offsetwidth,n=e.elemtemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsettop-n.height():i(this).parent()[0].offsetleft,s=l/a*100,r=i(this).parent().data("value"),u=t.settips?t.settips(r):r;e.elemtemp.find("."+d).html(u),"vertical"===t.type?e.elemtemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemtemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemtemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemtemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetwidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/math.ceil(l.step)),x=function(e,i){e=math.ceil(e)*b>100?math.ceil(e)*b:math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=t(h[0].offsetleft),a=l.range?t(h[1].offsetleft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=t(f()-h[0].offsettop-h.height()),a=l.range?t(f()-h[1].offsettop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=math.min(t,a),o=math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.settips?l.settips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},t=function(e){var i=e/f()*100/b,t=math.round(i)*b;return e==f()&&(t=math.ceil(i)*b),t},w=i(['
    f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addclass(p),s.find("."+d).show(),i.preventdefault()},o=function(){t.removeclass(p),s.find("."+d).hide()};m(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clienty+i(this).offset().top:e.clientx-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?math.abs(n-parseint(i(h[0]).css("bottom")))>math.abs(n-parseint(i(h[1]).css("bottom")))?1:0:math.abs(n-h[0].offsetleft)>math.abs(n-h[1].offsetleft)?1:0:0,x(s,a),e.preventdefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadein("fast")},function(){var e=i(this);e.children("."+m).fadeout("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.stepl.max?l.max:number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isnan(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keycode&&(e.preventdefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=math.min(e.r,e.g,e.b),r=math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexof("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseint(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:math.round(i.r),g:math.round(i.g),b:math.round(i.b)}},c=function(e){var o=x(e),r=[o.r.tostring(16),o.g.tostring(16),o.b.tostring(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},p=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},b=i(window),w=i(document),d=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};d.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5fb878","#1e9fff","#ff5722","#ffb800","#01aaed","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393d49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},d.prototype.render=function(){var e=this,o=e.config,r=i(['
    ',"",'3&&(o.alpha&&"rgb"==o.format||(e="#"+c(k(p(o.color))))),"background: "+e):e}()+'">','',"","","
    "].join("")),t=i(o.elem);o.size&&r.addclass("layui-colorpicker-"+o.size),t.addclass("layui-inline").html(e.elemcolorbox=r),e.color=e.elemcolorbox.find("."+f)[0].style.background,e.events()},d.prototype.renderpicker=function(){var e=this,o=e.config,r=e.elemcolorbox[0],t=e.elempicker=i(['
    ','
    ','
    ','
    ','
    ','
    ',"
    ",'
    ','
    ',"
    ","
    ",'
    ','
    ','
    ',"
    ","
    ",function(){if(o.predefine){var e=['
    '];return layui.each(o.colors,function(i,o){e.push(['
    ','
    ',"
    "].join(""))}),e.push("
    "),e.join("")}return""}(),'
    ','
    ','',"
    ",'
    ','','',"","
    "].join(""));e.elemcolorbox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removepicker(d.thiselemind):(e.removepicker(d.thiselemind),i("body").append(t)),d.thiselemind=e.index,d.thiscolor=r.style.background,e.position(),e.pickerevents()},d.prototype.removepicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},d.prototype.position=function(){var e=this,i=e.config,o=e.bindelem||e.elemcolorbox[0],r=e.elempicker[0],t=o.getboundingclientrect(),n=r.offsetwidth,l=r.offsetheight,c=function(e){return e=e?"scrollleft":"scrolltop",document.body[e]|document.documentelement[e]},a=function(e){return document.documentelement[e?"clientwidth":"clientheight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetwidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:fa()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},d.prototype.val=function(){var e=this,i=(e.config,e.elemcolorbox.find("."+f)),o=e.elempicker.find("."+b),r=i[0],t=r.style.backgroundcolor;if(t){var n=k(p(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=p(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elempicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastindexof(",")+1,t.length-1);e.elempicker.find("."+h).css("left",a)}e.elempicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elempicker.find("."+v)[0].style.background="",e.elempicker.find("."+h).css("left",280)},d.prototype.side=function(){var e=this,o=e.config,r=e.elemcolorbox.find("."+f),t=r.attr("lay-type"),n=e.elempicker.find("."+u),l=e.elempicker.find("."+p),c=e.elempicker.find("."+g),y=e.elempicker.find("."+m),c=e.elempicker.find("."+v),w=e.elempicker.find("."+h),d=l[0].offsettop/180*360,e=100-(y[0].offsettop+3)/180*100,h=(y[0].offsetleft+3)/260*100,w=math.round(w[0].offsetleft/280*100)/100,j=e.elemcolorbox.find("."+d),f=e.elempicker.find(".layui-colorpicker-pre").children("div"),l=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addclass(a).removeclass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elempicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elempicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",c[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elempicker.find("."+b).find("input").val())},m=i(['
    t&&(r=t);var l=r/180*360;d=l,l(l,h,e,w),e.preventdefault()};y(r),e.preventdefault()}),n.on("click",function(e){var o=e.clienty-i(this).offset().top;o<0&&(o=0),o>this.offsetheight&&(o=this.offsetheight);var r=o/180*360;d=r,l(r,h,e,w),e.preventdefault()}),y.on("mousedown",function(e){var i=this.offsettop,o=this.offsetleft,r=e.clienty,t=e.clientx,n=function(e){var n=i+(e.clienty-r),l=o+(e.clientx-t),a=c[0].offsetheight-3,s=c[0].offsetwidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;e=d,h=f,l(d,f,d,w),e.preventdefault()};layui.stope(e),y(n),e.preventdefault()}),c.on("mousedown",function(e){var o=e.clienty-i(this).offset().top-3+b.scrolltop(),r=e.clientx-i(this).offset().left-3+b.scrollleft();o<-3&&(o=-3),o>this.offsetheight-3&&(o=this.offsetheight-3),r<-3&&(r=-3),r>this.offsetwidth-3&&(r=this.offsetwidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;e=n,h=t,l(d,t,n,w),e.preventdefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetleft,o=e.clientx,r=function(e){var r=i+(e.clientx-o),t=c[0].offsetwidth;r<0&&(r=0),r>t&&(r=t);var n=math.round(r/280*100)/100;w=n,l(d,h,e,n),e.preventdefault()};y(r),e.preventdefault()}),c.on("click",function(e){var o=e.clientx-i(this).offset().left;o<0&&(o=0),o>this.offsetwidth&&(o=this.offsetwidth);var r=math.round(o/280*100)/100;w=r,l(d,h,e,r),e.preventdefault()}),f.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addclass("selected").siblings().removeclass("selected");var e,o=this.style.backgroundcolor,r=k(p(o)),t=o.slice(o.lastindexof(",")+1,o.length-1);d=r.h,h=r.s,e=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),w=t,e=280*t,l(r.h,r.s,r.b,t)})})},d.prototype.select=function(e,i,o,r){var t=this,n=(t.config,c({h:e,s:100,b:100})),l=c({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elempicker.find("."+p).css("top",c),t.elempicker.find("."+g)[0].style.background="#"+n,t.elempicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elempicker.find("."+b).find("input").val("#"+l)},d.prototype.pickerevents=function(){var e=this,o=e.config,r=e.elemcolorbox.find("."+f),t=e.elempicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemcolorbox.find("."+d).removeclass(a).addclass(s),e.color="",o.done&&o.done(""),e.removepicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexof(",")>-1){if(f=k(p(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+c(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastindexof(",")+1,l.length-1);e.elempicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+c(f),e.elemcolorbox.find("."+d).removeclass(s).addclass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removepicker())}};e.elempicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keycode?null:"change")})},d.prototype.events=function(){var e=this,o=e.config,r=e.elemcolorbox.find("."+f);e.elemcolorbox.on("click",function(){e.renderpicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemcolorbox[0].eventhandler&&(w.on("click",function(o){if(!i(o.target).hasclass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasclass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elempicker){if(e.color){var t=k(p(e.color));e.select(t.h,t.s,t.b)}else e.elemcolorbox.find("."+d).removeclass(a).addclass(s);r[0].style.background=e.color||"",e.removepicker()}}),b.on("resize",function(){return!(!e.elempicker||!i(c)[0])&&void e.position()}),e.elemcolorbox[0].eventhandler=!0)},o.render=function(e){var i=new d(e);return r.call(i)},e(t,o)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=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)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=this,n=t(r+'[lay-filter="'+e+'"]');return n.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e),a.getvalue(e)},u.prototype.getvalue=function(e,i){i=i||t(r+'[lay-filter="'+e+'"]').eq(0);var a={},n={},l=i.find("input,select,textarea");return layui.each(l,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];a[i]=0|a[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(n[t.name]=t.value)}}),n},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasclass(n)&&!l||(t("."+a).removeclass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),g=i.find("dl"),x=g.children("dd"),b=this.selectedindex;if(!u){var c=function(){var e=i.offset().top+i.outerheight()+5-h.scrolltop(),t=g.outerheight();b=p[0].selectedindex,i.addclass(a+"ed"),x.removeclass(o),y=null,x.eq(b).addclass(s).siblings().removeclass(s),e+t>h.height()&&e>=t&&i.addclass(a+"up"),t()},w=function(e){i.removeclass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedindex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},t=function(){var e=g.children("dd."+s);if(e[0]){var t=e.position().top,i=g.height(),a=e.height();t>i&&g.scrolltop(t+g.scrolltop()-i+a-5),t<0&&g.scrolltop(t+g.scrolltop()-5)}};m.on("click",function(e){i.hasclass(a+"ed")?w():(v(e,!0),c()),g.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keycode;9===t&&c()}).on("keydown",function(e){var t=e.keycode;9===t&&w();var i=function(t,a){var n,l;e.preventdefault();var r=function(){var e=g.children("dd."+s);if(g.children("dd."+o)[0]&&"next"===t){var i=g.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项

    '):g.find("."+r).remove()},"keyup"),""===t&&g.find("."+r).remove(),void t())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedindex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),settimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),x.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasclass(c)&&(e.hasclass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addclass(s)),e.siblings().removeclass(s),p.val(a).removeclass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedindex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerhtml||i:i,m=t(['
    ','
    ','','
    ','
    ',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagname.tolowercase()?t.push("
    "+a.label+"
    "):t.push('
    '+a.innerhtml+"
    "):t.push('
    '+(a.innerhtml||i)+"
    ")}),0===t.length&&t.push('
    没有选项
    '),t.join("")}(r.find("*"))+"
    ","
    "].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeclass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addclass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
    ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+""};return t[r]||t.checkbox}(),"
    "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scalespring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeclass(e+"ed"),a.find(".layui-icon").removeclass(s).html(i[1])}),n[0].checked=!0,a.addclass(e+"ed"),a.find(".layui-icon").addclass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['
    ',''+i[l.checked?0:1]+"","
    "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
    ","
    "].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=null,a=f.config.verify,s="layui-form-danger",o={},c=t(this),u=c.parents(r),d=u.find("*[lay-verify]"),v=c.parents("form")[0],h=c.attr("lay-filter");return layui.each(d,function(l,r){var o=t(this),c=o.attr("lay-verify").split("|"),u=o.attr("lay-vertype"),d=o.val();if(o.removeclass(s),layui.each(c,function(t,l){var c,f="",v="function"==typeof a[l];if(a[l]){var c=v?f=a[l](d,r):!a[l][0].test(d);if(f=f||a[l][1],"required"===l&&(f=o.attr("lay-reqtext")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof o.attr("lay-ignore")||"select"!==r.tagname.tolowercase()&&!/^checkbox|radio$/.test(r.type)?o:o.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeclose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||settimeout(function(){r.focus()},7),o.addclass(s),e=!0}}),e)return e}),!e&&(o=f.getvalue(null,u),layui.event.call(this,l,"submit("+h+")",{elem:this,form:v,field:o}))},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");settimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n=layui.layer,t="tree",r={config:{},index:layui[t]?layui[t].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,t,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getchecked:function(){return e.getchecked.call(e)},setchecked:function(i){return e.setchecked.call(e,i)}}},c="layui-hide",d="layui-disabled",s="layui-tree-set",o="layui-tree-iconclick",h="layui-icon-addition",u="layui-icon-subtraction",p="layui-tree-entry",f="layui-tree-main",y="layui-tree-txt",v="layui-tree-pack",c="layui-tree-spread",k="layui-tree-setlineshort",m="layui-tree-showline",x="layui-tree-lineextend",b=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};b.prototype.config={data:[],showcheckbox:!1,showline:!0,accordion:!1,onlyiconcontrol:!1,isjump:!1,edit:!1,text:{defaultnodename:"未命名",none:"无数据"}},b.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},b.prototype.render=function(){var e=this,a=e.config;e.checkids=[];var n=i('
    ');e.tree(n);var t=a.elem=i(a.elem);if(t[0]){if(e.key=a.id||e.index,e.elem=n,e.elemnone=i('
    '+a.text.none+"
    "),t.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemnone);a.showcheckbox&&e.renderform("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(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(k),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addclass(k)}),e.events()}},b.prototype.renderform=function(e){a.render(e,"lay-tree-"+this.index)},b.prototype.tree=function(e,a){var n=this,t=n.config,r=a||t.data;layui.each(r,function(a,r){var l=r.children&&r.children.length>0,o=i('
    '),h=i(['
    ','
    ','
    ',function(){return t.showline?l?'':'':''}(),function(){return t.showcheckbox?'':""}(),function(){return t.isjump&&r.href?''+(r.title||r.label||t.text.defaultnodename)+"":''+(r.title||r.label||t.text.defaultnodename)+""}(),"
    ",function(){if(!t.edit)return"";var e={add:'',update:'',del:''},i=['
    '];return t.edit===!0&&(t.edit=["update","del"]),"object"==typeof t.edit?(layui.each(t.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"
    "):void 0}(),"
    "].join(""));l&&(h.append(o),n.tree(o,r.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addclass("layui-tree-showline"),l||h.parent(".layui-tree-pack").addclass("layui-tree-lineextend"),n.spread(h,r),t.showcheckbox&&(r.checked&&n.checkids.push(r.id),n.checkclick(h,r)),t.edit&&n.operate(h,r)})},b.prototype.spread=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f),c=r.find("."+o),k=r.find("."+y),m=t.onlyiconcontrol?c:l,x="";m.on("click",function(i){var a=e.children("."+v),n=m.children(".layui-icon")[0]?m.children(".layui-icon"):m.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasclass(c))e.removeclass(c),a.slideup(200),n.removeclass(u).addclass(h);else if(e.addclass(c),a.slidedown(200),n.addclass(u).removeclass(h),t.accordion){var r=e.siblings("."+s);r.removeclass(c),r.children("."+v).slideup(200),r.find(".layui-tree-icon").children(".layui-icon").removeclass(u).addclass(h)}}else x="normal"}),k.on("click",function(){var n=i(this);n.hasclass(d)||(x=e.hasclass(c)?t.onlyiconcontrol?"open":"close":t.onlyiconcontrol?"close":"open",t.click&&t.click({elem:e,state:x,data:a}))})},b.prototype.setcheckbox=function(e,i,a){var n=this,t=(n.config,a.prop("checked"));if(!a.prop("disabled")){if("object"==typeof i.children||e.find("."+v)[0]){var r=e.find("."+v).find('input[same="layuitreecheck"]');r.each(function(){this.disabled||(this.checked=t)})}var l=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+v),n=a.parent(),r=a.prev().find('input[same="layuitreecheck"]');t?r.prop("checked",t):(a.find('input[same="layuitreecheck"]').each(function(){this.checked&&(i=!0)}),i||r.prop("checked",!1)),l(n)}};l(e),n.renderform("checkbox")}},b.prototype.checkclick=function(e,a){var n=this,t=n.config,r=e.children("."+p),l=r.children("."+f);l.on("click",'input[same="layuitreecheck"]+',function(r){layui.stope(r);var l=i(this).prev(),c=l.prop("checked");l.prop("disabled")||(n.setcheckbox(e,a,l),t.oncheck&&t.oncheck({elem:e,checked:c,data:a}))})},b.prototype.operate=function(e,a){var t=this,r=t.config,l=e.children("."+p),d=l.children("."+f);l.children(".layui-tree-btngroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),b=e.children("."+v),g={data:a,type:f,elem:e};if("add"==f){b[0]||(r.showline?(d.find("."+o).addclass("layui-tree-icon"),d.find("."+o).children(".layui-icon").addclass(h).removeclass("layui-icon-file")):d.find(".layui-tree-iconarrow").removeclass(c),e.append('
    '));var w=r.operate&&r.operate(g),n={};if(n.title=r.text.defaultnodename,n.id=w,t.tree(e.children("."+v),[n]),r.showline)if(b[0])b.hasclass(x)||b.addclass(x),e.find("."+v).each(function(){i(this).children("."+s).last().addclass(k)}),b.children("."+s).last().prev().hasclass(k)?b.children("."+s).last().prev().removeclass(k):b.children("."+s).last().removeclass(k),!e.parent("."+v)[0]&&e.next()[0]&&b.children("."+s).last().removeclass(k);else{var t=e.siblings("."+s),l=1,a=e.parent("."+v);layui.each(t,function(e,a){i(a).children("."+v)[0]||(l=0)}),1==l?(t.children("."+v).addclass(m),t.children("."+v).children("."+s).removeclass(k),e.children("."+v).addclass(m),a.removeclass(x),a.children("."+s).last().children("."+v).children("."+s).last().addclass(k)):e.children("."+v).children("."+s).addclass(k)}if(!r.showcheckbox)return;if(d.find('input[same="layuitreecheck"]')[0].checked){var i=e.children("."+v).children("."+s).last();i.find('input[same="layuitreecheck"]')[0].checked=!0}t.renderform("checkbox")}else if("update"==f){var f=d.children("."+y).html();d.children("."+y).html(""),d.append(''),d.children(".layui-tree-editinput").val(f).focus();var j=function(e){var i=e.val().trim();i=i?i:r.text.defaultnodename,e.remove(),d.children("."+y).html(i),g.data.title=i,r.operate&&r.operate(g)};d.children(".layui-tree-editinput").blur(function(){j(i(this))}),d.children(".layui-tree-editinput").on("keydown",function(e){13===e.keycode&&(e.preventdefault(),j(i(this)))})}else n.confirm('确认删除该节点 "'+(a.title||"")+'" 吗?',function(a){if(r.operate&&r.operate(g),g.status="remove",n.close(a),!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+v)[0])return e.remove(),void t.elem.append(t.elemnone);if(e.siblings("."+s).children("."+p)[0]){if(r.showcheckbox){var l=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+p),n=e.parent("."+v).prev(),r=n.find('input[same="layuitreecheck"]')[0],c=1,d=0;0==r.checked&&(a.each(function(e,a){var n=i(a).find('input[same="layuitreecheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(d=1)}),1==c&&1==d&&(r.checked=!0,t.renderform("checkbox"),l(n.parent("."+s))))}};l(e)}if(r.showline){var d=e.siblings("."+s),h=1,f=e.parent("."+v);layui.each(d,function(e,a){i(a).children("."+v)[0]||(h=0)}),1==h?(b[0]||(f.removeclass(x),d.children("."+v).addclass(m),d.children("."+v).children("."+s).removeclass(k)),e.next()[0]?f.children("."+s).last().children("."+v).children("."+s).last().addclass(k):e.prev().children("."+v).children("."+s).last().addclass(k),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addclass(k)):!e.next()[0]&&e.hasclass(k)&&e.prev().addclass(k)}}else{var y=e.parent("."+v).prev();if(r.showline){y.find("."+o).removeclass("layui-tree-icon"),y.find("."+o).children(".layui-icon").removeclass(u).addclass("layui-icon-file");var w=y.parents("."+v).eq(0);w.addclass(x),w.children("."+s).each(function(){i(this).children("."+v).children("."+s).last().addclass(k)})}else y.find(".layui-tree-iconarrow").addclass(c);e.parents("."+s).eq(0).removeclass(c),e.parent("."+v).remove()}e.remove()})})},b.prototype.events=function(){var e=this,a=e.config;e.elem.find(".layui-tree-checkedfirst");e.setchecked(e.checkids),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),t=n.val(),r=n.nextall(),l=[];r.find("."+y).each(function(){var e=i(this).parents("."+p);if(i(this).html().indexof(t)!=-1){l.push(i(this).parent());var a=function(e){e.addclass("layui-tree-searchshow"),e.parent("."+v)[0]&&a(e.parent("."+v).parent("."+s))};a(e.parent("."+s))}}),r.find("."+p).each(function(){var e=i(this).parent("."+s);e.hasclass("layui-tree-searchshow")||e.addclass(c)}),0==r.find(".layui-tree-searchshow").length&&e.elem.append(e.elemnone),a.onsearch&&a.onsearch({elem:l})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextall().find("."+p).each(function(){var e=i(this).parent("."+s);e.removeclass("layui-tree-searchshow "+c)}),i(".layui-tree-emptytext")[0]&&i(".layui-tree-emptytext").remove()})},b.prototype.getchecked=function(){var e=this,a=e.config,n=[],t=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var r=function(e,a){layui.each(e,function(e,t){layui.each(n,function(e,n){if(t.id==n){var l=i.extend({},t);return delete l.children,a.push(l),t.children&&(l.children=[],r(t.children,l.children)),!0}})})};return r(i.extend({},a.data),t),t},b.prototype.setchecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var t=i(this).data("id"),r=i(n).children("."+p).find('input[same="layuitreecheck"]'),l=r.next();if("number"==typeof e){if(t==e)return r[0].checked||l.click(),!1}else"object"==typeof e&&layui.each(e,function(e,i){if(i==t&&!r[0].checked)return l.click(),!0})})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getchecked=function(e){var i=l.that[e];return i.getchecked()},r.setchecked=function(e,i){var a=l.that[e];return a.setchecked(i)},r.render=function(e){var i=new b(e);return l.call(i)},e(t,r)});layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getdata:function(){return e.getdata.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
    ','
    ','","
    ","{{# if(d.data.showsearch){ }}",'","{{# } }}",'
      ',"
      "].join("")},v=['
      ',p({index:0,checkallname:"laytransferleftcheckall"}),'
      ','",'","
      ",p({index:1,checkallname:"laytransferrightcheckall"}),"
      "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showsearch:!1,id:"",text:{none:"无数据",searchnone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.laybox=e.elem.find("."+s),e.layheader=e.elem.find("."+u),e.laysearch=e.elem.find("."+h),e.laydata=i.find("."+y),e.laybtn=i.find("."+f+" .layui-btn"),e.laybox.css({width:n.width,height:n.height}),e.laydata.css({height:function(){return n.height-e.layheader.outerheight()-e.laysearch.outerheight()-2}()}),e.renderdata(),e.events())},x.prototype.renderdata=function(){var e=this,a=(e.config,[{checkname:"laytransferleftcheck",views:[]},{checkname:"laytransferrightcheck",views:[]}]);e.parsedata(function(e){var t=e.selected?1:0,n=["
    • ",'',"
    • "].join("");a[t].views.push(n),delete e.selected}),e.laydata.eq(0).html(a[0].views.join("")),e.laydata.eq(1).html(a[1].views.join("")),e.rendercheckbtn()},x.prototype.renderform=function(e){n.render(e,"lay-transfer-"+this.index)},x.prototype.rendercheckbtn=function(e){var t=this,n=t.config;e=e||{},t.laybox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.laybtn.eq(i)[f?"removeclass":"addclass"](o),!e.stopnone){var p=r.children("li:not(."+c+")").length;t.noneview(r,p?"":n.text.none)}}),t.renderform("checkbox")},x.prototype.noneview=function(e,t){var n=a('

      '+(t||"")+"

      ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setvalue=function(){var e=this,t=e.config,n=[];return e.laybox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parsedata=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parsedata?n.parsedata(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getdata=function(e){var a=this,t=a.config,n=[];return a.setvalue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="laytransfercheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.rendercheckbtn({stopnone:!0}))}),e.laybtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.laybox.eq(i),r=[];if(!n.hasclass(o)){e.laybox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setvalue()})}),e.rendercheckbtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getdata(r),i)}}),e.laysearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexof(n)!==-1;e[i?"removeclass":"addclass"](c),t.data("hide",!i)}),e.rendercheckbtn();var r=l.length===i.children("li."+c).length;e.noneview(i,r?t.text.searchnone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getdata=function(e){var a=r.that[e];return a.getdata()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)});layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkname:"lay_checked",indexname:"lay_table_index"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,y,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.that[i]=e,c.config[i]=t),{config:t,reload:function(t){e.reload.call(e,t)},setcolswidth:function(){e.setcolswidth.call(e)},resize:function(){e.resize.call(e)}}},s=function(e){var t=c.config[e];return t||o.error("the id option was not found in the table instance"),t||null},u=function(e,a,l,n){var o=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||string(a)).render(l)}():a;return n?t("
      "+o+"
      ").text():o},y="table",h=".layui-table",f="layui-hide",p="layui-none",v="layui-table-view",m=".layui-table-tool",g=".layui-table-box",b=".layui-table-init",x=".layui-table-header",k=".layui-table-body",c=".layui-table-main",w=".layui-table-fixed",t=".layui-table-fixed-l",a=".layui-table-fixed-r",l=".layui-table-total",n=".layui-table-page",s=".layui-table-sort",r="layui-table-edit",w="layui-table-hover",_=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['',"","{{# 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; } }}',function(){return 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("")},e=['',"","
      "].join(""),z=['
      ',"{{# if(d.data.toolbar){ }}",'
      ','
      ','
      ',"
      ","{{# } }}",'
      ',"{{# if(d.data.loading){ }}",'
      ','',"
      ","{{# } }}","{{# var left, right; }}",'
      ',_(),"
      ",'
      ',e,"
      ","{{# if(left){ }}",'
      ','
      ',_({fixed:!0}),"
      ",'
      ',e,"
      ","
      ","{{# }; }}","{{# if(right){ }}",'
      ','
      ',_({fixed:"right"}),'
      ',"
      ",'
      ',e,"
      ","
      ","{{# }; }}","
      ","{{# if(d.data.totalrow){ }}",'
      ','','',"
      ","
      ","{{# } }}","{{# if(d.data.page){ }}",'
      ','
      ',"
      ","{{# } }}","","
      "].join(""),h=t(window),j=t(document),f=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};f.prototype.config={limit:10,loading:!0,cellminwidth:60,defaulttoolbar:["filter","exports","print"],autosort:!0,text:{none:"无数据"}},f.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||e.index,a.request=t.extend({pagename:"page",limitname:"limit"},a.request),a.response=t.extend({statusname:"code",statuscode:0,msgname:"msg",dataname:"data",totalrowname:"totalrow",countname:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullheightgap=a.height.split("-")[1],a.height=h.height()-e.fullheightgap),e.setinit();var l=a.elem,n=l.next("."+v),o=e.elem=t(i(z).render({view_class:v,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.laytool=o.find(m),e.laybox=o.find(g),e.layheader=o.find(x),e.laymain=o.find(c),e.laybody=o.find(k),e.layfixed=o.find(w),e.layfixleft=o.find(t),e.layfixright=o.find(a),e.laytotal=o.find(l),e.laypage=o.find(n),e.rendertoolbar(),e.fullsize(),a.cols.length>1){var r=e.layfixed.find(x).find("th");r.height(e.layheader.height()-1-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom")))}e.pulldata(e.page),e.events()},f.prototype.initopts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});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||i[e.type])},f.prototype.setinit=function(e){var t=this,i=t.config;return i.clientwidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientwidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colgroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.has_parent||o>1&&o==n.colspan||(i.has_parent=!0,i.parentkey=e+"-"+l,o+=parseint(i.colspan>1?i.colspan:1))}),n.colgroup=!0}t.initopts(n)})})},f.prototype.rendertoolbar=function(){var e=this,a=e.config,l=['
      ','
      ','
      '].join(""),n=e.laytool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={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"}},d=[];"object"==typeof a.defaulttoolbar&&layui.each(a.defaulttoolbar,function(e,t){var i="string"==typeof t?r[t]:t;i&&d.push('
      ')}),e.laytool.find(".layui-table-tool-self").html(d.join(""))},f.prototype.setparentcol=function(e,t){var i=this,a=i.config,l=i.layheader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseint(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addclass":"removeclass"](f),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setparentcol(e,d)}},f.prototype.setcolspatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setparentcol(i.hide,i.parentkey)})})},f.prototype.setcolswidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setinit("width");e.eachcols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getscrollwidth(e.laymain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minwidth||t.cellminwidth;return d?void(d.colgroup||d.hide||(e?l&&ln&&a&&(l=(o-n)/a)};r(),r(!0),e.autocolnums=a,e.eachcols(function(i,a){var n=a.minwidth||t.cellminwidth;a.colgroup||a.hide||(0===a.width?e.getcssrule(t.index+"-"+a.key,function(e){e.style.width=math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getcssrule(t.index+"-"+a.key,function(e){e.style.width=math.floor(parsefloat(a.width)/100*o)+"px"}))});var d=e.laymain.width()-e.getscrollwidth(e.laymain[0])-e.laymain.children("table").outerwidth();if(e.autocolnums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layheader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getcssrule(u,function(t){var i=t.style.width||s.outerwidth();t.style.width=parsefloat(i)+d+"px",e.laymain.height()-e.laymain.prop("clientheight")>0&&(t.style.width=parsefloat(t.style.width)-1+"px")})}e.loading(!0)},f.prototype.resize=function(){var e=this;e.fullsize(),e.setcolswidth(),e.scrollpatch()},f.prototype.reload=function(e){var i=this;e=e||{},delete i.haveinit,e.data&&e.data.constructor===array&&delete i.config.data,i.config=t.extend(!0,{},i.config,e),i.render()},f.prototype.errorview=function(e){var i=this,a=i.laymain.find("."+p),l=t('
      '+(e||"error")+"
      ");a[0]&&(i.laynone.remove(),a.remove()),i.layfixed.addclass(f),i.laymain.find("tbody").html(""),i.laymain.append(i.laynone=l),d.cache[i.key]=[]},f.prototype.page=1,f.prototype.pulldata=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initsort&&i.sort(a.initsort.field,a.initsort.type)};if(i.starttime=(new date).gettime(),a.url){var r={};r[l.pagename]=e,r[l.limitname]=a.limit;var d=t.extend(r,a.where);a.contenttype&&0==a.contenttype.indexof("application/json")&&(d=json.stringify(d)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contenttype:a.contenttype,data:d,datatype:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parsedata&&(t=a.parsedata(t)||t),t[n.statusname]!=n.statuscode?(i.renderform(),i.errorview(t[n.msgname]||'返回的数据不符合规范,正确的成功状态码应为:"'+n.statusname+'": '+n.statuscode)):(i.renderdata(t,e,t[n.countname]),o(),a.time=(new date).gettime()-i.starttime+" ms"),i.setcolswidth(),"function"==typeof a.done&&a.done(t,e,t[n.countname])},error:function(e,t){i.errorview("数据接口请求异常:"+t),i.renderform(),i.setcolswidth()}})}else if(a.data&&a.data.constructor===array){var c={},s=e*a.limit-a.limit;c[n.dataname]=a.data.concat().splice(s,a.limit),c[n.countname]=a.data.length,"object"==typeof a.totalrow&&(c[n.totalrowname]=t.extend({},a.totalrow)),i.renderdata(c,e,c[n.countname]),o(),i.setcolswidth(),"function"==typeof a.done&&a.done(c,e,c[n.countname])}},f.prototype.eachcols=function(e){var t=this;return d.eachcols(null,e,t.config.cols),t},f.prototype.renderdata=function(e,n,o,r){var c=this,s=c.config,y=e[s.response.dataname]||[],h=e[s.response.totalrowname],v=[],m=[],g=[],b=function(){var e;return!r&&c.sortkey?c.sort(c.sortkey.field,c.sortkey.sort,!0):(layui.each(y,function(a,l){var o=[],y=[],h=[],p=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexname]=a),c.eachcols(function(n,r){var c=r.field||n,v=s.index+"-"+r.key,m=l[c];if(void 0!==m&&null!==m||(m=""),!r.colgroup){var g=['','
      '+function(){var n=t.extend(!0,{lay_index:p},l),o=d.config.checkname;switch(r.type){case"checkbox":return'";case"radio":return n[o]&&(e=a),'';case"numbers":return p}return r.toolbar?i(t(r.toolbar).html()||"").render(n):u(r,m,n)}(),"
      "].join("");o.push(g),r.fixed&&"right"!==r.fixed&&y.push(g),"right"===r.fixed&&h.push(g)}}),v.push(''+o.join("")+""),m.push(''+y.join("")+""),g.push(''+h.join("")+""))}),c.laybody.scrolltop(0),c.laymain.find("."+p).remove(),c.laymain.find("tbody").html(v.join("")),c.layfixleft.find("tbody").html(m.join("")),c.layfixright.find("tbody").html(g.join("")),c.renderform(),"number"==typeof e&&c.setthisrowchecked(e),c.synccheckall(),c.haveinit?c.scrollpatch():settimeout(function(){c.scrollpatch()},50),c.haveinit=!0,l.close(c.tipsindex),s.has_set_cols_patch||c.setcolspatch(),void(s.has_set_cols_patch=!0))};return d.cache[c.key]=y,c.laypage[0==o||0===y.length&&1==n?"addclass":"removeclass"](f),r?b():0===y.length?(c.renderform(),c.errorview(s.text.none)):(c.layfixed.removeclass(f),b(),c.rendertotal(y,h),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.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||(c.page=e.curr,s.limit=e.limit,c.pulldata(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},f.prototype.rendertotal=function(e,t){var i=this,a=i.config,l={};if(a.totalrow){layui.each(e,function(e,t){0!==t.length&&i.eachcols(function(e,i){var a=i.field||e,n=t[a];i.totalrow&&(l[a]=(l[a]||0)+(parsefloat(n)||0))})}),i.datatotal={};var n=[];i.eachcols(function(e,o){var r=o.field||e,d=function(){var e=o.totalrowtext||"",i=parsefloat(l[r]).tofixed(2),a={};return a[r]=i,i=u(o,i,a),t?t[o.field]||e:o.totalrow?i||e:e}(),c=['','
      '+d,"
      "].join("");o.field&&(i.datatotal[r]=d),n.push(c)}),i.laytotal.find("tbody").html(""+n.join("")+"")}},f.prototype.getcolelem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},f.prototype.renderform=function(e){n.render(e,"lay-table-"+this.index)},f.prototype.setthisrowchecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.laybody.find('tr[data-index="'+e+'"]');a.addclass(i).siblings("tr").removeclass(i)},f.prototype.sort=function(e,i,a,l){var n,r,c=this,s={},u=c.config,h=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layheader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortkey&&!a&&n===c.sortkey.field&&i===c.sortkey.sort)return;var v=c.layheader.find("th .laytable-cell-"+p).find(s);c.layheader.find("th").find(s).removeattr("lay-sort"),v.attr("lay-sort",i||null),c.layfixed.find("th")}catch(m){return o.error("table modules: did not match to field")}c.sortkey={field:n,sort:i},u.autosort&&("asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexname),delete c.sortkey)),s[u.response.dataname]=r||f,c.renderdata(s,c.page,c.count,!0),l&&layui.event.call(e,y,"sort("+h+")",{field:n,type:i})},f.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layinit&&i.layinit.remove(),delete i.layinit,i.laybox.find(b).remove()):(i.layinit=t(['
      ','',"
      "].join("")),i.laybox.append(i.layinit)))},f.prototype.setcheckdata=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==array&&(l[e][a.checkname]=t)},f.prototype.synccheckall=function(){var e=this,t=e.config,i=e.layheader.find('input[name="laytablecheckbox"]'),a=function(i){return e.eachcols(function(e,a){"checkbox"===a.type&&(a[t.checkname]=i)}),i};i[0]&&(d.checkstatus(e.key).isall?(i[0].checked||(i.prop("checked",!0),e.renderform("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderform("checkbox")),a(!1)))},f.prototype.getcssrule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.stylesheet||{},n=l.cssrules||l.rules;layui.each(n,function(i,a){if(a.selectortext===".laytable-cell-"+e)return t(a),!0})},f.prototype.fullsize=function(){var e,t=this,i=t.config,a=i.height;t.fullheightgap&&(a=h.height()-t.fullheightgap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parsefloat(a)-(t.layheader.outerheight()||38),i.toolbar&&(e-=t.laytool.outerheight()||50),i.totalrow&&(e-=t.laytotal.outerheight()||40),i.page&&(e-=t.laypage.outerheight()||41),t.laymain.css("height",e-2))},f.prototype.getscrollwidth=function(e){var t=0;return e?t=e.offsetwidth-e.clientwidth:(e=document.createelement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowy="scroll",document.body.appendchild(e),t=e.offsetwidth-e.clientwidth,document.body.removechild(e)),t},f.prototype.scrollpatch=function(){var e=this,i=e.laymain.children("table"),a=e.laymain.width()-e.laymain.prop("clientwidth"),l=e.laymain.height()-e.laymain.prop("clientheight"),n=(e.getscrollwidth(e.laymain[0]),i.outerwidth()-e.laymain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('
      ');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layheader),o(e.laytotal);var r=e.laymain.height(),d=r-l;e.layfixed.find(k).css("height",i.height()>=d?d:"auto"),e.layfixright[n>0?"removeclass":"addclass"](f),e.layfixright.css("right",a-1)},f.prototype.events=function(){var e,i=this,a=i.config,o=t("body"),c={},s=i.layheader.find("th"),h=".layui-table-cell",p=a.elem.attr("lay-filter");i.laytool.on("click","*[lay-event]",function(e){var o=t(this),c=o.attr("lay-event"),s=function(e){var l=t(e.list),n=t('
        ');n.html(l),a.height&&n.css("max-height",a.height-(i.laytool.outerheight()||50)),o.find(".layui-table-tool-panel")[0]||o.append(n),i.renderform(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),j.trigger("table.tool.panel.remove"),l.close(i.tipsindex),c){case"laytable_cols":s({list:function(){var e=[];return i.eachcols(function(t,i){i.field&&"normal"==i.type&&e.push('
      • ')}),e.join("")}(),done:function(){n.on("checkbox(lay_table_tool_cols)",function(e){var l=t(e.elem),n=this.checked,o=l.data("key"),r=l.data("parentkey");layui.each(a.cols,function(e,t){layui.each(t,function(t,l){if(e+"-"+t===o){var d=l.hide;l.hide=!n,i.elem.find('*[data-key="'+a.index+"-"+o+'"]')[n?"removeclass":"addclass"](f),d!=l.hide&&i.setparentcol(!n,r),i.resize()}})})})}});break;case"laytable_export":r.ie?l.tips("导出功能不支持 ie,请用 chrome 等高级浏览器导出",this,{tips:3}):s({list:function(){return['
      • 导出到 csv 文件
      • ','
      • 导出到 excel 文件
      • '].join("")}(),done:function(e,l){l.on("click",function(){var e=t(this).data("type");d.exportfile.call(i,a.id,null,e)})}});break;case"laytable_print":var u=window.open("打印窗口","_blank"),h=[""].join(""),v=t(i.layheader.html());v.append(i.laymain.find("table").html()),v.append(i.laytotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(h+v.prop("outerhtml")),u.document.close(),u.print(),u.close()}layui.event.call(this,y,"toolbar("+p+")",t.extend({event:c,config:a},{}))}),s.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientx-a;i.data("unresize")||c.resizestart||(c.allowresize=i.width()-l<=10,o.css("cursor",c.allowresize?"col-resize":""))}).on("mouseleave",function(){t(this);c.resizestart||o.css("cursor","")}).on("mousedown",function(e){var l=t(this);if(c.allowresize){var n=l.data("key");e.preventdefault(),c.resizestart=!0,c.offset=[e.clientx,e.clienty],i.getcssrule(n,function(e){var t=e.style.width||l.outerwidth();c.rule=e,c.rulewidth=parsefloat(t),c.minwidth=l.data("minwidth")||a.cellminwidth})}}),j.on("mousemove",function(t){if(c.resizestart){if(t.preventdefault(),c.rule){var a=c.rulewidth+t.clientx-c.offset[0];a');return n[0].value=i.data("content")||l.text(),i.find("."+r)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(h);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollwidth")>a.outerwidth()){if(a.find("."+g)[0])return;i.append('
        ')}};i.laybody.on("click","."+g,function(e){var n=t(this),o=n.parent(),d=o.children(h);i.tipsindex=l.tips(['
        ',d.html(),"
        ",''].join(""),d[0],{tips:[3,""],time:-1,anim:-1,maxwidth:r.ios||r.android?300:i.elem.width()/2,isoutanim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),i.laybody.on("click","*[lay-event]",function(){var e=t(this),a=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),i.setthisrowchecked(a)}),i.laymain.on("scroll",function(){var e=t(this),a=e.scrollleft(),n=e.scrolltop();i.layheader.scrollleft(a),i.laytotal.scrollleft(a),i.layfixed.find(k).scrolltop(n),l.close(i.tipsindex)}),h.on("resize",function(){i.resize()})},function(){j.on("click",function(){j.trigger("table.remove.tool.panel")}),j.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()})}(),d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':h+"[lay-data]"),n="table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.that={},c.config={},d.eachcols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colgroup){var l=0;o++,i.child_cols=[],layui.each(a[e+1],function(e,t){t.parent_col_index||l>1&&l==i.colspan||(t.parent_col_index=o,i.child_cols.push(t),l+=parseint(t.colspan>1?t.colspan:1))})}i.parent_col_index||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.child_cols?r(t.child_cols):void("function"==typeof i&&i(e,t))})};r()},d.checkstatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===array?void i++:void(l[d.config.checkname]&&(t++,a.push(d.clearcachekey(l))))}),{data:a,isall:!!l.length&&t===l.length-i}},d.exportfile=function(e,t,i){var a=this;t=t||d.clearcachekey(d.cache[e]),i=i||"csv";var l=c.config[e]||{},n={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],s=document.createelement("a");return r.ie?o.error("ie_not_support_exports"):(s.href="data:"+n+";charset=utf-8,\ufeff"+encodeuricomponent(function(){var i=[],l=[],n=[];return layui.each(t,function(t,a){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearcachekey(a),function(e,t){n.push('"'+(t||"")+'"')})):d.eachcols(e,function(e,l){if(l.field&&"normal"==l.type&&!l.hide){var o=a[l.field];void 0!==o&&null!==o||(o=""),0==t&&i.push(l.title||""),n.push('"'+u(l,o,a,"text")+'"')}}),l.push(n.join(","))}),layui.each(a.datatotal,function(e,t){n.push(t)}),i.join(",")+"\r\n"+l.join("\r\n")+"\r\n"+n.join(",")}()),s.download=(l.title||"table_"+(l.index||""))+"."+i,document.body.appendchild(s),s.click(),void document.body.removechild(s))},d.resize=function(e){if(e){var t=s(e);if(!t)return;c.that[e].resize()}else layui.each(c.that,function(){this.resize()})},d.reload=function(e,t){var i=s(e);if(i){var a=c.that[e];return a.reload(t),c.call(a)}},d.render=function(e){var t=new f(e);return c.call(t)},d.clearcachekey=function(e){return e=t.extend({},e),delete e[d.config.checkname],delete e[d.config.indexname],e},d.init(),e(y,d)});layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemitem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemitem.length&&(n.index=e.elemitem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zindex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemitem.eq(n.index).addclass(a),e.elemitem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearinterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.previndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemitem.length-1),n},m.prototype.nextindex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemitem.length&&(n=0),n},m.prototype.addindex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemitem.length&&(n.index=0)},m.prototype.subindex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemitem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearinterval(e.timer),e.timer=setinterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemind=i(['
          ',function(){var i=[];return layui.each(e.elemitem,function(e){i.push("")}),i.join("")}(),"
        "].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a",u=1;u<=i.length;u++){var r='
      • ";i.half&&parseint(i.value)!==i.value&&u==math.ceil(i.value)?n=n+'
      • ":n+=r}n+=""+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemtemp=a(n),i.span=e.elemtemp.next("span"),i.settext&&i.settext(i.value),c.html(e.elemtemp),c.addclass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemtemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pagex-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.settext&&i.settext(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addclass(o).removeclass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addclass(s).removeclass(f)}),i.half){var c=e.pagex-a(this).offset().left;c<=n/2&&v.children("i").addclass(u).removeclass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addclass(o).removeclass(r)}),l.find("i:lt("+math.floor(i.value)+")").each(function(){a(this).addclass(s).removeclass(f)}),i.half&&parseint(i.value)!==i.value&&l.children("li:eq("+math.floor(i.value)+")").children("i").addclass(u).removeclass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)});layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=t(document),l=t("body");e=t.extend({showheight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],u=t(['
          ',e.bar1?'
        • '+c[0]+"
        • ":"",e.bar2?'
        • '+c[1]+"
        • ":"",'
        • '+c[2]+"
        • ","
        "].join("")),g=u.find("."+o),s=function(){var t=r.scrolltop();t>=e.showheight?i||(g.show(),i=1):i&&(g.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&u.css(e.css),l.append(u),s(),u.find("li").on("click",function(){var i=t(this),n=i.attr("lay-type");"top"===n&&t("html,body").animate({scrolltop:0},200),e.click&&e.click.call(this,n)}),r.on("scroll",function(){cleartimeout(n),n=settimeout(function(){s()},100)}))},countdown:function(e,t,i){var n=this,a="function"==typeof t,o=new date(e).gettime(),r=new date(!t||a?(new date).gettime():t).gettime(),l=o-r,c=[math.floor(l/864e5),math.floor(l/36e5)%24,math.floor(l/6e4)%60,math.floor(l/1e3)%60];a&&(i=t);var u=settimeout(function(){n.countdown(e,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,u),l<=0&&cleartimeout(u),u},timeago:function(e,t){var i=this,n=[[],[]],a=(new date).gettime()-new date(e).gettime();return a>26784e5?(a=new date(e),n[0][0]=i.digit(a.getfullyear(),4),n[0][1]=i.digit(a.getmonth()+1),n[0][2]=i.digit(a.getdate()),t||(n[1][0]=i.digit(a.gethours()),n[1][1]=i.digit(a.getminutes()),n[1][2]=i.digit(a.getseconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=18e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=string(e),t=t||2;for(var n=e.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(e,n,a){var o=t("body");return a=a||"click",n=i.event[e]=t.extend(!0,i.event[e],n)||{},i.event.util_event_callback=i.event.util_event_callback||{},o.off(a,"*["+e+"]",i.event.util_event_callback[e]),i.event.util_event_callback[e]=function(){var i=t(this),a=i.attr(e);"function"==typeof n[a]&&n[a].call(this,i)},o.on(a,"*["+e+"]",i.event.util_event_callback[e]),n}};!function(e,t,i){"$:nomunge";function n(){a=t[l](function(){o.each(function(){var t=e(this),i=t.width(),n=t.height(),a=e.data(this,u);(i!==a.w||n!==a.h)&&t.trigger(c,[a.w=i,a.h=n])}),n()},r[g])}var a,o=e([]),r=e.resize=e.extend(e.resize,{}),l="settimeout",c="resize",u=c+"-special-event",g="delay",s="throttlewindow";r[g]=250,r[s]=!0,e.event.special[c]={setup:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.add(t),e.data(this,u,{w:t.width(),h:t.height()}),1===o.length&&n()},teardown:function(){if(!r[s]&&this[l])return!1;var t=e(this);o=o.not(t),t.removedata(u),o.length||cleartimeout(a)},add:function(t){function n(t,n,o){var r=e(this),l=e.data(this,u)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[s]&&this[l])return!1;var a;return e.isfunction(t)?(a=t,n):(a=t.handler,void(t.handler=n))}}}(t,window),e("util",i)});layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollelem||document),u=e.mb||50,s=!("isauto"in e)||e.isauto,v=e.end||"没有更多了",y=e.scrollelem&&e.scrollelem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.islazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollelem:e.scrollelem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrolltop();r&&cleartimeout(r),!i&&f.width()&&(r=settimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollheight"):document.documentelement.scrollheight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollelem||document),r=e.elem||"img",a=e.scrollelem&&e.scrollelem!==document,c=function(e,l){var o=n.scrolltop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeattr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrolltop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&cleartimeout(m),m=settimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hidetool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="lay_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hidetool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){c[a]&&!e[a]&&t.push(c[a])}),t.join("")}(),m=e(['
        ','
        '+f+"
        ",'
        ','',"
        ","
        "].join(""));return l.ie&&l.ie<8?c.removeclass("layui-hide").addclass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addclass("layui-hide").after(m),a.index)},c.prototype.getcontent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerhtml)},c.prototype.gettext=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setcontent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerhtml))}},c.prototype.getselection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.tostring()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentwindow"),c=o.find("head"),s=e([""].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#lay_layedit_"+t),a=i.prop("contentwindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.tolowercase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keycode;if(13===e){var a=m(r),l=p(a),n=l.parentnode;if("pre"===n.tagname.tolowercase()){if(t.shiftkey)return;return i.msg("请暂时用shift+enter"),!1}r.execcommand("formatblock",!1,"

        ")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.tolowercase()})),n.value=t}),c.on("paste",function(e){r.execcommand("formatblock",!1,"

        "),settimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textalign;this.removeattribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addclass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createrange():t.getselection().getrangeat(0)},p=function(t){return t.endcontainer||t.parentelement().childnodes[0]},v=function(t,i,a){var l=this.document,n=document.createelement(t);for(var o in i)n.setattribute(o,i[o]);if(n.removeattribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerhtml=r),a.pastehtml(e(n).prop("outerhtml")),a.select()}else{var r=a.tostring()||i.text;if("a"===t&&!r)return;r&&(n.innerhtml=r),a.deletecontents(),a.insertnode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasclass(l)?"removeclass":"addclass"](l),t.find(">i").removeclass(l),o("unlink").addclass(r),e(n).parents().each(function(){var t=this.tagname.tolowercase(),e=this.style.textalign;"b"!==t&&"strong"!==t||o("b").addclass(l),"i"!==t&&"em"!==t||o("i").addclass(l),"u"===t&&o("u").addclass(l),"strike"===t&&o("d").addclass(l),"p"===t&&("center"===e?o("center").addclass(l):"right"===e?o("right").addclass(l):o("left").addclass(l)),"a"===t&&(o("link").addclass(l),o("unlink").removeclass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"a"===a.tagname?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execcommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadimage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeclose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasclass(r)){o.focus();var u=m(n);u.commonancestorcontainer;l?(n.execcommand(l),/justifyleft|justifycenter|justifyright/.test(l)&&n.execcommand("formatblock",!1,"

        "),settimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"lay_layedit_link",area:"350px",shade:.05,shadeclose:!0,movetype:1,title:"超链接",skin:"layui-layer-msg",content:['

          ','
        • ','','
          ','',"
          ","
        • ",'
        • ','','
          ','",'","
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[no]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
      • '+e+'
      • ')}),'
          '+t.join("")+"
        "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxwidth:500,success:function(l,n){l.css({margintop:-4,marginleft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"lay_layedit_code",area:"550px",shade:.05,shadeclose:!0,movetype:1,title:"插入代码",skin:"layui-layer-msg",content:['
          ','
        • ','','
          ','","
          ","
        • ",'
        • ','','
          ','',"
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},c={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new c;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
        1. '+o.replace(/[\r\t\n]+/g,"
        2. ")+"
        "),c.find(">.layui-code-h3")[0]||c.prepend('

        '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

        ");var d=c.find(">.layui-code-ol");c.addclass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addclass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");