biofriction-wp-theme/node_modules/rx/dist/rx.min.js

5 lines
72 KiB
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/
(function(a){function b(a){return a&&a.Object===Object?a:null}function c(a){for(var b=[],c=0,d=a.length;d>c;c++)b.push(a[c]);return b}function d(a){return function(){try{return a.apply(this,arguments)}catch(b){return la.e=b,la}}}function e(a){throw a}function f(a,b){if(na&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(ra)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+ra+"\n");a.stack=g(e)}}function g(a){for(var b=a.split("\n"),c=[],d=0,e=b.length;e>d;d++){var f=b[d];h(f)||i(f)||!f||c.push(f)}return c.join("\n")}function h(a){var b=k(a);if(!b)return!1;var c=b[0],d=b[1];return c===pa&&d>=qa&&$d>=d}function i(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}function j(){if(na)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=k(c);if(!d)return;return pa=d[0],d[1]}}function k(a){var b=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];var c=/at ([^ ]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];var d=/.*@(.+):(\d+)$/.exec(a);return d?[d[1],Number(d[2])]:void 0}function l(b,c,d,e,f,g){var h=eb(b),i=h.length,j=eb(c),k=j.length;if(i!==k&&!e)return!1;for(var l,m=i;m--;)if(l=h[m],!(e?l in c:bb.call(c,l)))return!1;for(var n=e;++m<i;){l=h[m];var o,p=b[l],q=c[l];if(!(o===a?d(p,q,e,f,g):o))return!1;n||(n="constructor"===l)}if(!n){var r=b.constructor,s=c.constructor;if(r!==s&&"constructor"in b&&"constructor"in c&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function m(a,b,c){switch(c){case Ga:case Ha:return+a===+b;case Ia:return a.name===b.name&&a.message===b.message;case La:return a!==+a?b!==+b:a===+b;case Na:case Pa:return a===b+""}return!1}function n(a){return!!a&&"object"==typeof a}function o(a){return"number"==typeof a&&a>-1&&a%1===0&&db>=a}function p(a){return n(a)&&o(a.length)&&!!_a[cb.call(a)]}function q(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function r(b,c,d,e,f,g){var h=-1,i=b.length,j=c.length;if(i!==j&&!(e&&j>i))return!1;for(;++h<i;){var k,l=b[h],m=c[h];if(k!==a){if(k)continue;return!1}if(e){if(!q(c,function(a){return l===a||d(l,a,e,f,g)}))return!1}else if(l!==m&&!d(l,m,e,f,g))return!1}return!0}function s(a,b,c,d,e,f){var g=hb(a),h=hb(b),i=Fa,j=Fa;g||(i=cb.call(a),i===Ea?i=Ma:i!==Ma&&(g=p(a))),h||(j=cb.call(b),j===Ea&&(j=Ma));var k=i===Ma&&!gb(a),n=j===Ma&&!gb(b),o=i===j;if(o&&!g&&!k)return m(a,b,i);if(!d){var q=k&&bb.call(a,"__wrapped__"),s=n&&bb.call(b,"__wrapped__");if(q||s)return c(q?a.value():a,s?b.value():b,d,e,f)}if(!o)return!1;e||(e=[]),f||(f=[]);for(var t=e.length;t--;)if(e[t]===a)return f[t]===b;e.push(a),f.push(b);var u=(g?r:l)(a,b,c,d,e,f);return e.pop(),f.pop(),u}function t(a,b,c,d,e){return a===b?!0:null==a||null==b||!fb(a)&&!n(b)?a!==a&&b!==b:s(a,b,t,c,d,e)}function u(a,b){for(var c=new Array(a),d=0;a>d;d++)c[d]=b();return c}function v(a,b){this.scheduler=a,this.disposable=b,this.isDisposed=!1}function w(a,b){b.isDisposed||(b.isDisposed=!0,b.disposable.dispose())}function x(a,b){this.id=a,this.value=b}function y(a){this._s=a,this.isDisposed=!1}function z(a){this._s=a}function A(a){this._s=a,this._l=a.length,this._i=0}function B(a){this._a=a}function C(a){this._a=a,this._l=G(a),this._i=0}function D(a){return"number"==typeof a&&ba.isFinite(a)}function E(b){var c,d=b[ya];if(!d&&"string"==typeof b)return c=new z(b),c[ya]();if(!d&&b.length!==a)return c=new B(b),c[ya]();if(!d)throw new TypeError("Object is not iterable");return b[ya]()}function F(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}function G(a){var b=+a.length;return isNaN(b)?0:0!==b&&D(b)?(b=F(b)*Math.floor(Math.abs(b)),0>=b?0:b>yc?yc:b):b}function H(a,b){return Cb(a)||(a=Ib),new Ac(b,a)}function I(a,b){this.observer=a,this.parent=b}function J(a,b){return a.amb(b)}function K(){return!1}function L(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function K(){return!1}function L(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function K(){return!
var d;b.subscribe(function(a){d=a},c,function(){a(d)})})};var sc=function(a){function b(b){this.source=b,a.call(this)}function c(a){this.o=a,this.a=[],_b.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a))},jb(c,_b),c.prototype.next=function(a){this.a.push(a)},c.prototype.error=function(a){this.o.onError(a)},c.prototype.completed=function(){this.o.onNext(this.a),this.o.onCompleted()},b}(fc);$b.toArray=function(){return new sc(this)},ec.create=function(a,b){return new Vd(a,b)};var tc=function(a){function b(b){this._f=b,a.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){var b=ma(this._f)();return b===la?Lc(b.e).subscribe(a):(ja(b)&&(b=rc(b)),b.subscribe(a))},b}(fc),uc=(ec.defer=function(a){return new tc(a)},function(a){function b(b){this.scheduler=b,a.call(this)}function c(a,b){this.observer=a,this.scheduler=b}function d(a,b){return b.onCompleted(),qb}return jb(b,a),b.prototype.subscribeCore=function(a){var b=new c(a,this.scheduler);return b.run()},c.prototype.run=function(){var a=this.observer;return this.scheduler===Gb?d(null,a):this.scheduler.schedule(a,d)},b}(fc)),vc=new uc(Gb),wc=ec.empty=function(a){return Cb(a)||(a=Gb),a===Gb?vc:new uc(a)},xc=function(a){function b(b,c,d){this._iterable=b,this._fn=c,this._scheduler=d,a.call(this)}function c(a,b,c){return function(d,e){var f=ma(b.next).call(b);if(f===la)return a.onError(f.e);if(f.done)return a.onCompleted();var g=f.value;return ka(c)&&(g=ma(c)(g,d),g===la)?a.onError(g.e):(a.onNext(g),void e(d+1))}}return jb(b,a),b.prototype.subscribeCore=function(a){var b=Object(this._iterable),d=E(b);return this._scheduler.scheduleRecursive(0,c(a,d,this._fn))},b}(fc),yc=Math.pow(2,53)-1;z.prototype[ya]=function(){return new A(this._s)},A.prototype[ya]=function(){return this},A.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:za},B.prototype[ya]=function(){return new C(this._a)},C.prototype[ya]=function(){return this},C.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:za};var zc=ec.from=function(a,b,c,d){if(null==a)throw new Error("iterable cannot be null.");if(b&&!ka(b))throw new Error("mapFn when provided must be a function");if(b)var e=Ca(b,c,2);return Cb(d)||(d=Ib),new xc(a,e,d)},Ac=function(a){function b(b,c){this._args=b,this._scheduler=c,a.call(this)}function c(a,b){var c=b.length;return function(d,e){c>d?(a.onNext(b[d]),e(d+1)):a.onCompleted()}}return jb(b,a),b.prototype.subscribeCore=function(a){return this._scheduler.scheduleRecursive(0,c(a,this._args))},b}(fc),Bc=ec.fromArray=function(a,b){return Cb(b)||(b=Ib),new Ac(a,b)},Cc=function(a){function b(b,c,d,e,f){this._initialState=b,this._cndFn=c,this._itrFn=d,this._resFn=e,this._s=f,a.call(this)}function c(a,b){if(a.first)a.first=!1;else if(a.newState=ma(a.self._itrFn)(a.newState),a.newState===la)return a.o.onError(a.newState.e);var c=ma(a.self._cndFn)(a.newState);if(c===la)return a.o.onError(c.e);if(c){var d=ma(a.self._resFn)(a.newState);if(d===la)return a.o.onError(d.e);a.o.onNext(d),b(a)}else a.o.onCompleted()}return jb(b,a),b.prototype.subscribeCore=function(a){var b={o:a,self:this,first:!0,newState:this._initialState};return this._s.scheduleRecursive(b,c)},b}(fc);ec.generate=function(a,b,c,d,e){return Cb(e)||(e=Ib),new Cc(a,b,c,d,e)};var Dc=function(a){function b(){a.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){return qb},b}(fc),Ec=new Dc,Fc=ec.never=function(){return Ec};ec.of=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return new Ac(b,Ib)},ec.ofWithScheduler=function(a){for(var b=arguments.length,c=new Array(b-1),d=1;b>d;d++)c[d-1]=arguments[d];return new Ac(c,a)};var Gc=function(a){function b(b,c){this._o=b,this._keys=Object.keys(b),this._scheduler=c,a.call(this)}function c(a,b,c){return function(d,e){if(d<c.length){var f=c[d];a.onNext([f,b[f]]),e(d+1)}else a.onCompleted()}}return jb(b,a),b.prototype.subscribeCore=function(a){return this._scheduler.scheduleRecursive(0,c(a,this._o,this._keys))},b}(fc);ec.pairs=function(
},c)},S.prototype.push=function(a){var b=-1===R(this.set,a,this.comparer);return b&&this.set.push(a),b};var Kd=function(a){function b(b,c,d){this.source=b,this._keyFn=c,this._cmpFn=d,a.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Ld(a,this._keyFn,this._cmpFn))},b}(fc),Ld=function(a){function b(b,c,d){this._o=b,this._keyFn=c,this._h=new S(d),a.call(this)}return jb(b,a),b.prototype.next=function(a){var b=a;return ka(this._keyFn)&&(b=ma(this._keyFn)(a),b===la)?this._o.onError(b.e):void(this._h.push(b)&&this._o.onNext(a))},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(_b);$b.distinct=function(a,b){return b||(b=ga),new Kd(this,a,b)};var Md=function(a){function b(b,c,d){this.source=b,this.selector=Ca(c,d,3),a.call(this)}function c(a,b){return function(c,d,e){return a.call(this,b.selector(c,d,e),d,e)}}function d(a,b,c){this.o=a,this.selector=b,this.source=c,this.i=0,_b.call(this)}return jb(b,a),b.prototype.internalMap=function(a,d){return new b(this.source,c(a,this),d)},b.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this.selector,this))},jb(d,_b),d.prototype.next=function(a){var b=ma(this.selector)(a,this.i++,this.source);return b===la?this.o.onError(b.e):void this.o.onNext(b)},d.prototype.error=function(a){this.o.onError(a)},d.prototype.completed=function(){this.o.onCompleted()},b}(fc);$b.map=$b.select=function(a,b){var c="function"==typeof a?a:function(){return a};return this instanceof Md?this.internalMap(c,b):new Md(this,c,b)},$b.pluck=function(){var a=arguments.length,b=new Array(a);if(0===a)throw new Error("List of properties cannot be empty.");for(var c=0;a>c;c++)b[c]=arguments[c];return this.map(T(b,a))},$b.flatMapObserver=$b.selectManyObserver=function(a,b,c,d){var e=this;return new Vd(function(f){var g=0;return e.subscribe(function(b){var c;try{c=a.call(d,b,g++)}catch(e){return void f.onError(e)}ja(c)&&(c=rc(c)),f.onNext(c)},function(a){var c;try{c=b.call(d,a)}catch(e){return void f.onError(e)}ja(c)&&(c=rc(c)),f.onNext(c),f.onCompleted()},function(){var a;try{a=c.call(d)}catch(b){return void f.onError(b)}ja(a)&&(a=rc(a)),f.onNext(a),f.onCompleted()})},e).mergeAll()},$b.flatMap=$b.selectMany=$b.mergeMap=function(a,b,c){return new gc(this,a,b,c).mergeAll()},$b.flatMapLatest=$b.switchMap=function(a,b,c){return new gc(this,a,b,c).switchLatest()};var Nd=function(a){function b(b,c){this.source=b,this._count=c,a.call(this)}function c(a,b){this._o=a,this._r=b,_b.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this._count))},jb(c,_b),c.prototype.next=function(a){this._r<=0?this._o.onNext(a):this._r--},c.prototype.error=function(a){this._o.onError(a)},c.prototype.completed=function(){this._o.onCompleted()},b}(fc);$b.skip=function(a){if(0>a)throw new ua;return new Nd(this,a)};var Od=function(a){function b(b,c){this.source=b,this._fn=c,a.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Pd(a,this))},b}(fc),Pd=function(a){function b(b,c){this._o=b,this._p=c,this._i=0,this._r=!1,a.call(this)}return jb(b,a),b.prototype.next=function(a){if(!this._r){var b=ma(this._p._fn)(a,this._i++,this._p);if(b===la)return this._o.onError(b.e);this._r=!b}this._r&&this._o.onNext(a)},b.prototype.error=function(a){this._o.onError(a)},b.prototype.completed=function(){this._o.onCompleted()},b}(_b);$b.skipWhile=function(a,b){var c=Ca(a,b,3);return new Od(this,c)};var Qd=function(a){function b(b,c){this.source=b,this._count=c,a.call(this)}function c(a,b){this._o=a,this._c=b,this._r=b,_b.call(this)}return jb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this._count))},jb(c,_b),c.prototype.next=function(a){this._r-->0&&(this._o.onNext(a),this._r<=0&&this._o.onCompleted())},c.prototype.error=function(a){this._o.onError(a)},c.prototype.completed=function(){this._o.onCompleted()},b}(fc);$b.take=function(a,b){if(0>a)throw new ua;return 0===a?wc(b):new Qd(this,a)};var Rd=function(a){functi
//# sourceMappingURL=rx.map