Greasy Fork

anti-redirect (typescript)

反重定向

目前为 2016-11-17 提交的版本。查看 最新版本

// ==UserScript==
// @name              anti-redirect (typescript)
// @author            axetroy
// @collaborator      axetroy
// @description       反重定向
// @version           2016.11.17.3159
// @grant             GM_xmlhttpRequest
// @include           *www.baidu.com*
// @include           *www.google.*
// @include           *www.so.com*
// @include           *www.zhihu.com*
// @include           *daily.zhihu.com*
// @include           *weibo.com*
// @include           *twitter.com*
// @connect           *
// @compatible        chrome  完美运行
// @compatible        firefox  完美运行
// @supportURL        http://www.burningall.com
// @run-at            document-start
// @contributionURL   [email protected]|alipay.com
// @namespace         https://greasyfork.org/zh-CN/users/3400-axetroy
// @license           The MIT License (MIT); http://opensource.org/licenses/MIT
// ==/UserScript==

// Github源码:https://github.com/axetroy/anti-redirect


!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,e,r){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=84)}([function(t,e,r){"use strict";var n=r(2),i=r(80),o=r(11),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(14),o=r(8),s=r(17),u=r(20),c=function(t){function e(r,n,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!r){this.destination=s.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new a(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new a(this,r,n,i)}}return n(e,t),e.prototype[u.$$rxSubscriber]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e}(o.Subscription);e.Subscriber=c;var a=function(t){function e(e,r,n,o){t.call(this),this._parent=e;var s,u=this;i.isFunction(r)?s=r:r&&(u=r,s=r.next,n=r.error,o=r.complete,i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this)),this._context=u,this._next=s,this._error=n,this._complete=o}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parent;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parent;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parent;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},e}(c)},function(t,e,r){"use strict";(function(t){if(e.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!e.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(e,r(83))},function(t,e,r){"use strict";var n=r(0),i=r(15),o=i.CONFIG.debug,s=function(){function t(t,e,r,n){void 0===n&&(n="a"),this.domainTester=t,this.urlTester=e,this.matcher=r,this.ASelector=n,this.match=!1,this.DEBUG=o,this.logCount=0,this.match=t.test(document.domain)}return t.prototype.handlerOneEle=function(t){var e=this;return n.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)}).do(function(t){var r=e.matcher.exec(t.href);if(r&&r.length&&r[1]){var n=decodeURIComponent(r[1]);n&&(t.href=n,o&&(t.style.backgroundColor="green"))}})},t.prototype.scroll=function(){var t=this;return n.Observable.fromEvent(document,"scroll").debounceTime(500).flatMap(function(){return n.Observable.from([].slice.call(document.querySelectorAll(t.ASelector)))}).subscribe(function(e){t.handlerOneEle(e).subscribe(function(){})})},t.prototype.mouseover=function(){return n.Observable.fromEvent(document,"mousemove").debounce(function(){return n.Observable.timer(100)}).map(function(t){var e=t.target;return"A"===e.nodeName?e:"A"===e.parentNode.nodeName?e.parentNode:e}).filter(function(t){return"A"===t.nodeName})},t.prototype.log=function(t){this.logCount<1&&(console.log("%c Anti-Redirect %c Copyright © 2015-%s %s",'font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:64px;color:#00bbee;-webkit-text-fill-color:#00bbee;-webkit-text-stroke: 1px #00bbee;',"font-size:12px;color:#999999;",(new Date).getFullYear(),"\n"+(t||"")),this.logCount++)},t.prototype.bootstrap=function(){var t=this;this.match&&n.Observable.fromEvent(document,"DOMContentLoaded").delay(300).subscribe(function(){t.scroll(),t.mouseover().subscribe(function(e){t.handlerOneEle(e)}),t.log()})},t}();e.RedirectOnUrl=s},function(t,e){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(1),o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i.Subscriber);e.OuterSubscriber=o},function(t,e,r){"use strict";var n=r(74),i=r(75);e.async=new i.AsyncScheduler(n.AsyncAction)},function(t,e,r){"use strict";function n(t,e,r,n){var f=new a.InnerSubscriber(t,r,n);if(f.closed)return null;if(e instanceof u.Observable)return e._isScalar?(f.next(e.value),f.complete(),null):e.subscribe(f);if(o.isArray(e)){for(var h=0,p=e.length;h<p&&!f.closed;h++)f.next(e[h]);f.closed||f.complete()}else{if(s.isPromise(e))return e.then(function(t){f.closed||(f.next(t),f.complete())},function(t){return f.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),f;if("function"==typeof e[c.$$iterator])for(var d=e[c.$$iterator]();;){var b=d.next();if(b.done){f.complete();break}if(f.next(b.value),f.closed)break}else if("function"==typeof e[l.$$observable]){var v=e[l.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new a.InnerSubscriber(t,r,n));f.error(new Error("invalid observable"))}else f.error(new TypeError("unknown type returned"))}return null}var i=r(2),o=r(4),s=r(21),u=r(0),c=r(10),a=r(48),l=r(11);e.subscribeToResult=n},function(t,e,r){"use strict";var n=r(4),i=r(79),o=r(14),s=r(23),u=r(12),c=r(77),a=function(){function t(t){this.closed=!1,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){this.closed=!0;var r=this,a=r._unsubscribe,l=r._subscriptions;if(this._subscriptions=null,o.isFunction(a)){var f=s.tryCatch(a).call(this);f===u.errorObject&&(e=!0,(t=t||[]).push(u.errorObject.e))}if(n.isArray(l))for(var h=-1,p=l.length;++h<p;){var d=l[h];if(i.isObject(d)){var f=s.tryCatch(d.unsubscribe).call(d);if(f===u.errorObject){e=!0,t=t||[];var b=u.errorObject.e;b instanceof c.UnsubscriptionError?t=t.concat(b.errors):t.push(b)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)break;this.closed?r.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(r);break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return r},t.prototype.remove=function(e){if(null!=e&&e!==this&&e!==t.EMPTY){var r=this._subscriptions;if(r){var n=r.indexOf(e);n!==-1&&r.splice(n,1)}}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();e.Subscription=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;return r?r.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(i.Observable);e.EmptyObservable=o},function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var i=Object.getOwnPropertyNames(n.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var i=r(2);e.symbolIteratorPonyfill=n,e.$$iterator=n(i.root)},function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}var i=r(2);e.getSymbolObservable=n,e.$$observable=n(i.root)},function(t,e){"use strict";e.errorObject={e:{}}},function(t,e){"use strict";function r(t){return t instanceof Date&&!isNaN(+t)}e.isDate=r},function(t,e){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},function(t,e){"use strict";var r={debug:!1};e.CONFIG=r},function(t,e,r){"use strict";var n=r(0),i=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=i},function(t,e){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(19),s=r(9),u=r(22),c=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];u.isScheduler(n)?t.pop():n=null;var i=t.length;return i>1?new e(t,n):1===i?new o.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,i=t.subscriber;return r>=n?void i.complete():(i.next(e[r]),void(i.closed||(t.index=r+1,this.schedule(t))))},e.prototype._subscribe=function(t){var r=0,n=this.array,i=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:r,count:i,subscriber:t});for(var s=0;s<i&&!t.closed;s++)t.next(n[s]);t.complete()},e}(i.Observable);e.ArrayObservable=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;return e?void n.complete():(n.next(r),void(n.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;return n?n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t}):(t.next(r),void(t.closed||t.complete()))},e}(i.Observable);e.ScalarObservable=o},function(t,e,r){"use strict";var n=r(2),i=n.root.Symbol;e.$$rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber"},function(t,e){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},function(t,e){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},function(t,e,r){"use strict";function n(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,n}var o,s=r(12);e.tryCatch=i},function(t,e,r){"use strict";var n=r(82),i=r(0),o=function(){function t(t){this.options=t}return t.prototype.request=function(t){var e=n.extend({},this.options,t),r=e.onreadystatechange,o=e.onerror,s=e.onabort,u=e.ontimeout;return i.Observable.create(function(t){e.onreadystatechange=function(e){n.isFunction(r)&&r.call(this,e),4===e.readyState&&(e.status>=200&&e.status<400&&e.finalUrl?t.next(e):t.error(e),t.complete())},e.onerror=function(e){n.isFunction(o)&&o.call(this,e),t.error(e),t.complete()},e.onabort=function(e){n.isFunction(s)&&s.call(this,e),t.error(e),t.complete()},e.ontimeout=function(e){n.isFunction(u)&&u.call(this,e),t.error(e),t.complete()},GM_xmlhttpRequest(n.extend({},e))})},t.prototype.get=function(t,e){var r=n.extend(e||{},{url:t,method:"GET"});return this.request(r)},t.prototype.post=function(t,e,r){return this.request(n.extend(r||{},{url:t,method:"POST",data:e}))},t.prototype.head=function(t,e){return this.request(n.extend(e||{},{url:t,method:"HEAD"}))},t}(),s=2e3;e.timeout=s;var u=new o({timeout:s});e.http=u},function(t,e,r){"use strict";var n=r(0),i=r(57);n.Observable.forkJoin=i.forkJoin},function(t,e,r){"use strict";var n=r(0),i=r(58);n.Observable.from=i.from},function(t,e,r){"use strict";var n=r(0),i=r(59);n.Observable.fromEvent=i.fromEvent},function(t,e,r){"use strict";var n=r(0),i=r(60);n.Observable.of=i.of},function(t,e,r){"use strict";var n=r(0),i=r(61);n.Observable.timer=i.timer},function(t,e,r){"use strict";var n=r(0),i=r(62);n.Observable.prototype.debounce=i.debounce},function(t,e,r){"use strict";var n=r(0),i=r(63);n.Observable.prototype.debounceTime=i.debounceTime},function(t,e,r){"use strict";var n=r(0),i=r(64);n.Observable.prototype.delay=i.delay},function(t,e,r){"use strict";var n=r(0),i=r(65);n.Observable.prototype.do=i._do,n.Observable.prototype._do=i._do},function(t,e,r){"use strict";var n=r(0),i=r(66);n.Observable.prototype.filter=i.filter},function(t,e,r){"use strict";var n=r(0),i=r(67);n.Observable.prototype.map=i.map},function(t,e,r){"use strict";var n=r(0),i=r(68);n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},function(t,e,r){"use strict";var n=r(0),i=r(70);n.Observable.prototype.retry=i.retry},function(t,e,r){"use strict";var n=r(0),i=r(71);n.Observable.prototype.throttle=i.throttle},function(t,e,r){"use strict";var n=r(0),i=r(72);n.Observable.prototype.timeout=i.timeout},function(t,e,r){"use strict";function n(t){return t.innerText||t.textContent}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(0),s=r(24),u=r(81),c=function(){function t(t){this.queryStr=t,this.object={},this.object=this.toObject(t.replace(/^\?+/,""))}return t.prototype.toObject=function(t){var e={};return t.split("&").forEach(function(t){var r=t.split("=")||[],n=r[0]||"";e[n]=r[1]||""}),e},t.prototype.toString=function(){var t=[];for(var e in this.object)if(this.object.hasOwnProperty(e)){var r=this.object[e];t.push(e+"="+r)}return"?"+t.join("&")},t}(),a=function(t){function e(e,r,n,i){return void 0===i&&(i="a"),t.call(this,e,r,n,i)||this}return i(e,t),e.prototype.handlerAll=function(){var t=this;if(/www\.baidu\.com\/s/.test(window.top.location.href)){var e=new c(window.top.location.search),r=e.object.pn||0;e.object.tn="baidulocal",e.object.timestamp=(new Date).getTime(),e.object.rn=50;var n=location.protocol.replace(/:/,"")+"://"+(location.host+location.pathname+e);o.Observable.forkJoin(s.http.get(n),s.http.get(n.replace(/pn=(\d+)/,"pn="+(r+10)))).retry(2).timeout(s.timeout).subscribe(function(e){e&&e.length&&e.forEach(function(e){return t.handlerAllOne(e)})})}},e.prototype.handlerAllOne=function(t){var e=this,r=t.responseText.replace(/(src=[^>]*|link=[^>])/g,""),i=document.createElement("html");i.innerHTML=r,o.Observable.of(i.querySelectorAll(".f>a")).map(function(t){return[].slice.call(t).map(function(t){var e=[].slice.call(document.querySelectorAll(".t>a")).find(function(e){return n(e)===n(t)});return e?{local:e,remote:t}:void 0}).filter(function(t){return!!t})}).subscribe(function(t){t.filter(function(t){return!e.urlTester.test(t.remote.href)}).forEach(function(t){t.local.href=t.remote.href,t.local.setAttribute(e.status.done,"1"),e.DEBUG&&(t.local.style.backgroundColor="red")})})},e}(u.RedirectOnRequest);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new a(/www\.baidu\.com/,/www\.baidu\.com\/link\?url=/,null,"#content_left a")},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(15),s=o.CONFIG.debug,u=r(3),c=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOneEle=function(t){return i.Observable.of(t).do(function(t){t.getAttribute("onmousedown")&&(t.removeAttribute("onmousedown"),s&&(t.style.backgroundColor="green")),t.getAttribute("data-href")&&(t.href=t.getAttribute("data-href"),s&&(t.style.backgroundColor="green"))})},e}(u.RedirectOnUrl);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new c(/www\.google\./,null,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(3),o=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e}(i.RedirectOnUrl);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new o(/www\.so\.com/,/so\.com\/link\?url=/,/so\.com\/link\?url=(.*)/)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(3),s=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOneEle=function(t){var e=this;return i.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)&&/^https?:\/\//.test(t.title)}).do(function(t){var r=decodeURIComponent(t.title);r&&(t.href=r,e.DEBUG&&(t.style.backgroundColor="green"))})},e}(o.RedirectOnUrl);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new s(/twitter\.com/,/t\.co\/\w+/,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(3),s=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOneEle=function(t){var e=this;return i.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)&&/^https?:\/\//.test(t.title)}).do(function(t){var r=decodeURIComponent(t.title);r&&(t.href=r,e.DEBUG&&(t.style.backgroundColor="green"))})},e}(o.RedirectOnUrl);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new s(/weibo\.com/,/t\.cn\/\w+/,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(3),o=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e}(i.RedirectOnUrl);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new o(/daily\.zhihu\.com/,/zhihu\.com\/\?target=/,/zhihu\.com\/\?target=(.*)/)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(3),o=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e}(i.RedirectOnUrl);Object.defineProperty(e,"__esModule",{value:!0}),e.default=new o(/www\.zhihu\.com/,/zhihu\.com\/\?target=/,/zhihu\.com\/\?target=(.*)/)},function(t,e,r){/*!
 * in-view 0.6.0 - Get notified when a DOM element enters or exits the viewport.
 * Copyright (c) 2016 Cam Wiegert <[email protected]> - https://camwiegert.github.io/in-view
 * License: MIT
 */
!function(e,r){t.exports=r()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(2),o=n(i);t.exports=o.default},function(t,e){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(9),o=n(i),s=r(3),u=n(s),c=r(4),a=function(){if("undefined"!=typeof window){var t=100,e=["scroll","resize","load"],r={history:[]},n={offset:{},threshold:0,test:c.inViewport},i=(0,o.default)(function(){r.history.forEach(function(t){r[t].check()})},t);e.forEach(function(t){return addEventListener(t,i)}),window.MutationObserver&&new MutationObserver(i).observe(document.body,{attributes:!0,childList:!0,subtree:!0});var s=function(t){if("string"==typeof t){var e=[].slice.call(document.querySelectorAll(t));return r.history.indexOf(t)>-1?r[t].elements=e:(r[t]=(0,u.default)(e,n),r.history.push(t)),r[t]}};return s.offset=function(t){if(void 0===t)return n.offset;var e=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(e(t)?function(e){return n.offset[e]=t}:function(r){return e(t[r])?n.offset[r]=t[r]:null}),n.offset},s.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?n.threshold=t:n.threshold},s.test=function(t){return"function"==typeof t?n.test=t:n.test},s.is=function(t){return n.test(t,n)},s.offset(0),s}};e.default=a()},function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function(){function t(e,n){r(this,t),this.options=n,this.elements=e,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return n(t,[{key:"check",value:function(){var t=this;return this.elements.forEach(function(e){var r=t.options.test(e,t.options),n=t.current.indexOf(e),i=n>-1,o=r&&!i,s=!r&&i;o&&(t.current.push(e),t.emit("enter",e)),s&&(t.current.splice(n,1),t.emit("exit",e))}),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var r=this.handlers[t].length;--r>-1;)this.handlers[t][r](e);return this}}]),t}();e.default=function(t,e){return new i(t,e)}},function(t,e){"use strict";function r(t,e){var r=t.getBoundingClientRect(),n=r.top,i=r.right,o=r.bottom,s=r.left,u=r.width,c=r.height,a={t:o,r:window.innerWidth-s,b:window.innerHeight-n,l:i},l={x:e.threshold*u,y:e.threshold*c};return a.t>e.offset.top+l.y&&a.r>e.offset.right+l.x&&a.b>e.offset.bottom+l.y&&a.l>e.offset.left+l.x}Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=r},function(t,e){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,function(){return this}())},function(t,e,r){var n=r(5),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e,r){function n(t,e,r){function n(e){var r=m,n=w;return m=w=void 0,S=e,_=t.apply(n,r)}function l(t){return S=t,x=setTimeout(p,e),j?n(t):_}function f(t){var r=t-g,n=t-S,i=e-r;return E?a(i,O-n):i}function h(t){var r=t-g,n=t-S;return void 0===g||r>=e||r<0||E&&n>=O}function p(){var t=o();return h(t)?d(t):void(x=setTimeout(p,f(t)))}function d(t){return x=void 0,T&&m?n(t):(m=w=void 0,_)}function b(){void 0!==x&&clearTimeout(x),S=0,m=g=w=x=void 0}function v(){return void 0===x?_:d(o())}function y(){var t=o(),r=h(t);if(m=arguments,w=this,g=t,r){if(void 0===x)return l(g);if(E)return x=setTimeout(p,e),n(g)}return void 0===x&&(x=setTimeout(p,e)),_}var m,w,O,_,x,g,S=0,j=!1,E=!1,T=!0;if("function"!=typeof t)throw new TypeError(u);return e=s(e)||0,i(r)&&(j=!!r.leading,E="maxWait"in r,O=E?c(s(r.maxWait)||0,e):O,T="trailing"in r?!!r.trailing:T),y.cancel=b,y.flush=v,y}var i=r(1),o=r(8),s=r(10),u="Expected a function",c=Math.max,a=Math.min;t.exports=n},function(t,e,r){var n=r(6),i=function(){return n.Date.now()};t.exports=i},function(t,e,r){function n(t,e,r){var n=!0,u=!0;if("function"!=typeof t)throw new TypeError(s);return o(r)&&(n="leading"in r?!!r.leading:n,u="trailing"in r?!!r.trailing:u),i(t,e,{leading:n,maxWait:e,trailing:u})}var i=r(7),o=r(1),s="Expected a function";t.exports=n},function(t,e){function r(t){return t}t.exports=r}])})},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(1),o=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);e.InnerSubscriber=o},function(t,e){"use strict";var r=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(19),s=r(9),u=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new o.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,i=t.subscriber;if(!i.closed){if(r>=n)return void i.complete();i.next(e[r]),t.index=r+1,this.schedule(t)}},e.prototype._subscribe=function(t){var r=0,n=this,i=n.arrayLike,o=n.scheduler,s=i.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:i,index:r,length:s,subscriber:t});for(var u=0;u<s&&!t.closed;u++)t.next(i[u]);t.complete()},e}(i.Observable);e.ArrayLikeObservable=u},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(0),o=r(9),s=r(4),u=r(7),c=r(5),a=function(t){function e(e,r){t.call(this),this.sources=e,this.resultSelector=r}return n(e,t),e.create=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];if(null===t||0===arguments.length)return new o.EmptyObservable;var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,n)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(i.Observable);e.ForkJoinObservable=a;var l=function(t){function e(e,r,n){t.call(this,e),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var i=r.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=r[o],c=u.subscribeToResult(this,s,null,o);c&&(c.outerIndex=o,this.add(c))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.values[r]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,r=this,n=r.haveValues,i=r.resultSelector,o=r.values,s=o.length;if(!t._hasValue)return void e.complete();if(this.completed++,this.completed===s){if(n===s){var u=i?i.apply(this,o):o;e.next(u)}e.complete()}},e}(c.OuterSubscriber)},function(t,e,r){"use strict";function n(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===t.toString()}function s(t){return!!t&&"[object HTMLCollection]"===t.toString()}function u(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var c=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=r(0),l=r(23),f=r(14),h=r(12),p=r(8),d=function(t){function e(e,r,n,i){t.call(this),this.sourceObj=e,this.eventName=r,this.selector=n,this.options=i}return c(e,t),e.create=function(t,r,n,i){return f.isFunction(n)&&(i=n,n=void 0),new e(t,r,i,n)},e.setupSubscription=function(t,r,c,a,l){var f;if(o(t)||s(t))for(var h=0,d=t.length;h<d;h++)e.setupSubscription(t[h],r,c,a,l);else if(u(t)){var b=t;t.addEventListener(r,c,l),f=function(){return b.removeEventListener(r,c)}}else if(i(t)){var v=t;t.on(r,c),f=function(){return v.off(r,c)}}else{if(!n(t))throw new TypeError("Invalid event target");var y=t;t.addListener(r,c),f=function(){return y.removeListener(r,c)}}a.add(new p.Subscription(f))},e.prototype._subscribe=function(t){var r=this.sourceObj,n=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=l.tryCatch(o).apply(void 0,e);n===h.errorObject?t.error(h.errorObject.e):t.next(n)}:function(e){return t.next(e)};e.setupSubscription(r,n,s,t,i)},e}(a.Observable);e.FromEventObservable=d},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(4),o=r(21),s=r(55),u=r(54),c=r(18),a=r(50),l=r(10),f=r(0),h=r(69),p=r(11),d=function(t){return t&&"number"==typeof t.length},b=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[p.$$observable])return t instanceof f.Observable&&!r?t:new e(t,r);if(i.isArray(t))return new c.ArrayObservable(t,r);if(o.isPromise(t))return new s.PromiseObservable(t,r);if("function"==typeof t[l.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,r);if(d(t))return new a.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[p.$$observable]().subscribe(t):e[p.$$observable]().subscribe(new h.ObserveOnSubscriber(t,r,0))},e}(f.Observable);e.FromObservable=b},function(t,e,r){"use strict";function n(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new p(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function o(t){return"number"==typeof t&&c.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var u=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},c=r(2),a=r(0),l=r(10),f=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return u(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,i=t.subscriber;if(r)return void i.error(t.error);var o=n.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof n.return&&n.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var r=0,n=this,i=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:r,iterator:i,subscriber:t});for(;;){var s=i.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof i.return&&i.return();break}}},e}(a.Observable);e.IteratorObservable=f;var h=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),p=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=i(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function i(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=r(2),u=r(0),c=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return o(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(o.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(u.Observable);e.PromiseObservable=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(78),o=r(0),s=r(6),u=r(22),c=r(13),a=function(t){function e(e,r,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(r)?this.period=Number(r)<1&&1||Number(r):u.isScheduler(r)&&(n=r),u.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=c.isDate(e)?+e-this.scheduler.now():e}return n(e,t),e.create=function(t,r,n){return void 0===t&&(t=0),new e(t,r,n)},e.dispatch=function(t){var e=t.index,r=t.period,n=t.subscriber,i=this;if(n.next(e),!n.closed){if(r===-1)return n.complete();t.index=e+1,i.schedule(t,r)}},e.prototype._subscribe=function(t){var r=0,n=this,i=n.period,o=n.dueTime,s=n.scheduler;return s.schedule(e.dispatch,o,{index:r,period:i,subscriber:t})},e}(o.Observable);e.TimerObservable=a},function(t,e,r){"use strict";var n=r(51);e.forkJoin=n.ForkJoinObservable.create},function(t,e,r){"use strict";var n=r(53);e.from=n.FromObservable.create},function(t,e,r){"use strict";var n=r(52);e.fromEvent=n.FromEventObservable.create},function(t,e,r){"use strict";var n=r(18);e.of=n.ArrayObservable.of},function(t,e,r){"use strict";var n=r(56);e.timer=n.TimerObservable.create},function(t,e,r){"use strict";function n(t){return this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(5),s=r(7);e.debounce=n;var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e._subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,r){t.call(this,e),this.durationSelector=r,this.hasValue=!1,this.durationSubscription=null}return i(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var r=this.durationSubscription;this.value=t,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),r=s.subscribeToResult(this,e),r.closed||this.add(this.durationSubscription=r)},e.prototype.notifyNext=function(t,e,r,n,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,r=this.durationSubscription;r&&(this.durationSubscription=null,r.unsubscribe(),this.remove(r)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.OuterSubscriber)},function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=u.async),this.lift(new c(t,e))}function i(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=r(1),u=r(6);e.debounceTime=n;var c=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e._subscribe(new a(t,this.dueTime,this.scheduler))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(i,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},function(t,e,r){"use strict";function n(t,e){void 0===e&&(e=o.async);var r=s.isDate(t),n=r?+t-e.now():Math.abs(t);return this.lift(new a(n,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(6),s=r(13),u=r(1),c=r(16);e.delay=n;var a=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e._subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return i(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var e=this.scheduler,r=new f(e.now()+this.delay,t);this.queue.push(r),this.active===!1&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(c.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(c.Notification.createComplete())},e}(u.Subscriber),f=function(){function t(t,e){this.time=t,this.notification=e}return t}()},function(t,e,r){"use strict";function n(t,e,r){return this.lift(new s(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(1);e._do=n;var s=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e._subscribe(new u(t,this.nextOrObserver,this.error,this.complete))},t}(),u=function(t){function e(e,r,n,i){t.call(this,e);var s=new o.Subscriber(r,n,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return i(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(1);e.filter=n;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e._subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(1);e.map=n;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e._subscribe(new u(t,this.project,this.thisArg))},t}();e.MapOperator=s;var u=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new u(t,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(7),s=r(5);e.mergeMap=n;var u=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e._subscribe(new c(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=u;var c=function(t){function e(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(o.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,i){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);e.MergeMapSubscriber=c},function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=0),this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(1),s=r(16);e.observeOn=n;var u=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e._subscribe(new c(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=u;var c=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r)},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);e.ObserveOnSubscriber=c;var a=function(){function t(t,e){this.notification=t,this.destination=e}return t}();e.ObserveOnMessage=a},function(t,e,r){"use strict";function n(t){return void 0===t&&(t=-1),this.lift(new s(t,this))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(1);e.retry=n;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e._subscribe(new u(t,this.count,this.source))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.count=r,this.source=n}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this,n=r.source,i=r.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,n.subscribe(this)}},e}(o.Subscriber)},function(t,e,r){"use strict";function n(t){return this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(5),s=r(7);e.throttle=n;var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e._subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,r){t.call(this,e),this.destination=e,this.durationSelector=r}return i(e,t),e.prototype._next=function(t){this.throttled||this.tryDurationSelector(t)},e.prototype.tryDurationSelector=function(t){var e=null;try{e=this.durationSelector(t)}catch(t){return void this.destination.error(t)}this.emitAndThrottle(t,e)},e.prototype.emitAndThrottle=function(t,e){this.add(this.throttled=s.subscribeToResult(this,e)),this.destination.next(t)},e.prototype._unsubscribe=function(){var t=this.throttled;t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype.notifyNext=function(t,e,r,n,i){this._unsubscribe()},e.prototype.notifyComplete=function(){this._unsubscribe()},e}(o.OuterSubscriber)},function(t,e,r){"use strict";function n(t,e,r){void 0===e&&(e=null),void 0===r&&(r=o.async);var n=s.isDate(t),i=n?+t-r.now():Math.abs(t);return this.lift(new a(i,n,e,r))}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=r(6),s=r(13),u=r(1),c=r(76);e.timeout=n;var a=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.errorToSend=r,this.scheduler=n}return t.prototype.call=function(t,e){return e._subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.errorToSend,this.scheduler))},t}(),l=function(t){function e(e,r,n,i,o){t.call(this,e),this.absoluteTimeout=r,this.waitFor=n,this.errorToSend=i,this.scheduler=o,this.index=0,this._previousIndex=0,this._hasCompleted=!1,this.scheduleTimeout()}return i(e,t),Object.defineProperty(e.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),e.dispatchTimeout=function(t){var e=t.subscriber,r=t.index;e.hasCompleted||e.previousIndex!==r||e.notifyTimeout()},e.prototype.scheduleTimeout=function(){var t=this.index;this.scheduler.schedule(e.dispatchTimeout,this.waitFor,{subscriber:this,index:t}),this.index++,this._previousIndex=t},e.prototype._next=function(t){this.destination.next(t),this.absoluteTimeout||this.scheduleTimeout()},e.prototype._error=function(t){this.destination.error(t),this._hasCompleted=!0},e.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},e.prototype.notifyTimeout=function(){this.error(this.errorToSend||new c.TimeoutError)},e}(u.Subscriber)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(8),o=function(t){function e(e,r){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i.Subscription);e.Action=o},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(2),o=r(73),s=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.work=r,this.pending=!1}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),i.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&this.delay===r?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);return r?r:void(this.pending===!1&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null)))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,n!==-1&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(o.Action);e.AsyncAction=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=r(49),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var r;this.active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}},e}(i.Scheduler);e.AsyncScheduler=o},function(t,e){"use strict";var r=this&&this.__extends||function(t,e){function r(){this.constructor=t;
}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},n=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.TimeoutError=n},function(t,e){"use strict";var r=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},n=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return r(e,t),e}(Error);e.UnsubscriptionError=n},function(t,e,r){"use strict";function n(t){return!i.isArray(t)&&t-parseFloat(t)+1>=0}var i=r(4);e.isNumeric=n},function(t,e){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},function(t,e,r){"use strict";function n(t,e,r){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||r?new i.Subscriber(t,e,r):new i.Subscriber(s.empty)}var i=r(1),o=r(20),s=r(17);e.toSubscriber=n},function(t,e,r){"use strict";var n,i=r(0),o=r(24),s=r(15),u=s.CONFIG.debug,c={ing:"redirect-ing",done:"redirect-done"},a=function(){function t(t,e,r,n){void 0===n&&(n="a"),this.domainTester=t,this.urlTester=e,this.matcher=r,this.ASelector=n,this.DEBUG=u,this.status=c,this.logCount=0,this.match=t.test(document.domain)}return t.prototype.handlerOneEle=function(t){var e=this;if(this.urlTester.test(t.href)&&!t.getAttribute(c.ing)&&!t.getAttribute(c.done)){var r=t.href.replace(/^https?/,"https")+("&timestamp="+(new Date).getTime());t.style.cursor="progress",t.setAttribute(c.ing,"1"),o.http.get(r).retry(2).timeout(o.timeout).map(function(t){if(e.urlTester.test(t.finalUrl)){if(!t.response||/<\/noscript>$/.test(t.response.trim()))throw t;var r=t.response.match(/URL=\'?https?:\/\/[^'"]+/).join("").match(/https?:\/\/[^'"]+/)[0];if(!r||!/^https?/.test(r)||e.urlTester.test(r))throw t;t.finalUrl=r}return t}).subscribe(function(e){t.href=e.finalUrl,t.removeAttribute(c.ing),t.setAttribute(c.done,"1"),u&&(t.style.backgroundColor="green")},function(e){t.style.cursor=null,t.removeAttribute(c.ing)},function(){t.style.cursor=null,t.removeAttribute(c.ing)})}},t.prototype.handlerOneEleOneByOne=function(){var t=this;i.Observable.from([].slice.call(document.querySelectorAll("#content_left a"))).subscribe(function(e){n&&n.is(e)&&t.handlerOneEle(e)})},t.prototype.handlerAll=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e]},t.prototype.handlerAllOne=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e]},t.prototype.scroll=function(){return i.Observable.fromEvent(window,"scroll").debounce(function(){return i.Observable.timer(200)})},t.prototype.mouseover=function(){return i.Observable.fromEvent(document,"mousemove").throttle(function(){return i.Observable.timer(100)}).map(function(t){var e=t.toElement;return"A"===e.nodeName?e:"A"===e.parentNode.nodeName?e.parentNode:e}).filter(function(t){return"A"===t.nodeName})},t.prototype.log=function(t){this.logCount<1&&(console.log("%c Anti-Redirect %c Copyright © 2015-%s %s",'font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:64px;color:#00bbee;-webkit-text-fill-color:#00bbee;-webkit-text-stroke: 1px #00bbee;',"font-size:12px;color:#999999;",(new Date).getFullYear(),"\n"+(t||"")),this.logCount++)},t.prototype.bootstrap=function(){var t=this;this.match&&i.Observable.fromEvent(document,"DOMContentLoaded").debounce(function(){return i.Observable.timer(200)}).delay(200).do(function(){n=r(47),n("#content_left a").on("enter",function(e){t.handlerOneEle(e)})}).do(function(){t.handlerAll()}).flatMap(function(){return i.Observable.create(function(t){new MutationObserver(function(e){void 0===e&&(e=[]),e.length&&t.next()}).observe(document.body,{childList:!0})}).debounce(function(){return i.Observable.timer(100)})}).subscribe(function(){t.scroll().subscribe(function(){t.handlerOneEleOneByOne()}),t.mouseover().subscribe(function(e){t.handlerOneEle(e)}),t.handlerAll(),t.handlerOneEleOneByOne(),t.log()})},t}();e.RedirectOnRequest=a},function(t,e,r){var n,i;(function(){function r(t){function e(e,r,n,i,o,s){for(;o>=0&&o<s;o+=t){var u=i?i[o]:o;n=r(n,e[u],u,e)}return n}return function(r,n,i,o){n=g(n,o,4);var s=!N(r)&&x.keys(r),u=(s||r).length,c=t>0?0:u-1;return arguments.length<3&&(i=r[s?s[c]:c],c+=t),e(r,n,i,s,c,u)}}function o(t){return function(e,r,n){r=S(r,n);for(var i=k(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(r(e[o],o,e))return o;return-1}}function s(t,e,r){return function(n,i,o){var s=0,u=k(n);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+u,s):u=o>=0?Math.min(o+1,u):o+u+1;else if(r&&o&&u)return o=r(n,i),n[o]===i?o:-1;if(i!==i)return o=e(d.call(n,s,u),x.isNaN),o>=0?o+s:-1;for(o=t>0?s:u-1;o>=0&&o<u;o+=t)if(n[o]===i)return o;return-1}}function u(t,e){var r=F.length,n=t.constructor,i=x.isFunction(n)&&n.prototype||f,o="constructor";for(x.has(t,o)&&!x.contains(e,o)&&e.push(o);r--;)o=F[r],o in t&&t[o]!==i[o]&&!x.contains(e,o)&&e.push(o)}var c=this,a=c._,l=Array.prototype,f=Object.prototype,h=Function.prototype,p=l.push,d=l.slice,b=f.toString,v=f.hasOwnProperty,y=Array.isArray,m=Object.keys,w=h.bind,O=Object.create,_=function(){},x=function(t){return t instanceof x?t:this instanceof x?void(this._wrapped=t):new x(t)};"undefined"!=typeof t&&t.exports&&(e=t.exports=x),e._=x,x.VERSION="1.8.3";var g=function(t,e,r){if(void 0===e)return t;switch(null==r?3:r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)};case 4:return function(r,n,i,o){return t.call(e,r,n,i,o)}}return function(){return t.apply(e,arguments)}},S=function(t,e,r){return null==t?x.identity:x.isFunction(t)?g(t,e,r):x.isObject(t)?x.matcher(t):x.property(t)};x.iteratee=function(t,e){return S(t,e,1/0)};var j=function(t,e){return function(r){var n=arguments.length;if(n<2||null==r)return r;for(var i=1;i<n;i++)for(var o=arguments[i],s=t(o),u=s.length,c=0;c<u;c++){var a=s[c];e&&void 0!==r[a]||(r[a]=o[a])}return r}},E=function(t){if(!x.isObject(t))return{};if(O)return O(t);_.prototype=t;var e=new _;return _.prototype=null,e},T=function(t){return function(e){return null==e?void 0:e[t]}},A=Math.pow(2,53)-1,k=T("length"),N=function(t){var e=k(t);return"number"==typeof e&&e>=0&&e<=A};x.each=x.forEach=function(t,e,r){e=g(e,r);var n,i;if(N(t))for(n=0,i=t.length;n<i;n++)e(t[n],n,t);else{var o=x.keys(t);for(n=0,i=o.length;n<i;n++)e(t[o[n]],o[n],t)}return t},x.map=x.collect=function(t,e,r){e=S(e,r);for(var n=!N(t)&&x.keys(t),i=(n||t).length,o=Array(i),s=0;s<i;s++){var u=n?n[s]:s;o[s]=e(t[u],u,t)}return o},x.reduce=x.foldl=x.inject=r(1),x.reduceRight=x.foldr=r(-1),x.find=x.detect=function(t,e,r){var n;if(n=N(t)?x.findIndex(t,e,r):x.findKey(t,e,r),void 0!==n&&n!==-1)return t[n]},x.filter=x.select=function(t,e,r){var n=[];return e=S(e,r),x.each(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n},x.reject=function(t,e,r){return x.filter(t,x.negate(S(e)),r)},x.every=x.all=function(t,e,r){e=S(e,r);for(var n=!N(t)&&x.keys(t),i=(n||t).length,o=0;o<i;o++){var s=n?n[o]:o;if(!e(t[s],s,t))return!1}return!0},x.some=x.any=function(t,e,r){e=S(e,r);for(var n=!N(t)&&x.keys(t),i=(n||t).length,o=0;o<i;o++){var s=n?n[o]:o;if(e(t[s],s,t))return!0}return!1},x.contains=x.includes=x.include=function(t,e,r,n){return N(t)||(t=x.values(t)),("number"!=typeof r||n)&&(r=0),x.indexOf(t,e,r)>=0},x.invoke=function(t,e){var r=d.call(arguments,2),n=x.isFunction(e);return x.map(t,function(t){var i=n?e:t[e];return null==i?i:i.apply(t,r)})},x.pluck=function(t,e){return x.map(t,x.property(e))},x.where=function(t,e){return x.filter(t,x.matcher(e))},x.findWhere=function(t,e){return x.find(t,x.matcher(e))},x.max=function(t,e,r){var n,i,o=-(1/0),s=-(1/0);if(null==e&&null!=t){t=N(t)?t:x.values(t);for(var u=0,c=t.length;u<c;u++)n=t[u],n>o&&(o=n)}else e=S(e,r),x.each(t,function(t,r,n){i=e(t,r,n),(i>s||i===-(1/0)&&o===-(1/0))&&(o=t,s=i)});return o},x.min=function(t,e,r){var n,i,o=1/0,s=1/0;if(null==e&&null!=t){t=N(t)?t:x.values(t);for(var u=0,c=t.length;u<c;u++)n=t[u],n<o&&(o=n)}else e=S(e,r),x.each(t,function(t,r,n){i=e(t,r,n),(i<s||i===1/0&&o===1/0)&&(o=t,s=i)});return o},x.shuffle=function(t){for(var e,r=N(t)?t:x.values(t),n=r.length,i=Array(n),o=0;o<n;o++)e=x.random(0,o),e!==o&&(i[o]=i[e]),i[e]=r[o];return i},x.sample=function(t,e,r){return null==e||r?(N(t)||(t=x.values(t)),t[x.random(t.length-1)]):x.shuffle(t).slice(0,Math.max(0,e))},x.sortBy=function(t,e,r){return e=S(e,r),x.pluck(x.map(t,function(t,r,n){return{value:t,index:r,criteria:e(t,r,n)}}).sort(function(t,e){var r=t.criteria,n=e.criteria;if(r!==n){if(r>n||void 0===r)return 1;if(r<n||void 0===n)return-1}return t.index-e.index}),"value")};var P=function(t){return function(e,r,n){var i={};return r=S(r,n),x.each(e,function(n,o){var s=r(n,o,e);t(i,n,s)}),i}};x.groupBy=P(function(t,e,r){x.has(t,r)?t[r].push(e):t[r]=[e]}),x.indexBy=P(function(t,e,r){t[r]=e}),x.countBy=P(function(t,e,r){x.has(t,r)?t[r]++:t[r]=1}),x.toArray=function(t){return t?x.isArray(t)?d.call(t):N(t)?x.map(t,x.identity):x.values(t):[]},x.size=function(t){return null==t?0:N(t)?t.length:x.keys(t).length},x.partition=function(t,e,r){e=S(e,r);var n=[],i=[];return x.each(t,function(t,r,o){(e(t,r,o)?n:i).push(t)}),[n,i]},x.first=x.head=x.take=function(t,e,r){if(null!=t)return null==e||r?t[0]:x.initial(t,t.length-e)},x.initial=function(t,e,r){return d.call(t,0,Math.max(0,t.length-(null==e||r?1:e)))},x.last=function(t,e,r){if(null!=t)return null==e||r?t[t.length-1]:x.rest(t,Math.max(0,t.length-e))},x.rest=x.tail=x.drop=function(t,e,r){return d.call(t,null==e||r?1:e)},x.compact=function(t){return x.filter(t,x.identity)};var M=function(t,e,r,n){for(var i=[],o=0,s=n||0,u=k(t);s<u;s++){var c=t[s];if(N(c)&&(x.isArray(c)||x.isArguments(c))){e||(c=M(c,e,r));var a=0,l=c.length;for(i.length+=l;a<l;)i[o++]=c[a++]}else r||(i[o++]=c)}return i};x.flatten=function(t,e){return M(t,e,!1)},x.without=function(t){return x.difference(t,d.call(arguments,1))},x.uniq=x.unique=function(t,e,r,n){x.isBoolean(e)||(n=r,r=e,e=!1),null!=r&&(r=S(r,n));for(var i=[],o=[],s=0,u=k(t);s<u;s++){var c=t[s],a=r?r(c,s,t):c;e?(s&&o===a||i.push(c),o=a):r?x.contains(o,a)||(o.push(a),i.push(c)):x.contains(i,c)||i.push(c)}return i},x.union=function(){return x.uniq(M(arguments,!0,!0))},x.intersection=function(t){for(var e=[],r=arguments.length,n=0,i=k(t);n<i;n++){var o=t[n];if(!x.contains(e,o)){for(var s=1;s<r&&x.contains(arguments[s],o);s++);s===r&&e.push(o)}}return e},x.difference=function(t){var e=M(arguments,!0,!0,1);return x.filter(t,function(t){return!x.contains(e,t)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(t){for(var e=t&&x.max(t,k).length||0,r=Array(e),n=0;n<e;n++)r[n]=x.pluck(t,n);return r},x.object=function(t,e){for(var r={},n=0,i=k(t);n<i;n++)e?r[t[n]]=e[n]:r[t[n][0]]=t[n][1];return r},x.findIndex=o(1),x.findLastIndex=o(-1),x.sortedIndex=function(t,e,r,n){r=S(r,n,1);for(var i=r(e),o=0,s=k(t);o<s;){var u=Math.floor((o+s)/2);r(t[u])<i?o=u+1:s=u}return o},x.indexOf=s(1,x.findIndex,x.sortedIndex),x.lastIndexOf=s(-1,x.findLastIndex),x.range=function(t,e,r){null==e&&(e=t||0,t=0),r=r||1;for(var n=Math.max(Math.ceil((e-t)/r),0),i=Array(n),o=0;o<n;o++,t+=r)i[o]=t;return i};var I=function(t,e,r,n,i){if(!(n instanceof e))return t.apply(r,i);var o=E(t.prototype),s=t.apply(o,i);return x.isObject(s)?s:o};x.bind=function(t,e){if(w&&t.bind===w)return w.apply(t,d.call(arguments,1));if(!x.isFunction(t))throw new TypeError("Bind must be called on a function");var r=d.call(arguments,2),n=function(){return I(t,n,e,this,r.concat(d.call(arguments)))};return n},x.partial=function(t){var e=d.call(arguments,1),r=function(){for(var n=0,i=e.length,o=Array(i),s=0;s<i;s++)o[s]=e[s]===x?arguments[n++]:e[s];for(;n<arguments.length;)o.push(arguments[n++]);return I(t,r,this,this,o)};return r},x.bindAll=function(t){var e,r,n=arguments.length;if(n<=1)throw new Error("bindAll must be passed function names");for(e=1;e<n;e++)r=arguments[e],t[r]=x.bind(t[r],t);return t},x.memoize=function(t,e){var r=function(n){var i=r.cache,o=""+(e?e.apply(this,arguments):n);return x.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return r.cache={},r},x.delay=function(t,e){var r=d.call(arguments,2);return setTimeout(function(){return t.apply(null,r)},e)},x.defer=x.partial(x.delay,x,1),x.throttle=function(t,e,r){var n,i,o,s=null,u=0;r||(r={});var c=function(){u=r.leading===!1?0:x.now(),s=null,o=t.apply(n,i),s||(n=i=null)};return function(){var a=x.now();u||r.leading!==!1||(u=a);var l=e-(a-u);return n=this,i=arguments,l<=0||l>e?(s&&(clearTimeout(s),s=null),u=a,o=t.apply(n,i),s||(n=i=null)):s||r.trailing===!1||(s=setTimeout(c,l)),o}},x.debounce=function(t,e,r){var n,i,o,s,u,c=function(){var a=x.now()-s;a<e&&a>=0?n=setTimeout(c,e-a):(n=null,r||(u=t.apply(o,i),n||(o=i=null)))};return function(){o=this,i=arguments,s=x.now();var a=r&&!n;return n||(n=setTimeout(c,e)),a&&(u=t.apply(o,i),o=i=null),u}},x.wrap=function(t,e){return x.partial(e,t)},x.negate=function(t){return function(){return!t.apply(this,arguments)}},x.compose=function(){var t=arguments,e=t.length-1;return function(){for(var r=e,n=t[e].apply(this,arguments);r--;)n=t[r].call(this,n);return n}},x.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},x.before=function(t,e){var r;return function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},x.once=x.partial(x.before,2);var C=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(t){if(!x.isObject(t))return[];if(m)return m(t);var e=[];for(var r in t)x.has(t,r)&&e.push(r);return C&&u(t,e),e},x.allKeys=function(t){if(!x.isObject(t))return[];var e=[];for(var r in t)e.push(r);return C&&u(t,e),e},x.values=function(t){for(var e=x.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=t[e[i]];return n},x.mapObject=function(t,e,r){e=S(e,r);for(var n,i=x.keys(t),o=i.length,s={},u=0;u<o;u++)n=i[u],s[n]=e(t[n],n,t);return s},x.pairs=function(t){for(var e=x.keys(t),r=e.length,n=Array(r),i=0;i<r;i++)n[i]=[e[i],t[e[i]]];return n},x.invert=function(t){for(var e={},r=x.keys(t),n=0,i=r.length;n<i;n++)e[t[r[n]]]=r[n];return e},x.functions=x.methods=function(t){var e=[];for(var r in t)x.isFunction(t[r])&&e.push(r);return e.sort()},x.extend=j(x.allKeys),x.extendOwn=x.assign=j(x.keys),x.findKey=function(t,e,r){e=S(e,r);for(var n,i=x.keys(t),o=0,s=i.length;o<s;o++)if(n=i[o],e(t[n],n,t))return n},x.pick=function(t,e,r){var n,i,o={},s=t;if(null==s)return o;x.isFunction(e)?(i=x.allKeys(s),n=g(e,r)):(i=M(arguments,!1,!1,1),n=function(t,e,r){return e in r},s=Object(s));for(var u=0,c=i.length;u<c;u++){var a=i[u],l=s[a];n(l,a,s)&&(o[a]=l)}return o},x.omit=function(t,e,r){if(x.isFunction(e))e=x.negate(e);else{var n=x.map(M(arguments,!1,!1,1),String);e=function(t,e){return!x.contains(n,e)}}return x.pick(t,e,r)},x.defaults=j(x.allKeys,!0),x.create=function(t,e){var r=E(t);return e&&x.extendOwn(r,e),r},x.clone=function(t){return x.isObject(t)?x.isArray(t)?t.slice():x.extend({},t):t},x.tap=function(t,e){return e(t),t},x.isMatch=function(t,e){var r=x.keys(e),n=r.length;if(null==t)return!n;for(var i=Object(t),o=0;o<n;o++){var s=r[o];if(e[s]!==i[s]||!(s in i))return!1}return!0};var V=function(t,e,r,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof x&&(t=t._wrapped),e instanceof x&&(e=e._wrapped);var i=b.call(t);if(i!==b.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,u=e.constructor;if(s!==u&&!(x.isFunction(s)&&s instanceof s&&x.isFunction(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}r=r||[],n=n||[];for(var c=r.length;c--;)if(r[c]===t)return n[c]===e;if(r.push(t),n.push(e),o){if(c=t.length,c!==e.length)return!1;for(;c--;)if(!V(t[c],e[c],r,n))return!1}else{var a,l=x.keys(t);if(c=l.length,x.keys(e).length!==c)return!1;for(;c--;)if(a=l[c],!x.has(e,a)||!V(t[a],e[a],r,n))return!1}return r.pop(),n.pop(),!0};x.isEqual=function(t,e){return V(t,e)},x.isEmpty=function(t){return null==t||(N(t)&&(x.isArray(t)||x.isString(t)||x.isArguments(t))?0===t.length:0===x.keys(t).length)},x.isElement=function(t){return!(!t||1!==t.nodeType)},x.isArray=y||function(t){return"[object Array]"===b.call(t)},x.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){x["is"+t]=function(e){return b.call(e)==="[object "+t+"]"}}),x.isArguments(arguments)||(x.isArguments=function(t){return x.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(t){return"function"==typeof t||!1}),x.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},x.isNaN=function(t){return x.isNumber(t)&&t!==+t},x.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===b.call(t)},x.isNull=function(t){return null===t},x.isUndefined=function(t){return void 0===t},x.has=function(t,e){return null!=t&&v.call(t,e)},x.noConflict=function(){return c._=a,this},x.identity=function(t){return t},x.constant=function(t){return function(){return t}},x.noop=function(){},x.property=T,x.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},x.matcher=x.matches=function(t){return t=x.extendOwn({},t),function(e){return x.isMatch(e,t)}},x.times=function(t,e,r){var n=Array(Math.max(0,t));e=g(e,r,1);for(var i=0;i<t;i++)n[i]=e(i);return n},x.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},x.now=Date.now||function(){return(new Date).getTime()};var $={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},R=x.invert($),D=function(t){var e=function(e){return t[e]},r="(?:"+x.keys(t).join("|")+")",n=RegExp(r),i=RegExp(r,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(i,e):t}};x.escape=D($),x.unescape=D(R),x.result=function(t,e,r){var n=null==t?void 0:t[e];return void 0===n&&(n=r),x.isFunction(n)?n.call(t):n};var U=0;x.uniqueId=function(t){var e=++U+"";return t?t+e:e},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var L=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,B=function(t){return"\\"+q[t]};x.template=function(t,e,r){!e&&r&&(e=r),e=x.defaults({},e,x.templateSettings);var n=RegExp([(e.escape||L).source,(e.interpolate||L).source,(e.evaluate||L).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(n,function(e,r,n,s,u){return o+=t.slice(i,u).replace(z,B),i=u+e.length,r?o+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?o+="'+\n((__t=("+n+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var u=function(t){return s.call(this,t,x)},c=e.variable||"obj";return u.source="function("+c+"){\n"+o+"}",u},x.chain=function(t){var e=x(t);return e._chain=!0,e};var G=function(t,e){return t._chain?x(e).chain():e};x.mixin=function(t){x.each(x.functions(t),function(e){var r=x[e]=t[e];x.prototype[e]=function(){var t=[this._wrapped];return p.apply(t,arguments),G(this,r.apply(x,t))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];x.prototype[t]=function(){var r=this._wrapped;return e.apply(r,arguments),"shift"!==t&&"splice"!==t||0!==r.length||delete r[0],G(this,r)}}),x.each(["concat","join","slice"],function(t){var e=l[t];x.prototype[t]=function(){return G(this,e.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},n=[],i=function(){return x}.apply(e,n),!(void 0!==i&&(t.exports=i))}).call(this)},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";r(26),r(28),r(27),r(29),r(25),r(38),r(35),r(34),r(30),r(31),r(33),r(36),r(37),r(39),r(32);var n=r(40),i=r(41),o=r(44),s=r(43),u=r(42),c=r(46),a=r(45);n.default.bootstrap(),i.default.bootstrap(),o.default.bootstrap(),s.default.bootstrap(),u.default.bootstrap(),c.default.bootstrap(),a.default.bootstrap()}]);