(function(m){"use strict";var f=document,i={modules:{},status:{},timeout:10,event:{}},u=function(){this.v="2.4.1"},S=function(){var t=f.currentScript?f.currentScript.src:function(){for(var e,n=f.scripts,o=n.length-1,r=o;r>0;r--)if(n[r].readyState==="interactive"){e=n[r].src;break}return e||n[o].src}();return t.substring(0,t.lastIndexOf("/")+1)}(),h=function(t){m.console&&console.error&&console.error("Layui hint: "+t)},w=typeof opera!="undefined"&&opera.toString()==="[object Opera]",g={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",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"};u.prototype.cache=i,u.prototype.define=function(t,e){var n=this,o=typeof t=="function",r=function(){var s=function(c,l){layui[c]=l,i.status[c]=!0};return typeof e=="function"&&e(function(c,l){s(c,l),i.callback[c]=function(){e(s)}}),this};return o&&(e=t,t=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?r.call(n):(n.use(t,r),n)},u.prototype.use=function(t,e,n){function o(y,b){var k=navigator.platform==="PLaySTATION 3"?/^complete$/:/^(complete|loaded)$/;(y.type==="load"||k.test((y.currentTarget||y.srcElement).readyState))&&(i.modules[a]=b,l.removeChild(p),function j(){return++v>1e3*i.timeout/4?h(a+" is not a valid module"):void(i.status[a]?r():setTimeout(j,4))}())}function r(){n.push(layui[a]),t.length>1?s.use(t.slice(1),e,n):typeof e=="function"&&e.apply(layui,n)}var s=this,c=i.dir=i.dir?i.dir:S,l=f.getElementsByTagName("head")[0];t=typeof t=="string"?[t]:t,window.jQuery&&jQuery.fn.on&&(s.each(t,function(y,b){b==="jquery"&&t.splice(y,1)}),layui.jquery=layui.$=jQuery);var a=t[0],v=0;if(n=n||[],i.host=i.host||(c.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],t.length===0||layui["layui.all"]&&g[a]||!layui["layui.all"]&&layui["layui.mobile"]&&g[a])return r(),s;if(i.modules[a])(function y(){return++v>1e3*i.timeout/4?h(a+" is not a valid module"):void(typeof i.modules[a]=="string"&&i.status[a]?r():setTimeout(y,4))})();else{var p=f.createElement("script"),d=(g[a]?c+"lay/":/^\{\/\}/.test(s.modules[a])?"":i.base||"")+(s.modules[a]||a)+".js";d=d.replace(/^\{\/\}/,""),p.async=!0,p.charset="utf-8",p.src=d+function(){var y=i.version===!0?i.v||new Date().getTime():i.version||"";return y?"?v="+y:""}(),l.appendChild(p),!p.attachEvent||p.attachEvent.toString&&p.attachEvent.toString().indexOf("[native code")<0||w?p.addEventListener("load",function(y){o(y,d)},!1):p.attachEvent("onreadystatechange",function(y){o(y,d)}),i.modules[a]=d}return s},u.prototype.getStyle=function(t,e){var n=t.currentStyle?t.currentStyle:m.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](e)},u.prototype.link=function(t,e,n){var o=this,r=f.createElement("link"),s=f.getElementsByTagName("head")[0];typeof e=="string"&&(n=e);var c=(n||t).replace(/\.|\//g,""),l=r.id="layuicss-"+c,a=0;return r.rel="stylesheet",r.href=t+(i.debug?"?v="+new Date().getTime():""),r.media="all",f.getElementById(l)||s.appendChild(r),typeof e!="function"||function v(){return++a>1e3*i.timeout/100?h(t+" timeout"):void(parseInt(o.getStyle(f.getElementById(l),"width"))===1989?function(){e()}():setTimeout(v,100))}(),o},i.callback={},u.prototype.factory=function(t){if(layui[t])return typeof i.callback[t]=="function"?i.callback[t]:null},u.prototype.addcss=function(t,e,n){return layui.link(i.dir+"css/"+t,e,n)},u.prototype.img=function(t,e,n){var o=new Image;return o.src=t,o.complete?e(o):(o.onload=function(){o.onload=null,typeof e=="function"&&e(o)},void(o.onerror=function(r){o.onerror=null,typeof n=="function"&&n(r)}))},u.prototype.config=function(t){t=t||{};for(var e in t)i[e]=t[e];return this},u.prototype.modules=function(){var t={};for(var e in g)t[e]=g[e];return t}(),u.prototype.extend=function(t){var e=this;t=t||{};for(var n in t)e[n]||e.modules[n]?h("\u6A21\u5757\u540D "+n+" \u5DF2\u88AB\u5360\u7528"):e.modules[n]=t[n];return e},u.prototype.router=function(t){var e=this,t=t||location.hash,n={path:[],search:{},hash:(t.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(t)&&(t=t.replace(/^#\//,""),n.href="/"+t,t=t.replace(/([^#])(#.*$)/,"$1").split("/")||[],e.each(t,function(o,r){/^\w+=/.test(r)?function(){r=r.split("="),n.search[r[0]]=r[1]}():n.path.push(r)})),n},u.prototype.data=function(t,e,n){if(t=t||"layui",n=n||localStorage,m.JSON&&m.JSON.parse){if(e===null)return delete n[t];e=typeof e=="object"?e:{key:e};try{var o=JSON.parse(n[t])}catch(r){var o={}}return"value"in e&&(o[e.key]=e.value),e.remove&&delete o[e.key],n[t]=JSON.stringify(o),e.key?o[e.key]:o}},u.prototype.sessionData=function(t,e){return this.data(t,e,sessionStorage)},u.prototype.device=function(t){var e=navigator.userAgent.toLowerCase(),n=function(r){var s=new RegExp(r+"/([^\\s\\_\\-]+)");return r=(e.match(s)||[])[1],r||!1},o={os:function(){return/windows/.test(e)?"windows":/linux/.test(e)?"linux":/iphone|ipod|ipad|ios/.test(e)?"ios":/mac/.test(e)?"mac":void 0}(),ie:function(){return!!(m.ActiveXObject||"ActiveXObject"in m)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!o[t]&&(o[t]=n(t)),o.android=/android/.test(e),o.ios=o.os==="ios",o},u.prototype.hint=function(){return{error:h}},u.prototype.each=function(t,e){var n,o=this;if(typeof e!="function")return o;if(t=t||[],t.constructor===Object){for(n in t)if(e.call(t[n],n,t[n]))break}else for(n=0;na?1:l