-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathMingGe_Min_1.9.6.5.js
executable file
·11 lines (11 loc) · 40.9 KB
/
MingGe_Min_1.9.6.5.js
1
2
3
4
5
6
7
8
9
10
11
/*
* MingGeJs类库1.9.6.5.2016超强正式版(Min)
*
* 你会用JQUERY,那你也会用这个类库,因为语法都是一样的,那有开发文档吗?和JQUERY一样,要开发文档干嘛?
*
* MingGeJs的运行绝对比JQUERY快,MingGejs是你的最佳选择,请多多支持,
*
* 作者:明哥先生-QQ399195513 QQ群:461550716 官网:www.shearphoto.com
*/
!function(a,b,c){var d,e,f,g,h,i,j="MingGe_Min_1.9.6.5",k="readystatechange",l="on"+k,m="[object Object]",n="[object Array]",o="getElementById",p="getElementsByTagName",q="getElementsByClassName",r="querySelectorAll",s="documentElement",t="#MingGe#NotNode",u="MingGeAnimate",v="MingGeBind",w="mingGeAnimateList",x="isMingGeAnimate",y="MingGeAllElem2016",z=document,A=a.setTimeout,B=a.encodeURIComponent,C=z.createElement("div"),D=[],E=function(){},F=!!z[q],G=!!z[r],H=Object.prototype.toString,I=/^(?:#([\w\u00c0-\uFFFF\-]+)|(\w+)|\.([\w\u00c0-\uFFFF\-]+))$/,J=/^\[\s?([\w\u00c0-\uFFFF\-]+)\s?(?:=\s?[\"\'](.+?)[\"\']\s?)?\]$/,K=/[^\,]+/g,L=/[^\s]+/g,M=/^[\w\u00c0-\uFFFF\-]+|\*/,N=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,O=[/[\t\r\n\f\v]/g,/[\x00-\x1f\x7f-\x9f\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,/\\([\}\]])/g],P=/[\]\}\"\\\/]/g,Q=[/((?:\[[^\[\]]+\])+)([\w\u00c0-\uFFFF\-]+|\*)/g,/([\.#]?[\w\u00c0-\uFFFF\-]+|\*)<<<(.+?)>>>/g],R=/^[\w\*]/,S=/,+$/,T=/([^\?&\\\/]+?)\s*=\s*\?+$/,U=/,([\}\]])/g,V=[/^[\],:{}\s]*$/,/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,/(?:^|:|,)(?:\s*\[)+/g],W=/\s+/g,X=/([A-Z])/g,Y=/-([a-z])/gi,Z=/&+$/,$=/^#[\w\u00c0-\uFFFF\-]+[^\w\u00c0-\uFFFF\-]|^\*+\#/,_=/(<<<|>>>)/g,ab=/(\[.+?\]|[\.#]?([\w\u00c0-\uFFFF\-]+))/g,bb=/^(div|ul|p|h1|h2|h3|h4|h5|h6|dd|dt|dl|ol|table|nav|form|hr)$/i,cb=/^(span|ul|b|a|em|strong|img|label)$/i,db=/^li$/i,eb=/^(input|button|textarea|select|option)$/i,fb=/opacity\s*=\s*([0-9]+)/,gb=/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\s*\(.+\))$/,hb=/[\?&]+.+\s*=\s*\?/,ib=/^#([\w\u00c0-\uFFFF\-]+)$/,jb=/\?/,kb=/^\<\s*input/i,lb=/alpha\([^)]*\)/,mb=[/\[[^\[\]]*(\s)[^\[\]]*\]/g,/\s/g,/<<@>>/g,/\[[^\[\]]*(\,)[^\[\]]*\]/g,/\,/g,/<<\uff0c>>/g],nb=D.push,ob=D.slice,pb={fast:200,slow:600,normal:400},qb=function(a){try{return a.replace(N,"")}catch(b){return a}},rb=function(a,b){return Rb.isObjArr(a)&&Rb.isObjArr(b)&&Rb.each(b,function(b,c){a[b]=c}),a},sb=/^\s*(matrix3d|translate3d|translateX|translateY|translateZ|scale3d|scaleX|scaleY|scaleZ|rotate3d|rotateX|rotateY|rotateZ|perspective|matrix|translate|translateX|translateY|scale|scaleX|scaleY|rotate|skew|skewX|skewY)\s*$/i,tb=function(a){a=a.toLowerCase();var b=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},ub=function(a){Rb.each.call(this,function(){var b,c,d,e=f.getElem(this,v+f.key,[a]);if(Rb.isArray(e))for(d=e.length-1;d>-1;d--)b=e[d],Rb.isObject(b)&&Rb.isFunction(c=b.callback)&&(f.removeEvent(this,a,{isOne:!0,callback:c}),c.call(this))})},vb=function(a){var b=I.exec(a),c=!1;return null===b?(b=a.match(J))&&(c=[null,null,b,{Attr:!0}]):c=b[1]?[o,"id",b[1],{Id:!0}]:b[2]?[p,"tagName",b[2],{Tag:!0}]:[q,"className",b[3],{Class:!0}],c},wb=[function(a){return{"\t":"\\t","\r":"\\r","\n":"\\n","\f":"\\f","\v":"\\v"}[a]},function(a){return"\\u"+("000"+a.charCodeAt(0).toString(16)).slice(-4)},function(a,b){return b}],xb=function(a){return a.replace(O[0],wb[0]).replace(O[1],wb[1]).replace(O[2],wb[2])},yb=function(a){return"\\"+a},zb=function(a){return a.replace(P,yb)},Ab=function(a){var b=0,c=[],d=a.length;if(a&&(d||a.item&&!Rb.isWindow(a)))for(;d>b;b++)-1==Rb.inArray(a[b],c)&&c.push(a[b]);return c},Bb=function(a,b){var c,d,e,f,g,h,i,j,k,l;if(b?(d=" ",e="<<@>>",f=L,g=mb[0],h=mb[1],i=mb[2]):(d=",",e="<<,>>",f=K,g=mb[3],h=mb[4],i=mb[5]),a=a.replace(g,function(a){return c=!0,a.replace(h,e)}),j=a.match(f),j&&c)for(k=0,l=j.length;l>k;k++)j[k]=j[k].replace(i,d);return j},Cb=function(a,b,c){return R.test(b)?"*"==b?c:"*"==c?b:b.toLowerCase()==c.toLowerCase()?b:t:c+b},Db=function(a){var b,a=a.replace(Q[0],function(a,c,d){return b=!0,"<<<"+d+">>>"+c});return b?(a=a.replace(Q[1],Cb).replace(_,""),Db(a)):a},Eb=function(a,b){var c,d,e,f;if(!R.test(b))return a+b;if(c=Bb(a,!0)){if(d=c.length-1,e=c[d].match(M),!e)return c[d]=b+c[d],c.join(" ");if(f=b.match(M),e[0].toLowerCase()==f[0].toLowerCase()||"*"==f[0])return a+b.replace(M,"");if("*"==e[0])return Db(a.replace("*","")+b)}return t},Fb=function(a,b,c){var d,e,f,g,h,i,j,k=Bb(a),l=Bb(b);if(k&&l){for(e="",f=" "==c,g=0,h=k.length,i=l.length;h>g;g++)for(d=k[g]+c,j=0;i>j;j++)e+=f?d+l[j]+",":Eb(d,l[j])+",";return""==e?t:e.replace(S,"")}},Gb=function(a,b,c,d,e){if(a.queryTwo===!0)return-1;if(Rb.isElem(a.queryOne)){if(d)return-1;var f,g="#"+(a.queryOne.id||(f=!0,a.queryOne.id="tempMingGeId2016")),h=b.queryTwo=Rb.isString(a.queryTwo)?Fb(a.queryTwo,c,e):c,i=Fb(g,h,e);return Rb.upload(b,Nb(a.queryOne[r](i))),b.queryOne=a.queryOne,f&&a.queryOne.removeAttribute("id"),b}},Hb=function(a,b,c,d){var e,f,g,h,i,j;try{if(a=Db(a),c){if(Rb.isWindow(b.queryOne))return d;if(b.queryOne==z)return c.find?Rb(a):d;if(b.queryOne&&a){if(f=c.filter,g=f?"":" ",e=Gb(b,d,a,f,g))return e;h=Fb(b.queryOne,a,g)}Rb.upload(d,Nb(z[r](h))),d.queryOne=h}else j=ib.exec(a),Rb.upload(d,j?(i=z[o](j[1]))?[i]:[]:Nb(z[r](a))),d.queryOne=a}catch(k){console.log(k.message)}return d},Ib=function(a,b,c){var d,e,f,g,h,i,j=new Rb;if(Rb.isString(a)){if(!c&&a.indexOf("<")>-1)for(d=Mb.getFragment(a),e=0,f=d.length;f>e;e++)if(Rb.isElem(d[e]))return Mb.comMode(j,d);if(a=qb(a),G&&-1!=(g=Hb(a,b,c,j)))return g;if(j.queryTwo=j.queryOne=!0,h="*"==a?[y]:Bb(a))if(f=h.length,1==f)Rb.upload(j,Ab(Jb(h[0],b,c)));else{for(i=[],e=0;f>e;e++)i=i.concat(Jb(h[e],b,c).slice());Rb.upload(j,Ab(i))}return j}return c?j:Sb.call(j,a,z)},Jb=function(a,b,c){var d,e,f;if($.test(a)&&(a="* "+a),d=Bb(a,!0)){if(e=d.length,c&&c.filter&&e>1)return new Rb;for(f=0;e>f;f++)b=Kb(d[f],f,b,c)}return b},Kb=function(a,b,c,d){var e,f,g="*"==a?[y]:a.match(ab),h=Mb.find,i=Mb.filter;if(g)for(e=0,f=g.length;f>e;e++)c=0==b?0==e?d?(d.find?h:i).call(c,g[0]):Sb.call(new Rb,g[0],z):i.call(c,g[e]):0==e?h.call(c,g[0]):i.call(c,g[e]);return c},Lb=function(a,b,c){var d,e=[];return this.each(function(){for(var c=this;null!=c&&(c=c[a],!c||1!=c.nodeType||(e.push(c),b)););}),d=Mb.comMode(new Rb,Ab(e)),Rb.isUndefined(c)?d:d.filter(c)},Mb={preventDefault:function(a){return function(){a.returnValue=!1}},elemCallback:function(){return 1===this.nodeType},styleNameArrRep:[function(a,b){return"-"+b},function(a,b){return b.toUpperCase()}],isElemProperty:function(a,b){var d,e=b.toLowerCase();return"class"==e?"className":"id"==e?"id":{value:1,checked:1,disabled:1,selected:1,type:1,readonly:1}.hasOwnProperty(e)&&(d=a.tagName,d&&e in z.createElement(d))?e:c},setInpType:function(a,b){var d,e,g=a.tagName;return"INPUT"==g?(d=a.outerHTML.replace(kb,'<input type="'+b+'" '),e=z.createElement("DIV"),e.innerHTML="<div>"+d+"</div>",e=e[p]("input")[0],f.cloneEvent(a,e,1,0,1),Rb(a).stop(),a.parentNode.replaceChild(e,a),e):c},comMode:function(a,b){return a.queryTwo=a.queryOne=!0,Rb.upload(a,b,1),a},filterCallback:function(a,b,c){var d=[];return a.each(function(){var a=b.apply(this,arguments);(c&&null!=a||!c&&a)&&d.push(c?a:this)}),Mb.comMode(new Rb,d)},copyAttr:function(a,b){for(var c,d,e,f=a.attributes,g=(b.attributes,0),h=f.length;h>g;g++)c=f[g],e=c.value,d=c.name,e!=Mb.getAttr(b,d)&&Mb.setAttr(b,d,e)},readScript:function(a){for(var b="SCRIPT",c=0,d=[],e=a.length;e>c;c++)a[c].tagName!=b?a[c][p]&&(d=d.concat(Mb.readScript(a[c][p](b)))):Rb.isNodeCreateBody(a[c])||d.push(a[c]);return d},ieRunScript:function(a){for(var b,c,d=0,e=a.length;e>d;d++){c=a[d].getAttribute("src");try{c&&Rb.isString(c)&&Rb.isNodeCreateBody(a[d])?Rb.createScript({url:c,isDel:!0}):(b=a[d].innerHTML)&&Rb.isNodeCreateBody(a[d])&&Function(b)()}catch(f){console.log(f.message)}}},inChild:function(a,b){if(a==b)return!0;if(1==a.nodeType){if(a=a.childNodes,Rb.inArray(b,a)>-1)return!0;for(var c=Mb.inChild,d=0,e=a.length;e>d;d++)if(c(a[d],b))return!0}},eachChild:function(a,b){for(var c=Mb.inChild,d=0,e=b.length;e>d;d++)if(c(a,b[d]))return!0},cloneFragment:function(a,b,c,d){if(null!=a){c=1===c;for(var e,g,h,i=0,j=[],k=z.createDocumentFragment(),l=Mb.eachChild,m=a.length;m>i;i++)if(e=a[i],Rb.isDocNode(e)){if(c){if(!b&&l(e,d))continue;j.push(h=e)}else h=e.cloneNode(!0),b||f.cloneEvent(e,h,0,1);k.appendChild(h),g||(g=1)}return g&&[k,j]}},getFragment:function(a){var b,c,d,e,f,g,h,i=Rb.isIe();if((i=i&&9>i)&&(a="<span>0</span>"+a),b=z.createElement("div"),b.innerHTML=a,i)b.removeChild(b[p]("span")[0]);else for(e="script",f=b[p](e),g=0,h=f.length;h>g;g++)c=f[g],d=z.createElement(e),Mb.copyAttr(c,d),d.innerHTML=c.innerHTML,c.parentNode.replaceChild(d,c);return Nb(b.childNodes)},setAttr:function(a,b,c){var d=Mb.isElemProperty(a,b);if(d){if("type"==d&&h.att)return Mb.setInpType(a,c);a[d]=c}else a.setAttribute&&a.setAttribute(b,c)},getAttr:function(a,b){var c=Mb.isElemProperty(a,b);return c?""===a[c]?null:a[c]:a.getAttribute&&a.getAttribute(b)},show:function(a){"none"==a.style.display?(a.style.display="","none"==Mb.original(a,"display")&&(a.style.display=Mb.getDisplay(a.tagName))):a.style.display=Mb.getDisplay(a.tagName)},createKey:function(a){return Rb.isTxt(a)||(a=""),a+(""+Math.random()).slice(2)},attrSelect:function(a,b,c){for(var d,e,f=a[1],g=a[2],h=0,i=c.length;i>h;h++)d=c[h],d&&(e=Mb.getAttr(d,f),null!==e&&e!==!1&&(g&&e+""==g||!g)&&b.push(d))},bindHandle:function(a){a=qb(a);for(var b,d,e,g=0,i=Nb(arguments),j=this,k=j.length;k>g;g++)d=j[g],"object"==typeof d&&(e=h.add?c:d,(e||!e&&!b)&&(b=Mb.getEventObject([e].concat(i))),f.writeEvent(d,a,b))},getEventObject:function(a){var b,d=Mb.fnFunc("bindFn",a);return Rb.isObject(d)?b=d:(b={},b[a[1]]=Mb.bindCallback.apply(c,a)),{isOne:a[3],callback:a[2],event:b}},bindCallback:function(a,b,c,d,e,f){return function(g){g=Rb.eventCompatible(g,b);var h=a||this,i=g.target;Mb.runEventApp(h,b,c,d,e,g,i,f&&h)}},mouseFn:function(a){var b={};return b[{mouseenter:"mouseover",mouseleave:"mouseout"}[a.event]]=Mb.bindCallback(a.elem,a.event,Mb.mouse(a.event,a.callback,a.isOne),!1,a.agent,!0),b},mouse:function(a,b,d){return function(e,g){for(var h=e.relatedTarget;h&&h!=this;)try{h=h.parentNode}catch(i){break}return h==this||Rb.isWINDOC(this)?c:(d&&f.removeEvent(g,a,{isOne:!0,callback:b}),b.call(this,e))}},runEventApp:function(a,b,c,d,e,g,h,i){var j,k,l,m,n=!1;if(e){if(h)for(l=0,Rb.upload(j=e[1].filter(e[0]),e[1].find(e[0]).slice()),m=j.length;m>l;l++){k=j[l];try{(k==h||Rb.inArray(h,k[p](h.tagName))>-1)&&(c.call(k,g,i)===!1&&g.preventDefault(),n=!0)}catch(o){console.log(o.message)}}}else c.call(a,g,i)===!1&&g.preventDefault(),n=!0;return n&&d&&f.removeEvent(a,b,{isOne:!0,callback:c}),n},tapFn:function(a){var b,c,d,e=Mb.tapFn;return this instanceof e?(this.XY=[],b=this,c=function(c){b.touch(a,Rb.eventCompatible(c),this)},d={},d["doubleTap"==a.event?"dblclick":"click"]=d.touchstart=d.touchend=c,d):new e(a)},tapFnPrototype:{eveTime:0,touch:function(a,b,d){var e,f,g=a.elem,h=a.event,i=a.callback,j=a.isOne,k=a.agent,l=b.touches,m=!0;if(g||(g=d),l){if(l=l[0])return b.preventDefault(),this.XY[0]=l.pageX,this.XY[1]=l.pageY,c;if(l=b.changedTouches){if(l=l[0],"doubleTap"==h&&(this.eveTime&&(e=Date.now()-this.eveTime,this.eveTime=0),!e||e>800||0>e))return this.eveTime=Date.now(),c;(m=Math.abs(l.pageX-this.XY[0])<30||Math.abs(l.pageY-this.XY[1])<30)&&(f=l.target),this.XY=[]}}else f=b.target;m&&Mb.runEventApp(g,h,i,j,k,b,f)}},setScroll_LT:function(a,b){if(d)d[a]=b;else{var c=z[s],e=z.body;c?(c[a]=b,c[a]?d=c:e&&(e[a]=b,e[a]&&(d=e))):e&&(d=e,e[a]=b)}},getScroll_LT:function(a){var b,c,e;return d?d[a]:(b=z[s],c=z.body,b?(e=b[a])?(d=b,e):(e=c&&c[a],e?(d=c,e):0):c?(d=c,c[a]):0)},setS:function(a,b){return Rb.isUndefined(b)?Mb.getCS.call(this,a,!0):(b=parseFloat(b),Rb.isNumber(b)&&this.each(function(){try{Rb.isWINDOC(this)?Mb.setScroll_LT(a,b):this[a]=b}catch(c){console.log(c.message)}}),this)},winWH:function(a){var b=z[s]||z.body||!1,c="scroll"+a,d="client"+a;return b?Math.max(b[c],b[d]):0},getCS:function(a,b){var d=this[0];if(Rb.isWINDOC(d))return b?Mb.getScroll_LT(a):(z[s]||z.body||[])[a]||0;try{return d[a]}catch(e){return console.log(e.message),c}},getFilter:function(a){var b;return(b=Mb.original(a,"filter"))?(b=fb.exec(b),b=b?.01*parseInt(b[1]):1):b=1,b},getDisplay:function(a){if(bb.test(a))return"block";if(cb.test(a))return"inline";if(db.test(a))return"list-item";if(eb.test(a))return"inline-block";if("TD"==a)return"table-cell";if("TR"==a)return"table-row";var b=z.createElement(a),c=z.body,d=!1;return c&&(b.style.visibility="hidden",c.appendChild(b),d=Mb.original(b,"display"),c.removeChild(b)),d},seachIndex:function(a,b){return a[0]in b?a[0]:a[1]in b?a[1]:!1},isIndex:function(a,b){return a in b},jsonp:function(b){var c,d=qb(b.url),e=qb(b.jsonp),f=qb(b.jsonpCallback),g=b.success,h=b.timeout,i=b.error,j=b.data,k=Rb.isTxt(e),l=Rb.isString(f)?B(f):f=Mb.createKey("MingGe_jsonp");try{if(e=k?B(e):"callback",d=d.replace(T,function(a,b){return c=!0,(k?e:b)+"="+l}),c||(d=Rb.urlRevise(d,e+"="+l)),d=Rb.urlRevise(d,Rb.objToUrl(j)),null==a[f])return Rb.isFunction(b.complete)&&b.complete(),a[f]=function(a){Rb.isFunction(g)&&g(Mb.JsonString.StringToJson(a)||a,"success")},Rb.createScript({url:d,isDel:!0,success:function(){Rb.delVar(a,f)},error:function(){Rb.delVar(a,f),Rb.isFunction(i)&&i(505)},timeout:h}),!0}catch(m){Rb.isFunction(i)&&i(500)}return!1},fnFunc:function(a,b){var d=b[1]&&Rb[a][b[1]];return d&&Rb.isFunction(d)?d.call(Rb[a],{elem:b[0],event:b[1],callback:b[2],isOne:b[3],agent:b[4]}):c},htmlVal:function(a,b){var c=this;if(Rb.isUndefined(b))return c[0]?c[0][a]:null;if(!Rb.isTxt(b))try{b=""+b}catch(d){b=""}return Rb.each.call(c,function(){Mb.isIndex(a,this)&&(this[a]=b)}),this},original:function(b,c){var d=b.currentStyle||a.getComputedStyle(b,null);return d.getPropertyValue?d.getPropertyValue(Rb.styleName(c,!0)):d.getAttribute(c)},find:function(a){var b,c,d,e,f,g=new Rb;if(b=Qb(a))for(d=this,e=d.length,f=0;e>f;f++)(c=d[f])&&Ob.call(g,c,b);return g},filter:function(a){var b,c,d,e,f,g;if(a==y)return this;if(b=new Rb,b.queryOne=this.queryOne,c=vb(a),c&&c[3].Attr)Mb.attrSelect(c[2],b,this);else if(c)for(e=0,f=this,g=f.length;g>e;e++)(d=f[e])&&Rb.selectIndexOf(d[c[1]],c[2],c[3].Tag,c[3].Class)&&b.push(d);return b},animate:function(a,b,d,e){e=qb(e),e=Rb.isString(e)&&gb.test(e)?e:"ease-out";var g,h=Mb.transition+"TimingFunction",i={},j=this,k=function(){g&&(clearInterval(g),g=c);for(var a,b,e=0,i=j.length;i>e;e++)if(Rb.isElem(a=j[e]))try{f.getAnimate(a,[x])&&(b=a.style,b[Mb.transition]=b[h]=null,d.call(a))}catch(k){console.log(k.message)}};return i[Mb.transition]=b+"ms",i[h]=e,this.css(i),A(function(){j.css(a)},5),g=setInterval(Mb.timeCompute(Date.now(),b-1,k),5),this},cmdFun:function(a){a=Rb.trim(a);var b={"外前":"beforeBegin",beforeBegin:"beforeBegin","外后":"afterEnd",afterEnd:"afterEnd","内前":"afterBegin",afterBegin:"afterBegin"};try{if(b.hasOwnProperty(a)&&(b=b[a]))return b}catch(c){}return"beforeEnd"},insertHTML:function(a,b){b=Mb.cmdFun(b),a=qb(a);var c=z.body;return Rb.isTxt(a)&&this.each(function(){var d=Rb.isWINDOC(this)&&c?c:this;try{d.insertAdjacentHTML(b,a)}catch(e){console.log(e.message)}}),this},timeCompute:function(a,b,c){return function(){var d=Date.now()-a;(d>b||0>d)&&c()}},ajax:function(){this.erromsg=this.timeout=this.stop=this.xmlhttp=!1,this.transit=!0},ajaxPrototype:{get:function(a,b,c){return this.simplify(a,"get",!0,b,c,2e4,!0)},post:function(a,b,c){return this.simplify(a,"post",!0,b,c,2e4,!1)},getJSON:function(a,b,c){return this.simplify(a,"get",!0,b,c,2e4,!0,hb.test(a)?"jsonp":"json")},simplify:function(a,b,c,d,e,f,g,h){if(Rb.isFunction(d)){var i=e;e=d,d=i||null}return this.ajax({url:a,type:b,dataType:h,timeout:f,async:c,lock:!0,cache:g,complete:!1,data:d,success:e}),this},Del:function(a,b,c){this.stop!==!0&&(this.delAjaxEve(a),this.delProgress(a),this.timeout&&(clearTimeout(this.timeout),this.timeout=!1),this.erromsg=b,this.transit=!0,Rb.isFunction(c.error)&&c.error(b))},handle:function(a,b){if(4==a.readyState){if(this.stop===!0)return;if(this.transit=!0,this.timeout&&(clearTimeout(this.timeout),this.timeout=!1),200==a.status){this.delProgress(a),this.delAjaxEve(a);var c=qb(a.responseText);Rb.isFunction(b.success)&&("JSON"==b.dataType&&(c=Mb.JsonString.StringToJson(c)||c),b.success(c,"success"))}else this.Del(a,"状态:"+a.status,b)}else 0==a.readyState&&this.Del(a,0,b)},delProgress:function(a){var b="progressFunc",c=a[b];c&&(i(a.upload,"progress",c),Rb.delVar(a,b))},delAjaxEve:function(a){Rb.delVar(a,l)},out:function(a,b){this.delAjaxEve(b),this.delProgress(b),this.transit=!0,this.erromsg=504,this.stop=!0,Rb.isFunction(a.error)&&a.error(504)},ajax:function(b){var d,e,f,g;if(Rb.isString(b.url)){if(this.stop=this.erromsg=!1,b=Rb.extend({type:"GET",timeout:2e4,async:!0},b),b.timeout=Rb.reviseTime(b.timeout,2e4),Rb.isString(b.dataType)&&"JSONP"==(b.dataType=qb(b.dataType.toUpperCase())))return Mb.jsonp(b)||console.log('Operation failed, please check "jsonpCallback" settings'),c;if(!b.lock||this.transit){b.async=!!b.async,this.transit=!1,Rb.isString(b.type)&&(b.type=b.type.toUpperCase()),d=a.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),e=!0,b.data=Rb.objToUrl(b.data)||b.data,Rb.isTxt(b.data)?(b.data=qb(b.data),""===b.data&&(b.data=null)):"[object FormData]"==H.call(b.data)?(Rb.isFunction(b.progress)&&(d.progressFunc=b.progress,h(d.upload,"progress",b.progress)),e=!1,b.type="POST"):b.data=null,f=b.data,g=this,Rb.isFunction(b.complete)&&b.complete(),b.async&&(d[l]=function(){g.handle(d,b)}),b.timeout&&b.async&&(this.timeout=A(function(){g.timeout=!1,g.out(b,d)},b.timeout));try{switch(b.type){case"POST":d.open("POST",b.url,b.async),e&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");break;default:d.open("GET",Rb.urlRevise(b.url,f),b.async),f=null,b.cache===!0||d.setRequestHeader("If-Modified-Since","0")}d.send(f)}catch(i){return this.Del(d,i,b),c}!b.async&&g.handle(d,b)}}}},JsonString:{_json_:null,JsonToString:function(b,c){var d,e;try{return d=a.JSON,!c&&d&&(d=d.stringify)?Rb.isObjArr(b)?d(b):!1:(this._json_=[],this._read_(b,!0),e=xb(this._json_.join("").replace(U,wb[2])),this._json_=null,e)}catch(f){return console.log("Format does not match, conversion fails"),!1}},StringToJson:function(b,c){if(Rb.isString(b)){try{if(null==c&&V[0].test(b.replace(V[1],"@").replace(V[2],"]").replace(V[3],"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):Function("return ("+b+")")();if(c){var d=Function("return ("+b+")")();if(Rb.isObjArr(d))return d}}catch(e){console.log(e.message)}return!1}},_addjson_:function(a,b,c){this._json_.push(a==m?b:c)},_addstring_:function(a){var b=typeof a;return"string"===b?'"'+zb(a)+'"':"number"===b&&!isNaN(a)||null===a||"boolean"===b?a+"":Rb.isObjArr(a)?!1:'""'},_read_:function(a,b){var c,d,e=Rb.isObjArr(a);if(b&&!e)return console.log("Your incoming is not an array or JSON"),this._json_=null;this._addjson_(e,"{","[");for(c in a)a.hasOwnProperty(c)&&(d=this._addstring_(a[c]),d===!1?(this._addjson_(e,'"'+zb(c)+'":',""),this._read_(a[c])):this._addjson_(e,'"'+zb(c)+'":'+d+",",d+","));b=b?"":",",this._addjson_(e,"}"+b,"]"+b)}},style:function(a,b,c){var d,e,f,g,h,i;return c=Rb.isTxt(c)?qb(c):"",sb.test(b)?(d=RegExp(""+b+"\\s?\\((.*)\\)","i"),e=a[Mb.transform],c?b+="("+c+")":b="",f=[Mb.transform,e?d.test(e)?e.replace(d,b):e+" "+b:b]):"opacity"==b?("opacity"==Mb.opacity?(g=parseFloat(c,10),f=["opacity",isNaN(g)?null:g]):(h=a.filter,i="NaN"==parseInt(c,10)+""?"":"alpha(opacity="+100*c+")",f=lb.test(h)?["filter",h.replace(lb,i)]:["filter",i]),f):[b,c]},readyComplete:function(a,b,c){h(z,b,function(){(c||"complete"==z.readyState)&&(i(z,b,arguments.callee),a.call(z,Rb))})},ieReady:function(b){var d,e,f;try{d=a.frameElement,z[s].doScroll("left"),e=!0}catch(g){}return d?Mb.readyComplete(b,k):e||null!=d?(b.call(z,Rb),c):(f=arguments.callee,A(function(){f(b)},13))},ready:function(a){return h.add?Mb.readyComplete(a,"DOMContentLoaded",!0):(Mb.ieReady(a),c)}},Nb=function(a){try{return ob.call(a)}catch(b){for(var c=[],d=0,e=a.length;e>d;d++)c[d]=a[d];return c}},Ob=function(a,b){var d,e,f,g,h,i,j,k=b[1];if(k[3].Attr)return Mb.attrSelect(k[2],this,a[p]("*"));if(b[0]||k[3].Id&&z===a)return d=k[2],e=a[k[0]](d==y?"*":d),e&&Rb.upload(this,k[3].Id?[e]:Nb(e)),c;for(h=a[p]("*"),i=0,j=h.length;j>i;i++)(f=h[i])&&(g=qb(f[k[1]]),g&&Rb.selectIndexOf(g,k[2],k[3].Tag,k[3].Class)&&this.push(f))},Pb=function(a){return null==a?!1:Rb.isArray(a)||a instanceof Rb?a.slice():a.item&&!Rb.isWindow(a)&&Rb.isArray(a=Nb(a))?a:[a]},Qb=function(a){var b=vb(a);return b?[b[3].Tag||F&&b[3].Class,b]:!1},Rb=a.MingGe=function(a){return this instanceof Rb?c:Ib(a)},Sb=function(a,b){var c,d;return Rb.isFunction(a)?(this.push(this.queryOne=z),Mb.ready(a)):Rb.isString(a)&&(c=Qb(a))?Ob.call(this,b,c):a==z||Rb.isElem(a)?(this.queryOne=a,this.push(a)):(d=Pb(a),d&&Mb.comMode(this,d)),this};Rb.bindFn={},Rb.fn=Rb.prototype={version:"你使用的版本是"+j,queryOne:!1,queryTwo:!1,is:function(a){switch(a=qb(a)){case":animate":return!!f.getAnimate(this[0],[x]);default:return!1}},offset:function(){var a=this[0];return a&&a.getBoundingClientRect?a.getBoundingClientRect():[]},append:function(a){return this.createNode(a,"beforeEnd")},prepend:function(a){return this.createNode(a,"afterBegin")},appendTo:function(a){return Rb(a).createNode(this,"beforeEnd"),this},prependTo:function(a){return Rb(a).createNode(this,"afterBegin"),this},before:function(a){return this.createNode(a,"beforeBegin")},after:function(a){return this.createNode(a,"afterEnd")},createNode:function(a,b){var c,d,e,f,g,h,i,j;try{if(Rb.isTxt(a))c=Mb.getFragment(a),d=!0;else if(!(c=Pb(a)))return this}catch(k){return console.log(k.message),this}return e=z.body,b=Mb.cmdFun(b),f=0,g=this,h=Mb.cloneFragment,i=Rb.isIe(),i&&9>i&&(j=Mb.readScript(c)),this.each(function(){var a,i,j,k=Rb.isWINDOC(this)&&e?e:this;if(Rb.isDocNode(k)&&(a=k.parentNode,i=h(c,d,++f,g),i&&(j=i[0],1===f&&(c=i[1])),j&&k.insertBefore&&k.appendChild))switch(b){case"beforeBegin":a&&a.insertBefore(j,k);break;case"afterBegin":k.insertBefore(j,k.firstChild);break;case"afterEnd":a&&a.insertBefore(j,k.nextSibling);break;default:k.appendChild(j)}}),j&&Mb.ieRunScript(j),this},load:function(a,b){if(Rb.isFunction(a))return this.bind("load",a);if(Rb.isString(a)){var c=this;Rb[null==b?"get":"post"](a,b,function(a){c.each(function(){var b=Mb.seachIndex(["value","innerHTML"],this);b&&(this[b]=a)})})}else 0==arguments.length&&ub.call(this,"load");return this},insertHTML:Mb.insertHTML,stop:function(){return Mb.transition?this.each(function(){if(f.getAnimate(this,[x])){f.delAnimate(this);var a=Mb.transition+"TimingFunction",b=this.style;b[Mb.transition]=b[a]=null}}):this},fadeToggle:function(a,b){return this.each(function(){"none"==Mb.original(this,"display")?Rb(this).fadeIn(a,b):Rb(this).fadeOut(a,b)})},clone:function(a){var b=[];return this.each(function(){if(this.cloneNode){var c=this.cloneNode(!0);(a||!h.add)&&(f.cloneEvent(this,c,0,1),a||(f.removeEvent(c,null,{}),Rb(c).find("*").unbind())),b.push(c)}}),Mb.comMode(new Rb,b)},add:function(a){if(Rb.isString(a))var b=Nb(Rb(a));else(b=Pb(a))||(b=[]);return Mb.comMode(new Rb,this.slice().concat(b))},attr:function(a,b){var c=this,d=this[0],e=Rb.isUndefined(b),f=Mb.setAttr;return d?Rb.isObject(a)?(this.each(function(b){var d=this;Rb.each(a,function(a,e){if(Rb.isString(a)&&(Rb.isTxt(e)||Rb.isBoolean(e))){var g=f(d,a,e);g&&(d=c[b]=g)}})}),this):e?Rb.isString(a)?Mb.getAttr(d,a):null:(Rb.isString(a)&&(Rb.isTxt(b)||Rb.isBoolean(b))&&this.each(function(d){var e=f(this,a,b);e&&(c[d]=e)}),this):e?null:this},fadeOut:function(a,b){var c=new Rb;return this.each(function(){1==this.nodeType&&("none"==Mb.original(this,"display")||f.getAnimate(this,[x])||c.push(this))}),Mb.transition?c.animate({opacity:0},a,function(){Rb(this).css({display:"none",opacity:null}),Rb.isFunction(b)&&b.call(this)},"ease"):c.css("display","none"),this},hide:function(){return this.each(function(){1==this.nodeType&&"none"!=Mb.original(this,"display")&&(this.style.display="none")}),this},getFormData:function(b,c){var d,e,f,g,h,i,j,k,l;if(Rb.isString(b)){if(!Rb.isFunction(a.FormData))return null;for(c=parseInt(c),g=new FormData,h=Rb.isNumber(c),i=0,j=[],k=this.length;k>i;i++)if(d=this[i],e=d.files)for(length=e.length,h&&length>c&&(length=c),l=0;length>l;l++)j.push(f=b+"_"+i+"_"+l),g.append(f,e[l]);return{data:g,name:j}}},show:function(){return this.each(function(){1==this.nodeType&&"none"==Mb.original(this,"display")&&Mb.show(this)}),this},fadeIn:function(a,b){var c=new Rb;return this.each(function(){if(1==this.nodeType&&"none"==Mb.original(this,"display")){if(f.getAnimate(this,[x]))return;Mb.transition&&Rb(this).css("opacity",0),c.push(this),Mb.show(this)}}),Mb.transition&&A(function(){c.animate({opacity:1},a,function(){Rb(this).css("opacity",null),Rb.isFunction(b)&&b.call(this)},"ease")},5),this},animate:function(a,b,c,d){var e,g,h,i,j,k,l,m,n,o;if(!Mb.transition)return this.css(a),this;if(!Rb.isObject(a))return this;for(e=typeof b,("number"!==e||isNaN(b))&&("string"===e?(b=qb(b),b=pb.hasOwnProperty(b)?pb[b]:Rb.reviseTime(b,500)):(Rb.isFunction(b)&&(c=b),b=500)),Rb.isFunction(c)||(g=d,d=c,c=Rb.isFunction(g)?g:E),h=function(){var a,b,d=f.getAnimate(this,[w]);Rb.isArray(d)&&d.length>0?(a=new Rb,b=d[0],a.push(this),d.splice(0,1),Mb.animate.apply(a,b)):f.delAnimate(this),c.call(this)},k=0,l=new Rb,m=[a,b,h,d],n=this.length;n>k;k++)i=this[k],i&&1!=i.nodeType||(o=f.getAnimate(i),o&&o[x]?o[w]?o[w].push(m):o[w]=[m]:(f.setAnimate(i,[x,1]),l.push(i),j||(j=!0)));return j&&Mb.animate.apply(l,m),this},empty:function(){return this.each(function(){if(1==this.nodeType){var a=Mb.seachIndex(["value","innerHTML"],this);a&&(this[a]="")}})},remove:function(){var a=[];return this.each(function(){try{this.parentNode.removeChild(this),Rb(this).unbind().stop()}catch(b){a.push(this)}}),Rb.upload(this,a,1),this},on:function(a,b,c,d){return Rb.isFunction(b)&&(d=c,c=b),this.bind(a,c,d,b)},bind:function(a,b,d,e){if(d=d===!0,e=Rb.isString(e)?[e,this]:c,Rb.isString(a)&&Rb.isFunction(b))Mb.bindHandle.call(this,a,b,d,e);else if(Rb.isObject(a))for(var f in a)a.hasOwnProperty(f)&&Rb.isFunction(a[f])&&Mb.bindHandle.call(this,f,a[f],d,e);return this},unbind:function(a,b){var d,e,g,h,i=typeof a;if("function"==i)b=a,a=c;else if(d=typeof b,"string"!=i&&"undefined"!=i||"function"!=d&&"undefined"!=d)return this;for(a=qb(a),g=0,h=this.length;h>g;g++)e=this[g],"object"==typeof e&&f.removeEvent(e,a,{callback:b});return this},one:function(a,b){return this.bind(a,b,!0)},ready:function(a){return Rb.isFunction(a)&&Mb.ready(a),this},children:function(a){var b=Mb.elemCallback;return Rb.isUndefined(a)?this.contents(b):this.contents(a).filter(b)},contents:function(a){var b,c=[];return this.each(function(){c=c.concat(Nb(this.childNodes))}),b=Mb.comMode(new Rb,Ab(c)),Rb.isUndefined(a)?b:b.filter(a)},toString:function(){return"\u005b\u006f\u0062\u006a\u0065\u0063\u0074\u0020\u004d\u0069\u006e\u0067\u0047\u0065\u005d"},parent:function(a){return Lb.call(this,"parentNode",0,a)},siblings:function(a){var b=Lb.call(this,"previousSibling",1,a),c=Lb.call(this,"nextSibling",1,a);return Rb.upload(b,c.slice()),Rb.upload(b,Ab(b),1),b},prev:function(a){return Lb.call(this,"previousSibling",0,a)},prevAll:function(a){return Lb.call(this,"previousSibling",1,a)},next:function(a){return Lb.call(this,"nextSibling",0,a)},nextAll:function(a){return Lb.call(this,"nextSibling",1,a)},addClass:function(a){return Rb.isString(a)&&(a=qb(a),this.each(function(){if(1===this.nodeType){var b=this.className||"";b=Ab(qb(b+" "+a).split(/\s+/)).join(" "),""==b||(this.className=b)}})),this},hasClass:function(a){try{if(Rb.isString(a)){var b,c=0,d=this.length;for(a=qb(a);d>c;c++)if(b=this[c].className,b&&Rb.selectIndexOf(b,a,0,1))return!0}}catch(e){console.log(e.message)}return!1},removeAttr:function(a){return Rb.isString(a)&&(a=qb(a),this.each(function(){var b=Mb.isElemProperty(this,a);b&&(this[b]=""),this.removeAttribute&&this.removeAttribute(a)})),this},removeClass:function(a){return Rb.isString(a)?(a="("+qb(a).replace(W,"|")+")",this.each(function(){if(1===this.nodeType){var b=this.className;if(b)try{this.className=b=qb(b.replace(W," ").replace(RegExp("(^|\\s)"+a+"($|\\s)","g")," "))}catch(c){console.log(c.message)}}})):Rb.isUndefined(a)&&this.each(function(){1===this.nodeType&&this.className&&(this.className="")}),this},find:function(a){return Ib(a,this,{find:!0})},map:function(a){return Rb.isFunction(a)?Mb.filterCallback(this,a,!0):new Rb},filter:function(a){if(Rb.isFunction(a))return Mb.filterCallback(this,a);var b=Ib(a,this,{filter:!0});return b},index:function(a){try{if(Rb.isUndefined(a)){var b=this[0];return Rb.inArray(b,Rb(b.parentNode).children())}return Rb.inArray(a instanceof Rb?a[0]:a,this)}catch(c){return-1}},eq:function(a){var b=new Rb,c=this;return b=null==a?this:(a=0>a?c.length+a:a,c.hasOwnProperty(a)&&b.push(b.queryOne=c[a]),b)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},size:function(){return this.length},each:function(a){if(Rb.isFunction(a))for(var b,c=this.length,d=0;c>d;d++)try{b=this[d],null!=b&&a.call(b,d,c)}catch(e){console.log(e.message)}return this},clientWidth:function(){return Mb.getCS.call(this,"clientWidth")},clientHeight:function(){return Mb.getCS.call(this,"clientHeight")},scrollWidth:function(){return Mb.getCS.call(this,"scrollWidth")},scrollHeight:function(){return Mb.getCS.call(this,"scrollHeight")},scrollLeft:function(a){return Mb.setS.call(this,"scrollLeft",a)},scrollTop:function(a){return Mb.setS.call(this,"scrollTop",a)},hover:function(a,b){return this.bind({mouseenter:a,mouseleave:b})},val:function(a){return Mb.htmlVal.call(this,"value",a)},html:function(a){return Mb.htmlVal.call(this,"innerHTML",a)},text:function(a){return Mb.htmlVal.call(this,Mb.isIndex("textContent",C)?"textContent":"innerText",a)},css:function(a,b){var c,d,e,f,g=0,h={},i=typeof a,j=this,k=j.length;if("string"===i){if(a=Rb.styleName(qb(a)),Rb.isUndefined(b)){if(!(c=j[0])||!Rb.isElem(c))return null;if(sb.test(a)){if(f=c.style[Mb.transform])try{return g=RegExp(""+a+"\\s?\\((.*)\\)","i").exec(f),g&&g[1]}catch(l){console.log(l.message)}return null}return"opacity"!=a&&"filter"!=a||"filter"!=Mb.opacity?Mb.original(c,a):Mb.getFilter(c)}for(g=0;k>g;g++)if(c=j[g],Rb.isElem(c))try{e=c.style,h=Mb.style(e,a,b),e[h[0]]=h[1]}catch(l){console.log(l.message)}}else if(Rb.isObject(a))for(g=0;k>g;g++)if(c=j[g],Rb.isElem(c)){e=c.style;for(d in a)try{0==g&&a.hasOwnProperty(d)&&(h[d]=Mb.style(e,Rb.styleName(d),a[d])),h[d]&&(e[h[d][0]]=h[d][1])}catch(l){console.log(l.message)}}return this},get:function(a){var b=this;return null==a?b.slice():(a=0>a?b.length+a:a,b.hasOwnProperty(a)&&b[a])},push:nb,slice:ob,splice:D.splice,pop:D.pop,indexOf:D.indexOf,shift:D.shift,sort:D.sort,unshift:D.unshift,toLocaleString:D.toLocaleString,join:D.join,reverse:D.reverse,length:0},Rb.fn.extend=Rb.extend=Rb.bindFn.extend=function(){var a,b,c,d,e,f=arguments.length;if(1==f&&H.call(arguments[0])==m){b=!1;for(a in arguments[0])a in this||(this[a]=arguments[0][a],b=!0);return b}if(f>1){for(c=arguments,d=1,e=c[0];f>d;d++)e=rb(e,c[d]);return e}return!1},Mb.ajax.prototype=Mb.ajaxPrototype,Rb.extend({data:function(a){return Rb.isUndefined(a)?f:new e(a)},copyObject:function(a){if(Rb.isObjArr(a)){var b,c=a.constructor();for(b in a)a.hasOwnProperty(b)&&(c[b]=arguments.callee(a[b]));return c}return a},isWindow:function(b){return!!(b==a||null!=b&&b.window==a&&b.document&&b.open)},isWINDOC:function(a){return a==z||Rb.isWindow(a)},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},isObjArr:function(a,b){var c=b||H.call(a);return(Rb.isObject(a,c)||c===n)&&c},listToArray:Nb,trim:qb,parseJSON:function(a,b){return Mb.JsonString.StringToJson(a,b)},toJSON:function(a,b){return Mb.JsonString.JsonToString(a,b)},noConflict:function(){return Rb.delVar(a,b),Rb},isDocNode:function(a){return!!a&&(1===a.nodeType||3===a.nodeType)},isNode:function(a){return!!a&&Rb.isNumber(a.nodeType)},isElem:function(a){return!!a&&1===a.nodeType},isObject:function(a,b){return"object"==typeof a&&(b||H.call(a))==m&&a==m},isPlainObject:function(a,b){return Rb.isObject(a,b)&&a.constructor==Object},isArray:function(a,b){return!!a&&(b||H.call(a))===n},isFunction:function(a,b){return!!a&&"[object Function]"===(b||H.call(a))
},isEmptyObject:function(a){for(var b in a)if(a.hasOwnProperty&&a.hasOwnProperty(b)&&null!=a[b])return!1;return!0},pushArray:function(a,b){return Rb.isArray(a)?(a.push(b),a):[b]},selectIndexOf:function(a,b,c,d){if(a===b)return!0;try{if(c&&(a=a.toLowerCase(),b=b.toLowerCase()),d){var e=" ";return(e+a+e).indexOf(e+b+e)>-1}return a==b}catch(f){return!1}},addCompleteEvent:function(a,b,d,e,f){if(b||d||e){f=Rb.reviseTime(f,1e4);var g="onload"in a?["load","error"]:[k],j=function(){var b=g[0]==k,c=a.readyState;if(!b||b&&("complete"==c||"interactive"==c)){l(!0);try{Rb.isFunction(d)&&d()}catch(e){console.log(e.message)}}},l=function(d){m&&clearTimeout(m)&&(m=c),i(a,g[0],j),g[1]&&i(a,g[1],l);try{d===!0||Rb.isFunction(e)&&e()}catch(f){console.log(f.message)}b&&a.parentNode&&a.parentNode.removeChild(a)},m=A(l,f);h(a,g[0],j),g[1]&&h(a,g[1],l)}},createScript:function(a){var b,d,e,f,g,h,i=z[p]("head").item(0);return i&&Rb.isObject(a)&&Rb.isString(a.url)?(b=a.url,d=a.isDel,e=a.timeout,f=a.success,g=a.error,h=z.createElement("script"),h.src=b,i.appendChild(h),Rb.addCompleteEvent(h,d,f,g,e),[i,h]):c},post:function(a,b,c){return(new Mb.ajax).post(a,b,c)},get:function(a,b,c){return(new Mb.ajax).get(a,b,c)},getJSON:function(a,b,c){return(new Mb.ajax).getJSON(a,b,c)},ajax:function(a){var b=new Mb.ajax;return Rb.isObject(a)&&b.ajax(a),b},styleName:function(a,b){var c=Mb.styleNameArrRep;try{return b?a.replace(X,c[0]):a.replace(Y,c[1])}catch(d){return console.log(d.message),a}},delVar:function(a,b){var d;if(b in a){try{d=delete a[b]}catch(e){}try{d||(a[b]=c)}catch(e){a[b]=E}return!0}return!1},delEmptyObjArr:function(a){var b,d,e,f=Rb.delEmptyObjArr,g=H.call(a),h=Rb.isArray(a,g),i=Rb.isObject(a,g);if(h||i){if(b=!0,d=!1,h)for(e=a.length-1;e>-1;e--)b=!1,null==a[e]?(d=!0,a.splice(e,1)):null==(a[e]=f(a[e]))&&(d=!0);else if(i)for(e in a)a.hasOwnProperty(e)&&(b=!1,null==a[e]?(d=!0,Rb.delVar(a,e)):null==(a[e]=f(a[e]))&&(d=!0));b?a=c:d&&(a=f(a))}return a},isBoolean:function(a){return"boolean"==typeof a},userAgent:tb(navigator.userAgent),isIe:function(){return"msie"===this.userAgent.browser?this.userAgent.version.charAt(0):!1},isTxt:function(a){var b=typeof a;return"string"==b||"number"==b&&!isNaN(a)},isNumber:function(a){return!(null===a||isNaN(a))},isUndefined:function(a){return c===a},reviseTime:function(a,b){return!isNaN(a=parseFloat(a))&&a>0?a:b||0},isString:function(a){return"string"==typeof a},removArray:Ab,isNodeCreateBody:function(a){for(;a;){if("BODY"==a.tagName)return!0;a=a.parentNode}return!1},each:function(a,b){var c,d,e,f=0;if(null==a)return!1;if(Rb.isArray(a)||a.item&&!Rb.isWindow(a)||(c=Rb.isFunction(a)))for(c&&(b=a,a=this),e=a.length;e>f;f++)try{d=a[f],null!=d&&b.call(d,f,d,e)}catch(g){console.log(g.message)}else{if(!Rb.isObject(a)||!Rb.isFunction(b))return!1;for(f in a)if(a.hasOwnProperty(f))try{d=a[f],null!=d&&b.call(d,f,d)}catch(g){console.log(g.message)}}return!0},eventCompatible:function(b,c){if(b||(b=a.event),1==h.att){var d=b.srcElement,e="mouseenter"==c?"fromElement":"toElement";d&&(b.target=d),e&&(b.relatedTarget=b[e]),"returnValue"in b&&(b.preventDefault=Mb.preventDefault(b))}return b},upload:function(a,b,c){c&&a.splice(0,a.length);try{nb.apply(a,b)}catch(d){for(var e=0,f=b.length;f>e;e++)a.push(b[e])}},runEventApp:Mb.runEventApp,setInpType:Mb.setInpType,objToUrl:function(a){var b="";return Rb.each(a,function(a,c){Rb.isTxt(c)&&(b+=B(a)+"="+B(c)+"&")}),b.replace(Z,"")},getMobile:function(){var a=navigator.userAgent,b=a.match(/(Android)\s+([\d.]+)/),c=a.match(/(iPad).*OS\s([\d_]+)/),d=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/),e=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),f=(e&&a.match(/TouchPad/),a.match(/Kindle\/([\d.]+)/)),g=a.match(/Silk\/([\d._]+)/),h=a.match(/(BlackBerry).*Version\/([\d.]+)/);return{webkit:"webkit"==this.userAgent.browser,android:b&&b[2],ipad:c&&c[2].replace(/_/g,"."),iphone:d&&d[2].replace(/_/g,"."),webos:e&&e[2],kindle:f&&f[1],silk:g?g[1]:b&&a.match(/Kindle Fire/),blackberry:h&&h[2]}},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;d>c;c++)if(b[c]===a)return c;return-1},bubbling:ub,urlRevise:function(a,b){return""!==b&&Rb.isTxt(b)&&(a+=jb.test(a)?"&"+b:"?"+b),a},window:{},isHtml5:function(){return!!z.createElement("canvas").getContext},_protected:Mb,html5Attribute:function(a){var b,c,d,e,f;try{for(b=!1,c=Rb.isString(a)?Rb.styleName(a):"transform",a=c.replace(R,a.charAt(0).toUpperCase()),d=C.style,e=[c,"Ms"+a,"Moz"+a,"Webkit"+a,"O"+a],f=0;5>f;f++)if(e[f]in d){b=e[f];break}}catch(g){console.log(g.message)}return b}}),Mb.tapFn.prototype=Mb.tapFnPrototype,Rb.bindFn.extend({tap:Mb.tapFn,doubleTap:Mb.tapFn,mouseenter:Mb.mouseFn,mouseleave:Mb.mouseFn}),e=function(a){var b=H.call(a);(this.isObject=Rb.isObject(a,b))||Rb.isArray(a,b)?this.dataCache=a:(this.isObject=!0,this.dataCache={})},e.prototype={isObject:null,eachCache:function(a,b,c){for(var d=0;c>d;d++)try{a=a[b[d]]}catch(e){break}return a},searchCache:function(){var a=arguments,b=a.length;return this.eachCache(this.dataCache,a,b)},getElem:function(a,b,d){return a&&(Rb.isWindow(a)&&(a=Rb.window),b=a[b])?(d=Rb.isArray(d)?[b].concat(d):[b],this.searchCache.apply(this,d)):c},delElem:function(a,b,d,e){var f,g;return a&&(Rb.isWindow(a)&&(a=Rb.window),f=b,b=a[b])?(d=Rb.isArray(d)?[b].concat(d):[b],g=this.delCache.apply(this,d),e&&this.delEmpty(),(!this.dataCache[b]||Rb.isEmptyObject(this.dataCache[b]))&&Rb.delVar(a,f),g):c},setElem:function(a,b,c){if(a){if(Rb.isWindow(a)&&(a=Rb.window),!a[b]){var d=Mb.createKey();if(this.dataCache[d])return this.setElem.apply(this,arguments);this.dataCache[d]={},a[b]=d}if(Rb.isArray(c))return this.setCache.apply(this,[a[b]].concat(c))}},setCache:function(){var a,b=arguments,c=this.dataCache,d=b.length,e=d-2;if(d>1){for(a=0;e>a;a++)Rb.isObjArr(c[b[a]])||(c[b[a]]={}),c=c[b[a]];return c[b[e]]=b[d-1],!0}},delEmpty:function(){return Rb.delEmptyObjArr(this.dataCache)||(this.dataCache=this.isObject?{}:[])},key:Mb.createKey(),eventHandle:function(a,b,c){var d,e,f,g=!1,j=b.event;if(Rb.isObject(b)&&Rb.isObject(j)&&(c==h&&Rb.isFunction(b.callback)||c==i))for(f in j)j.hasOwnProperty(f)&&(Rb.isArray(j[f])?(d=j[f][1]||a,e=j[f][0]):(d=a,e=j[f]),Rb.isFunction(e)&&c(d,qb(f),e)&&(g=!0));return g},cloneEvent:function(a,b,c,d,e){var f,g,i,j,k,l=v+this.key,m=this.getElem(a,l);if(m){if(e||h.add){for(f in m)if(m.hasOwnProperty(f))for(g=m[f],i=0,k=g.length;k>i;i++)this.writeEvent(b,f,g[i])}else Rb.delVar(b,l),this.setElem(b,l,[Rb.copyObject(m)]);c&&this.removeEvent(a,null,{})}if(d&&a[p])for(m=a[p]("*"),j=b[p]("*"),i=0,k=m.length;k>i;i++)this.cloneEvent(m[i],j[i],c,d)},writeEvent:function(a,b,c){var d,e,f=this.eventHandle(a,c,h);return f&&(d=v+this.key,e=this.getElem(a,d,[b]),Rb.isArray(e)?e.push(c):this.setElem(a,d,[b,[c]])),f},forDelEvent:function(a,b,c,d,e){for(var f=!1,g=e.callback,h=e.isOne,j=0,k=a.length;k>j;j++)if(a[j].callback==g||!g){if(h===!0&&a[j].isOne!==!0)continue;this.eventHandle(b,a[j],i),this.delElem(b,c,[d,j]),f=!0}return f},delAnimate:function(a){return this.delElem(a,u+this.key)},getAnimate:function(a,b){return this.getElem(a,u+this.key,b)},setAnimate:function(a,b){this.setElem(a,u+this.key,b)},removeEvent:function(a,b,c){var d,e,f,g=v+this.key,h=!1;if(Rb.isString(b))d=this.getElem(a,g,[b]),Rb.isArray(d)&&(h=this.forDelEvent(d,a,g,b,c));else if(e=this.getElem(a,g))for(f in e)e.hasOwnProperty(f)&&Rb.isArray(e[f])&&this.forDelEvent(e[f],a,g,f,c)&&(h=!0);return this.delEmpty(),Rb.isWindow(a)&&(a=Rb.window),a[g]&&!this.dataCache[a[g]]&&Rb.delVar(a,g),h},delCache:function(){var a=arguments,b=a.length-1,d=this.eachCache(this.dataCache,a,b);return d&&a[b]in d?b=Rb.delVar(d,a[b]):c}},f=new e({}),Rb.each(["width","height","top","left"],function(a,b){Rb.fn[b]=function(a,b){return function(c){if(null==c){var d=this[0],e="offset"+b;if(!d)return null;if(Rb.isWINDOC(d)){if("Width"==b)return Mb.winWH("Width");if("Height"==b)return Mb.winWH("Height");if(!(d=z.body))return null}return e in d?d[e]:null}return c=parseFloat(c),isNaN(c)?this:this.css(a,c+"px")}}(b,b.replace(R,b.charAt(0).toUpperCase()))}),Rb.fn.off=Rb.fn.unbind,g=function(a){return function(b,c,d){var e="on"+c,f=a?["removeEventListener","detachEvent"]:["addEventListener","attachEvent"];if(b[f[0]])b[f[0]](c,d,!1);else if(b[f[1]])b[f[1]](e,d);else{if(!(e in b))return!1;if(a)try{b[e]=null}catch(g){b[e]=E,console.log(g.message)}else b[e]=d}return!0}},h=Rb.addEvent=g(),i=Rb.delEvent=g(!0),g=c,z.addEventListener?h.add=1:z.attachEvent?h.att=1:h.on=1,Date.now||(Date.now=function(){return(new Date).getTime()}),a.console&&console.log||(a.console={log:function(){}}),Rb.isFunction(a.define)&&define.amd?define(j,function(){return MingGe}):"object"==typeof exports&&(module.exports=MingGe),function(a){var b,d=0,e=Rb.html5Attribute;for(Mb.transition=e("transition"),Mb.opacity=e("opacity")||"filter",Mb.transform=e("transform");b=a[d++];)Rb.fn[b]=function(a){return function(b){return Rb.isUndefined(b)?(ub.call(this,a),this):this.bind(a,b)}}(b);a=d=c}(["blur","focus","focusin","focusout","resize","scroll","unload","click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","change","select","submit","keydown","keypress","keyup","error","touchstart","touchmove","touchend","touchcancel","tap","doubleTap","input","propertychange"]),a[b]=Rb}(window,"$");