;!function(e){"use strict";vart=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.0.2"},r=function(){vare=t.scripts,o=e[e.length-1].src;returno.substring(0,o.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeofopera&&"[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",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"dest/layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){varn=this,r="function"==typeofe,a=function(){return"function"==typeoft&&t(function(e,t){layui[e]=t,o.status[e]=!0}),this};returnr&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?a.call(n):(n.use(e,a),n)},n.prototype.use=function(e,n,l){functions(e,t){varn="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),functionr(){return++m>1e3*o.timeout/4?a(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}functionc(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeofn&&n.apply(layui,l)}vary=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeofe?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);varf=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])returnc(),y;if(o.modules[f])!functiong(){return++m>1e3*o.timeout/4?a(f+" is not a valid module"):void("string"==typeofo.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{varv=t.createElement("script"),h=(u[f]?p+"lay/":o.base||"")+(y.modules[f]||f)+".js";v.async=!0,v.charset="utf-8",v.src=h+function(){vare=o.version===!0?o.v||(newDate).getTime():o.version||"";returne?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||i?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}returny},n.prototype.getStyle=function(t,o){varn=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);returnn[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){vari=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeofn&&(r=n);vars=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;returnu.rel="stylesheet",u.href=e+(o.debug?"?v="+(newDate).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeofn?i:(functionp(){return++y>1e3*o.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),i)},n.prototype.addcss=function(e,t,n){returnlayui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){varn=newImage;returnn.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,o(e)}))},n.prototype.config=function(e){e=e||{};for(vartine)o[t]=e[t];returnthis},n.prototype.modules=function(){vare={};for(vartinu)e[t]=u[t];returne}(),n.prototype.extend=function(e){vart=this;e=e||{};for(varoine)t[o]||t.modules[o]?a("模块名 "+o+" 已被占用"):t.modules[o]=e[o];returnt},n.prototype.router=function(e){vart=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,"").replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=