芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy.com/wp-content/plugins/wp-maintenance-mode/assets/js/bot.min.js
!function(){var n,t={};function e(){}function r(n){return n}function i(n){return!!n}function u(n){return!n}var o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this;function a(n){return function(){if(null===n)throw new Error("Callback was already called.");n.apply(this,arguments),n=null}}function c(n){return function(){null!==n&&(n.apply(this,arguments),n=null)}}null!=o&&(n=o.async),t.noConflict=function(){return o.async=n,t};var s=Object.prototype.toString,l=Array.isArray||function(n){return"[object Array]"===s.call(n)};function f(n){return l(n)||"number"==typeof n.length&&n.length>=0&&n.length%1==0}function p(n,t){for(var e=-1,r=n.length;++e
3?n(r,i,c,a):(o=u,u=i,n(r,c,a))}}function A(n,t){return t}function C(n,t,r){r=r||e;var i=f(t)?[]:{};n(t,function(n,t,e){n(b(function(n,r){r.length<=1&&(r=r[0]),i[t]=r,e(n)}))},function(n){r(n,i)})}function _(n,t,e,r){var i=[];n(t,function(n,t,r){e(n,function(n,t){i=i.concat(t||[]),r(n)})},function(n){r(n,i)})}function z(n,r,i){if(null==r)r=1;else if(0===r)throw new Error("Concurrency must not be zero");function u(n,r,i,u){if(null!=u&&"function"!=typeof u)throw new Error("task callback must be a function");if(n.started=!0,l(r)||(r=[r]),0===r.length&&n.idle())return t.setImmediate(function(){n.drain()});p(r,function(t){var r={data:t,callback:u||e};i?n.tasks.unshift(r):n.tasks.push(r),n.tasks.length===n.concurrency&&n.saturated()}),t.setImmediate(n.process)}function o(n,t){return function(){c-=1;var e=arguments;p(t,function(n){n.callback.apply(n,e)}),n.tasks.length+c===0&&n.drain(),n.process()}}var c=0,s={tasks:[],concurrency:r,payload:i,saturated:e,empty:e,drain:e,started:!1,paused:!1,push:function(n,t){u(s,n,!1,t)},kill:function(){s.drain=e,s.tasks=[]},unshift:function(n,t){u(s,n,!0,t)},process:function(){if(!s.paused&&c
=i&&r(null)}!function(n,t){f(n)?p(n,t):m(n,t)}(n,function(e,r){t(n[r],r,a(o))})},t.forEachOfSeries=t.eachOfSeries=function(n,r,i){i=c(i||e);var u=g(n=n||[]),o=u();!function e(){var c=!0;if(null===o)return i(null);r(n[o],o,a(function(n){if(n)i(n);else{if(null===(o=u()))return i(null);c?t.nextTick(e):e()}})),c=!1}()},t.forEachOfLimit=t.eachOfLimit=function(n,t,e,r){Q(t)(n,e,r)},t.map=x(E),t.mapSeries=T(E),t.mapLimit=S(E),t.inject=t.foldl=t.reduce=function(n,e,r,i){t.eachOfSeries(n,function(n,t,i){r(e,n,function(n,t){e=t,i(n)})},function(n){i(n||null,e)})},t.foldr=t.reduceRight=function(n,e,r,i){var u=h(n,function(n){return n}).reverse();t.reduce(u,e,r,i)},t.select=t.filter=x(O),t.selectLimit=t.filterLimit=S(O),t.selectSeries=t.filterSeries=T(O),t.reject=x(I),t.rejectLimit=S(I),t.rejectSeries=T(I),t.any=t.some=L(t.eachOf,i,r),t.someLimit=L(t.eachOfLimit,i,r),t.all=t.every=L(t.eachOf,u,u),t.everyLimit=L(t.eachOfLimit,u,u),t.detect=L(t.eachOf,r,A),t.detectSeries=L(t.eachOfSeries,r,A),t.sortBy=function(n,e,r){function i(n,t){var e=n.criteria,r=t.criteria;return e
r?1:0}t.map(n,function(n,t){e(n,function(e,r){e?t(e):t(null,{value:n,criteria:r})})},function(n,t){if(n)return r(n);r(null,h(t.sort(i),function(n){return n.value}))})},t.auto=function(n,r){r=c(r||e);var i=v(n),u=i.length;if(!u)return r(null);var o={},a=[];function s(n){a.unshift(n)}function f(){u--,p(a.slice(0),function(n){n()})}s(function(){u||r(null,o)}),p(i,function(e){for(var i,u=l(n[e])?n[e]:[n[e]],c=b(function(n,i){if(i.length<=1&&(i=i[0]),n){var u={};m(o,function(n,t){u[t]=n}),u[e]=i,r(n,u)}else o[e]=i,t.setImmediate(f)}),h=u.slice(0,u.length-1),y=h.length;y--;){if(!(i=n[h[y]]))throw new Error("Has inexistant dependency");if(l(i)&&d(i,e)>=0)throw new Error("Has cyclic dependencies")}function v(){return n=function(n,t){return n&&o.hasOwnProperty(t)},t=!0,p(h,function(e,r,i){t=n(t,e,r,i)}),t&&!o.hasOwnProperty(e);var n,t}v()?u[u.length-1](c,o):s(function n(){v()&&((t=d(a,n))>=0&&a.splice(t,1),u[u.length-1](c,o));var t})})},t.retry=function(n,e,r){var i=5,u=0,o=[],a={times:i,interval:u};var c=arguments.length;if(c<1||c>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function s(n,e){function r(n,t){return function(r){n(function(n,e){r(!n||t,{err:n,result:e})},e)}}function i(n){return function(t){setTimeout(function(){t(null)},n)}}for(;a.times;){var u=!(a.times-=1);o.push(r(a.task,u)),!u&&a.interval>0&&o.push(i(a.interval))}t.series(o,function(t,e){e=e[e.length-1],(n||a.callback)(e.err,e.result)})}return c<=2&&"function"==typeof n&&(r=e,e=n),"function"!=typeof n&&function(n,t){if("number"==typeof t)n.times=parseInt(t,10)||i;else{if("object"!=typeof t)throw new Error("Unsupported argument type for 'times': "+typeof t);n.times=parseInt(t.times,10)||i,n.interval=parseInt(t.interval,10)||u}}(a,n),a.callback=r,a.task=e,a.callback?s():s},t.waterfall=function(n,r){if(r=c(r||e),!l(n)){var i=new Error("First argument to waterfall must be an array of functions");return r(i)}if(!n.length)return r();!function n(t){return b(function(e,i){if(e)r.apply(null,[e].concat(i));else{var u=t.next();u?i.push(n(u)):i.push(r),M(t).apply(null,i)}})}(t.iterator(n))()},t.parallel=function(n,e){C(t.eachOf,n,e)},t.parallelLimit=function(n,t,e){C(Q(t),n,e)},t.series=function(n,e){C(t.eachOfSeries,n,e)},t.iterator=function(n){return function t(e){function r(){return n.length&&n[e].apply(null,arguments),r.next()}return r.next=function(){return e
>>1);e(t,n[u])>=0?r=u:i=u-1}return r}(n.tasks,a,i)+1,0,a),n.tasks.length===n.concurrency&&n.saturated(),t.setImmediate(n.process)})}(u,n,r,o)},delete u.unshift,u},t.cargo=function(n,t){return z(n,1,t)},t.log=q("log"),t.dir=q("dir"),t.memoize=function(n,e){var r={},i={};e=e||function(n){return n};var u=b(function(u){var o=u.pop(),a=e.apply(null,u);a in r?t.nextTick(function(){o.apply(null,r[a])}):a in i?i[a].push(o):(i[a]=[o],n.apply(null,u.concat([b(function(n){r[a]=n;var t=i[a];delete i[a];for(var e=0,u=t.length;e
=12?"PM":"AM";return(t=(t%=12)||12)+":"+(e=e<10?"0"+e:e)+" "+r}function _phpCastString(n){switch(typeof n){case"boolean":return n?"1":"";case"string":return n;case"number":return isNaN(n)?"NAN":isFinite(n)?n+"":(n<0?"-":"")+"INF";case"undefined":return"";case"object":return Array.isArray(n)?"Array":null!==n?"Object":"";case"function":default:throw new Error("Unsupported value type")}}function strip_tags(n,t){t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var e=/<\/?([a-z0-9]*)\b[^>]*>?/gi,r=/|<\?(?:php)?[\s\S]*?\?>/gi,i=_phpCastString(n);for(i="<"===i.substring(i.length-1)?i.substring(0,i.length-1):i;;){if(i===(i=i.replace(r,"").replace(e,function(n,e){return t.indexOf("<"+e.toLowerCase()+">")>-1?n:""})))return i}}function renderStatement(n){n=strip_tags(n),jQuery(".chat-container").append('
'+getCurrentTime()+'
'+n+"
")}function showTyping(){jQuery(".chat-container").append('
'+botName+'
')}function hideTyping(){jQuery(".typing-wrapper").remove()}var chatWrapper=jQuery(".bot-chat-wrapper");function scrollToBottom(){chatWrapper.animate({scrollTop:600},"slow")}function inputError(n){jQuery(".bot-error p").text(n),jQuery(".bot-error").animate({bottom:0},500).delay(3e3).animate({bottom:"-70px"},500)}function checkInput(n){var t=jQuery(".bot-container input[type=text]").val();return(t=strip_tags(t)).length>2?showResponse(n):inputError(botVars.validationName),!1}function checkEmail(n){var t=jQuery(".bot-container input[type=email]").val(),e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t.toLowerCase()));if(t.length>7&&!0===e){var r="action=wpmm_add_subscriber&"+jQuery(".bot-container input[type=email]").serialize();jQuery.post(wpmm_vars.ajax_url,r,function(n){if(!n.success)return alert(n.data),!1},"json"),showResponse(n)}else inputError(botVars.validationEmail);return!1}function clearChat(){jQuery(".chat-container").empty()}function clearFooter(){jQuery(".choices").empty(),jQuery(".input").empty()}function startConversation(n,t){clearFooter(),clearChat(),conversationPos=n,jQuery.getScript(botVars.uploadsBaseUrl+"data.js",function(n){showStatement(t)})}function showStatement(n){var t,e=conversationData[conversationPos][n];"sideeffect"in e&&jQuery.type("function"===e.sideeffect)&&e.sideeffect(context),"array"===jQuery.type(e.statement)?t=e.statement:"string"===jQuery.type(e.statement)?t=[e.statement]:"function"===jQuery.type(e.statement)&&(t=e.statement(context)),async.eachSeries(t,function(n,t){if(showTyping(),scrollToBottom(),n.length<=50)var e=1800;else e=n.length/3*30*(Math.floor(5*Math.random())+1.2);DEBUG&&(e=0),setTimeout(function(){hideTyping(),renderStatement(n),scrollToBottom(),t()},e)},function(n){if("options"in e){jQuery(".input").hide(),jQuery(".choices").show();var t=e.options;t.length>0&&setTimeout(function(){for(var n=0;n
",{text:r.choice,class:"chat-message user",click:e}).appendTo(".choices")}},750)}else if("input"in e){jQuery(".input").show(),jQuery(".choices").hide();var r=e.input,i=jQuery("
",{submit:checkInput.bind(null,r)}),u=jQuery("
",{class:"chat-message user"}).appendTo(i),o=jQuery("
",{type:"text",placeholder:botVars.typeName,name:r.name,autocomplete:"off",required:!0}).appendTo(u);jQuery("
",{text:botVars.send,click:checkInput.bind(null,r)}).appendTo(u);i.appendTo(".input"),async.nextTick(function(){o.focus()})}else if("email"in e){jQuery(".input").show(),jQuery(".choices").hide();r=e.email,i=jQuery("
",{class:"bot_subscribe_form",submit:checkEmail.bind(null,r)}),u=jQuery("
",{class:"chat-message user"}).appendTo(i),o=jQuery("
",{type:"email",placeholder:botVars.typeEmail,name:r.email,autocomplete:"off"}).appendTo(u),jQuery("
",{text:botVars.send,click:checkEmail.bind(null,r)}).appendTo(u);i.appendTo(".input"),async.nextTick(function(){o.focus()})}scrollToBottom()})}function showResponse(n){var t="";"name"in n?(context[n.name]=jQuery(".bot-container input[type=text]").val(),t=context[n.name]):"email"in n?(context[n.email]=jQuery(".bot-container input[type=email]").val(),t=context[n.email]):t=n.choice,clearFooter(),t=strip_tags(t),jQuery(".chat-container").append('
'+t+"
"),"consequence"in n&&showStatement(n.consequence)}