text: function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=_superPropBase(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(l){r=!0,s=l}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{"1WZM":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=n("q1/r"),o=n("fH4+"),a=function(){function e(e,t,n){var i=this;this.API=t,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=e.nativeElement,this.subscriptions.push(n.isHidden.subscribe((function(e){return i.onHideScrubBar(e)})))}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.seekStart=function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===o.VgStates.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())},e.prototype.seekMove=function(e){if(this.isSeeking){var t=Math.max(Math.min(100*e/this.elem.scrollWidth,99.9),0);this.target.time.current=t*this.target.time.total/100,this.target.seekTime(t,!0)}},e.prototype.seekEnd=function(e){if(this.isSeeking=!1,this.target.canPlay){var t=Math.max(Math.min(100*e/this.elem.scrollWidth,99.9),0);this.target.seekTime(t,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},e.prototype.touchEnd=function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())},e.prototype.getTouchOffset=function(e){for(var t=0,n=e.target;n;)t+=n.offsetLeft,n=n.offsetParent;return e.touches[0].pageX-t},e.prototype.onMouseDownScrubBar=function(e){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(e.offsetX)))},e.prototype.onMouseMoveScrubBar=function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(e.offsetX)},e.prototype.onMouseUpScrubBar=function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(e.offsetX)},e.prototype.onTouchStartScrubBar=function(e){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(e))))},e.prototype.onTouchMoveScrubBar=function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(e))},e.prototype.onTouchCancelScrubBar=function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()},e.prototype.onTouchEndScrubBar=function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()},e.prototype.arrowAdjustVolume=function(e){this.target&&(38===e.keyCode||39===e.keyCode?(e.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))},e.prototype.getPercentage=function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"},e.prototype.onHideScrubBar=function(e){this.hideScrubBar=e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-scrub-bar",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="scrubBar"\n             tabindex="0"\n             role="slider"\n             aria-label="scrub bar"\n             aria-level="polite"\n             [attr.aria-valuenow]="getPercentage()"\n             aria-valuemin="0"\n             aria-valuemax="100"\n             [attr.aria-valuetext]="getPercentage() + \'%\'">\n            <ng-content></ng-content>\n        </div>\n        \n    ',styles:["\n        vg-scrub-bar {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            position: absolute;\n            width: 100%;\n            height: 5px;\n            bottom: 50px;\n            margin: 0;\n            cursor: pointer;\n            align-items: center;\n            background: rgba(0, 0, 0, 0.75);\n            z-index: 250;\n            -webkit-transition: bottom 1s, opacity 0.5s;\n            -khtml-transition: bottom 1s, opacity 0.5s;\n            -moz-transition: bottom 1s, opacity 0.5s;\n            -ms-transition: bottom 1s, opacity 0.5s;\n            transition: bottom 1s, opacity 0.5s;\n        }\n        \n        vg-scrub-bar .scrubBar {\n            position: relative;\n            display: flex;\n            flex-grow: 1;\n            align-items: center;\n            height: 100%;\n        }\n\n        vg-controls vg-scrub-bar {\n            position: relative;\n            bottom: 0;\n            background: transparent;\n            height: 50px;\n            flex-grow: 1;\n            flex-basis: 0;\n            margin: 0 10px;\n            -webkit-transition: initial;\n            -khtml-transition: initial;\n            -moz-transition: initial;\n            -ms-transition: initial;\n            transition: initial;\n        }\n\n        vg-scrub-bar.hide {\n            bottom: 0;\n            opacity: 0;\n        }\n\n        vg-controls vg-scrub-bar.hide {\n            bottom: initial;\n            opacity: initial;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI},{type:s.VgControlsHidden}]},e.propDecorators={hideScrubBar:[{type:i.HostBinding,args:["class.hide"]}],vgFor:[{type:i.Input}],vgSlider:[{type:i.Input}],onMouseDownScrubBar:[{type:i.HostListener,args:["mousedown",["$event"]]}],onMouseMoveScrubBar:[{type:i.HostListener,args:["document:mousemove",["$event"]]}],onMouseUpScrubBar:[{type:i.HostListener,args:["document:mouseup",["$event"]]}],onTouchStartScrubBar:[{type:i.HostListener,args:["touchstart",["$event"]]}],onTouchMoveScrubBar:[{type:i.HostListener,args:["document:touchmove",["$event"]]}],onTouchCancelScrubBar:[{type:i.HostListener,args:["document:touchcancel",["$event"]]}],onTouchEndScrubBar:[{type:i.HostListener,args:["document:touchend",["$event"]]}],arrowAdjustVolume:[{type:i.HostListener,args:["keydown",["$event"]]}]},e}();t.VgScrubBar=a},"7NiZ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.vgSlider=!1,this.subscriptions=[],this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.getPercentage=function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-scrub-bar-current-time",encapsulation:i.ViewEncapsulation.None,template:'<div class="background" [style.width]="getPercentage()"></div><span class="slider" *ngIf="vgSlider"></span>',styles:["\n        vg-scrub-bar-current-time {\n            display: flex;\n            width: 100%;\n            height: 5px;\n            pointer-events: none;\n            position: absolute;\n        }\n\n        vg-scrub-bar-current-time .background {\n            background-color: white;\n        }\n\n        vg-controls vg-scrub-bar-current-time {\n            position: absolute;\n            top: calc(50% - 3px);\n            -webkit-border-radius: 2px;\n            -moz-border-radius: 2px;\n            border-radius: 2px;\n        }\n\n        vg-controls vg-scrub-bar-current-time .background {\n            border: 1px solid white;\n            -webkit-border-radius: 2px;\n            -moz-border-radius: 2px;\n            border-radius: 2px;\n        }\n        \n        vg-scrub-bar-current-time .slider{\n            background: white;\n            height: 15px;\n            width: 15px;\n            border-radius: 50%;\n            box-shadow: 0px 0px 10px black;\n            margin-top: -5px;\n            margin-left: -10px;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],vgSlider:[{type:i.Input}]},e}();t.VgScrubBarCurrentTime=s},"7gbQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=n("k1Da"),o=n("OVs2"),a=n("UOCa"),l=n("q1/r"),u=function(){function e(e,t,n,r){this.api=t,this.fsAPI=n,this.controlsHidden=r,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new i.EventEmitter,this.onMediaReady=new i.EventEmitter,this.subscriptions=[],this.elem=e.nativeElement,this.api.registerElement(this.elem)}return e.prototype.ngAfterContentInit=function(){var e=this;this.medias.toArray().forEach((function(t){e.api.registerMedia(t)})),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)},e.prototype.onChangeFullscreen=function(e){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=e:(this.isFullscreen=e,this.zIndex=e?o.VgUtils.getZIndex().toString():"auto")},e.prototype.onHideControls=function(e){this.areControlsHidden=e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-player",encapsulation:i.ViewEncapsulation.None,template:"<ng-content></ng-content>",styles:["\n        vg-player {\n            font-family: 'videogular';\n            position: relative;\n            display: flex;\n            width: 100%;\n            height: 100%;\n            overflow: hidden;\n            background-color: black;\n        }\n\n        vg-player.fullscreen {\n            position: fixed;\n            left: 0;\n            top: 0;\n        }\n\n        vg-player.native-fullscreen.controls-hidden {\n            cursor: none;\n        }\n    "],providers:[r.VgAPI,s.VgFullscreenAPI,l.VgControlsHidden]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI},{type:s.VgFullscreenAPI},{type:l.VgControlsHidden}]},e.propDecorators={isFullscreen:[{type:i.HostBinding,args:["class.fullscreen"]}],isNativeFullscreen:[{type:i.HostBinding,args:["class.native-fullscreen"]}],areControlsHidden:[{type:i.HostBinding,args:["class.controls-hidden"]}],zIndex:[{type:i.HostBinding,args:["style.z-index"]}],onPlayerReady:[{type:i.Output}],onMediaReady:[{type:i.Output}],medias:[{type:i.ContentChildren,args:[a.VgMedia]}]},e}();t.VgPlayer=u},"7j3K":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){var e=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(t){return e.onUpdateBuffer(t)})))},e.prototype.onUpdateBuffer=function(e){this.isBuffering=e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-buffering",encapsulation:i.ViewEncapsulation.None,template:'<div class="vg-buffering">\n            <div class="bufferingContainer">\n                <div class="loadingSpinner"></div>\n            </div>\n        </div>',styles:["\n        vg-buffering {\n            display: none;\n            z-index: 201;\n        }\n\n        vg-buffering.is-buffering {\n            display: block;\n        }\n        \n        .vg-buffering {\n            position: absolute;\n            display: block;\n            width: 100%;\n            height: 100%;\n        }\n\n        .vg-buffering .bufferingContainer {\n            width: 100%;\n            position: absolute;\n            cursor: pointer;\n            top: 50%;\n            margin-top: -50px;\n\n            zoom: 1;\n            filter: alpha(opacity=60);\n            opacity: 0.6;\n        }\n\n        /* Loading Spinner\n        * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n        */\n        .vg-buffering .loadingSpinner {\n            background-color: rgba(0, 0, 0, 0);\n            border: 5px solid rgba(255, 255, 255, 1);\n            opacity: .9;\n            border-top: 5px solid rgba(0, 0, 0, 0);\n            border-left: 5px solid rgba(0, 0, 0, 0);\n            border-radius: 50px;\n            box-shadow: 0 0 35px #FFFFFF;\n            width: 50px;\n            height: 50px;\n            margin: 0 auto;\n            -moz-animation: spin .5s infinite linear;\n            -webkit-animation: spin .5s infinite linear;\n        }\n\n        .vg-buffering .loadingSpinner .stop {\n            -webkit-animation-play-state: paused;\n            -moz-animation-play-state: paused;\n        }\n\n        @-moz-keyframes spin {\n            0% {\n                -moz-transform: rotate(0deg);\n            }\n            100% {\n                -moz-transform: rotate(360deg);\n            }\n        }\n\n        @-moz-keyframes spinoff {\n            0% {\n                -moz-transform: rotate(0deg);\n            }\n            100% {\n                -moz-transform: rotate(-360deg);\n            }\n        }\n\n        @-webkit-keyframes spin {\n            0% {\n                -webkit-transform: rotate(0deg);\n            }\n            100% {\n                -webkit-transform: rotate(360deg);\n            }\n        }\n\n        @-webkit-keyframes spinoff {\n            0% {\n                -webkit-transform: rotate(0deg);\n            }\n            100% {\n                -webkit-transform: rotate(-360deg);\n            }\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],isBuffering:[{type:i.HostBinding,args:["class.is-buffering"]}]},e}();t.VgBuffering=s},"A+AZ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.subscriptions=[],this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.getBufferTime=function(){var e="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(e=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-scrub-bar-buffering-time",encapsulation:i.ViewEncapsulation.None,template:'<div class="background" [style.width]="getBufferTime()"></div>',styles:["\n        vg-scrub-bar-buffering-time {\n            display: flex;\n            width: 100%;\n            height: 5px;\n            pointer-events: none;\n            position: absolute;\n        }\n\n        vg-scrub-bar-buffering-time .background {\n            background-color: rgba(255, 255, 255, 0.3);\n        }\n\n        vg-controls vg-scrub-bar-buffering-time {\n            position: absolute;\n            top: calc(50% - 3px);\n        }\n\n        vg-controls vg-scrub-bar-buffering-time .background {\n            -webkit-border-radius: 2px;\n            -moz-border-radius: 2px;\n            border-radius: 2px;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}]},e}();t.VgScrubBarBufferingTime=s},IAT7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.subscriptions=[],this.elem=e.nativeElement,this.isDragging=!1}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()},e.prototype.onClick=function(e){this.setVolume(this.calculateVolume(e.clientX))},e.prototype.onMouseDown=function(e){this.mouseDownPosX=e.clientX,this.isDragging=!0},e.prototype.onDrag=function(e){this.isDragging&&this.setVolume(this.calculateVolume(e.clientX))},e.prototype.onStopDrag=function(e){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===e.clientX&&this.setVolume(this.calculateVolume(e.clientX)))},e.prototype.arrowAdjustVolume=function(e){38===e.keyCode||39===e.keyCode?(e.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))},e.prototype.calculateVolume=function(e){var t=this.volumeBarRef.nativeElement.getBoundingClientRect();return(e-t.left)/t.width*100},e.prototype.setVolume=function(e){this.target.volume=Math.max(0,Math.min(1,e/100)),this.ariaValue=100*this.target.volume},e.prototype.getVolume=function(){return this.target?this.target.volume:0},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-volume",encapsulation:i.ViewEncapsulation.None,template:'\n        <div \n            #volumeBar\n            class="volumeBar"\n            tabindex="0"\n            role="slider"\n            aria-label="volume level"\n            aria-level="polite"\n            [attr.aria-valuenow]="ariaValue"\n            aria-valuemin="0"\n            aria-valuemax="100"\n            aria-orientation="horizontal"\n            [attr.aria-valuetext]="ariaValue + \'%\'"\n            (click)="onClick($event)"\n            (mousedown)="onMouseDown($event)">\n            <div class="volumeBackground" [ngClass]="{dragging: isDragging}">\n                <div class="volumeValue" [style.width]="(getVolume() * (100-15)) + \'%\'"></div>\n                <div class="volumeKnob" [style.left]="(getVolume() * (100-15)) + \'%\'"></div>\n            </div>\n        </div>\n    ',styles:["\n        vg-volume {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            height: 50px;\n            width: 100px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n        }\n        vg-volume .volumeBar {\n            position: relative;\n            display: flex;\n            flex-grow: 1;\n            align-items: center;\n        }\n        vg-volume .volumeBackground {\n            display: flex;\n            flex-grow: 1;\n            height: 5px;\n            pointer-events: none;\n            background-color: #333;\n        }\n        vg-volume .volumeValue {\n            display: flex;\n            height: 5px;\n            pointer-events: none;\n            background-color: #FFF;\n            transition:all 0.2s ease-out;\n        }\n        vg-volume .volumeKnob {\n            position: absolute;\n            width: 15px; height: 15px;\n            left: 0; top: 50%;\n            transform: translateY(-50%);\n            border-radius: 15px;\n            pointer-events: none;\n            background-color: #FFF;\n            transition:all 0.2s ease-out;\n        }\n        vg-volume .volumeBackground.dragging .volumeValue,\n        vg-volume .volumeBackground.dragging .volumeKnob {\n            transition: none;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],volumeBarRef:[{type:i.ViewChild,args:["volumeBar"]}],onDrag:[{type:i.HostListener,args:["document:mousemove",["$event"]]}],onStopDrag:[{type:i.HostListener,args:["document:mouseup",["$event"]]}],arrowAdjustVolume:[{type:i.HostListener,args:["keydown",["$event"]]}]},e}();t.VgVolume=s},MdqY:function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var r=n("8Y7J"),s=n("7gbQ"),o=n("UOCa"),a=n("d6oB"),l=n("ixSq"),u=n("k1Da"),c=n("OVs2"),p=n("q1/r");function h(){return[s.VgPlayer,o.VgMedia,a.VgCuePoints]}function d(){return[l.VgAPI,u.VgFullscreenAPI,c.VgUtils,p.VgControlsHidden]}i(n("7gbQ")),i(n("UOCa")),i(n("d6oB")),i(n("ixSq")),i(n("k1Da")),i(n("OVs2")),i(n("q1/r")),i(n("PovN")),i(n("fH4+")),i(n("Wl4X")),t.coreDirectives=h,t.coreServices=d;var f=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:h(),exports:h(),providers:d()}]}],e}();t.VgCoreModule=f},NGoC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()},e.prototype.onLoadedMetadata=function(){if(this.vgCuePoints){this.cuePoints=[];for(var e=0,t=this.vgCuePoints.length;e<t;e++){var n=1e3*((this.vgCuePoints[e].endTime>=0?this.vgCuePoints[e].endTime:this.vgCuePoints[e].startTime+1)-this.vgCuePoints[e].startTime),i="0",r="0";"number"==typeof n&&this.target.time.total&&(r=100*n/this.target.time.total+"%",i=100*this.vgCuePoints[e].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[e].$$style={width:r,left:i},this.cuePoints.push(this.vgCuePoints[e])}}},e.prototype.updateCuePoints=function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0},e.prototype.ngOnChanges=function(e){e.vgCuePoints.currentValue&&this.updateCuePoints()},e.prototype.ngDoCheck=function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-scrub-bar-cue-points",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="cue-point-container">\n            <span *ngFor="let cp of cuePoints" [style.width]="cp.$$style?.width" [style.left]="cp.$$style?.left"\n                  class="cue-point"></span>\n        </div>\n    ',styles:["\n        vg-scrub-bar-cue-points {\n            display: flex;\n            width: 100%;\n            height: 5px;\n            pointer-events: none;\n            position: absolute;\n        }\n\n        vg-scrub-bar-cue-points .cue-point-container .cue-point {\n            position: absolute;\n            height: 5px;\n            background-color: rgba(255, 204, 0, 0.7);\n        }\n\n        vg-controls vg-scrub-bar-cue-points {\n            position: absolute;\n            top: calc(50% - 3px);\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgCuePoints:[{type:i.Input}],vgFor:[{type:i.Input}]},e}();t.VgScrubBarCuePoints=s},OVs2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=function(){function e(){}return e.getZIndex=function(){for(var e,t=1,n=document.getElementsByTagName("*"),i=0,r=n.length;i<r;i++)(e=parseInt(window.getComputedStyle(n[i])["z-index"],10))>t&&(t=e+1);return t},e.isMobileDevice=function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")},e.isiOSDevice=function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)},e.isCordova=function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")},e.decorators=[{type:i.Injectable}],e}();t.VgUtils=r},OlqA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("SVse"),s=n("ma0w"),o=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[s.VgOverlayPlay],exports:[s.VgOverlayPlay]}]}],e}();t.VgOverlayPlayModule=o},PovN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=function(){function e(){}return e.VG_ABORT="abort",e.VG_CAN_PLAY="canplay",e.VG_CAN_PLAY_THROUGH="canplaythrough",e.VG_DURATION_CHANGE="durationchange",e.VG_EMPTIED="emptied",e.VG_ENCRYPTED="encrypted",e.VG_ENDED="ended",e.VG_ERROR="error",e.VG_LOADED_DATA="loadeddata",e.VG_LOADED_METADATA="loadedmetadata",e.VG_LOAD_START="loadstart",e.VG_PAUSE="pause",e.VG_PLAY="play",e.VG_PLAYING="playing",e.VG_PROGRESS="progress",e.VG_RATE_CHANGE="ratechange",e.VG_SEEK="seek",e.VG_SEEKED="seeked",e.VG_SEEKING="seeking",e.VG_STALLED="stalled",e.VG_SUSPEND="suspend",e.VG_TIME_UPDATE="timeupdate",e.VG_VOLUME_CHANGE="volumechange",e.VG_WAITING="waiting",e.VG_LOAD="load",e.VG_ENTER="enter",e.VG_EXIT="exit",e.VG_START_ADS="startads",e.VG_END_ADS="endads",e.decorators=[{type:i.Injectable}],e}();t.VgEvents=r},SV7k:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("SVse"),s=n("XlmU"),o=n("jlVH"),a=n("fDV+"),l=n("IAT7"),u=n("mxS9"),c=n("hsw8"),p=n("1WZM"),h=n("A+AZ"),d=n("NGoC"),f=n("7NiZ"),g=n("g0ep"),y=n("T4n0"),b=n("q1/r"),v=n("h06L"),m=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[s.VgControls,o.VgFullscreen,a.VgMute,l.VgVolume,u.VgPlayPause,c.VgPlaybackButton,p.VgScrubBar,h.VgScrubBarBufferingTime,d.VgScrubBarCuePoints,f.VgScrubBarCurrentTime,g.VgTimeDisplay,g.VgUtcPipe,y.VgTrackSelector,v.VgQualitySelector],exports:[s.VgControls,o.VgFullscreen,a.VgMute,l.VgVolume,u.VgPlayPause,c.VgPlaybackButton,p.VgScrubBar,h.VgScrubBarBufferingTime,d.VgScrubBarCuePoints,f.VgScrubBarCurrentTime,g.VgTimeDisplay,g.VgUtcPipe,y.VgTrackSelector,v.VgQualitySelector],providers:[b.VgControlsHidden]}]}],e}();t.VgControlsModule=m},T4n0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.subscriptions=[],this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor);var e=Array.from(this.API.getMasterMedia().elem.children).filter((function(e){return"TRACK"===e.tagName})).filter((function(e){return"subtitles"===e.kind})).map((function(e){return{label:e.label,selected:!0===e.default,id:e.srclang}}));this.tracks=e.concat([{id:null,label:"Off",selected:e.every((function(e){return!1===e.selected}))}]);var t=this.tracks.filter((function(e){return!0===e.selected}))[0];this.trackSelected=t.id,this.ariaValue=t.label},e.prototype.selectTrack=function(e){var t=this;this.trackSelected="null"===e?null:e,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(n){n.language===e?(t.ariaValue=n.label,n.mode="showing"):n.mode="hidden"}))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-track-selector",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="container">\n            <div class="track-selected"\n                 [class.vg-icon-closed_caption]="!trackSelected">\n                {{ trackSelected || \'\' }}\n            </div>\n            \n            <select class="trackSelector" \n                    (change)="selectTrack($event.target.value)"\n                    tabindex="0"\n                    aria-label="track selector"\n                    [attr.aria-valuetext]="ariaValue">\n                <option \n                    *ngFor="let track of tracks"\n                    [value]="track.id"\n                    [selected]="track.selected === true">\n                    {{ track.label }}\n                </option>\n            </select>\n        </div>\n    ',styles:["\n        vg-track-selector {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            width: 50px;\n            height: 50px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n        }\n        vg-track-selector .container {\n            position: relative;\n            display: flex;\n            flex-grow: 1;\n            align-items: center;\n            \n            padding: 0;\n            margin: 5px;\n        }\n        vg-track-selector select.trackSelector {\n            width: 50px;\n            padding: 5px 8px;\n            border: none;\n            background: none;\n            -webkit-appearance: none;\n            -moz-appearance: none;\n            appearance: none;\n            color: transparent;\n            font-size: 16px;\n        }\n        vg-track-selector select.trackSelector::-ms-expand {\n            display: none;\n        }\n        vg-track-selector select.trackSelector option {\n            color: #000;\n        }\n        vg-track-selector .track-selected {\n            position: absolute;\n            width: 100%;\n            height: 50px;\n            top: -6px;\n            text-align: center;\n            text-transform: uppercase;\n            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n            padding-top: 2px;\n            pointer-events: none;\n        }\n        vg-track-selector .vg-icon-closed_caption:before {\n            width: 100%;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}]},e}();t.VgTrackSelector=s},UOCa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("qCKp"),s=n("fH4+"),o=n("ixSq"),a=n("PovN"),l=n("qCKp"),u=function(){function e(e,t){this.api=e,this.ref=t,this.state=s.VgStates.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new r.Subject}return e.prototype.ngOnInit=function(){var e=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:r.fromEvent(this.elem,a.VgEvents.VG_ABORT),canPlay:r.fromEvent(this.elem,a.VgEvents.VG_CAN_PLAY),canPlayThrough:r.fromEvent(this.elem,a.VgEvents.VG_CAN_PLAY_THROUGH),durationChange:r.fromEvent(this.elem,a.VgEvents.VG_DURATION_CHANGE),emptied:r.fromEvent(this.elem,a.VgEvents.VG_EMPTIED),encrypted:r.fromEvent(this.elem,a.VgEvents.VG_ENCRYPTED),ended:r.fromEvent(this.elem,a.VgEvents.VG_ENDED),error:r.fromEvent(this.elem,a.VgEvents.VG_ERROR),loadedData:r.fromEvent(this.elem,a.VgEvents.VG_LOADED_DATA),loadedMetadata:r.fromEvent(this.elem,a.VgEvents.VG_LOADED_METADATA),loadStart:r.fromEvent(this.elem,a.VgEvents.VG_LOAD_START),pause:r.fromEvent(this.elem,a.VgEvents.VG_PAUSE),play:r.fromEvent(this.elem,a.VgEvents.VG_PLAY),playing:r.fromEvent(this.elem,a.VgEvents.VG_PLAYING),progress:r.fromEvent(this.elem,a.VgEvents.VG_PROGRESS),rateChange:r.fromEvent(this.elem,a.VgEvents.VG_RATE_CHANGE),seeked:r.fromEvent(this.elem,a.VgEvents.VG_SEEKED),seeking:r.fromEvent(this.elem,a.VgEvents.VG_SEEKING),stalled:r.fromEvent(this.elem,a.VgEvents.VG_STALLED),suspend:r.fromEvent(this.elem,a.VgEvents.VG_SUSPEND),timeUpdate:r.fromEvent(this.elem,a.VgEvents.VG_TIME_UPDATE),volumeChange:r.fromEvent(this.elem,a.VgEvents.VG_VOLUME_CHANGE),waiting:r.fromEvent(this.elem,a.VgEvents.VG_WAITING),startAds:r.fromEvent(window,a.VgEvents.VG_START_ADS),endAds:r.fromEvent(window,a.VgEvents.VG_END_ADS),mutation:r.Observable.create((function(t){var n=new MutationObserver((function(e){t.next(e)}));return n.observe(e.elem,{childList:!0,attributes:!0}),function(){n.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){e.prepareSync()}))},e.prototype.prepareSync=function(){var e=this,t=[];for(var n in this.api.medias)this.api.medias[n]&&t.push(this.api.medias[n].subscriptions.canPlay);this.canPlayAllSubscription=l.combineLatest(t,(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=t.some((function(e){return 4===e.target.readyState}));i&&!e.syncSubscription&&(e.startSync(),e.syncSubscription.unsubscribe())})).subscribe()},e.prototype.startSync=function(){var e=this;this.syncSubscription=l.timer(0,1e3).subscribe((function(){for(var t in e.api.medias)if(e.api.medias[t]!==e){var n=e.api.medias[t].currentTime-e.currentTime;n<-.3||n>.3?(e.playAtferSync=e.state===s.VgStates.VG_PLAYING,e.pause(),e.api.medias[t].pause(),e.api.medias[t].currentTime=e.currentTime):e.playAtferSync&&(e.play(),e.api.medias[t].play(),e.playAtferSync=!1)}}))},e.prototype.onMutation=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if("attributes"===i.type&&"src"===i.attributeName){if(i.target.src&&i.target.src.length>0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}},e.prototype.loadMedia=function(){var e=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return e.vgMedia.load()}),10)},e.prototype.play=function(){var e=this;if(!(this.playPromise||this.state!==s.VgStates.VG_PAUSED&&this.state!==s.VgStates.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){e.playPromise=null})).catch((function(){e.playPromise=null})),this.playPromise},e.prototype.pause=function(){var e=this;this.playPromise?this.playPromise.then((function(){e.vgMedia.pause()})):this.vgMedia.pause()},Object.defineProperty(e.prototype,"id",{get:function(){var e=void 0;return this.vgMedia&&(e=this.vgMedia.id),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.vgMedia.duration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.vgMedia.currentTime},set:function(e){this.vgMedia.currentTime=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.vgMedia.volume},set:function(e){this.vgMedia.volume=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"playbackRate",{get:function(){return this.vgMedia.playbackRate},set:function(e){this.vgMedia.playbackRate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this.vgMedia.buffered},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textTracks",{get:function(){return this.vgMedia.textTracks},enumerable:!0,configurable:!0}),e.prototype.onCanPlay=function(e){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()},e.prototype.onCanPlayThrough=function(e){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()},e.prototype.onLoadMetadata=function(e){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=s.VgStates.VG_PAUSED;var t=Math.round(this.time.total);this.isLive=t===1/0,this.ref.detectChanges()},e.prototype.onWait=function(e){this.isWaiting=!0,this.ref.detectChanges()},e.prototype.onComplete=function(e){this.isCompleted=!0,this.state=s.VgStates.VG_ENDED,this.ref.detectChanges()},e.prototype.onStartPlaying=function(e){this.state=s.VgStates.VG_PLAYING,this.ref.detectChanges()},e.prototype.onPlay=function(e){this.state=s.VgStates.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()},e.prototype.onPause=function(e){this.state=s.VgStates.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()},e.prototype.onTimeUpdate=function(e){var t=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},t>=0&&(this.buffer={end:1e3*this.buffered.end(t)}),this.ref.detectChanges()},e.prototype.onProgress=function(e){var t=this.buffered.length-1;t>=0&&(this.buffer={end:1e3*this.buffered.end(t)}),this.ref.detectChanges()},e.prototype.onVolumeChange=function(e){this.ref.detectChanges()},e.prototype.onError=function(e){this.ref.detectChanges()},e.prototype.bufferCheck=function(){var e=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPos<this.lastPlayPos+e&&(this.isBufferDetected=!0),this.isBufferDetected&&this.currentPlayPos>this.lastPlayPos+e&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos},e.prototype.startBufferCheck=function(){var e=this;this.checkBufferSubscription=l.timer(0,this.checkInterval).subscribe((function(){e.bufferCheck()}))},e.prototype.stopBufferCheck=function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)},e.prototype.seekTime=function(e,t){void 0===t&&(t=!1),this.currentTime=t?e*this.duration/100:e},e.prototype.addTextTrack=function(e,t,n,i){var r=this.vgMedia.addTextTrack(e,t,n);return i&&(r.mode=i),r},e.prototype.ngOnDestroy=function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)},e.decorators=[{type:i.Directive,args:[{selector:"[vgMedia]"}]}],e.ctorParameters=function(){return[{type:o.VgAPI},{type:i.ChangeDetectorRef}]},e.propDecorators={vgMedia:[{type:i.Input}],vgMaster:[{type:i.Input}]},e}();t.VgMedia=u},Wl4X:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return Object.defineProperty(e.prototype,"audioTracks",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.addTextTrack=function(e,t,n){return null},e.prototype.canPlayType=function(e){return null},e.prototype.load=function(){},e.prototype.msClearEffects=function(){},e.prototype.msGetAsCastingSource=function(){return null},e.prototype.msInsertAudioEffect=function(e,t,n){},e.prototype.msSetMediaKeys=function(e){},e.prototype.msSetMediaProtectionManager=function(e){},e.prototype.pause=function(){},e.prototype.play=function(){return null},e.prototype.setMediaKeys=function(e){return null},e.prototype.addEventListener=function(e,t,n){},e}();t.VgMediaElement=i},XlmU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=n("q1/r"),o=n("fH4+"),a=n("qCKp"),l=function(){function e(e,t,n){this.API=e,this.ref=t,this.hidden=n,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=t.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.mouseMove$=a.fromEvent(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=a.fromEvent(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))},e.prototype.ngAfterViewInit=function(){this.vgAutohide?this.hide():this.show()},e.prototype.onPlay=function(){this.vgAutohide&&this.hide()},e.prototype.onPause=function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)},e.prototype.onStartAds=function(){this.isAdsPlaying="none"},e.prototype.onEndAds=function(){this.isAdsPlaying="initial"},e.prototype.hide=function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())},e.prototype.show=function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()},e.prototype.hideAsync=function(){var e=this;this.API.state===o.VgStates.VG_PLAYING&&(this.timer=setTimeout((function(){e.hideControls=!0,e.hidden.state(!0)}),1e3*this.vgAutohideTime))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-controls",encapsulation:i.ViewEncapsulation.None,template:"<ng-content></ng-content>",styles:["\n        vg-controls {\n            position: absolute;\n            display: flex;\n            width: 100%;\n            height: 50px;\n            z-index: 300;\n            bottom: 0;\n            background-color: rgba(0, 0, 0, 0.5);\n            -webkit-transition: bottom 1s;\n            -khtml-transition: bottom 1s;\n            -moz-transition: bottom 1s;\n            -ms-transition: bottom 1s;\n            transition: bottom 1s;\n        }\n\n        vg-controls.hide {  \n            bottom: -50px;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:r.VgAPI},{type:i.ElementRef},{type:s.VgControlsHidden}]},e.propDecorators={isAdsPlaying:[{type:i.HostBinding,args:["style.pointer-events"]}],hideControls:[{type:i.HostBinding,args:["class.hide"]}],vgFor:[{type:i.Input}],vgAutohide:[{type:i.Input}],vgAutohideTime:[{type:i.Input}]},e}();t.VgControls=l},"a2F+":function(e,t,n){"use strict";n.r(t);var i=n("8Y7J"),r=n("gcOT").a.Share,s=function(){function e(t){_classCallCheck(this,e),this.route=t,this.start_playing=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe((function(t){t.data.state.subscribe((function(t){e.video_playlist_model=t,t.isShell||(e.video_playlist_model.video_playlist=t.videos,e.video_playlist_model.selected_video=t.videos[0])}),(function(e){}))}),(function(e){}))}},{key:"playMedia",value:function(e){e!==this.video_playlist_model.selected_video&&(this.video_playlist_model.selected_video=e)}},{key:"onPlayerReady",value:function(e){this.api=e,this.api.getDefaultMedia().subscriptions.loadedMetadata.subscribe(this.playVideo.bind(this))}},{key:"playVideo",value:function(){this.start_playing?this.api.play():this.start_playing=!0}},{key:"shareMedia",value:function(){var e=this.video_playlist_model.selected_video;r.share({title:e.title,text:e.description,url:"https://ionicthemes.com/",dialogTitle:"Share Media"}).then((function(){return console.log("Successful share")})).catch((function(e){return console.log("Error sharing",e)}))}},{key:"isShell",get:function(){return!(!this.video_playlist_model||!this.video_playlist_model.isShell)}}]),e}(),o=n("f/Ol"),a=function e(){_classCallCheck(this,e)},l=function(e){function t(){var e;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).selected_video=new a,e.video_playlist=[new a,new a,new a],e}return _inherits(t,e),t}(o.b),u=function(){function e(t){_classCallCheck(this,e),this.http=t}return _createClass(e,[{key:"getVideoPlaylistDataSource",value:function(){return this.http.get("./assets/sample-data/video-playlist/video-playlist.json")}},{key:"getVideoPlaylistStore",value:function(e){if(!this.videoPlaylistDataStore){var t=new l;this.videoPlaylistDataStore=new o.a(t),this.videoPlaylistDataStore.load(e)}return this.videoPlaylistDataStore}}]),e}(),c=function(){function e(t){_classCallCheck(this,e),this.videoPlaylistService=t}return _createClass(e,[{key:"resolve",value:function(){var e=this.videoPlaylistService.getVideoPlaylistDataSource();return this.videoPlaylistService.getVideoPlaylistStore(e)}}]),e}(),p=c,h=function e(){_classCallCheck(this,e)},d=n("pMnS"),f=n("MKJQ"),g=n("sZkV"),y=n("6LEC"),b=n("2gss"),v=n("M4wD"),m=n("B7gC"),P=n("TAV1"),_=n("zK/y"),C=n("ixSq"),k=n("k1Da"),V=n("q1/r"),E=n("7gbQ"),x=i["\u0275crt"]({encapsulation:2,styles:["\n        vg-player {\n            font-family: 'videogular';\n            position: relative;\n            display: flex;\n            width: 100%;\n            height: 100%;\n            overflow: hidden;\n            background-color: black;\n        }\n\n        vg-player.fullscreen {\n            position: fixed;\n            left: 0;\n            top: 0;\n        }\n\n        vg-player.native-fullscreen.controls-hidden {\n            cursor: none;\n        }\n    "],data:{}});function w(e){return i["\u0275vid"](0,[i["\u0275ncd"](null,0)],null,null)}var O=n("UOCa"),A=n("SVse"),S=n("iInd"),I=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{--page-margin:var(--app-fair-margin);--page-background:var(--app-background)}.video-playlist-content[_ngcontent-%COMP%]{--background:var(--page-background)}.video-playlist-content[_ngcontent-%COMP%]   .video-data-section[_ngcontent-%COMP%]{padding:var(--page-margin)}.video-playlist-content[_ngcontent-%COMP%]   .video-data-section[_ngcontent-%COMP%]   .video-title[_ngcontent-%COMP%]{margin-top:0;margin-bottom:calc(var(--page-margin)/ 2);color:var(--ion-color-secondary)}.video-playlist-content[_ngcontent-%COMP%]   .video-data-section[_ngcontent-%COMP%]   .video-description[_ngcontent-%COMP%]{margin:0;font-size:13px;line-height:1.3;letter-spacing:.3px;color:var(--ion-color-dark)}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]{padding:0 var(--page-margin);padding-bottom:var(--page-margin)}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .playlist-item-row[_ngcontent-%COMP%]{--ion-grid-column-padding:0px}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .playlist-item-row[_ngcontent-%COMP%]:not(:first-child){padding-top:calc(var(--page-margin)/ 2)}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .playlist-item-row[_ngcontent-%COMP%]:not(:last-child){padding-bottom:calc(var(--page-margin)/ 2);box-shadow:inset 0 -7px 3px -8px var(--ion-color-darkest)}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .play-icon-wrapper[_ngcontent-%COMP%]{height:100%;text-decoration:none;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .play-icon-wrapper[_ngcontent-%COMP%]   .play-icon[_ngcontent-%COMP%]{color:var(--ion-color-secondary);background:rgba(var(--ion-color-lightest-rgb),.7);font-size:20px;padding:8px;border-radius:50%}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .video-info-wrapper[_ngcontent-%COMP%]{-webkit-padding-start:var(--page-margin);padding-inline-start:var(--page-margin);align-self:center}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .video-info-wrapper[_ngcontent-%COMP%]   .image-title[_ngcontent-%COMP%]{margin:0;margin-bottom:calc(var(--page-margin)/ 4);color:var(--ion-color-secondary);font-size:14px}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .video-info-wrapper[_ngcontent-%COMP%]   .image-title[_ngcontent-%COMP%]   app-text-shell[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-playlist-content[_ngcontent-%COMP%]   .video-playlist-section[_ngcontent-%COMP%]   .video-info-wrapper[_ngcontent-%COMP%]   .image-description[_ngcontent-%COMP%]{margin:0;color:var(--ion-color-dark);font-size:13px;line-height:1.3;letter-spacing:.3px;display:-webkit-box;-webkit-line-clamp:3;overflow:hidden;-webkit-box-orient:vertical}"],["app-image-shell.video-image[_ngcontent-%COMP%]{background-position:center}.image-title[_ngcontent-%COMP%] > app-text-shell[_ngcontent-%COMP%]{--text-shell-line-height:14px}.image-description[_ngcontent-%COMP%] > app-text-shell[_ngcontent-%COMP%]{--text-shell-line-height:13px}"]],data:{}});function M(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"source",[],[[8,"src",4],[8,"type",0]],null,null,null,null))],null,(function(e,t){e(t,0,0,t.context.$implicit.src,t.context.$implicit.type)}))}function R(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"ion-row",[["class","playlist-item-row"]],null,null,null,f.wb,f.C)),i["\u0275did"](1,49152,null,0,g.gb,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](2,0,null,0,9,"ion-col",[["size","4"]],null,null,null,f.ab,f.g)),i["\u0275did"](3,49152,null,0,g.t,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],{size:[0,"size"]},null),(e()(),i["\u0275eld"](4,0,null,0,7,"app-image-shell",[["animation","spinner"],["class","video-image"]],[[2,"img-loaded",null],[4,"backgroundImage",null],[1,"display",0]],[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.playMedia(e.context.$implicit)&&i),i}),y.b,y.a)),i["\u0275did"](5,49152,null,0,b.a,[i.PLATFORM_ID],{display:[0,"display"],src:[1,"src"],alt:[2,"alt"]},null),(e()(),i["\u0275eld"](6,0,null,0,5,"app-aspect-ratio",[],[[4,"padding",null]],null,null,v.b,v.a)),i["\u0275did"](7,49152,null,0,m.a,[],{ratio:[0,"ratio"]},null),i["\u0275pod"](8,{w:0,h:1}),(e()(),i["\u0275eld"](9,0,null,0,2,"a",[["class","play-icon-wrapper"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.playMedia(e.context.$implicit)&&i),i}),null,null)),(e()(),i["\u0275eld"](10,0,null,null,1,"ion-icon",[["class","play-icon"],["name","play"]],null,null,null,f.hb,f.n)),i["\u0275did"](11,49152,null,0,g.C,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],{name:[0,"name"]},null),(e()(),i["\u0275eld"](12,0,null,0,7,"ion-col",[["class","video-info-wrapper"],["size","8"]],null,null,null,f.ab,f.g)),i["\u0275did"](13,49152,null,0,g.t,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],{size:[0,"size"]},null),(e()(),i["\u0275eld"](14,0,null,0,2,"h4",[["class","image-title"]],null,null,null,null,null)),(e()(),i["\u0275eld"](15,0,null,null,1,"app-text-shell",[["animation","gradient"]],[[2,"text-loaded",null]],null,null,P.b,P.a)),i["\u0275did"](16,49152,null,0,_.a,[],{data:[0,"data"]},null),(e()(),i["\u0275eld"](17,0,null,0,2,"p",[["class","image-description"]],null,null,null,null,null)),(e()(),i["\u0275eld"](18,0,null,null,1,"app-text-shell",[["animation","gradient"],["lines","3"]],[[2,"text-loaded",null]],null,null,P.b,P.a)),i["\u0275did"](19,49152,null,0,_.a,[],{data:[0,"data"]},null)],(function(e,t){e(t,3,0,"4"),e(t,5,0,"cover",t.context.$implicit.thumbnail,"video thumbnail");var n=e(t,8,0,3,2);e(t,7,0,n),e(t,11,0,"play"),e(t,13,0,"8"),e(t,16,0,t.context.$implicit.title),e(t,19,0,t.context.$implicit.description)}),(function(e,t){e(t,4,0,i["\u0275nov"](t,5).imageLoaded,i["\u0275nov"](t,5).backgroundImage,i["\u0275nov"](t,5).display),e(t,6,0,i["\u0275nov"](t,7).ratioPadding),e(t,15,0,i["\u0275nov"](t,16).textLoaded),e(t,18,0,i["\u0275nov"](t,19).textLoaded)}))}function D(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,16,"ion-header",[],null,null,null,f.gb,f.m)),i["\u0275did"](1,49152,null,0,g.B,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](2,0,null,0,14,"ion-toolbar",[["color","primary"]],null,null,null,f.Nb,f.T)),i["\u0275did"](3,49152,null,0,g.zb,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],{color:[0,"color"]},null),(e()(),i["\u0275eld"](4,0,null,0,3,"ion-buttons",[["slot","start"]],null,null,null,f.Y,f.e)),i["\u0275did"](5,49152,null,0,g.l,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](6,0,null,0,1,"ion-menu-button",[],null,null,null,f.pb,f.w)),i["\u0275did"](7,49152,null,0,g.R,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](8,0,null,0,2,"ion-title",[],null,null,null,f.Lb,f.R)),i["\u0275did"](9,49152,null,0,g.xb,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275ted"](-1,0,["Video Playlist"])),(e()(),i["\u0275eld"](11,0,null,0,5,"ion-buttons",[["slot","end"]],null,null,null,f.Y,f.e)),i["\u0275did"](12,49152,null,0,g.l,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](13,0,null,0,3,"ion-button",[],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.shareMedia()&&i),i}),f.X,f.d)),i["\u0275did"](14,49152,null,0,g.k,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](15,0,null,0,1,"ion-icon",[["name","share"],["slot","icon-only"]],null,null,null,f.hb,f.n)),i["\u0275did"](16,49152,null,0,g.C,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],{name:[0,"name"]},null),(e()(),i["\u0275eld"](17,0,null,null,24,"ion-content",[["class","video-playlist-content"]],null,null,null,f.bb,f.h)),i["\u0275did"](18,49152,null,0,g.u,[i.ChangeDetectorRef,i.ElementRef,i.NgZone],null,null),(e()(),i["\u0275eld"](19,0,null,0,12,"app-aspect-ratio",[],[[4,"padding",null]],null,null,v.b,v.a)),i["\u0275did"](20,49152,null,0,m.a,[],{ratio:[0,"ratio"]},null),i["\u0275pod"](21,{w:0,h:1}),(e()(),i["\u0275eld"](22,0,null,0,9,"vg-player",[["class","video-player"]],[[2,"fullscreen",null],[2,"native-fullscreen",null],[2,"controls-hidden",null],[4,"z-index",null]],[[null,"onPlayerReady"]],(function(e,t,n){var i=!0;return"onPlayerReady"===t&&(i=!1!==e.component.onPlayerReady(n)&&i),i}),w,x)),i["\u0275prd"](512,null,C.VgAPI,C.VgAPI,[]),i["\u0275prd"](512,null,k.VgFullscreenAPI,k.VgFullscreenAPI,[]),i["\u0275prd"](512,null,V.VgControlsHidden,V.VgControlsHidden,[]),i["\u0275did"](26,1228800,null,1,E.VgPlayer,[i.ElementRef,C.VgAPI,k.VgFullscreenAPI,V.VgControlsHidden],null,{onPlayerReady:"onPlayerReady"}),i["\u0275qud"](603979776,1,{medias:1}),(e()(),i["\u0275eld"](28,0,[["player_video",1]],0,3,"video",[["class","expand-horizontally"],["controls",""],["id","player-video"],["preload","auto"]],null,null,null,null,null)),i["\u0275did"](29,212992,[[1,4]],0,O.VgMedia,[C.VgAPI,i.ChangeDetectorRef],{vgMedia:[0,"vgMedia"]},null),(e()(),i["\u0275and"](16777216,null,null,1,null,M)),i["\u0275did"](31,278528,null,0,A.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275eld"](32,0,null,0,6,"section",[["class","video-data-section"]],null,null,null,null,null)),(e()(),i["\u0275eld"](33,0,null,null,2,"h3",[["class","video-title"]],null,null,null,null,null)),(e()(),i["\u0275eld"](34,0,null,null,1,"app-text-shell",[["animation","gradient"]],[[2,"text-loaded",null]],null,null,P.b,P.a)),i["\u0275did"](35,49152,null,0,_.a,[],{data:[0,"data"]},null),(e()(),i["\u0275eld"](36,0,null,null,2,"p",[["class","video-description"]],null,null,null,null,null)),(e()(),i["\u0275eld"](37,0,null,null,1,"app-text-shell",[["animation","gradient"],["lines","5"]],[[2,"text-loaded",null]],null,null,P.b,P.a)),i["\u0275did"](38,49152,null,0,_.a,[],{data:[0,"data"]},null),(e()(),i["\u0275eld"](39,0,null,0,2,"section",[["class","video-playlist-section"]],null,null,null,null,null)),(e()(),i["\u0275and"](16777216,null,null,1,null,R)),i["\u0275did"](41,278528,null,0,A.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,3,0,"primary"),e(t,16,0,"share");var r=e(t,21,0,16,9);e(t,20,0,r),e(t,29,0,i["\u0275nov"](t,28)),e(t,31,0,null==n.video_playlist_model.selected_video?null:n.video_playlist_model.selected_video.sources),e(t,35,0,null==n.video_playlist_model.selected_video?null:n.video_playlist_model.selected_video.title),e(t,38,0,null==n.video_playlist_model.selected_video?null:n.video_playlist_model.selected_video.description),e(t,41,0,n.video_playlist_model.video_playlist)}),(function(e,t){e(t,19,0,i["\u0275nov"](t,20).ratioPadding),e(t,22,0,i["\u0275nov"](t,26).isFullscreen,i["\u0275nov"](t,26).isNativeFullscreen,i["\u0275nov"](t,26).areControlsHidden,i["\u0275nov"](t,26).zIndex),e(t,34,0,i["\u0275nov"](t,35).textLoaded),e(t,37,0,i["\u0275nov"](t,38).textLoaded)}))}var T=i["\u0275ccf"]("app-video-playlist",s,(function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"app-video-playlist",[],[[2,"is-shell",null]],null,null,D,I)),i["\u0275did"](1,114688,null,0,s,[S.a],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,i["\u0275nov"](t,1).isShell)}))}),{},{},[]),j=n("s7LF"),F=n("IheW"),N=n("ZpN7"),B=n("Kt/9"),G=n("OVs2"),L=n("j1ZV"),H=n("MdqY"),$=n("SV7k"),q=n("OlqA"),z=n("c9mH");n.d(t,"VideoPlaylistPageModuleNgFactory",(function(){return U}));var U=i["\u0275cmf"](h,[],(function(e){return i["\u0275mod"]([i["\u0275mpd"](512,i.ComponentFactoryResolver,i["\u0275CodegenComponentFactoryResolver"],[[8,[d.a,T]],[3,i.ComponentFactoryResolver],i.NgModuleRef]),i["\u0275mpd"](4608,A.NgLocalization,A.NgLocaleLocalization,[i.LOCALE_ID,[2,A["\u0275angular_packages_common_common_a"]]]),i["\u0275mpd"](4608,g.b,g.b,[i.NgZone,i.ApplicationRef]),i["\u0275mpd"](4608,g.Fb,g.Fb,[g.b,i.ComponentFactoryResolver,i.Injector]),i["\u0275mpd"](4608,g.Hb,g.Hb,[g.b,i.ComponentFactoryResolver,i.Injector]),i["\u0275mpd"](4608,j.u,j.u,[]),i["\u0275mpd"](4608,F.h,F.n,[A.DOCUMENT,i.PLATFORM_ID,F.l]),i["\u0275mpd"](4608,F.o,F.o,[F.h,F.m]),i["\u0275mpd"](5120,F.a,(function(e){return[e]}),[F.o]),i["\u0275mpd"](4608,F.k,F.k,[]),i["\u0275mpd"](6144,F.i,null,[F.k]),i["\u0275mpd"](4608,F.g,F.g,[F.i]),i["\u0275mpd"](6144,F.b,null,[F.g]),i["\u0275mpd"](4608,F.f,F.j,[F.b,i.Injector]),i["\u0275mpd"](4608,F.c,F.c,[F.f]),i["\u0275mpd"](5120,i.APP_INITIALIZER,(function(e){return[N.b(e)]}),[B.a]),i["\u0275mpd"](4608,C.VgAPI,C.VgAPI,[]),i["\u0275mpd"](4608,k.VgFullscreenAPI,k.VgFullscreenAPI,[]),i["\u0275mpd"](4608,G.VgUtils,G.VgUtils,[]),i["\u0275mpd"](4608,V.VgControlsHidden,V.VgControlsHidden,[]),i["\u0275mpd"](4608,u,u,[F.c]),i["\u0275mpd"](4608,c,c,[u]),i["\u0275mpd"](1073742336,A.CommonModule,A.CommonModule,[]),i["\u0275mpd"](1073742336,g.Bb,g.Bb,[]),i["\u0275mpd"](1073742336,j.t,j.t,[]),i["\u0275mpd"](1073742336,j.j,j.j,[]),i["\u0275mpd"](1073742336,F.e,F.e,[]),i["\u0275mpd"](1073742336,F.d,F.d,[]),i["\u0275mpd"](1073742336,N.a,N.a,[]),i["\u0275mpd"](1073742336,L.a,L.a,[]),i["\u0275mpd"](1073742336,S.p,S.p,[[2,S.u],[2,S.m]]),i["\u0275mpd"](1073742336,H.VgCoreModule,H.VgCoreModule,[]),i["\u0275mpd"](1073742336,$.VgControlsModule,$.VgControlsModule,[]),i["\u0275mpd"](1073742336,q.VgOverlayPlayModule,q.VgOverlayPlayModule,[]),i["\u0275mpd"](1073742336,z.VgBufferingModule,z.VgBufferingModule,[]),i["\u0275mpd"](1073742336,h,h,[]),i["\u0275mpd"](256,F.l,"XSRF-TOKEN",[]),i["\u0275mpd"](256,F.m,"X-XSRF-TOKEN",[]),i["\u0275mpd"](1024,S.k,(function(){return[[{path:"",component:s,resolve:{data:p}}]]}),[])])}))},c9mH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("SVse"),s=n("7j3K"),o=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],declarations:[s.VgBuffering],exports:[s.VgBuffering]}]}],e}();t.VgBufferingModule=o},d6oB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("PovN"),s=n("qCKp"),o=function(){function e(e){this.ref=e,this.onEnterCuePoint=new i.EventEmitter,this.onUpdateCuePoint=new i.EventEmitter,this.onExitCuePoint=new i.EventEmitter,this.onCompleteCuePoint=new i.EventEmitter,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return e.prototype.ngOnInit=function(){this.onLoad$=s.fromEvent(this.ref.nativeElement,r.VgEvents.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))},e.prototype.onLoad=function(e){var t=e.target.track.cues;this.ref.nativeElement.cues=t,this.updateCuePoints(t)},e.prototype.updateCuePoints=function(e){this.cuesSubscriptions.forEach((function(e){return e.unsubscribe()}));for(var t=0,n=e.length;t<n;t++)this.onEnter$=s.fromEvent(e[t],r.VgEvents.VG_ENTER),this.cuesSubscriptions.push(this.onEnter$.subscribe(this.onEnter.bind(this))),this.onExit$=s.fromEvent(e[t],r.VgEvents.VG_EXIT),this.cuesSubscriptions.push(this.onExit$.subscribe(this.onExit.bind(this)))},e.prototype.onEnter=function(e){this.onEnterCuePoint.emit(e.target)},e.prototype.onExit=function(e){this.onExitCuePoint.emit(e.target)},e.prototype.ngDoCheck=function(){this.ref.nativeElement.cues&&this.totalCues!==this.ref.nativeElement.track.cues.length&&(this.totalCues=this.ref.nativeElement.track.cues.length,this.ref.nativeElement.cues=this.ref.nativeElement.track.cues,this.updateCuePoints(this.ref.nativeElement.track.cues))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Directive,args:[{selector:"[vgCuePoints]"}]}],e.ctorParameters=function(){return[{type:i.ElementRef}]},e.propDecorators={onEnterCuePoint:[{type:i.Output,args:["onEnterCuePoint"]}],onUpdateCuePoint:[{type:i.Output,args:["onUpdateCuePoint"]}],onExitCuePoint:[{type:i.Output,args:["onExitCuePoint"]}],onCompleteCuePoint:[{type:i.Output,args:["onCompleteCuePoint"]}]},e}();t.VgCuePoints=o},"f/Ol":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return p}));var i=n("jtHE"),r=n("LRne"),s=n("itXk"),o=n("3E0/"),a=n("lJxs"),l=n("JX91"),u=n("Kt/9"),c=function e(){_classCallCheck(this,e),this.isShell=!1},p=function(){function e(t){_classCallCheck(this,e),this.shellModel=t,this.networkDelay=u.a.settings&&u.a.settings.networkDelay?u.a.settings.networkDelay:0,this.timeline=new i.a(1)}return _createClass(e,[{key:"load",value:function(t){var n=this;e.AppendShell(t,this.shellModel,this.networkDelay).subscribe((function(e){n.timeline.next(e)}))}},{key:"state",get:function(){return this.timeline.asObservable()}}],[{key:"AppendShell",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400,i=Object(r.a)(!0).pipe(Object(o.a)(n));return Object(s.a)([i,e]).pipe(Object(a.a)((function(e){var t=_slicedToArray(e,2),n=(t[0],t[1]);return Object.assign(n,{isShell:!1})})),Object(l.a)(Object.assign(t,{isShell:!0})))}}]),e}()},"fDV+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.subscriptions=[],this.ariaValue="unmuted",this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume},e.prototype.onClick=function(){this.changeMuteState()},e.prototype.onKeyDown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.changeMuteState())},e.prototype.changeMuteState=function(){var e=this.getVolume();0===e?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=e,this.target.volume=0)},e.prototype.getVolume=function(){var e=this.target?this.target.volume:0;return this.ariaValue=e?"unmuted":"muted",e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-mute",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="icon"\n             [class.vg-icon-volume_up]="getVolume() >= 0.75"\n             [class.vg-icon-volume_down]="getVolume() >= 0.25 && getVolume() < 0.75"\n             [class.vg-icon-volume_mute]="getVolume() > 0 && getVolume() < 0.25"\n             [class.vg-icon-volume_off]="getVolume() === 0"\n             tabindex="0"\n             role="button"\n             aria-label="mute button"\n             [attr.aria-valuetext]="ariaValue">\n        </div>',styles:["\n        vg-mute {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -khtml-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            height: 50px;\n            width: 50px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n        }\n\n        vg-mute .icon {\n            pointer-events: none;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click"]}],onKeyDown:[{type:i.HostListener,args:["keydown",["$event"]]}]},e}();t.VgMute=s},"fH4+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=function(){function e(){}return e.VG_ENDED="ended",e.VG_PAUSED="paused",e.VG_PLAYING="playing",e.VG_LOADING="waiting",e.decorators=[{type:i.Injectable}],e}();t.VgStates=r},g0ep:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(){}return e.prototype.transform=function(e,t){var n=new Date(e),i=t,r=n.getUTCSeconds(),s=n.getUTCMinutes(),o=n.getUTCHours();return r<10&&(r="0"+r),s<10&&(s="0"+s),o<10&&(o="0"+o),(i=(i=i.replace(/ss/g,r)).replace(/mm/g,s)).replace(/hh/g,o)},e.decorators=[{type:i.Pipe,args:[{name:"vgUtc"}]}],e}();t.VgUtcPipe=s;var o=function(){function e(e,t){this.API=t,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.getTime=function(){var e=0;return this.target&&(e=Math.round(this.target.time[this.vgProperty]),e=isNaN(e)||this.target.isLive?0:e),e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-time-display",encapsulation:i.ViewEncapsulation.None,template:'\n        <span *ngIf="target?.isLive">LIVE</span>\n        <span *ngIf="!target?.isLive">{{ getTime() | vgUtc:vgFormat }}</span>\n        <ng-content></ng-content>\n    ',styles:["\n        vg-time-display {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            height: 50px;\n            width: 60px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n            pointer-events: none;\n            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],vgProperty:[{type:i.Input}],vgFormat:[{type:i.Input}]},e}();t.VgTimeDisplay=o},h06L:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.onBitrateChange=new i.EventEmitter,this.subscriptions=[],this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.bitrates.currentValue&&e.bitrates.currentValue.length&&this.bitrates.forEach((function(e){return e.label=e.label||Math.round(e.bitrate/1e3).toString()}))},e.prototype.selectBitrate=function(e){this.bitrateSelected=this.bitrates[e],this.onBitrateChange.emit(this.bitrates[e])},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-quality-selector",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="container">\n            <div class="quality-selected"\n                 [class.vg-icon-hd]="!bitrateSelected">\n                {{ bitrateSelected?.label }}\n            </div>\n            \n            <select class="quality-selector" \n                    (change)="selectBitrate($event.target.value)"\n                    tabindex="0"\n                    aria-label="quality selector"\n                    [attr.aria-valuetext]="ariaValue">\n                <option \n                    *ngFor="let bitrate of bitrates"\n                    [value]="bitrate.qualityIndex"\n                    [selected]="bitrate.qualityIndex === bitrateSelected?.qualityIndex">\n                    {{ bitrate.label }}\n                </option>\n            </select>\n        </div>\n    ',styles:["\n        vg-quality-selector {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            width: 50px;\n            height: 50px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n        }\n        vg-quality-selector .container {\n            position: relative;\n            display: flex;\n            flex-grow: 1;\n            align-items: center;\n            \n            padding: 0;\n            margin: 5px;\n        }\n        vg-quality-selector select.quality-selector {\n            width: 50px;\n            padding: 5px 8px;\n            border: none;\n            background: none;\n            -webkit-appearance: none;\n            -moz-appearance: none;\n            appearance: none;\n            color: transparent;\n            font-size: 16px;\n        }\n        vg-quality-selector select.quality-selector::-ms-expand {\n            display: none;\n        }\n        vg-quality-selector select.quality-selector option {\n            color: #000;\n        }\n        vg-quality-selector .quality-selected {\n            position: absolute;\n            width: 100%;\n            height: 50px;\n            top: -6px;\n            text-align: center;\n            text-transform: uppercase;\n            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n            padding-top: 2px;\n            pointer-events: none;\n        }\n        vg-quality-selector .vg-icon-closed_caption:before {\n            width: 100%;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={bitrates:[{type:i.Input}],onBitrateChange:[{type:i.Output}]},e}();t.VgQualitySelector=s},hsw8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=function(){function e(e,t){this.API=t,this.subscriptions=[],this.ariaValue=1,this.elem=e.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.onClick=function(){this.updatePlaybackSpeed()},e.prototype.onKeyDown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.updatePlaybackSpeed())},e.prototype.updatePlaybackSpeed=function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof r.VgAPI?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]},e.prototype.getPlaybackRate=function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-playback-button",encapsulation:i.ViewEncapsulation.None,template:'\n    <span class="button"\n          tabindex="0"\n          role="button"\n          aria-label="playback speed button"\n          [attr.aria-valuetext]="ariaValue">\n        {{getPlaybackRate()}}x\n    </span>',styles:["\n        vg-playback-button {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            height: 50px;\n            width: 50px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n        }\n\n        vg-playback-button .button {\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            width: 50px;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],playbackValues:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click"]}],onKeyDown:[{type:i.HostListener,args:["keydown",["$event"]]}]},e}();t.VgPlaybackButton=s},ixSq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("fH4+"),s=function(){function e(){this.medias={},this.playerReadyEvent=new i.EventEmitter(!0),this.isPlayerReady=!1}return e.prototype.onPlayerReady=function(e){this.fsAPI=e,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)},e.prototype.getDefaultMedia=function(){for(var e in this.medias)if(this.medias[e])return this.medias[e]},e.prototype.getMasterMedia=function(){var e;for(var t in this.medias)if("true"===this.medias[t].vgMaster||!0===this.medias[t].vgMaster){e=this.medias[t];break}return e||this.getDefaultMedia()},e.prototype.isMasterDefined=function(){var e=!1;for(var t in this.medias)if("true"===this.medias[t].vgMaster||!0===this.medias[t].vgMaster){e=!0;break}return e},e.prototype.getMediaById=function(e){void 0===e&&(e=null);var t=this.medias[e];return e&&"*"!==e||(t=this),t},e.prototype.play=function(){for(var e in this.medias)this.medias[e]&&this.medias[e].play()},e.prototype.pause=function(){for(var e in this.medias)this.medias[e]&&this.medias[e].pause()},Object.defineProperty(e.prototype,"duration",{get:function(){return this.$$getAllProperties("duration")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.$$getAllProperties("currentTime")},set:function(e){this.$$setAllProperties("currentTime",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.$$getAllProperties("state")},set:function(e){this.$$setAllProperties("state",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.$$getAllProperties("volume")},set:function(e){this.$$setAllProperties("volume",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"playbackRate",{get:function(){return this.$$getAllProperties("playbackRate")},set:function(e){this.$$setAllProperties("playbackRate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canPlay",{get:function(){return this.$$getAllProperties("canPlay")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canPlayThrough",{get:function(){return this.$$getAllProperties("canPlayThrough")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMetadataLoaded",{get:function(){return this.$$getAllProperties("isMetadataLoaded")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWaiting",{get:function(){return this.$$getAllProperties("isWaiting")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this.$$getAllProperties("isCompleted")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLive",{get:function(){return this.$$getAllProperties("isLive")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMaster",{get:function(){return this.$$getAllProperties("isMaster")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.$$getAllProperties("time")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this.$$getAllProperties("buffer")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this.$$getAllProperties("buffered")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subscriptions",{get:function(){return this.$$getAllProperties("subscriptions")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textTracks",{get:function(){return this.$$getAllProperties("textTracks")},enumerable:!0,configurable:!0}),e.prototype.seekTime=function(e,t){for(var n in void 0===t&&(t=!1),this.medias)this.medias[n]&&this.$$seek(this.medias[n],e,t)},e.prototype.$$seek=function(e,t,n){var i;void 0===n&&(n=!1);var r=e.duration;n?(this.isMasterDefined()&&(r=this.getMasterMedia().duration),i=t*r/100):i=t,e.currentTime=i},e.prototype.addTextTrack=function(e,t,n){for(var i in this.medias)this.medias[i]&&this.$$addTextTrack(this.medias[i],e,t,n)},e.prototype.$$addTextTrack=function(e,t,n,i){e.addTextTrack(t,n,i)},e.prototype.$$getAllProperties=function(e){var t,n={};for(var i in this.medias)this.medias[i]&&(n[i]=this.medias[i]);switch(Object.keys(n).length){case 0:switch(e){case"state":t=r.VgStates.VG_PAUSED;break;case"playbackRate":case"volume":t=1;break;case"time":t={current:0,total:0,left:0}}break;case 1:t=n[Object.keys(n)[0]][e];break;default:t=n[this.getMasterMedia().id][e]}return t},e.prototype.$$setAllProperties=function(e,t){for(var n in this.medias)this.medias[n]&&(this.medias[n][e]=t)},e.prototype.registerElement=function(e){this.videogularElement=e},e.prototype.registerMedia=function(e){this.medias[e.id]=e},e.prototype.unregisterMedia=function(e){delete this.medias[e.id]},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[]},e}();t.VgAPI=s},jlVH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=n("k1Da"),o=function(){function e(e,t,n){this.API=t,this.fsAPI=n,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=e.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.onChangeFullscreen=function(e){this.ariaValue=e?"fullscren mode":"normal mode",this.isFullscreen=e},e.prototype.onClick=function(){this.changeFullscreenState()},e.prototype.onKeyDown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.changeFullscreenState())},e.prototype.changeFullscreenState=function(){var e=this.target;this.target instanceof r.VgAPI&&(e=null),this.fsAPI.toggleFullscreen(e)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-fullscreen",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="icon"\n             [class.vg-icon-fullscreen]="!isFullscreen"\n             [class.vg-icon-fullscreen_exit]="isFullscreen"\n             tabindex="0"\n             role="button"\n             aria-label="fullscreen button"\n             [attr.aria-valuetext]="ariaValue">\n        </div>',styles:["\n        vg-fullscreen {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -khtml-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            height: 50px;\n            width: 50px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n        }\n\n        vg-fullscreen .icon {\n            pointer-events: none;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI},{type:s.VgFullscreenAPI}]},e.propDecorators={onClick:[{type:i.HostListener,args:["click"]}],onKeyDown:[{type:i.HostListener,args:["keydown",["$event"]]}]},e}();t.VgFullscreen=o},jtHE:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("XNiG"),r=n("qgXg"),s=n("quSY"),o=n("pxpQ"),a=n("9ppp"),l=n("Ylt2"),u=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).scheduler=r,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _inherits(t,e),_createClass(t,[{key:"nextInfiniteTimeWindow",value:function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new c(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,u=i.length;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?t=s.a.EMPTY:(this.observers.push(e),t=new l.a(this,e)),r&&e.add(e=new o.a(e,r)),n)for(var c=0;c<u&&!e.closed;c++)e.next(i[c]);else for(var p=0;p<u&&!e.closed;p++)e.next(i[p].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||r.a).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,s=0;s<r&&!(e-i[s].time<n);)s++;return r>t&&(s=Math.max(s,r-t)),s>0&&i.splice(0,s),i}}]),t}(i.a),c=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n}},k1Da:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("OVs2"),s=n("qCKp"),o=function(){function e(){this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new i.EventEmitter}return e.prototype.init=function(e,t){var n=this;this.videogularElement=e,this.medias=t;var i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var o in i)if(i[o].enabled in document){this.polyfill=i[o];break}if(r.VgUtils.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var a;switch(this.polyfill.onchange){case"mozfullscreenchange":a=document;break;case"webkitendfullscreen":a=this.medias.toArray()[0].elem;break;default:a=e}this.fsChangeSubscription=s.fromEvent(a,this.polyfill.onchange).subscribe((function(){n.onFullscreenChange()}))}},e.prototype.onFullscreenChange=function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)},e.prototype.toggleFullscreen=function(e){void 0===e&&(e=null),this.isFullscreen?this.exit():this.request(e)},e.prototype.request=function(e){e||(e=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(r.VgUtils.isMobileDevice()?((!this.polyfill.enabled&&e===this.videogularElement||r.VgUtils.isiOSDevice())&&(e=this.medias.toArray()[0].elem),this.enterElementInFullScreen(e)):this.enterElementInFullScreen(this.videogularElement))},e.prototype.enterElementInFullScreen=function(e){e[this.polyfill.request]()},e.prototype.exit=function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[]},e}();t.VgFullscreenAPI=o},ma0w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=n("fH4+"),o=n("k1Da"),a=n("q1/r"),l=function(){function e(e,t,n,i){this.API=t,this.fsAPI=n,this.controlsHidden=i,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){var e=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(t){return e.onUpdateBuffer(t)})))},e.prototype.onUpdateBuffer=function(e){this.isBuffering=e},e.prototype.onChangeFullscreen=function(e){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=e)},e.prototype.onHideControls=function(e){this.areControlsHidden=e},e.prototype.onClick=function(){switch(this.getState()){case s.VgStates.VG_PLAYING:this.target.pause();break;case s.VgStates.VG_PAUSED:case s.VgStates.VG_ENDED:this.target.play()}},e.prototype.getState=function(){var e=s.VgStates.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(var t=0,n=this.target.state.length;t<n;t++)if(this.target.state[t]===s.VgStates.VG_PLAYING){e=s.VgStates.VG_PLAYING;break}}else e=this.target.state;return e},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-overlay-play",encapsulation:i.ViewEncapsulation.None,template:'<div class="vg-overlay-play"\n                    [class.native-fullscreen]="isNativeFullscreen"\n                    [class.controls-hidden]="areControlsHidden">\n                   <div class="overlay-play-container"\n                        [class.vg-icon-play_arrow]="getState() !== \'playing\'">\n                   </div>\n               </div>',styles:["\n        vg-overlay-play {\n            z-index: 200;\n        }\n\n        vg-overlay-play.is-buffering {\n            display: none;\n        }\n\n        vg-overlay-play .vg-overlay-play {\n            transition: all 0.5s;\n            cursor: pointer;\n            position: absolute;\n            display: block;\n            color: white;\n            width: 100%;\n            height: 100%;\n            font-size: 80px;\n            filter: alpha(opacity=60);\n            opacity: 0.6;\n        }\n\n        vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n            cursor: none;\n        }\n\n        vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n            pointer-events: none;\n            width: 100%;\n            height: 100%;\n            position: absolute;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            font-size: 80px;\n        }\n\n        vg-overlay-play .vg-overlay-play:hover {\n            filter: alpha(opacity=100);\n            opacity: 1;\n        }\n\n        vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n            transform: scale(1.2);\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI},{type:o.VgFullscreenAPI},{type:a.VgControlsHidden}]},e.propDecorators={vgFor:[{type:i.Input}],isBuffering:[{type:i.HostBinding,args:["class.is-buffering"]}],onClick:[{type:i.HostListener,args:["click"]}]},e}();t.VgOverlayPlay=l},mxS9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8Y7J"),r=n("ixSq"),s=n("fH4+"),o=function(){function e(e,t){this.API=t,this.subscriptions=[],this.ariaValue=s.VgStates.VG_PAUSED,this.elem=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))},e.prototype.onPlayerReady=function(){this.target=this.API.getMediaById(this.vgFor)},e.prototype.onClick=function(){this.playPause()},e.prototype.onKeyDown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.playPause())},e.prototype.playPause=function(){switch(this.getState()){case s.VgStates.VG_PLAYING:this.target.pause();break;case s.VgStates.VG_PAUSED:case s.VgStates.VG_ENDED:this.target.play()}},e.prototype.getState=function(){return this.ariaValue=this.target?this.target.state:s.VgStates.VG_PAUSED,this.ariaValue},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.decorators=[{type:i.Component,args:[{selector:"vg-play-pause",encapsulation:i.ViewEncapsulation.None,template:'\n        <div class="icon"\n             [class.vg-icon-pause]="getState() === \'playing\'"\n             [class.vg-icon-play_arrow]="getState() === \'paused\' || getState() === \'ended\'"\n             tabindex="0"\n             role="button"\n             [attr.aria-label]="getState() === \'paused\'?\'play\':\'pause\'"\n             [attr.aria-valuetext]="ariaValue">\n        </div>',styles:["\n        vg-play-pause {\n            -webkit-touch-callout: none;\n            -webkit-user-select: none;\n            -khtml-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            display: flex;\n            justify-content: center;\n            height: 50px;\n            width: 50px;\n            cursor: pointer;\n            color: white;\n            line-height: 50px;\n        }\n\n        vg-play-pause .icon {\n            pointer-events: none;\n        }\n    "]}]}],e.ctorParameters=function(){return[{type:i.ElementRef},{type:r.VgAPI}]},e.propDecorators={vgFor:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click"]}],onKeyDown:[{type:i.HostListener,args:["keydown",["$event"]]}]},e}();t.VgPlayPause=o},pxpQ:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("7o/Q"),r=n("WMd4");function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this.scheduler=t,this.delay=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}]),e}(),a=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).scheduler=n,i.delay=r,i}return _inherits(t,e),_createClass(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new l(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(r.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(r.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),t}(i.a),l=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n}},"q1/r":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("qCKp"),r=n("8Y7J"),s=function(){function e(){this.isHiddenSubject=new i.Subject,this.isHidden=this.isHiddenSubject.asObservable()}return e.prototype.state=function(e){this.isHiddenSubject.next(e)},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}();t.VgControlsHidden=s},qCKp:function(e,t,n){"use strict";n.r(t);var i,r=n("HDdC"),s=n("EQ5u"),o=n("7o/Q"),a=n("quSY"),l=n("XNiG"),u=function(e){function t(e,n,i){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).key=e,r.groupSubject=n,r.refCountSubscription=i,r}return _inherits(t,e),_createClass(t,[{key:"_subscribe",value:function(e){var t=new a.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new c(n)),t.add(i.subscribe(e)),t}}]),t}(r.a),c=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).parent=e,e.count++,n}return _inherits(t,e),_createClass(t,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||(_get(_getPrototypeOf(t.prototype),"unsubscribe",this).call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}]),t}(a.a),p=n("kJWO"),h=n("2Vo4"),d=n("jtHE"),f=function(e){function t(){var e;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return _inherits(t,e),_createClass(t,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),a.a.EMPTY):_get(_getPrototypeOf(t.prototype),"_subscribe",this).call(this,e)}},{key:"next",value:function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}},{key:"error",value:function(e){this.hasCompleted||_get(_getPrototypeOf(t.prototype),"error",this).call(this,e)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&_get(_getPrototypeOf(t.prototype),"next",this).call(this,this.value),_get(_getPrototypeOf(t.prototype),"complete",this).call(this)}}]),t}(l.a),g=n("7Hc7"),y=n("D0XW"),b=n("qgXg"),v=n("3N8a"),m=function(e){function t(e,n){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,i.work=n,i}return _inherits(t,e),_createClass(t,[{key:"requestAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(t.prototype),"requestAsyncId",this).call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(t.prototype),"recycleAsyncId",this).call(this,e,n,i);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)}}]),t}(v.a),P=n("IjjT"),_=new(function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),t}(P.a))(m),C=((i=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,n,(function(){return e.frame})))).maxFrames=i,e.frame=0,e.index=-1,e}return _inherits(t,e),_createClass(t,[{key:"flush",value:function(){for(var e,t,n=this.actions,i=this.maxFrames;(t=n[0])&&t.delay<=i&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}}}]),t}(P.a)).frameTimeFactor=10,i),k=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.index+=1;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return _get(_getPrototypeOf(t.prototype),"schedule",this).call(this,e,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(e,n)}},{key:"requestAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=e.frame+i;var r=e.actions;return r.push(this),r.sort(t.sortActions),!0}},{key:"recycleAsyncId",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(e,n){if(!0===this.active)return _get(_getPrototypeOf(t.prototype),"_execute",this).call(this,e,n)}}],[{key:"sortActions",value:function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}]),t}(v.a),V=n("Y/cZ"),E=n("WMd4"),x=n("mCNh"),w=n("KqfI"),O=n("SpAZ");function A(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var S=n("4I5i"),I=n("sVev"),M=n("9ppp"),R=n("pjAE");function D(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}D.prototype=Object.create(Error.prototype);var T=D,j=n("lJxs"),F=n("8Qeq"),N=n("DH7j"),B=n("z+Ro");function G(e,t,n){if(t){if(!Object(B.a)(t))return function(){return G(e,n).apply(void 0,arguments).pipe(Object(j.a)((function(e){return Object(N.a)(e)?t.apply(void 0,_toConsumableArray(e)):t(e)})))};n=t}return function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];var o,a=this,l={context:a,subject:o,callbackFunc:e,scheduler:n};return new r.a((function(t){if(n)return n.schedule(L,0,{args:i,subscriber:t,params:l});if(!o){o=new f;try{e.apply(a,[].concat(i,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(r){Object(F.a)(o)?o.error(r):console.warn(r)}}return o.subscribe(t)}))}}function L(e){var t=this,n=e.args,i=e.subscriber,r=e.params,s=r.callbackFunc,o=r.context,a=r.scheduler,l=r.subject;if(!l){l=r.subject=new f;try{s.apply(o,[].concat(_toConsumableArray(n),[function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.add(a.schedule(H,0,{value:n.length<=1?n[0]:n,subject:l}))}]))}catch(u){l.error(u)}}this.add(l.subscribe(i))}function H(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function $(e,t,n){if(t){if(!Object(B.a)(t))return function(){return $(e,n).apply(void 0,arguments).pipe(Object(j.a)((function(e){return Object(N.a)(e)?t.apply(void 0,_toConsumableArray(e)):t(e)})))};n=t}return function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];var o={subject:void 0,args:i,callbackFunc:e,scheduler:n,context:this};return new r.a((function(t){var r=o.context,s=o.subject;if(n)return n.schedule(q,0,{params:o,subscriber:t,context:r});if(!s){s=o.subject=new f;try{e.apply(r,[].concat(i,[function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.shift();i?s.error(i):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(a){Object(F.a)(s)?s.error(a):console.warn(a)}}return s.subscribe(t)}))}}function q(e){var t=this,n=e.params,i=e.subscriber,r=e.context,s=n.callbackFunc,o=n.args,a=n.scheduler,l=n.subject;if(!l){l=n.subject=new f;try{s.apply(r,[].concat(_toConsumableArray(o),[function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.shift();t.add(r?a.schedule(U,0,{err:r,subject:l}):a.schedule(z,0,{value:n.length<=1?n[0]:n,subject:l}))}]))}catch(u){this.add(a.schedule(U,0,{err:u,subject:l}))}}this.add(l.subscribe(i))}function z(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function U(e){var t=e.err;e.subject.error(t)}var Y=n("itXk"),J=n("GyhO"),K=n("NXyV"),W=n("EY2u"),X=n("cp0P"),Z=n("Cfvw"),Q=n("xgIS"),ee=n("n6bG");function te(e,t,n){return n?te(e,t).pipe(Object(j.a)((function(e){return Object(N.a)(e)?n.apply(void 0,_toConsumableArray(e)):n(e)}))):new r.a((function(n){var i,r=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.next(1===t.length?t[0]:t)};try{i=e(r)}catch(s){return void n.error(s)}if(Object(ee.a)(t))return function(){return t(r,i)}}))}function ne(e,t,n,i,s){var o,a;return 1==arguments.length?(a=e.initialState,t=e.condition,n=e.iterate,o=e.resultSelector||O.a,s=e.scheduler):void 0===i||Object(B.a)(i)?(a=e,o=O.a,s=i):(a=e,o=i),new r.a((function(e){var i=a;if(s)return s.schedule(ie,0,{subscriber:e,iterate:n,condition:t,resultSelector:o,state:i});for(;;){if(t){var r=void 0;try{r=t(i)}catch(u){return void e.error(u)}if(!r){e.complete();break}}var l=void 0;try{l=o(i)}catch(u){return void e.error(u)}if(e.next(l),e.closed)break;try{i=n(i)}catch(u){return void e.error(u)}}}))}function ie(e){var t=e.subscriber,n=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(s){return void t.error(s)}else e.needIterate=!0;if(n){var i;try{i=n(e.state)}catch(s){return void t.error(s)}if(!i)return void t.complete();if(t.closed)return}var r;try{r=e.resultSelector(e.state)}catch(s){return void t.error(s)}return t.closed||(t.next(r),t.closed)?void 0:this.schedule(e)}}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W.a;return Object(K.a)((function(){return e()?t:n}))}var se=n("l5mm"),oe=n("VRyK"),ae=n("5yfJ"),le=n("LRne");function ue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return W.a;var i=t[0],s=t.slice(1);return 1===t.length&&Object(N.a)(i)?ue.apply(void 0,_toConsumableArray(i)):new r.a((function(e){var t=function(){return e.add(ue.apply(void 0,_toConsumableArray(s)).subscribe(e))};return Object(Z.a)(i).subscribe({next:function(t){e.next(t)},error:t,complete:t})}))}function ce(e,t){return new r.a(t?function(n){var i=Object.keys(e),r=new a.a;return r.add(t.schedule(pe,0,{keys:i,index:0,subscriber:n,subscription:r,obj:e})),r}:function(t){for(var n=Object.keys(e),i=0;i<n.length&&!t.closed;i++){var r=n[i];e.hasOwnProperty(r)&&t.next([r,e[r]])}t.complete()})}function pe(e){var t=e.keys,n=e.index,i=e.subscriber,r=e.subscription,s=e.obj;if(!i.closed)if(n<t.length){var o=t[n];i.next([o,s[o]]),r.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:r,obj:s}))}else i.complete()}function he(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}var de=n("SeVD"),fe=n("pLZG");function ge(e,t,n){return[Object(fe.a)(t,n)(new r.a(Object(de.a)(e))),Object(fe.a)(he(t,n))(new r.a(Object(de.a)(e)))]}var ye=n("yCtX"),be=n("l7GE"),ve=n("ZUHj");function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){if(!Object(N.a)(t[0]))return t[0];t=t[0]}return Object(ye.a)(t,void 0).lift(new Pe)}var Pe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new _e(e))}}]),e}(),_e=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).hasFirst=!1,n.observables=[],n.subscriptions=[],n}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=Object(ve.a)(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}},{key:"notifyNext",value:function(e,t,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var s=0;s<this.subscriptions.length;s++)if(s!==n){var o=this.subscriptions[s];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(t)}}]),t}(be.a);function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return new r.a((function(i){void 0===t&&(t=e,e=0);var r=0,s=e;if(n)return n.schedule(ke,0,{index:r,count:t,start:e,subscriber:i});for(;;){if(r++>=t){i.complete();break}if(i.next(s++),i.closed)break}}))}function ke(e){var t=e.start,n=e.index,i=e.count,r=e.subscriber;n>=i?r.complete():(r.next(t),r.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}var Ve=n("z6cu"),Ee=n("PqYM");function xe(e,t){return new r.a((function(n){var i,r;try{i=e()}catch(o){return void n.error(o)}try{r=t(i)}catch(o){return void n.error(o)}var s=(r?Object(Z.a)(r):W.a).subscribe(n);return function(){s.unsubscribe(),i&&i.unsubscribe()}}))}var we=n("Lhse");function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return"function"==typeof i&&t.pop(),Object(ye.a)(t,void 0).lift(new Ae(i))}var Ae=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Se(e,this.resultSelector))}}]),e}(),Se=function(e){function t(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.create(null);return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){var t=this.iterators;Object(N.a)(e)?t.push(new Me(e)):t.push("function"==typeof e[we.a]?new Ie(e[we.a]()):new Re(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe(i,n)):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){var r=e[i];if("function"==typeof r.hasValue&&!r.hasValue())return}for(var s=!1,o=[],a=0;a<t;a++){var l=e[a],u=l.next();if(l.hasCompleted()&&(s=!0),u.done)return void n.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),s&&n.complete()}},{key:"_tryresultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),t}(o.a),Ie=function(){function e(t){_classCallCheck(this,e),this.iterator=t,this.nextResult=t.next()}return _createClass(e,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e}},{key:"hasCompleted",value:function(){var e=this.nextResult;return e&&e.done}}]),e}(),Me=function(){function e(t){_classCallCheck(this,e),this.array=t,this.index=0,this.length=0,this.length=t.length}return _createClass(e,[{key:we.a,value:function(){return this}},{key:"next",value:function(e){var t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),e}(),Re=function(e){function t(e,n,i){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return _inherits(t,e),_createClass(t,[{key:we.a,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e,t,n,i,r){this.buffer.push(t),this.parent.checkIterators()}},{key:"subscribe",value:function(e,t){return Object(ve.a)(this,this.observable,this,t)}}]),t}(be.a),De=n("7HRe"),Te=n("2fFW");n.d(t,"Observable",(function(){return r.a})),n.d(t,"ConnectableObservable",(function(){return s.a})),n.d(t,"GroupedObservable",(function(){return u})),n.d(t,"observable",(function(){return p.a})),n.d(t,"Subject",(function(){return l.a})),n.d(t,"BehaviorSubject",(function(){return h.a})),n.d(t,"ReplaySubject",(function(){return d.a})),n.d(t,"AsyncSubject",(function(){return f})),n.d(t,"asapScheduler",(function(){return g.a})),n.d(t,"asyncScheduler",(function(){return y.a})),n.d(t,"queueScheduler",(function(){return b.a})),n.d(t,"animationFrameScheduler",(function(){return _})),n.d(t,"VirtualTimeScheduler",(function(){return C})),n.d(t,"VirtualAction",(function(){return k})),n.d(t,"Scheduler",(function(){return V.a})),n.d(t,"Subscription",(function(){return a.a})),n.d(t,"Subscriber",(function(){return o.a})),n.d(t,"Notification",(function(){return E.a})),n.d(t,"NotificationKind",(function(){return E.b})),n.d(t,"pipe",(function(){return x.a})),n.d(t,"noop",(function(){return w.a})),n.d(t,"identity",(function(){return O.a})),n.d(t,"isObservable",(function(){return A})),n.d(t,"ArgumentOutOfRangeError",(function(){return S.a})),n.d(t,"EmptyError",(function(){return I.a})),n.d(t,"ObjectUnsubscribedError",(function(){return M.a})),n.d(t,"UnsubscriptionError",(function(){return R.a})),n.d(t,"TimeoutError",(function(){return T})),n.d(t,"bindCallback",(function(){return G})),n.d(t,"bindNodeCallback",(function(){return $})),n.d(t,"combineLatest",(function(){return Y.a})),n.d(t,"concat",(function(){return J.a})),n.d(t,"defer",(function(){return K.a})),n.d(t,"empty",(function(){return W.b})),n.d(t,"forkJoin",(function(){return X.a})),n.d(t,"from",(function(){return Z.a})),n.d(t,"fromEvent",(function(){return Q.a})),n.d(t,"fromEventPattern",(function(){return te})),n.d(t,"generate",(function(){return ne})),n.d(t,"iif",(function(){return re})),n.d(t,"interval",(function(){return se.a})),n.d(t,"merge",(function(){return oe.a})),n.d(t,"never",(function(){return ae.b})),n.d(t,"of",(function(){return le.a})),n.d(t,"onErrorResumeNext",(function(){return ue})),n.d(t,"pairs",(function(){return ce})),n.d(t,"partition",(function(){return ge})),n.d(t,"race",(function(){return me})),n.d(t,"range",(function(){return Ce})),n.d(t,"throwError",(function(){return Ve.a})),n.d(t,"timer",(function(){return Ee.a})),n.d(t,"using",(function(){return xe})),n.d(t,"zip",(function(){return Oe})),n.d(t,"scheduled",(function(){return De.a})),n.d(t,"EMPTY",(function(){return W.a})),n.d(t,"NEVER",(function(){return ae.a})),n.d(t,"config",(function(){return Te.a}))},qgXg:function(e,t,n){"use strict";var i=function(e){function t(e,n){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n))).scheduler=e,i.work=n,i}return _inherits(t,e),_createClass(t,[{key:"schedule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?_get(_getPrototypeOf(t.prototype),"schedule",this).call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,n){return n>0||this.closed?_get(_getPrototypeOf(t.prototype),"execute",this).call(this,e,n):this._execute(e,n)}},{key:"requestAsyncId",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(t.prototype),"requestAsyncId",this).call(this,e,n,i):e.flush(this)}}]),t}(n("3N8a").a),r=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),t}(n("IjjT").a);n.d(t,"a",(function(){return s}));var s=new r(i)}}]);