1 | 33x | !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.falx=r():t.falx=r()}(window,function(){return function(t){var r={};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}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},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,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=21)}([function(t,r,e){"use strict";var n=e(2).root.Symbol;r.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",r.$$rxSubscriber=r.rxSubscriber},function(t,r,e){"use strict";var n=e(15),o=e(14),i=e(6),s=e(13),c=e(5),u=e(12),b=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var r;return t.prototype.unsubscribe=function(){var t,r=!1;if(!this.closed){var e=this._parent,b=this._parents,h=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,l=b?b.length:0;e;)e.remove(this),e=++f<l&&b[f]||null;if(i.isFunction(h))s.tryCatch(h).call(this)===c.errorObject&&(r=!0,t=t||(c.errorObject.e instanceof u.UnsubscriptionError?a(c.errorObject.e.errors):[c.errorObject.e]));if(n.isArray(p))for(f=-1,l=p.length;++f<l;){var y=p[f];if(o.isObject(y))if(s.tryCatch(y.unsubscribe).call(y)===c.errorObject){r=!0,t=t||[];var d=c.errorObject.e;d instanceof u.UnsubscriptionError?t=t.concat(a(d.errors)):t.push(d)}}if(r)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(r){Iif(!r||r===t.EMPTY)return t.EMPTY;Iif(r===this)return this;var e=r;switch(typeof r){case"function":e=new t(r);case"object":Iif(e.closed||"function"!=typeof e.unsubscribe)return e;Iif(this.closed)return e.unsubscribe(),e;Iif("function"!=typeof e._addParent){var n=e;(e=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(e),e._addParent(this),e},t.prototype.remove=function(t){var r=this._subscriptions;if(r){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}},t.prototype._addParent=function(t){var r=this._parent,e=this._parents;r&&r!==t?e?-1===e.indexOf(t)&&e.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((r=new t).closed=!0,r),t}();function a(t){return t.reduce(function(t,r){return t.concat(r instanceof u.UnsubscriptionError?r.errors:r)},[])}r.Subscription=b},function(t,r,e){"use strict";(function(t){var e="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=e||void 0!==t&&t||n;r.root=o,function(){Iif(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(this,e(17))},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},o=function(t){function r(){var r=t.call(this,"object unsubscribed");this.name=r.name="ObjectUnsubscribedError",this.stack=r.stack,this.message=r.message}return n(r,t),r}(Error);r.ObjectUnsubscribedError=o},function(t,r,e){"use strict";r.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,r,e){"use strict";r.errorObject={e:{}}},function(t,r,e){"use strict";r.isFunction=function(t){return"function"==typeof t}},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},o=e(6),i=e(1),s=e(4),c=e(0),u=function(t){function r(e,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(!e){this.destination=s.empty;break}if("object"==typeof e){e instanceof r?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new b(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new b(this,e,n,o)}}return n(r,t),r.prototype[c.rxSubscriber]=function(){return this},r.create=function(t,e,n){var o=new r(t,e,n);return o.syncErrorThrowable=!1,o},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var t=this._parent,r=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=r,this},r}(i.Subscription);r.Subscriber=u;var b=function(t){function r(r,e,n,i){var c;t.call(this),this._parentSubscriber=r;var u=this;o.isFunction(e)?c=e:e&&(c=e.next,n=e.error,i=e.complete,e!==s.empty&&(u=Object.create(e),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=c,this._error=n,this._complete=i}return n(r,t),r.prototype.next=function(t){Eif(!this.isStopped&&this._next){var r=this._parentSubscriber;r.syncErrorThrowable?this.__tryOrSetError(r,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber;if(this._error)r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!r.syncErrorThrowable)throw this.unsubscribe(),t;r.syncErrorValue=t,r.syncErrorThrown=!0,this.unsubscribe()}}},r.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var e=function(){return t._complete.call(t._context)};r.syncErrorThrowable?(this.__tryOrSetError(r,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(t){throw this.unsubscribe(),t}},r.prototype.__tryOrSetError=function(t,r,e){try{r.call(this._context,e)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},r.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},r}(u)},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},o=function(t){function r(r,e){t.call(this),this.subject=r,this.subscriber=e,this.closed=!1}return n(r,t),r.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,r=t.observers;if(this.subject=null,r&&0!==r.length&&!t.isStopped&&!t.closed){var e=r.indexOf(this.subscriber);-1!==e&&r.splice(e,1)}}},r}(e(1).Subscription);r.SubjectSubscription=o},function(t,r,e){"use strict";r.noop=function(){}},function(t,r,e){"use strict";var n=e(9);function o(t){return t?1===t.length?t[0]:function(r){return t.reduce(function(t,r){return r(t)},r)}:n.noop}r.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return o(t)},r.pipeFromArray=o},function(t,r,e){"use strict";var n=e(2);function o(t){var r,e=t.Symbol;return"function"==typeof e?e.observable?r=e.observable:(r=e("observable"),e.observable=r):r="@@observable",r}r.getSymbolObservable=o,r.observable=o(n.root),r.$$observable=r.observable},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},o=function(t){function r(r){t.call(this),this.errors=r;var e=Error.call(this,r?r.length+" errors occurred during unsubscription:\n "+r.map(function(t,r){return r+1+") "+t.toString()}).join("\n "):"");this.name=e.name="UnsubscriptionError",this.stack=e.stack,this.message=e.message}return n(r,t),r}(Error);r.UnsubscriptionError=o},function(t,r,e){"use strict";var n,o=e(5);function i(){try{return n.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}r.tryCatch=function(t){return n=t,i}},function(t,r,e){"use strict";r.isObject=function(t){return null!=t&&"object"==typeof t}},function(t,r,e){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,r,e){"use strict";var n=e(7),o=e(0),i=e(4);r.toSubscriber=function(t,r,e){Eif(t){Iif(t instanceof n.Subscriber)return t;Iif(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||r||e?new n.Subscriber(t,r,e):new n.Subscriber(i.empty)}},function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";var n=e(2),o=e(16),i=e(11),s=e(10),c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(t,r,e){var n=this.operator,i=o.toSubscriber(t,r,e);Iif(n?n.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):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(r){t.syncErrorThrown=!0,t.syncErrorValue=r,t.error(r)}},t.prototype.forEach=function(t,r){var e=this;if(r||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?r=n.root.Rx.config.Promise:n.root.Promise&&(r=n.root.Promise)),!r)throw new Error("no Promise impl found");return new r(function(r,n){var o;o=e.subscribe(function(r){if(o)try{t(r)}catch(t){n(t),o.unsubscribe()}else t(r)},n,r)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var r=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},t.create=function(r){return new t(r)},t}();r.Observable=c},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},o=e(18),i=e(7),s=e(1),c=e(3),u=e(8),b=e(0),a=function(t){function r(r){t.call(this,r),this.destination=r}return n(r,t),r}(i.Subscriber);r.SubjectSubscriber=a;var h=function(t){function r(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(r,t),r.prototype[b.rxSubscriber]=function(){return new a(this)},r.prototype.lift=function(t){var r=new p(this,this);return r.operator=t,r},r.prototype.next=function(t){Iif(this.closed)throw new c.ObjectUnsubscribedError;Eif(!this.isStopped)for(var r=this.observers,e=r.length,n=r.slice(),o=0;o<e;o++)n[o].next(t)},r.prototype.error=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var r=this.observers,e=r.length,n=r.slice(),o=0;o<e;o++)n[o].error(t);this.observers.length=0},r.prototype.complete=function(){if(this.closed)throw new c.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,r=t.length,e=t.slice(),n=0;n<r;n++)e[n].complete();this.observers.length=0},r.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(r){Iif(this.closed)throw new c.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,r)},r.prototype._subscribe=function(t){Iif(this.closed)throw new c.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},r.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},r.create=function(t,r){return new p(t,r)},r}(o.Observable);r.Subject=h;var p=function(t){function r(r,e){t.call(this),this.destination=r,this.source=e}return n(r,t),r.prototype.next=function(t){var r=this.destination;r&&r.next&&r.next(t)},r.prototype.error=function(t){var r=this.destination;r&&r.error&&this.destination.error(t)},r.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},r.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},r}(h);r.AnonymousSubject=p},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},o=e(19),i=e(3),s=function(t){function r(r){t.call(this),this._value=r}return n(r,t),Object.defineProperty(r.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),r.prototype._subscribe=function(r){var e=t.prototype._subscribe.call(this,r);return e&&!e.closed&&r.next(this._value),e},r.prototype.getValue=function(){Iif(this.hasError)throw this.thrownError;Iif(this.closed)throw new i.ObjectUnsubscribedError;return this._value},r.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},r}(o.Subject);r.BehaviorSubject=s},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.store=void 0;var n=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t};r.register=function(t,r){s.states[t]=new o.BehaviorSubject(r.state),c[t]={};var e=function(e){c[t][e]=function(){var n,o=Promise.resolve((n=r.actions[e]).call.apply(n,[null,s.states[t].getValue()].concat(Array.prototype.slice.call(arguments))));return o.then(function(r){s.states[t].next(r)})}};for(var n in r.actions)e(n)},r.subscribe=function(t,r){return s.states[t].subscribe(function(e){r(n(i({},t,e),c[t]))})};var o=e(20);function i(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var s=r.store={states:{},getState:function(t){if(!t){var r={};for(var e in s.states)r[e]=n(i({},e,s.states[e].getValue()),c[e]);return r}return n(i({},t,s.states[t].getValue()),c[t])}},c={}}])}); |