// ==UserScript== // @name anti-redirect (typescript) // @author Axetroy // @collaborator Axetroy // @description GM脚本, 去除各搜索引擎/常用网站的重定向 // @version 1.2.2 // @update 2017-04-04 18:32:52 // @grant GM_xmlhttpRequest // @include *www.baidu.com* // @include *tieba.baidu.com* // @include *v.baidu.com* // @include *www.google.* // @include *encrypted.google.com* // @include *www.so.com* // @include *www.zhihu.com* // @include *daily.zhihu.com* // @include *zhuanlan.zhihu.com* // @include *weibo.com* // @include *twitter.com* // @include *www.sogou.com* // @connect * // @compatible chrome 完美运行 // @compatible firefox 完美运行 // @supportURL http://www.burningall.com // @run-at document-start // @contributionURL troy450409405@gmail.com|alipay.com // @namespace https://greasyfork.org/zh-CN/users/3400-axetroy // @license The MIT License (MIT); http://opensource.org/licenses/MIT // @downloadURL none // ==/UserScript== // Github源码:https://github.com/axetroy/anti-redirect !function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},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),o=r(83),i=r(8),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,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},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 o=r.subscribe(function(e){if(o)try{t(e)}catch(t){n(t),o.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$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)},o=r(11),i=r(5),s=r(16),u=r(20),c=function(t){function e(r,n,o){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,o)}}return n(e,t),e.prototype[u.$$rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},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.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(i.Subscription);e.Subscriber=c;var a=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,u=this;o.isFunction(r)?s=r:r&&(u=r,s=r.next,n=r.error,i=r.complete,o.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=i}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;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._parentSubscriber;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._parentSubscriber;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._parentSubscriber;this._context=null,this._parentSubscriber=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(85))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=r(28),i=r(27),s=i.CONFIG.debug,u=function(){function t(t,e,r,n){this.domainTester=t,this.urlTester=e,this.matcher=r,this.ASelector=n,this.match=!1,this.DEBUG=s,this.ASelector=this.ASelector||"a",this.match=t.test(document.domain)}return t.prototype.handlerOneCallBack=function(t){},t.prototype.handler=function(t){var e=this.matcher.exec(t.href);if(e&&e.length&&e[1]){var r="";try{r=decodeURIComponent(e[1])}catch(t){r=/https?:\/\//.test(e[1])?e[1]:""}r&&(t.setAttribute("origin-href",t.getAttribute("href")),t.href=r,s&&(t.style.backgroundColor="green"),this.handlerOneCallBack(t))}},t.prototype.handlerOne=function(t){var e=this;return n.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)}).subscribe(function(t){return e.handler(t)})},t.prototype.handlerOneByOne=function(){return n.Observable.from([].slice.call(document.querySelectorAll(this.ASelector))).filter(function(t){return!("A"!==t.nodeName||!t.href)})},t.prototype.scroll=function(){var t=this;return n.Observable.fromEvent(document,"scroll").debounceTime(200).flatMap(function(){return t.handlerOneByOne()}).subscribe(function(e){return t.handlerOne(e)})},t.prototype.mouseover=function(){return n.Observable.fromEvent(document,"mousemove").throttleTime(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.onInit=function(){for(var t=[],e=0;e=200&&e.status<400&&e.finalUrl?t.next(e):t.error(e),t.complete())},e.onerror=function(e){n.isFunction(i)&&i.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}();e.timeout=5e3;var s=new i({timeout:5e3});e.http=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(0),i=r(12),s=r(28),u=r(27),c=u.CONFIG.debug,a={ing:"redirect-ing",done:"redirect-done"},l=function(){function t(t,e,r,n){this.domainTester=t,this.urlTester=e,this.matcher=r,this.ASelector=n,this.DEBUG=c,this.status=a,this.ASelector=this.ASelector||"a",this.match=t.test(document.domain)}return t.prototype.handlerOneResponse=function(t){return t},t.prototype.handlerOne=function(t){var e=this;if(this.urlTester.test(t.href)&&!t.getAttribute(a.ing)&&!t.getAttribute(a.done)){var r=location.protocol.replace(/:$/,""),n=t.href.replace(/^https?/,r)+"×tamp="+(new Date).getTime();return t.style.cursor="progress",t.setAttribute(a.ing,"1"),i.http.get(n).retry(2).timeout(i.timeout).map(function(t){return e.handlerOneResponse(t)}).do(function(t){if(e.urlTester.test(t.finalUrl))throw new Error("invalid final url")}).subscribe(function(r){e.urlTester.test(t.href)&&t.setAttribute("origin-href",t.href),t.href=r.finalUrl,t.removeAttribute(a.ing),t.setAttribute(a.done,"1"),c&&(t.style.backgroundColor="green")},function(){t.style.cursor=null,t.removeAttribute(a.ing)},function(){t.style.cursor=null,t.removeAttribute(a.ing)})}},t.prototype.handlerOneByOne=function(){var t=this;return o.Observable.from([].slice.call(document.querySelectorAll(this.ASelector))).subscribe(function(e){(n=r(14))&&n.is(e)&&t.handlerOne(e)})},t.prototype.onInit=function(){for(var t=[],e=0;e - https://camwiegert.github.io/in-view * License: MIT */ !function(e,r){t.exports=r()}(0,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";var n=r(2),o=function(t){return t&&t.__esModule?t:{default:t}}(n);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 o=r(9),i=n(o),s=r(3),u=n(s),c=r(4);e.default=function(){if("undefined"!=typeof window){var t=["scroll","resize","load"],e={history:[]},r={offset:{},threshold:0,test:c.inViewport},n=(0,i.default)(function(){e.history.forEach(function(t){e[t].check()})},100);t.forEach(function(t){return addEventListener(t,n)}),window.MutationObserver&&addEventListener("DOMContentLoaded",function(){new MutationObserver(n).observe(document.body,{attributes:!0,childList:!0,subtree:!0})});var o=function(t){if("string"==typeof t){var n=[].slice.call(document.querySelectorAll(t));return e.history.indexOf(t)>-1?e[t].elements=n:(e[t]=(0,u.default)(n,r),e.history.push(t)),e[t]}};return o.offset=function(t){if(void 0===t)return r.offset;var e=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(e(t)?function(e){return r.offset[e]=t}:function(n){return e(t[n])?r.offset[n]=t[n]:null}),r.offset},o.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?r.threshold=t:r.threshold},o.test=function(t){return"function"==typeof t?r.test=t:r.test},o.is=function(t){return r.test(t,r)},o.offset(0),o}}()},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-1,i=r&&!o,s=!r&&o;i&&(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 o(t,e)}},function(t,e){"use strict";function r(t,e){var r=t.getBoundingClientRect(),n=r.top,o=r.right,i=r.bottom,s=r.left,u=r.width,c=r.height,a={t:i,r:window.innerWidth-s,b:window.innerHeight-n,l:o},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),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){function n(t,e,r){function n(e){var r=m,n=_;return m=_=void 0,j=e,O=t.apply(n,r)}function l(t){return j=t,g=setTimeout(p,e),S?n(t):O}function f(t){var r=t-x,n=t-j,o=e-r;return E?a(o,w-n):o}function h(t){var r=t-x,n=t-j;return void 0===x||r>=e||r<0||E&&n>=w}function p(){var t=i();return h(t)?d(t):void(g=setTimeout(p,f(t)))}function d(t){return g=void 0,A&&m?n(t):(m=_=void 0,O)}function b(){void 0!==g&&clearTimeout(g),j=0,m=x=_=g=void 0}function v(){return void 0===g?O:d(i())}function y(){var t=i(),r=h(t);if(m=arguments,_=this,x=t,r){if(void 0===g)return l(x);if(E)return g=setTimeout(p,e),n(x)}return void 0===g&&(g=setTimeout(p,e)),O}var m,_,w,O,g,x,j=0,S=!1,E=!1,A=!0;if("function"!=typeof t)throw new TypeError(u);return e=s(e)||0,o(r)&&(S=!!r.leading,E="maxWait"in r,w=E?c(s(r.maxWait)||0,e):w,A="trailing"in r?!!r.trailing:A),y.cancel=b,y.flush=v,y}var o=r(1),i=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),o=function(){return n.Date.now()};t.exports=o},function(t,e,r){function n(t,e,r){var n=!0,u=!0;if("function"!=typeof t)throw new TypeError(s);return i(r)&&(n="leading"in r?!!r.leading:n,u="trailing"in r?!!r.trailing:u),o(t,e,{leading:n,maxWait:e,trailing:u})}var o=r(7),i=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=r(0),o=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){switch(this.kind){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(){switch(this.kind){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 void 0!==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=o},function(t,e,r){"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)},o=r(1),i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(o.Subscriber);e.OuterSubscriber=i},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)},o=r(0),i=r(19),s=r(6),u=r(82),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;r1?new e(t,n):1===o?new i.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,o=t.subscriber;if(r>=n)return void o.complete();o.next(e[r]),o.closed||(t.index=r+1,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var i=0;i=0&&i0?0:u-1;return arguments.length<3&&(o=r[s?s[c]:c],c+=t),e(r,n,o,s,c,u)}}function i(t){return function(e,r,n){r=j(r,n);for(var o=P(e),i=t>0?0:o-1;i>=0&&i0?s=i>=0?i:Math.max(i+u,s):u=i>=0?Math.min(i+1,u):i+u+1;else if(r&&i&&u)return i=r(n,o),n[i]===o?i:-1;if(o!==o)return i=e(d.call(n,s,u),g.isNaN),i>=0?i+s:-1;for(i=t>0?s:u-1;i>=0&&i=0&&e<=T};g.each=g.forEach=function(t,e,r){e=x(e,r);var n,o;if(k(t))for(n=0,o=t.length;n=0},g.invoke=function(t,e){var r=d.call(arguments,2),n=g.isFunction(e);return g.map(t,function(t){var o=n?e:t[e];return null==o?o:o.apply(t,r)})},g.pluck=function(t,e){return g.map(t,g.property(e))},g.where=function(t,e){return g.filter(t,g.matcher(e))},g.findWhere=function(t,e){return g.find(t,g.matcher(e))},g.max=function(t,e,r){var n,o,i=-(1/0),s=-(1/0);if(null==e&&null!=t){t=k(t)?t:g.values(t);for(var u=0,c=t.length;ui&&(i=n)}else e=j(e,r),g.each(t,function(t,r,n){((o=e(t,r,n))>s||o===-(1/0)&&i===-(1/0))&&(i=t,s=o)});return i},g.min=function(t,e,r){var n,o,i=1/0,s=1/0;if(null==e&&null!=t){t=k(t)?t:g.values(t);for(var u=0,c=t.length;un||void 0===r)return 1;if(re?(s&&(clearTimeout(s),s=null),u=a,i=t.apply(n,o),s||(n=o=null)):s||r.trailing===!1||(s=setTimeout(c,l)),i}},g.debounce=function(t,e,r){var n,o,i,s,u,c=function(){var a=g.now()-s;a=0?n=setTimeout(c,e-a):(n=null,r||(u=t.apply(i,o),n||(i=o=null)))};return function(){i=this,o=arguments,s=g.now();var a=r&&!n;return n||(n=setTimeout(c,e)),a&&(u=t.apply(i,o),i=o=null),u}},g.wrap=function(t,e){return g.partial(e,t)},g.negate=function(t){return function(){return!t.apply(this,arguments)}},g.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}},g.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},g.before=function(t,e){var r;return function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=null),r}},g.once=g.partial(g.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];g.keys=function(t){if(!g.isObject(t))return[];if(m)return m(t);var e=[];for(var r in t)g.has(t,r)&&e.push(r);return R&&u(t,e),e},g.allKeys=function(t){if(!g.isObject(t))return[];var e=[];for(var r in t)e.push(r);return R&&u(t,e),e},g.values=function(t){for(var e=g.keys(t),r=e.length,n=Array(r),o=0;o":">",'"':""","'":"'","`":"`"},$=g.invert(U),L=function(t){var e=function(e){return t[e]},r="(?:"+g.keys(t).join("|")+")",n=RegExp(r),o=RegExp(r,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(o,e):t}};g.escape=L(U),g.unescape=L($),g.result=function(t,e,r){var n=null==t?void 0:t[e];return void 0===n&&(n=r),g.isFunction(n)?n.call(t):n};var q=0;g.uniqueId=function(t){var e=++q+"";return t?t+e:e},g.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=function(t){return"\\"+V[t]};g.template=function(t,e,r){!e&&r&&(e=r),e=g.defaults({},e,g.templateSettings);var n=RegExp([(e.escape||/(.)^/).source,(e.interpolate||/(.)^/).source,(e.evaluate||/(.)^/).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(n,function(e,r,n,s,u){return i+=t.slice(o,u).replace(/\\|'|\r|\n|\u2028|\u2029/g,D),o=u+e.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":n?i+="'+\n((__t=("+n+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),e}),i+="';\n",e.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var s=new Function(e.variable||"obj","_",i)}catch(t){throw t.source=i,t}var u=function(t){return s.call(this,t,g)},c=e.variable||"obj";return u.source="function("+c+"){\n"+i+"}",u},g.chain=function(t){var e=g(t);return e._chain=!0,e};var B=function(t,e){return t._chain?g(e).chain():e};g.mixin=function(t){g.each(g.functions(t),function(e){var r=g[e]=t[e];g.prototype[e]=function(){var t=[this._wrapped];return p.apply(t,arguments),B(this,r.apply(g,t))}})},g.mixin(g),g.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];g.prototype[t]=function(){var r=this._wrapped;return e.apply(r,arguments),"shift"!==t&&"splice"!==t||0!==r.length||delete r[0],B(this,r)}}),g.each(["concat","join","slice"],function(t){var e=l[t];g.prototype[t]=function(){return B(this,e.apply(this._wrapped,arguments))}}),g.prototype.value=function(){return this._wrapped},g.prototype.valueOf=g.prototype.toJSON=g.prototype.value,g.prototype.toString=function(){return""+this._wrapped},n=[],void 0!==(o=function(){return g}.apply(e,n))&&(t.exports=o)}).call(this)},function(t,e,r){"use strict";var n=r(0),o=r(63);n.Observable.forkJoin=o.forkJoin},function(t,e,r){"use strict";var n=r(0),o=r(64);n.Observable.from=o.from},function(t,e,r){"use strict";var n=r(0),o=r(65);n.Observable.fromEvent=o.fromEvent},function(t,e,r){"use strict";var n=r(0),o=r(66);n.Observable.of=o.of},function(t,e,r){"use strict";var n=r(0),o=r(67);n.Observable.prototype.debounceTime=o.debounceTime},function(t,e,r){"use strict";var n=r(0),o=r(68);n.Observable.prototype.delay=o.delay},function(t,e,r){"use strict";var n=r(0),o=r(69);n.Observable.prototype.do=o._do,n.Observable.prototype._do=o._do},function(t,e,r){"use strict";var n=r(0),o=r(70);n.Observable.prototype.filter=o.filter},function(t,e,r){"use strict";var n=r(0),o=r(71);n.Observable.prototype.map=o.map},function(t,e,r){"use strict";var n=r(0),o=r(72);n.Observable.prototype.mergeMap=o.mergeMap,n.Observable.prototype.flatMap=o.mergeMap},function(t,e,r){"use strict";var n=r(0),o=r(74);n.Observable.prototype.retry=o.retry},function(t,e,r){"use strict";var n=r(0),o=r(75);n.Observable.prototype.throttleTime=o.throttleTime},function(t,e,r){"use strict";var n=r(0),o=r(76);n.Observable.prototype.timeout=o.timeout},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(13),i=function(t){function e(e,r,n,o){return void 0===o&&(o="a"),t.call(this,e,r,n,o)||this}return n(e,t),e.prototype.handlerOneResponse=function(t){var e=t.response.match(/URL='(.*)'/);return e.length&&e[1]&&(t.finalUrl=e[1]),t},e}(o.RedirectOnRequest);e.default=new i(/v.baidu\.com/,/v\.baidu\.com\/link\?url=/,null)},function(t,e,r){"use strict";function n(t){return(t.innerText||t.textContent).trim()}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),s=r(12),u=r(29),c=r(13),a=function(t){function e(e,r,n,o){return void 0===o&&(o="a"),t.call(this,e,r,n,o)||this}return o(e,t),e.prototype.handlerOneResponse=function(t){if(this.urlTester.test(t.finalUrl)){if(!t.response||/<\/noscript>$/.test(t.response.trim()))throw t;var e=t.response.match(/URL=\'?https?:\/\/[^'"]+/).join("").match(/https?:\/\/[^'"]+/)[0];if(!e||!/^https?/.test(e)||this.urlTester.test(e))throw t;t.finalUrl=e}return t},e.prototype.onInit=function(){var t=this;if(/www\.baidu\.com\/s/.test(window.top.location.href)){var e=new u.default(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);return i.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.handlerOneRequestPage(e)})})}},e.prototype.handlerOneRequestPage=function(t){var e=this,r=t.responseText.replace(/(src=[^>]*|link=[^>])/g,""),o=document.createElement("html");o.innerHTML=r,i.Observable.of(o.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){e.urlTester.test(t.local.href)&&t.local.setAttribute("origin-href",t.local.href),t.local.href=t.remote.href,t.local.setAttribute(e.status.done,"1"),e.DEBUG&&(t.local.style.backgroundColor="red")})})},e}(c.RedirectOnRequest);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(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=r(3),s=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOne=function(t){var e=this;return o.Observable.of(t).subscribe(function(t){t.getAttribute("onmousedown")&&(t.removeAttribute("onmousedown"),e.DEBUG&&(t.style.backgroundColor="green")),t.getAttribute("data-href")&&(t.href=t.getAttribute("data-href"),e.DEBUG&&(t.style.backgroundColor="green"))})},e}(i.RedirectOnUrl);e.default=new s(/www\.google\./,null,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(3),i=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOneCallBack=function(t){t.removeAttribute("data-res"),t.href=t.href.replace(/\&(q|t|ts|src)=[^\&]*/g,"")},e}(o.RedirectOnUrl);e.default=new i(/www\.so\.com/,/so\.com\/link\?url=/,/so\.com\/link\?url=(.*)/)},function(t,e,r){"use strict";function n(t){return(t.innerText||t.textContent).trim()}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),s=r(12),u=r(29),c=r(13),a=function(t){function e(e,r,n,o){return void 0===o&&(o="a"),t.call(this,e,r,n,o)||this}return o(e,t),e.prototype.handlerOneResponse=function(t){if(this.urlTester.test(t.finalUrl)){var e=t.response.match(/URL=\'?https?:\/\/[^'"]+/).join("").match(/https?:\/\/[^'"]+/)[0];if(!e||!/^https?/.test(e)||this.urlTester.test(e))throw t;t.finalUrl=e}return t},e.prototype.onInit=function(){var t=this;if(/www\.sogou\.com\/web/.test(window.top.location.href)){var e=new u.default(window.top.location.search),r=location.protocol.replace(/:$/,"").replace("s","")+"://"+(location.host+location.pathname+e);return i.Observable.forkJoin(s.http.get(r)).retry(2).timeout(s.timeout).subscribe(function(e){e&&e.length&&e.forEach(function(e){return t.handlerOneRequestPage(e)})})}},e.prototype.handlerOneRequestPage=function(t){var e=this,r=t.responseText.replace(/(src=[^>]*|link=[^>])/g,""),o=document.createElement("html");o.innerHTML=r;var i=[].slice.call(o.querySelectorAll("#main .results a[href]"));[].slice.call(document.querySelectorAll('#main .results a[href*="www.sogou.com/link?url="]')).forEach(function(t){i.forEach(function(r){var o=n(t),i=n(r);t.classList.contains("str-public-btn")?(o=n(t.parentNode),i=n(r.parentNode)):t.classList.contains("str_img")&&(o=n(t.parentNode.parentNode),i=n(r.parentNode.parentNode)),o&&o===i&&(e.urlTester.test(t.href)&&t.setAttribute("origin-href",t.href),t.href=r.href,e.DEBUG&&(t.style.backgroundColor="red"))})})},e}(c.RedirectOnRequest);e.default=new a(/www\.sogou\.com/,/www\.sogou\.com\/link\?url=/,null,"#content_left a")},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=r(3),s=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOne=function(t){var e=this;return o.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)}).subscribe(function(t){var r="",n=t.innerText||t.textContent||"";try{r=decodeURIComponent(n)}catch(t){r=/https?:\/\//.test(n)?n:""}r&&(t.href=r,e.DEBUG&&(t.style.backgroundColor="green"))})},e}(i.RedirectOnUrl);e.default=new s(/tieba\.baidu\.com/,/jump\d*\.bdimg\.com/,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=r(3),s=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOne=function(t){var e=this;return o.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)&&/^https?:\/\//.test(t.title)}).subscribe(function(t){var r=decodeURIComponent(t.title);r&&(t.href=r,e.DEBUG&&(t.style.backgroundColor="green"))})},e}(i.RedirectOnUrl);e.default=new s(/twitter\.com/,/t\.co\/\w+/,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=r(3),s=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e.prototype.handlerOne=function(t){var e=this;return o.Observable.of(t).filter(function(t){return e.urlTester.test(t.href)&&/^https?:\/\//.test(t.title)}).subscribe(function(t){var r=decodeURIComponent(t.title);r&&(t.href=r,e.DEBUG&&(t.style.backgroundColor="green"))})},e}(i.RedirectOnUrl);e.default=new s(/weibo\.com/,/t\.cn\/\w+/,null)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(3),i=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e}(o.RedirectOnUrl);e.default=new i(/daily\.zhihu\.com/,/zhihu\.com\/\?target=/,/zhihu\.com\/\?target=(.*)/)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(3),i=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e}(o.RedirectOnUrl);e.default=new i(/zhuanlan\.zhihu\.com/,/link\.zhihu\.com\/\?target=/,/link\.zhihu\.com\/\?target=(.*)/)},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(3),i=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return n(e,t),e}(o.RedirectOnUrl);e.default=new i(/www\.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)},o=r(1),i=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}(o.Subscriber);e.InnerSubscriber=i},function(t,e,r){"use strict";var n=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=n},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)},o=r(0),i=r(19),s=r(6),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 i.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,o=t.subscriber;if(!o.closed){if(r>=n)return void o.complete();o.next(e[r]),t.index=r+1,this.schedule(t)}},e.prototype._subscribe=function(t){var r=this,n=r.arrayLike,o=r.scheduler,i=n.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var s=0;sd?d:e):e}function i(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(7),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,o=t.subscriber;if(r)return void o.error(t.error);var i=n.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof n.return&&n.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var r=this,n=r.iterator,o=r.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof n.return&&n.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.idx0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(t,i)}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 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)},i=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,o){t.call(this,e);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return o(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}(i.Subscriber)},function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,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)},i=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 o(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}(i.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 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)},i=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 o(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}(i.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 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)},i=r(25),s=r(17);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,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active0?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 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)},i=r(1),s=r(15);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 o(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},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}(i.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 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)},i=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 o(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this,n=r.source,o=r.count;if(0===o)return t.prototype.error.call(this,e);o>-1&&(this.count=o-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=u.async),this.lift(new c(t,e))}function o(t){t.subscriber.clearThrottle()}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)},s=r(1),u=r(4);e.throttleTime=n;var c=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.duration,this.scheduler))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.duration=r,this.scheduler=n}return i(e,t),e.prototype._next=function(t){this.throttled||(this.add(this.throttled=this.scheduler.schedule(o,this.duration,{subscriber:this})),this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},function(t,e,r){"use strict";function n(t,e){void 0===e&&(e=i.async);var r=s.isDate(t),n=r?+t-e.now():Math.abs(t);return this.lift(new a(n,r,e,new c.TimeoutError))}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)},i=r(4),s=r(22),u=r(1),c=r(80);e.timeout=n;var a=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=r,this.errorInstance=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),l=function(t){function e(e,r,n,o,i){t.call(this,e),this.absoluteTimeout=r,this.waitFor=n,this.scheduler=o,this.errorInstance=i,this.index=0,this._previousIndex=0,this._hasCompleted=!1,this.scheduleTimeout()}return o(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.errorInstance)},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)},o=r(5),i=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}(o.Subscription);e.Action=i},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)},o=r(2),i=r(77),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),o.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:o.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);if(r)return r;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}(i.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)},o=r(56),i=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}(o.Scheduler);e.AsyncScheduler=i},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)},o=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 n(e,t),e}(Error);e.TimeoutError=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)},o=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 n(e,t),e}(Error);e.UnsubscriptionError=o},function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}e.isScheduler=n},function(t,e,r){"use strict";function n(t,e,r){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||r?new o.Subscriber(t,e,r):new o.Subscriber(s.empty)}var o=r(1),i=r(20),s=r(16);e.toSubscriber=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(32),r(34),r(33),r(31),r(39),r(38),r(37),r(40),r(41),r(43),r(36),r(42),r(35);var n=r(45),o=r(49),i=r(44),s=r(46),u=r(51),c=r(50),a=r(47),l=r(54),f=r(52),h=r(53),p=r(48);n.default.bootstrap(),o.default.bootstrap(),i.default.bootstrap(),s.default.bootstrap(),u.default.bootstrap(),c.default.bootstrap(),a.default.bootstrap(),l.default.bootstrap(),f.default.bootstrap(),h.default.bootstrap(),p.default.bootstrap()},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}]);