//v1.6.0
var doui={timestampOld:0,timestampNew:0,threadTimeout:null,threadInterval:null,showToast:function(t){null==t&&(t="亲,我很迷茫啊……"),$("#zdo_loading").remove(),$("#zdo_modal").remove(),$("#zdo_toast").remove(),null!=doui.threadTimeout&&clearTimeout(doui.threadTimeout);var e="";e+='
",$("body").append(e),doui.threadTimeout=setTimeout(function(){$("#zdo_toast").remove()},2500)},showLoading:function(t){if(null==t&&(t="请等待"),$("#zdo_loading").length>0)$("#zdo_loading .zdo_loadcont>div").html(t);else{var e="";e+='',e+='
",e+='
',e+='
',e+='
',e+='
',e+='
',e+='
',e+="
",e+="
",$("body").append(e)}},hideLoading:function(){$("#zdo_loading").remove()},showModal:function(t,e){null==t&&(t="亲,我很迷茫啊……"),null==e&&(e=function(){}),$("#zdo_loading").remove(),$("#zdo_modal").remove(),$("#zdo_toast").remove(),null!=doui.threadTimeout&&clearTimeout(doui.threadTimeout);var i="";i+='",$("body").append(i),$("#zdo_modal .zdo_modaldan").click(function(){var t=!1;1==$(this).attr("name")&&(t=!0),$("#zdo_modal").remove(),e(t)})},showScrollLoading:function(t,e){if(null==t&&(t=function(){}),null==e&&(e=!1),$(".do-scrollLoading").length<=0)doui.showToast("未放入载入框组件");else{'",$(".do-scrollLoading").children().length<=0?($(".do-scrollLoading").children().remove(),$(".do-scrollLoading").append(''),t()):1==e&&t()}},hideScrollLoading:function(t){if($(".do-scrollLoading").children().remove(),t){var e="";e+='",$(".do-scrollLoading").append(e)}},scrollBackTop:function(t,e){if(null==e&&(e=0),"html"==t||"body"==t||t==window){var i=null;cancelAnimationFrame(i),i=requestAnimationFrame(function t(){var n=document.body.scrollTop||document.documentElement.scrollTop,o=Math.ceil(n/10);n>2e3?(scrollTo(0,2e3),i=requestAnimationFrame(t)):n>e?(scrollTo(0,n-o),i=requestAnimationFrame(t)):cancelAnimationFrame(i)})}else{i=null;cancelAnimationFrame(i),i=requestAnimationFrame(function n(){var o=$(t).scrollTop(),r=Math.ceil(o/10);o>2e3?($(t).scrollTop(2e3),i=requestAnimationFrame(n)):o>e?($(t).scrollTop(o-r),i=requestAnimationFrame(n)):cancelAnimationFrame(i)})}},scrollOverBottom:function(t,e,i){null==i&&(i=function(){});var n={clientHeight:0,scrollHeight:0,scrollTop:0};"html"==t||"body"==t||t==window?document.body.onscroll=document.documentElement.onscroll=function(){document.body.clientHeight&&document.documentElement.clientHeight?n.clientHeight=document.body.clientHeightdocument.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight,n.scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight),document.documentElement&&document.documentElement.scrollTop?n.scrollTop=document.documentElement.scrollTop:document.body&&(n.scrollTop=document.body.scrollTop),i(n),n.scrollTop>0&&n.clientHeight+n.scrollTop>=n.scrollHeight-12&&(doui.timestampNew=(new Date).getTime(),doui.timestampNew-doui.timestampOld>800&&(doui.timestampOld=doui.timestampNew,e()))}:$(t).scroll(function(){n.clientHeight=$(t).height(),n.scrollHeight=$(t)[0].scrollHeight,n.scrollTop=$(t).scrollTop(),i(n),n.scrollTop>0&&n.clientHeight+n.scrollTop>=n.scrollHeight-12&&(doui.timestampNew=(new Date).getTime(),doui.timestampNew-doui.timestampOld>800&&(doui.timestampOld=doui.timestampNew,e()))})},systemInfoGet:function(){var t={Android:!1,ios:!1,PC:!0,windowWidth:0,windowHeight:0},e=navigator.userAgent;navigator.appVersion;(e.indexOf("Android")>-1||e.indexOf("Linux")>-1)&&(t.Android=!0),!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)&&(t.ios=!0);for(var i=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=0;n0){t.PC=!1;break}return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)?t.inWX=!0:t.inWX=!1,t.windowWidth=$(window).width(),t.windowHeight=$(window).height(),t},urlParamGet:function(){var t=window.location.search,e=new Object;if(-1!=t.indexOf("?"))for(var i=t.slice(t.indexOf("?")+1).split("&"),n=0;n>2,a=(3&e)<<4|(i=t.charCodeAt(l++))>>4,s=(15&i)<<2|(o=t.charCodeAt(l++))>>6,c=63&o,isNaN(i)?s=c=64:isNaN(o)&&(c=64),d=d+this._keyStr.charAt(r)+this._keyStr.charAt(a)+this._keyStr.charAt(s)+this._keyStr.charAt(c);return d},decode:function(t){var e,i,o,r,a,s,c="",d=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");d>4,i=(15&r)<<4|(a=this._keyStr.indexOf(t.charAt(d++)))>>2,o=(3&a)<<6|(s=this._keyStr.indexOf(t.charAt(d++))),c+=String.fromCharCode(e),64!=a&&(c+=String.fromCharCode(i)),64!=s&&(c+=String.fromCharCode(o));return c=n._utf8_decode(c)},_utf8_encode:function(t){t=t.replace(/rn/g,"n");for(var e="",i=0;i127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e},_utf8_decode:function(t){for(var e,i,n="",o=0,r=0;o191&&e<224?(i=t.charCodeAt(o+1),n+=String.fromCharCode((31&e)<<6|63&i),o+=2):(i=t.charCodeAt(o+1),r=t.charCodeAt(o+2),n+=String.fromCharCode((15&e)<<12|(63&i)<<6|63&r),o+=3);return n}};return"en"==t?i=n.encode(e):"de"==t&&(i=n.decode(e)),i},Aes:function(t,e,i,n){var o,r,a,s,c,d,l,u,h,f,p,m,v=v||(o=Math,r=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),s=(a={}).lib={},c=s.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},d=s.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var r=0;r>>2]>>>24-r%4*8&255;e[n+r>>>2]|=a<<24-(n+r)%4*8}else for(r=0;r>>2]=i[r>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=o.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e,i=[],n=function(t){t=t;var e=987654321,i=4294967295;return function(){var n=((e=36969*(65535&e)+(e>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(o.random()>.5?1:-1)}},r=0;r>>2]>>>24-o%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new d.init(i,e/2)}},h=l.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(r))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new d.init(i,e)}},f=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},p=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,r=this.blockSize,a=n/(4*r),s=(a=t?o.ceil(a):o.max((0|a)-this._minBufferSize,0))*r,c=o.min(4*s,n);if(s){for(var l=0;l>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t){var i=t.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var r=0;r>>6-a%4*2;o[r>>>2]|=(s|c)<<24-r%4*8,r++}return e.create(o,r)}(t,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),v.lib.Cipher||function(t){var e=v,i=e.lib,n=i.Base,o=i.WordArray,r=i.BufferedBlockAlgorithm,a=e.enc,s=(a.Utf8,a.Base64),c=e.algo.EvpKDF,d=i.Cipher=r.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?_:g}return function(e){return{encrypt:function(i,n,o){return t(n).encrypt(e,i,n,o)},decrypt:function(i,n,o){return t(n).decrypt(e,i,n,o)}}}}()}),l=(i.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),u=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),h=l.CBC=function(){var e=u.extend();function i(e,i,n){var o=this._iv;if(o){var r=o;this._iv=t}else r=this._prevBlock;for(var a=0;a>>2];t.sigBytes-=e}},p=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:h,padding:f}),reset:function(){d.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=i.createEncryptor;else{n=i.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,e&&e.words):(this._mode=n.call(i,this,e&&e.words),this._mode.__creator=n)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{e=this._process(!0);t.unpad(e)}return e},blockSize:4}),i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),m=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,i=t.salt;if(i)var n=o.create([1398893684,1701076831]).concat(i).concat(e);else n=e;return n.toString(s)},parse:function(t){var e=s.parse(t),i=e.words;if(1398893684==i[0]&&1701076831==i[1]){var n=o.create(i.slice(2,4));i.splice(0,4),e.sigBytes-=16}return p.create({ciphertext:e,salt:n})}},g=i.SerializableCipher=n.extend({cfg:n.extend({format:m}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var o=t.createEncryptor(i,n),r=o.finalize(e),a=o.cfg;return p.create({ciphertext:r,key:i,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,i,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(i,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),y=(e.kdf={}).OpenSSL={execute:function(t,e,i,n){n||(n=o.random(8));var r=c.create({keySize:e+i}).compute(t,n),a=o.create(r.words.slice(e),4*i);return r.sigBytes=4*e,p.create({key:r,iv:a,salt:n})}},_=i.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(t,e,i,n){var o=(n=this.cfg.extend(n)).kdf.execute(i,t.keySize,t.ivSize);n.iv=o.iv;var r=g.encrypt.call(this,t,e,o.key,n);return r.mixIn(o),r},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=n.kdf.execute(i,t.keySize,t.ivSize,e.salt);return n.iv=o.iv,g.decrypt.call(this,t,e,o.key,n)}})}(),function(){var t=v,e=t.lib.Base,i=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,o=4*n;e.sigBytes>o&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,c=a.words,d=0;d>>2];t.sigBytes-=e}},function(){var t=v,e=t.lib.BlockCipher,i=t.algo,n=[],o=[],r=[],a=[],s=[],c=[],d=[],l=[],u=[],h=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var i=0,f=0;for(e=0;e<256;e++){var p=f^f<<1^f<<2^f<<3^f<<4;p=p>>>8^255&p^99,n[i]=p,o[p]=i;var m=t[i],v=t[m],g=t[v],y=257*t[p]^16843008*p;r[i]=y<<24|y>>>8,a[i]=y<<16|y>>>16,s[i]=y<<8|y>>>24,c[i]=y;y=16843009*g^65537*v^257*m^16843008*i;d[p]=y<<24|y>>>8,l[p]=y<<16|y>>>16,u[p]=y<<8|y>>>24,h[p]=y,i?(i=m^t[t[t[g^m]]],f^=t[t[f]]):i=f=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],p=i.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4,o=4*((this._nRounds=i+6)+1),r=this._keySchedule=[],a=0;a6&&a%i==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=f[a/i|0]<<24),r[a]=r[a-i]^s}for(var c=this._invKeySchedule=[],p=0;p>>24]]^l[n[s>>>16&255]]^u[n[s>>>8&255]]^h[n[255&s]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,r,a,s,c,n)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,d,l,u,h,o);i=t[e+1];t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,n,o,r,a,s){for(var c=this._nRounds,d=t[e]^i[0],l=t[e+1]^i[1],u=t[e+2]^i[2],h=t[e+3]^i[3],f=4,p=1;p>>24]^o[l>>>16&255]^r[u>>>8&255]^a[255&h]^i[f++],v=n[l>>>24]^o[u>>>16&255]^r[h>>>8&255]^a[255&d]^i[f++],g=n[u>>>24]^o[h>>>16&255]^r[d>>>8&255]^a[255&l]^i[f++],y=n[h>>>24]^o[d>>>16&255]^r[l>>>8&255]^a[255&u]^i[f++];d=m,l=v,u=g,h=y}m=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^i[f++],v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^i[f++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^i[f++],y=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^i[f++];t[e]=m,t[e+1]=v,t[e+2]=g,t[e+3]=y},keySize:8});t.AES=e._createHelper(p)}(),function(){var t=v,e=t.lib.WordArray,i=t.enc;i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(r))}return n.join("")},parse:function(t){for(var i=t.length,n=[],o=0;o>>1]|=t.charCodeAt(o)<<16-o%2*16;return e.create(n,2*i)}};function n(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16LE={stringify:function(t){for(var e=t.words,i=t.sigBytes,o=[],r=0;r>>2]>>>16-r%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(t){for(var i=t.length,o=[],r=0;r>>1]|=n(t.charCodeAt(r)<<16-r%2*16);return e.create(o,2*i)}}}(),null==i&&(i="1852371921094325");var g=v.enc.Utf8.parse(i),y={mode:v.mode.ECB,padding:v.pad.Pkcs7};if(null!=n&&n.length>0&&(y={iv:v.enc.Utf8.parse(n),mode:v.mode.CBC,padding:v.pad.Pkcs7}),"en"==t){var _=v.enc.Utf8.parse(e);return v.AES.encrypt(_,g,y).toString()}if("de"==t){var w=v.AES.decrypt(e,g,y);return v.enc.Utf8.stringify(w).toString()}},strMD5Get:function(t){function e(t,e){return t<>>32-e}function i(t,e){var i,n,o,r,a;return o=2147483648&t,r=2147483648&e,a=(1073741823&t)+(1073741823&e),(i=1073741824&t)&(n=1073741824&e)?2147483648^a^o^r:i|n?1073741824&a?3221225472^a^o^r:1073741824^a^o^r:a^o^r}function n(t,n,o,r,a,s,c){var d;return i(e(t=i(t,i(i((d=n)&o|~d&r,a),c)),s),n)}function o(t,n,o,r,a,s,c){var d;return i(e(t=i(t,i(i(n&(d=r)|o&~d,a),c)),s),n)}function r(t,n,o,r,a,s,c){return i(e(t=i(t,i(i(n^o^r,a),c)),s),n)}function a(t,n,o,r,a,s,c){return i(e(t=i(t,i(i(o^(n|~r),a),c)),s),n)}function s(t){var e,i="",n="";for(e=0;e<=3;e++)i+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return i}return function(t){var e,c,d,l,u,h,f,p,m,v=Array();for(v=function(t){for(var e,i=t.length,n=i+8,o=16*((n-n%64)/64+1),r=Array(o-1),a=0,s=0;s>>29,r}(t=function(t){for(var e="",i=0;i127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t)),h=1732584193,f=4023233417,p=2562383102,m=271733878,e=0;e