text: !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.EmailVerifier=n()}}(function(){var n;return function t(n,e,o){function i(u,c){if(!e[u]){if(!n[u]){var f="function"==typeof require&&require;if(!c&&f)return f(u,!0);if(r)return r(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var a=e[u]={exports:{}};n[u][0].call(a.exports,function(t){var e=n[u][1][t];return i(e?e:t)},a,a.exports,t,n,e,o)}return e[u].exports}for(var r="function"==typeof require&&require,u=0;u<o.length;u++)i(o[u]);return i}({1:[function(n,t,e){t.exports=n("./source/factory")},{"./source/factory":11}],2:[function(n,t,e){function o(){a=!1,c.length?s=c.concat(s):l=-1,s.length&&i()}function i(){if(!a){var n=setTimeout(o);a=!0;for(var t=s.length;t;){for(c=s,s=[];++l<t;)c&&c[l].run();l=-1,t=s.length}c=null,a=!1,clearTimeout(n)}}function r(n,t){this.fun=n,this.array=t}function u(){}var c,f=t.exports={},s=[],a=!1,l=-1;f.nextTick=function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];s.push(new r(n,t)),1!==s.length||a||setTimeout(i,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.binding=function(n){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(n){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],3:[function(n,t,e){(function(e){function o(n,t){n(e.gapi),t&&t(e.gapi)}var i=n("scriptjs"),r=n("promise"),u=[];e.$$onClientLoad=function(){for(var n=0,t=u.length;t>n;n++)o.apply(void 0,u[n])},t.exports=function(n){return new r(function(t,r){e.gapi?o(t,n):(u.push([t,n]),1==u.length&&i("https://apis.google.com/js/client.js?onload=$$onClientLoad"))})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{promise:4,scriptjs:10}],4:[function(n,t,e){"use strict";t.exports=n("./lib/core.js"),n("./lib/done.js"),n("./lib/es6-extensions.js"),n("./lib/node-extensions.js")},{"./lib/core.js":5,"./lib/done.js":6,"./lib/es6-extensions.js":7,"./lib/node-extensions.js":8}],5:[function(n,t,e){"use strict";function o(n){function t(n){return null===f?void a.push(n):void u(function(){var t=f?n.onFulfilled:n.onRejected;if(null===t)return void(f?n.resolve:n.reject)(s);var e;try{e=t(s)}catch(o){return void n.reject(o)}n.resolve(e)})}function e(n){try{if(n===l)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var t=n.then;if("function"==typeof t)return void r(t.bind(n),e,o)}f=!0,s=n,c()}catch(i){o(i)}}function o(n){f=!1,s=n,c()}function c(){for(var n=0,e=a.length;e>n;n++)t(a[n]);a=null}if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");var f=null,s=null,a=[],l=this;this.then=function(n,e){return new l.constructor(function(o,r){t(new i(n,e,o,r))})},r(n,e,o)}function i(n,t,e,o){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.resolve=e,this.reject=o}function r(n,t,e){var o=!1;try{n(function(n){o||(o=!0,t(n))},function(n){o||(o=!0,e(n))})}catch(i){if(o)return;o=!0,e(i)}}var u=n("asap");t.exports=o},{asap:9}],6:[function(n,t,e){"use strict";var o=n("./core.js"),i=n("asap");t.exports=o,o.prototype.done=function(n,t){var e=arguments.length?this.then.apply(this,arguments):this;e.then(null,function(n){i(function(){throw n})})}},{"./core.js":5,asap:9}],7:[function(n,t,e){"use strict";function o(n){this.then=function(t){return"function"!=typeof t?this:new i(function(e,o){r(function(){try{e(t(n))}catch(i){o(i)}})})}}var i=n("./core.js"),r=n("asap");t.exports=i,o.prototype=i.prototype;var u=new o(!0),c=new o(!1),f=new o(null),s=new o(void 0),a=new o(0),l=new o("");i.resolve=function(n){if(n instanceof i)return n;if(null===n)return f;if(void 0===n)return s;if(n===!0)return u;if(n===!1)return c;if(0===n)return a;if(""===n)return l;if("object"==typeof n||"function"==typeof n)try{var t=n.then;if("function"==typeof t)return new i(t.bind(n))}catch(e){return new i(function(n,t){t(e)})}return new o(n)},i.all=function(n){var t=Array.prototype.slice.call(n);return new i(function(n,e){function o(r,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var c=u.then;if("function"==typeof c)return void c.call(u,function(n){o(r,n)},e)}t[r]=u,0===--i&&n(t)}catch(f){e(f)}}if(0===t.length)return n([]);for(var i=t.length,r=0;r<t.length;r++)o(r,t[r])})},i.reject=function(n){return new i(function(t,e){e(n)})},i.race=function(n){return new i(function(t,e){n.forEach(function(n){i.resolve(n).then(t,e)})})},i.prototype["catch"]=function(n){return this.then(null,n)}},{"./core.js":5,asap:9}],8:[function(n,t,e){"use strict";var o=n("./core.js"),i=n("asap");t.exports=o,o.denodeify=function(n,t){return t=t||1/0,function(){var e=this,i=Array.prototype.slice.call(arguments);return new o(function(o,r){for(;i.length&&i.length>t;)i.pop();i.push(function(n,t){n?r(n):o(t)});var u=n.apply(e,i);!u||"object"!=typeof u&&"function"!=typeof u||"function"!=typeof u.then||o(u)})}},o.nodeify=function(n){return function(){var t=Array.prototype.slice.call(arguments),e="function"==typeof t[t.length-1]?t.pop():null,r=this;try{return n.apply(this,arguments).nodeify(e,r)}catch(u){if(null===e||"undefined"==typeof e)return new o(function(n,t){t(u)});i(function(){e.call(r,u)})}}},o.prototype.nodeify=function(n,t){return"function"!=typeof n?this:void this.then(function(e){i(function(){n.call(t,null,e)})},function(e){i(function(){n.call(t,e)})})}},{"./core.js":5,asap:9}],9:[function(n,t,e){(function(n){function e(){for(;i.next;){i=i.next;var n=i.task;i.task=void 0;var t=i.domain;t&&(i.domain=void 0,t.enter());try{n()}catch(o){if(f)throw t&&t.exit(),setTimeout(e,0),t&&t.enter(),o;setTimeout(function(){throw o},0)}t&&t.exit()}u=!1}function o(t){r=r.next={task:t,domain:f&&n.domain,next:null},u||(u=!0,c())}var i={task:void 0,next:null},r=i,u=!1,c=void 0,f=!1;if("undefined"!=typeof n&&n.nextTick)f=!0,c=function(){n.nextTick(e)};else if("function"==typeof setImmediate)c="undefined"!=typeof window?setImmediate.bind(window,e):function(){setImmediate(e)};else if("undefined"!=typeof MessageChannel){var s=new MessageChannel;s.port1.onmessage=e,c=function(){s.port2.postMessage(0)}}else c=function(){setTimeout(e,0)};t.exports=o}).call(this,n("_process"))},{_process:2}],10:[function(t,e,o){!function(t,o){"undefined"!=typeof e&&e.exports?e.exports=o():"function"==typeof n&&n.amd?n(o):this[t]=o()}("$script",function(){function n(n,t){for(var e=0,o=n.length;o>e;++e)if(!t(n[e]))return f;return 1}function t(t,e){n(t,function(n){return!e(n)})}function e(r,u,c){function f(n){return n.call?n():p[n]}function a(){if(!--m){p[g]=1,y&&y();for(var e in h)n(e.split("|"),f)&&!t(h[e],f)&&(h[e]=[])}}r=r[s]?r:[r];var l=u&&u.call,y=l?u:c,g=l?r.join(""):u,m=r.length;return setTimeout(function(){t(r,function n(t,e){return null===t?a():(e||/^https?:\/\//.test(t)||!i||(t=-1===t.indexOf(".js")?i+t+".js":i+t),v[t]?(g&&(d[g]=1),2==v[t]?a():setTimeout(function(){n(t,!0)},0)):(v[t]=1,g&&(d[g]=1),void o(t,a)))})},0),e}function o(n,t){var e,o=u.createElement("script");o.onload=o.onerror=o[l]=function(){o[a]&&!/^c|loade/.test(o[a])||e||(o.onload=o[l]=null,e=1,v[n]=2,t())},o.async=1,o.src=r?n+(-1===n.indexOf("?")?"?":"&")+r:n,c.insertBefore(o,c.lastChild)}var i,r,u=document,c=u.getElementsByTagName("head")[0],f=!1,s="push",a="readyState",l="onreadystatechange",p={},d={},h={},v={};return e.get=o,e.order=function(n,t,o){!function i(r){r=n.shift(),n.length?e(r,i):e(r,t,o)}()},e.path=function(n){i=n},e.urlArgs=function(n){r=n},e.ready=function(o,i,r){o=o[s]?o:[o];var u=[];return!t(o,function(n){p[n]||u[s](n)})&&n(o,function(n){return p[n]})?i():!function(n){h[n]=h[n]||[],h[n][s](i),r&&r(u)}(o.join("|")),e},e.done=function(n){e([null],n)},e})},{}],11:[function(n,t,e){"use strict";t.exports=function(t){return{fetchAPI:function(e,o){var i=!0,r=e.split("@")[1];switch(r){case"gmail.com":case"googlemail.com":n("./google")(t.google||{},function(n){return function(){n.Api=this,"function"==typeof o&&o.call(n)}}(this));break;case"live.com":case"hotmail.com":case"outlook.com":break;default:i=!1}return i},checkEmails:function(n,t,e){for(var o=0;o<arguments.length;o++){var i=arguments[o];switch(typeof i){case"function":t=i;break;case"string":e=i;break;case"object":n=i}}return this.Api?this.Api.init(n,t):this.fetchAPI(e,function(){this.Api.init(n,t)})}}}},{"./google":12}],12:[function(n,t,e){"use strict";t.exports=function(t,e){var o;t=t||{};var i=function(n,t){var e="";n&&(n.subject&&(e+=' subject:"'+n.subject+'"'),n.sender&&(e+=" from:"+n.sender));var i=o.client.gmail.users.messages.list({userId:"me",includeSpamTrash:!0,q:e}),r=!1;i.execute(function(e){var i=e.messages;0==i.length&&t(null,r);for(var u=0;u<i.length&&!r;u++){var c=o.client.gmail.users.messages.get({userId:"me",id:i[u].id});!function(e){c.execute(function(o){r||(r="function"==typeof n.verify?n.verify(o):!0,(r||e==i.length-1)&&t(null,r))})}(u)}})},r={init:function(n,e){o.auth.authorize({client_id:t.client_id,scope:"https://www.googleapis.com/auth/gmail.readonly"},function(t){return t.error?void e(t.error):t?o.client.load("gmail","v1",function(){i(n,e)}):void e(new Error("Authorization Failed!"))})}};n("google-client-api")(function(n){o=n,e.call(r)})}},{"google-client-api":3}]},{},[1])(1)});