var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();System.register(["./p-6efcc4fd.system.js"],(function(e){"use strict";var t,r,n,i,o;return{setters:[function(e){t=e.O;r=e.s;n=e.c;i=e.d;o=e.S}],execute:function(){e({d:w,e:h,i:u,o:c});function u(e){return e&&typeof e.schedule==="function"}function s(e,i){if(!i){return new t(r(e))}else{return n(e,i)}}function c(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=e[e.length-1];if(u(r)){e.pop();return n(e,r)}else{return s(e)}}function a(e){return e instanceof Date&&!isNaN(+e)}var f=new t((function(e){return e.complete()}));function h(e){return e?l(e):f}function l(e){return new t((function(t){return e.schedule((function(){return t.complete()}))}))}function d(e,r){if(!r){return new t((function(t){return t.error(e)}))}else{return new t((function(t){return r.schedule(p,0,{error:e,subscriber:t})}))}}function p(e){var t=e.error,r=e.subscriber;r.error(t)}var v;(function(e){e["NEXT"]="N";e["ERROR"]="E";e["COMPLETE"]="C"})(v||(v={}));var y=function(){function e(e,t,r){this.kind=e;this.value=t;this.error=r;this.hasValue=e==="N"}e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}};e.prototype.do=function(e,t,r){var n=this.kind;switch(n){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}};e.prototype.accept=function(e,t,r){if(e&&typeof e.next==="function"){return this.observe(e)}else{return this.do(e,t,r)}};e.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return c(this.value);case"E":return d(this.error);case"C":return h()}throw new Error("unexpected notification kind value")};e.createNext=function(t){if(typeof t!=="undefined"){return new e("N",t)}return e.undefinedValueNotification};e.createError=function(t){return new e("E",undefined,t)};e.createComplete=function(){return e.completeNotification};return e}();e("N",y);y.completeNotification=new y("C");y.undefinedValueNotification=new y("N",undefined);function w(e,t){if(t===void 0){t=i}var r=a(e);var n=r?+e-t.now():Math.abs(e);return function(e){return e.lift(new b(n,t))}}var b=function(){function e(e,t){this.delay=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new N(e,this.delay,this.scheduler))};return e}();var N=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.delay=r;i.scheduler=n;i.queue=[];i.active=false;i.errored=false;return i}t.dispatch=function(e){var t=e.source;var r=t.queue;var n=e.scheduler;var i=e.destination;while(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(e,o)}else{this.unsubscribe();t.active=false}};t.prototype._schedule=function(e){this.active=true;var r=this.destination;r.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))};t.prototype.scheduleNotification=function(e){if(this.errored===true){return}var t=this.scheduler;var r=new _(t.now()+this.delay,e);this.queue.push(r);if(this.active===false){this._schedule(t)}};t.prototype._next=function(e){this.scheduleNotification(y.createNext(e))};t.prototype._error=function(e){this.errored=true;this.queue=[];this.destination.error(e);this.unsubscribe()};t.prototype._complete=function(){this.scheduleNotification(y.createComplete());this.unsubscribe()};return t}(o);var _=function(){function e(e,t){this.time=e;this.notification=t}return e}()}}}));