Files
jiapu/dist/public/layui/layui.js
T

18 lines
371 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(he){"use strict";var x,Q=he.document,K=he.location,Y={timeout:10,debug:!1,version:!1},M={modules:{},status:{},event:{},callback:{}},y=function(){this.v="2.11.5"},d=he.LAYUI_GLOBAL||{},A=(x=Q.currentScript&&Q.currentScript.tagName.toUpperCase()==="SCRIPT"?Q.currentScript.src:(function(){for(var C,a=Q.getElementsByTagName("script"),p=a.length-1,u=p;0<u;u--)if(a[u].readyState==="interactive"){C=a[u].src;break}return C||a[p].src})(),Y.dir=d.dir||x.substring(0,x.lastIndexOf("/")+1)),I=function(C,a){a=a||"log",he.console&&console[a]&&console[a]("layui error hint: "+C)},T=Y.builtin={lay:"lay",layer:"layer",laydate:"laydate",laypage:"laypage",laytpl:"laytpl",form:"form",upload:"upload",dropdown:"dropdown",transfer:"transfer",tree:"tree",table:"table",treeTable:"treeTable",tabs:"tabs",element:"element",rate:"rate",colorpicker:"colorpicker",slider:"slider",carousel:"carousel",flow:"flow",util:"util",code:"code",jquery:"jquery",component:"component",all:"all","layui.all":"layui.all"},_=(typeof Object.assign!="function"&&(Object.assign=function(C){var a=Object(C);if(!(arguments.length<2))for(var p=1;p<arguments.length;p++){var u=arguments[p];if(u!=null)for(var s in u)Object.prototype.hasOwnProperty.call(u,s)&&(a[s]=u[s])}return a}),function(C,a,p){var u=function(S){S.type!=="load"&&!/^(complete|loaded)$/.test((S.currentTarget||S.srcElement).readyState)||(f(),typeof a!="function")||a(S)},s=function(S){f(),typeof p=="function"&&p(S)},f=function(){C.detachEvent?C.detachEvent("onreadystatechange",u):(C.removeEventListener("load",u,!1),C.removeEventListener("error",s,!1))};!C.attachEvent||C.attachEvent.toString&&C.attachEvent.toString().indexOf("[native code")<0?(C.addEventListener("load",u,!1),C.addEventListener("error",s,!1)):C.attachEvent("onreadystatechange",u)}),ee=(y.prototype.cache=Object.assign(Y,M),y.prototype.config=function(C){return Object.assign(Y,C),this},y.prototype.define=function(C,a){return typeof C=="function"&&(a=C,C=[]),this.use(C,function(){var p=function(u,s){layui[u]=s,M.status[u]=!0};return typeof a=="function"&&a(function(u,s){p(u,s),M.callback[u]=function(){a(p)}}),this},null,"define"),this},y.prototype.use=function(C,a,p,u){var s,f,S,P,n,R,k,X,c=this,o=Y.dir=Y.dir||A;return C=typeof C=="string"?[C]:typeof C=="function"?(a=C,["all"]):C,Y.host||(Y.host=(o.match(/\/\/([\s\S]+?)\//)||["//"+K.host+"/"])[0]),C&&(he.jQuery&&jQuery.fn.on&&(c.each(C,function(r,g){g==="jquery"&&C.splice(r,1)}),layui.jquery=layui.$=he.jQuery),p=p||[],s=C[0],f=c.modules[s],S=typeof f=="object",P=function(){p.push(layui[s]),1<C.length?c.use(C.slice(1),a,p,u):typeof a=="function"&&(layui.jquery&&typeof layui.jquery=="function"&&u!=="define"?layui.jquery(function(){a.apply(layui,p)}):a.apply(layui,p))},n=function(){var r=0;(function g(){return++r>1e3*Y.timeout/5?I(s+" is not a valid module","error"):void((S?layui[s]=he[f.api]:M.status[s])?P():setTimeout(g,5))})()},C.length===0||layui["layui.all"]&&T[s]?P():(X=S?f.src:f,o=(T[s]?o+"modules/":X?"":Y.base)+(X=(X=X||s).replace(/\s/g,"").replace(/\.js[^\/\.]*$/,""))+".js",!M.modules[s]&&layui[s]&&(M.modules[s]=o),M.modules[s]?n():(R=Q.getElementsByTagName("head")[0],(k=Q.createElement("script")).async=!0,k.charset="utf-8",k.src=o+((X=Y.version===!0?Y.v||new Date().getTime():Y.version||"")?"?v="+X:""),R.appendChild(k),_(k,function(){R.removeChild(k),n()},function(){R.removeChild(k)}),M.modules[s]=o))),c},y.prototype.modules=Object.assign({},T),y.prototype.extend=function(C){var a,p,u=Y.base||"",s=/^\{\/\}/;for(a in C=C||{})this[a]||this.modules[a]?I("the "+a+" module already exists, extend failure"):(typeof(p=C[a])=="string"&&(p=((u=s.test(p)?"":u)+p).replace(s,"")),this.modules[a]=p);return this},y.prototype.disuse=function(C){var a=this;return C=a.isArray(C)?C:[C],a.each(C,function(p,u){delete a[u],delete T[u],delete a.modules[u],delete M.status[u],delete M.modules[u]}),a},y.prototype.getStyle=function(C,a){return C=C.currentStyle||he.getComputedStyle(C,null),C.getPropertyValue?C.getPropertyValue(a):C.getAttribute(a.replace(/-(\w)/g,function(p,u){return u?u.toUpperCase():""}))},y.prototype.link=function(C,a,p){var u,s=this,f=Q.getElementsByTagName("head")[0],S=typeof a=="function";if(typeof a=="string"&&(p=a),typeof C=="object")return u=s.type(p)==="array",s.each(C,function(n,R){s.link(R,n===C.length-1&&a,u&&p[n])});p="layuicss-"+(p=p||C.replace(/^(#|(http(s?)):\/\/|\/\/)|\.|\/|\?.+/g,""));var P=Q.getElementById(p);return P||((P=Q.createElement("link")).href=C+(Y.debug?"?v="+new Date().getTime():""),P.rel="stylesheet",P.id=p,f.appendChild(P)),P.__lay_readyState__==="complete"?S&&a(P):_(P,function(){P.__lay_readyState__="complete",S&&a(P)},function(){I(C+" load error","error"),f.removeChild(P)}),s},y.prototype.addcss=function(C,a,p){return layui.link(Y.dir+"css/"+C,a,p)},y.prototype.factory=function(C){if(layui[C])return typeof Y.callback[C]=="function"?Y.callback[C]:null},y.prototype.img=function(C,a,p){var u=new Image;if(u.src=C,u.complete)return a(u);u.onload=function(){u.onload=null,typeof a=="function"&&a(u)},u.onerror=function(s){u.onerror=null,typeof p=="function"&&p(s)}},y.prototype.router=y.prototype.hash=function(C){var a={path:[],pathname:[],search:{},hash:((C=C||K.hash).match(/[^#](#.*$)/)||[])[1]||"",href:""};return/^#/.test(C)&&(C=C.replace(/^#/,""),C=(a.href=C).replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(C,function(p,u){/^\w+=/.test(u)?(u=u.split("="),a.search[u[0]]=u[1]):a.path.push(u)}),a.pathname=a.path),a},y.prototype.url=function(C){var a,p,u=this;return{pathname:(C?((C.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):K.pathname).replace(/^\//,"").split("/"),search:(a={},p=(C?((C.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):K.search).replace(/^\?+/,"").split("&"),u.each(p,function(s,f){var S=f.indexOf("="),P=S<0?f.substr(0,f.length):S!==0&&f.substr(0,S);P&&(a[P]=0<S?f.substr(S+1):null)}),a),hash:u.router(C?(C.match(/#.+/)||[])[0]||"/":K.hash)}},y.prototype.data=function(C,a,p){if(C=C||"layui",p=p||localStorage,a===null)return delete p[C];a=typeof a=="object"?a:{key:a};try{var u=JSON.parse(p[C])}catch(s){u={}}return"value"in a&&(u[a.key]=a.value),a.remove&&delete u[a.key],p[C]=JSON.stringify(u),a.key?u[a.key]:u},y.prototype.sessionData=function(C,a){return this.data(C,a,sessionStorage)},y.prototype.device=function(C){var a=navigator.userAgent.toLowerCase(),p=function(s){var f=new RegExp(s+"/([^\\s\\_\\-]+)");return(s=(a.match(f)||[])[1])||!1},u={os:/windows/.test(a)?"windows":/linux/.test(a)?"linux":/iphone|ipod|ipad|ios/.test(a)?"ios":/mac/.test(a)?"mac":void 0,ie:!!(he.ActiveXObject||"ActiveXObject"in he)&&((a.match(/msie\s(\d+)/)||[])[1]||"11"),weixin:p("micromessenger")};return C&&!u[C]&&(u[C]=p(C)),u.android=/android/.test(a),u.ios=u.os==="ios",u.mobile=u.android||u.ios,u},y.prototype.hint=function(){return{error:I}},y.prototype._typeof=y.prototype.type=function(C){return C===null?String(C):typeof C=="object"||typeof C=="function"?(a=(a=Object.prototype.toString.call(C).match(/\s(.+)\]$/)||[])[1]||"Object",new RegExp("\\b(Function|Array|Date|RegExp|Object|Error|Symbol)\\b").test(a)?a.toLowerCase():"object"):typeof C;var a},y.prototype._isArray=y.prototype.isArray=function(C){var a,p=this.type(C);return!(!C||typeof C!="object"||C===he)&&(a="length"in C&&C.length,p==="array"||a===0||typeof a=="number"&&0<a&&a-1 in C)},y.prototype.each=function(C,a){var p,u=function(s,f){return a.call(f[s],s,f[s])};if(typeof a=="function"){if(this.isArray(C=C||[]))for(p=0;p<C.length&&!u(p,C);p++);else for(p in C)if(u(p,C))break}return this},y.prototype.sort=function(C,a,p,u){if(u=u?C||[]:JSON.parse(JSON.stringify(C||[])),this.type(C)!=="object"||a){if(typeof C!="object")return[u];u.sort(function(s,f){var S=s[a],P=f[a];if(!isNaN(s)&&!isNaN(f))return s-f;if(!isNaN(s)&&isNaN(f)){if(!a||typeof f!="object")return-1;S=s}else if(isNaN(s)&&!isNaN(f)){if(!a||typeof s!="object")return 1;P=f}return s=[!isNaN(S),!isNaN(P)],s[0]&&s[1]?S&&!P&&P!==0?1:!S&&S!==0&&P?-1:S-P:s[0]||s[1]?s[0]||!s[1]?-1:!s[0]||s[1]?1:void 0:P<S?1:S<P?-1:0}),p&&u.reverse()}return u},y.prototype.stope=function(C){try{C.stopPropagation()}catch(a){C.cancelBubble=!0}},"LAYUI-EVENT-REMOVE");y.prototype.onevent=function(C,a,p){return typeof C!="string"||typeof p!="function"?this:y.event(C,a,null,p)},y.prototype.event=y.event=function(P,a,p,u){var s=this,f=null,S=(a||"").match(/\((.*)\)$/)||[],P=(P+"."+a).replace(S[0],""),n=S[1]||"",R=function(k,X){(X&&X.call(s,p))===!1&&f===null&&(f=!1)};return p===ee?(delete(s.cache.event[P]||{})[n],s):u?(M.event[P]=M.event[P]||{},n?M.event[P][n]=[u]:(M.event[P][n]=M.event[P][n]||[],M.event[P][n].push(u)),this):(layui.each(M.event[P],function(k,X){(n==="{*}"||(k===""&&layui.each(X,R),n&&k===n))&&layui.each(X,R)}),f)},y.prototype.on=function(C,a,p){return this.onevent.call(this,a,C,p)},y.prototype.off=function(C,a){return this.event.call(this,a,C,ee)},y.prototype.debounce=function(C,a){var p;return function(){var u=this,s=arguments;clearTimeout(p),p=setTimeout(function(){C.apply(u,s)},a)}},y.prototype.throttle=function(C,a){var p=!1;return function(){p||(C.apply(this,arguments),p=!0,setTimeout(function(){p=!1},a))}},he.layui=new y})(window),layui.define(function(he){var x=layui.cache;layui.config({dir:x.dir.replace(/lay\/dest\/$/,"")}),he("layui.all",layui.v)}),(function(he){"use strict";var x,Q=he.document,K=function(y){return new Y(y)},Y=function(y){var d=this,A=typeof y=="object"?layui.isArray(y)?y:[y]:(this.selector=y,Q.querySelectorAll(y||null));K.each(A,function(I,T){d.push(A[I])})},M=(Array.prototype.indexOf=Array.prototype.indexOf||function(y,d){var A=-1;return d=d||0,layui.each(this,function(I,T){if(y===T&&d<=I)return A=I,!0}),A},Y.fn=Y.prototype=[],Y.fn.constructor=Y,K.extend=function(){var y,d=1,A=arguments,I=function(T,_){for(var ee in T=T||(layui.type(_)==="array"?[]:{}),_)T[ee]=_[ee]&&_[ee].constructor===Object?I(T[ee],_[ee]):_[ee];return T};for(A[0]=typeof A[0]=="object"?A[0]:{},y=A.length;d<y;d++)typeof A[d]=="object"&&I(A[0],A[d]);return A[0]},K.ie=(x=navigator.userAgent.toLowerCase(),!!(he.ActiveXObject||"ActiveXObject"in he)&&((x.match(/msie\s(\d+)/)||[])[1]||"11")),K.layui=layui||{},K.getPath=layui.cache.dir,K.stope=layui.stope,K.each=function(){return layui.each.apply(layui,arguments),this},K.digit=function(y,d){if(typeof y!="string"&&typeof y!="number")return"";var A="";d=d||2;for(var I=(y=String(y)).length;I<d;I++)A+="0";return y<Math.pow(10,d)?A+y:y},K.elem=function(y,d){var A=Q.createElement(y);return K.each(d||{},function(I,T){A.setAttribute(I,T)}),A},K.hasScrollbar=function(){return Q.body.scrollHeight>(he.innerHeight||Q.documentElement.clientHeight)},K.getStyleRules=function(y,d){if(y)return y=(y=y.sheet||y.styleSheet||{}).cssRules||y.rules,typeof d=="function"&&layui.each(y,function(A,I){if(d(I,A))return!0}),y},K.style=function(y){y=y||{};var d=K.elem("style"),A=y.text||"",I=y.target;if(A)return"styleSheet"in d?(d.setAttribute("type","text/css"),d.styleSheet.cssText=A):d.innerHTML=A,d.id="LAY-STYLE-"+(y.id||(A=K.style.index||0,K.style.index++,"DF-"+A)),I&&((y=K(I).find("#"+d.id))[0]&&y.remove(),K(I).append(d)),d},K.position=function(y,d,A){var I,T,_,ee,C,a,p,u,s;d&&(A=A||{},y!==Q&&y!==K("body")[0]||(A.clickType="right"),I=A.clickType==="right"?{left:(I=A.e||he.event||{}).clientX,top:I.clientY,right:I.clientX,bottom:I.clientY}:y.getBoundingClientRect(),a=d.offsetWidth,p=d.offsetHeight,T=function(f){return Q.body[f=f?"scrollLeft":"scrollTop"]|Q.documentElement[f]},_=function(f){return Q.documentElement[f?"clientWidth":"clientHeight"]},ee="margin"in A?A.margin:5,s=I.left,C=I.bottom,A.align==="center"?s-=(a-y.offsetWidth)/2:A.align==="right"&&(s=s-a+y.offsetWidth),(s=s+a+ee>_("width")?_("width")-a-ee:s)<ee&&(s=ee),I.bottom+p+ee>_()&&(I.top>p+ee&&I.top<=_()?C=I.top-p-2*ee:A.allowBottomOut||(C=_()-p-2*ee)<0&&(C=0)),(a=A.position)&&(d.style.position=a),p=A.offset?A.offset[0]:0,u=A.offset?A.offset[1]:0,d.style.left=s+(a==="fixed"?0:T(1))+p+"px",d.style.top=C+(a==="fixed"?0:T())+u+"px",K.hasScrollbar()||(s=d.getBoundingClientRect(),!A.SYSTEM_RELOAD&&s.bottom+ee>_()&&(A.SYSTEM_RELOAD=!0,setTimeout(function(){K.position(y,d,A)},50))))},K.options=function(I,d){if(d=typeof d=="object"?d:{attr:d},I===Q)return{};var I=K(I),A=d.attr||"lay-options",I=I.attr(A);try{return new Function("return "+(I||"{}"))()}catch(T){return layui.hint().error(d.errorText||[A+'="'+I+'"',`
parseerror: `+T].join(`
`),"error"),{}}},K.isTopElem=function(y){var d=[Q,K("body")[0]],A=!1;return K.each(d,function(I,T){if(T===y)return A=!0}),A},K.clipboard={writeText:function(y){var d=String(y.text);function A(){var I=Q.createElement("textarea");I.value=d,I.style.position="fixed",I.style.opacity="0",I.style.top="0px",I.style.left="0px",Q.body.appendChild(I),I.select();try{Q.execCommand("copy"),typeof y.done=="function"&&y.done()}catch(T){typeof y.error=="function"&&y.error(T)}finally{I.remove?I.remove():Q.body.removeChild(I)}}navigator&&"clipboard"in navigator?navigator.clipboard.writeText(d).then(y.done,function(){A()}):A()}},K.passiveSupported=(function(){var y=!1;try{var d=Object.defineProperty({},"passive",{get:function(){y=!0}});he.addEventListener("test",null,d),he.removeEventListener("test",null,d)}catch(A){}return y})(),K.touchEventsSupported=function(){return"ontouchstart"in he},K.touchSwipe=function(y,d){var A,I,T,_=d,ee=K(y)[0],C=!("preventDefault"in _)||_.preventDefault;ee&&K.touchEventsSupported()&&(A={pointerStart:{x:0,y:0},pointerEnd:{x:0,y:0},distanceX:0,distanceY:0,direction:"none",timeStart:null},d=function(a){a.touches.length===1&&(ee.addEventListener("touchmove",I,!!K.passiveSupported&&{passive:!1}),ee.addEventListener("touchend",T),ee.addEventListener("touchcancel",T),A.timeStart=Date.now(),A.pointerStart.x=A.pointerEnd.x=a.touches[0].clientX,A.pointerStart.y=A.pointerEnd.y=a.touches[0].clientY,A.distanceX=A.distanceY=0,A.direction="none",_.onTouchStart)&&_.onTouchStart(a,A)},I=function(a){C&&a.preventDefault(),A.pointerEnd.x=a.touches[0].clientX,A.pointerEnd.y=a.touches[0].clientY,A.distanceX=A.pointerStart.x-A.pointerEnd.x,A.distanceY=A.pointerStart.y-A.pointerEnd.y,Math.abs(A.distanceX)>Math.abs(A.distanceY)?A.direction=0<A.distanceX?"left":"right":A.direction=0<A.distanceY?"up":"down",_.onTouchMove&&_.onTouchMove(a,A)},T=function(a){_.onTouchEnd&&_.onTouchEnd(a,A),ee.removeEventListener("touchmove",I),ee.removeEventListener("touchend",T,!!K.passiveSupported&&{passive:!1}),ee.removeEventListener("touchcancel",T)},ee.__lay_touchswipe_cb_&&ee.removeEventListener("touchstart",ee.__lay_touchswipe_cb_),ee.__lay_touchswipe_cb_=d,ee.addEventListener("touchstart",d))},K.addEvent=Q.addEventListener?function(y,d,A,I){y.addEventListener(d,A,I)}:function(y,d,A){var I="_lay_on_"+d,T=function(ee){ee.target=ee.srcElement,A.call(y,ee)},_=(T._rawFn=A,y[I]||(y[I]=[]),!1);K.each(y[I],function(ee,C){if(C._rawFn===A)return _=!0}),_||(y[I].push(T),y.attachEvent("on"+d,T))},K.removeEvent=Q.removeEventListener?function(y,d,A,I){y.removeEventListener(d,A,I)}:function(y,d,A){var I,T="_lay_on_"+d,_=y[T];layui.isArray(_)&&(I=[],K.each(_,function(ee,C){C._rawFn===A?y.detachEvent("on"+d,C):I.push(C)}),y[T]=I)},K.onClickOutside=function(y,d,C){var I=(C=C||{}).event||("onpointerdown"in he?"pointerdown":"mousedown"),T=C.scope||Q,_=C.ignore||[],ee=!("capture"in C)||C.capture,C=C.detectIframe;function a(u,s,f,S){return u.addEventListener?u.addEventListener(s,f,S):u.attachEvent("on"+s,f),function(){u.removeEventListener?u.removeEventListener(s,f,S):u.detachEvent("on"+s,f)}}var p=[a(T,I,function(u){var s=y,f=u.target||u.srcElement,S=(function(R){var n=R.composedPath&&R.composedPath()||R.path,R=R.target||R.srcElement;return n!=null?n:[R].concat((function k(X,c){return c=c||[],X=X.parentNode,X?k(X,c.concat([X])):c})(R))})(u);s&&s!==f&&S.indexOf(s)===-1&&!(function(P,n){for(var R=P.target||P.srcElement,k=0;k<_.length;k++){var X=_[k];if(typeof X=="string")for(var c=Q.querySelectorAll(X),o=0;o<c.length;o++){var r=c[k];if(r===R||n.indexOf(r)!==-1)return 1}else if(X&&(X===R||n.indexOf(X)!==-1))return 1}})(u,S)&&d(u)},K.passiveSupported?{passive:!0,capture:ee}:ee),C&&a(he,"blur",function(u){setTimeout(function(){Q.activeElement&&Q.activeElement.tagName==="IFRAME"&&y.contains&&!y.contains(Q.activeElement)&&d(u)},0)})];return function(){for(var u=0;u<p.length;u++)p[u]&&p[u]();p=null}},Object.prototype.hasOwnProperty);K.hasOwn=function(y,d){return M.call(y,d)},Y.addStr=function(y,d){return y=y.replace(/\s+/," "),d=d.replace(/\s+/," ").split(" "),K.each(d,function(A,I){new RegExp("\\b"+I+"\\b").test(y)||(y=y+" "+I)}),y.replace(/^\s|\s$/,"")},Y.removeStr=function(y,d){return y=y.replace(/\s+/," "),d=d.replace(/\s+/," ").split(" "),K.each(d,function(A,I){I=new RegExp("\\b"+I+"\\b"),I.test(y)&&(y=y.replace(I,""))}),y.replace(/\s+/," ").replace(/^\s|\s$/,"")},Y.fn.find=function(y){var d=[],A=typeof y=="object";return this.each(function(I,T){T=A&&T.contains(y)?y:T.querySelectorAll(y||null),K.each(T,function(_,ee){d.push(ee)})}),K(d)},Y.fn.each=function(y){return K.each.call(this,this,y)},Y.fn.addClass=function(y,d){return this.each(function(A,I){I.className=Y[d?"removeStr":"addStr"](I.className,y)})},Y.fn.removeClass=function(y){return this.addClass(y,!0)},Y.fn.hasClass=function(y){var d=!1;return this.each(function(A,I){new RegExp("\\b"+y+"\\b").test(I.className)&&(d=!0)}),d},Y.fn.css=function(y,d){var A=this,I=function(T){return isNaN(T)?T:T+"px"};return typeof y!="string"||d!==void 0?A.each(function(T,_){typeof y=="object"?K.each(y,function(ee,C){_.style[ee]=I(C)}):_.style[y]=I(d)}):0<A.length?A[0].style[y]:void 0},Y.fn.width=function(y){var d=this;return y!==void 0?d.each(function(A,I){d.css("width",y)}):0<d.length?d[0].offsetWidth:void 0},Y.fn.height=function(y){var d=this;return y!==void 0?d.each(function(A,I){d.css("height",y)}):0<d.length?d[0].offsetHeight:void 0},Y.fn.attr=function(y,d){var A=this;return d!==void 0?A.each(function(I,T){T.setAttribute(y,d)}):0<A.length?A[0].getAttribute(y):void 0},Y.fn.removeAttr=function(y){return this.each(function(d,A){A.removeAttribute(y)})},Y.fn.html=function(y){var d=this;return y!==void 0?this.each(function(A,I){I.innerHTML=y}):0<d.length?d[0].innerHTML:void 0},Y.fn.val=function(y){var d=this;return y!==void 0?this.each(function(A,I){I.value=y}):0<d.length?d[0].value:void 0},Y.fn.append=function(y){return this.each(function(d,A){typeof y=="object"?A.appendChild(y):A.innerHTML=A.innerHTML+y})},Y.fn.remove=function(y){return this.each(function(d,A){y?A.removeChild(y):A.parentNode.removeChild(A)})},Y.fn.on=function(y,d,A){return this.each(function(I,T){K.addEvent(T,y,d,A)})},Y.fn.off=function(y,d,A){return this.each(function(I,T){K.removeEvent(T,y,d,A)})},he.lay=K,he.layui&&layui.define&&layui.define(function(y){y("lay",K)})})(window),(function(he){"use strict";var x={escape:function(d){var A=/[<"'>]|&(?=#?[a-zA-Z0-9]+)/g;return d==null?"":A.test(d+="")?d.replace(A,function(I){return"&#"+I.charCodeAt(0)+";"}):d}},Q=function(d,A){return new RegExp(d,A||"g")},K=function(T,A,I){A=A||{};var T="Laytpl "+((A=Object.assign({errorContext:""},A)).type||"")+"Error: "+T,_=A.errorContext;return delete A.errorContext,typeof console=="object"&&console.error(T,`
`,_,`
`,A),typeof I=="function"&&I(A),T},Y={open:"{{",close:"}}",cache:!0,condense:!0,tagStyle:""},M=function(d,A){var I=this;A=I.config=Object.assign({template:d},Y,A),I.vars=Object.assign({include:function(T,_){return T=document.getElementById(T),T=T?T.innerHTML:"",T?I.render(T,_):""}},x),I.compile(A.template)},y=(M.prototype.render=function(d,A){var I=this,T=I.config,_=d?I.compile(d):I.compilerCache||I.compile(T.template),ee=(function(){A=A||T.data||{};try{return _(A)}catch(C){return d=d||T.template,K(C,{errorContext:I.extractErrorContext(d,A),template:d,type:"Render"},T.error)}})();return T.cache&&!d&&(I.compilerCache=_),ee},M.prototype.compile=function(d){var A=this,I=A.config,T=I.open,_=I.close,ee=I.condense,C=Q,a="\u2028";if(typeof d!="string"||!d)return function(){return""};var p=function(n,R){return n=["(?:"+T+(n[0]||"")+"\\s*)","("+(n[1]||"[\\s\\S]")+"*?)","(?:\\s*"+(n[2]||"")+_+")"],(R=R||{}).before&&n.unshift(R.before),R.after&&n.push(R.after),C(n.join(""))},S=ee?["",""]:["(?:(?:\\n)*\\s*)","(?:\\s*?)"],u={before:S[0],after:S[1]},s=function(n,R){return n=(n=ee?n:n.replace(C(a),R?"":`
`)).replace(/\\(\\|")/g,"$1")},f=A.parse=function(n){var R,k,X;return(n=n||"")&&(n=(n=(n=ee?n.replace(/\t/g," ").replace(/\s+/g," "):n).replace(C("([}\\]])"+_),"$1 "+_).replace(/(?=\\|")/g,"\\").replace(/\r?\n/g,ee?"":a)).replace(p(["!","","!"],u),function(c,o){return o=o.replace(C(T+"|"+_),function(r){return r.replace(/(?=.)/g,"\\")})}),R=function(c){return['";',c,'__laytpl__+="'].join(`
`)},k=function(c,o,r){return r&&(o=o==="-"?"":"_escape",r=s(r,!0))?R("__laytpl__+="+o+"("+r+");"):""},X=function(c,o){return o?(o=s(o),R(o)):""},n=I.tagStyle==="modern"?(n=(n=n.replace(p(["#"],u),"")).replace(p(["(=|-)"]),k)).replace(p([],u),X):(n=n.replace(p(["#"],u),X)).replace(p(["(=|-)*"]),k),ee||(n=n.replace(C(a),"\\n"))),n},S=A.createCompiler=function(n,R){return R=R||P(n),new Function("laytpl","return "+R)(A.vars)},P=A.createBuilder=function(n,R){return R=R||["function(d){",'"use strict";','var __laytpl__="",'+(function(){var k,X=[];for(k in A.vars)X.push((k==="escape"?"_":"")+k+"=laytpl."+k);return X.join(",")})()+";",'__laytpl__="'+f(n)+'";',"return __laytpl__;","};"].join(`
`)};try{return S(d)}catch(n){return delete A.compilerCache,function(){return K(n,{errorContext:A.extractErrorContext(d),template:d,type:"Compile"},I.error)}}},M.prototype.extractErrorContext=function(d,A){var I=1,T=d.split(/\r?\n/g),_=(d=d.replace(/(?=^)/gm,function(){return"/*LINE:"+I+++"*/"}),this.createBuilder(d)),ee=_.split(/\r?\n/),C="laytpl.builder.map";try{_+=`
//# sourceURL=`+C;var a=this.createCompiler(d,_);A&&a(A)}catch(P){var d=Q(C.replace(/\./g,"\\.")+":(\\d+)","i"),_=(P.stack.match(d)||[])[1]||0,p=function(X,o){var o=o?/\/\*LINE:(\d+)\*\/[^*]*$/:/\/\*LINE:(\d+)\*\//;return!(o=(String(ee[X-1]).match(o)||[])[1])&&0<X?p(X-1,!0):o},A=p(_-2);if(A){var u=A;u=parseInt(u)-1;for(var s=[""],f=Math.max(0,u-3),S=Math.min(T.length,u+3);f<=S;f++)s.push((f==u?"? ":" ")+(f+1)+"| "+T[f]);return s.join(`
`)+`
`}return P}},function(d,A){return d=new M(d,A),function(){var I=this,T=I.config;return{config:T,render:function(a,ee){T.data=a;var C,a=I.render();return T.target&&(C=document.querySelector(T.target))&&(C.innerHTML=a),typeof ee=="function"?(ee(a),this):a},compile:function(_){return T.template=_,delete I.compilerCache,this},error:function(_){return _&&(T.error=_),this},parse:function(_,ee){return this.compile(_).render(ee)}}}.call(d)});y.extendVars=function(d){Object.assign(x,d)},y.config=y.set=function(d){Object.assign(Y,d)},typeof layui=="object"?layui.define(function(d){d("laytpl",y)}):typeof module=="object"&&typeof exports=="object"?module.exports=y:typeof define=="function"&&define.amd?define(function(){return y}):he.laytpl=y})(this),layui.define(function(he){"use strict";var x=document,Q="getElementById",K="getElementsByTagName",Y="layui-disabled",M=function(d){var A=this;A.config=d||{},A.config.index=++y.index,A.render(!0)},y=(M.prototype.type=function(){var d=this.config;if(typeof d.elem=="object")return d.elem.length===void 0?2:3},M.prototype.view=function(){var d,A,I,T=this.config,_=T.groups="groups"in T?Number(T.groups)||0:5,ee=(T.layout=typeof T.layout=="object"?T.layout:["prev","page","next"],T.count=Number(T.count)||0,T.curr=Number(T.curr)||1,T.limits=typeof T.limits=="object"?T.limits:[10,20,30,40,50],T.limit=Number(T.limit)||10,T.pages=Math.ceil(T.count/T.limit)||1,T.curr>T.pages?T.curr=T.pages:T.curr<1&&(T.curr=1),_<0?_=1:_>T.pages&&(_=T.pages),T.prev="prev"in T?T.prev:"上一页",T.next="next"in T?T.next:"下一页",T.pages>_?Math.ceil((T.curr+(1<_?1:0))/(0<_?_:1)):1),C={prev:T.prev?'<a class="layui-laypage-prev'+(T.curr==1?" "+Y:"")+'" data-page="'+(T.curr-1)+'">'+T.prev+"</a>":"",page:(function(){var a=[];if(T.count<1)return"";1<ee&&T.first!==!1&&_!==0&&a.push('<a class="layui-laypage-first" data-page="1" title="首页">'+(T.first||1)+"</a>");var p=Math.floor((_-1)/2),u=1<ee?T.curr-p:1,s=1<ee?(p=T.curr+(_-p-1))>T.pages?T.pages:p:_;for(s-u<_-1&&(u=s-_+1),T.first!==!1&&2<u&&a.push('<span class="layui-laypage-spr">...</span>');u<=s;u++)u===T.curr?a.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(T.theme)?'style="background-color:'+T.theme+';"':"")+"></em><em>"+u+"</em></span>"):a.push('<a data-page="'+u+'">'+u+"</a>");return T.pages>_&&T.pages>s&&T.last!==!1&&(s+1<T.pages&&a.push('<span class="layui-laypage-spr">...</span>'),_!==0)&&a.push('<a class="layui-laypage-last" title="尾页" data-page="'+T.pages+'">'+(T.last||T.pages)+"</a>"),a.join("")})(),next:T.next?'<a class="layui-laypage-next'+(T.curr==T.pages?" "+Y:"")+'" data-page="'+(T.curr+1)+'">'+T.next+"</a>":"",count:'<span class="layui-laypage-count">'+(A=typeof T.countText=="object"?T.countText:["共 "," 条"])[0]+T.count+A[1]+"</span>",limit:(d=['<span class="layui-laypage-limits"><select lay-ignore>'],layui.each(T.limits,function(a,p){var u;d.push('<option value="'+p+'"'+(p===T.limit?" selected":"")+">"+(u=(p=p)+" 条/页",typeof T.limitTemplet=="function"&&T.limitTemplet(p)||u)+"</option>")}),d.join("")+"</select></span>"),refresh:['<a data-page="'+T.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:['<span class="layui-laypage-skip">'+(A=typeof T.skipText=="object"?T.skipText:["到第","页","确定"])[0],'<input type="text" min="1" value="'+T.curr+'" class="layui-input">',A[1]+'<button type="button" class="layui-laypage-btn">'+A[2]+"</button>","</span>"].join("")};return['<div class="layui-box layui-unselect layui-laypage layui-laypage-'+(T.theme?/^#/.test(T.theme)?"molv":T.theme:"default")+'" id="layui-laypage-'+T.index+'">',(I=[],layui.each(T.layout,function(a,p){C[p]&&I.push(C[p])}),I.join("")),"</div>"].join("")},M.prototype.jump=function(d,A){if(d){var I=this,T=I.config,_=d.children,ee=d[K]("button")[0],C=d[K]("input")[0],d=d[K]("select")[0],a=function(){var f=Number(C.value.replace(/\s|\D/g,""));f&&(T.curr=f,I.render())};if(A)return a();for(var p=0,u=_.length;p<u;p++)_[p].nodeName.toLowerCase()==="a"&&y.on(_[p],"click",function(){var f=Number(this.getAttribute("data-page"));f<1||f>T.pages||(T.curr=f,I.render())});d&&y.on(d,"change",function(){var f=this.value;T.curr*f>T.count&&(T.curr=Math.ceil(T.count/f)),T.limit=f,I.render()}),ee&&y.on(ee,"click",function(){a()})}},M.prototype.skip=function(d){var A,I;d&&(A=this,I=d[K]("input")[0])&&y.on(I,"keyup",function(ee){var _=this.value,ee=ee.keyCode;/^(37|38|39|40)$/.test(ee)||(/\D/.test(_)&&(this.value=_.replace(/\D/,"")),ee===13&&A.jump(d,!0))})},M.prototype.render=function(d){var A=this,I=A.config,_=A.type(),T=A.view(),_=(_===2?I.elem&&(I.elem.innerHTML=T):_===3?I.elem.html(T):x[Q](I.elem)&&(x[Q](I.elem).innerHTML=T),I.jump&&I.jump(I,d),x[Q]("layui-laypage-"+I.index));A.jump(_),I.hash&&!d&&(location.hash="!"+I.hash+"="+I.curr),A.skip(_)},{render:function(d){return new M(d).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(d,A,I){return d.attachEvent?d.attachEvent("on"+A,function(T){T.target=T.srcElement,I.call(d,T)}):d.addEventListener(A,I,!1),this}});he("laypage",y)}),(function(he,x){"use strict";var Q=he.layui&&layui.define,K={getPath:he.lay&&lay.getPath?lay.getPath:"",link:function(c,o,r){d.path&&he.lay&&lay.layui&&lay.layui.link(d.path+c,o,r)}},Y=he.LAYUI_GLOBAL||{},M="laydate",y="lay-"+M+"-id",d={v:"5.6.0",config:{weekStart:0},index:he.laydate&&he.laydate.v?1e5:0,path:Y.laydate_dir||K.getPath,set:function(c){var o=this;return o.config=lay.extend({},o.config,c),o},ready:function(c){var o="laydate",r=(Q?"modules/":"")+"laydate.css?v="+d.v;return Q?layui["layui.all"]?typeof c=="function"&&c():layui.addcss(r,c,o):K.link(r,c,o),this}},A=function(){var c=this,o=c.config.id;return(A.that[o]=c).inst={hint:function(r){c.hint.call(c,r)},reload:function(r){c.reload.call(c,r)},config:c.config}},I="layui-this",T="laydate-disabled",_=[100,2e5],ee="layui-laydate-static",C="layui-laydate-list",a="laydate-selected",p="layui-laydate-hint",u="laydate-day-prev",s="laydate-day-next",f=".laydate-btns-confirm",S="laydate-time-text",P="laydate-btns-time",n="layui-laydate-preview",R="layui-laydate-shade",k=function(c){var o,r=this,g=(r.index=++d.index,r.config=lay.extend({},r.config,d.config,c),lay(c.elem||r.config.elem));return 1<g.length?(lay.each(g,function(){d.render(lay.extend({},r.config,{elem:this}))}),r):(c=lay.extend(r.config,lay.options(g[0])),g[0]&&g.attr(y)?(o=A.getThis(g.attr(y)))?o.reload(c):void 0:(c.id="id"in c?c.id:g.attr("id")||r.index,c.index=r.index,void d.ready(function(){r.init()})))},X="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";A.formatArr=function(c){return(c||"").match(new RegExp(X+"|.","g"))||[]},k.isLeapYear=function(c){return c%4==0&&c%100!=0||c%400==0},k.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},holidays:null,zIndex:null,done:null,change:null,autoConfirm:!0,shade:0},k.prototype.lang=function(){var c={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"},timeout:"结束时间不能早于开始时间<br>请重新选择",invalidDate:"不在有效日期或时间范围内",formatError:["日期格式不合法<br>必须遵循下述格式:<br>","<br>已为你重置"],preview:"当前选中的结果"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time<br>Please re-select",invalidDate:"Invalid date",formatError:["The date format error<br>Must be followed<br>","<br>It has been reset"],preview:"The selected result"}};return c[this.config.lang]||c.cn},k.prototype.markerOfChineseFestivals={"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-10-1":"国庆","0-12-25":"圣诞"},k.prototype.reload=function(c){this.config=lay.extend({},this.config,c),this.init()},k.prototype.init=function(){var c=this,o=c.config,r=o.position==="static",g={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=lay(o.elem),o.eventElem=lay(o.eventElem),o.elem[0]&&(layui.type(o.theme)!=="array"&&(o.theme=[o.theme]),o.fullPanel&&(o.type!=="datetime"||o.range)&&delete o.fullPanel,c.rangeStr=o.range?typeof o.range=="string"?o.range:"-":"",c.rangeLinked=!(!o.range||!o.rangeLinked||o.type!=="date"&&o.type!=="datetime"),c.autoCalendarModel=function(){var w=c.rangeLinked;return c.rangeLinked=o.range&&(o.type==="date"||o.type==="datetime")&&(!c.startDate||!c.endDate||c.startDate&&c.endDate&&c.startDate.year===c.endDate.year&&c.startDate.month===c.endDate.month),lay(c.elem)[c.rangeLinked?"addClass":"removeClass"]("layui-laydate-linkage"),c.rangeLinked!=w},c.autoCalendarModel.auto=c.rangeLinked&&o.rangeLinked==="auto",layui.type(o.range)==="array"&&(c.rangeElem=[lay(o.range[0]),lay(o.range[1])]),g[o.type]||(he.console&&console.error&&console.error("laydate type error:'"+o.type+"' is not supported"),o.type="date"),o.format===g.date&&(o.format=g[o.type]||g.date),c.format=A.formatArr(o.format),o.weekStart&&!/^[0-6]$/.test(o.weekStart)&&(g=c.lang(),o.weekStart=g.weeks.indexOf(o.weekStart),o.weekStart===-1)&&(o.weekStart=0),c.EXP_IF="",c.EXP_SPLIT="",lay.each(c.format,function(w,F){w=new RegExp(X).test(F)?"\\d{"+(new RegExp(X).test(c.format[w===0?w+1:w-1]||"")?/^yyyy|y$/.test(F)?4:F.length:/^yyyy$/.test(F)?"1,4":/^y$/.test(F)?"1,308":"1,2")+"}":"\\"+F,c.EXP_IF=c.EXP_IF+w,c.EXP_SPLIT=c.EXP_SPLIT+"("+w+")"}),c.EXP_IF_ONE=new RegExp("^"+c.EXP_IF+"$"),c.EXP_IF=new RegExp("^"+(o.range?c.EXP_IF+"\\s\\"+c.rangeStr+"\\s"+c.EXP_IF:c.EXP_IF)+"$"),c.EXP_SPLIT=new RegExp("^"+c.EXP_SPLIT+"$",""),c.isInput(o.elem[0])||o.trigger==="focus"&&(o.trigger="click"),o.elem.attr("lay-key",c.index),o.eventElem.attr("lay-key",c.index),o.elem.attr(y,o.id),lay.each(["min","max"],function(ne,F){var te=[],re=[];if(typeof o[F]=="number")var O=o[F],z=new Date,z=c.newDate({year:z.getFullYear(),month:z.getMonth(),date:z.getDate(),hours:ne?23:0,minutes:ne?59:0,seconds:ne?59:0}).getTime(),ne=new Date(O?O<864e5?z+864e5*O:O:z),te=[ne.getFullYear(),ne.getMonth()+1,ne.getDate()],re=[ne.getHours(),ne.getMinutes(),ne.getSeconds()];else if(typeof o[F]=="string")te=(o[F].match(/\d+-\d+-\d+/)||[""])[0].split("-"),re=(o[F].match(/\d+:\d+:\d+/)||[""])[0].split(":");else if(typeof o[F]=="object")return o[F];o[F]={year:0|te[0]||new Date().getFullYear(),month:te[1]?(0|te[1])-1:new Date().getMonth(),date:0|te[2]||new Date().getDate(),hours:0|re[0],minutes:0|re[1],seconds:0|re[2]}}),c.elemID="layui-laydate"+o.elem.attr("lay-key"),(o.show||r)&&c.render(),r||c.events(),typeof o.formatToDisplay=="function"&&(c.isInput(o.elem[0])?c.formatToDisplay(o.elem[0],o.formatToDisplay):(g=c.rangeElem)&&(c.formatToDisplay(g[0][0],o.formatToDisplay),c.formatToDisplay(g[1][0],o.formatToDisplay))),o.value)&&o.isInitValue&&(layui.type(o.value)==="date"?c.setValue(c.parse(0,c.systemDate(o.value))):c.setValue(o.value))},k.prototype.render=function(){var c,o,r,g,w=this,F=w.config,O=w.lang(),z=F.position==="static",ne=w.elem=lay.elem("div",{id:w.elemID,class:["layui-laydate",F.range?" layui-laydate-range":"",w.rangeLinked?" layui-laydate-linkage":"",z?" "+ee:"",F.fullPanel?" laydate-theme-fullpanel":"",(c="",lay.each(F.theme,function(m,h){h==="default"||/^#/.test(h)||(c+=" laydate-theme-"+h)}),c)].join("")}),te=w.elemMain=[],re=w.elemHeader=[],D=w.elemCont=[],v=w.table=[],L=w.footer=lay.elem("div",{class:"layui-laydate-footer"}),oe=w.shortcut=lay.elem("ul",{class:"layui-laydate-shortcut"}),j=(F.zIndex&&(ne.style.zIndex=F.zIndex),lay.each(new Array(2),function(m){if(!F.range&&0<m)return!0;var h=lay.elem("div",{class:"layui-laydate-header"}),E=[((E=lay.elem("i",{class:"layui-icon laydate-icon laydate-prev-y"})).innerHTML="&#xe65a;",E),((E=lay.elem("i",{class:"layui-icon laydate-icon laydate-prev-m"})).innerHTML="&#xe603;",E),((E=lay.elem("div",{class:"laydate-set-ym"})).appendChild(lay.elem("span")),E.appendChild(lay.elem("span")),E),((E=lay.elem("i",{class:"layui-icon laydate-icon laydate-next-m"})).innerHTML="&#xe602;",E),((E=lay.elem("i",{class:"layui-icon laydate-icon laydate-next-y"})).innerHTML="&#xe65b;",E)],W=lay.elem("div",{class:"layui-laydate-content"}),G=lay.elem("table"),B=lay.elem("thead"),U=lay.elem("tr");lay.each(E,function(q,ae){h.appendChild(ae)}),B.appendChild(U),lay.each(new Array(6),function(q){var ae=G.insertRow(0);lay.each(new Array(7),function(le){var de;q===0&&((de=lay.elem("th")).innerHTML=O.weeks[(le+F.weekStart)%7],U.appendChild(de)),ae.insertCell(le)})}),G.insertBefore(B,G.children[0]),W.appendChild(G),te[m]=lay.elem("div",{class:"layui-laydate-main laydate-main-list-"+m}),te[m].appendChild(h),te[m].appendChild(W),re.push(E),D.push(W),v.push(G)}),lay(L).html((j=[],o=[],F.type==="datetime"&&j.push('<span lay-type="datetime" class="'+P+'">'+O.timeTips+"</span>"),(F.range||F.type!=="datetime"||F.fullPanel)&&j.push('<span class="'+n+'" title="'+O.preview+'"></span>'),lay.each(F.btns,function(m,h){var E=O.tools[h]||"btn";F.range&&h==="now"||(z&&h==="clear"&&(E=F.lang==="cn"?"重置":"Reset"),o.push('<span lay-type="'+h+'" class="laydate-btns-'+h+'">'+E+"</span>"))}),j.push('<div class="laydate-footer-btns">'+o.join("")+"</div>"),j.join(""))),F.shortcuts&&(ne.appendChild(oe),lay(oe).html((r=[],lay.each(F.shortcuts,function(m,h){r.push('<li data-index="'+m+'">'+h.text+"</li>")}),r.join(""))).find("li").on("click",function(m){var E=F.shortcuts[this.dataset.index]||{},E=(typeof E.value=="function"?E.value():E.value)||[],h=(layui.isArray(E)||(E=[E]),F.type),E=(lay.each(E,function(W,G){var B=[F.dateTime,w.endDate][W];h==="time"&&layui.type(G)!=="date"?w.EXP_IF.test(G)&&(G=(G.match(w.EXP_SPLIT)||[]).slice(1),lay.extend(B,{hours:0|G[0],minutes:0|G[2],seconds:0|G[4]})):lay.extend(B,w.systemDate(layui.type(G)==="date"?G:new Date(G))),h!=="time"&&h!=="datetime"||(w[["startTime","endTime"][W]]={hours:B.hours,minutes:B.minutes,seconds:B.seconds}),W===0?w.startDate=lay.extend({},B):w.endState=!0,h==="year"||h==="month"||h==="time"?w.listYM[W]=[B.year,B.month+1]:W&&w.autoCalendarModel.auto&&w.autoCalendarModel()}),w.checkDate("limit").calendar(null,null,"init"),lay(w.footer).find("."+P).removeClass(T));E&&E.attr("lay-type")==="date"&&E[0].click(),w.done(null,"change"),lay(this).addClass(I),F.position!=="static"&&w.setValue(w.parse()).done().remove()})),lay.each(te,function(m,h){ne.appendChild(h)}),F.showBottom&&ne.appendChild(L),lay.elem("style")),J=[],$=!0,oe=(lay.each(F.theme,function(m,h){$&&/^#/.test(h)?($=!(g=!0),J.push(["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} li.layui-this,#{{id}} td.layui-this>div{background-color:{{theme}} !important;}",F.theme.indexOf("circle")!==-1?"":"#{{id}} .layui-this{background-color:{{theme}} !important;}","#{{id}} .laydate-day-now{color:{{theme}} !important;}","#{{id}} .laydate-day-now:after{border-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,w.elemID).replace(/{{theme}}/g,h))):!$&&/^#/.test(h)&&J.push(["#{{id}} .laydate-selected>div{background-color:{{theme}} !important;}","#{{id}} .laydate-selected:hover>div{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,w.elemID).replace(/{{theme}}/g,h))}),F.shortcuts&&F.range&&J.push("#{{id}}.layui-laydate-range{width: 628px;}".replace(/{{id}}/g,w.elemID)),J.length&&(J=J.join(""),"styleSheet"in j?(j.setAttribute("type","text/css"),j.styleSheet.cssText=J):j.innerHTML=J,g&&lay(ne).addClass("laydate-theme-molv"),ne.appendChild(j)),w.remove(k.thisElemDate),d.thisId=F.id,z?F.elem.append(ne):(x.body.appendChild(ne),w.position()),F.shade?'<div class="'+R+'" style="z-index:'+(parseInt(layui.getStyle(ne,"z-index"))-1)+"; background-color: "+(F.shade[1]||"#000")+"; opacity: "+(F.shade[0]||F.shade)+'"></div>':"");ne.insertAdjacentHTML("beforebegin",oe),w.checkDate().calendar(null,0,"init"),w.changeEvent(),k.thisElemDate=w.elemID,w.renderAdditional(),typeof F.ready=="function"&&F.ready(lay.extend({},F.dateTime,{month:F.dateTime.month+1})),w.preview()},k.prototype.remove=function(c){var o=this,r=o.config,g=lay("#"+(c||o.elemID));return g[0]&&(g.hasClass(ee)||o.checkDate(function(){g.remove(),delete o.startDate,delete o.endDate,delete o.endState,delete o.startTime,delete o.endTime,delete d.thisId,typeof r.close=="function"&&r.close(o)}),lay("."+R).remove()),o},k.prototype.position=function(){var c=this.config;return lay.position(c.elem[0],this.elem,{position:c.position}),this},k.prototype.hint=function(c){var o=this,r=(o.config,lay.elem("div",{class:p}));o.elem&&(r.innerHTML=(c=typeof c=="object"?c||{}:{content:c}).content||"",lay(o.elem).find("."+p).remove(),o.elem.appendChild(r),clearTimeout(o.hinTimer),o.hinTimer=setTimeout(function(){lay(o.elem).find("."+p).remove()},"ms"in c?c.ms:3e3))},k.prototype.getAsYM=function(c,o,r){return r?o--:o++,o<0&&(o=11,c--),11<o&&(o=0,c++),[c,o]},k.prototype.systemDate=function(c){var o=c||new Date;return{year:o.getFullYear(),month:o.getMonth(),date:o.getDate(),hours:c?c.getHours():0,minutes:c?c.getMinutes():0,seconds:c?c.getSeconds():0}},k.prototype.checkDate=function(c){var o,r,g,w,F,O=this,z=O.config,ne=O.lang(),te=z.dateTime=z.dateTime||O.systemDate(),re=z.elem[0],D=(O.isInput(re),(function(){if(O.rangeElem){var j=[O.rangeElem[0].val(),O.rangeElem[1].val()];if(j[0]&&j[1])return j.join(" "+O.rangeStr+" ")}return O.isInput(re)?re.value:z.position==="static"?"":lay(re).attr("lay-date")})()),v=function(j){j&&(j.year>_[1]&&(j.year=_[1],r=!0),11<j.month&&(j.month=11,r=!0),59<j.seconds&&(j.seconds=0,j.minutes++,r=!0),59<j.minutes&&(j.minutes=0,j.hours++,r=!0),23<j.hours&&(j.hours=0,r=!0),o=d.getEndDate(j.month+1,j.year),j.date>o)&&(j.date=o,r=!0)},L=function(j,J,$){var oe=["startTime","endTime"];J=(J.match(O.EXP_SPLIT)||[]).slice(1),$=$||0,z.range&&(O[oe[$]]=O[oe[$]]||{}),lay.each(O.format,function(m,h){var E=parseFloat(J[m]);J[m].length<h.length&&(r=!0),/yyyy|y/.test(h)?(E<_[0]&&(E=_[0],r=!0),j.year=E):/MM|M/.test(h)?(E<1&&(E=1,r=!0),j.month=E-1):/dd|d/.test(h)?(E<1&&(E=1,r=!0),j.date=E):/HH|H/.test(h)?(E<0&&(r=!(E=0)),23<E&&(E=23,r=!0),j.hours=E,z.range&&(O[oe[$]].hours=E)):/mm|m/.test(h)?(E<0&&(r=!(E=0)),59<E&&(E=59,r=!0),j.minutes=E,z.range&&(O[oe[$]].minutes=E)):/ss|s/.test(h)&&(E<0&&(r=!(E=0)),59<E&&(E=59,r=!0),j.seconds=E,z.range)&&(O[oe[$]].seconds=E)}),v(j)};return c==="limit"?z.range?(v(O.rangeLinked?O.startDate:te),O.endDate&&v(O.endDate)):v(te):(typeof(D=D||z.value)=="string"&&(D=D.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),(g=function(){var j,J,$;z.range&&(O.endDate=O.endDate||lay.extend({},z.dateTime,(j={},J=z.dateTime,$=O.getAsYM(J.year,J.month),z.type==="year"?j.year=J.year+1:z.type!=="time"&&(j.year=$[0],j.month=$[1]),z.type!=="datetime"&&z.type!=="time"||(j.hours=23,j.minutes=j.seconds=59),j)))})(),typeof D=="string"&&D?O.EXP_IF.test(D)?z.range?(D=D.split(" "+O.rangeStr+" "),lay.each([z.dateTime,O.endDate],function(j,J){L(J,D[j],j)})):L(te,D):(O.hint(ne.formatError[0]+(z.range?z.format+" "+O.rangeStr+" "+z.format:z.format)+ne.formatError[1]),r=!0):D&&layui.type(D)==="date"?z.dateTime=O.systemDate(D):(z.dateTime=O.systemDate(),delete O.startTime,delete O.endDate,g(),delete O.endTime),O.rangeElem&&(g=[O.rangeElem[0].val(),O.rangeElem[1].val()],w=[z.dateTime,O.endDate],lay.each(g,function(j,J){O.EXP_IF_ONE.test(J)&&L(w[j],J,j)})),v(te),z.range&&v(O.endDate),r&&D&&O.setValue(!z.range||O.endDate?O.parse():""),O.getDateTime(te)>O.getDateTime(z.max)?(te=z.dateTime=lay.extend({},z.max),F=!0):O.getDateTime(te)<O.getDateTime(z.min)&&(te=z.dateTime=lay.extend({},z.min),F=!0),z.range&&((O.getDateTime(O.endDate)<O.getDateTime(z.min)||O.getDateTime(O.endDate)>O.getDateTime(z.max))&&(O.endDate=lay.extend({},z.max),F=!0),O.startTime={hours:z.dateTime.hours,minutes:z.dateTime.minutes,seconds:z.dateTime.seconds},O.endTime={hours:O.endDate.hours,minutes:O.endDate.minutes,seconds:O.endDate.seconds},z.type==="month")&&(z.dateTime.date=1,O.endDate.date=1),F&&D&&(O.setValue(O.parse()),O.hint("value "+ne.invalidDate+ne.formatError[1])),O.startDate=O.startDate||D&&lay.extend({},z.dateTime),O.autoCalendarModel.auto&&O.autoCalendarModel(),O.endState=!z.range||!O.rangeLinked||!(!O.startDate||!O.endDate),c&&c()),O},k.prototype.markRender=function(c,o,r){var g;typeof r=="object"?lay.each(r||{},function(w,F){w=w.split("-"),w[0]!=o[0]&&w[0]!=0||w[1]!=o[1]&&w[1]!=0||w[2]!=o[2]||(g=F||o[2])}):typeof r=="string"&&(g=r||o[2]),g&&c.find("div").html('<span class="laydate-day-mark">'+g+"</span>")},k.prototype.mark=function(c,o){var r=this,g=r.config,w=function(F){r.markRender(c,o,F)};return g.calendar&&g.lang==="cn"&&w(r.markerOfChineseFestivals),typeof g.mark=="function"?g.mark({year:o[0],month:o[1],date:o[2]},w):typeof g.mark=="object"&&w(g.mark),r},k.prototype.holidaysRender=function(c,o,r){var g=["holidays","workdays"],w=function(F,O,z){F.find("div").html(["<span",' class="laydate-day-holidays"',' type="'+O+'"',">",z,"</span>"].join(""))};layui.type(r)==="array"?lay.each(r,function(F,O){lay.each(O,function(z,ne){var te,re,D;ne=ne,te=c.attr("lay-ymd"),re=ne.split("-"),D=te.split("-"),lay.each(re,function(v,L){re[v]=parseInt(L,10)}),lay.each(D,function(v,L){D[v]=parseInt(L,10)}),re.join("-")===D.join("-")&&w(c,g[F],o[2])})}):typeof r=="string"&&g.indexOf(r)!==-1&&w(c,r,o[2])},k.prototype.holidays=function(c,o){var r=this,g=r.config,w=function(F){r.holidaysRender(c,o,F)};return typeof g.holidays=="function"?g.holidays({year:o[0],month:o[1],date:o[2]},w):layui.type(g.holidays)==="array"&&w(g.holidays),r},k.prototype.cellRender=function(c,o,r){var g=this.config;return typeof g.cellRender=="function"&&g.cellRender(o,function(w){typeof w=="string"?lay(c).html(w):typeof w=="object"&&lay(c).html("").append(lay(w)[0])},{originElem:c,type:r}),this},k.prototype.startOfYear=function(c){return c=new Date(c),c.setFullYear(c.getFullYear(),0,1),c.setHours(0,0,0,0),c},k.prototype.endOfYear=function(o){var o=new Date(o),r=o.getFullYear();return o.setFullYear(r+1,0,0),o.setHours(23,59,59,999),o},k.prototype.startOfMonth=function(c){return c=new Date(c),c.setDate(1),c.setHours(0,0,0,0),c},k.prototype.endOfMonth=function(o){var o=new Date(o),r=o.getMonth();return o.setFullYear(o.getFullYear(),r+1,0),o.setHours(23,59,59,999),o},k.prototype.addDays=function(c,o){return c=new Date(c),o&&c.setDate(c.getDate()+o),c},k.prototype.isDisabledYearOrMonth=function(c,o,r){for(var g=this,w=g.config,F=o==="year"?g.startOfYear(c):g.startOfMonth(c),o=o==="year"?g.endOfYear(c):g.endOfMonth(c),O=Math.floor((o.getTime()-F.getTime())/864e5)+1,z=0,ne=0;ne<O;ne++){var te=g.addDays(F,ne);w.disabledDate.call(w,te,r)&&z++}return z===O},k.prototype.isDisabledDate=function(c,o){o=o||{};var r=this.config,g=!r.range||o.rangeType===0?"start":"end";return!!r.disabledDate&&r.type!=="time"&&(o.disabledType==="date"||o.disabledType==="datetime")&&((c=new Date(c)).setHours(0,0,0,0),o.type==="year"||o.type==="month"?this.isDisabledYearOrMonth(c,o.type,g):r.disabledDate.call(r,c,g))},k.prototype.isDisabledTime=function(c,o){o=o||{};var r,g=this.config,w=!g.range||o.rangeType===0?"start":"end";return!!g.disabledTime&&!(g.type!=="time"&&g.type!=="datetime"||o.disabledType!=="time"&&o.disabledType!=="datetime")&&(r=function(F,O,z){return function(){return(typeof O=="function"&&O.apply(g,z)||[]).indexOf(F)!==-1}},c=this.systemDate(new Date(c)),w=g.disabledTime.call(g,this.newDate(c),w)||{},o.disabledType==="datetime"?r(c.hours,w.hours)()||r(c.minutes,w.minutes,[c.hours])()||r(c.seconds,w.seconds,[c.hours,c.minutes])():[r(c.hours,w.hours),r(c.minutes,w.minutes,[c.hours]),r(c.seconds,w.seconds,[c.hours,c.minutes])][o.time.length-1]())},k.prototype.isDisabledDateTime=function(c,o){return this.config,this.isDisabledDate(c,o=o||{})||this.isDisabledTime(c,o)},k.prototype.limit=function(c){c=c||{};var o=this,r=o.config,g={},w=c.index>(c.time?0:41)?o.endDate:r.dateTime;return lay.each({now:lay.extend({},w,c.date||{}),min:r.min,max:r.max},function(F,O){var z;g[F]=o.newDate(lay.extend({year:O.year,month:c.type==="year"?0:O.month,date:c.type==="year"||c.type==="month"?1:O.date},(z={},lay.each(c.time,function(ne,te){z[te]=O[te]}),z))).getTime()}),w=g.now<g.min||g.max<g.now||o.isDisabledDateTime(g.now,c),c.elem&&c.elem[w?"addClass":"removeClass"](T),w},k.prototype.thisDateTime=function(c){var o=this.config;return c?this.endDate:o.dateTime},k.prototype.calendar=function(c,o,r){o=o?1:0;var g,w,F,O=this,z=O.config,ne=c||O.thisDateTime(o),te=new Date,re=O.lang(),D=z.type!=="date"&&z.type!=="datetime",v=lay(O.table[o]).find("td"),L=lay(O.elemHeader[o][2]).find("span");return ne.year<_[0]&&(ne.year=_[0],O.hint(re.invalidDate)),ne.year>_[1]&&(ne.year=_[1],O.hint(re.invalidDate)),O.firstDate||(O.firstDate=lay.extend({},ne)),te.setFullYear(ne.year,ne.month,1),g=(te.getDay()+(7-z.weekStart))%7,w=d.getEndDate(ne.month||12,ne.year),F=d.getEndDate(ne.month+1,ne.year),lay.each(v,function(j,J){var $,oe=[ne.year,ne.month];(J=lay(J)).removeAttr("class"),j<g?($=w-g+j,J.addClass("laydate-day-prev"),oe=O.getAsYM(ne.year,ne.month,"sub")):g<=j&&j<F+g?($=j-g,O.rangeLinked||$+1===ne.date&&J.addClass(I)):($=j-F-g,J.addClass("laydate-day-next"),oe=O.getAsYM(ne.year,ne.month)),oe[1]++,oe[2]=$+1,J.attr("lay-ymd",oe.join("-")).html("<div>"+oe[2]+"</div>"),O.mark(J,oe).holidays(J,oe).limit({elem:J,date:{year:oe[0],month:oe[1]-1,date:oe[2]},index:j,rangeType:o,disabledType:"date"}),O.cellRender(J,{year:oe[0],month:oe[1],date:oe[2]},"date")}),lay(L[0]).attr("lay-ym",ne.year+"-"+(ne.month+1)),lay(L[1]).attr("lay-ym",ne.year+"-"+(ne.month+1)),O.panelYM||(O.panelYM={}),O.panelYM[o]={year:ne.year,month:ne.month},z.lang==="cn"?(lay(L[0]).attr("lay-type","year").html(ne.year+" 年"),lay(L[1]).attr("lay-type","month").html(ne.month+1+" 月")):(lay(L[0]).attr("lay-type","month").html(re.month[ne.month]),lay(L[1]).attr("lay-type","year").html(ne.year)),D&&(z.range?!c&&r==="init"||(O.listYM=[[(O.startDate||z.dateTime).year,(O.startDate||z.dateTime).month+1],[O.endDate.year,O.endDate.month+1]],O.list(z.type,0).list(z.type,1),z.type==="time"?O.setBtnStatus("时间",lay.extend({},O.systemDate(),O.startTime),lay.extend({},O.systemDate(),O.endTime)):O.setBtnStatus(!0)):(O.listYM=[[ne.year,ne.month+1]],O.list(z.type,0))),z.range&&r==="init"&&(O.rangeLinked?(te=O.getAsYM(ne.year,ne.month,o?"sub":null),O.calendar(lay.extend({},ne,{year:te[0],month:te[1]}),1-o)):O.calendar(null,1-o)),z.range||(v=["hours","minutes","seconds"],O.limit({elem:lay(O.footer).find(".laydate-btns-now"),date:O.systemDate(/^(datetime|time)$/.test(z.type)?new Date:null),index:0,time:v,disabledType:"datetime"}),O.limit({elem:lay(O.footer).find(f),index:0,time:v,disabledType:"datetime"})),O.setBtnStatus(),lay(O.shortcut).find("li."+I).removeClass(I),z.range&&!D&&r!=="init"&&O.stampRange(),O},k.prototype.list=function(c,o){var r,g,w,F,O,z,ne,te=this,re=te.config,D=te.rangeLinked?re.dateTime:[re.dateTime,te.endDate][o],v=te.lang(),L=re.range&&re.type!=="date"&&re.type!=="datetime",j=lay.elem("ul",{class:C+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[c]}),J=te.elemHeader[o],$=lay(J[2]).find("span"),oe=te.elemCont[o||0],m=lay(oe).find("."+C)[0],h=re.lang==="cn",E=h?"年":"",W=te.listYM[o]||{},G=["hours","minutes","seconds"],B=["startTime","endTime"][o];return W[0]<1&&(W[0]=1),c==="year"?(w=r=W[0]-7,r<1&&(w=r=1),lay.each(new Array(15),function(U){var q=lay.elem("li",{"lay-ym":r}),ae={year:r,month:0,date:1};r==W[0]&&lay(q).addClass(I),q.innerHTML=r+E,j.appendChild(q),te.limit({elem:lay(q),date:ae,index:o,type:c,rangeType:o,disabledType:"date"}),te.cellRender(q,{year:r,month:1,date:1},"year"),r++}),lay($[h?0:1]).attr("lay-ym",r-8+"-"+W[1]).html(w+E+" - "+(r-1)+E)):c==="month"?(lay.each(new Array(12),function(U){var q=lay.elem("li",{"lay-ym":U}),ae={year:W[0],month:U,date:1};U+1==W[1]&&lay(q).addClass(I),q.innerHTML=v.month[U]+(h?"月":""),j.appendChild(q),te.limit({elem:lay(q),date:ae,index:o,type:c,rangeType:o,disabledType:"date"}),te.cellRender(q,{year:W[0],month:U+1,date:1},"month")}),lay($[h?0:1]).attr("lay-ym",W[0]+"-"+W[1]).html(W[0]+E)):c==="time"&&(g=function(){lay(j).find("ol").each(function(U,q){lay(q).find("li").each(function(ae,le){te.limit({elem:lay(le),date:[{hours:ae},{hours:te[B].hours,minutes:ae},{hours:te[B].hours,minutes:te[B].minutes,seconds:ae}][U],index:o,rangeType:o,disabledType:"time",time:[["hours"],["hours","minutes"],["hours","minutes","seconds"]][U]})})}),re.range||te.limit({elem:lay(te.footer).find(f),date:te[B],index:0,time:["hours","minutes","seconds"],disabledType:"datetime"})},re.range?te[B]||(te[B]=B==="startTime"?D:te.endDate):te[B]=D,lay.each([24,60,60],function(U,q){var ae=lay.elem("li"),le=["<p>"+v.time[U]+"</p><ol>"];lay.each(new Array(q),function(de){le.push("<li"+(te[B][G[U]]===de?' class="'+I+'"':"")+">"+lay.digit(de,2)+"</li>")}),ae.innerHTML=le.join("")+"</ol>",j.appendChild(ae)}),g(),w=re.format.indexOf("H")!==-1,$=re.format.indexOf("m")!==-1,ne=re.format.indexOf("s")!==-1,F=j.children,O=0,lay.each([w,$,ne],function(U,q){q||(F[U].className+=" layui-hide",O++)}),j.className+=" laydate-time-list-hide-"+O),m&&oe.removeChild(m),oe.appendChild(j),c==="year"||c==="month"?(lay(te.elemMain[o]).addClass("laydate-ym-show"),lay(j).find("li").on("click",function(){var U,q,ae=0|lay(this).attr("lay-ym");lay(this).hasClass(T)||(te.rangeLinked?lay.extend(D,{year:c==="year"?ae:W[0],month:c==="year"?W[1]-1:ae}):D[c]=ae,U=["year","month"].indexOf(re.type)!==-1,q=c==="year"&&["date","datetime"].indexOf(re.type)!==-1,U||q?(lay(j).find("."+I).removeClass(I),lay(this).addClass(I),(re.type==="month"&&c==="year"||q)&&(te.listYM[o][0]=ae,L&&((o?te.endDate:D).year=ae),te.list("month",o))):(te.checkDate("limit").calendar(D,o,"init"),te.closeList()),re.range||te.limit({type:c,elem:lay(te.footer).find(f),date:D,disabledType:"datetime"}),te.setBtnStatus(),!re.range&&re.autoConfirm&&(re.type==="month"&&c==="month"||re.type==="year"&&c==="year")&&te.setValue(te.parse()).done().remove(),te.autoCalendarModel.auto&&!te.rangeLinked?te.choose(lay(oe).find("td.layui-this"),o):te.endState&&te.done(null,"change"),lay(te.footer).find("."+P).removeClass(T))})):($=lay.elem("span",{class:S}),z=function(){lay(j).find("ol").each(function(U){var q=this,ae=lay(q).find("li");q.scrollTop=30*(te[B][G[U]]-2),q.scrollTop<=0&&ae.each(function(le,de){if(!lay(this).hasClass(T))return q.scrollTop=30*(le-2),!0})})},ne=lay(J[2]).find("."+S),z(),$.innerHTML=re.range?[v.startTime,v.endTime][o]:v.timeTips,lay(te.elemMain[o]).addClass("laydate-time-show"),ne[0]&&ne.remove(),J[2].appendChild($),(m=lay(j).find("ol")).each(function(U){var q=this;lay(q).find("li").on("click",function(){var ae=0|this.innerHTML;lay(this).hasClass(T)||(re.range?te[B][G[U]]=ae:D[G[U]]=ae,lay(q).find("."+I).removeClass(I),lay(this).addClass(I),g(),z(),!te.endDate&&re.type!=="time"&&re.type!=="datetime"||te.done(null,"change"),te.setBtnStatus())})}),layui.device().mobile&&m.css({overflowY:"auto",touchAction:"pan-y"})),te},k.prototype.listYM=[],k.prototype.closeList=function(){var c=this;c.config,lay.each(c.elemCont,function(o,r){lay(this).find("."+C).remove(),lay(c.elemMain[o]).removeClass("laydate-ym-show laydate-time-show")}),lay(c.elem).find("."+S).remove()},k.prototype.setBtnStatus=function(c,o,r){var g=this,w=g.config,F=g.lang(),O=lay(g.footer).find(f),z=w.type==="datetime"||w.type==="time"?["hours","minutes","seconds"]:void 0;w.range&&(o=o||(g.rangeLinked?g.startDate:w.dateTime),r=r||g.endDate,w=!g.endState||g.newDate(o).getTime()>g.newDate(r).getTime(),g.limit({date:o,disabledType:"datetime",time:z,rangeType:0})||g.limit({date:r,disabledType:"datetime",time:z,rangeType:1})?O.addClass(T):O[w?"addClass":"removeClass"](T),c)&&w&&g.hint(typeof c=="string"?F.timeout.replace(/\u65e5\u671f/g,c):F.timeout)},k.prototype.parse=function(c,w){var r=this,g=r.config,F=r.rangeLinked?r.startDate:g.dateTime,w=w||(c=="end"?lay.extend({},r.endDate,r.endTime):g.range?lay.extend({},F||g.dateTime,r.startTime):g.dateTime),F=d.parse(w,r.format,1);return g.range&&c===void 0?F+" "+r.rangeStr+" "+r.parse("end"):F},k.prototype.newDate=function(c){return c=c||{},new Date(c.year||1,c.month||0,c.date||1,c.hours||0,c.minutes||0,c.seconds||0)},k.prototype.getDateTime=function(c){return this.newDate(c).getTime()},k.prototype.formatToDisplay=function(c,o){var r=this,g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(c,"value",lay.extend({},g,{get:function(){return this.getAttribute("lay-date")},set:function(w){g.set.call(this,o.call(r,w)),this.setAttribute("lay-date",w)}}))},k.prototype.setValue=function(c){var o,r=this,g=r.config,w=g.elem[0];return g.position!=="static"&&(c=c||"",r.isInput(w)?lay(w).val(c):(o=r.rangeElem)?(layui.type(c)!=="array"&&(c=c.split(" "+r.rangeStr+" ")),o[0].val(c[0]||""),o[1].val(c[1]||"")):(lay(w).find("*").length===0&&(o=typeof g.formatToDisplay=="function"?g.formatToDisplay(c):c,lay(w).html(o)),lay(w).attr("lay-date",c))),r},k.prototype.preview=function(){var c,o=this,r=o.config;r.isPreview&&(c=lay(o.elem).find("."+n),r=!r.range||(o.rangeLinked?o.endState:o.endDate)?o.parse():"",c.html(r),c.html())&&(c.css({color:"#16b777"}),setTimeout(function(){c.css({color:"#777"})},300))},k.prototype.renderAdditional=function(){this.config.fullPanel&&this.list("time",0)},k.prototype.stampRange=function(){var c,o=this,r=o.config,g=o.rangeLinked?o.startDate:r.dateTime,w=lay(o.elem).find("td");r.range&&!o.endState&&lay(o.footer).find(f).addClass(T),g=g&&o.newDate({year:g.year,month:g.month,date:g.date}).getTime(),c=o.endState&&o.endDate&&o.newDate({year:o.endDate.year,month:o.endDate.month,date:o.endDate.date}).getTime(),lay.each(w,function(F,O){var z=lay(O).attr("lay-ymd").split("-"),z=o.newDate({year:z[0],month:z[1]-1,date:z[2]}).getTime();r.rangeLinked&&!o.startDate&&z===o.newDate(o.systemDate()).getTime()&&lay(O).addClass(lay(O).hasClass(u)||lay(O).hasClass(s)?"":"laydate-day-now"),lay(O).removeClass(a+" "+I),z!==g&&z!==c||(o.rangeLinked||!o.rangeLinked&&(F<42?z===g:z===c))&&lay(O).addClass(lay(O).hasClass(u)||lay(O).hasClass(s)?a:I),g<z&&z<c&&lay(O).addClass(a)})},k.prototype.done=function(c,o){var r=this,g=r.config,w=lay.extend({},lay.extend(r.rangeLinked?r.startDate:g.dateTime,r.startTime)),F=lay.extend({},lay.extend(r.endDate,r.endTime));return lay.each([w,F],function(O,z){"month"in z&&lay.extend(z,{month:z.month+1})}),r.preview(),c=c||[r.parse(),w,F],o==="change"&&r.renderAdditional(),typeof g[o||"done"]=="function"&&g[o||"done"].apply(g,c),r},k.prototype.checkPanelDate=function(c,o){var r,g=this.config;if(g.type==="date"||g.type==="datetime")return g=o===0,c=c.month+1,r=this.panelYM[o].month+1,g=this.endState&&(g&&r<c||!g&&c<r)?1-o:o,{needFullRender:c!==r,index:g}},k.prototype.choose=function(c,o){var r,g,w,F,O,z,ne;c.hasClass(T)||(g=(r=this).config,w=o,r.rangeLinked&&(r.endState||!r.startDate?(o=0,r.endState=!1):(o=1,r.endState=!0)),F=r.thisDateTime(o),lay(r.elem).find("td"),c={year:0|(c=c.attr("lay-ymd").split("-"))[0],month:(0|c[1])-1,date:0|c[2]},lay.extend(F,c),g.range?(lay.each(["startTime","endTime"],function(te,re){r[re]=r[re]||{hours:te?23:0,minutes:te?59:0,seconds:te?59:0},o===te&&(r.getDateTime(lay.extend({},F,r[re]))<r.getDateTime(g.min)?(r[re]={hours:g.min.hours,minutes:g.min.minutes,seconds:g.min.seconds},lay.extend(F,r[re])):r.getDateTime(lay.extend({},F,r[re]))>r.getDateTime(g.max)&&(r[re]={hours:g.max.hours,minutes:g.max.minutes,seconds:g.max.seconds},lay.extend(F,r[re])))}),o||(r.startDate=lay.extend({},F)),r.endState&&!r.limit({date:r.rangeLinked?r.startDate:r.thisDateTime(1-o),disabledType:"date"})&&(((O=r.endState&&r.autoCalendarModel.auto?r.autoCalendarModel():O)||r.rangeLinked&&r.endState)&&r.newDate(r.startDate)>r.newDate(r.endDate)&&(r.startDate.year===r.endDate.year&&r.startDate.month===r.endDate.month&&r.startDate.date===r.endDate.date&&(z=r.startTime,r.startTime=r.endTime,r.endTime=z),z=r.startDate,r.startDate=lay.extend({},r.endDate,r.startTime),g.dateTime=lay.extend({},r.startDate),r.endDate=lay.extend({},z,r.endTime)),O)&&(g.dateTime=lay.extend({},r.startDate)),r.rangeLinked?(c=r.checkPanelDate(F,w),z=lay.extend({},F),ne=O||c&&c.needFullRender?"init":null,c=c?c.index:w,r.calendar(z,c,ne)):r.calendar(null,o,O?"init":null),r.endState&&r.done(null,"change")):g.position==="static"?r.calendar().done().done(null,"change"):g.type==="date"?g.autoConfirm?r.setValue(r.parse()).done().remove():r.calendar().done(null,"change"):g.type==="datetime"&&r.calendar().done(null,"change"))},k.prototype.tool=function(c,o){var r=this,g=r.config,w=r.lang(),F=g.dateTime,O=g.position==="static",z={datetime:function(){lay(c).hasClass(T)||(r.list("time",0),g.range&&r.list("time",1),lay(c).attr("lay-type","date").html(r.lang().dateTips))},date:function(){r.closeList(),lay(c).attr("lay-type","datetime").html(r.lang().timeTips)},clear:function(){O&&(lay.extend(F,r.firstDate),r.calendar()),g.range&&(delete g.dateTime,delete r.endDate,delete r.startTime,delete r.endTime),r.setValue(""),r.done(null,"onClear").done(["",{},{}]).remove()},now:function(){var ne=new Date;if(lay(c).hasClass(T))return r.hint(w.tools.now+", "+w.invalidDate);lay.extend(F,r.systemDate(),{hours:ne.getHours(),minutes:ne.getMinutes(),seconds:ne.getSeconds()}),r.setValue(r.parse()),O&&r.calendar(),r.done(null,"onNow").done().remove()},confirm:function(){if(g.range){if(lay(c).hasClass(T))return(g.type==="time"?r.startTime&&r.endTime&&r.newDate(r.startTime)>r.newDate(r.endTime):r.startDate&&r.endDate&&r.newDate(lay.extend({},r.startDate,r.startTime||{}))>r.newDate(lay.extend({},r.endDate,r.endTime||{})))?r.hint(g.type==="time"?w.timeout.replace(/\u65e5\u671f/g,"时间"):w.timeout):r.hint(w.invalidDate)}else if(lay(c).hasClass(T))return r.hint(w.invalidDate);r.setValue(r.parse()),r.done(null,"onConfirm").done().remove()}};z[o]&&z[o]()},k.prototype.change=function(c){var o=this,r=o.config,g=o.thisDateTime(c),w=r.range&&(r.type==="year"||r.type==="month"),F=o.elemCont[c||0],O=o.listYM[c],z=function(ne){var te=lay(F).find(".laydate-year-list")[0],re=lay(F).find(".laydate-month-list")[0];return te&&(O[0]=ne?O[0]-15:O[0]+15,o.list("year",c)),re&&(ne?O[0]--:O[0]++,o.list("month",c)),(te||re)&&(lay.extend(g,{year:O[0]}),w&&(g.year=O[0]),r.range||o.done(null,"change"),r.range||o.limit({elem:lay(o.footer).find(f),date:{year:O[0],month:te?0:O[1]-1},disabledType:"datetime"})),o.setBtnStatus(),te||re};return{prevYear:function(){z("sub")||(o.rangeLinked?(r.dateTime.year--,o.checkDate("limit").calendar(null,null,"init")):(g.year--,o.checkDate("limit").calendar(null,c),o.autoCalendarModel.auto?o.choose(lay(F).find("td.layui-this"),c):o.done(null,"change")))},prevMonth:function(){var ne,te;o.rangeLinked?(te=o.panelYM[0],te=o.getAsYM(te.year,te.month,"sub"),ne=lay.extend({},r.dateTime,o.panelYM[0],{year:te[0],month:te[1]}),o.checkDate("limit").calendar(ne,null,"init")):(te=o.getAsYM(g.year,g.month,"sub"),lay.extend(g,{year:te[0],month:te[1]}),o.checkDate("limit").calendar(null,null,"init"),o.autoCalendarModel.auto?o.choose(lay(F).find("td.layui-this"),c):o.done(null,"change"))},nextMonth:function(){var ne,te;o.rangeLinked?(te=o.panelYM[0],te=o.getAsYM(te.year,te.month),ne=lay.extend({},r.dateTime,o.panelYM[0],{year:te[0],month:te[1]}),o.checkDate("limit").calendar(ne,null,"init")):(te=o.getAsYM(g.year,g.month),lay.extend(g,{year:te[0],month:te[1]}),o.checkDate("limit").calendar(null,null,"init"),o.autoCalendarModel.auto?o.choose(lay(F).find("td.layui-this"),c):o.done(null,"change"))},nextYear:function(){z()||(o.rangeLinked?(r.dateTime.year++,o.checkDate("limit").calendar(null,0,"init")):(g.year++,o.checkDate("limit").calendar(null,c),o.autoCalendarModel.auto?o.choose(lay(F).find("td.layui-this"),c):o.done(null,"change")))}}},k.prototype.changeEvent=function(){var c=this;c.config,lay(c.elem).on("click",function(o){lay.stope(o)}).on("mousedown",function(o){lay.stope(o)}),lay.each(c.elemHeader,function(o,r){lay(r[0]).on("click",function(g){c.change(o).prevYear()}),lay(r[1]).on("click",function(g){c.change(o).prevMonth()}),lay(r[2]).find("span").on("click",function(g){var F=lay(this),w=F.attr("lay-ym"),F=F.attr("lay-type");w&&(w=w.split("-"),c.listYM[o]=[0|w[0],0|w[1]],c.list(F,o),lay(c.footer).find("."+P).addClass(T))}),lay(r[3]).on("click",function(g){c.change(o).nextMonth()}),lay(r[4]).on("click",function(g){c.change(o).nextYear()})}),lay.each(c.table,function(o,r){lay(r).find("td").on("click",function(){c.choose(lay(this),o)})}),lay(c.footer).find("span").on("click",function(){var o=lay(this).attr("lay-type");c.tool(this,o)})},k.prototype.isInput=function(c){return/input|textarea/.test(c.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(c.tagName)},k.prototype.events=function(){var c,o=this,r=o.config;r.elem[0]&&!r.elem[0].eventHandler&&(r.elem.on(r.trigger,c=function(){d.thisId!==r.id&&o.render()}),r.elem[0].eventHandler=!0,r.eventElem.on(r.trigger,c),o.unbind=function(){o.remove(),r.elem.off(r.trigger,c),r.elem.removeAttr("lay-key"),r.elem.removeAttr(y),r.elem[0].eventHandler=!1,r.eventElem.off(r.trigger,c),r.eventElem.removeAttr("lay-key"),delete A.that[r.id]})},A.that={},A.getThis=function(c){var o=A.that[c];return!o&&Q&&layui.hint().error(c?M+" instance with ID '"+c+"' not found":"ID argument required"),o},K.run=function(c){c(x).on("mousedown",function(o){var r,g;d.thisId&&(r=A.getThis(d.thisId))&&(g=r.config,o.target===g.elem[0]||o.target===g.eventElem[0]||o.target===c(g.closeStop)[0]||g.elem[0]&&g.elem[0].contains(o.target)||r.remove())}).on("keydown",function(o){var r;d.thisId&&(r=A.getThis(d.thisId))&&r.config.position!=="static"&&o.keyCode===13&&c("#"+r.elemID)[0]&&r.elemID===k.thisElemDate&&(o.preventDefault(),c(r.footer).find(f)[0].click())}),c(he).on("resize",function(){if(d.thisId){var o=A.getThis(d.thisId);if(o)return!(!o.elem||!c(".layui-laydate")[0])&&void o.position()}})},d.render=function(c){return c=new k(c),A.call(c)},d.reload=function(c,o){if(c=A.getThis(c),c)return c.reload(o)},d.getInst=function(c){if(c=A.getThis(c),c)return c.inst},d.hint=function(c,o){if(c=A.getThis(c),c)return c.hint(o)},d.unbind=function(c){if(c=A.getThis(c),c)return c.unbind()},d.close=function(c){if(c=A.getThis(c||d.thisId),c)return c.remove()},d.parse=function(c,o,r){return c=c||{},o=((o=typeof o=="string"?A.formatArr(o):o)||[]).concat(),lay.each(o,function(g,w){/yyyy|y/.test(w)?o[g]=lay.digit(c.year,w.length):/MM|M/.test(w)?o[g]=lay.digit(c.month+(r||0),w.length):/dd|d/.test(w)?o[g]=lay.digit(c.date,w.length):/HH|H/.test(w)?o[g]=lay.digit(c.hours,w.length):/mm|m/.test(w)?o[g]=lay.digit(c.minutes,w.length):/ss|s/.test(w)&&(o[g]=lay.digit(c.seconds,w.length))}),o.join("")},d.getEndDate=function(c,o){var r=new Date;return r.setFullYear(o||r.getFullYear(),c||r.getMonth()+1,1),new Date(r.getTime()-864e5).getDate()},Q?(d.ready(),layui.define("lay",function(c){d.path=layui.cache.dir,K.run(lay),c(M,d)})):typeof define=="function"&&define.amd?define(function(){return K.run(lay),d}):(d.ready(),K.run(he.lay),he.laydate=d)})(window,window.document),(function(he,x){"use strict";typeof module=="object"&&typeof module.exports=="object"?module.exports=he.document?x(he):function(Q){if(Q.document)return x(Q);throw new Error("jQuery requires a window with a document")}:x(he)})(typeof window!="undefined"?window:this,function(he,x){"use strict";var Q=[],K=Object.getPrototypeOf,Y=Q.slice,M=Q.flat?function(e){return Q.flat.call(e)}:function(e){return Q.concat.apply([],e)},y=Q.push,d=Q.indexOf,A={},I=A.toString,T=A.hasOwnProperty,_=T.toString,ee=_.call(Object),C={},a=function(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"},p=function(t){return t!=null&&t===t.window},u=he.document,s={type:!0,src:!0,nonce:!0,noModule:!0};function f(e,t,i){var l,b,N=(i=i||u).createElement("script");if(N.text=e,t)for(l in s)(b=t[l]||t.getAttribute&&t.getAttribute(l))&&N.setAttribute(l,b);i.head.appendChild(N).parentNode.removeChild(N)}function S(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?A[I.call(e)]||"object":typeof e}var $e="3.7.1",P=/HTML$/i,n=function(e,t){return new n.fn.init(e,t)};function R(e){var t=!!e&&"length"in e&&e.length,i=S(e);return!a(e)&&!p(e)&&(i==="array"||t===0||typeof t=="number"&&0<t&&t-1 in e)}function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}n.fn=n.prototype={jquery:$e,constructor:n,length:0,toArray:function(){return Y.call(this)},get:function(e){return e==null?Y.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){return e=n.merge(this.constructor(),e),e.prevObject=this,e},each:function(e){return n.each(this,e)},map:function(e){return this.pushStack(n.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(n.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(n.grep(this,function(e,t){return t%2}))},eq:function(i){var t=this.length,i=+i+(i<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:y,sort:Q.sort,splice:Q.splice},n.extend=n.fn.extend=function(){var e,t,i,l,b,N=arguments[0]||{},H=1,V=arguments.length,Z=!1;for(typeof N=="boolean"&&(Z=N,N=arguments[H]||{},H++),typeof N=="object"||a(N)||(N={}),H===V&&(N=this,H--);H<V;H++)if((e=arguments[H])!=null)for(t in e)i=e[t],t!=="__proto__"&&N!==i&&(Z&&i&&(n.isPlainObject(i)||(l=Array.isArray(i)))?(b=N[t],b=l&&!Array.isArray(b)?[]:l||n.isPlainObject(b)?b:{},l=!1,N[t]=n.extend(Z,b,i)):i!==void 0&&(N[t]=i));return N},n.extend({expando:"jQuery"+($e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||I.call(e)!=="[object Object]"||(e=K(e))&&(typeof(e=T.call(e,"constructor")&&e.constructor)!="function"||_.call(e)!==ee))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,i){f(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,l=0;if(R(e))for(i=e.length;l<i&&t.call(e[l],l,e[l])!==!1;l++);else for(l in e)if(t.call(e[l],l,e[l])===!1)break;return e},text:function(e){var t,i="",l=0,b=e.nodeType;if(!b)for(;t=e[l++];)i+=n.text(t);return b===1||b===11?e.textContent:b===9?e.documentElement.textContent:b===3||b===4?e.nodeValue:i},makeArray:function(e,t){return t=t||[],e!=null&&(R(Object(e))?n.merge(t,typeof e=="string"?[e]:e):y.call(t,e)),t},inArray:function(e,t,i){return t==null?-1:d.call(t,e,i)},isXMLDoc:function(i){var t=i&&i.namespaceURI,i=i&&(i.ownerDocument||i).documentElement;return!P.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,l=0,b=e.length;l<i;l++)e[b++]=t[l];return e.length=b,e},grep:function(e,t,i){for(var l=[],b=0,N=e.length,H=!i;b<N;b++)!t(e[b],b)!=H&&l.push(e[b]);return l},map:function(e,t,i){var l,b,N=0,H=[];if(R(e))for(l=e.length;N<l;N++)(b=t(e[N],N,i))!=null&&H.push(b);else for(N in e)(b=t(e[N],N,i))!=null&&H.push(b);return M(H)},guid:1,support:C}),typeof Symbol=="function"&&(n.fn[Symbol.iterator]=Q[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){A["[object "+t+"]"]=t.toLowerCase()});var X=Q.pop,c=Q.sort,o=Q.splice,r="[\\x20\\t\\r\\n\\f]",g=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),w=(n.contains=function(e,t){return t=t&&t.parentNode,e===t||!(!t||t.nodeType!==1||!(e.contains?e.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function F(e,t){return t?e==="\0"?"":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}n.escapeSelector=function(e){return(e+"").replace(w,F)};var O,z,ne,te,re,D,v,L,j,J,$=u,oe=y,m=oe,h=n.expando,E=0,W=0,G=Be(),B=Be(),U=Be(),q=Be(),ae=function(e,t){return e===t&&(re=!0),0},le="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$e="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",de="\\["+r+"*("+$e+")(?:"+r+"*([*^$|!~]?=)"+r+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+$e+"))|)"+r+"*\\]",ce=":("+$e+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+de+")*)|.*)\\)|)",ye=new RegExp(r+"+","g"),we=new RegExp("^"+r+"*,"+r+"*"),ve=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),pe=new RegExp(r+"|>"),ue=new RegExp(ce),fe=new RegExp("^"+$e+"$"),Ce={ID:new RegExp("^#("+$e+")"),CLASS:new RegExp("^\\.("+$e+")"),TAG:new RegExp("^("+$e+"|[*])"),ATTR:new RegExp("^"+de),PSEUDO:new RegExp("^"+ce),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+le+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},De=/^(?:input|select|textarea|button)$/i,Se=/^h\d$/i,ke=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Le=/[+~]/,Ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),Re=function(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))},qe=function(){ot()},We=jt(function(e){return e.disabled===!0&&k(e,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(Q=Y.call($.childNodes),$.childNodes),Q[$.childNodes.length].nodeType}catch(e){m={apply:function(t,i){oe.apply(t,Y.call(i))},call:function(t){oe.apply(t,Y.call(arguments,1))}}}function je(e,t,i,l){var b,N,H,V,Z,se,ie=t&&t.ownerDocument,me=t?t.nodeType:9;if(i=i||[],typeof e!="string"||!e||me!==1&&me!==9&&me!==11)return i;if(!l&&(ot(t),t=t||D,L)){if(me!==11&&(V=ke.exec(e)))if(b=V[1]){if(me===9){if(!(se=t.getElementById(b)))return i;if(se.id===b)return m.call(i,se),i}else if(ie&&(se=ie.getElementById(b))&&je.contains(t,se)&&se.id===b)return m.call(i,se),i}else{if(V[2])return m.apply(i,t.getElementsByTagName(e)),i;if((b=V[3])&&t.getElementsByClassName)return m.apply(i,t.getElementsByClassName(b)),i}if(!(q[e+" "]||j&&j.test(e))){if(se=e,ie=t,me===1&&(pe.test(e)||ve.test(e))){for((ie=Le.test(e)&&Vt(t.parentNode)||t)==t&&C.scope||((H=t.getAttribute("id"))?H=n.escapeSelector(H):t.setAttribute("id",H=h)),N=(Z=kt(e)).length;N--;)Z[N]=(H?"#"+H:":scope")+" "+_t(Z[N]);se=Z.join(",")}try{return m.apply(i,ie.querySelectorAll(se)),i}catch(xe){q(e,!0)}finally{H===h&&t.removeAttribute("id")}}}return xn(e.replace(g,"$1"),t,i,l)}function Be(){var e=[];function t(i,l){return e.push(i+" ")>z.cacheLength&&delete t[e.shift()],t[i+" "]=l}return t}function Fe(e){return e[h]=!0,e}function ft(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function gn(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&We(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function st(e){return Fe(function(t){return t=+t,Fe(function(i,l){for(var b,N=e([],i.length,t),H=N.length;H--;)i[b=N[H]]&&(i[b]=!(l[b]=i[b]))})})}function Vt(e){return e&&typeof e.getElementsByTagName!="undefined"&&e}function ot(t){var t=t?t.ownerDocument||t:$;return t!=D&&t.nodeType===9&&t.documentElement&&(v=(D=t).documentElement,L=!n.isXMLDoc(D),J=v.matches||v.webkitMatchesSelector||v.msMatchesSelector,v.msMatchesSelector&&$!=D&&(t=D.defaultView)&&t.top!==t&&t.addEventListener("unload",qe),C.getById=ft(function(i){return v.appendChild(i).id=n.expando,!D.getElementsByName||!D.getElementsByName(n.expando).length}),C.disconnectedMatch=ft(function(i){return J.call(i,"*")}),C.scope=ft(function(){return D.querySelectorAll(":scope")}),C.cssHas=ft(function(){try{D.querySelector(":has(*,:jqfake)")}catch(i){return 1}}),C.getById?(z.filter.ID=function(i){var l=i.replace(Ie,Re);return function(b){return b.getAttribute("id")===l}},z.find.ID=function(i,l){if(typeof l.getElementById!="undefined"&&L)return(i=l.getElementById(i))?[i]:[]}):(z.filter.ID=function(i){var l=i.replace(Ie,Re);return function(b){return b=typeof b.getAttributeNode!="undefined"&&b.getAttributeNode("id"),b&&b.value===l}},z.find.ID=function(i,l){if(typeof l.getElementById!="undefined"&&L){var b,N,H,V=l.getElementById(i);if(V){if((b=V.getAttributeNode("id"))&&b.value===i)return[V];for(H=l.getElementsByName(i),N=0;V=H[N++];)if((b=V.getAttributeNode("id"))&&b.value===i)return[V]}return[]}}),z.find.TAG=function(i,l){return typeof l.getElementsByTagName!="undefined"?l.getElementsByTagName(i):l.querySelectorAll(i)},z.find.CLASS=function(i,l){if(typeof l.getElementsByClassName!="undefined"&&L)return l.getElementsByClassName(i)},j=[],ft(function(i){var l;v.appendChild(i).innerHTML="<a id='"+h+"' href='' disabled='disabled'></a><select id='"+h+"-\r\\' disabled='disabled'><option selected=''></option></select>",i.querySelectorAll("[selected]").length||j.push("\\["+r+"*(?:value|"+le+")"),i.querySelectorAll("[id~="+h+"-]").length||j.push("~="),i.querySelectorAll("a#"+h+"+*").length||j.push(".#.+[+~]"),i.querySelectorAll(":checked").length||j.push(":checked"),(l=D.createElement("input")).setAttribute("type","hidden"),i.appendChild(l).setAttribute("name","D"),v.appendChild(i).disabled=!0,i.querySelectorAll(":disabled").length!==2&&j.push(":enabled",":disabled"),(l=D.createElement("input")).setAttribute("name",""),i.appendChild(l),i.querySelectorAll("[name='']").length||j.push("\\["+r+"*name"+r+"*="+r+`*(?:''|"")`)}),C.cssHas||j.push(":has"),j=j.length&&new RegExp(j.join("|")),ae=function(i,l){var b;return i===l?(re=!0,0):(b=!i.compareDocumentPosition-!l.compareDocumentPosition)||(1&(b=(i.ownerDocument||i)==(l.ownerDocument||l)?i.compareDocumentPosition(l):1)||!C.sortDetached&&l.compareDocumentPosition(i)===b?i===D||i.ownerDocument==$&&je.contains($,i)?-1:l===D||l.ownerDocument==$&&je.contains($,l)?1:te?d.call(te,i)-d.call(te,l):0:4&b?-1:1)}),D}for(O in je.matches=function(e,t){return je(e,null,null,t)},je.matchesSelector=function(e,t){if(ot(e),L&&!q[t+" "]&&(!j||!j.test(t)))try{var i=J.call(e,t);if(i||C.disconnectedMatch||e.document&&e.document.nodeType!==11)return i}catch(l){q(t,!0)}return 0<je(t,D,null,[e]).length},je.contains=function(e,t){return(e.ownerDocument||e)!=D&&ot(e),n.contains(e,t)},je.attr=function(e,t){(e.ownerDocument||e)!=D&&ot(e);var i=z.attrHandle[t.toLowerCase()],i=i&&T.call(z.attrHandle,t.toLowerCase())?i(e,t,!L):void 0;return i!==void 0?i:e.getAttribute(t)},je.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,i=[],l=0,b=0;if(re=!C.sortStable,te=!C.sortStable&&Y.call(e,0),c.call(e,ae),re){for(;t=e[b++];)t===e[b]&&(l=i.push(b));for(;l--;)o.call(e,i[l],1)}return te=null,e},n.fn.uniqueSort=function(){return this.pushStack(n.uniqueSort(Y.apply(this)))},(z=n.expr={cacheLength:50,createPseudo:Fe,match:Ce,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(Ie,Re),e[3]=(e[3]||e[4]||e[5]||"").replace(Ie,Re),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||je.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&je.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Ce.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&ue.test(i)&&(t=(t=kt(i,!0))&&i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ie,Re).toLowerCase();return e==="*"?function(){return!0}:function(i){return k(i,t)}},CLASS:function(e){var t=G[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&G(e,function(i){return t.test(typeof i.className=="string"&&i.className||typeof i.getAttribute!="undefined"&&i.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(l){return l=je.attr(l,e),l==null?t==="!=":!t||(l+="",t==="="?l===i:t==="!="?l!==i:t==="^="?i&&l.indexOf(i)===0:t==="*="?i&&-1<l.indexOf(i):t==="$="?i&&l.slice(-i.length)===i:t==="~="?-1<(" "+l.replace(ye," ")+" ").indexOf(i):t==="|="&&(l===i||l.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,l,b){var N=e.slice(0,3)!=="nth",H=e.slice(-4)!=="last",V=t==="of-type";return l===1&&b===0?function(Z){return!!Z.parentNode}:function(Z,se,ie){var me,xe,ge,be,Ee,Me=N!=H?"nextSibling":"previousSibling",Pe=Z.parentNode,_e=V&&Z.nodeName.toLowerCase(),Te=!ie&&!V,Oe=!1;if(Pe){if(N){for(;Me;){for(ge=Z;ge=ge[Me];)if(V?k(ge,_e):ge.nodeType===1)return!1;Ee=Me=e==="only"&&!Ee&&"nextSibling"}return!0}if(Ee=[H?Pe.firstChild:Pe.lastChild],H&&Te){for(Oe=(be=(me=(xe=Pe[h]||(Pe[h]={}))[e]||[])[0]===E&&me[1])&&me[2],ge=be&&Pe.childNodes[be];ge=++be&&ge&&ge[Me]||(Oe=be=0,Ee.pop());)if(ge.nodeType===1&&++Oe&&ge===Z){xe[e]=[E,be,Oe];break}}else if((Oe=Te?be=(me=(xe=Z[h]||(Z[h]={}))[e]||[])[0]===E&&me[1]:Oe)===!1)for(;(ge=++be&&ge&&ge[Me]||(Oe=be=0,Ee.pop()))&&((V?!k(ge,_e):ge.nodeType!==1)||!++Oe||(Te&&((xe=ge[h]||(ge[h]={}))[e]=[E,Oe]),ge!==Z)););return(Oe-=b)===l||Oe%l==0&&0<=Oe/l}}},PSEUDO:function(e,t){var i,l=z.pseudos[e]||z.setFilters[e.toLowerCase()]||je.error("unsupported pseudo: "+e);return l[h]?l(t):1<l.length?(i=[e,e,"",t],z.setFilters.hasOwnProperty(e.toLowerCase())?Fe(function(b,N){for(var H,V=l(b,t),Z=V.length;Z--;)b[H=d.call(b,V[Z])]=!(N[H]=V[Z])}):function(b){return l(b,0,i)}):l}},pseudos:{not:Fe(function(e){var t=[],i=[],l=Kt(e.replace(g,"$1"));return l[h]?Fe(function(b,N,H,V){for(var Z,se=l(b,null,V,[]),ie=b.length;ie--;)(Z=se[ie])&&(b[ie]=!(N[ie]=Z))}):function(b,N,H){return t[0]=b,l(t,null,H,i),t[0]=null,!i.pop()}}),has:Fe(function(e){return function(t){return 0<je(e,t).length}}),contains:Fe(function(e){return e=e.replace(Ie,Re),function(t){return-1<(t.textContent||n.text(t)).indexOf(e)}}),lang:Fe(function(e){return fe.test(e||"")||je.error("unsupported lang: "+e),e=e.replace(Ie,Re).toLowerCase(),function(t){var i;do if(i=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||i.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(e){var t=he.location&&he.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===v},focus:function(e){return e===(function(){try{return D.activeElement}catch(t){}})()&&D.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:gn(!1),disabled:gn(!0),checked:function(e){return k(e,"input")&&!!e.checked||k(e,"option")&&!!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!z.pseudos.empty(e)},header:function(e){return Se.test(e.nodeName)},input:function(e){return De.test(e.nodeName)},button:function(e){return k(e,"input")&&e.type==="button"||k(e,"button")},text:function(e){return k(e,"input")&&e.type==="text"&&((e=e.getAttribute("type"))==null||e.toLowerCase()==="text")},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,i){return[i<0?i+t:i]}),even:st(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:st(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:st(function(e,t,i){for(var l=i<0?i+t:t<i?t:i;0<=--l;)e.push(l);return e}),gt:st(function(e,t,i){for(var l=i<0?i+t:i;++l<t;)e.push(l);return e})}}).pseudos.nth=z.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})z.pseudos[O]=(function(e){return function(t){return k(t,"input")&&t.type===e}})(O);for(O in{submit:!0,reset:!0})z.pseudos[O]=(function(e){return function(t){return(k(t,"input")||k(t,"button"))&&t.type===e}})(O);function vn(){}function kt(e,t){var i,l,b,N,H,V,Z,se=B[e+" "];if(se)return t?0:se.slice(0);for(H=e,V=[],Z=z.preFilter;H;){for(N in i&&!(l=we.exec(H))||(l&&(H=H.slice(l[0].length)||H),V.push(b=[])),i=!1,(l=ve.exec(H))&&(i=l.shift(),b.push({value:i,type:l[0].replace(g," ")}),H=H.slice(i.length)),z.filter)!(l=Ce[N].exec(H))||Z[N]&&!(l=Z[N](l))||(i=l.shift(),b.push({value:i,type:N,matches:l}),H=H.slice(i.length));if(!i)break}return t?H.length:H?je.error(e):B(e,V).slice(0)}function _t(e){for(var t=0,i=e.length,l="";t<i;t++)l+=e[t].value;return l}function jt(e,t,i){var l=t.dir,b=t.next,N=b||l,H=i&&N==="parentNode",V=W++;return t.first?function(Z,se,ie){for(;Z=Z[l];)if(Z.nodeType===1||H)return e(Z,se,ie);return!1}:function(Z,se,ie){var me,xe,ge=[E,V];if(ie){for(;Z=Z[l];)if((Z.nodeType===1||H)&&e(Z,se,ie))return!0}else for(;Z=Z[l];)if(Z.nodeType===1||H)if(xe=Z[h]||(Z[h]={}),b&&k(Z,b))Z=Z[l]||Z;else{if((me=xe[N])&&me[0]===E&&me[1]===V)return ge[2]=me[2];if((xe[N]=ge)[2]=e(Z,se,ie))return!0}return!1}}function Ut(e){return 1<e.length?function(t,i,l){for(var b=e.length;b--;)if(!e[b](t,i,l))return!1;return!0}:e[0]}function Ot(e,t,i,l,b){for(var N,H=[],V=0,Z=e.length,se=t!=null;V<Z;V++)!(N=e[V])||i&&!i(N,l,b)||(H.push(N),se&&t.push(V));return H}function Gt(e,t,i,l,b,N){return l&&!l[h]&&(l=Gt(l)),b&&!b[h]&&(b=Gt(b,N)),Fe(function(H,V,Z,se){var ie,me,xe,ge,be=[],Ee=[],Me=V.length,Pe=H||(function(Te,Oe,Ae){for(var He=0,ze=Oe.length;He<ze;He++)je(Te,Oe[He],Ae);return Ae})(t||"*",Z.nodeType?[Z]:Z,[]),_e=!e||!H&&t?Pe:Ot(Pe,be,e,Z,se);if(i?i(_e,ge=b||(H?e:Me||l)?[]:V,Z,se):ge=_e,l)for(ie=Ot(ge,Ee),l(ie,[],Z,se),me=ie.length;me--;)(xe=ie[me])&&(ge[Ee[me]]=!(_e[Ee[me]]=xe));if(H){if(b||e){if(b){for(ie=[],me=ge.length;me--;)(xe=ge[me])&&ie.push(_e[me]=xe);b(null,ge=[],ie,se)}for(me=ge.length;me--;)(xe=ge[me])&&-1<(ie=b?d.call(H,xe):be[me])&&(H[ie]=!(V[ie]=xe))}}else ge=Ot(ge===V?ge.splice(Me,ge.length):ge),b?b(null,V,ge,se):m.apply(V,ge)})}function Kt(e,t){var i,l,b,N,H,V,Z=[],se=[],ie=U[e+" "];if(!ie){for(i=(t=t||kt(e)).length;i--;)((ie=(function me(xe){for(var ge,be,Ee,Me=xe.length,Pe=z.relative[xe[0].type],_e=Pe||z.relative[" "],Te=Pe?1:0,Oe=jt(function(ze){return ze===ge},_e,!0),Ae=jt(function(ze){return-1<d.call(ge,ze)},_e,!0),He=[function(ze,Ye,it){return ze=!Pe&&(it||Ye!=ne)||((ge=Ye).nodeType?Oe:Ae)(ze,Ye,it),ge=null,ze}];Te<Me;Te++)if(be=z.relative[xe[Te].type])He=[jt(Ut(He),be)];else{if((be=z.filter[xe[Te].type].apply(null,xe[Te].matches))[h]){for(Ee=++Te;Ee<Me&&!z.relative[xe[Ee].type];Ee++);return Gt(1<Te&&Ut(He),1<Te&&_t(xe.slice(0,Te-1).concat({value:xe[Te-2].type===" "?"*":""})).replace(g,"$1"),be,Te<Ee&&me(xe.slice(Te,Ee)),Ee<Me&&me(xe=xe.slice(Ee)),Ee<Me&&_t(xe))}He.push(be)}return Ut(He)})(t[i]))[h]?Z:se).push(ie);(ie=U(e,(l=se,N=0<(b=Z).length,H=0<l.length,V=function(me,xe,ge,be,Ee){var Me,Pe,_e,Te=0,Oe="0",Ae=me&&[],He=[],ze=ne,Ye=me||H&&z.find.TAG("*",Ee),it=E+=ze==null?1:Math.random()||.1,Ct=Ye.length;for(Ee&&(ne=xe==D||xe||Ee);Oe!==Ct&&(Me=Ye[Oe])!=null;Oe++){if(H&&Me){for(Pe=0,xe||Me.ownerDocument==D||(ot(Me),ge=!L);_e=l[Pe++];)if(_e(Me,xe||D,ge)){m.call(be,Me);break}Ee&&(E=it)}N&&((Me=!_e&&Me)&&Te--,me)&&Ae.push(Me)}if(Te+=Oe,N&&Oe!==Te){for(Pe=0;_e=b[Pe++];)_e(Ae,He,xe,ge);if(me){if(0<Te)for(;Oe--;)Ae[Oe]||He[Oe]||(He[Oe]=X.call(be));He=Ot(He)}m.apply(be,He),Ee&&!me&&0<He.length&&1<Te+b.length&&n.uniqueSort(be)}return Ee&&(E=it,ne=ze),Ae},N?Fe(V):V))).selector=e}return ie}function xn(e,t,i,l){var b,N,H,V,Z,se=typeof e=="function"&&e,ie=!l&&kt(e=se.selector||e);if(i=i||[],ie.length===1){if(2<(N=ie[0]=ie[0].slice(0)).length&&(H=N[0]).type==="ID"&&t.nodeType===9&&L&&z.relative[N[1].type]){if(!(t=(z.find.ID(H.matches[0].replace(Ie,Re),t)||[])[0]))return i;se&&(t=t.parentNode),e=e.slice(N.shift().value.length)}for(b=Ce.needsContext.test(e)?0:N.length;b--&&(H=N[b],!z.relative[V=H.type]);)if((Z=z.find[V])&&(l=Z(H.matches[0].replace(Ie,Re),Le.test(N[0].type)&&Vt(t.parentNode)||t))){if(N.splice(b,1),e=l.length&&_t(N))break;return m.apply(i,l),i}}return(se||Kt(e,ie))(l,t,!L,i,!t||Le.test(e)&&Vt(t.parentNode)||t),i}vn.prototype=z.filters=z.pseudos,z.setFilters=new vn,C.sortStable=h.split("").sort(ae).join("")===h,ot(),C.sortDetached=ft(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),n.find=je,n.expr[":"]=n.expr.pseudos,n.unique=n.uniqueSort,je.compile=Kt,je.select=xn,je.setDocument=ot,je.tokenize=kt,je.escape=n.escapeSelector,je.getText=n.text,je.isXML=n.isXMLDoc,je.selectors=n.expr,je.support=n.support,je.uniqueSort=n.uniqueSort;var pt=function(e,t,i){for(var l=[],b=i!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(b&&n(e).is(i))break;l.push(e)}return l},bn=function(e,t){for(var i=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&i.push(e);return i},Cn=n.expr.match.needsContext,wn=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Jt(e,t,i){return a(t)?n.grep(e,function(l,b){return!!t.call(l,b,l)!==i}):t.nodeType?n.grep(e,function(l){return l===t!==i}):typeof t!="string"?n.grep(e,function(l){return-1<d.call(t,l)!==i}):n.filter(t,e,i)}n.filter=function(e,t,i){var l=t[0];return i&&(e=":not("+e+")"),t.length===1&&l.nodeType===1?n.find.matchesSelector(l,e)?[l]:[]:n.find.matches(e,n.grep(t,function(b){return b.nodeType===1}))},n.fn.extend({find:function(e){var t,i,l=this.length,b=this;if(typeof e!="string")return this.pushStack(n(e).filter(function(){for(t=0;t<l;t++)if(n.contains(b[t],this))return!0}));for(i=this.pushStack([]),t=0;t<l;t++)n.find(e,b[t],i);return 1<l?n.uniqueSort(i):i},filter:function(e){return this.pushStack(Jt(this,e||[],!1))},not:function(e){return this.pushStack(Jt(this,e||[],!0))},is:function(e){return!!Jt(this,typeof e=="string"&&Cn.test(e)?n(e):e||[],!1).length}});var kn,li=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,si=((n.fn.init=function(e,t,i){if(e){if(i=i||kn,typeof e!="string")return e.nodeType?(this[0]=e,this.length=1,this):a(e)?i.ready!==void 0?i.ready(e):e(n):n.makeArray(e,this);if(!(l=e[0]==="<"&&e[e.length-1]===">"&&3<=e.length?[null,e,null]:li.exec(e))||!l[1]&&t)return(!t||t.jquery?t||i:this.constructor(t)).find(e);if(l[1]){if(t=t instanceof n?t[0]:t,n.merge(this,n.parseHTML(l[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),wn.test(l[1])&&n.isPlainObject(t))for(var l in t)a(this[l])?this[l](t[l]):this.attr(l,t[l])}else(i=u.getElementById(l[2]))&&(this[0]=i,this.length=1)}return this}).prototype=n.fn,kn=n(u),/^(?:parents|prev(?:Until|All))/),ci={children:!0,contents:!0,next:!0,prev:!0};function Tn(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}n.fn.extend({has:function(e){var t=n(e,this),i=t.length;return this.filter(function(){for(var l=0;l<i;l++)if(n.contains(this,t[l]))return!0})},closest:function(e,t){var i,l=0,b=this.length,N=[],H=typeof e!="string"&&n(e);if(!Cn.test(e)){for(;l<b;l++)for(i=this[l];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(H?-1<H.index(i):i.nodeType===1&&n.find.matchesSelector(i,e))){N.push(i);break}}return this.pushStack(1<N.length?n.uniqueSort(N):N)},index:function(e){return e?typeof e=="string"?d.call(n(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),n.each({parent:function(e){return e=e.parentNode,e&&e.nodeType!==11?e:null},parents:function(e){return pt(e,"parentNode")},parentsUntil:function(e,t,i){return pt(e,"parentNode",i)},next:function(e){return Tn(e,"nextSibling")},prev:function(e){return Tn(e,"previousSibling")},nextAll:function(e){return pt(e,"nextSibling")},prevAll:function(e){return pt(e,"previousSibling")},nextUntil:function(e,t,i){return pt(e,"nextSibling",i)},prevUntil:function(e,t,i){return pt(e,"previousSibling",i)},siblings:function(e){return bn((e.parentNode||{}).firstChild,e)},children:function(e){return bn(e.firstChild)},contents:function(e){return e.contentDocument!=null&&K(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),n.merge([],e.childNodes))}},function(e,t){n.fn[e]=function(i,l){var b=n.map(this,t,i);return(l=e.slice(-5)!=="Until"?i:l)&&typeof l=="string"&&(b=n.filter(l,b)),1<this.length&&(ci[e]||n.uniqueSort(b),si.test(e))&&b.reverse(),this.pushStack(b)}});var Ze=/[^\x20\t\r\n\f]+/g;function ht(e){return e}function Ht(e){throw e}function En(e,t,i,l){var b;try{e&&a(b=e.promise)?b.call(e).done(t).fail(i):e&&a(b=e.then)?b.call(e,t,i):t.apply(void 0,[e].slice(l))}catch(N){i.apply(void 0,[N])}}n.Callbacks=function(e){var t,i;e=typeof e=="string"?(t=e,i={},n.each(t.match(Ze)||[],function(xe,ge){i[ge]=!0}),i):n.extend({},e);var l,b,N,H,V=[],Z=[],se=-1,ie=function(){for(H=H||e.once,N=l=!0;Z.length;se=-1)for(b=Z.shift();++se<V.length;)V[se].apply(b[0],b[1])===!1&&e.stopOnFalse&&(se=V.length,b=!1);e.memory||(b=!1),l=!1,H&&(V=b?[]:"")},me={add:function(){return V&&(b&&!l&&(se=V.length-1,Z.push(b)),(function xe(ge){n.each(ge,function(be,Ee){a(Ee)?e.unique&&me.has(Ee)||V.push(Ee):Ee&&Ee.length&&S(Ee)!=="string"&&xe(Ee)})})(arguments),b)&&!l&&ie(),this},remove:function(){return n.each(arguments,function(xe,ge){for(var be;-1<(be=n.inArray(ge,V,be));)V.splice(be,1),be<=se&&se--}),this},has:function(xe){return xe?-1<n.inArray(xe,V):0<V.length},empty:function(){return V=V&&[],this},disable:function(){return H=Z=[],V=b="",this},disabled:function(){return!V},lock:function(){return H=Z=[],b||l||(V=b=""),this},locked:function(){return!!H},fireWith:function(xe,ge){return H||(ge=[xe,(ge=ge||[]).slice?ge.slice():ge],Z.push(ge),l)||ie(),this},fire:function(){return me.fireWith(this,arguments),this},fired:function(){return!!N}};return me},n.extend({Deferred:function(e){var t=[["notify","progress",n.Callbacks("memory"),n.Callbacks("memory"),2],["resolve","done",n.Callbacks("once memory"),n.Callbacks("once memory"),0,"resolved"],["reject","fail",n.Callbacks("once memory"),n.Callbacks("once memory"),1,"rejected"]],i="pending",l={state:function(){return i},always:function(){return b.done(arguments).fail(arguments),this},catch:function(N){return l.then(null,N)},pipe:function(){var N=arguments;return n.Deferred(function(H){n.each(t,function(V,Z){var se=a(N[Z[4]])&&N[Z[4]];b[Z[1]](function(){var ie=se&&se.apply(this,arguments);ie&&a(ie.promise)?ie.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[Z[0]+"With"](this,se?[ie]:arguments)})}),N=null}).promise()},then:function(N,H,V){var Z=0;function se(ie,me,xe,ge){return function(){var be=this,Ee=arguments,Me=function(){var _e,Te;if(!(ie<Z)){if((_e=xe.apply(be,Ee))===me.promise())throw new TypeError("Thenable self-resolution");Te=_e&&(typeof _e=="object"||typeof _e=="function")&&_e.then,a(Te)?ge?Te.call(_e,se(Z,me,ht,ge),se(Z,me,Ht,ge)):(Z++,Te.call(_e,se(Z,me,ht,ge),se(Z,me,Ht,ge),se(Z,me,ht,me.notifyWith))):(xe!==ht&&(be=void 0,Ee=[_e]),(ge||me.resolveWith)(be,Ee))}},Pe=ge?Me:function(){try{Me()}catch(_e){n.Deferred.exceptionHook&&n.Deferred.exceptionHook(_e,Pe.error),Z<=ie+1&&(xe!==Ht&&(be=void 0,Ee=[_e]),me.rejectWith(be,Ee))}};ie?Pe():(n.Deferred.getErrorHook?Pe.error=n.Deferred.getErrorHook():n.Deferred.getStackHook&&(Pe.error=n.Deferred.getStackHook()),he.setTimeout(Pe))}}return n.Deferred(function(ie){t[0][3].add(se(0,ie,a(V)?V:ht,ie.notifyWith)),t[1][3].add(se(0,ie,a(N)?N:ht)),t[2][3].add(se(0,ie,a(H)?H:Ht))}).promise()},promise:function(N){return N!=null?n.extend(N,l):l}},b={};return n.each(t,function(N,H){var V=H[2],Z=H[5];l[H[1]]=V.add,Z&&V.add(function(){i=Z},t[3-N][2].disable,t[3-N][3].disable,t[0][2].lock,t[0][3].lock),V.add(H[3].fire),b[H[0]]=function(){return b[H[0]+"With"](this===b?void 0:this,arguments),this},b[H[0]+"With"]=V.fireWith}),l.promise(b),e&&e.call(b,b),b},when:function(e){var t=arguments.length,i=t,l=Array(i),b=Y.call(arguments),N=n.Deferred(),H=function(V){return function(Z){l[V]=this,b[V]=1<arguments.length?Y.call(arguments):Z,--t||N.resolveWith(l,b)}};if(t<=1&&(En(e,N.done(H(i)).resolve,N.reject,!t),N.state()==="pending"||a(b[i]&&b[i].then)))return N.then();for(;i--;)En(b[i],H(i),N.reject);return N.promise()}});var ui=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,Zt=(n.Deferred.exceptionHook=function(e,t){he.console&&he.console.warn&&e&&ui.test(e.name)&&he.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},n.readyException=function(e){he.setTimeout(function(){throw e})},n.Deferred());function Rt(){u.removeEventListener("DOMContentLoaded",Rt),he.removeEventListener("load",Rt),n.ready()}n.fn.ready=function(e){return Zt.then(e).catch(function(t){n.readyException(t)}),this},n.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--n.readyWait:n.isReady)||(n.isReady=!0)!==e&&0<--n.readyWait||Zt.resolveWith(u,[n])}}),n.ready.then=Zt.then,u.readyState==="complete"||u.readyState!=="loading"&&!u.documentElement.doScroll?he.setTimeout(n.ready):(u.addEventListener("DOMContentLoaded",Rt),he.addEventListener("load",Rt));var tt=function(e,t,i,l,b,N,H){var V=0,Z=e.length,se=i==null;if(S(i)==="object")for(V in b=!0,i)tt(e,t,V,i[V],!0,N,H);else if(l!==void 0&&(b=!0,a(l)||(H=!0),t=se?H?(t.call(e,l),null):(se=t,function(ie,me,xe){return se.call(n(ie),xe)}):t))for(;V<Z;V++)t(e[V],i,H?l:l.call(e[V],V,t(e[V],i)));return b?e:se?t.call(e):Z?t(e[0],i):N},di=/^-ms-/,fi=/-([a-z])/g;function pi(e,t){return t.toUpperCase()}function Qe(e){return e.replace(di,"ms-").replace(fi,pi)}var Tt=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function Et(){this.expando=n.expando+Et.uid++}Et.uid=1,Et.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Tt(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var l,b=this.cache(e);if(typeof t=="string")b[Qe(t)]=i;else for(l in t)b[Qe(l)]=t[l];return b},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][Qe(t)]},access:function(e,t,i){return t===void 0||t&&typeof t=="string"&&i===void 0?this.get(e,t):(this.set(e,t,i),i!==void 0?i:t)},remove:function(e,t){var i,l=e[this.expando];if(l!==void 0){if(t!==void 0)for(i=(t=Array.isArray(t)?t.map(Qe):(t=Qe(t))in l?[t]:t.match(Ze)||[]).length;i--;)delete l[t[i]];t!==void 0&&!n.isEmptyObject(l)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){return e=e[this.expando],e!==void 0&&!n.isEmptyObject(e)}};var Ne=new Et,Xe=new Et,hi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,yi=/[A-Z]/g;function Dn(e,t,i){var l,b;if(i===void 0&&e.nodeType===1)if(l="data-"+t.replace(yi,"-$&").toLowerCase(),typeof(i=e.getAttribute(l))=="string"){try{i=(b=i)==="true"||b!=="false"&&(b==="null"?null:b===+b+""?+b:hi.test(b)?JSON.parse(b):b)}catch(N){}Xe.set(e,t,i)}else i=void 0;return i}n.extend({hasData:function(e){return Xe.hasData(e)||Ne.hasData(e)},data:function(e,t,i){return Xe.access(e,t,i)},removeData:function(e,t){Xe.remove(e,t)},_data:function(e,t,i){return Ne.access(e,t,i)},_removeData:function(e,t){Ne.remove(e,t)}}),n.fn.extend({data:function(e,t){var i,l,b,N=this[0],H=N&&N.attributes;if(e!==void 0)return typeof e=="object"?this.each(function(){Xe.set(this,e)}):tt(this,function(V){var Z;if(N&&V===void 0)return(Z=Xe.get(N,e))!==void 0||(Z=Dn(N,e))!==void 0?Z:void 0;this.each(function(){Xe.set(this,e,V)})},null,t,1<arguments.length,null,!0);if(this.length&&(b=Xe.get(N),N.nodeType===1)&&!Ne.get(N,"hasDataAttrs")){for(i=H.length;i--;)H[i]&&(l=H[i].name).indexOf("data-")===0&&(l=Qe(l.slice(5)),Dn(N,l,b[l]));Ne.set(N,"hasDataAttrs",!0)}return b},removeData:function(e){return this.each(function(){Xe.remove(this,e)})}}),n.extend({queue:function(e,t,i){var l;if(e)return l=Ne.get(e,t=(t||"fx")+"queue"),i&&(!l||Array.isArray(i)?l=Ne.access(e,t,n.makeArray(i)):l.push(i)),l||[]},dequeue:function(e,t){t=t||"fx";var i=n.queue(e,t),l=i.length,b=i.shift(),N=n._queueHooks(e,t);b==="inprogress"&&(b=i.shift(),l--),b&&(t==="fx"&&i.unshift("inprogress"),delete N.stop,b.call(e,function(){n.dequeue(e,t)},N)),!l&&N&&N.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Ne.get(e,i)||Ne.access(e,i,{empty:n.Callbacks("once memory").add(function(){Ne.remove(e,[t+"queue",i])})})}}),n.fn.extend({queue:function(e,t){var i=2;return typeof e!="string"&&(t=e,e="fx",i--),arguments.length<i?n.queue(this[0],e):t===void 0?this:this.each(function(){var l=n.queue(this,e,t);n._queueHooks(this,e),e==="fx"&&l[0]!=="inprogress"&&n.dequeue(this,e)})},dequeue:function(e){return this.each(function(){n.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,l=1,b=n.Deferred(),N=this,H=this.length,V=function(){--l||b.resolveWith(N,[N])};for(typeof e!="string"&&(t=e,e=void 0),e=e||"fx";H--;)(i=Ne.get(N[H],e+"queueHooks"))&&i.empty&&(l++,i.empty.add(V));return V(),b.promise(t)}});var $e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dt=new RegExp("^(?:([+-])=|)("+$e+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],ct=u.documentElement,yt=function(e){return n.contains(e.ownerDocument,e)},mi={composed:!0},Ft=(ct.getRootNode&&(yt=function(e){return n.contains(e.ownerDocument,e)||e.getRootNode(mi)===e.ownerDocument}),function(e,t){return(e=t||e).style.display==="none"||e.style.display===""&&yt(e)&&n.css(e,"display")==="none"});function Sn(e,t,i,l){var b,N,H=20,V=l?function(){return l.cur()}:function(){return n.css(e,t,"")},Z=V(),se=i&&i[3]||(n.cssNumber[t]?"":"px"),ie=e.nodeType&&(n.cssNumber[t]||se!=="px"&&+Z)&&Dt.exec(n.css(e,t));if(ie&&ie[3]!==se){for(se=se||ie[3],ie=+(Z/=2)||1;H--;)n.style(e,t,ie+se),(1-N)*(1-(N=V()/Z||.5))<=0&&(H=0),ie/=N;n.style(e,t,(ie*=2)+se),i=i||[]}return i&&(ie=+ie||+Z||0,b=i[1]?ie+(i[1]+1)*i[2]:+i[2],l)&&(l.unit=se,l.start=ie,l.end=b),b}var Nn={};function mt(e,t){for(var i,l,b,N,H,V=[],Z=0,se=e.length;Z<se;Z++)(l=e[Z]).style&&(i=l.style.display,t?(i==="none"&&(V[Z]=Ne.get(l,"display")||null,V[Z]||(l.style.display="")),l.style.display===""&&Ft(l)&&(V[Z]=(H=N=void 0,N=(b=l).ownerDocument,b=b.nodeName,(H=Nn[b])||(N=N.body.appendChild(N.createElement(b)),H=n.css(N,"display"),N.parentNode.removeChild(N),Nn[b]=H=H==="none"?"block":H),H))):i!=="none"&&(V[Z]="none",Ne.set(l,"display",i)));for(Z=0;Z<se;Z++)V[Z]!=null&&(e[Z].style.display=V[Z]);return e}n.fn.extend({show:function(){return mt(this,!0)},hide:function(){return mt(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){Ft(this)?n(this).show():n(this).hide()})}});var St=/^(?:checkbox|radio)$/i,In=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,An=/^$|^module$|\/(?:java|ecma)script/i,Ue=(de=u.createDocumentFragment().appendChild(u.createElement("div")),(ce=u.createElement("input")).setAttribute("type","radio"),ce.setAttribute("checked","checked"),ce.setAttribute("name","t"),de.appendChild(ce),C.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="<textarea>x</textarea>",C.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="<option></option>",C.option=!!de.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function Ve(e,t){var i=typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll(t||"*"):[];return t===void 0||t&&k(e,t)?n.merge([e],i):i}function Qt(e,t){for(var i=0,l=e.length;i<l;i++)Ne.set(e[i],"globalEval",!t||Ne.get(t[i],"globalEval"))}Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td,C.option||(Ue.optgroup=Ue.option=[1,"<select multiple='multiple'>","</select>"]);var gi=/<|&#?\w+;/;function Ln(e,t,i,l,b){for(var N,H,V,Z,se,ie=t.createDocumentFragment(),me=[],xe=0,ge=e.length;xe<ge;xe++)if((N=e[xe])||N===0)if(S(N)==="object")n.merge(me,N.nodeType?[N]:N);else if(gi.test(N)){for(H=H||ie.appendChild(t.createElement("div")),V=(In.exec(N)||["",""])[1].toLowerCase(),V=Ue[V]||Ue._default,H.innerHTML=V[1]+n.htmlPrefilter(N)+V[2],se=V[0];se--;)H=H.lastChild;n.merge(me,H.childNodes),(H=ie.firstChild).textContent=""}else me.push(t.createTextNode(N));for(ie.textContent="",xe=0;N=me[xe++];)if(l&&-1<n.inArray(N,l))b&&b.push(N);else if(Z=yt(N),H=Ve(ie.appendChild(N),"script"),Z&&Qt(H),i)for(se=0;N=H[se++];)An.test(N.type||"")&&i.push(N);return ie}var Mn=/^([^.]*)(?:\.(.+)|)/;function gt(){return!0}function vt(){return!1}function en(e,t,i,l,b,N){var H,V;if(typeof t=="object"){for(V in typeof i!="string"&&(l=l||i,i=void 0),t)en(e,V,i,l,t[V],N);return e}if(l==null&&b==null?(b=i,l=i=void 0):b==null&&(typeof i=="string"?(b=l,l=void 0):(b=l,l=i,i=void 0)),b===!1)b=vt;else if(!b)return e;return N===1&&(H=b,(b=function(Z){return n().off(Z),H.apply(this,arguments)}).guid=H.guid||(H.guid=n.guid++)),e.each(function(){n.event.add(this,t,b,l,i)})}function Pt(e,t,i){i?(Ne.set(e,t,!1),n.event.add(e,t,{namespace:!1,handler:function(l){var b,N=Ne.get(this,t);if(1&l.isTrigger&&this[t]){if(N)(n.event.special[t]||{}).delegateType&&l.stopPropagation();else if(N=Y.call(arguments),Ne.set(this,t,N),this[t](),b=Ne.get(this,t),Ne.set(this,t,!1),N!==b)return l.stopImmediatePropagation(),l.preventDefault(),b}else N&&(Ne.set(this,t,n.event.trigger(N[0],N.slice(1),this)),l.stopPropagation(),l.isImmediatePropagationStopped=gt)}})):Ne.get(e,t)===void 0&&n.event.add(e,t,gt)}n.event={global:{},add:function(e,t,i,l,b){var N,H,V,Z,se,ie,me,xe,ge,be=Ne.get(e);if(Tt(e))for(i.handler&&(i=(N=i).handler,b=N.selector),b&&n.find.matchesSelector(ct,b),i.guid||(i.guid=n.guid++),V=(V=be.events)||(be.events=Object.create(null)),H=(H=be.handle)||(be.handle=function(Ee){return n!==void 0&&n.event.triggered!==Ee.type?n.event.dispatch.apply(e,arguments):void 0}),Z=(t=(t||"").match(Ze)||[""]).length;Z--;)me=ge=(xe=Mn.exec(t[Z])||[])[1],xe=(xe[2]||"").split(".").sort(),me&&(se=n.event.special[me]||{},me=(b?se.delegateType:se.bindType)||me,se=n.event.special[me]||{},ge=n.extend({type:me,origType:ge,data:l,handler:i,guid:i.guid,selector:b,needsContext:b&&n.expr.match.needsContext.test(b),namespace:xe.join(".")},N),(ie=V[me])||((ie=V[me]=[]).delegateCount=0,se.setup&&se.setup.call(e,l,xe,H)!==!1)||e.addEventListener&&e.addEventListener(me,H),se.add&&(se.add.call(e,ge),ge.handler.guid||(ge.handler.guid=i.guid)),b?ie.splice(ie.delegateCount++,0,ge):ie.push(ge),n.event.global[me]=!0)},remove:function(e,t,i,l,b){var N,H,V,Z,se,ie,me,xe,ge,be,Ee,Me=Ne.hasData(e)&&Ne.get(e);if(Me&&(Z=Me.events)){for(se=(t=(t||"").match(Ze)||[""]).length;se--;)if(ge=Ee=(V=Mn.exec(t[se])||[])[1],be=(V[2]||"").split(".").sort(),ge){for(me=n.event.special[ge]||{},xe=Z[ge=(l?me.delegateType:me.bindType)||ge]||[],V=V[2]&&new RegExp("(^|\\.)"+be.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=N=xe.length;N--;)ie=xe[N],!b&&Ee!==ie.origType||i&&i.guid!==ie.guid||V&&!V.test(ie.namespace)||l&&l!==ie.selector&&(l!=="**"||!ie.selector)||(xe.splice(N,1),ie.selector&&xe.delegateCount--,me.remove&&me.remove.call(e,ie));H&&!xe.length&&(me.teardown&&me.teardown.call(e,be,Me.handle)!==!1||n.removeEvent(e,ge,Me.handle),delete Z[ge])}else for(ge in Z)n.event.remove(e,ge+t[se],i,l,!0);n.isEmptyObject(Z)&&Ne.remove(e,"handle events")}},dispatch:function(Z){var t,i,l,b,N,H=new Array(arguments.length),V=n.event.fix(Z),Z=(Ne.get(this,"events")||Object.create(null))[V.type]||[],se=n.event.special[V.type]||{};for(H[0]=V,t=1;t<arguments.length;t++)H[t]=arguments[t];if(V.delegateTarget=this,!se.preDispatch||se.preDispatch.call(this,V)!==!1){for(N=n.event.handlers.call(this,V,Z),t=0;(l=N[t++])&&!V.isPropagationStopped();)for(V.currentTarget=l.elem,i=0;(b=l.handlers[i++])&&!V.isImmediatePropagationStopped();)V.rnamespace&&b.namespace!==!1&&!V.rnamespace.test(b.namespace)||(V.handleObj=b,V.data=b.data,(b=((n.event.special[b.origType]||{}).handle||b.handler).apply(l.elem,H))!==void 0&&(V.result=b)===!1&&(V.preventDefault(),V.stopPropagation()));return se.postDispatch&&se.postDispatch.call(this,V),V.result}},handlers:function(e,t){var i,l,b,N,H,V=[],Z=t.delegateCount,se=e.target;if(Z&&se.nodeType&&!(e.type==="click"&&1<=e.button)){for(;se!==this;se=se.parentNode||this)if(se.nodeType===1&&(e.type!=="click"||se.disabled!==!0)){for(N=[],H={},i=0;i<Z;i++)H[b=(l=t[i]).selector+" "]===void 0&&(H[b]=l.needsContext?-1<n(b,this).index(se):n.find(b,this,null,[se]).length),H[b]&&N.push(l);N.length&&V.push({elem:se,handlers:N})}}return se=this,Z<t.length&&V.push({elem:se,handlers:t.slice(Z)}),V},addProp:function(e,t){Object.defineProperty(n.Event.prototype,e,{enumerable:!0,configurable:!0,get:a(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(i){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:i})}})},fix:function(e){return e[n.expando]?e:new n.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){return e=this||e,St.test(e.type)&&e.click&&k(e,"input")&&Pt(e,"click",!0),!1},trigger:function(e){return e=this||e,St.test(e.type)&&e.click&&k(e,"input")&&Pt(e,"click"),!0},_default:function(e){return e=e.target,St.test(e.type)&&e.click&&k(e,"input")&&Ne.get(e,"click")||k(e,"a")}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},n.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},n.Event=function(e,t){if(!(this instanceof n.Event))return new n.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?gt:vt,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&n.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[n.expando]=!0},n.Event.prototype={constructor:n.Event,isDefaultPrevented:vt,isPropagationStopped:vt,isImmediatePropagationStopped:vt,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=gt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=gt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=gt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},n.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},n.event.addProp),n.each({focus:"focusin",blur:"focusout"},function(e,t){function i(l){var b,N;u.documentMode?(b=Ne.get(this,"handle"),(N=n.event.fix(l)).type=l.type==="focusin"?"focus":"blur",N.isSimulated=!0,b(l),N.target===N.currentTarget&&b(N)):n.event.simulate(t,l.target,n.event.fix(l))}n.event.special[e]={setup:function(){var l;if(Pt(this,e,!0),!u.documentMode)return!1;(l=Ne.get(this,t))||this.addEventListener(t,i),Ne.set(this,t,(l||0)+1)},trigger:function(){return Pt(this,e),!0},teardown:function(){var l;if(!u.documentMode)return!1;(l=Ne.get(this,t)-1)?Ne.set(this,t,l):(this.removeEventListener(t,i),Ne.remove(this,t))},_default:function(l){return Ne.get(l.target,e)},delegateType:t},n.event.special[t]={setup:function(){var l=this.ownerDocument||this.document||this,b=u.documentMode?this:l,N=Ne.get(b,t);N||(u.documentMode?this.addEventListener(t,i):l.addEventListener(e,i,!0)),Ne.set(b,t,(N||0)+1)},teardown:function(){var l=this.ownerDocument||this.document||this,b=u.documentMode?this:l,N=Ne.get(b,t)-1;N?Ne.set(b,t,N):(u.documentMode?this.removeEventListener(t,i):l.removeEventListener(e,i,!0),Ne.remove(b,t))}}}),n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){n.event.special[e]={delegateType:t,bindType:t,handle:function(i){var l,b=i.relatedTarget,N=i.handleObj;return b&&(b===this||n.contains(this,b))||(i.type=N.origType,l=N.handler.apply(this,arguments),i.type=t),l}}}),n.fn.extend({on:function(e,t,i,l){return en(this,e,t,i,l)},one:function(e,t,i,l){return en(this,e,t,i,l,1)},off:function(e,t,i){var l,b;if(e&&e.preventDefault&&e.handleObj)l=e.handleObj,n(e.delegateTarget).off(l.namespace?l.origType+"."+l.namespace:l.origType,l.selector,l.handler);else{if(typeof e!="object")return t!==!1&&typeof t!="function"||(i=t,t=void 0),i===!1&&(i=vt),this.each(function(){n.event.remove(this,e,i,t)});for(b in e)this.off(b,t,e[b])}return this}});var vi=/<script|<style|<link/i,xi=/checked\s*(?:[^=]|=\s*.checked.)/i,bi=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function _n(e,t){return k(e,"table")&&k(t.nodeType!==11?t:t.firstChild,"tr")&&n(e).children("tbody")[0]||e}function Ci(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function wi(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function jn(e,t){var i,l,b,N;if(t.nodeType===1){if(Ne.hasData(e)&&(N=Ne.get(e).events))for(b in Ne.remove(t,"handle events"),N)for(i=0,l=N[b].length;i<l;i++)n.event.add(t,b,N[b][i]);Xe.hasData(e)&&(e=Xe.access(e),e=n.extend({},e),Xe.set(t,e))}}function xt(e,t,i,l){t=M(t);var b,N,H,V,Z,se,ie=0,me=e.length,xe=me-1,ge=t[0],be=a(ge);if(be||1<me&&typeof ge=="string"&&!C.checkClone&&xi.test(ge))return e.each(function(Ee){var Me=e.eq(Ee);be&&(t[0]=ge.call(this,Ee,Me.html())),xt(Me,t,i,l)});if(me&&(N=(b=Ln(t,e[0].ownerDocument,!1,e,l)).firstChild,b.childNodes.length===1&&(b=N),N||l)){for(V=(H=n.map(Ve(b,"script"),Ci)).length;ie<me;ie++)Z=b,ie!==xe&&(Z=n.clone(Z,!0,!0),V)&&n.merge(H,Ve(Z,"script")),i.call(e[ie],Z,ie);if(V)for(se=H[H.length-1].ownerDocument,n.map(H,wi),ie=0;ie<V;ie++)Z=H[ie],An.test(Z.type||"")&&!Ne.access(Z,"globalEval")&&n.contains(se,Z)&&(Z.src&&(Z.type||"").toLowerCase()!=="module"?n._evalUrl&&!Z.noModule&&n._evalUrl(Z.src,{nonce:Z.nonce||Z.getAttribute("nonce")},se):f(Z.textContent.replace(bi,""),Z,se))}return e}function On(e,t,i){for(var l,b=t?n.filter(t,e):e,N=0;(l=b[N])!=null;N++)i||l.nodeType!==1||n.cleanData(Ve(l)),l.parentNode&&(i&&yt(l)&&Qt(Ve(l,"script")),l.parentNode.removeChild(l));return e}n.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var l,b,N,H,V,Z,se,ie=e.cloneNode(!0),me=yt(e);if(!(C.noCloneChecked||e.nodeType!==1&&e.nodeType!==11||n.isXMLDoc(e)))for(H=Ve(ie),l=0,b=(N=Ve(e)).length;l<b;l++)V=N[l],Z=H[l],se=void 0,(se=Z.nodeName.toLowerCase())==="input"&&St.test(V.type)?Z.checked=V.checked:se!=="input"&&se!=="textarea"||(Z.defaultValue=V.defaultValue);if(t)if(i)for(N=N||Ve(e),H=H||Ve(ie),l=0,b=N.length;l<b;l++)jn(N[l],H[l]);else jn(e,ie);return 0<(H=Ve(ie,"script")).length&&Qt(H,!me&&Ve(e,"script")),ie},cleanData:function(e){for(var t,i,l,b=n.event.special,N=0;(i=e[N])!==void 0;N++)if(Tt(i)){if(t=i[Ne.expando]){if(t.events)for(l in t.events)b[l]?n.event.remove(i,l):n.removeEvent(i,l,t.handle);i[Ne.expando]=void 0}i[Xe.expando]&&(i[Xe.expando]=void 0)}}}),n.fn.extend({detach:function(e){return On(this,e,!0)},remove:function(e){return On(this,e)},text:function(e){return tt(this,function(t){return t===void 0?n.text(this):this.empty().each(function(){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||(this.textContent=t)})},null,e,arguments.length)},append:function(){return xt(this,arguments,function(e){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||_n(this,e).appendChild(e)})},prepend:function(){return xt(this,arguments,function(e){var t;this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||(t=_n(this,e)).insertBefore(e,t.firstChild)})},before:function(){return xt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return xt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(n.cleanData(Ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e!=null&&e,t=t==null?e:t,this.map(function(){return n.clone(this,e,t)})},html:function(e){return tt(this,function(t){var i=this[0]||{},l=0,b=this.length;if(t===void 0&&i.nodeType===1)return i.innerHTML;if(typeof t=="string"&&!vi.test(t)&&!Ue[(In.exec(t)||["",""])[1].toLowerCase()]){t=n.htmlPrefilter(t);try{for(;l<b;l++)(i=this[l]||{}).nodeType===1&&(n.cleanData(Ve(i,!1)),i.innerHTML=t);i=0}catch(N){}}i&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=[];return xt(this,arguments,function(t){var i=this.parentNode;n.inArray(this,e)<0&&(n.cleanData(Ve(this)),i)&&i.replaceChild(t,this)},e)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){n.fn[e]=function(i){for(var l,b=[],N=n(i),H=N.length-1,V=0;V<=H;V++)l=V===H?this:this.clone(!0),n(N[V])[t](l),y.apply(b,l.get());return this.pushStack(b)}});var Hn,Rn,Fn,Pn,tn,qn,qt,Ge,nn=new RegExp("^("+$e+")(?!px)[a-z%]+$","i"),an=/^--/,Bt=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:he).getComputedStyle(e)},Bn=function(e,t,i){var l,b={};for(l in t)b[l]=e.style[l],e.style[l]=t[l];for(l in i=i.call(e),t)e.style[l]=b[l];return i},ki=new RegExp(nt.join("|"),"i");function Nt(){var e;Ge&&(qt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ge.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ct.appendChild(qt).appendChild(Ge),e=he.getComputedStyle(Ge),Hn=e.top!=="1%",qn=Wt(e.marginLeft)===12,Ge.style.right="60%",Pn=Wt(e.right)===36,Rn=Wt(e.width)===36,Ge.style.position="absolute",Fn=Wt(Ge.offsetWidth/3)===12,ct.removeChild(qt),Ge=null)}function Wt(e){return Math.round(parseFloat(e))}function It(e,t,i){var l,b=an.test(t),N=e.style;return(i=i||Bt(e))&&(l=i.getPropertyValue(t)||i[t],(l=b?l&&(l.replace(g,"$1")||void 0):l)!==""||yt(e)||(l=n.style(e,t)),!C.pixelBoxStyles())&&nn.test(l)&&ki.test(t)&&(b=N.width,e=N.minWidth,t=N.maxWidth,N.minWidth=N.maxWidth=N.width=l,l=i.width,N.width=b,N.minWidth=e,N.maxWidth=t),l!==void 0?l+"":l}function Wn(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}qt=u.createElement("div"),(Ge=u.createElement("div")).style&&(Ge.style.backgroundClip="content-box",Ge.cloneNode(!0).style.backgroundClip="",C.clearCloneStyle=Ge.style.backgroundClip==="content-box",n.extend(C,{boxSizingReliable:function(){return Nt(),Rn},pixelBoxStyles:function(){return Nt(),Pn},pixelPosition:function(){return Nt(),Hn},reliableMarginLeft:function(){return Nt(),qn},scrollboxSize:function(){return Nt(),Fn},reliableTrDimensions:function(){var e,t,i;return tn==null&&(e=u.createElement("table"),t=u.createElement("tr"),i=u.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",ct.appendChild(e).appendChild(t).appendChild(i),i=he.getComputedStyle(t),tn=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ct.removeChild(e)),tn}}));var zn=["Webkit","Moz","ms"],Yn=u.createElement("div").style,$n={};function on(e){var t=n.cssProps[e]||$n[e];return t||(e in Yn?e:$n[e]=(function(i){for(var l=i[0].toUpperCase()+i.slice(1),b=zn.length;b--;)if((i=zn[b]+l)in Yn)return i})(e)||e)}var Ti=/^(none|table(?!-c[ea]).+)/,Ei={position:"absolute",visibility:"hidden",display:"block"},Xn={letterSpacing:"0",fontWeight:"400"};function Vn(e,t,i){var l=Dt.exec(t);return l?Math.max(0,l[2]-(i||0))+(l[3]||"px"):t}function rn(e,t,i,l,b,N){var H=t==="width"?1:0,V=0,Z=0,se=0;if(i===(l?"border":"content"))return 0;for(;H<4;H+=2)i==="margin"&&(se+=n.css(e,i+nt[H],!0,b)),l?(i==="content"&&(Z-=n.css(e,"padding"+nt[H],!0,b)),i!=="margin"&&(Z-=n.css(e,"border"+nt[H]+"Width",!0,b))):(Z+=n.css(e,"padding"+nt[H],!0,b),i!=="padding"?Z+=n.css(e,"border"+nt[H]+"Width",!0,b):V+=n.css(e,"border"+nt[H]+"Width",!0,b));return!l&&0<=N&&(Z+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-N-Z-V-.5))||0),Z+se}function Un(e,t,i){var l=Bt(e),b=(!C.boxSizingReliable()||i)&&n.css(e,"boxSizing",!1,l)==="border-box",N=b,H=It(e,t,l),V="offset"+t[0].toUpperCase()+t.slice(1);if(nn.test(H)){if(!i)return H;H="auto"}return(!C.boxSizingReliable()&&b||!C.reliableTrDimensions()&&k(e,"tr")||H==="auto"||!parseFloat(H)&&n.css(e,"display",!1,l)==="inline")&&e.getClientRects().length&&(b=n.css(e,"boxSizing",!1,l)==="border-box",N=V in e)&&(H=e[V]),(H=parseFloat(H)||0)+rn(e,t,i||(b?"border":"content"),N,l,H)+"px"}function Ke(e,t,i,l,b){return new Ke.prototype.init(e,t,i,l,b)}n.extend({cssHooks:{opacity:{get:function(e,t){if(t)return(t=It(e,"opacity"))===""?"1":t}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,l){if(e&&e.nodeType!==3&&e.nodeType!==8&&e.style){var b,N,H,V=Qe(t),Z=an.test(t),se=e.style;if(Z||(t=on(V)),H=n.cssHooks[t]||n.cssHooks[V],i===void 0)return H&&"get"in H&&(b=H.get(e,!1,l))!==void 0?b:se[t];(N=typeof i)=="string"&&(b=Dt.exec(i))&&b[1]&&(i=Sn(e,t,b),N="number"),i==null||i!=i||(N!=="number"||Z||(i+=b&&b[3]||(n.cssNumber[V]?"":"px")),C.clearCloneStyle||i!==""||t.indexOf("background")!==0||(se[t]="inherit"),H&&"set"in H&&(i=H.set(e,i,l))===void 0)||(Z?se.setProperty(t,i):se[t]=i)}},css:function(e,t,i,l){var b,N=Qe(t);return an.test(t)||(t=on(N)),(b=(b=(N=n.cssHooks[t]||n.cssHooks[N])&&"get"in N?N.get(e,!0,i):b)===void 0?It(e,t,l):b)==="normal"&&t in Xn&&(b=Xn[t]),(i===""||i)&&(N=parseFloat(b),i===!0||isFinite(N))?N||0:b}}),n.each(["height","width"],function(e,t){n.cssHooks[t]={get:function(i,l,b){if(l)return!Ti.test(n.css(i,"display"))||i.getClientRects().length&&i.getBoundingClientRect().width?Un(i,t,b):Bn(i,Ei,function(){return Un(i,t,b)})},set:function(i,l,Z){var N=Bt(i),H=!C.scrollboxSize()&&N.position==="absolute",V=(H||Z)&&n.css(i,"boxSizing",!1,N)==="border-box",Z=Z?rn(i,t,Z,V,N):0;return V&&H&&(Z-=Math.ceil(i["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(N[t])-rn(i,t,"border",!1,N)-.5)),Z&&(V=Dt.exec(l))&&(V[3]||"px")!=="px"&&(i.style[t]=l,l=n.css(i,t)),Vn(0,l,Z)}}}),n.cssHooks.marginLeft=Wn(C.reliableMarginLeft,function(e,t){if(t)return(parseFloat(It(e,"marginLeft"))||e.getBoundingClientRect().left-Bn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),n.each({margin:"",padding:"",border:"Width"},function(e,t){n.cssHooks[e+t]={expand:function(i){for(var l=0,b={},N=typeof i=="string"?i.split(" "):[i];l<4;l++)b[e+nt[l]+t]=N[l]||N[l-2]||N[0];return b}},e!=="margin"&&(n.cssHooks[e+t].set=Vn)}),n.fn.extend({css:function(e,t){return tt(this,function(i,l,b){var N,H,V={},Z=0;if(Array.isArray(l)){for(N=Bt(i),H=l.length;Z<H;Z++)V[l[Z]]=n.css(i,l[Z],!1,N);return V}return b!==void 0?n.style(i,l,b):n.css(i,l)},e,t,1<arguments.length)}}),((n.Tween=Ke).prototype={constructor:Ke,init:function(e,t,i,l,b,N){this.elem=e,this.prop=i,this.easing=b||n.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=l,this.unit=N||(n.cssNumber[i]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return(e&&e.get?e:Ke.propHooks._default).get(this)},run:function(e){var t,i=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=n.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),(i&&i.set?i:Ke.propHooks._default).set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(e=n.css(e.elem,e.prop,""))&&e!=="auto"?e:0},set:function(e){n.fx.step[e.prop]?n.fx.step[e.prop](e):e.elem.nodeType!==1||!n.cssHooks[e.prop]&&e.elem.style[on(e.prop)]==null?e.elem[e.prop]=e.now:n.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},n.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},n.fx=Ke.prototype.init,n.fx.step={};var bt,zt,Di=/^(?:toggle|show|hide)$/,Si=/queueHooks$/;function ln(){zt&&(u.hidden===!1&&he.requestAnimationFrame?he.requestAnimationFrame(ln):he.setTimeout(ln,n.fx.interval),n.fx.tick())}function Gn(){return he.setTimeout(function(){bt=void 0}),bt=Date.now()}function Yt(e,t){var i,l=0,b={height:e};for(t=t?1:0;l<4;l+=2-t)b["margin"+(i=nt[l])]=b["padding"+i]=e;return t&&(b.opacity=b.width=e),b}function Kn(e,t,i){for(var l,b=(Je.tweeners[t]||[]).concat(Je.tweeners["*"]),N=0,H=b.length;N<H;N++)if(l=b[N].call(i,t,e))return l}function Je(e,t,i){var l,b,N,H,V,Z,se,ie=0,me=Je.prefilters.length,xe=n.Deferred().always(function(){delete ge.elem}),ge=function(){if(!b){for(var _e=bt||Gn(),_e=Math.max(0,be.startTime+be.duration-_e),Te=1-(_e/be.duration||0),Oe=0,Ae=be.tweens.length;Oe<Ae;Oe++)be.tweens[Oe].run(Te);if(xe.notifyWith(e,[be,Te,_e]),Te<1&&Ae)return _e;Ae||xe.notifyWith(e,[be,1,0]),xe.resolveWith(e,[be])}return!1},be=xe.promise({elem:e,props:n.extend({},t),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},i),originalProperties:t,originalOptions:i,startTime:bt||Gn(),duration:i.duration,tweens:[],createTween:function(_e,Te){return Te=n.Tween(e,be.opts,_e,Te,be.opts.specialEasing[_e]||be.opts.easing),be.tweens.push(Te),Te},stop:function(_e){var Te=0,Oe=_e?be.tweens.length:0;if(!b){for(b=!0;Te<Oe;Te++)be.tweens[Te].run(1);_e?(xe.notifyWith(e,[be,1,0]),xe.resolveWith(e,[be,_e])):xe.rejectWith(e,[be,_e])}return this}}),Ee=be.props,Me=Ee,Pe=be.opts.specialEasing;for(N in Me)if(V=Pe[H=Qe(N)],Z=Me[N],Array.isArray(Z)&&(V=Z[1],Z=Me[N]=Z[0]),N!==H&&(Me[H]=Z,delete Me[N]),(se=n.cssHooks[H])&&"expand"in se)for(N in Z=se.expand(Z),delete Me[H],Z)N in Me||(Me[N]=Z[N],Pe[N]=V);else Pe[H]=V;for(;ie<me;ie++)if(l=Je.prefilters[ie].call(be,e,Ee,be.opts))return a(l.stop)&&(n._queueHooks(be.elem,be.opts.queue).stop=l.stop.bind(l)),l;return n.map(Ee,Kn,be),a(be.opts.start)&&be.opts.start.call(e,be),be.progress(be.opts.progress).done(be.opts.done,be.opts.complete).fail(be.opts.fail).always(be.opts.always),n.fx.timer(n.extend(ge,{elem:e,anim:be,queue:be.opts.queue})),be}n.Animation=n.extend(Je,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return Sn(i.elem,e,Dt.exec(t),i),i}]},tweener:function(e,t){for(var i,l=0,b=(e=a(e)?(t=e,["*"]):e.match(Ze)).length;l<b;l++)i=e[l],Je.tweeners[i]=Je.tweeners[i]||[],Je.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var l,b,N,H,V,Z,se,ie="width"in t||"height"in t,me=this,xe={},ge=e.style,be=e.nodeType&&Ft(e),Ee=Ne.get(e,"fxshow");for(l in i.queue||((H=n._queueHooks(e,"fx")).unqueued==null&&(H.unqueued=0,V=H.empty.fire,H.empty.fire=function(){H.unqueued||V()}),H.unqueued++,me.always(function(){me.always(function(){H.unqueued--,n.queue(e,"fx").length||H.empty.fire()})})),t)if(b=t[l],Di.test(b)){if(delete t[l],N=N||b==="toggle",b===(be?"hide":"show")){if(b!=="show"||!Ee||Ee[l]===void 0)continue;be=!0}xe[l]=Ee&&Ee[l]||n.style(e,l)}if((Z=!n.isEmptyObject(t))||!n.isEmptyObject(xe))for(l in ie&&e.nodeType===1&&(i.overflow=[ge.overflow,ge.overflowX,ge.overflowY],(se=Ee&&Ee.display)==null&&(se=Ne.get(e,"display")),(ie=n.css(e,"display"))==="none"&&(se?ie=se:(mt([e],!0),se=e.style.display||se,ie=n.css(e,"display"),mt([e]))),ie==="inline"||ie==="inline-block"&&se!=null)&&n.css(e,"float")==="none"&&(Z||(me.done(function(){ge.display=se}),se==null&&(ie=ge.display,se=ie==="none"?"":ie)),ge.display="inline-block"),i.overflow&&(ge.overflow="hidden",me.always(function(){ge.overflow=i.overflow[0],ge.overflowX=i.overflow[1],ge.overflowY=i.overflow[2]})),Z=!1,xe)Z||(Ee?"hidden"in Ee&&(be=Ee.hidden):Ee=Ne.access(e,"fxshow",{display:se}),N&&(Ee.hidden=!be),be&&mt([e],!0),me.done(function(){for(l in be||mt([e]),Ne.remove(e,"fxshow"),xe)n.style(e,l,xe[l])})),Z=Kn(be?Ee[l]:0,l,me),l in Ee||(Ee[l]=Z.start,be&&(Z.end=Z.start,Z.start=0))}],prefilter:function(e,t){t?Je.prefilters.unshift(e):Je.prefilters.push(e)}}),n.speed=function(e,t,i){var l=e&&typeof e=="object"?n.extend({},e):{complete:i||!i&&t||a(e)&&e,duration:e,easing:i&&t||t&&!a(t)&&t};return n.fx.off?l.duration=0:typeof l.duration!="number"&&(l.duration in n.fx.speeds?l.duration=n.fx.speeds[l.duration]:l.duration=n.fx.speeds._default),l.queue!=null&&l.queue!==!0||(l.queue="fx"),l.old=l.complete,l.complete=function(){a(l.old)&&l.old.call(this),l.queue&&n.dequeue(this,l.queue)},l},n.fn.extend({fadeTo:function(e,t,i,l){return this.filter(Ft).css("opacity",0).show().end().animate({opacity:t},e,i,l)},animate:function(e,H,i,l){var b=n.isEmptyObject(e),N=n.speed(H,i,l),H=function(){var V=Je(this,n.extend({},e),N);(b||Ne.get(this,"finish"))&&V.stop(!0)};return H.finish=H,b||N.queue===!1?this.each(H):this.queue(N.queue,H)},stop:function(e,t,i){var l=function(b){var N=b.stop;delete b.stop,N(i)};return typeof e!="string"&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var b=!0,N=e!=null&&e+"queueHooks",H=n.timers,V=Ne.get(this);if(N)V[N]&&V[N].stop&&l(V[N]);else for(N in V)V[N]&&V[N].stop&&Si.test(N)&&l(V[N]);for(N=H.length;N--;)H[N].elem!==this||e!=null&&H[N].queue!==e||(H[N].anim.stop(i),b=!1,H.splice(N,1));!b&&i||n.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,i=Ne.get(this),l=i[e+"queue"],b=i[e+"queueHooks"],N=n.timers,H=l?l.length:0;for(i.finish=!0,n.queue(this,e,[]),b&&b.stop&&b.stop.call(this,!0),t=N.length;t--;)N[t].elem===this&&N[t].queue===e&&(N[t].anim.stop(!0),N.splice(t,1));for(t=0;t<H;t++)l[t]&&l[t].finish&&l[t].finish.call(this);delete i.finish})}}),n.each(["toggle","show","hide"],function(e,t){var i=n.fn[t];n.fn[t]=function(l,b,N){return l==null||typeof l=="boolean"?i.apply(this,arguments):this.animate(Yt(t,!0),l,b,N)}}),n.each({slideDown:Yt("show"),slideUp:Yt("hide"),slideToggle:Yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){n.fn[e]=function(i,l,b){return this.animate(t,i,l,b)}}),n.timers=[],n.fx.tick=function(){var e,t=0,i=n.timers;for(bt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||n.fx.stop(),bt=void 0},n.fx.timer=function(e){n.timers.push(e),n.fx.start()},n.fx.interval=13,n.fx.start=function(){zt||(zt=!0,ln())},n.fx.stop=function(){zt=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(e,t){return e=n.fx&&n.fx.speeds[e]||e,this.queue(t=t||"fx",function(i,l){var b=he.setTimeout(i,e);l.stop=function(){he.clearTimeout(b)}})},ce=u.createElement("input"),de=u.createElement("select").appendChild(u.createElement("option")),ce.type="checkbox",C.checkOn=ce.value!=="",C.optSelected=de.selected,(ce=u.createElement("input")).value="t",ce.type="radio",C.radioValue=ce.value==="t";var Jn,At=n.expr.attrHandle,Ni=(n.fn.extend({attr:function(e,t){return tt(this,n.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){n.removeAttr(this,e)})}}),n.extend({attr:function(e,t,i){var l,b,N=e.nodeType;if(N!==3&&N!==8&&N!==2)return typeof e.getAttribute=="undefined"?n.prop(e,t,i):(N===1&&n.isXMLDoc(e)||(b=n.attrHooks[t.toLowerCase()]||(n.expr.match.bool.test(t)?Jn:void 0)),i!==void 0?i===null?void n.removeAttr(e,t):b&&"set"in b&&(l=b.set(e,i,t))!==void 0?l:(e.setAttribute(t,i+""),i):!(b&&"get"in b&&(l=b.get(e,t))!==null)&&(l=n.find.attr(e,t))==null?void 0:l)},attrHooks:{type:{set:function(e,t){var i;if(!C.radioValue&&t==="radio"&&k(e,"input"))return i=e.value,e.setAttribute("type",t),i&&(e.value=i),t}}},removeAttr:function(e,t){var i,l=0,b=t&&t.match(Ze);if(b&&e.nodeType===1)for(;i=b[l++];)e.removeAttribute(i)}}),Jn={set:function(e,t,i){return t===!1?n.removeAttr(e,i):e.setAttribute(i,i),i}},n.each(n.expr.match.bool.source.match(/\w+/g),function(e,t){var i=At[t]||n.find.attr;At[t]=function(l,b,N){var H,V,Z=b.toLowerCase();return N||(V=At[Z],At[Z]=H,H=i(l,b,N)!=null?Z:null,At[Z]=V),H}}),/^(?:input|select|textarea|button)$/i),Ii=/^(?:a|area)$/i;function ut(e){return(e.match(Ze)||[]).join(" ")}function dt(e){return e.getAttribute&&e.getAttribute("class")||""}function sn(e){return Array.isArray(e)?e:typeof e=="string"&&e.match(Ze)||[]}n.fn.extend({prop:function(e,t){return tt(this,n.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[n.propFix[e]||e]})}}),n.extend({prop:function(e,t,i){var l,b,N=e.nodeType;if(N!==3&&N!==8&&N!==2)return N===1&&n.isXMLDoc(e)||(t=n.propFix[t]||t,b=n.propHooks[t]),i!==void 0?b&&"set"in b&&(l=b.set(e,i,t))!==void 0?l:e[t]=i:b&&"get"in b&&(l=b.get(e,t))!==null?l:e[t]},propHooks:{tabIndex:{get:function(e){var t=n.find.attr(e,"tabindex");return t?parseInt(t,10):Ni.test(e.nodeName)||Ii.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),C.optSelected||(n.propHooks.selected={get:function(e){return e=e.parentNode,e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode,e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),n.fn.extend({addClass:function(e){var t,i,l,b,N,H;return a(e)?this.each(function(V){n(this).addClass(e.call(this,V,dt(this)))}):(t=sn(e)).length?this.each(function(){if(l=dt(this),i=this.nodeType===1&&" "+ut(l)+" "){for(N=0;N<t.length;N++)b=t[N],i.indexOf(" "+b+" ")<0&&(i+=b+" ");H=ut(i),l!==H&&this.setAttribute("class",H)}}):this},removeClass:function(e){var t,i,l,b,N,H;return a(e)?this.each(function(V){n(this).removeClass(e.call(this,V,dt(this)))}):arguments.length?(t=sn(e)).length?this.each(function(){if(l=dt(this),i=this.nodeType===1&&" "+ut(l)+" "){for(N=0;N<t.length;N++)for(b=t[N];-1<i.indexOf(" "+b+" ");)i=i.replace(" "+b+" "," ");H=ut(i),l!==H&&this.setAttribute("class",H)}}):this:this.attr("class","")},toggleClass:function(e,t){var i,l,b,N,H=typeof e,V=H=="string"||Array.isArray(e);return a(e)?this.each(function(Z){n(this).toggleClass(e.call(this,Z,dt(this),t),t)}):typeof t=="boolean"&&V?t?this.addClass(e):this.removeClass(e):(i=sn(e),this.each(function(){if(V)for(N=n(this),b=0;b<i.length;b++)l=i[b],N.hasClass(l)?N.removeClass(l):N.addClass(l);else e!==void 0&&H!="boolean"||((l=dt(this))&&Ne.set(this,"__className__",l),this.setAttribute&&this.setAttribute("class",!l&&e!==!1&&Ne.get(this,"__className__")||""))}))},hasClass:function(e){for(var t,i=0,l=" "+e+" ";t=this[i++];)if(t.nodeType===1&&-1<(" "+ut(dt(t))+" ").indexOf(l))return!0;return!1}});var Ai=/\r/g,Lt=(n.fn.extend({val:function(e){var t,i,l,b=this[0];return arguments.length?(l=a(e),this.each(function(N){this.nodeType!==1||((N=l?e.call(this,N,n(this).val()):e)==null?N="":typeof N=="number"?N+="":Array.isArray(N)&&(N=n.map(N,function(H){return H==null?"":H+""})),(t=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&t.set(this,N,"value")!==void 0)||(this.value=N)})):b?(t=n.valHooks[b.type]||n.valHooks[b.nodeName.toLowerCase()])&&"get"in t&&(i=t.get(b,"value"))!==void 0?i:typeof(i=b.value)=="string"?i.replace(Ai,""):i==null?"":i:void 0}}),n.extend({valHooks:{option:{get:function(e){var t=n.find.attr(e,"value");return t!=null?t:ut(n.text(e))}},select:{get:function(e){for(var t,i=e.options,l=e.selectedIndex,b=e.type==="select-one",N=b?null:[],H=b?l+1:i.length,V=l<0?H:b?l:0;V<H;V++)if(((t=i[V]).selected||V===l)&&!t.disabled&&(!t.parentNode.disabled||!k(t.parentNode,"optgroup"))){if(t=n(t).val(),b)return t;N.push(t)}return N},set:function(e,t){for(var i,l,b=e.options,N=n.makeArray(t),H=b.length;H--;)((l=b[H]).selected=-1<n.inArray(n.valHooks.option.get(l),N))&&(i=!0);return i||(e.selectedIndex=-1),N}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<n.inArray(n(e).val(),t)}},C.checkOn||(n.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})}),he.location),Zn={guid:Date.now()},cn=/\?/,Qn=(n.parseXML=function(e){var t,i;if(!e||typeof e!="string")return null;try{t=new he.DOMParser().parseFromString(e,"text/xml")}catch(l){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||n.error("Invalid XML: "+(i?n.map(i.childNodes,function(l){return l.textContent}).join(`
`):e)),t},/^(?:focusinfocus|focusoutblur)$/),ei=function(e){e.stopPropagation()},Li=(n.extend(n.event,{trigger:function(e,t,i,l){var b,N,H,V,Z,se,ie,me=[i||u],xe=T.call(e,"type")?e.type:e,ge=T.call(e,"namespace")?e.namespace.split("."):[],be=ie=N=i=i||u;if(i.nodeType!==3&&i.nodeType!==8&&!Qn.test(xe+n.event.triggered)&&(-1<xe.indexOf(".")&&(xe=(ge=xe.split(".")).shift(),ge.sort()),V=xe.indexOf(":")<0&&"on"+xe,(e=e[n.expando]?e:new n.Event(xe,typeof e=="object"&&e)).isTrigger=l?2:3,e.namespace=ge.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+ge.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=t==null?[e]:n.makeArray(t,[e]),se=n.event.special[xe]||{},l||!se.trigger||se.trigger.apply(i,t)!==!1)){if(!l&&!se.noBubble&&!p(i)){for(H=se.delegateType||xe,Qn.test(H+xe)||(be=be.parentNode);be;be=be.parentNode)me.push(be),N=be;N===(i.ownerDocument||u)&&me.push(N.defaultView||N.parentWindow||he)}for(b=0;(be=me[b++])&&!e.isPropagationStopped();)ie=be,e.type=1<b?H:se.bindType||xe,(Z=(Ne.get(be,"events")||Object.create(null))[e.type]&&Ne.get(be,"handle"))&&Z.apply(be,t),(Z=V&&be[V])&&Z.apply&&Tt(be)&&(e.result=Z.apply(be,t),e.result===!1)&&e.preventDefault();return e.type=xe,l||e.isDefaultPrevented()||se._default&&se._default.apply(me.pop(),t)!==!1||!Tt(i)||V&&a(i[xe])&&!p(i)&&((N=i[V])&&(i[V]=null),n.event.triggered=xe,e.isPropagationStopped()&&ie.addEventListener(xe,ei),i[xe](),e.isPropagationStopped()&&ie.removeEventListener(xe,ei),n.event.triggered=void 0,N)&&(i[V]=N),e.result}},simulate:function(e,t,i){i=n.extend(new n.Event,i,{type:e,isSimulated:!0}),n.event.trigger(i,null,t)}}),n.fn.extend({trigger:function(e,t){return this.each(function(){n.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return n.event.trigger(e,t,i,!0)}}),/\[\]$/),ti=/\r?\n/g,Mi=/^(?:submit|button|image|reset|file)$/i,_i=/^(?:input|select|textarea|keygen)/i;n.param=function(e,t){var i,l=[],b=function(N,H){H=a(H)?H():H,l[l.length]=encodeURIComponent(N)+"="+encodeURIComponent(H==null?"":H)};if(e==null)return"";if(Array.isArray(e)||e.jquery&&!n.isPlainObject(e))n.each(e,function(){b(this.name,this.value)});else for(i in e)(function N(H,V,Z,se){if(Array.isArray(V))n.each(V,function(me,xe){Z||Li.test(H)?se(H,xe):N(H+"["+(typeof xe=="object"&&xe!=null?me:"")+"]",xe,Z,se)});else if(Z||S(V)!=="object")se(H,V);else for(var ie in V)N(H+"["+ie+"]",V[ie],Z,se)})(i,e[i],t,b);return l.join("&")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=n.prop(this,"elements");return e?n.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!n(this).is(":disabled")&&_i.test(this.nodeName)&&!Mi.test(e)&&(this.checked||!St.test(e))}).map(function(e,t){var i=n(this).val();return i==null?null:Array.isArray(i)?n.map(i,function(l){return{name:t.name,value:l.replace(ti,`\r
`)}}):{name:t.name,value:i.replace(ti,`\r
`)}}).get()}});var ji=/%20/g,Oi=/#.*$/,Hi=/([?&])_=[^&]*/,Ri=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fi=/^(?:GET|HEAD)$/,Pi=/^\/\//,ni={},un={},ii="*/".concat("*"),dn=u.createElement("a");function ai(e){return function(t,i){typeof t!="string"&&(i=t,t="*");var l,b=0,N=t.toLowerCase().match(Ze)||[];if(a(i))for(;l=N[b++];)l[0]==="+"?(l=l.slice(1)||"*",(e[l]=e[l]||[]).unshift(i)):(e[l]=e[l]||[]).push(i)}}function oi(e,t,i,l){var b={},N=e===un;function H(V){var Z;return b[V]=!0,n.each(e[V]||[],function(se,ie){return ie=ie(t,i,l),typeof ie!="string"||N||b[ie]?N?!(Z=ie):void 0:(t.dataTypes.unshift(ie),H(ie),!1)}),Z}return H(t.dataTypes[0])||!b["*"]&&H("*")}function fn(e,t){var i,l,b=n.ajaxSettings.flatOptions||{};for(i in t)t[i]!==void 0&&((b[i]?e:l=l||{})[i]=t[i]);return l&&n.extend(!0,e,l),e}function qi(e,t,i,l){var b,N,H,V,Z,se={},ie=e.dataTypes.slice();if(ie[1])for(H in e.converters)se[H.toLowerCase()]=e.converters[H];for(N=ie.shift();N;)if(e.responseFields[N]&&(i[e.responseFields[N]]=t),!Z&&l&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),Z=N,N=ie.shift()){if(N==="*")N=Z;else if(Z!=="*"&&Z!==N){if(!(H=se[Z+" "+N]||se["* "+N])){for(b in se)if((V=b.split(" "))[1]===N&&(H=se[Z+" "+V[0]]||se["* "+V[0]])){H===!0?H=se[b]:se[b]!==!0&&(N=V[0],ie.unshift(V[1]));break}}if(H!==!0)if(H&&e.throws)t=H(t);else try{t=H(t)}catch(me){return{state:"parsererror",error:H?me:"No conversion from "+Z+" to "+N}}}}return{state:"success",data:t}}dn.href=Lt.href,n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ii,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?fn(fn(e,n.ajaxSettings),t):fn(n.ajaxSettings,e)},ajaxPrefilter:ai(ni),ajaxTransport:ai(un),ajax:function(e,t){typeof e=="object"&&(t=e,e=void 0);var i,l,b,N,H,V,Z,se,ie=n.ajaxSetup({},t=t||{}),me=ie.context||ie,xe=ie.context&&(me.nodeType||me.jquery)?n(me):n.event,ge=n.Deferred(),be=n.Callbacks("once memory"),Ee=ie.statusCode||{},Me={},Pe={},_e="canceled",Te={readyState:0,getResponseHeader:function(Ae){var He;if(V){if(!N)for(N={};He=Ri.exec(b);)N[He[1].toLowerCase()+" "]=(N[He[1].toLowerCase()+" "]||[]).concat(He[2]);He=N[Ae.toLowerCase()+" "]}return He==null?null:He.join(", ")},getAllResponseHeaders:function(){return V?b:null},setRequestHeader:function(Ae,He){return V==null&&(Ae=Pe[Ae.toLowerCase()]=Pe[Ae.toLowerCase()]||Ae,Me[Ae]=He),this},overrideMimeType:function(Ae){return V==null&&(ie.mimeType=Ae),this},statusCode:function(Ae){if(Ae)if(V)Te.always(Ae[Te.status]);else for(var He in Ae)Ee[He]=[Ee[He],Ae[He]];return this},abort:function(Ae){return Ae=Ae||_e,i&&i.abort(Ae),Oe(0,Ae),this}};if(ge.promise(Te),ie.url=((e||ie.url||Lt.href)+"").replace(Pi,Lt.protocol+"//"),ie.type=t.method||t.type||ie.method||ie.type,ie.dataTypes=(ie.dataType||"*").toLowerCase().match(Ze)||[""],ie.crossDomain==null){e=u.createElement("a");try{e.href=ie.url,e.href=e.href,ie.crossDomain=dn.protocol+"//"+dn.host!=e.protocol+"//"+e.host}catch(Ae){ie.crossDomain=!0}}if(ie.data&&ie.processData&&typeof ie.data!="string"&&(ie.data=n.param(ie.data,ie.traditional)),oi(ni,ie,t,Te),!V){for(se in(Z=n.event&&ie.global)&&n.active++==0&&n.event.trigger("ajaxStart"),ie.type=ie.type.toUpperCase(),ie.hasContent=!Fi.test(ie.type),l=ie.url.replace(Oi,""),ie.hasContent?ie.data&&ie.processData&&(ie.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ie.data=ie.data.replace(ji,"+")):(e=ie.url.slice(l.length),ie.data&&(ie.processData||typeof ie.data=="string")&&(l+=(cn.test(l)?"&":"?")+ie.data,delete ie.data),ie.cache===!1&&(l=l.replace(Hi,"$1"),e=(cn.test(l)?"&":"?")+"_="+Zn.guid+++e),ie.url=l+e),ie.ifModified&&(n.lastModified[l]&&Te.setRequestHeader("If-Modified-Since",n.lastModified[l]),n.etag[l])&&Te.setRequestHeader("If-None-Match",n.etag[l]),(ie.data&&ie.hasContent&&ie.contentType!==!1||t.contentType)&&Te.setRequestHeader("Content-Type",ie.contentType),Te.setRequestHeader("Accept",ie.dataTypes[0]&&ie.accepts[ie.dataTypes[0]]?ie.accepts[ie.dataTypes[0]]+(ie.dataTypes[0]!=="*"?", "+ii+"; q=0.01":""):ie.accepts["*"]),ie.headers)Te.setRequestHeader(se,ie.headers[se]);if(ie.beforeSend&&(ie.beforeSend.call(me,Te,ie)===!1||V))return Te.abort();if(_e="abort",be.add(ie.complete),Te.done(ie.success),Te.fail(ie.error),i=oi(un,ie,t,Te)){if(Te.readyState=1,Z&&xe.trigger("ajaxSend",[Te,ie]),V)return Te;ie.async&&0<ie.timeout&&(H=he.setTimeout(function(){Te.abort("timeout")},ie.timeout));try{V=!1,i.send(Me,Oe)}catch(Ae){if(V)throw Ae;Oe(-1,Ae)}}else Oe(-1,"No Transport")}return Te;function Oe(Ae,He,ze,Ye){var it,Ct,wt,et=He;V||(V=!0,H&&he.clearTimeout(H),i=void 0,b=Ye||"",Te.readyState=0<Ae?4:0,Ye=200<=Ae&&Ae<300||Ae===304,ze&&(wt=(function($t,zi,hn){for(var Xt,rt,lt,yn,mn=$t.contents,at=$t.dataTypes;at[0]==="*";)at.shift(),Xt===void 0&&(Xt=$t.mimeType||zi.getResponseHeader("Content-Type"));if(Xt){for(rt in mn)if(mn[rt]&&mn[rt].test(Xt)){at.unshift(rt);break}}if(at[0]in hn)lt=at[0];else{for(rt in hn){if(!at[0]||$t.converters[rt+" "+at[0]]){lt=rt;break}yn=yn||rt}lt=lt||yn}if(lt)return lt!==at[0]&&at.unshift(lt),hn[lt]})(ie,Te,ze)),!Ye&&-1<n.inArray("script",ie.dataTypes)&&n.inArray("json",ie.dataTypes)<0&&(ie.converters["text script"]=function(){}),wt=qi(ie,wt,Te,Ye),Ye?(ie.ifModified&&((ze=Te.getResponseHeader("Last-Modified"))&&(n.lastModified[l]=ze),ze=Te.getResponseHeader("etag"))&&(n.etag[l]=ze),Ae===204||ie.type==="HEAD"?et="nocontent":Ae===304?et="notmodified":(et=wt.state,it=wt.data,Ye=!(Ct=wt.error))):(Ct=et,!Ae&&et||(et="error",Ae<0&&(Ae=0))),Te.status=Ae,Te.statusText=(He||et)+"",Ye?ge.resolveWith(me,[it,et,Te]):ge.rejectWith(me,[Te,et,Ct]),Te.statusCode(Ee),Ee=void 0,Z&&xe.trigger(Ye?"ajaxSuccess":"ajaxError",[Te,ie,Ye?it:Ct]),be.fireWith(me,[Te,et]),Z&&(xe.trigger("ajaxComplete",[Te,ie]),--n.active||n.event.trigger("ajaxStop")))}},getJSON:function(e,t,i){return n.get(e,t,i,"json")},getScript:function(e,t){return n.get(e,void 0,t,"script")}}),n.each(["get","post"],function(e,t){n[t]=function(i,l,b,N){return a(l)&&(N=N||b,b=l,l=void 0),n.ajax(n.extend({url:i,type:t,dataType:N,data:l,success:b},n.isPlainObject(i)&&i))}}),n.ajaxPrefilter(function(e){for(var t in e.headers)t.toLowerCase()==="content-type"&&(e.contentType=e.headers[t]||"")}),n._evalUrl=function(e,t,i){return n.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(l){n.globalEval(l,t,i)}})},n.fn.extend({wrapAll:function(e){return this[0]&&(a(e)&&(e=e.call(this[0])),e=n(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(e){return a(e)?this.each(function(t){n(this).wrapInner(e.call(this,t))}):this.each(function(){var t=n(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=a(e);return this.each(function(i){n(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){n(this).replaceWith(this.childNodes)}),this}}),n.expr.pseudos.hidden=function(e){return!n.expr.pseudos.visible(e)},n.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},n.ajaxSettings.xhr=function(){try{return new he.XMLHttpRequest}catch(e){}};var Bi={0:200,1223:204},Mt=n.ajaxSettings.xhr(),ri=(C.cors=!!Mt&&"withCredentials"in Mt,C.ajax=Mt=!!Mt,n.ajaxTransport(function(e){var t,i;if(C.cors||Mt&&!e.crossDomain)return{send:function(l,b){var N,H=e.xhr();if(H.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(N in e.xhrFields)H[N]=e.xhrFields[N];for(N in e.mimeType&&H.overrideMimeType&&H.overrideMimeType(e.mimeType),e.crossDomain||l["X-Requested-With"]||(l["X-Requested-With"]="XMLHttpRequest"),l)H.setRequestHeader(N,l[N]);t=function(V){return function(){t&&(t=i=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,V==="abort"?H.abort():V==="error"?typeof H.status!="number"?b(0,"error"):b(H.status,H.statusText):b(Bi[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=t(),i=H.onerror=H.ontimeout=t("error"),H.onabort!==void 0?H.onabort=i:H.onreadystatechange=function(){H.readyState===4&&he.setTimeout(function(){t&&i()})},t=t("abort");try{H.send(e.hasContent&&e.data||null)}catch(V){if(t)throw V}},abort:function(){t&&t()}}}),n.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),n.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 n.globalEval(e),e}}}),n.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),n.ajaxTransport("script",function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(l,b){t=n("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(N){t.remove(),i=null,N&&b(N.type==="error"?404:200,N.type)}),u.head.appendChild(t[0])},abort:function(){i&&i()}}}),[]),pn=/(=)\?(?=&|$)|\?\?/,Wi=(n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ri.pop()||n.expando+"_"+Zn.guid++;return this[e]=!0,e}}),n.ajaxPrefilter("json jsonp",function(e,t,i){var l,b,N,H=e.jsonp!==!1&&(pn.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&pn.test(e.data)&&"data");if(H||e.dataTypes[0]==="jsonp")return l=e.jsonpCallback=a(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,H?e[H]=e[H].replace(pn,"$1"+l):e.jsonp!==!1&&(e.url+=(cn.test(e.url)?"&":"?")+e.jsonp+"="+l),e.converters["script json"]=function(){return N||n.error(l+" was not called"),N[0]},e.dataTypes[0]="json",b=he[l],he[l]=function(){N=arguments},i.always(function(){b===void 0?n(he).removeProp(l):he[l]=b,e[l]&&(e.jsonpCallback=t.jsonpCallback,ri.push(l)),N&&a(b)&&b(N[0]),N=b=void 0}),"script"}),C.createHTMLDocument=(($e=u.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",$e.childNodes.length===2),n.parseHTML=function(e,t,i){var l;return typeof e!="string"?[]:(typeof t=="boolean"&&(i=t,t=!1),t||(C.createHTMLDocument?((l=(t=u.implementation.createHTMLDocument("")).createElement("base")).href=u.location.href,t.head.appendChild(l)):t=u),l=!i&&[],(i=wn.exec(e))?[t.createElement(i[1])]:(i=Ln([e],t,l),l&&l.length&&n(l).remove(),n.merge([],i.childNodes)))},n.fn.load=function(e,t,i){var l,b,N,H=this,V=e.indexOf(" ");return-1<V&&(l=ut(e.slice(V)),e=e.slice(0,V)),a(t)?(i=t,t=void 0):t&&typeof t=="object"&&(b="POST"),0<H.length&&n.ajax({url:e,type:b||"GET",dataType:"html",data:t}).done(function(Z){N=arguments,H.html(l?n("<div>").append(n.parseHTML(Z)).find(l):Z)}).always(i&&function(Z,se){H.each(function(){i.apply(this,N||[Z.responseText,se,Z])})}),this},n.expr.pseudos.animated=function(e){return n.grep(n.timers,function(t){return e===t.elem}).length},n.offset={setOffset:function(e,t,i){var l,b,N,H,V=n.css(e,"position"),Z=n(e),se={};V==="static"&&(e.style.position="relative"),N=Z.offset(),l=n.css(e,"top"),H=n.css(e,"left"),V=(V==="absolute"||V==="fixed")&&-1<(l+H).indexOf("auto")?(b=(V=Z.position()).top,V.left):(b=parseFloat(l)||0,parseFloat(H)||0),(t=a(t)?t.call(e,i,n.extend({},N)):t).top!=null&&(se.top=t.top-N.top+b),t.left!=null&&(se.left=t.left-N.left+V),"using"in t?t.using.call(e,se):Z.css(se)}},n.fn.extend({offset:function(e){var t,i;return arguments.length?e===void 0?this:this.each(function(l){n.offset.setOffset(this,e,l)}):(i=this[0])?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,l=this[0],b={top:0,left:0};if(n.css(l,"position")==="fixed")t=l.getBoundingClientRect();else{for(t=this.offset(),i=l.ownerDocument,e=l.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&n.css(e,"position")==="static";)e=e.parentNode;e&&e!==l&&e.nodeType===1&&((b=n(e).offset()).top+=n.css(e,"borderTopWidth",!0),b.left+=n.css(e,"borderLeftWidth",!0))}return{top:t.top-b.top-n.css(l,"marginTop",!0),left:t.left-b.left-n.css(l,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&n.css(e,"position")==="static";)e=e.offsetParent;return e||ct})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=t==="pageYOffset";n.fn[e]=function(l){return tt(this,function(b,N,H){var V;if(p(b)?V=b:b.nodeType===9&&(V=b.defaultView),H===void 0)return V?V[t]:b[N];V?V.scrollTo(i?V.pageXOffset:H,i?H:V.pageYOffset):b[N]=H},e,l,arguments.length)}}),n.each(["top","left"],function(e,t){n.cssHooks[t]=Wn(C.pixelPosition,function(i,l){if(l)return l=It(i,t),nn.test(l)?n(i).position()[t]+"px":l})}),n.each({Height:"height",Width:"width"},function(e,t){n.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,l){n.fn[l]=function(b,N){var H=arguments.length&&(i||typeof b!="boolean"),V=i||(b===!0||N===!0?"margin":"border");return tt(this,function(Z,se,ie){var me;return p(Z)?l.indexOf("outer")===0?Z["inner"+e]:Z.document.documentElement["client"+e]:Z.nodeType===9?(me=Z.documentElement,Math.max(Z.body["scroll"+e],me["scroll"+e],Z.body["offset"+e],me["offset"+e],me["client"+e])):ie===void 0?n.css(Z,se,V):n.style(Z,se,ie,V)},t,H?b:void 0,H)}})}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){n.fn[t]=function(i){return this.on(t,i)}}),n.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,l){return this.on(t,e,i,l)},undelegate:function(e,t,i){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),n.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){n.fn[t]=function(i,l){return 0<arguments.length?this.on(t,null,i,l):this.trigger(t)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g);return n.proxy=function(e,t){var i,l;return typeof t=="string"&&(l=e[t],t=e,e=l),a(e)?(i=Y.call(arguments,2),(l=function(){return e.apply(t||this,i.concat(Y.call(arguments)))}).guid=e.guid=e.guid||n.guid++,l):void 0},n.holdReady=function(e){e?n.readyWait++:n.ready(!0)},n.isArray=Array.isArray,n.parseJSON=JSON.parse,n.nodeName=k,n.isFunction=a,n.isWindow=p,n.camelCase=Qe,n.type=S,n.now=Date.now,n.isNumeric=function(e){var t=n.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))},n.trim=function(e){return e==null?"":(e+"").replace(Wi,"$1")},typeof layui=="object"&&layui.define(function(e){e("jquery",layui.$=n)}),n}),layui.define(["jquery","lay"],function(he){"use strict";var x=layui.$,Q=layui.lay;he("component",function(K){var Y=(K=x.extend(!0,{isDeepReload:!1},K)).name,M="lay-"+Y+"-id",y={config:{},index:layui[Y]?layui[Y].index+1e4:0,CONST:x.extend(!0,{MOD_NAME:Y,MOD_ID:M,CLASS_THIS:"layui-this",CLASS_SHOW:"layui-show",CLASS_HIDE:"layui-hide",CLASS_HIDEV:"layui-hide-v",CLASS_DISABLED:"layui-disabled",CLASS_NONE:"layui-none"},K.CONST),set:function(I){return x.extend(!0,this.config,I),this},on:function(I,T){return layui.onevent.call(this,Y,I,T)}},d=function(){var I=this,T=I.config,T={config:T,id:T.id,reload:function(_){I.reload.call(I,_)}};return typeof K.extendsInstance=="function"&&x.extend(!0,T,K.extendsInstance.call(I)),T},A=function(I){var T=this;T.index=++y.index,T.config=x.extend(!0,{},T.config,y.config,I),typeof K.beforeInit=="function"&&K.beforeInit.call(T,T.config),T.init()};return A.prototype.config=K.config,A.prototype.reload=function(I,T){var _=this;_.config=x.extend(K.isDeepReload,{},_.config,I),_.init(!0,T)},A.prototype.init=function(I,T){var _,ee=this,C=ee.config,a=x(C.elem);return 1<a.length?(layui.each(a,function(){y.render(x.extend({},C,{elem:this}))}),ee):(_=Q.options(a[0]),I?C=ee.config=x.extend(_,C):x.extend(C,_),!I&&a.attr(M)?(_=y.getInst(a.attr(M)))?_.reload(C,T):void 0:(C.elem=x(C.elem),C.id=Q.hasOwn(C,"id")?C.id:a.attr("id")||ee.index,d.that[C.id]=ee,typeof K.beforeRender=="function"&&K.beforeRender.call(ee,C),typeof ee.render=="function"&&(y.cache.id[C.id]=null,a.attr(M,C.id),ee.render(I)),void(typeof ee.events=="function"&&ee.events())))},A.prototype.render=K.render,A.prototype.events=K.events,A.prototype.cache=function(I,T,_){var ee=this.config.elem,C=M+"-cache";if(ee){var a=ee.data(C)||{};if(T===void 0)return a[I];_?delete a[I]:a[I]=T,ee.data(C,a)}},A.prototype.removeCache=function(I){this.cache(I,null,!0)},d.that={},y.getInst=y.getThis=function(I){if(I===void 0)throw new Error("ID argument required");return d.that[I]},y.getAllInst=function(){return d.that},y.removeInst=function(I){delete d.that[I],delete y.cache.id[I]},y.cache={id:{}},y.Class=A,y.reload=function(I,T){if(I=y.getInst(I),I)return I.reload(T),d.call(I)},y.render=function(I){return I=new A(I),d.call(I)},y})}),(function(he,x){"use strict";var Q,K,Y,M=he.layui&&layui.define,y={getPath:(Y=document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"?document.currentScript.src:(function(){for(var a,p=document.getElementsByTagName("script"),u=p.length-1,s=u;0<s;s--)if(p[s].readyState==="interactive"){a=p[s].src;break}return a||p[u].src})(),(he.LAYUI_GLOBAL||{}).layer_dir||Y.substring(0,Y.lastIndexOf("/")+1)),config:{removeFocus:!0},end:{},beforeEnd:{},events:{resize:{}},minStackIndex:0,minStackArr:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(a,p){return a=a.currentStyle||he.getComputedStyle(a,null),a[a.getPropertyValue?"getPropertyValue":"getAttribute"](p)},link:function(a,p,u){var s,f,S,P,n,R;d.path&&(s=document.getElementsByTagName("head")[0],f=document.createElement("link"),S=((u=typeof p=="string"?p:u)||a).replace(/\.|\//g,""),P="layuicss-"+S,n="creating",R=0,f.rel="stylesheet",f.href=d.path+a,f.id=P,document.getElementById(P)||s.appendChild(f),typeof p=="function")&&(function k(X){var c=document.getElementById(P);return 100<++R?he.console&&console.error(S+".css: Invalid"):void(parseInt(y.getStyle(c,"width"))===1989?(X===n&&c.removeAttribute("lay-status"),c.getAttribute("lay-status")===n?setTimeout(k,100):p()):(c.setAttribute("lay-status",n),setTimeout(function(){k(n)},100)))})()}},d={v:"3.7.0",ie:(Y=navigator.userAgent.toLowerCase(),!!(he.ActiveXObject||"ActiveXObject"in he)&&((Y.match(/msie\s(\d+)/)||[])[1]||"11")),index:he.layer&&he.layer.v?1e5:0,path:y.getPath,config:function(a,p){return d.cache=y.config=Q.extend({},y.config,a=a||{}),d.path=y.config.path||d.path,typeof a.extend=="string"&&(a.extend=[a.extend]),y.config.path&&d.ready(),a.extend&&(M?layui.addcss("modules/layer/"+a.extend):y.link("css/"+a.extend)),this},ready:function(a){var p="layer",u=(M?"modules/":"css/")+"layer.css?v="+d.v;return M?layui["layui.all"]?typeof a=="function"&&a():layui.addcss(u,a,p):y.link(u,a,p),this},alert:function(a,p,u){var s=typeof p=="function";return d.open(Q.extend({content:a,yes:u=s?p:u},s?{}:p))},confirm:function(a,p,u,s){var f=typeof p=="function";return f&&(s=u,u=p),d.open(Q.extend({content:a,btn:y.btn,yes:u,btn2:s},f?{}:p))},msg:function(a,p,u){var s=typeof p=="function",f=y.config.skin,f=(f?f+" "+f+"-msg":"")||"layui-layer-msg",S=I.anim.length-1;return s&&(u=p),d.open(Q.extend({content:a,time:3e3,shade:!1,skin:f,title:!1,closeBtn:!1,btn:!1,resize:!1,end:u,removeFocus:!1},s&&!y.config.skin?{skin:f+" layui-layer-hui",anim:S}:((p=p||{}).icon!==-1&&(p.icon!==x||y.config.skin)||(p.skin=f+" "+(p.skin||"layui-layer-hui")),p)))},load:function(a,p){return d.open(Q.extend({type:3,icon:a||0,resize:!1,shade:.01,removeFocus:!1},p))},tips:function(a,p,u){return d.open(Q.extend({type:4,content:[a,p],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:260,removeFocus:!1},u))}},A=function(a){var p=this,u=function(){p.creat()};p.index=++d.index,p.config.maxWidth=Q(K).width()-30,p.config=Q.extend({},p.config,y.config,a),document.body?u():setTimeout(function(){u()},30)},I=(A.pt=A.prototype,["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"]),T=(I.anim={0:"layer-anim-00",1:"layer-anim-01",2:"layer-anim-02",3:"layer-anim-03",4:"layer-anim-04",5:"layer-anim-05",6:"layer-anim-06",slideDown:"layer-anim-slide-down",slideLeft:"layer-anim-slide-left",slideUp:"layer-anim-slide-up",slideRight:"layer-anim-slide-right"},I.SHADE="layui-layer-shade",I.MOVE="layui-layer-move","LAYUI-LAYER-SHADE-KEY"),_="LAYUI_LAYER_CONTENT_RECORD_HEIGHT",ee=(A.pt.config={type:0,shade:.3,fixed:!0,move:I[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,icon:-1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,minStack:!0,moveType:1,resize:!0,scrollbar:!0,tips:2},A.pt.vessel=function(a,p){var u,s=this.index,f=this.config,S=f.zIndex+s,n=typeof f.title=="object",P=f.maxmin&&(f.type===1||f.type===2),n=f.title?'<div class="layui-layer-title" style="'+(n?f.title[1]:"")+'">'+(n?f.title[0]:f.title)+"<span style='float:right;margin-right:20px;'>"+(f.title1?n?f.title1[0]:f.title1:"")+"</span></div>":"";return f.zIndex=S,p([f.shade?'<div class="'+I.SHADE+'" id="'+I.SHADE+s+'" times="'+s+'" style="z-index:'+(S-1)+'; "></div>':"",'<div class="'+I[0]+" layui-layer-"+y.type[f.type]+(f.type!=0&&f.type!=2||f.shade?"":" layui-layer-border")+" "+(f.skin||"")+'" id="'+I[0]+s+'" type="'+y.type[f.type]+'" times="'+s+'" showtime="'+f.time+'" conType="'+(a?"object":"string")+'" style="z-index: '+S+"; width:"+f.area[0]+";height:"+f.area[1]+";position:"+(f.fixed?"fixed;":"absolute;")+'">'+(a&&f.type!=2?"":n)+"<div"+(f.id?' id="'+f.id+'"':"")+' class="layui-layer-content'+(f.type==0&&f.icon!==-1?" layui-layer-padding":"")+(f.type==3?" layui-layer-loading"+f.icon:"")+'">'+(s=["layui-icon-tips","layui-icon-success","layui-icon-error","layui-icon-question","layui-icon-lock","layui-icon-face-cry","layui-icon-face-smile"],S="layui-anim layui-anim-rotate layui-anim-loop",f.type==0&&f.icon!==-1?'<i class="layui-layer-face layui-icon '+((u=f.icon==16?"layui-icon layui-icon-loading "+S:u)||s[f.icon]||s[0])+'"></i>':f.type==3?(u=["layui-icon-loading","layui-icon-loading-1"],f.icon==2?'<div class="layui-layer-loading-2 '+S+'"></div>':'<i class="layui-layer-loading-icon layui-icon '+(u[f.icon]||u[0])+" "+S+'"></i>'):"")+((f.type!=1||!a)&&f.content||"")+'</div><div class="layui-layer-setwin">'+(s=[],P&&(s.push('<span class="layui-layer-min"></span>'),s.push('<span class="layui-layer-max"></span>')),f.closeBtn&&s.push('<span class="layui-icon layui-icon-close '+[I[7],I[7]+(f.title?f.closeBtn:f.type==4?"1":"2")].join(" ")+'"></span>'),s.join(""))+"</div>"+(f.btn?(function(){var R="";typeof f.btn=="string"&&(f.btn=[f.btn]);for(var k,X=0,c=f.btn.length;X<c;X++)R+='<a class="'+I[6]+X+'">'+f.btn[X]+"</a>";return'<div class="'+(k=[I[6]],f.btnAlign&&k.push(I[6]+"-"+f.btnAlign),k.join(" "))+'">'+R+"</div>"})():"")+(f.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],n,Q('<div class="'+I.MOVE+'" id="'+I.MOVE+'"></div>')),this},A.pt.creat=function(){var a,p,u,s,f=this,S=f.config,P=f.index,n=typeof(X=S.content)=="object",R=Q("body"),k=function(c){var o;S.shift&&(S.anim=S.shift),I.anim[S.anim]&&(o="layer-anim "+I.anim[S.anim],c.addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){Q(this).removeClass(o)}))};if(S.id&&Q("."+I[0]).find("#"+S.id)[0])a=Q("#"+S.id).closest("."+I[0]),p=a.attr("times"),u=a.data("config"),s=Q("#"+I.SHADE+p),(a.data("maxminStatus")||{})==="min"?d.restore(p):u.hideOnClose&&(s.show(),a.show(),k(a),setTimeout(function(){s.css({opacity:s.data(T)})},10));else{switch(S.removeFocus&&document.activeElement&&document.activeElement.blur(),typeof S.area=="string"&&(S.area=S.area==="auto"?["",""]:[S.area,""]),d.ie==6&&(S.fixed=!1),S.type){case 0:S.btn="btn"in S?S.btn:y.btn[0],d.closeAll("dialog");break;case 2:var X=S.content=n?S.content:[S.content||"","auto"];S.content='<iframe scrolling="'+(S.content[1]||"auto")+'" allowtransparency="true" id="'+I[4]+P+'" name="'+I[4]+P+`" onload="this.className='';" class="layui-layer-load" frameborder="0" src="`+S.content[0]+'"></iframe>';break;case 3:delete S.title,delete S.closeBtn,S.icon===-1&&S.icon,d.closeAll("loading");break;case 4:n||(S.content=[S.content,"body"]),S.follow=S.content[1],S.content=S.content[0]+'<i class="layui-layer-TipsG"></i>',delete S.title,S.tips=typeof S.tips=="object"?S.tips:[S.tips,!0],S.tipsMore||d.closeAll("tips")}f.vessel(n,function(c,o,r){R.append(c[0]),n?S.type==2||S.type==4?Q("body").append(c[1]):X.parents("."+I[0])[0]||(X.data("display",X.css("display")).show().addClass("layui-layer-wrap").wrap(c[1]),Q("#"+I[0]+P).find("."+I[5]).before(o)):R.append(c[1]),Q("#"+I.MOVE)[0]||R.append(y.moveElem=r),f.layero=Q("#"+I[0]+P),f.shadeo=Q("#"+I.SHADE+P),S.scrollbar||y.setScrollbar(P)}).auto(P),f.shadeo.css({"background-color":S.shade[1]||"#000",opacity:S.shade[0]||S.shade,transition:S.shade[2]||""}),f.shadeo.data(T,S.shade[0]||S.shade),S.type==2&&d.ie==6&&f.layero.find("iframe").attr("src",X[0]),S.type==4?f.tips():(f.offset(),parseInt(y.getStyle(document.getElementById(I.MOVE),"z-index"))||(f.layero.css("visibility","hidden"),d.ready(function(){f.offset(),f.layero.css("visibility","visible")}))),!S.fixed||y.events.resize[f.index]||(y.events.resize[f.index]=function(){f.resize()},K.on("resize",y.events.resize[f.index])),f.layero.data("config",S),S.time<=0||setTimeout(function(){d.close(f.index)},S.time),f.move().callback(),k(f.layero)}},A.pt.resize=function(){var a=this,p=a.config;a.offset(),(/^\d+%$/.test(p.area[0])||/^\d+%$/.test(p.area[1]))&&a.auto(a.index),p.type==4&&a.tips()},A.pt.auto=function(P){var p=this.config,u=Q("#"+I[0]+P),s=((p.area[0]===""||p.area[0]==="auto")&&0<p.maxWidth&&(d.ie&&d.ie<8&&p.btn&&u.width(u.innerWidth()),u.outerWidth()>p.maxWidth)&&u.width(p.maxWidth),[u.innerWidth(),u.innerHeight()]),f=u.find(I[1]).outerHeight()||0,S=u.find("."+I[6]).outerHeight()||0,P=function(n){(n=u.find(n)).height(s[1]-f-S-2*(0|parseFloat(n.css("padding-top"))))};return p.type===2?P("iframe"):p.area[1]===""||p.area[1]==="auto"?0<p.maxHeight&&u.outerHeight()>p.maxHeight?(s[1]=p.maxHeight,P("."+I[5])):p.fixed&&s[1]>=K.height()&&(s[1]=K.height(),P("."+I[5])):P("."+I[5]),this},A.pt.offset=function(){var a=this,p=a.config,u=a.layero,s=[u.outerWidth(),u.outerHeight()],f=typeof p.offset=="object";a.offsetTop=(K.height()-s[1])/2,a.offsetLeft=(K.width()-s[0])/2,f?(a.offsetTop=p.offset[0],a.offsetLeft=p.offset[1]||a.offsetLeft):p.offset!=="auto"&&(p.offset==="t"?a.offsetTop=0:p.offset==="r"?a.offsetLeft=K.width()-s[0]:p.offset==="b"?a.offsetTop=K.height()-s[1]:p.offset==="l"?a.offsetLeft=0:p.offset==="lt"?(a.offsetTop=0,a.offsetLeft=0):p.offset==="lb"?(a.offsetTop=K.height()-s[1],a.offsetLeft=0):p.offset==="rt"?(a.offsetTop=0,a.offsetLeft=K.width()-s[0]):p.offset==="rb"?(a.offsetTop=K.height()-s[1],a.offsetLeft=K.width()-s[0]):a.offsetTop=p.offset),p.fixed||(a.offsetTop=/%$/.test(a.offsetTop)?K.height()*parseFloat(a.offsetTop)/100:parseFloat(a.offsetTop),a.offsetLeft=/%$/.test(a.offsetLeft)?K.width()*parseFloat(a.offsetLeft)/100:parseFloat(a.offsetLeft),a.offsetTop+=K.scrollTop(),a.offsetLeft+=K.scrollLeft()),u.data("maxminStatus")==="min"&&(a.offsetTop=K.height()-(u.find(I[1]).outerHeight()||0),a.offsetLeft=u.css("left")),u.css({top:a.offsetTop,left:a.offsetLeft})},A.pt.tips=function(){var a=this.config,p=this.layero,u=[p.outerWidth(),p.outerHeight()],S=Q(a.follow),s={width:(S=S[0]?S:Q("body")).outerWidth(),height:S.outerHeight(),top:S.offset().top,left:S.offset().left},f=p.find(".layui-layer-TipsG"),S=a.tips[0];a.tips[1]||f.remove(),s.autoLeft=function(){0<s.left+u[0]-K.width()?(s.tipLeft=s.left+s.width-u[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-u[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",a.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top-(.75*s.height<21?21-.5*s.height:0),s.tipTop=Math.max(s.tipTop,0),f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",a.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",a.tips[1])},function(){s.tipLeft=s.left-u[0]-10,s.tipTop=s.top-(.75*s.height<21?21-.5*s.height:0),s.tipTop=Math.max(s.tipTop,0),f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",a.tips[1])}],s.where[S-1](),S===1?s.top-(K.scrollTop()+u[1]+16)<0&&s.where[2]():S===2?0<K.width()-(s.left+s.width+u[0]+16)||s.where[3]():S===3?0<s.top-K.scrollTop()+s.height+u[1]+16-K.height()&&s.where[0]():S===4&&0<u[0]+16-s.left&&s.where[1](),p.find("."+I[5]).css({"background-color":a.tips[1],"padding-right":a.closeBtn?"30px":""}),p.css({left:s.tipLeft-(a.fixed?K.scrollLeft():0),top:s.tipTop-(a.fixed?K.scrollTop():0)})},A.pt.move=function(){var a=this,p=a.config,u=Q(document),s=a.layero,f=["LAY_MOVE_DICT","LAY_RESIZE_DICT"],S=s.find(p.move),P=s.find(".layui-layer-resize");return p.move&&S.css("cursor","move"),S.on("mousedown",function(n){var R,k;n.button||(R=Q(this),k={},p.move&&(k.layero=s,k.config=p,k.offset=[n.clientX-parseFloat(s.css("left")),n.clientY-parseFloat(s.css("top"))],R.data(f[0],k),y.eventMoveElem=R,y.moveElem.css("cursor","move").show()),n.preventDefault())}),P.on("mousedown",function(n){var R=Q(this),k={};p.resize&&(k.layero=s,k.config=p,k.offset=[n.clientX,n.clientY],k.index=a.index,k.area=[s.outerWidth(),s.outerHeight()],R.data(f[1],k),y.eventResizeElem=R,y.moveElem.css("cursor","se-resize").show()),n.preventDefault()}),y.docEvent||(u.on("mousemove",function(n){var R,k,X,c,o,r,g;y.eventMoveElem&&(R=(c=y.eventMoveElem.data(f[0])||{}).layero,o=c.config,r=n.clientX-c.offset[0],g=n.clientY-c.offset[1],k=R.css("position")==="fixed",n.preventDefault(),c.stX=k?0:K.scrollLeft(),c.stY=k?0:K.scrollTop(),o.moveOut||(k=K.width()-R.outerWidth()+c.stX,X=K.height()-R.outerHeight()+c.stY,k<(r=r<c.stX?c.stX:r)&&(r=k),X<(g=g<c.stY?c.stY:g)&&(g=X)),R.css({left:r,top:g})),y.eventResizeElem&&(o=(c=y.eventResizeElem.data(f[1])||{}).config,r=n.clientX-c.offset[0],g=n.clientY-c.offset[1],n.preventDefault(),d.style(c.index,{width:c.area[0]+r,height:c.area[1]+g}),o.resizing)&&o.resizing(c.layero)}).on("mouseup",function(n){var R,k;y.eventMoveElem&&(k=(R=y.eventMoveElem.data(f[0])||{}).config,y.eventMoveElem.removeData(f[0]),delete y.eventMoveElem,y.moveElem.hide(),k.moveEnd)&&k.moveEnd(R.layero),y.eventResizeElem&&(y.eventResizeElem.removeData(f[1]),delete y.eventResizeElem,y.moveElem.hide())}),y.docEvent=!0),a},A.pt.btnLoading=function(a,p){p?a.find(".layui-layer-btn-loading-icon")[0]||a.addClass("layui-layer-btn-is-loading").attr({disabled:""}).prepend('<i class="layui-layer-btn-loading-icon layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>'):a.removeClass("layui-layer-btn-is-loading").removeAttr("disabled").find(".layui-layer-btn-loading-icon").remove()},A.pt.callback=function(){var a=this,p=a.layero,u=a.config;a.openLayer(),u.success&&(u.type==2?p.find("iframe").on("load",function(){u.success(p,a.index,a)}):u.success(p,a.index,a)),d.ie==6&&a.IE6(p),p.find("."+I[6]).children("a").on("click",function(){var s,f=Q(this),S=f.index();f.attr("disabled")||(u.btnAsync?(s=S===0?u.yes||u.btn1:u["btn"+(S+1)],a.loading=function(P){a.btnLoading(f,P)},s?y.promiseLikeResolve(s.call(u,a.index,p,a)).then(function(P){P!==!1&&d.close(a.index)},function(P){P!==x&&he.console&&he.console.error("layer error hint: "+P)}):d.close(a.index)):S===0?u.yes?u.yes(a.index,p,a):u.btn1?u.btn1(a.index,p,a):d.close(a.index):(u["btn"+(S+1)]&&u["btn"+(S+1)](a.index,p,a))!==!1&&d.close(a.index))}),p.find("."+I[7]).on("click",function(){(u.cancel&&u.cancel(a.index,p,a))!==!1&&d.close(a.index)}),u.shadeClose&&a.shadeo.on("click",function(){d.close(a.index)}),p.find(".layui-layer-min").on("click",function(){(u.min&&u.min(p,a.index,a))!==!1&&d.min(a.index,u)}),p.find(".layui-layer-max").on("click",function(){Q(this).hasClass("layui-layer-maxmin")?(d.restore(a.index),u.restore&&u.restore(p,a.index,a)):(d.full(a.index,u),setTimeout(function(){u.full&&u.full(p,a.index,a)},100))}),u.end&&(y.end[a.index]=u.end),u.beforeEnd&&(y.beforeEnd[a.index]=Q.proxy(u.beforeEnd,u,p,a.index,a))},y.reselect=function(){Q.each(Q("select"),function(a,p){var u=Q(this);u.parents("."+I[0])[0]||u.attr("layer")==1&&Q("."+I[0]).length<1&&u.removeAttr("layer").show()})},A.pt.IE6=function(a){Q("select").each(function(p,u){var s=Q(this);s.parents("."+I[0])[0]||s.css("display")!=="none"&&s.attr({layer:"1"}).hide()})},A.pt.openLayer=function(){d.zIndex=this.config.zIndex,d.setTop=function(a){return d.zIndex=parseInt(a[0].style.zIndex),a.on("mousedown",function(){d.zIndex++,a.css("z-index",d.zIndex+1)}),d.zIndex}},y.record=function(a){if(!a[0])return he.console&&console.error("index error");var u=a.attr("type"),p=a.find(".layui-layer-content"),u=u===y.type[2]?p.children("iframe"):p,s=[a[0].style.width||y.getStyle(a[0],"width"),a[0].style.height||y.getStyle(a[0],"height"),a.position().top,a.position().left+parseFloat(a.css("margin-left"))];a.find(".layui-layer-max").addClass("layui-layer-maxmin"),a.attr({area:s}),p.data(_,y.getStyle(u[0],"height"))},y.setScrollbar=function(a){I.html.css("overflow","hidden")},y.restScrollbar=function(a){I.html.css("overflow")&&Q("."+I[0]).filter(function(){var p=Q(this);return(p.data("config")||{}).scrollbar===!1&&p.data("maxminStatus")!=="min"&&p.attr("times")!==String(a)}).length===0&&I.html.css("overflow","")},y.promiseLikeResolve=function(a){var p=Q.Deferred();return a&&typeof a.then=="function"?a.then(p.resolve,p.reject):p.resolve(a),p.promise()},(he.layer=d).getChildFrame=function(a,p){return p=p||Q("."+I[4]).attr("times"),Q("#"+I[0]+p).find("iframe").contents().find(a)},d.getFrameIndex=function(a){if(a)return Q("#"+a).parents("."+I[4]).attr("times")},d.iframeAuto=function(a){var p,u,s;a&&(p=d.getChildFrame("html",a).outerHeight(),u=(a=Q("#"+I[0]+a)).find(I[1]).outerHeight()||0,s=a.find("."+I[6]).outerHeight()||0,a.css({height:p+u+s}),a.find("iframe").css({height:p}))},d.iframeSrc=function(a,p){Q("#"+I[0]+a).find("iframe").attr("src",p)},d.style=function(s,p,u){var s=Q("#"+I[0]+s),f=s.find(".layui-layer-content"),S=s.attr("type"),P=s.find(I[1]).outerHeight()||0,n=s.find("."+I[6]).outerHeight()||0;s.attr("minLeft"),S!==y.type[3]&&S!==y.type[4]&&(u||(parseFloat(p.width)<=260&&(p.width=260),parseFloat(p.height)-P-n<=64&&(p.height=64+P+n)),s.css(p),n=s.find("."+I[6]).outerHeight()||0,S===y.type[2]?s.find("iframe").css({height:(typeof p.height=="number"?p.height:s.height())-P-n}):f.css({height:(typeof p.height=="number"?p.height:s.height())-P-n-parseFloat(f.css("padding-top"))-parseFloat(f.css("padding-bottom"))}))},d.min=function(a,p){var u,s,f,S,P,n,R=Q("#"+I[0]+a),k=R.data("maxminStatus");k!=="min"&&(k==="max"&&d.restore(a),R.data("maxminStatus","min"),p=p||R.data("config")||{},k=Q("#"+I.SHADE+a),u=R.find(".layui-layer-min"),s=R.find(I[1]).outerHeight()||0,S=(f=typeof(S=R.attr("minLeft"))=="string")?S:181*y.minStackIndex+"px",P=R.css("position"),n={width:180,height:s,position:"fixed",overflow:"hidden"},y.record(R),0<y.minStackArr.length&&(S=y.minStackArr[0],y.minStackArr.shift()),parseFloat(S)+180>K.width()&&(S=K.width()-180-(y.minStackArr.edgeIndex=y.minStackArr.edgeIndex||0,y.minStackArr.edgeIndex+=3))<0&&(S=0),p.minStack&&(n.left=S,n.top=K.height()-s,f||y.minStackIndex++,R.attr("minLeft",S)),R.attr("position",P),d.style(a,n,!0),u.hide(),R.attr("type")==="page"&&R.find(I[4]).hide(),y.restScrollbar(a),k.hide())},d.restore=function(a){var p=Q("#"+I[0]+a),u=Q("#"+I.SHADE+a),s=p.find(".layui-layer-content"),f=p.attr("area").split(","),S=p.attr("type"),P=p.data("config")||{},n=s.data(_);p.removeData("maxminStatus"),d.style(a,{width:f[0],height:f[1],top:parseFloat(f[2]),left:parseFloat(f[3]),position:p.attr("position"),overflow:"visible"},!0),p.find(".layui-layer-max").removeClass("layui-layer-maxmin"),p.find(".layui-layer-min").show(),S==="page"&&p.find(I[4]).show(),P.scrollbar?y.restScrollbar(a):y.setScrollbar(a),n!==x&&(s.removeData(_),(S===y.type[2]?s.children("iframe"):s).css({height:n})),u.show()},d.full=function(a){var p=Q("#"+I[0]+a),u=p.data("maxminStatus");u!=="max"&&(u==="min"&&d.restore(a),p.data("maxminStatus","max"),y.record(p),y.setScrollbar(a),setTimeout(function(){var s=p.css("position")==="fixed";d.style(a,{top:s?0:K.scrollTop(),left:s?0:K.scrollLeft(),width:"100%",height:"100%"},!0),p.find(".layui-layer-min").hide()},100))},d.title=function(a,p){Q("#"+I[0]+(p||d.index)).find(I[1]).html(a)},d.close=function(a,p){var u,s,f=(u=Q("."+I[0]).children("#"+a).closest("."+I[0]))[0]?(a=u.attr("times"),u):Q("#"+I[0]+a),S=f.attr("type"),P=f.data("config")||{},n=P.id&&P.hideOnClose;f[0]&&(s=function(){var R={slideDown:"layer-anim-slide-down-out",slideLeft:"layer-anim-slide-left-out",slideUp:"layer-anim-slide-up-out",slideRight:"layer-anim-slide-right-out"}[P.anim]||"layer-anim-close",k=function(){var c="layui-layer-wrap";if(n)return f.removeClass("layer-anim "+R),f.hide();if(S===y.type[1]&&f.attr("conType")==="object"){f.children(":not(."+I[5]+")").remove();for(var o=f.find("."+c),r=0;r<2;r++)o.unwrap();o.css("display",o.data("display")).removeClass(c)}else{if(S===y.type[2])try{var g=Q("#"+I[4]+a)[0];g.contentWindow.document.write(""),g.contentWindow.close(),f.find("."+I[5])[0].removeChild(g)}catch(w){}f[0].innerHTML="",f.remove()}typeof y.end[a]=="function"&&y.end[a](),delete y.end[a],typeof p=="function"&&p(),y.events.resize[a]&&(K.off("resize",y.events.resize[a]),delete y.events.resize[a])},X=Q("#"+I.SHADE+a);d.ie&&d.ie<10||!P.isOutAnim?X[n?"hide":"remove"]():(X.css({opacity:0}),setTimeout(function(){X[n?"hide":"remove"]()},350)),P.isOutAnim&&f.addClass("layer-anim "+R),d.ie==6&&y.reselect(),y.restScrollbar(a),typeof f.attr("minLeft")=="string"&&(y.minStackIndex--,y.minStackArr.push(f.attr("minLeft"))),d.ie&&d.ie<10||!P.isOutAnim?k():setTimeout(function(){k()},200)},n||typeof y.beforeEnd[a]!="function"?(delete y.beforeEnd[a],s()):y.promiseLikeResolve(y.beforeEnd[a]()).then(function(R){R!==!1&&(delete y.beforeEnd[a],s())},function(R){R!==x&&he.console&&he.console.error("layer error hint: "+R)}))},d.closeAll=function(a,p){typeof a=="function"&&(p=a,a=null);var u=Q("."+I[0]);Q.each(u,function(s){var f=Q(this),S=a?f.attr("type")===a:1;S&&d.close(f.attr("times"),s===u.length-1?p:null)}),u.length===0&&typeof p=="function"&&p()},d.closeLast=function(a,p){var u,s=[],f=Q.isArray(a);Q(typeof a=="string"?".layui-layer-"+a:".layui-layer").each(function(S,P){if(P=Q(P),f&&a.indexOf(P.attr("type"))===-1||P.css("display")==="none")return!0;s.push(Number(P.attr("times")))}),0<s.length&&(u=Math.max.apply(null,s),d.close(u,p))},d.cache||{}),C=function(a){return ee.skin?" "+ee.skin+" "+ee.skin+"-"+a:""};d.prompt=function(a,p){var u="",s="";typeof(a=a||{})=="function"&&(p=a),a.area&&(u='style="width: '+(S=a.area)[0]+"; height: "+S[1]+';"',delete a.area),a.placeholder&&(s=' placeholder="'+a.placeholder+'"');var f,S=a.formType==2?'<textarea class="layui-layer-input"'+u+s+"></textarea>":'<input type="'+(a.formType==1?"password":"text")+'" class="layui-layer-input"'+s+">",P=a.success;return delete a.success,d.open(Q.extend({type:1,btn:["确定","取消"],content:S,skin:"layui-layer-prompt"+C("prompt"),maxWidth:K.width(),success:function(n){(f=n.find(".layui-layer-input")).val(a.value||"").focus(),typeof P=="function"&&P(n)},resize:!1,yes:function(n){var R=f.val();R.length>(a.maxlength||500)?d.tips("最多输入"+(a.maxlength||500)+"个字符",f,{tips:1}):p&&p(R,n,f)}},a))},d.tab=function(a){var p=(a=a||{}).tab||{},u="layui-this",s=a.success;return delete a.success,d.open(Q.extend({type:1,skin:"layui-layer-tab"+C("tab"),resize:!1,title:(function(){var f=p.length,S=1,P="";if(0<f)for(P='<span class="'+u+'">'+p[0].title+"</span>";S<f;S++)P+="<span>"+p[S].title+"</span>";return P})(),content:'<ul class="layui-layer-tabmain">'+(function(){var f=p.length,S=1,P="";if(0<f)for(P='<li class="layui-layer-tabli '+u+'">'+(p[0].content||"no content")+"</li>";S<f;S++)P+='<li class="layui-layer-tabli">'+(p[S].content||"no content")+"</li>";return P})()+"</ul>",success:function(f){var S=f.find(".layui-layer-title").children(),P=f.find(".layui-layer-tabmain").children();S.on("mousedown",function(R){R.stopPropagation?R.stopPropagation():R.cancelBubble=!0;var R=Q(this),k=R.index();R.addClass(u).siblings().removeClass(u),P.eq(k).show().siblings().hide(),typeof a.change=="function"&&a.change(k)}),typeof s=="function"&&s(f)}},a))},d.photos=function(a,p,u){var s={};if((a=Q.extend(!0,{toolbar:!0,footer:!0},a)).photos){var X=!(typeof a.photos=="string"||a.photos instanceof Q),f=X?a.photos:{},S=f.data||[],P=f.start||0,n=a.success;if(s.imgIndex=1+(0|P),a.img=a.img||"img",delete a.success,X){if(S.length===0)return d.msg("没有图片")}else{var R=Q(a.photos),k=function(){S=[],R.find(a.img).each(function(g){var w=Q(this);w.attr("layer-index",g),S.push({alt:w.attr("alt"),pid:w.attr("layer-pid"),src:w.attr("lay-src")||w.attr("layer-src")||w.attr("src"),thumb:w.attr("src")})})};if(k(),p||R.on("click",a.img,function(){k();var g=Q(this).attr("layer-index");d.photos(Q.extend(a,{photos:{start:g,data:S,tab:a.tab},full:a.full}),!0)}),!p)return}s.imgprev=function(g){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=S.length),s.tabimg(g)},s.imgnext=function(g,w){s.imgIndex++,s.imgIndex>S.length&&(s.imgIndex=1,w)||s.tabimg(g)},s.keyup=function(g){var w;s.end||(w=g.keyCode,g.preventDefault(),w===37?s.imgprev(!0):w===39?s.imgnext(!0):w===27&&d.close(s.index))},s.tabimg=function(g){if(!(S.length<=1))return f.start=s.imgIndex-1,d.close(s.index),d.photos(a,!0,g)},s.isNumber=function(g){return typeof g=="number"&&!isNaN(g)},s.image={},s.getTransform=function(z){var w=[],F=z.rotate,O=z.scaleX,z=z.scale;return s.isNumber(F)&&F!==0&&w.push("rotate("+F+"deg)"),s.isNumber(O)&&O!==1&&w.push("scaleX("+O+")"),s.isNumber(z)&&w.push("scale("+z+")"),w.length?w.join(" "):"none"},s.event=function(g,w,F){var O,z;s.main.find(".layui-layer-photos-prev").on("click",function(ne){ne.preventDefault(),s.imgprev(!0)}),s.main.find(".layui-layer-photos-next").on("click",function(ne){ne.preventDefault(),s.imgnext(!0)}),Q(document).on("keyup",s.keyup),g.off("click").on("click","*[toolbar-event]",function(){var ne=Q(this);switch(ne.attr("toolbar-event")){case"rotate":s.image.rotate=((s.image.rotate||0)+Number(ne.attr("data-option")))%360,s.imgElem.css({transform:s.getTransform(s.image)});break;case"scalex":s.image.scaleX=s.image.scaleX===-1?1:-1,s.imgElem.css({transform:s.getTransform(s.image)});break;case"zoom":var te=Number(ne.attr("data-option"));s.image.scale=(s.image.scale||1)+te,te<0&&s.image.scale<0-te&&(s.image.scale=0-te),s.imgElem.css({transform:s.getTransform(s.image)});break;case"reset":s.image.scaleX=1,s.image.scale=1,s.image.rotate=0,s.imgElem.css({transform:"none"});break;case"close":d.close(w)}F.offset(),F.auto(w)}),s.main.on("mousewheel DOMMouseScroll",function(ne){var te=ne.originalEvent.wheelDelta||-ne.originalEvent.detail,re=s.main.find('[toolbar-event="zoom"]');(0<te?re.eq(0):re.eq(1)).trigger("click"),ne.preventDefault()}),(he.layui||he.lay)&&(O=he.layui.lay||he.lay,z=function(ne,te){var re=Date.now()-te.timeStart,re=te.distanceX/re,D=K.width()/3;(.25<Math.abs(re)||Math.abs(te.distanceX)>D)&&(te.direction==="left"?s.imgnext(!0):te.direction==="right"&&s.imgprev(!0))},Q.each([F.shadeo,s.main],function(ne,te){O.touchSwipe(te,{onTouchEnd:z})}))},s.loadi=d.load(1,{shade:!("shade"in a)&&[.9,x,"unset"],scrollbar:!1});var X=S[P].src,c=function(g){d.close(s.loadi);var w,F=S[P].alt||"";u&&(a.anim=-1),s.index=d.open(Q.extend({type:1,id:"layui-layer-photos",area:(g=[g.width,g.height],w=[Q(he).width()-100,Q(he).height()-100],!a.full&&(w[0]<g[0]||w[1]<g[1])&&((w=[g[0]/w[0],g[1]/w[1]])[1]<w[0]?(g[0]=g[0]/w[0],g[1]=g[1]/w[0]):w[0]<w[1]&&(g[0]=g[0]/w[1],g[1]=g[1]/w[1])),[g[0]+"px",g[1]+"px"]),title:!1,shade:[.9,x,"unset"],shadeClose:!0,closeBtn:!1,move:".layer-layer-photos-main img",moveType:1,scrollbar:!1,moveOut:!0,anim:5,isOutAnim:!1,skin:"layui-layer-photos"+C("photos"),content:'<div class="layer-layer-photos-main"><img src="'+S[P].src+'" alt="'+F+'" layer-pid="'+(S[P].pid||"")+'">'+(w=['<div class="layui-layer-photos-pointer">'],1<S.length&&w.push(['<div class="layer-layer-photos-page">','<span class="layui-icon layui-icon-left layui-layer-photos-prev"></span>','<span class="layui-icon layui-icon-right layui-layer-photos-next"></span>',"</div>"].join("")),a.toolbar&&w.push(['<div class="layui-layer-photos-toolbar layui-layer-photos-header">','<span toolbar-event="rotate" data-option="90" title="旋转"><i class="layui-icon layui-icon-refresh"></i></span>','<span toolbar-event="scalex" title="变换"><i class="layui-icon layui-icon-slider"></i></span>','<span toolbar-event="zoom" data-option="0.1" title="放大"><i class="layui-icon layui-icon-add-circle"></i></span>','<span toolbar-event="zoom" data-option="-0.1" title="缩小"><i class="layui-icon layui-icon-reduce-circle"></i></span>','<span toolbar-event="reset" title="还原"><i class="layui-icon layui-icon-refresh-1"></i></span>','<span toolbar-event="close" title="关闭"><i class="layui-icon layui-icon-close"></i></span>',"</div>"].join("")),a.footer&&w.push(['<div class="layui-layer-photos-toolbar layui-layer-photos-footer">',"<h3>"+F+"</h3>","<em>"+s.imgIndex+" / "+S.length+"</em>",'<a href="'+S[P].src+'" target="_blank">查看原图</a>',"</div>"].join("")),w.push("</div>"),w.join(""))+"</div>",success:function(O,z,ne){s.main=O.find(".layer-layer-photos-main"),s.footer=O.find(".layui-layer-photos-footer"),s.imgElem=s.main.children("img"),s.event(O,z,ne),a.tab&&a.tab(S[P],O),typeof n=="function"&&n(O)},end:function(){s.end=!0,Q(document).off("keyup",s.keyup)}},a))},o=function(){d.close(s.loadi),d.msg("当前图片地址异常,<br>是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1<S.length&&s.imgnext(!0,!0)}})},r=new Image;r.src=X,r.complete?c(r):(r.onload=function(){r.onload=null,c(r)},r.onerror=function(g){r.onerror=null,o(g)})}},y.run=function(p){K=(Q=p)(he);var p=navigator.userAgent.toLowerCase(),p=/android|iphone|ipod|ipad|ios/.test(p),u=Q(he);p&&Q.each({Height:"height",Width:"width"},function(s,f){var S="inner"+s;K[f]=function(){return S in he?he[S]:u[f]()}}),I.html=Q("html"),d.open=function(s){return new A(s).index}},he.layui&&layui.define?(d.ready(),layui.define(["jquery","lay"],function(a){d.path=layui.cache.dir,y.run(layui.$),a("layer",he.layer=d)})):typeof define=="function"&&define.amd?define(["jquery"],function(){return y.run(he.jQuery),d}):(d.ready(),y.run(he.jQuery))})(window),layui.define("jquery",function(he){"use strict";var x=layui.$,Q=layui.hint(),K={fixbar:function(Y){var M,y,d,A,I="layui-fixbar",T=x(document),_=(Y=x.extend(!0,{target:"body",bars:[],default:!0,margin:160,duration:320},Y),x(Y.target)),ee=Y.scroll?x(Y.scroll):x(Y.target==="body"?T:_),C=(Y.default&&(Y.bar1&&Y.bars.push({type:"bar1",icon:"layui-icon-chat"}),Y.bar2&&Y.bars.push({type:"bar2",icon:"layui-icon-help"}),Y.bars.push({type:"top",icon:"layui-icon-top"})),x("<ul>").addClass(I));layui.each(Y.bars,function(a,p){var u=x('<li class="layui-icon">');u.addClass(p.icon).attr({"lay-type":p.type,style:p.style||(Y.bgcolor?"background-color: "+Y.bgcolor:"")}).html(p.content),u.on("click",function(){var s=x(this).attr("lay-type");s==="top"&&(Y.target==="body"?x("html,body"):ee).animate({scrollTop:0},Y.duration),typeof Y.click=="function"&&Y.click.call(this,s)}),layui.type(Y.on)==="object"&&layui.each(Y.on,function(s,f){u.on(s,function(){var S=x(this).attr("lay-type");typeof f=="function"&&f.call(this,S)})}),p.type==="top"&&(u.addClass("layui-fixbar-top"),M=u),C.append(u)}),_.find("."+I).remove(),typeof Y.css=="object"&&C.css(Y.css),_.append(C),M&&(d=(function a(){return ee.scrollTop()>=Y.margin?y||(M.show(),y=1):y&&(M.hide(),y=0),a})()),ee.on("scroll",function(){d&&(clearTimeout(A),A=setTimeout(function(){d()},100))})},countdown:function(Y){Y=x.extend(!0,{date:new Date,now:new Date},Y);var M=arguments,y=(1<M.length&&(Y.date=new Date(M[0]),Y.now=new Date(M[1]),Y.clock=M[2]),{options:Y,clear:function(){clearTimeout(y.timer)},reload:function(A){this.clear(),x.extend(!0,this.options,{now:new Date},A),d()}}),d=(typeof Y.ready=="function"&&Y.ready(),(function A(){var T=new Date(Y.date),I=new Date(Y.now),T=0<(T=T.getTime()-I.getTime())?T:0,_={d:Math.floor(T/864e5),h:Math.floor(T/36e5)%24,m:Math.floor(T/6e4)%60,s:Math.floor(T/1e3)%60};return 1<M.length&&(_=[_.d,_.h,_.m,_.s]),y.timer=setTimeout(function(){I.setTime(I.getTime()+1e3),Y.now=I,d()},1e3),typeof Y.clock=="function"&&Y.clock(_,y),T<=0&&(clearTimeout(y.timer),typeof Y.done=="function")&&Y.done(_,y),A})());return y},timeAgo:function(Y,M){var y=this,d=[[],[]],A=new Date().getTime()-new Date(Y).getTime();return 26784e5<A?(A=new Date(Y),d[0][0]=y.digit(A.getFullYear(),4),d[0][1]=y.digit(A.getMonth()+1),d[0][2]=y.digit(A.getDate()),M||(d[1][0]=y.digit(A.getHours()),d[1][1]=y.digit(A.getMinutes()),d[1][2]=y.digit(A.getSeconds())),d[0].join("-")+" "+d[1].join(":")):864e5<=A?(A/1e3/60/60/24|0)+" 天前":36e5<=A?(A/1e3/60/60|0)+" 小时前":18e4<=A?(A/1e3/60|0)+" 分钟前":A<0?"未来":"刚刚"},digit:function(Y,M){var y="";M=M||2;for(var d=(Y=String(Y)).length;d<M;d++)y+="0";return Y<Math.pow(10,M)?y+(0|Y):Y},toDateString:function(Y,M,y){var d,A,I,T,_,ee,C,a,p,u,s;return Y===null||Y===""?"":(d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,A=this,(Y=(function(f){if(f===void 0)return new Date;if(!isNaN(f))return new Date(typeof f=="string"?parseInt(f):f);if(typeof f=="string"&&!/Z$/i.test(f)){var S,P,n=f.match(d);if(n)return S=n[2]-1||0,P=(n[7]||"0").substring(0,3),new Date(n[1],S,n[3]||1,n[4]||0,n[5]||0,n[6]||0,P)}return new Date(f)})(Y)).getDate()?(I=Y.getFullYear(),T=Y.getMonth(),_=Y.getDate(),ee=Y.getHours(),C=Y.getMinutes(),a=Y.getSeconds(),p=Y.getMilliseconds(),u=y&&y.customMeridiem||function(f,S){return f=100*f+S,f<600?"凌晨":f<900?"早上":f<1100?"上午":f<1300?"中午":f<1800?"下午":"晚上"},s={yy:function(){return String(I).slice(-2)},yyyy:function(){return A.digit(I,4)},M:function(){return String(T+1)},MM:function(){return A.digit(T+1)},d:function(){return String(_)},dd:function(){return A.digit(_)},H:function(){return String(ee)},HH:function(){return A.digit(ee)},h:function(){return String(ee%12||12)},hh:function(){return A.digit(ee%12||12)},A:function(){return u(ee,C)},m:function(){return String(C)},mm:function(){return A.digit(C)},s:function(){return String(a)},ss:function(){return A.digit(a)},SSS:function(){return A.digit(p,3)}},(M=M||"yyyy-MM-dd HH:mm:ss").replace(/\[([^\]]+)]|y{1,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|SSS/g,function(f,S){return S||s[f]&&s[f]()||f})):(Q.error('Invalid millisecond for "util.toDateString(millisecond)"'),""))},escape:function(Y){return Y==null?"":/[<"'>]|&(?=#?[a-zA-Z0-9]+)/g.test(Y+="")?Y.replace(/&(?=#?[a-zA-Z0-9]+;?)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;"):Y},unescape:function(Y){return Y==null?"":String(Y).replace(/\&quot;/g,'"').replace(/\&#39;/g,"'").replace(/\&gt;/g,">").replace(/\&lt;/g,"<").replace(/\&amp;/g,"&")},openWin:function(Y){var M=(Y=Y||{}).window||window.open(Y.url||"",Y.target,Y.specs);Y.url||(M.document.open("text/html","replace"),M.document.write(Y.content||""),M.document.close())},toVisibleArea:function(Y){var M,y,d,A,I,T,_,ee;(Y=x.extend({margin:160,duration:200,type:"y"},Y)).scrollElem[0]&&Y.thisElem[0]&&(M=Y.scrollElem,_=Y.thisElem,d=(I=Y.type==="y")?"top":"left",A=M[y=I?"scrollTop":"scrollLeft"](),I=M[I?"height":"width"](),T=M.offset()[d],ee={},(_=_.offset()[d]-T)>I-Y.margin||_<Y.margin)&&(ee[y]=_-I/2+A,M.animate(ee,Y.duration))},on:function(Y,M,y){typeof Y=="object"&&(y=M||{},M=Y,Y=y.attr||"lay-on");var d,A=(y=x.extend({elem:"body",trigger:"click"},typeof y=="object"?y:{trigger:y})).elem=x(y.elem),I="["+Y+"]",T="UTIL_ON_DATA";if(A[0])return A.data(T)||A.data(T,{events:{}}),T=A.data(T),d=Y+"_"+y.trigger,M=T.events[d]=x.extend(!0,T.events[d],M),d=y.trigger+".lay_util_on",A.off(d,I),A.on(d,I,function(_){var ee=x(this),C=ee.attr(Y);typeof M[C]=="function"&&M[C].call(this,ee,_)}),M}};K.event=K.on,he("util",K)}),layui.define(["jquery","laytpl","lay","util"],function(he){"use strict";var x,Q,K,Y=layui.$,M=layui.laytpl,y=layui.util,d=(layui.hint(),layui.device().mobile?"touchstart":"mousedown"),A="dropdown",I="layui_dropdown_index_opened",T="lay-"+A+"-id",_={config:{customName:{id:"id",title:"title",children:"child"}},index:layui[A]?layui[A].index+1e4:0,set:function(o){var r=this;return r.config=Y.extend({},r.config,o),r},on:function(o,r){return layui.onevent.call(this,A,o,r)}},ee=function(){var o=this,r=o.config,g=r.id;return{config:r,reload:function(w){o.reload.call(o,w)},reloadData:function(w){_.reloadData(g,w)},close:function(){o.remove()},open:function(){o.render()}}},C="layui-dropdown",a="layui-menu-item-up",p="layui-menu-item-down",u="layui-menu-body-title",s="layui-menu-item-group",f="layui-menu-item-parent",S="layui-menu-item-checked",P="layui-menu-item-checked2",n="layui-menu-body-panel",R="layui-menu-body-panel-left",k="layui-dropdown-shade",X="."+s+">."+u,c=function(o){var r=this;r.index=++_.index,r.config=Y.extend({},r.config,_.config,o),r.init()};c.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:[200,300],shade:0,accordion:!1,closeOnClick:!0},c.prototype.reload=function(o,r){var g=this;g.config=Y.extend({},g.config,o),g.init(!0,r)},c.prototype.init=function(o,r){var g=this,w=g.config,F=Y(w.elem);return 1<F.length?(layui.each(F,function(){_.render(Y.extend({},w,{elem:this}))}),g):(Y.extend(w,lay.options(F[0])),!o&&F.attr(T)?(o=ee.getThis(F.attr(T)))?o.reload(w,r):void 0:(w.elem=Y(w.elem),w.target=Y("body"),w.id="id"in w?w.id:F.attr("id")||g.index,ee.that[w.id]=g,F.attr(T,w.id),w.customName=Y.extend({},_.config.customName,w.customName),w.trigger==="hover"&&(w.trigger="mouseenter"),(w.show||r==="reloadData"&&g.mainElem&&w.target.find(g.mainElem.get(0)).length)&&g.render(r),void g.events()))},c.prototype.render=function(o){var r,g=this,w=g.config,F=w.customName,O=function(re,D){return layui.each(D,function(v,L){var j,J=L[F.children]&&0<L[F.children].length,$=("isSpreadItem"in L?L:w).isSpreadItem,oe=(m=y.escape(L[F.title]),oe=L.templet||w.templet,m=oe?typeof oe=="function"?oe(L):M(oe).render(L):m),m=(J&&(L.type=L.type||"parent"),L.type?{group:"group",parent:"parent","-":"-"}[L.type]||"parent":"");(m==="-"||L[F.title]||L[F.id]||J)&&((oe=Y(["<li"+(j={group:"layui-menu-item-group"+(w.isAllowSpread?$?" layui-menu-item-down":" layui-menu-item-up":""),parent:f,"-":"layui-menu-item-divider"},J||m?' class="'+j[m]+'"':L.disabled?' class="layui-disabled"':"")+">",(j="href"in L?'<a href="'+L.href+'" target="'+(L.target||"_self")+'">'+oe+"</a>":oe,J?'<div class="'+u+'">'+j+(m==="parent"?'<i class="layui-icon layui-icon-right"></i>':m==="group"&&w.isAllowSpread?'<i class="layui-icon layui-icon-'+($?"up":"down")+'"></i>':"")+"</div>":'<div class="'+u+'">'+j+"</div>"),"</li>"].join(""))).data("item",L),J&&($=Y('<div class="layui-panel layui-menu-body-panel"></div>'),j=Y("<ul></ul>"),m==="parent"?($.append(O(j,L[F.children])),oe.append($)):oe.append(O(j,L[F.children]))),re.append(oe))}),re},z=['<div class="layui-dropdown layui-border-box layui-panel layui-anim layui-anim-downbit" '+T+'="'+w.id+'">',"</div>"].join(""),ne=w.content||(ne=Y('<ul class="layui-menu layui-dropdown-menu"></ul>'),0<w.data.length?O(ne,w.data):ne.html('<li class="layui-menu-item-none">暂无数据</li>'),ne),te=ee.findMainElem(w.id);o==="reloadData"&&te.length?(r=g.mainElem=te).html(ne):((r=g.mainElem=Y(z)).append(ne),r.addClass(w.className),r.attr("style",w.style),g.remove(_.thisId),w.target.append(r),w.elem.data(I,!0),o=w.shade?'<div class="'+k+'" style="z-index:'+(r.css("z-index")-1)+"; background-color: "+(w.shade[1]||"#000")+"; opacity: "+(w.shade[0]||w.shade)+'"></div>':"",r.before(o),w.trigger==="mouseenter"&&r.on("mouseenter",function(){clearTimeout(ee.timer)}).on("mouseleave",function(){g.delayRemove()})),g.position(),_.thisId=w.id,r.find(".layui-menu").on(d,function(re){layui.stope(re)}),r.find(".layui-menu li").on("click",function(re){var D=Y(this),v=D.data("item")||{},L=v[F.children]&&0<v[F.children].length,j=w.clickScope==="all";v.disabled||L&&!j||v.type==="-"||((typeof w.click=="function"?w.click(v,D,re):null)===!1||L||g.remove(),layui.stope(re))}),r.find(X).on("click",function(re){var D=Y(this).parent();(D.data("item")||{}).type==="group"&&w.isAllowSpread&&ee.spread(D,w.accordion)}),typeof w.ready=="function"&&w.ready(r,w.elem)},c.prototype.position=function(o){var r=this.config;lay.position(r.elem[0],this.mainElem[0],{position:r.position,e:this.e,clickType:r.trigger==="contextmenu"?"right":null,align:r.align||null})},c.prototype.remove=function(o){o=o||this.config.id;var r=ee.getThis(o);r&&(r=r.config,(o=ee.findMainElem(o))[0])&&(o.prev("."+k).remove(),o.remove(),r.elem.removeData(I),delete _.thisId,typeof r.close=="function")&&r.close(r.elem)},c.prototype.normalizedDelay=function(){var o=this.config,o=[].concat(o.delay);return{show:o[0],hide:o[1]!==void 0?o[1]:o[0]}},c.prototype.delayRemove=function(){var o=this;o.config,clearTimeout(ee.timer),ee.timer=setTimeout(function(){o.remove()},o.normalizedDelay().hide)},c.prototype.events=function(){var o=this,r=o.config,g=r.trigger==="mouseenter",w=r.trigger+".lay_dropdown_render";o.thisEventElem&&o.thisEventElem.off(w),o.thisEventElem=r.elem,r.elem.off(w).on(w,function(F){clearTimeout(ee.timer),o.e=F;var O=r.elem.data(I);g?O||(ee.timer=setTimeout(function(){o.render()},o.normalizedDelay().show)):r.closeOnClick&&O&&r.trigger==="click"?o.remove():o.render(),F.preventDefault()}),g&&r.elem.on("mouseleave",function(){o.delayRemove()})},ee.that={},ee.getThis=function(o){if(o===void 0)throw new Error("ID argument required");return ee.that[o]},ee.findMainElem=function(o){return Y("."+C+"["+T+'="'+o+'"]')},ee.spread=function(o,r){var g=o.children("ul"),w=o.hasClass(a),F=function(){Y(this).css({display:""})};g.is(":animated")||(w?(o.removeClass(a).addClass(p),g.hide().stop().slideDown(200,F)):(g.stop().slideUp(200,F),o.removeClass(p).addClass(a)),w&&r&&((g=o.siblings("."+p)).children("ul").stop().slideUp(200,F),g.removeClass(p).addClass(a)))},x=Y(window),Q=Y(document),x.on("resize",function(){if(_.thisId){var o=ee.getThis(_.thisId);if(o)return!(o.mainElem&&!o.mainElem[0]||!Y("."+C)[0])&&void(o.config.trigger==="contextmenu"?o.remove():o.position())}}),lay(Q).on(d,function(o){if(_.thisId){var r=ee.getThis(_.thisId);if(r){var g=r.config,w=lay.isTopElem(g.elem[0]),F=g.trigger==="contextmenu",w=!(w||F)&&(g.elem[0]===o.target||g.elem.find(o.target)[0]),F=r.mainElem&&(o.target===r.mainElem[0]||r.mainElem.find(o.target)[0]);if(!w&&!F){if(o.type==="touchstart"&&g.elem.data(I)&&Y(o.target).hasClass(k)&&o.preventDefault(),typeof g.onClickOutside=="function"&&g.onClickOutside(o)===!1)return;r.remove()}}}},!!lay.passiveSupported&&{passive:!1}),x.on("blur",function(o){var r;_.thisId&&(r=ee.getThis(_.thisId))&&r.config.elem.data(I)&&setTimeout(function(){if(document.activeElement&&document.activeElement.tagName==="IFRAME"&&r.mainElem&&r.mainElem[0]&&r.mainElem[0].contains&&!r.mainElem[0].contains(document.activeElement)){if(typeof r.config.onClickOutside=="function"&&r.config.onClickOutside(o.originalEvent)===!1)return;r.remove()}},0)}),K=".layui-menu:not(.layui-dropdown-menu) li",Q.on("click",K,function(o){var r=Y(this),g=r.parents(".layui-menu").eq(0),w=r.hasClass(s)||r.hasClass(f),F=g.attr("lay-filter")||g.attr("id"),O=lay.options(this);r.hasClass("layui-menu-item-divider")||w||(g.find("."+S).removeClass(S),g.find("."+P).removeClass(P),r.addClass(S),r.parents("."+f).addClass(P),O.title=O.title||Y.trim(r.children("."+u).text()),layui.event.call(this,A,"click("+F+")",O))}),Q.on("click",K+X,function(o){var w=Y(this),r=w.parents("."+s+":eq(0)"),g=lay.options(r[0]),w=typeof w.parents(".layui-menu").eq(0).attr("lay-accordion")=="string";"isAllowSpread"in g&&!g.isAllowSpread||ee.spread(r,w)}),K=".layui-menu ."+f,Q.on("mouseenter",K,function(o){var r,g=Y(this).find("."+n);g[0]&&((r=g[0].getBoundingClientRect()).right>x.width()&&(g.addClass(R),(r=g[0].getBoundingClientRect()).left<0)&&g.removeClass(R),r.bottom>x.height())&&g.eq(0).css("margin-top",-(r.bottom-x.height()+5))}).on("mouseleave",K,function(o){var r=Y(this).children("."+n);r.removeClass(R),r.css("margin-top",0)}),_.close=function(o){return o=ee.getThis(o),o?(o.remove(),ee.call(o)):this},_.open=function(o){return o=ee.getThis(o),o?(o.render(),ee.call(o)):this},_.reload=function(o,r,g){return o=ee.getThis(o),o?(o.reload(r,g),ee.call(o)):this},_.reloadData=function(){var o=Y.extend([],arguments),r=(o[2]="reloadData",new RegExp("^("+["data","templet","content"].join("|")+")$"));return layui.each(o[1],function(g,w){r.test(g)||delete o[1][g]}),_.reload.apply(null,o)},_.render=function(o){return o=new c(o),ee.call(o)},he(A,_)}),layui.define(["jquery","lay"],function(he){"use strict";var x=layui.$,Q=layui.lay,K={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(C){var a=this;return a.config=x.extend({},a.config,C),a},on:function(C,a){return layui.onevent.call(this,Y,C,a)}},Y="slider",M="layui-disabled",y="layui-slider-bar",d="layui-slider-wrap",A="layui-slider-wrap-btn",I="layui-slider-tips",T="layui-slider-input-txt",_="layui-slider-hover",ee=function(C){var a=this;a.index=++K.index,a.config=x.extend({},a.config,K.config,C),a.render()};ee.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,tipsAlways:!1,input:!1,range:!1,height:200,disabled:!1,theme:"#16baaa"},ee.prototype.precision=function(){var C=this.config,C=x.map([C.min,C.max,C.step],function(a,p){return a=String(a).split("."),a[1]?a[1].length:0});return Math.max.apply(null,C)},ee.prototype.render=function(){var C=this,a=C.config,u=x(a.elem);if(1<u.length)return layui.each(u,function(){K.render(x.extend({},a,{elem:this}))}),C;x.extend(a,Q.options(u[0])),a.step<=0&&(a.step=1),a.max<a.min&&(a.max=a.min+a.step),a.range?(a.value=typeof a.value=="object"?a.value:[a.min,a.value],u=Math.min(a.value[0],a.value[1]),s=Math.max(a.value[0],a.value[1]),a.value[0]=Math.max(u,a.min),a.value[1]=Math.max(s,a.min),a.value[0]=Math.min(a.value[0],a.max),a.value[1]=Math.min(a.value[1],a.max),s=(a.value[0]-a.min)/(a.max-a.min)*100,f=(S=(a.value[1]-a.min)/(a.max-a.min)*100)-s+"%",s+="%",S+="%"):(typeof a.value=="object"&&(a.value=Math.min.apply(null,a.value)),a.value<a.min&&(a.value=a.min),a.value>a.max&&(a.value=a.max),f=(a.value-a.min)/(a.max-a.min)*100+"%");var p,u=a.disabled?"#c2c2c2":a.theme,s='<div class="layui-slider '+(a.type==="vertical"?"layui-slider-vertical":"")+'">'+(a.tips?'<div class="'+I+'" '+(a.tipsAlways?"":'style="display:none;"')+"></div>":"")+'<div class="layui-slider-bar" style="background:'+u+"; "+(a.type==="vertical"?"height":"width")+":"+f+";"+(a.type==="vertical"?"bottom":"left")+":"+(s||0)+';"></div><div class="layui-slider-wrap" style="'+(a.type==="vertical"?"bottom":"left")+":"+(s||f)+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+u+';"></div></div>'+(a.range?'<div class="layui-slider-wrap" style="'+(a.type==="vertical"?"bottom":"left")+":"+S+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+u+';"></div></div>':"")+"</div>",f=x(a.elem),S=f.next(".layui-slider");if(S[0]&&S.remove(),C.elemTemp=x(s),a.range?(C.elemTemp.find("."+d).eq(0).data("value",a.value[0]),C.elemTemp.find("."+d).eq(1).data("value",a.value[1])):C.elemTemp.find("."+d).data("value",a.value),f.html(C.elemTemp),a.type==="vertical"&&C.elemTemp.height(a.height+"px"),a.showstep){for(var P=(a.max-a.min)/a.step,n="",R=1;R<1+P;R++){var k=100*R/P;k<100&&(n+='<div class="layui-slider-step" style="'+(a.type==="vertical"?"bottom":"left")+":"+k+'%"></div>')}C.elemTemp.append(n)}function X(r){r=r.parent().data("value"),r=a.setTips?a.setTips(r):r,C.elemTemp.find("."+I).html(r)}function c(r){var g=a.type==="vertical"?a.height:C.elemTemp[0].offsetWidth,w=C.elemTemp.find("."+d);return(a.type==="vertical"?g-r.parent()[0].offsetTop-w.height():r.parent()[0].offsetLeft)/g*100}function o(r){a.type==="vertical"?C.elemTemp.find("."+I).css({bottom:r+"%","margin-bottom":"20px",display:"inline-block"}):C.elemTemp.find("."+I).css({left:r+"%",display:"inline-block"})}a.input&&!a.range&&(u=x('<div class="layui-slider-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>'),f.css("position","relative"),f.append(u),f.find("."+T).children("input").val(a.value),a.type==="vertical"?u.css({left:0,top:-48}):C.elemTemp.css("margin-right",u.outerWidth()+15)),a.disabled?(C.elemTemp.addClass(M),C.elemTemp.find("."+A).addClass(M)):C.slide(),a.tips&&(a.tipsAlways?(X(S=C.elemTemp.find("."+A)),o(c(S))):C.elemTemp.find("."+A).on("mouseover",function(){X(x(this));var r=c(x(this));clearTimeout(p),p=setTimeout(function(){o(r)},300)}).on("mouseout",function(){clearTimeout(p),a.tipsAlways||C.elemTemp.find("."+I).css("display","none")}))},ee.prototype.slide=function(C,a,p){var u=this,s=u.config,f=u.elemTemp,S=function(){return s.type==="vertical"?s.height:f[0].offsetWidth},P=f.find("."+d),n=f.next(".layui-slider-input"),R=n.children("."+T).children("input").val(),k=100/((s.max-s.min)/s.step),X=u.precision(),c=function(w,F,O){w=(w=100<(w=100<Math.ceil(w)*k?Math.ceil(w)*k:Math.round(w)*k)?100:w)<0?0:w,P.eq(F).css(s.type==="vertical"?"bottom":"left",w+"%");var z,te=o(P[0].offsetLeft),re=s.range?o(P[1].offsetLeft):0,ne=(s.type==="vertical"?(f.find("."+I).css({bottom:w+"%","margin-bottom":"20px"}),te=o(S()-P[0].offsetTop-P.height()),re=s.range?o(S()-P[1].offsetTop-P.height()):0):f.find("."+I).css("left",w+"%"),te=100<te?100:te,re=100<re?100:re,Math.min(te,re)),te=Math.abs(te-re),re=(s.type==="vertical"?f.find("."+y).css({height:te+"%",bottom:ne+"%"}):f.find("."+y).css({width:te+"%",left:ne+"%"}),s.min+(s.max-s.min)*w/100),re=Number(parseFloat(re).toFixed(X));R=re,n.children("."+T).children("input").val(R),P.eq(F).data("value",re),f.find("."+I).html(s.setTips?s.setTips(re):re),s.range&&(z=[P.eq(0).data("value"),P.eq(1).data("value")])[0]>z[1]&&z.reverse(),u.value=s.range?z:re,s.change&&s.change(u.value),O==="done"&&s.done&&s.done(u.value)},o=function(w){var F=w/S()*100/k,O=Math.round(F)*k;return O=w==S()?Math.ceil(F)*k:O},r=x(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join(""));if(C==="set")return c((a-s.min)/(s.max-s.min)*100/k,p,"done");f.find("."+A).each(function(w){var F=x(this);F.on("mousedown touchstart",function(O){(O=O||window.event).type==="touchstart"&&(O.clientX=O.originalEvent.touches[0].clientX,O.clientY=O.originalEvent.touches[0].clientY);var z,ne,te,re,D=F.parent()[0].offsetLeft,v=O.clientX;s.type==="vertical"&&(D=S()-F.parent()[0].offsetTop-P.height(),v=O.clientY),z=F,ne=function(L){(L=L||window.event).type==="touchmove"&&(L.clientX=L.touches[0].clientX,L.clientY=L.touches[0].clientY);var j=D+(s.type==="vertical"?v-L.clientY:L.clientX-v),j=(j=(j=j<0?0:j)>S()?S():j)/S()*100/k;c(j,w),F.addClass(_),f.find("."+I).show(),L.preventDefault()},te=function(L){F.removeClass(_),s.tipsAlways||setTimeout(function(){f.find("."+I).hide()},L)},re=function(){te&&te(Q.touchEventsSupported()?1e3:0),r.remove(),s.done&&s.done(u.value),Q.touchEventsSupported()&&(z[0].removeEventListener("touchmove",ne,!!Q.passiveSupported&&{passive:!1}),z[0].removeEventListener("touchend",re),z[0].removeEventListener("touchcancel",re))},x("#LAY-slider-moving")[0]||x("body").append(r),r.on("mousemove",ne),r.on("mouseup",re).on("mouseleave",re),Q.touchEventsSupported()&&(z[0].addEventListener("touchmove",ne,!!Q.passiveSupported&&{passive:!1}),z[0].addEventListener("touchend",re),z[0].addEventListener("touchcancel",re))})}),f.on("click",function(w){var F=x("."+A),O=x(this);!F.is(event.target)&&F.has(event.target).length===0&&F.length&&(O=(F=(F=(F=s.type==="vertical"?S()-w.clientY+O.offset().top-x(window).scrollTop():w.clientX-O.offset().left-x(window).scrollLeft())<0?0:F)>S()?S():F)/S()*100/k,F=s.range?s.type==="vertical"?Math.abs(F-parseInt(x(P[0]).css("bottom")))>Math.abs(F-parseInt(x(P[1]).css("bottom")))?1:0:Math.abs(F-P[0].offsetLeft)>Math.abs(F-P[1].offsetLeft)?1:0:0,c(O,F,"done"),w.preventDefault())}),n.children(".layui-slider-input-btn").children("i").each(function(w){x(this).on("click",function(){R=n.children("."+T).children("input").val();var F=((R=w==1?R-s.step<s.min?s.min:Number(R)-s.step:Number(R)+s.step>s.max?s.max:Number(R)+s.step)-s.min)/(s.max-s.min)*100/k;c(F,0,"done")})});var g=function(){var w=this.value,w=(w=(w=(w=isNaN(w)?0:w)<s.min?s.min:w)>s.max?s.max:w,((this.value=w)-s.min)/(s.max-s.min)*100/k);c(w,0,"done")};n.children("."+T).children("input").on("keydown",function(w){w.keyCode===13&&(w.preventDefault(),g.call(this))}).on("change",g)},ee.prototype.events=function(){this.config},K.render=function(C){return C=new ee(C),function(){var a=this,p=a.config;return{setValue:function(u,s){return u=(u=u>p.max?p.max:u)<p.min?p.min:u,p.value=u,a.slide("set",u,s||0)},config:p}}.call(C)},he(Y,K)}),layui.define(["jquery","lay"],function(he){"use strict";var x=layui.$,Q=layui.lay,K=layui.hint(),Y=layui.device().mobile?"click":"mousedown",M={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(r){var g=this;return g.config=x.extend({},g.config,r),g},on:function(r,g){return layui.onevent.call(this,"colorpicker",r,g)}},y=function(){var r=this.config,g=r.id;return y.that[g]=this,{config:r}},d="colorpicker",A="layui-colorpicker",I=".layui-colorpicker-main",T="layui-icon-down",_="layui-icon-close",ee="layui-colorpicker-trigger-span",C="layui-colorpicker-trigger-i",a="layui-colorpicker-side-slider",p="layui-colorpicker-basis",u="layui-colorpicker-alpha-bgcolor",s="layui-colorpicker-alpha-slider",f="layui-colorpicker-basis-cursor",S="layui-colorpicker-main-input",P=function(r){var g={h:0,s:0,b:0},w=Math.min(r.r,r.g,r.b),F=Math.max(r.r,r.g,r.b),O=F-w;return g.b=F,g.s=F!==0?255*O/F:0,g.s!==0?r.r==F?g.h=(r.g-r.b)/O:r.g==F?g.h=2+(r.b-r.r)/O:g.h=4+(r.r-r.g)/O:g.h=-1,F===w&&(g.h=0),g.h*=60,g.h<0&&(g.h+=360),g.s*=100/255,g.b*=100/255,g},n=function(z){var g,w={},F=z.h,O=255*z.s/100,z=255*z.b/100;return O==0?w.r=w.g=w.b=z:(z=F%60*((g=z)-(O=(255-O)*z/255))/60,(F=F===360?0:F)<60?(w.r=g,w.b=O,w.g=O+z):F<120?(w.g=g,w.b=O,w.r=g-z):F<180?(w.g=g,w.r=O,w.b=O+z):F<240?(w.b=g,w.r=O,w.g=g-z):F<300?(w.b=g,w.g=O,w.r=O+z):F<360?(w.r=g,w.g=O,w.b=g-z):(w.r=0,w.g=0,w.b=0)),{r:Math.round(w.r),g:Math.round(w.g),b:Math.round(w.b)}},R=function(g){var g=n(g),w=[g.r.toString(16),g.g.toString(16),g.b.toString(16)];return x.each(w,function(F,O){O.length===1&&(w[F]="0"+O)}),w.join("")},k=function(r){return r=r.match(/[0-9]{1,3}/g)||[],{r:r[0],g:r[1],b:r[2]}},X=x(window),c=x(document),o=function(r){this.index=++M.index,this.config=x.extend({},this.config,M.config,r),this.render()};o.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#16baaa","#16b777","#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)"]},o.prototype.render=function(){var r=this,g=r.config;if(1<(F=x(g.elem)).length)return layui.each(F,function(){M.render(x.extend({},g,{elem:this}))}),r;x.extend(g,Q.options(F[0]));var w=x(['<div class="layui-unselect layui-colorpicker">',"<span "+(g.format=="rgb"&&g.alpha?'class="layui-colorpicker-trigger-bgcolor"':"")+">",'<span class="layui-colorpicker-trigger-span" ','lay-type="'+(g.format=="rgb"?g.alpha?"rgba":"torgb":"")+'" ','style="'+(w="",g.color?(w=g.color,3<(g.color.match(/[0-9]{1,3}/g)||[]).length&&(g.alpha&&g.format=="rgb"||(w="#"+R(P(k(g.color))))),"background: "+w):w)+'">','<i class="layui-icon layui-colorpicker-trigger-i '+(g.color?T:_)+'"></i>',"</span>","</span>","</div>"].join("")),F=g.elem=x(g.elem);g.size&&w.addClass("layui-colorpicker-"+g.size),F.addClass("layui-inline").html(r.elemColorBox=w),g.id="id"in g?g.id:F.attr("id")||r.index,r.color=r.elemColorBox.find("."+ee)[0].style.background,r.events()},o.prototype.renderPicker=function(){var r,g=this,w=g.config,F=g.elemColorBox[0],O=g.elemPicker=x(['<div id="layui-colorpicker'+g.index+'" data-index="'+g.index+'" class="layui-anim layui-anim-downbit layui-colorpicker-main">','<div class="layui-colorpicker-main-wrapper">','<div class="layui-colorpicker-basis">','<div class="layui-colorpicker-basis-white"></div>','<div class="layui-colorpicker-basis-black"></div>','<div class="layui-colorpicker-basis-cursor"></div>',"</div>",'<div class="layui-colorpicker-side">','<div class="layui-colorpicker-side-slider"></div>',"</div>","</div>",'<div class="layui-colorpicker-main-alpha '+(w.alpha?"layui-show":"")+'">','<div class="layui-colorpicker-alpha-bgcolor">','<div class="layui-colorpicker-alpha-slider"></div>',"</div>","</div>",w.predefine?(r=['<div class="layui-colorpicker-main-pre">'],layui.each(w.colors,function(z,ne){r.push(['<div class="layui-colorpicker-pre'+(3<(ne.match(/[0-9]{1,3}/g)||[]).length?" layui-colorpicker-pre-isalpha":"")+'">','<div style="background:'+ne+'"></div>',"</div>"].join(""))}),r.push("</div>"),r.join("")):"",'<div class="layui-colorpicker-main-input">','<div class="layui-inline">','<input type="text" class="layui-input">',"</div>",'<div class="layui-btn-container">','<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">清空</button>','<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">确定</button>',"</div","</div>","</div>"].join(""));g.elemColorBox.find("."+ee)[0],x(I)[0]&&x(I).data("index")==g.index?g.removePicker(o.thisElemInd):(g.removePicker(o.thisElemInd),x("body").append(O)),M.thisId=w.id,o.thisElemInd=g.index,o.thisColor=F.style.background,g.position(),g.pickerEvents()},o.prototype.removePicker=function(w){var g=this.config,w=x("#layui-colorpicker"+(w||this.index));return w[0]&&(w.remove(),delete M.thisId,typeof g.close=="function")&&g.close(this.color),this},o.prototype.position=function(){var r=this,g=r.config;return Q.position(r.bindElem||r.elemColorBox[0],r.elemPicker[0],{position:g.position,align:"center"}),r},o.prototype.val=function(){var r,g=this,w=(g.config,g.elemColorBox.find("."+ee)),F=g.elemPicker.find("."+S),O=w[0].style.backgroundColor;O?(r=P(k(O)),w=w.attr("lay-type"),g.select(r.h,r.s,r.b),w==="torgb"?F.find("input").val(O):w==="rgba"?(w=k(O),(O.match(/[0-9]{1,3}/g)||[]).length===3?(F.find("input").val("rgba("+w.r+", "+w.g+", "+w.b+", 1)"),g.elemPicker.find("."+s).css("left",280)):(F.find("input").val(O),O=280*O.slice(O.lastIndexOf(",")+1,O.length-1),g.elemPicker.find("."+s).css("left",O)),g.elemPicker.find("."+u)[0].style.background="linear-gradient(to right, rgba("+w.r+", "+w.g+", "+w.b+", 0), rgb("+w.r+", "+w.g+", "+w.b+"))"):F.find("input").val("#"+R(r))):(g.select(0,100,100),F.find("input").val(""),g.elemPicker.find("."+u)[0].style.background="",g.elemPicker.find("."+s).css("left",280))},o.prototype.side=function(){var r=this,g=r.config,w=r.elemColorBox.find("."+ee),F=w.attr("lay-type"),O=r.elemPicker.find(".layui-colorpicker-side"),z=r.elemPicker.find("."+a),ne=r.elemPicker.find("."+p),te=r.elemPicker.find("."+f),re=r.elemPicker.find("."+u),D=r.elemPicker.find("."+s),v=z[0].offsetTop/180*360,L=100-te[0].offsetTop/180*100,j=te[0].offsetLeft/260*100,J=Math.round(D[0].offsetLeft/280*100)/100,$=r.elemColorBox.find("."+C),oe=r.elemPicker.find(".layui-colorpicker-pre").children("div"),m=function(de,ce,q,ae){r.select(de,ce,q);var le=n({h:de,s:ce,b:q}),de=R({h:de,s:ce,b:q}),ce=r.elemPicker.find("."+S).find("input");$.addClass(T).removeClass(_),w[0].style.background="rgb("+le.r+", "+le.g+", "+le.b+")",F==="torgb"?ce.val("rgb("+le.r+", "+le.g+", "+le.b+")"):F==="rgba"?(D.css("left",280*ae),ce.val("rgba("+le.r+", "+le.g+", "+le.b+", "+ae+")"),w[0].style.background="rgba("+le.r+", "+le.g+", "+le.b+", "+ae+")",re[0].style.background="linear-gradient(to right, rgba("+le.r+", "+le.g+", "+le.b+", 0), rgb("+le.r+", "+le.g+", "+le.b+"))"):ce.val("#"+de),g.change&&g.change(x.trim(r.elemPicker.find("."+S).find("input").val()))},h=x(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div>'].join("")),E=function(B){x("#LAY-colorpicker-moving")[0]||x("body").append(h),h.on("mousemove",B),h.on("mouseup",function(){h.remove()}).on("mouseleave",function(){h.remove()})},W=!0,G=!0;z.on("mousedown",function(B,U){var q=this.offsetTop,ae=(B.clientY===void 0?U:B).clientY;G&&layui.stope(B),E(function(le){var de=q+(le.clientY-ae),ce=O[0].offsetHeight,ce=(de=ce<(de=de<0?0:de)?ce:de)/180*360;m(v=ce,j,L,J),le.preventDefault()}),B.preventDefault()}),O.on("mousedown",function(B){var U=B.clientY-x(this).offset().top+X.scrollTop(),U=(U=(U=U<0?0:U)>this.offsetHeight?this.offsetHeight:U)/180*360;m(v=U,j,L,J),B.preventDefault(),W&&z.trigger("mousedown",B)}),te.on("mousedown",function(B,U){var q=this.offsetTop,ae=this.offsetLeft,le=(B.clientY===void 0?U:B).clientY,de=(B.clientX===void 0?U:B).clientX;G&&layui.stope(B),E(function(ce){var ye=q+(ce.clientY-le),pe=ae+(ce.clientX-de),we=ne[0].offsetHeight,ve=ne[0].offsetWidth,ve=(pe=ve<(pe=pe<0?0:pe)?ve:pe)/260*100,pe=100-(ye=we<(ye=ye<0?0:ye)?we:ye)/180*100;m(v,j=ve,L=pe,J),ce.preventDefault()}),B.preventDefault()}),ne.on("mousedown",function(B){var q=B.clientY-x(this).offset().top+X.scrollTop(),U=B.clientX-x(this).offset().left+X.scrollLeft(),U=((q=q<0?0:q)>this.offsetHeight&&(q=this.offsetHeight),(U=(U=U<0?0:U)>this.offsetWidth?this.offsetWidth:U)/260*100),q=100-q/180*100;m(v,j=U,L=q,J),layui.stope(B),B.preventDefault(),W&&te.trigger("mousedown",B)}),D.on("mousedown",function(B,U){var q=this.offsetLeft,ae=(B.clientX===void 0?U:B).clientX;G&&layui.stope(B),E(function(le){var de=q+(le.clientX-ae),ce=re[0].offsetWidth,ce=(ce<(de=de<0?0:de)&&(de=ce),Math.round(de/280*100)/100);m(v,j,L,J=ce),le.preventDefault()}),B.preventDefault()}),re.on("mousedown",function(B){var U=B.clientX-x(this).offset().left,U=((U=U<0?0:U)>this.offsetWidth&&(U=this.offsetWidth),Math.round(U/280*100)/100);m(v,j,L,J=U),B.preventDefault(),W&&D.trigger("mousedown",B)}),oe.each(function(){x(this).on("click",function(){x(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var B=this.style.backgroundColor,U=P(k(B)),q=B.slice(B.lastIndexOf(",")+1,B.length-1);v=U.h,j=U.s,L=U.b,(B.match(/[0-9]{1,3}/g)||[]).length===3&&(q=1),J=q,m(U.h,U.s,U.b,q)})}),Q.touchEventsSupported()&&layui.each([{elem:O,eventType:"mousedown"},{elem:re,eventType:"mousedown"},{elem:ne,eventType:"mousedown"}],function(B,U){Q.touchSwipe(U.elem,{onTouchStart:function(){G=W=!1},onTouchMove:function(q){var ae,le;q=q,ae=U.eventType,q=q.touches[0],(le=document.createEvent("MouseEvent")).initMouseEvent(ae,!0,!0,window,1,q.screenX,q.screenY,q.clientX,q.clientY,!1,!1,!1,!1,0,null),q.target.dispatchEvent(le)},onTouchEnd:function(){h.remove(),G=W=!0}})})},o.prototype.select=function(z,te,ne,F){this.config;var O=R({h:z,s:100,b:100}),z=(R({h:z,s:te,b:ne}),z/360*180),ne=180-ne/100*180,te=te/100*260,re=this.elemPicker.find("."+p)[0];this.elemPicker.find("."+a).css("top",z),re.style.background="#"+O,this.elemPicker.find("."+f).css({top:ne/re.offsetHeight*100+"%",left:te/re.offsetWidth*100+"%"})},o.prototype.pickerEvents=function(){var r=this,g=r.config,w=r.elemColorBox.find("."+ee),F=r.elemPicker.find("."+S+" input"),O={clear:function(z){w[0].style.background="",r.elemColorBox.find("."+C).removeClass(T).addClass(_),r.color="",g.done&&g.done(""),r.removePicker()},confirm:function(z,ne){var te,re,D,v,L=x.trim(F.val());-1<L.indexOf(",")?(re=P(k(L)),r.select(re.h,re.s,re.b),w[0].style.background=te="#"+R(re),3<(L.match(/[0-9]{1,3}/g)||[]).length&&w.attr("lay-type")==="rgba"&&(D=280*L.slice(L.lastIndexOf(",")+1,L.length-1),r.elemPicker.find("."+s).css("left",D),te=w[0].style.background=L)):((D=-1<(D=L).indexOf("#")?D.substring(1):D).length===3&&(D=(v=D.split(""))[0]+v[0]+v[1]+v[1]+v[2]+v[2]),v={r:(D=parseInt(D,16))>>16,g:(65280&D)>>8,b:255&D},re=P(v),w[0].style.background=te="#"+R(re),r.elemColorBox.find("."+C).removeClass(_).addClass(T)),ne==="change"?(r.select(re.h,re.s,re.b,ne),g.change&&g.change(te)):(r.color=L,g.done&&g.done(L),r.removePicker())}};r.elemPicker.on("click","*[colorpicker-events]",function(){var z=x(this),ne=z.attr("colorpicker-events");O[ne]&&O[ne].call(this,z)}),F.on("keyup",function(z){var ne=x(this);O.confirm.call(this,ne,z.keyCode===13?null:"change")})},o.prototype.events=function(){var r=this;r.config,r.elemColorBox.on("click",function(){r.renderPicker(),x(I)[0]&&(r.val(),r.side())})},c.on(Y,function(r){var g,w,F;M.thisId&&(g=y.getThis(M.thisId))&&(w=g.config,F=g.elemColorBox.find("."+ee),x(r.target).hasClass(A)||x(r.target).parents("."+A)[0]||x(r.target).hasClass(I.replace(/\./g,""))||x(r.target).parents(I)[0]||g.elemPicker&&(g.color?(r=P(k(g.color)),g.select(r.h,r.s,r.b)):g.elemColorBox.find("."+C).removeClass(T).addClass(_),F[0].style.background=g.color||"",typeof w.cancel=="function"&&w.cancel(g.color),g.removePicker()))}),X.on("resize",function(){if(M.thisId){var r=y.getThis(M.thisId);if(r)return!(!r.elemPicker||!x(I)[0])&&void r.position()}}),y.that={},y.getThis=function(r){var g=y.that[r];return g||K.error(r?d+" instance with ID '"+r+"' not found":"ID argument required"),g},M.render=function(r){return r=new o(r),y.call(r)},he(d,M)}),layui.define("jquery",function(he){"use strict";var x=layui.$,Q=(layui.hint(),layui.device()),K="element",Y="layui-this",M="layui-show",y=".layui-tab-title",d=function(){this.config={}},A=(d.prototype.set=function(f){return x.extend(!0,this.config,f),this},d.prototype.on=function(f,S){return layui.onevent.call(this,K,f,S)},d.prototype.tabAdd=function(f,S){var P,n=x(".layui-tab[lay-filter="+f+"]"),R=n.children(y),k=R.children(".layui-tab-bar"),X=n.children(".layui-tab-content"),c="<li"+(P=[],layui.each(S,function(o,r){/^(title|content)$/.test(o)||P.push("lay-"+o+'="'+r+'"')}),0<P.length&&P.unshift(""),P.join(" "))+">"+(S.title||"unnaming")+"</li>";return R.find("li").eq(0).after(c),X.append('<div class="layui-tab-item" '+(S.id?'lay-id="'+S.id+'"':"")+">"+(S.content||"")+"</div>"),S.change&&this.tabChange(f,S.id),R.data("LAY_TAB_CHANGE",S.change),p.tabAuto(S.change?"change":null,n),this},d.prototype.tabDelete=function(f,S,P){return f=x(".layui-tab[lay-filter="+f+"]").children(y).find('>li[lay-id="'+S+'"]'),p.tabDelete.call(f[0],{liElem:f,force:P}),this},d.prototype.tabChange=function(f,S,P){return f=x(".layui-tab[lay-filter="+f+"]").children(y).find('>li[lay-id="'+S+'"]'),p.tabClick.call(f[0],{liElem:f,force:P}),this},d.prototype.tab=function(f){f=f||{},s.on("click",f.headerElem,function(S){var P=x(f.headerElem).index(x(this));p.tabClick.call(this,{index:P,options:f})})},d.prototype.progress=function(P,S){var n="layui-progress",P=x("."+n+"[lay-filter="+P+"]").find("."+n+"-bar"),n=P.find("."+n+"-text");return P.css("width",function(){return/^.+\/.+$/.test(S)?100*new Function("return "+S)()+"%":S}).attr("lay-percent",S),n.text(S),this},".layui-nav"),I="layui-nav-item",T="layui-nav-bar",_="layui-nav-tree",ee="layui-nav-child",C="layui-nav-more",a="layui-anim layui-anim-upbit",p={tabClick:function(f){var n=(f=f||{}).options||{},S=f.liElem||x(this),P=n.headerElem?S.parent():S.parents(".layui-tab").eq(0),n=n.bodyElem?x(n.bodyElem):P.children(".layui-tab-content").children(".layui-tab-item"),R=S.find("a"),R=R.attr("href")!=="javascript:;"&&R.attr("target")==="_blank",k=typeof S.attr("lay-unselect")=="string",X=P.attr("lay-filter"),c=S.attr("lay-id"),o="index"in f?f.index:S.parent().children("li").index(S);if(!f.force){var f=S.siblings("."+Y);if(layui.event.call(this,K,"tabBeforeChange("+X+")",{elem:P,from:{index:S.parent().children("li").index(f),id:f.attr("lay-id")},to:{index:o,id:c}})===!1)return}R||k||(S.addClass(Y).siblings().removeClass(Y),(c?f=(f=n.filter('[lay-id="'+c+'"]')).length?f:n.eq(o):n.eq(o)).addClass(M).siblings().removeClass(M)),layui.event.call(this,K,"tab("+X+")",{elem:P,index:o,id:c})},tabDelete:function(f){var S=(f=f||{}).liElem||x(this).parent(),P=S.parent().children("li").index(S),n=S.closest(".layui-tab"),R=n.children(".layui-tab-content").children(".layui-tab-item"),k=n.attr("lay-filter"),X=S.attr("lay-id");!f.force&&layui.event.call(S[0],K,"tabBeforeDelete("+k+")",{elem:n,index:P,id:X})===!1||(S.hasClass(Y)&&(S.next()[0]&&S.next().is("li")?p.tabClick.call(S.next()[0],{index:P+1}):S.prev()[0]&&S.prev().is("li")&&p.tabClick.call(S.prev()[0],null,P-1)),S.remove(),(X?f=(f=R.filter('[lay-id="'+X+'"]')).length?f:R.eq(P):R.eq(P)).remove(),setTimeout(function(){p.tabAuto(null,n)},50),layui.event.call(this,K,"tabDelete("+k+")",{elem:n,index:P,id:X}))},tabAuto:function(f,S){var P="layui-tab-more",n="layui-tab-bar",R="layui-tab-close",k=this;(S||x(".layui-tab")).each(function(){var X=x(this),c=X.children(".layui-tab-title"),o=(X.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),o=x('<span class="layui-unselect layui-tab-bar" '+o+"><i "+o+' class="layui-icon">&#xe61a;</i></span>'),r=(k===window&&Q.ie,X.attr("lay-allowclose"));r&&r!=="false"&&c.find("li").each(function(){var g,w=x(this);w.find("."+R)[0]||w.attr("lay-allowclose")==="false"||((g=x('<i class="layui-icon layui-icon-close layui-unselect '+R+'"></i>')).on("click",function(F){p.tabDelete.call(this,{e:F})}),w.append(g))}),typeof X.attr("lay-unauto")!="string"&&(c.prop("scrollWidth")>c.outerWidth()+1||c.find("li").length&&c.height()>(r=c.find("li").eq(0).height())+r/2?(f==="change"&&c.data("LAY_TAB_CHANGE")&&c.addClass(P),c.find("."+n)[0]||(c.append(o),X.attr("overflow",""),o.on("click",function(g){var w=c.hasClass(P);c[w?"removeClass":"addClass"](P)}))):(c.find("."+n).remove(),X.removeAttr("overflow")))})},hideTabMore:function(f){var S=x(".layui-tab-title");f!==!0&&x(f.target).attr("lay-stope")==="tabmore"||(S.removeClass("layui-tab-more"),S.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var f=x(this),S=f.closest(A),P=S.attr("lay-filter"),n=f.parent(),R=f.siblings("."+ee),k=typeof n.attr("lay-unselect")=="string";if(f.attr("href")!=="javascript:;"&&f.attr("target")==="_blank"||k||R[0]||(S.find("."+Y).removeClass(Y),n.addClass(Y)),S.hasClass(_)){var k=I+"ed",X=!n.hasClass(k),c=function(){x(this).css({display:""}),S.children("."+T).css({opacity:0})};if(R.is(":animated"))return;R.removeClass(a),R[0]&&(X?(R.slideDown(200,c),n.addClass(k)):(n.removeClass(k),R.show().slideUp(200,c)),typeof S.attr("lay-accordion")!="string"&&S.attr("lay-shrink")!=="all"||((X=n.siblings("."+k)).removeClass(k),X.children("."+ee).show().stop().slideUp(200,c)))}layui.event.call(this,K,"nav("+P+")",f)},collapse:function(){var f=x(this),X=f.closest(".layui-collapse"),S=X.attr("lay-filter"),P=".layui-colla-content",n=f.parent(".layui-colla-item"),R=f.siblings(P),k=R.css("display")==="none",X=typeof X.attr("lay-accordion")=="string",c=function(){x(this).css("display","")};R.is(":animated")||(k?(R.slideDown(200,c),n.addClass(M)):(n.removeClass(M),R.show().slideUp(200,c)),X&&((X=n.siblings("."+M)).removeClass(M),X.children(P).show().slideUp(200,c)),layui.event.call(this,K,"collapse("+S+")",{title:f,content:R,show:k}))}},u=(d.prototype.render=d.prototype.init=function(f,S){var P=typeof S=="string"&&S?'[lay-filter="'+S+'"]':"",n={tab:function(R){R=R||x(".layui-tab"+P),p.tabAuto.call({},null,R)},nav:function(R){var k={},X={},c={},o="layui-nav-title";(R||x(A+P)).each(function(r){var g=x(this),w=x('<span class="'+T+'"></span>'),F=g.find("."+I),O=g.find("."+T);O[0]&&O.remove(),g.append(w),(g.hasClass(_)?F.find("dd,>."+o):F).off("mouseenter.lay_nav").on("mouseenter.lay_nav",function(){(function(z,ne,te){var re,D=x(this),v=D.find("."+ee);ne.hasClass(_)?v[0]||(re=D.children("."+o),z.css({top:D.offset().top-ne.offset().top,height:(re[0]?re:D).outerHeight(),opacity:1})):(v.addClass(a),v.hasClass("layui-nav-child-c")&&v.css({left:-(v.outerWidth()-D.width())/2}),v[0]?z.css({left:z.position().left+z.width()/2,width:0,opacity:0}):z.css({left:D.position().left+parseFloat(D.css("marginLeft")),top:D.position().top+D.height()-z.height()}),k[te]=setTimeout(function(){z.css({width:v[0]?0:D.width(),opacity:v[0]?0:1})},Q.ie&&Q.ie<10?0:200),clearTimeout(c[te]),v.css("display")==="block"&&clearTimeout(X[te]),X[te]=setTimeout(function(){v.addClass(M),D.find("."+C).addClass(C+"d")},300))}).call(this,w,g,r)}).off("mouseleave.lay_nav").on("mouseleave.lay_nav",function(){g.hasClass(_)?w.css({height:0,opacity:0}):(clearTimeout(X[r]),X[r]=setTimeout(function(){g.find("."+ee).removeClass(M),g.find("."+C).removeClass(C+"d")},300))}),g.off("mouseleave.lay_nav").on("mouseleave.lay_nav",function(){clearTimeout(k[r]),c[r]=setTimeout(function(){g.hasClass(_)||w.css({width:0,left:w.position().left+w.width()/2,opacity:0})},200)}),F.find("a").each(function(){var z=x(this);z.parent(),z.siblings("."+ee)[0]&&!z.children("."+C)[0]&&z.append('<i class="layui-icon layui-icon-down '+C+'"></i>'),z.off("click",p.clickThis).on("click",p.clickThis)})})},breadcrumb:function(R){(R||x(".layui-breadcrumb"+P)).each(function(){var k=x(this),X="lay-separator",c=k.attr(X)||"/",o=k.find("a");o.next("span["+X+"]")[0]||(o.each(function(r){r!==o.length-1&&x(this).after("<span "+X+">"+c+"</span>")}),k.css("visibility","visible"))})},progress:function(R){var k="layui-progress";(R||x("."+k+P)).each(function(){var X=x(this),c=X.find(".layui-progress-bar"),o=c.attr("lay-percent");c.css("width",function(){return/^.+\/.+$/.test(o)?100*new Function("return "+o)()+"%":o}),X.attr("lay-showpercent")&&setTimeout(function(){c.html('<span class="'+k+'-text">'+o+"</span>")},350)})},collapse:function(R){(R||x(".layui-collapse"+P)).each(function(){x(this).find(".layui-colla-item").each(function(){var k=x(this),X=k.find(".layui-colla-title"),c=k.find(".layui-colla-content"),o=c.css("display")==="none";X.find(".layui-colla-icon").remove(),X.append('<i class="layui-icon layui-icon-right layui-colla-icon"></i>'),k[o?"removeClass":"addClass"](M),c.hasClass(M)&&c.removeClass(M),X.off("click",p.collapse).on("click",p.collapse)})})}};return f&&typeof S=="object"&&S instanceof x?n[f](S):n[f]?n[f]():layui.each(n,function(R,k){k()})},new d),s=x(document);x(function(){u.render()}),s.on("click",".layui-tab-title li",p.tabClick),x(window).on("resize",p.tabAuto),he(K,u)}),layui.define(["lay","layer"],function(he){"use strict";var x=layui.$,Q=layui.lay,K=layui.layer,Y=layui.device(),M="upload",y="layui_"+M+"_index",d={config:{},index:layui[M]?layui[M].index+1e4:0,set:function(p){var u=this;return u.config=x.extend({},u.config,p),u},on:function(p,u){return layui.onevent.call(this,M,p,u)}},A=function(){var p=this,u=p.config.id;return{upload:function(s){p.upload.call(p,s)},reload:function(s){p.reload.call(p,s)},config:(A.that[u]=p).config}},I="layui-upload-file",T="layui-upload-form",_="layui-upload-iframe",ee="layui-upload-choose",C="UPLOADING",a=function(p){var u=this;u.index=++d.index,u.config=x.extend({},u.config,d.config,p),u.render()};a.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",force:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1,text:{"cross-domain":"Cross-domain requests are not supported","data-format-error":"Please return JSON data format","check-error":"",error:"","limit-number":null,"limit-size":null}},a.prototype.reload=function(p){var u=this;u.config=x.extend({},u.config,p),u.render(!0)},a.prototype.render=function(p){var u=this,s=u.config,f=x(s.elem);return 1<f.length?(layui.each(f,function(){d.render(x.extend({},s,{elem:this}))}),u):(x.extend(s,Q.options(f[0],{attr:f.attr("lay-data")?"lay-data":null})),!p&&f[0]&&f.data(y)?(p=A.getThis(f.data(y)))?p.reload(s):void 0:(s.elem=x(s.elem),s.bindAction=x(s.bindAction),s.id="id"in s?s.id:f.attr("id")||u.index,u.file(),void u.events()))},a.prototype.file=function(){var p=this,u=p.config,s=p.elemFile=x(['<input class="'+I+'" type="file" accept="'+u.acceptMime+'" name="'+u.field+'"',u.multiple?" multiple":"",">"].join("")),f=u.elem.next();(f.hasClass(I)||f.hasClass(T))&&f.remove(),Y.ie&&Y.ie<10&&u.elem.wrap('<div class="layui-upload-wrap"></div>'),p.isFile()?(p.elemFile=u.elem,u.field=u.elem[0].name):u.elem.after(s),Y.ie&&Y.ie<10&&p.initIE()},a.prototype.initIE=function(){var p,u=this.config,s=x('<iframe id="'+_+'" class="'+_+'" name="'+_+'" frameborder="0"></iframe>'),f=x(['<form target="'+_+'" class="'+T+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+u.url+'">',"</form>"].join(""));x("#"+_)[0]||x("body").append(s),u.elem.next().hasClass(T)||(this.elemFile.wrap(f),u.elem.next("."+T).append((p=[],layui.each(u.data,function(S,P){P=typeof P=="function"?P():P,p.push('<input type="hidden" name="'+S+'" value="'+P+'">')}),p.join(""))))},a.prototype.msg=function(p){return K.msg(p,{icon:2,shift:6})},a.prototype.isFile=function(){var p=this.config.elem[0];if(p)return p.tagName.toLocaleLowerCase()==="input"&&p.type==="file"},a.prototype.preview=function(p){window.FileReader&&layui.each(this.chooseFiles,function(u,s){var f=new FileReader;f.readAsDataURL(s),f.onload=function(){p&&p(u,s,this.result)}})},a.prototype.upload=function(p,u){var s,f,S,P,n,R=this,k=R.config,X=k.text||{},c=R.elemFile[0],o=function(){return p||R.files||R.chooseFiles||c.files},r=function(){var D=0,v=0,L=o(),j=function(){k.multiple&&D+v===R.fileLength&&typeof k.allDone=="function"&&k.allDone({total:R.fileLength,successful:D,failed:v})},J=function($){var oe=new FormData,m=function(E){$.unified?layui.each(L,function(W,G){delete G[C]}):delete E[C]};if(layui.each(k.data,function(E,W){W=typeof W=="function"?$.unified?W():W($.index,$.file):W,oe.append(E,W)}),$.unified)layui.each(L,function(E,W){W[C]||(W[C]=!0,oe.append(k.field,W))});else{if($.file[C])return;oe.append(k.field,$.file),$.file[C]=!0}var h={url:k.url,type:"post",data:oe,dataType:k.dataType||"json",contentType:!1,processData:!1,headers:k.headers||{},success:function(E){k.unified?D+=R.fileLength:D++,F($.index,E),j($.index),m($.file)},error:function(E){k.unified?v+=R.fileLength:v++,R.msg(X.error||["Upload failed, please try again.","status: "+(E.status||"")+" - "+(E.statusText||"error")].join("<br>")),O($.index,E.responseText,E),j($.index),m($.file)}};typeof k.progress=="function"&&(h.xhr=function(){var E=x.ajaxSettings.xhr();return E.upload.addEventListener("progress",function(W){var G;W.lengthComputable&&(G=Math.floor(W.loaded/W.total*100),k.progress(G,(k.item||k.elem)[0],W,$.index))}),E}),x.ajax(h)};k.unified?J({unified:!0,index:0}):layui.each(L,function($,oe){J({index:$,file:oe})})},g=function(){var D=x("#"+_);R.elemFile.parent().submit(),clearInterval(a.timer),a.timer=setInterval(function(){var v,L=D.contents().find("body");try{v=L.text()}catch(j){R.msg(X["cross-domain"]),clearInterval(a.timer),O()}v&&(clearInterval(a.timer),L.html(""),F(0,v))},30)},w=function(D){if(k.force==="json"&&typeof D!="object")try{return{status:"CONVERTED",data:JSON.parse(D)}}catch(v){return R.msg(X["data-format-error"]),{status:"FORMAT_ERROR",data:{}}}return{status:"DO_NOTHING",data:{}}},F=function(D,v){R.elemFile.next("."+ee).remove(),c.value="";var L=w(v);switch(L.status){case"CONVERTED":v=L.data;break;case"FORMAT_ERROR":return}typeof k.done=="function"&&k.done(v,D||0,function(j){R.upload(j)})},O=function(D,v,L){k.auto&&(c.value="");var j=w(v);switch(j.status){case"CONVERTED":v=j.data;break;case"FORMAT_ERROR":return}typeof k.error=="function"&&k.error(D||0,function(J){R.upload(J)},v,L)},z=k.exts,re=(f=[],layui.each(p||R.chooseFiles,function(D,v){f.push(v.name)}),f),ne={preview:function(D){R.preview(D)},upload:function(D,v){var L={};L[D]=v,R.upload(L)},pushFile:function(){return R.files=R.files||{},layui.each(R.chooseFiles,function(D,v){R.files[D]=v}),R.files},resetFile:function(D,v,L){v=new File([v],L),R.files=R.files||{},R.files[D]=v},getChooseFiles:function(){return R.chooseFiles}},te={file:"文件",images:"图片",video:"视频",audio:"音频"}[k.accept]||"文件",re=re.length===0?c.value.match(/[^\/\\]+\..+/g)||[]:re;if(re.length!==0){switch(k.accept){case"file":layui.each(re,function(D,v){if(z&&!RegExp(".\\.("+z+")$","i").test(escape(v)))return s=!0});break;case"video":layui.each(re,function(D,v){if(!RegExp(".\\.("+(z||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return s=!0});break;case"audio":layui.each(re,function(D,v){if(!RegExp(".\\.("+(z||"mp3|wav|mid")+")$","i").test(escape(v)))return s=!0});break;default:layui.each(re,function(D,v){if(!RegExp(".\\.("+(z||"jpg|png|gif|bmp|jpeg|svg|webp")+")$","i").test(escape(v)))return s=!0})}if(s)return R.msg(X["check-error"]||"选择的"+te+"中包含不支持的格式"),c.value="";if(u!=="choose"&&!k.auto||(k.choose&&k.choose(ne),u!=="choose")){if(R.fileLength=(S=0,te=o(),layui.each(te,function(){S++}),S),k.number&&R.fileLength>k.number)return R.msg(typeof X["limit-number"]=="function"?X["limit-number"](k,R.fileLength):"同时最多只能上传: "+k.number+" 个文件<br>您当前已经选择了: "+R.fileLength+" 个文件");if(0<k.size&&!(Y.ie&&Y.ie<10)&&(layui.each(o(),function(D,v){v.size>1024*k.size&&(v=1<=(v=k.size/1024)?v.toFixed(2)+"MB":k.size+"KB",c.value="",P=v)}),P))return R.msg(typeof X["limit-size"]=="function"?X["limit-size"](k,P):"文件大小不能超过 "+P);n=function(){if(Y.ie)return(9<Y.ie?r:g)();r()},typeof k.before=="function"?d.util.promiseLikeResolve(k.before(ne)).then(function(D){D!==!1?n():k.auto&&(c.value="")},function(D){k.auto&&(c.value=""),D!==void 0&&layui.hint().error(D)}):n()}}},a.prototype.events=function(){var p=this,u=p.config,s=function(R){p.chooseFiles={},layui.each(R,function(k,X){var c=new Date().getTime();p.chooseFiles[c+"-"+k]=X})},f=function(c,k){var X=p.elemFile,c=(u.item||u.elem,1<c.length?c.length+"个文件":(c[0]||{}).name||X[0].value.match(/[^\/\\]+\..+/g)||[]);X.next().hasClass(ee)&&X.next().remove(),p.upload(null,"choose"),p.isFile()||u.choose||X.after('<span class="layui-inline '+ee+'">'+c+"</span>")},S=function(R){var k=!0;return layui.each(p.files,function(X,c){if(!(k=c.name!==R.name))return!0}),k},P=function(R){var k=function(X){X.ext=X.name.substr(X.name.lastIndexOf(".")+1).toLowerCase(),X.sizes=d.util.parseSize(X.size)};return R instanceof FileList?layui.each(R,function(X,c){k(c)}):k(R),R},n=function(R){var k;return(R=R||[]).length?p.files?(k=[],layui.each(R,function(X,c){S(c)&&k.push(P(c))}),k):P(R):[]};u.elem.off("upload.start").on("upload.start",function(){var R=x(this);p.config.item=R,p.elemFile[0].click()}),Y.ie&&Y.ie<10||u.elem.off("upload.over").on("upload.over",function(){x(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){x(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(R,c){var X=x(this),c=n(c.originalEvent.dataTransfer.files);X.removeAttr("lay-over"),s(c),u.auto?p.upload():f(c)}),p.elemFile.on("change",function(){var R=n(this.files);R.length!==0&&(s(R),u.auto?p.upload():f(R))}),u.bindAction.off("upload.action").on("upload.action",function(){p.upload()}),u.elem.data(y)||(u.elem.on("click",function(){p.isFile()||x(this).trigger("upload.start")}),u.drag&&u.elem.on("dragover",function(R){R.preventDefault(),x(this).trigger("upload.over")}).on("dragleave",function(R){x(this).trigger("upload.leave")}).on("drop",function(R){R.preventDefault(),x(this).trigger("upload.drop",R)}),u.bindAction.on("click",function(){x(this).trigger("upload.action")}),u.elem.data(y,u.id))},d.util={parseSize:function(p,u){var s,f;return u=u||2,p!=null&&p?(s=typeof p=="string"?parseFloat(p):p,f=Math.floor(Math.log(s)/Math.log(1024)),(p=(p=s/Math.pow(1024,f))%1==0?p:parseFloat(p.toFixed(u)))+["Bytes","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"][f]):"0"},promiseLikeResolve:function(p){var u=x.Deferred();return p&&typeof p.then=="function"?p.then(u.resolve,u.reject):u.resolve(p),u.promise()}},A.that={},A.getThis=function(p){var u=A.that[p];return u||hint.error(p?M+" instance with ID '"+p+"' not found":"ID argument required"),u},d.render=function(p){return p=new a(p),A.call(p)},he(M,d)}),layui.define(["lay","layer","util"],function(he){"use strict";var x=layui.$,Q=layui.layer,K=layui.util,Y=layui.hint(),M=(layui.device(),"form"),y=".layui-form",d="layui-this",A="layui-hide",I="layui-disabled",T="layui-input-number-invalid",_=lay.ie&&parseFloat(lay.ie)===8||Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"checked")===void 0,u=function(){this.config={verify:{required:function(f){if(!/[\S]+/.test(f)||f===void 0||f===null)return"必填项不能为空"},phone:function(f){if(f&&!/^1\d{10}$/.test(f))return"手机号格式不正确"},email:function(f){if(f&&!/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(f))return"邮箱格式不正确"},url:function(f){if(f&&!/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/.test(f))return"链接格式不正确"},number:function(f){if(f&&isNaN(f))return"只能填写数字"},date:function(f){if(f&&!/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/.test(f))return"日期格式不正确"},identity:function(f){if(f&&!/(^\d{15}$)|(^\d{17}(x|X|\d)$)/.test(f))return"身份证号格式不正确"}},autocomplete:null}},ee=(u.prototype.set=function(f){return x.extend(!0,this.config,f),this},u.prototype.verify=function(f){return x.extend(!0,this.config.verify,f),this},u.prototype.getFormElem=function(f){return x(y+(f?'[lay-filter="'+f+'"]':""))},u.prototype.on=function(f,S){return layui.onevent.call(this,M,f,S)},u.prototype.val=function(f,S){return this.getFormElem(f).each(function(P,n){var R,k,X,c,o=x(this);for(R in S)lay.hasOwn(S,R)&&(X=S[R],(c=o.find('[name="'+R+'"]'))[0])&&((k=c[0].type)==="checkbox"?c[0].checked=X:k==="radio"?c.each(function(){this.checked=this.value==X+""}):c.val(X))}),p.render(null,f),this.getValue(f)},u.prototype.getValue=function(R,S){S=S||this.getFormElem(R);var P={},n={},R=S.find("input,select,textarea");return layui.each(R,function(k,X){var c,o=x(this);X.name=(X.name||"").replace(/^\s*|\s*&/,""),X.name&&(/^.*\[\]$/.test(X.name)&&(c=X.name.match(/^(.*)\[\]$/g)[0],P[c]=0|P[c],c=X.name.replace(/^(.*)\[\]$/,"$1["+P[c]+++"]")),/^(checkbox|radio)$/.test(X.type)&&!X.checked||(n[c||X.name]=this.tagName==="SELECT"&&typeof this.getAttribute("multiple")=="string"?o.val()||[]:this.value))}),n},u.prototype.render=function(f,X){var P=this,n=P.config,R=x(y+(X?'[lay-filter="'+X+'"]':"")),k={input:function(o){var o=o||R.find("input,textarea"),r=(n.autocomplete&&o.attr("autocomplete",n.autocomplete),function(g,w){var F=g.val(),O=Number(F),z=Number(g.attr("step"))||1,ne=Number(g.attr("min")),te=Number(g.attr("max")),re=Number(g.attr("lay-precision")),D=w!=="click"&&F==="",v=w==="init",L=isNaN(O),j=typeof g.attr("lay-step-strictly")=="string";if(g.toggleClass(T,L),!L){if(w==="click"){if(g[0].type==="text"&&typeof g.attr("readonly")=="string")return;O=x(this).index()?O-z:O+z}L=function(J){return((J.toString().match(/\.(\d+$)/)||[])[1]||"").length},re=0<=re?re:Math.max(L(z),L(F)),D||(v||te<=(O=(O=j?Math.round(O/z)*z:O)<=ne?ne:O)&&(O=te),re===0?O=parseInt(O):0<re&&(O=O.toFixed(re)),g.val(O),g.attr("lay-input-mirror",g.val())),g[(O<ne||te<O)&&!D?"addClass":"removeClass"]("layui-input-number-out-of-range"),v||((w={increment:g.next().find(".layui-icon-up"),decrement:g.next().find(".layui-icon-down")}).increment[te<=O&&!D?"addClass":"removeClass"](I),w.decrement[O<=ne&&!D?"addClass":"removeClass"](I))}});R.find("input[lay-affix],textarea[lay-affix]").each(function(){var g=x(this),w=g.attr("lay-affix"),F="layui-input-wrap",O="layui-input-suffix",z="layui-input-affix",ne=g.is("[disabled]")||g.is("[readonly]"),te=function(v,L){(v=x(v))[0]&&v[x.trim(L)?"removeClass":"addClass"](A)},re=function(v){v=x.extend({},D[w]||{value:w},v,lay.options(g[0]));var L,j=x('<div class="'+z+'">'),J=layui.isArray(v.value)?v.value:[v.value],J=x((L=[],layui.each(J,function(m,h){L.push('<i class="layui-icon layui-icon-'+h+(v.disabled?" "+I:"")+'"></i>')}),L.join(""))),$=(j.append(J),v.split&&j.addClass("layui-input-split"),v.className&&j.addClass(v.className),g.next("."+z)),oe=($[0]&&$.remove(),g.parent().hasClass(F)||g.wrap('<div class="'+F+'"></div>'),g.next("."+O));oe[0]?(($=oe.find("."+z))[0]&&$.remove(),oe.prepend(j),g.css("padding-right",function(){return(g.closest(".layui-input-group")[0]?0:oe.outerWidth())+j.outerWidth()})):(j.addClass(O),g.after(j)),v.show==="auto"&&te(j,g.val()),typeof v.init=="function"&&v.init.call(this,g,v),g.on("input propertychange",function(){var m=this.value;v.show==="auto"&&te(j,m)}),g.on("blur",function(){typeof v.blur=="function"&&v.blur.call(this,g,v)}),J.on("click",function(){var m=g.attr("lay-filter");x(this).hasClass(I)||(typeof v.click=="function"&&v.click.call(this,g,v),layui.event.call(this,M,"input-affix("+m+")",{elem:g[0],affix:w,options:v}))})},D={eye:{value:"eye-invisible",click:function(v,L){var j="LAY_FORM_INPUT_AFFIX_SHOW",J=v.data(j);v.attr("type",J?"password":"text").data(j,!J),re({value:J?"eye-invisible":"eye"})}},clear:{value:"clear",click:function(v){v.val("").focus(),te(x(this).parent(),null)},show:"auto",disabled:ne},number:{value:["up","down"],split:!0,className:"layui-input-number",disabled:g.is("[disabled]"),init:function(v){var L,j,J,$,oe,m;v.attr("type")!=="text"&&v[0].type!=="text"||(J=j=!(L=".lay_input_number"),$=typeof v.attr("readonly")=="string",oe=typeof v.attr("lay-wheel")=="string",m=v.next(".layui-input-number").children("i"),v.attr("lay-input-mirror",v.val()),v.off(L),v.on("keydown"+L,function(h){j=!1,h.keyCode!==8&&h.keyCode!==46||(j=!0),$||m.length!==2||h.keyCode!==38&&h.keyCode!==40||(h.preventDefault(),m.eq(h.keyCode===38?0:1).click())}),v.on("input"+L+" propertychange"+L,function(h){var E,W;J||h.type==="propertychange"&&h.originalEvent.propertyName!=="value"||(j||(h=this.value)===""||h.slice(0,2)!=="00"&&!h.match(/\s/g)&&!((E=h.match(/\./g))&&1<E.length||(E=h.match(/e/g))&&1<E.length||(W=h.slice(1),(E=W.match(/(\+|-)/g))&&(!/e(\+|-)/i.test(W)||1<E.length))||isNaN(Number(h))&&a.indexOf(h.slice(-1))===-1||/e/i.test(h)&&(!/\de/i.test(h)||/e\./.test(h)))?v.attr("lay-input-mirror",this.value):this.value=v.attr("lay-input-mirror"),v.toggleClass(T,isNaN(Number(this.value))))}),v.on("compositionstart"+L,function(){J=!0}),v.on("compositionend"+L,function(){J=!1,v.trigger("input")}),oe&&v.on(["wheel","mousewheel","DOMMouseScroll"].join(L+" ")+L,function(h){var E;m.length&&x(this).is(":focus")&&(E=0,h.preventDefault(),h.type==="wheel"?(h.deltaX=h.originalEvent.deltaX,h.deltaY=h.originalEvent.deltaY,E=Math.abs(h.deltaX)>=Math.abs(h.deltaY)?h.deltaX:h.deltaY):h.type==="mousewheel"?E=-h.originalEvent.wheelDelta:h.type==="DOMMouseScroll"&&(E=h.originalEvent.detail),m.eq(0<E?1:0).click())}),$&&m.addClass(I)),r.call(this,v,"init")},click:function(v){r.call(this,v,"click")},blur:function(v){r.call(this,v,"blur")}}};re()})},select:function(O){var o="请选择",r="layui-form-select",g="layui-select-none",w="layui-select-create-option",F="layui-select-panel-elem-data",O=O||R.find("select"),z=function(ne,te,re,D,v,L){var j,J,$,oe,m,h,E,W,G,B=x(this),U=te,q=U.find("input"),ae=ne.find("dl"),le=(ae.children("dd"),ae.children("dt")),de=this.selectedIndex,ce="";re||(J=B.attr("lay-search")==="cs"?{caseSensitive:!0}:lay.options(B,{attr:"lay-search"}),$=B.attr("lay-append-to")||"body",oe=B.attr("lay-append-position"),m=!(!lay.ie||lay.ie!=="10"&&lay.ie!=="11"||!q.attr("placeholder")),h=function(){L&&(ne.appendTo($).css({width:U.width()+"px"}),(ye=function(){lay.position(U[0],ne[0],{position:oe,allowBottomOut:!0,offset:[0,5]})})(),x(window).on("resize.lay_select_resize",ye));var ye=ne.offset().top+ne.outerHeight()+5-s.scrollTop(),we=ae.outerHeight(),ve=ae.children("dd");de=B[0].selectedIndex,U.parent().addClass(r+"ed"),ve.removeClass(A),le.removeClass(A),ve.removeClass(d),0<=de&&ve.eq(de).addClass(d),ye+we>s.height()&&we<=ye&&ne.addClass(r+"up"),W(),m&&ae.off("mousedown.lay_select_ieph").on("mousedown.lay_select_ieph",function(){q[0].__ieph=!0,setTimeout(function(){q[0].__ieph=!1},60)}),j=lay.onClickOutside((L?ne:ae)[0],function(){E(),ce&&q.val(ce)},{ignore:U,detectIframe:!0,capture:!1})},E=function(ye){U.parent().removeClass(r+"ed "+r+"up"),q.blur(),v&&ae.children("."+w).remove(),typeof j=="function"&&(j(),j=null),L&&(ne.detach(),x(window).off("resize.lay_select_resize")),ye||G(q.val(),function(we){var ve=B[0].selectedIndex;we&&(ce=x(B[0].options[ve]).prop("text"),ve===0&&ce===q.attr("placeholder")&&(ce=""),q.val(ce||""))})},W=function(){var ye,we,ve=ae.children("dd."+d);ve[0]&&(ye=ve.position().top,we=ae.height(),ve=ve.height(),we<ye&&ae.scrollTop(ye+ae.scrollTop()-we+ve-5),ye<0)&&ae.scrollTop(ye+ae.scrollTop()-5)},U.on("click",function(ye){(U.parent().hasClass(r+"ed")?E:h)(),ae.find("."+g).remove()}),U.find(".layui-edge").on("click",function(){q.focus()}),q.on("keyup",function(ye){ye.keyCode===9&&h()}).on("keydown",function(ye){var we=ye.keyCode,ve=(we===9&&E(),function(pe){ye.preventDefault();var ue,fe,Ce=ae.children("dd:not(."+A+",."+I+")");Ce.length&&(ue=Ce.length-1,fe=-1,layui.each(Ce,function(De,Se){if(x(Se).hasClass(d))return fe=De,!0}),pe=pe==="prev"?fe-1<0?ue:fe-1:ue<fe+1?0:fe+1,Ce.eq(pe).addClass(d).siblings().removeClass(d),W())});we===38&&ve("prev"),we===40&&ve("next"),we===13&&(ye.preventDefault(),ae.children("dd."+d).trigger("click"))}).on("paste",function(){h()}),G=function(ye,we,ve){var pe,ue=0,De=ae.children("dd"),fe=!1,Ce=ye,De=(J.caseSensitive||(ye=ye.toLowerCase()),J.fuzzy&&(pe=(function(Se,ke){var Le={},Ie=["^"];ke||(Se=Se.toLowerCase());for(var Re=Se.trim().split(""),qe=0;qe<Re.length;qe++){var We=Re[qe];Le[We]=(Le[We]||0)+1}for(We in Le){for(Ie.push("(?=.*"),qe=0;qe<Le[We];qe++)Ie.push(We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),qe!==Le[We]-1&&Ie.push(".*");Ie.push(")")}return Ie.push(".*"),new RegExp(Ie.join(""),ke?void 0:"i")})(ye,J.caseSensitive)),layui.each(De,function(){var Se=x(this),ke=Se.text(),Le=v&&Se.hasClass(w),Ie=(v&&!Le&&ke===Ce&&(fe=!0),J.caseSensitive||(ke=ke.toLowerCase()),J.fuzzy?!pe.test(ke):ke.indexOf(ye)===-1);(ye===""||ve==="blur"?ye!==ke:Ie)&&ue++,ve==="keyup"&&Se[(v?Ie&&!Le:Ie)?"addClass":"removeClass"](A)}),ve==="keyup"&&layui.each(le,function(){var Se=x(this),ke=Se.nextUntil("dt").filter("dd");Se[(ke=v?ke.not("."+w):ke).length==ke.filter("."+A).length?"addClass":"removeClass"](A)}),ue===De.length);return we(De,fe),De},D&&q.on("input propertychange",layui.debounce(function(ye){var we=this.value,ve=ye.keyCode;return ve!==9&&ve!==13&&ve!==37&&ve!==38&&ve!==39&&ve!==40&&(m&&ye.target.__ieph?ye.target.__ieph=!1:(G(we,function(pe,ue){var fe,Ce;v?ue?ae.children("."+w).remove():(ue=ae.children("."+w))[0]?ue.attr("lay-value",we).text(we):(ue=x("<dd>").addClass(w).attr("lay-value",we).text(we),Ce=(fe=ae.children().eq(0)).hasClass("layui-select-tips"),fe[Ce?"after":"before"](ue)):pe?ae.find("."+g)[0]||ae.append('<p class="'+g+'">无匹配项</p>'):ae.find("."+g).remove()},"keyup"),we===""&&(B.val(""),ae.find("."+d).removeClass(d),(B[0].options[0]||{}).value||ae.children("dd:eq(0)").addClass(d),ae.find("."+g).remove(),v)&&ae.children("."+w).remove(),void W()))},50)).on("blur",function(ye){var we=B[0].selectedIndex;ce=x(B[0].options[we]).prop("text"),we===0&&ce===q.attr("placeholder")&&(ce=""),setTimeout(function(){G(q.val(),function(ve){ce||q.val("")},"blur")},200)}),ae.on("click","dd",function(){var ye,we,ve=x(this),pe=ve.attr("lay-value"),ue=B.attr("lay-filter");return ve.hasClass(I)||(v&&ve.hasClass(w)&&(we=(ye=x("<option>").text(ve.text())).prop("text"),ye.attr("value",pe=we),B.append(ye),ve.removeClass(w).attr("lay-value",we).text(we),ae.append(ve)),ve.hasClass("layui-select-tips")?q.val(""):(q.val(ve.text()),ve.addClass(d)),ve.siblings().removeClass(d),B.val(pe).removeClass("layui-form-danger"),layui.event.call(this,M,"select("+ue+")",{elem:B[0],value:pe,othis:ne}),E(!0)),!1}),ae.on("mousedown pointerdown touchstart",function(ye){layui.stope(ye)}),ne.find("dl>dt").on("click",function(ye){return!1}),L&&te.on("_lay-select-destroy",function(){ne.remove()}))};x.event.special["_lay-select-destroy"]={remove:function(ne){ne.handler()}},O.each(function(ne,h){var re=x(this),D=re.next("."+r),v=this.disabled,L=h.value,W=x(h.options[h.selectedIndex]),h=h.options[0];if(re.closest("[lay-ignore]").length)return re.show();var j,J,$=typeof re.attr("lay-search")=="string",oe=typeof re.attr("lay-creatable")=="string"&&$,m=typeof re.attr("lay-append-to")=="string",h=h&&!h.value&&h.text||o,h=(J=x('<div class="'+r+'"></div>'),$||J.addClass("layui-unselect"),v&&J.addClass("layui-select-disabled"),(E=x('<input type="text" class="layui-input">')).prop("placeholder",h),E.val(L?W.prop("text"):""),$&&!v||E.prop("readonly",!0),v&&E.addClass(I),E),E=((W=x('<div class="layui-select-title"></div>')).append(h),W.append('<i class="layui-edge"></i>'),W),W=(h=x('<dl class="layui-anim layui-anim-upbit"></dl>'),re.find("optgroup")[0]&&h.addClass("layui-select-group"),j=[],layui.each(re.find("optgroup,option"),function(G,B){var U=B.tagName.toLowerCase(),q=x('<dd lay-value=""></dd>');G!==0||B.value||U==="optgroup"?U==="optgroup"?((G=x("<dt></dt>")).text(B.label),j.push(G.prop("outerHTML"))):(q.attr("lay-value",B.value),L===B.value&&q.addClass(d),B.disabled&&q.addClass(I),q.text(B.text),j.push(q.prop("outerHTML"))):(q.addClass("layui-select-tips"),q.text(B.text||o),j.push(q.prop("outerHTML")))}),j.length===0&&j.push('<dd lay-value="" class="'+I+'">None</dd>'),W=j.join(""),h.html(W),h);D[0]&&(m&&(h=D.data(F))&&h.remove(),D.remove()),m?(J.append(E),re.after(J),h=x('<div class="'+r+' layui-select-panel-wrap"></div>').append(W),J.data(F,h),z.call(this,h,E,v,$,oe,m)):(J.append(E).append(W),re.after(J),z.call(this,J,E,v,$,oe,m))})},checkbox:function(r){var o={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],switch:["layui-form-switch","layui-form-onswitch","switch"],SUBTRA:"layui-icon-indeterminate"},r=r||R.find("input[type=checkbox]");r.each(function(g,w){var F=x(this),O=F.attr("lay-skin")||"primary",z=K.escape(x.trim(w.title||(w.title=F.attr("lay-text")||""))),ne=this.disabled,te=o[O]||o.checkbox,re=F.next("."+te[0]),D=(re[0]&&re.remove(),[]);if(F.next("[lay-checkbox]")[0]&&(re=F.next(),z=re.html()||"",1<re[0].attributes.length)&&layui.each(re[0].attributes,function(v,L){L.name!=="lay-checkbox"&&D.push(L.name+'="'+L.value+'"')}),D=D.join(" "),z=O==="switch"?z.split("|"):[z],F.closest("[lay-ignore]").length)return F.show();_&&(C.call(w,"lay-form-sync-checked",w.checked),w.checked||C.call(w,"lay-form-sync-indeterminate",w.indeterminate)),ne=x(['<div class="layui-unselect '+te[0],w.checked?" "+te[1]:"",ne?" layui-checkbox-disabled "+I:"",'"',O?' lay-skin="'+O+'"':"",">",(re={checkbox:[z[0]?"<div "+D+">"+z[0]+"</div>":O==="primary"?"":"<div></div>",'<i class="layui-icon '+(O==="primary"&&!w.checked&&F.get(0).indeterminate?o.SUBTRA:"layui-icon-ok")+'"></i>'].join(""),switch:"<div>"+(!w.checked&&z[1]||z[0]||"")+"</div><i></i>"})[O]||re.checkbox,"</div>"].join("")),F.after(ne),function(v,L){var j=x(this),$=j.attr("lay-skin")||"primary",J=$==="switch",$=$==="primary";v.on("click",function(){var oe=j.attr("lay-filter");j[0].disabled||(j[0].indeterminate&&(j[0].indeterminate=!1),j[0].checked=!j[0].checked,layui.event.call(j[0],M,L[2]+"("+oe+")",{elem:j[0],value:j[0].value,othis:v}))}),P.syncAppearanceOnPropChanged(this,"checked",function(){var oe;J&&(oe=(v.next("*[lay-checkbox]")[0]?v.next().html():j.attr("title")||"").split("|"),v.children("div").html(!this.checked&&oe[1]||oe[0])),v.toggleClass(L[1],this.checked)}),$&&P.syncAppearanceOnPropChanged(this,"indeterminate",function(){this.indeterminate?v.children(".layui-icon-ok").removeClass("layui-icon-ok").addClass(o.SUBTRA):v.children("."+o.SUBTRA).removeClass(o.SUBTRA).addClass("layui-icon-ok")})}.call(this,ne,te)})},radio:function(g){var o="layui-form-radio",r=["layui-icon-radio","layui-icon-circle"],g=g||R.find("input[type=radio]");g.each(function(w,F){var O=x(this),te=O.next("."+o),z=this.disabled,ne=O.attr("lay-skin");if(O.closest("[lay-ignore]").length)return O.show();_&&C.call(F,"lay-form-sync-checked",F.checked),te[0]&&te.remove();var te=K.escape(F.title||""),re=[],D=(O.next("[lay-radio]")[0]&&(te=(D=O.next()).html()||"",1<D[0].attributes.length)&&layui.each(D[0].attributes,function(v,L){L.name!=="lay-radio"&&re.push(L.name+'="'+L.value+'"')}),re=re.join(" "),x(['<div class="layui-unselect '+o,F.checked?" "+o+"ed":"",(z?" layui-radio-disabled "+I:"")+'"',ne?' lay-skin="'+ne+'"':"",">",'<i class="layui-anim layui-icon '+r[F.checked?0:1]+'"></i>',"<div "+re+">"+te+"</div>","</div>"].join("")));O.after(D),function(v){var L=x(this),j="layui-anim-scaleSpring";v.on("click",function(){var J=L.attr("lay-filter");L[0].disabled||(L[0].checked=!0,layui.event.call(L[0],M,"radio("+J+")",{elem:L[0],value:L[0].value,othis:v}))}),P.syncAppearanceOnPropChanged(this,"checked",function(){var J,$=this;$.checked?(v.addClass(o+"ed"),v.children(".layui-icon").addClass(j+" "+r[0]),J=L.parents(y).find("input[name="+$.name.replace(/(\.|#|\[|\])/g,"\\$1")+"]"),layui.each(J,function(){$!==this&&(this.checked=!1)})):(v.removeClass(o+"ed"),v.children(".layui-icon").removeClass(j+" "+r[0]).addClass(r[1]))})}.call(this,D)})}},X=function(){layui.each(k,function(c,o){o()})};return layui.type(f)==="object"?x(f).is(y)?(R=x(f),X()):f.each(function(c,o){var r=x(o);r.closest(y).length&&(o.tagName==="SELECT"?k.select(r):o.tagName==="INPUT"&&((o=o.type)==="checkbox"||o==="radio"?k[o](r):k.input(r)))}):f?k[f]?k[f]():Y.error('不支持的 "'+f+'" 表单渲染'):X(),P},u.prototype.syncAppearanceOnPropChanged=_?function(f,S,P){var n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,S);Object.defineProperty(f,S,lay.extend({},n,{get:function(){return typeof this.getAttribute("lay-form-sync-"+S)=="string"},set:function(R){C.call(this,"lay-form-sync-"+S,R),P.call(this)}}))}:function(f,S,P){var n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,S);Object.defineProperty(f,S,lay.extend({},n,{get:function(){return n.get.call(this)},set:function(R){n.set.call(this,R),P.call(this)}}))},u.prototype.validate=function(f){var S,P=this.config.verify,n="layui-form-danger";return!(f=x(f))[0]||(f.attr("lay-verify")!==void 0||this.validate(f.find("*[lay-verify]"))!==!1)&&(layui.each(f,function(R,k){var X=x(this),c=(X.attr("lay-verify")||"").split("|"),o=X.attr("lay-vertype"),r=typeof(r=X.val())=="string"?x.trim(r):r;if(X.removeClass(n),layui.each(c,function(g,w){var F="",O=P[w];if(O){var z=typeof O=="function"?F=O(r,k):!O[0].test(r),ne=k.tagName.toLowerCase()==="select"||/^(checkbox|radio)$/.test(k.type),F=F||O[1];if(w==="required"&&(F=X.attr("lay-reqtext")||F),z)return o==="tips"?Q.tips(F,!X.closest("[lay-ignore]").length&&ne?X.next():X,{tips:1}):o==="alert"?Q.alert(F,{title:"提示",shadeClose:!0}):/\b(string|number)\b/.test(typeof F)&&Q.msg(F,{icon:5,shift:6}),setTimeout(function(){(ne?X.next().find("input"):k).focus()},7),X.addClass(n),S=!0}}),S)return S}),!S)},u.prototype.submit=function(R,S){var P={},n=x(this),R=typeof R=="string"?R:n.attr("lay-filter"),k=this.getFormElem?this.getFormElem(R):n.parents(y).eq(0),X=k.find("*[lay-verify]");return!!p.validate(X)&&(P=p.getValue(null,k),X={elem:this.getFormElem?window.event&&window.event.target:this,form:(this.getFormElem?k:n.parents("form"))[0],field:P},typeof S=="function"&&S(X),layui.event.call(this,M,"submit("+R+")",X))});function C(f,n){var P=!!n,n=arguments.length===2&&!n;return this.getAttribute(f)!==null?P||(this.removeAttribute(f),!1):!n&&(this.setAttribute(f,""),!0)}var a=["-",".","e","E","+"],p=new u,u=x(document),s=x(window);x(function(){p.render()}),u.on("reset",y,function(){var f=x(this).attr("lay-filter");setTimeout(function(){p.render(null,f)},50)}),u.on("submit",y,ee).on("click","*[lay-submit]",ee),he(M,p)}),layui.define(["lay","laytpl","laypage","form","util"],function(he){"use strict";var x=layui.$,Q=layui.lay,K=layui.laytpl,Y=layui.laypage,M=layui.layer,y=layui.form,d=layui.util,A=layui.hint(),I=layui.device(),T={config:{checkName:"LAY_CHECKED",indexName:"LAY_INDEX",initIndexName:"LAY_INDEX_INIT",numbersName:"LAY_NUM",disabledName:"LAY_DISABLED"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(m){return this.config=x.extend({},this.config,m),this},on:function(m,h){return layui.onevent.call(this,p,m,h)}},_=function(){var m=this,h=m.config,E=h.id||h.index;return{config:h,reload:function(W,G){m.reload.call(m,W,G)},reloadData:function(W,G){T.reloadData(E,W,G)},setColsWidth:function(){m.setColsWidth.call(m)},resize:function(){m.resize.call(m)}}},ee=function(m){var h=_.that[m];return h||A.error(m?"The table instance with ID '"+m+"' not found":"ID argument required"),h||null},C=function(m){var h=_.config[m];return h||A.error(m?"The table instance with ID '"+m+"' not found":"ID argument required"),h||null},a=function(m){var h=this.config||{},E=(m=m||{}).item3,W=m.content;return E.type==="numbers"&&(W=m.tplData[T.config.numbersName]),("escape"in E?E:h).escape&&(W=d.escape(W)),h=m.text&&E.exportTemplet||E.templet||E.toolbar,h&&(W=typeof h=="function"?h.call(E,m.tplData,m.obj):K((function(G){try{return Q(G).html()}catch(B){return G}})(h)||String(W)).render(x.extend({LAY_COL:E},m.tplData))),m.text?x("<div>"+W+"</div>").text():W},p="table",u="lay-"+p+"-id",s=".layui-table",f="layui-hide",S="layui-hide-v",P="layui-none",n="layui-table-view",R=".layui-table-header",k=".layui-table-body",X=".layui-table-fixed-r",c=".layui-table-pageview",o=".layui-table-sort",r="layui-table-checked",g="layui-table-edit",w="layui-table-hover",F="laytable-cell-group",O="layui-table-col-special",z="layui-table-tool-panel",ne="layui-table-expanded",te="layui-table-disabled-transition",re="LAY_TABLE_MOVE_DICT",D=function(m){return['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{=d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{=d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(m=m||{}).fixed&&m.fixed!=="right"?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':m.fixed==="right"?'{{# if(item2.fixed === "right"){ }}':"","{{# var isSort = !(item2.colGroup) && item2.sort; }}",`<th data-field="{{= item2.field||i2 }}" data-key="{{=d.index}}-{{=i1}}-{{=i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{= item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{=item2.minWidth}}"{{# } }} {{# if(item2.maxWidth){ }}data-maxwidth="{{=item2.maxWidth}}"{{# } }} {{# if(item2.style){ }}style="{{=item2.style}}"{{# } }} {{#var colspan = layui.type(item2.colspan2) === 'number' ? item2.colspan2 : item2.colspan; if(colspan){}} colspan="{{=colspan}}"{{#} if(item2.rowspan){}} rowspan="{{=item2.rowspan}}"{{#}}} {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}"{{# if(item2.title){ }} title="{{ layui.$('<div>' + item2.title + '</div>').text() }}"{{# } }}>`,'<div class="layui-table-cell laytable-cell-',"{{# if(item2.colGroup){ }}","group","{{# } else { }}","{{=d.index}}-{{=i1}}-{{=i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{= item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{=item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{-item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",m.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")},v=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{=d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{=d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),L=[,"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">',"{{# if(d.data.loading){ }}",'<div class="layui-table-init">','<div class="layui-table-loading-icon">','{{# if(typeof d.data.loading === "string"){ }}',"{{- d.data.loading}}","{{# } else{ }}",'<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"{{# } }}","</div>","</div>","{{# } }}","{{# var left, right; }}",'<div class="layui-table-header">',D(),"</div>",'<div class="layui-table-body layui-table-main">',v,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',D({fixed:!0}),"</div>",'<div class="layui-table-body">',v,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r layui-hide">','<div class="layui-table-header">',D({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',v,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{=d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{=d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}",'<div class="layui-table-column layui-table-page layui-hide">','<div class="layui-inline layui-table-pageview" id="layui-table-page{{=d.index}}"></div>',"</div>"].join(""),j=x(window),J=x(document),$=function(m){this.index=++T.index,this.config=x.extend({},this.config,T.config,m),this.render()},oe=($.prototype.config={limit:10,loading:!0,escape:!0,cellMinWidth:60,cellMaxWidth:Number.MAX_VALUE,editTrigger:"click",defaultToolbar:["filter","exports","print"],defaultContextmenu:!0,autoSort:!0,text:{none:"无数据"},cols:[]},$.prototype.render=function(G){var h=this,E=h.config,B=(E.elem=x(E.elem),E.where=E.where||{},E.id="id"in E?E.id:E.elem.attr("id")||h.index);if(_.that[B]=h,(_.config[B]=E).request=x.extend({pageName:"page",limitName:"limit"},E.request),E.response=x.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},E.response),E.page!==null&&typeof E.page=="object"&&(E.limit=E.page.limit||E.limit,E.limits=E.page.limits||E.limits,h.page=E.page.curr=E.page.curr||1,delete E.page.elem,delete E.page.jump),!E.elem[0])return h;if(E.elem.attr("lay-filter")||E.elem.attr("lay-filter",E.id),G==="reloadData")return h.pullData(h.page,{type:"reloadData"});E.index=h.index,h.key=E.id||E.index,h.setInit(),E.height&&/^full-.+$/.test(E.height)?(h.fullHeightGap=E.height.split("-")[1],E.height=j.height()-(parseFloat(h.fullHeightGap)||0)):E.height&&/^#\w+\S*-.+$/.test(E.height)?(B=E.height.split("-"),h.parentHeightGap=B.pop(),h.parentDiv=B.join("-"),E.height=x(h.parentDiv).height()-(parseFloat(h.parentHeightGap)||0)):typeof E.height=="function"&&(h.customHeightFunc=E.height,E.height=h.customHeightFunc());var W,G=E.elem,B=G.next("."+n),U=h.elem=x("<div></div>");U.addClass((W=[n,n+"-"+h.index,"layui-form","layui-border-box"],E.className&&W.push(E.className),W.join(" "))).attr(((W={"lay-filter":"LAY-TABLE-FORM-DF-"+h.index,style:(W=[],E.width&&W.push("width:"+E.width+"px;"),W.join(""))})[u]=E.id,W)).html(K(L,{open:"{{",close:"}}",tagStyle:"legacy"}).render({data:E,index:h.index})),h.renderStyle(),B[0]&&B.remove(),G.after(U),h.layTool=U.find(".layui-table-tool"),h.layBox=U.find(".layui-table-box"),h.layHeader=U.find(R),h.layMain=U.find(".layui-table-main"),h.layBody=U.find(k),h.layFixed=U.find(".layui-table-fixed"),h.layFixLeft=U.find(".layui-table-fixed-l"),h.layFixRight=U.find(X),h.layTotal=U.find(".layui-table-total"),h.layPage=U.find(".layui-table-page"),h.renderToolbar(),h.renderPagebar(),h.fullSize(),h.setColsWidth({isInit:!0}),h.pullData(h.page),h.events()},$.prototype.initOpts=function(m){this.config,m.checkbox&&(m.type="checkbox"),m.space&&(m.type="space"),m.type||(m.type="normal"),m.type!=="normal"&&(m.unresize=!0,m.width=m.width||{checkbox:50,radio:50,space:30,numbers:60}[m.type])},$.prototype.setInit=function(m){var h,E,W=this,G=W.config;if(G.clientWidth=G.width||(h=function(U){var q,ae;U=U||G.elem.parent(),q=W.getContentWidth(U);try{ae=U.css("display")==="none"}catch(de){}var le=U.parent();return U[0]&&le&&le[0]&&(!q||ae)?h(le):q})(),m==="width")return G.clientWidth;G.height=G.maxHeight||G.height,G.css&&G.css.indexOf(n)===-1&&(E=G.css.split("}"),layui.each(E,function(U,q){q&&(E[U]="."+n+"-"+W.index+" "+q)}),G.css=E.join("}"));var B=function(U,q,ae,le){var de,ce;le?(le.key=[G.index,U,ae].join("-"),le.colspan=le.colspan||0,le.rowspan=le.rowspan||0,W.initOpts(le),(de=U+(parseInt(le.rowspan)||1))<G.cols.length?(le.colGroup=!0,ce=0,layui.each(G.cols[de],function(ye,we){we.HAS_PARENT||1<=ce&&ce==(le.colspan||1)||(we.HAS_PARENT=!0,we.parentKey=[G.index,U,ae].join("-"),ce+=parseInt(1<we.colspan?we.colspan:1),B(de,G.cols[de],ye,we))})):le.colGroup=!1,le.hide=le.hide&&!le.colGroup||!1):q.splice(ae,1)};layui.each(G.cols,function(U,q){layui.each(q,function(ae,le){U?delete le.HAS_PARENT:B(U,q,ae,le)})})},$.prototype.renderStyle=function(){var m,h,E,W,G=this.config,B=this.index,U=[];layui.each(G.cols,function(q,ae){layui.each(ae,function(le,de){le=[B,q,le].join("-"),de=["width: ",de.width||G.cellMinWidth,"px"].join(""),U.push(".laytable-cell-"+le+"{"+de+"}")})}),(m=G.lineStyle)&&(h=".layui-table-view-"+B+" .layui-table-body .layui-table tr",E=m.split(";"),W="none",layui.each(E,function(q,ae){if((ae=ae.split(":"))[0]==="height")return ae=parseFloat(ae[1]),isNaN(ae)||(W=ae-1+"px"),!0}),layui.each(["{"+m+"}",".layui-table-cell{height: auto; max-height: "+W+"; white-space: normal; text-overflow: clip;}","> td:hover > .layui-table-cell{overflow: auto;}"].concat(I.ie?[".layui-table-edit{height: "+W+";}","td[data-edit]:hover:after{height: "+W+";}"]:[]),function(q,ae){ae&&U.push(h+" "+ae)})),G.css&&U.push(G.css),Q.style({target:this.elem[0],text:U.join(""),id:"DF-table-"+B})},$.prototype.renderToolbar=function(){var m,h=this,E=h.config,W=E.elem.attr("lay-filter"),G=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),B=h.layTool.find(".layui-table-tool-temp"),U=(E.toolbar==="default"?B.html(G):typeof E.toolbar=="string"&&(G=x(E.toolbar).html()||"")&&B.html(K(G).render(E)),{filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols",onClick:function(q){var ae,le=q.config;(0,q.openPanel)({list:(ae=[],h.eachCols(function(de,ce){ce.field&&ce.type=="normal"&&ae.push('<li><input type="checkbox" name="'+ce.field+'" data-key="'+ce.key+'" data-parentkey="'+(ce.parentKey||"")+'" lay-skin="primary" '+(ce.hide?"":"checked")+' title="'+d.escape(x("<div>"+(ce.fieldTitle||ce.title||ce.field)+"</div>").text())+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),ae.join("")),done:function(){y.on("checkbox(LAY_TABLE_TOOL_COLS)",function(pe){var pe=x(pe.elem),ce=this.checked,ye=pe.data("key"),we=h.col(ye),ve=we.hide,pe=pe.data("parentkey");we.key&&(we.hide=!ce,h.elem.find('*[data-key="'+ye+'"]')[ce?"removeClass":"addClass"](f),ve!=we.hide&&h.setParentCol(!ce,pe),h.resize(),layui.event.call(this,p,"colToggled("+W+")",{col:we,config:le}))})}})}},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export",onClick:function(ce){var ae=ce.data,le=ce.config,de=ce.openPanel,ce=ce.elem;if(!ae.length)return M.tips("当前表格无数据",ce,{tips:3});I.ie?M.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",ce,{tips:3}):de({list:['<li data-type="csv">导出 CSV 文件</li>'].join(""),done:function(ye,we){we.on("click",function(){var ve=x(this).data("type");T.exportFile.call(h,le.id,null,ve)})}})}},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print",onClick:function(le){var ae=le.data,le=(le.config,le.elem);if(!ae.length)return M.tips("当前表格无数据",le,{tips:3});var ae=window.open("about:blank","_blank"),le=["<style>","body{font-size: 12px; color: #5F5F5F;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #5F5F5F;}","a{color: #5F5F5F; text-decoration:none;}","img{max-height: 100%;}","*.layui-hide{display: none}","</style>"].join(""),de=x(h.layHeader.html());de.append(h.layMain.find("table").html()),de.append(h.layTotal.find("table").html()),de.find("th.layui-table-patch").remove(),de.find("thead>tr>th."+O).filter(function(ce,ye){return!x(ye).children("."+F).length}).remove(),de.find("tbody>tr>td."+O).remove(),ae.document.write(le+de.prop("outerHTML")),ae.document.close(),layui.device("edg").edg?(ae.onafterprint=ae.close,ae.print()):(ae.print(),ae.close())}}});typeof E.defaultToolbar=="object"&&(m=[],E.defaultToolbar=x.map(E.defaultToolbar,function(q,ae){var le=typeof q=="string",de=le?U[q]:q;return de&&(!(de=de.name&&U[de.name]?x.extend({},U[de.name],de):de).name&&le&&(de.name=q),m.push('<div class="layui-inline" title="'+de.title+'" lay-event="'+de.layEvent+'"><i class="layui-icon '+de.icon+'"></i></div>')),de}),h.layTool.find(".layui-table-tool-self").html(m.join("")))},$.prototype.renderPagebar=function(){var m,h=this.config,E=this.layPagebar=x('<div class="layui-inline layui-table-pagebar"></div>');h.pagebar&&((m=x(h.pagebar).html()||"")&&E.append(K(m).render(h)),this.layPage.append(E))},$.prototype.setParentCol=function(m,h){var E=this.config,W=this.layHeader.find('th[data-key="'+h+'"]'),G=parseInt(W.attr("colspan"))||0;W[0]&&(h=h.split("-"),h=E.cols[h[1]][h[2]],m?G--:G++,W.attr("colspan",G),W[G?"removeClass":"addClass"](f),h.colspan2=G,h.hide=G<1,E=W.data("parentkey"))&&this.setParentCol(m,E)},$.prototype.setColsPatch=function(){var m=this,h=m.config;layui.each(h.cols,function(E,W){layui.each(W,function(G,B){B.hide&&m.setParentCol(B.hide,B.parentKey)})})},$.prototype.setGroupWidth=function(m){var h,E=this;E.config.cols.length<=1||((h=E.layHeader.find((m?"th[data-key="+m.data("parentkey")+"]>":"")+"."+F)).css("width",0),layui.each(h.get().reverse(),function(){var W=x(this),G=W.parent().data("key"),B=0;E.layHeader.eq(0).find("th[data-parentkey="+G+"]").width(function(U,q){x(this).hasClass(f)||0<q&&(B+=q)}),B&&W.css("max-width",B-1),m&&W.parent().data("parentkey")&&E.setGroupWidth(W.parent())}),h.css("width","auto"))},$.prototype.setColsWidth=function(ve){var h,E=this,W=E.config,G=0,B=0,U=0,q=0,ae=E.setInit("width"),le=parseFloat(layui.getStyle(E.elem[0],"border-left-width")),de=E.layHeader.first().children("table"),ce=E.layMain.find("table"),ye=E.layMain.find("tbody").is(":empty"),we=ve&&ve.isInit,ve=(E.eachCols(function(ue,fe){fe.hide||(G++,fe.width)||fe.type!=="normal"||(h=fe)}),ae=ae-(W.skin==="line"||W.skin==="nob"?2:G+1)*le-E.getScrollWidth(E.layMain[0]),function(ue){layui.each(W.cols,function(fe,Ce){layui.each(Ce,function(De,Se){var ke=0,Le=Se.minWidth||W.cellMinWidth,Ie=Se.maxWidth||W.cellMaxWidth;Se?Se.colGroup||Se.hide||(ue?U&&U<Le?(B--,ke=Le):U&&Ie<U&&(B--,ke=Ie):(ke=Se.width||0,/\d+%$/.test(ke)?Ie<(ke=(ke=parseFloat(ke)/100*ae)<Le?Le:ke)&&(ke=Ie):ke?Se.type==="normal"&&(ke<Le&&(Se.width=ke=Le),Ie<ke)&&(Se.width=ke=Ie):(Se.width=ke=0,B++)),Se.hide&&(ke=0),q+=ke):Ce.splice(De,1)})}),q<ae&&0<B&&(U=(ae-q)/B)}),pe=(ve(),ve(!0),E.autoColNums=B=0<B?B:0,ae);E.eachCols(function(ue,fe){var Ce=fe.minWidth||W.cellMinWidth,De=fe.maxWidth||W.cellMaxWidth;fe.colGroup||fe.hide||h&&h.key===fe.key||(fe.width===0?E.cssRules(fe.key,function(Se){var ke=Math.round(U<Ce?Ce:De<U?De:U);Se.style.width=ke+"px",pe-=ke}):/\d+%$/.test(fe.width)?E.cssRules(fe.key,function(Se){var ke=Math.round(parseFloat(fe.width)/100*ae);Se.style.width=(ke=De<(ke=ke<Ce?Ce:ke)?De:ke)+"px",pe-=ke}):E.cssRules(fe.key,function(Se){Se.style.width=fe.width+"px",pe-=fe.width}))}),h&&E.cssRules(h.key,function(ue){var fe=h.minWidth||W.cellMinWidth,Ce=h.maxWidth||W.cellMaxWidth,Ce=Math.max(Math.min(pe,Ce),fe);ue.style.width=Ce+"px",!we&&ye&&ce.width(E.getContentWidth(de)),E.layMain.prop("offsetHeight")>E.layMain.prop("clientHeight")&&(ue.style.width=parseFloat(ue.style.width)-le+"px")}),!we&&ye?ce.width(E.getContentWidth(de)):ce.width("auto"),E.setGroupWidth()},$.prototype.resize=function(){var m=this;m.layMain&&("isConnected"in m.layMain[0]?m.layMain[0].isConnected:x.contains(document.body,m.layMain[0]))&&(m.fullSize(),m.setColsWidth(),m.scrollPatch())},$.prototype.reload=function(m,h,E){var W=this;m=m||{},delete W.haveInit,layui.each(m,function(G,B){layui.type(B)==="array"&&delete W.config[G]}),W.config=x.extend(h,{},W.config,m),E!=="reloadData"&&(layui.each(W.config.cols,function(G,B){layui.each(B,function(U,q){delete q.colspan2})}),delete W.config.HAS_SET_COLS_PATCH),W.render(E)},$.prototype.errorView=function(W){var h=this,E=h.layMain.find("."+P),W=x('<div class="'+P+'">'+(W||"Error")+"</div>");E[0]&&(h.layNone.remove(),E.remove()),h.layFixed.addClass(f),h.layMain.find("tbody").html(""),h.layMain.append(h.layNone=W),h.layTotal.addClass(S),h.layPage.find(c).addClass(S),T.cache[h.key]=[],h.syncCheckAll(),h.renderForm(),h.setColsWidth(),h.loading(!1)},$.prototype.page=1,$.prototype.pullData=function(m,h){var E,W,G=this,B=G.config,U=(B.HAS_SET_COLS_PATCH||G.setColsPatch(),B.HAS_SET_COLS_PATCH=!0,B.request),q=B.response,ae=function(){typeof B.initSort=="object"&&G.sort({field:B.initSort.field,type:B.initSort.type,reloadType:h.type})},le=function(de,ce){G.setColsWidth(),G.loading(!1),typeof B.done=="function"&&B.done(de,m,de[q.countName],ce)};h=h||{},typeof B.before=="function"&&B.before(B),G.startTime=new Date().getTime(),h.renderData?((E={})[q.dataName]=T.cache[G.key],E[q.countName]=B.url?layui.type(B.page)==="object"?B.page.count:E[q.dataName].length:B.data.length,typeof B.totalRow=="object"&&(E[q.totalRowName]=x.extend({},G.totalRow)),G.renderData({res:E,curr:m,count:E[q.countName],type:h.type,sort:!0}),le(E,"renderData")):B.url?(W={},B.page&&(W[U.pageName]=m,W[U.limitName]=B.limit),U=x.extend(W,B.where),B.contentType&&B.contentType.indexOf("application/json")==0&&(U=JSON.stringify(U)),G.loading(!0),G._xhr&&G._xhr.readyState!==4&&(G._xhrAbort=!0,G._xhr.abort()),G._xhr=x.ajax({type:B.method||"get",url:B.url,contentType:B.contentType,data:U,dataType:B.dataType||"json",jsonpCallback:B.jsonpCallback,headers:B.headers||{},complete:typeof B.complete=="function"?B.complete:void 0,success:function(de){var ce,ye;(de=typeof B.parseData=="function"&&B.parseData(de)||de)[q.statusName]!=q.statusCode?G.errorView(de[q.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+q.statusName+'": '+q.statusCode):(ce=de[q.countName],(ye=Math.ceil(ce/B.limit)||1)<m&&(m=ye),G.totalRow=de[q.totalRowName],G.renderData({res:de,curr:m,count:ce,type:h.type}),ae(),B.time=new Date().getTime()-G.startTime+" ms"),le(de,h.type)},error:function(de,ce){de&&de.status===0&&G._xhrAbort?G._xhrAbort=!1:(G.errorView("请求异常,错误提示:"+ce),typeof B.error=="function"&&B.error(de,ce))}})):layui.type(B.data)==="array"&&(E={},W=m*B.limit-B.limit,U=B.data.concat(),E[q.dataName]=B.page?U.splice(W,B.limit):U,E[q.countName]=B.data.length,typeof B.totalRow=="object"&&(E[q.totalRowName]=x.extend({},B.totalRow)),G.totalRow=E[q.totalRowName],G.renderData({res:E,curr:m,count:E[q.countName],type:h.type}),ae(),le(E,h.type))},$.prototype.eachCols=function(m){return T.eachCols(null,m,this.config.cols),this},$.prototype.col=function(m){try{return m=m.split("-"),this.config.cols[m[1]][m[2]]||{}}catch(h){return A.error(h),{}}},$.prototype.getTrHtml=function(m,h,E,W){var G=this,B=G.config,U=W&&W.trs||[],q=W&&W.trs_fixed||[],ae=W&&W.trs_fixed_r||[];return E=E||1,layui.each(m,function(le,de){var ce=[],ye=[],we=[],ve=le+B.limit*(E-1)+1;if(typeof de!="object"){m[le]=de={LAY_KEY:de};try{T.cache[G.key][le]=de}catch(pe){}}layui.type(de)==="array"&&de.length===0||(de[T.config.numbersName]=ve,de[T.config.indexName]=le,h||(de[T.config.initIndexName]=le),G.eachCols(function(Ce,ue){var fe,Ce=ue.field||Ce,De=ue.key,Se=de[Ce];Se!=null||(Se=""),ue.colGroup||(Ce=['<td data-field="'+Ce+'" data-key="'+De+'" '+(Ce=[],(fe=typeof ue.edit=="function"?ue.edit(de):ue.edit)&&Ce.push('data-edit="'+fe+'"'),ue.templet&&Ce.push('data-content="'+d.escape(Se)+'"'),ue.toolbar&&Ce.push('data-off="true"'),ue.event&&Ce.push('lay-event="'+ue.event+'"'),ue.minWidth&&Ce.push('data-minwidth="'+ue.minWidth+'"'),ue.maxWidth&&Ce.push('data-maxwidth="'+ue.maxWidth+'"'),ue.style&&Ce.push('style="'+ue.style+'"'),Ce.join(" "))+' class="'+(fe=[],ue.hide&&fe.push(f),ue.field||fe.push(O),fe.join(" "))+'">','<div class="layui-table-cell laytable-cell-'+(ue.type==="normal"?De:De+" laytable-cell-"+ue.type)+'"'+(ue.align?' align="'+ue.align+'"':"")+">"+(function(){var ke,Le=x.extend(!0,{LAY_COL:ue},de),Ie=T.config.checkName,Re=T.config.disabledName;switch(ue.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+(ke=[],ue[Ie]&&(de[Ie]=ue[Ie],ue[Ie])&&(ke[0]="checked"),Le[Ie]&&(ke[0]="checked"),Le[Re]&&ke.push("disabled"),ke.join(" "))+' lay-type="layTableCheckbox">';case"radio":return'<input type="radio" name="layTableRadio_'+B.index+'" '+(ke=[],Le[Ie]&&(ke[0]="checked"),Le[Re]&&ke.push("disabled"),ke.join(" "))+' lay-type="layTableRadio">';case"numbers":return ve}return ue.toolbar?K(x(ue.toolbar).html()||"").render(Le):a.call(G,{item3:ue,content:Se,tplData:Le})})(),"</div></td>"].join(""),ce.push(Ce),ue.fixed&&ue.fixed!=="right"&&ye.push(Ce),ue.fixed==="right"&&we.push(Ce))}),le=['data-index="'+le+'"'],de[T.config.checkName]&&le.push('class="'+r+'"'),le=le.join(" "),U.push("<tr "+le+">"+ce.join("")+"</tr>"),q.push("<tr "+le+">"+ye.join("")+"</tr>"),ae.push("<tr "+le+">"+we.join("")+"</tr>"))}),{trs:U,trs_fixed:q,trs_fixed_r:ae}},T.getTrHtml=function(m,h){return m=ee(m),m.getTrHtml(h,null,m.page)},$.prototype.renderData=function(m){var h=this,E=h.config,q=m.res,W=m.curr,G=h.count=m.count,B=m.sort,U=q[E.response.dataName]||[],q=q[E.response.totalRowName],ae=[],le=[],de=[],ce=function(){if(!B&&h.sortKey)return h.sort({field:h.sortKey.field,type:h.sortKey.sort,pull:!0,reloadType:m.type});h.getTrHtml(U,B,W,{trs:ae,trs_fixed:le,trs_fixed_r:de}),E.scrollPos==="fixed"&&m.type==="reloadData"||h.layBody.scrollTop(0),E.scrollPos==="reset"&&h.layBody.scrollLeft(0),h.layMain.find("."+P).remove(),h.layMain.find("tbody").html(ae.join("")),h.layFixLeft.find("tbody").html(le.join("")),h.layFixRight.find("tbody").html(de.join("")),h.syncCheckAll(),h.renderForm(),h.fullSize(),h.haveInit?h.scrollPatch():setTimeout(function(){h.scrollPatch()},50),h.haveInit=!0,M.close(h.tipsIndex)};return T.cache[h.key]=U,h.layTotal[U.length==0?"addClass":"removeClass"](S),h.layPage[E.page||E.pagebar?"removeClass":"addClass"](f),h.layPage.find(c)[!E.page||G==0||U.length===0&&W==1?"addClass":"removeClass"](S),U.length===0?h.errorView(E.text.none):(h.layFixLeft.removeClass(f),B?ce():(ce(),h.renderTotal(U,q),h.layTotal&&h.layTotal.removeClass(f),void(E.page&&(E.page=x.extend({elem:"layui-table-page"+E.index,count:G,limit:E.limit,limits:E.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon">&#xe603;</i>',next:'<i class="layui-icon">&#xe602;</i>',jump:function(ye,we){we||(h.page=ye.curr,E.limit=ye.limit,h.pullData(ye.curr))}},E.page),E.page.count=G,Y.render(E.page)))))},T.renderData=function(m){m=ee(m),m&&m.pullData(m.page,{renderData:!0,type:"reloadData"})},$.prototype.renderTotal=function(m,h){var E,W=this,G=W.config,B={};G.totalRow&&(layui.each(m,function(U,q){layui.type(q)==="array"&&q.length===0||W.eachCols(function(de,le){var de=le.field||de,ce=q[de];le.totalRow&&(B[de]=(B[de]||0)+(parseFloat(ce)||0))})}),W.dataTotal=[],E=[],W.eachCols(function(ae,q){var ae=q.field||ae,le=h&&h[q.field],de="totalRowDecimals"in q?q.totalRowDecimals:2,de=B[ae]?parseFloat(B[ae]||0).toFixed(de):"",de=(ye=q.totalRowText||"",(ce={LAY_COL:q})[ae]=de,ce=q.totalRow&&a.call(W,{item3:q,content:de,tplData:ce})||ye,le||ce),ce=typeof(ye=q.totalRow||G.totalRow)=="string"?K(ye).render(x.extend({TOTAL_NUMS:le||B[ae],TOTAL_ROW:h||{},LAY_COL:q},q)):de,ye=(q.field&&W.dataTotal.push({field:q.field,total:x("<div>"+ce+"</div>").text()}),['<td data-field="'+ae+'" data-key="'+q.key+'" '+(ye=[],q.minWidth&&ye.push('data-minwidth="'+q.minWidth+'"'),q.maxWidth&&ye.push('data-maxwidth="'+q.maxWidth+'"'),q.style&&ye.push('style="'+q.style+'"'),ye.join(" "))+' class="'+(le=[],q.hide&&le.push(f),q.field||le.push(O),le.join(" "))+'">','<div class="layui-table-cell laytable-cell-'+(de=q.key,q.type==="normal"?de:de+" laytable-cell-"+q.type)+'"'+(ae=[],q.align&&ae.push('align="'+q.align+'"'),ae.join(" "))+">"+ce,"</div></td>"].join(""));E.push(ye)}),m=W.layTotal.find(".layui-table-patch"),W.layTotal.find("tbody").html("<tr>"+E.join("")+(m.length?m.get(0).outerHTML:"")+"</tr>"))},$.prototype.getColElem=function(m,h){return m.eq(0).find(".laytable-cell-"+h+":eq(0)")},$.prototype.renderForm=function(m){this.config;var h=this.elem.attr("lay-filter");y.render(m,h)},$.prototype.renderFormByElem=function(m){layui.each(["input","select"],function(h,E){y.render(m.find(E))})},$.prototype.syncCheckAll=function(){var m,h=this,E=h.config,W=h.layHeader.find('input[name="layTableCheckbox"]'),G=T.checkStatus(h.key);W[0]&&(m=G.isAll,h.eachCols(function(B,U){U.type==="checkbox"&&(U[E.checkName]=m)}),W.prop({checked:G.isAll,indeterminate:!G.isAll&&G.data.length}))},$.prototype.setRowActive=function(m,h,E){if(this.config,m=this.layBody.find('tr[data-index="'+m+'"]'),h=h||"layui-table-click",E)return m.removeClass(h);m.addClass(h),m.siblings("tr").removeClass(h)},$.prototype.setRowChecked=function(m){var h,E,W,G,B,U,q,ae=this,le=ae.config,de=m.index==="all",ce=layui.type(m.index)==="array",ye=de||ce;le.tree&&le.tree.view||ye&&(ae.layBox.addClass(te),m.type==="radio")||(ce&&(h={},layui.each(m.index,function(we,ve){h[ve]=!0}),m.index=h),E=ae.layBody.children(".layui-table").children("tbody"),q=ye?"tr":'tr[data-index="'+m.index+'"]',q=E.children(q),E=de?q:q.filter(ce?function(){var we=x(this).data("index");return m.index[we]}:'[data-index="'+m.index+'"]'),m=x.extend({type:"checkbox"},m),W=T.cache[ae.key],G="checked"in m,B=function(we){return m.type==="radio"||(G?m.checked:!we)},E.each(function(){var we=x(this),ve=we.attr("data-index"),pe=W[ve];ve&&layui.type(pe)!=="array"&&!pe[le.disabledName]&&(pe=pe[le.checkName]=B(we.hasClass(r)),we.toggleClass(r,!!pe),m.type==="radio")&&(U=ve,we.siblings().removeClass(r))}),U&&layui.each(W,function(we,ve){Number(U)!==Number(we)&&delete ve[le.checkName]}),q=(ce=(de=E.children("td").children(".layui-table-cell").children('input[lay-type="'+({radio:"layTableRadio",checkbox:"layTableCheckbox"}[m.type]||"checkbox")+'"]:not(:disabled)')).last()).closest(X),(m.type==="radio"&&q.hasClass(f)?de.first():de).prop("checked",B(ce.prop("checked"))),ae.syncCheckAll(),ye&&setTimeout(function(){ae.layBox.removeClass(te)},100))},$.prototype.sort=function(m){var h,E=this,W={},G=E.config,B=G.elem.attr("lay-filter"),U=T.cache[E.key];typeof(m=m||{}).field=="string"&&(q=m.field,E.layHeader.find("th").each(function(de,ce){var ye=x(this),we=ye.data("field");if(we===m.field)return m.field=ye,q=we,!1}));try{var q=q||m.field.data("field"),ae=m.field.data("key");if(E.sortKey&&!m.pull&&q===E.sortKey.field&&m.type===E.sortKey.sort)return;var le=E.layHeader.find("th .laytable-cell-"+ae).find(o);E.layHeader.find("th").find(o).removeAttr("lay-sort"),le.attr("lay-sort",m.type||null),E.layFixed.find("th")}catch(de){A.error("Table modules: sort field '"+q+"' not matched")}E.sortKey={field:q,sort:m.type},G.autoSort&&(m.type==="asc"?h=layui.sort(U,q,null,!0):m.type==="desc"?h=layui.sort(U,q,!0,!0):(h=layui.sort(U,T.config.initIndexName,null,!0),delete E.sortKey,delete G.initSort)),W[G.response.dataName]=h||U,E.renderData({res:W,curr:E.page,count:E.count,sort:!0,type:m.reloadType}),m.fromEvent&&(G.initSort={field:q,type:m.type},layui.event.call(m.field,p,"sort("+B+")",x.extend({config:G},G.initSort)))},$.prototype.loading=function(m){this.config.loading&&this.layBox.find(".layui-table-init").toggleClass(f,!m)},$.prototype.cssRules=function(m,h){var E=this.elem.children("style")[0];Q.getStyleRules(E,function(W){if(W.selectorText===".laytable-cell-"+m)return h(W),!0})},$.prototype.fullSize=function(){var m,h,E=this,W=E.config,G=W.height;E.fullHeightGap?(G=j.height()-E.fullHeightGap)<135&&(G=135):E.parentDiv&&E.parentHeightGap?(G=x(E.parentDiv).height()-E.parentHeightGap)<135&&(G=135):E.customHeightFunc&&(G=E.customHeightFunc())<135&&(G=135),1<W.cols.length&&(m=E.layFixed.find(R).find("th"),h=E.layHeader.first(),layui.each(m,function(B,U){(U=x(U)).height(h.find('th[data-key="'+U.attr("data-key")+'"]').height()+"px")})),G&&(m=parseFloat(G)-(E.layHeader.outerHeight()||39),W.toolbar&&(m-=E.layTool.outerHeight()||51),W.totalRow&&(m-=E.layTotal.outerHeight()||40),(W.page||W.pagebar)&&(m-=E.layPage.outerHeight()||43),W.maxHeight?layui.each({elem:G,layMain:m},function(B,U){E[B].css({height:"auto",maxHeight:U+"px"})}):E.layMain.outerHeight(m))},$.prototype.getScrollWidth=function(m){var h;return m?h=m.offsetWidth-m.clientWidth:((m=document.createElement("div")).style.width="100px",m.style.height="100px",m.style.overflowY="scroll",document.body.appendChild(m),h=m.offsetWidth-m.clientWidth,document.body.removeChild(m)),h},$.prototype.scrollPatch=function(){var m=this,h=m.layMain.children("table"),E=m.layMain.width()-m.layMain.prop("clientWidth"),W=m.layMain.height()-m.layMain.prop("clientHeight"),G=(m.getScrollWidth(m.layMain[0]),h.outerWidth()-m.layMain.width()),B=function(U){var q;E&&W?(U=U.eq(0)).find(".layui-table-patch")[0]||((q=x('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>')).find("div").css({width:E}),U.find("tr").append(q)):U.find(".layui-table-patch").remove()};B(m.layHeader),B(m.layTotal),B=m.layMain.height()-W,m.layFixed.find(k).css("height",h.height()>=B?B:"auto").scrollTop(m.layMain.scrollTop()),m.layFixRight[T.cache[m.key]&&T.cache[m.key].length&&0<G?"removeClass":"addClass"](f),m.layFixRight.css("right",E)},$.prototype.updateRow=function(G,h){var E=this,W=".layui-table-cell",G=layui.type(G)==="array"?G:[G],B=T.cache[E.key]||[];layui.each(G,function(U,q){var ae,le,de,ce,ye;ae=q.index,le=q.data,de=q.related,ce=B[ae]||{},ye=E.layBody.find('tr[data-index="'+ae+'"]'),layui.each(le,function(we,ve){ce[we]=ve,h&&h(we,ve)}),E.eachCols(function(we,ve){var pe,ue=String(ve.field||we);(ue in le||(typeof de=="function"?de(ue,we):de)&&(ve.templet||ve.toolbar))&&(ue=(we=ye.children('td[data-field="'+ue+'"]')).children(W),pe=ce[ve.field],ue.html(a.call(E,{item3:ve,content:pe,tplData:x.extend({LAY_COL:ve},ce)})),we.data("content",pe),E.renderFormByElem(ue))})})},T.updateRow=function(m,h){return ee(m).updateRow(h)},$.prototype.events=function(){var m=this,h=m.config,E=h.elem.attr("lay-filter"),W=m.layHeader.find("th"),G=".layui-table-cell",B=x("body"),U={},q=(m.layTool.on("click","*[lay-event]",function(pe){var ue=x(this),fe=ue.attr("lay-event"),Ce=T.cache[h.id],De=function(Se){var ke=x(Se.list),Le=x('<ul class="'+z+'"></ul>');Le.html(ke),h.height&&Le.css("max-height",h.height-(m.layTool.outerHeight()||50)),ue.find("."+z)[0]||ue.append(Le),m.renderForm(),Le.on("click",function(Ie){layui.stope(Ie)}),Se.done&&Se.done(Le,ke)};layui.stope(pe),J.trigger("table.tool.panel.remove"),M.close(m.tipsIndex),layui.each(h.defaultToolbar,function(Se,ke){if(ke.layEvent===fe)return typeof ke.onClick=="function"&&ke.onClick({data:Ce,config:h,openPanel:De,elem:ue}),!0}),layui.event.call(this,p,"toolbar("+E+")",x.extend({event:fe,config:h},{}))}),m.layHeader.on("click","*[lay-event]",function(pe){var fe=x(this),ue=fe.attr("lay-event"),fe=fe.closest("th").data("key"),fe=m.col(fe);layui.event.call(this,p,"colTool("+E+")",x.extend({event:ue,config:h,col:fe},{}))}),m.layPagebar.on("click","*[lay-event]",function(pe){var ue=x(this).attr("lay-event");layui.event.call(this,p,"pagebar("+E+")",x.extend({event:ue,config:h},{}))}),W.on("mousemove",function(Ce){var ue=x(this),fe=ue.offset().left,Ce=Ce.clientX-fe;ue.data("unresize")||_.eventMoveElem||(U.allowResize=ue.width()-Ce<=10,B.css("cursor",U.allowResize?"col-resize":""))}).on("mouseleave",function(){x(this),_.eventMoveElem||(U.allowResize=!1,B.css("cursor",""))}).on("mousedown",function(pe){var ue,fe=x(this);U.allowResize&&(ue=fe.data("key"),pe.preventDefault(),U.offset=[pe.clientX,pe.clientY],m.cssRules(ue,function(Ce){var De=Ce.style.width||fe.outerWidth();U.rule=Ce,U.ruleWidth=parseFloat(De),U.minWidth=fe.data("minwidth")||h.cellMinWidth,U.maxWidth=fe.data("maxwidth")||h.cellMaxWidth}),fe.data(re,U),_.eventMoveElem=fe)}),_.docEvent||J.on("mousemove",function(pe){var ue,fe;_.eventMoveElem&&(ue=_.eventMoveElem.data(re)||{},_.eventMoveElem.data("resizing",1),pe.preventDefault(),ue.rule)&&(pe=ue.ruleWidth+pe.clientX-ue.offset[0],fe=_.eventMoveElem.closest("."+n).attr(u),fe=ee(fe))&&((pe=pe<ue.minWidth?ue.minWidth:pe)>ue.maxWidth&&(pe=ue.maxWidth),ue.rule.style.width=pe+"px",fe.setGroupWidth(_.eventMoveElem),M.close(m.tipsIndex))}).on("mouseup",function(pe){var ue,fe,Ce,De,Se;_.eventMoveElem&&(Ce=(ue=_.eventMoveElem).closest("."+n).attr(u),fe=ee(Ce))&&(Ce=ue.data("key"),De=fe.col(Ce),Se=fe.config.elem.attr("lay-filter"),U={},B.css("cursor",""),fe.scrollPatch(),ue.removeData(re),delete _.eventMoveElem,fe.cssRules(Ce,function(ke){De.width=parseFloat(ke.style.width),layui.event.call(ue[0],p,"colResized("+Se+")",{col:De,config:fe.config})}))}),_.docEvent=!0,W.on("click",function(pe){var ue=x(this),fe=ue.find(o),Ce=fe.attr("lay-sort");if(!fe[0]||ue.data("resizing")===1)return ue.removeData("resizing");m.sort({field:ue,type:Ce==="asc"?"desc":Ce==="desc"?null:"asc",fromEvent:!0})}).find(o+" .layui-edge ").on("click",function(pe){var fe=x(this),ue=fe.index(),fe=fe.parents("th").eq(0).data("field");layui.stope(pe),ue===0?m.sort({field:fe,type:"asc",fromEvent:!0}):m.sort({field:fe,type:"desc",fromEvent:!0})}),m.commonMember=function(pe){var ue=x(this).parents("tr").eq(0).data("index"),fe=m.layBody.find('tr[data-index="'+ue+'"]'),Ce=(T.cache[m.key]||[])[ue]||{},De={tr:fe,config:h,data:T.clearCacheKey(Ce),dataCache:Ce,index:ue,del:function(){T.cache[m.key][ue]=[],fe.remove(),m.scrollPatch()},update:function(Se,ke){m.updateRow({index:ue,data:Se=Se||{},related:ke},function(Le,Ie){De.data[Le]=Ie})},setRowChecked:function(Se){m.setRowChecked(x.extend({index:ue},Se))}};return x.extend(De,pe)}),ae=(m.elem.on("click",'input[name="layTableCheckbox"]+',function(pe){var fe=x(this),ue=fe.closest("td"),fe=fe.prev(),Ce=(m.layBody.find('input[name="layTableCheckbox"]'),fe.parents("tr").eq(0).data("index")),De=fe[0].checked,Se=fe.attr("lay-filter")==="layTableAllChoose";fe[0].disabled||(Se?m.setRowChecked({index:"all",checked:De}):m.setRowChecked({index:Ce,checked:De}),layui.stope(pe),layui.event.call(fe[0],p,"checkbox("+E+")",q.call(fe[0],{checked:De,type:Se?"all":"one",getCol:function(){return m.col(ue.data("key"))}})))}),m.elem.on("click",'input[lay-type="layTableRadio"]+',function(pe){var fe=x(this),ue=fe.closest("td"),fe=fe.prev(),Ce=fe[0].checked,De=fe.parents("tr").eq(0).data("index");if(layui.stope(pe),fe[0].disabled)return!1;m.setRowChecked({type:"radio",index:De}),layui.event.call(fe[0],p,"radio("+E+")",q.call(fe[0],{checked:Ce,getCol:function(){return m.col(ue.data("key"))}}))}),m.layBody.on("mouseenter","tr",function(){var pe=x(this),ue=pe.index();pe.data("off")||m.layBody.find("tr:eq("+ue+")").addClass(w)}).on("mouseleave","tr",function(){var pe=x(this),ue=pe.index();pe.data("off")||m.layBody.find("tr:eq("+ue+")").removeClass(w)}).on("click","tr",function(pe){ae.call(this,"row",pe)}).on("dblclick","tr",function(pe){ae.call(this,"rowDouble",pe)}).on("contextmenu","tr",function(pe){h.defaultContextmenu||pe.preventDefault(),ae.call(this,"rowContextmenu",pe)}),function(pe,ue){var fe=x(this);if(!fe.data("off")){if(pe!=="rowContextmenu"){var Ce=[".layui-form-checkbox",".layui-form-switch",".layui-form-radio","[lay-unrow]"].join(",");if(x(ue.target).is(Ce)||x(ue.target).closest(Ce)[0])return}layui.event.call(this,p,pe+"("+E+")",q.call(fe.children("td")[0],{e:ue}))}}),le=function(pe,ue){var fe,Ce,De;(pe=x(pe)).data("off")||(De=pe.data("field"),Ce=pe.data("key"),Ce=m.col(Ce),fe=pe.closest("tr").data("index"),fe=T.cache[m.key][fe],pe.children(G),(Ce=typeof Ce.edit=="function"?Ce.edit(fe):Ce.edit)&&((Ce=x(Ce==="textarea"?'<textarea class="layui-input '+g+'" lay-unrow></textarea>':'<input class="layui-input '+g+'" lay-unrow>'))[0].value=(De=pe.data("content")||fe[De])===void 0||De===null?"":De,pe.find("."+g)[0]||pe.append(Ce),Ce.focus(),ue)&&layui.stope(ue))},de=(m.layBody.on("change","."+g,function(){var De=x(this),pe=De.parent(),ue=this.value,fe=De.parent().data("field"),De=De.closest("tr").data("index"),De=T.cache[m.key][De],Ce=q.call(pe[0],{value:ue,field:fe,oldValue:De[fe],td:pe,reedit:function(){setTimeout(function(){le(Ce.td);var Se={};Se[fe]=Ce.oldValue,Ce.update(Se)})},getCol:function(){return m.col(pe.data("key"))}}),De={};De[fe]=ue,Ce.update(De),layui.event.call(pe[0],p,"edit("+E+")",Ce)}).on("blur","."+g,function(){x(this).remove()}),m.layBody.on(h.editTrigger,"td",function(pe){le(this,pe)}).on("mouseenter","td",function(){ce.call(this)}).on("mouseleave","td",function(){ce.call(this,"hide")}),m.layTotal.on("mouseenter","td",function(){ce.call(this)}).on("mouseleave","td",function(){ce.call(this,"hide")}),"layui-table-grid-down"),ce=function(pe){var ue=x(this),fe=ue.children(G);ue.data("off")||ue.parent().hasClass(ne)||(pe?ue.find(".layui-table-grid-down").remove():!(fe.prop("scrollWidth")>fe.prop("clientWidth")||0<fe.find("br").length)||h.lineStyle||fe.find("."+de)[0]||ue.append('<div class="'+de+'"><i class="layui-icon layui-icon-down"></i></div>'))},ye=function(pe,ue){var fe=x(this),Le=fe.parent(),Ce=Le.data("key"),De=m.col(Ce),Se=Le.parent().data("index"),ke=Le.children(G),Le="layui-table-cell-c",Ie=x('<i class="layui-icon layui-icon-up '+Le+'">');(ue=ue||De.expandedMode||h.cellExpandedMode)==="tips"?m.tipsIndex=M.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(ke.height()+23)+"px;"+(h.size==="sm"?"padding: 4px 15px; font-size: 12px;":h.size==="lg"?"padding: 14px 15px;":"")+'">',ke.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),ke[0],{tips:[3,""],time:-1,anim:-1,maxWidth:I.ios||I.android?300:m.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(Re,qe){Re.find(".layui-table-tips-c").on("click",function(){M.close(qe)})}}):(m.elem.find("."+Le).trigger("click"),m.cssRules(Ce,function(Re){var qe=Re.style.width,We=De.expandedWidth||h.cellExpandedWidth;We<parseFloat(qe)&&(We=parseFloat(qe)),Ie.data("cell-width",qe),Re.style.width=We+"px",setTimeout(function(){m.scrollPatch()})}),m.setRowActive(Se,ne),ke.next("."+Le)[0]||ke.after(Ie),Ie.on("click",function(){var Re=x(this);m.setRowActive(Se,[ne,w].join(" "),!0),m.cssRules(Ce,function(qe){qe.style.width=Re.data("cell-width"),setTimeout(function(){m.resize()})}),Re.remove(),ke.scrollTop(0),ke.scrollLeft(0)})),fe.remove(),layui.stope(pe)},we=(m.layBody.on("click","."+de,function(pe){ye.call(this,pe)}),m.layTotal.on("click","."+de,function(pe){ye.call(this,pe,"tips")}),function(pe){var ue=x(this),fe=ue.closest("td"),Ce=ue.parents("tr").eq(0).data("index");m.setRowActive(Ce),layui.event.call(this,p,(pe||"tool")+"("+E+")",q.call(this,{event:ue.attr("lay-event"),getCol:function(){return m.col(fe.data("key"))}}))}),ve=(m.layBody.on("click","*[lay-event]",function(pe){we.call(this),layui.stope(pe)}).on("dblclick","*[lay-event]",function(pe){we.call(this,"toolDouble"),layui.stope(pe)}),m.layMain.on("scroll",function(){var ue=x(this),pe=ue.scrollLeft(),ue=ue.scrollTop();m.layHeader.scrollLeft(pe),m.layTotal.scrollLeft(pe),m.layFixed.find(k).scrollTop(ue),M.close(m.tipsIndex)}),window.requestAnimationFrame||function(pe){return setTimeout(pe,1e3/60)});m.layFixed.find(k).on("mousewheel DOMMouseScroll",function(pe){var ue=pe.originalEvent.wheelDelta||-pe.originalEvent.detail,fe=m.layMain.scrollTop(),Ce=100,De=(pe.preventDefault(),function(){0<Ce&&(Ce-=10,fe+=0<ue?-10:10,m.layMain.scrollTop(fe),ve(De))});ve(De)})},$.prototype.getElementSize=function(m){if(window.getComputedStyle)return m=window.getComputedStyle(m,null),{height:parseFloat(m.height||"0"),width:parseFloat(m.width||"0"),borderTopWidth:parseFloat(m.borderTopWidth||"0"),borderRightWidth:parseFloat(m.borderRightWidth||"0"),borderBottomWidth:parseFloat(m.borderBottomWidth||"0"),borderLeftWidth:parseFloat(m.borderLeftWidth||"0"),paddingTop:parseFloat(m.paddingTop||"0"),paddingRight:parseFloat(m.paddingRight||"0"),paddingBottom:parseFloat(m.paddingBottom||"0"),paddingLeft:parseFloat(m.paddingLeft||"0"),marginTop:parseFloat(m.marginTop||"0"),marginRight:parseFloat(m.marginRight||"0"),marginBottom:parseFloat(m.marginBottom||"0"),marginLeft:parseFloat(m.marginLeft||"0"),boxSizing:m.boxSizing}},$.prototype.getContentWidth=function(m){var h;return!(m[0].nodeType===9||Q.ie&&m.css("box-sizing")==="border-box"||m.css("display")==="none")&&(h=this.getElementSize(m[0]))!==void 0&&h.width?h.boxSizing==="border-box"?h.width-h.paddingLeft-h.paddingRight-h.borderLeftWidth-h.borderRightWidth:h.width:m.width()},j.on("resize",function(){layui.each(_.that,function(){this.resize()})}),J.on("click",function(){J.trigger("table.remove.tool.panel")}),J.on("table.remove.tool.panel",function(){x("."+z).remove()}),T.init=function(m,h){h=h||{};var E=typeof m=="object"?m:x(typeof m=="string"?'table[lay-filter="'+m+'"]':s+"[lay-data], "+s+"[lay-options]"),W="Table element property lay-data configuration item has a syntax error: ";return E.each(function(){var G,B=x(this),ae=B.attr("lay-data"),ae=Q.options(this,{attr:ae?"lay-data":null,errorText:W+(ae||B.attr("lay-options"))}),U=x.extend({elem:this,cols:[],data:[],skin:B.attr("lay-skin"),size:B.attr("lay-size"),even:typeof B.attr("lay-even")=="string"},T.config,h,ae),q=(m&&B.hide(),B.find("thead>tr").each(function(le){U.cols[le]=[],x(this).children().each(function(de){var ye=x(this),ce=ye.attr("lay-data"),ce=Q.options(this,{attr:ce?"lay-data":null,errorText:W+(ce||ye.attr("lay-options"))}),ye=x.extend({title:ye.text(),colspan:parseInt(ye.attr("colspan"))||1,rowspan:parseInt(ye.attr("rowspan"))||1},ce);U.cols[le].push(ye)})}),B.find("tbody>tr")),ae=T.render(U);!q.length||h.data||ae.config.url||(G=0,T.eachCols(ae.config.id,function(le,de){q.each(function(ce){U.data[ce]=U.data[ce]||{};var ye=x(this),we=de.field;U.data[ce][we]=ye.children("td").eq(G).html()}),G++}),ae.reloadData({data:U.data}))}),this},_.that={},_.config={},function(m,h,E,W){var G,B;W.colGroup&&(G=0,m++,W.CHILD_COLS=[],B=E+(parseInt(W.rowspan)||1),layui.each(h[B],function(U,q){q.parentKey?q.parentKey===W.key&&(q.PARENT_COL_INDEX=m,W.CHILD_COLS.push(q),oe(m,h,B,q)):q.PARENT_COL_INDEX||1<=G&&G==(W.colspan||1)||(q.PARENT_COL_INDEX=m,W.CHILD_COLS.push(q),G+=parseInt(1<q.colspan?q.colspan:1),oe(m,h,B,q))}))});T.eachCols=function(W,h,E){var W=_.config[W]||{},G=[],B=(E=x.extend(!0,[],E||W.cols),layui.each(E,function(U,q){if(U)return!0;layui.each(q,function(ae,le){oe(0,E,U,le),le.PARENT_COL_INDEX||G.push(le)})}),function(U){layui.each(U||G,function(q,ae){if(ae.CHILD_COLS)return B(ae.CHILD_COLS);typeof h=="function"&&h(q,ae)})});B()},T.checkStatus=function(G){var h=0,E=[],W=[],G=T.cache[G]||[];return layui.each(G,function(B,U){layui.type(U)==="array"||U[T.config.disabledName]?h++:U[T.config.checkName]&&(E.push(T.clearCacheKey(U)),W.push(U))}),{data:E,dataCache:W,isAll:!(!G.length||!E.length)&&E.length===G.length-h}},T.setRowChecked=function(m,h){m=ee(m),m&&m.setRowChecked(h)},T.getData=function(E){var h=[],E=T.cache[E]||[];return layui.each(E,function(W,G){layui.type(G)!=="array"&&h.push(T.clearCacheKey(G))}),h},T.resize=function(m){m?C(m)&&ee(m).resize():layui.each(_.that,function(){this.resize()})},T.exportFile=function(m,h,E){h=h||T.clearCacheKey(T.cache[m]);var W=(E=typeof E=="object"?E:(W={},E&&(W.type=E),W)).type||"csv",G=_.that[m],B=_.config[m]||{},U={csv:"text/csv",xls:"application/vnd.ms-excel"}[W],q=document.createElement("a");if(I.ie)return A.error("IE_NOT_SUPPORT_EXPORTS");var ae,le,de,ce,ye=B.tree&&B.tree.view;if(ye)try{h=x.extend(!0,[],T.cache[m]),h=(function we(ve){return ve.reduce(function(pe,ue){var fe=ue.children||[];return delete ue.children,pe.concat(ue,we(fe))},[])})(Array.from(h))}catch(we){}q.href="data:"+U+";charset=utf-8,\uFEFF"+encodeURIComponent((ae=[],le=[],de=[],ce={},layui.each(h,function(we,ve){var pe=[];typeof m=="object"?(layui.each(m,function(ue,fe){we==0&&ae.push(fe||"")}),layui.each(layui.isArray(ve)?x.extend([],ve):T.clearCacheKey(ve),function(ue,fe){pe.push('"'+(fe||"")+'"')})):T.eachCols(m,function(ue,fe){var Ce;fe.ignoreExport===!1||fe.field&&fe.type=="normal"?fe.hide&&fe.ignoreExport!==!1||fe.ignoreExport===!0?we==0&&(ce[fe.field]=!0):((Ce=ve[fe.field])!==void 0&&Ce!==null||(Ce=""),we==0&&ae.push(fe.fieldTitle||fe.title||fe.field||""),Ce=(Ce=a.call(G,{item3:fe,content:Ce,tplData:ve,text:"text",obj:{td:function(De){return ye&&(we=ve.LAY_DATA_INDEX),G.layBody.find('tr[data-index="'+we+'"]>td').filter('[data-field="'+De+'"]')}}})).replace(/"/g,'""'),pe.push(Ce='"'+Ce+'"')):fe.field&&fe.type!=="normal"&&we==0&&(ce[fe.field]=!0)}),le.push(pe.join(","))}),G&&layui.each(G.dataTotal,function(we,ve){ce[ve.field]||de.push('"'+(ve.total||"")+'"')}),ae.join(",")+`\r
`+le.join(`\r
`)+`\r
`+de.join(","))),q.download=(E.title||B.title||"table_"+(B.index||""))+"."+W,document.body.appendChild(q),q.click(),document.body.removeChild(q)},T.getOptions=C,T.hideCol=function(m,h){var E=ee(m);E&&(layui.type(h)==="boolean"?E.eachCols(function(W,q){var B=q.key,U=E.col(B),q=q.parentKey;U.hide!=h&&(U=U.hide=h,E.elem.find('*[data-key="'+B+'"]')[U?"addClass":"removeClass"](f),E.setParentCol(U,q))}):(h=layui.isArray(h)?h:[h],layui.each(h,function(W,G){E.eachCols(function(B,U){var q,ae;G.field===U.field&&(q=U.key,ae=E.col(q),U=U.parentKey,"hide"in G)&&ae.hide!=G.hide&&(ae=ae.hide=!!G.hide,E.elem.find('*[data-key="'+q+'"]')[ae?"addClass":"removeClass"](f),E.setParentCol(ae,U))})})),x("."+z).remove(),E.resize())},T.reload=function(m,h,E,W){if(C(m))return(m=ee(m)).reload(h,E,W),_.call(m)},T.reloadData=function(){var m=x.extend([],arguments),h=(m[3]="reloadData",new RegExp("^("+["elem","id","cols","width","height","maxHeight","toolbar","defaultToolbar","className","css","pagebar"].join("|")+")$"));return layui.each(m[1],function(E,W){h.test(E)&&delete m[1][E]}),T.reload.apply(null,m)},T.render=function(m){return m=new $(m),_.call(m)},T.clearCacheKey=function(m){return delete(m=x.extend({},m))[T.config.checkName],delete m[T.config.indexName],delete m[T.config.initIndexName],delete m[T.config.numbersName],delete m[T.config.disabledName],m},x(function(){T.init()}),he(p,T)}),layui.define(["table"],function(he){"use strict";var x=layui.$,Q=layui.form,K=layui.table,Y=layui.hint(),M={config:{},on:K.on,eachCols:K.eachCols,index:K.index,set:function(D){var v=this;return v.config=x.extend({},v.config,D),v},resize:K.resize,getOptions:K.getOptions,hideCol:K.hideCol,renderData:K.renderData},y=function(){var D=this,v=D.config,L=v.id||v.index;return{config:v,reload:function(j,J){D.reload.call(D,j,J)},reloadData:function(j,J){M.reloadData(L,j,J)}}},d=function(D){var v=y.that[D];return v||Y.error(D?"The treeTable instance with ID '"+D+"' not found":"ID argument required"),v||null},A="lay-table-id",I="layui-hide",T=".layui-table-body",_=".layui-table-main",ee=".layui-table-fixed-l",C=".layui-table-fixed-r",a="layui-table-checked",p="layui-table-tree",u="LAY_DATA_INDEX",s="LAY_DATA_INDEX_HISTORY",f="LAY_PARENT_INDEX",S="LAY_CHECKBOX_HALF",P="LAY_EXPAND",n="LAY_HAS_EXPANDED",R="LAY_ASYNC_STATUS",k=["all","parent","children","none"],X=/<[^>]+?>/,c=["flexIconClose","flexIconOpen","iconClose","iconOpen","iconLeaf","icon"],o=function(D){var v=this;v.index=++M.index,v.config=x.extend(!0,{},v.config,M.config,D),v.init(),v.render()},r=function(D,v,L){var j=K.cache[D];layui.each(L||j,function(J,$){var oe=$[u]||"";oe.indexOf("-")!==-1&&(j[oe]=$),$[v]&&r(D,v,$[v])})},g=function(D,v,L){var j=d(D),J=(L!=="reloadData"&&(j.status={expand:{}}),x.extend(!0,{},j.getOptions(),v)),$=J.tree,oe=$.customName.children,m=$.customName.id,h=(delete v.hasNumberCol,delete v.hasChecboxCol,delete v.hasRadioCol,K.eachCols(null,function(W,G){G.type==="numbers"?v.hasNumberCol=!0:G.type==="checkbox"?v.hasChecboxCol=!0:G.type==="radio"&&(v.hasRadioCol=!0)},J.cols),v.parseData),E=v.done;L==="reloadData"&&J.scrollPos==="fixed"&&(j.scrollTopCache=j.config.elem.next().find(T).scrollTop()),J.url?L&&(!h||h.mod)||(v.parseData=function(){var W=this,B=arguments,G=B[0],B=(layui.type(h)==="function"&&(G=h.apply(W,B)||B[0]),W.response.dataName);return $.data.isSimpleData&&!$.async.enable&&(G[B]=j.flatToTree(G[B])),ne(G[B],function(U){U[P]=P in U?U[P]:U[m]!==void 0&&j.status.expand[U[m]]},oe),W.autoSort&&W.initSort&&W.initSort.type&&layui.sort(G[B],W.initSort.field,W.initSort.type==="desc",!0),j.initData(G[B]),G},v.parseData.mod=!0):v.data!==void 0&&(v.data=v.data||[],$.data.isSimpleData&&(v.data=j.flatToTree(v.data)),j.initData(v.data)),L&&(!E||E.mod)||(v.done=function(){var W,G=arguments,B=G[3],U=B==="renderData",q=(U||delete j.isExpandAll,this.elem.next()),ae=(j.updateStatus(null,{LAY_HAS_EXPANDED:!1}),r(D,oe),q.find('[name="layTableCheckbox"][lay-filter="layTableAllChoose"]'));if(ae.length&&(W=M.checkStatus(D),ae.prop({checked:W.isAll&&W.data.length,indeterminate:!W.isAll&&W.data.length})),!U&&J.autoSort&&J.initSort&&J.initSort.type&&M.sort(D),j.renderTreeTable(q),B==="reloadData"&&this.scrollPos==="fixed"&&q.find(T).scrollTop(j.scrollTopCache),layui.type(E)==="function")return E.apply(this,G)},v.done.mod=!0),v&&v.tree&&v.tree.view&&layui.each(c,function(W,G){v.tree.view[G]!==void 0&&(v.tree.view[G]=j.normalizedIcon(v.tree.view[G]))})};o.prototype.init=function(){var D=this.config,v=D.tree.data.cascade,v=(k.indexOf(v)===-1&&(D.tree.data.cascade="all"),K.render(x.extend({},D,{data:[],url:"",done:null}))),L=v.config.id;(y.that[L]=this).tableIns=v,g(L,D)},o.prototype.config={tree:{customName:{children:"children",isParent:"isParent",name:"name",id:"id",pid:"parentId",icon:"icon"},view:{indent:14,flexIconClose:'<i class="layui-icon layui-icon-triangle-r"></i>',flexIconOpen:'<i class="layui-icon layui-icon-triangle-d"></i>',showIcon:!0,icon:"",iconClose:'<i class="layui-icon layui-icon-folder"></i>',iconOpen:'<i class="layui-icon layui-icon-folder-open"></i>',iconLeaf:'<i class="layui-icon layui-icon-leaf"></i>',showFlexIconIfNotParent:!1,dblClickExpand:!0,expandAllDefault:!1},data:{isSimpleData:!1,rootPid:null,cascade:"all"},async:{enable:!1,url:"",type:null,contentType:null,headers:null,where:null,autoParam:[]},callback:{beforeExpand:null,onExpand:null}}},o.prototype.normalizedIcon=function(D){return D?X.test(D)?D:'<i class="'+D+'"></i>':""},o.prototype.getOptions=function(){return this.tableIns?K.getOptions(this.tableIns.config.id):this.config},o.prototype.flatToTree=function(D){var v,L,j,J,$,oe,m,h,G=this.getOptions(),E=G.tree,W=E.customName,G=G.id;return D=D||K.cache[G],G=D,v=W.id,L=W.pid,j=W.children,J=E.data.rootPid,v=v||"id",L=L||"parentId",j=j||"children",m={},h=[],layui.each(G,function(B,U){$=v+U[v],oe=v+U[L],m[$]||(m[$]={},m[$][j]=[]);var q={};q[j]=m[$][j],m[$]=x.extend({},U,q),((J?m[$][L]===J:!m[$][L])?h:(m[oe]||(m[oe]={},m[oe][j]=[]),m[oe][j])).push(m[$])}),h},o.prototype.treeToFlat=function(D,v,L){var j=this,J=j.getOptions().tree.customName,$=J.children,oe=J.pid,m=[];return layui.each(D,function(W,E){var W=(L?L+"-":"")+W,G=x.extend({},E);G[oe]=typeof E[oe]!="undefined"?E[oe]:v,m.push(G),m=m.concat(j.treeToFlat(E[$],E[J.id],W))}),m},o.prototype.getTreeNode=function(D){var v,L,j=this;return D?(L=(v=j.getOptions()).tree,v.id,L.customName,{data:D,dataIndex:D[u],getParentNode:function(){return j.getNodeByIndex(D[f])}}):Y.error("找不到节点数据")},o.prototype.getNodeByIndex=function(D){var v,L,j=this,J=j.getNodeDataByIndex(D);return J?((L=j.getOptions()).tree.customName.parent,v=L.id,(L={data:J,dataIndex:J[u],getParentNode:function(){return j.getNodeByIndex(J[f])},update:function($){return M.updateNode(v,D,$)},remove:function(){return M.removeNode(v,D)},expand:function($){return M.expandNode(v,x.extend({},$,{index:D}))},setChecked:function($){return M.setRowChecked(v,x.extend({},$,{index:D}))}}).dataIndex=D,L):Y.error("找不到节点数据")},o.prototype.getNodeById=function(D){var j=this.getOptions(),v=j.tree.customName.id,L="",j=M.getData(j.id,!0);if(layui.each(j,function(J,$){if($[v]===D)return L=$[u],!0}),L)return this.getNodeByIndex(L)},o.prototype.getNodeDataByIndex=function(D,v,L){var J=this.getOptions(),j=J.tree,J=J.id,J=K.cache[J],$=J[D];if(L!=="delete"&&$)return x.extend($,L),v?x.extend({},$):$;for(var oe=J,m=String(D).split("-"),h=0,E=j.customName.children;h<m.length;h++){if(L&&h===m.length-1){if(L==="delete")return(h?oe[E]:oe).splice(m[h],1)[0];x.extend((h?oe[E]:oe)[m[h]],L)}oe=(h?oe[E]:oe)[m[h]]}return v?x.extend({},oe):oe},M.getNodeDataByIndex=function(D,v){if(D=d(D),D)return D.getNodeDataByIndex(v,!0)},o.prototype.initData=function(D,v){var L=this.getOptions(),j=L.tree,L=L.id,j=(D=D||this.getTableData(),j.customName),J=j.isParent,$=j.children,oe=function(m,h){layui.each(m,function(E,W){J in W||(W[J]=!(!W[$]||!W[$].length)),W[s]=W[u],W[f]=h=h||"",E=W[u]=(h?h+"-":"")+E,oe(W[$]||[],E)})};return oe(D,v),r(L,$,D),D},w={};var w,F=function(D,v,L){return w[D]||(w[D]=layui.debounce(v,L)),w[D]},O=function(D,v,L,j,J,$){var E=D.trElem,oe=D.tableViewElem||E.closest(".layui-table-view"),m=D.tableId||oe.attr(A),h=D.options||K.getOptions(m),E=D.dataIndex||E.attr("lay-data-index"),W=d(m),G=h.tree||{},B=G.customName||{},U=B.isParent,q=W.getNodeDataByIndex(E),ae=layui.type(v)!=="boolean",le=ae?!q[P]:v,de=q[U]?le:null;if(J&&le!=q[P]&&(!q[R]||q[R]==="local")){var ce=G.callback.beforeExpand;if(layui.type(ce)==="function"&&ce(m,q,v)===!1)return de}var ce=q[n],ye=oe.find('tr[lay-data-index="'+E+'"]'),we=ye.find(".layui-table-tree-flexIcon"),ve=(W.updateNodeIcon({scopeEl:ye,isExpand:le,isParent:q[U]}),q[P]=le,q[B.id]);if(ve!==void 0&&(W.status.expand[ve]=le),de!==null){if(ve=q[B.children]||[],le)if(ce){if(!ve.length)return;ye.nextAll(ve.map(function(We,je,Be){return'tr[lay-data-index="'+We[u]+'"]'}).join(",")).removeClass(I),layui.each(ve,function(We,je){je[U]&&(!L||ae||je[P]?je[P]&&O({dataIndex:je[u],trElem:oe.find('tr[lay-data-index="'+je[u]+'"]').first(),tableViewElem:oe,tableId:m,options:h},!0,void 0,void 0,void 0,$):O({dataIndex:je[u],trElem:oe.find('tr[lay-data-index="'+je[u]+'"]').first(),tableViewElem:oe,tableId:m,options:h},v,L,j,J,$))})}else{var pe,ue,fe,Ce,De,Se,ke,Le,Ie,Re,qe,ce=G.async||{},ye=ce.url||h.url;if(ce.enable&&q[U]&&(!q[R]||q[R]==="error"))return q[R]="loading",we.html('<i class="layui-icon layui-icon-loading layui-anim layui-anim-loop layui-anim-rotate"></i>'),pe=function(Be){q[R]="success",q[B.children]=Be,W.initData(q[B.children],q[u]),O(D,!0,!ae&&L,j,J,$)},fe=ce.format,layui.type(fe)==="function"?fe(q,h,pe):(ue=x.extend({},ce.where||h.where),fe=ce.autoParam,layui.each(fe,function(Be,Fe){Fe=Fe.split("="),ue[Fe[0].trim()]=q[(Fe[1]||Fe[0]).trim()]}),(fe=ce.contentType||h.contentType)&&fe.indexOf("application/json")==0&&(ue=JSON.stringify(ue)),Ie=ce.method||h.method,Ce=ce.dataType||h.dataType,De=ce.jsonpCallback||h.jsonpCallback,Se=ce.headers||h.headers,ke=ce.parseData||h.parseData,Le=ce.response||h.response,x.ajax({type:Ie||"get",url:ye,contentType:fe,data:ue,dataType:Ce||"json",jsonpCallback:De,headers:Se||{},success:function(Be){(Be=typeof ke=="function"&&ke.call(h,Be)||Be)[Le.statusName]!=Le.statusCode?(q[R]="error",q[P]=!1,we.html('<i class="layui-icon layui-icon-refresh"></i>')):pe(Be[Le.dataName])},error:function(Be,Fe){q[R]="error",q[P]=!1,typeof h.error=="function"&&h.error(Be,Fe)}})),de;q[n]=!0,ve.length&&(!h.initSort||h.url&&!h.autoSort||((ce=h.initSort).type?layui.sort(ve,ce.field,ce.type==="desc",!0):layui.sort(ve,K.config.indexName,null,!0)),W.initData(q[B.children],q[u]),Ie=K.getTrHtml(m,ve,null,null,E),Re={trs:x(Ie.trs.join("")),trs_fixed:x(Ie.trs_fixed.join("")),trs_fixed_r:x(Ie.trs_fixed_r.join(""))},qe=(E.split("-").length-1||0)+1,layui.each(ve,function(Be,Fe){Re.trs.eq(Be).attr({"data-index":Fe[u],"lay-data-index":Fe[u],"data-level":qe}).data("index",Fe[u]),Re.trs_fixed.eq(Be).attr({"data-index":Fe[u],"lay-data-index":Fe[u],"data-level":qe}).data("index",Fe[u]),Re.trs_fixed_r.eq(Be).attr({"data-index":Fe[u],"lay-data-index":Fe[u],"data-level":qe}).data("index",Fe[u])}),oe.find(_).find('tbody tr[lay-data-index="'+E+'"]').after(Re.trs),oe.find(ee).find('tbody tr[lay-data-index="'+E+'"]').after(Re.trs_fixed),oe.find(C).find('tbody tr[lay-data-index="'+E+'"]').after(Re.trs_fixed_r),W.renderTreeTable(Re.trs,qe),L)&&!ae&&layui.each(ve,function(Be,Fe){O({dataIndex:Fe[u],trElem:oe.find('tr[lay-data-index="'+Fe[u]+'"]').first(),tableViewElem:oe,tableId:m,options:h},v,L,j,J,$)})}else W.isExpandAll=!1,(L&&!ae?(layui.each(ve,function(We,je){O({dataIndex:je[u],trElem:oe.find('tr[lay-data-index="'+je[u]+'"]').first(),tableViewElem:oe,tableId:m,options:h},v,L,j,J,$)}),oe.find(ve.map(function(We,je,Be){return'tr[lay-data-index="'+We[u]+'"]'}).join(","))):(ye=W.treeToFlat(ve,q[B.id],E),oe.find(ye.map(function(We,je,Be){return'tr[lay-data-index="'+We[u]+'"]'}).join(",")))).addClass(I);F("resize-"+m,function(){M.resize(m)},0)(),J&&q[R]!=="loading"&&(fe=G.callback.onExpand,layui.type(fe)==="function")&&fe(m,q,le),layui.type($)==="function"&&q[R]!=="loading"&&$(m,q,le)}return de},z=(M.expandNode=function(oe,v){var L,j,J,$,oe=d(oe);if(oe)return L=(v=v||{}).index,j=v.expandFlag,J=v.inherit,$=v.callbackFlag,oe=oe.getOptions().elem.next(),O({trElem:oe.find('tr[lay-data-index="'+L+'"]').first()},j,J,null,$,v.done)},M.expandAll=function(D,v){if(layui.type(v)!=="boolean")return Y.error("expandAll 的展开状态参数只接收true/false");var L=d(D);if(L){L.isExpandAll=v;var j=L.getOptions(),J=j.tree,$=j.elem.next(),oe=J.customName.isParent,m=J.customName.id,h=J.view.showFlexIconIfNotParent;if(v){if(v=M.getData(D,!0),J.async.enable){var E=!0;if(layui.each(v,function(U,q){if(q[oe]&&!q[R])return!(E=!1)}),!E)return void layui.each(M.getData(D),function(U,q){M.expandNode(D,{index:q[u],expandFlag:!0,inherit:!0})})}var W=!0;if(layui.each(v,function(U,q){if(q[oe]&&!q[n])return!(W=!1)}),W)L.updateStatus(null,function(U){(U[oe]||h)&&(U[P]=!0,U[m]!==void 0)&&(L.status.expand[U[m]]=!0)}),$.find('tbody tr[data-level!="0"]').removeClass(I),$.find(".layui-table-tree-flexIcon").html(J.view.flexIconOpen),J.view.showIcon&&$.find(".layui-table-tree-nodeIcon:not(.layui-table-tree-iconCustom,.layui-table-tree-iconLeaf)").html(J.view.iconOpen);else{if(L.updateStatus(null,function(q){(q[oe]||h)&&(q[P]=!0,q[n]=!0,q[m]!==void 0)&&(L.status.expand[q[m]]=!0)}),j.initSort&&j.initSort.type&&j.autoSort)return M.sort(D);var G,j=K.getTrHtml(D,v),B={trs:x(j.trs.join("")),trs_fixed:x(j.trs_fixed.join("")),trs_fixed_r:x(j.trs_fixed_r.join(""))};layui.each(v,function(q,ae){var le=ae[u].split("-").length-1;G={"data-index":ae[u],"lay-data-index":ae[u],"data-level":le},B.trs.eq(q).attr(G).data("index",ae[u]),B.trs_fixed.eq(q).attr(G).data("index",ae[u]),B.trs_fixed_r.eq(q).attr(G).data("index",ae[u])}),layui.each(["main","fixed-l","fixed-r"],function(q,ae){$.find(".layui-table-"+ae+" tbody").html(B[["trs","trs_fixed","trs_fixed_r"][q]])}),L.renderTreeTable($,0,!1)}}else L.updateStatus(null,function(U){(U[oe]||h)&&(U[P]=!1,U[m]!==void 0)&&(L.status.expand[U[m]]=!1)}),$.find('.layui-table-box tbody tr[data-level!="0"]').addClass(I),$.find(".layui-table-tree-flexIcon").html(J.view.flexIconClose),J.view.showIcon&&$.find(".layui-table-tree-nodeIcon:not(.layui-table-tree-iconCustom,.layui-table-tree-iconLeaf)").html(J.view.iconClose);M.resize(D)}},o.prototype.updateNodeIcon=function(J){var v=this.getOptions().tree||{},L=J.scopeEl,j=J.isExpand,J=J.isParent;L.find(".layui-table-tree-flexIcon").css("visibility",J||v.view.showFlexIconIfNotParent?"visible":"hidden").html(j?v.view.flexIconOpen:v.view.flexIconClose),v.view.showIcon&&(L=L.find(".layui-table-tree-nodeIcon:not(.layui-table-tree-iconCustom)"),j=J?j?v.view.iconOpen:v.view.iconClose:v.view.iconLeaf,L.toggleClass("layui-table-tree-iconLeaf",!J).html(j))},o.prototype.renderTreeTable=function(D,v,L){var j=this,J=j.getOptions(),$=J.elem.next(),oe=($.hasClass(p)||$.addClass(p),J.id),m=J.tree||{},h=(m.data,m.view||{}),E=m.customName||{},W=E.isParent,G=($.attr("lay-filter"),j),B=J.data.length,U=((v=v||0)||($.find(".layui-table-body tr:not([data-level])").attr("data-level",v),layui.each(K.cache[oe],function(le,de){B&&(de[u]=String(le)),de=de[u],$.find('.layui-table-main tbody tr[data-level="0"]:eq('+le+")").attr("lay-data-index",de),$.find('.layui-table-fixed-l tbody tr[data-level="0"]:eq('+le+")").attr("lay-data-index",de),$.find('.layui-table-fixed-r tbody tr[data-level="0"]:eq('+le+")").attr("lay-data-index",de)})),null),q=E.name,ae=h.indent||20;if(layui.each(D.find('td[data-field="'+q+'"]'),function(le,ve){var ce,ye,we=(ve=x(ve)).closest("tr"),ve=ve.children(".layui-table-cell");ve.hasClass("layui-table-tree-item")||(ye=we.attr("lay-data-index"))&&(we=$.find('tr[lay-data-index="'+ye+'"]'),(ce=G.getNodeDataByIndex(ye))[P]&&ce[W]&&((U=U||{})[ye]=!0),ce[S]&&we.find('input[type="checkbox"][name="layTableCheckbox"]').prop("indeterminate",!0),ye=ve.html(),(ve=we.find('td[data-field="'+q+'"]>div.layui-table-cell')).addClass("layui-table-tree-item"),ve.html(['<div class="layui-inline layui-table-tree-flexIcon" ','style="',"margin-left: "+ae*we.attr("data-level")+"px;",ce[W]||h.showFlexIconIfNotParent?"":" visibility: hidden;",'">',ce[P]?h.flexIconOpen:h.flexIconClose,"</div>",h.showIcon?'<div class="layui-inline layui-table-tree-nodeIcon'+(ce[E.icon]||h.icon?" layui-table-tree-iconCustom":"")+(ce[W]?"":" layui-table-tree-iconLeaf")+'">'+(j.normalizedIcon(ce[E.icon])||h.icon||(ce[W]?ce[P]?h.iconOpen:h.iconClose:h.iconLeaf)||"")+"</div>":"",ye].join("")).find(".layui-table-tree-flexIcon").on("click",function(pe){layui.stope(pe),O({trElem:we},null,null,null,!0)}))}),!v&&m.view.expandAllDefault&&j.isExpandAll===void 0)return M.expandAll(oe,!0);(L!==!1&&U?(layui.each(U,function(le,de){le=$.find('tr[lay-data-index="'+le+'"]'),le.find(".layui-table-tree-flexIcon").html(h.flexIconOpen),O({trElem:le.first()},!0)}),F("renderTreeTable2-"+oe,function(){Q.render(x(".layui-table-tree["+A+'="'+oe+'"]'))},0)):F("renderTreeTable-"+oe,function(){J.hasNumberCol&&z(j),Q.render(x(".layui-table-tree["+A+'="'+oe+'"]'))},0))()},function(D){var v=D.getOptions(),L=v.elem.next(),j=0,J=L.find(".layui-table-main tbody tr"),$=L.find(".layui-table-fixed-l tbody tr"),oe=L.find(".layui-table-fixed-r tbody tr");layui.each(D.treeToFlat(K.cache[v.id]),function(m,h){h.LAY_HIDE||(D.getNodeDataByIndex(h[u]).LAY_NUM=++j,J.eq(m).find(".laytable-cell-numbers").html(j),$.eq(m).find(".laytable-cell-numbers").html(j),oe.eq(m).find(".laytable-cell-numbers").html(j))})}),ne=(o.prototype.render=function(D){var v=this;v.tableIns=K[D==="reloadData"?"reloadData":"reload"](v.tableIns.config.id,x.extend(!0,{},v.config)),v.config=v.tableIns.config},o.prototype.reload=function(D,v,L){var j=this;D=D||{},delete j.haveInit,layui.each(D,function(J,$){layui.type($)==="array"&&delete j.config[J]}),g(j.getOptions().id,D,L||!0),j.config=x.extend(v,{},j.config,D),j.render(L)},M.reloadData=function(){var D=x.extend(!0,[],arguments);return D[3]="reloadData",M.reload.apply(null,D)},function(D,v,L,j){var J=[];return layui.each(D,function($,oe){layui.type(v)==="function"?v(oe):x.extend(oe,v),J.push(x.extend({},oe)),j||(J=J.concat(ne(oe[L],v,L,j)))}),J}),te=(o.prototype.updateStatus=function(D,v,L){var j=this.getOptions(),J=j.tree;return D=D||K.cache[j.id],ne(D,v,J.customName.children,L)},o.prototype.getTableData=function(){var D=this.getOptions();return K.cache[D.id]},M.updateStatus=function(j,v,L){var j=d(j),J=j.getOptions();return L=L||(J.url?K.cache[J.id]:J.data),j.updateStatus(L,v)},M.sort=function(D){var v,L,j,J,$,oe=d(D);oe&&($=(v=oe.getOptions()).tree,L=M.getData(D),j=$.customName.children,J=function(m,h,E){layui.sort(m,h,E,!0),layui.each(m,function(W,G){J(G[j]||[],h,E)})},v.autoSort)&&(($=v.initSort).type?J(L,$.field,$.type==="desc"):J(L,K.config.indexName,null),K.cache[D]=L,oe.initData(L),M.renderData(D))},function(D){var v=D.config.id,L=d(v),j=D.data=M.getNodeDataByIndex(v,D.index),J=j[u],$=(D.dataIndex=J,D.update);D.update=function(){var oe=arguments,m=(x.extend(L.getNodeDataByIndex(J),oe[0]),$.apply(this,oe)),h=D.config.tree.customName.name;return h in oe[0]&&D.tr.find('td[data-field="'+h+'"]').children("div.layui-table-cell").removeClass("layui-table-tree-item"),L.renderTreeTable(D.tr,D.tr.attr("data-level"),!1),m},D.del=function(){M.removeNode(v,j)},D.setRowChecked=function(oe){M.setRowChecked(v,{index:j,checked:oe})}}),re=(M.updateNode=function(D,v,L){var j,J,$,oe,m,h=d(D);h&&((oe=h.getOptions()).tree,oe=(j=oe.elem.next()).find('tr[lay-data-index="'+v+'"]'),J=oe.attr("data-index"),$=oe.attr("data-level"),L)&&(oe=h.getNodeDataByIndex(v,!1,L),m=K.getTrHtml(D,[oe]),layui.each(["main","fixed-l","fixed-r"],function(E,W){j.find(".layui-table-"+W+' tbody tr[lay-data-index="'+v+'"]').replaceWith(x(m[["trs","trs_fixed","trs_fixed_r"][E]].join("")).attr({"data-index":J,"lay-data-index":v,"data-level":$}).data("index",J))}),h.renderTreeTable(j.find('tr[lay-data-index="'+v+'"]'),$))},M.removeNode=function(D,v,L){var j=d(D);if(j){var J,$=j.getOptions(),B=$.tree,oe=B.customName.isParent,m=B.customName.children,h=$.elem.next(),E=[],W=K.cache[D],v=j.getNodeDataByIndex(layui.type(v)==="string"?v:v[u],!1,"delete"),G=j.getNodeDataByIndex(v[f]),B=(j.updateCheckStatus(G),j.treeToFlat([v],v[B.customName.pid],v[f])),v=(layui.each(B,function(q,ae){ae=ae[u],E.push('tr[lay-data-index="'+ae+'"]'),ae.indexOf("-")!==-1&&delete W[ae]}),h.find(E.join(",")).remove(),j.initData());for(J in W)J.indexOf("-")!==-1&&J!==W[J][u]&&delete W[J];layui.each(j.treeToFlat(v),function(q,ae){ae[s]&&ae[s]!==ae[u]&&h.find('tr[lay-data-index="'+ae[s]+'"]').attr({"data-index":ae[u],"lay-data-index":ae[u]}).data("index",ae[u])}),layui.each(W,function(q,ae){h.find('tr[data-level="0"][lay-data-index="'+ae[u]+'"]').attr("data-index",q).data("index",q)}),$.hasNumberCol&&z(j),G&&(B=h.find('tr[lay-data-index="'+G[u]+'"]'),L||(G[oe]=!(!G[m]||!G[m].length)),j.updateNodeIcon({scopeEl:B,isExpand:G[P],isParent:G[oe]})),M.resize(D)}},M.addNodes=function(D,v){var L=d(D);if(L){var j=L.getOptions(),J=j.tree,$=j.elem.next(),oe=K.config.checkName,m=(v=v||{}).parentIndex,E=v.index,W=v.data,v=v.focus,h=(m=layui.type(m)==="number"?m.toString():m)?L.getNodeDataByIndex(m):null,E=layui.type(E)==="number"?E:-1,W=x.extend(!0,[],layui.isArray(W)?W:[W]);if(layui.each(W,function(ce,ye){oe in ye||!h||(ye[oe]=h[oe])}),L.getTableData(),h){var G=J.customName.isParent,U=J.customName.children;h[G]=!0;var B=(B=h[U])?(q=B.splice(E===-1?B.length:E),h[U]=B.concat(W,q)):h[U]=W,U=(L.updateStatus(B,function(ce){(ce[G]||J.view.showFlexIconIfNotParent)&&(ce[n]=!1)}),L.treeToFlat(B));$.find(U.map(function(ce){return'tr[lay-data-index="'+ce[u]+'"]'}).join(",")).remove(),L.initData(),h[n]=!1,h[R]="local",O({trElem:$.find('tr[lay-data-index="'+m+'"]')},!0)}else{var q=K.cache[D].splice(E===-1?K.cache[D].length:E);if(K.cache[D]=K.cache[D].concat(W,q),j.url||(j.page?(B=j.page,j.data.splice.apply(j.data,[B.limit*(B.curr-1),B.limit].concat(K.cache[D]))):j.data=K.cache[D]),L.initData(),$.find(".layui-none").length)return K.renderData(D),W;var ae,U=K.getTrHtml(D,W),le={trs:x(U.trs.join("")),trs_fixed:x(U.trs_fixed.join("")),trs_fixed_r:x(U.trs_fixed_r.join(""))},m=(layui.each(W,function(pe,ue){ae={"data-index":ue[u],"lay-data-index":ue[u],"data-level":"0"},le.trs.eq(pe).attr(ae).data("index",ue[u]),le.trs_fixed.eq(pe).attr(ae).data("index",ue[u]),le.trs_fixed_r.eq(pe).attr(ae).data("index",ue[u])}),parseInt(W[0][u])-1),B=$.find(_),j=$.find(ee),U=$.find(C);m==-1?B.find('tr[data-level="0"][data-index="0"]')[0]?(B.find('tr[data-level="0"][data-index="0"]').before(le.trs),j.find('tr[data-level="0"][data-index="0"]').before(le.trs_fixed),U.find('tr[data-level="0"][data-index="0"]').before(le.trs_fixed_r)):(B.find("tbody").prepend(le.trs),j.find("tbody").prepend(le.trs_fixed),U.find("tbody").prepend(le.trs_fixed_r)):E===-1?(B.find("tbody").append(le.trs),j.find("tbody").append(le.trs_fixed),U.find("tbody").append(le.trs_fixed_r)):(m=q[0][s],B.find('tr[data-level="0"][data-index="'+m+'"]').before(le.trs),j.find('tr[data-level="0"][data-index="'+m+'"]').before(le.trs_fixed),U.find('tr[data-level="0"][data-index="'+m+'"]').before(le.trs_fixed_r)),layui.each(K.cache[D],function(pe,ue){$.find('tr[data-level="0"][lay-data-index="'+ue[u]+'"]').attr("data-index",pe).data("index",pe)}),L.renderTreeTable($.find(W.map(function(pe,ue,fe){return'tr[lay-data-index="'+pe[u]+'"]'}).join(",")))}return L.updateCheckStatus(h),h&&(E=$.find('tr[lay-data-index="'+h[u]+'"]'),L.updateNodeIcon({scopeEl:E,isExpand:h[P],isParent:h[G]})),M.resize(D),v&&$.find(_).find('tr[lay-data-index="'+W[0][u]+'"]').get(0).scrollIntoViewIfNeeded(),W}},M.checkStatus=function(D,v){var L,j,J,$=d(D);if($)return $=$.getOptions().tree,L=K.config.checkName,j=M.getData(D,!0).filter(function(oe,m,h){return oe[L]||v&&oe[S]}),J=!0,layui.each($.data.cascade==="all"?K.cache[D]:M.getData(D,!0),function(oe,m){if(!m[L])return!(J=!1)}),{data:j,isAll:J}},M.on("sort",function(L){var L=L.config,v=L.elem.next(),L=L.id;v.hasClass(p)&&M.sort(L)}),M.on("row",function(D){D.config.elem.next().hasClass(p)&&te(D)}),M.on("rowDouble",function(D){var v=D.config,L=v.elem.next();v.id,L.hasClass(p)&&(te(D),(v.tree||{}).view.dblClickExpand)&&O({trElem:D.tr.first()},null,null,null,!0)}),M.on("rowContextmenu",function(D){var v=D.config,L=v.elem.next();v.id,L.hasClass(p)&&te(D)}),M.on("tool",function(D){var v=D.config,L=v.elem.next();v.id,L.hasClass(p)&&te(D)}),M.on("edit",function(D){var v=D.config,L=v.elem.next();v.id,L.hasClass(p)&&(te(D),D.field===v.tree.customName.name)&&((L={})[D.field]=D.value,D.update(L))}),M.on("radio",function(D){var L=D.config,v=L.elem.next(),L=L.id;v.hasClass(p)&&(v=d(L),te(D),re.call(v,D.tr,D.checked))}),o.prototype.setRowCheckedClass=function(D,v){var L=this.getOptions(),j=(D.data("index"),L.elem.next());D[v?"addClass":"removeClass"](a),D.each(function(){var J=x(this).data("index");j.find('.layui-table-fixed-r tbody tr[data-index="'+J+'"]')[v?"addClass":"removeClass"](a)})},o.prototype.updateCheckStatus=function(D,v){var L,j,J,$,oe,m,h,E=this,W=E.getOptions();return!!W.hasChecboxCol&&(L=W.tree,j=W.id,J=W.elem.next(),$=K.config.checkName,(oe=L.data.cascade)!=="all"&&oe!=="parent"||!D||(oe=E.updateParentCheckStatus(D,layui.type(v)==="boolean"?v:null),layui.each(oe,function(G,B){var U=J.find('tr[lay-data-index="'+B[u]+'"] input[name="layTableCheckbox"]:not(:disabled)'),q=B[$];E.setRowCheckedClass(U.closest("tr"),q),U.prop({checked:q,indeterminate:B[S]})})),h=!(m=!0),0<(D=(D=L.data.cascade==="all"?K.cache[j]:M.getData(j,!0)).filter(function(G){return!G[W.disabledName]})).length?layui.each(D,function(G,B){if((B[$]||B[S])&&(h=!0),B[$]||(m=!1),h&&!m)return!0}):m=!1,h=h&&!m,J.find('input[name="layTableCheckbox"][lay-filter="layTableAllChoose"]').prop({checked:m,indeterminate:h}),m)},o.prototype.updateParentCheckStatus=function(D,v){var L,j=this.getOptions(),$=j.tree,j=j.id,J=K.config.checkName,$=$.customName.children,oe=[];return!(D[S]=!1)===v?D[$].length?layui.each(D[$],function(m,h){if(!h[J])return v=!1,D[S]=!0}):v=!1:v===!1?layui.each(D[$],function(m,h){if(h[J]||h[S])return D[S]=!0}):(v=!1,L=0,layui.each(D[$],function(m,h){h[J]&&L++}),v=D[$].length?D[$].length===L:D[J],D[S]=!v&&0<L),D[J]=v,oe.push(x.extend({},D)),oe=D[f]?oe.concat(this.updateParentCheckStatus(K.cache[j][D[f]],v)):oe},function(D,v,L){var j=this,h=j.getOptions(),J=h.tree,$=h.id,oe=h.elem.next(),m=(D.length?D:oe).find(".laytable-cell-radio, .laytable-cell-checkbox").children("input").last(),h=m.attr("type")==="radio";if(L)L=function(){var G=function(B){layui.stope(B)};m.parent().on("click",G),m.next().click(),m.parent().off("click",G)},h?v&&!m.prop("checked")&&L():layui.type(v)==="boolean"&&m.prop("checked")===v||L();else{var E,L=j.getNodeDataByIndex(D.attr("data-index")),W=K.config.checkName;if(!h)return v=layui.type(v)==="boolean"?v:!L[W],h=j.updateStatus(L?[L]:K.cache[$],function(B){B[K.config.disabledName]||(B[W]=v,B[S]=!1)},L&&["parent","none"].indexOf(J.data.cascade)!==-1),$=oe.find(h.map(function(B){return'tr[lay-data-index="'+B[u]+'"] input[name="layTableCheckbox"]:not(:disabled)'}).join(",")),j.setRowCheckedClass($.closest("tr"),v),$.prop({checked:v,indeterminate:!1}),L&&L[f]&&(E=j.getNodeDataByIndex(L[f])),j.updateCheckStatus(E,v);L&&(j.updateStatus(null,function(B){var U;B[W]&&(U=oe.find('tr[lay-data-index="'+B[u]+'"] input[type="radio"][lay-type="layTableRadio"]'),B[W]=!1,j.setRowCheckedClass(U.closest("tr"),!1),U.prop("checked",!1))}),L[W]=v,j.setRowCheckedClass(D,v),j.setRowCheckedClass(D.siblings(),!1),D.find('input[type="radio"][lay-type="layTableRadio"]').prop("checked",v))}});M.on("checkbox",function(D){var L=D.config,v=L.elem.next(),L=L.id;v.hasClass(p)&&(v=d(L),L=D.checked,te(D),D.isAll=re.call(v,D.tr,L))}),M.setRowChecked=function(D,v){var L,j,J,$,oe,m,h,E=d(D);E&&(L=E.getOptions().elem.next(),J=(v=v||{}).index,j=v.checked,v=v.callbackFlag,J=layui.type(J)==="string"?J:J[u],m=E.getNodeDataByIndex(J))&&($=function(W){h.push(W),L.find('tr[lay-data-index="'+W+'"]').length||(W=E.getNodeDataByIndex(W)[f])&&$(W)},(oe=L.find('tr[lay-data-index="'+J+'"]')).length||(m=m[f],h=[],$(m),layui.each(h.reverse(),function(W,G){M.expandNode(D,{index:G,expandFlag:!0})}),oe=L.find('tr[lay-data-index="'+J+'"]')),re.call(E,oe,j,v))},M.checkAllNodes=function(j,v){var L,j=d(j);j&&(L=j.getOptions().elem.next(),re.call(j,L.find('tr[data-index="NONE"]'),!!v))},M.getData=function(D,v){var L,j=d(D);if(j)return L=[],layui.each(x.extend(!0,[],K.cache[D]||[]),function(J,$){L.push($)}),v?j.treeToFlat(L):L},M.reloadAsyncNode=function(D,v){var L,j,J=d(D);J&&(L=J.getOptions().tree).async&&L.async.enable&&(j=J.getNodeDataByIndex(v))&&(j[n]=!1,j[P]=!1,j[R]=!1,layui.each(J.treeToFlat(j[L.customName.children]).reverse(),function($,oe){M.removeNode(D,oe[u],!0)}),M.expandNode(D,{index:v,expandFlag:!0,callbackFlag:!0}))},M.getNodeById=function(D,v){if(D=d(D),D)return D.getNodeById(v)},M.getNodesByFilter=function(D,v,L){var j,J,$,oe=d(D);if(oe)return J=oe.getOptions(),j=(L=L||{}).isSingle,L=(L=L.parentNode)&&L.data,J=oe.treeToFlat(L?L[J.tree.customName.children]||[]:K.cache[D]).filter(v),$=[],layui.each(J,function(m,h){if($.push(oe.getNodeByIndex(h[u])),j)return!0}),$},y.that={},M.reload=function(D,v,L,j){if(D=d(D),D)return D.reload(v,L,j),y.call(D)},M.render=function(D){return D=new o(D),y.call(D)},he("treeTable",M)}),layui.define("component",function(he){"use strict";var x=layui.$,Q=layui.component({name:"tabs",config:{elem:".layui-tabs",trigger:"click",headerMode:"auto"},CONST:{ELEM:"layui-tabs",HEADER:"layui-tabs-header",CLOSE:"layui-tabs-close",BODY:"layui-tabs-body",ITEM:"layui-tabs-item",CARD:"layui-tabs-card"},render:function(){var M,y,d=this,A=d.config,I=(d.headerElem=["."+Q.CONST.HEADER+":eq(0)",">li"],d.bodyElem=["."+Q.CONST.BODY+":eq(0)",">."+Q.CONST.ITEM],d.getContainer=function(){var T=d.documentElem||A.elem;return{header:{elem:T.find(d.headerElem[0]),items:T.find(d.headerElem.join(""))},body:{elem:T.find(d.bodyElem[0]),items:T.find(d.bodyElem.join(""))}}},layui.type(A.header)==="array"?typeof A.header[0]=="string"?(d.headerElem=A.header.concat(),d.documentElem=x(document)):(d.elemView=x('<div class="layui-tabs"></div>'),A.className&&d.elemView.addClass(A.className),M=x('<ul class="layui-tabs-header"></ul>'),y=x('<div class="layui-tabs-body"></div>'),layui.each(A.header,function(T,_){_=d.renderHeaderItem(_),M.append(_)}),layui.each(A.body,function(T,_){_=d.renderBodyItem(_),y.append(_)}),d.elemView.append(M).append(y),A.elem.html(d.elemView)):d.renderClose(),layui.type(A.body)==="array"&&typeof A.body[0]=="string"&&(d.documentElem=x(document),d.bodyElem=A.body.concat()),d.data());"index"in A&&I.index!=A.index?d.change(d.findHeaderItem(A.index),!0):I.index===-1&&d.change(d.findHeaderItem(0),!0),d.roll("auto"),A.elem.hasClass(Q.CONST.CLASS_HIDEV)&&A.elem.removeClass(Q.CONST.CLASS_HIDEV),typeof A.afterRender=="function"&&A.afterRender(I),layui.event.call(A.elem[0],Q.CONST.MOD_NAME,"afterRender("+A.id+")",I)},events:function(){var M,y=this,A=y.config,d=y.getContainer(),I=Q.CONST.MOD_NAME,d=(y.documentElem?d.header:A).elem,A=A.trigger+(".lay_"+I+"_trigger"),I=y.documentElem?y.headerElem[1]:y.headerElem.join("");d.off(A).on(A,I,function(){y.change(x(this))}),K.onresize||(x(window).on("resize",function(){clearTimeout(M),M=setTimeout(function(){layui.each(Q.cache.id,function(T){T=Q.getInst(T),T&&T.roll("init")})},50)}),K.onresize=!0)}}),K={},Y=Q.Class;Y.prototype.add=function(M){var y,d,A=this,I=(A.config,A.getContainer()),T=A.renderHeaderItem(M),_=A.renderBodyItem(M),ee=A.data();M=x.extend({active:!0},M),/(before|after)/.test(M.mode)?(d=(y=M.hasOwnProperty("index"))?A.findHeaderItem(M.index):ee.thisHeaderItem,y=y?A.findBodyItem(M.index):ee.thisHeaderItem,d[M.mode](T),y[M.mode](_)):(d={prepend:"prepend",append:"append"}[M.mode||"append"]||"append",I.header.elem[d](T),I.body.elem[d](_)),M.active?A.change(T,!0):A.roll("auto"),typeof M.done=="function"&&M.done(x.extend(ee,{headerItem:T,bodyItem:_}))},Y.prototype.close=function(M,y){if(M&&M[0]){var d=this,A=d.config,I=M.attr("lay-id"),T=M.index();if(M.attr("lay-closable")!=="false"){var _=d.data();if(!y&&layui.event.call(M[0],Q.CONST.MOD_NAME,"beforeClose("+A.id+")",x.extend(_,{index:T}))===!1)return;M.hasClass(Q.CONST.CLASS_THIS)&&(M.next()[0]?d.change(M.next(),!0):M.prev()[0]&&d.change(M.prev(),!0)),d.findBodyItem(I||T).remove(),M.remove(),d.roll("auto",T),_=d.data(),layui.event.call(_.thisHeaderItem[0],Q.CONST.MOD_NAME,"afterClose("+A.id+")",_)}}},Y.prototype.closeMult=function(M,y){var d=this,A=d.config,T=d.getContainer(),C=d.data(),I=T.header.items,T=(T.body.items,'[lay-closable="false"]'),_=(y=y===void 0?C.index:y,d.findHeaderItem(y)),ee=(d.findBodyItem(y),_.index()),C=(C.thisHeaderItem.attr("lay-closable")!=="false"&&(M!=="all"&&M?y!==C.index&&d.change(_,!0):(y=I.filter(":gt("+C.index+")"+T).eq(0),_=x(I.filter(":lt("+C.index+")"+T).get().reverse()).eq(0),y[0]?d.change(y,!0):_[0]&&d.change(_,!0))),I.each(function(a){var p=x(this),u=p.attr("lay-id"),u=d.findBodyItem(u||a);p.attr("lay-closable")!=="false"&&(M==="other"&&a!==ee||M==="right"&&ee<a||M==="left"&&a<ee||M==="all")&&(p.remove(),u.remove())}),d.roll("auto"),d.data());layui.event.call(C.thisHeaderItem[0],Q.CONST.MOD_NAME,"afterClose("+A.id+")",C)},Y.prototype.change=function(M,y){if(M&&M[0]){var d=this,A=d.config,I=M.attr("lay-id"),T=M.index(),_=M.find("a"),_=typeof _.attr("href")=="string"&&_.attr("target")==="_blank",ee=typeof M.attr("lay-unselect")=="string";if(!_&&!ee){if(_=d.data(),!y&&layui.event.call(M[0],Q.CONST.MOD_NAME,"beforeChange("+A.id+")",x.extend(_,{from:{index:_.index,headerItem:_.thisHeaderItem},to:{index:T,headerItem:M}}))===!1)return;M.addClass(Q.CONST.CLASS_THIS).siblings().removeClass(Q.CONST.CLASS_THIS),d.findBodyItem(I||T).addClass(Q.CONST.CLASS_SHOW).siblings().removeClass(Q.CONST.CLASS_SHOW),d.roll("auto",T),_=d.data(),layui.event.call(_.thisHeaderItem[0],Q.CONST.MOD_NAME,"afterChange("+A.id+")",_)}}},Y.prototype.renderHeaderItem=function(M){var y=this.config,y=x(M.headerItem||y.headerItem||"<li></li>");return y.html(M.title||"New Tab").attr("lay-id",M.id),this.appendClose(y,M),y},Y.prototype.renderBodyItem=function(M){var y=this.config,y=x(M.bodyItem||y.bodyItem||'<div class="'+Q.CONST.ITEM+'"></div>');return y.html(M.content||"").attr("lay-id",M.id),y},Y.prototype.appendClose=function(M,y){var d=this;d.config.closable&&((y=y||{}).closable==0&&M.attr("lay-closable","false"),M.attr("lay-closable")==="false"||M.find("."+Q.CONST.CLOSE)[0]||((y=x('<i class="layui-icon layui-icon-close layui-unselect '+Q.CONST.CLOSE+'"></i>')).on("click",function(){return d.close(x(this).parent()),!1}),M.append(y)))},Y.prototype.renderClose=function(){var M=this,y=M.config;M.getContainer().header.items.each(function(){var d=x(this);y.closable?M.appendClose(d):d.find("."+Q.CONST.CLOSE).remove()})},Y.prototype.roll=function(M,y){var d=this,A=d.config,_=d.getContainer(),I=_.header.elem,T=_.header.items,_=I.prop("scrollWidth"),ee=Math.ceil(I.outerWidth()),C=I.data("left")||0,a=A.headerMode==="scroll",p="layui-tabs-scroll",u="layui-tabs-bar",s=["layui-icon-prev","layui-icon-next"],f={elem:x('<div class="'+p+' layui-border-box layui-unselect"></div>'),bar:x(['<div class="'+u+'">','<i class="layui-icon '+s[0]+'" lay-mode="prev"></i>','<i class="layui-icon '+s[1]+'" lay-mode="next"></i>',"</div>"].join(""))};if(A.headerMode!=="normal"){var S,P=I.parent("."+p);if(a||!a&&ee<_)P[0]||(A.elem.hasClass(Q.CONST.CARD)&&f.elem.addClass(Q.CONST.CARD),I.wrap(f.elem),I.after(f.bar),f.bar.children().on("click",function(){var n=x(this).attr("lay-mode");x(this).hasClass(Q.CONST.CLASS_DISABLED)||n&&d.roll(n)}));else if(!a){if(!P[0])return;P.find("."+u).remove(),I.unwrap().css("left",0).data("left",0)}M!=="init"&&(_=I.prop("scrollWidth"),ee=I.outerWidth(),P=I.parent("."+p),M==="prev"?((S=-C-ee)<0&&(S=0),T.each(function(n,R){if(R=x(R),R=Math.ceil(R.position().left),S<=R)return I.css("left",-R).data("left",-R),!1})):M==="auto"?(function(){y=isNaN(y)?d.data().index:y;var n=T.eq(y);if(n[0]){var R=Math.ceil(n.position().left);if(0<(k=R-(n.prev().outerWidth()||0))&&(k-=1),C+k<0)return C=0<=k?k:0,I.css("left",-C).data("left",-C);var k=R+n.outerWidth()+(n.next().outerWidth()||0)+1;0<C+k-ee&&(C=k-ee,I.css("left",-C).data("left",-C))}})():T.each(function(n,k){var k=x(k),X=Math.ceil(k.position().left);if(X+k.outerWidth()>=ee-C)return I.css("left",-X).data("left",-X),!1}),C=I.data("left")||0,P.find("."+s[0])[C<0?"removeClass":"addClass"](Q.CONST.CLASS_DISABLED),P.find("."+s[1])[0<parseFloat(C+_)-ee?"removeClass":"addClass"](Q.CONST.CLASS_DISABLED))}},Y.prototype.findHeaderItem=function(M){var y=this.getContainer().header.items;return typeof M=="string"?y.filter('[lay-id="'+M+'"]'):y.eq(M)},Y.prototype.findBodyItem=function(M){var y,d=this.getContainer(),A=d.body.items;return typeof M=="string"?(y=A.filter('[lay-id="'+M+'"]'))[0]?y:(y=d.header.items.filter('[lay-id="'+M+'"]'),A.eq(y.index())):A.eq(M)},Y.prototype.data=function(){var M=this.config,y=this.getContainer(),d=y.header.items.filter("."+Q.CONST.CLASS_THIS),A=d.index();return{options:M,container:y,thisHeaderItem:d,thisBodyItem:this.findBodyItem(A),index:A,length:y.header.items.length}},x.extend(Q,{add:function(M,y){M=Q.getInst(M),M&&M.add(y)},close:function(M,y,d){M=Q.getInst(M),M&&(y===void 0&&(y=M.data().index),M.close(M.findHeaderItem(y),d))},closeMult:function(M,y,d){M=Q.getInst(M),M&&M.closeMult(y,d)},change:function(M,y,d){M=Q.getInst(M),M&&M.change(M.findHeaderItem(y),d)},data:function(M){return M=Q.getInst(M),M?M.data():{}},getHeaderItem:function(M,y){if(M=Q.getInst(M),M)return M.findHeaderItem(y)},getBodyItem:function(M,y){if(M=Q.getInst(M),M)return M.findBodyItem(y)},refresh:function(M){M=Q.getInst(M),M&&M.roll("auto")}}),x(function(){Q.render()}),he(Q.CONST.MOD_NAME,Q)}),layui.define(["form","util"],function(he){"use strict";var x=layui.$,Q=layui.form,K=layui.layer,Y=layui.util,M="tree",y={config:{customName:{id:"id",title:"title",children:"children"}},index:layui[M]?layui[M].index+1e4:0,set:function(k){var X=this;return X.config=x.extend({},X.config,k),X},on:function(k,X){return layui.onevent.call(this,M,k,X)}},d=function(){var k=this,X=k.config,c=X.id||k.index;return d.that[c]=k,{config:d.config[c]=X,reload:function(o){k.reload.call(k,o)},getChecked:function(){return k.getChecked.call(k)},setChecked:function(o){return k.setChecked.call(k,o)}}},A="layui-hide",I="layui-disabled",T="layui-tree-set",_="layui-tree-iconClick",ee="layui-icon-addition",C="layui-icon-subtraction",a="layui-tree-entry",p="layui-tree-main",u="layui-tree-txt",s="layui-tree-pack",f="layui-tree-spread",S="layui-tree-setLineShort",P="layui-tree-showLine",n="layui-tree-lineExtend",R=function(k){var X=this;X.index=++y.index,X.config=x.extend({},X.config,y.config,k),X.render()};R.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},R.prototype.reload=function(k){var X=this;layui.each(k,function(c,o){layui.type(o)==="array"&&delete X.config[c]}),X.config=x.extend(!0,{},X.config,k),X.render()},R.prototype.render=function(){var k=this,X=k.config,c=(X.customName=x.extend({},y.config.customName,X.customName),k.checkids=[],x('<div class="layui-tree layui-border-box'+(X.showCheckbox?" layui-form":"")+(X.showLine?" layui-tree-line":"")+'" lay-filter="LAY-tree-'+k.index+'"></div>')),o=(k.tree(c),X.elem=x(X.elem));if(o[0]){if(k.key=X.id||k.index,k.elem=c,k.elemNone=x('<div class="layui-tree-emptyText">'+X.text.none+"</div>"),o.html(k.elem),k.elem.find(".layui-tree-set").length==0)return k.elem.append(k.elemNone);X.showCheckbox&&k.renderForm("checkbox"),k.elem.find(".layui-tree-set").each(function(){var r=x(this);r.parent(".layui-tree-pack")[0]||r.addClass("layui-tree-setHide"),!r.next()[0]&&r.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&r.addClass(S),r.next()[0]||r.parents(".layui-tree-set").eq(0).next()[0]||r.addClass(S)}),k.events()}},R.prototype.renderForm=function(k){Q.render(k,"LAY-tree-"+this.index)},R.prototype.tree=function(k,g){var c=this,o=c.config,r=o.customName,g=g||o.data;layui.each(g,function(w,F){var O,z,ne=F[r.children]&&0<F[r.children].length,te=x('<div class="layui-tree-pack" '+(F.spread?'style="display: block;"':"")+"></div>"),re=x(['<div data-id="'+F[r.id]+'" class="layui-tree-set'+(F.spread?" layui-tree-spread":"")+(F.checked?" layui-tree-checkedFirst":"")+'">','<div class="layui-tree-entry">','<div class="layui-tree-main">',o.showLine?ne?'<span class="layui-tree-iconClick layui-tree-icon"><i class="layui-icon '+(F.spread?"layui-icon-subtraction":"layui-icon-addition")+'"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-icon layui-icon-file"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-tree-iconArrow '+(ne?"":A)+'"></i></span>',o.showCheckbox?'<input type="checkbox" name="'+(F.field||"layuiTreeCheck_"+F[r.id])+'" same="layuiTreeCheck" lay-skin="primary" '+(F.disabled?"disabled":"")+' value="'+F[r.id]+'">':"",o.isJump&&F.href?'<a href="'+F.href+'" target="_blank" class="'+u+'">'+(F[r.title]||F.label||o.text.defaultNodeName)+"</a>":'<span class="'+u+(F.disabled?" "+I:"")+'">'+(F[r.title]||F.label||o.text.defaultNodeName)+"</span>","</div>",o.edit?(O={add:'<i class="layui-icon layui-icon-add-1" data-type="add"></i>',update:'<i class="layui-icon layui-icon-edit" data-type="update"></i>',del:'<i class="layui-icon layui-icon-delete" data-type="del"></i>'},z=['<div class="layui-btn-group layui-tree-btnGroup">'],o.edit===!0&&(o.edit=["update","del"]),typeof o.edit=="object"?(layui.each(o.edit,function(D,v){z.push(O[v]||"")}),z.join("")+"</div>"):void 0):"","</div></div>"].join(""));ne&&(re.append(te),c.tree(te,F[r.children])),k.append(re),re.prev("."+T)[0]&&re.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),ne||re.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),c.spread(re,F),o.showCheckbox&&(F.checked&&c.checkids.push(F[r.id]),c.checkClick(re,F)),o.edit&&c.operate(re,F)})},R.prototype.spread=function(k,X){var c=this,o=c.config,F=k.children("."+a),r=F.children("."+p),g=r.find('input[same="layuiTreeCheck"]'),w=F.find("."+_),F=F.find("."+u),O=o.onlyIconControl?w:r,z="";O.on("click",function(ne){var te=k.children("."+s),re=(O.children(".layui-icon")[0]?O:O.find(".layui-tree-icon")).children(".layui-icon");te[0]?k.hasClass(f)?(k.removeClass(f),te.slideUp(200),re.removeClass(C).addClass(ee),c.updateFieldValue(X,"spread",!1)):(k.addClass(f),te.slideDown(200),re.addClass(C).removeClass(ee),c.updateFieldValue(X,"spread",!0),o.accordion&&((te=k.siblings("."+T)).removeClass(f),te.children("."+s).slideUp(200),te.find(".layui-tree-icon").children(".layui-icon").removeClass(C).addClass(ee))):z="normal"}),F.on("click",function(){x(this).hasClass(I)||(z=k.hasClass(f)?o.onlyIconControl?"open":"close":o.onlyIconControl?"close":"open",g[0]&&c.updateFieldValue(X,"checked",g.prop("checked")),o.click&&o.click({elem:k,state:z,data:X}))})},R.prototype.updateFieldValue=function(k,X,c){X in k&&(k[X]=c)},R.prototype.setCheckbox=function(k,X,c){var o,r=this,g=r.config.customName,w=c.prop("checked");c.prop("disabled")||(typeof X[g.children]!="object"&&!k.find("."+s)[0]||k.find("."+s).find('input[same="layuiTreeCheck"]').each(function(F){this.disabled||((F=X[g.children][F])&&r.updateFieldValue(F,"checked",w),r.updateFieldValue(this,"checked",w))}),(o=function(F){var O,z,ne;F.parents("."+T)[0]&&(z=(F=F.parent("."+s)).parent(),ne=F.prev().find('input[same="layuiTreeCheck"]'),w?ne.prop("checked",w):(F.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(O=!0)}),O||ne.prop("checked",!1)),o(z))})(k),r.renderForm("checkbox"))},R.prototype.checkClick=function(k,X){var c=this,o=c.config;k.children("."+a).children("."+p).on("click",'input[same="layuiTreeCheck"]+',function(g){layui.stope(g);var g=x(this).prev(),w=g.prop("checked");g.prop("disabled")||(c.setCheckbox(k,X,g),c.updateFieldValue(X,"checked",w),o.oncheck&&o.oncheck({elem:k,checked:w,data:X}))})},R.prototype.operate=function(k,X){var c=this,o=c.config,r=o.customName,g=k.children("."+a),w=g.children("."+p);g.children(".layui-tree-btnGroup").on("click",".layui-icon",function(z){layui.stope(z);var O,z=x(this).data("type"),ne=k.children("."+s),te={data:X,type:z,elem:k};if(z=="add"){ne[0]||(o.showLine?(w.find("."+_).addClass("layui-tree-icon"),w.find("."+_).children(".layui-icon").addClass(ee).removeClass("layui-icon-file")):w.find(".layui-tree-iconArrow").removeClass(A),k.append('<div class="layui-tree-pack"></div>'));var re,D=o.operate&&o.operate(te),v={};if(v[r.title]=o.text.defaultNodeName,v[r.id]=D,c.tree(k.children("."+s),[v]),o.showLine&&(ne[0]?(ne.hasClass(n)||ne.addClass(n),k.find("."+s).each(function(){x(this).children("."+T).last().addClass(S)}),(ne.children("."+T).last().prev().hasClass(S)?ne.children("."+T).last().prev():ne.children("."+T).last()).removeClass(S),!k.parent("."+s)[0]&&k.next()[0]&&ne.children("."+T).last().removeClass(S)):(D=k.siblings("."+T),re=1,v=k.parent("."+s),layui.each(D,function(L,j){x(j).children("."+s)[0]||(re=0)}),(re==1?(D.children("."+s).addClass(P),D.children("."+s).children("."+T).removeClass(S),k.children("."+s).addClass(P),v.removeClass(n),v.children("."+T).last().children("."+s).children("."+T).last()):k.children("."+s).children("."+T)).addClass(S))),!o.showCheckbox)return;w.find('input[same="layuiTreeCheck"]')[0].checked&&(k.children("."+s).children("."+T).last().find('input[same="layuiTreeCheck"]')[0].checked=!0),c.renderForm("checkbox")}else z=="update"?(D=w.children("."+u).html(),w.children("."+u).html(""),w.append('<input type="text" class="layui-tree-editInput">'),w.children(".layui-tree-editInput").val(Y.unescape(D)).focus(),O=function(L){var j=Y.escape(L.val().trim())||o.text.defaultNodeName;L.remove(),w.children("."+u).html(j),te.data[r.title]=j,o.operate&&o.operate(te)},w.children(".layui-tree-editInput").blur(function(){O(x(this))}),w.children(".layui-tree-editInput").on("keydown",function(L){L.keyCode===13&&(L.preventDefault(),O(x(this)))})):K.confirm('确认删除该节点 "<span style="color: #999;">'+(X[r.title]||"")+'</span>" 吗?',function(L){var j,J,$;o.operate&&o.operate(te),te.status="remove",K.close(L),k.prev("."+T)[0]||k.next("."+T)[0]||k.parent("."+s)[0]?(k.siblings("."+T).children("."+a)[0]?(o.showCheckbox&&(j=function(oe){var m,h,E,W;oe.parents("."+T)[0]&&(m=oe.siblings("."+T).children("."+a),h=(oe=oe.parent("."+s).prev()).find('input[same="layuiTreeCheck"]')[0],E=1,(W=0)==h.checked)&&(m.each(function(G,B){B=x(B).find('input[same="layuiTreeCheck"]')[0],B.checked!=0||B.disabled||(E=0),B.disabled||(W=1)}),E==1)&&W==1&&(h.checked=!0,c.renderForm("checkbox"),j(oe.parent("."+T)))})(k),o.showLine&&(L=k.siblings("."+T),J=1,$=k.parent("."+s),layui.each(L,function(oe,m){x(m).children("."+s)[0]||(J=0)}),J==1?(ne[0]||($.removeClass(n),L.children("."+s).addClass(P),L.children("."+s).children("."+T).removeClass(S)),(k.next()[0]?$.children("."+T).last():k.prev()).children("."+s).children("."+T).last().addClass(S),k.next()[0]||k.parents("."+T)[1]||k.parents("."+T).eq(0).next()[0]||k.prev("."+T).addClass(S)):!k.next()[0]&&k.hasClass(S)&&k.prev().addClass(S))):(L=k.parent("."+s).prev(),o.showLine?(L.find("."+_).removeClass("layui-tree-icon"),L.find("."+_).children(".layui-icon").removeClass(C).addClass("layui-icon-file"),($=L.parents("."+s).eq(0)).addClass(n),$.children("."+T).each(function(){x(this).children("."+s).children("."+T).last().addClass(S)})):L.find(".layui-tree-iconArrow").addClass(A),k.parents("."+T).eq(0).removeClass(f),k.parent("."+s).remove()),k.remove()):(k.remove(),c.elem.append(c.elemNone))})})},R.prototype.events=function(){var k=this,X=k.config;k.elem.find(".layui-tree-checkedFirst"),k.setChecked(k.checkids),k.elem.find(".layui-tree-search").on("keyup",function(){var o=x(this),c=o.val(),o=o.nextAll(),r=[];o.find("."+u).each(function(){var g,w=x(this).parents("."+a);x(this).html().indexOf(c)!=-1&&(r.push(x(this).parent()),(g=function(F){F.addClass("layui-tree-searchShow"),F.parent("."+s)[0]&&g(F.parent("."+s).parent("."+T))})(w.parent("."+T)))}),o.find("."+a).each(function(){var g=x(this).parent("."+T);g.hasClass("layui-tree-searchShow")||g.addClass(A)}),o.find(".layui-tree-searchShow").length==0&&k.elem.append(k.elemNone),X.onsearch&&X.onsearch({elem:r})}),k.elem.find(".layui-tree-search").on("keydown",function(){x(this).nextAll().find("."+a).each(function(){x(this).parent("."+T).removeClass("layui-tree-searchShow "+A)}),x(".layui-tree-emptyText")[0]&&x(".layui-tree-emptyText").remove()})},R.prototype.getChecked=function(){var k=this,X=k.config,c=X.customName,o=[],r=[],g=(k.elem.find(".layui-form-checked").each(function(){o.push(x(this).prev()[0].value)}),function(w,F){layui.each(w,function(O,z){layui.each(o,function(ne,te){if(z[c.id]==te)return k.updateFieldValue(z,"checked",!0),delete(te=x.extend({},z))[c.children],F.push(te),z[c.children]&&(te[c.children]=[],g(z[c.children],te[c.children])),!0})})});return g(x.extend({},X.data),r),r},R.prototype.setChecked=function(k){this.config,this.elem.find("."+T).each(function(X,c){var o=x(this).data("id"),r=x(c).children("."+a).find('input[same="layuiTreeCheck"]'),g=r.next();if(typeof k=="number"){if(o.toString()==k.toString())return r[0].checked||g.click(),!1}else typeof k=="object"&&layui.each(k,function(w,F){if(F.toString()==o.toString()&&!r[0].checked)return g.click(),!0})})},d.that={},d.config={},y.reload=function(k,X){return k=d.that[k],k.reload(X),d.call(k)},y.getChecked=function(k){return d.that[k].getChecked()},y.setChecked=function(k,X){return d.that[k].setChecked(X)},y.render=function(k){return k=new R(k),d.call(k)},he(M,y)}),layui.define(["laytpl","form"],function(he){"use strict";var x=layui.$,Q=layui.laytpl,K=layui.form,Y="transfer",M={config:{},index:layui[Y]?layui[Y].index+1e4:0,set:function(s){var f=this;return f.config=x.extend({},f.config,s),f},on:function(s,f){return layui.onevent.call(this,Y,s,f)}},y=function(){var s=this,f=s.config,S=f.id||s.index;return y.that[S]=s,{config:y.config[S]=f,reload:function(P){s.reload.call(s,P)},getData:function(){return s.getData.call(s)}}},d="layui-hide",A="layui-btn-disabled",I="layui-none",T="layui-transfer-box",_="layui-transfer-header",ee="layui-transfer-search",C="layui-transfer-data",a=function(s){return['<div class="layui-transfer-box" data-index="'+(s=s||{}).index+'">','<div class="layui-transfer-header">','<input type="checkbox" name="'+s.checkAllName+'" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{= d.data.title['+s.index+"] || 'list"+(s.index+1)+`' }}">`,"</div>","{{# if(d.data.showSearch){ }}",'<div class="layui-transfer-search">','<i class="layui-icon layui-icon-search"></i>','<input type="text" class="layui-input" placeholder="关键词搜索">',"</div>","{{# } }}",'<ul class="layui-transfer-data"></ul>',"</div>"].join("")},p=['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{= d.index }}">',a({index:0,checkAllName:"layTransferLeftCheckAll"}),'<div class="layui-transfer-active">','<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="0">','<i class="layui-icon layui-icon-next"></i>',"</button>",'<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="1">','<i class="layui-icon layui-icon-prev"></i>',"</button>","</div>",a({index:1,checkAllName:"layTransferRightCheckAll"}),"</div>"].join(""),u=function(s){var f=this;f.index=++M.index,f.config=x.extend({},f.config,M.config,s),f.render()};u.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},u.prototype.reload=function(s){var f=this;f.config=x.extend({},f.config,s),f.render()},u.prototype.render=function(){var s=this,f=s.config,S=s.elem=x(Q(p,{open:"{{",close:"}}",tagStyle:"legacy"}).render({data:f,index:s.index})),P=f.elem=x(f.elem);P[0]&&(f.data=f.data||[],f.value=f.value||[],f.id="id"in f?f.id:elem.attr("id")||s.index,s.key=f.id,P.html(s.elem),s.layBox=s.elem.find("."+T),s.layHeader=s.elem.find("."+_),s.laySearch=s.elem.find("."+ee),s.layData=S.find("."+C),s.layBtn=S.find(".layui-transfer-active .layui-btn"),s.layBox.css({width:f.width,height:f.height}),s.layData.css({height:(P=f.height-s.layHeader.outerHeight(),f.showSearch&&(P-=s.laySearch.outerHeight()),P-2)}),s.renderData(),s.events())},u.prototype.renderData=function(){var s=this,f=s.config,S=[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}];s.parseData(function(P){var n=P.selected?1:0,R=["<li>",'<input type="checkbox" name="'+S[n].checkName+'" lay-skin="primary" lay-filter="layTransferCheckbox" title="'+P.title+'"'+(P.disabled?" disabled":"")+(P.checked?" checked":"")+' value="'+P.value+'">',"</li>"].join("");n?layui.each(f.value,function(k,X){X==P.value&&P.selected&&(S[n].views[k]=R)}):S[n].views.push(R),delete P.selected}),s.layData.eq(0).html(S[0].views.join("")),s.layData.eq(1).html(S[1].views.join("")),s.renderCheckBtn()},u.prototype.renderForm=function(s){K.render(s,"LAY-transfer-"+this.index)},u.prototype.renderCheckBtn=function(s){var f=this,S=f.config;s=s||{},f.layBox.each(function(P){var R=x(this),n=R.find("."+C),R=R.find("."+_).find('input[type="checkbox"]'),k=n.find('input[type="checkbox"]'),X=0,c=!1;k.each(function(){var o=x(this).data("hide");(this.checked||this.disabled||o)&&X++,this.checked&&!o&&(c=!0)}),R.prop("checked",c&&X===k.length),f.layBtn.eq(P)[c?"removeClass":"addClass"](A),s.stopNone||(k=n.children("li:not(."+d+")").length,f.noneView(n,k?"":S.text.none))}),f.renderForm("checkbox")},u.prototype.noneView=function(s,f){var S=x('<p class="layui-none">'+(f||"")+"</p>");s.find("."+I)[0]&&s.find("."+I).remove(),f.replace(/\s/g,"")&&s.append(S)},u.prototype.setValue=function(){var s=this.config,f=[];return this.layBox.eq(1).find("."+C+' input[type="checkbox"]').each(function(){x(this).data("hide")||f.push(this.value)}),s.value=f,this},u.prototype.parseData=function(s){var f=this.config,S=[];return layui.each(f.data,function(P,n){n=(typeof f.parseData=="function"?f.parseData(n):n)||n,S.push(n=x.extend({},n)),layui.each(f.value,function(R,k){k==n.value&&(n.selected=!0)}),s&&s(n)}),f.data=S,this},u.prototype.getData=function(s){var f=this.config,S=[];return this.setValue(),layui.each(s||f.value,function(P,n){layui.each(f.data,function(R,k){delete k.selected,n==k.value&&S.push(k)})}),S},u.prototype.transfer=function(s,X){var S,P=this,n=P.config,R=P.layBox.eq(s),k=[],X=(X?((S=(X=X).find('input[type="checkbox"]'))[0].checked=!1,R.siblings("."+T).find("."+C).append(X.clone()),X.remove(),k.push(S[0].value),P.setValue()):R.each(function(c){x(this).find("."+C).children("li").each(function(){var o=x(this),r=o.find('input[type="checkbox"]'),g=r.data("hide");r[0].checked&&!g&&(r[0].checked=!1,R.siblings("."+T).find("."+C).append(o.clone()),o.remove(),k.push(r[0].value)),P.setValue()})}),P.renderCheckBtn(),R.siblings("."+T).find("."+ee+" input"));X.val()!==""&&X.trigger("keyup"),n.onchange&&n.onchange(P.getData(k),s)},u.prototype.events=function(){var s=this,f=s.config;s.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var S=x(this).prev(),P=S[0].checked,n=S.parents("."+T).eq(0).find("."+C);S[0].disabled||(S.attr("lay-type")==="all"&&n.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=P)}),setTimeout(function(){s.renderCheckBtn({stopNone:!0})},0))}),s.elem.on("dblclick","."+C+">li",function(S){var P=x(this),n=P.children('input[type="checkbox"]'),R=P.parent().parent().data("index");n[0].disabled||(typeof f.dblclick=="function"?f.dblclick({elem:P,data:s.getData([n[0].value])[0],index:R}):null)!==!1&&s.transfer(R,P)}),s.layBtn.on("click",function(){var S=x(this),P=S.data("index");S.hasClass(A)||s.transfer(P)}),s.laySearch.find("input").on("keyup",function(){var S=this.value,P=x(this).parents("."+ee).eq(0).siblings("."+C),n=P.children("li"),n=(n.each(function(){var R=x(this),k=R.find('input[type="checkbox"]'),X=k[0].title,X=(f.showSearch!=="cs"&&(X=X.toLowerCase(),S=S.toLowerCase()),X.indexOf(S)!==-1);R[X?"removeClass":"addClass"](d),k.data("hide",!X)}),s.renderCheckBtn(),n.length===P.children("li."+d).length);s.noneView(P,n?f.text.searchNone:"")})},y.that={},y.config={},M.reload=function(s,f){return s=y.that[s],s.reload(f),y.call(s)},M.getData=function(s){return y.that[s].getData()},M.render=function(s){return s=new u(s),y.call(s)},he(Y,M)}),layui.define(["jquery","lay"],function(he){"use strict";var x=layui.$,Q=layui.lay,K=(layui.hint(),layui.device(),{config:{},set:function(C){var a=this;return a.config=x.extend({},a.config,C),a},on:function(C,a){return layui.onevent.call(this,Y,C,a)}}),Y="carousel",M="layui-this",y="layui-carousel-left",d="layui-carousel-right",A="layui-carousel-prev",I="layui-carousel-next",T="layui-carousel-arrow",_="layui-carousel-ind",ee=function(C){var a=this;a.config=x.extend({},a.config,K.config,C),a.render()};ee.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},ee.prototype.render=function(){var C=this,a=C.config,p=x(a.elem);if(1<p.length)return layui.each(p,function(){K.render(x.extend({},a,{elem:this}))}),C;x.extend(a,Q.options(p[0])),a.elem=x(a.elem),a.elem[0]&&(C.elemItem=a.elem.find(">*[carousel-item]>*"),a.index<0&&(a.index=0),a.index>=C.elemItem.length&&(a.index=C.elemItem.length-1),a.interval<800&&(a.interval=800),a.full?a.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):a.elem.css({width:a.width,height:a.height}),a.elem.attr("lay-anim",a.anim),C.elemItem.eq(a.index).addClass(M),C.indicator(),C.arrow(),C.autoplay(),1<C.elemItem.length)&&C.events()},ee.prototype.reload=function(C){var a=this;clearInterval(a.timer),a.config=x.extend({},a.config,C),a.render()},ee.prototype.prevIndex=function(){var C=this.config.index-1;return C=C<0?this.elemItem.length-1:C},ee.prototype.nextIndex=function(){var C=this.config.index+1;return C=C>=this.elemItem.length?0:C},ee.prototype.addIndex=function(C){var a=this.config;a.index=a.index+(C=C||1),a.index>=this.elemItem.length&&(a.index=0)},ee.prototype.subIndex=function(C){var a=this.config;a.index=a.index-(C=C||1),a.index<0&&(a.index=this.elemItem.length-1)},ee.prototype.autoplay=function(){var C=this,a=C.config,p=C.elemItem.length;a.autoplay&&(clearInterval(C.timer),1<p)&&(C.timer=setInterval(function(){C.slide()},a.interval))},ee.prototype.arrow=function(){var C=this,a=C.config,p=C.elemItem.length,u=x(['<button type="button" class="layui-icon '+(a.anim==="updown"?"layui-icon-up":"layui-icon-left")+" "+T+'" lay-type="sub"></button>','<button type="button" class="layui-icon '+(a.anim==="updown"?"layui-icon-down":"layui-icon-right")+" "+T+'" lay-type="add"></button>'].join(""));a.elem.attr("lay-arrow",a.arrow),a.elem.find("."+T)[0]&&a.elem.find("."+T).remove(),1<p?a.elem.append(u):u.remove(),u.on("click",function(){var s=x(this).attr("lay-type");C.slide(s)})},ee.prototype.goto=function(C){var a=this,p=a.config;C>p.index?a.slide("add",C-p.index):C<p.index&&a.slide("sub",p.index-C)},ee.prototype.indicator=function(){var C,a=this,p=a.config,u=a.elemItem.length,s=a.elemInd=x(['<div class="'+_+'"><ul>',(C=[],layui.each(a.elemItem,function(f){C.push("<li"+(p.index===f?' class="layui-this"':"")+"></li>")}),C.join("")),"</ul></div>"].join(""));p.elem.attr("lay-indicator",p.indicator),p.elem.find("."+_)[0]&&p.elem.find("."+_).remove(),1<u?p.elem.append(s):s.remove(),p.anim==="updown"&&s.css("margin-top",-s.height()/2),s.find("li").on(p.trigger==="hover"?"mouseover":p.trigger,function(){a.goto(x(this).index())})},ee.prototype.slide=function(C,a){var p=this,u=p.elemItem,s=u.length,f=p.config,S=f.index,P=f.elem.attr("lay-filter");p.haveSlide||s<=1||(C==="sub"?(p.subIndex(a),u.eq(f.index).addClass(A),setTimeout(function(){u.eq(S).addClass(d),u.eq(f.index).addClass(d)},50)):(p.addIndex(a),u.eq(f.index).addClass(I),setTimeout(function(){u.eq(S).addClass(y),u.eq(f.index).addClass(y)},50)),setTimeout(function(){u.removeClass(M+" "+A+" "+I+" "+y+" "+d),u.eq(f.index).addClass(M),p.haveSlide=!1},350),p.elemInd.find("li").eq(f.index).addClass(M).siblings().removeClass(M),p.haveSlide=!0,s={index:f.index,prevIndex:S,item:u.eq(f.index)},typeof f.change=="function"&&f.change(s),layui.event.call(this,Y,"change("+P+")",s))},ee.prototype.events=function(){var C,a,p=this,u=p.config;u.elem.data("haveEvents")||(u.elem.on("mouseenter touchstart",function(){p.config.autoplay!=="always"&&clearInterval(p.timer)}).on("mouseleave touchend",function(){p.config.autoplay!=="always"&&p.autoplay()}),C=u.elem,a=u.anim==="updown",Q.touchSwipe(C,{onTouchEnd:function(s,P){var S=Date.now()-P.timeStart,P=a?P.distanceY:P.distanceX;(.25<Math.abs(P/S)||Math.abs(P)>C[a?"height":"width"]()/3)&&p.slide(0<P?"":"sub")}}),u.elem.data("haveEvents",!0))},K.render=function(C){return new ee(C)},he(Y,K)}),layui.define("component",function(he){"use strict";var x=layui.$,Q=layui.lay,K=layui.component({name:"rate",config:{length:5,value:0,half:!1,text:!1,readonly:!1,theme:""},CONST:{ELEM:"layui-rate",ICON_RATE:"layui-icon-rate",ICON_RATE_SOLID:"layui-icon-rate-solid",ICON_RATE_HALF:"layui-icon-rate-half",ICON_SOLID_HALF:"layui-icon-rate-solid layui-icon-rate-half",ICON_SOLID_RATE:"layui-icon-rate-solid layui-icon-rate",ICON_HALF_RATE:"layui-icon-rate layui-icon-rate-half"},render:function(){for(var M=this,y=M.config,d=y.theme?'style="color: '+y.theme+';"':"",A=(y.value>y.length&&(y.value=y.length),parseInt(y.value)===y.value||y.half||(y.value=Math.ceil(y.value)-y.value<.5?Math.ceil(y.value):Math.floor(y.value)),'<ul class="layui-rate" '+(y.readonly?"readonly":"")+">"),I=1;I<=y.length;I++){var T='<li class="layui-inline"><i class="layui-icon '+(I>Math.floor(y.value)?Y.ICON_RATE:Y.ICON_RATE_SOLID)+'" '+d+"></i></li>";y.half&&parseInt(y.value)!==y.value&&I==Math.ceil(y.value)?A=A+'<li><i class="layui-icon layui-icon-rate-half" '+d+"></i></li>":A+=T}A+="</ul>",y.text&&(A+='<span class="layui-inline">'+y.value+"</span>");var _=y.elem,ee=_.next("."+Y.ELEM);ee[0]&&ee.remove(),M.elemTemplate=x(A),y.span=M.elemTemplate.next("span"),y.setText&&y.setText(y.value),_.html(M.elemTemplate),_.addClass("layui-inline"),y.readonly||M.action()},extendsInstance:function(){var M=this,y=M.config;return{setvalue:function(d){y.value=d,M.render()}}}}),Y=K.CONST;K.Class.prototype.action=function(){var M=this.config,y=this.elemTemplate,d=y.find("i").width(),A=y.children("li");A.each(function(I){var T=I+1,_=x(this);_.on("click",function(ee){M.value=T,M.half&&ee.pageX-x(this).offset().left<=d/2&&(M.value=M.value-.5),M.text&&y.next("span").text(M.value),M.choose&&M.choose(M.value),M.setText&&M.setText(M.value)}),_.on("mousemove",function(ee){y.find("i").each(function(){x(this).addClass(Y.ICON_RATE).removeClass(Y.ICON_SOLID_HALF)}),y.find("i:lt("+T+")").each(function(){x(this).addClass(Y.ICON_RATE_SOLID).removeClass(Y.ICON_HALF_RATE)}),M.half&&ee.pageX-x(this).offset().left<=d/2&&_.children("i").addClass(Y.ICON_RATE_HALF).removeClass(Y.ICON_RATE_SOLID)}),_.on("mouseleave",function(){y.find("i").each(function(){x(this).addClass(Y.ICON_RATE).removeClass(Y.ICON_SOLID_HALF)}),y.find("i:lt("+Math.floor(M.value)+")").each(function(){x(this).addClass(Y.ICON_RATE_SOLID).removeClass(Y.ICON_HALF_RATE)}),M.half&&parseInt(M.value)!==M.value&&y.children("li:eq("+Math.floor(M.value)+")").children("i").addClass(Y.ICON_RATE_HALF).removeClass(Y.ICON_SOLID_RATE)})}),Q.touchSwipe(y,{onTouchMove:function(I,T){var _;Date.now()-T.timeStart<=200||(T=I.touches[0].pageX,I=y.width()/M.length,T=(T-y.offset().left)/I,(_=(_=(I=T%1)<=.5&&M.half?.5+(T-I):Math.ceil(T))>M.length?M.length:_)<0&&(_=0),A.each(function(u){var C=x(this).children("i"),a=Math.ceil(_)-u==1,p=Math.ceil(_)>u,u=_-u==.5;p?(C.addClass(Y.ICON_RATE_SOLID).removeClass(Y.ICON_HALF_RATE),M.half&&u&&C.addClass(Y.ICON_RATE_HALF).removeClass(Y.ICON_RATE_SOLID)):C.addClass(Y.ICON_RATE).removeClass(Y.ICON_SOLID_HALF),C.toggleClass("layui-rate-hover",a)}),M.value=_,M.text&&y.next("span").text(M.value),M.setText&&M.setText(M.value))},onTouchEnd:function(I,T){Date.now()-T.timeStart<=200||(y.find("i").removeClass("layui-rate-hover"),M.choose&&M.choose(M.value),M.setText&&M.setText(M.value))}})},he(Y.MOD_NAME,K)}),layui.define("jquery",function(he){"use strict";var x=layui.$,Q=function(K){};Q.prototype.load=function(K){var Y,M,y,d,A,I,T,_,ee,C,a,p,u,s,f,S=this,P=0,n=x((K=K||{}).elem);if(n[0])return A=x(K.scrollElem||document),I="mb"in K?K.mb:50,T=!("isAuto"in K)||K.isAuto,_=K.moreText||"加载更多",ee=K.end||"没有更多了",C=(K.direction||"bottom")==="top",S._cleanup(n,A),a=K.scrollElem&&K.scrollElem!==document,u=x('<div class="layui-flow-more"><a href="javascript:;">'+(p="<cite>"+_+"</cite>")+"</a></div>"),n.find(".layui-flow-more")[0]||n[C?"prepend":"append"](u),s=function(R,k){var X=a?A.prop("scrollHeight"):document.documentElement.scrollHeight,c=A.scrollTop();R=x(R),u[C?"after":"before"](R),(k=k==0||null)?u.html(ee):u.find("a").html(p),M=k,Y=null,y&&y(),C&&(R=a?A.prop("scrollHeight"):document.documentElement.scrollHeight,P===1?A.scrollTop(R):1<P&&A.scrollTop(c+(R-X)))},(f=function(){Y=!0,u.find("a").html('<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>'),typeof K.done=="function"&&K.done(++P,s)})(),u.find("a").on("click.flow",function(){x(this),M||Y||f()}),K.isLazyimg&&(y=S.lazyimg({elem:K.elem+" img",scrollElem:K.scrollElem,direction:K.direction})),T&&A.on("scroll.flow",function(){var R=x(this),k=R.scrollTop();d&&clearTimeout(d),!M&&n.width()&&(d=setTimeout(function(){var X=(a?R:x(window)).height(),c=a?R.prop("scrollHeight"):document.documentElement.scrollHeight;(C?k<=I:c-k-X<=I)&&!Y&&f()},100))}),S},Q.prototype.lazyimg=function(K){var Y,M=this,y=0,d=x((K=K||{}).scrollElem||document),A=K.elem||"img",I=(K.direction||"bottom")==="top",T=K.scrollElem&&K.scrollElem!==document,_=function(C,s){var p,u=d.scrollTop(),s=u+s,f=T?C.offset().top-d.offset().top+u:C.offset().top;(I?f+C.height():f)>=u&&f<=s&&C.attr("lay-src")&&(p=C.attr("lay-src"),layui.img(p,function(){var S=M.lazyimg.elem.eq(y);C.attr("src",p).removeAttr("lay-src"),S[0]&&ee(S),y++},function(){M.lazyimg.elem.eq(y),C.removeAttr("lay-src")}))},ee=function(C,a){var p=(T?a||d:x(window)).height(),u=d.scrollTop(),s=u+p;if(M.lazyimg.elem=x(A),C)_(C,p);else for(var f=0;f<M.lazyimg.elem.length;f++){var S=M.lazyimg.elem.eq(f),P=T?S.offset().top-d.offset().top+u:S.offset().top;if(_(S,p),y=f,s<P)break}};return ee(),d.on("scroll.lazyimg",function(){var C=x(this);Y&&clearTimeout(Y),Y=setTimeout(function(){ee(null,C)},50)}),ee},Q.prototype._cleanup=function(K,Y){Y.off("scroll.flow").off("scroll.lazyimg"),K.find(".layui-flow-more").find("a").off("click.flow")},he("flow",new Q)}),layui.define(["lay","util","element","tabs","form"],function(he){"use strict";var x=layui.$,Q=layui.util,K=layui.element,Y=layui.tabs,M=layui.form,y=layui.layer,d=(layui.hint(),{ELEM_VIEW:"layui-code-view",ELEM_TAB:"layui-tab",ELEM_HEADER:"layui-code-header",ELEM_FULL:"layui-code-full",ELEM_PREVIEW:"layui-code-preview",ELEM_ITEM:"layui-code-item",ELEM_SHOW:"layui-show",ELEM_LINE:"layui-code-line",ELEM_LINE_NUM:"layui-code-line-number",ELEM_LN_MODE:"layui-code-ln-mode",CDDE_DATA_CLASS:"LayuiCodeDataClass",LINE_RAW_WIDTH:45}),A={elem:"",about:"",ln:!0,header:!1,encode:!0,copy:!0,text:{code:Q.escape("</>"),preview:"Preview"},wordWrap:!0,lang:"text",highlighter:!1,langMarker:!1},I=layui.code?layui.code.index+1e4:0,T=function(_){return String(_).replace(/\s+$/,"").replace(/^\n|\n$/,"")};he("code",function(_,ee){var C,a,p,u,s,f,S,P,n,R,k,X,c,o,r,g,w,F,O,z,ne,te={config:_=x.extend(!0,{},A,_),reload:function(D){layui.code(this.updateOptions(D))},updateOptions:function(D){return delete(D=D||{}).elem,x.extend(!0,_,D)},reloadCode:function(D){layui.code(this.updateOptions(D),"reloadCode")}},re=x(_.elem);return 1<re.length?layui.each(_.obverse?re:re.get().reverse(),function(){layui.code(x.extend({},_,{elem:this}),ee)}):(C=_.elem=x(_.elem))[0]&&(x.extend(!0,_,lay.options(C[0]),(a={},layui.each(["title","height","encode","skin","about"],function(D,v){var L=C.attr("lay-"+v);typeof L=="string"&&(a[v]=L)}),a)),_.encode=(_.encode||_.preview)&&!_.codeRender,_.code=_.code||(p=[],C.children("textarea").each(function(){p.push(T(this.value))}),p.length===0&&p.push(T(C.html())),p.join("")),re=function(D){typeof _.codeRender=="function"&&(D=_.codeRender(String(D),_));var v=String(D).split(/\r?\n/g);return{lines:v,html:D=x.map(v,function(L,j){return['<div class="'+d.ELEM_LINE+'">',_.ln?['<div class="'+d.ELEM_LINE_NUM+'">',Q.digit(j+1)+".","</div>"].join(""):"",'<div class="layui-code-line-content">',L||" ","</div>","</div>"].join("")})}},u=_.code,s=function(D){return typeof _.codeParse=="function"?_.codeParse(D,_):D},ee==="reloadCode"?C.children(".layui-code-wrap").html(re(s(u)).html):(f=layui.code.index=++I,C.attr("lay-code-index",f),(z=d.CDDE_DATA_CLASS in C.data())&&C.attr("class",C.data(d.CDDE_DATA_CLASS)||""),z||C.data(d.CDDE_DATA_CLASS,C.attr("class")),S={copy:{className:"file-b",title:["复制代码"],event:function(D){var v=Q.unescape(s(_.code)),L=typeof _.onCopy=="function";lay.clipboard.writeText({text:v,done:function(){L&&_.onCopy(v,!0)===!1||y.msg("已复制",{icon:1})},error:function(){L&&_.onCopy(v,!1)===!1||y.msg("复制失败",{icon:2})}})}}},(function D(){var v=C.parent("."+d.ELEM_PREVIEW),L=v.children("."+d.ELEM_TAB),j=v.children("."+d.ELEM_ITEM+"-preview");return L.remove(),j.remove(),v[0]&&C.unwrap(),D})(),_.preview&&(z="LAY-CODE-DF-"+f,o=_.layout||["code","preview"],P=_.preview==="iframe",c=x('<div class="'+d.ELEM_PREVIEW+'">'),ne=x('<div class="layui-tab layui-tab-brief">'),n=x('<div class="layui-tab-title">'),O=x('<div class="'+[d.ELEM_ITEM,d.ELEM_ITEM+"-preview","layui-border"].join(" ")+'">'),R=x('<div class="layui-code-tools"></div>'),_.id&&c.attr("id",_.id),c.addClass(_.className),ne.attr("lay-filter",z),layui.each(o,function(D,v){var L=x('<li lay-id="'+v+'">');D===0&&L.addClass("layui-this"),L.html(_.text[v]),n.append(L)}),x.extend(S,{full:{className:"screen-full",title:["最大化显示","还原显示"],event:function(v){var v=v.elem,L=v.closest("."+d.ELEM_PREVIEW),j="layui-icon-"+this.className,J="layui-icon-screen-restore",$=this.title,oe=x("html,body"),m="layui-scrollbar-hide";v.hasClass(j)?(L.addClass(d.ELEM_FULL),v.removeClass(j).addClass(J),v.attr("title",$[1]),oe.addClass(m)):(L.removeClass(d.ELEM_FULL),v.removeClass(J).addClass(j),v.attr("title",$[0]),oe.removeClass(m))}},window:{className:"release",title:["在新窗口预览"],event:function(D){Q.openWin({content:s(_.code)})}}}),_.copy&&(layui.type(_.tools)==="array"?_.tools.indexOf("copy")===-1&&_.tools.unshift("copy"):_.tools=["copy"]),R.on("click",">i",function(){var v=x(this),D=v.data("type"),v={elem:v,type:D,options:_,rawCode:_.code,finalCode:Q.unescape(s(_.code))};S[D]&&typeof S[D].event=="function"&&S[D].event(v),typeof _.toolsEvent=="function"&&_.toolsEvent(v)}),_.addTools&&_.tools&&(_.tools=[].concat(_.tools,_.addTools)),layui.each(_.tools,function(D,v){var $=typeof v=="object",L=$?v:S[v]||{className:v,title:[v]},j=L.className||L.type,J=L.title||[""],$=$?L.type||j:v;$&&(S[$]||((v={})[$]=L,x.extend(S,v)),R.append('<i class="layui-icon layui-icon-'+j+'" data-type="'+$+'" title="'+J[0]+'"></i>'))}),C.addClass(d.ELEM_ITEM).wrap(c),ne.append(n),_.tools&&ne.append(R),C.before(ne),P&&O.html('<iframe allowtransparency="true" frameborder="0"></iframe>'),k=function(D){var v=D.children("iframe")[0];P&&v?v.srcdoc=s(_.code):D.html(_.code),setTimeout(function(){typeof _.done=="function"&&_.done({container:D,options:_,render:function(){M.render(D.find(".layui-form")),K.render(),Y.render({elem:["."+d.ELEM_PREVIEW,".layui-tabs"].join(" ")})}})},3)},o[0]==="preview"?(O.addClass(d.ELEM_SHOW),C.before(O),k(O)):C.addClass(d.ELEM_SHOW).after(O),_.previewStyle=[_.style,_.previewStyle].join(""),O.attr("style",_.previewStyle),K.on("tab("+z+")",function(j){var v=x(this),L=x(j.elem).closest("."+d.ELEM_PREVIEW).find("."+d.ELEM_ITEM),j=L.eq(j.index);L.removeClass(d.ELEM_SHOW),j.addClass(d.ELEM_SHOW),v.attr("lay-id")==="preview"&&k(j),F()})),X=x('<code class="layui-code-wrap"></code>'),C.addClass((c=["layui-code-view layui-border-box"],_.wordWrap||c.push("layui-code-nowrap"),c.join(" "))),(ne=_.theme||_.skin)&&(C.removeClass("layui-code-theme-dark layui-code-theme-light"),C.addClass("layui-code-theme-"+ne)),_.highlighter&&C.addClass([_.highlighter,"language-"+_.lang,"layui-code-hl"].join(" ")),o=re(_.encode?Q.escape(s(u)):u),r=o.lines,C.html(X.html(o.html)),_.ln&&C.append('<div class="layui-code-ln-side"></div>'),_.height&&X.css("max-height",_.height),_.codeStyle=[_.style,_.codeStyle].join(""),_.codeStyle&&X.attr("style",function(D,v){return(v||"")+_.codeStyle}),g=[{selector:">.layui-code-wrap>.layui-code-line{}",setValue:function(D,v){D.style["padding-left"]=v+"px"}},{selector:">.layui-code-wrap>.layui-code-line>.layui-code-line-number{}",setValue:function(D,v){D.style.width=v+"px"}},{selector:">.layui-code-ln-side{}",setValue:function(D,v){D.style.width=v+"px"}}],w=lay.style({target:C[0],id:"DF-code-"+f,text:x.map(x.map(g,function(D){return D.selector}),function(D,v){return['.layui-code-view[lay-code-index="'+f+'"]',D].join(" ")}).join("")}),F=(function D(){var v,L;return _.ln&&(v=Math.floor(r.length/100),L=X.children("."+d.ELEM_LINE).last().children("."+d.ELEM_LINE_NUM).outerWidth(),C.addClass(d.ELEM_LN_MODE),v)&&d.LINE_RAW_WIDTH<L&&lay.getStyleRules(w,function(j,J){try{g[J].setValue(j,L)}catch($){}}),D})(),_.header&&((O=x('<div class="'+d.ELEM_HEADER+'"></div>')).html(_.title||_.text.code),C.prepend(O)),z=x('<div class="layui-code-fixbar"></div>'),_.copy&&!_.preview&&((ne=x(['<span class="layui-code-copy">','<i class="layui-icon layui-icon-file-b" title="复制"></i>',"</span>"].join(""))).on("click",function(){S.copy.event()}),z.append(ne)),_.langMarker&&z.append('<span class="layui-code-lang-marker">'+_.lang+"</span>"),_.about&&z.append(_.about),C.append(z),_.preview||setTimeout(function(){typeof _.done=="function"&&_.done({})},3),_.elem.length===1+f&&typeof _.allDone=="function"&&_.allDone())),te})}),layui["layui.all"]||layui.addcss("modules/code.css?v=6","skincodecss");