diff --git a/dist/config/projectconfig.json b/dist/config/projectconfig.json index 2930b5955..825807779 100644 --- a/dist/config/projectconfig.json +++ b/dist/config/projectconfig.json @@ -1,7 +1,7 @@ { "version": "1.1.0", "logging":{ - "forced": false + "forced": true }, "navigation":{ "export": true, @@ -19,7 +19,7 @@ }, "plugins":{ "pdfexport":{ - "url": "http://localhost:6321/pdfconverter/" + "url": "https://www.phonetik.uni-muenchen.de/apps/octra/octra/pdfconverter/" } }, "languages": [ diff --git a/dist/index.html b/dist/index.html index b276411c2..9603d7ab4 100644 --- a/dist/index.html +++ b/dist/index.html @@ -53,5 +53,5 @@ - + diff --git a/dist/inline.bd2710a199142bab407a.bundle.js b/dist/inline.bd2710a199142bab407a.bundle.js deleted file mode 100644 index e0f092054..000000000 --- a/dist/inline.bd2710a199142bab407a.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var u,i,f,l=0,s=[];l active",animation:{type:4,styles:null,timings:"300ms ease-in"}},{type:1,expr:"active => inactive",animation:{type:4,styles:null,timings:"300ms ease-in"}}]}]}}),X=S["ɵccf"]("app-login",N.a,b,{},{},[])},"+o7G":function(e,n,t){"use strict";var l=t("J6Rx"),i=t("u9IK"),r=t("2Lmt"),o=t("k/xb");t.d(n,"a",function(){return s});var u=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),s=function(e){function n(n){var t=e.call(this,n)||this;return t.audio=n,t.drag_playcursor=!1,t._current_time=0,t._total_time=0,t._begintime=null,t._durtime=null,t._settings=(new l.a).Settings,t.validateConfig(),t}return u(n,e),Object.defineProperty(n.prototype,"current_time",{get:function(){return this._current_time},set:function(e){this._current_time=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"begintime",{get:function(){return this._begintime},set:function(e){this._begintime=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"total_time",{get:function(){return this._total_time},set:function(e){this._total_time=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"Settings",{get:function(){return this._settings},set:function(e){this._settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"Line",{get:function(){return this.last_line},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"LastLine",{get:function(){return this.last_line},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"DurTime",{get:function(){return this._durtime},set:function(e){this._durtime=e},enumerable:!0,configurable:!0}),n.prototype.updatePlayDuration=function(){this.Chunk&&this.Chunk.time.start.samples>=0&&this.Chunk.time.end.samples>this.Chunk.time.start.samples?this.playduration.samples=this.Chunk.time.end.samples-this.Chunk.time.start.samples:this.playduration=new r.e(0,this.audio.samplerate)},n.prototype.initialize=function(n){e.prototype.initialize.call(this,n),this.audio_px_w=n,this.current=new r.e(0,this.audio.samplerate),this._durtime=new r.e(0,this.audio.samplerate),this.playduration=this._durtime.clone(),this.playcursor=new r.n(0,new r.e(0,this.audio.samplerate),n),this.initializeLine(this.audio_px_w,this._settings.height)},n.prototype.updateDistance=function(){0==this._durtime.samples?this.distance=this.audio_px_w-this.audioTCalculator.samplestoAbsX(this.current.samples):this.Chunk.time.start.samples>=0&&this.Chunk.time.end.samples>this.Chunk.time.start.samples&&(this.distance=this.audio_px_w)},n.prototype.setMouseMovePosition=function(n,t,l,i,r){e.prototype.setMouseMovePosition.call(this,n,t,l,i,r),this.mouse_down&&this.drag_playcursor&&(this.PlayCursor.changeAbsX(t-this._settings.margin.left,this.audioTCalculator,this.audio_px_w,this.Chunk),this.current.samples=this.PlayCursor.time_pos.samples),"mouseleave"==n&&(this.drag_playcursor=!1)},n.prototype.setMouseClickPosition=function(n,t,l,i,r){e.prototype.setMouseClickPosition.call(this,n,t,l,i,r),this.audio.audioplaying||(null==this.last_line||this.last_line==l?"mousedown"===i.type?(null!=this.last_line&&this.last_line.number!=this.last_line.number||(nthis.PlayCursor.absX+5||(this.drag_playcursor=!0),this.mouse_click_pos.line=l,this.mouse_click_pos.absX=this.getAbsXByLine(l,n-l.Pos.x,r),this.current.samples=this.mouse_click_pos.timePos.samples),this.mouse_down=!0):"mouseup"===i.type&&(this.mouse_down=!1,this.drag_playcursor=!1,this.PlayCursor.changeAbsX(n-this._settings.margin.left,this.audioTCalculator,this.audio_px_w,this.Chunk),this.current.samples=this.PlayCursor.time_pos.samples):"mouseup"===i.type&&(this.mouse_down=!1,this.drag_playcursor=!1,this.PlayCursor.changeAbsX(n-this._settings.margin.left,this.audioTCalculator,this.audio_px_w,this.Chunk),this.current.samples=this.audioTCalculator.absXChunktoSamples(this.PlayCursor.absX,this.Chunk)))},n.prototype.updateLines=function(e){this.audio_px_w=e;var n=e,t=this.last_line;t?(t.number=0,t.Size={width:n,height:this._settings.height}):this.initializeLine(n,this._settings.height)},n.prototype.initializeLine=function(e,n){var t={height:n,width:e},l={x:this._settings.margin.left,y:this._settings.margin.top};this.last_line=new r.o(0,t,l)},n.prototype.getAbsXByLine=function(e,n,t){return e.number*t+n},n.prototype.init=function(e){this.AudioPxWidth=e,this.begintime=new r.e(0,this.audio.samplerate),this.Chunk=new r.k(new r.l(new r.e(0,this.audio.samplerate),new r.e(this.audio.duration.samples,this.audio.samplerate))),this.initialize(e),this._durtime=new r.e(this.Chunk.time.length,this.audio.samplerate),this.audioTCalculator=new r.h(this.audio.samplerate,this._durtime,this.AudioPxWidth),this.Mousecursor=new r.m(0,0,0,new r.e(0,this.audio.samplerate)),this.MouseClickPos=new r.m(0,0,0,new r.e(0,this.audio.samplerate)),this.playduration=this._durtime.clone(),this.total_time=Math.round(this.Chunk.time.end.unix-this.Chunk.time.start.unix)},n.prototype.validateConfig=function(){var e=new o.a,n=e.validateObject(this._settings);if(!n.success)throw n.error},n.ctorParameters=function(){return[{type:i.a}]},n}(i.j)},"/AVL":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){}return e.prototype.validate=function(e,n){return{success:!1,error:"unknown error"}},e.prototype.validateObject=function(e){for(var n in e){var t=this.validate(n,e[""+n]);if(0==t.success)return t}return{success:!0,error:""}},e}()},"/fcW":function(e,n){function t(e){throw new Error("Cannot find module '"+e+"'.")}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id="/fcW"},"01Ae":function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[o["ɵqud"](201326592,1,{nav:0}),o["ɵqud"](201326592,2,{audioplayer:0}),o["ɵqud"](201326592,3,{editor:0}),(e()(),o["ɵeld"](0,null,null,12,"app-audio-navigation",[],null,[[null,"volumechange"],[null,"aftervolumechange"],[null,"speedchange"],[null,"afterspeedchange"],[null,"buttonclick"],[null,"audioplayingChange"],[null,"responsiveChange"]],function(e,n,t){var l=!0,i=e.component;if("volumechange"===n){l=i.onVolumeChange(t)!==!1&&l}if("aftervolumechange"===n){l=i.afterVolumeChange(t)!==!1&&l}if("speedchange"===n){l=i.onSpeedChange(t)!==!1&&l}if("afterspeedchange"===n){l=i.afterSpeedChange(t)!==!1&&l}if("buttonclick"===n){l=i.onButtonClick(t)!==!1&&l}if("audioplayingChange"===n){l=(i.audio.audioplaying=t)!==!1&&l}if("responsiveChange"===n){l=(i.settingsService.responsive.enabled=t)!==!1&&l}return l},s.a,s.b)),o["ɵdid"](24576,[[1,4],["nav",4]],0,a.a,[o.ChangeDetectorRef],{audioplaying:[0,"audioplaying"],responsive:[1,"responsive"],easymode:[2,"easymode"],buttons:[3,"buttons"]},{buttonclick:"buttonclick",volumechange:"volumechange",aftervolumechange:"aftervolumechange",speedchange:"speedchange",afterspeedchange:"afterspeedchange"}),o["ɵpid"](65536,c.a,[d.a,o.ChangeDetectorRef]),o["ɵpod"](["label","shortcut"]),o["ɵpid"](65536,c.a,[d.a,o.ChangeDetectorRef]),o["ɵpod"](["label","shortcut"]),o["ɵpid"](65536,c.a,[d.a,o.ChangeDetectorRef]),o["ɵpod"](["label","shortcut"]),o["ɵpid"](65536,c.a,[d.a,o.ChangeDetectorRef]),o["ɵpod"](["label","shortcut"]),o["ɵpid"](65536,c.a,[d.a,o.ChangeDetectorRef]),o["ɵpod"](["label","shortcut"]),o["ɵpod"](["play","pause","stop","replay","backward"]),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵeld"](0,null,null,2,"app-audioplayer",[],null,[[null,"shortcuttriggered"],["window","resize"],["window","beforeunload"]],function(e,n,t){var l=!0,i=e.component;if("window:resize"===n){l=o["ɵnov"](e,19).onResize(t)!==!1&&l}if("window:beforeunload"===n){l=o["ɵnov"](e,19).onReload(t)!==!1&&l}if("shortcuttriggered"===n){l=i.onShortcutTriggered(t)!==!1&&l}return l},p.a,p.b)),o["ɵprd"](256,null,h.a,h.a,[f.a]),o["ɵdid"](2220032,[[2,4],["audioplayer",4]],0,g.a,[f.a,h.a,o.ChangeDetectorRef,m.a],null,{shortcuttriggered:"shortcuttriggered"}),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵeld"](0,null,null,3,"app-transcr-editor",[],null,[[null,"onkeyup"],[null,"marker_insert"],[null,"marker_click"]],function(e,n,t){var l=!0,i=e.component;if("onkeyup"===n){l=i.updateSegment(t)!==!1&&l}if("marker_insert"===n){l=i.onMarkerInsert(t)!==!1&&l}if("marker_click"===n){l=i.onMarkerClick(t)!==!1&&l}return l},v.a,v.b)),o["ɵdid"](385024,[[3,4],["transcr",4]],0,y.a,[o.ChangeDetectorRef,b.a,d.a,_.a],{markers:[0,"markers"],easymode:[1,"easymode"]},{onkeyup:"onkeyup",marker_insert:"marker_insert",marker_click:"marker_click"}),o["ɵprd"](2304,null,S.a,S.a,[]),(e()(),o["ɵted"](null,["\n"]))],function(e,n){var t=n.component;e(n,4,0,t.audio.audioplaying,t.settingsService.responsive.enabled,t.sessService.easymode,e(n,15,0,e(n,6,0,o["ɵunv"](n,4,3,o["ɵnov"](n,5).transform("general.play")),t.keyMap.getShortcut("AP","play_pause")),e(n,8,0,o["ɵunv"](n,4,3,o["ɵnov"](n,7).transform("general.pause")),t.keyMap.getShortcut("AP","play_pause")),e(n,10,0,o["ɵunv"](n,4,3,o["ɵnov"](n,9).transform("general.stop")),t.keyMap.getShortcut("AP","stop")),e(n,12,0,o["ɵunv"](n,4,3,o["ɵnov"](n,11).transform("general.replay")),""),e(n,14,0,o["ɵunv"](n,4,3,o["ɵnov"](n,13).transform("general.backward")),t.keyMap.getShortcut("AP","step_backward")))),e(n,19,0),e(n,22,0,t.transcrService.guidelines.markers,t.sessService.easymode)},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,1,"app-audioplayer-gui",[],null,null,null,l,P)),o["ɵdid"](2220032,null,0,u.a,[f.a,m.a,_.a,w.a,b.a,C.a],null,null)],function(e,n){e(n,1,0)},null)}var r=t("4TZK"),o=t("3j3K"),u=t("7nBS"),s=t("PSLa"),a=t("CY56"),c=t("685D"),d=t("WtPQ"),p=t("zx8H"),h=t("+o7G"),f=t("iOuv"),g=t("AGbc"),m=t("FUnf"),v=t("OKns"),y=t("5MHI"),b=t("yUTl"),_=t("DCT3"),S=t("Onsj"),w=t("s+lJ"),C=t("SzqK");t.d(n,"b",function(){return P}),n.a=l;var k=[r.a],P=o["ɵcrt"]({encapsulation:0,styles:k,data:{}});o["ɵccf"]("app-audioplayer-gui",u.a,i,{},{},[])},"0HDV":function(e,n,t){"use strict";var l=t("3j3K");t.d(n,"a",function(){return i});var i=function(){function e(){this.showmodal=new l.EventEmitter}return e.prototype.show=function(e,n,t){void 0===n&&(n=""),void 0===t&&(t=null),this.showmodal.emit({type:e,text:n,functions:t})},e.ctorParameters=function(){return[]},e}()},"0SYt":function(e,n,t){"use strict";var l=t("9o55"),i=t("OMJi"),r=(t.n(i),t("Xajo"));t.n(r);t.d(n,"a",function(){return o});var o=function(){function e(e,n){this._groups=e,this._comment=n}return Object.defineProperty(e.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"comment",{get:function(){return this._comment},set:function(e){this._comment=e},enumerable:!0,configurable:!0}),e.prototype.exportData=function(){for(var e={},n=0;n0&&null!=o){var s={querytype:"continueannotation",transcript:JSON.stringify(e),project:"transcription",annotator:t,comment:r,jobno:l,status:"BUSY",quality:JSON.stringify(o),id:i,log:u};return this.post(s)}throw"saveSession - validation false"},e.prototype.saveSession=function(e,n,t,l,i,r,o,u,s){if(""!=n&&e.length>0&&null!=u){var a={querytype:"continueannotation",transcript:JSON.stringify(e),project:"transcription",annotator:t,comment:o,jobno:l,status:r,quality:JSON.stringify(u),id:i,log:s};return this.post(a)}throw"saveSession - validation false"},e.prototype.closeSession=function(e,n,t){if(t=t?t:"",null!=e&&""!=e&&null!=n&&n>-1){var l={querytype:"endannotation",annotator:e,comment:t,id:n};return this.post(l)}throw"closeSession - validation false"},e.prototype.getAudioURL=function(e,n){if(null!=e&&""!=e&&null!=n&&""!=n)return e=this.sanitizer.sanitize(l.SecurityContext.URL,e),n=this.sanitizer.sanitize(l.SecurityContext.URL,n),this.server_url+"?dir="+e+"&src="+n;throw"getAudioBuffer - validation false"},e.prototype.getProjects=function(){var e={querytype:"listprojects"};return this.post(e)},e.prototype.post=function(e){var n=JSON.stringify(e),t=new i.s;return t.append("Content-Type","application/json"),this.http.post(this.server_url,n,t)},e.prototype.init=function(e){var n=this.sanitizer.sanitize(l.SecurityContext.URL,e);this.server_url=n},e.ctorParameters=function(){return[{type:i.o},{type:o.q}]},e}()},"1A80":function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,1,"app-octra-modal",[],null,null,null,u.a,u.b)),o["ɵdid"](122880,null,0,s.a,[a.a],null,null),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵeld"](0,null,null,4,"header",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,1,"app-navigation",[],null,null,null,c.a,c.b)),o["ɵdid"](2220032,null,0,d.a,[p.a,h.a,f.q,g.a],{version:[0,"version"]},null),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵeld"](0,null,null,7,"main",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,4,"div",[["class","container"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](8388608,null,null,1,"router-outlet",[],null,null,null,null,null)),o["ɵdid"](73728,null,0,m.y,[m.l,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null]],null,null),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵted"](null,["\n"]))],function(e,n){var t=n.component;e(n,1,0),e(n,6,0,t.version)},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,1,"octra",[],null,null,null,l,S)),o["ɵdid"](90112,null,0,v.a,[y.a,g.a,p.a,b.a],null,null)],null,null)}var r=t("Ni5f"),o=t("3j3K"),u=t("isIo"),s=t("rv3A"),a=t("0HDV"),c=t("XH3Z"),d=t("cE4U"),p=t("SzqK"),h=t("wGSH"),f=t("Qbdm"),g=t("WtPQ"),m=t("5oXY"),v=t("YWx4"),y=t("0YY0"),b=t("yUTl");t.d(n,"a",function(){return w});var _=[r.a],S=o["ɵcrt"]({encapsulation:0,styles:_,data:{}}),w=o["ɵccf"]("octra",v.a,i,{},{},[])},2:function(e,n,t){e.exports=t("x35b")},"2//i":function(e,n,t){"use strict";var l=t("/AVL"),i=t("OMJi");t.n(i);t.d(n,"a",function(){return o});var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r(n,e),n.prototype.validate=function(e,n){var l="TranscrEditorConfig Validation - ";switch(e){case"height":if("number"==typeof n&&n>0)break;return{success:!1,error:l+"value of key '"+e+"' must be of type number greater 0"};case"disabled_keys":var r=!0;if(t.i(i.isArray)(n)){for(var o=0;o-1&&e-1&&this._segments[e])&&(this._segments[e].time.samples=n.time.samples,this._segments[e].transcript=n.transcript,this.onsegmentchange.emit(null),!0)},e.prototype.sort=function(){this.segments.sort(function(e,n){return e.time.samplesn.time.samples?1:void 0}),this.onsegmentchange.emit({})},e.prototype.get=function(e){return e>-1&&e0&&(n=this._segments[t-1].time.samples),e>n&&e<=this._segments[t].time.samples)return t;return-1},e.prototype.getSegmentsOfRange=function(e,n){for(var t=[],l=0,i=0;i=e&&r.time.samples<=n||l>=e&&l<=n||l<=e&&r.time.samples>=n)&&t.push(r),l=r.time.samples}return t},e.prototype.getStartTime=function(e){var n=this.get(e),t=0;if(n)for(var l=0;l0){var t=this.segments[n-1];t.time.samples===this.segments[n].time.samples&&e.push(n)}for(var n=0;n=n&&e<=this.segments[t].time.samples)return this.segments[t];n=this.segments[t].time.samples}return null},e.prototype.clear=function(){this._segments=[]},e}()},"4Yvw":function(e,n,t){"use strict";var l=t("3j3K"),i=t("OMJi"),r=(t.n(i),t("DCT3")),o=t("wKbx"),u=t("8A5H"),s=t("yUTl");t.d(n,"a",function(){return a});var a=function(){function e(e,n,l,r){this.transcrService=e,this.cd=n,this.lang=l,this.settService=r,this.guidelines=null,this.shown_guidelines={},this.subscrmanager=new o.a,this.collapsed=[],this.entries=0,this.counter=0,this.video_players=[],t.i(i.isNullOrUndefined)(this.transcrService.guidelines)||this.init()}return Object.defineProperty(e.prototype,"visible",{get:function(){return this.modal_guidelines.visible},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){},e.prototype.init=function(){this.entries=0,this.guidelines=this.transcrService.guidelines;for(var e=0;e-1);else{var r=videojs(l,{fluid:!0,autoplay:!1,preload:"auto"},function(){});this.video_players.push(r)}}}},e.prototype.open=function(){this.modal_guidelines.open()},e.prototype.close=function(){this.modal_guidelines.dismiss()},e.prototype.unCollapseAll=function(){this.collapsed=[];for(var e=0;e-1)this.shown_guidelines.instructions.push(t);else{var l=JSON.parse(JSON.stringify(t));l.entries=[];for(var i in t.entries){var r=t.entries[i];(r.title.indexOf(e)>-1||r.description.indexOf(e)>-1)&&l.entries.push(r)}l.entries.length>0&&this.shown_guidelines.instructions.push(l)}}}else this.shown_guidelines=JSON.parse(JSON.stringify(this.guidelines))},e.prototype.exportPDF=function(){if(!(t.i(i.isNullOrUndefined)(this.settService.projectsettings)||t.i(i.isNullOrUndefined)(this.settService.projectsettings.plugins)||t.i(i.isNullOrUndefined)(this.settService.projectsettings.plugins.pdfexport)||t.i(i.isNullOrUndefined)(this.settService.projectsettings.plugins.pdfexport.url))){var e=jQuery("
").attr("method","post").attr("target","blank").attr("action",this.settService.projectsettings.plugins.pdfexport.url).appendTo("body"),n={translation:this.lang.instant("general"),guidelines:this.guidelines};console.log(n);var l=jQuery("").attr("name","json").attr("type","text").attr("value",JSON.stringify(n));e.append(l),e.submit().remove()}},e.ctorParameters=function(){return[{type:r.a},{type:l.ChangeDetectorRef},{type:u.b},{type:s.a}]},e}()},"52Zn":function(e,n,t){"use strict";var l=t("3j3K");t.d(n,"a",function(){return i});var i=function(){function e(e,n){this.elementRef=e,this.renderer=n}return e.prototype.changeStyle=function(e,n){this.renderer.setElementStyle(this.elementRef.nativeElement,e,n)},e.ctorParameters=function(){return[{type:l.ElementRef},{type:l.Renderer}]},e}()},"5JeX":function(e,n,t){"use strict";var l=t("SzqK"),i=t("+0xp"),r=t("U6hS"),o=t("5oXY"),u=t("DCT3"),s=t("0HDV"),a=t("8A5H"),c=t("OMJi");t.n(c);t.d(n,"a",function(){return d});var d=function(){function e(e,n,t,l,i){var r=this;this.router=e,this.sessServ=n,this.transcrServ=t,this.modService=l,this.langService=i,this.error="",this.abortTranscription=function(){r.router.navigate(["/logout"])},this.newTranscription=function(){r.sessServ.sessionfile=r.getSessionFile(r.dropzone.file),r.sessServ.file=r.dropzone.file,r.sessServ.transcription=[],r.transcrServ.segments=null,r.sessServ.offline=!0,r.navigate()},this.onOfflineSubmit=function(){var e=r.sessServ.sessionfile.type?r.sessServ.sessionfile.type:r.langService.instant("general.unknown");null!=r.dropzone.file&&null!=r.sessServ.sessionfile&&r.validate(r.dropzone.file)?r.dropzone.file.name!=r.sessServ.sessionfile.name||r.dropzone.file.type!=r.sessServ.sessionfile.type||r.dropzone.file.size!=r.sessServ.sessionfile.size?r.showErrorMessage(r.langService.instant("reload-file.another file selected",{file:r.getDropzoneFileString(r.sessServ.sessionfile)})):(r.sessServ.sessionfile=r.getSessionFile(r.dropzone.file),r.sessServ.file=r.dropzone.file,r.sessServ.offline=!0,r.navigate()):r.showErrorMessage(r.langService.instant("reload-file.file not supported",{type:e}))},console.log("init reload")}return Object.defineProperty(e.prototype,"sessionfile",{get:function(){return this.sessServ.sessionfile},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.navigate=function(){this.router.navigate(["/user/load"])},e.prototype.getDropzoneFileString=function(e){var n=r.a.getFileSize(e.size);return r.a.buildStr("{0} ({1} {2})",[e.name,Math.round(100*n.size)/100,n.label])},e.prototype.showErrorMessage=function(e){this.error=e,this.modService.show("error",e,null)},e.prototype.getSessionFile=function(e){return new i.a(e.name,e.size,e.lastModifiedDate,e.type)},e.prototype.validate=function(e){return!t.i(c.isNullOrUndefined)(e)&&("audio/wav"==e.type||"audio/x-wav"==e.type)},e.ctorParameters=function(){return[{type:o.j},{type:l.a},{type:u.a},{type:s.a},{type:a.b}]},e}()},"5MHI":function(e,n,t){"use strict";var l=t("3j3K"),i=t("Onsj"),r=t("8A5H"),o=t("2Lmt"),u=t("2//i"),s=t("yUTl"),a=t("DCT3"),c=t("OMJi");t.n(c);t.d(n,"a",function(){return d});var d=function(){function e(e,n,t,r){var u=this;this.cd=e,this.settingsService=n,this.langService=t,this.transcrService=r,this.loaded=new l.EventEmitter,this.onkeyup=new l.EventEmitter,this.marker_insert=new l.EventEmitter,this.marker_click=new l.EventEmitter,this.typing=new l.EventEmitter,this.init=0,this.focused=!1,this.visible=!0,this.markers=!0,this.easymode=!0,this.textfield=null,this._rawText="",this._html="",this.summernote_ui=null,this._is_typing=!1,this.lastkeypress=0,this.getRawText=function(){var e=u.textfield.summernote("code");e="

"+e+"

";var n=jQuery(e),t=(n.text(),function(e,n){var t=jQuery(n).attr("data-marker-code");if("select-one"==n.type){t+="="+jQuery(n).attr("data-value")}if(t)for(var l=0;l1&&u.textfield.summernote("restoreRange")},onBlur:function(){}}}),u.textfield.summernote("removeModule","statusbar"),u.loaded.emit(!0)},this.insertMarker=function(e,n){var t=document.createElement("img");t.setAttribute("src",n),t.setAttribute("class","btn-icon-text"),t.setAttribute("style","height:16px"),t.setAttribute("data-marker-code",e),t.setAttribute("alt",e),this.textfield.summernote("editor.insertNode",t),this.updateTextField()},this.onKeyDownSummernote=function(e){var n=o.c.getShortcutCombination(e),t=o.d.platform;if(""!=n)if(u.isDisabledKey(n))e.preventDefault();else for(var l=0;l":(l=" "+e.button_text+" ["+e.shortcut[t]+"]",this.Settings.responsive&&(l=" ")),this.summernote_ui.button({contents:l,tooltip:e.description+" Shortcut: ["+e.shortcut[t]+"]",click:function(){n.insertMarker(e.code,e.icon_url),n.marker_click.emit(e.code)}}).render()},e.prototype.updateTextField=function(){this._rawText=this.getRawText()},e.prototype.isDisabledKey=function(e){for(var n=0;n-1},e.prototype.rawToHTML=function(e){var n=e;if(""!=e){for(var t=function(e){var t=l.markers[e],i=new RegExp("(\\s)*("+o.f.escapeRegex(t.code)+")(\\s)*","g"),r=function(e,n,l,i){var r=n?n:"",o=i?i:"";return r+""+t.code+""+o};n=n.replace(i,r)},l=this,i=0;i")}return t},e.prototype.validateConfig=function(){var e=new u.a,n=e.validateObject(this._settings);if(!n.success)throw n.error},e.prototype.validate=function(){var e=this.transcrService.validate(this._rawText),n=this.underlineTextRed(e);n=this.rawToHTML(n),this.textfield.summernote("code",n)},e.prototype.underlineTextRed=function(e){var n=this._rawText,t={};if(e.length>0)for(var l=0;l",t["p"+(e[l].start+e[l].length)]=""+t["p"+(e[l].start+e[l].length)];return n},e.ctorParameters=function(){return[{type:l.ChangeDetectorRef},{type:s.a},{type:r.b},{type:a.a}]},e}()},"5MSB":function(e,n,t){"use strict";function l(e){return u["ɵvid"](0,[(e()(),u["ɵeld"](0,null,null,1,"button",[["class","btn btn-default"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.modal.dismiss()!==!1&&l}return l},null,null)),(e()(),u["ɵted"](null,["",""]))],null,function(e,n){e(n,1,0,n.component.dismissButtonLabel)})}function i(e){return u["ɵvid"](0,[(e()(),u["ɵeld"](0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.modal.close()!==!1&&l}return l},null,null)),(e()(),u["ɵted"](null,["",""]))],null,function(e,n){e(n,1,0,n.component.closeButtonLabel)})}function r(e){return u["ɵvid"](0,[(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵeld"](0,null,null,9,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),u["ɵted"](null,["\n "])),u["ɵncd"](null,0),(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵand"](8388608,null,null,1,null,l)),u["ɵdid"](8192,null,0,s.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵand"](8388608,null,null,1,null,i)),u["ɵdid"](8192,null,0,s.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,6,0,t.showDefaultButtons),e(n,9,0,t.showDefaultButtons)},null)}function o(e){return u["ɵvid"](0,[(e()(),u["ɵeld"](0,null,null,1,"modal-footer",[],null,null,null,r,p)),u["ɵdid"](24576,null,0,a.ModalFooterComponent,[c.ModalComponent],null,null)],null,null)}var u=t("3j3K"),s=t("2Je8"),a=t("dUUf"),c=(t.n(a),t("S7tg"));t.n(c);t.d(n,"b",function(){return p}),n.a=r;var d=[],p=u["ɵcrt"]({encapsulation:2,styles:d,data:{}});u["ɵccf"]("modal-footer",a.ModalFooterComponent,o,{showDefaultButtons:"show-default-buttons",dismissButtonLabel:"dismiss-button-label",closeButtonLabel:"close-button-label"},{},["*"])},"6Sl4":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=["#agreement[_ngcontent-%COMP%]{max-width:800px;margin:0 auto;padding:20px;margin-top:20px}#agreement[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.9em}#bottom-nav[_ngcontent-%COMP%]{margin-top:20px}"]},"7/hb":function(e,n,t){"use strict";var l=t("3j3K"),i=t("2Lmt"),r=t("u9IK"),o=t("74QC"),u=t("8A5H");t.d(n,"a",function(){return s});var s=function(){function e(e,n,t,r,o){var u=this;this.audio=e,this.av=n,this.transcr=t,this.keyMap=r,this.langService=o,this.selchange=new l.EventEmitter,this.segmententer=new l.EventEmitter,this.segmentchange=new l.EventEmitter,this.mousecursorchange=new l.EventEmitter,this.playcursorchange=new l.EventEmitter,this.shortcuttriggered=new l.EventEmitter,this.alerttriggered=new l.EventEmitter,this._begintime=null,this.graphicscanvas=null,this.overlaycanvas=null,this.playcanvas=null,this.mousecanvas=null,this.g_context=null,this.p_context=null,this.o_context=null,this.m_context=null,this.drawing=!1,this.audioplaying=!1,this.step_backward=!1,this.width=0,this.height=0,this.innerWidth=0,this.oldInnerWidth=0,this.resizing=!1,this._deactivate_shortcuts=!1,this.update=function(e){if(void 0===e&&(e=!1),u.updateCanvasSizes(),u.av.channel){1==e&&u.av.refresh();for(var n=0;n-1){var c=u.transcr.segments.get(a);if(u.transcr.segments.getStartTime(a).samples>=u.av.Chunk.time.start.samples&&c.time.samples<=u.av.Chunk.time.end.samples){var d=u.av.audioTCalculator.samplestoAbsX(u.transcr.segments.get(a).time.samples);u.av.Selection=s,u.selchange.emit(u.av.Selection),u.drawSegments();var p=new i.g(new i.e(0,u.audio.samplerate));a>0&&(p=u.transcr.segments.get(a-1));var h=u.av.audioTCalculator.samplestoAbsX(p.time.samples),f=u.innerWidth=u.av.Selection.start.samples&&o<=u.av.Selection.end.samples&&(u.av.current.samples=u.av.Selection.start.samples,u.changePlayCursorSamples(u.av.Selection.start.samples),u.drawPlayCursorOnly(u.av.LastLine),u.audio.stopPlayback(u.playSelection)),u.Settings.multi_line||u.segmententer.emit({index:a,pos:{Y1:f,Y2:g}})}else u.alerttriggered.emit({type:"error",message:u.langService.instant("segment invisible")})}}l=!0}break;case"segment_enter":if(u.Settings.boundaries.enabled&&!u.Settings.boundaries.readonly&&u.focused){u.shortcuttriggered.emit({shortcut:n,value:e});var m=u.transcr.segments.getSegmentBySamplePosition(u.av.Mousecursor.timePos.samples);u.selectSegment(m,function(e,n){u.focused=!1,u.segmententer.emit({index:m,pos:{Y1:e,Y2:n}})},function(){u.alerttriggered.emit({type:"error",message:u.langService.instant("segment invisible")})}),l=!0}break;case"cursor_left":u.av.focused&&(u.shortcuttriggered.emit({shortcut:n,value:e}),u.av.moveCursor("left",u.Settings.step_width_ratio*u.audio.samplerate),u.drawCursor(u.av.LastLine),u.mousecursorchange.emit(u.av.Mousecursor),l=!0);break;case"cursor_right":u.av.focused&&(u.shortcuttriggered.emit({shortcut:n,value:e}),u.av.moveCursor("right",u.Settings.step_width_ratio*u.audio.samplerate),u.drawCursor(u.av.LastLine),u.mousecursorchange.emit(u.av.Mousecursor),l=!0)}if(l)return"break"}};for(var o in u.Settings.shortcuts){if("break"===r(o))break}l&&e.event.preventDefault()}}},this.playSelection=function(){u.audio.audioplaying=!1,u.av.Selection.checkSelection(),u._begintime=u.av.calculateBeginTime(),u.av.updatePlayDuration(),u.av.updateDistance();var e=function(){u.anim.requestFrame(u.drawPlayCursor)};(u.av.Selection.start.samples===u.av.Selection.end.samples||u.av.Selection.start.samples>=0&&u.av.Selection.length>=0)&&(u.av.lastplayedpos=u._begintime.clone(),u.audio.startPlayback(u._begintime,u.av.playduration,e,u.onEndPlayBack))},this.drawPlayCursor=function(){var e=(new Date,(new Date).getTime()),n=(new i.h(u.audio.samplerate,u.audio.duration,u.AudioPxWidth),u.av.Selection.length>0?new i.e(u.av.Selection.length,u.audio.samplerate):u.av.playduration),t=u.av.audioTCalculator.samplestoAbsX(u.av.current.samples-u.av.Chunk.time.start.samples),l=0,r=0;u.audio.endplaying>e&&u.audio.audioplaying?(l=Math.min((n.unix-(u.audio.endplaying-e))/n.unix*u.audio.speed,1),r=Math.max(0,t+u.av.Distance*l),u.changePlayCursorAbsX(r)):l>.99&&u.changePlayCursorAbsX(t+u.av.Distance);var o=u.av.getLineByAbsX(u.av.PlayCursor.absX,u.innerWidth);o&&(u.drawPlayCursorOnly(o),u.av.LastLine=o)},this.drawPlayCursorOnly=function(e){if(e){var n=u.Settings.playcursor.width,t=u.av.PlayCursor.absX-e.number*u.innerWidth,l=e.Pos.y;t<=e.Size.width+u.Settings.margin.left&&(u.p_context.clearRect(0,0,u.width,u.height),u.p_context.strokeStyle=u.Settings.playcursor.color,u.p_context.beginPath(),u.p_context.moveTo(t,l+1),u.p_context.lineTo(t,l+e.Size.height-1),u.p_context.globalAlpha=.3,u.p_context.lineWidth=n,u.p_context.stroke(),u.p_context.strokeStyle="rgb(0,0,0)",u.p_context.globalAlpha=1,u.p_context.beginPath(),u.p_context.moveTo(t,l+1),u.p_context.lineTo(t,l+e.Size.height-1),u.p_context.lineWidth=1,u.p_context.stroke())}},this.changePlayCursorAbsX=function(e){u.av.PlayCursor.changeAbsX(e,u.av.audioTCalculator,u.av.AudioPxWidth,u.av.Chunk),u.playcursorchange.emit(u.av.PlayCursor)},this.changePlayCursorSamples=function(e,n){u.av.PlayCursor.changeSamples(e,u.av.audioTCalculator,n),u.playcursorchange.emit(u.av.PlayCursor)},this.drawTimeLine=function(){if(this.Settings.timeline.enabled&&this.av.LinesArray.length>0&&this.av.DurTime.samples>0&&this.av.AudioPxWidth>0){var e=this.g_context.measureText(this.getmaxString(Math.round(100*this.av.DurTime.seconds)/100,2)).width+12;e/=this.Settings.multi_line?this.Settings.pixel_per_sec:this.av.audioTCalculator.samplestoAbsX(this.av.audioTCalculator.secondsToSamples(1),this.av.DurTime);var n=this.av.audioTCalculator.secondsToSamples(e);e=this.av.audioTCalculator.samplestoAbsX(n,this.av.DurTime),n=this.av.audioTCalculator.absXChunktoSamples(e,this.av.Chunk),n-=this.av.Chunk.time.start.samples;var t=this.av.audioTCalculator.samplesToSeconds(n);t=Math.round(100*t)/100,n=this.av.audioTCalculator.secondsToSamples(t),e=this.av.audioTCalculator.samplestoAbsX(n,this.av.DurTime);var l=this.av.AudioPxWidth/e,r=this.av.Chunk.time.start;this.g_context.font=this.Settings.timeline.fontWeight+" "+this.Settings.timeline.fontSize+"px "+this.Settings.timeline.font,this.g_context.fillStyle=this.Settings.timeline.foreColor;var o=0;if(Number.isFinite(l)){this.g_context.strokeStyle="black";for(var u=0;u=0&&u.av.Selection.end.samples>u.av.Selection.start.samples?(u.changePlayCursorSamples(u.av.Selection.start.samples),u.av.current=u.av.Selection.start.clone()):(u.changePlayCursorSamples(u.av.Chunk.time.start.samples),u.av.current.samples=u.av.Chunk.time.start.samples),u.drawPlayCursorOnly(u.av.LastLine)),u.audio.stepbackward=!1,1!=u.audio.replay||u.audio.paused?u.audio.replay=!1:u.playSelection(),u.audio.paused=!1},this.av.initializeSettings(),this.subscrmanager=new i.b,this.subscrmanager.add(this.keyMap.onkeydown.subscribe(this.onKeyDown))}return Object.defineProperty(e.prototype,"pos_time",{get:function(){return this.av.PlayCursor.time_pos.samples},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Chunk",{get:function(){return this.av.Chunk},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.av.focused},set:function(e){this.av.focused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"MouseCursor",{get:function(){return this.av.Mousecursor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deactivate_shortcuts",{get:function(){return this._deactivate_shortcuts},set:function(e){this._deactivate_shortcuts=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Settings",{get:function(){return this.av.Settings},set:function(e){this.av.Settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"AudioPxWidth",{get:function(){return this.av.AudioPxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Selection",{get:function(){return this.av.Selection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PlayCursor",{get:function(){return this.av.PlayCursor},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.anim=new i.j(25),this.width=this.aview.elementRef.nativeElement.clientWidth,this.innerWidth=this.width-this.Settings.margin.left-this.Settings.margin.right,this.oldInnerWidth=this.innerWidth,this.graphicscanvas=this.graphicscanRef.nativeElement,this.playcanvas=this.playcanRef.nativeElement,this.overlaycanvas=this.overlaynacRef.nativeElement,this.mousecanvas=this.mousecanRef.nativeElement,this.g_context=this.graphicscanvas.getContext("2d"),this.p_context=this.playcanvas.getContext("2d"),this.o_context=this.overlaycanvas.getContext("2d"),this.m_context=this.mousecanvas.getContext("2d"),this.subscrmanager.add(this.audio.statechange.subscribe(function(n){"ended"===n&&(null==e.av.Selection||e.av.Selection.end.samples-e.av.Selection.start.samples==0?e.changePlayCursorSamples(e.av.Chunk.time.start.samples):e.changePlayCursorSamples(e.av.Selection.start.samples,e.av.Chunk))}))},e.prototype.ngAfterViewInit=function(){this.initialize(),this.update(!0)},e.prototype.ngOnDestroy=function(){this.stopPlayback(),this.av.destroy(),this.subscrmanager.destroy()},e.prototype.initialize=function(){this._begintime=new i.e(0,this.audio.samplerate),this.av.initialize(this.innerWidth)},e.prototype.crop=function(e,n){if("none"===e||"circle"===e){this.innerWidth/2>0&&(n.globalAlpha=1,n.save(),n.beginPath(),n.arc(this.innerWidth/2,this.height/2,this.innerWidth/2,0,2*Math.PI,!1),n.closePath(),n.clip(),this.m_context.globalAlpha=1,this.m_context.save(),this.m_context.beginPath(),this.m_context.arc(this.innerWidth/2,this.height/2,this.innerWidth/2,0,2*Math.PI,!1),this.m_context.closePath(),this.m_context.clip())}},e.prototype.updateCanvasSizes=function(){this.width=Number(this.aview.elementRef.nativeElement.clientWidth),this.innerWidth=Number(this.width-this.Settings.margin.left-this.Settings.margin.right),this.av.updateLines(this.innerWidth),this.height=this.Settings.margin.top+(this.Settings.height+this.Settings.margin.bottom)*this.av.LinesArray.length,this.graphicscanvas.width=this.width,this.mousecanvas.width=this.width,this.overlaycanvas.width=this.width,this.playcanvas.width=this.width,this.graphicscanvas.height=this.height,this.mousecanvas.height=this.height,this.overlaycanvas.height=this.height,this.playcanvas.height=this.height,this.aview.changeStyle("height",this.height.toString()+"px")},e.prototype.changeBuffer=function(e,n){var t=this;this.drawing||setTimeout(function(){t.drawing=!0,t.av.changeBuffer(e,n,t.innerWidth),t.update(!0),t.drawing=!1},25)},e.prototype.drawGrid=function(e,n,t){var l=this.Settings.timeline.enabled?this.Settings.timeline.height:0,i=Math.round(this.innerWidth/n),r=Math.round((this.Settings.height-l)/e);this.g_context.beginPath(),this.g_context.strokeStyle=this.Settings.grid.color;for(var o=Math.round(i/2);o0&&(this.g_context.moveTo(0,0),this.g_context.beginPath(),this.g_context.arc(e,e,e-2,0,2*Math.PI,!1),this.g_context.strokeStyle="black",this.g_context.lineWidth=3,this.g_context.stroke(),this.g_context.shadowColor=null,this.g_context.shadowBlur=null,this.g_context.shadowOffsetX=null,this.g_context.shadowOffsetY=null)},e.prototype.drawCursor=function(e){e&&(this.m_context.clearRect(0,0,this.width,this.height),this.m_context.globalAlpha=1,this.m_context.strokeStyle=this.Settings.cursor.color,this.m_context.beginPath(),this.m_context.moveTo(this.av.Mousecursor.relPos.x,e.Pos.y),this.m_context.lineTo(this.av.Mousecursor.relPos.x,e.Pos.y+this.Settings.height-1),this.m_context.stroke())},e.prototype.drawSegments=function(){if(this.o_context.fillStyle="white",this.o_context.clearRect(0,0,this.width,this.height-2),this.Settings.boundaries.enabled&&this.transcr.segments){var e=this.transcr.segments.getSegmentsOfRange(this.av.Chunk.time.start.samples,this.av.Chunk.time.end.samples);this.o_context.globalAlpha=1;for(var n=0;n0&&(o=e[n-1]);for(var u=this.av.audioTCalculator.samplestoAbsX(o.time.samples),s=this.innerWidth-1&&f.end>-1&&(g=Math.abs(f.end-f.start)),(f.start<1||f.start>d.Size.width)&&(m=1),f.end<1&&(g=0),(f.end<1||f.end>d.Size.width)&&(g=f.end),""==t.transcript?(this.o_context.globalAlpha=.2,this.o_context.fillStyle="red"):t.transcript==this.transcr.break_marker.code?(this.o_context.globalAlpha=.2,this.o_context.fillStyle="blue"):""!=t.transcript&&(this.o_context.globalAlpha=.2,this.o_context.fillStyle="green"),this.o_context.fillRect(m+this.Settings.margin.left,d.Pos.y,g,p)}}var v=this.av.LinesArray[a];if(v&&t.time.samples!=this.audio.duration.samples){var p=v.Size.height,h=0;h=this.Settings.multi_line?r%this.innerWidth+this.Settings.margin.left:r+this.Settings.margin.left,this.o_context.globalAlpha=.5,this.o_context.beginPath(),this.o_context.strokeStyle=this.Settings.boundaries.color,this.o_context.lineWidth=this.Settings.boundaries.width,this.o_context.moveTo(h,v.Pos.y),this.o_context.lineTo(h,v.Pos.y+p),this.o_context.stroke()}}}for(var c=0;cb?b:y,g=0;y>-1&&b>-1&&(g=Math.abs(b-y)),this.o_context.globalAlpha=.2,(y<1||y>v.Size.width)&&(m=1),b<1&&(g=0),(b<1||b>v.Size.width)&&(g=b),g>0&&(this.o_context.fillStyle=this.Settings.selection.color,this.o_context.fillRect(v.Pos.x+m,v.Pos.y,g,this.Settings.height))}}},e.prototype.onClick=function(e){var n=this,t=e.offsetX,l=e.offsetY,i=this.av.getLineByMousePosition(t,l);i&&this.Settings.selection.enabled&&(this.av.setMouseClickPosition(t,l,i,e,this.innerWidth,function(){n.drawPlayCursorOnly(i)}),this.drawSegments(),this.drawCursor(this.av.LastLine),this.selchange.emit(this.av.Selection))},e.prototype.stopPlayback=function(){this.audio.stopPlayback()||(this.av.current.samples=0,this.changePlayCursorAbsX(0),this.drawPlayCursorOnly(this.av.LastLine))},e.prototype.pausePlayback=function(){this.audio.pausePlayback()},e.prototype.startPlayback=function(){!this.audio.audioplaying&&this.av.MouseClickPos.absX1;l/=10)t+="9";n>0&&(t+=".");for(var l=0;l0){var t=this.av.getLineByAbsX(this.av.PlayCursor.absX,this.innerWidth);t&&this.drawPlayCursorOnly(t)}}},e.prototype.getLocation=function(){var e=this.aview.elementRef.nativeElement.getBoundingClientRect();return{x:e.left,y:e.top}},e.prototype.selectSegment=function(e,n,t){if(void 0===n&&(n=function(){}),void 0===t&&(t=function(){}),e>-1){var l=this.transcr.segments.get(e);if(this.transcr.segments.getStartTime(e).samples>=this.av.Chunk.time.start.samples&&l.time.samples<=this.av.Chunk.time.end.samples){var r=this.av.audioTCalculator.samplestoAbsX(this.transcr.segments.get(e).time.samples),o=new i.g(new i.e(0,this.audio.samplerate));e>0&&(o=this.transcr.segments.get(e-1));var u=this.av.audioTCalculator.samplestoAbsX(o.time.samples),s=this.innerWidth=0&&this.Chunk.time.end.samples>this.Chunk.time.start.samples){var e=this.current.samples;this.playduration.samples=this.Chunk.time.end.samples-e}else this.playduration=new l.e(0,this.audio.samplerate)},n.prototype.updateDistance=function(){0==this.playduration.samples?this.distance=this.audio_px_w-this.audioTCalculator.samplestoAbsX(this.current.samples):this.selection.start.samples>=0&&this.selection.end.samples>this.selection.start.samples?this.distance=this.audioTCalculator.samplestoAbsX(this.selection.end.samples-this.current.samples):this.Chunk.time.start.samples>=0&&this.Chunk.time.end.samples>this.Chunk.time.start.samples&&(this.distance=this.audioTCalculator.samplestoAbsX(this.Chunk.time.end.samples-this.current.samples))},n.prototype.initialize=function(n){e.prototype.initialize.call(this,n),this.Lines=[],this.audio.updateChannel(),this._channel=this.audio.channel,this.Settings.multi_line?(this.AudioPxWidth=this.audio.duration.seconds*this.Settings.pixel_per_sec,this.AudioPxWidth=this.AudioPxWidth0&&(this._zoomY=a/(i+Math.abs(o))+1,this._zoomX=n/l)}else this._zoomY=1},n.prototype.computeDisplayData=function(e,n,t){e=Math.floor(e);for(var l=0,i=0,r=[],o=t.length,u=0,s=0,a=0,c=o/e,d=n/2,p=0;po?o:Math.round(s+c);for(var h=s;h-1){var c=this.transcrService.segments.get(this.dragableBoundaryNumber);c.time.samples=s,this.transcrService.segments.change(this.dragableBoundaryNumber,c),this.transcrService.segments.sort(),a=this.getBoundaryNumber(u),this.dragableBoundaryNumber=a}else this.mouse_down=!1;this.overboundary=a>-1},n.prototype.setMouseClickPosition=function(n,t,i,r,o,u){void 0===u&&(u=function(){}),e.prototype.setMouseClickPosition.call(this,n,t,i,r,o);var s=this.getAbsXByLine(i,n-i.Pos.x,o),a=this.audioTCalculator.absXChunktoSamples(s,this.Chunk);if(this.selection&&!this.audio.audioplaying){if(null==this.last_line||this.last_line==i)if("mousedown"!==r.type||this.shift_pressed){if("mouseup"===r.type){if(this.mouse_down=!1,this.dragableBoundaryNumber>-1&&this.dragableBoundaryNumber-1&&this.dragableBoundaryNumber0)for(e=0;e=t-l&&this.transcrService.segments.get(e).time.samples<=t+l&&this.transcrService.segments.get(e).time.samples!=this.audio.duration.samples){var i=e0){var o=this.transcrService.segments.BetweenWhichSegment(this.selection.start.samples),u=this.transcrService.segments.BetweenWhichSegment(this.selection.end.samples);return null==o&&null==u||o==u||""==o.transcript&&""==u.transcript?(this.selection.start.samples>0&&this.transcrService.segments.add(this.selection.start.samples),this.transcrService.segments.add(this.selection.end.samples),{type:"add",seg_num:e,msg:null}):{type:"add",seg_num:e,msg:{type:"error",text:this.langService.instant("boundary cannot set")}}}if(0==r){var s=this.transcrService.segments.BetweenWhichSegment(Math.round(t));return null==s||""==s.transcript||"P"==s.transcript?(this.transcrService.segments.add(Math.round(t)),{type:"add",seg_num:-1,msg:{type:"success",text:""}}):{type:"add",seg_num:e,msg:{type:"error",text:this.langService.instant("boundary cannot set")}}}}return null},n.prototype.getSegmentSelection=function(e){var n=null,t=this.transcrService.segments,i=this.transcrService.segments.length;if(i>0)if(et.get(t.length-1).time.samples){var r=t.get(t.length-1).time.clone();n=new l.l(r,this.audio.duration)}else for(var o=1;ot.get(o-1).time.samples&&e0)return u>-1&&u>=i?(s.start=o>-1&&o>=i?o-e.number*l:0,o<=r?(u>r?s.end=l:u<=r&&(s.end=u-e.number*l),s):{start:-3,end:-1}):{start:-1*o,end:-1*u}}return{start:-4,end:-1}},n.prototype.updateLines=function(e){if(this.Settings.multi_line){var n=Math.ceil(this.audio_px_w/e),t=Number(this.audio_px_w);if(nthis.Lines.length)for(var l=0;le?e:t,r=this.Lines[l];r?(r.number=l,r.Size={width:Number(i),height:Number(r.Size.height)},r.Pos=l>0?{x:Number(this.Lines[l-1].Pos.x),y:Number(this.Lines[l-1].Pos.y+this.Lines[l-1].Size.height+this.Settings.margin.bottom)}:{x:this.Settings.margin.left,y:this.Settings.margin.right}):this.addLine(l,i,this.Settings.height),t-=e}}else{this.audio_px_w=e;var i=e,r=this.Lines[0];r?(r.number=0,r.Size={width:i,height:this.Settings.height}):this.addLine(0,i,this.Settings.height)}},n.prototype.getLineByAbsX=function(e,n){var t=Math.floor(e/n);return this.Lines[t]?this.Lines[t]:null},n.prototype.addLine=function(e,n,t){for(var i={height:t,width:n},r={x:this.Settings.margin.left,y:this.Settings.margin.top},o=0;o=e-this.Settings.boundaries.width/2&&l<=e+this.Settings.boundaries.width/2&&(""==t.transcript||"P"==t.transcript)&&i)return n}return-1},n.prototype.moveCursor=function(e,n){var t=this.mousecursor.line;if(!(n>0))throw"can not move cursor by given samples. Number of samples less than 0.";if(("left"===e||"right"===e)&&(this.mousecursor.timePos.samples>=this.Chunk.time.start.samples+n&&"left"===e||this.mousecursor.timePos.samples<=this.Chunk.time.end.samples-n&&"right"===e))if("left"===e){if(this.mousecursor.timePos.samples>=this.Chunk.time.start.samples+n){this.mousecursor.timePos.samples-=n;var l=this.mousecursor.timePos.samples-this.Chunk.time.start.samples,i=this.audioTCalculator.samplestoAbsX(l,this.Chunk.time.duration);this.mousecursor.relPos.x=i%t.Size.width,this.mousecursor.line=this.getLineByAbsX(i,t.Size.width),this.last_line=this.mousecursor.line}}else if("right"===e&&this.mousecursor.timePos.samples<=this.Chunk.time.end.samples-n){this.mousecursor.timePos.samples+=n;var l=this.mousecursor.timePos.samples-this.Chunk.time.start.samples,i=this.audioTCalculator.samplestoAbsX(l,this.Chunk.time.duration);this.mousecursor.relPos.x=i%t.Size.width,this.mousecursor.line=this.getLineByAbsX(i,t.Size.width),this.last_line=this.mousecursor.line}},n.prototype.destroy=function(){this.subscrmanager.destroy()},n.prototype.validateConfig=function(){var e=new r.a,n=e.validateObject(this._settings);if(!n.success)throw n.error},n.prototype.initializeSettings=function(){this._settings=new o.a,this._settings=this._settings.Settings,this.validateConfig()},n.prototype.refresh=function(){this.computeDisplayData(this.AudioPxWidth/2,this.Settings.height,this.channel)},n.ctorParameters=function(){return[{type:i.a},{type:i.c},{type:i.e},{type:u.b}]},n}(i.j)},"7PL9":function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[o["ɵqud"](201326592,1,{aview:0}),o["ɵqud"](201326592,2,{graphicscanRef:0}),o["ɵqud"](201326592,3,{overlaynacRef:0}),o["ɵqud"](201326592,4,{playcanRef:0}),o["ɵqud"](201326592,5,{mousecanRef:0}),(e()(),o["ɵeld"](0,null,null,12,"div",[["audioviewer",""],["class","audioviewer"]],null,null,null,null,null)),o["ɵdid"](8192,[[1,4],["audioview",4]],0,u.a,[o.ElementRef,o.Renderer],null,null),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[2,0],["graphicscan",1]],null,0,"canvas",[["canvasDir",""],["class","graphicscanvas"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[3,0],["overlaycan",1]],null,0,"canvas",[["canvasDir",""],["class","overlaycanvas"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[4,0],["playcan",1]],null,2,"canvas",[["canvasDir",""],["class","playcanvas"]],null,[[null,"mousedown"],[null,"mouseup"],[null,"click"],[null,"mousemove"],[null,"mouseleave"],[null,"mouseout"]],function(e,n,t){var l=!0,i=e.component;if("mousedown"===n){l=i.onClick(t)!==!1&&l}if("mouseup"===n){l=i.onClick(t)!==!1&&l}if("click"===n){l=i.onClick(t)!==!1&&l}if("mousemove"===n){l=i.onMouseMove(t)!==!1&&l}if("mouseleave"===n){l=(i.av.focused=!1)!=!1&&l}if("mouseout"===n){l=(i.av.focused=!1)!=!1&&l}return l},null,null)),o["ɵdid"](139264,null,0,a.NgClass,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["ɵpod"](["dragable"]),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[5,0],["mousecan",1]],null,0,"canvas",[["canvasDir",""],["class","mousecanvas"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n"]))],function(e,n){e(n,13,0,"playcanvas",e(n,14,0,n.component.av.overboundary))},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,2,"app-audioviewer",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=o["ɵnov"](e,2).onResize(t)!==!1&&l}return l},l,m)),o["ɵprd"](256,null,c.a,c.a,[d.a,p.a,h.a,f.a]),o["ɵdid"](2220032,null,0,s.a,[d.a,c.a,p.a,h.a,f.a],null,null)],function(e,n){e(n,2,0)},null)}var r=t("s9kg"),o=t("3j3K"),u=t("b8dR"),s=t("7/hb"),a=t("2Je8"),c=t("74QC"),d=t("iOuv"),p=t("DCT3"),h=t("FUnf"),f=t("WtPQ");t.d(n,"b",function(){return m}),n.a=l;var g=[r.a],m=o["ɵcrt"]({encapsulation:0,styles:g,data:{}});o["ɵccf"]("app-audioviewer",s.a,i,{},{selchange:"selchange",segmententer:"segmententer",segmentchange:"segmentchange",mousecursorchange:"mousecursorchange",playcursorchange:"playcursorchange",shortcuttriggered:"shortcuttriggered",alerttriggered:"altertriggered",pos_time:"pos_time"},[])},"7VyD":function(e,n,t){"use strict";var l=t("3j3K"),i=t("Gvdl"),r=(t.n(i),t("u9IK")),o=t("2Lmt"),u=t("yUTl"),s=t("OMJi"),a=(t.n(s),t("SzqK"));t.d(n,"a",function(){return c});var c=function(){function e(e,n,t,l,i,r,u,s){var a=this;this.audio=e,this.msg=n,this.keyMap=t,this.transcrService=l,this.cd=i,this.uiService=r,this.settingsService=u,this.sessService=s,this.initialized=!1,this.miniloupe_hidden=!0,this.segmentselected=!1,this.activeviewer="",this.mini_loupecoord={component:"viewer",x:0,y:0},this.temp=null,this.platform=o.d.platform,this.onEditorTyping=function(e){a.viewer.focused=!1,a.loupe.viewer.focused=!1},this.subscrmanager=new o.b}return Object.defineProperty(e.prototype,"app_settings",{get:function(){return this.settingsService.app_settings},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projectsettings",{get:function(){return this.settingsService.projectsettings},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmententer_shortc",{get:function(){return this.viewer.Settings?this.viewer.Settings.shortcuts.segment_enter.keys[this.platform]:""},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.viewer.Settings.shortcuts=this.keyMap.register("AV",this.viewer.Settings.shortcuts),this.viewer.Settings.multi_line=!1,this.viewer.Settings.height=80,this.viewer.Settings.shortcuts_enabled=!0,this.viewer.Settings.boundaries.readonly=!1,this.editor.Settings.markers=this.transcrService.guidelines.markers,this.editor.Settings.responsive=this.settingsService.responsive.enabled,this.loupe.Settings.shortcuts=this.keyMap.register("Loupe",this.loupe.Settings.shortcuts),this.loupe.Settings.shortcuts.play_pause.keys.mac="SHIFT + TAB",this.loupe.Settings.shortcuts.play_pause.keys.pc="SHIFT + TAB",this.loupe.Settings.shortcuts.step_backward.keys.mac="SHIFT + ENTER",this.loupe.Settings.shortcuts.step_backward.keys.pc="SHIFT + ENTER",this.miniloupe.Settings.shortcuts_enabled=!1,this.miniloupe.Settings.boundaries.enabled=!1,this.subscrmanager.add(i.Observable.timer(0,2e3).subscribe(function(){e.viewer.drawSegments(),e.loupe.viewer.drawSegments()})),this.subscrmanager.add(this.loupe.viewer.segmentchange.subscribe(function(n){e.onSegmentChange(n)})),this.subscrmanager.add(this.loupe.viewer.alerttriggered.subscribe(function(n){e.msg.showMessage(n.type,n.message)})),this.subscrmanager.add(this.viewer.alerttriggered.subscribe(function(n){e.msg.showMessage(n.type,n.message)}))},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy(),this.keyMap.unregister("AV"),this.keyMap.unregister("Loupe")},e.prototype.onButtonClick=function(e){switch(1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("mouse_click",{},e.timestamp,e.type+"_button"),e.type){case"play":this.viewer.startPlayback();break;case"pause":this.viewer.pausePlayback();break;case"stop":this.viewer.stopPlayback();break;case"replay":this.nav.replay=this.viewer.rePlayback();break;case"backward":this.viewer.stepBackward();break;case"default":}},e.prototype.ngAfterViewInit=function(){var e=this;this.initialized=!0,this.cd.detectChanges(),this.subscrmanager.add(this.transcrService.segmentrequested.subscribe(function(n){e.openSegment(n)}))},e.prototype.test=function(e){e&&e.end.samples-e.start.samples>0&&(this.segmentselected=!1,this.loupe.changeArea(e.start,e.end))},e.prototype.onSegmentChange=function(e){this.loupe.update(),this.viewer.drawSegments()},e.prototype.onMouseOver=function(e){this.mini_loupecoord.component=this.viewer;var n=this.viewer.getLocation();this.mini_loupecoord.y=n.y-this.viewer.Settings.height-this.miniloupe.Settings.height-17,this.changeArea(this.miniloupe,this.viewer,this.mini_loupecoord,this.viewer.MouseCursor.timePos.samples,this.viewer.MouseCursor.relPos.x)},e.prototype.onMouseOver2=function(e){this.mini_loupecoord.component=this.loupe,this.mini_loupecoord.y=this.loupe.getLocation().y-this.loupe.Settings.height-this.miniloupe.Settings.height/2+15,this.changeArea(this.miniloupe,this.loupe.viewer,this.mini_loupecoord,this.loupe.viewer.MouseCursor.timePos.samples,this.loupe.viewer.MouseCursor.relPos.x)},e.prototype.changeArea=function(e,n,t,l,i){var r=n.Chunk.time.duration.samples/this.audio.duration.samples*this.audio.samplerate/2;if(l&&i>-1){t.x=i?i-40:0;var u=Math.round(r),s=l>u?new o.e(l-u,this.audio.samplerate):new o.e(0,this.audio.samplerate),a=l-1&&this.transcrService.segments&&n0&&(this.editor.rawText=this.transcrService.segments.get(0).transcript),this.editor.Settings.height=300,this.editor.update()},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.prototype.onButtonClick=function(e){switch(1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("mouse_click",{},e.timestamp,e.type+"_button"),e.type){case"play":this.audioplayer.startPlayback();break;case"pause":this.audioplayer.pausePlayback();break;case"stop":this.audioplayer.stopPlayback();break;case"replay":this.nav.replay=this.audioplayer.rePlayback();break;case"backward":this.audioplayer.stepBackward();break;case"default":}},e.prototype.onSpeedChange=function(e){this.audio.speed=e.new_value},e.prototype.afterSpeedChange=function(e){1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("slider",e,e.timestamp,"speed_change")},e.prototype.onVolumeChange=function(e){this.audio.volume=e.new_value},e.prototype.afterVolumeChange=function(e){1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("slider",e,e.timestamp,"volume_change")},e.prototype.updateSegment=function(e){var n=this.transcrService.segments.get(0);n.transcript=this.editor.rawText,this.transcrService.segments.change(0,n)},e.prototype.onShortcutTriggered=function(e){1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("shortcut",e,Date.now(),"audioplayer")},e.prototype.onMarkerInsert=function(e){1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("marker_insert",{value:e},Date.now(),"editor")},e.prototype.onMarkerClick=function(e){this.updateSegment(null),1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("marker_click",{value:e},Date.now(),"editor")},e.ctorParameters=function(){return[{type:l.a},{type:l.e},{type:l.c},{type:l.b},{type:r.a},{type:o.a}]},e}()},"8XUb":function(e,n,t){"use strict";var l=t("3j3K"),i=t("Um5l"),r=t("wKbx");t.d(n,"a",function(){return o});var o=function(){function e(e,n){var t=this;this.cd=e,this.msgService=n,this.state="inactive",this.text="",this.type="error",this.show=!1,this.showMessage=function(e,n){t.show=!0,t.state="active",t.type=e,t.text=n,t.cd.markForCheck(),setTimeout(function(){t.state="inactive",t.cd.markForCheck()},3e3)},this.subscrmanager=new r.a}return e.prototype.ngOnInit=function(){var e=this;this.state="inactive",this.show=!1,this.cd.markForCheck(),this.subscrmanager.add(this.msgService.showmessage.subscribe(function(n){e.showMessage(n.type,n.message)}))},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.ctorParameters=function(){return[{type:l.ChangeDetectorRef},{type:i.a}]},e}()},"8irj":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){}return e.prototype.canDeactivate=function(e){return!e.canDeactivate||e.canDeactivate()},e}()},"9IH/":function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,4,"div",[["id","members-area"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](8388608,null,null,1,"router-outlet",[],null,null,null,null,null)),o["ɵdid"](73728,null,0,u.y,[u.l,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null]],null,null),(e()(),o["ɵted"](null,["\n"]))],null,null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,5,"app-members-area",[],null,null,null,l,y)),o["ɵdid"](24576,null,0,s.a,[u.j,a.a],null,null),o["ɵprd"](2304,null,c.a,c.a,[d.o]),o["ɵprd"](2304,null,p.a,p.a,[]),o["ɵprd"](2304,null,h.a,h.a,[c.a,f.a,p.a,g.a,a.a,d.o]),o["ɵprd"](2304,null,m.a,m.a,[])],null,null)}var r=t("lQkR"),o=t("3j3K"),u=t("5oXY"),s=t("MbRa"),a=t("yUTl"),c=t("iOuv"),d=t("Fzro"),p=t("s+lJ"),h=t("DCT3"),f=t("SzqK"),g=t("wGSH"),m=t("nMJj");t.d(n,"a",function(){return b});var v=[r.a],y=o["ɵcrt"]({encapsulation:0,styles:v,data:{}}),b=o["ɵccf"]("app-members-area",s.a,i,{},{},[])},"9a/J":function(e,n,t){"use strict";function l(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,1,"span",[["class","required_marker"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["*"]))],null,null)}function i(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,14,"div",[["class","radio"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,11,"label",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["","\n "])),(e()(),g["ɵeld"](0,null,null,8,"input",[["type","radio"]],[[8,"checked",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=g["ɵnov"](e,5)._handleInput(t.target.value)!==!1&&l}if("blur"===n){l=g["ɵnov"](e,5).onTouched()!==!1&&l}if("compositionstart"===n){l=g["ɵnov"](e,5)._compositionStart()!==!1&&l}if("compositionend"===n){l=g["ɵnov"](e,5)._compositionEnd(t.target.value)!==!1&&l}if("change"===n){l=g["ɵnov"](e,6).onChange()!==!1&&l}if("blur"===n){l=g["ɵnov"](e,6).onTouched()!==!1&&l}if("ngModelChange"===n){l=(i.feedback_data[e.parent.context.$implicit.name]=t)!==!1&&l}return l},null,null)),g["ɵdid"](8192,null,0,m.f,[g.Renderer,g.ElementRef,[2,m.g]],null,null),g["ɵdid"](106496,null,0,m.h,[g.Renderer,g.ElementRef,m.a,g.Injector],{name:[0,"name"],value:[1,"value"]},null),g["ɵdid"](8192,null,0,m.i,[],{required:[0,"required"]},null),g["ɵprd"](512,null,m.j,function(e){return[e]},[m.i]),g["ɵprd"](512,null,m.k,function(e,n){return[e,n]},[m.f,m.h]),g["ɵdid"](335872,null,0,m.l,[[2,m.m],[2,m.j],[8,null],[2,m.k]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),g["ɵprd"](1024,null,m.n,null,[m.l]),g["ɵdid"](8192,null,0,m.o,[m.n],null,null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,6,0,g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.name,""),g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.value,"")),e(n,7,0,n.parent.context.$implicit.required),e(n,10,0,g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.name,""),t.feedback_data[n.parent.context.$implicit.name])},function(e,n){var t=n.component;e(n,3,0,t.translate(n.parent.context.$implicit.label.languages,t.langService.currentLang)),e(n,4,0,n.parent.context.$implicit.custom.checked,g["ɵnov"](n,7).required?"":null,g["ɵnov"](n,12).ngClassUntouched,g["ɵnov"](n,12).ngClassTouched,g["ɵnov"](n,12).ngClassPristine,g["ɵnov"](n,12).ngClassDirty,g["ɵnov"](n,12).ngClassValid,g["ɵnov"](n,12).ngClassInvalid,g["ɵnov"](n,12).ngClassPending)})}function r(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,1,"span",[["class","required_marker"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["*"]))],null,null)}function o(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,16,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,13,"label",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,[["checkb",1]],null,7,"input",[["type","checkbox"]],[[8,"value",0],[8,"checked",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=g["ɵnov"](e,5).onChange(t.target.checked)!==!1&&l}if("blur"===n){l=g["ɵnov"](e,5).onTouched()!==!1&&l}if("ngModelChange"===n){l=(i.feedback_data[e.parent.context.$implicit.name]=t)!==!1&&l}return l},null,null)),g["ɵdid"](8192,null,0,m.p,[g.Renderer,g.ElementRef],null,null),g["ɵdid"](8192,null,0,m.q,[],{required:[0,"required"]},null),g["ɵprd"](512,null,m.j,function(e){return[e]},[m.q]),g["ɵprd"](512,null,m.k,function(e){return[e]},[m.p]),g["ɵdid"](335872,null,0,m.l,[[2,m.m],[2,m.j],[8,null],[2,m.k]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),g["ɵprd"](1024,null,m.n,null,[m.l]),g["ɵdid"](8192,null,0,m.o,[m.n],null,null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,r)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n ","\n "])),(e()(),g["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,6,0,n.parent.context.$implicit.required),e(n,9,0,g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.name,""),t.feedback_data[n.parent.context.$implicit.name]),e(n,14,0,n.parent.context.$implicit.required)},function(e,n){var t=n.component;e(n,4,0,g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.value,""),n.parent.context.$implicit.custom.checked,g["ɵnov"](n,6).required?"":null,g["ɵnov"](n,11).ngClassUntouched,g["ɵnov"](n,11).ngClassTouched,g["ɵnov"](n,11).ngClassPristine,g["ɵnov"](n,11).ngClassDirty,g["ɵnov"](n,11).ngClassValid,g["ɵnov"](n,11).ngClassInvalid,g["ɵnov"](n,11).ngClassPending),e(n,15,0,t.translate(n.parent.context.$implicit.label.languages,t.langService.currentLang))})}function u(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,7,"div",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,1,"label",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,0,"textarea",[["class","form-control"]],[[8,"name",0],[8,"value",0],[8,"required",0]],null,null,null,null)),(e()(),g["ɵted"](null,['\n [(ngModel)]="feedback_data[control.name]"\n ']))],null,function(e,n){var t=n.component;e(n,3,0,t.translate(n.parent.context.$implicit.label.languages,t.langService.currentLang)),e(n,6,0,g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.name,""),g["ɵinlineInterpolate"](1,"",n.parent.context.$implicit.value,""),n.parent.context.$implicit.required)})}function s(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,10,"div",[["class","ctrl"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,i)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,o)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,u)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n "]))],function(e,n){e(n,3,0,"radiobutton"===n.context.$implicit.type.type),e(n,6,0,"checkbox"===n.context.$implicit.type.type),e(n,9,0,"textarea"===n.context.$implicit.type.type)},null)}function a(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,1,"label",[["class","control-label"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,l)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,s)),g["ɵdid"](401408,null,0,v.NgForOf,[g.ViewContainerRef,g.TemplateRef,g.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),g["ɵted"](null,["\n "]))],function(e,n){e(n,6,0,n.context.$implicit.controls[0].required),e(n,13,0,n.context.$implicit.controls)},function(e,n){var t=n.component;e(n,3,0,t.translate(n.context.$implicit.title,t.langService.currentLang))})}function c(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,62,"div",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["Feedback"])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,2,"p",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n ",":\n "])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,52,"section",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,49,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,n,t){var l=!0,i=e.component;if("submit"===n){l=g["ɵnov"](e,13).onSubmit(t)!==!1&&l}if("reset"===n){l=g["ɵnov"](e,13).onReset()!==!1&&l}if("ngSubmit"===n){l=i.onSubmit(g["ɵnov"](e,13))!==!1&&l}return l},null,null)),g["ɵdid"](8192,null,0,m.r,[],null,null),g["ɵdid"](8192,[[3,4],["fo",4]],0,m.s,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),g["ɵprd"](1024,null,m.m,null,[m.s]),g["ɵdid"](8192,null,0,m.t,[m.m],null,null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,42,"fieldset",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,a)),g["ɵdid"](401408,null,0,v.NgForOf,[g.ViewContainerRef,g.TemplateRef,g.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,16,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,13,"div",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,2,"label",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,5,"textarea",[["class","form-control"],["name","comment"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=g["ɵnov"](e,32)._handleInput(t.target.value)!==!1&&l}if("blur"===n){l=g["ɵnov"](e,32).onTouched()!==!1&&l}if("compositionstart"===n){l=g["ɵnov"](e,32)._compositionStart()!==!1&&l}if("compositionend"===n){l=g["ɵnov"](e,32)._compositionEnd(t.target.value)!==!1&&l}if("ngModelChange"===n){l=(i.transcrService.feedback.comment=t)!==!1&&l}return l},null,null)),g["ɵdid"](8192,null,0,m.f,[g.Renderer,g.ElementRef,[2,m.g]],null,null),g["ɵprd"](512,null,m.k,function(e){return[e]},[m.f]),g["ɵdid"](335872,null,0,m.l,[[2,m.m],[8,null],[8,null],[2,m.k]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),g["ɵprd"](1024,null,m.n,null,[m.l]),g["ɵdid"](8192,null,0,m.o,[m.n],null,null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,18,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,15,"div",[["aria-label","..."],["class","btn-group btn-group-justified"],["role","group"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,5,"button",[["class","btn btn-raised"],["style","position:relative;width:49%;"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.back()!==!1&&l}return l},null,null)),(e()(),g["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-menu-left"]],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,null,2,"span",[],null,null,null,null,null)),(e()(),g["ɵted"](null,[" ",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,5,"button",[["class","btn btn-primary btn-raised"],["name","send"],["style","position:relative;width:49%;margin-left:2%;"],["type","submit"]],[[8,"disabled",0]],null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,2,"span",[],null,null,null,null,null)),(e()(),g["ɵted"](null,[""," "])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-send"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,20,0,t.transcrService.feedback.groups),e(n,34,0,"comment",t.transcrService.feedback.comment)},function(e,n){e(n,6,0,g["ɵunv"](n,6,0,g["ɵnov"](n,7).transform("transcription-submit.form fill out"))),e(n,11,0,g["ɵnov"](n,15).ngClassUntouched,g["ɵnov"](n,15).ngClassTouched,g["ɵnov"](n,15).ngClassPristine,g["ɵnov"](n,15).ngClassDirty,g["ɵnov"](n,15).ngClassValid,g["ɵnov"](n,15).ngClassInvalid,g["ɵnov"](n,15).ngClassPending),e(n,27,0,g["ɵunv"](n,27,0,g["ɵnov"](n,28).transform("transcription-submit.comment description"))),e(n,31,0,g["ɵnov"](n,36).ngClassUntouched,g["ɵnov"](n,36).ngClassTouched,g["ɵnov"](n,36).ngClassPristine,g["ɵnov"](n,36).ngClassDirty,g["ɵnov"](n,36).ngClassValid,g["ɵnov"](n,36).ngClassInvalid,g["ɵnov"](n,36).ngClassPending),e(n,47,0,g["ɵunv"](n,47,0,g["ɵnov"](n,48).transform("general.back"))),e(n,51,0,!g["ɵnov"](n,13).valid),e(n,54,0,g["ɵunv"](n,54,0,g["ɵnov"](n,55).transform("transcription.send")))})}function d(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,50,"div",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,2,"h4",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,36,"div",[["class","row"],["style","padding:15px;"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,16,"div",[["class","col-xs-6 export-button"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,7,"a",[],[[8,"download",0],[8,"href",4]],null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,4,"div",[],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-floppy-save export-glyphicon"]],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["","\n "])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,3,"a",[["class","export-a"],["href","https://clarin.phonetik.uni-muenchen.de/BASWebServices/#/services/WebMAUSBasic"],["target","_blank"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpod"](["value"]),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,15,"div",[["class","col-xs-6 export-button"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,6,"a",[],[[8,"download",0],[8,"href",4]],null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,3,"div",[],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-floppy-save export-glyphicon"]],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["annotJSON\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,3,"a",[["class","export-a"],["href","http://ips-lmu.github.io/EMU-webApp/"],["target","_blank"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpod"](["value"]),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,5,"button",[["class","btn btn-raised"],["style","position:relative;width:100%;margin-top:40px;"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.back()!==!1&&l}return l},null,null)),(e()(),g["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-menu-left"]],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,null,2,"span",[],null,null,null,null,null)),(e()(),g["ɵted"](null,[" ",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵted"](null,["\n "]))],null,function(e,n){var t=n.component;e(n,3,0,g["ɵunv"](n,3,0,g["ɵnov"](n,4).transform("general.export data"))),e(n,10,0,g["ɵinlineInterpolate"](1,"",t.transcrService.filename,".txt"),t.sanitize(t.getURI("text"))),e(n,15,0,g["ɵunv"](n,15,0,g["ɵnov"](n,16).transform("general.text file"))),e(n,21,0,g["ɵunv"](n,21,0,g["ɵnov"](n,23).transform("general.open",e(n,22,0,"WebMAUS")))),e(n,28,0,g["ɵinlineInterpolate"](1,"",t.transcrService.filename,"_annot.json"),t.sanitize(t.getURI("annotJSON"))),e(n,38,0,g["ɵunv"](n,38,0,g["ɵnov"](n,40).transform("general.open",e(n,39,0,"EMU-Webapp")))),e(n,47,0,g["ɵunv"](n,47,0,g["ɵnov"](n,48).transform("general.back")))})}function p(e){return g["ɵvid"](0,[g["ɵqud"](201326592,1,{modal:0}),g["ɵqud"](201326592,2,{modal2:0}),g["ɵqud"](335544320,3,{form:0}),(e()(),g["ɵeld"](0,null,null,27,"modal",[["class","modal"],["role","dialog"],["tabindex","-1"]],[[2,"fade",null],[1,"data-keyboard",0],[1,"data-backdrop",0]],null,null,_.a,_.b)),g["ɵdid"](90112,[[1,4],["modal",4]],0,S.ModalComponent,[g.ElementRef],null,null),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,6,"modal-header",[],null,null,null,w.a,w.b)),g["ɵdid"](24576,null,0,C.ModalHeaderComponent,[S.ModalComponent],null,null),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,2,"h4",[["class","modal-title"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,3,"modal-body",[],null,null,null,k.a,k.b)),g["ɵdid"](24576,null,0,P.ModalBodyComponent,[],null,null),(e()(),g["ɵted"](0,["\n ","\n "])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,10,"modal-footer",[],null,null,null,x.a,x.b)),g["ɵdid"](24576,null,0,O.ModalFooterComponent,[S.ModalComponent],null,null),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,2,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=g["ɵnov"](e,4).dismiss()!==!1&&l}return l},null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,2,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onSendNowClick()!==!1&&l}return l},null,null)),(e()(),g["ɵted"](null,["","\n "])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵted"](0,["\n"])),(e()(),g["ɵted"](null,["\n\n"])),(e()(),g["ɵeld"](0,null,null,21,"modal",[["class","modal"],["role","dialog"],["tabindex","-1"]],[[2,"fade",null],[1,"data-keyboard",0],[1,"data-backdrop",0]],null,null,_.a,_.b)),g["ɵdid"](90112,[[2,4],["modal2",4]],0,S.ModalComponent,[g.ElementRef],null,null),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,6,"modal-header",[],null,null,null,w.a,w.b)),g["ɵdid"](24576,null,0,C.ModalHeaderComponent,[S.ModalComponent],null,null),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,2,"h4",[["class","modal-title"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,9,"modal-body",[],null,null,null,k.a,k.b)),g["ɵdid"](24576,null,0,P.ModalBodyComponent,[],null,null),(e()(),g["ɵted"](0,["\n ",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵeld"](0,null,0,0,"br",[],null,null,null,null,null)),(e()(),g["ɵeld"](0,null,0,0,"br",[],null,null,null,null,null)),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵeld"](0,null,0,1,"div",[["style","color:red"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),(e()(),g["ɵted"](0,["\n "])),(e()(),g["ɵted"](0,["\n"])),(e()(),g["ɵted"](null,["\n\n"])),(e()(),g["ɵeld"](0,null,null,18,"div",[["class","panel panel-default"],["id","transcr-submit"]],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,2,"h3",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["",""])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,2,"p",[],null,null,null,null,null)),(e()(),g["ɵted"](null,["\n ","\n "])),g["ɵpid"](65536,y.a,[b.a,g.ChangeDetectorRef]),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵeld"](0,null,null,1,"app-transcr-overview",[],null,null,null,j.a,j.b)),g["ɵdid"](2482176,null,0,M.a,[T.a,I.a,D.q],{segments:[0,"segments"],show_transcriptiontable:[1,"show_transcriptiontable"],visible:[2,"visible"]},null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,c)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n "])),(e()(),g["ɵand"](8388608,null,null,1,null,d)),g["ɵdid"](8192,null,0,v.NgIf,[g.ViewContainerRef,g.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),g["ɵted"](null,["\n"]))],function(e,n){var t=n.component;e(n,66,0,t.transcrService.segments.segments,!1,!0),e(n,69,0,!t.sessService.offline),e(n,72,0,t.sessService.offline)},function(e,n){var t=n.component;e(n,3,0,g["ɵnov"](n,4).fadeClass,g["ɵnov"](n,4).dataKeyboardAttr,g["ɵnov"](n,4).dataBackdropAttr),e(n,10,0,g["ɵunv"](n,10,0,g["ɵnov"](n,11).transform("modal.transcription.send.header"))),e(n,16,0,g["ɵunv"](n,16,0,g["ɵnov"](n,17).transform("modal.transcription.send.text"))),e(n,23,0,g["ɵunv"](n,23,0,g["ɵnov"](n,24).transform("general.abort"))),e(n,27,0,g["ɵunv"](n,27,0,g["ɵnov"](n,28).transform("general.send now"))),e(n,32,0,g["ɵnov"](n,33).fadeClass,g["ɵnov"](n,33).dataKeyboardAttr,g["ɵnov"](n,33).dataBackdropAttr),e(n,39,0,g["ɵunv"](n,39,0,g["ɵnov"](n,40).transform("modal.transcription.sending.header"))),e(n,45,0,g["ɵunv"](n,45,0,g["ɵnov"](n,46).transform("modal.transcription.sending.text"))),e(n,51,0,t.send_error),e(n,58,0,g["ɵunv"](n,58,0,g["ɵnov"](n,59).transform("transcription.check"))),e(n,62,0,g["ɵunv"](n,62,0,g["ɵnov"](n,63).transform("transcription-submit.overview")))})}function h(e){return g["ɵvid"](0,[(e()(),g["ɵeld"](0,null,null,1,"app-transcription-submit",[],null,null,null,p,V)),g["ɵdid"](2482176,null,0,R.a,[A.a,E.j,T.a,N.a,g.ChangeDetectorRef,D.q,L.a,b.a,z.a],null,null)],function(e,n){e(n,1,0)},null)}var f=t("sKw1"),g=t("3j3K"),m=t("NVOs"),v=t("2Je8"),y=t("685D"),b=t("WtPQ"),_=t("uoqx"),S=t("S7tg"),w=(t.n(S),t("xAcN")),C=t("TfAg"),k=(t.n(C),t("vhkd")),P=t("xsyV"),x=(t.n(P),t("5MSB")),O=t("dUUf"),R=(t.n(O),t("pphD")),j=t("fJNd"),M=t("k0Hd"),T=t("DCT3"),I=t("iOuv"),D=t("Qbdm"),A=t("SzqK"),E=t("5oXY"),N=t("0YY0"),L=t("wGSH"),z=t("yUTl");t.d(n,"a",function(){return U});var F=[f.a],V=g["ɵcrt"]({encapsulation:0,styles:F,data:{}}),U=g["ɵccf"]("app-transcription-submit",R.a,h,{},{},[])},"9nSx":function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[o["ɵqud"](201326592,1,{fileinput:0}),(e()(),o["ɵeld"](0,null,null,14,"div",[["style","position: relative;"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[["dropzone",1]],null,11,"div",[["class","dropzone"]],null,[[null,"dragover"],[null,"drop"],[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("dragover"===n){l=i.onDragOver(t)!==!1&&l}if("drop"===n){l=i.onFileDrop(t)!==!1&&l}if("click"===n){l=i.onClick(t)!==!1&&l}return l},null,null)),o["ɵdid"](139264,null,0,s.NgStyle,[o.KeyValueDiffers,o.ElementRef,o.Renderer],{ngStyle:[0,"ngStyle"]},null),o["ɵpod"](["height"]),(e()(),o["ɵted"](null,["\n "])),o["ɵncd"](null,0),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-folder-open dragndrop"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[1,0],["fileinput",1]],null,0,"input",[["class","fileinput"],["style","display:none;"],["type","file"],["value","Select audio file"]],null,[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=i.onFileChange(t)!==!1&&l}return l},null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵted"](null,["\n"]))],function(e,n){e(n,4,0,e(n,5,0,n.component.height))},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,1,"app-drop-zone",[],null,null,null,l,c)),o["ɵdid"](57344,null,0,u.a,[],null,null)],function(e,n){e(n,1,0)},null)}var r=t("P/ZJ"),o=t("3j3K"),u=t("XFUk"),s=t("2Je8");t.d(n,"b",function(){return c}),n.a=l;var a=[r.a],c=o["ɵcrt"]({encapsulation:0,styles:a,data:{}});o["ɵccf"]("app-drop-zone",u.a,i,{innerhtml:"innerhtml",height:"height"},{afterdrop:"afterdrop"},["*"])},"9o55":function(e,n,t){"use strict";var l=t("e4rl");t.d(n,"a",function(){return i});var i=function(){function e(e,n){this._title=e,this._controls=n}return Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this._controls},enumerable:!0,configurable:!0}),e.prototype.toAny=function(){var e={title:this._title};e.controls=[];for(var n=0;ne&&o.audio.audioplaying&&(t=Math.min((o.ap.playduration.unix-(o.audio.endplaying-e))/o.ap.playduration.unix*o.audio.speed,1),l=Math.max(0,n+o.ap.Distance*t),o.changePlayCursorAbsX(l));var i=o.ap.Line;i&&o.drawPlayCursorOnly(i)},this.subscrmanager=new r.b,this.subscrmanager.add(this.keyMap.onkeydown.subscribe(this.onKeyDown))}return Object.defineProperty(e.prototype,"Data",{get:function(){return{distance:this.ap&&this.ap.Distance?this.ap.Distance:"",duration:this.audio.duration?this.audio.duration.unix:0,playduration:this.ap.playduration?this.ap.playduration.unix:0,current:this.ap.PlayCursor&&this.ap.PlayCursor.time_pos?this.ap.PlayCursor.time_pos.unix:0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this.ap.Settings},set:function(e){this.ap.Settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total_time",{get:function(){return this.ap.total_time},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current_time",{get:function(){return this.ap.current_time},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.anim=new r.j(25),this.timer=i.Observable.timer(0,200)},e.prototype.ngAfterViewInit=function(){this.graphicscanvas=this.graphicscanRef.nativeElement,this.playcanvas=this.playcanRef.nativeElement,this.overlaycanvas=this.overlaynacRef.nativeElement,this.width=this.apview.elementRef.nativeElement.clientWidth,this.innerWidth=this.width-this.settings.margin.left-this.settings.margin.right,this.oldInnerWidth=this.innerWidth,this.ap.init(this.innerWidth),this.audio.updateChannel(),this.update(),this.startTimer()},e.prototype.ngOnDestroy=function(){this.stopPlayback(),this.subscrmanager.destroy()},e.prototype.updateCanvasSizes=function(){this.width=Number(this.apview.elementRef.nativeElement.clientWidth),this.innerWidth=Number(this.width-this.settings.margin.left-this.settings.margin.right),this.height=this.settings.margin.top+this.settings.height+this.settings.margin.bottom,this.graphicscanvas.width=this.width,this.overlaycanvas.width=this.width,this.playcanvas.width=this.width,this.graphicscanvas.height=this.height,this.overlaycanvas.height=this.height,this.playcanvas.height=this.height,this.apview.changeStyle("height",this.height.toString()+"px"),this.ap.updateLines(this.innerWidth)},e.prototype.drawLine=function(){this.context=this.graphicscanvas.getContext("2d"),this.context.globalAlpha=1,this.context.fillStyle=this.settings.slider.color;var e=this.settings.margin.left,n=this.settings.height,t=Math.round(n/2)-this.settings.slider.height/2;this.context.fillRect(e,t,this.innerWidth,this.settings.slider.height),this.context.stroke()},e.prototype.clearDisplay=function(){var e=this.playcanvas,n=this.overlaycanvas,t=this.ap.Line;if(!t)throw"Line Object not found";this.context=this.playcanvas.getContext("2d"),this.context.clearRect(t.Pos.x-1,t.Pos.y-1,this.innerWidth+1,t.Size.height+1),this.context=n.getContext("2d"),this.context.globalAlpha=1,this.context.clearRect(t.Pos.x-1,t.Pos.y-1,this.innerWidth+1,t.Size.height+1),this.context.strokeStyle=this.settings.cursor.color,this.context=e.getContext("2d"),this.context.globalAlpha=1,this.context.clearRect(t.Pos.x-1,t.Pos.y-1,this.innerWidth+1,t.Size.height+1),this.context.strokeStyle=this.settings.playcursor.color,this.context=this.graphicscanvas.getContext("2d"),this.context.globalAlpha=1,this.context.strokeStyle=this.settings.framecolor,this.context.fillStyle=this.settings.backgroundcolor,this.context.fillRect(0,0,this.width,this.height)},e.prototype.onMouseMove=function(e){var n=e.offsetX,t=e.offsetY,l=this.ap.LastLine;l&&(this.ap.setMouseMovePosition(e.type,n,t,l,this.innerWidth),this.drawPlayCursorOnly(l))},e.prototype.onClick=function(e){var n=e.offsetX,t=e.offsetY,l=this.ap.Line;l&&(this.ap.setMouseClickPosition(n,t,l,e,this.innerWidth),this.drawPlayCursorOnly(l))},e.prototype.playSelection=function(){var e=this;this.ap.begintime=this.ap.calculateBeginTime(),this.ap.updatePlayDuration(),this.ap.updateDistance();var n=function(){e.audio.audioplaying=!1,e.audio.javascriptNode.disconnect(),e.audio.paused?e.ap.current.samples=e.ap.PlayCursor.time_pos.samples:e.audio.stepbackward||(e.changePlayCursorAbsX(0),e.ap.current.samples=0),1==e.audio.replay&&e.playSelection(),e.audio.stepbackward=!1,e.audio.paused=!1},t=function(){e.anim.requestFrame(e.drawPlayCursor)};this.ap.lastplayedpos=this.ap.begintime.clone(),this.audio.startPlayback(this.ap.begintime,this.ap.DurTime,t,n)},e.prototype.stopPlayback=function(){this.audio.stopPlayback()&&(this.ap.current.samples=0,this.changePlayCursorAbsX(0),this.drawPlayCursorOnly(this.ap.Line))},e.prototype.pausePlayback=function(){this.audio.pausePlayback()},e.prototype.startPlayback=function(){this.audio.audioplaying||this.playSelection()},e.prototype.startTimer=function(){var e=this;this.subscrmanager.add(this.timer.subscribe(function(){e.audio.audiobuffer&&e.ap.PlayCursor&&(e.ap.current_time=Math.round(e.ap.PlayCursor.time_pos.unix),e.ap.total_time=e.ap.Chunk.time.end.unix-e.ap.Chunk.time.start.unix,e.changeDetectorRef.markForCheck())}))},e.prototype.rePlayback=function(){return this.audio.rePlayback()},e.prototype.stepBackward=function(){var e=this;this.audio.stepBackward(function(){null!=e.ap.lastplayedpos&&(e.ap.current=e.ap.lastplayedpos.clone(),e.ap.PlayCursor.changeSamples(e.ap.lastplayedpos.samples,e.ap.audioTCalculator),e.drawPlayCursorOnly(e.ap.LastLine),e.ap.begintime=e.ap.lastplayedpos.clone(),e.startPlayback())})},e.prototype.drawPlayCursorOnly=function(e){var n=this.ap.PlayCursor.absX+this.settings.margin.left,t=Math.round((e.Size.height-this.settings.playcursor.height)/2);n<=e.Size.width+this.settings.margin.left&&(this.context=this.playcanvas.getContext("2d"),this.context.clearRect(0,0,this.width,this.height),this.context.strokeStyle=this.settings.playcursor.color,this.context.beginPath(),this.context.moveTo(n,t+1),this.context.lineTo(n,t+this.settings.playcursor.height),this.context.globalAlpha=1,this.context.lineWidth=this.settings.playcursor.width,this.context.stroke())},e.prototype.changePlayCursorAbsX=function(e){this.ap.PlayCursor.changeAbsX(e,this.ap.audioTCalculator,this.ap.AudioPxWidth,this.ap.Chunk)},e.prototype.onResize=function(e){this.width=this.apview.elementRef.nativeElement.clientWidth,this.innerWidth=this.width-this.settings.margin.left-this.settings.margin.right;this.innerWidth,this.oldInnerWidth;if(this.ap.PlayCursor){var n=new r.h(this.audio.samplerate,this.ap.playduration,this.innerWidth);r.i.log(""+this.ap.current.samples),this.ap.audioTCalculator=n,this.ap.PlayCursor.changeSamples(this.ap.current.samples,n),this.update()}},e.prototype.onReload=function(e){this.subscrmanager.destroy()},e.ctorParameters=function(){return[{type:o.a},{type:u.a},{type:l.ChangeDetectorRef},{type:o.e}]},e}()},"B+vO":function(e,n,t){"use strict";var l=t("0VXW");t.d(n,"a",function(){return r});var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.convert=function(e,n){var t=this.getDefaultAnnotJSON();t.name=n,t.annotates=n+".wav",t.sampleRate=1e3;for(var l=0;l0&&(o=this.segments.get(i-1).time.samples);var u={start:o,length:r.time.samples-o,text:r.transcript};l.push(u)}e.transcript=l}return e},e.prototype.destroy=function(){this.subscrmanager.destroy()},e.prototype.extractUI=function(e){var n=[];if(e)for(var t=0;t-1?this._statistic.pause++:this._statistic.transcribed++:this._statistic.empty++}},e.prototype.rawToHTML=function(e){var n=e;return n=this.replaceMarkersWithHTML(n),""!=e&&(n=n.replace(/\s+$/g," "),n=""!==n?""+n:""),n},e.prototype.replaceMarkersWithHTML=function(e){for(var n=e,t=0;t")}return n},e.prototype.underlineTextRed=function(e,n){var l=e,i=[];if(n.length>0){for(var r=function(e){var l=i.find(function(t){return t.start===n[e].start}),r=i.find(function(t){return t.start===n[e].start});t.i(v.isNullOrUndefined)(l)?i.push({start:n[e].start,puffer:"
"}):l.puffer+="
",t.i(v.isNullOrUndefined)(r)?i.push({start:n[e].start+n[e].length,puffer:"
"}):r.puffer="
"+r.puffer},o=0;on.start?1:void 0});var u="";for(var a in i){var c=u.length,d=i[a].start;l=s.a.insertString(l,d+c,i[a].puffer),u+=i[a].puffer}}return l},e.prototype.getErrorDetails=function(e){if(!t.i(v.isNullOrUndefined)(this._guidelines.instructions))for(var n=this._guidelines.instructions,l=0;l0){var i=[];for(var l in n){var r=n[l];i.push(new u(l,r))}return i}}return null},e.prototype.cloneShortcuts=function(e){var n={};for(var t in e)n[""+t]={keys:{mac:e[t].keys.mac,pc:e[t].keys.pc},title:e[t].title,focusonly:e[t].focusonly};return n},e.prototype.register=function(e,n){return this.getShortcuts(e)||this.shortcuts.push({identifier:e,shortcuts:this.cloneShortcuts(n)}),this.getShortcuts(e)},e.prototype.unregister=function(e){if(this.shortcuts.length>0){for(var n=-1,t=0;t0&&this.shortcuts.splice(n,1)}},e.prototype.getShortcuts=function(e){for(var n=0;n-1&&e.indexl?new r.e(t.timePos.samples-l,this.audio.samplerate):new r.e(0,this.audio.samplerate),o=t.timePos.samples-1&&e.index0?this.transcrService.segments.get(e.index-1).time:new r.e(0,44100);this.window.changeArea(t,n.time),this.window.editor.rawText=n.transcript}else this.showWindow=!0},e.ctorParameters=function(){return[{type:i.c},{type:i.e},{type:i.a},{type:i.b},{type:l.ChangeDetectorRef},{type:i.i},{type:u.a},{type:s.a}]},e}()},MbRa:function(e,n,t){"use strict";var l=t("5oXY"),i=t("yUTl"),r=t("wKbx");t.d(n,"a",function(){return o});var o=function(){function e(e,n){this.router=e,this.settService=n,this.subscrmanager=new r.a}return e.ctorParameters=function(){return[{type:l.j},{type:i.a}]},e}()},NVMR:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=["#viewer[_ngcontent-%COMP%]{max-height:200px}#editor-placeholder[_ngcontent-%COMP%]{background-color:#fff;border:1px dashed gray;padding:10px;width:100%;text-align:center}"]},Ni5f:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[".container.inner[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:10px;box-shadow:0 1px 6px #a0a0a0}"]},Nta1:function(e,n,t){"use strict";var l=t("OMJi"),i=(t.n(l),t("yUTl")),r=t("5oXY"),o=t("8A5H"),u=t("SzqK"),s=t("wKbx");t.d(n,"a",function(){return a});var a=function(){function e(e,n,i,r){this.settService=e,this.router=n,this.langService=i,this.sessService=r,this.subscrmanager=new s.a,t.i(l.isNullOrUndefined)(this.settService.projectsettings)&&this.router.navigate(["/user/load"])}return e.prototype.ngOnInit=function(){},e.prototype.toHTML=function(e){if(t.i(l.isNullOrUndefined)(e))return"";if(!t.i(l.isNullOrUndefined)(e[this.langService.currentLang]))return e[this.langService.currentLang].replace("\n","
");for(var n in e)return e[n].replace("\n","
")},e.prototype.logout=function(){this.settService.clearSettings(),this.router.navigate(["/logout"])},e.prototype.accept=function(){t.i(l.isNullOrUndefined)(this.sessService.agreement)&&(this.sessService.agreement={}),this.sessService.agreement[this.sessService.member_project]=!0,this.sessService.sessStr.store("agreement",this.sessService.agreement),this.router.navigate(["/user/transcr"])},e.ctorParameters=function(){return[{type:i.a},{type:r.j},{type:o.b},{type:u.a}]},e}()},"O/1L":function(e,n,t){"use strict";var l=t("u9IK");t.d(n,"a",function(){return r});var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),r=function(e){function n(n){var t=e.call(this,n)||this;return t.audio=n,t}return i(n,e),n.ctorParameters=function(){return[{type:l.a}]},n}(l.j)},"O/RP":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[".transcr-editor[_ngcontent-%COMP%]{width:100%;min-height:100px}.transcr-editor[_ngcontent-%COMP%] .editor-nav[_ngcontent-%COMP%]{width:100%;height:2em}.transcr-editor[_ngcontent-%COMP%] .textfield[_ngcontent-%COMP%]{margin:5px;display:block}.transcr-editor[_ngcontent-%COMP%] .marker-btn[_ngcontent-%COMP%]{height:100%;display:inline-block;padding:3px 5px;margin-right:2px;background-color:#faebcc;vertical-align:middle}.transcr-editor[_ngcontent-%COMP%] .marker-btn[_ngcontent-%COMP%]:hover{background-color:#d6e9c6;cursor:pointer}.transcr-editor[_ngcontent-%COMP%] .marker-icon[_ngcontent-%COMP%]{display:inline;margin-right:3px}.transcr-editor[_ngcontent-%COMP%] .btn-shortcut[_ngcontent-%COMP%]{font-size:.7em;margin:auto 0}.transcr-editor[_ngcontent-%COMP%] .btn-description[_ngcontent-%COMP%]{font-size:.3em}.btn-icon[_ngcontent-%COMP%], .note-editable[_ngcontent-%COMP%] .btn-icon-text[_ngcontent-%COMP%], .note-toolbar[_ngcontent-%COMP%] .btn-icon[_ngcontent-%COMP%]{height:16px}.note-toolbar[_ngcontent-%COMP%] .btn-descr[_ngcontent-%COMP%], .note-toolbar[_ngcontent-%COMP%] .btn-shortcut[_ngcontent-%COMP%]{margin-left:3px}.transcr-editor[_ngcontent-%COMP%] .note-editor[_ngcontent-%COMP%]{margin-bottom:0}"]},OB4p:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[""]},OELU:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[".alert[_ngcontent-%COMP%]{top:0;right:0;position:fixed;margin-top:30px;width:30%;z-index:30}"]},OKns:function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,6,"div",[["class","transcr-editor"]],null,[[null,"change"],[null,"click"],[null,"mouseleave"],[null,"mouseout"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=i.updateTextField()!==!1&&l}if("click"===n){l=(i.focused=!0)!=!1&&l}if("mouseleave"===n){l=(i.focused=!1)!=!1&&l}if("mouseout"===n){l=(i.focused=!1)!=!1&&l}return l},null,null)),o["ɵdid"](139264,null,0,s.NgStyle,[o.KeyValueDiffers,o.ElementRef,o.Renderer],{ngStyle:[0,"ngStyle"]},null),o["ɵpod"](["display"]),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,1,"div",[["class","textfield"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵted"](null,["\n"]))],function(e,n){e(n,1,0,e(n,2,0,n.component.visible?"inherit":"none"))},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,2,"app-transcr-editor",[],null,null,null,l,f)),o["ɵdid"](385024,null,0,u.a,[o.ChangeDetectorRef,a.a,c.a,d.a],null,null),o["ɵprd"](2304,null,p.a,p.a,[])],function(e,n){e(n,1,0)},null)}var r=t("O/RP"),o=t("3j3K"),u=t("5MHI"),s=t("2Je8"),a=t("yUTl"),c=t("WtPQ"),d=t("DCT3"),p=t("Onsj");t.d(n,"b",function(){return f}),n.a=l;var h=[r.a],f=o["ɵcrt"]({encapsulation:0,styles:h,data:{}});o["ɵccf"]("app-transcr-editor",u.a,i,{visible:"visible",markers:"markers",easymode:"easymode"},{loaded:"loaded",onkeyup:"onkeyup",marker_insert:"marker_insert",marker_click:"marker_click",typing:"typing"},[])},Onsj:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){this.Settings={markers:[],disabled_keys:["ENTER","SHIFT + ENTER","TAB"],height:300,responsive:!1}}return e}()},"P/ZJ":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[".dropzone[_ngcontent-%COMP%]{border:2px dashed grey;background-color:#f0f0f0;padding:20px;min-height:100px;text-align:center;width:100%}.dropzone[_ngcontent-%COMP%]:hover{cursor:pointer}.dropzone[_ngcontent-%COMP%] .dragndrop[_ngcontent-%COMP%]{padding:10px;color:#a0a0a0;font-size:30px}"]},PSLa:function(e,n,t){"use strict";function l(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","btn-description"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm"]),(e()(),v["ɵted"](null,["",""]))],function(e,n){e(n,1,0,"btn-description",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.play.label)})}function i(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","shortcut-descr"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm hidden-md"]),(e()(),v["ɵted"](null,[" ",""]))],function(e,n){e(n,1,0,"shortcut-descr",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.play.shortcut)})}function r(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,9,"a",[["class","btn btn-default btn-raised"],["name","play"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onButtonClick("play")!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-play"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,l)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,i)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,5,0,!t.easymode),e(n,8,0,!t.easymode)},null)}function o(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","btn-description"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm"]),(e()(),v["ɵted"](null,["",""]))],function(e,n){e(n,1,0,"btn-description",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.pause.label)})}function u(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","shortcut-descr"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm hidden-md"]),(e()(),v["ɵted"](null,[" ",""]))],function(e,n){e(n,1,0,"shortcut-descr",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.pause.shortcut)})}function s(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,8,"a",[["class","btn btn-default btn-raised"],["name","pause"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onButtonClick("pause")!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-pause"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,o)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,u)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,n){var t=n.component;e(n,5,0,!t.easymode),e(n,8,0,!t.easymode)},null)}function a(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","btn-description"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm"]),(e()(),v["ɵted"](null,["",""]))],function(e,n){e(n,1,0,"btn-description",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.stop.label)})}function c(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","shortcut-descr"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm hidden-md"]),(e()(),v["ɵted"](null,[" ",""]))],function(e,n){e(n,1,0,"shortcut-descr",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.stop.shortcut)})}function d(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","btn-description"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm"]),(e()(),v["ɵted"](null,["",""]))],function(e,n){e(n,1,0,"btn-description",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.replay.label)})}function p(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","btn-description"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm"]),(e()(),v["ɵted"](null,[""," "]))],function(e,n){e(n,1,0,"btn-description",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.backward.label)})}function h(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,3,"span",[["class","shortcut-descr"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs hidden-sm hidden-md"]),(e()(),v["ɵted"](null,[" ",""]))],function(e,n){e(n,1,0,"shortcut-descr",e(n,2,0,n.component.responsive))},function(e,n){e(n,3,0,n.component.buttons.backward.shortcut)})}function f(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,119,"div",[["class","audio-nav"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,116,"div",[["class","row"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,43,"div",[["class","col-md-7"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,40,"div",[["class","btn-toolbar"],["role","toolbar"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,37,"div",[["aria-label","..."],["class","btn-group btn-group-justified"],["role","group"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,r)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,s)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,8,"a",[["class","btn btn-default btn-raised"],["name","stop"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onButtonClick("stop")!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-stop"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,a)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,c)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,8,"a",[["class","btn btn-default btn-raised"],["name","replay"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onButtonClick("replay")!==!1&&l}return l},null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["active"]),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-repeat"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,d)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,8,"a",[["class","btn btn-default btn-raised"],["name","step_back"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onButtonClick("backward")!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-step-backward"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,p)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,h)),v["ɵdid"](8192,null,0,y.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,68,"div",[["class","col-md-5"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,65,"div",[["class","btn-toolbar"],["role","toolbar"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,62,"div",[["class","btn-group btn-group-justified"],["role","group"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,29,"div",[["class","btn btn-raised"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,26,"div",[["class","row"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,2,"div",[["class","col-xs-1 col-sm-4 col-md-3"]],null,null,null,null,null)),(e()(),v["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-volume-off"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,9,"div",[["class","col-xs-10 col-sm-4 col-md-6"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,6,"input",[["class","slider"],["id","volume-slider"],["max","3"],["min","0"],["name","volume"],["step","0.2"],["type","range"],["value","1"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=v["ɵnov"](e,66)._handleInput(t.target.value)!==!1&&l}if("blur"===n){l=v["ɵnov"](e,66).onTouched()!==!1&&l}if("compositionstart"===n){l=v["ɵnov"](e,66)._compositionStart()!==!1&&l}if("compositionend"===n){l=v["ɵnov"](e,66)._compositionEnd(t.target.value)!==!1&&l}if("change"===n){l=v["ɵnov"](e,67).onChange(t.target.value)!==!1&&l}if("input"===n){l=v["ɵnov"](e,67).onChange(t.target.value)!==!1&&l}if("blur"===n){l=v["ɵnov"](e,67).onTouched()!==!1&&l}if("ngModelChange"===n){l=(i.volume=t)!==!1&&l}if("change"===n){l=i.afterVolumeChange()!==!1&&l}return l},null,null)),v["ɵdid"](8192,null,0,_.f,[v.Renderer,v.ElementRef,[2,_.g]],null,null),v["ɵdid"](8192,null,0,_.u,[v.Renderer,v.ElementRef],null,null),v["ɵprd"](512,null,_.k,function(e,n){return[e,n]},[_.f,_.u]),v["ɵdid"](335872,null,0,_.l,[[8,null],[8,null],[8,null],[2,_.k]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),v["ɵprd"](1024,null,_.n,null,[_.l]),v["ɵdid"](8192,null,0,_.o,[_.n],null,null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,8,"div",[["class","col-xs-1 col-sm-4 col-md-3"]],null,null,null,null,null)),(e()(),v["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-volume-up"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,4,"div",[["class","slider-descr"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs"]),(e()(),v["ɵted"](null,["","%\n "])),v["ɵpid"](0,S.a,[]),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,28,"div",[["class","btn btn-raised"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,25,"div",[["class","row"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,2,"div",[["class","col-xs-1 col-sm-4 col-md-3"]],null,null,null,null,null)),(e()(),v["ɵeld"](0,null,null,0,"img",[["alt","fast"],["src","assets/img/components/audio-navigation/slow.png"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,9,"div",[["class","col-xs-10 col-sm-4 col-md-6"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,6,"input",[["class","slider"],["id","speed-slider"],["max","1.8"],["min","0.2"],["name","speed"],["step","0.2"],["type","range"],["value","1"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=v["ɵnov"](e,97)._handleInput(t.target.value)!==!1&&l}if("blur"===n){l=v["ɵnov"](e,97).onTouched()!==!1&&l}if("compositionstart"===n){l=v["ɵnov"](e,97)._compositionStart()!==!1&&l}if("compositionend"===n){l=v["ɵnov"](e,97)._compositionEnd(t.target.value)!==!1&&l}if("change"===n){l=v["ɵnov"](e,98).onChange(t.target.value)!==!1&&l}if("input"===n){l=v["ɵnov"](e,98).onChange(t.target.value)!==!1&&l}if("blur"===n){l=v["ɵnov"](e,98).onTouched()!==!1&&l}if("ngModelChange"===n){l=(i.speed=t)!==!1&&l}if("change"===n){l=i.afterSpeedChange()!==!1&&l}return l},null,null)),v["ɵdid"](8192,null,0,_.f,[v.Renderer,v.ElementRef,[2,_.g]],null,null),v["ɵdid"](8192,null,0,_.u,[v.Renderer,v.ElementRef],null,null),v["ɵprd"](512,null,_.k,function(e,n){return[e,n]},[_.f,_.u]),v["ɵdid"](335872,null,0,_.l,[[8,null],[8,null],[8,null],[2,_.k]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),v["ɵprd"](1024,null,_.n,null,[_.l]),v["ɵdid"](8192,null,0,_.o,[_.n],null,null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,7,"div",[["class","col-xs-1 col-sm-4 col-md-3"]],null,null,null,null,null)),(e()(),v["ɵeld"](0,null,null,0,"img",[["alt","fast"],["src","assets/img/components/audio-navigation/fast.png"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,3,"div",[["class","slider-descr"]],null,null,null,null,null)),v["ɵdid"](139264,null,0,y.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),v["ɵpod"](["hidden-xs"]),(e()(),v["ɵted"](null,["","x"])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n"]))],function(e,n){var t=n.component;e(n,11,0,!t.audioplaying),e(n,14,0,t.audioplaying),e(n,21,0,!t.easymode),e(n,24,0,!t.easymode),e(n,27,0,"btn btn-default btn-raised",e(n,28,0,t.replay)),e(n,33,0,!t.easymode),e(n,41,0,!t.easymode),e(n,44,0,!t.easymode),e(n,69,0,"volume",t.volume),e(n,78,0,"slider-descr",e(n,79,0,t.responsive)),e(n,100,0,"speed",t.audioplaying,t.speed),e(n,109,0,"slider-descr",e(n,110,0,t.responsive))},function(e,n){var t=n.component;e(n,65,0,v["ɵnov"](n,71).ngClassUntouched,v["ɵnov"](n,71).ngClassTouched,v["ɵnov"](n,71).ngClassPristine,v["ɵnov"](n,71).ngClassDirty,v["ɵnov"](n,71).ngClassValid,v["ɵnov"](n,71).ngClassInvalid,v["ɵnov"](n,71).ngClassPending),e(n,80,0,v["ɵunv"](n,80,0,v["ɵnov"](n,81).transform(t.volume))),e(n,96,0,v["ɵnov"](n,102).ngClassUntouched,v["ɵnov"](n,102).ngClassTouched,v["ɵnov"](n,102).ngClassPristine,v["ɵnov"](n,102).ngClassDirty,v["ɵnov"](n,102).ngClassValid,v["ɵnov"](n,102).ngClassInvalid,v["ɵnov"](n,102).ngClassPending),e(n,111,0,t.speed)})}function g(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,1,"app-audio-navigation",[],null,null,null,f,C)),v["ɵdid"](24576,null,0,b.a,[v.ChangeDetectorRef],null,null)],null,null)}var m=t("BTcI"),v=t("3j3K"),y=t("2Je8"),b=t("CY56"),_=t("NVOs"),S=t("y2BF");t.d(n,"b",function(){return C}),n.a=f;var w=[m.a],C=v["ɵcrt"]({encapsulation:0,styles:w,data:{}});v["ɵccf"]("app-audio-navigation",b.a,g,{audioplaying:"audioplaying",responsive:"responsive",easymode:"easymode",buttons:"buttons"},{buttonclick:"buttonclick",volumechange:"volumechange",aftervolumechange:"aftervolumechange",speedchange:"speedchange",afterspeedchange:"afterspeedchange"},[])},QVxr:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=["h4[_ngcontent-%COMP%]{margin-top:0;text-align:center}#login[_ngcontent-%COMP%]{padding:20px;width:100%;padding:0}#login[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.login-id-label[_ngcontent-%COMP%], .login-pw-label[_ngcontent-%COMP%]{font-size:1em}#login-id[_ngcontent-%COMP%], #login-pw[_ngcontent-%COMP%]{font-size:1.3em;width:100%;padding:5px}#login-submit[_ngcontent-%COMP%], #offline-delete-btn[_ngcontent-%COMP%], #offline-submit[_ngcontent-%COMP%]{width:100%}.ng-touched[_ngcontent-%COMP%] .ng-invalid[_ngcontent-%COMP%]{border-bottom:2px solid red}#login-disabled[_ngcontent-%COMP%]{border:1px solid gray;padding:10px;text-align:center}"]},SBU1:function(e,n,t){"use strict";function l(e){return u["ɵvid"](0,[(e()(),u["ɵeld"](0,null,null,3,"div",[["id","editor-placeholder"]],[[8,"innerHTML",1]],null,null,null,null)),u["ɵpod"](["value"]),u["ɵpid"](65536,s.a,[a.a,u.ChangeDetectorRef]),(e()(),u["ɵted"](null,["\n"]))],null,function(e,n){var t=n.component;e(n,0,0,u["ɵunv"](n,0,0,u["ɵnov"](n,2).transform("signal-gui.selection text",e(n,1,0,t.segmententer_shortc))))})}function i(e){return u["ɵvid"](0,[u["ɵqud"](201326592,1,{viewer:0}),u["ɵqud"](201326592,2,{miniloupe:0}),u["ɵqud"](201326592,3,{loupe:0}),u["ɵqud"](201326592,4,{nav:0}),u["ɵqud"](201326592,5,{editor:0}),(e()(),u["ɵeld"](0,null,null,7,"div",[["id",""],["style","width:100px;"]],null,null,null,null,null)),(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵeld"](0,null,null,4,"app-circleloupe",[],null,null,null,c.a,c.b)),u["ɵdid"](139264,null,0,d.NgStyle,[u.KeyValueDiffers,u.ElementRef,u.Renderer],{ngStyle:[0,"ngStyle"]},null),u["ɵpod"](["position","margin-left","margin-top","width","height","z-index","visibility"]),u["ɵdid"](2121728,[[2,4],["miniloupe",4]],0,p.a,[],null,null),u["ɵprd"](2304,null,h.a,h.a,[f.a]),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵeld"](0,null,null,13,"app-audio-navigation",[],null,[[null,"buttonclick"],[null,"volumechange"],[null,"aftervolumechange"],[null,"speedchange"],[null,"afterspeedchange"],[null,"audioplayingChange"],[null,"responsiveChange"]],function(e,n,t){var l=!0,i=e.component;if("buttonclick"===n){l=i.onButtonClick(t)!==!1&&l}if("volumechange"===n){l=i.onVolumeChange(t)!==!1&&l}if("aftervolumechange"===n){l=i.afterVolumeChange(t)!==!1&&l}if("speedchange"===n){l=i.onSpeedChange(t)!==!1&&l}if("afterspeedchange"===n){l=i.afterSpeedChange(t)!==!1&&l}if("audioplayingChange"===n){l=(i.audio.audioplaying=t)!==!1&&l}if("responsiveChange"===n){l=(i.settingsService.responsive.enabled=t)!==!1&&l}return l},m.a,m.b)),u["ɵdid"](24576,[[4,4],["nav",4]],0,v.a,[u.ChangeDetectorRef],{audioplaying:[0,"audioplaying"],responsive:[1,"responsive"],easymode:[2,"easymode"],buttons:[3,"buttons"]},{buttonclick:"buttonclick",volumechange:"volumechange",aftervolumechange:"aftervolumechange",speedchange:"speedchange",afterspeedchange:"afterspeedchange"}),u["ɵpid"](65536,s.a,[a.a,u.ChangeDetectorRef]),u["ɵpod"](["label","shortcut"]),u["ɵpid"](65536,s.a,[a.a,u.ChangeDetectorRef]),u["ɵpod"](["label","shortcut"]),u["ɵpid"](65536,s.a,[a.a,u.ChangeDetectorRef]),u["ɵpod"](["label","shortcut"]),u["ɵpid"](65536,s.a,[a.a,u.ChangeDetectorRef]),u["ɵpod"](["label","shortcut"]),u["ɵpid"](65536,s.a,[a.a,u.ChangeDetectorRef]),u["ɵpod"](["label","shortcut"]),u["ɵpod"](["play","pause","stop","replay","backward"]),(e()(),u["ɵted"](null,["\n\n"])),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵeld"](0,null,null,6,"div",[["id","viewer"]],null,null,null,null,null)),(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵeld"](0,null,null,3,"app-audioviewer",[],null,[[null,"selchange"],[null,"segmentchange"],[null,"segmententer"],[null,"mousecursorchange"],[null,"mouseenter"],[null,"mouseleave"],[null,"mousedown"],[null,"shortcuttriggered"],["window","resize"]],function(e,n,t){var l=!0,i=e.component;if("window:resize"===n){l=u["ɵnov"](e,33).onResize(t)!==!1&&l}if("selchange"===n){l=i.test(t)!==!1&&l}if("segmentchange"===n){l=i.onSegmentChange(t)!==!1&&l}if("segmententer"===n){l=i.onSegmentEnter(t)!==!1&&l}if("mousecursorchange"===n){l=i.onMouseOver(t)!==!1&&l}if("mouseenter"===n){l=(i.miniloupe_hidden=!1)!=!1&&l}if("mouseleave"===n){l=(i.miniloupe_hidden=!0)!=!1&&l}if("mousedown"===n){l=i.onViewerMouseDown(t)!==!1&&l}if("shortcuttriggered"===n){l=i.onShortCutTriggered(t,"signal")!==!1&&l}return l},y.a,y.b)),u["ɵprd"](256,null,b.a,b.a,[f.a,_.a,S.a,a.a]),u["ɵdid"](2220032,[[1,4],["viewer",4]],0,w.a,[f.a,b.a,_.a,S.a,a.a],null,{selchange:"selchange",segmententer:"segmententer",segmentchange:"segmentchange",mousecursorchange:"mousecursorchange",shortcuttriggered:"shortcuttriggered"}),(e()(),u["ɵted"](null,["\n "])),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵeld"](0,null,null,3,"app-loupe",[],null,[[null,"mousecursorchange"],[null,"mouseenter"],[null,"mouseleave"],[null,"segmententer"],[null,"shortcuttriggered"]],function(e,n,t){var l=!0,i=e.component;if("mousecursorchange"===n){l=i.onMouseOver2(t)!==!1&&l}if("mouseenter"===n){l=(i.miniloupe_hidden=!1)!=!1&&l}if("mouseleave"===n){l=(i.miniloupe_hidden=!0)!=!1&&l}if("segmententer"===n){l=i.onLoupeSegmentEnter(t)!==!1&&l}if("shortcuttriggered"===n){l=i.onShortCutTriggered(t,"loupe")!==!1&&l}return l},C.a,C.b)),u["ɵdid"](2220032,[[3,4],["loupe",4]],0,k.a,[],null,{mousecursorchange:"mousecursorchange",shortcuttriggered:"shortcuttriggered",segmententer:"segmententer"}),u["ɵprd"](2304,null,b.a,b.a,[f.a,_.a,S.a,a.a]),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵand"](8388608,null,null,1,null,l)),u["ɵdid"](8192,null,0,d.NgIf,[u.ViewContainerRef,u.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),u["ɵted"](null,["\n"])),(e()(),u["ɵeld"](0,null,null,3,"app-transcr-editor",[],null,[[null,"onkeyup"],[null,"marker_insert"],[null,"marker_click"],[null,"typing"]],function(e,n,t){var l=!0,i=e.component;if("onkeyup"===n){l=i.onTranscriptionChanged(t)!==!1&&l}if("marker_insert"===n){l=i.onMarkerInsert(t)!==!1&&l}if("marker_click"===n){l=i.onMarkerClick(t)!==!1&&l}if("typing"===n){l=i.onEditorTyping(t)!==!1&&l}return l},P.a,P.b)),u["ɵdid"](385024,[[5,4],["transcr",4]],0,x.a,[u.ChangeDetectorRef,O.a,a.a,_.a],{visible:[0,"visible"],markers:[1,"markers"],easymode:[2,"easymode"]},{onkeyup:"onkeyup",marker_insert:"marker_insert",marker_click:"marker_click",typing:"typing"}),u["ɵprd"](2304,null,R.a,R.a,[]),(e()(),u["ɵted"](null,["\n"]))],function(e,n){var t=n.component;e(n,8,0,e(n,9,0,"absolute",t.mini_loupecoord.x+"px",t.mini_loupecoord.y+"px","80px","80px","900",t.miniloupe_hidden?"hidden":"inherit")),e(n,15,0,t.audio.audioplaying,t.settingsService.responsive.enabled,t.sessService.easymode,e(n,26,0,e(n,17,0,u["ɵunv"](n,15,3,u["ɵnov"](n,16).transform("general.play")),t.keyMap.getShortcut("AV","play_pause")),e(n,19,0,u["ɵunv"](n,15,3,u["ɵnov"](n,18).transform("general.pause")),t.keyMap.getShortcut("AV","play_pause")),e(n,21,0,u["ɵunv"](n,15,3,u["ɵnov"](n,20).transform("general.stop")),t.keyMap.getShortcut("AV","stop")),e(n,23,0,u["ɵunv"](n,15,3,u["ɵnov"](n,22).transform("general.replay")),""),e(n,25,0,u["ɵunv"](n,15,3,u["ɵnov"](n,24).transform("general.backward")),t.keyMap.getShortcut("AV","step_backward")))),e(n,33,0),e(n,38,0),e(n,43,0,!t.segmentselected),e(n,46,0,t.segmentselected,t.transcrService.guidelines.markers,t.sessService.easymode)},null)}function r(e){return u["ɵvid"](0,[(e()(),u["ɵeld"](0,null,null,1,"app-signal-gui",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=u["ɵnov"](e,1).onResize(t)!==!1&&l}return l},i,D)),u["ɵdid"](2220032,null,0,g.a,[f.a,j.a,S.a,_.a,u.ChangeDetectorRef,M.a,O.a,T.a],null,null)],function(e,n){e(n,1,0)},null)}var o=t("NVMR"),u=t("3j3K"),s=t("685D"),a=t("WtPQ"),c=t("Sut3"),d=t("2Je8"),p=t("gkuL"),h=t("O/1L"),f=t("iOuv"),g=t("7VyD"),m=t("PSLa"),v=t("CY56"),y=t("7PL9"),b=t("74QC"),_=t("DCT3"),S=t("FUnf"),w=t("7/hb"),C=t("wzL9"),k=t("nYGH"),P=t("OKns"),x=t("5MHI"),O=t("yUTl"),R=t("Onsj"),j=t("Um5l"),M=t("s+lJ"),T=t("SzqK");t.d(n,"b",function(){return D}),n.a=i;var I=[o.a],D=u["ɵcrt"]({encapsulation:0,styles:I,data:{}});u["ɵccf"]("app-signal-gui",g.a,r,{},{},[])},SRJB:function(e,n,t){"use strict";var l=t("Um43");t.i(l.f)("fadeToggle",[t.i(l.g)("inactive",t.i(l.c)({display:"none",opacity:"0.0"})),t.i(l.g)("active",t.i(l.c)({display:"inherit",opacity:"1.0"})),t.i(l.h)("inactive => active",t.i(l.i)("300ms ease-in")),t.i(l.h)("active => inactive",t.i(l.i)("300ms ease-in"))])},Sut3:function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[o["ɵqud"](201326592,1,{loupe:0}),(e()(),o["ɵeld"](0,null,null,5,"div",[["class","circleloupe"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,2,"app-loupe",[],null,null,null,u.a,u.b)),o["ɵdid"](2220032,[[1,4],["loupe",4]],0,s.a,[],null,null),o["ɵprd"](2304,null,a.a,a.a,[c.a,d.a,p.a,h.a]),(e()(),o["ɵted"](null,["\n"]))],function(e,n){e(n,4,0)},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,2,"app-circleloupe",[],null,null,null,l,v)),o["ɵdid"](2121728,null,0,f.a,[],null,null),o["ɵprd"](2304,null,g.a,g.a,[c.a])],null,null)}var r=t("33AM"),o=t("3j3K"),u=t("wzL9"),s=t("nYGH"),a=t("74QC"),c=t("iOuv"),d=t("DCT3"),p=t("FUnf"),h=t("WtPQ"),f=t("gkuL"),g=t("O/1L");t.d(n,"b",function(){return v}),n.a=l;var m=[r.a],v=o["ɵcrt"]({encapsulation:0,styles:m,data:{}});o["ɵccf"]("app-circleloupe",f.a,i,{},{statechange:"statechange"},[])},SzqK:function(e,n,t){"use strict";var l=t("3j3K"),i=t("rtll"),r=t("+0xp"),o=t("OMJi");t.n(o);t.d(n,"a",function(){return a});var u=this&&this.__decorate||function(e,n,t,l){var i,r=arguments.length,o=r<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(o=(r<3?i(o):r>3?i(n,t,o):i(n,t))||o);return r>3&&o&&Object.defineProperty(n,t,o),o},s=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},a=function(){function e(e,n){this.sessStr=e,this.localStr=n,this.nextTranscription=0,this.transcriptionTime={start:0,end:0},this.saving=new l.EventEmitter}return Object.defineProperty(e.prototype,"agreement",{get:function(){return this._agreement},set:function(e){this._agreement=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"comment",{get:function(){return this._comment},set:function(e){this._comment=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"easymode",{get:function(){return this._easymode},set:function(e){this._easymode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language},set:function(e){this._language=e,this.sessStr.store("language",this._language)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sessionfile",{get:function(){return r.a.fromAny(this._sessionfile)},set:function(e){this._sessionfile=null!=e?e.toAny():null,this.localStr.store("sessionfile",this._sessionfile)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offline",{get:function(){return this._offline},set:function(e){this._offline=e,this.sessStr.store("offline",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"audio_url",{get:function(){return this._audio_url},set:function(e){this._audio_url=e,this.localStr.store("audio_url",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data_id",{get:function(){return this._data_id},set:function(e){this._data_id=e,this.localStr.store("data_id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},set:function(e){this._logs=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"feedback",{get:function(){return this._feedback},set:function(e){this._feedback=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transcription",{get:function(){return this._transcription},set:function(e){this._transcription=e,this.localStr.store("transcription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"SessionKey",{get:function(){return this.session_key},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"MemberID",{get:function(){return this.member_id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"MemberProject",{get:function(){return this.member_project},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"MemberJobno",{get:function(){return this.member_jobno},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"LoggedIn",{get:function(){return this.logged_in},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Interface",{get:function(){return this._interface},set:function(e){this._interface=e,this.sessStr.store("interface",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"FinishedTranscriptions",{get:function(){return this.finishedTranscriptions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"TranscriptionTime",{get:function(){return this.transcriptionTime},set:function(e){this.transcriptionTime=e,this.sessStr.store("transcriptionTime",this.transcriptionTime)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"SampleRate",{get:function(){return this._samplerate},set:function(e){this._samplerate=e,this.sessStr.store("samplerate",this._samplerate)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},set:function(e){this._submitted=e},enumerable:!0,configurable:!0}),e.prototype.setNewSessionKey=function(){this.session_key="",this.sessStr.store("session_key",this.session_key)},e.prototype.setSessionData=function(e,n,l,i){return void 0===i&&(i=!1),t.i(o.isNullOrUndefined)(this._easymode)&&(this._easymode=!1),i&&t.i(o.isNullOrUndefined)(e)?(this._interface="editor without signal display",this.setNewSessionKey(),this.localStr.store("offline",!0),this.localStr.store("member_project",""),this.localStr.store("member_jobno","-1"),this.sessStr.store("transcriptionTime",{start:0,end:0}),this.setMemberID("-1"),this.login=!0,this.logged_in=!0,{error:""}):this.login?{error:""}:(this._interface="editor without signal display",this.setNewSessionKey(),this.setMemberID(e.id),this.sessStr.store("logInTime",Date.now()),this.sessStr.store("logged_in",this.logged_in),this.sessStr.store("finishedTranscriptions",0),this.sessStr.store("nextTranscription",0),this.sessStr.store("transcriptionTime",{start:0,end:0}),this.localStr.store("data_id",n),this.localStr.store("audio_url",l),this.sessStr.store("interface",this._interface),this.localStr.store("member_project",e.project),this.localStr.store("member_jobno",e.jobno),this.localStr.store("offline",!1),this.login=!0,this.logged_in=!0,{error:""})},e.prototype.setMemberID=function(e){return this.member_id=e,this.localStr.store("member_id",this.member_id),!0},e.prototype.clearSession=function(){return this.logged_in=!1,this.login=!1,this.sessStr.clear(),null==this.sessStr.retrieve("session_key")&&null==this.sessStr.retrieve("member_id")},e.prototype.clearLocalStorage=function(){return this.logged_in=!1,this.login=!1,this.localStr.clear(),null==this.sessStr.retrieve("data_id")&&null==this.sessStr.retrieve("audio_url")},e.prototype.incrementFinishedTranscriptions=function(){this.finishedTranscriptions++},e.prototype.save=function(e,n){switch(this.saving.emit(!0),e){case"transcription":this.localStr.store(e,n);break;case"feedback":this.localStr.store(e,n);break;case"logs":this.localStr.store(e,n);break;default:return!1}return this.saving.emit(!1),!0},e.ctorParameters=function(){return[{type:i.d},{type:i.e}]},e}();u([t.i(i.f)("session_key"),s("design:type",String)],a.prototype,"session_key",void 0),u([t.i(i.f)(),s("design:type",Boolean)],a.prototype,"logged_in",void 0),u([t.i(i.f)(),s("design:type",Number)],a.prototype,"logInTime",void 0),u([t.i(i.f)(),s("design:type",Number)],a.prototype,"finishedTranscriptions",void 0),u([t.i(i.f)(),s("design:type",Number)],a.prototype,"nextTranscription",void 0),u([t.i(i.f)(),s("design:type",Object)],a.prototype,"transcriptionTime",void 0),u([t.i(i.f)("interface"),s("design:type",String)],a.prototype,"_interface",void 0),u([t.i(i.f)("samplerate"),s("design:type",Number)],a.prototype,"_samplerate",void 0),u([t.i(i.f)("agreement"),s("design:type",Object)],a.prototype,"_agreement",void 0),u([t.i(i.g)("transcription"),s("design:type",Object)],a.prototype,"_transcription",void 0),u([t.i(i.g)("submitted"),s("design:type",Boolean)],a.prototype,"_submitted",void 0),u([t.i(i.g)("feedback"),s("design:type",Object)],a.prototype,"_feedback",void 0),u([t.i(i.g)("logs"),s("design:type",Array)],a.prototype,"_logs",void 0),u([t.i(i.g)("data_id"),s("design:type",Number)],a.prototype,"_data_id",void 0),u([t.i(i.g)("audio_url"),s("design:type",String)],a.prototype,"_audio_url",void 0),u([t.i(i.g)("offline"),s("design:type",Boolean)],a.prototype,"_offline",void 0),u([t.i(i.g)("sessionfile"),s("design:type",Object)],a.prototype,"_sessionfile",void 0),u([t.i(i.g)("language"),s("design:type",String)],a.prototype,"_language",void 0),u([t.i(i.g)(),s("design:type",String)],a.prototype,"member_id",void 0),u([t.i(i.g)(),s("design:type",String)],a.prototype,"member_project",void 0),u([t.i(i.g)(),s("design:type",String)],a.prototype,"member_jobno",void 0),u([t.i(i.g)("easymode"),s("design:type",Boolean)],a.prototype,"_easymode",void 0),u([t.i(i.g)("comment"),s("design:type",String)],a.prototype,"_comment",void 0)},To3R:function(e,n,t){"use strict";var l=t("5oXY"),i=t("SzqK");t.d(n,"a",function(){return r});var r=function(){function e(e,n){this.sessService=e,this.router=n}return e.prototype.canActivate=function(e,n){return!!this.sessService.submitted||(this.router.navigate(["/user/load"]),!1)},e.ctorParameters=function(){return[{type:i.a},{type:l.j}]},e}()},U6hS:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){}return e.scrollTo=function(e,n){jQuery("html, body").scrollTop(e)},e.buildStr=function(e,n){var t=e,l=/({[0-9]+})+/g;if(t.match(l).length!=n.length)throw"buildStr: number of placeholders do not match with array";for(var i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")},e.unEscapeHtml=function(e){return e.replace("&","&").replace("<","<").replace(">",">").replace(""",'"').replace("'","'")},e.insertString=function(e,n,t){var l=e;if(!(n<=e.length))throw"String cannot be inserted at position "+n;return l=l.substring(0,n)+t+l.substring(n)},e}()},Um5l:function(e,n,t){"use strict";var l=t("3j3K");t.d(n,"a",function(){return i});var i=function(){function e(){this.showmessage=new l.EventEmitter}return e.prototype.showMessage=function(e,n){this.showmessage.emit({type:e,message:n})},e.ctorParameters=function(){return[]},e}()},VY18:function(e,n,t){"use strict";var l=t("3j3K"),i=t("5oXY"),r=t("nhD7"),o=t("SzqK"),u=t("Gvdl"),s=(t.n(u),t("U6hS")),a=t("0YY0"),c=t("2YZJ"),d=t("+0xp"),p=t("OMJi"),h=(t.n(p),t("2Lmt")),f=t("Fzro"),g=t("yUTl"),m=t("0HDV");t.d(n,"a",function(){return v});var v=function(){function e(e,n,t,l,i,r,o,u){var s=this;this.router=e,this.loginService=n,this.sessionService=t,this.api=l,this.cd=i,this.http=r,this.settingsService=o,this.modService=u,this.valid_platform=!1,this.valid_size=!1,this.agreement_checked=!0,this.projects=[],this.valid=!1,this.member={id:"",agreement:"",project:"",jobno:null},this.err="",this.onOfflineSubmit=function(e){var n=s.dropzone.file.type?s.dropzone.file.type:"unknown";if(null!=s.dropzone.file&&"audio/x-wav"==n||"audio/wav"==n){null==s.sessionService.member_id&&""!=s.sessionService.member_id||(s.sessionService.logs=null,s.sessionService.transcription=null,s.sessionService.data_id=null);var t=s.sessionService.setSessionData(null,0,null,!0);""===t.error?(s.sessionService.offline=!0,s.sessionService.sessionfile=new d.a(s.dropzone.file.name,s.dropzone.file.size,s.dropzone.file.lastModifiedDate,s.dropzone.file.type),s.sessionService.file=s.dropzone.file,s.navigate()):alert(t.error)}else alert("Die Datei ist vom Typ "+n+" und wird nicht unterstützt.")},this.newTranscription=function(){null!=s.dropzone.file&&(s.sessionService.clearSession(),s.sessionService.clearLocalStorage(),s.sessionService.setSessionData(null,0,""),s.sessionService.sessionfile=s.getSessionFile(s.dropzone.file),s.sessionService.file=s.dropzone.file,s.sessionService.offline=!0,s.navigate())},this.subscrmanager=new h.b}return Object.defineProperty(e.prototype,"sessionfile",{get:function(){return this.sessionService.sessionfile},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"apc",{get:function(){return this.settingsService.app_settings},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.browser_check=new c.a,this.valid_platform=!0,this.apc.octra.allowed_browsers.length>0?this.valid_platform=this.browser_check.isValidBrowser(this.apc.octra.allowed_browsers):this.valid_platform=!0,0==this.settingsService.responsive.enabled?this.valid_size=window.innerWidth>=this.settingsService.responsive.fixedwidth:this.valid_size=!0,this.cd.markForCheck(),this.cd.detectChanges()},e.prototype.ngAfterViewInit=function(){this.loadPojectsList(),setTimeout(function(){jQuery.material.init()},0)},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.prototype.onSubmit=function(e){var n=this,l=!1,i=!1;null!=this.sessionService.sessionfile?l=!0:!t.i(p.isNullOrUndefined)(this.sessionService.data_id)&&t.i(p.isNumber)(this.sessionService.data_id)?t.i(p.isNullOrUndefined)(this.sessionService.member_project)||t.i(p.isNullOrUndefined)(this.sessionService.member_jobno)||t.i(p.isNullOrUndefined)(this.sessionService.member_id)||(this.sessionService.member_id===this.member.id&&this.sessionService.member_jobno===this.member.jobno.toString()&&this.sessionService.member_project===this.member.project?i=!0:l=!0):l=!0,l?this.subscrmanager.add(this.api.beginSession(this.member.project,this.member.id,Number(this.member.jobno)).catch(function(e){return alert("Server cannot be requested. Please check if you are online."),u.Observable.throw(e)}).subscribe(function(t){var l=t.json();if(e.valid&&n.agreement_checked&&"0"!==l.message){null!=n.sessionService.sessionfile&&n.sessionService.clearLocalStorage();var i=n.sessionService.setSessionData(n.member,l.data.id,l.data.url);""===i.error?n.navigate():alert(i.error)}else n.modService.show("login_invalid")})):i&&this.subscrmanager.add(this.api.fetchAnnotation(this.sessionService.data_id).catch(function(e){return alert("Server cannot be requested. Please check if you are online."),u.Observable.throw(e)}).subscribe(function(t){var l=t.json();if(e.valid&&n.agreement_checked&&"0"!==l.message){null!=n.sessionService.sessionfile&&n.sessionService.clearLocalStorage();var i=n.sessionService.setSessionData(n.member,l.data.id,l.data.url);""===i.error?n.navigate():alert(i.error)}else n.modService.show("login_invalid")}))},e.prototype.canDeactivate=function(){return this.valid},e.prototype.navigate=function(){this.router.navigate(["user"],{queryParams:{login:!0}})},e.prototype.onResize=function(e){0==this.settingsService.responsive.enabled?this.valid_size=window.innerWidth>=this.settingsService.responsive.fixedwidth:this.valid_size=!0},e.prototype.openAgreement=function(){this.agreement.open()},e.prototype.getDropzoneFileString=function(e){var n=s.a.getFileSize(e.size);return s.a.buildStr("{0} ({1} {2})",[e.name,Math.round(100*n.size)/100,n.label])},e.prototype.getSessionFile=function(e){return new d.a(e.name,e.size,e.lastModifiedDate,e.type)},e.prototype.getFileStatus=function(){return t.i(p.isNullOrUndefined)(this.dropzone.file)||"audio/wav"!=this.dropzone.file.type&&"audio/x-wav"!=this.dropzone.file.type?"unknown":null==this.sessionService.sessionfile||this.dropzone.file.name==this.sessionService.sessionfile.name?"start":"new"},e.prototype.getValidBrowsers=function(){for(var e="",n=0;n=0&&n<=this.audio_px_width){var r=n/this.audio_px_width;return e.roundSamples(i*r+t.time.start.samples)}return-1},e.prototype.absXtoSamples2=function(n,t){var l=t.time.start?t.time.start.samples:1,i=t.time.end.samples-l;if(n>=0&&n<=this.audio_px_width){var r=n/this.audio_px_width;return e.roundSamples(i*r)}return-1},e.prototype.samplesToSeconds=function(e){return this.samplerate>0&&e>-1?e/this.samplerate:0},e.prototype.secondsToSamples=function(n){return this.samplerate>0&&n>-1?e.roundSamples(n*this.samplerate):0},e.roundSamples=function(e){return Math.round(e)},e}()},X1ub:function(e,n,t){"use strict";!function(){function e(e,n,t,l,i,r,o,u,s,a,c){this._id=e,this._annotator=n,this._annobegin=t,this._annoend=l,this._url=i,this._segmentbegin=r,this._segmentend=o,this._priority=u,this._status=s,this._project=a,this._jobno=c}Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annotator",{get:function(){return this._annotator},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annobegin",{get:function(){return this._annobegin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annoend",{get:function(){return this._annoend},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmentbegin",{get:function(){return this._segmentbegin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmentend",{get:function(){return this._segmentend},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"priority",{get:function(){return this._priority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"project",{get:function(){return this._project},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"jobno",{get:function(){return this._jobno},enumerable:!0,configurable:!0}),e}()},XFUk:function(e,n,t){"use strict";var l=t("3j3K");t.d(n,"a",function(){return i});var i=function(){function e(){this.innerhtml="",this.height="auto",this.fileAPIsupported=!1,this.afterdrop=new l.EventEmitter}return Object.defineProperty(e.prototype,"file",{get:function(){return this._file},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sessionfile",{get:function(){return this._sessionfile},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){window.File&&window.FileReader&&window.FileList&&window.Blob&&(this.fileAPIsupported=!0)},e.prototype.onDragOver=function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},e.prototype.onFileDrop=function(e){if(e.stopPropagation(),e.preventDefault(),this.fileAPIsupported){var n=e.dataTransfer.files;1==n.length&&(this._file=n[0],this.afterdrop.emit(this._file))}},e.prototype.onClick=function(e){this.fileinput.nativeElement.click()},e.prototype.onFileChange=function(e){var n=e.target.files;1==n.length&&(this._file=n[0],this.afterdrop.emit(this._file))},e.ctorParameters=function(){return[]},e}()},XH3Z:function(e,n,t){"use strict";function l(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,5,"li",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,2,"a",[],null,[[null,"mouseup"]],function(e,n,t){var l=!0,i=e.component;if("mouseup"===n){l=i.setInterface("Editor without signal display")!==!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](null,["\n "]))],null,function(e,n){e(n,3,0,f["ɵunv"](n,3,0,f["ɵnov"](n,4).transform("interfaces.simple editor")))})}function i(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,5,"li",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,2,"a",[],null,[[null,"mouseup"]],function(e,n,t){var l=!0,i=e.component;if("mouseup"===n){l=i.setInterface("Linear Editor")!==!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](null,["\n "]))],null,function(e,n){e(n,3,0,f["ɵunv"](n,3,0,f["ɵnov"](n,4).transform("interfaces.linear editor")))})}function r(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,3,"li",[],null,null,null,null,null)),(e()(),f["ɵeld"](0,null,null,2,"a",[],null,[[null,"mouseup"]],function(e,n,t){var l=!0,i=e.component;if("mouseup"===n){l=i.setInterface("2D-Editor")!==!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef])],null,function(e,n){e(n,2,0,f["ɵunv"](n,2,0,f["ɵnov"](n,3).transform("interfaces.2D editor")))})}function o(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,3,"li",[],null,null,null,null,null)),(e()(),f["ɵeld"](0,null,null,2,"a",[],null,[[null,"mouseup"]],function(e,n,t){var l=!0;if("mouseup"===n){l=f["ɵnov"](e.parent,3).open()!==!1&&l}return l},null,null)),(e()(),f["ɵted"](null,[""," "])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef])],null,function(e,n){e(n,2,0,f["ɵunv"](n,2,0,f["ɵnov"](n,3).transform("general.export")))})}function u(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,2,"span",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef])],null,function(e,n){e(n,1,0,f["ɵunv"](n,1,0,f["ɵnov"](n,2).transform("general.yes")))})}function s(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,2,"span",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef])],null,function(e,n){e(n,1,0,f["ɵunv"](n,1,0,f["ɵnov"](n,2).transform("general.no")))})}function a(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,7,"li",[],null,null,null,null,null)),(e()(),f["ɵeld"](0,null,null,6,"a",[],null,[[null,"mouseup"]],function(e,n,t){var l=!0,i=e.component;if("mouseup"===n){l=(i.sessService.easymode=!i.sessService.easymode)!=!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["",": "])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵand"](8388608,null,null,1,null,u)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),f["ɵand"](8388608,null,null,1,null,s)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,n){var t=n.component;e(n,5,0,t.sessService.easymode),e(n,7,0,!t.sessService.easymode)},function(e,n){e(n,2,0,f["ɵunv"](n,2,0,f["ɵnov"](n,3).transform("general.easy mode")))})}function c(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,5,"li",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,2,"a",[],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.changeLanguage(e.context.$implicit)!==!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵppd"](1),(e()(),f["ɵted"](null,["\n "]))],null,function(e,n){e(n,3,0,f["ɵunv"](n,3,0,e(n,4,0,f["ɵnov"](n.parent,0),n.context.$implicit)))})}function d(e){return f["ɵvid"](0,[f["ɵpid"](0,v.UpperCasePipe,[]),f["ɵqud"](201326592,1,{modalexport:0}),(e()(),f["ɵeld"](0,null,null,60,"modal",[["class","modal"],["role","dialog"],["tabindex","-1"]],[[2,"fade",null],[1,"data-keyboard",0],[1,"data-backdrop",0]],null,null,y.a,y.b)),f["ɵdid"](90112,[[1,4],["modalexport",4]],0,b.ModalComponent,[f.ElementRef],null,null),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵeld"](0,null,0,6,"modal-header",[],null,null,null,_.a,_.b)),f["ɵdid"](24576,null,0,S.ModalHeaderComponent,[b.ModalComponent],null,null),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵeld"](0,null,0,2,"h4",[["class","modal-title"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵeld"](0,null,0,40,"modal-body",[],null,null,null,w.a,w.b)),f["ɵdid"](24576,null,0,C.ModalBodyComponent,[],null,null),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵeld"](0,null,0,36,"div",[["class","row"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,16,"div",[["class","col-xs-6 export-button"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,7,"a",[],[[8,"download",0],[8,"href",4]],null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,4,"div",[],null,[[null,"mouseenter"]],function(e,n,t){var l=!0,i=e.component;if("mouseenter"===n){l=i.navbarServ.onExportButtonClick("text")!==!1&&l}return l},null,null)),(e()(),f["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-floppy-save"]],null,null,null,null,null)),(e()(),f["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n ","\n "])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,3,"a",[["class","export-a"],["href","https://clarin.phonetik.uni-muenchen.de/BASWebServices/#/services/WebMAUSBasic"],["target","_blank"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpod"](["value"]),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,15,"div",[["class","col-xs-6 export-button"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,6,"a",[],[[8,"download",0],[8,"href",4]],null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,3,"div",[],null,[[null,"mouseenter"]],function(e,n,t){var l=!0,i=e.component;if("mouseenter"===n){l=i.navbarServ.onExportButtonClick("annotJSON")!==!1&&l}return l},null,null)),(e()(),f["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-floppy-save"]],null,null,null,null,null)),(e()(),f["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["annotJSON\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,3,"a",[["class","export-a"],["href","http://ips-lmu.github.io/EMU-webApp/"],["target","_blank"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["",""])),f["ɵpod"](["value"]),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵeld"](0,null,0,6,"modal-footer",[],null,null,null,P.a,P.b)),f["ɵdid"](24576,null,0,x.ModalFooterComponent,[b.ModalComponent],null,null),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵeld"](0,null,0,2,"button",[["class","btn btn-primary"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=f["ɵnov"](e,3).dismiss()!==!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["","\n "])),f["ɵpid"](65536,g.a,[m.a,f.ChangeDetectorRef]),(e()(),f["ɵted"](0,["\n "])),(e()(),f["ɵted"](0,["\n"])),(e()(),f["ɵted"](null,["\n"])),(e()(),f["ɵeld"](0,null,null,62,"nav",[["class","navbar navbar-inverse"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,59,"div",[["class","container"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,18,"div",[["class","navbar-header"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,10,"button",[["aria-controls","navbar"],["class","navbar-toggle"],["data-target","#navbar"],["data-toggle","collapse"],["type","button"]],[[1,"aria-expanded",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=(i.collapsed=!i.collapsed)!=!1&&l}return l},null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["Toggle navigation"])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,0,"span",[["class","icon-bar"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,0,"span",[["class","icon-bar"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,0,"span",[["class","icon-bar"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,3,"a",[["class","navbar-brand"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=f["ɵnov"](e,83).onClick(t.button,t.ctrlKey,t.metaKey)!==!1&&l}return l},null,null)),f["ɵdid"](335872,null,0,O.z,[O.j,O.v,v.LocationStrategy],{routerLink:[0,"routerLink"]},null),f["ɵpad"](1),(e()(),f["ɵted"](null,["OCTRA v",""])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,36,"div",[["class","collapse navbar-collapse"],["id","navbar"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,16,"ul",[["class","nav navbar-nav"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵand"](8388608,null,null,1,null,l)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵand"](8388608,null,null,1,null,i)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵand"](8388608,null,null,1,null,r)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵand"](8388608,null,null,1,null,o)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵand"](8388608,null,null,1,null,a)),f["ɵdid"](8192,null,0,v.NgIf,[f.ViewContainerRef,f.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,15,"ul",[["class","nav navbar-nav navbar-right"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,12,"li",[["class","dropdown"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,3,"a",[["aria-expanded","false"],["aria-haspopup","true"],["class","dropdown-toggle"],["data-toggle","dropdown"],["href","#"],["role","button"]],null,null,null,null,null)),(e()(),f["ɵted"](null,[""," "])),f["ɵppd"](1),(e()(),f["ɵeld"](0,null,null,0,"span",[["class","caret"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵeld"](0,null,null,4,"ul",[["class","dropdown-menu"]],null,null,null,null,null)),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵand"](8388608,null,null,1,null,c)),f["ɵdid"](401408,null,0,v.NgForOf,[f.ViewContainerRef,f.TemplateRef,f.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n "])),(e()(),f["ɵted"](null,["\n"]))],function(e,n){var t=n.component;e(n,83,0,e(n,84,0,"/")),e(n,93,0,t.sessService.LoggedIn&&t.navbarServ.show_interfaces&&t.interfaceActive("Editor without signal display")),e(n,96,0,t.sessService.LoggedIn&&t.navbarServ.show_interfaces&&t.interfaceActive("Linear Editor")),e(n,99,0,t.sessService.LoggedIn&&t.navbarServ.show_interfaces&&t.interfaceActive("2D-Editor")),e(n,102,0,t.sessService.LoggedIn&&t.navbarServ.show_export),e(n,105,0,t.sessService.LoggedIn&&t.navbarServ.show_interfaces),e(n,120,0,t.langService.getLangs())},function(e,n){var t=n.component;e(n,2,0,f["ɵnov"](n,3).fadeClass,f["ɵnov"](n,3).dataKeyboardAttr,f["ɵnov"](n,3).dataBackdropAttr),e(n,9,0,f["ɵunv"](n,9,0,f["ɵnov"](n,10).transform("general.export data"))),e(n,20,0,f["ɵinlineInterpolate"](1,"",t.navbarServ.exportformats.filename,".txt"),t.sanitize(t.getURI("text"))),e(n,25,0,f["ɵunv"](n,25,0,f["ɵnov"](n,26).transform("general.text file"))),e(n,31,0,f["ɵunv"](n,31,0,f["ɵnov"](n,33).transform("general.open",e(n,32,0,"WebMAUS")))),e(n,38,0,f["ɵinlineInterpolate"](1,"",t.navbarServ.exportformats.filename,"_annot.json"),t.sanitize(t.getURI("annotJSON"))),e(n,48,0,f["ɵunv"](n,48,0,f["ɵnov"](n,50).transform("general.open",e(n,49,0,"EMU-WebApp")))),e(n,59,0,f["ɵunv"](n,59,0,f["ɵnov"](n,60).transform("general.close"))),e(n,70,0,t.collapsed),e(n,82,0,f["ɵnov"](n,83).target,f["ɵnov"](n,83).href),e(n,85,0,t.version),e(n,113,0,f["ɵunv"](n,113,0,e(n,114,0,f["ɵnov"](n,0),t.langService.currentLang)))})}function p(e){return f["ɵvid"](0,[(e()(),f["ɵeld"](0,null,null,1,"app-navigation",[],null,null,null,d,I)),f["ɵdid"](2220032,null,0,k.a,[R.a,j.a,M.q,m.a],null,null)],function(e,n){e(n,1,0)},null)}var h=t("Z8LO"),f=t("3j3K"),g=t("685D"),m=t("WtPQ"),v=t("2Je8"),y=t("uoqx"),b=t("S7tg"),_=(t.n(b),t("xAcN")),S=t("TfAg"),w=(t.n(S),t("vhkd")),C=t("xsyV"),k=(t.n(C),t("cE4U")),P=t("5MSB"),x=t("dUUf"),O=(t.n(x),t("5oXY")),R=t("SzqK"),j=t("wGSH"),M=t("Qbdm");t.d(n,"b",function(){return I}),n.a=d;var T=[h.a],I=f["ɵcrt"]({encapsulation:0,styles:T,data:{}});f["ɵccf"]("app-navigation",k.a,p,{version:"version"},{},[])},XhyJ:function(e,n,t){"use strict";function l(e){return r["ɵvid"](2,[(e()(),r["ɵted"](null,["\n "])),(e()(),r["ɵeld"](0,null,null,1,"div",[],[[2,"dropup",null],[2,"dropdown",null],[2,"show",null],[2,"open",null]],null,null,null,null)),r["ɵncd"](null,0),(e()(),r["ɵted"](null,["\n "]))],null,function(e,n){var t=n.component;e(n,1,0,"up"===t.direction,"down"===t.direction,t.isOpen,t.isOpen)})}function i(e){return r["ɵvid"](0,[(e()(),r["ɵeld"](0,null,null,1,"bs-dropdown-container",[["style","display:block;position: absolute;"]],null,null,null,l,a)),r["ɵdid"](90112,null,0,o.a,[u.a],null,null)],null,null)}var r=t("3j3K"),o=t("NvNJ"),u=t("oZUJ");t.d(n,"a",function(){return c});var s=[],a=r["ɵcrt"]({encapsulation:2,styles:s,data:{}}),c=r["ɵccf"]("bs-dropdown-container",o.a,i,{},{},["*"])},Xj1a:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(e,n,t){this.size={width:0,height:0},this.pos={x:0,y:0},this.number=-1,this.isMouseIn=!1,this.mouseIn=function(e,n){return e>this.pos.x&&ethis.pos.y&&n active",animation:{type:4,styles:null,timings:"300ms ease-in"}},{type:1,expr:"active => inactive",animation:{type:4,styles:null,timings:"300ms ease-in"}}]}]}});a["ɵccf"]("app-alert",d.a,u,{},{},[])},YT50:function(e,n,t){"use strict";var l=t("5oXY"),i=t("SzqK"),r=t("yUTl");t.d(n,"a",function(){return o});var o=function(){function e(e,n,t){this.sessService=e,this.router=n,this.settService=t}return e.prototype.canActivate=function(e,n){if(this.sessService.offline){if(!this.settService.allloaded)return this.router.navigate(["/user/transcr/reload-file"]),!1}else if(!this.settService.allloaded)return this.router.navigate(["/user/load"]),!1;return!0},e.ctorParameters=function(){return[{type:i.a},{type:l.j},{type:r.a}]},e}()},YWx4:function(e,n,t){"use strict";var l=t("0YY0"),i=t("8A5H"),r=t("SzqK"),o=t("yUTl"),u=t("wKbx"),s=t("OMJi");t.n(s);t.d(n,"a",function(){return a});var a=function(){function e(e,n,l,i){var r=this;this.api=e,this.langService=n,this.sessService=l,this.settingsService=i,this.version="1.1.0",this.onSettingsLoaded=function(){if(t.i(s.isNullOrUndefined)(r.settingsService.app_settings))throw"config.json not set correctly";r.settingsService.validated&&r.api.init(r.settingsService.app_settings.audio_server.url+"WebTranscribe"),r.settingsService.responsive.enabled||r.setFixedWidth();var e=r.settingsService.app_settings.octra.languages,n=r.langService.getBrowserLang();r.langService.addLangs(e),t.i(s.isNullOrUndefined)(r.sessService.language)||""==r.sessService.language?t.i(s.isUndefined)(r.langService.getLangs().find(function(e){return e==n}))?r.langService.use(e[0]):r.langService.use(n):r.langService.use(r.sessService.language)},this.subscrmanager=new u.a,this.subscrmanager.add(this.settingsService.settingsloaded.subscribe(this.onSettingsLoaded)),this.subscrmanager.add(this.settingsService.projectsettingsloaded.subscribe(function(){r.settingsService.responsive.enabled||r.setFixedWidth()})),this.settingsService.validated&&this.onSettingsLoaded()}return e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.prototype.setFixedWidth=function(){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.innerText=".container {width:"+this.settingsService.responsive.fixedwidth+"px}",e.appendChild(n)},e.ctorParameters=function(){return[{type:l.a},{type:i.b},{type:r.a},{type:o.a}]},e}()},Z8LO:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[".navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.navbar-brand[_ngcontent-%COMP%], .navbar-nav[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{padding-top:4px!important;padding-bottom:0!important;vertical-align:middle;line-height:inherit;height:30px}.navbar[_ngcontent-%COMP%]{min-height:30px!important}.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{vertical-align:middle;font-size:1.3em}.glyphicon[_ngcontent-%COMP%]{font-size:50px;color:#0b0080}"]},Zx1A:function(e,n,t){"use strict";var l=t("7cqO"),i=t("5oXY");t.d(n,"a",function(){return r});var r=function(){function e(e,n){this.logoutService=e,this.router=n,this.valid=!1,this.member={id:"",pw:""}}return e.prototype.ngOnInit=function(){this.logoutService.logout(),this.router.navigate(["login"])},e.ctorParameters=function(){return[{type:l.a},{type:i.j}]},e}()},aOwY:function(e,n,t){"use strict";var l=t("d397");t.d(n,"a",function(){return i});var i=function(){function e(e,n,t){this._absX=e,this._time_pos=n,this._innerWidth=t}return Object.defineProperty(e.prototype,"absX",{get:function(){return this._absX},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"time_pos",{get:function(){return this._time_pos},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relX",{get:function(){return this._innerWidth>0?this._absX%this._innerWidth:0},enumerable:!0,configurable:!0}),e.prototype.changeAbsX=function(e,n,t,l){this._absX=Math.max(0,Math.min(e,t)),this._time_pos.samples=n.absXChunktoSamples(e,l)},e.prototype.changeSamples=function(e,n,t){this._time_pos.samples=e;var i=null!=t&&t.time.start.samples0)for(var r=0;r-1&&n.sample_rate?new e(n.samples,n.sample_rate):null},e}()},d8Dy:function(e,n,t){"use strict";t("B+vO"),t("poc3")},e4rl:function(e,n,t){"use strict";var l=t("tpCV"),i=t("Fe62");t.d(n,"a",function(){return r});var r=function(){function e(e,n,t,l,i,r){this._name=e,this._value=n,this._label=t,this._required=l,this._type=i,this._custom=r}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"custom",{get:function(){return this._custom},set:function(e){this._custom=e},enumerable:!0,configurable:!0}),e.prototype.toAny=function(){return{name:this._name,value:this._value,label:this._label,required:this._required,type:this._type.type,custom:this._custom}},e.fromAny=function(n){return new e(n.name,n.value,new l.a(n.label),n.required,new i.a(n.type),n.custom)},e}()},fJNd:function(e,n,t){"use strict";function l(e){return c["ɵvid"](0,[(e()(),c["ɵeld"](0,null,null,2,"span",[["class","text-success found-errors"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef])],null,function(e,n){e(n,1,0,c["ɵunv"](n,1,0,c["ɵnov"](n,2).transform("general.no errors found")))})}function i(e){return c["ɵvid"](0,[(e()(),c["ɵeld"](0,null,null,3,"span",[["class","text-danger found-errors"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpod"](["errors"]),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef])],null,function(e,n){var t=n.component;e(n,1,0,c["ɵunv"](n,1,0,c["ɵnov"](n,3).transform("general.errors found",e(n,2,0,t.foundErrors))))})}function r(e){return c["ɵvid"](0,[(e()(),c["ɵeld"](0,null,null,18,"tr",[],null,null,null,null,null)),c["ɵdid"](139264,null,0,h.NgClass,[c.IterableDiffers,c.KeyValueDiffers,c.ElementRef,c.Renderer],{ngClass:[0,"ngClass"]},null),c["ɵpod"](["success","info","danger"]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,6,"td",[["style","width:25px;"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,3,"span",[["class","glyphicon glyphicon-warning-sign segment-warning"]],null,null,null,null,null)),c["ɵdid"](139264,null,0,h.NgStyle,[c.KeyValueDiffers,c.ElementRef,c.Renderer],{ngStyle:[0,"ngStyle"]},null),c["ɵpod"](["display"]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,3,"td",[],null,null,null,null,null)),(e()(),c["ɵeld"](0,null,null,2,"span",[["class","link segment-number"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.onSegmentClicked(e.context.index)!==!1&&l}return l},null,null)),(e()(),c["ɵted"](null,["# ",""])),c["ɵpid"](0,f.a,[]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,0,"td",[],[[8,"innerHTML",1]],[[null,"mousemove"],[null,"mousedown"]],function(e,n,t){var l=!0,i=e.component;if("mousemove"===n){l=i.onMouseOver(t)!==!1&&l}if("mousedown"===n){l=i.onMouseOver(t)!==!1&&l}return l},null,null)),(e()(),c["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,e(n,2,0,""!=n.context.$implicit.transcription.text&&n.context.$implicit.transcription.text!=t.transcrService.break_marker.code,n.context.$implicit.transcription.text==t.transcrService.break_marker.code,""==n.context.$implicit.transcription.text)),e(n,7,0,e(n,8,0,n.context.$implicit.transcription.html.indexOf("
-1?"normal":"none"))},function(e,n){var t=n.component;e(n,14,0,c["ɵunv"](n,14,0,c["ɵnov"](n,15).transform(n.context.index+1,t.shown_segments.length))),e(n,17,0,t.sanitizeHTML(n.context.$implicit.transcription.html))})}function o(e){return c["ɵvid"](0,[(e()(),c["ɵeld"](0,null,null,21,"table",[["class","table"]],[[8,"hidden",0]],null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,14,"thead",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,11,"tr",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,0,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,2,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,2,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,3,"tbody",[],null,null,null,null,null)),(e()(),c["ɵand"](8388608,null,null,1,null,r)),c["ɵdid"](401408,null,0,h.NgForOf,[c.ViewContainerRef,c.TemplateRef,c.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),c["ɵted"](null,["\n"]))],function(e,n){e(n,20,0,n.component.shown_segments)},function(e,n){e(n,0,0,!n.component.show_transcriptiontable),e(n,9,0,c["ɵunv"](n,9,0,c["ɵnov"](n,10).transform("general.segment"))),e(n,13,0,c["ɵunv"](n,13,0,c["ɵnov"](n,14).transform("general.transcription")))})}function u(e){return c["ɵvid"](0,[(e()(),c["ɵeld"](0,null,null,2,"h4",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵeld"](0,null,null,43,"table",[["class","table"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,20,"thead",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,17,"tr",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,2,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,2,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,2,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,2,"th",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,18,"tbody",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,15,"tr",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,1,"td",[["class","active"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,1,"td",[["class","success"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,1,"td",[["class","info"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,3,"td",[["class","danger"]],null,null,null,null,null)),(e()(),c["ɵeld"](0,null,null,2,"b",[],null,null,null,null,null)),(e()(),c["ɵeld"](0,null,null,1,"u",[],null,null,null,null,null)),(e()(),c["ɵted"](null,["",""])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵeld"](0,null,null,7,"p",[],[[8,"hidden",0]],null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵand"](8388608,null,null,1,null,l)),c["ɵdid"](8192,null,0,h.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵand"](8388608,null,null,1,null,i)),c["ɵdid"](8192,null,0,h.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵeld"](0,null,null,2,"h4",[],[[8,"hidden",0]],null,null,null,null)),(e()(),c["ɵted"](null,["",""])),c["ɵpid"](65536,d.a,[p.a,c.ChangeDetectorRef]),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵeld"](0,null,null,6,"div",[],[[8,"hidden",0]],null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,3,"div",[["style","display:block; text-align:center; margin-top:-10px;position:absolute;width:100%;"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵeld"](0,null,null,0,"i",[["class","fa fa-spinner fa-spin"],["style","font-size:32px"]],null,null,null,null,null)),(e()(),c["ɵted"](null,["\n "])),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵted"](null,["\n"])),(e()(),c["ɵand"](8388608,null,null,1,null,o)),c["ɵdid"](8192,null,0,h.NgIf,[c.ViewContainerRef,c.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,n){var t=n.component;e(n,52,0,0==t.foundErrors),e(n,55,0,t.foundErrors>0),e(n,71,0,t.shown_segments.length>0)},function(e,n){var t=n.component;e(n,1,0,c["ɵunv"](n,1,0,c["ɵnov"](n,2).transform("general.statistics"))),e(n,11,0,c["ɵunv"](n,11,0,c["ɵnov"](n,12).transform("segments.total"))),e(n,15,0,c["ɵunv"](n,15,0,c["ɵnov"](n,16).transform("segments.transcribed"))),e(n,19,0,c["ɵunv"](n,19,0,c["ɵnov"](n,20).transform("segments.with breaks"))),e(n,23,0,c["ɵunv"](n,23,0,c["ɵnov"](n,24).transform("segments.not transcribed"))),e(n,33,0,t.numberOfSegments),e(n,36,0,t.transcrSegments),e(n,39,0,t.pauseSegments),e(n,44,0,t.emptySegments),e(n,49,0,0==t.shown_segments.length),e(n,58,0,!t.show_transcriptiontable),e(n,59,0,c["ɵunv"](n,59,0,c["ɵnov"](n,60).transform("general.transcript"))),e(n,62,0,!t.show_loading)})}function s(e){return c["ɵvid"](0,[(e()(),c["ɵeld"](0,null,null,1,"app-transcr-overview",[],null,null,null,u,_)),c["ɵdid"](2482176,null,0,g.a,[m.a,v.a,y.q],null,null)],function(e,n){e(n,1,0)},null)}var a=t("wGy5"),c=t("3j3K"),d=t("685D"),p=t("WtPQ"),h=t("2Je8"),f=t("cYpy"),g=t("k0Hd"),m=t("DCT3"),v=t("iOuv"),y=t("Qbdm");t.d(n,"b",function(){return _}),n.a=u;var b=[a.a],_=c["ɵcrt"]({encapsulation:0,styles:b,data:{}});c["ɵccf"]("app-transcr-overview",g.a,s,{segments:"segments",show_transcriptiontable:"show_transcriptiontable",visible:"visible"},{segmentclicked:"segmentclicked"},[])},fjGX:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=["#logout[_ngcontent-%COMP%]{text-align:center}"]},gCNz:function(e,n,t){"use strict";var l=t("/AVL"),i=t("OMJi");t.n(i);t.d(n,"a",function(){return o});var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),o=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.version="1.1.0",n}return r(n,e),n.prototype.validate=function(e,n){var l="ProjectConfig Validation - ";switch(e){case"version":if("string"==typeof n)break;return{success:!1,error:l+"value of key '"+e+"' must be of type string"};case"logging":if("object"!=typeof n)return{success:!1,error:l+"key '"+e+"."+n+"' must be of type object"};if(!n.hasOwnProperty("forced")||"boolean"!=typeof n.forced)return{success:!1,error:l+"key '"+e+"."+n+"' must be of type {forced:boolean}"};break;case"navigation":if("object"!=typeof n)return{success:!1,error:l+"key '"+e+"."+n+"' must be of type object"};if(!n.hasOwnProperty("export")||"boolean"!=typeof n.export||"boolean"!=typeof n.interfaces)return{success:!1,error:l+"key '"+e+"."+n+"' must be of type {export:boolean, interfaces:boolean}"};break;case"responsive":if("object"!=typeof n)return{success:!1,error:l+"key '"+e+"."+n+"' must be of type {enabled:boolean, fixedwidth:number}"};if(!n.hasOwnProperty("enabled")||"boolean"!=typeof n.enabled)return{success:!1,error:l+"key '"+e+".enabled' must be of type {enabled:boolean, fixedwidth: number}"};if(!n.hasOwnProperty("fixedwidth")||"number"!=typeof n.fixedwidth)return{success:!1,error:l+"key '"+e+".fixedwidth' must be of type {enabled:boolean, fixedwidth: number}"};break;case"agreement":if("object"!=typeof n)return{success:!1,error:l+"key '"+e+"."+n[e]+"' must be of type boolean"};if(!n.hasOwnProperty("enabled")||"boolean"!=typeof n.enabled)return{success:!1,error:l+"key '"+e+"."+n+"' must be of type {enabled:boolean, text: object}"};if(!n.hasOwnProperty("text")||"object"!=typeof n.text)return{success:!1,error:l+"key '"+e+".text' must be of type {de:string, en:string ...}"};break;case"languages":if(!t.i(i.isArray)(n))return{success:!1,error:l+"key '"+e+"' must be of type array"};break;case"interfaces":if(!t.i(i.isArray)(n))return{success:!1,error:l+"key '"+e+"."+n+"' must be of type array"};break;case"feedback_form":if(!t.i(i.isArray)(n))return{success:!1,error:l+"key '"+e+"."+n+"' must be of type array"};break;case"plugins":if("object"!=typeof n)return{success:!1,error:l+"key '"+e+"' must be of type object"}}return{success:!0,error:""}},n}(l.a)},ggTX:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(e){this.entries=[],this.group_name=e}return e.err=function(n){console.error(e.getDateStr()+": "+n)},e.warn=function(n){console.warn(e.getDateStr()+": "+n)},e.log=function(n){console.log(e.getDateStr()+": "+n)},e.info=function(n){console.info(e.getDateStr()+": "+n)},e.getDateStr=function(){var e=new Date;return e.toLocaleDateString()+" "+e.toLocaleTimeString()},e.prototype.addEntry=function(e,n){this.entries.push({type:e,message:n})},e.prototype.output=function(){console.groupCollapsed(this.group_name);for(var n=0;n-1?this.transcrService.segments.get(this.transcrService.selectedSegment.index):null},set:function(e){this.transcrService.segments.get(this.transcrService.selectedSegment.index).transcript},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.editor.Settings.markers=this.transcrService.guidelines.markers,this.editor.Settings.responsive=this.settingsService.responsive.enabled,this.subscrmanager.add(this.editor.loaded.subscribe(function(){var n=e.transcrService.selectedSegment.index;n>-1&&e.transcrService.segments&&n0&&(t=this.transcrService.segments.get(this.transcrService.selectedSegment.index-1).time.clone()),r.f.scrollTo(e,"#window"),this.loupe.Settings.boundaries.readonly=!0,this.changeArea(t,n.time)},e.prototype.ngAfterContentInit=function(){this.act.emit("open")},e.prototype.close=function(){this.showWindow=!1,this.act.emit("close")},e.prototype.open=function(){this.showWindow=!0},e.prototype.save=function(){var e=this.transcrService.selectedSegment.index;if(e>-1&&this.transcrService.segments&&e-1&&this.transcrService.segments&&n0&&(t=this.transcrService.segments.get(--this.transcrService.selectedSegment.index));var l=new r.e(0,this.audio.samplerate);this.transcrService.selectedSegment.index>0&&(l=this.transcrService.segments.get(this.transcrService.selectedSegment.index-1).time.clone()),this.editor.rawText=this.transcrService.segments.get(this.transcrService.selectedSegment.index).transcript,this.changeArea(l,t.time)}},e.prototype.editor_rawText=function(e){this.editor.rawText=e},e.prototype.onShortCutTriggered=function(e,n){this.uiService.addElementFromEvent("shortcut",e,Date.now(),n)},e.prototype.onMarkerInsert=function(e){this.uiService.addElementFromEvent("marker_insert",{value:e},Date.now(),"editor")},e.prototype.onMarkerClick=function(e){this.uiService.addElementFromEvent("marker_click",{value:e},Date.now(),"editor")},e.prototype.onSpeedChange=function(e){this.audio.speed=e.new_value},e.prototype.afterSpeedChange=function(e){1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("slider",e,e.timestamp,"speed_change")},e.prototype.onVolumeChange=function(e){this.audio.volume=e.new_value},e.prototype.afterVolumeChange=function(e){1==this.projectsettings.logging.forced&&this.uiService.addElementFromEvent("slider",e,e.timestamp,"volume_change")},e.ctorParameters=function(){return[{type:i.e},{type:i.c},{type:i.a},{type:i.b},{type:o.a}]},e}()},iOuv:function(e,n,t){"use strict";var l=t("3j3K"),i=t("Fzro"),r=t("Gvdl"),o=(t.n(r),t("d397")),u=t("a0X4"),s=t("OMJi"),a=(t.n(s),t("ggTX"));t.d(n,"a",function(){return c});var c=function(){function e(e){var n=this;this.http=e,this._audiocontext=null,this._audiobuffer=null,this._source=null,this._gainNode=null,this._channel=null,this._duration=null,this._volume=1,this._speed=1,this._audioplaying=!1,this._startplaying=0,this._endplaying=0,this._replay=!1,this._state="stopped",this._javascriptNode=null,this._paused=!1,this._stepbackward=!1,this.loaded=!1,this.loadAudio=function(e,t,l){void 0===t&&(t=function(){}),n.loaded=!1;var r=new i.n({responseType:i.r.ArrayBuffer});n.http.get(e,r).subscribe(function(e){var i=n.extractData(e);a.a.info("Audio (Length: "+i.byteLength+") loaded. Decode now..."),n.decodeAudio(i,t,l)},function(e){l(e)})},this.decodeAudio=function(e,l,i){void 0===l&&(l=function(){}),a.a.log("Decode audio...");var r=n.getSampleRate(e);t.i(u.a)(e,r).then(function(e){a.a.log("Audio decoded."),n._audiobuffer=e,n.duration=new o.a(e.length,e.sampleRate),n.gainNode=n.audiocontext.createGain(),n.source=n.getSource(),n.loaded=!0,n.afterloaded.emit({status:"success",error:""}),l()},function(){n.loaded=!1,i({}),n.afterloaded.emit({status:"error",error:"Error decoding audio file"})})};var r=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||!1;r&&(this._audiocontext=new r),this.afterloaded=new l.EventEmitter,this.statechange=new l.EventEmitter}return Object.defineProperty(e.prototype,"audiobuffer",{get:function(){return this._audiobuffer},set:function(e){this._audiobuffer=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endplaying",{get:function(){return this._endplaying},set:function(e){this._endplaying=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stepbackward",{get:function(){return this._stepbackward},set:function(e){this._stepbackward=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gainNode",{get:function(){return this._gainNode},set:function(e){this._gainNode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(e){e>0&&(this._speed=e,this._source.playbackRate.value=e,this.endplaying=this.endplaying*this._speed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"audiocontext",{get:function(){return this._audiocontext},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(e){this._source=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"replay",{get:function(){return this._replay},set:function(e){this._replay=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._volume},set:function(e){this._volume=e,this.gainNode.gain.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"channel",{get:function(){return this._channel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"audioplaying",{get:function(){return this._audioplaying},set:function(e){this._audioplaying=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startplaying",{get:function(){return this._startplaying},set:function(e){this._startplaying=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this._paused},set:function(e){this._paused=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"samplerate",{get:function(){return this._audiobuffer.sampleRate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"javascriptNode",{get:function(){return this._javascriptNode},set:function(e){this._javascriptNode=e},enumerable:!0,configurable:!0}),e.prototype.stopPlayback=function(e){var n=this;if(void 0===e&&(e=null),!this.audioplaying)return e&&e(),!1;if(e){var t=function(){n.audioplaying=!1,e()};this.source.onended=t}return this._state="stopped",this.source.stop(0),!0},e.prototype.pausePlayback=function(){return!!this.audioplaying&&(this.paused=!0,this._state="paused",this.source.stop(0),!0)},e.prototype.startPlayback=function(e,n,t,l){var i=this;return void 0===n&&(n=new o.a(0,this.samplerate)),!this.audioplaying&&(this._state="started",this._stepbackward=!1,this.source=this.getSource(),this.source.buffer=this._audiobuffer,this.javascriptNode=this.audiocontext.createScriptProcessor(2048,1,1),this.gainNode.gain.value=this.volume,this.source.playbackRate.value=this.speed,this.source.connect(this.gainNode),this.javascriptNode.connect(this.audiocontext.destination),this.gainNode.connect(this.audiocontext.destination),this._duration.sample_rate=this.samplerate,this.audioplaying=!0,this.paused=!1,this.source.onended=function(){l(),"started"!==i._state||i.stepbackward?i.statechange.emit(i._state):i.statechange.emit("ended")},this.startplaying=(new Date).getTime(),this.endplaying=this.startplaying+n.unix,this.javascriptNode.onaudioprocess=t,n.samples<=0?this.source.start(0,e.seconds):this.source.start(0,e.seconds,n.seconds),this.statechange.emit("started"),!0)},e.prototype.rePlayback=function(){return this.replay=!this.replay,this.replay},e.prototype.stepBackward=function(e){var n=this;if(this.stepbackward=!0,this.audioplaying){this._state="backward";var t=function(){n.source.removeEventListener("ended",t),e(),n.stepbackward=!1};this.source.addEventListener("ended",t),this.source.stop(0)}else e()},e.prototype.extractData=function(e){return e.arrayBuffer()},e.prototype.getSource=function(){return this._source=this._audiocontext.createBufferSource(),this._source},e.prototype.updateChannel=function(){return this.audiobuffer?(this._channel=this.audiobuffer.getChannelData(0),this._channel):null},e.prototype.getChannelBuffer=function(e,n){if(e&&!t.i(s.isNullOrUndefined)(this.channel)){0==this.channel.length&&this.updateChannel();var l=new Float32Array(this._channel),i=l;return i=i.subarray(e.time.start.samples,e.time.end.samples)}return null},e.prototype.createNewAudiobuffer=function(e,n){for(var t=this.getChannelBuffer(e,n),l=this._audiocontext.createBuffer(this.audiobuffer.numberOfChannels,t.length,this.audiobuffer.sampleRate),i=l.getChannelData(0),r=0;r0)break;return{success:!1,error:t+"value of key '"+e+"' must be of type number greater 0"};case"margin":if("object"==typeof n&&"number"==typeof n.top&&"number"==typeof n.right&&"number"==typeof n.bottom&&"number"==typeof n.left)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {top:number,right:number,bottom:number,left:number}"};case"slider":if("object"==typeof n&&"string"==typeof n.color&&"number"==typeof n.height&&n.height>-1)break;return{success:!1,error:t+"value of key '"+e+"' must an object of {color:string, height:number}"};case"cursor":if("object"==typeof n&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must an object of {color:string}"};case"playcursor":if("object"==typeof n&&"number"==typeof n.height&&"number"==typeof n.width&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {height:number,width:number}"};case"colors":if("object"==typeof n&&"string"==typeof n.gridcolor&&"string"==typeof n.datacolor&&"string"==typeof n.selectioncolor&&"string"==typeof n.textcolor&&"string"==typeof n.backgroundcolor&&"string"==typeof n.slidercolor&&"string"==typeof n.cursorcolor&&"string"==typeof n.playcursorcolor)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes { gridcolor:string, datacolor:string, selectioncolor : string, textcolor:string, backgroundcolor: string, slidercolor: string, cursorcolor:string, playcursorcolor: string}"};case"shortcuts":if("object"==typeof n){for(var l in n)if(!n[""+l].hasOwnProperty("keys")||!n[""+l].hasOwnProperty("title")||!n[""+l].hasOwnProperty("focusonly"))return{success:!1,error:t+"value of key '"+e+"' must be an object of shortcuts. Compare custom config with sample config"};break}break;case"set_boundaries":if("boolean"!=typeof n)return{success:!1,error:t+"value of key '"+e+"' must be of type boolean"};break;default:return{success:!1,error:t+"key '"+e+"' not found"}}return{success:!0,error:""}},n}(l.a)},k0Hd:function(e,n,t){"use strict";var l=t("3j3K"),i=t("Qbdm"),r=t("u9IK"),o=t("2Lmt"),u=t("OMJi");t.n(u);t.d(n,"a",function(){return s});var s=function(){function e(e,n,t){this.transcrService=e,this.audio=n,this.sanitizer=t,this.selectedError="",this.errorY=0,this.shown_segments=[],this.updating=!1,this.show_transcriptiontable=!0,this.show_loading=!0,this.visible=!0,this.segmentclicked=new l.EventEmitter,this.subscrmanager=new o.b}return Object.defineProperty(e.prototype,"numberOfSegments",{get:function(){return this.segments?this.segments.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transcrSegments",{get:function(){return this.segments?this.transcrService.statistic.transcribed:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pauseSegments",{get:function(){return this.segments?this.transcrService.statistic.pause:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"emptySegments",{get:function(){return this.segments?this.transcrService.statistic.empty:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"foundErrors",{get:function(){var e=0;if(this.shown_segments.length>0){for(var n="",t=0;t
"),this.errortooltip.addClass("error-tooltip"),this.errortooltip.append(jQuery("
").addClass("title").text("Title")),this.errortooltip.append(jQuery("
").addClass("description").text("")),this.errortooltip.on("mouseleave",function(){jQuery(this).css("display","none")}),this.errortooltip.on("mouseout",function(){jQuery(this).css("display","none")}),jQuery("body").append(this.errortooltip),this.errortooltip=jQuery(".error-tooltip"),this.visible&&this.updateSegments()},e.prototype.ngOnChanges=function(e){this.show_loading=!0,t.i(u.isNullOrUndefined)(e.visible)||1!=e.visible.currentValue?t.i(u.isNullOrUndefined)(e.visible)||0!=e.visible.currentValue||jQuery(".error-tooltip").css("display","none"):(this.updateSegments(),this.transcrService.analyse())},e.prototype.onSegmentClicked=function(e){this.segmentclicked.emit(e)},e.ctorParameters=function(){return[{type:r.c},{type:r.a},{type:i.q}]},e}()},kZql:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l={production:!0}},kcg8:function(e,n,t){"use strict";var l=t("5oXY"),i=t("SzqK"),r=t("DCT3"),o=t("s+lJ"),u=t("0YY0"),s=t("iOuv"),a=t("2Lmt"),c=t("OMJi"),d=(t.n(c),t("yUTl")),p=t("wGSH");t.d(n,"a",function(){return h});var h=function(){function e(e,n,t,l,i,r,o,u){this.router=e,this.sessService=n,this.tranService=t,this.uiService=l,this.api=i,this.audio=r,this.settService=o,this.navService=u,this.subscrmanager=new a.b,this.navService.show_interfaces=!1,this.navService.show_export=!1}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.prototype.leave=function(){this.clearData(),this.sessService.clearLocalStorage(),this.router.navigate(["/logout"])},e.prototype.next=function(){var e=this;this.subscrmanager.add(this.api.beginSession(this.sessService.member_project,this.sessService.member_id,Number(this.sessService.member_jobno),"").subscribe(function(n){if(null!=n){var t=n.json();t.data&&t.data.hasOwnProperty("url")&&t.data.hasOwnProperty("id")?(e.clearData(),e.sessService.audio_url=t.data.url,e.sessService.data_id=t.data.id,e.router.navigate(["/user/load"])):e.openSuccessModal()}}))},e.prototype.openSuccessModal=function(){this.success_modal.open()},e.prototype.clearData=function(){this.sessService.submitted=!1,this.audio.audiobuffer=null,this.sessService.transcription=[],t.i(c.isNullOrUndefined)(this.tranService)||t.i(c.isNullOrUndefined)(this.tranService.segments)||this.tranService.segments.clear(),this.sessService.feedback=null,this.sessService.comment="",this.sessService.logs=[],this.uiService.elements=[],this.settService.clearSettings()},e.ctorParameters=function(){return[{type:l.j},{type:i.a},{type:r.a},{type:o.a},{type:u.a},{type:s.a},{type:d.a},{type:p.a}]},e}()},kke6:function(e,n,t){"use strict";var l=t("3j3K"),i=t("Iksp"),r=t("2Je8"),o=t("5oXY"),u=t("Qbdm"),s=t("KN8t"),a=t("8A5H"),c=t("xvT5"),d=t("7QEy"),p=t("NVOs"),h=t("Fzro"),f=t("rtll"),g=t("sWk4"),m=(t.n(g),t("e3X+")),v=t("sXiW"),y=t("Sv80"),b=t("Kzgc"),_=t("6hj+"),S=t("WtPQ"),w=t("/CuN"),C=t("F6a+"),k=t("oZUJ"),P=t("SzqK"),x=t("onOQ"),O=t("0YY0"),R=t("iOuv"),j=t("uJIb"),M=t("8irj"),T=t("FUnf"),I=t("nFqB"),D=t("yUTl"),A=t("9o9e"),E=t("0HDV"),N=t("wGSH"),L=t("HlRf"),z=t("YT50"),F=t("uVKT"),V=t("To3R"),U=t("XhyJ"),K=t("+ZL6"),B=t("AG9Q"),q=t("9IH/"),W=t("hBGU"),X=t("DUi1"),H=t("Iz4s"),J=t("9a/J"),G=t("l2Gd"),Y=t("aefM"),Q=t("1A80"),$=t("VY18"),Z=t("Zx1A"),ee=t("MbRa"),ne=t("yDG0"),te=t("Nta1"),le=t("CF31"),ie=t("pphD"),re=t("kcg8"),oe=t("5JeX"),ue=t("1z9Z"),se=t("1GJ2"),ae=t("yfN+"),ce=t("RaSy");t.d(n,"a",function(){return he});var de=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),pe=function(e){function n(n){return e.call(this,n,[U.a,K.a,B.a,q.a,W.a,X.a,H.a,J.a,G.a,Y.a,Q.a],[Q.a])||this}return de(n,e),Object.defineProperty(n.prototype,"_LOCALE_ID_35",{get:function(){return null==this.__LOCALE_ID_35&&(this.__LOCALE_ID_35=l["ɵn"](this.parent.get(l.LOCALE_ID,null))),this.__LOCALE_ID_35},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_NgLocalization_36",{get:function(){return null==this.__NgLocalization_36&&(this.__NgLocalization_36=new r.NgLocaleLocalization(this._LOCALE_ID_35)),this.__NgLocalization_36},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_APP_ID_37",{get:function(){return null==this.__APP_ID_37&&(this.__APP_ID_37=l["ɵg"]()),this.__APP_ID_37},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_IterableDiffers_38",{get:function(){return null==this.__IterableDiffers_38&&(this.__IterableDiffers_38=l["ɵl"]()),this.__IterableDiffers_38},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_KeyValueDiffers_39",{get:function(){return null==this.__KeyValueDiffers_39&&(this.__KeyValueDiffers_39=l["ɵm"]()),this.__KeyValueDiffers_39},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_DomSanitizer_40",{get:function(){return null==this.__DomSanitizer_40&&(this.__DomSanitizer_40=new u.b(this.parent.get(u.c))),this.__DomSanitizer_40},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Sanitizer_41",{get:function(){return null==this.__Sanitizer_41&&(this.__Sanitizer_41=this._DomSanitizer_40),this.__Sanitizer_41},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_HAMMER_GESTURE_CONFIG_42",{get:function(){return null==this.__HAMMER_GESTURE_CONFIG_42&&(this.__HAMMER_GESTURE_CONFIG_42=new u.d),this.__HAMMER_GESTURE_CONFIG_42},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_EVENT_MANAGER_PLUGINS_43",{get:function(){return null==this.__EVENT_MANAGER_PLUGINS_43&&(this.__EVENT_MANAGER_PLUGINS_43=[new u.e(this.parent.get(u.c)),new u.f(this.parent.get(u.c)),new u.g(this.parent.get(u.c),this._HAMMER_GESTURE_CONFIG_42)]),this.__EVENT_MANAGER_PLUGINS_43},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_EventManager_44",{get:function(){return null==this.__EventManager_44&&(this.__EventManager_44=new u.h(this._EVENT_MANAGER_PLUGINS_43,this.parent.get(l.NgZone))),this.__EventManager_44},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵDomSharedStylesHost_45",{get:function(){return null==this.__ɵDomSharedStylesHost_45&&(this.__ɵDomSharedStylesHost_45=new u.i(this.parent.get(u.c))),this.__ɵDomSharedStylesHost_45},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵDomRendererFactory2_46",{get:function(){return null==this.__ɵDomRendererFactory2_46&&(this.__ɵDomRendererFactory2_46=new u.j(this._EventManager_44,this._ɵDomSharedStylesHost_45)),this.__ɵDomRendererFactory2_46},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_AnimationDriver_47",{get:function(){return null==this.__AnimationDriver_47&&(this.__AnimationDriver_47=s.a()),this.__AnimationDriver_47},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵAnimationStyleNormalizer_48",{get:function(){return null==this.__ɵAnimationStyleNormalizer_48&&(this.__ɵAnimationStyleNormalizer_48=s.b()),this.__ɵAnimationStyleNormalizer_48},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵAnimationEngine_49",{get:function(){return null==this.__ɵAnimationEngine_49&&(this.__ɵAnimationEngine_49=new s.c(this._AnimationDriver_47,this._ɵAnimationStyleNormalizer_48)),this.__ɵAnimationEngine_49},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_RendererFactory2_50",{get:function(){return null==this.__RendererFactory2_50&&(this.__RendererFactory2_50=s.d(this._ɵDomRendererFactory2_46,this._ɵAnimationEngine_49,this.parent.get(l.NgZone))),this.__RendererFactory2_50},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵSharedStylesHost_51",{get:function(){return null==this.__ɵSharedStylesHost_51&&(this.__ɵSharedStylesHost_51=this._ɵDomSharedStylesHost_45),this.__ɵSharedStylesHost_51},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Testability_52",{get:function(){return null==this.__Testability_52&&(this.__Testability_52=new l.Testability(this.parent.get(l.NgZone))),this.__Testability_52},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Meta_53",{get:function(){return null==this.__Meta_53&&(this.__Meta_53=new u.k(this.parent.get(u.c))),this.__Meta_53},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Title_54",{get:function(){return null==this.__Title_54&&(this.__Title_54=new u.l(this.parent.get(u.c))),this.__Title_54},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵi_55",{get:function(){return null==this.__ɵi_55&&(this.__ɵi_55=new p.a),this.__ɵi_55},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_BrowserXhr_56",{get:function(){return null==this.__BrowserXhr_56&&(this.__BrowserXhr_56=new h.a),this.__BrowserXhr_56},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ResponseOptions_57",{get:function(){return null==this.__ResponseOptions_57&&(this.__ResponseOptions_57=new h.b),this.__ResponseOptions_57},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_XSRFStrategy_58",{get:function(){return null==this.__XSRFStrategy_58&&(this.__XSRFStrategy_58=h.c()),this.__XSRFStrategy_58},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_XHRBackend_59",{get:function(){return null==this.__XHRBackend_59&&(this.__XHRBackend_59=new h.d(this._BrowserXhr_56,this._ResponseOptions_57,this._XSRFStrategy_58)),this.__XHRBackend_59},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_RequestOptions_60",{get:function(){return null==this.__RequestOptions_60&&(this.__RequestOptions_60=new h.e),this.__RequestOptions_60},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Http_61",{get:function(){return null==this.__Http_61&&(this.__Http_61=h.f(this._XHRBackend_59,this._RequestOptions_60)),this.__Http_61},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ɵg_62",{get:function(){return null==this.__ɵg_62&&(this.__ɵg_62=new h.g),this.__ɵg_62},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_JSONPBackend_63",{get:function(){return null==this.__JSONPBackend_63&&(this.__JSONPBackend_63=new h.h(this._ɵg_62,this._ResponseOptions_57)),this.__JSONPBackend_63},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_Jsonp_64",{get:function(){return null==this.__Jsonp_64&&(this.__Jsonp_64=h.i(this._JSONPBackend_63,this._RequestOptions_60)),this.__Jsonp_64},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_SessionStorageService_65",{get:function(){return null==this.__SessionStorageService_65&&(this.__SessionStorageService_65=new m.a),this.__SessionStorageService_65},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_LocalStorageService_66",{get:function(){return null==this.__LocalStorageService_66&&(this.__LocalStorageService_66=new v.a),this.__LocalStorageService_66},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_FormBuilder_67",{get:function(){return null==this.__FormBuilder_67&&(this.__FormBuilder_67=new p.b),this.__FormBuilder_67},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_TranslateLoader_68",{get:function(){return null==this.__TranslateLoader_68&&(this.__TranslateLoader_68=i.a(this._Http_61)),this.__TranslateLoader_68},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_TranslateParser_69",{get:function(){return null==this.__TranslateParser_69&&(this.__TranslateParser_69=new y.a),this.__TranslateParser_69},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_MissingTranslationHandler_70",{get:function(){return null==this.__MissingTranslationHandler_70&&(this.__MissingTranslationHandler_70=new b.a),this.__MissingTranslationHandler_70},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_TranslateStore_71",{get:function(){return null==this.__TranslateStore_71&&(this.__TranslateStore_71=new _.a),this.__TranslateStore_71},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_TranslateService_73",{get:function(){return null==this.__TranslateService_73&&(this.__TranslateService_73=new S.a(this._TranslateStore_71,this._TranslateLoader_68,this._TranslateParser_69,this._MissingTranslationHandler_70,this._USE_STORE_72)),this.__TranslateService_73},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_PositioningService_74",{get:function(){return null==this.__PositioningService_74&&(this.__PositioningService_74=new w.a),this.__PositioningService_74},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ComponentLoaderFactory_75",{get:function(){return null==this.__ComponentLoaderFactory_75&&(this.__ComponentLoaderFactory_75=new C.a(this.componentFactoryResolver,this.parent.get(l.NgZone),this,this._PositioningService_74)),this.__ComponentLoaderFactory_75},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_BsDropdownState_76",{get:function(){return null==this.__BsDropdownState_76&&(this.__BsDropdownState_76=new k.a),this.__BsDropdownState_76},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ActivatedRoute_78",{get:function(){return null==this.__ActivatedRoute_78&&(this.__ActivatedRoute_78=o.a(this._Router_32)),this.__ActivatedRoute_78},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_NoPreloading_79",{get:function(){return null==this.__NoPreloading_79&&(this.__NoPreloading_79=new o.b),this.__NoPreloading_79},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_PreloadingStrategy_80",{get:function(){return null==this.__PreloadingStrategy_80&&(this.__PreloadingStrategy_80=this._NoPreloading_79),this.__PreloadingStrategy_80},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_RouterPreloader_81",{get:function(){return null==this.__RouterPreloader_81&&(this.__RouterPreloader_81=new o.c(this._Router_32,this._NgModuleFactoryLoader_30,this._Compiler_29,this,this._PreloadingStrategy_80)),this.__RouterPreloader_81},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_PreloadAllModules_82",{get:function(){return null==this.__PreloadAllModules_82&&(this.__PreloadAllModules_82=new o.d),this.__PreloadAllModules_82},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ROUTER_INITIALIZER_83",{get:function(){return null==this.__ROUTER_INITIALIZER_83&&(this.__ROUTER_INITIALIZER_83=o.e(this._ɵg_3)),this.__ROUTER_INITIALIZER_83},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_APP_BOOTSTRAP_LISTENER_84",{get:function(){return null==this.__APP_BOOTSTRAP_LISTENER_84&&(this.__APP_BOOTSTRAP_LISTENER_84=[this._ROUTER_INITIALIZER_83]),this.__APP_BOOTSTRAP_LISTENER_84},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_SessionService_85",{get:function(){return null==this.__SessionService_85&&(this.__SessionService_85=new P.a(this._SessionStorageService_65,this._LocalStorageService_66)),this.__SessionService_85},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ALoginGuard_86",{get:function(){return null==this.__ALoginGuard_86&&(this.__ALoginGuard_86=new x.a(this._SessionService_85,this._Router_32)),this.__ALoginGuard_86},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_APIService_87",{get:function(){return null==this.__APIService_87&&(this.__APIService_87=new O.a(this._Http_61,this._DomSanitizer_40)),this.__APIService_87},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_AudioService_88",{get:function(){return null==this.__AudioService_88&&(this.__AudioService_88=new R.a(this._Http_61)),this.__AudioService_88},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_AudioviewerConfig_89",{get:function(){return null==this.__AudioviewerConfig_89&&(this.__AudioviewerConfig_89=new j.a),this.__AudioviewerConfig_89},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_DeALoginGuard_90",{get:function(){return null==this.__DeALoginGuard_90&&(this.__DeALoginGuard_90=new M.a),this.__DeALoginGuard_90},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_KeymappingService_91",{get:function(){return null==this.__KeymappingService_91&&(this.__KeymappingService_91=new T.a),this.__KeymappingService_91},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_LogoutGuard_92",{get:function(){return null==this.__LogoutGuard_92&&(this.__LogoutGuard_92=new I.a(this._SessionService_85,this._Router_32)),this.__LogoutGuard_92},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_SettingsService_93",{get:function(){return null==this.__SettingsService_93&&(this.__SettingsService_93=new D.a(this._Http_61,this._SessionService_85)),this.__SettingsService_93},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_MembersAreaGuard_94",{get:function(){return null==this.__MembersAreaGuard_94&&(this.__MembersAreaGuard_94=new A.a(this._SessionService_85,this._Router_32,this._SettingsService_93)),this.__MembersAreaGuard_94},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ModalService_95",{get:function(){return null==this.__ModalService_95&&(this.__ModalService_95=new E.a),this.__ModalService_95},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_NavbarService_96",{get:function(){return null==this.__NavbarService_96&&(this.__NavbarService_96=new N.a),this.__NavbarService_96},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_ReloadFileGuard_97",{get:function(){return null==this.__ReloadFileGuard_97&&(this.__ReloadFileGuard_97=new L.a(this._SessionService_85,this._Router_32,this._SettingsService_93)),this.__ReloadFileGuard_97},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_TranscActivateGuard_98",{get:function(){return null==this.__TranscActivateGuard_98&&(this.__TranscActivateGuard_98=new z.a(this._SessionService_85,this._Router_32,this._SettingsService_93)),this.__TranscActivateGuard_98},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_SettingsGuard_99",{get:function(){return null==this.__SettingsGuard_99&&(this.__SettingsGuard_99=new F.a(this._SessionService_85,this._Router_32,this._SettingsService_93)),this.__SettingsGuard_99},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_TranscrSubmittedGuard_100",{get:function(){return null==this.__TranscrSubmittedGuard_100&&(this.__TranscrSubmittedGuard_100=new V.a(this._SessionService_85,this._Router_32)),this.__TranscrSubmittedGuard_100},enumerable:!0,configurable:!0}),n.prototype.createInternal=function(){return this._CommonModule_0=new r.CommonModule,this._ErrorHandler_1=u.m(),this._NgProbeToken_2=[o.f()],this._ɵg_3=new o.g(this),this._APP_INITIALIZER_4=[l["ɵo"],u.n(this.parent.get(u.o,null),this._NgProbeToken_2),o.h(this._ɵg_3)],this._ApplicationInitStatus_5=new l.ApplicationInitStatus(this._APP_INITIALIZER_4),this._ɵf_6=new l["ɵf"](this.parent.get(l.NgZone),this.parent.get(l["ɵConsole"]),this,this._ErrorHandler_1,this.componentFactoryResolver,this._ApplicationInitStatus_5),this._ApplicationRef_7=this._ɵf_6,this._ApplicationModule_8=new l.ApplicationModule(this._ApplicationRef_7),this._BrowserModule_9=new u.p(this.parent.get(u.p,null)),this._BrowserAnimationsModule_10=new s.e,this._TranslateModule_11=new a.a,this._BsDropdownModule_12=new c.a,this._CollapseModule_13=new d.a,this._ɵba_14=new p.c,this._FormsModule_15=new p.d,this._HttpModule_16=new h.j,this._JsonpModule_17=new h.k,this._WEBSTORAGE_CONFIG_18={separator:".",prefix:"custom"},this._WebstorageConfig_19=f.a(this._WEBSTORAGE_CONFIG_18),this._Ng2Webstorage_20=new f.b(this.parent.get(l.NgZone),this._WebstorageConfig_19),this._Ng2Bs3ModalModule_21=new g.Ng2Bs3ModalModule,this._ReactiveFormsModule_22=new p.e,this._ɵa_23=o.i(this.parent.get(o.j,null)),this._UrlSerializer_24=new o.k,this._RouterOutletMap_25=new o.l,this._ROUTER_CONFIGURATION_26={},this._LocationStrategy_27=o.m(this.parent.get(r.PlatformLocation),this.parent.get(r.APP_BASE_HREF,null),this._ROUTER_CONFIGURATION_26),this._Location_28=new r.Location(this._LocationStrategy_27),this._Compiler_29=new l.Compiler,this._NgModuleFactoryLoader_30=new l.SystemJsNgModuleLoader(this._Compiler_29,this.parent.get(l.SystemJsNgModuleLoaderConfig,null)),this._ROUTES_31=[[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",component:$.a,canActivate:[F.a,x.a]},{path:"logout",component:Z.a,canActivate:[F.a,I.a]},{path:"user",component:ee.a,children:[{path:"",redirectTo:"/user/load",pathMatch:"full"},{path:"load",component:ne.a,canActivate:[F.a]},{path:"agreement",component:te.a,canActivate:[F.a,A.a]},{path:"transcr",component:le.a,canActivate:[F.a,z.a,A.a]},{path:"transcr/submit",component:ie.a,canActivate:[F.a,z.a]},{path:"transcr/submitted",component:re.a,canActivate:[F.a,V.a]},{path:"transcr/reload-file",component:oe.a,canActivate:[L.a,F.a]}]},{path:"user",component:ee.a}]],this._Router_32=o.n(this._ApplicationRef_7,this._UrlSerializer_24,this._RouterOutletMap_25,this._Location_28,this,this._NgModuleFactoryLoader_30,this._Compiler_29,this._ROUTES_31,this._ROUTER_CONFIGURATION_26,this.parent.get(o.o,null),this.parent.get(o.p,null)),this._RouterModule_33=new o.q(this._ɵa_23,this._Router_32),this._AppModule_34=new i.b,this._USE_STORE_72=void 0,this._BsDropdownConfig_77={autoClose:!0},this._AppModule_34},n.prototype.getInternal=function(e,n){return e===r.CommonModule?this._CommonModule_0:e===l.ErrorHandler?this._ErrorHandler_1:e===l.NgProbeToken?this._NgProbeToken_2:e===o.g?this._ɵg_3:e===l.APP_INITIALIZER?this._APP_INITIALIZER_4:e===l.ApplicationInitStatus?this._ApplicationInitStatus_5:e===l["ɵf"]?this._ɵf_6:e===l.ApplicationRef?this._ApplicationRef_7:e===l.ApplicationModule?this._ApplicationModule_8:e===u.p?this._BrowserModule_9:e===s.e?this._BrowserAnimationsModule_10:e===a.a?this._TranslateModule_11:e===c.a?this._BsDropdownModule_12:e===d.a?this._CollapseModule_13:e===p.c?this._ɵba_14:e===p.d?this._FormsModule_15:e===h.j?this._HttpModule_16:e===h.k?this._JsonpModule_17:e===f.c?this._WEBSTORAGE_CONFIG_18:e===ue.a?this._WebstorageConfig_19:e===f.b?this._Ng2Webstorage_20:e===g.Ng2Bs3ModalModule?this._Ng2Bs3ModalModule_21:e===p.e?this._ReactiveFormsModule_22:e===o.r?this._ɵa_23:e===o.s?this._UrlSerializer_24:e===o.l?this._RouterOutletMap_25:e===o.t?this._ROUTER_CONFIGURATION_26:e===r.LocationStrategy?this._LocationStrategy_27:e===r.Location?this._Location_28:e===l.Compiler?this._Compiler_29:e===l.NgModuleFactoryLoader?this._NgModuleFactoryLoader_30:e===o.u?this._ROUTES_31:e===o.j?this._Router_32:e===o.q?this._RouterModule_33:e===i.b?this._AppModule_34:e===l.LOCALE_ID?this._LOCALE_ID_35:e===r.NgLocalization?this._NgLocalization_36:e===l.APP_ID?this._APP_ID_37:e===l.IterableDiffers?this._IterableDiffers_38:e===l.KeyValueDiffers?this._KeyValueDiffers_39:e===u.q?this._DomSanitizer_40:e===l.Sanitizer?this._Sanitizer_41:e===u.r?this._HAMMER_GESTURE_CONFIG_42:e===u.s?this._EVENT_MANAGER_PLUGINS_43:e===u.h?this._EventManager_44:e===u.i?this._ɵDomSharedStylesHost_45:e===u.j?this._ɵDomRendererFactory2_46:e===se.a?this._AnimationDriver_47:e===se.b?this._ɵAnimationStyleNormalizer_48:e===se.c?this._ɵAnimationEngine_49:e===l.RendererFactory2?this._RendererFactory2_50:e===u.t?this._ɵSharedStylesHost_51:e===l.Testability?this._Testability_52:e===u.k?this._Meta_53:e===u.l?this._Title_54:e===p.a?this._ɵi_55:e===h.a?this._BrowserXhr_56:e===h.l?this._ResponseOptions_57:e===h.m?this._XSRFStrategy_58:e===h.d?this._XHRBackend_59:e===h.n?this._RequestOptions_60:e===h.o?this._Http_61:e===h.g?this._ɵg_62:e===h.p?this._JSONPBackend_63:e===h.q?this._Jsonp_64:e===m.a?this._SessionStorageService_65:e===v.a?this._LocalStorageService_66:e===p.b?this._FormBuilder_67:e===ae.a?this._TranslateLoader_68:e===y.b?this._TranslateParser_69:e===b.b?this._MissingTranslationHandler_70:e===_.a?this._TranslateStore_71:e===S.b?this._USE_STORE_72:e===S.a?this._TranslateService_73:e===w.a?this._PositioningService_74:e===C.a?this._ComponentLoaderFactory_75:e===k.a?this._BsDropdownState_76:e===ce.a?this._BsDropdownConfig_77:e===o.v?this._ActivatedRoute_78:e===o.b?this._NoPreloading_79:e===o.w?this._PreloadingStrategy_80:e===o.c?this._RouterPreloader_81:e===o.d?this._PreloadAllModules_82:e===o.x?this._ROUTER_INITIALIZER_83:e===l.APP_BOOTSTRAP_LISTENER?this._APP_BOOTSTRAP_LISTENER_84:e===P.a?this._SessionService_85:e===x.a?this._ALoginGuard_86:e===O.a?this._APIService_87:e===R.a?this._AudioService_88:e===j.a?this._AudioviewerConfig_89:e===M.a?this._DeALoginGuard_90:e===T.a?this._KeymappingService_91:e===I.a?this._LogoutGuard_92:e===D.a?this._SettingsService_93:e===A.a?this._MembersAreaGuard_94:e===E.a?this._ModalService_95:e===N.a?this._NavbarService_96:e===L.a?this._ReloadFileGuard_97:e===z.a?this._TranscActivateGuard_98:e===F.a?this._SettingsGuard_99:e===V.a?this._TranscrSubmittedGuard_100:n},n.prototype.destroyInternal=function(){this._ɵf_6.ngOnDestroy(),this.__ɵDomSharedStylesHost_45&&this._ɵDomSharedStylesHost_45.ngOnDestroy(),this.__RouterPreloader_81&&this._RouterPreloader_81.ngOnDestroy()},n}(l["ɵNgModuleInjector"]),he=new l.NgModuleFactory(pe,i.b)},kyFU:function(e,n,t){"use strict";var l=t("d397");t.d(n,"a",function(){return i});var i=function(){function e(e){this.time=e,this._transcript="",this._changed=!1}return Object.defineProperty(e.prototype,"changed",{get:function(){return this._changed},set:function(e){this._changed=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transcript",{get:function(){return this._transcript},set:function(e){e!==this._transcript&&(this.changed=!0),this._transcript=e},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var n=new e(this.time.clone());return n.transcript=this.transcript,n},e.prototype.toAny=function(){return{transcript:this._transcript,time:this.time.toAny()}},e.fromAny=function(n){if(n){var t=new e(l.a.fromAny(n.time));return n.transcript&&(t._transcript=n.transcript),t}return null},e}()},l2Gd:function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[o["ɵqud"](201326592,1,{success_modal:0}),(e()(),o["ɵeld"](0,null,null,18,"modal",[["class","modal"],["id","transcription_success"],["role","dialog"],["tabindex","-1"]],[[2,"fade",null],[1,"data-keyboard",0],[1,"data-backdrop",0]],null,null,u.a,u.b)),o["ɵdid"](90112,[[1,4],["success",4]],0,s.ModalComponent,[o.ElementRef],null,null),(e()(),o["ɵted"](0,["\n "])),(e()(),o["ɵeld"](0,null,0,6,"modal-body",[],null,null,null,a.a,a.b)),o["ɵdid"](24576,null,0,c.ModalBodyComponent,[],null,null),(e()(),o["ɵted"](0,["\n "])),(e()(),o["ɵeld"](0,null,0,2,"p",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵted"](0,["\n "])),(e()(),o["ɵted"](0,["\n "])),(e()(),o["ɵeld"](0,null,0,6,"modal-footer",[],null,null,null,h.a,h.b)),o["ɵdid"](24576,null,0,f.ModalFooterComponent,[s.ModalComponent],null,null),(e()(),o["ɵted"](0,["\n "])),(e()(),o["ɵeld"](0,null,0,2,"button",[["class","btn btn-default"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=o["ɵnov"](e,2).dismiss()!==!1&&l}return l},null,null)),(e()(),o["ɵted"](null,["","\n "])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵted"](0,["\n "])),(e()(),o["ɵted"](0,["\n"])),(e()(),o["ɵted"](null,["\n"])),(e()(),o["ɵeld"](0,null,null,27,"div",[["id","transcr-submitted"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,24,"div",[["class","container"],["style","width:900px;"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,21,"div",[["class","well well-large"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,2,"h4",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,6,"p",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),o["ɵeld"](0,null,null,0,"br",[],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n\n ","\n "])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵted"](null,["\n\n "])),(e()(),o["ɵeld"](0,null,null,2,"a",[["class","btn btn-raised btn-default"],["style","width:49%;"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.leave()!==!1&&l}return l},null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,2,"a",[["class","btn btn-raised btn-primary"],["style","width:49%;margin-left:1%;"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.next()!==!1&&l}return l},null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](65536,d.a,[p.a,o.ChangeDetectorRef]),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵted"](null,["\n"]))],null,function(e,n){e(n,1,0,o["ɵnov"](n,2).fadeClass,o["ɵnov"](n,2).dataKeyboardAttr,o["ɵnov"](n,2).dataBackdropAttr),e(n,8,0,o["ɵunv"](n,8,0,o["ɵnov"](n,9).transform("transcription submitted.no jobs left"))),e(n,16,0,o["ɵunv"](n,16,0,o["ɵnov"](n,17).transform("general.close"))),e(n,28,0,o["ɵunv"](n,28,0,o["ɵnov"](n,29).transform("transcription submitted.transcription sent"))),e(n,32,0,o["ɵunv"](n,32,0,o["ɵnov"](n,33).transform("transcription submitted.transcription sent successfully"))),e(n,36,0,o["ɵunv"](n,36,0,o["ɵnov"](n,37).transform("transcription submitted.want to do"))),e(n,40,0,o["ɵunv"](n,40,0,o["ɵnov"](n,41).transform("transcription submitted.quit"))),e(n,44,0,o["ɵunv"](n,44,0,o["ɵnov"](n,45).transform("transcription submitted.next transcription")))})}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,1,"app-transcription-submitted",[],null,null,null,l,P)),o["ɵdid"](2220032,null,0,g.a,[m.j,v.a,y.a,b.a,_.a,S.a,w.a,C.a],null,null)],function(e,n){e(n,1,0)},null)}var r=t("vSHF"),o=t("3j3K"),u=t("uoqx"),s=t("S7tg"),a=(t.n(s),t("vhkd")),c=t("xsyV"),d=(t.n(c),t("685D")),p=t("WtPQ"),h=t("5MSB"),f=t("dUUf"),g=(t.n(f),t("kcg8")),m=t("5oXY"),v=t("SzqK"),y=t("DCT3"),b=t("s+lJ"),_=t("0YY0"),S=t("iOuv"),w=t("yUTl"),C=t("wGSH");t.d(n,"a",function(){return x});var k=[r.a],P=o["ɵcrt"]({encapsulation:0,styles:k,data:{}}),x=o["ɵccf"]("app-transcription-submitted",g.a,i,{},{},[])},lQkR:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=["#members-area[_ngcontent-%COMP%]{position:relative}"]},"mr7/":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=["#overlay-transcr[_ngcontent-%COMP%]{position:relative}"]},nFqB:function(e,n,t){"use strict";var l=t("5oXY"),i=t("SzqK");t.d(n,"a",function(){return r});var r=function(){function e(e,n){this.sessService=e,this.router=n}return e.prototype.canActivate=function(e,n){return!!this.sessService.logged_in||(this.router.navigate(["/user/transcr"]),!1)},e.ctorParameters=function(){return[{type:i.a},{type:l.j}]},e}()},nMJj:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem}return e.prototype.openFileSystem=function(e,n){var t=this;navigator.webkitPersistentStorage.requestQuota(e,function(){window.requestFileSystem(window.PERSISTENT,e,n,t.errorHandler)},function(e){console.error("Error: "+e)})},e.prototype.errorHandler=function(e){var n="";switch(e.code){case FileError.QUOTA_EXCEEDED_ERR:n="QUOTA_EXCEEDED_ERR";break;case FileError.NOT_FOUND_ERR:n="NOT_FOUND_ERR";break;case FileError.SECURITY_ERR:n="SECURITY_ERR";break;case FileError.INVALID_MODIFICATION_ERR:n="INVALID_MODIFICATION_ERR";break;case FileError.INVALID_STATE_ERR:n="INVALID_STATE_ERR";break;default:n="Unknown Error"}console.error("File API - Error: "+n)},e.ctorParameters=function(){return[]},e}()},nYGH:function(e,n,t){"use strict";var l=t("3j3K"),i=t("wKbx");t.d(n,"a",function(){return r});var r=function(){function e(){this.statechange=new l.EventEmitter,this.mousecursorchange=new l.EventEmitter,this.shortcuttriggered=new l.EventEmitter,this.segmententer=new l.EventEmitter,this.pos={x:0,y:0},this.subscrmanager=new i.a}return Object.defineProperty(e.prototype,"MouseCursor",{get:function(){return this.viewer.MouseCursor},enumerable:!0,configurable:!0}),e.prototype.getLocation=function(){var e=this.loupe.nativeElement.getBoundingClientRect();return{x:e.left,y:e.top}},Object.defineProperty(e.prototype,"Settings",{get:function(){return this.viewer.Settings},set:function(e){this.viewer.Settings=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.viewer.Settings.multi_line=!1,this.viewer.Settings.height=150,this.viewer.Settings.justify_signal_height=!0,this.viewer.Settings.boundaries.enabled=!0,this.viewer.Settings.disabled_keys=[],this.viewer.Settings.type="line"},e.prototype.ngAfterViewInit=function(){var e=this;this.subscrmanager.add(this.viewer.mousecursorchange.subscribe(function(n){e.mousecursorchange.emit(n)})),this.subscrmanager.add(this.viewer.shortcuttriggered.subscribe(function(n){e.shortcuttriggered.emit(n)})),this.subscrmanager.add(this.viewer.segmententer.subscribe(function(n){e.segmententer.emit(n)}))},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.prototype.changeArea=function(e,n){this.viewer.changeBuffer(e,n)},e.prototype.updateSegments=function(){this.viewer.drawSegments()},e.prototype.changeBuffer=function(e,n){this.viewer.changeBuffer(e,n)},e.prototype.update=function(){this.viewer.update()},e.prototype.onButtonClick=function(e){switch(e.type){case"play":this.viewer.startPlayback();break;case"pause":this.viewer.pausePlayback();break;case"stop":this.viewer.stopPlayback();break;case"replay":this.viewer.rePlayback();break;case"backward":this.viewer.stepBackward();break;case"default":}},e.prototype.selectSegment=function(e){this.viewer.selectSegment(e)},e.ctorParameters=function(){return[]},e}()},nhD7:function(e,n,t){"use strict";var l=t("wKbx"),i=t("Fzro");t.d(n,"a",function(){return r});var r=function(){function e(e){var n=this;this.http=e,this.db_data=[],this.subscrmanager=new l.a,this.subscrmanager.add(this.http.request("./config/allowed_users.json").subscribe(function(e){n.db_data=e.json()},function(){console.error("allowed_users.json not found. Please create this file in a folder named 'config'")}))}return e.prototype.checkLoginData=function(e){for(var n=0;n-1),e(n,15,0,n.context.$implicit.url.indexOf(".mp4")>-1)},function(e,n){var t=n.component;e(n,5,0,v["ɵunv"](n,5,0,v["ɵnov"](n,6).transform("general.example")),n.context.index+1),e(n,19,0,t.transcrService.rawToHTML(n.context.$implicit.annotation))})}function a(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,4,"div",[["class","col-md-8"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,s)),v["ɵdid"](401408,null,0,_.NgForOf,[v.ViewContainerRef,v.TemplateRef,v.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),v["ɵted"](null,["\n "]))],function(e,n){e(n,3,0,n.parent.context.$implicit.examples)},null)}function c(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,40,"div",[["class","row select-row"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,7,"div",[["class","col-xs-1 chevron"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.toggle(e.parent.parent.context.index,e.context.index)!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,i)),v["ɵdid"](8192,null,0,_.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,r)),v["ɵdid"](8192,null,0,_.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,1,"div",[["class","col-xs-1 code"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.toggle(e.parent.parent.context.index,e.context.index)!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n ","\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,19,"div",[["class","col-xs-9"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,1,"span",[["class","guidelines-title"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.toggle(e.parent.parent.context.index,e.context.index)!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["",""])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,13,"div",[["class","row entry-row"]],[[2,"collapse",null],[4,"display",null],[2,"in",null],[2,"show",null],[1,"aria-expanded",0],[1,"aria-hidden",0],[2,"collapsing",null]],null,null,null,null)),v["ɵdid"](8192,null,0,S.a,[v.ElementRef,v.Renderer],{collapse:[0,"collapse"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,6,"div",[],null,null,null,null,null)),v["ɵdid"](139264,null,0,_.NgClass,[v.IterableDiffers,v.KeyValueDiffers,v.ElementRef,v.Renderer],{ngClass:[0,"ngClass"]},null),v["ɵpod"](["col-md-4","col-md-12"]),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,1,"span",[["class","guidelines-descr"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n ","\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,a)),v["ɵdid"](8192,null,0,_.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,4,"div",[["class","col-xs-1 hidden-xs col-priority"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.toggle(e.parent.parent.context.index,e.context.index)!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,1,"span",[["class","label label-info"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["",""])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "]))],function(e,n){var t=n.component;e(n,5,0,t.collapsed[n.parent.parent.context.index][n.context.index]),e(n,8,0,!t.collapsed[n.parent.parent.context.index][n.context.index]),e(n,20,0,t.collapsed[n.parent.parent.context.index][n.context.index]),e(n,23,0,e(n,24,0,n.context.$implicit.examples.length>0,0==n.context.$implicit.examples.length)),e(n,31,0,n.context.$implicit.examples.length>0)},function(e,n){e(n,12,0,n.context.$implicit.code),e(n,17,0,n.context.$implicit.title),e(n,19,0,v["ɵnov"](n,20).isCollapse,v["ɵnov"](n,20).display,v["ɵnov"](n,20).isExpanded,v["ɵnov"](n,20).isExpanded,v["ɵnov"](n,20).isExpanded,v["ɵnov"](n,20).isCollapsed,v["ɵnov"](n,20).isCollapsing),e(n,27,0,n.context.$implicit.description),e(n,38,0,n.context.$implicit.priority)})}function d(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,4,"div",[["class","panel-body"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,c)),v["ɵdid"](401408,null,0,_.NgForOf,[v.ViewContainerRef,v.TemplateRef,v.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),v["ɵted"](null,["\n "]))],function(e,n){e(n,3,0,n.parent.context.$implicit.entries)},null)}function p(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,10,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,7,"div",[["class","panel panel-default"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,1,"div",[["class","panel-heading"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["",""])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵand"](8388608,null,null,1,null,d)),v["ɵdid"](8192,null,0,_.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "]))],function(e,n){e(n,10,0,n.component.collapsed.length>0)},function(e,n){e(n,7,0,n.context.$implicit.group)})}function h(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,62,"modal",[["class","modal"],["id","rules"],["role","dialog"],["tabindex","-1"]],[[2,"fade",null],[1,"data-keyboard",0],[1,"data-backdrop",0]],null,null,w.a,w.b)),v["ɵdid"](90112,[[1,4],["modal_guidelines",4]],0,C.ModalComponent,[v.ElementRef],null,null),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵeld"](0,null,0,40,"modal-header",[],null,null,null,k.a,k.b)),v["ɵdid"](24576,null,0,P.ModalHeaderComponent,[C.ModalComponent],null,null),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵeld"](0,null,0,36,"div",[["class","row hidden-xs hidden-sm"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,18,"div",[["class","col-md-7"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,4,"h3",[["style","display:inline;"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["",""])),v["ɵpid"](65536,y.a,[b.a,v.ChangeDetectorRef]),(e()(),v["ɵeld"](0,null,null,1,"span",[["class","version"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n v ","\n "])),(e()(),v["ɵeld"](0,null,null,2,"button",[["class","btn btn-sm btn-danger"],["style","border:1px solid red;"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.exportPDF()!==!1&&l}return l},null,null)),(e()(),v["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-print"]],null,null,null,null,null)),(e()(),v["ɵted"](null,[" PDF"])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,2,"span",[["class","project"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n ",": ","\n "])),v["ɵpid"](65536,y.a,[b.a,v.ChangeDetectorRef]),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,2,"span",[["class","authors"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n ",": ","\n "])),v["ɵpid"](65536,y.a,[b.a,v.ChangeDetectorRef]),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,13,"div",[["class","col-md-5"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,7,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,null,null,1,"span",[["class","input-group-addon"]],null,null,null,null,null)),(e()(),v["ɵeld"](0,null,null,0,"span",[["class","glyphicon glyphicon-search"]],null,null,null,null,null)),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵeld"](0,[["input",1]],null,1,"input",[["class","form-control"],["id","addon1"],["type","text"]],[[8,"placeholder",0]],[[null,"keyup"]],function(e,n,t){var l=!0,i=e.component;if("keyup"===n){l=i.search(v["ɵnov"](e,37).value)!==!1&&l}return l},null,null)),v["ɵpid"](65536,y.a,[b.a,v.ChangeDetectorRef]),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](null,["\n "])),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵeld"](0,null,0,8,"modal-body",[],null,null,null,x.a,x.b)),v["ɵdid"](24576,null,0,O.ModalBodyComponent,[],null,null),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵand"](8388608,null,0,1,null,l)),v["ɵdid"](8192,null,0,_.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵand"](8388608,null,0,1,null,p)),v["ɵdid"](401408,null,0,_.NgForOf,[v.ViewContainerRef,v.TemplateRef,v.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵeld"](0,null,0,6,"modal-footer",[],null,null,null,R.a,R.b)),v["ɵdid"](24576,null,0,j.ModalFooterComponent,[C.ModalComponent],null,null),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵeld"](0,null,0,2,"button",[["class","btn btn-default"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=v["ɵnov"](e,1).dismiss()!==!1&&l}return l},null,null)),(e()(),v["ɵted"](null,["\n ","\n "])),v["ɵpid"](65536,y.a,[b.a,v.ChangeDetectorRef]),(e()(),v["ɵted"](0,["\n "])),(e()(),v["ɵted"](0,["\n"]))],function(e,n){var t=n.component;e(n,49,0,0==t.shown_guidelines.instructions.length),e(n,52,0,t.shown_guidelines.instructions)},function(e,n){var t=n.component;e(n,0,0,v["ɵnov"](n,1).fadeClass,v["ɵnov"](n,1).dataKeyboardAttr,v["ɵnov"](n,1).dataBackdropAttr),e(n,11,0,v["ɵunv"](n,11,0,v["ɵnov"](n,12).transform("general.guidelines"))),e(n,14,0,t.guidelines.meta.version),e(n,20,0,v["ɵunv"](n,20,0,v["ɵnov"](n,21).transform("general.project")),t.guidelines.meta.project),e(n,24,0,v["ɵunv"](n,24,0,v["ɵnov"](n,25).transform("general.authors")),t.guidelines.meta.authors),e(n,37,0,v["ɵinlineInterpolate"](1,"",v["ɵunv"](n,37,0,v["ɵnov"](n,38).transform("general.search")),"")),e(n,59,0,v["ɵunv"](n,59,0,v["ɵnov"](n,60).transform("general.close")))})}function f(e){return v["ɵvid"](0,[v["ɵqud"](335544320,1,{modal_guidelines:0}),(e()(),v["ɵand"](8388608,null,null,1,null,h)),v["ɵdid"](8192,null,0,_.NgIf,[v.ViewContainerRef,v.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,n){e(n,2,0,null!=n.component.guidelines)},null)}function g(e){return v["ɵvid"](0,[(e()(),v["ɵeld"](0,null,null,1,"app-transcr-guidelines",[],null,null,null,f,A)),v["ɵdid"](2416640,null,0,M.a,[T.a,v.ChangeDetectorRef,b.a,I.a],null,null)],function(e,n){e(n,1,0)},null)}var m=t("isxL"),v=t("3j3K"),y=t("685D"),b=t("WtPQ"),_=t("2Je8"),S=t("yASy"),w=t("uoqx"),C=t("S7tg"),k=(t.n(C),t("xAcN")),P=t("TfAg"),x=(t.n(P),t("vhkd")),O=t("xsyV"),R=(t.n(O),t("5MSB")),j=t("dUUf"),M=(t.n(j),t("4Yvw")),T=t("DCT3"),I=t("yUTl");t.d(n,"b",function(){return A}),n.a=f;var D=[m.a],A=v["ɵcrt"]({encapsulation:0,styles:D,data:{}});v["ɵccf"]("app-transcr-guidelines",M.a,g,{guidelines:"guidelines"},{},[])},pnzH:function(e,n,t){"use strict";var l=t("d397"),i=t("brVC");t.d(n,"a",function(){return r});var r=function(){function e(e){this.last_line=null,this.mouse_down=!1,this.mouse_click_pos=new i.a(0,0,0,null),this.mousecursor=null,this.playcursor=null,this.lastplayedpos=null,this.audio_px_w=0,this.distance=0,this.hZoom=0,this.current=null,this._playduration=null,this.chunk=null,this.audio=e}return Object.defineProperty(e.prototype,"Chunk",{get:function(){return this.chunk},set:function(e){this.chunk=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"AudioPxWidth",{get:function(){return this.audio_px_w},set:function(e){this.audio_px_w=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Distance",{get:function(){return this&&this.distance?this.distance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"MouseClickPos",{get:function(){return this.mouse_click_pos},set:function(e){this.mouse_click_pos=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Mousecursor",{get:function(){return this.mousecursor},set:function(e){this.mousecursor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PlayCursor",{get:function(){return this.playcursor},set:function(e){this.playcursor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"playduration",{get:function(){return this._playduration},set:function(e){this._playduration=e},enumerable:!0,configurable:!0}),e.prototype.calculateBeginTime=function(){return this.current.samples>=0?this.current.clone():null!=this.Chunk.time.start?this.Chunk.time.start.clone():new l.a(0,this.audio.samplerate)},e.prototype.updateDistance=function(){this.distance=this.audio_px_w-this.audioTCalculator.samplestoAbsX(this.current.samples)},e.prototype.resetAudioMeta=function(){this.mouse_click_pos=new i.a(0,0,0,new l.a(0,0))},e.prototype.initialize=function(e){},e.prototype.setMouseMovePosition=function(e,n,t,l,i){this.mousecursor.relPos.x=n,this.mousecursor.absX=this.getAbsXByLine(l,n,i),this.mousecursor.timePos.samples=this.audioTCalculator.absXChunktoSamples(this.mousecursor.absX,this.Chunk),this.mousecursor.relPos.y=t,this.mousecursor.line=l,this.last_line=l},e.prototype.setMouseClickPosition=function(e,n,t,l,i){this.mousecursor.relPos.x=e,this.mousecursor.relPos.y=n},e.prototype.getAbsXByLine=function(e,n,t){return e.number*t+n},e}()},poc3:function(e,n,t){"use strict";var l=t("0VXW");t.d(n,"a",function(){return r});var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.convert=function(e,n){for(var t="",l=0;l)|(>)/g,"s"),this.sessService.comment=this.transcrService.feedback.comment,this.saveForm(),this.sessService.save("feedback",this.transcrService.feedback.exportData()),this.router.navigate(["/user/transcr"])},e.prototype.onSubmit=function(e){this.transcrService.feedback.comment=this.transcrService.feedback.comment.replace(/(<)|(\/>)|(>)/g,"s"),this.sessService.comment=this.transcrService.feedback.comment,this.sessService.save("feedback",this.transcrService.feedback.exportData()),this.modal.open()},e.prototype.onSendNowClick=function(){var e=this;this.modal.dismiss(),this.modal2.open(),this.send_ok=!0;var n=this.transcrService.exportDataToJSON();this.subscrmanager.add(this.api.saveSession(n.transcript,n.project,n.annotator,n.jobno,n.id,n.status,n.comment,n.quality,n.log).catch(this.onSendError).subscribe(function(n){null!=n&&n.hasOwnProperty("statusText")&&"OK"===n.statusText?(e.sessService.submitted=!0,e.modal2.close(),setTimeout(function(){e.router.navigate(["/user/transcr/submitted"])},1e3)):e.send_error=e.langService.instant("send error")}))},e.prototype.ngAfterViewInit=function(){setTimeout(function(){jQuery.material.init()},100)},e.prototype.ngOnDestroy=function(){this.navbarServ.show_interfaces=this.settingsService.projectsettings.navigation.interfaces,this.navbarServ.show_export=this.settingsService.projectsettings.navigation.export,this.subscrmanager.destroy()},e.prototype.ngOnChanges=function(e){t.i(f.isNullOrUndefined)(e.form),jQuery.material.init()},e.prototype.getURI=function(e){var n="";switch(e){case"text":n+="data:text/plain;charset=UTF-8,",n+=encodeURIComponent(this.transcrService.getTranscriptString("text"));break;case"annotJSON":n+="data:application/json;charset=UTF-8,",n+=encodeURIComponent(this.transcrService.getTranscriptString("annotJSON"))}return n},e.prototype.sanitize=function(e){return this.sanitizer.bypassSecurityTrustUrl(e)},e.prototype.changeValue=function(e,n){this.transcrService.feedback.setValueForControl(e,n.toString())},e.prototype.translate=function(e,n){if(t.i(f.isNullOrUndefined)(e[n]))for(var l in e)return e[l];return e[n]},e.prototype.saveForm=function(){for(var e in this.feedback_data)this.changeValue(e,this.feedback_data[e])},e.prototype.loadForm=function(){if(!t.i(f.isNullOrUndefined)(this.settingsService.projectsettings)){var e=this.transcrService.feedback;for(var n in e.groups)for(var l in e.groups[n].controls){var i=e.groups[n].controls[l];"textarea"===i.type.type?this.feedback_data[i.name]=i.value:t.i(f.isNullOrUndefined)(i.custom)||t.i(f.isNullOrUndefined)(i.custom.checked)||!i.custom.checked||(this.feedback_data[i.name]=i.value)}}},e.ctorParameters=function(){return[{type:o.a},{type:i.j},{type:u.a},{type:a.a},{type:l.ChangeDetectorRef},{type:r.q},{type:c.a},{type:p.b},{type:h.a}]},e}()},pwjf:function(e,n,t){"use strict";var l=t("apNv"),i=t("U6hS");t.d(n,"a",function(){return o});var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),o=function(e){function n(n,t,l,i,r,o,u,s){var a=e.call(this,n,t,l,i)||this;return a.data={value:String.fromCharCode(r),target_name:t,timestamp:i,type:n,keyCode:r,shiftPressed:o,ctrlPressed:u,altPressed:s,char:String.fromCharCode(r)},a}return r(n,e),Object.defineProperty(n.prototype,"char",{get:function(){return this.data.char},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shortcode",{get:function(){return this.data.shortcode},set:function(e){this.data.shortcode=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this.data.value},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"keyCode",{get:function(){return this.data.keyCode},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shiftPressed",{get:function(){return this.data.shiftPressed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ctrlPressed",{get:function(){return this.data.ctrlPressed},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"altPressed",{get:function(){return this.data.altPressed},enumerable:!0,configurable:!0}),n.fromAny=function(e){return i.a.equalProperties({value:null,target_name:null,timestamp:null,type:null,keyCode:null,shiftPressed:null,ctrlPressed:null,altPressed:null,char:null},e)&&i.a.contains(e.type,"key")?new n(e.type,e.target_name,e.value,e.timestamp,e.keyCode,e.shift_pressed,e.ctrlPressed,e.altPressed):null},n.prototype.getDataClone=function(){return{value:this.value,target_name:this.target_name,timestamp:this.timestamp,type:this.type,keyCode:this.keyCode,shiftPressed:this.shiftPressed,ctrlPressed:this.ctrlPressed,altPressed:this.altPressed,char:this.value}},n}(l.a)},rRQE:function(e,n,t){"use strict";var l=t("/AVL");t.d(n,"a",function(){return r});var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.validate=function(e,n){var t="AudioviewerConfig Validation - ";switch(e){case"multi_line":if("boolean"==typeof n)break;return{success:!1,error:t+"value of key '"+e+"' must be of type boolean"};case"pixel_per_sec":if("number"==typeof n&&n>0)break;return{success:!1,error:t+"value of key '"+e+"' must be of type number greater 0"};case"justify_signal_height":if("boolean"==typeof n)break;return{success:!1,error:t+"value of key '"+e+"' must be of type boolean"};case"cropping":if("string"==typeof n)break;return{success:!1,error:t+"value of key '"+e+"' must be of type string"};case"backgroundcolor":if("string"==typeof n)break;return{success:!1,error:t+"value of key '"+e+"' must be of type string"};case"height":if("number"==typeof n&&n>0)break;return{success:!1,error:t+"value of key '"+e+"' must be of type number greater 0"};case"margin":if("object"==typeof n&&"number"==typeof n.top&&"number"==typeof n.right&&"number"==typeof n.bottom&&"number"==typeof n.left)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {top:number,right:number,bottom:number,left:number}"};case"cursor":if("object"==typeof n&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must an object of {color:string}"};case"playcursor":if("object"==typeof n&&"number"==typeof n.height&&"number"==typeof n.width&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {height:number,width:number}"};case"boundaries":if("object"==typeof n&&"boolean"==typeof n.enabled&&"number"==typeof n.width&&n.width>0&&"string"==typeof n.color&&"boolean"==typeof n.readonly)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes { enabled:boolean, width:number, color : string}"};case"grid":if("object"==typeof n&&"string"==typeof n.color&&"boolean"==typeof n.enabled)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes { enabled:boolean, color : string}"};case"data":if("object"==typeof n&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {color : string}"};case"selection":if("object"==typeof n&&"boolean"==typeof n.enabled&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {enabled:boolean, color : string}"};case"frame":if("object"==typeof n&&"string"==typeof n.color)break;return{success:!1,error:t+"value of key '"+e+"' must be an object with attributes {color : string}"};case"shortcuts_enabled":if("boolean"==typeof n)break;return{success:!1,error:t+"value of key '"+e+"' must be of type boolean"};case"disabled_keys":if(Array.isArray(n))break;return{success:!1,error:t+"value of key '"+e+"' must be of type array"};case"shortcuts":if("object"==typeof n){for(var l in n)if(!n[""+l].hasOwnProperty("keys")||!n[""+l].hasOwnProperty("title")||!n[""+l].hasOwnProperty("focusonly"))return{success:!1,error:t+"value of key '"+e+"' must be an object of shortcuts. Compare custom config with sample config"};break}break;case"timeline":if("object"==typeof n&&"boolean"==typeof n.enabled&&"number"==typeof n.height&&n.height>0&&"number"==typeof n.fontSize&&"string"==typeof n.fontWeight&&"string"==typeof n.font&&"string"==typeof n.foreColor)break;return{success:!1,error:t+"value of key '"+e+"' must be an object of width attributes {enabled:boolean, step_width_ratio: boolean, height:string, fontSize:number, fontWeight:string, font:string, foreColor:string}"};case"step_width_ratio":if("number"==typeof n&&n>0)break;return{success:!1,error:t+"value of key '"+e+"' must be of type number greater 0"};default:return{success:!1,error:t+"key '"+e+"' not found"}}return{success:!0,error:""}},n}(l.a)},rv3A:function(e,n,t){"use strict";var l=t("wKbx"),i=t("0HDV"),r=t("OMJi");t.n(r);t.d(n,"a",function(){return o});var o=function(){function e(e){this.modService=e}return e.prototype.ngOnInit=function(){var e=this;this.subscrmanager=new l.a,this.subscrmanager.add(this.modService.showmodal.subscribe(function(n){if(e.data=n,t.i(r.isNullOrUndefined)(n.type))throw"modal function not supported";e[n.type].open()}))},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.ctorParameters=function(){return[{type:i.a}]},e}()},"s+lJ":function(e,n,t){"use strict";var l=t("3j3K"),i=t("Gvdl"),r=(t.n(i),t("apNv")),o=t("pwjf"),u=t("vgJZ"),s=t("2Lmt"),a=t("U6hS");t.d(n,"a",function(){return c});var c=function(){function e(){this.afteradd=new l.EventEmitter,this._elements=[]}return Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},set:function(e){this._elements=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"WritingSpeed",{get:function(){var e=0,n=this.getElement(o.a,0),t=null,l=0;if(n){for(var i=n.timestamp,r=0;r=i&&(t=u,l++)}if(t){var s=t.timestamp-i;e=Math.round(l/s*1e3*60*100)/100}}return e},enumerable:!0,configurable:!0}),e.prototype.addElementFromEvent=function(e,n,t,l){var i="",c=null;l?i=l:n&&n.target&&(c=n.target,i=c.getAttribute("name"),i||(i=c.parentNode.getAttribute("name")),i||(i=""));var d=null;a.a.contains(e,"key")?(d=new o.a(n.type,i,"",t,n.which,n.shiftKey,n.ctrlKey,n.altKey),d.shortcode=s.c.getShortcutCombination(n)):d=a.a.contains(e,"mouse")?new u.a(e,i,"",t):a.a.contains(e,"slider")?new u.a("mouse_slider",i,n.new_value,t):new r.a(e,i,n.value,t),d&&(this._elements.push(d),this.afteradd.emit(d))},e.prototype.getElement=function(e,n){for(var t,l=0,i=0;ithis._end.samples?Math.abs(this._start.samples-this._end.samples):Math.abs(this._end.samples-this._start.samples)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){var e=this.start.clone();return e.samples=this.length,e},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this._start,this._end)},e.prototype.checkSelection=function(){if(this._start&&this._end&&this._start.samples>this._end.samples){var e=this._start.samples;this._start.samples=this._end.samples,this._end.samples=e}},e}()},wzL9:function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[o["ɵqud"](201326592,1,{viewer:0}),o["ɵqud"](201326592,2,{loupe:0}),(e()(),o["ɵeld"](0,[[2,0],["loupe",1]],null,5,"div",[["class","loupe"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,2,"app-audioviewer",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=o["ɵnov"](e,6).onResize(t)!==!1&&l}return l},u.a,u.b)),o["ɵprd"](256,null,s.a,s.a,[a.a,c.a,d.a,p.a]),o["ɵdid"](2220032,[[1,4],["viewer",4]],0,h.a,[a.a,s.a,c.a,d.a,p.a],null,null),(e()(),o["ɵted"](null,["\n"]))],function(e,n){e(n,6,0)},null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,2,"app-loupe",[],null,null,null,l,m)),o["ɵdid"](2220032,null,0,f.a,[],null,null),o["ɵprd"](2304,null,s.a,s.a,[a.a,c.a,d.a,p.a])],function(e,n){e(n,1,0)},null)}var r=t("ye0J"),o=t("3j3K"),u=t("7PL9"),s=t("74QC"),a=t("iOuv"),c=t("DCT3"),d=t("FUnf"),p=t("WtPQ"),h=t("7/hb"),f=t("nYGH");t.d(n,"b",function(){return m}),n.a=l;var g=[r.a],m=o["ɵcrt"]({encapsulation:0,styles:g,data:{}});o["ɵccf"]("app-loupe",f.a,i,{},{statechange:"statechange",mousecursorchange:"mousecursorchange",shortcuttriggered:"shortcuttriggered",segmententer:"segmententer"},[])},x35b:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("3j3K"),i=t("kZql"),r=t("Qbdm"),o=t("kke6");i.a.production&&t.i(l.enableProdMode)(),t.i(r.a)().bootstrapModuleFactory(o.a)},xAcN:function(e,n,t){"use strict";function l(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,4,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=i.modal.dismiss()!==!1&&l}return l},null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["×"])),(e()(),o["ɵted"](null,["\n "]))],null,null)}function i(e){return o["ɵvid"](0,[(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,6,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵand"](8388608,null,null,1,null,l)),o["ɵdid"](8192,null,0,u.NgIf,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["ɵted"](null,["\n "])),o["ɵncd"](null,0),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵted"](null,["\n "]))],function(e,n){e(n,4,0,n.component.showClose)},null)}function r(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,1,"modal-header",[],null,null,null,i,d)),o["ɵdid"](24576,null,0,s.ModalHeaderComponent,[a.ModalComponent],null,null)],null,null)}var o=t("3j3K"),u=t("2Je8"),s=t("TfAg"),a=(t.n(s),t("S7tg"));t.n(a);t.d(n,"b",function(){return d}),n.a=i;var c=[],d=o["ɵcrt"]({encapsulation:2,styles:c,data:{}});o["ɵccf"]("modal-header",s.ModalHeaderComponent,r,{showClose:"show-close"},{},["*"])},y2BF:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){}return e.prototype.transform=function(e,n){return e&&e>-1?Math.round(100*e):0},e}()},yDG0:function(e,n,t){"use strict";var l=t("3j3K"),i=t("8A5H"),r=t("wKbx"),o=t("yUTl"),u=t("SzqK"),s=t("OMJi"),a=(t.n(s),t("iOuv")),c=t("5oXY");t.d(n,"a",function(){return d});var d=function(){function e(e,n,i,o,u){var a=this;this.langService=e,this.settService=n,this.sessionService=i,this.audio=o,this.router=u,this.text="",this.subscrmanager=new r.a,this.loadedchanged=new l.EventEmitter,this.loadedtable={projectconfig:!1,guidelines:!1,methods:!1,audio:!1},this.progress=0,this.state="",this.warning="",this.sessionService.offline&&t.i(s.isNullOrUndefined)(this.sessionService.file)&&this.router.navigate(["/user/transcr/reload-file"]),e.get("general.please wait").subscribe(function(e){a.text=e+"..."})}return e.prototype.ngOnInit=function(){var e=this;this.subscrmanager.add(this.settService.projectsettingsloaded.subscribe(function(n){e.loadedtable.projectconfig=!0,e.progress+=25,e.state="Project configuration loaded";var l=e.langService.currentLang;t.i(s.isNullOrUndefined)(n.languages.find(function(e){return e===l}))&&(l=n.languages[0]),e.subscrmanager.add(e.settService.loadGuidelines(e.sessionService.language,"./guidelines/guidelines_"+l+".json")),e.loadedchanged.emit(!1)})),this.subscrmanager.add(this.settService.guidelinesloaded.subscribe(function(n){e.loadedtable.guidelines=!0,e.progress+=25,e.state="Guidelines loaded",e.loadedchanged.emit(!1)})),this.subscrmanager.add(this.settService.validationmethodloaded.subscribe(function(){e.loadedtable.methods=!0,e.progress+=25,e.state="Methods loaded",e.loadedtable.audio||(e.state="Load Audio..."),e.loadedchanged.emit(!1)})),this.subscrmanager.add(this.settService.audioloaded.subscribe(function(n){"success"===n.status?(e.loadedtable.audio=!0,e.progress+=25,e.state="Audio loaded",e.loadedchanged.emit(!1)):alert("ERROR: "+n.error)}));var n=this.subscrmanager.add(this.loadedchanged.subscribe(function(){e.loadedtable.guidelines&&e.loadedtable.projectconfig&&e.loadedtable.methods&&e.loadedtable.audio?(e.subscrmanager.remove(n),setTimeout(function(){!t.i(s.isNullOrUndefined)(e.sessionService.agreement)&&!t.i(s.isNullOrUndefined)(e.sessionService.agreement[e.sessionService.member_project])&&e.sessionService.agreement[e.sessionService.member_project]||!e.settService.projectsettings.agreement.enabled||e.sessionService.offline?e.router.navigate(["/user/transcr"]):e.router.navigate(["/user/agreement"])},500)):e.loadedtable.guidelines&&e.loadedtable.projectconfig&&e.loadedtable.methods&&e.loadedtable.audio}));this.subscrmanager.add(this.settService.loadProjectSettings()),t.i(s.isNullOrUndefined)(this.settService.guidelines)||!this.settService.tidyUpMethod&&!t.i(s.isNullOrUndefined)(this.settService.validationmethod)?(this.loadedtable.methods=!0,this.loadedchanged.emit(!1)):this.subscrmanager.add(this.settService.loadValidationMethod(this.settService.guidelines.meta.validation_url)),setTimeout(function(){e.loadedtable.audio||(e.warning="Audio file seems to be a large one. This could take a while...")},1e4),this.settService.loadAudioFile(this.audio)},e.prototype.ngOnDestroy=function(){this.subscrmanager.destroy()},e.ctorParameters=function(){return[{type:i.b},{type:o.a},{type:u.a},{type:a.a},{type:c.j}]},e}()},yUTl:function(e,n,t){"use strict";var l=t("3j3K"),i=t("Gvdl"),r=(t.n(i),t("Fzro")),o=t("2Lmt"),u=t("KPgI"),s=t("SzqK"),a=t("OMJi"),c=(t.n(a),t("ggTX")),d=t("gCNz");t.d(n,"a",function(){return p});var p=function(){function e(e,n){var i=this;this.http=e,this.sessService=n,this.settingsloaded=new l.EventEmitter,this.app_settingsloaded=new l.EventEmitter,this.projectsettingsloaded=new l.EventEmitter,this.validationmethodloaded=new l.EventEmitter,this.audioloaded=new l.EventEmitter,this.guidelinesloaded=new l.EventEmitter,this._loaded=!1,this._log="",this._validationmethod=null,this._tidyUpMethod=null,this.validation={app:!1},this.loadProjectSettings=function(){return c.a.log("Load Project Settings..."),i.http.request("./config/projectconfig.json").subscribe(function(e){i._projectsettings=e.json(),i.validate(new d.a,i._projectsettings)?(c.a.log("Projectconfig loaded."),i.projectsettingsloaded.emit(i._projectsettings)):c.a.err("projectconfig.json validation error.")},function(e){i._log+="Loading project config failed
"})},this.loadGuidelines=function(e,n){return c.a.log("Load Guidelines ("+e+")..."),i.http.get(n).subscribe(function(e){var n=e.json();c.a.log("Guidelines loaded."),i._guidelines=n,i.loadValidationMethod(n.meta.validation_url),i.guidelinesloaded.emit(n)},function(e){i._log+="Loading guidelines failed
"})},this.loadValidationMethod=function(e){return c.a.log("Load Methods..."),i.http.get(e).subscribe(function(n){var t=document.createElement("script");t.type="text/javascript",t.src=e,t.id="validationJS",document.body.appendChild(t),c.a.log("Methods loaded."),setTimeout(function(){i._validationmethod=validateAnnotation,i._tidyUpMethod=tidyUpAnnotation,i.validationmethodloaded.emit()},2e3)},function(e){i._log+="Loading functions failed
"})},this.loadAudioFile=function(e){if(c.a.log("Load audio..."),t.i(a.isNullOrUndefined)(e.audiobuffer))if(i.subscrmanager.add(e.afterloaded.subscribe(function(e){c.a.log("Audio loaded."),i.audioloaded.emit(e)})),1!=i.sessService.offline){var n=i.app_settings.audio_server.url+i.sessService.audio_url;i._filename=i.sessService.audio_url.substr(i.sessService.audio_url.lastIndexOf("/")+1),i._filename=i._filename.substr(0,i._filename.lastIndexOf(".")),i._filename.indexOf("src=")>-1&&(i._filename=i._filename.substr(i._filename.indexOf("src=")+4)),e.loadAudio(n,function(){},function(e){i._log+="Loading audio file failed
"})}else{i._filename=i.sessService.sessionfile.name,i._filename=i._filename.substr(0,i._filename.lastIndexOf("."));var l=new FileReader;l.onload=function(e){return function(e){}}(i.sessService.sessionfile),l.onloadend=function(n){var t=n.target;i.sessService.offline=!0,e.decodeAudio(t.result)},null!=i.sessService.file&&l.readAsArrayBuffer(i.sessService.file)}else i.audioloaded.emit({result:"success"})},this.triggerSettingsLoaded=function(){i.validated&&(i.loaded=!0,i.settingsloaded.emit(!0))},this.subscrmanager=new o.b,this.subscrmanager.add(this.app_settingsloaded.subscribe(this.triggerSettingsLoaded)),this._app_settings=this.getApplicationSettings()}return Object.defineProperty(e.prototype,"log",{get:function(){return this._log},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filename",{get:function(){return this._filename},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"guidelines",{get:function(){return this._guidelines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tidyUpMethod",{get:function(){return this._tidyUpMethod},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationmethod",{get:function(){return this._validationmethod},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projectsettings",{get:function(){return this._projectsettings},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loaded",{get:function(){return this._loaded},set:function(e){this._loaded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validated",{get:function(){return this.validation.app},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"app_settings",{get:function(){return this._app_settings},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return t.i(a.isNullOrUndefined)(this.projectsettings)||t.i(a.isNullOrUndefined)(this.projectsettings.responsive)?this.app_settings.octra.responsive:this.projectsettings.responsive},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allloaded",{get:function(){return!t.i(a.isNullOrUndefined)(this.projectsettings)},enumerable:!0,configurable:!0}),e.prototype.getApplicationSettings=function(){var e=this;return c.a.log("Load Application Settings..."),this.subscrmanager.add(this.http.request("./config/appconfig.json").subscribe(function(n){e._app_settings=n.json(),c.a.log("AppSettings loaded."),e.validation.app=e.validate(new u.a,e._app_settings),e.validation.app?e.app_settingsloaded.emit(!0):c.a.err("appconfig.json validation error.")},function(n){e._log+="Loading application config failed
"})),null},e.prototype.validate=function(e,n){for(var t in n){var l=e.validate(t,n[""+t]);if(!l.success)return console.error(l.error),!1}return!0},e.prototype.destroy=function(){this.subscrmanager.destroy()},e.prototype.clearSettings=function(){this._guidelines=null,this._projectsettings=null,this._validationmethod=null,this._tidyUpMethod=null},e.ctorParameters=function(){return[{type:r.o},{type:s.a}]},e}()},ye0J:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=[""]},ysFp:function(e,n,t){"use strict";!function(){function e(e,n,t,l){this.systemstate=e,this.type=n,this.data=t,this.message=l}e}()},zx8H:function(e,n,t){"use strict";function l(e){return o["ɵvid"](2,[o["ɵqud"](201326592,1,{apview:0}),o["ɵqud"](201326592,2,{graphicscanRef:0}),o["ɵqud"](201326592,3,{overlaynacRef:0}),o["ɵqud"](201326592,4,{playcanRef:0}),(e()(),o["ɵeld"](0,null,null,16,"div",[["audioplayer",""],["class","audioplayer"]],null,null,null,null,null)),o["ɵdid"](8192,[[1,4],["audioplay",4]],0,u.a,[o.ElementRef,o.Renderer],null,null),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[2,0],["ap_graphicscan",1]],null,0,"canvas",[["canvasDir",""],["class","ap-graphicscanvas"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[3,0],["ap_overlaycan",1]],null,0,"canvas",[["canvasDir",""],["class","ap-overlaycanvas"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,[[4,0],["ap_playcan",1]],null,0,"canvas",[["canvasDir",""],["class","ap-playcanvas"]],null,[[null,"mouseleave"],[null,"mouseenter"],[null,"mousedown"],[null,"mouseup"],[null,"click"],[null,"mousemove"]],function(e,n,t){var l=!0,i=e.component;if("mouseleave"===n){i.onMouseMove(t);l=(i.focused=!1)!=!1&&l}if("mouseenter"===n){l=(i.focused=!0)!=!1&&l}if("mousedown"===n){l=i.onClick(t)!==!1&&l}if("mouseup"===n){l=i.onClick(t)!==!1&&l}if("click"===n){l=i.onClick(t)!==!1&&l}if("mousemove"===n){l=i.onMouseMove(t)!==!1&&l}return l},null,null)),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,2,"div",[["class","ap-time-start-display"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](0,a.a,[]),(e()(),o["ɵted"](null,["\n "])),(e()(),o["ɵeld"](0,null,null,2,"div",[["class","ap-time-end-display"]],null,null,null,null,null)),(e()(),o["ɵted"](null,["",""])),o["ɵpid"](0,a.a,[]),(e()(),o["ɵted"](null,["\n"]))],null,function(e,n){var t=n.component;e(n,14,0,o["ɵunv"](n,14,0,o["ɵnov"](n,15).transform(t.current_time))),e(n,18,0,o["ɵunv"](n,18,0,o["ɵnov"](n,19).transform(t.total_time-t.current_time)))})}function i(e){return o["ɵvid"](0,[(e()(),o["ɵeld"](0,null,null,2,"app-audioplayer",[],null,[["window","resize"],["window","beforeunload"]],function(e,n,t){var l=!0;if("window:resize"===n){l=o["ɵnov"](e,2).onResize(t)!==!1&&l}if("window:beforeunload"===n){l=o["ɵnov"](e,2).onReload(t)!==!1&&l}return l},l,f)),o["ɵprd"](256,null,c.a,c.a,[d.a]),o["ɵdid"](2220032,null,0,s.a,[d.a,c.a,o.ChangeDetectorRef,p.a],null,null)],function(e,n){e(n,2,0)},null)}var r=t("Hto6"),o=t("3j3K"),u=t("52Zn"),s=t("AGbc"),a=t("JCcA"),c=t("+o7G"),d=t("iOuv"),p=t("FUnf");t.d(n,"b",function(){return f}),n.a=l;var h=[r.a],f=o["ɵcrt"]({encapsulation:0,styles:h,data:{}});o["ɵccf"]("app-audioplayer",s.a,i,{},{shortcuttriggered:"shortcuttriggered",Data:"Data"},[])}},[2]); \ No newline at end of file diff --git a/dist/vendor.e5b48df57d685fde4213.bundle.js b/dist/vendor.e5b48df57d685fde4213.bundle.js deleted file mode 100644 index b5f4e8dcc..000000000 --- a/dist/vendor.e5b48df57d685fde4213.bundle.js +++ /dev/null @@ -1,767 +0,0 @@ -webpackJsonp([4,5],{"+3eL":function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=n("WhVc");e.tryCatch=o},"+4ur":function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},"+EXD":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("CURp"),s=n("wAkD"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return r(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new u(t,this.observableFactory)},e}(o.Observable);e.DeferObservable=a;var u=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return r(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(i.subscribeToResult(this,t))},e}(s.OuterSubscriber)},"+KN+":function(t,e,n){"use strict";var r=n("rCTf"),o=n("O/+v");r.Observable.prototype.bufferCount=o.bufferCount},"+Y2e":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("EEr4"),i=n("mmVS"),s=n("rCTf"),a=n("B00U"),u=n("VOfZ"),c=n("MQMf"),l=n("+3eL"),p=n("WhVc"),f=n("KLoZ"),h=function(t){function e(e,n){if(e instanceof s.Observable)t.call(this,n,e);else{if(t.call(this),this.WebSocketCtor=u.root.WebSocket,this._output=new o.Subject,"string"==typeof e?this.url=e:f.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.ReplaySubject}}return r(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var n=new e(this,this.destination);return n.operator=t,n},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new c.ReplaySubject),this._output=new o.Subject},e.prototype.multiplex=function(t,e,n){var r=this;return new s.Observable(function(o){var i=l.tryCatch(t)();i===p.errorObject?o.error(p.errorObject.e):r.next(i);var s=r.subscribe(function(t){var e=l.tryCatch(n)(t);e===p.errorObject?o.error(p.errorObject.e):e&&o.next(t)},function(t){return o.error(t)},function(){return o.complete()});return function(){var t=l.tryCatch(e)();t===p.errorObject?o.error(p.errorObject.e):r.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,n=this._output,r=null;try{r=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=r,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(t){return void n.error(t)}var o=new a.Subscription(function(){t.socket=null,r&&1===r.readyState&&r.close()});r.onopen=function(e){var s=t.openObserver;s&&s.next(e);var a=t.destination;t.destination=i.Subscriber.create(function(t){return 1===r.readyState&&r.send(t)},function(e){var o=t.closingObserver;o&&o.next(void 0),e&&e.code?r.close(e.code,e.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),r.close(),t._resetState()}),a&&a instanceof c.ReplaySubject&&o.add(a.subscribe(t.destination))},r.onerror=function(e){t._resetState(),n.error(e)},r.onclose=function(e){t._resetState();var r=t.closeObserver;r&&r.next(e),e.wasClean?n.complete():n.error(e)},r.onmessage=function(e){var r=l.tryCatch(t.resultSelector)(e);r===p.errorObject?n.error(p.errorObject.e):n.next(r)}},e.prototype._subscribe=function(t){var e=this,n=this.source;if(n)return n.subscribe(t);this.socket||this._connectSocket();var r=new a.Subscription;return r.add(this._output.subscribe(t)),r.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),r},e.prototype.unsubscribe=function(){var e=this,n=e.source,r=e.socket;r&&1===r.readyState&&(r.close(),this._resetState()),t.prototype.unsubscribe.call(this),n||(this.destination=new c.ReplaySubject)},e}(o.AnonymousSubject);e.WebSocketSubject=h},"+ayw":function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=n("emOw"),s=n("EEr4");e.share=o},"+dHm":function(t,e,n){"use strict";var r=n("3j3K"),o=n("wUn1"),i=(n.n(o),n("3Iag")),s=n("RaSy"),a=n("NvNJ"),u=n("oZUJ"),c=n("kWlY");n.d(e,"a",function(){return l});var l=function(){function t(t,e,n,r,o,i){this._elementRef=t,this._renderer=e,this._viewContainerRef=n,this._cis=r,this._config=o,this._state=i,this._isInlineOpen=!1,this._subscriptions=[],this._isInited=!1,this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:u.a,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this._state.autoClose=this._config.autoClose}return Object.defineProperty(t.prototype,"autoClose",{get:function(){return this._state.autoClose},set:function(t){"boolean"==typeof t&&(this._state.autoClose=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(t){this._isDisabled=t,this._state.isDisabledChange.emit(t),t&&this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._showInline?this._isInlineOpen:this._dropdown.isShown},set:function(t){t?this.show():this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBs4",{get:function(){return!n.i(c.a)()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._isInited||(this._isInited=!0,this._showInline=!this.container,this._dropdown.listen({triggers:this.triggers,show:function(){return t.show()}}),this._subscriptions.push(this._state.toggleClick.subscribe(function(e){return t.toggle(e)})),this._subscriptions.push(this._state.isDisabledChange.filter(function(t){return t===!0}).subscribe(function(e){return t.hide()})),this._showInline&&this._state.dropdownMenu.then(function(e){t._inlinedMenu=e.viewContainer.createEmbeddedView(e.templateRef)}))},t.prototype.show=function(){var t=this;if(!this.isOpen&&!this.isDisabled)return this._showInline?(this._isInlineOpen=!0,void this._state.isOpenChange.emit(!0)):void this._state.dropdownMenu.then(function(e){var n=t.dropup===!0||void 0!==t.dropup&&t.dropup!==!1;t._state.direction=n?"up":"down";var r=t.placement||(n?"top left":"bottom left");t._dropdown.attach(a.a).to(t.container).position({attachment:r}).show({content:e.templateRef,placement:r}),t._state.isOpenChange.emit(!0)})},t.prototype.hide=function(){this.isOpen&&(this._showInline?this._isInlineOpen=!1:this._dropdown.hide(),this._state.isOpenChange.emit(!1))},t.prototype.toggle=function(t){return this.isOpen||t===!1?this.hide():this.show()},t.prototype.ngOnDestroy=function(){for(var t=0,e=this._subscriptions;t=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new s.ArgumentOutOfRangeError)),t.complete()},e}(i.Subscriber)},"/181":function(t,e,n){"use strict";var r=n("rCTf"),o=n("2jZb");r.Observable.prototype.count=o.count},"/8te":function(t,e,n){"use strict";var r=n("Gb0N");e.range=r.RangeObservable.create},"/CuN":function(t,e,n){"use strict";var r=n("3j3K"),o=n("D5XX");n.d(e,"a",function(){return i});var i=function(){function t(){}return t.prototype.position=function(t){var e=t.element,r=t.target,i=t.attachment,s=t.appendToBody;n.i(o.a)(this._getHtmlElement(r),this._getHtmlElement(e),i,s)},t.prototype._getHtmlElement=function(t){return"string"==typeof t?document.querySelector(t):t instanceof r.ElementRef?t.nativeElement:t},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[]},t}()},"/J7H":function(t,e,n){"use strict";function r(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function o(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function i(t){return!!t&&"[object NodeList]"===d.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===d.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=n("rCTf"),l=n("+3eL"),p=n("SKH6"),f=n("WhVc"),h=n("B00U"),d=Object.prototype.toString,y=function(t){function e(e,n,r,o){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=o}return u(e,t),e.create=function(t,n,r,o){return p.isFunction(r)&&(o=r,r=void 0),new e(t,n,o,r)},e.setupSubscription=function(t,n,u,c,l){var p;if(i(t)||s(t))for(var f=0,d=t.length;f-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},"0TiQ":function(t,e,n){"use strict";var r=n("rCTf"),o=n("QNuG");r.Observable.prototype.publishLast=o.publishLast},"0VSF":function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.sample=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=e.subscribe(n);return r.add(s.subscribeToResult(n,this.notifier)),r},t}(),u=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,o){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.OuterSubscriber)},"0gHg":function(t,e,n){"use strict";function r(t,e,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY),i.multicast.call(this,new o.ReplaySubject(t,e,n))}var o=n("MQMf"),i=n("emOw");e.publishReplay=r},"10Gq":function(t,e,n){"use strict";var r=n("rCTf"),o=n("Cx8F");r.Observable.prototype.retryWhen=o.retryWhen},"16m9":function(t,e,n){"use strict";var r=n("rCTf"),o=n("Yuqe");r.Observable.prototype.concatMapTo=o.concatMapTo},"1APj":function(t,e,n){"use strict";var r=n("rCTf"),o=n("lgiQ");r.Observable.of=o.of},"1Axw":function(t,e,n){"use strict";function r(t,e){return e?new p(this,e).lift(new c(t)):this.lift(new c(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("rCTf"),a=n("wAkD"),u=n("CURp");e.delayWhen=r;var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delayDurationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(t),this.removeSubscription(o),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return e!==-1&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=u.subscribeToResult(this,t,e);this.add(n),this.delayNotifierSubscriptions.push(n),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),p=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return o(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new f(t,this.source))},e}(s.Observable),f=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return o(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(i.Subscriber)},"1Cj3":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("9Avi"),i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],i=r[2],s=r[3];e.push(f(o,s));var a=o==q&&s==q;"<"!=i[0]||a||e.push(f(s,o))}function p(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}function f(t,e){return function(n,r){var o=t==q||t==n,i=e==q||e==r;return o&&i}}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function h(t,e,n,r){return{type:1,keyframes:t,duration:e,delay:n,totalTime:e+n,easing:r}}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function d(t,e,r){void 0===e&&(e={}),void 0===r&&(r={});var o=Array.isArray(t)?n.i(V.b)(t):t;return(new z).buildKeyframes(o,e,r)}function y(t){var e=t.offset;if(null==e){var n=t.styles;if(Array.isArray(n))for(var r=0;r=0&&(r.splice(o,1),0==r.length&&t.delete(e))}}function C(t){switch(t.length){case 0:return new V.a;case 1:return t[0];default:return new V.e(t)}}function S(t){return t?t.splice(0):[]}function O(t,e){switch(e){case"start":case"done":return;default:throw new Error('The provided animation trigger event "'+e+'" for the animation trigger "'+t+'" is not supported!')}}function x(t,e,n,r){switch(e){case"start":t.onStart(function(){var t=E(n);t.phaseName="start",r(t)});break;case"done":t.onDone(function(){var t=E(n);t.phaseName="done",r(t)})}}function E(t){return T(t.element,t.triggerName,t.fromState,t.toState,t.phaseName,t.totalTime)}function T(t,e,n,r,o,i){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i}}function P(t){switch(typeof t){case"boolean":return t?"1":"0";default:return t?t.toString():null}}function A(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function j(t){return t.replace(st,function(){for(var t=[],e=0;er&&e.transformIntoNewTimeline(),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime;t.steps.forEach(function(t){var i=e.createSubContext();u(n,t,i),o=Math.max(o,i.currentTimeline.currentTime),r.push(i.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype.visitAnimate=function(t,e){var o=t.timings.hasOwnProperty("duration")?t.timings:r(t.timings,e.errors);if(e.currentAnimateTimings=o,o.delay&&(e.incrementTime(o.delay),e.currentTimeline.snapshotCurrentStyles()),5==(t.styles?t.styles.type:-1))this.visitKeyframeSequence(t.styles,e);else{var i=t.styles;if(!i){var s={};o.easing&&(s.easing=o.easing),i=n.i(V.c)(s),i.treatAsEmptyStep=!0}e.incrementTime(o.duration),i&&this.visitStyle(i,e)}e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){e.currentAnimateTimings||4!=e.previousNode.type||e.currentTimeline.forwardFrame();var n=o(t.styles),r=e.currentAnimateTimings&&e.currentAnimateTimings.easing;this._applyStyles(n,r,!!t.treatAsEmptyStep,e),e.previousNode=t},t.prototype._applyStyles=function(t,e,n,r){t.hasOwnProperty("easing")&&(e=e||t.easing,delete t.easing),r.currentTimeline.setStyles(t,e,n)},t.prototype.visitKeyframeSequence=function(t,e){var n=this,r=1,i=t.steps.length-1,s=t.steps[0],a=0,u=null!=y(s);u||(a=r/i);var c=e.currentTimeline.duration,l=e.currentAnimateTimings.duration,p=e.createSubContext(),f=p.currentTimeline;f.easing=e.currentAnimateTimings.easing,t.steps.forEach(function(t,e){var s=o(t.styles),c=u?null!=t.offset?t.offset:parseFloat(s.offset):e==i?r:e*a;f.forwardTime(c*l),n._applyStyles(s,null,!1,p)}),e.currentTimeline.mergeTimelineCollectedStyles(f),e.transformIntoNewTimeline(c+l),e.previousNode=t},t}(),G=function(){function t(t,e){void 0===e&&(e=null),this.startTime=t,this._globalTimelineStyles=e,this.duration=0,this.easing="",this._previousKeyframe={},this._keyframes=new Map,this._styleSummary={},this._backFill={},this._currentEmptyStepKeyframe=null,this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles),this._loadKeyframe()}return t.prototype.hasStyling=function(){return this._keyframes.size>1},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.fork=function(e){return void 0===e&&(e=0),new t(e||this.currentTime,this._globalTimelineStyles)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration++,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.setStyles=function(t,e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=!1),e&&(this._previousKeyframe.easing=e),n?(Object.keys(this._globalTimelineStyles).forEach(function(t){r._backFill[t]=r._globalTimelineStyles[t]||V.d,r._currentKeyframe[t]=V.d}),this._currentEmptyStepKeyframe=this._currentKeyframe):(Object.keys(t).forEach(function(e){if("offset"!==e){var n=t[e];r._currentKeyframe[e]=n,r._localTimelineStyles[e]||(r._backFill[e]=r._globalTimelineStyles[e]||V.d),r._updateStyle(e,n)}}),Object.keys(this._localTimelineStyles).forEach(function(t){r._currentKeyframe.hasOwnProperty(t)||(r._currentKeyframe[t]=r._localTimelineStyles[t])}))},t.prototype.snapshotCurrentStyles=function(){i(this._localTimelineStyles,!1,this._currentKeyframe)},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this,e=[];if(0==this.duration){var n=this.getFinalKeyframe(),r=i(n,!0);r.offset=0,e.push(r);var o=i(n,!0);o.offset=1,e.push(o)}else this._keyframes.forEach(function(n,r){var o=i(n,!0);o.offset=r/t.duration,e.push(o)});return h(e,this.duration,this.startTime,this.easing)},t}(),W=function(){function t(t,e,r,o){this._triggerName=t,this.matchFns=r,this._stateStyles=o;var i=Array.isArray(e.animation)?n.i(V.b)(e.animation):e.animation;this._animationAst=i}return t.prototype.match=function(t,e){if(m(this.matchFns,t,e)){var n=this._stateStyles["*"]||{},r=this._stateStyles[t]||n,o=this._stateStyles[e]||n,i=d(this._animationAst,r,o);return v(this._triggerName,t,e,"void"===e,r,o,i)}},t}(),K=function(){function t(){}return t.prototype.validate=function(t){var e=new Z;return u(this,t,e),e.errors},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitSequence=function(t,e){var n=this;t.steps.forEach(function(t){return u(n,t,e)})},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0;t.steps.forEach(function(t){e.currentTime=r,u(n,t,e),o=Math.max(o,e.currentTime)}),e.currentTime=o},t.prototype.visitAnimate=function(t,e){e.currentAnimateTimings=t.timings=r(t.timings,e.errors);var n=t.styles&&t.styles.type;5==n?this.visitKeyframeSequence(t.styles,e):(e.currentTime+=e.currentAnimateTimings.duration+e.currentAnimateTimings.delay,6==n&&this.visitStyle(t.styles,e)),e.currentAnimateTimings=null},t.prototype.visitStyle=function(t,e){var n=o(t.styles),r=e.currentAnimateTimings,i=e.currentTime,s=e.currentTime;r&&s>0&&(s-=r.duration+r.delay),Object.keys(n).forEach(function(t){var n=e.collectedStyles[t],r=!0;n&&(s!=i&&s>=n.startTime&&i<=n.endTime&&(e.errors.push('The CSS property "'+t+'" that exists between the times of "'+n.startTime+'ms" and "'+n.endTime+'ms" is also being animated in a parallel animation between the times of "'+s+'ms" and "'+i+'ms"'),r=!1),s=n.startTime),r&&(e.collectedStyles[t]={startTime:s,endTime:i})})},t.prototype.visitKeyframeSequence=function(t,e){var n=this,r=0,i=[],s=!1,a=!1,u=0;t.steps.forEach(function(t){var e=o(t.styles),n=0;e.hasOwnProperty("offset")&&(r++,n=e.offset),a=a||n<0||n>1,s=s||n0&&r0?r==p?1:l*r:i[r],s=o*h;e.currentTime=f+e.currentAnimateTimings.delay+s,e.currentAnimateTimings.duration=s,n.visitStyle(t,e)})},t}(),Z=function(){function t(){this.errors=[],this.currentTime=0,this.collectedStyles={}}return t}(),Q=function(){function t(t,e,n){var r=this;this.name=t,this._transitionAsts=n,this.transitionFactories=[],this.states={},Object.keys(e).forEach(function(t){r.states[t]=i(e[t],!1)});var o=[];if(n.forEach(function(t){var n=c(t.expr,o),i=b(t);i.length?o.push.apply(o,i):r.transitionFactories.push(new W(r.name,t,n,e))}),o.length){var s="\n - ";throw new Error("Animation parsing for the "+t+" trigger have failed:"+s+o.join(s))}}return t.prototype.createFallbackInstruction=function(t,e){var n=this.states["*"]||{},r=this.states[t]||n,o=this.states[e]||n;return v(this.name,t,e,"void"==e,r,o,[])},t.prototype.matchTransition=function(t,e){for(var n=0;n=0&&r.splice(e,1)})}),this._pendingListenerRemovals.clear()},t.prototype._onRemovalTransition=function(t){for(var e=t.querySelectorAll(X),n=function(t){var n=e[t],o=r._activeElementAnimations.get(n);o&&o.forEach(function(t){return t.destroy()});var i=r._activeTransitionAnimations.get(n);i&&Object.keys(i).forEach(function(t){var e=i[t];e&&e.destroy()})},r=this,o=0;o-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?z.One:z.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?z.One:z.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?z.One:z.Other;case"ar":return 0===n?z.Zero:1===n?z.One:2===n?z.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?z.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?z.Many:z.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?z.One:z.Other;case"be":return n%10==1&&n%100!=11?z.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?z.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?z.Many:z.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?z.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?z.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?z.Few:0!==n&&n%1e6==0?z.Many:z.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?z.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?z.Few:z.Other;case"cs":case"sk":return 1===o&&0===i?z.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?z.Few:0!==i?z.Many:z.Other;case"cy":return 0===n?z.Zero:1===n?z.One:2===n?z.Two:3===n?z.Few:6===n?z.Many:z.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?z.One:z.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?z.One:0===i&&o%100==2||s%100==2?z.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?z.Few:z.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?z.One:z.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?z.One:z.Other;case"ga":return 1===n?z.One:2===n?z.Two:n===Math.floor(n)&&n>=3&&n<=6?z.Few:n===Math.floor(n)&&n>=7&&n<=10?z.Many:z.Other;case"gd":return 1===n||11===n?z.One:2===n||12===n?z.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?z.Few:z.Other;case"gv":return 0===i&&o%10==1?z.One:0===i&&o%10==2?z.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?z.Many:z.Other:z.Few;case"he":return 1===o&&0===i?z.One:2===o&&0===i?z.Two:0!==i||n>=0&&n<=10||n%10!=0?z.Other:z.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?z.One:z.Other;case"ksh":return 0===n?z.Zero:1===n?z.One:z.Other;case"kw":case"naq":case"se":case"smn":return 1===n?z.One:2===n?z.Two:z.Other;case"lag":return 0===n?z.Zero:0!==o&&1!==o||0===n?z.Other:z.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?z.Few:0!==s?z.Many:z.Other:z.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?z.Zero:n%10==1&&n%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?z.One:z.Other;case"mk":return 0===i&&o%10==1||s%10==1?z.One:z.Other;case"mt":return 1===n?z.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?z.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?z.Many:z.Other;case"pl":return 1===o&&0===i?z.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?z.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?z.Many:z.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?z.One:z.Other;case"ro":return 1===o&&0===i?z.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?z.Few:z.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?z.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?z.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?z.Many:z.Other;case"shi":return 0===o||1===n?z.One:n===Math.floor(n)&&n>=2&&n<=10?z.Few:z.Other;case"si":return 0===n||1===n||0===o&&1===s?z.One:z.Other;case"sl":return 0===i&&o%100==1?z.One:0===i&&o%100==2?z.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?z.Few:z.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?z.One:z.Other;default:return z.Other}}function a(t){return t.name||typeof t}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function u(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+n.i(I["ɵstringify"])(t)+"'")}function c(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function l(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function p(t){return function(e,n){return t(e,n).split(" ")[1]}}function f(t){return function(e,n){return t(e,n).split(" ")[0]}}function h(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function d(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=h(t,n,e);return r?r.substring(3):""}}function y(t,e){return t.hour12=e,t}function v(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function m(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function b(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,n){return h(e,n,t)}}function _(t,e,n){var r=gt[t];if(r)return r(e,n);var o=t,i=wt.get(o);if(!i){i=[];var s=void 0;for(bt.exec(t);t;)s=bt.exec(t),s?(i=i.concat(s.slice(1)),t=i.pop()):(i.push(t),t=null);wt.set(o,i)}return i.reduce(function(t,r){var o=_t[r];return t+(o?o(e,n):w(r))},"")}function w(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function C(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&O(n)?+n:n))throw u(t,n);var a,c,l;if(r!==vt.Currency&&(a=1,c=0,l=3),o){var p=o.match(St);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(a=S(p[1])),null!=p[3]&&(c=S(p[3])),null!=p[5]&&(l=S(p[5]))}return mt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function S(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function O(t){return!isNaN(t-parseFloat(t))}function x(t){return null==t||""===t}function E(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=P(t[9]+t[10]),r=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-n,a=P(t[5]||"0")-r,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Vt}function j(t){return t===Dt}function R(t){return t===Ft}function k(t){return t===Lt}Object.defineProperty(e,"__esModule",{value:!0});var I=n("3j3K");n.d(e,"NgLocaleLocalization",function(){return B}),n.d(e,"NgLocalization",function(){return q}),n.d(e,"CommonModule",function(){return Mt}),n.d(e,"NgClass",function(){return G}),n.d(e,"NgFor",function(){return J}),n.d(e,"NgForOf",function(){return Z}),n.d(e,"NgForOfContext",function(){return K}),n.d(e,"NgIf",function(){return Y}),n.d(e,"NgIfContext",function(){return $}),n.d(e,"NgPlural",function(){return rt}),n.d(e,"NgPluralCase",function(){return ot}),n.d(e,"NgStyle",function(){return it}),n.d(e,"NgSwitch",function(){return tt}),n.d(e,"NgSwitchCase",function(){return et}),n.d(e,"NgSwitchDefault",function(){return nt}),n.d(e,"NgTemplateOutlet",function(){return st}),n.d(e,"NgComponentOutlet",function(){return W}),n.d(e,"AsyncPipe",function(){return ft}),n.d(e,"DatePipe",function(){return Pt}),n.d(e,"I18nPluralPipe",function(){return jt}),n.d(e,"I18nSelectPipe",function(){return Rt}),n.d(e,"JsonPipe",function(){return kt}),n.d(e,"LowerCasePipe",function(){return ht}),n.d(e,"CurrencyPipe",function(){return Et}),n.d(e,"DecimalPipe",function(){return Ot}),n.d(e,"PercentPipe",function(){return xt}),n.d(e,"SlicePipe",function(){return It}),n.d(e,"UpperCasePipe",function(){return yt}),n.d(e,"TitleCasePipe",function(){return dt}),n.d(e,"ɵPLATFORM_BROWSER_ID",function(){return Vt}),n.d(e,"ɵPLATFORM_SERVER_ID",function(){return Dt}),n.d(e,"ɵPLATFORM_WORKER_APP_ID",function(){return Ft}),n.d(e,"ɵPLATFORM_WORKER_UI_ID",function(){return Lt}),n.d(e,"isPlatformBrowser",function(){return A}),n.d(e,"isPlatformServer",function(){return j}),n.d(e,"isPlatformWorkerApp",function(){return R}),n.d(e,"isPlatformWorkerUi",function(){return k}),n.d(e,"VERSION",function(){return Ut}),n.d(e,"PlatformLocation",function(){return M}),n.d(e,"LOCATION_INITIALIZED",function(){return V}),n.d(e,"LocationStrategy",function(){return D}),n.d(e,"APP_BASE_HREF",function(){return F}),n.d(e,"HashLocationStrategy",function(){return U}),n.d(e,"PathLocationStrategy",function(){return H}),n.d(e,"Location",function(){return L}),n.d(e,"ɵa",function(){return at}),n.d(e,"ɵb",function(){return Nt});var N=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},M=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),V=new I.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),F=new I.InjectionToken("appBaseHref"),L=function(){function t(e){var n=this;this._subject=new I.EventEmitter,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(o(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,o(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:I.Injectable}],L.ctorParameters=function(){return[{type:D}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var U=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return N(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);U.decorators=[{type:I.Injectable}],U.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:I.Optional},{type:I.Inject,args:[F]}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var H=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return N(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);H.decorators=[{type:I.Injectable}],H.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:I.Optional},{type:I.Inject,args:[F]}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var q=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),B=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return N(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}},e}(q);B.decorators=[{type:I.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:I.Inject,args:[I.LOCALE_ID]}]}]};var z={};z.Zero=0,z.One=1,z.Two=2,z.Few=3,z.Many=4,z.Other=5,z[z.Zero]="Zero",z[z.One]="One",z[z.Two]="Two",z[z.Few]="Few",z[z.Many]="Many",z[z.Other]="Other";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var G=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(n.i(I["ɵisListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+n.i(I["ɵstringify"])(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();G.decorators=[{type:I.Directive,args:[{selector:"[ngClass]"}]}],G.ctorParameters=function(){return[{type:I.IterableDiffers},{type:I.KeyValueDiffers},{type:I.ElementRef},{type:I.Renderer}]},G.propDecorators={klass:[{type:I.Input,args:["class"]}],ngClass:[{type:I.Input}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var W=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(I.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(I.ComponentFactoryResolver),o=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();W.decorators=[{type:I.Directive,args:[{selector:"[ngComponentOutlet]"}]}],W.ctorParameters=function(){return[{type:I.ViewContainerRef}]},W.propDecorators={ngComponentOutlet:[{type:I.Input}],ngComponentOutletInjector:[{type:I.Input}],ngComponentOutletContent:[{type:I.Input}],ngComponentOutletNgModuleFactory:[{type:I.Input}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var K=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Z=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){n.i(I.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+a(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new K(null,e.ngForOf,null,null),o),s=new Q(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{var i=e._viewContainer.get(r);e._viewContainer.move(i,o);var s=new Q(t,i);n.push(s)}});for(var r=0;r-1)return e.push(t[n]),e;e.push(t[n])}return e}function S(t){if(t.length>1){return" ("+C(t.slice().reverse()).map(function(t){return s(t.token)}).join(" -> ")+")"}return""}function O(t,e,n,r){var o=r?w("",r):Error();return o.addKey=x,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[Go]=r,o}function x(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function E(t,e){return O(t,e,function(){return"No provider for "+s(this.keys[0].token)+"!"+S(this.keys)})}function T(t,e){return O(t,e,function(){return"Cannot instantiate cyclic dependency!"+S(this.keys)})}function P(t,e,n,r){return O(t,r,function(){var t=s(this.keys[0].token);return b(this).message+": Error during instantiation of "+t+"!"+S(this.keys)+"."},e)}function A(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function j(t,e){for(var n=[],r=0,o=e.length;r-1&&t.splice(n,1)}function yt(t,e){var n=fs.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);fs.set(t,e)}function vt(t){var e=fs.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function mt(t){return t.reduce(function(t,e){var n=Array.isArray(e)?mt(e):e;return t.concat(n)},[])}function bt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function gt(t){return t.map(function(t){return t.nativeElement})}function _t(t,e,n){t.childNodes.forEach(function(t){t instanceof Es&&(e(t)&&n.push(t),_t(t,e,n))})}function wt(t,e,n){t instanceof Es&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Es&&wt(t,e,n)})}function Ct(t){return Ts.get(t)}function St(t){Ts.set(t.nativeNode,t)}function Ot(t){Ts.delete(t.nativeNode)}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function xt(t,e){var n=Et(t),r=Et(e);if(n&&r)return Tt(t,e,xt);var o=t&&("object"==typeof t||"function"==typeof t),s=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!s)||i(t,e)}function Et(t){return!!At(t)&&(Array.isArray(t)||!(t instanceof Map)&&r()in t)}function Tt(t,e,n){for(var o=t[r()](),i=e[r()]();;){var s=o.next(),a=i.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function Pt(t,e){if(Array.isArray(t))for(var n=0;n0&&Te(t,e,0,n)&&(h=!0),f>1&&Te(t,e,1,r)&&(h=!0),f>2&&Te(t,e,2,o)&&(h=!0),f>3&&Te(t,e,3,i)&&(h=!0),f>4&&Te(t,e,4,s)&&(h=!0),f>5&&Te(t,e,5,a)&&(h=!0),f>6&&Te(t,e,6,u)&&(h=!0),f>7&&Te(t,e,7,c)&&(h=!0),f>8&&Te(t,e,8,l)&&(h=!0),f>9&&Te(t,e,9,p)&&(h=!0),h}function Ee(t,e,n){for(var r=!1,o=0;o0?o[n-1]:null,r)}function Me(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];r.viewContainerParent=void 0,Ue(n,e);var o=Xt(r);if(o&&o!==t){var i=o.template._projectedViews;Ue(i,i.indexOf(r))}return ea.dirtyParentQueries(r),Fe(r),r}function Ve(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];return Ue(r,e),null==n&&(n=r.length),Le(r,n,o),ea.dirtyParentQueries(o),Fe(o),De(t,n>0?r[n-1]:null,o),o}function De(t,e,n){var r=e?ee(e,e.def.lastRenderRootNode):t.renderElement;le(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Fe(t){le(t,3,null,null,void 0)}function Le(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ue(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function He(t,e,n,r,o,i){return new fa(t,e,n,r,o,i)}function qe(t){return t.viewDefFactory}function Be(t,e,n){return new da(t,e,n)}function ze(t){return new ya(t)}function Ge(t,e){return new va(t,e)}function We(t,e){return new ma(t,e)}function Ke(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Nt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return It(t,n.index).renderText;if(10120&n.flags)return Mt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ze(t){return new ba(t.renderer)}function Qe(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:void 0,securityContext:void 0,suffix:void 0}}var f=[];if(s)for(var h in s)f.push({type:1,propName:h,target:null,eventName:s[h]});return t|=8192,$e(t,e,n,r,r,o,a,f)}function Je(t,e,n){return t|=8,$e(t,null,0,e,e,n)}function Ye(t,e,n,r,o){return $e(t,e,0,n,r,o)}function $e(t,e,n,r,o,i,s,a){var u=se(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var f=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:zt(e)}});return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:void 0,childCount:n,bindings:s,bindingFlags:ve(s),outputs:a,element:void 0,provider:{token:r,tokenKey:zt(r),value:o,deps:f},text:void 0,query:void 0,ngContent:void 0}}function Xe(t,e){return 2048&e.flags?Ea:sn(t,e)}function tn(t,e){for(var n=t;n.parent&&!re(n);)n=n.parent;return an(n.parent,te(n),!0,e.provider.value,e.provider.deps)}function en(t,e){var n=(16384&e.flags)>0,r=an(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o0&&Zt(t,e,0,n)&&(y=!0,f=pn(t,h,e,0,n,f)),v>1&&Zt(t,e,1,r)&&(y=!0,f=pn(t,h,e,1,r,f)),v>2&&Zt(t,e,2,o)&&(y=!0,f=pn(t,h,e,2,o,f)),v>3&&Zt(t,e,3,i)&&(y=!0,f=pn(t,h,e,3,i,f)),v>4&&Zt(t,e,4,s)&&(y=!0,f=pn(t,h,e,4,s,f)),v>5&&Zt(t,e,5,a)&&(y=!0,f=pn(t,h,e,5,a,f)),v>6&&Zt(t,e,6,u)&&(y=!0,f=pn(t,h,e,6,u,f)),v>7&&Zt(t,e,7,c)&&(y=!0,f=pn(t,h,e,7,c,f)),v>8&&Zt(t,e,8,l)&&(y=!0,f=pn(t,h,e,8,l,f)),v>9&&Zt(t,e,9,p)&&(y=!0,f=pn(t,h,e,9,p,f)),f&&d.ngOnChanges(f),1&t.state&&32768&e.flags&&d.ngOnInit(),131072&e.flags&&d.ngDoCheck(),y}function on(t,e,n){for(var r,o=Mt(t,e.index),i=o.instance,s=!1,a=0;a0,o=e.provider;switch(100673535&e.flags){case 256:n=an(t,e.parent,r,o.value,o.deps);break;case 512:n=un(t,e.parent,r,o.value,o.deps);break;case 1024:n=cn(t,e.parent,r,o.deps[0]);break;case 128:n=o.value}return n}function an(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(cn(t,e,n,o[0]));break;case 2:i=new r(cn(t,e,n,o[0]),cn(t,e,n,o[1]));break;case 3:i=new r(cn(t,e,n,o[0]),cn(t,e,n,o[1]),cn(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;u0&&Qt(t,e,0,n)&&(h=!0),d>1&&Qt(t,e,1,r)&&(h=!0),d>2&&Qt(t,e,2,o)&&(h=!0),d>3&&Qt(t,e,3,i)&&(h=!0),d>4&&Qt(t,e,4,s)&&(h=!0),d>5&&Qt(t,e,5,a)&&(h=!0),d>6&&Qt(t,e,6,u)&&(h=!0),d>7&&Qt(t,e,7,c)&&(h=!0),d>8&&Qt(t,e,8,l)&&(h=!0),d>9&&Qt(t,e,9,p)&&(h=!0),h){var y=Vt(t,e.index),v=void 0;switch(100673535&e.flags){case 16:v=new Array(f.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=p);break;case 32:v={},d>0&&(v[f[0].name]=n),d>1&&(v[f[1].name]=r),d>2&&(v[f[2].name]=o),d>3&&(v[f[3].name]=i),d>4&&(v[f[4].name]=s),d>5&&(v[f[5].name]=a),d>6&&(v[f[6].name]=u),d>7&&(v[f[7].name]=c),d>8&&(v[f[8].name]=l),d>9&&(v[f[9].name]=p);break;case 64:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,s);break;case 6:v=m.transform(r,o,i,s,a);break;case 7:v=m.transform(r,o,i,s,a,u);break;case 8:v=m.transform(r,o,i,s,a,u,c);break;case 9:v=m.transform(r,o,i,s,a,u,c,l);break;case 10:v=m.transform(r,o,i,s,a,u,c,l,p)}}y.value=v}return h}function wn(t,e,n){for(var r=e.bindings,o=!1,i=0;i0&&Qt(t,e,0,n)&&(f=!0),d>1&&Qt(t,e,1,r)&&(f=!0),d>2&&Qt(t,e,2,o)&&(f=!0),d>3&&Qt(t,e,3,i)&&(f=!0),d>4&&Qt(t,e,4,s)&&(f=!0),d>5&&Qt(t,e,5,a)&&(f=!0),d>6&&Qt(t,e,6,u)&&(f=!0),d>7&&Qt(t,e,7,c)&&(f=!0),d>8&&Qt(t,e,8,l)&&(f=!0),d>9&&Qt(t,e,9,p)&&(f=!0),f){var y=e.text.prefix;d>0&&(y+=kn(n,h[0])),d>1&&(y+=kn(r,h[1])),d>2&&(y+=kn(o,h[2])),d>3&&(y+=kn(i,h[3])),d>4&&(y+=kn(s,h[4])),d>5&&(y+=kn(a,h[5])),d>6&&(y+=kn(u,h[6])),d>7&&(y+=kn(c,h[7])),d>8&&(y+=kn(l,h[8])),d>9&&(y+=kn(p,h[9]));var v=It(t,e.index).renderText;t.renderer.setValue(v,y)}return f}function Rn(t,e,n){for(var r=e.bindings,o=!1,i=0;ic.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var y=e[h];y.index=h,y.parent=c,y.bindingIndex=o,y.outputIndex=i;var v=void 0;if(v=c&&1&c.flags&&!c.element.name?c.renderParent:c,y.renderParent=v,y.element){var m=y.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(Nn(c,y,e.length),s|=y.flags,u|=y.matchedQueryIds,y.element&&y.element.template&&(u|=y.element.template.nodeMatchedQueries),c?(c.childFlags|=y.flags,c.directChildFlags|=y.flags,c.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(c.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,o+=y.bindings.length,i+=y.outputs.length,!v&&3&y.flags&&(f=y),10112&y.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var b=0!=(4096&y.flags),g=0!=(16384&y.flags);!b||g?c.element.publicProviders[y.provider.tokenKey]=y:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[y.provider.tokenKey]=y),g&&(c.element.componentProvider=y)}y.childCount&&(c=y)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var _=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:void 0,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||na,updateRenderer:r||na,handleEvent:_||na,bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Nn(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&8388608&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){if(0==(1&(t?t.flags:null)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0==(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:n-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Mn(t,e,n){var r=Dn(t.root,t.renderer,t,e,e.element.template);return Fn(r,t.component,n),Ln(r),r}function Vn(t,e,n){var r=Dn(t,t.renderer,null,null,e);return Fn(r,n,n),Ln(r),r}function Dn(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):void 0;return{def:o,parent:n,viewContainerParent:void 0,parentNodeDef:r,context:void 0,component:void 0,nodes:i,state:3,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s}}function Fn(t,e,n){t.component=e,t.context=n}function Ln(t){var e;if(re(t)){var n=t.parentNodeDef;e=Nt(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i0&&Jt(t,e,0,n),f>1&&Jt(t,e,1,r),f>2&&Jt(t,e,2,o),f>3&&Jt(t,e,3,i),f>4&&Jt(t,e,4,s),f>5&&Jt(t,e,5,a),f>6&&Jt(t,e,6,u),f>7&&Jt(t,e,7,c),f>8&&Jt(t,e,8,l),f>9&&Jt(t,e,9,p)}function Kn(t,e,n){for(var r=0;r=this._providers.length)throw R(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw T(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+s(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Xi);ts.decorators=[{type:Mo}],ts.ctorParameters=function(){return[{type:qo}]};var es=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ns=function(t){function e(e,r,i,s,a,u){var c=t.call(this)||this;c._zone=e,c._console=r,c._injector=i,c._exceptionHandler=s,c._componentFactoryResolver=a,c._initStatus=u,c._bootstrapListeners=[],c._rootComponents=[],c._rootComponentTypes=[],c._views=[],c._runningTick=!1,c._enforceNoNewChanges=!1,c._stable=!0,c._enforceNoNewChanges=at(),c._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new Qr.Observable(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),p=new Qr.Observable(function(t){var e=c._zone.onStable.subscribe(function(){Bi.assertNotInAngularZone(),o(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})}),n=c._zone.onUnstable.subscribe(function(){Bi.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return c._isStable=n.i(Jr.merge)(l,Yr.share.call(p)),c}return Xr(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;dt(this._views,e),e.detachFromAppRef()},e.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof xi?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof ki?null:this._injector.get(Ii),o=n.create(qo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(zi,null);return i&&o.injector.get(Gi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),at()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(mi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),dt(this._rootComponents,t)},e.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,Li(t)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(es);ns._tickScope=Fi("ApplicationRef#tick()"),ns.decorators=[{type:Mo}],ns.ctorParameters=function(){return[{type:Bi},{type:gi},{type:qo},{type:Ko},{type:Pi},{type:fi}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var rs=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),os=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),is=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,s){},t}(),ss=(new eo("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),as=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),us={};us.Important=1,us.DashCase=2,us[us.Important]="Important",us[us.DashCase]="DashCase";var cs=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),ls=function(){function t(t){this.nativeElement=t}return t}(),ps=function(){function t(){}return t.prototype.load=function(t){},t}(),fs=new Map,hs=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new qi}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[r()]=function(){return this._results[r()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=mt(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),ds="#",ys="NgFactory",vs=function(){function t(){}return t}(),ms={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},bs=function(){function t(t,e){this._compiler=t,this._config=e||ms}return t.prototype.load=function(t){return this._compiler instanceof wi?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split(ds),o=r[0],i=r[1];return void 0===i&&(i="default"),n("/fcW")(o).then(function(t){return t[i]}).then(function(t){return bt(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(ds),r=e[0],o=e[1],i=ys;return void 0===o&&(o="default",i=""),n("/fcW")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return bt(t,r,o)})},t}();bs.decorators=[{type:Mo}],bs.ctorParameters=function(){return[{type:wi},{type:vs,decorators:[{type:No}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var gs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),_s=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),ws=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),Cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(ws),Ss=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(Cs),Os=function(){function t(t,e){this.name=t,this.callback=e}return t}(),xs=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Es?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext?this._debugContext.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext?this._debugContext.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext?this._debugContext.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext?this._debugContext.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext?this._debugContext.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Es=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Xr(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);e!==-1&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);r!==-1&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);n===-1?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return _t(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return wt(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(xs),Ts=new Map,Ps=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),As=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ps?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),js=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Rs=function(){function t(){}return t.prototype.supports=function(t){return Et(t)},t.prototype.create=function(t,e){return new Is(e||t)},t}(),ks=function(t,e){return e},Is=function(){function t(t){this._trackByFn=t,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=this._trackByFn||ks}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex"+s(this.currentIndex)+"]"},t}(),Ms=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e"+s(this.currentValue)+"]"},t}(),Us=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Do,new No]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Rt(t)+"'")},t}(),Hs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Do,new No]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),qs=[new Ds],Bs=[new Rs],zs=new Us(Bs),Gs=new Hs(qs),Ws=[{provide:vi,useValue:"unknown"},ts,{provide:Xi,useExisting:ts},{provide:ei,useFactory:kt,deps:[]},{provide:ti,useExisting:ei},Gi,gi],Ks=ct(null,"core",Ws),Zs=new eo("LocaleId"),Qs=new eo("Translations"),Js=new eo("TranslationsFormat"),Ys={};Ys.Error=0,Ys.Warning=1,Ys.Ignore=2,Ys[Ys.Error]="Error",Ys[Ys.Warning]="Warning",Ys[Ys.Ignore]="Ignore";var $s={};$s.NONE=0,$s.HTML=1,$s.STYLE=2,$s.SCRIPT=3,$s.URL=4,$s.RESOURCE_URL=5,$s[$s.NONE]="NONE",$s[$s.HTML]="HTML",$s[$s.STYLE]="STYLE",$s[$s.SCRIPT]="SCRIPT",$s[$s.URL]="URL",$s[$s.RESOURCE_URL]="RESOURCE_URL";var Xs=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),ta=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n=0;e--){var n=Me(this._data,e);ea.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ya(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof ki||(o=i.get(Ii));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Ne(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return Ve(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Me(this._data,t);e&&ea.destroyView(e)},t.prototype.detach=function(t){var e=Me(this._data,t);return e?new ya(e):null},t}(),ya=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ce(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Yt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){ea.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){ea.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ea.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Fe(this._view),ea.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),va=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Xr(e,t),e.prototype.createEmbeddedView=function(t){return new ya(ea.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ls(Nt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(gs),ma=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=qo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(16777216&this.elDef.flags);return ea.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:zt(t)},e)},t}(),ba=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=ye(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n=t.length)return null;var c=t[a],l=o[u],p=l.startsWith(":");if(!p&&l!==c.path)return null;p&&(i[l.substring(1)]=c),s.push(c),a++}return"full"===n.pathMatch&&(e.hasChildren()||a0?t[t.length-1]:null}function p(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function f(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function h(t,e){var r=[],o={};if(f(t,function(t,n){n===Ue&&r.push(_e.map.call(e(n,t),function(t){return o[n]=t,t}))}),f(t,function(t,n){n!==Ue&&r.push(_e.map.call(e(n,t),function(t){return o[n]=t,t}))}),r.length>0){var i=xe.concatAll.call(ve.of.apply(void 0,r)),s=Pe.last.call(i);return _e.map.call(s,function(){return o})}return n.i(ve.of)(o)}function d(t){var e=Ae.mergeAll.call(t);return be.every.call(e,function(t){return t===!0})}function y(t){return n.i(fe["ɵisObservable"])(t)?t:n.i(fe["ɵisPromise"])(t)?n.i(Te.fromPromise)(t):n.i(ve.of)(t)}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function v(){return new We(new Ke([],{}),{},null)}function m(t,e,n){return n?b(t.queryParams,e.queryParams)&&g(t.root,e.root):_(t.queryParams,e.queryParams)&&w(t.root,e.root)}function b(t,e){return u(t,e)}function g(t,e){if(!O(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!g(t.children[n],e.children[n]))return!1}return!0}function _(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function w(t,e){return C(t,e,e.segments)}function C(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!O(r,n)&&!e.hasChildren()}if(t.segments.length===n.length){if(!O(t.segments,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!w(t.children[o],e.children[o]))return!1}return!0}var r=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!O(t.segments,r)&&(!!t.children[Ue]&&C(t.children[Ue],e,i))}function S(t,e){if(t.length!==e.length)return!1;for(var n=0;n0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var o=x(t,function(e,n){return n===Ue?[T(t.children[Ue],!1)]:[n+":"+T(e,!1)]});return E(t)+"/("+o.join("//")+")"}return E(t)}function P(t){return encodeURIComponent(t)}function A(t){return decodeURIComponent(t)}function j(t){return""+P(t.path)+R(t.parameters)}function R(t){return I(t).map(function(t){return";"+P(t.first)+"="+P(t.second)}).join("")}function k(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return P(e)+"="+P(t)}).join("&"):P(e)+"="+P(n)});return e.length?"?"+e.join("&"):""}function I(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(new Ye(n,t[n]));return e}function N(t){$e.lastIndex=0;var e=t.match($e);return e?e[0]:""}function M(t){Xe.lastIndex=0;var e=t.match($e);return e?e[0]:""}function V(t){tn.lastIndex=0;var e=t.match(tn);return e?e[0]:""}function D(t){return new Se.Observable(function(e){return e.error(new nn(t))})}function F(t){return new Se.Observable(function(e){return e.error(new rn(t))})}function L(t){return new Se.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function U(t){return new Se.Observable(function(e){return e.error(o("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function H(t,e,n,r,o){return new on(t,e,n,r,o).apply()}function q(t,e){var r=e.canLoad;return r&&0!==r.length?d(_e.map.call(n.i(ye.from)(r),function(n){var r=t.get(n);return y(r.canLoad?r.canLoad(e):r(e))})):n.i(ve.of)(!0)}function B(t,e,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=e.matcher||s,i=o(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:r}function z(t,e,n,r){if(n.length>0&&Z(t,n,r)){var o=new Ke(e,K(r,new Ke(n,t.children)));return{segmentGroup:G(o),slicedSegments:[]}}if(0===n.length&&Q(t,n,r)){var o=new Ke(t.segments,W(t,n,r,t.children));return{segmentGroup:G(o),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function G(t){if(1===t.numberOfChildren&&t.children[Ue]){var e=t.children[Ue];return new Ke(t.segments.concat(e.segments),e.children)}return t}function W(t,e,n,r){for(var o={},i=0,s=n;i0}function Q(t,e,n){return n.filter(function(n){return J(t,e,n)}).length>0}function J(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Y(t){return t.outlet?t.outlet:Ue}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function $(t,e){void 0===e&&(e="");for(var n=0;n0)return a}return[]}function rt(t,e){var n=ot(t,e),r=new he.BehaviorSubject([new Ze("",{})]),o=new he.BehaviorSubject({}),i=new he.BehaviorSubject({}),s=new he.BehaviorSubject({}),a=new he.BehaviorSubject(""),u=new cn(r,o,s,a,i,Ue,e,n.root);return u.snapshot=n.root,new un(new an(u,[]),n)}function ot(t,e){var n={},r={},o={},i="",s=new ln([],n,o,i,r,Ue,e,null,t.root,-1,{});return new pn("",new an(s,[]))}function it(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:p(t.params,e.params),data:p(t.data,e.data),resolve:p(t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function st(t,e){e.value._routerState=t,e.children.forEach(function(e){return st(t,e)})}function at(t){var e=t.children.length>0?" { "+t.children.map(at).join(", ")+" } ":"";return""+t.value+e}function ut(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,u(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),u(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),a(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),u(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ct(t,e){var n=u(t.params,e.params)&&S(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||ct(t.parent,e.parent))}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function lt(t,e,n){var r=pt(t,e._root,n?n._root:void 0);return new un(r,e)}function pt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var o=ht(t,e,n);return new an(r,o)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return ft(e,i),i}var r=dt(e.value),o=e.children.map(function(e){return pt(t,e)});return new an(r,o)}function ft(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;no;){if(i-=o,!(r=r.parent))throw new Error("Invalid number of '../'");o=r.segments.length}return new hn(r,!1,o-i)}function Ct(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Ue]:""+t}function St(t){return"object"!=typeof t[0]?(e={},e[Ue]=t,e):void 0===t[0].outlets?(n={},n[Ue]=t,n):t[0].outlets;var e,n}function Ot(t,e,n){if(t||(t=new Ke([],{})),0===t.segments.length&&t.hasChildren())return xt(t,e,n);var r=Et(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=n.length)return i;var s=t.segments[o],a=Ct(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!jt(a,u,s))return i;r+=2}else{if(!jt(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Tt(t,e,n){for(var r=t.segments.slice(0,e),o=0;o0))throw new dn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||s,o=r(n,t,e);if(!o)throw new dn;var i={};f(o.posParams,function(t,e){i[e]=t.path});var a=p(i,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a}}function Mt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function Vt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Dt(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ft(t,e,n,r){if(n.length>0&&Ht(t,n,r)){var o=new Ke(e,Ut(t,e,r,new Ke(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&qt(t,n,r)){var o=new Ke(t.segments,Lt(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var o=new Ke(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Lt(t,e,n,r){for(var o={},i=0,s=n;i0}function qt(t,e,n){return n.filter(function(n){return Bt(t,e,n)}).length>0}function Bt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function zt(t){return t.outlet?t.outlet:Ue}function Gt(t){return t.data?t.data:{}}function Wt(t){return t.resolve?t.resolve:{}}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function Kt(t){throw t}function Zt(t){return n.i(ve.of)(null)}function Qt(t){ut(t.value),t.children.forEach(Qt)}function Jt(t){for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null;e=e.parent}return null}function Yt(t){if(!t)return null;for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;e=e.parent}return null}function $t(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function Xt(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw e.outlet===Ue?new Error("Cannot find primary outlet to load '"+r+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function te(t){for(var e=0;e0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return E(this)},t}(),Ze=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=r(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return j(this)},t}(),Qe=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),Je=function(){function t(){}return t.prototype.parse=function(t){var e=new en(t);return new We(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+T(t.root,!0)+k(t.queryParams)+(null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ye=function(){function t(t,e){this.first=t,this.second=e}return t}(),$e=/^[^\/()?;=&#]+/,Xe=/^[^=?&#]+/,tn=/^[^?&#]+/,en=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Ke([],{}):new Ke([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Ue]=new Ke(t,e)),n},t.prototype.parseSegments=function(){var t=N(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new Ze(A(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=N(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=N(this.remaining);r&&(n=r,this.capture(n))}t[A(e)]=A(n)}},t.prototype.parseQueryParam=function(t){var e=M(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=V(this.remaining);r&&(n=r,this.capture(n))}var o=A(e),i=A(n);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=N(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ue);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Ue]:new Ke([],i),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),nn=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),rn=function(){function t(t){this.urlTree=t}return t}(),on=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(fe.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ue),n=_e.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return Oe._catch.call(n,function(e){if(e instanceof rn)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof nn)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Ue),r=_e.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return Oe._catch.call(r,function(t){if(t instanceof nn)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ke([],(o={},o[Ue]=t,o)):t;return new We(r,e,n);var o},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?_e.map.call(this.expandChildren(t,e,n),function(t){return new Ke([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return h(n.children,function(n,o){return r.expandSegmentGroup(t,e,o,n)})},t.prototype.expandSegment=function(t,e,r,o,i,s){var a=this,u=ve.of.apply(void 0,r),c=_e.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,r,u,o,i,s);return Oe._catch.call(c,function(t){if(t instanceof nn)return n.i(ve.of)(null);throw t})}),l=xe.concatAll.call(c),p=ge.first.call(l,function(t){return!!t});return Oe._catch.call(p,function(t,r){if(t instanceof Ee.EmptyError){if(a.noLeftoversInUrl(e,o,i))return n.i(ve.of)(new Ke([],{}));throw new nn(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,s){return Y(r)!==i?D(e):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):D(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?F(i):we.mergeMap.call(this.lineralizeSegments(n,i),function(n){var i=new Ke(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=B(e,r,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,p=a.positionalParamSegments;if(!u)return D(e);var f=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?F(f):we.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,r,o){var i=this;if("**"===r.path)return r.loadChildren?_e.map.call(this.configLoader.load(t.injector,r),function(t){return r._loadedConfig=t,new Ke(o,{})}):n.i(ve.of)(new Ke(o,{}));var s=B(e,r,o),a=s.matched,u=s.consumedSegments,c=s.lastChild;if(!a)return D(e);var l=o.slice(c),p=this.getChildConfig(t,r);return we.mergeMap.call(p,function(t){var r=t.module,o=t.routes,s=z(e,u,l,o),a=s.segmentGroup,c=s.slicedSegments;if(0===c.length&&a.hasChildren()){var p=i.expandChildren(r,o,a);return _e.map.call(p,function(t){return new Ke(u,t)})}if(0===o.length&&0===c.length)return n.i(ve.of)(new Ke(u,{}));var f=i.expandSegment(r,a,o,c,Ue,!0);return _e.map.call(f,function(t){return new Ke(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var r=this;return e.children?n.i(ve.of)(new ze(e.children,t)):e.loadChildren?we.mergeMap.call(q(t.injector,e),function(o){return o?e._loadedConfig?n.i(ve.of)(e._loadedConfig):_e.map.call(r.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):U(e)}):n.i(ve.of)(new ze([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],o=e.root;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return n.i(ve.of)(r);if(o.numberOfChildren>1||!o.children[Ue])return L(t.redirectTo);o=o.children[Ue]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new We(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return f(t,function(t,r){n[r]=t.startsWith(":")?e[t.substring(1)]:t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),s={};return f(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new Ke(i,s)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,o=e;r1?e[e.length-2]:null},t.prototype.children=function(t){var e=et(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=et(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=nt(t,this._root,[]);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return nt(t,this._root,[]).map(function(t){return t.value})},t}(),an=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),un=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,st(r,e),r}return ke(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(sn),cn=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=_e.map.call(this.params,function(t){return r(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=_e.map.call(this.queryParams,function(t){return r(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),ln=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=r(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=r(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},t}(),pn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,st(r,n),r}return ke(e,t),e.prototype.toString=function(){return at(this._root)},e}(sn),fn=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&vt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==l(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),hn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),dn=function(){function t(){}return t}(),yn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=Ft(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Ue),r=new ln([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ue,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new an(r,e),i=new pn(this.url,o);return this.inheriteParamsAndData(i._root),n.i(ve.of)(i)}catch(t){return new Se.Observable(function(e){return e.error(t)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=it(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=x(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Mt(r),kt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var o=0,i=t;o0?l(n).parameters:{},i=new ln(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Gt(t),r,t.component,t,Vt(e),Dt(e)+n.length,Wt(t));return[new an(i,[])]}var s=Nt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,p=n.slice(c),f=It(t),h=Ft(e,a,p,f),d=h.segmentGroup,y=h.slicedSegments,v=new ln(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Gt(t),r,t.component,t,Vt(e),Dt(e)+a.length,Wt(t));if(0===y.length&&d.hasChildren()){var m=this.processChildren(f,d);return[new an(v,m)]}if(0===f.length&&0===y.length)return[new an(v,[])];var m=this.processSegment(f,d,y,Ue);return[new an(v,m)]},t}(),vn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),bn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),gn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),_n=function(){function t(t,e,n,r,o,i,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=n,this.location=r,this.config=a,this.navigations=new he.BehaviorSubject(null),this.routerEvents=new de.Subject,this.navigationId=0,this.errorHandler=Kt,this.navigated=!1,this.hooks={beforePreactivation:Zt,afterPreactivation:Zt},this.urlHandlingStrategy=new bn,this.routeReuseStrategy=new gn;var c=function(t){return u.triggerEvent(new Fe(t))},l=function(t){return u.triggerEvent(new Le(t))};this.ngModule=o.get(fe.NgModuleRef),this.resetConfig(a),this.currentUrlTree=v(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Ge(i,s,c,l),this.currentRouterState=rt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){$(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,o=r.relativeTo,i=r.queryParams,s=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;n.i(fe.isDevMode)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,f=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=p(this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i}else h=a?this.currentUrlTree.queryParams:i;return yt(l,this.currentUrlTree,t,h,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof We?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),te(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof We)return m(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return m(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;me.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):n.i(ve.of)(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return null;if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return null;var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:o,reject:i,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Ie(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,o.skipLocationChange,o.replaceUrl,n,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Ie(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,rt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=r,i(null))},t.prototype.runNavigate=function(t,e,r,o,s,a){var u=this;return s!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Me(s,this.serializeUrl(t),"Navigation ID "+s+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(c,l){var p;if(a)p=n.i(ve.of)({appliedUrl:t,snapshot:a});else{var f=u.ngModule.injector,h=H(f,u.configLoader,u.urlSerializer,t,u.config);p=we.mergeMap.call(h,function(e){return _e.map.call(Rt(u.rootComponentType,u.config,e,u.serializeUrl(e)),function(n){return u.routerEvents.next(new De(s,u.serializeUrl(t),u.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var d,y,v=we.mergeMap.call(p,function(t){return _e.map.call(u.hooks.beforePreactivation(t.snapshot),function(){return t})}),m=_e.map.call(v,function(t){var e=t.appliedUrl,n=t.snapshot,r=u.ngModule.injector;return d=new Sn(n,u.currentRouterState.snapshot,r),d.traverse(u.outletMap),{appliedUrl:e,snapshot:n}}),b=we.mergeMap.call(m,function(t){var e=t.appliedUrl,r=t.snapshot;return u.navigationId!==s?n.i(ve.of)(!1):_e.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:r,shouldActivate:t}})}),g=we.mergeMap.call(b,function(t){return u.navigationId!==s?n.i(ve.of)(!1):t.shouldActivate?_e.map.call(d.resolveData(),function(){return t}):n.i(ve.of)(t)}),_=we.mergeMap.call(g,function(t){return _e.map.call(u.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=_e.map.call(_,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){return{appliedUrl:e,state:lt(u.routeReuseStrategy,n,u.currentRouterState),shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),C=u.currentRouterState,S=u.currentUrlTree;w.forEach(function(t){var n=t.appliedUrl,i=t.state;if(!t.shouldActivate||s!==u.navigationId)return void(y=!1);if(u.currentUrlTree=n,u.rawUrlTree=u.urlHandlingStrategy.merge(u.currentUrlTree,e),u.currentRouterState=i,!r){var a=u.urlSerializer.serialize(u.rawUrlTree);u.location.isCurrentPathEqualTo(a)||o?u.location.replaceState(a):u.location.go(a)}new On(u.routeReuseStrategy,i,C).activate(u.outletMap),y=!0}).then(function(){y?(u.navigated=!0,u.routerEvents.next(new Ne(s,u.serializeUrl(t),u.serializeUrl(u.currentUrlTree))),c(!0)):(u.resetUrlToCurrentUrlTree(),u.routerEvents.next(new Me(s,u.serializeUrl(t),"")),c(!1))},function(n){if(i(n))u.resetUrlToCurrentUrlTree(),u.navigated=!0,u.routerEvents.next(new Me(s,u.serializeUrl(t),n.message)),c(!1);else{u.routerEvents.next(new Ve(s,u.serializeUrl(t),n));try{c(u.errorHandler(n))}catch(t){l(t)}}u.currentRouterState=C,u.currentUrlTree=S,u.rawUrlTree=u.urlHandlingStrategy.merge(u.currentUrlTree,e),u.location.replaceState(u.serializeUrl(u.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),Cn=function(){function t(t,e){this.component=t,this.route=e}return t}(),Sn=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.checks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.checks.length)return n.i(ve.of)(!0);var e=n.i(ye.from)(this.checks),r=we.mergeMap.call(e,function(e){if(e instanceof wn)return d(n.i(ye.from)([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]));if(e instanceof Cn){var r=e;return t.runCanDeactivate(r.component,r.route)}throw new Error("Cannot be reached")});return be.every.call(r,function(t){return t===!0})},t.prototype.resolveData=function(){var t=this;if(0===this.checks.length)return n.i(ve.of)(null);var e=n.i(ye.from)(this.checks),r=me.concatMap.call(e,function(e){return e instanceof wn?t.runResolve(e.route):n.i(ve.of)(null)});return Ce.reduce.call(r,function(t,e){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var o=this,i=$t(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),f(i,function(t,e){return o.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?this.checks.push(new Cn(s.component,i),new wn(r)):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(i&&this.deactiveRouteAndItsChildren(e,s),this.checks.push(new wn(r)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!ct(t,e)||!u(t.queryParams,e.queryParams);case"paramsChange":default:return!ct(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=$t(t),o=t.value;f(r,function(t,r){o.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),o.component&&e&&e.isActivated?this.checks.push(new Cn(e.component,o)):this.checks.push(new Cn(null,o))},t.prototype.runCanActivate=function(t){var e=this,r=t._routeConfig?t._routeConfig.canActivate:null;return r&&0!==r.length?d(_e.map.call(n.i(ye.from)(r),function(n){var r,o=e.getToken(n,t);return r=y(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),ge.first.call(r)})):n.i(ve.of)(!0)},t.prototype.runCanActivateChild=function(t){var e=this,r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return d(_e.map.call(n.i(ye.from)(o),function(t){return d(_e.map.call(n.i(ye.from)(t.guards),function(n){var o,i=e.getToken(n,t.node);return o=y(i.canActivateChild?i.canActivateChild(r,e.future):i(r,e.future)),ge.first.call(o)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var r=this,o=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!o||0===o.length)return n.i(ve.of)(!0);var i=we.mergeMap.call(n.i(ye.from)(o),function(n){var o,i=r.getToken(n,e);return o=y(i.canDeactivate?i.canDeactivate(t,e,r.curr,r.future):i(t,e,r.curr,r.future)),ge.first.call(o)});return be.every.call(i,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return _e.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=p(t.data,it(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return h(t,function(t,r){var o=n.getToken(r,e);return y(o.resolve?o.resolve(e,n.future):o(e,n.future))})},t.prototype.getToken=function(t,e){var n=Yt(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),On=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ut(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=$t(e);t.children.forEach(function(t){r.deactivateRoutes(t,o[t.value.outlet],n),delete o[t.value.outlet]}),f(o,function(t,e){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=$t(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=Xt(n,r);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value;if(r===(e?e.value:null))if(ut(r),r.component){var o=Xt(n,r);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){ut(r);var o=Xt(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var i=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.attach(i.componentRef,i.route.value),Qt(i.route)}else{var s=new vn;this.placeComponentIntoOutlet(s,r,o),this.activateChildRoutes(t,null,s)}}else ut(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var r=Jt(e.snapshot),o=r?r.module.componentFactoryResolver:null;n.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=Xt(e,t.value),r=n.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=$t(t),o=null;try{o=Xt(e,t.value)}catch(t){return}var i=o.outletMap;f(r,function(r,o){t.value.component?n.deactiveRouteAndItsChildren(r,i):n.deactiveRouteAndItsChildren(r,e)}),o&&o.isActivated&&o.deactivate()},t}(),xn=function(){function t(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.i(fe.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ee(this.skipLocationChange),replaceUrl:ee(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ee(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ee(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xn.decorators=[{type:fe.Directive,args:[{selector:":not(a)[routerLink]"}]}],xn.ctorParameters=function(){return[{type:_n},{type:cn},{type:void 0,decorators:[{type:fe.Attribute,args:["tabindex"]}]},{type:fe.Renderer},{type:fe.ElementRef}]},xn.propDecorators={queryParams:[{type:fe.Input}],fragment:[{type:fe.Input}],queryParamsHandling:[{type:fe.Input}],preserveFragment:[{type:fe.Input}],skipLocationChange:[{type:fe.Input}],replaceUrl:[{type:fe.Input}],routerLink:[{type:fe.Input}],preserveQueryParams:[{type:fe.Input}],onClick:[{type:fe.HostListener,args:["click"]}]};var En=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Ne&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.i(fe.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:ee(this.skipLocationChange),replaceUrl:ee(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ee(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ee(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();En.decorators=[{type:fe.Directive,args:[{selector:"a[routerLink]"}]}],En.ctorParameters=function(){return[{type:_n},{type:cn},{type:pe.LocationStrategy}]},En.propDecorators={target:[{type:fe.HostBinding,args:["attr.target"]},{type:fe.Input}],queryParams:[{type:fe.Input}],fragment:[{type:fe.Input}],queryParamsHandling:[{type:fe.Input}],preserveFragment:[{type:fe.Input}],skipLocationChange:[{type:fe.Input}],replaceUrl:[{type:fe.Input}],href:[{type:fe.HostBinding}],routerLink:[{type:fe.Input}],preserveQueryParams:[{type:fe.Input}],onClick:[{type:fe.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Tn=function(){function t(t,e,n,r){var o=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Ne&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Tn.decorators=[{type:fe.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Tn.ctorParameters=function(){return[{type:_n},{type:fe.ElementRef},{type:fe.Renderer},{type:fe.ChangeDetectorRef}]},Tn.propDecorators={links:[{type:fe.ContentChildren,args:[xn,{descendants:!0}]}],linksWithHrefs:[{type:fe.ContentChildren,args:[En,{descendants:!0}]}],routerLinkActiveOptions:[{type:fe.Input}],routerLinkActive:[{type:fe.Input}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Pn=function(){function t(t,e,n,r){this.parentOutletMap=t,this.location=e,this.resolver=n,this.name=r,this.activateEvents=new fe.EventEmitter,this.deactivateEvents=new fe.EventEmitter,t.registerOutlet(r?r:Ue,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Ue)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,n,r,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=t;var i=t._futureSnapshot,s=i._routeConfig.component,a=e.resolveComponentFactory(s),u=fe.ReflectiveInjector.fromResolvedProviders(r,n);this.activated=this.location.createComponent(a,this.location.length,u,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=n,this._activatedRoute=t;var r=t._futureSnapshot,o=r._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(o),s=new An(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();Pn.decorators=[{type:fe.Directive,args:[{selector:"router-outlet"}]}],Pn.ctorParameters=function(){return[{type:vn},{type:fe.ViewContainerRef},{type:fe.ComponentFactoryResolver},{type:void 0,decorators:[{type:fe.Attribute,args:["name"]}]}]},Pn.propDecorators={activateEvents:[{type:fe.Output,args:["activate"]}],deactivateEvents:[{type:fe.Output,args:["deactivate"]}]};var An=function(){function t(t,e,n){this.route=t,this.map=e,this.parent=n}return t.prototype.get=function(t,e){return t===cn?this.route:t===vn?this.map:this.parent.get(t,e)},t}(),jn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return Oe._catch.call(e(),function(){return n.i(ve.of)(null)})},t}(),In=function(){function t(){}return t.prototype.preload=function(t,e){return n.i(ve.of)(null)},t}(),Nn=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Fe(e))},s=function(e){return t.triggerEvent(new Le(e))};this.loader=new Ge(e,n,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=Re.filter.call(this.router.events,function(t){return t instanceof Ne});this.subscription=me.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(fe.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var r=[],o=0,i=e;o=2&&(r=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),this.lift(new p(t,r,o,n))}function o(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function i(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,o=t.scheduler,i=r.openContext(),a=this;r.closed||(r.add(i.closeAction=o.schedule(s,n,{subscriber:r,context:i})),a.schedule(t,e))}function s(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("CGGv"),c=n("mmVS"),l=n("fWbP");e.bufferTime=r;var p=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),f=function(){function t(){this.buffer=[]}return t}(),h=function(t){function e(e,n,r,a,u){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=r,this.maxBufferSize=a,this.scheduler=u,this.contexts=[];var c=this.openContext();if(this.timespanOnly=null==r||r<0,this.timespanOnly){var l={subscriber:this,context:c,bufferTimeSpan:n};this.add(c.closeAction=u.schedule(o,n,l))}else{var p={subscriber:this,context:c},f={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:this,scheduler:u};this.add(c.closeAction=u.schedule(s,n,p)),this.add(u.schedule(i,r,f))}}return a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,o=0;o0;){var o=n.shift();r.next(o.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(o,n,r))}},e.prototype.openContext=function(){var t=new f;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(c.Subscriber)},Dc2k:function(t,e,n){"use strict";function r(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;if(f.root.XDomainRequest)return new f.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function o(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new f.root.ActiveXObject(t))break}catch(t){}return new f.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function i(t,e){return void 0===e&&(e=null),new b({method:"GET",url:t,headers:e})}function s(t,e,n){return new b({method:"POST",url:t,body:e,headers:n})}function a(t,e){return new b({method:"DELETE",url:t,headers:e})}function u(t,e,n){return new b({method:"PUT",url:t,body:e,headers:n})}function c(t,e,n){return new b({method:"PATCH",url:t,body:e,headers:n})}function l(t,e){return new b({method:"GET",url:t,responseType:"json",headers:e}).lift(new m.MapOperator(function(t,e){return t.response},null))}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=n("VOfZ"),h=n("+3eL"),d=n("WhVc"),y=n("rCTf"),v=n("mmVS"),m=n("xAJs");e.ajaxGet=i,e.ajaxPost=s,e.ajaxDelete=a,e.ajaxPut=u,e.ajaxPatch=c,e.ajaxGetJSON=l;var b=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?r.call(this):o()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);this.request=n}return p(e,t),e.prototype._subscribe=function(t){return new g(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=i,t.post=s,t.delete=a,t.put=u,t.patch=c,t.getJSON=l,t}(),e}(y.Observable);e.AjaxObservable=b;var g=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var r=n.headers=n.headers||{};n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in r||f.root.FormData&&n.body instanceof f.root.FormData||void 0===n.body||(r["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return p(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,r=e.request,o=e.destination,i=new _(t,n,r);o.next(i)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,r=n.user,o=n.method,i=n.url,s=n.async,a=n.password,u=n.headers,c=n.body,l=e.createXHR,p=h.tryCatch(l).call(e);if(p===d.errorObject)this.error(d.errorObject.e);else{this.xhr=p,this.setupEvents(p,e);if((r?h.tryCatch(p.open).call(p,o,i,s,r,a):h.tryCatch(p.open).call(p,o,i,s))===d.errorObject)return this.error(d.errorObject.e),null;if(p.timeout=e.timeout,p.responseType=e.responseType,"withCredentials"in p&&(p.withCredentials=!!e.withCredentials),this.setHeaders(p,u),(c?h.tryCatch(p.send).call(p,c):h.tryCatch(p.send).call(p))===d.errorObject)return this.error(d.errorObject.e),null}return p},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(f.root.FormData&&t instanceof f.root.FormData)return t;if(e){var n=e.indexOf(";");n!==-1&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){function n(t){var e=n,r=e.subscriber,o=e.progressSubscriber,i=e.request;o&&o.error(t),r.error(new C(this,i))}function r(t){var e=r,n=e.subscriber,o=e.progressSubscriber,i=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(o&&o.complete(),n.next(t),n.complete()):(o&&o.error(t),n.error(new w("ajax error "+s,this,i)))}}var o=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=o,t.upload&&"withCredentials"in t){if(o){var i;i=function(t){i.progressSubscriber.next(t)},f.root.XDomainRequest?t.onprogress=i:t.upload.onprogress=i,i.progressSubscriber=o}var s;s=function(t){var e=s,n=e.progressSubscriber,r=e.subscriber,o=e.request;n&&n.error(t),r.error(new w("ajax error",this,o))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=o}t.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=o,r.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,r=e.xhr;!n&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(v.Subscriber);e.AjaxSubscriber=g;var _=function(){function t(t,e,n){switch(this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.responseType){case"json":this.response="response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");break;case"xml":this.response=e.responseXML;break;case"text":default:this.response="response"in e?e.response:e.responseText}}return t}();e.AjaxResponse=_;var w=function(t){function e(e,n,r){t.call(this,e),this.message=e,this.xhr=n,this.request=r,this.status=n.status}return p(e,t),e}(Error);e.AjaxError=w;var C=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return p(e,t),e}(w);e.AjaxTimeoutError=C},Di9Q:function(t,e,n){"use strict";var r=n("rCTf"),o=n("DB2G");r.Observable.prototype.bufferTime=o.bufferTime},Dkzu:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(o.Observable);e.ErrorObservable=i},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},DzMp:function(t,e,n){"use strict";var r=n("+EXD");e.defer=r.DeferObservable.create},"E/WS":function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=i.async);var n=s.isDate(t),r=n?+t-e.now():Math.abs(t);return this.lift(new c(r,n,e,new u.TimeoutError))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("CGGv"),s=n("fuZx"),a=n("mmVS"),u=n("cmqr");e.timeout=r;var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=n,this.errorInstance=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),l=function(t){function e(e,n,r,o,i){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.scheduler=o,this.errorInstance=i,this.index=0,this._previousIndex=0,this._hasCompleted=!1,this.scheduleTimeout()}return o(e,t),Object.defineProperty(e.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),e.dispatchTimeout=function(t){var e=t.subscriber,n=t.index;e.hasCompleted||e.previousIndex!==n||e.notifyTimeout()},e.prototype.scheduleTimeout=function(){var t=this.index;this.scheduler.schedule(e.dispatchTimeout,this.waitFor,{subscriber:this,index:t}),this.index++,this._previousIndex=t},e.prototype._next=function(t){this.destination.next(t),this.absoluteTimeout||this.scheduleTimeout()},e.prototype._error=function(t){this.destination.error(t),this._hasCompleted=!0},e.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},e.prototype.notifyTimeout=function(){this.error(this.errorInstance)},e}(a.Subscriber)},E7Yq:function(t,e,n){"use strict";var r=n("rCTf"),o=n("TIy+");r.Observable.fromEvent=o.fromEvent},EEr4:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("mmVS"),s=n("B00U"),a=n("IZVw"),u=n("ZJf8"),c=n("r8ZY"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,o=n.scheduler,i=r.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:t});for(var s=0;s0){t.split("&").forEach(function(t){var n=t.indexOf("="),r=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function a(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function u(){var t="object"==typeof window?window:{};return null===V&&(V=t[M]={}),V}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function c(t,e){return t.createConnection(e).response}function l(t,e,n,r){var o=t;return e?o.merge(new Z({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new Z({method:n,url:r}))}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function p(){return new W}function f(t,e){return new nt(t,e)}function h(t,e){return new rt(t,e)}var d=n("3j3K"),y=n("rCTf"),v=(n.n(y),n("Qbdm"));n.d(e,"a",function(){return b}),n.d(e,"p",function(){return q}),n.d(e,"d",function(){return K}),n.d(e,"e",function(){return Q}),n.d(e,"n",function(){return Z}),n.d(e,"b",function(){return E}),n.d(e,"l",function(){return x}),n.d(e,"r",function(){return S}),n.d(e,"s",function(){return O}),n.d(e,"o",function(){return nt}),n.d(e,"q",function(){return rt}),n.d(e,"j",function(){return ot}),n.d(e,"k",function(){return it}),n.d(e,"m",function(){return P}),n.d(e,"g",function(){return D}),n.d(e,"h",function(){return B}),n.d(e,"c",function(){return p}),n.d(e,"f",function(){return f}),n.d(e,"i",function(){return h});var m=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},b=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();b.decorators=[{type:d.Injectable}],b.ctorParameters=function(){return[]};var g={};g.Get=0,g.Post=1,g.Put=2,g.Delete=3,g.Options=4,g.Head=5,g.Patch=6,g[g.Get]="Get",g[g.Post]="Post",g[g.Put]="Put",g[g.Delete]="Delete",g[g.Options]="Options",g[g.Head]="Head",g[g.Patch]="Patch";var _={};_.Unsent=0,_.Open=1,_.HeadersReceived=2,_.Loading=3,_.Done=4,_.Cancelled=5,_[_.Unsent]="Unsent",_[_.Open]="Open",_[_.HeadersReceived]="HeadersReceived",_[_.Loading]="Loading",_[_.Done]="Done",_[_.Cancelled]="Cancelled";var w={};w.Basic=0,w.Cors=1,w.Default=2,w.Error=3,w.Opaque=4,w[w.Basic]="Basic",w[w.Cors]="Cors",w[w.Default]="Default",w[w.Error]="Error",w[w.Opaque]="Opaque";var C={};C.NONE=0,C.JSON=1,C.FORM=2,C.FORM_DATA=3,C.TEXT=4,C.BLOB=5,C.ARRAY_BUFFER=6,C[C.NONE]="NONE",C[C.JSON]="JSON",C[C.FORM]="FORM",C[C.FORM_DATA]="FORM_DATA",C[C.TEXT]="TEXT",C[C.BLOB]="BLOB",C[C.ARRAY_BUFFER]="ARRAY_BUFFER";var S={};S.Text=0,S.Json=1,S.ArrayBuffer=2,S.Blob=3,S[S.Text]="Text",S[S.Json]="Json",S[S.ArrayBuffer]="ArrayBuffer",S[S.Blob]="Blob";var O=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})})}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),x=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),E=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:w.Default,headers:new O})||this}return m(e,t),e}(x);E.decorators=[{type:d.Injectable}],E.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var T=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),P=(function(){function t(){}t}(),function(){function t(){}return t.prototype.configureRequest=function(t){},t}()),A=function(t){return t>=200&&t<300},j=function(){function t(){}return t.prototype.encodeKey=function(t){return a(t)},t.prototype.encodeValue=function(t){return a(t)},t}(),R=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new j),this.rawParams=t,this.queryEncoder=e,this.paramsMap=s(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(k),N=0,M="__ng_jsonp__",V=null,D=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+N++},t.prototype.requestCallback=function(t){return M+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){u()[t]=e},t.prototype.removeConnection=function(t){u()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();D.decorators=[{type:d.Injectable}],D.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var F="JSONP injected script did not invoke callback.",L="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),H=function(t){function e(e,n,r){var o=t.call(this)||this;if(o._dom=n,o.baseResponseOptions=r,o._finished=!1,e.method!==g.Get)throw new TypeError(L);return o.request=e,o.response=new y.Observable(function(t){o.readyState=_.Loading;var i=o._id=n.nextRequestID();n.exposeConnection(i,o);var s=n.requestCallback(o._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=o._script=n.build(a),c=function(e){if(o.readyState!==_.Cancelled){if(o.readyState=_.Done,n.cleanup(u),!o._finished){var i=new x({body:F,type:w.Error,url:a});return r&&(i=r.merge(i)),void t.error(new I(i))}var s=new x({body:o._responseData,url:a});o.baseResponseOptions&&(s=o.baseResponseOptions.merge(s)),t.next(new I(s)),t.complete()}},l=function(e){if(o.readyState!==_.Cancelled){o.readyState=_.Done,n.cleanup(u);var i=new x({body:e.message,type:w.Error});r&&(i=r.merge(i)),t.error(new I(i))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){o.readyState=_.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}}),o}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==_.Cancelled&&(this._responseData=t)},e}(U),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(T),B=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return m(e,t),e.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},e}(q);B.decorators=[{type:d.Injectable}],B.ctorParameters=function(){return[{type:D},{type:x}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var z=/^\)\]\}',?\n/,G=function(){function t(t,e,n){var r=this;this.request=t,this.response=new y.Observable(function(i){var s=e.build();s.open(g[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,r=null;204!==e&&"string"==typeof(r=void 0===s.response?s.responseText:s.response)&&(r=r.replace(z,"")),0===e&&(e=r?200:0);var a=O.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",l=new x({body:r,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new I(l);if(p.ok=A(e),p.ok)return i.next(p),void i.complete();i.error(p)},u=function(t){var e=new x({body:t,type:w.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),i.error(new I(e))};if(r.setDetectedContentType(t,s),null==t.headers&&(t.headers=new O),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case S.ArrayBuffer:s.responseType="arraybuffer";break;case S.Json:s.responseType="json";break;case S.Text:s.responseType="text";break;case S.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(r.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case C.NONE:break;case C.JSON:e.setRequestHeader("content-type","application/json");break;case C.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case C.TEXT:e.setRequestHeader("content-type","text/plain");break;case C.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),W=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=n.i(v.u)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),K=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new G(t,this._browserXHR,this._baseResponseOptions)},t}();K.decorators=[{type:d.Injectable}],K.ctorParameters=function(){return[{type:b},{type:x},{type:P}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Z=function(){function t(t){var e=void 0===t?{}:t,n=e.method,o=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?r(n):null,this.headers=null!=o?o:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new O(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof R?t.clone():"string"==typeof t?new R(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new R;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Q=function(t){function e(){return t.call(this,{method:g.Get,headers:new O})||this}return m(e,t),e}(Z);Q.decorators=[{type:d.Injectable}],Q.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var J=function(t){function e(e){var n=t.call(this)||this,o=e.url;if(n.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";n.url.indexOf("?")!=-1&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=o+s+i}}return n._body=e.body,n.method=r(e.method),n.headers=new O(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return C.JSON;case"application/x-www-form-urlencoded":return C.FORM;case"multipart/form-data":return C.FORM_DATA;case"text/plain":case"text/html":return C.TEXT;case"application/octet-stream":return this._body instanceof et?C.ARRAY_BUFFER:C.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?C.NONE:this._body instanceof R?C.FORM:this._body instanceof X?C.FORM_DATA:this._body instanceof tt?C.BLOB:this._body instanceof et?C.ARRAY_BUFFER:this._body&&"object"==typeof this._body?C.JSON:C.TEXT},e.prototype.getBody=function(){switch(this.contentType){case C.JSON:return this.text();case C.FORM:return this.text();case C.FORM_DATA:return this._body;case C.TEXT:return this.text();case C.BLOB:return this.blob();case C.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(k),Y=function(){},$="object"==typeof window?window:Y,X=$.FormData||Y,tt=$.Blob||Y,et=$.ArrayBuffer||Y,nt=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=c(this._backend,new J(l(this._defaultOptions,e,g.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");n=c(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new J(l(this._defaultOptions,e,g.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Z({body:e})),n,g.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Z({body:e})),n,g.Put,t)))},t.prototype.delete=function(t,e){return this.request(new J(l(this._defaultOptions,e,g.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Z({body:e})),n,g.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(l(this._defaultOptions,e,g.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(l(this._defaultOptions,e,g.Options,t)))},t}();nt.decorators=[{type:d.Injectable}],nt.ctorParameters=function(){return[{type:T},{type:Z}]};var rt=function(t){function e(e,n){return t.call(this,e,n)||this}return m(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new J(l(this._defaultOptions,e,g.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==g.Get)throw new Error("JSONP requests must use GET request method.");return c(this._backend,t)},e}(nt);rt.decorators=[{type:d.Injectable}],rt.ctorParameters=function(){return[{type:T},{type:Z}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:d.NgModule,args:[{providers:[{provide:nt,useFactory:f,deps:[K,Z]},b,{provide:Z,useClass:Q},{provide:x,useClass:E},K,{provide:P,useFactory:p}]}]}],ot.ctorParameters=function(){return[]};var it=function(){function t(){}return t}();it.decorators=[{type:d.NgModule,args:[{providers:[{provide:rt,useFactory:h,deps:[q,Z]},D,{provide:Z,useClass:Q},{provide:x,useClass:E},{provide:q,useClass:B}]}]}],it.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -new d.Version("4.0.0")},GGXf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var r="undefined"!=typeof window&&window||{};r.document,r.location,r.gc,r.performance&&r.performance,r.Event,r.MouseEvent,r.KeyboardEvent,r.EventTarget,r.History,r.Location,r.EventListener},GGau:function(t,e,n){"use strict";n("1z9Z")},GIjk:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=o},GR1s:function(t,e,n){"use strict";function r(){return this.lift(new a)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.exhaust=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return o(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},GZqV:function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return this.lift(new s(t,this,!1,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.find=r;var s=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=s;var a=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.source=r,this.yieldIndex=o,this.thisArg=i,this.index=0}return o(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this,n=e.predicate,r=e.thisArg,o=this.index++;try{n.call(r||this,t,o,this.source)&&this.notifyComplete(this.yieldIndex?o:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(i.Subscriber);e.FindValueSubscriber=a},Gb0N:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=function(t){function e(e,n,r){t.call(this),this.start=e,this._count=n,this.scheduler=r}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=0),new e(t,n,r)},e.dispatch=function(t){var e=t.start,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e),o.closed||(t.index=n+1,t.start=e+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this.start,o=this._count,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{index:n,count:o,start:r,subscriber:t});for(;;){if(n++>=o){t.complete();break}if(t.next(r++),t.closed)break}},e}(o.Observable);e.RangeObservable=i},GcOx:function(t,e,n){"use strict";var r=n("rCTf"),o=n("cjT5");r.Observable.prototype.debounce=o.debounce},Gvdl:function(t,e,n){"use strict";var r=n("EEr4");e.Subject=r.Subject,e.AnonymousSubject=r.AnonymousSubject;var o=n("rCTf");e.Observable=o.Observable,n("1k2o"),n("U85J"),n("XlOA"),n("1ZrL"),n("zO2v"),n("AGQa"),n("iJMh"),n("S35O"),n("E7Yq"),n("LHw1"),n("c3t5"),n("f1gJ"),n("iUY6"),n("SUuD"),n("fICK"),n("O8p4"),n("9WjZ"),n("1APj"),n("1VLl"),n("g0nL"),n("ENML"),n("vQ+N"),n("h0qH"),n("jdeX"),n("iod1"),n("1Nls"),n("lh/Z"),n("nsuO"),n("+KN+"),n("Di9Q"),n("jDQW"),n("Whbc"),n("6Yye"),n("k27J"),n("qp8k"),n("/rMs"),n("CMrU"),n("jvbR"),n("16m9"),n("/181"),n("zC23"),n("GcOx"),n("aV5h"),n("NJh0"),n("94IA"),n("FE8a"),n("qhgQ"),n("q3ik"),n("tYwL"),n("EnA3"),n("Yfq7"),n("SSeX"),n("sT3i"),n("Mvzr"),n("wUn1"),n("tDJK"),n("hs6U"),n("W1/H"),n("okk1"),n("6s76"),n("LppN"),n("2395"),n("qcjU"),n("CYDS"),n("JJSU"),n("KRCp"),n("1NVl"),n("+pb+"),n("6gFN"),n("Ye9U"),n("CToi"),n("EGMK"),n("JPC0"),n("HcJ8"),n("VfeM"),n("SGWz"),n("Rxv9"),n("j7ye"),n("p1Um"),n("rLWm"),n("iIfT"),n("adqA"),n("xOQQ"),n("4Ie8"),n("nDCe"),n("PvYY"),n("0TiQ"),n("48bo"),n("UNGF"),n("XZ4o"),n("y6Vm"),n("y3IE"),n("10Gq"),n("B2te"),n("6hPP"),n("zJQZ"),n("UFi/"),n("WQmy"),n("JQ6u"),n("9qUs"),n("8szd"),n("VaQ6"),n("/lY3"),n("oHQS"),n("UyzR"),n("uCY4"),n("tuHt"),n("hzF8"),n("77/N"),n("T3fU"),n("EoAl"),n("PMZt"),n("jF50"),n("XKof"),n("cDAr"),n("a0Ch"),n("voL5"),n("7axH"),n("eErF"),n("7FaQ"),n("q4U+"),n("PwiB"),n("xFXl"),n("gDzJ"),n("fiy1"),n("ixac"),n("tQRI");var i=n("B00U");e.Subscription=i.Subscription;var s=n("mmVS");e.Subscriber=s.Subscriber;var a=n("5c/I");e.AsyncSubject=a.AsyncSubject;var u=n("MQMf");e.ReplaySubject=u.ReplaySubject;var c=n("TfWX");e.BehaviorSubject=c.BehaviorSubject;var l=n("sIYO");e.ConnectableObservable=l.ConnectableObservable;var p=n("8GmM");e.Notification=p.Notification;var f=n("F7Al");e.EmptyError=f.EmptyError;var h=n("8Z8y");e.ArgumentOutOfRangeError=h.ArgumentOutOfRangeError;var d=n("IZVw");e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var y=n("cmqr");e.TimeoutError=y.TimeoutError;var v=n("GIjk");e.UnsubscriptionError=v.UnsubscriptionError;var m=n("sVus");e.TimeInterval=m.TimeInterval;var b=n("5pRa");e.Timestamp=b.Timestamp;var g=n("u1gx");e.TestScheduler=g.TestScheduler;var _=n("q0UB");e.VirtualTimeScheduler=_.VirtualTimeScheduler;var w=n("Dc2k");e.AjaxResponse=w.AjaxResponse,e.AjaxError=w.AjaxError,e.AjaxTimeoutError=w.AjaxTimeoutError;var C=n("Uqs8"),S=n("CGGv"),O=n("RA5l"),x=n("HwIK"),E=n("r8ZY"),T=n("cdmN"),P=n("mbVC"),A={asap:C.asap,queue:O.queue,animationFrame:x.animationFrame,async:S.async};e.Scheduler=A;var j={rxSubscriber:E.$$rxSubscriber,observable:P.$$observable,iterator:T.$$iterator};e.Symbol=j},HUWc:function(t,e,n){"use strict";var r=n("e6nl"),o=n("iziF"),i=n("qW1v"),s=n("XBbB"),a=n("jFAP");n.d(e,"a",function(){return f});var u,c,l=(u={},u[r.a.local]={},u[r.a.session]={},u),p=(c={},c[r.a.local]=null,c[r.a.session]=null,c),f=function(){function t(){}return t.store=function(t,e,n){this.getStorage(t).setItem(e,JSON.stringify(n)),l[t][e]=n,o.a.emit(t,e,n)},t.retrieve=function(e,n){return l[e][n]?l[e][n]:l[e][n]=t.retrieveFromStorage(e,n)},t.retrieveFromStorage=function(t,e){var n=null;try{n=JSON.parse(this.getStorage(t).getItem(e))}catch(t){console.warn("invalid value for "+e)}return n},t.refresh=function(e,n){if(i.a.isManagedKey(n)){var r=t.retrieveFromStorage(e,n);null===r?(delete l[e][n],o.a.emit(e,n,null)):r!==l[e][n]&&(l[e][n]=r,o.a.emit(e,n,r))}},t.clearAll=function(t){var e=this.getStorage(t);i.a.retrieveKeysFromStorage(e).forEach(function(n){e.removeItem(n),delete l[t][n],o.a.emit(t,n,null)})},t.clear=function(t,e){this.getStorage(t).removeItem(e),delete l[t][e],o.a.emit(t,e,null)},t.getStorage=function(t){return this.isStorageAvailable(t)?this.getWStorage(t):s.a.getStorage(t)},t.getWStorage=function(t){var e;switch(t){case r.a.local:e=localStorage;break;case r.a.session:e=sessionStorage;break;default:throw Error("invalid storage type")}return e},t.isStorageAvailable=function(t){if("boolean"==typeof p[t])return p[t];var e,n=!0;try{e=this.getWStorage(t),"object"==typeof e?(e.setItem("test-storage","foobar"),e.removeItem("test-storage")):n=!1}catch(t){n=!1}return n||console.warn(a.c[t]+" storage unavailable, Ng2Webstorage will use a fallback strategy instead"),p[t]=n},t}()},HcJ8:function(t,e,n){"use strict";var r=n("rCTf"),o=n("XO5T");r.Observable.prototype.mergeMap=o.mergeMap,r.Observable.prototype.flatMap=o.mergeMap},HwIK:function(t,e,n){"use strict";var r=n("gi2R"),o=n("ww7A");e.animationFrame=new o.AnimationFrameScheduler(r.AnimationFrameAction)},IBkQ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("EEr4"),i=n("B00U"),s=n("y9a2"),a=n("g28B"),u=function(t){function e(e,n){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler=n}return r(e,t),e.prototype._subscribe=function(e){var n=this,r=n.logSubscribedFrame();return e.add(new i.Subscription(function(){n.logUnsubscribedFrame(r)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,n=0;n1?a.concatStatic(new o.ArrayObservable(t,n),this):a.concatStatic(new s.EmptyObservable(n),this)}var o=n("Yh8Q"),i=n("RRVv"),s=n("jBEF"),a=n("8MUz"),u=n("fWbP");e.startWith=r},Jiyy:function(t,e,n){"use strict";function r(t){return function(e,r){n.i(o.a)(t,i.a.session,e,r)}}var o=n("ARke"),i=n("e6nl");e.a=r},JkZN:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("Xajo"),i=n("1r8+"),s=n("aQl7"),a=n("hYBY"),u=n("U15Z"),c=n("Yh8Q"),l=n("FA5e"),p=n("cdmN"),f=n("rCTf"),h=n("Ji1B"),d=n("mbVC"),y=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof f.Observable&&!n?t:new e(t,n);if(o.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.$$observable]().subscribe(t):e[d.$$observable]().subscribe(new h.ObserveOnSubscriber(t,n,0))},e}(f.Observable);e.FromObservable=y},KKz1:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function o(t){t.subscriber.clearThrottle()}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("mmVS"),a=n("CGGv");e.throttleTime=r;var u=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.duration=n,this.scheduler=r}return i(e,t),e.prototype._next=function(t){this.throttled||(this.add(this.throttled=this.scheduler.schedule(o,this.duration,{subscriber:this})),this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},KLoZ:function(t,e,n){"use strict";function r(t){for(var e=[],n=1;nthis.total&&this.destination.next(t)},e}(i.Subscriber)},MQMf:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("EEr4"),i=n("RA5l"),s=n("B00U"),a=n("Ji1B"),u=n("IZVw"),c=n("ZJf8"),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=r,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return r(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new p(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r));for(var o=n.length,i=0;ie&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r},e}(o.Subject);e.ReplaySubject=l;var p=function(){function t(t,e){this.time=t,this.value=e}return t}()},Mqdq:function(t,e,n){"use strict";function r(t,e){return this.lift(new u(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("B00U"),s=n("CURp"),a=n("wAkD");e.bufferToggle=r;var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(s.subscribeToResult(this,n))}return o(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector,n=e.call(this,t);n&&this.trySubscribe(n)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=[],r=new i.Subscription,o={buffer:n,subscription:r};e.push(o);var a=s.subscribeToResult(this,t,o);!a||a.closed?this.closeBuffer(o):(a.context=o,this.add(a),r.add(a))},e}(a.OuterSubscriber)},Mvzr:function(t,e,n){"use strict";var r=n("rCTf"),o=n("+w3m");r.Observable.prototype.elementAt=o.elementAt},NJh0:function(t,e,n){"use strict";var r=n("rCTf"),o=n("RJ4+");r.Observable.prototype.defaultIfEmpty=o.defaultIfEmpty},NVOs:function(t,e,n){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function r(t){return null==t||0===t.length}function o(t){return null!=t}function i(t){var e=n.i(I["ɵisPromise"])(t)?n.i(M.fromPromise)(t):t;if(!n.i(I["ɵisObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function s(t,e){return e.map(function(e){return e(t)})}function a(t,e){return e.map(function(e){return e(t)})}function u(t){var e=t.reduce(function(t,e){return null!=e?n.i(I["ɵmerge"])(t,e):t},{});return 0===Object.keys(e).length?null:e}function c(){var t=n.i(D.u)()?n.i(D.u)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function l(t){return t.validate?function(e){return t.validate(e)}:t}function p(t){return t.validate?function(e){return t.validate(e)}:t}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function f(){throw new Error("unimplemented")}function h(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function d(t){return t.split(":")[0]}function y(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function m(t,e){return e.path.concat([t])}function b(t,e){t||C(e,"Cannot find control with"),e.valueAccessor||C(e,"No value accessor for form control with"),t.validator=z.compose([t.validator,e.validator]),t.asyncValidator=z.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function g(t,e){e.valueAccessor.registerOnChange(function(){return w(e)}),e.valueAccessor.registerOnTouched(function(){return w(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function _(t,e){null==t&&C(e,"Cannot find control with"),t.validator=z.compose([t.validator,e.validator]),t.asyncValidator=z.composeAsync([t.asyncValidator,e.asyncValidator])}function w(t){return C(t,"There is no FormControl instance attached to form control element with")}function C(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function S(t){return null!=t?z.compose(t.map(l)):null}function O(t){return null!=t?z.composeAsync(t.map(p)):null}function x(t,e){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!n.i(I["ɵlooseIdentical"])(e,r.currentValue)}function E(t){return pt.some(function(e){return t.constructor===e})}function T(t,e){if(!e)return null;var n,r,o;return e.forEach(function(e){e.constructor===J?n=e:E(e)?(r&&C(t,"More than one built-in value accessor matches form control with"),r=e):(o&&C(t,"More than one custom value accessor matches form control with"),o=e)}),o?o:r?r:n?n:(C(t,"No valid value accessor for form control with"),null)}function P(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof St?t.controls[e]||null:t instanceof Ot?t.at(e)||null:null},t))}function A(t){return Array.isArray(t)?S(t):t}function j(t){return Array.isArray(t)?O(t):t}function R(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function k(t){return!(t instanceof Ht||t instanceof Lt||t instanceof Bt)}var I=n("3j3K"),N=n("7rB9"),M=(n.n(N),n("ioK+")),V=(n.n(M),n("xAJs")),D=(n.n(V),n("Qbdm"));n.d(e,"p",function(){return K}),n.d(e,"m",function(){return U}),n.d(e,"k",function(){return G}),n.d(e,"g",function(){return Q}),n.d(e,"f",function(){return J}),n.d(e,"n",function(){return X}),n.d(e,"o",function(){return yt}),n.d(e,"t",function(){return vt}),n.d(e,"s",function(){return Tt}),n.d(e,"l",function(){return Nt}),n.d(e,"h",function(){return nt}),n.d(e,"v",function(){return at}),n.d(e,"w",function(){return st}),n.d(e,"q",function(){return Qt}),n.d(e,"y",function(){return re}),n.d(e,"i",function(){return Zt}),n.d(e,"b",function(){return oe}),n.d(e,"j",function(){return H}),n.d(e,"d",function(){return le}),n.d(e,"e",function(){return pe}),n.d(e,"c",function(){return ce}),n.d(e,"r",function(){return ie}),n.d(e,"z",function(){return $}),n.d(e,"a",function(){return et}),n.d(e,"u",function(){return ot}),n.d(e,"x",function(){return lt});var F=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=function(){function t(){}return Object.defineProperty(t.prototype,"control",{get:function(){throw new Error("unimplemented")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return void 0===e&&(e=null),!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return void 0===e&&(e=null),this.control?this.control.getError(t,e):null},t}(),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),H=new I.InjectionToken("NgValidators"),q=new I.InjectionToken("NgAsyncValidators"),B=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,z=function(){function t(){}return t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return t.value===!0?null:{required:!0}},t.email=function(t){return B.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,o;return"string"==typeof e?(o="^"+e+"$",n=new RegExp(o)):(o=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:o,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){var r=a(t,e).map(i);return V.map.call(n.i(N.forkJoin)(r),u)}},t}(),G=new I.InjectionToken("NgValueAccessor"),W={provide:G,useExisting:n.i(I.forwardRef)(function(){return K}),multi:!0},K=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();K.decorators=[{type:I.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[W]}]}],K.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Z={provide:G,useExisting:n.i(I.forwardRef)(function(){return J}),multi:!0},Q=new I.InjectionToken("CompositionEventMode"),J=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!c())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();J.decorators=[{type:I.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[Z]}]}],J.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef},{type:void 0,decorators:[{type:I.Optional},{type:I.Inject,args:[Q]}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Y={provide:G,useExisting:n.i(I.forwardRef)(function(){return $}),multi:!0},$=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();$.decorators=[{type:I.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Y]}]}],$.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};var X=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return F(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return f()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return f()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(L),tt={provide:G,useExisting:n.i(I.forwardRef)(function(){return nt}),multi:!0},et=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();et.decorators=[{type:I.Injectable}],et.ctorParameters=function(){return[]};var nt=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(X),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}();nt.decorators=[{type:I.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[tt]}]}],nt.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef},{type:et},{type:I.Injector}]},nt.propDecorators={name:[{type:I.Input}],formControlName:[{type:I.Input}],value:[{type:I.Input}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var rt={provide:G,useExisting:n.i(I.forwardRef)(function(){return ot}),multi:!0},ot=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();ot.decorators=[{type:I.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],ot.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var it={provide:G,useExisting:n.i(I.forwardRef)(function(){return st}),multi:!0},st=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=I["ɵlooseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=h(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(wt),Ot=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return F(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){n._throwIfControlMissing(e),n.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;t.forEach(function(t,e){n.at(e)&&n.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t=[]);var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._forEachChild(function(e,n){e.reset(t[n],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:r,emitEvent:o}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Ct?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(wt),xt={provide:U,useExisting:n.i(I.forwardRef)(function(){return Tt})},Et=Promise.resolve(null),Tt=function(t){function e(e,n){var r=t.call(this)||this;return r._submitted=!1,r.ngSubmit=new I.EventEmitter,r.form=new St({},S(e),O(n)),r}return F(e,t),Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Et.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),b(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Et.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.addFormGroup=function(t){var e=this;Et.then(function(){var n=e._findContainer(t.path),r=new St({});_(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Et.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Et.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(U);Tt.decorators=[{type:I.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[xt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Tt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Pt={formControlName:'\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '},At=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Pt.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+Pt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Pt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Pt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Pt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Pt.ngModelGroup)},t}(),jt={provide:U,useExisting:n.i(I.forwardRef)(function(){return Rt})},Rt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Tt||At.modelGroupParentException()},e}(ft);Rt.decorators=[{type:I.Directive,args:[{selector:"[ngModelGroup]",providers:[jt],exportAs:"ngModelGroup"}]}],Rt.ctorParameters=function(){return[{type:U,decorators:[{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Rt.propDecorators={name:[{type:I.Input,args:["ngModelGroup"]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var kt={provide:X,useExisting:n.i(I.forwardRef)(function(){return Nt})},It=Promise.resolve(null),Nt=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._control=new Ct,i._registered=!1,i.update=new I.EventEmitter,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=T(i,o),i}return F(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),x(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?m(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return S(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},e.prototype._setUpStandalone=function(){b(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Rt)&&this._parent instanceof ft?At.formGroupNameException():this._parent instanceof Rt||this._parent instanceof Tt||At.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},e.prototype._updateValue=function(t){var e=this;It.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;It.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(X);Nt.decorators=[{type:I.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[kt],exportAs:"ngModel"}]}],Nt.ctorParameters=function(){return[{type:U,decorators:[{type:I.Optional},{type:I.Host}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[G]}]}]},Nt.propDecorators={name:[{type:I.Input}],isDisabled:[{type:I.Input,args:["disabled"]}],model:[{type:I.Input,args:["ngModel"]}],options:[{type:I.Input,args:["ngModelOptions"]}],update:[{type:I.Output,args:["ngModelChange"]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Mt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Pt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Pt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Pt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Vt={provide:X,useExisting:n.i(I.forwardRef)(function(){return Dt})},Dt=function(t){function e(e,n,r){var o=t.call(this)||this;return o.update=new I.EventEmitter,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=T(o,r),o}return F(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(b(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),x(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return S(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e}(X);Dt.decorators=[{type:I.Directive,args:[{selector:"[formControl]",providers:[Vt],exportAs:"ngForm"}]}],Dt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[G]}]}]},Dt.propDecorators={form:[{type:I.Input,args:["formControl"]}],model:[{type:I.Input,args:["ngModel"]}],update:[{type:I.Output,args:["ngModelChange"]}],isDisabled:[{type:I.Input,args:["disabled"]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Ft={provide:U,useExisting:n.i(I.forwardRef)(function(){return Lt})},Lt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new I.EventEmitter,r}return F(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return b(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){R(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);_(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);_(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(g(e._control,e),n&&b(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=S(this._validators);this.form.validator=z.compose([this.form.validator,t]);var e=O(this._asyncValidators);this.form.asyncValidator=z.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Mt.missingFormException()},e}(U);Lt.decorators=[{type:I.Directive,args:[{selector:"[formGroup]",providers:[Ft],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Lt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Lt.propDecorators={form:[{type:I.Input,args:["formGroup"]}],ngSubmit:[{type:I.Output}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Ut={provide:U,useExisting:n.i(I.forwardRef)(function(){return Ht})},Ht=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype._checkParentType=function(){k(this._parent)&&Mt.groupParentException()},e}(ft);Ht.decorators=[{type:I.Directive,args:[{selector:"[formGroupName]",providers:[Ut]}]}],Ht.ctorParameters=function(){return[{type:U,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Ht.propDecorators={name:[{type:I.Input,args:["formGroupName"]}]};var qt={provide:U,useExisting:n.i(I.forwardRef)(function(){return Bt})},Bt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return S(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){k(this._parent)&&Mt.arrayParentException()},e}(U);Bt.decorators=[{type:I.Directive,args:[{selector:"[formArrayName]",providers:[qt]}]}],Bt.ctorParameters=function(){return[{type:U,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Bt.propDecorators={name:[{type:I.Input,args:["formArrayName"]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var zt={provide:X,useExisting:n.i(I.forwardRef)(function(){return Gt})},Gt=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._added=!1,i.update=new I.EventEmitter,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=T(i,o),i}return F(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),x(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return S(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return O(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ht)&&this._parent instanceof ft?Mt.ngModelGroupException():this._parent instanceof Ht||this._parent instanceof Lt||this._parent instanceof Bt||Mt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e}(X);Gt.decorators=[{type:I.Directive,args:[{selector:"[formControlName]",providers:[zt]}]}],Gt.ctorParameters=function(){return[{type:U,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[H]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[G]}]}]},Gt.propDecorators={name:[{type:I.Input,args:["formControlName"]}],model:[{type:I.Input,args:["ngModel"]}],update:[{type:I.Output,args:["ngModelChange"]}],isDisabled:[{type:I.Input,args:["disabled"]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Wt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Zt}),multi:!0},Kt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Qt}),multi:!0},Zt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?z.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Zt.decorators=[{type:I.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Wt],host:{"[attr.required]":'required ? "" : null'}}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={required:[{type:I.Input}]};var Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.validate=function(t){return this.required?z.requiredTrue(t):null},e}(Zt);Qt.decorators=[{type:I.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Kt],host:{"[attr.required]":'required ? "" : null'}}]}],Qt.ctorParameters=function(){return[]};var Jt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Yt}),multi:!0},Yt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||t===!0||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?z.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Yt.decorators=[{type:I.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Jt]}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={email:[{type:I.Input}]};var $t={provide:H,useExisting:n.i(I.forwardRef)(function(){return Xt}),multi:!0},Xt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.minLength(parseInt(this.minlength,10))},t}();Xt.decorators=[{type:I.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[$t],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={minlength:[{type:I.Input}]};var te={provide:H,useExisting:n.i(I.forwardRef)(function(){return ee}),multi:!0},ee=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.maxLength(parseInt(this.maxlength,10))},t}();ee.decorators=[{type:I.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[te],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],ee.ctorParameters=function(){return[]},ee.propDecorators={maxlength:[{type:I.Input}]};var ne={provide:H,useExisting:n.i(I.forwardRef)(function(){return re}),multi:!0},re=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.pattern(this.pattern)},t}();re.decorators=[{type:I.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ne],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],re.ctorParameters=function(){return[]},re.propDecorators={pattern:[{type:I.Input}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var oe=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new St(n,r,o)},t.prototype.control=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),new Ct(t,e,n)},t.prototype.array=function(t,e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=null);var o=t.map(function(t){return r._createControl(t)});return new Ot(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof Ct||t instanceof St||t instanceof Ot)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();oe.decorators=[{type:I.Injectable}],oe.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var ie=(new I.Version("4.0.0"),function(){function t(){}return t}());ie.decorators=[{type:I.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ie.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var se=[ie,at,lt,J,$,ot,K,st,ct,nt,yt,vt,Zt,Xt,ee,re,Qt,Yt],ae=[Nt,Rt,Tt],ue=[Dt,Lt,Gt,Ht,Bt],ce=function(){function t(){}return t}();ce.decorators=[{type:I.NgModule,args:[{declarations:se,exports:se}]}],ce.ctorParameters=function(){return[]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var le=function(){function t(){}return t}();le.decorators=[{type:I.NgModule,args:[{declarations:ae,providers:[et],exports:[ce,ae]}]}],le.ctorParameters=function(){return[]};var pe=function(){function t(){}return t}();pe.decorators=[{type:I.NgModule,args:[{declarations:[ue],providers:[oe,et],exports:[ce,ue]}]}],pe.ctorParameters=function(){return[]}},NgUg:function(t,e,n){"use strict";function r(t){var e=t.obj,n=t.keys,r=t.length,o=t.index,i=t.subscriber;if(o===r)return void i.complete();var s=n[o];i.next([s,e[s]]),t.index=o+1,this.schedule(t)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rCTf"),s=function(t){function e(e,n){t.call(this),this.obj=e,this.scheduler=n,this.keys=Object.keys(e)}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=e.keys,o=e.scheduler,i=n.length;if(o)return o.schedule(r,0,{obj:this.obj,keys:n,length:i,index:0,subscriber:t});for(var s=0;s\n '}]}],t.ctorParameters=function(){return[{type:o.a}]},t}()},"O/+v":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=null),this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.bufferCount=r;var s=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.bufferSize,this.startBufferEvery))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.bufferSize=n,this.startBufferEvery=r,this.buffers=[],this.count=0}return o(e,t),e.prototype._next=function(t){var e=this.count++,n=this,r=n.destination,o=n.bufferSize,i=n.startBufferEvery,s=n.buffers;e%(null==i?o:i)==0&&s.push([]);for(var a=s.length;a--;){var u=s[a];u.push(t),u.length===o&&(s.splice(a,1),r.next(u))}},e.prototype._complete=function(){for(var e=this.destination,n=this.buffers;n.length>0;){var r=n.shift();r.length>0&&e.next(r)}t.prototype._complete.call(this)},e}(i.Subscriber)},O8p4:function(t,e,n){"use strict";var r=n("rCTf"),o=n("Y3yw");r.Observable.race=o.raceStatic},OLzJ:function(t,e,n){"use strict";var r=n("VOfZ"),o=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}();e.RequestAnimationFrameDefinition=o,e.AnimationFrame=new o(r.root)},OMJi:function(t,e,n){(function(t,r){function o(t,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),u(r,t,r.depth)}function i(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function s(t,e){return t}function a(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return g(o)||(o=u(t,o,r)),o}var i=c(t,n);if(i)return i;var s=Object.keys(n),y=a(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),x(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(n);if(0===s.length){if(E(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(C(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return l(n)}var m="",b=!1,_=["{","}"];if(d(n)&&(b=!0,_=["[","]"]),E(n)){m=" [Function"+(n.name?": "+n.name:"")+"]"}if(C(n)&&(m=" "+RegExp.prototype.toString.call(n)),O(n)&&(m=" "+Date.prototype.toUTCString.call(n)),x(n)&&(m=" "+l(n)),0===s.length&&(!b||0==n.length))return _[0]+m+_[1];if(r<0)return C(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var w;return w=b?p(t,n,r,y,s):s.map(function(e){return f(t,n,r,y,e,b)}),t.seen.pop(),h(w,m,_)}function c(t,e){if(w(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return b(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o){for(var i=[],s=0,a=e.length;s-1&&(a=i?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),w(s)){if(i&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function h(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return null==t}function b(t){return"number"==typeof t}function g(t){return"string"==typeof t}function _(t){return"symbol"==typeof t}function w(t){return void 0===t}function C(t){return S(t)&&"[object RegExp]"===P(t)}function S(t){return"object"==typeof t&&null!==t}function O(t){return S(t)&&"[object Date]"===P(t)}function x(t){return S(t)&&("[object Error]"===P(t)||t instanceof Error)}function E(t){return"function"==typeof t}function T(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function P(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}function j(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var k=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],n=0;n=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),a=r[n];n=0}var o=n("Xajo");e.isNumeric=r},PKvP:function(t,e,n){"use strict";var r=n("JkZN");e.from=r.FromObservable.create},PMZt:function(t,e,n){"use strict";var r=n("rCTf"),o=n("u/VN");r.Observable.prototype.throttle=o.throttle},PN3d:function(t,e,n){"use strict";function r(t){return i.multicast.call(this,new o.BehaviorSubject(t))}var o=n("TfWX"),i=n("emOw");e.publishBehavior=r},POFt:function(t,e,n){"use strict";function r(t){return 0===t?new a.EmptyObservable:this.lift(new u(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("8Z8y"),a=n("jBEF");e.take=r;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},PmkC:function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=s);var n=(t||"").trim();if(0===n.length)return[];var r=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new i.a(n[0],n[1])}),o=r.filter(function(t){return t.isManual()});if(o.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===o.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}function o(t,e,n,o,i,s){var a=r(n),u=[];return 1===a.length&&a[0].isManual()?Function.prototype:(a.forEach(function(n){if(n.open===n.close)return void u.push(t.listen(e,n.open,s));u.push(t.listen(e,n.open,o),t.listen(e,n.close,i))}),function(){u.forEach(function(t){return t()})})}var i=n("xj9n");e.a=o;var s={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]}},PutI:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("cwzr"),i=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(o.AsyncAction);e.QueueAction=i},PvYY:function(t,e,n){"use strict";var r=n("rCTf"),o=n("0gHg");r.Observable.prototype.publishReplay=o.publishReplay},PwiB:function(t,e,n){"use strict";var r=n("rCTf"),o=n("sKQ8");r.Observable.prototype.windowTime=o.windowTime},Q0je:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("YOd+"),s=function(t){function e(){t.call(this)}return r(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){i.noop()},e}(o.Observable);e.NeverObservable=s},QNuG:function(t,e,n){"use strict";function r(){return i.multicast.call(this,new o.AsyncSubject)}var o=n("5c/I"),i=n("emOw");e.publishLast=r},Qbdm:function(t,e,n){"use strict";function r(){return D}function o(t){D||(D=t)}function i(){return W||(W=document.querySelector("base"))?W.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[r.shift()]=n}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - * @return {?} - */ -function c(){return!!window.history.pushState}function l(t,e){return function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})}}function p(t){return n.i(N.getDebugNode)(t)}function f(t,e){var o=(t||[]).concat(e||[]);return r().setGlobalVar(et,p),r().setGlobalVar(nt,n.i(N["ɵmerge"])(tt,h(o||[]))),function(){return p}}function h(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return dt.replace(pt,t)}function y(t){return ht.replace(pt,t)}function v(t,e,n){for(var r=0;r/g,">")}function E(t){Rt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Rt.removeAttribute(t,n)});for(var e=0,n=Rt.childNodesAsList(t);e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r-1},e}(at);Ot.decorators=[{type:N.Injectable}],Ot.ctorParameters=function(){return[{type:void 0,decorators:[{type:N.Inject,args:[K]}]},{type:St,decorators:[{type:N.Inject,args:[Ct]}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var xt=["alt","control","meta","shift"],Et={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tt=function(t){function e(e){return t.call(this,e)||this}return V(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(xt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),xt.forEach(function(r){if(r!=n){(0,Et[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(at);Tt.decorators=[{type:N.Injectable}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:N.Inject,args:[K]}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var Pt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,At=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,jt=null,Rt=null,kt=C("area,br,col,hr,img,wbr"),It=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nt=C("rp,rt"),Mt=S(Nt,It),Vt=S(It,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dt=S(Nt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ft=S(kt,Vt,Dt,Mt),Lt=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ut=C("srcset"),Ht=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=S(Lt,Ut,Ht),Bt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Rt.isElementNode(e)?this.startElement(e):Rt.isTextNode(e)?this.chars(Rt.nodeValue(e)):this.sanitizedSomething=!0,Rt.firstChild(e))e=Rt.firstChild(e);else for(;e;){Rt.isElementNode(e)&&this.endElement(e);var n=O(e,Rt.nextSibling(e));if(n){e=n;break}e=O(e,Rt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Rt.nodeName(t).toLowerCase();if(!Ft.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Rt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!qt.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Lt[r]&&(t=g(t)),Ut[r]&&(t=_(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=Rt.nodeName(t).toLowerCase();Ft.hasOwnProperty(e)&&!kt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gt=/([^\#-~ |!])/g,Wt="[-,.\"'%_!# a-zA-Z0-9]+",Kt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Zt="(?:rgb|hsl)a?",Qt="(?:repeating-)?(?:linear|radial)-gradient",Jt="(?:calc|attr)",Yt="\\([-0-9.%, #a-zA-Z]+\\)",$t=new RegExp("^("+Wt+"|(?:"+Kt+"|"+Zt+"|"+Qt+"|"+Jt+")"+Yt+")$","g"),Xt=/^url\(([^)]+)\)$/,te=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),ee=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return V(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case N.SecurityContext.NONE:return e;case N.SecurityContext.HTML:return e instanceof re?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case N.SecurityContext.STYLE:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),A(e));case N.SecurityContext.SCRIPT:if(e instanceof ie)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case N.SecurityContext.URL:return e instanceof ae||e instanceof se?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case N.SecurityContext.RESOURCE_URL:if(e instanceof ae)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ne)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new re(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new oe(t)},e.prototype.bypassSecurityTrustScript=function(t){return new ie(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new se(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ae(t)},e}(te);ee.decorators=[{type:N.Injectable}],ee.ctorParameters=function(){return[{type:void 0,decorators:[{type:N.Inject,args:[K]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ue=[{provide:N.PLATFORM_ID,useValue:I["ɵPLATFORM_BROWSER_ID"]},{provide:N.PLATFORM_INITIALIZER,useValue:j,multi:!0},{provide:I.PlatformLocation,useClass:Z},{provide:K,useFactory:k,deps:[]}],ce=[{provide:N.Sanitizer,useExisting:te},{provide:te,useClass:ee}],le=n.i(N.createPlatformFactory)(N.platformCore,"browser",ue),pe=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:N.APP_ID,useValue:e.appId},{provide:J,useExisting:N.APP_ID},Y]}},t}();pe.decorators=[{type:N.NgModule,args:[{providers:[ce,{provide:N.ErrorHandler,useFactory:R,deps:[]},{provide:it,useClass:_t,multi:!0},{provide:it,useClass:Tt,multi:!0},{provide:it,useClass:Ot,multi:!0},{provide:Ct,useClass:St},yt,{provide:N.RendererFactory2,useExisting:yt},{provide:ut,useExisting:ct},ct,N.Testability,st,ot,Q,X],exports:[I.CommonModule,N.ApplicationModule]}]}],pe.ctorParameters=function(){return[{type:pe,decorators:[{type:N.Optional},{type:N.SkipSelf}]}]};/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var fe="undefined"!=typeof window&&window||{},he=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}();(function(){function t(t){this.appRef=t.injector.get(N.ApplicationRef)}t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",o=null!=fe.console.profile;e&&o&&fe.console.profile(n);for(var i=r().performanceNow(),s=0;s<5||r().performanceNow()-i<500;)this.appRef.tick(),s++;var a=r().performanceNow();e&&o&&fe.console.profileEnd(n);var u=(a-i)/s;return fe.console.log("ran "+s+" change detection cycles"),fe.console.log(u.toFixed(2)+" ms per check"),new he(u,s)},t})(),function(){function t(){}t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return e.providerTokens.indexOf(t)!==-1}},t}(),new N.Version("4.0.0")},QqRK:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("mmVS"),i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);e.InnerSubscriber=i},Qt4r:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("fWbP"),s=function(t){return t},a=function(t){function e(e,n,r,o,i){t.call(this),this.initialState=e,this.condition=n,this.iterate=r,this.resultSelector=o,this.scheduler=i}return r(e,t),e.create=function(t,n,r,o,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===o||i.isScheduler(o)?new e(t,n,r,s,o):new e(t,n,r,o,a)},e.prototype._subscribe=function(t){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var r=this,o=r.condition,i=r.resultSelector,s=r.iterate;;){if(o){var a=void 0;try{a=o(n)}catch(e){return void t.error(e)}if(!a){t.complete();break}}var u=void 0;try{u=i(n)}catch(e){return void t.error(e)}if(t.next(u),t.closed)break;try{n=s(n)}catch(e){return void t.error(e)}}},e.dispatch=function(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var o;try{o=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(o),!e.closed))return this.schedule(t)}},e}(o.Observable);e.GenerateObservable=a},RA5l:function(t,e,n){"use strict";var r=n("PutI"),o=n("C0+T");e.queue=new o.QueueScheduler(r.QueueAction)},"RJ4+":function(t,e,n){"use strict";function r(t){return void 0===t&&(t=null),this.lift(new s(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.defaultIfEmpty=r;var s=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return o(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.Subscriber)},RRVv:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(o.Observable);e.ScalarObservable=i},RSMh:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("CURp"),s=n("wAkD"),a=function(t){function e(e,n){t.call(this),this.resourceFactory=e,this.observableFactory=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e,n=this,r=n.resourceFactory,o=n.observableFactory;try{return e=r(),new u(t,e,o)}catch(e){t.error(e)}},e}(o.Observable);e.UsingObservable=a;var u=function(t){function e(e,n,r){t.call(this,e),this.resource=n,this.observableFactory=r,e.add(n),this.tryUse()}return r(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(i.subscribeToResult(this,t))}catch(t){this._error(t)}},e}(s.OuterSubscriber)},RYQg:function(t,e,n){"use strict";function r(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),v=function(t){function e(e,n,r){t.call(this,e),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return i(e,t),e.prototype[p.$$iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return l.subscribeToResult(this,this.observable,this,e)},e}(c.OuterSubscriber)},RaSy:function(t,e,n){"use strict";var r=n("3j3K");n.d(e,"a",function(){return o});var o=function(){function t(){this.autoClose=!0}return t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[]},t}()},Rewd:function(t,e,n){"use strict";function r(t,e,n){return this.lift(new s(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e._do=r;var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e);var s=new i.Subscriber(n,r,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return o(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(i.Subscriber)},Rxv9:function(t,e,n){"use strict";var r=n("rCTf"),o=n("FT6u");r.Observable.prototype.min=o.min},RyDc:function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.skipUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,n))}return o(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(i.OuterSubscriber)},S35O:function(t,e,n){"use strict";var r=n("rCTf"),o=n("PKvP");r.Observable.from=o.from},S7tg:function(t,e,n){"use strict";var r=n("3j3K"),o=n("nNec"),i=function(){function t(t){var e=this;this.element=t,this.overrideSize=null,this.visible=!1,this.animation=!0,this.backdrop=!0,this.keyboard=!0,this.cssClass="",this.onClose=new r.EventEmitter(!1),this.onDismiss=new r.EventEmitter(!1),this.onOpen=new r.EventEmitter(!1),this.instance=new o.ModalInstance(this.element),this.instance.hidden.subscribe(function(t){e.visible=e.instance.visible,t===o.ModalResult.Dismiss&&e.onDismiss.emit(void 0)}),this.instance.shown.subscribe(function(){e.onOpen.emit(void 0)})}return Object.defineProperty(t.prototype,"fadeClass",{get:function(){return this.animation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataKeyboardAttr",{get:function(){return this.keyboard},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataBackdropAttr",{get:function(){return this.backdrop},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){return this.instance&&this.instance.destroy()},t.prototype.routerCanDeactivate=function(){return this.ngOnDestroy()},t.prototype.open=function(t){var e=this;return s.validSize(t)&&(this.overrideSize=t),this.instance.open().then(function(){e.visible=e.instance.visible})},t.prototype.close=function(t){var e=this;return this.instance.close().then(function(){e.onClose.emit(t)})},t.prototype.dismiss=function(){return this.instance.dismiss()},t.prototype.getCssClasses=function(){var t=[];return this.isSmall()&&t.push("modal-sm"),this.isLarge()&&t.push("modal-lg"),""!==this.cssClass&&t.push(this.cssClass),t.join(" ")},t.prototype.isSmall=function(){return this.overrideSize!==s.Large&&this.size===s.Small||this.overrideSize===s.Small},t.prototype.isLarge=function(){return this.overrideSize!==s.Small&&this.size===s.Large||this.overrideSize===s.Large},t.decorators=[{type:r.Component,args:[{selector:"modal",host:{class:"modal",role:"dialog",tabindex:"-1"},template:'\n \n '}]}],t.ctorParameters=[{type:r.ElementRef}],t.propDecorators={animation:[{type:r.Input}],backdrop:[{type:r.Input}],keyboard:[{type:r.Input}],size:[{type:r.Input}],cssClass:[{type:r.Input}],onClose:[{type:r.Output}],onDismiss:[{type:r.Output}],onOpen:[{type:r.Output}],fadeClass:[{type:r.HostBinding,args:["class.fade"]}],dataKeyboardAttr:[{type:r.HostBinding,args:["attr.data-keyboard"]}],dataBackdropAttr:[{type:r.HostBinding,args:["attr.data-backdrop"]}]},t}();e.ModalComponent=i;var s=function(){function t(){}return t.validSize=function(e){return e&&(e===t.Small||e===t.Large)},t.Small="sm",t.Large="lg",t}();e.ModalSize=s},SDFq:function(t,e,n){"use strict";function r(t,e){return this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.switchMapTo=r;var a=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observable,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.inner=n,this.resultSelector=r,this.index=0}return o(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){var i=this,s=i.resultSelector,a=i.destination;s?this.tryResultSelector(t,e,n,r):a.next(e)},e.prototype.tryResultSelector=function(t,e,n,r){var o,i=this,s=i.resultSelector,a=i.destination;try{o=s(t,e,n,r)}catch(t){return void a.error(t)}a.next(o)},e}(i.OuterSubscriber)},SGWz:function(t,e,n){"use strict";var r=n("rCTf"),o=n("UELl");r.Observable.prototype.mergeScan=o.mergeScan},SKH6:function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},SSeX:function(t,e,n){"use strict";var r=n("rCTf"),o=n("2AEF");r.Observable.prototype.exhaustMap=o.exhaustMap},SUuD:function(t,e,n){"use strict";var r=n("rCTf"),o=n("rpzr");r.Observable.interval=o.interval},SudU:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new i(t,e))}var o=n("ftJA");e.subscribeOn=r;var i=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new o.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},Sv80:function(t,e,n){"use strict";var r=n("3j3K"),o=n("+mfk");n.d(e,"b",function(){return s}),n.d(e,"a",function(){return a});var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(){function t(){}return t}(),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return i(e,t),e.prototype.interpolate=function(t,e){var r=this;return"string"==typeof t&&e?t.replace(this.templateMatcher,function(t,i){var s=r.getValue(e,i);return n.i(o.a)(s)?s:t}):t},e.prototype.getValue=function(t,e){var r=e.split(".");e="";do{e+=r.shift(),!n.i(o.a)(t)||!n.i(o.a)(t[e])||"object"!=typeof t[e]&&r.length?r.length?e+=".":t=void 0:(t=t[e],e="")}while(r.length);return t},e}(s);a.decorators=[{type:r.Injectable}],a.ctorParameters=function(){return[]}},T3fU:function(t,e,n){"use strict";var r=n("rCTf"),o=n("q+cp");r.Observable.prototype.takeUntil=o.takeUntil},"TIy+":function(t,e,n){"use strict";var r=n("/J7H");e.fromEvent=r.FromEventObservable.create},TL2s:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("kcyo"),i=n("cwzr"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=o.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(o.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(i.AsyncAction);e.AsapAction=s},TfAg:function(t,e,n){"use strict";var r=n("3j3K"),o=n("S7tg"),i=function(){function t(t){this.modal=t,this.showClose=!1}return t.decorators=[{type:r.Component,args:[{selector:"modal-header",template:'\n \n '}]}],t.ctorParameters=[{type:o.ModalComponent}],t.propDecorators={showClose:[{type:r.Input,args:["show-close"]}]},t}();e.ModalHeaderComponent=i},TfWX:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("EEr4"),i=n("IZVw"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);e.BehaviorSubject=s},U15Z:function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new f(t);if(!e&&void 0!==t.length)return new h(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("VOfZ"),c=n("rCTf"),l=n("cdmN"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r.return&&r.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var i=r.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);e.IteratorObservable=p;var f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(u.OuterSubscriber);e.MergeScanSubscriber=l},"UFi/":function(t,e,n){"use strict";var r=n("rCTf"),o=n("xYP1");r.Observable.prototype.sequenceEqual=o.sequenceEqual},UNGF:function(t,e,n){"use strict";var r=n("rCTf"),o=n("pgP5");r.Observable.prototype.reduce=o.reduce},Um43:function(t,e,n){"use strict";function r(t,e){return{name:t,definitions:e}}function o(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function i(t){return{type:2,steps:t}}function s(t){return{type:6,styles:t}}function a(t,e){return{type:0,name:t,styles:e}}function u(t,e){return{type:1,expr:t,animation:e}}/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - * @param {?} cb - * @return {?} - */ -function c(t){Promise.resolve(null).then(t)}n.d(e,"d",function(){return l}),n.d(e,"i",function(){return o}),n.d(e,"b",function(){return i}),n.d(e,"g",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return r}),n.d(e,"a",function(){return p}),n.d(e,"e",function(){return f});/** - * @license Angular v4.0.0 - * (c) 2010-2017 Google, Inc. https://angular.io/ - * License: MIT - */ -var l="*",p=(function(){function t(){}t.prototype.onDone=function(t){},t.prototype.onStart=function(t){},t.prototype.onDestroy=function(t){},t.prototype.init=function(){},t.prototype.hasStarted=function(){},t.prototype.play=function(){},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){},Object.defineProperty(t.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(t){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),t}(),function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){var t=this;this.hasStarted()||(c(function(){return t._onFinish()}),this._onStart()),this._started=!0},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t}()),f=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null;var n=0,r=this._players.length;0==r?c(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=r&&e._onFinish()})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0,this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){this._players.forEach(function(e){e.setPosition(t)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}()},UmTU:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);e.MergeMapSubscriber=u},XZ4o:function(t,e,n){"use strict";var r=n("rCTf"),o=n("0GXu");r.Observable.prototype.repeat=o.repeat},Xajo:function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},XlOA:function(t,e,n){"use strict";var r=n("rCTf"),o=n("UmTU");r.Observable.combineLatest=o.combineLatest},XvGf:function(t,e,n){"use strict";function r(){return this.lift(new a)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e._switch=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.active=0,this.hasCompleted=!1}return o(e,t),e.prototype._next=function(t){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=s.subscribeToResult(this,t))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},e.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var t=this.innerSubscription;t&&(t.unsubscribe(),this.remove(t))},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.OuterSubscriber)},Y3yw:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i0?e:n}:function(t,e){return t>e?t:e};return this.lift(new o.ReduceOperator(e))}var o=n("pgP5");e.max=r},a0Ch:function(t,e,n){"use strict";var r=n("rCTf"),o=n("8DDp");r.Observable.prototype.timeoutWith=o.timeoutWith},a0X4:function(t,e,n){"use strict";function r(t,e){return new Promise(function(n,r){new OfflineAudioContext(1,4096,e).decodeAudioData(t).then(function(t){n(t)}).catch(function(t){r({message:"Could not decode audio file",action:"decodeAudioFile",previousError:t})})})}e.a=r},aQl7:function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},aV5h:function(t,e,n){"use strict";var r=n("rCTf"),o=n("driz");r.Observable.prototype.debounceTime=o.debounceTime},ack3:function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},adqA:function(t,e,n){"use strict";var r=n("rCTf"),o=n("tn1n");r.Observable.prototype.partition=o.partition},aec7:function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=i.async);var n=s.isDate(t),r=n?+t-e.now():Math.abs(t);return this.lift(new c(r,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("CGGv"),s=n("fuZx"),a=n("mmVS"),u=n("8GmM");e.delay=r;var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return o(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,o=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(t,i)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var e=this.scheduler,n=new p(e.now()+this.delay,t);this.queue.push(n),this.active===!1&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(u.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},e}(a.Subscriber),p=function(){function t(t,e){this.time=t,this.notification=e}return t}()},b1Ba:function(t,e,n){"use strict";var r=n("WxOs");e.bindNodeCallback=r.BoundNodeCallbackObservable.create},bBiI:function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("F7Al");e.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){if(this.resultSelector)return void this._tryResultSelector(t,e);this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},bE1M:function(t,e,n){"use strict";function r(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=n("XO5T");e.concatMap=r},"bZY+":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("P3oE"),i=n("rCTf"),s=n("CGGv"),a=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=s.async),t.call(this),this.period=e,this.scheduler=n,(!o.isNumeric(e)||e<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return r(e,t),e.create=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=s.async),new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.subscriber,r=t.period;n.next(e),n.closed||(t.index+=1,this.schedule(t,r))},e.prototype._subscribe=function(t){var n=this.period,r=this.scheduler;t.add(r.schedule(e.dispatch,n,{index:0,subscriber:t,period:n}))},e}(i.Observable);e.IntervalObservable=a},c3t5:function(t,e,n){"use strict";var r=n("rCTf"),o=n("ioK+");r.Observable.fromPromise=o.fromPromise},cDAr:function(t,e,n){"use strict";var r=n("rCTf"),o=n("E/WS");r.Observable.prototype.timeout=o.timeout},cJSH:function(t,e,n){"use strict";function r(t,e,n,r){return this.lift(new p(t,e,n,r))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("B00U"),a=n("rCTf"),u=n("EEr4"),c=n("9JPB"),l=n("1kxm");e.groupBy=r;var p=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),f=function(t){function e(e,n,r,o,i){t.call(this,e),this.keySelector=n,this.elementSelector=r,this.durationSelector=o,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return o(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups="string"==typeof e?new l.FastMap:new c.Map);var r,o=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!o){o=this.subjectSelector?this.subjectSelector():new u.Subject,n.set(e,o);var i=new d(e,o,this);if(this.destination.next(i),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,o))}catch(t){return void this.error(t)}this.add(s.subscribe(new h(e,o,this)))}}o.closed||o.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.Subscriber),h=function(t){function e(e,n,r){t.call(this),this.key=e,this.group=n,this.parent=r}return o(e,t),e.prototype._next=function(t){this._complete()},e.prototype._error=function(t){var e=this.group;e.closed||e.error(t),this.parent.removeGroup(this.key)},e.prototype._complete=function(){var t=this.group;t.closed||t.complete(),this.parent.removeGroup(this.key)},e}(i.Subscriber),d=function(t){function e(e,n,r){t.call(this),this.key=e,this.groupSubject=n,this.refCountSubscription=r}return o(e,t),e.prototype._subscribe=function(t){var e=new s.Subscription,n=this,r=n.refCountSubscription,o=n.groupSubject;return r&&!r.closed&&e.add(new y(r)),e.add(o.subscribe(t)),e},e}(a.Observable);e.GroupedObservable=d;var y=function(t){function e(e){t.call(this),this.parent=e,e.count++}return o(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.Subscription)},cPwE:function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},cbuX:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();e.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeAllSubscriber=u},cdmN:function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i\n \n \n \n \n '}]}],t.ctorParameters=[{type:o.ModalComponent}],t.propDecorators={showDefaultButtons:[{type:r.Input,args:["show-default-buttons"]}],dismissButtonLabel:[{type:r.Input,args:["dismiss-button-label"]}],closeButtonLabel:[{type:r.Input,args:["close-button-label"]}]},t}();e.ModalFooterComponent=i},driz:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function o(t){t.debouncedNext()}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("mmVS"),a=n("CGGv");e.debounceTime=r;var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(o,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},"e3X+":function(t,e,n){"use strict";var r=n("3j3K"),o=n("e6nl"),i=n("qHcD");n.d(e,"a",function(){return a});var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(){return t.call(this,o.a.session)||this}return s(e,t),e}(i.a);a.decorators=[{type:r.Injectable}],a.ctorParameters=function(){return[]}},e6nl:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r;!function(t){t[t.local=0]="local",t[t.session=1]="session"}(r||(r={}))},eBNk:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}return t}()},eErF:function(t,e,n){"use strict";var r=n("rCTf"),o=n("nFIP");r.Observable.prototype.toPromise=o.toPromise},emOw:function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=n("sIYO");e.multicast=r;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();e.MulticastOperator=i},erNO:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("EEr4");e.windowCount=r;var a=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowSize,this.startWindowEvery))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=r,this.windows=[new s.Subject],this.count=0,e.next(this.windows[0])}return o(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,o=this.windows,i=o.length,a=0;a=0&&u%e==0&&!this.closed&&o.shift().complete(),++this.count%e==0&&!this.closed){var c=new s.Subject;o.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(i.Subscriber)},f1gJ:function(t,e,n){"use strict";var r=n("rCTf"),o=n("Qt4r");r.Observable.generate=o.GenerateObservable.create},fC4T:function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},fICK:function(t,e,n){"use strict";var r=n("rCTf"),o=n("1KT0");r.Observable.merge=o.merge},fO1r:function(t,e,n){"use strict";var r=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return t}();e.SubscriptionLog=r},fWbP:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},fiy1:function(t,e,n){"use strict";var r=n("rCTf"),o=n("u2wr");r.Observable.prototype.withLatestFrom=o.withLatestFrom},ftJA:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("Uqs8"),s=n("P3oE"),a=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=i.asap),t.call(this),this.source=e,this.delayTime=n,this.scheduler=r,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),r&&"function"==typeof r.schedule||(this.scheduler=i.asap)}return r(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=i.asap),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(o.Observable);e.SubscribeOnObservable=a},fuZx:function(t,e,n){"use strict";function r(t){return t instanceof Date&&!isNaN(+t)}e.isDate=r},g0nL:function(t,e,n){"use strict";var r=n("rCTf"),o=n("tefl");r.Observable.pairs=o.pairs},g28B:function(t,e,n){"use strict";function r(t,e){for(var n=0,r=e.length;n0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=i.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(i.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(o.AsyncAction);e.AnimationFrameAction=s},h0qH:function(t,e,n){"use strict";var r=n("rCTf"),o=n("s3oX");r.Observable.throw=o._throw},hYBY:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function o(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("VOfZ"),a=n("rCTf"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(i.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);e.PromiseObservable=u},hiKS:function(t,e,n){"use strict";function r(t){return this.lift(new o.ZipOperator(t))}var o=n("RYQg");e.zipAll=r},hs6U:function(t,e,n){"use strict";var r=n("rCTf"),o=n("GZqV");r.Observable.prototype.find=o.find},hzF8:function(t,e,n){"use strict";var r=n("rCTf"),o=n("POFt");r.Observable.prototype.take=o.take},iESu:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.mergeMapTo=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=a;var u=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeMapToSubscriber=u},iIfT:function(t,e,n){"use strict";var r=n("rCTf"),o=n("Ffu+");r.Observable.prototype.pairwise=o.pairwise},iJMh:function(t,e,n){"use strict";var r=n("rCTf"),o=n("7rB9");r.Observable.forkJoin=o.forkJoin},iUY6:function(t,e,n){"use strict";var r=n("rCTf"),o=n("5nj5");r.Observable.if=o._if},iVCw:function(t,e,n){"use strict";var r=n("3j3K"),o=n("S7tg"),i=function(){function t(t,e){var n=this;this.el=t,this.modal=e,e&&this.modal.onOpen.subscribe(function(){n.el.nativeElement.focus()})}return t.decorators=[{type:r.Directive,args:[{selector:"[autofocus]"}]}],t.ctorParameters=[{type:r.ElementRef},{type:o.ModalComponent,decorators:[{type:r.Optional}]}],t}();e.AutofocusDirective=i},"ioK+":function(t,e,n){"use strict";var r=n("hYBY");e.fromPromise=r.PromiseObservable.create},iod1:function(t,e,n){"use strict";var r=n("rCTf"),o=n("8/gC");r.Observable.zip=o.zip},ixac:function(t,e,n){"use strict";var r=n("rCTf"),o=n("RYQg");r.Observable.prototype.zip=o.zipProto},iziF:function(t,e,n){"use strict";var r=n("3j3K");n.d(e,"a",function(){return o});var o=function(){function t(){}return t.observe=function(t,e){var n=this.genObserverKey(t,e);return n in this.observers?this.observers[n]:this.observers[n]=new r.EventEmitter},t.emit=function(t,e,n){var r=this.genObserverKey(t,e);r in this.observers&&this.observers[r].emit(n)},t.genObserverKey=function(t,e){return t+"|"+e},t}();o.observers={}},j7ye:function(t,e,n){"use strict";var r=n("rCTf"),o=n("emOw");r.Observable.prototype.multicast=o.multicast},jBEF:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(o.Observable);e.EmptyObservable=i},jDQW:function(t,e,n){"use strict";var r=n("rCTf"),o=n("Mqdq");r.Observable.prototype.bufferToggle=o.bufferToggle},jF50:function(t,e,n){"use strict";var r=n("rCTf"),o=n("KKz1");r.Observable.prototype.throttleTime=o.throttleTime},jFAP:function(t,e,n){"use strict";var r=n("e6nl");n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return a});var o,i="ng2-webstorage",s="|",a=(o={},o[r.a.local]="local",o[r.a.session]="session",o)},jdTm:function(t,e,n){"use strict";var r=n("jnJ8");e.timer=r.TimerObservable.create},jdeX:function(t,e,n){"use strict";var r=n("rCTf"),o=n("jdTm");r.Observable.timer=o.timer},jnJ8:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("P3oE"),i=n("rCTf"),s=n("CGGv"),a=n("fWbP"),u=n("fuZx"),c=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,o.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):a.isScheduler(n)&&(r=n),a.isScheduler(r)||(r=s.async),this.scheduler=r,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber,o=this;if(r.next(e),!r.closed){if(n===-1)return r.complete();t.index=e+1,o.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,r=n.period,o=n.dueTime;return n.scheduler.schedule(e.dispatch,o,{index:0,period:r,subscriber:t})},e}(i.Observable);e.TimerObservable=c},jvbR:function(t,e,n){"use strict";var r=n("rCTf"),o=n("bE1M");r.Observable.prototype.concatMap=o.concatMap},k27J:function(t,e,n){"use strict";var r=n("rCTf"),o=n("X2ud");r.Observable.prototype.combineAll=o.combineAll},kWlY:function(t,e,n){"use strict";function r(){return"bs4"!==o.a.__theme}var o=n("GGXf");e.a=r},kcyo:function(t,e,n){"use strict";var r=n("VOfZ"),o=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function t(e){delete t.instance.tasksByHandle[e]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],n=1;n1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=n("rCTf"),s=n("Yh8Q"),a=n("cbuX"),u=n("fWbP");e.merge=r,e.mergeStatic=o},l19J:function(t,e,n){"use strict";function r(t){return 0===t?new a.EmptyObservable:this.lift(new u(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("8Z8y"),a=n("jBEF");e.takeLast=r;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return o(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;if(e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o1)for(var n=1;n0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},pgP5:function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();e.ReduceOperator=s;var a=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);e.ReduceSubscriber=a},"q+cp":function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.takeUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(s.subscribeToResult(this,n))}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(i.OuterSubscriber)},"q+ny":function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,this.lift(new c(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("+3eL"),s=n("WhVc"),a=n("wAkD"),u=n("CURp");e.expand=r;var c=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=c;var l=function(t){function e(e,n,r,o){t.call(this,e),this.project=n,this.concurrent=r,this.scheduler=o,this.index=0,this.active=0,this.hasCompleted=!1,r0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber);e.ExpandSubscriber=l},q0UB:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("cwzr"),i=n("9Avi"),s=function(t){function e(e,n){var r=this;void 0===e&&(e=a),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this,e,function(){return r.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return r(e,t),e.prototype.flush=function(){for(var t,e,n=this,r=n.actions,o=n.maxFrames;(e=r.shift())&&(this.frame=e.delay)<=o&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(i.AsyncScheduler);e.VirtualTimeScheduler=s;var a=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1),t.call(this,e,n),this.scheduler=e,this.work=n,this.index=r,this.index=e.index=r}return r(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(o.AsyncAction);e.VirtualAction=a},q282:function(t,e,n){"use strict";var r=n("3j3K"),o=n("eBNk"),i=n("PmkC");n.d(e,"a",function(){return s});var s=function(){function t(t,e,n,o,i,s,a){this.onBeforeShow=new r.EventEmitter,this.onShown=new r.EventEmitter,this.onBeforeHide=new r.EventEmitter,this.onHidden=new r.EventEmitter,this._providers=[],this._ngZone=s,this._injector=o,this._renderer=e,this._elementRef=n,this._posService=a,this._viewContainerRef=t,this._componentFactoryResolver=i}return Object.defineProperty(t.prototype,"isShown",{get:function(){return!!this._componentRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this},t.prototype.to=function(t){return this.container=t||this.container,this},t.prototype.position=function(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this},t.prototype.provide=function(t){return this._providers.push(t),this},t.prototype.show=function(t){if(void 0===t&&(t={}),this._subscribePositioning(),!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content);var e=r.ReflectiveInjector.resolveAndCreate(this._providers,this._injector);this._componentRef=this._viewContainerRef.createComponent(this._componentFactory,0,e,this._contentRef.nodes),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),"body"===this.container&&"undefined"!=typeof document&&document.querySelector(this.container).appendChild(this._componentRef.location.nativeElement),this._componentRef.changeDetectorRef.markForCheck(),this.onShown.emit(this._componentRef.instance)}return this._componentRef},t.prototype.hide=function(){return this._componentRef&&(this.onBeforeHide.emit(this._componentRef.instance),this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._componentRef.hostView)),this._componentRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null),this._componentRef=null,this.onHidden.emit()),this},t.prototype.toggle=function(){if(this.isShown)return void this.hide();this.show()},t.prototype.dispose=function(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()},t.prototype.listen=function(t){var e=this;return this.triggers=t.triggers||this.triggers,t.target=t.target||this._elementRef,t.show=t.show||function(){return e.show()},t.hide=t.hide||function(){return e.hide()},t.toggle=t.toggle||function(){return e.isShown?t.hide():t.show()},this._unregisterListenersFn=n.i(i.a)(this._renderer,t.target.nativeElement,this.triggers,t.show,t.hide,t.toggle),this},t.prototype._subscribePositioning=function(){var t=this;!this._zoneSubscription&&this.attachment&&(this._zoneSubscription=this._ngZone.onStable.subscribe(function(){t._componentRef&&t._posService.position({element:t._componentRef.location,target:t._elementRef,attachment:t.attachment,appendToBody:"body"===t.container})}))},t.prototype._unsubscribePositioning=function(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)},t.prototype._getContentRef=function(t){if(!t)return new o.a([]);if(t instanceof r.TemplateRef){var e=this._viewContainerRef.createEmbeddedView(t);return new o.a([e.rootNodes],e)}return new o.a([[this._renderer.createText(null,""+t)]])},t}()},q3ik:function(t,e,n){"use strict";var r=n("rCTf"),o=n("8hgl");r.Observable.prototype.distinctUntilChanged=o.distinctUntilChanged},"q4U+":function(t,e,n){"use strict";var r=n("rCTf"),o=n("erNO");r.Observable.prototype.windowCount=o.windowCount},qHcD:function(t,e,n){"use strict";var r=n("cnpe");n.d(e,"a",function(){return o});var o=function(){function t(t){void 0===t&&(t=null),this.sType=t,this.sType=t}return t.prototype.store=function(t,e){var n=r.a.genKey(t);r.b.store(this.sType,n,e)},t.prototype.retrieve=function(t){var e=r.a.genKey(t);return r.b.retrieve(this.sType,e)},t.prototype.clear=function(t){t?r.b.clear(this.sType,r.a.genKey(t)):r.b.clearAll(this.sType)},t.prototype.observe=function(t){var e=r.a.genKey(t);return r.c.observe(this.sType,e)},t}()},qW1v:function(t,e,n){"use strict";function r(t){return 0===t.indexOf(i+s)}var o=n("jFAP");n.d(e,"a",function(){return a});var i=o.a,s=o.b,a=function(){function t(){}return t.isManagedKey=function(t){return 0===t.indexOf(i+s)},t.retrieveKeysFromStorage=function(t){return Object.keys(t).filter(r)},t.genKey=function(t){if("string"!=typeof t)throw Error("attempt to generate a storage key with a non string value");return""+i+s+t.toString().toLowerCase()},t.setStorageKeyPrefix=function(t){void 0===t&&(t=o.a),i=t},t.setStorageKeySeparator=function(t){void 0===t&&(t=o.b),s=t},t}()},qcjU:function(t,e,n){"use strict";var r=n("rCTf"),o=n("WTUZ");r.Observable.prototype.audit=o.audit},qhgQ:function(t,e,n){"use strict";var r=n("rCTf"),o=n("69uX");r.Observable.prototype.distinct=o.distinct},qp8k:function(t,e,n){"use strict";var r=n("rCTf"),o=n("A7JX");r.Observable.prototype.combineLatest=o.combineLatest},r8ZY:function(t,e,n){"use strict";var r=n("VOfZ"),o=r.root.Symbol;e.$$rxSubscriber="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber"},rCTf:function(t,e,n){"use strict";var r=n("VOfZ"),o=n("lHsB"),i=n("mbVC"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s},rLWm:function(t,e,n){"use strict";var r=n("rCTf"),o=n("ASN6");r.Observable.prototype.onErrorResumeNext=o.onErrorResumeNext},rpzr:function(t,e,n){"use strict";var r=n("bZY+");e.interval=r.IntervalObservable.create},rtll:function(t,e,n){"use strict";function r(t){return new u.a(t)}var o=n("3j3K"),i=(n("jFAP"),n("e6nl")),s=n("g6HB"),a=n("HUWc"),u=n("1z9Z"),c=n("qW1v"),l=(n("GGau"),n("FBLF"));n.d(e,"f",function(){return l.a}),n.d(e,"g",function(){return l.b}),n.d(e,"d",function(){return s.a}),n.d(e,"e",function(){return s.b}),n.d(e,"c",function(){return p}),n.d(e,"b",function(){return f}),e.a=r;var p=new o.OpaqueToken("WEBSTORAGE_CONFIG"),f=function(){function t(t,e){this.ngZone=t,e&&(c.a.setStorageKeyPrefix(e.prefix),c.a.setStorageKeySeparator(e.separator)),this.initStorageListener()}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:p,useValue:e},{provide:u.a,useFactory:r,deps:[p]}]}},t.prototype.initStorageListener=function(){var t=this;window&&window.addEventListener("storage",function(e){return t.ngZone.run(function(){var t=window.sessionStorage===e.storageArea?i.a.session:i.a.local;a.a.refresh(t,e.key)})})},t}();f.decorators=[{type:o.NgModule,args:[{declarations:[],providers:[s.a,s.b],imports:[]}]}],f.ctorParameters=function(){return[{type:o.NgZone},{type:u.a,decorators:[{type:o.Optional},{type:o.Inject,args:[u.a]}]}]}},s3oX:function(t,e,n){"use strict";var r=n("Dkzu");e._throw=r.ErrorObservable.create},sIYO:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("EEr4"),i=n("rCTf"),s=n("mmVS"),a=n("B00U"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);e.ConnectableObservable=u,e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},sKQ8:function(t,e,n){"use strict";function r(t){var e=c.async,n=null,r=Number.POSITIVE_INFINITY;return f.isScheduler(arguments[3])&&(e=arguments[3]),f.isScheduler(arguments[2])?e=arguments[2]:p.isNumeric(arguments[2])&&(r=arguments[2]),f.isScheduler(arguments[1])?e=arguments[1]:p.isNumeric(arguments[1])&&(n=arguments[1]),this.lift(new h(t,n,r,e))}function o(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function i(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,o=t.windowCreationInterval,i=n.openWindow(),a=this,u={action:a,subscription:null},c={subscriber:n,window:i,context:u};u.subscription=r.schedule(s,e,c),a.add(u.subscription),a.schedule(t,o)}function s(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("EEr4"),c=n("CGGv"),l=n("mmVS"),p=n("P3oE"),f=n("fWbP");e.windowTime=r;var h=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new y(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(u.Subject),y=function(t){function e(e,n,r,a,u){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=r,this.maxWindowSize=a,this.scheduler=u,this.windows=[];var c=this.openWindow();if(null!==r&&r>=0){var l={subscriber:this,window:c,context:null},p={windowTimeSpan:n,windowCreationInterval:r,subscriber:this,scheduler:u};this.add(u.schedule(s,n,l)),this.add(u.schedule(i,r,p))}else{var f={subscriber:this,window:c,windowTimeSpan:n};this.add(u.schedule(o,n,f))}}return a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(o))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(l.Subscriber)},sT3i:function(t,e,n){"use strict";var r=n("rCTf"),o=n("q+ny");r.Observable.prototype.expand=o.expand},sVus:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=s.async),this.lift(new u(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS"),s=n("CGGv");e.timeInterval=r;var a=function(){function t(t,e){this.value=t,this.interval=e}return t}();e.TimeInterval=a;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return o(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new a(t,n))},e}(i.Subscriber)},sWk4:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var o=n("3j3K"),i=n("2Je8"),s=n("S7tg"),a=n("TfAg"),u=n("xsyV"),c=n("dUUf"),l=n("iVCw");r(n("S7tg")),r(n("TfAg")),r(n("xsyV")),r(n("dUUf")),r(n("nNec"));var p=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{imports:[i.CommonModule],declarations:[s.ModalComponent,a.ModalHeaderComponent,u.ModalBodyComponent,c.ModalFooterComponent,l.AutofocusDirective],exports:[s.ModalComponent,a.ModalHeaderComponent,u.ModalBodyComponent,c.ModalFooterComponent,l.AutofocusDirective]}]}],t.ctorParameters=[],t}();e.Ng2Bs3ModalModule=p},sXiW:function(t,e,n){"use strict";var r=n("3j3K"),o=n("e6nl"),i=n("qHcD");n.d(e,"a",function(){return a});var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(t){function e(){return t.call(this,o.a.local)||this}return s(e,t),e}(i.a);a.decorators=[{type:r.Injectable}],a.ctorParameters=function(){return[]}},sake:function(t,e,n){"use strict";function r(t){return this.lift(new s(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.skipWhile=r;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return o(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(i.Subscriber)},"sb+e":function(t,e,n){"use strict";function r(t){return t(this)}e.letProto=r},t2Bb:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function o(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("mmVS"),a=n("CGGv");e.sampleTime=r;var u=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.period,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.period=n,this.scheduler=r,this.hasValue=!1,this.add(r.schedule(o,n,{subscriber:this,period:n}))}return i(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(s.Subscriber)},t2qv:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("jBEF"),s=n("Xajo"),a=n("CURp"),u=n("wAkD"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n=2&&(n=!0),this.lift(new s(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.scan=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.Subscriber)},tefl:function(t,e,n){"use strict";var r=n("NgUg");e.pairs=r.PairsObservable.create},tn1n:function(t,e,n){"use strict";function r(t,e){return[i.filter.call(this,t,e),i.filter.call(this,o.not(t,e))]}var o=n("7Gky"),i=n("ack3");e.partition=r},tuHt:function(t,e,n){"use strict";var r=n("rCTf"),o=n("SDFq");r.Observable.prototype.switchMapTo=o.switchMapTo},"u/VN":function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("wAkD"),s=n("CURp");e.throttle=r;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){t.call(this,e),this.destination=e,this.durationSelector=n}return o(e,t),e.prototype._next=function(t){this.throttled||this.tryDurationSelector(t)},e.prototype.tryDurationSelector=function(t){var e=null;try{e=this.durationSelector(t)}catch(t){return void this.destination.error(t)}this.emitAndThrottle(t,e)},e.prototype.emitAndThrottle=function(t,e){this.add(this.throttled=s.subscribeToResult(this,e)),this.destination.next(t)},e.prototype._unsubscribe=function(){var t=this.throttled;t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype.notifyNext=function(t,e,n,r,o){this._unsubscribe()},e.prototype.notifyComplete=function(){this._unsubscribe()},e}(i.OuterSubscriber)},u1gx:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rCTf"),i=n("8GmM"),s=n("Cr1h"),a=n("IBkQ"),u=n("fO1r"),c=n("q0UB"),l=750,p=function(t){function e(e){t.call(this,c.VirtualAction,l),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return r(e,t),e.prototype.createTime=function(t){var n=t.indexOf("|");if(n===-1)throw new Error('marble diagram for time should have a completion marker "|"');return n*e.frameTimeFactor},e.prototype.createColdObservable=function(t,n,r){if(t.indexOf("^")!==-1)throw new Error('cold observable cannot have subscription offset "^"');if(t.indexOf("!")!==-1)throw new Error('cold observable cannot have unsubscription marker "!"');var o=e.parseMarbles(t,n,r),i=new s.ColdObservable(o,this);return this.coldObservables.push(i),i},e.prototype.createHotObservable=function(t,n,r){if(t.indexOf("!")!==-1)throw new Error('hot observable cannot have unsubscription marker "!"');var o=e.parseMarbles(t,n,r),i=new a.HotObservable(o,this);return this.hotObservables.push(i),i},e.prototype.materializeInnerObservable=function(t,e){var n=this,r=[];return t.subscribe(function(t){r.push({frame:n.frame-e,notification:i.Notification.createNext(t)})},function(t){r.push({frame:n.frame-e,notification:i.Notification.createError(t)})},function(){r.push({frame:n.frame-e,notification:i.Notification.createComplete()})}),r},e.prototype.expectObservable=function(t,n){var r=this;void 0===n&&(n=null);var s,a=[],u={actual:a,ready:!1},c=e.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof o.Observable&&(e=r.materializeInnerObservable(e,r.frame)),a.push({frame:r.frame,notification:i.Notification.createNext(e)})},function(t){a.push({frame:r.frame,notification:i.Notification.createError(t)})},function(){a.push({frame:r.frame,notification:i.Notification.createComplete()})})},0),c!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},c),this.flushTests.push(u),{toBe:function(t,n,r){u.ready=!0,u.expected=e.parseMarbles(t,n,r,!0)}}},e.prototype.expectSubscriptions=function(t){var n={actual:t,ready:!1};return this.flushTests.push(n),{toBe:function(t){var r="string"==typeof t?[t]:t;n.ready=!0,n.expected=r.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var n=this.flushTests.filter(function(t){return t.ready});n.length>0;){var r=n.shift();this.assertDeepEqual(r.actual,r.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,n=-1,r=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,i=0;i-1?n:s;break;case"!":if(o!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");o=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return o<0?new u.SubscriptionLog(r):new u.SubscriptionLog(r,o)},e.parseMarbles=function(t,e,n,r){if(void 0===r&&(r=!1),t.indexOf("!")!==-1)throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var o=t.length,a=[],u=t.indexOf("^"),c=u===-1?0:u*-this.frameTimeFactor,l="object"!=typeof e?function(t){return t}:function(t){return r&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},p=-1,f=0;f-1?p:h,notification:d})}return a},e}(c.VirtualTimeScheduler);e.TestScheduler=p},u2wr:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e0){var s=i.indexOf(n);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.OuterSubscriber)},uCY4:function(t,e,n){"use strict";var r=n("rCTf"),o=n("VEfc");r.Observable.prototype.switchMap=o.switchMap},"vQ+N":function(t,e,n){"use strict";var r=n("rCTf"),o=n("mQmC");r.Observable.using=o.using},voL5:function(t,e,n){"use strict";var r=n("rCTf"),o=n("5pRa");r.Observable.prototype.timestamp=o.timestamp},vrkH:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),this.lift(new s(t,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("mmVS");e.retry=r;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this,r=n.source,o=n.count;if(0===o)return t.prototype.error.call(this,e);o>-1&&(this.count=o-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},vvwv:function(t,e,n){"use strict";var r=n("jBEF");e.empty=r.EmptyObservable.create},wAkD:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("mmVS"),i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(o.Subscriber);e.OuterSubscriber=i},wUn1:function(t,e,n){"use strict";var r=n("rCTf"),o=n("ack3");r.Observable.prototype.filter=o.filter},ww7A:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("9Avi"),i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0&&n.length>0;){var o=e.shift(),i=n.shift(),u=!1;r?(u=s.tryCatch(r)(o,i))===a.errorObject&&this.destination.error(a.errorObject.e):u=o===i,u||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(i.Subscriber);e.SequenceEqualSubscriber=c;var l=function(t){function e(e,n){t.call(this,e),this.parent=n}return o(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(i.Subscriber)},xj9n:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t,e){this.open=t,this.close=e||t}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}()},xsyV:function(t,e,n){"use strict";var r=n("3j3K"),o=function(){function t(){}return t.decorators=[{type:r.Component,args:[{selector:"modal-body",template:'\n \n '}]}],t.ctorParameters=[],t}();e.ModalBodyComponent=o},xvT5:function(t,e,n){"use strict";var r=n("3j3K"),o=n("3Iag"),i=n("lG5z"),s=n("NvNJ"),a=n("4ejn"),u=n("Zek7"),c=n("RaSy"),l=n("+dHm"),p=n("oZUJ");n.d(e,"a",function(){return f});var f=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[o.a,i.a,p.a,{provide:c.a,useValue:e?e:{autoClose:!0}}]}},t.decorators=[{type:r.NgModule,args:[{declarations:[a.a,u.a,s.a,l.a],exports:[a.a,u.a,l.a],entryComponents:[s.a]}]}],t.ctorParameters=function(){return[]},t}()},y3IE:function(t,e,n){"use strict";var r=n("rCTf"),o=n("vrkH");r.Observable.prototype.retry=o.retry},y6Vm:function(t,e,n){"use strict";var r=n("rCTf"),o=n("8T44");r.Observable.prototype.repeatWhen=o.repeatWhen},y9a2:function(t,e,n){"use strict";var r=n("fO1r"),o=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new r.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,n=e[t];e[t]=new r.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},t}();e.SubscriptionLoggable=o},yASy:function(t,e,n){"use strict";var r=n("3j3K");n.d(e,"a",function(){return o});var o=function(){function t(t,e){this.collapsed=new r.EventEmitter,this.expanded=new r.EventEmitter,this.isExpanded=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1,this._el=t,this._renderer=e}return Object.defineProperty(t.prototype,"collapse",{get:function(){return this.isExpanded},set:function(t){this.isExpanded=t,this.toggle()},enumerable:!0,configurable:!0}),t.prototype.toggle=function(){this.isExpanded?this.hide():this.show()},t.prototype.hide=function(){this.isCollapse=!1,this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,this.isCollapse=!0,this.isCollapsing=!1,this.display="none",this.collapsed.emit(this)},t.prototype.show=function(){this.isCollapse=!1,this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,this.display="block",this.isCollapse=!0,this.isCollapsing=!1,this._renderer.setElementStyle(this._el.nativeElement,"overflow","visible"),this._renderer.setElementStyle(this._el.nativeElement,"height","auto"),this.expanded.emit(this)},t.decorators=[{type:r.Directive,args:[{selector:"[collapse]",exportAs:"bs-collapse",host:{"[class.collapse]":"true"}}]}],t.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer}]},t.propDecorators={collapsed:[{type:r.Output}],expanded:[{type:r.Output}],display:[{type:r.HostBinding,args:["style.display"]}],isExpanded:[{type:r.HostBinding,args:["class.in"]},{type:r.HostBinding,args:["class.show"]},{type:r.HostBinding,args:["attr.aria-expanded"]}],isCollapsed:[{type:r.HostBinding,args:["attr.aria-hidden"]}],isCollapse:[{type:r.HostBinding,args:["class.collapse"]}],isCollapsing:[{type:r.HostBinding,args:["class.collapsing"]}],collapse:[{type:r.Input}]},t}()},yZjU:function(t,e,n){"use strict";function r(t,e){return this.lift(new p(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("EEr4"),s=n("B00U"),a=n("+3eL"),u=n("WhVc"),c=n("wAkD"),l=n("CURp");e.windowToggle=r;var p=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.openings,this.closingSelector))},t}(),f=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(this.openSubscription=l.subscribeToResult(this,n,n))}return o(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r